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

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

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

 Copyright 2015-present Dan Abramov
 SPDX-License-Identifier: MIT
*/
/*

 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 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
 SPDX-License-Identifier: MIT
*/
/*

 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 YIt,GgA,O1Y,QUu,MTy,H1U,Gg,tTI,L4u,Qj,gaa,tY,Xuj,PyU,rA,xa,Itj,kgg,naj,C1,eT,zAa,mj1,W4T,AY,xjj,eAu,i1Y,wuy,hAj,djA,jUT,NAa,b1g,BAT,sU4,cYj,vaa,H1,E4,gR,Xe,G2t,mE,W1,ueU,eR,QX4,MR1,ZV,DV,aVA,P_Y,IVI,VI,FEu,p1j,zlA,qM,mMY,WEj,xMT,rUy,fVA,c1,k2I,JU,C_t,AUa,ZTT,zx,DMA,hlY,px,iTy,nx,RlY,w14,lVI,BRj,$Mg,q4A,sXI,cUg,eS,JUA,vkI,Ywj,Gx1,ugA,QoA,MSA,tSa,KyA,LyY,Xbt,IN4,zjt,Wyj,m9y,bN,rBA,ABg,SS,oVa,RjT,hj1,Zxj,d91,D9I,V9,Oxg,lN,Bb,q9,bx4,cb,joY,Swt,Nbg,us,VSt,lNy,$9j,sog,qw1,cBj,U94,vVa,YO,YTT,uou,QhI,
H5y,Tn,tpg,TTA,gT,Xsj,knA,aqa,nOA,psA,zaY,yzg,rzI,Az4,i5t,Ra4,Z5U,Dpg,STA,NT1,lq1,$py,czy,vOa,JzU,GoA,Obt,Mdj,K0A,P3t,Dq,koA,F0A,p8I,VG,ls,$O,Y6,Or,QK,y0t,gt,A0j,RHY,Zbt,DKj,hH4,pb,dKg,W8,rt,x6,fb,Sr4,NtA,jA4,Vd1,lxj,$Ka,qrI,sAt,c0g,v64,oA,A0,J0U,YsA,Gdu,OO1,uQt,QBA,MLg,HOA,NK,VK,l3,B8,qK,tLy,sr,aGt,P7I,Ur,IGI,kdT,nxj,Gd,FSa,pIa,zoT,u7,rDu,QW,C7A,yD1,MI,ADU,eot,oxt,iOt,Ro4,wIt,tD,ZOt,DIt,KO,hog,dIy,aB,Td,LO,gg,bOU,NgI,Ssu,XQ,VLA,lGI,BgA,IB,nO,FQ,pO,zd,mS,$IA,qsT,cDI,UIu,JDT,Ghj,Y_A,uij,Oma,QyT,MhU,
Hm4,xx,EII,thA,aMT,eL,TXA,Lh1,gIa,XF1,Pdu,IMa,i7,RB,kh4,DG,hD,nIT,zB1,mUI,Whu,xUj,fMt,Cdj,oIy,imA,RBg,wFu,Zmt,DUY,hB4,NXt,SL,jyg,VhT,lMT,$UA,syA,ss,UUg,vIg,JX4,uYy,MG4,H7j,EHt,tG1,KfA,TUT,Wf4,rPt,xAY,yPj,ert,Km,APa,RrY,DAt,hra,dAt,b7j,SyA,NUT,jey,VGt,BUA,$A1,wM4,qyj,set,cPg,UAt,vHg,JPA,YWU,GXT,uxU,H2A,QEI,Kvy,ElY,tEy,LvA,glt,XwT,a1T,I1Y,T_U,nlt,fm,Fvy,Cm,AX,pwU,mcA,WvA,f14,Dct,yTa,CFu,ATu,i2t,eN1,jE1,b2Y,VEa,l1a,B_U,$cy,qWT,cTa,sEu,UcY,vlA,JTy,YHj,u4g,Q1I,MoA,HHg,tou,E4g,p4Y,wX,zPT,W1Y,ryU,x3g,fE4,
Cig,ePj,Ayu,o44,NU,jh,iHY,ld,d3j,$I,SHj,qU,lEg,$3y,OGy,YH,HG1,Egg,TCA,K_a,anj,MA,L_j,ggt,P9T,InU,kR4,ngt,F_T,pKA,ziU,W_U,Tm,rdA,L7,PM,ydg,FY,RiT,iGj,DNt,mf,xH,dNt,bGU,S5a,NC1,j2u,f7,cdy,s2I,eG,UNt,oe,Re,Y0T,GCa,unT,Qwj,Hqt,MVt,Eqt,Vn,Iaa,kCy,qA,xCy,mCj,faY,Uy,ANU,vM,JP,oqt,iq1,Zq4,dCU,bqT,S0I,Yl,jwj,NoU,swj,cNg,vq1,u3y,OJa,MKj,HJu,tKA,Kmt,aCj,TNU,g7y,XYt,ICt,k5u,n74,Hw,pYu,L2,m6I,Wm4,r1A,fCI,zfY,Fm4,x6I,aE,y1t,iJU,A1t,ZJj,Q3t,MgA,HjY,EdY,n2,KN1,tgt,aHT,LNU,zX,XDj,IHY,r_,f2,xl,zQ4,pDj,Pot,fHg,ijU,
Zjt,wDj,d2t,oE,Sk1,Nj1,lHt,BjT,D1,qkA,d_,bF,U2j,YtA,u1A,OAj,HA1,ETj,t9t,KUU,SE,Tay,LUA,gTU,XcA,IUI,kNj,nTI,FUj,VM,$l,mty,WUu,roA,Clt,yo1,eTt,DtU,hT4,RTt,bAU,StA,Nag,ui,OH,Qg,M3,Baj,$tA,EH,qtg,snU,cou,UtA,Jot,YKj,G14,uA1,vTu,OXa,LH,McU,aZy,X4,KRU,TJg,QxA,LRa,I1,X$a,PcA,IZg,k1Y,FRj,nsg,p$T,WRy,zIj,rvt,Avj,iX4,w$g,hIy,DZU,ZXt,dZt,bX1,NJY,Vct,jx4,lZY,fH,$ZA,qKI,sxA,cvt,UZU,Jvu,vsj,YUj,GbY,HQI,QKy,Myy,tya,K7j,ayu,L7Y,TSI,gNA,X2A,IyI,nNa,zSa,W7T,muU,$4,rW4,kb1,oNj,RSU,w2a,v4,ZQ1,hSt,SUU,VyT,jKt,qUy,sKY,
cWj,Uut,JWj,Qia,YGa,uXg,OUt,M71,HUY,t74,EGU,asu,KZI,a2,TKI,gGA,XC4,nG4,nG,Fw,pG,zR,pCg,WK,zUt,mWj,rC,xWj,e1,o2,i9,eUT,R2,iU1,Dn,RUY,wCY,ZUA,DWg,b9,hUj,dWA,bUT,NKy,V74,$Wt,siA,cK,cHj,UWt,vGT,JHA,Yba,GA4,uEI,OBA,Jd,HBI,E31,tlt,KwI,ab4,TGt,Lwu,g3T,Xm1,P01,Ib1,kAA,n3a,tN,Ahj,o3g,Kq,aw,TC,iB4,Rmj,wmA,ZBj,D7j,hm4,d7y,VlT,lb4,BGA,$7j,qbU,Pj,kq,nq,Fn,mT,Wj,ro,chY,fq,v3Y,Cq,JhA,YxA,yH,GOg,ufA,ODy,LOT,XnU,FO1,WOA,mbA,got,rjj,CMy,Sxj,RYI,BB1,ZDA,VNu,$bu,Za,s41,hN,Ub4,voj,Y3U,GUt,uS1,QD4,NC,Hdy,Eya,tkt,Kaa,a9A,
THt,Lay,MkA,Pqt,I9a,kUY,VH,WaI,rRY,m4u,f9Y,Cqt,yRt,eMA,D4Y,S3t,jDa,vj,cRg,q3u,sDY,GSI,OzY,QSy,Mrj,HzY,EhA,trU,EV,kSj,F2u,PvA,Xx1,nhT,avu,zst,iz4,rfy,x5A,fvY,jSu,lvI,NEA,cfU,SjT,K2T,sSI,W2I,ohg,Vr4,pxj,L2A,TEa,ghu,Ivt,bz1,CJ,Twj,gCY,XEg,P5y,IjY,xvT,A$j,oCa,h1,R_A,DvY,Nwj,bKu,V0T,ljt,$vt,qej,sdY,c$1,vC4,Uva,BY,M8I,Qzt,O$j,KzU,H$t,aL4,t8t,T4a,Lzj,ILj,XU4,P64,n2I,pUj,z8a,rLI,xFy,fLA,C6T,e8I,ALU,Yd,i$4,GB,R8U,DFy,wUA,h8A,N4t,jzu,B4T,qnY,Kj,a3,v2U,JLI,TB,Lj,YAt,gj,XP,G0j,PD,uOa,I3,Oyu,Qft,nj,M6T,HyT,EMA,
t6U,KJy,TVt,aKT,gMy,IKa,P$U,k0j,nMI,LJA,FJI,mzg,z31,XHI,WJ4,rVI,WD,xzA,C$I,fKj,yV1,e3A,oMt,AVg,iyj,xd,wHU,Zy4,R3g,h3j,dzY,byu,V6A,$za,vM4,uUj,fj,M5j,Hc1,Cj,EU4,o3,io,gUA,eg,ZH,Xa4,PO1,kyT,nUI,paA,mPa,WKI,rru,xPa,yrt,R4j,oUj,COj,wa4,ZcA,bo,icA,DPt,jg,h4j,dPy,bc4,SD4,lBA,NQY,V5t,sGY,crt,GwT,YSg,Q9g,a0I,T0T,gSI,PTy,I0T,nSA,FGy,pGt,m1T,WGY,rmA,CTI,oSt,iug,ymj,wGt,D11,Zu1,R$U,h$4,buj,SSt,N04,j9U,VqA,B0j,l0t,qSI,Jmy,cmg,s9U,Gjt,ul,Ot,Qv,u_1,OVy,QOy,MIy,LA,KVj,auT,TfU,LVt,X1,kT,IuU,n5j,FVT,zbA,rE4,F1,pA,
xOY,zN,yEa,ebA,AEj,ra,ZVY,bVj,NfY,jOY,VIj,Bfa,$Ou,qRA,UOY,fA,v5j,GM1,CA,udu,Hay,yv,Kjj,e9,il,Rn,aJI,LjT,Tdj,XvA,PuU,IJT,kMA,gDy,m$4,Wju,x$u,CuI,oDg,AtA,iaA,wvt,ZaA,D$A,hWg,d$4,ba4,S9g,Vbt,Nd4,bl,Bd1,S9,$$a,j9,Vv,q9t,sPa,ctu,U$T,vDt,ll,Jtj,Yzj,GWg,u01,Quj,MmU,HLI,Etj,tmA,aIu,KlY,Bc,Lla,XyT,PPt,IIg,kWt,py1,maT,cc,r7t,fI1,CPI,y7Y,eta,A7y,ot1,iLy,Rtt,zty,Wl1,wyt,ZLA,bL4,SzA,N1g,ju4,Qs4,EpA,tXT,K3T,H3U,PDj,npa,IcY,F3g,moU,rgT,fc1,AgU,ecj,w0g,H$,Z3Y,Doa,EK,hcg,tv,dog,b3A,SqA,jsu,Nk4,VXa,lcA,BkI,$o1,YEj,
us4,QZt,OMj,Uoj,ssU,HM1,ttI,gc1,XTa,kpj,WAg,xR4,LX,fhu,yKU,ehj,ocT,ZMj,dRj,Nxy,jZj,Vtj,lhA,cKA,BxT,YLj,GGy,uVA,Q_t,Ix,MDj,Ewg,tDA,KPI,af1,Tut,LPu,gwT,Pay,IfT,pX,kGt,nwA,pJg,mR,FPu,mQ4,ffT,xs,CaT,yw4,ezI,iku,RzI,AwT,Zkg,bkY,SLj,NuU,Av,j_T,$Qy,qLI,DZ,UQj,s_a,cwu,Yhj,GcU,uug,OlA,VA,ER4,tCt,KDt,a_j,Tpg,Pfa,nR1,kct,I_I,FDg,zkT,mEI,Cft,WDU,yM4,AMy,ek1,DEy,blu,Npj,VCa,vRI,nQ,Y24,Q8y,HI4,IK,fQ,L9y,IAt,PE1,nYU,F9T,z9t,pZI,myA,W9u,CQ,pny,gYu,kkI,XZy,rS,fA1,CEA,yCt,e91,hW,ACT,oYA,iI1,R91,wZU,Nu,ZIu,dyj,S2g,
N8u,s8A,Uyg,vYj,JCt,Grt,uRA,JW,Qtg,MZt,HZt,EfI,tZA,KBA,TMU,gfu,Pwy,IYY,mHt,pOj,WBj,fYt,CwT,HC,yi1,eFT,AiA,RFA,ZZA,wOu,hFj,bZI,ai,NMT,jtj,S6T,VZY,lYt,$H1,sty,q6y,ciT,BMu,UHA,vf1,Jiu,YoU,Gea,uGg,O8A,QVt,Mx4,txj,EKU,KeU,TWa,amA,TL,LeT,PAA,Fey,gK1,meT,Wet,rsI,xeA,ysy,Z8t,Deg,dey,b8g,rK,Vxg,qoa,Uej,xG,ylY,vKg,fRa,CpA,e5U,ZRy,yc,Diy,h5j,bRI,SaA,NzA,jHY,lRU,BzY,G$j,UiI,JlU,Ory,uyj,QWA,MYA,E8g,KbI,TYY,g8T,X9T,IFI,fFj,egt,o8y,irT,RgT,w9j,Zr4,hg4,d8Y,NYa,jW4,VYy,lFj,BYj,$8y,qMA,sWg,v8u,G9I,S7,NW,j7,u71,ONT,
BC,MQI,Xda,pdI,nBU,Dhy,h7a,dhu,EBU,gBA,aDT,Suy,ND4,jNj,VQu,IDt,lDy,$ht,sNu,vBa,Jqu,u0,tPT,aly,Lo4,gQI,PYT,XAA,nQI,pA1,CYY,xwa,mwA,flj,Wot,ySt,i0g,FE,pB,Sit,hdt,jYt,VPT,B7g,$wj,mw,qiy,Uwg,vQU,JSA,YPA,EJA,HpY,o$,gJt,Db,PRg,I5a,ksj,nJY,Fpt,pzt,zOI,mXg,Wpy,rp1,xXU,dG,f5y,CRY,ypg,eOA,Apj,oJT,ipA,ROt,Sl,wzA,Zp1,DXa,hO1,dXA,bpA,SPA,N9U,jba,V4j,l5T,B9g,$Xt,jl,sbA,UXu,JpT,urj,Mfj,Ho4,EzY,K8I,TOI,L8a,gzA,Ub,nzg,Ida,F8T,pWA,zCI,rQT,xJg,fdg,yQt,a4,AQY,tj,ioA,RCT,TO,wWj,Zot,DJI,hCy,gB,NOa,VfY,skI,qpU,UJj,vzy,
zO,JQt,Yv1,ubY,Qgj,Mij,Eiu,ti4,OSI,Kda,XiY,ni1,Fdu,mO,piu,zKg,fT1,mlj,r4a,xlA,iSY,y4a,RKI,ZSg,hKA,dlu,bS4,Svu,Nm1,jgt,lTj,Bmj,$lj,qvU,sgI,UlU,J4A,uBY,H9U,KxT,Teg,iM,Xej,PmT,IpU,kQI,n$A,peT,z0j,mf4,Wxt,r3u,xf4,fpY,Cmj,y3A,e0U,A3j,i9y,o$T,Z94,h0u,ZS,dfa,Nea,SBa,lpa,Be4,$fY,c3t,J3Y,v$t,sLg,uJA,GFU,E1j,Oga,Nb,MzY,XQy,aXU,TlY,LtI,g1t,Pt4,kFI,IXt,jN,V4,rkj,Ftt,WtA,mrj,pQj,zRa,Ctj,eRu,o1j,AkA,ig1,Dru,ZgA,drA,Nlt,Vz4,SFt,lXA,$rA,Blt,sJt,v14,qb,JkU,YCI,Gzt,MBI,T6t,cn,gPy,PUY,uq,nPT,IOI,kzY,GU,mV4,FYU,pPj,
WYt,xVY,rbj,ybI,eGy,oPj,iFT,RGT,wPt,ZF1,hGI,dV4,gH,SCT,VBj,lOA,ky,B6t,qCA,O_A,ma,vPj,u$A,Jby,Y7j,EeY,H_T,Tnj,tsA,LCI,get,xy,XlI,PHj,Irg,yZ,kZj,fd,plj,zJg,mkt,WCt,rAg,frU,AA4,oe1,wlA,Z_U,hJ1,S7j,dk1,b_U,NnY,VsU,lra,Bna,$kg,q7g,cAT,vej,JAI,GqA,Ygj,uDy,O6y,Mnt,H61,Px4,g0t,n0y,F6t,pgU,zpY,CxA,$y,y51,epu,A5y,o0Y,wgA,Z6j,DnA,hp4,b6u,Sga,N24,jpY,Vnj,l$T,$ng,qgI,v3,v0t,Unt,c5u,spT,YJg,OEA,GVj,MeT,HEj,teu,KH4,aet,TFA,LHA,kVt,g9Y,XSt,PVI,n9I,FHI,pS4,IeI,uv,WH4,xL1,rF1,M5,feg,yFu,exy,AFu,CVu,o9j,iEU,Rxj,wST,
ZEt,hxI,dLY,bEt,SJu,VeI,jl1,sla,NFT,Ej,cFu,le4,qJa,v9a,JFu,YlI,GaT,uzy,Q64,MAA,HW1,tAU,K5T,Ts1,guU,nut,Ika,kaY,PGy,Xkg,F5Y,kh,pkt,nz,zwA,mmT,CGg,ew1,Acu,oua,iW4,Rwj,wk1,xh,fz,bWu,DmU,ZW4,hwI,vuA,s6a,dmt,qlt,Q7a,MUj,HCa,Eju,tUt,TrI,gjt,PXI,kI1,njt,Fcg,WcA,mgt,ruj,foY,Bx,eeU,Au4,ojI,iCA,Ret,wLT,ZCI,q5,sj,heU,dgI,S$t,VU4,cuy,GH1,YQj,uNg,QqA,M3y,HiI,EAU,t3U,K$j,YC,aiA,kHA,nAy,XrU,gAj,Iig,PCa,W$j,rnI,xxj,fiy,CCA,ynA,oA1,Anj,eVT,SQA,dxj,N$I,V3j,jqu,B$y,sqT,Uxj,$xt,qQj,MaI,EvU,KWT,ThY,gvI,PeA,FWu,pVA,zLu,
rOt,WWA,mYI,xYg,fQt,CeT,yOu,eLt,AOA,ov1,ihU,RL1,wVu,DYA,hLu,dYA,bht,Sc1,Nht,Vay,lQt,Bht,$Yj,qcT,sFA,vvY,JOI,GEa,Of1,u51,QTt,X9,MuU,Hfy,EFg,tut,T5j,a3I,LMI,gFt,Xh4,PrY,I3A,kEY,nF4,FMI,ph1,zXt,m0A,WMu,r6I,x0U,f3I,y6u,Crg,eXu,A6j,oFu,ifU,RXA,whT,ZfI,D0A,rw,d0g,bfy,SmA,N5U,jT4,l3a,B54,$0g,qmj,sTg,c6u,U0u,J6A,YdI,uC4,yY,MMA,a8a,tMt,EEu,HtT,KkY,gEI,X6A,Pnt,I8j,nEI,Fkj,p6A,mDt,zEg,Wk1,raT,xDu,yaj,eEj,Aaa,oEY,ity,REY,DDu,hE4,dw,jQg,VMy,BIj,sQA,qdU,ca1,UDa,b5,Nv,JaY,l5,BE,Ovj,YNu,G3U,Hvt,EZj,t$g,Kn1,gZA,Pz4,
Igt,k3A,nZt,Fnu,z2A,mBg,WnI,r94,xBt,fgu,Czu,se,y91,e2y,Ue,A94,oZt,ivt,R2I,wRA,Zvt,J$,Y2,DBj,h24,GP,dBt,bvj,SNy,Nyt,V$j,lgg,$BY,vZA,UBg,c9A,J9g,YYA,ErY,OYj,QmA,Mwt,uWA,HYy,twA,Krg,Tqu,Lrt,On,P1y,I6u,kJj,nrU,FrA,zDu,Wrt,f6t,AJY,yJ4,QN,C1u,w_A,Dsj,MF,hDt,dsj,bYA,SYI,NqU,VwA,l6U,$sU,qY4,cJu,Us4,G6a,OPa,MHu,Qay,EWu,tHt,KQa,aPY,LQa,gW1,XtT,PWt,IPa,k6I,nWa,FQg,pta,mqa,WQt,yIA,eqt,AIA,oWa,iP4,Rqa,PU,DqU,dq1,bP4,S1A,NZY,jat,lPU,BZt,$qT,q1T,cIj,UqY,vWt,n$,JIg,YfY,OwA,QI4,F2,p$,E_T,MFy,tFy,TPT,KIt,LIU,XBI,yN,
PbT,I2u,k8j,pBy,mGu,e8,r81,xGj,f2j,Cb1,y8I,e1U,A8T,o_t,iw4,DG4,h1y,NPa,dG1,Sfj,jIj,VF4,l2j,qf4,sIA,c84,v_t,J8j,Mju,Qcg,azU,gLu,hL,Xog,PZt,m3I,d4,Izg,kuy,FXa,m_Y,WXt,AxT,oLU,isu,RyY,woA,ZsA,d_A,bs1,N3U,Vj1,SXI,jcY,B3y,lzg,qX4,U_y,scj,vL4,Jxg,YZt,G44,ucU,On1,MWI,QCj,KLu,LLa,aWA,gXT,XNY,P4A,qF,IWt,k4a,cU,FLT,nXU,pN1,mTU,zuy,fWA,C4I,eua,JL,oXt,inI,Ru1,wNa,huI,bna,jCt,Ni4,VWy,lW1,BiA,UTI,Ena,GDg,KqA,aw4,LqU,gnu,PQA,Iwy,kDj,nnt,FqA,p5I,Wqy,r2y,xST,fwj,enY,onA,i4T,A2A,w54,RnY,b41,S8j,NL1,jRu,Vv1,lwu,BLu,
q8U,USt,vnA,J2I,YOy,Oej,ujy,QMT,Emy,M24,t2t,KFA,a71,Tvy,XXt,gma,kKy,FFj,zva,mdI,WF4,re4,xdt,CKT,f7y,ev1,ZeI,dd4,hvA,beA,SOa,Nvt,V2y,ny,Bv1,z0,qOj,ceg,UdU,utk,QU1,tT4,atT,TAV,gak,XuI,PyX,kg2,F42,puI,mjT,xjI,rYR,W4R,xM,Cy1,ft1,yYV,eA1,AY_,oaT,i1U,RAE,wu_,Djk,hAM,djR,Cy,b12,SI1,NAk,jUR,VTX,lt2,$j1,qI4,sUE,cYM,Uj4,JY2,Y4X,G2V,QXE,Rf,TRT,MRT,gkl,P_U,mMU,WEM,rU_,xMR,ZK,RlU,$H,DK,dV,w1E,ZTR,dMT,S4X,bT4,S6,NRV,jXX,VRI,lV4;
YIt=function(){var Y,G;return typeof CSS!=="undefined"&&((G=(Y=CSS).supports)==null?void 0:G.call(Y,"selector(:has(*))"))};
GgA=function(Y){return Y.visibility!=="hidden"&&Y.display!=="none"};
O1Y=function(Y){if(YIt()||Y.tagName!=="DETAILS"?!Y.matches(uta):Y.querySelector("summary")!==null)return-1;Y=Y.getAttribute("tabindex")||"0";return Number(Y)};
QUu=function(Y){return Y.some(function(G){return O1Y(G)>0})};
MTy=function(Y){if(Y.textContent||Y.ariaLabel)return!0;if(Y instanceof HTMLInputElement){if(!Y.labels)return!1;Y=_.E(Y.labels);for(var G=Y.next();!G.done;G=Y.next())if(G.value.textContent)return!0}return!1};
H1U=function(Y){return Y.sort(function(G,u){return O1Y(u)-O1Y(G)})};
_.Ea1=function(Y){Y=Array.from(Y.querySelectorAll(uta)).filter(function(G){return(GgA(G.style)?GgA(window.getComputedStyle(G)):!1)&&MTy(G)});
return QUu(Y)?H1U(Y):Y};
_.Ya=function(Y,G){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Ya);else{var u=Error().stack;u&&(this.stack=u)}Y&&(this.message=String(Y));G!==void 0&&(this.cause=G)};
Gg=function(){throw Error("F");};
tTI=function(Y,G){G=String.fromCharCode.apply(null,G);return Y==null?G:Y+G};
L4u=function(Y){var G=!1;G=G===void 0?!1:G;if(K4Y){if(G&&(at1?!Y.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(Y)))throw Error("G");Y=(TAt||(TAt=new TextEncoder)).encode(Y)}else{for(var u=0,O=new Uint8Array(3*Y.length),Q=0;Q<Y.length;Q++){var M=Y.charCodeAt(Q);if(M<128)O[u++]=M;else{if(M<2048)O[u++]=M>>6|192;else{if(M>=55296&&M<=57343){if(M<=56319&&Q<Y.length){var t=Y.charCodeAt(++Q);if(t>=56320&&t<=57343){M=(M-55296)*1024+t-56320+65536;O[u++]=M>>18|
240;O[u++]=M>>12&63|128;O[u++]=M>>6&63|128;O[u++]=M&63|128;continue}else Q--}if(G)throw Error("G");M=65533}O[u++]=M>>12|224;O[u++]=M>>6&63|128}O[u++]=M&63|128}}Y=u===O.length?O:O.subarray(0,u)}return Y};
Qj=function(Y){_.OI.setTimeout(function(){throw Y;},0)};
_.Hu=function(Y){for(var G=[],u=0,O=0;O<Y.length;O++){var Q=Y.charCodeAt(O);Q<128?G[u++]=Q:(Q<2048?G[u++]=Q>>6|192:((Q&64512)==55296&&O+1<Y.length&&(Y.charCodeAt(O+1)&64512)==56320?(Q=65536+((Q&1023)<<10)+(Y.charCodeAt(++O)&1023),G[u++]=Q>>18|240,G[u++]=Q>>12&63|128):G[u++]=Q>>12|224,G[u++]=Q>>6&63|128),G[u++]=Q&63|128)}return G};
gaa=function(Y){for(var G=[],u=0,O=0;u<Y.length;){var Q=Y[u++];if(Q<128)G[O++]=String.fromCharCode(Q);else if(Q>191&&Q<224){var M=Y[u++];G[O++]=String.fromCharCode((Q&31)<<6|M&63)}else if(Q>239&&Q<365){M=Y[u++];var t=Y[u++],K=Y[u++];Q=((Q&7)<<18|(M&63)<<12|(t&63)<<6|K&63)-65536;G[O++]=String.fromCharCode(55296+(Q>>10));G[O++]=String.fromCharCode(56320+(Q&1023))}else M=Y[u++],t=Y[u++],G[O++]=String.fromCharCode((Q&15)<<12|(M&63)<<6|t&63)}return G.join("")};
_.EI=function(Y,G){return Y.lastIndexOf(G,0)==0};
tY=function(Y,G){var u=Y.length-G.length;return u>=0&&Y.indexOf(G,u)==u};
_.K1=function(Y){return/^[\s\xa0]*$/.test(Y)};
_.gA=function(Y,G){return Y.indexOf(G)!=-1};
_.Pu=function(Y,G){return _.gA(Y.toLowerCase(),G.toLowerCase())};
_.Ft=function(Y,G){var u=0;Y=IU(String(Y)).split(".");G=IU(String(G)).split(".");for(var O=Math.max(Y.length,G.length),Q=0;u==0&&Q<O;Q++){var M=Y[Q]||"",t=G[Q]||"";do{M=/(\d*)(\D*)(.*)/.exec(M)||["","","",""];t=/(\d*)(\D*)(.*)/.exec(t)||["","","",""];if(M[0].length==0&&t[0].length==0)break;u=Xuj(M[1].length==0?0:parseInt(M[1],10),t[1].length==0?0:parseInt(t[1],10))||Xuj(M[2].length==0,t[2].length==0)||Xuj(M[2],t[2]);M=M[3];t=t[3]}while(u==0)}return u};
Xuj=function(Y,G){return Y<G?-1:Y>G?1:0};
_.zg=function(){var Y=_.OI.navigator;return Y&&(Y=Y.userAgent)?Y:""};
PyU=function(Y){if(!m4||!Wu)return!1;for(var G=0;G<Wu.brands.length;G++){var u=Wu.brands[G].brand;if(u&&_.gA(u,Y))return!0}return!1};
rA=function(Y){return _.gA(_.zg(),Y)};
xa=function(){return m4?!!Wu&&Wu.brands.length>0:!1};
Itj=function(){return xa()?!1:rA("Opera")};
kgg=function(){return xa()?!1:rA("Trident")||rA("MSIE")};
naj=function(){return xa()?PyU("Microsoft Edge"):rA("Edg/")};
C1=function(){return rA("Firefox")||rA("FxiOS")};
_.F4g=function(){return rA("Safari")&&!(eT()||(xa()?0:rA("Coast"))||Itj()||(xa()?0:rA("Edge"))||naj()||(xa()?PyU("Opera"):rA("OPR"))||C1()||rA("Silk")||rA("Android"))};
eT=function(){return xa()?PyU("Chromium"):(rA("Chrome")||rA("CriOS"))&&!(xa()?0:rA("Edge"))||rA("Silk")};
_.puj=function(){return rA("Android")&&!(eT()||C1()||Itj()||rA("Silk"))};
zAa=function(Y){var G={};Y.forEach(function(u){G[u[0]]=u[1]});
return function(u){return G[u.find(function(O){return O in G})]||""}};
mj1=function(Y){var G=_.zg();if(Y==="Internet Explorer"){if(kgg())if((Y=/rv: *([\d\.]*)/.exec(G))&&Y[1])G=Y[1];else{Y="";var u=/MSIE +([\d\.]+)/.exec(G);if(u&&u[1])if(G=/Trident\/(\d.\d)/.exec(G),u[1]=="7.0")if(G&&G[1])switch(G[1]){case "4.0":Y="8.0";break;case "5.0":Y="9.0";break;case "6.0":Y="10.0";break;case "7.0":Y="11.0"}else Y="7.0";else Y=u[1];G=Y}else G="";return G}var O=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");u=[];for(var Q;Q=O.exec(G);)u.push([Q[1],Q[2],Q[3]||void 0]);
G=zAa(u);switch(Y){case "Opera":if(Itj())return G(["Version","Opera"]);if(xa()?PyU("Opera"):rA("OPR"))return G(["OPR"]);break;case "Microsoft Edge":if(xa()?0:rA("Edge"))return G(["Edge"]);if(naj())return G(["Edg"]);break;case "Chromium":if(eT())return G(["Chrome","CriOS","HeadlessChrome"])}return Y==="Firefox"&&C1()||Y==="Safari"&&_.F4g()||Y==="Android Browser"&&_.puj()||Y==="Silk"&&rA("Silk")?(G=u[2])&&G[1]||"":""};
W4T=function(Y){if(xa()&&Y!=="Silk"){var G=Wu.brands.find(function(u){return u.brand===Y});
if(!G||!G.version)return NaN;G=G.version.split(".")}else{G=mj1(Y);if(G==="")return NaN;G=G.split(".")}return G.length===0?NaN:Number(G[0])};
AY=function(){return m4?!!Wu&&!!Wu.platform:!1};
_.rYA=function(){return AY()?Wu.platform==="Android":rA("Android")};
xjj=function(){return rA("iPhone")&&!rA("iPod")&&!rA("iPad")};
_.oU=function(){return xjj()||rA("iPad")||rA("iPod")};
_.ftu=function(){return AY()?Wu.platform==="macOS":rA("Macintosh")};
_.Cyu=function(){return AY()?Wu.platform==="Windows":rA("Windows")};
_.yYt=function(){return AY()?Wu.platform==="Chrome OS":rA("CrOS")};
_.RU=function(Y){return Y[Y.length-1]};
eAu=function(Y){for(var G=_.Zt,u=typeof Y==="string"?Y.split(""):Y,O=Y.length-1;O>=0;O--)if(O in u&&G.call(void 0,u[O],O,Y))return O;return-1};
_.ST=function(Y,G){return _.Dt(Y,G)>=0};
_.AYy=function(Y,G){_.ST(Y,G)||Y.push(G)};
_.Nj=function(Y,G){G=_.Dt(Y,G);var u;(u=G>=0)&&_.oa1(Y,G);return u};
_.oa1=function(Y,G){Array.prototype.splice.call(Y,G,1)};
_.Vj=function(Y){var G=Y.length;if(G>0){for(var u=Array(G),O=0;O<G;O++)u[O]=Y[O];return u}return[]};
_.Bu=function(Y,G){for(var u=1;u<arguments.length;u++){var O=arguments[u];if(_.ly(O)){var Q=Y.length||0,M=O.length||0;Y.length=Q+M;for(var t=0;t<M;t++)Y[Q+t]=O[t]}else Y.push(O)}};
_.RA4=function(Y,G,u,O){Array.prototype.splice.apply(Y,i1Y(arguments,1))};
i1Y=function(Y,G,u){return arguments.length<=2?Array.prototype.slice.call(Y,G):Array.prototype.slice.call(Y,G,u)};
wuy=function(Y,G){G=G||Y;for(var u=0,O=0,Q={};O<Y.length;){var M=Y[O++],t=_.$a(M)?"o"+_.cu(M):(typeof M).charAt(0)+M;Object.prototype.hasOwnProperty.call(Q,t)||(Q[t]=!0,G[u++]=M)}G.length=u};
_.Dja=function(Y,G,u){u=u||_.Z1j;for(var O=0,Q=Y.length,M;O<Q;){var t=O+(Q-O>>>1);var K=u(G,Y[t]);K>0?O=t+1:(Q=t,M=!K)}return M?O:-O-1};
_.UI=function(Y,G,u){if(!_.ly(Y)||!_.ly(G)||Y.length!=G.length)return!1;var O=Y.length;u=u||hAj;for(var Q=0;Q<O;Q++)if(!u(Y[Q],G[Q]))return!1;return!0};
_.Z1j=function(Y,G){return Y>G?1:Y<G?-1:0};
hAj=function(Y,G){return Y===G};
djA=function(Y,G,u){G=Array.prototype.splice.call(Y,G,1);Array.prototype.splice.call(Y,u,0,G[0])};
_.vu=function(Y,G){G===void 0&&(G=0);b1g();G=SIu[G];for(var u=Array(Math.floor(Y.length/3)),O=G[64]||"",Q=0,M=0;Q<Y.length-2;Q+=3){var t=Y[Q],K=Y[Q+1],L=Y[Q+2],g=G[t>>2];t=G[(t&3)<<4|K>>4];K=G[(K&15)<<2|L>>6];L=G[L&63];u[M++]=g+t+K+L}g=0;L=O;switch(Y.length-Q){case 2:g=Y[Q+1],L=G[(g&15)<<2]||O;case 1:Y=Y[Q],u[M]=G[Y>>2]+G[(Y&3)<<4|g>>4]+L+O}return u.join("")};
jUT=function(Y){var G="";NAa(Y,function(u){G+=String.fromCharCode(u)});
return G};
_.VTU=function(Y){var G=[];NAa(Y,function(u){G.push(u)});
return G};
_.JY=function(Y){var G=Y.length,u=G*3/4;u%3?u=Math.floor(u):_.gA("=.",Y[G-1])&&(u=_.gA("=.",Y[G-2])?u-2:u-1);var O=new Uint8Array(u),Q=0;NAa(Y,function(M){O[Q++]=M});
return Q!==u?O.subarray(0,Q):O};
NAa=function(Y,G){function u(L){for(;O<Y.length;){var g=Y.charAt(O++),P=O4[g];if(P!=null)return P;if(!_.K1(g))throw Error("I`"+g);}return L}
b1g();for(var O=0;;){var Q=u(-1),M=u(0),t=u(64),K=u(64);if(K===64&&Q===-1)break;G(Q<<2|M>>4);t!=64&&(G(M<<4&240|t>>2),K!=64&&G(t<<6&192|K))}};
b1g=function(){if(!O4){O4={};for(var Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),G=["+/=","+/","-_=","-_.","-_"],u=0;u<5;u++){var O=Y.concat(G[u].split(""));SIu[u]=O;for(var Q=0;Q<O.length;Q++){var M=O[Q];O4[M]===void 0&&(O4[M]=Q)}}}};
BAT=function(Y){return ltg[Y]||""};
sU4=function(Y){if(!$ju)return _.JY(Y);Y=qII.test(Y)?Y.replace(qII,BAT):Y;Y=atob(Y);for(var G=new Uint8Array(Y.length),u=0;u<Y.length;u++)G[u]=Y.charCodeAt(u);return G};
cYj=function(Y,G){Y.__closure__error__context__984382||(Y.__closure__error__context__984382={});Y.__closure__error__context__984382.severity=G};
_.QI=function(Y){Y=Error(Y);cYj(Y,"warning");return Y};
vaa=function(Y,G){if(Y!=null){var u;var O=(u=UjI)!=null?u:UjI={};u=O[Y]||0;u>=G||(O[Y]=u+1,Y=Error(),cYj(Y,"incident"),Qj(Y))}};
H1=function(){return typeof BigInt==="function"};
E4=function(Y,G,u){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(u===void 0?0:u)&&Symbol.for&&Y?Symbol.for(Y):Y!=null?Symbol(Y):Symbol():G};
gR=function(Y,G){tU||_.KT in Y||JYg(Y,Y4U);Y[_.KT]|=G};
Xe=function(Y,G){tU||_.KT in Y||JYg(Y,Y4U);Y[_.KT]=G};
G2t=function(Y){if(4&Y)return 512&Y?512:1024&Y?1024:0};
mE=function(Y){gR(Y,34);return Y};
W1=function(Y){gR(Y,8192);return Y};
ueU=function(Y){gR(Y,32);return Y};
eR=function(Y,G){return G===void 0?Y.copyOnWrite!==yI&&!!(2&(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.KT]|0)):!!(2&G)&&Y.copyOnWrite!==yI};
_.RX=function(Y,G){if(Y!=null)if(typeof Y==="string")Y=Y?new AU(Y,oX):_.i_();else if(Y.constructor!==AU)if(OTg&&Y!=null&&Y instanceof Uint8Array)Y=Y.length?new AU(new Uint8Array(Y),oX):_.i_();else{if(!G)throw Error();Y=void 0}return Y};
QX4=function(Y,G){if(typeof G!=="number"||G<0||G>=Y.length)throw Error();};
MR1=function(Y,G,u){var O=G&128?0:-1,Q=Y.length,M;if(M=!!Q)M=Y[Q-1],M=M!=null&&typeof M==="object"&&M.constructor===Object;var t=Q+(M?-1:0);for(G=G&128?1:0;G<t;G++)u(G-O,Y[G]);if(M){Y=Y[Q-1];for(var K in Y)!isNaN(K)&&u(+K,Y[K])}};
ZV=function(Y){return Y&128?wR:void 0};
_.tRg=function(Y){var G=HTu;if(!Ek1(Y)){var u,O;G=(O=(u=typeof G==="function"?G():G)==null?void 0:u.concat("\n"))!=null?O:"";throw Error("L`"+G+"`"+String(Y));}};
DV=function(Y){Y.isGuard_doNotManuallySetPrettyPlease=!0;return Y};
aVA=function(){var Y=KEt;return DV(function(G){for(var u in Y)if(G===Y[u]&&!/^[0-9]+$/.test(u))return!0;return!1})};
_.hU=function(Y){var G=Y;if(TR1(G)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(G))throw Error(String(G));}else if(LEA(G)&&!Number.isSafeInteger(G))throw Error(String(G));return gkA?BigInt(Y):Y=X1j(Y)?Y?"1":"0":TR1(Y)?Y.trim()||"0":String(Y)};
P_Y=function(Y,G){if(Y.length>G.length)return!1;if(Y.length<G.length||Y===G)return!0;for(var u=0;u<Y.length;u++){var O=Y[u],Q=G[u];if(O>Q)return!1;if(O<Q)return!0}};
IVI=function(Y){var G=Y>>>0;dR=G;SR=(Y-G)/4294967296>>>0};
VI=function(Y){if(Y<0){IVI(-Y);var G=_.E(k2I(dR,SR));Y=G.next().value;G=G.next().value;dR=Y>>>0;SR=G>>>0}else IVI(Y)};
FEu=function(Y){var G=nkA||(nkA=new DataView(new ArrayBuffer(8)));G.setFloat32(0,+Y,!0);SR=0;dR=G.getUint32(0,!0)};
p1j=function(Y,G){var u=G*4294967296+(Y>>>0);return Number.isSafeInteger(u)?u:_.B1(Y,G)};
zlA=function(Y,G){return _.hU(H1()?BigInt.asUintN(64,(BigInt(G>>>0)<<BigInt(32))+BigInt(Y>>>0)):_.B1(Y,G))};
qM=function(Y,G){var u=G&2147483648;u&&(Y=~Y+1>>>0,G=~G>>>0,Y==0&&(G=G+1>>>0));Y=p1j(Y,G);return typeof Y==="number"?u?-Y:Y:u?"-"+Y:Y};
mMY=function(Y,G){return H1()?_.hU(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(G))<<BigInt(32))+BigInt.asUintN(32,BigInt(Y)))):_.hU(_.s4(Y,G))};
WEj=function(Y){var G=dR,u=SR,O=u>>31;u=(u<<1|G>>>31)^O;Y(G<<1^O,u)};
xMT=function(Y,G){return rUy(Y,G,qM)};
rUy=function(Y,G,u){var O=-(Y&1);Y=(Y>>>1|G<<31)^O;G=G>>>1^O;return u(Y,G)};
_.B1=function(Y,G){G>>>=0;Y>>>=0;if(G<=2097151)var u=""+(4294967296*G+Y);else H1()?u=""+(BigInt(G)<<BigInt(32)|BigInt(Y)):(u=(Y>>>24|G<<8)&16777215,G=G>>16&65535,Y=(Y&16777215)+u*6777216+G*6710656,u+=G*8147497,G*=2,Y>=1E7&&(u+=Y/1E7>>>0,Y%=1E7),u>=1E7&&(G+=u/1E7>>>0,u%=1E7),u=G+fVA(u)+fVA(Y));return u};
fVA=function(Y){Y=String(Y);return"0000000".slice(Y.length)+Y};
_.s4=function(Y,G){G&2147483648?H1()?Y=""+(BigInt(G|0)<<BigInt(32)|BigInt(Y>>>0)):(G=_.E(k2I(Y,G)),Y=G.next().value,G=G.next().value,Y="-"+_.B1(Y,G)):Y=_.B1(Y,G);return Y};
c1=function(Y){if(Y.length<16)VI(Number(Y));else if(H1())Y=BigInt(Y),dR=Number(Y&BigInt(4294967295))>>>0,SR=Number(Y>>BigInt(32)&BigInt(4294967295));else{var G=+(Y[0]==="-");SR=dR=0;for(var u=Y.length,O=G,Q=(u-G)%6+G;Q<=u;O=Q,Q+=6)O=Number(Y.slice(O,Q)),SR*=1E6,dR=dR*1E6+O,dR>=4294967296&&(SR+=Math.trunc(dR/4294967296),SR>>>=0,dR>>>=0);G&&(G=_.E(k2I(dR,SR)),Y=G.next().value,G=G.next().value,dR=Y,SR=G)}};
k2I=function(Y,G){G=~G;Y?Y=~Y+1:G+=1;return[Y,G]};
JU=function(Y){return Array.prototype.slice.call(Y)};
_.YV=function(Y,G){throw Error(G===void 0?"unexpected value "+Y+"!":G);};
_.uN=function(Y){if(Y!=null&&typeof Y!=="number")throw Error("M`"+typeof Y+"`"+Y);return Y};
_.Ow=function(Y){if(Y==null||typeof Y==="number")return Y;if(Y==="NaN"||Y==="Infinity"||Y==="-Infinity")return Number(Y)};
C_t=function(Y){if(Y!=null&&typeof Y!=="boolean")throw Error("N`"+_.Q9(Y)+"`"+Y);return Y};
_.yUg=function(Y){if(Y==null||typeof Y==="boolean")return Y;if(typeof Y==="number")return!!Y};
_.tB=function(Y){switch(typeof Y){case "bigint":return!0;case "number":return M9(Y);case "string":return elj.test(Y);default:return!1}};
_.Kx=function(Y){if(!M9(Y))throw _.QI("enum");return Y|0};
_.ao=function(Y){return Y==null?Y:M9(Y)?Y|0:void 0};
AUa=function(Y){if(typeof Y!=="number")throw _.QI("int32");if(!M9(Y))throw _.QI("int32");return Y|0};
_.Tx=function(Y){return Y==null?Y:AUa(Y)};
_.Lx=function(Y){if(Y==null)return Y;if(typeof Y==="string"&&Y)Y=+Y;else if(typeof Y!=="number")return;return M9(Y)?Y|0:void 0};
_.oka=function(Y){if(Y==null)return Y;if(typeof Y==="string"&&Y)Y=+Y;else if(typeof Y!=="number")return;return M9(Y)?Y>>>0:void 0};
ZTT=function(Y){var G=void 0;G!=null||(G=_.gb?1024:0);if(!_.tB(Y))throw _.QI("int64");var u=typeof Y;switch(G){case 512:switch(u){case "string":return nx(Y);case "bigint":return String(Fg(64,Y));default:return iTy(Y)}case 1024:switch(u){case "string":return RlY(Y);case "bigint":return _.hU(Fg(64,Y));default:return w14(Y)}case 0:switch(u){case "string":return nx(Y);case "bigint":return _.hU(Fg(64,Y));default:return px(Y)}default:return _.YV(G,"Unknown format requested type for int64")}};
zx=function(Y){return Y==null?Y:ZTT(Y)};
DMA=function(Y){var G=Y.length;if(Y[0]==="-"?G<20||G===20&&Y<="-9223372036854775808":G<19||G===19&&Y<="9223372036854775807")return Y;c1(Y);return _.s4(dR,SR)};
hlY=function(Y){if(Y[0]==="-")var G=!1;else G=Y.length,G=G<20?!0:G===20&&Y<="18446744073709551615";if(G)return Y;c1(Y);return _.B1(dR,SR)};
px=function(Y){Y=my(Y);Wb(Y)||(VI(Y),Y=qM(dR,SR));return Y};
_.dM1=function(Y){Y=my(Y);Y>=0&&Wb(Y)||(VI(Y),Y=p1j(dR,SR));return Y};
iTy=function(Y){Y=my(Y);Wb(Y)?Y=String(Y):(VI(Y),Y=_.s4(dR,SR));return Y};
_.bTI=function(Y){Y=my(Y);Y>=0&&Wb(Y)?Y=String(Y):(VI(Y),Y=_.B1(dR,SR));return Y};
nx=function(Y){var G=my(Number(Y));if(Wb(G))return String(G);G=Y.indexOf(".");G!==-1&&(Y=Y.substring(0,G));return DMA(Y)};
RlY=function(Y){var G=my(Number(Y));if(Wb(G))return _.hU(G);G=Y.indexOf(".");G!==-1&&(Y=Y.substring(0,G));return H1()?_.hU(Fg(64,BigInt(Y))):_.hU(DMA(Y))};
w14=function(Y){return Wb(Y)?_.hU(px(Y)):_.hU(iTy(Y))};
_.S4U=function(Y){return Wb(Y)?_.hU(_.dM1(Y)):_.hU(_.bTI(Y))};
_.NRt=function(Y){var G=my(Number(Y));if(Wb(G)&&G>=0)return String(G);G=Y.indexOf(".");G!==-1&&(Y=Y.substring(0,G));return hlY(Y)};
_.jXU=function(Y){var G=my(Number(Y));if(Wb(G)&&G>=0)return _.hU(G);G=Y.indexOf(".");G!==-1&&(Y=Y.substring(0,G));return H1()?_.hU((0,_.xV)(64,BigInt(Y))):_.hU(hlY(Y))};
lVI=function(Y){if(Y==null)return Y;if(typeof Y==="bigint")return VRj(Y)?Y=Number(Y):(Y=Fg(64,Y),Y=VRj(Y)?Number(Y):String(Y)),Y;if(_.tB(Y))return typeof Y==="number"?px(Y):nx(Y)};
BRj=function(Y,G){G=G===void 0?!1:G;var u=typeof Y;if(Y==null)return Y;if(u==="bigint")return String(Fg(64,Y));if(_.tB(Y))return u==="string"?nx(Y):G?iTy(Y):px(Y)};
$Mg=function(Y){var G=typeof Y;if(Y==null)return Y;if(G==="bigint")return _.hU(Fg(64,Y));if(_.tB(Y))return G==="string"?RlY(Y):w14(Y)};
q4A=function(Y){var G=typeof Y;if(Y==null)return Y;if(G==="bigint")return _.hU((0,_.xV)(64,Y));if(_.tB(Y))return G==="string"?_.jXU(Y):_.S4U(Y)};
sXI=function(Y){if(Y==null)return Y;var G=typeof Y;if(G==="bigint")return String(Fg(64,Y));if(_.tB(Y)){if(G==="string")return nx(Y);if(G==="number")return px(Y)}};
cUg=function(Y){if(Y==null)return Y;var G=typeof Y;if(G==="bigint")return String((0,_.xV)(64,Y));if(_.tB(Y)){if(G==="string")return _.NRt(Y);if(G==="number")return _.dM1(Y)}};
_.Cx=function(Y){if(typeof Y!=="string")throw Error();return Y};
eS=function(Y){if(Y!=null&&typeof Y!=="string")throw Error();return Y};
_.AB=function(Y){return Y==null||typeof Y==="string"?Y:void 0};
JUA=function(Y,G,u,O){if(Y!=null&&Y[iN]===Ro)return Y;if(!Array.isArray(Y))return u?O&2?G[UMI]||(G[UMI]=vkI(G)):new G:void 0;u=Y[_.KT]|0;O=u|O&32|O&2;O!==u&&Xe(Y,O);return new G(Y)};
vkI=function(Y){Y=new Y;mE(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return Y};
Ywj=function(Y,G,u){Y=G?AUa(Y):_.Lx(Y);return Y==null?u?0:void 0:Y|0};
Gx1=function(Y){return Y};
ugA=function(Y){return Y};
QoA=function(Y,G,u,O,Q,M){Y=JUA(Y,O,u,M);Q&&(Y=Oxg(Y));return Y};
MSA=function(Y){return[Y,this.get(Y)]};
tSa=function(){return HxA||(HxA=new wb(mE([]),void 0,void 0,void 0,EVg))};
KyA=function(Y){var G=hB(db);return G?Y[G]:void 0};
LyY=function(Y,G){var u=u===void 0?!1:u;if(hB(aNu)&&hB(db)&&void 0===aNu){var O=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=O[db];if(!Q)return;if(Q=Q.reviveUnknownFields)try{Q(O,G,Tbj);return}catch(M){Qj(M)}}u&&(Y=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(u=hB(db))&&u in Y&&(Y=Y[u])&&delete Y[G])};
Xbt=function(Y,G){var u=hB(db),O;tU&&u&&((O=Y[u])==null?void 0:O[G])!=null&&vaa(gVt,3)};
IN4=function(Y,G){G<100||vaa(PNT,1)};
zjt=function(Y,G,u,O){var Q=O!==void 0;O=!!O;var M=hB(db),t;!Q&&tU&&M&&(t=Y[M])&&kxt(t,IN4);M=[];var K=Y.length;t=4294967295;var L=!1,g=!!(G&64),P=g?G&128?0:-1:void 0;if(!(G&1)){var I=K&&Y[K-1];I!=null&&typeof I==="object"&&I.constructor===Object?(K--,t=K):I=void 0;if(g&&!(G&128)&&!Q){L=!0;var k;t=((k=nVA)!=null?k:Gx1)(t-P,P,Y,I,void 0)+P}}G=void 0;for(k=0;k<K;k++){var n=Y[k];if(n!=null&&(n=u(n,O))!=null)if(g&&k>=t){var p=k-P,W=void 0;((W=G)!=null?W:G={})[p]=n}else M[k]=n}if(I)for(var C in I)K=I[C],
K!=null&&(K=u(K,O))!=null&&(k=+C,n=void 0,g&&!Number.isNaN(k)&&(n=k+P)<t?M[n]=K:(k=void 0,((k=G)!=null?k:G={})[C]=K));G&&(L?M.push(G):M[t]=G);Q&&hB(db)&&(Y=KyA(Y))&&Y instanceof Fyt&&(M[db]=pbA(Y));return M};
Wyj=function(Y){Y[0]=m9y(Y[0]);Y[1]=m9y(Y[1]);return Y};
m9y=function(Y){switch(typeof Y){case "number":return Number.isFinite(Y)?Y:""+Y;case "bigint":return VRj(Y)?Number(Y):""+Y;case "boolean":return Y?1:0;case "object":if(Array.isArray(Y)){var G=Y[_.KT]|0;return Y.length===0&&G&1?void 0:zjt(Y,G,m9y)}if(Y!=null&&Y[iN]===Ro)return rBA(Y);if(Y instanceof AU){G=Y.JSC$9141_value_;if(G==null)Y="";else if(typeof G==="string")Y=G;else{if($ju){for(var u="",O=0,Q=G.length-10240;O<Q;)u+=String.fromCharCode.apply(null,G.subarray(O,O+=10240));u+=String.fromCharCode.apply(null,
O?G.subarray(O):G);G=btoa(u)}else G=_.vu(G);Y=Y.JSC$9141_value_=G}return Y}if(Y instanceof wb)return Y=Y.size!==0?x9j(Y,Wyj):void 0,Y;return}return Y};
bN=function(Y,G){if(G){nVA=G==null||G===Gx1||G[fNa]!==CNy?Gx1:G;try{return rBA(Y)}finally{nVA=void 0}}return rBA(Y)};
rBA=function(Y){Y=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return zjt(Y,Y[_.KT]|0,m9y)};
ABg=function(Y){switch(typeof Y){case "boolean":return yBj||(yBj=[0,void 0,!0]);case "number":return Y>0?void 0:Y===0?ejI||(ejI=[0,void 0]):[-Y,void 0];case "string":return[0,Y];case "object":return Y}};
SS=function(Y,G){return oVa(Y,G[0],G[1])};
_.N9=function(Y,G,u){return oVa(Y,G,u,2048)};
oVa=function(Y,G,u,O){O=O===void 0?0:O;if(Y==null){var Q=32;u?(Y=[u],Q|=128):Y=[];G&&(Q=Q&-16760833|(G&1023)<<14)}else{if(!Array.isArray(Y))throw Error("P");Q=Y[_.KT]|0;if(ixA&&1&Q)throw Error("Q");2048&Q&&!(2&Q)&&RjT();if(Q&256)throw Error("R");if(Q&64)return(Q|O)!==Q&&Xe(Y,Q|O),Y;if(u&&(Q|=128,u!==Y[0]))throw Error("S");a:{u=Y;Q|=64;var M=u.length;if(M){var t=M-1,K=u[t];if(K!=null&&typeof K==="object"&&K.constructor===Object){G=Q&128?0:-1;t-=G;if(t>=1024)throw Error("U");for(var L in K)M=+L,M<t&&
(u[M+G]=K[L],delete K[L]);Q=Q&-16760833|(t&1023)<<14;break a}}if(G){L=Math.max(G,M-(Q&128?0:-1));if(L>1024)throw Error("V");Q=Q&-16760833|(L&1023)<<14}}}Xe(Y,Q|64|O);return Y};
RjT=function(){if(ixA)throw Error("T");vaa(wb4,5)};
hj1=function(Y,G){if(typeof Y!=="object")return Y;if(Array.isArray(Y)){var u=Y[_.KT]|0;return Y.length===0&&u&1?void 0:Zxj(Y,u,G)}if(Y!=null&&Y[iN]===Ro)return D9I(Y);if(Y instanceof wb){G=Y.arrayState;if(G&2)return Y;if(!Y.size)return;u=mE(x9j(Y));if(Y.valueCtor)for(Y=0;Y<u.length;Y++){var O=u[Y],Q=O[1];Q==null||typeof Q!=="object"?Q=void 0:Q!=null&&Q[iN]===Ro?Q=D9I(Q):Array.isArray(Q)?Q=Zxj(Q,Q[_.KT]|0,!!(G&32)):Q=void 0;O[1]=Q}return u}if(Y instanceof AU)return Y};
Zxj=function(Y,G,u){if(G&2)return Y;!u||4096&G||16&G?Y=V9(Y,G,!1,u&&!(G&16)):(gR(Y,34),G&4&&Object.freeze(Y));return Y};
d91=function(Y,G,u){Y=new Y.constructor(G);u&&(Y.copyOnWrite=yI);Y.noLegacyNull=yI;return Y};
D9I=function(Y){var G=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=G[_.KT]|0;return eR(Y,u)?Y:bx4(Y,G,u)?d91(Y,G):V9(G,u)};
V9=function(Y,G,u,O){O!=null||(O=!!(34&G));Y=zjt(Y,G,hj1,O);O=32;u&&(O|=2);G=G&16769217|O;Xe(Y,G);return Y};
Oxg=function(Y){var G=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=G[_.KT]|0;return eR(Y,u)?bx4(Y,G,u)?d91(Y,G,!0):new Y.constructor(V9(G,u,!1)):Y};
lN=function(Y){if(Y.copyOnWrite!==yI)return!1;var G=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;G=V9(G,G[_.KT]|0);gR(G,2048);Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=G;Y.copyOnWrite=void 0;Y.noLegacyNull=void 0;return!0};
Bb=function(Y){if(!lN(Y)&&eR(Y,Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.KT]|0))throw Error();};
q9=function(Y,G){G===void 0&&(G=Y[_.KT]|0);G&32&&!(G&4096)&&Xe(Y,G|4096)};
bx4=function(Y,G,u){return u&2?!0:u&32&&!(u&4096)?(Xe(G,u|2),Y.copyOnWrite=yI,!0):!1};
cb=function(Y,G,u,O,Q){var M=u+(Q?0:-1),t=Y.length-1;if(t>=1+(Q?0:-1)&&M>=t){var K=Y[t];if(K!=null&&typeof K==="object"&&K.constructor===Object)return K[u]=O,G}if(M<=t)return Y[M]=O,G;if(O!==void 0){var L;t=((L=G)!=null?L:G=Y[_.KT]|0)>>14&1023||536870912;u>=t?O!=null&&(M={},Y[t+(Q?0:-1)]=(M[u]=O,M)):Y[M]=O}return G};
_.Gn=function(Y,G,u,O,Q){var M=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=M[_.KT]|0;O=eR(Y,t)?1:O;Q=!!Q||O===3;O===2&&lN(Y)&&(M=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=M[_.KT]|0);Y=Swt(M,G);var K=Y===Uw?7:Y[_.KT]|0,L=Nbg(K,t);var g=4&L?!1:!0;if(g){4&L&&(Y=JU(Y),K=0,L=YO(L,t),t=cb(M,t,G,Y));for(var P=0,I=0;P<Y.length;P++){var k=u(Y[P]);k!=null&&(Y[I++]=k)}I<P&&(Y.length=I);u=(L|4)&-513;L=u&=-1025;L&=-4097}L!==K&&(Xe(Y,L),2&L&&Object.freeze(Y));return Y=joY(Y,L,M,
t,G,O,g,Q)};
joY=function(Y,G,u,O,Q,M,t,K){var L=G;M===1||(M!==4?0:2&G||!(16&G)&&32&O)?us(G)||(G|=!Y.length||t&&!(4096&G)||32&O&&!(4096&G||16&G)?2:256,G!==L&&Xe(Y,G),Object.freeze(Y)):(M===2&&us(G)&&(Y=JU(Y),L=0,G=YO(G,O),O=cb(u,O,Q,Y)),us(G)||(K||(G|=16),G!==L&&Xe(Y,G)));2&G||!(4096&G||16&G)||q9(u,O);return Y};
Swt=function(Y,G,u){Y=OT(Y,G,u);return Array.isArray(Y)?Y:Uw};
Nbg=function(Y,G){2&G&&(Y|=2);return Y|1};
us=function(Y){return!!(2&Y)&&!!(4&Y)||!!(256&Y)};
VSt=function(Y){return _.RX(Y,!0)};
lNy=function(Y){Y=JU(Y);for(var G=0;G<Y.length;G++){var u=Y[G]=JU(Y[G]);Array.isArray(u[1])&&(u[1]=mE(u[1]))}return W1(Y)};
_.Bbt=function(Y,G,u,O,Q){var M=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=M[_.KT]|0;var K=eR(Y,t);a:{!K&&lN(Y)&&(M=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=M[_.KT]|0);var L=OT(M,G);Y=!1;if(L==null){if(K){G=tSa();break a}L=[]}else if(L.constructor===wb)if(L.arrayState&2&&!K)L=x9j(L);else{G=L;break a}else Array.isArray(L)?Y=!!((L[_.KT]|0)&2):L=[];if(K){if(!L.length){G=tSa();break a}Y||(Y=!0,mE(L))}else Y&&(Y=!1,W1(L),L=lNy(L));!Y&&t&32&&ueU(L);O=new wb(L,u,O,Q);t=
cb(M,t,G,O);Y||q9(M,t);G=O}!K&&u&&(G.callToMutableOnAccess=!0);return G};
_.QG=function(Y,G,u,O){Bb(Y);var Q=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=Q[_.KT]|0;if(u==null)return cb(Q,M,G),Y;var t=u===Uw?7:u[_.KT]|0,K=t,L=us(t),g=L||Object.isFrozen(u);L||(t=0);g||(u=JU(u),K=0,t=YO(t,M),g=!1);t|=5;var P;L=(P=G2t(t))!=null?P:_.gb?1024:0;t|=L;for(P=0;P<u.length;P++){var I=u[P],k=O(I,L);Object.is(I,k)||(g&&(u=JU(u),K=0,t=YO(t,M),g=!1),u[P]=k)}t!==K&&(g&&(u=JU(u),t=YO(t,M)),Xe(u,t));cb(Q,M,G,u);return Y};
_.Hs=function(Y,G,u,O,Q){Bb(Y);var M=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;cb(M,M[_.KT]|0,G,(O==="0"?Number(u)===0:u===O)?void 0:u,Q);return Y};
_.ET=function(Y,G,u){if(G&2)throw Error();var O=ZV(G),Q=Swt(Y,u,O),M=Q===Uw?7:Q[_.KT]|0,t=Nbg(M,G);if(2&t||us(t)||16&t)t===M||us(t)||Xe(Q,t),Q=JU(Q),M=0,t=YO(t,G),cb(Y,G,u,Q,O);t&=-13;t!==M&&Xe(Q,t);return Q};
$9j=function(Y){if(tU){var G;return(G=Y[tz])!=null?G:Y[tz]=new Map}if(tz in Y)return Y[tz];G=new Map;Object.defineProperty(Y,tz,{value:G});return G};
sog=function(Y,G,u,O,Q){var M=$9j(Y),t=qw1(M,Y,G,u,Q);t!==O&&(t&&(G=cb(Y,G,t,void 0,Q)),M.set(u,O));return G};
qw1=function(Y,G,u,O,Q){var M=Y.get(O);if(M!=null)return M;for(var t=M=0;t<O.length;t++){var K=O[t];OT(G,K,Q)!=null&&(M!==0&&(u=cb(G,u,M,void 0,Q)),M=K)}Y.set(O,M);return M};
cBj=function(Y,G,u,O,Q){var M=!1;O=OT(Y,O,Q,function(t){var K=JUA(t,u,!1,G);M=K!==t&&K!=null;return K});
if(O!=null)return M&&!eR(O)&&q9(Y,G),O};
U94=function(Y,G,u,O,Q,M,t,K){var L=eR(Y,u);M=L?1:M;t=!!t||M===3;L=K&&!L;(M===2||L)&&lN(Y)&&(G=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=G[_.KT]|0);Y=Swt(G,Q);var g=Y===Uw?7:Y[_.KT]|0,P=Nbg(g,u);if(K=!(4&P)){var I=Y,k=u,n=!!(2&P);n&&(k|=2);for(var p=!n,W=!0,C=0,e=0;C<I.length;C++){var w=JUA(I[C],O,!1,k);if(w instanceof O){if(!n){var B=eR(w);p&&(p=!B);W&&(W=B)}I[e++]=w}}e<C&&(I.length=e);P|=4;P=W?P&-4097:P|4096;P=p?P|8:P&-9}P!==g&&(Xe(Y,P),2&P&&Object.freeze(Y));if(L&&!(8&P||!Y.length&&
(M===1||(M!==4?0:2&P||!(16&P)&&32&u)))){us(P)&&(Y=JU(Y),P=YO(P,u),u=cb(G,u,Q,Y));O=Y;L=P;for(g=0;g<O.length;g++)I=O[g],P=Oxg(I),I!==P&&(O[g]=P);L|=8;P=L=O.length?L|4096:L&-4097;Xe(Y,P)}return Y=joY(Y,P,G,u,Q,M,K,t)};
vVa=function(Y){Y==null&&(Y=void 0);return Y};
YO=function(Y,G){return Y=(2&G?Y|2:Y&-3)&-273};
_.JB1=function(Y,G,u,O,Q){Bb(Y);G=_.Gn(Y,G,Q,2,!0);var M;Q=(M=G2t(G===Uw?7:G[_.KT]|0))!=null?M:_.gb?1024:0;G.push(u(O,Q));return Y};
YTT=function(Y,G,u,O,Q,M,t){Bb(Y);var K=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Y=U94(Y,K,K[_.KT]|0,u,G,2,!0);if(M&&t)Q!=null||(Q=Y.length-1),QX4(Y,Q),Y.splice(Q,M),Y.length||(Y[_.KT]&=-4097);else{if(M){if(typeof Q!=="number"||Q<0||Q>Y.length)throw Error();}else O=O!=null?O:new u;Q!=void 0?Y.splice(Q,M,O):Y.push(O);Q=u=Y===Uw?7:Y[_.KT]|0;(O=eR(O))?(u&=-9,Y.length===1&&(u&=-4097)):u|=4096;u!==Q&&Xe(Y,u);O||q9(K)}};
uou=function(Y,G){if(typeof Y==="string")return new ah(sU4(Y),G);if(Array.isArray(Y))return new ah(new Uint8Array(Y),G);if(Y.constructor===Uint8Array)return new ah(Y,!1);if(Y.constructor===ArrayBuffer)return Y=new Uint8Array(Y),new ah(Y,!1);if(Y.constructor===AU)return G=GnI(Y)||new Uint8Array(0),new ah(G,!0,Y);if(Y instanceof Uint8Array)return Y=Y.constructor===Uint8Array?Y:new Uint8Array(Y.buffer,Y.byteOffset,Y.byteLength),new ah(Y,!1);throw Error();};
QhI=function(Y){switch(typeof Y){case "string":O51(Y)}};
H5y=function(Y){switch(typeof Y){case "string":MpU(Y)}};
Tn=function(){var Y=function(){throw Error();};
Object.setPrototypeOf(Y,Y.prototype);return Y};
tpg=function(Y,G){var u=u===void 0?EOt:u;return new L5(Y,G,u)};
TTA=function(Y,G,u,O,Q){Kgy(Y,u,aqa(G,O),Q)};
gT=function(Y,G,u,O){var Q=O[Y];if(Q)return Q;Q={};Q.binaryFields=O;Q.messageMetadata=ABg(O[0]);var M=O[1],t=1;M&&M.constructor===Object&&(Q.extensions=M,M=O[++t],typeof M==="function"&&(Q.isMessageSet=!0,LgI!=null||(LgI=M),gOU!=null||(gOU=O[t+1]),M=O[t+=2]));for(var K={};M&&Xsj(M);){for(var L=0;L<M.length;L++)K[M[L]]=M;M=O[++t]}for(L=1;M!==void 0;){typeof M==="number"&&(L+=M,M=O[++t]);var g=void 0;if(M instanceof L5)var P=M;else P=PsA,t--;M=void 0;if((M=P)==null?0:M.$$isMsg){M=O[++t];g=O;var I=t;
typeof M==="function"&&(M=M(),g[I]=M);g=M}M=O[++t];I=L+1;typeof M==="number"&&M<0&&(I-=M,M=O[++t]);for(;L<I;L++){var k=K[L];g?u(Q,L,P,g,k):G(Q,L,P,k)}}return O[Y]=Q};
Xsj=function(Y){return Array.isArray(Y)&&!!Y.length&&typeof Y[0]==="number"&&Y[0]>0};
knA=function(Y){return Array.isArray(Y)?Y[0]instanceof L5?Y:[Iqj,Y]:[Y,void 0]};
aqa=function(Y,G){if(Y instanceof _.Ps)return Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(Y))return SS(Y,G)};
nOA=function(Y,G,u,O){var Q=u.$$binaryReaderFn;Y[G]=O?function(M,t,K){return Q(M,t,K,O)}:Q};
psA=function(Y,G,u,O,Q){var M=u.$$binaryReaderFn,t,K;Y[G]=function(L,g,P){return M(L,g,P,K||(K=gT(Fgg,nOA,psA,O).messageMetadata),t||(t=zaY(O)),Q)}};
zaY=function(Y){var G=Y[mpj];if(G!=null)return G;var u=gT(Fgg,nOA,psA,Y);G=u.isMessageSet?function(O,Q){return LgI(O,Q,u)}:function(O,Q){for(;Wga(Q)&&Q.nextWireType_!=4;){var M=Q.nextField_,t=u[M];
if(t==null){var K=u.extensions;K&&(K=K[M])&&(K=rzI(K),K!=null&&(t=u[M]=K))}if(t==null||!t(Q,O,M)){K=Q;t=K.fieldCursor_;xpI(K);if(K.discardUnknownFields)var L=void 0;else{var g=K.decoder_.cursor_-t;K.decoder_.cursor_=t;L=fqI(K.decoder_,g)}g=K=t=void 0;var P=O;L&&((t=(K=(g=P[db])!=null?g:P[db]=new Fyt)[M])!=null?t:K[M]=[]).push(L)}}if(O=KyA(O))O.reviveUnknownFields=u.binaryFields[CsU];return!0};
Y[mpj]=G;Y[CsU]=yzg.bind(Y);return G};
yzg=function(Y,G,u,O){var Q=this[Fgg],M=this[mpj],t=SS(void 0,Q.messageMetadata),K=KyA(Y);if(K){var L=!1,g=Q.extensions;if(g){Q=function(p,W,C){if(C.length!==0)if(g[W])for(p=_.E(C),W=p.next();!W.done;W=p.next()){W=eaT(W.value);try{L=!0,M(t,W)}finally{W.free()}}else O==null||O(Y,W,C)};
if(G==null)kxt(K,Q);else if(K!=null){var P=K[G];P&&Q(K,G,P)}if(L){var I=Y[_.KT]|0;if(I&2&&I&2048&&(u==null||!u.reviveIntoImmutable))throw Error();var k=ZV(I),n=function(p,W){if(OT(Y,p,k)!=null)switch(u==null?void 0:u.resolutionBehavior){case 1:return;default:throw Error();}W!=null&&(I=cb(Y,I,p,W,k));delete K[p]};
G==null?MR1(t,t[_.KT]|0,function(p,W){n(p,W)}):n(G,OT(t,G,k))}}}};
rzI=function(Y){Y=knA(Y);var G=Y[0].$$binaryReaderFn;if(Y=Y[1]){var u=zaY(Y),O=gT(Fgg,nOA,psA,Y).messageMetadata;return function(Q,M,t){return G(Q,M,t,O,u)}}return G};
Az4=function(Y,G,u){Y[G]=u.$$binaryWriterFn};
i5t=function(Y,G,u,O){var Q,M,t=u.$$binaryWriterFn;Y[G]=function(K,L,g){return t(K,L,g,M||(M=gT(oOy,Az4,i5t,O).messageMetadata),Q||(Q=Ra4(O)))}};
Ra4=function(Y){var G=Y[wsY];if(!G){var u=gT(oOy,Az4,i5t,Y);G=function(O,Q){return Z5U(O,Q,u)};
Y[wsY]=G}return G};
Z5U=function(Y,G,u){MR1(Y,Y[_.KT]|0,function(O,Q){if(Q!=null){var M=Dpg(u,O);M?M(G,Q,O):O<500||vaa(haI,3)}});
(Y=KyA(Y))&&kxt(Y,function(O,Q,M){Ih(G,G.encoder_.end());for(O=0;O<M.length;O++)Ih(G,GnI(M[O])||new Uint8Array(0))})};
Dpg=function(Y,G){var u=Y[G];if(u)return u;if(u=Y.extensions)if(u=u[G]){u=knA(u);var O=u[0].$$binaryWriterFn;if(u=u[1]){var Q=Ra4(u),M=gT(oOy,Az4,i5t,u).messageMetadata;u=Y.isMessageSet?gOU(M,Q):function(t,K,L){return O(t,K,L,M,Q)}}else u=O;
return Y[G]=u}};
_.dpj=function(Y,G,u){if(Array.isArray(G)){var O=G[_.KT]|0;if(O&4)return G;for(var Q=0,M=0;Q<G.length;Q++){var t=Y(G[Q]);t!=null&&(G[M++]=t)}M<Q&&(G.length=M);Y=O|1;u&&(Y=(Y|4)&-1537);Y!==O&&Xe(G,Y);u&&Y&2&&Object.freeze(G);return G}};
_.kO=function(Y,G,u){return new L5(Y,G,u)};
_.b51=function(Y,G,u){return new L5(Y,G,u)};
_.n5=function(Y,G,u){cb(Y,Y[_.KT]|0,G,u,ZV(Y[_.KT]|0))};
STA=function(Y,G,u){G=_.Ow(G);G!=null&&(_.Fo(Y,u,1),Y=Y.encoder_,u=nkA||(nkA=new DataView(new ArrayBuffer(8))),u.setFloat64(0,+G,!0),dR=u.getUint32(0,!0),SR=u.getUint32(4,!0),_.p5(Y,dR),_.p5(Y,SR))};
NT1=function(Y,G,u){G=_.Ow(G);G!=null&&(_.Fo(Y,u,5),Y=Y.encoder_,FEu(G),_.p5(Y,dR))};
_.mg=function(Y,G,u){G=sXI(G);if(G!=null&&(QhI(G),G!=null))switch(_.Fo(Y,u,0),typeof G){case "number":Y=Y.encoder_;VI(G);zn(Y,dR,SR);break;case "bigint":u=BigInt.asUintN(64,G);u=new jhA(Number(u&BigInt(4294967295)),Number(u>>BigInt(32)));zn(Y.encoder_,u.JSC$9184_lo,u.JSC$9184_hi);break;default:u=O51(G),zn(Y.encoder_,u.JSC$9184_lo,u.JSC$9184_hi)}};
lq1=function(Y,G,u){G=cUg(G);if(G!=null&&(H5y(G),G!=null))switch(_.Fo(Y,u,0),typeof G){case "number":Y=Y.encoder_;VI(G);zn(Y,dR,SR);break;case "bigint":u=VpU(G);zn(Y.encoder_,u.JSC$9182_lo,u.JSC$9182_hi);break;default:u=MpU(G),zn(Y.encoder_,u.JSC$9182_lo,u.JSC$9182_hi)}};
$py=function(Y,G,u){G=_.Lx(G);G!=null&&G!=null&&(_.Fo(Y,u,0),_.BT1(Y.encoder_,G))};
_.shu=function(Y,G,u){qT4(Y,u,cUg(G))};
czy=function(Y,G,u){G=_.yUg(G);G!=null&&(_.Fo(Y,u,0),Y.encoder_.JSC$9186_buffer_.push(G?1:0))};
vOa=function(Y,G,u){G=_.AB(G);G!=null&&Upu(Y,u,L4u(G))};
JzU=function(Y,G,u,O,Q){Kgy(Y,u,aqa(G,O),Q)};
_.YrA=function(Y,G,u){G=G==null||typeof G=="string"||G instanceof AU?G:void 0;G!=null&&Upu(Y,u,uou(G,!0).buffer)};
GoA=function(Y,G,u){G=_.oka(G);G!=null&&G!=null&&(_.Fo(Y,u,0),rT(Y.encoder_,G))};
_.uHA=function(Y,G,u){G=_.Lx(G);G!=null&&(G=parseInt(G,10),_.Fo(Y,u,0),_.BT1(Y.encoder_,G))};
Obt=function(Y,G,u){if(Y.nextWireType_!==0)return!1;_.n5(G,u,_.xO(Y.decoder_,mMY));return!0};
_.QAT=function(Y,G,u,O){if(Y.nextWireType_!==0)return!1;_.f5(G,u,O,_.xO(Y.decoder_,mMY));return!0};
Mdj=function(Y,G,u){if(Y.nextWireType_!==0)return!1;_.n5(G,u,_.xO(Y.decoder_,zlA));return!0};
_.E6Y=function(Y,G,u){if(Y.nextWireType_!==1)return!1;_.n5(G,u,Hb4(Y.decoder_));return!0};
_.yG=function(Y,G){return function(u,O){var Q={treatNewDataAsImmutable:!0};O&&Object.assign(Q,O);u=eaT(u,void 0,void 0,Q);try{var M=new Y,t=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;zaY(G)(t,u);var K=M}finally{u.free()}return K}};
_.Az=function(Y){return function(G){return tdj(G,Y)}};
K0A=function(Y){return function(){return tdj(this,Y)}};
_.axj=function(Y){return DV(function(G){return G instanceof Y&&!eR(G)})};
_.oh=function(Y){return function(G){return TtY(Y,G)}};
P3t=function(Y,G){return L0Y({child:Y,origin:G||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:g6T,getPayloadCase:function(u){return u.getPayloadCase()},
createInitMessage:function(u){var O=new is,Q=new X8a;u=_.Rh(Q,1,u);return _.wT(O,5,Zq,u)}})};
Dq=function(Y){return{valueOf:Y}.valueOf()};
koA=function(){var Y=null;if(!Ixa)return Y;try{var G=function(u){return u};
Y=Ixa.createPolicy("goog#html",{createHTML:G,createScript:G,createScriptURL:G})}catch(u){}return Y};
F0A=function(){n6t===void 0&&(n6t=koA());return n6t};
_.dT=function(Y){var G=F0A();Y=G?G.createScriptURL(Y):Y;return new hz(Y)};
_.bs=function(Y){if(Y instanceof hz)return Y.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("$");};
_.Sp=function(Y){return Object.isFrozen(Y)&&Object.isFrozen(Y.raw)};
p8I=function(Y){return Y.toString().indexOf("`")===-1};
VG=function(Y){return new _.jp(zHY,Y)};
ls=function(Y){return Y instanceof _.jp};
_.Bs=function(Y){if(ls(Y))return Y.privateDoNotAccessOrElseWrappedUrl;throw Error("$");};
$O=function(Y){return new mKA(function(G){return G.substr(0,Y.length+1).toLowerCase()===Y+":"})};
_.qp=function(Y,G){G=G===void 0?W0t:G;if(ls(Y))return Y;for(var u=0;u<G.length;++u){var O=G[u];if(O instanceof mKA&&O.isValid(Y))return VG(Y)}};
_.cs=function(Y,G){G=G===void 0?W0t:G;return _.qp(Y,G)||sT};
_.UT=function(Y){var G=window;if(typeof MediaSource!=="undefined"&&Y instanceof MediaSource||typeof G.ManagedMediaSource!=="undefined"&&Y instanceof G.ManagedMediaSource)return VG(URL.createObjectURL(Y));G=Y.type;G.toLowerCase()==="application/octet-stream"?G=!0:(G=G.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),G=(G==null?void 0:G.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(G[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(G[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(G[1])||/^font\/[\w-]+$/i.test(G[1])));if(!G)throw Error("$");return VG(URL.createObjectURL(Y))};
_.r0a=function(Y){for(var G=_.vs.apply(1,arguments),u=[Y[0]],O=0;O<G.length;O++)u.push(String(G[O])),u.push(Y[O+1]);return VG(u.join(""))};
_.fxt=function(Y){if(!xKt){a:{var G=document.createElement("a");try{G.href=Y}catch(u){Y=void 0;break a}Y=G.protocol;Y=Y===":"||Y===""?"https:":Y}return Y}try{G=new URL(Y)}catch(u){return"https:"}return G.protocol};
_.Jz=function(Y){Y instanceof _.jp?Y=_.Bs(Y):Y=C3A.test(Y)?Y:void 0;return Y};
Y6=function(Y,G){G=_.Jz(G);G!==void 0&&(Y.href=G)};
Or=function(Y){var G=F0A();Y=G?G.createHTML(Y):Y;return new Go(Y)};
QK=function(Y){if(Y instanceof Go)return Y.privateDoNotAccessOrElseWrappedHtml;throw Error("$");};
_.Er=function(Y,G){Y.src=_.bs(G).toString()};
y0t=function(Y,G){Y.setAttribute("sandbox","");for(var u=0;u<G.length;u++)Y.sandbox.supports&&!Y.sandbox.supports(G[u])||Y.sandbox.add(G[u])};
_.t0=function(Y,G,u){Y.removeAttribute("srcdoc");switch(G){case 0:if(u instanceof hz)throw new eHt("TrustedResourceUrl",0);y0t(Y,[]);G=_.Jz(u);G!==void 0&&(Y.src=G);break;case 1:if(!(u instanceof hz))throw new eHt(typeof u,1);y0t(Y,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Er(Y,u);break;case 2:if(u instanceof hz)throw new eHt("TrustedResourceUrl",2);y0t(Y,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
G=_.Jz(u);G!==void 0&&(Y.src=G);break;default:_.YV(G)}};
_.Kb=function(Y,G,u,O){G=_.Jz(G);return G!==void 0?Y.open(G,u,O):null};
_.aA=function(Y){Y=Y===void 0?document:Y;var G,u;Y=(u=(G=Y).querySelector)==null?void 0:u.call(G,"script[nonce]");return Y==null?"":Y.nonce||Y.getAttribute("nonce")||""};
_.Lb=function(Y){var G=F0A();Y=G?G.createScript(Y):Y;return new _.To(Y)};
gt=function(Y){if(Y instanceof _.To)return Y.privateDoNotAccessOrElseWrappedScript;throw Error("$");};
A0j=function(Y){var G=_.aA(Y.ownerDocument);G&&Y.setAttribute("nonce",G)};
_.XH=function(Y,G){Y.textContent=gt(G);A0j(Y)};
_.P8=function(Y,G){Y.src=_.bs(G);A0j(Y)};
_.IA=function(Y,G){if(Y.nodeType===1&&/^(script|style)$/i.test(Y.tagName))throw Error("$");Y.innerHTML=QK(G)};
_.k6=function(Y,G,u,O){if(Y.length===0)throw Error("$");Y=Y.map(function(M){if(M instanceof o6I)M=M.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("$");return M});
var Q=u.toLowerCase();if(Y.every(function(M){return Q.indexOf(M)!==0}))throw Error("ba`"+u);
G.setAttribute(u,O)};
_.nb=function(Y,G,u){if(G instanceof hz)Y.href=_.bs(G).toString(),Y.rel=u;else{if(ibT.indexOf(u)===-1)throw Error("ca`"+u);G=_.Jz(G);G!==void 0&&(Y.href=G,Y.rel=u)}};
RHY=function(Y){if(Y instanceof FH)return Y.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("$");};
_.w8U=function(Y,G){G=_.Jz(G);G!==void 0&&(Y.href=G)};
Zbt=function(Y){return new Worker(_.bs(Y),void 0)};
DKj=function(Y){return _.dT(Y)};
hH4=function(Y,G){Y&&(G=Y.indexOf(G),0<=G&&Y.splice(G,1))};
pb=function(Y){return typeof Y==="function"};
dKg=function(Y){return Y instanceof m0||Y&&"closed"in Y&&pb(Y.remove)&&pb(Y.add)&&pb(Y.unsubscribe)};
W8=function(){};
rt=function(Y){bbu(function(){throw Y;})};
x6=function(Y){return Y};
fb=function(){return Sr4(_.vs.apply(0,arguments))};
Sr4=function(Y){return Y.length===0?x6:Y.length===1?Y[0]:function(G){return Y.reduce(function(u,O){return O(u)},G)}};
NtA=function(Y){var G;return(G=Y!=null?Y:void 0)!=null?G:Promise};
jA4=function(Y,G){return new yK(function(u){var O=0;return G.schedule(function(){O===Y.length?u.complete():(u.next(Y[O++]),u.closed||this.schedule())})})};
Vd1=function(Y,G){if(!Y)throw Error("da");return new yK(function(u){var O=new m0;O.add(G.schedule(function(){var Q=Y[Symbol.asyncIterator]();O.add(G.schedule(function(){var M=this;Q.next().then(function(t){t.done?u.complete():(u.next(t.value),M.schedule())})}))}));
return O})};
lxj=function(Y,G,u){G=G.schedule(function(){try{u.call(this)}catch(O){Y.error(O)}},0);
Y.add(G)};
$Ka=function(Y,G){return new yK(function(u){var O;u.add(G.schedule(function(){O=Y[Btj]();lxj(u,G,function(){var Q=O.next(),M=Q.value;Q.done?u.complete():(u.next(M),this.schedule())})}));
return function(){var Q;return pb((Q=O)==null?void 0:Q.return)&&O.return()}})};
qrI=function(Y,G){return new yK(function(u){var O=new m0;O.add(G.schedule(function(){var Q=Y[ed]();O.add(Q.subscribe({next:function(M){O.add(G.schedule(function(){return u.next(M)}))},
error:function(M){O.add(G.schedule(function(){return u.error(M)}))},
complete:function(){O.add(G.schedule(function(){return u.complete()}))}}))}));
return O})};
sAt=function(Y,G){return new yK(function(u){return G.schedule(function(){return Y.then(function(O){u.add(G.schedule(function(){u.next(O);u.add(G.schedule(function(){return u.complete()}))}))},function(O){u.add(G.schedule(function(){return u.error(O)}))})})})};
c0g=function(Y){return new TypeError("ea`"+(Y!==null&&typeof Y==="object"?"an invalid object":"'"+Y+"'"))};
v64=function(Y,G){if(Y!=null){if(pb(Y[ed]))return qrI(Y,G);if(UKy(Y))return jA4(Y,G);if(pb(Y==null?void 0:Y.then))return sAt(Y,G);if(Symbol.asyncIterator&&pb(Y==null?void 0:Y[Symbol.asyncIterator]))return Vd1(Y,G);if(pb(Y==null?void 0:Y[Btj]))return $Ka(Y,G)}throw c0g(Y);};
oA=function(Y,G){return G?v64(Y,G):A0(Y)};
A0=function(Y){if(Y instanceof yK)return Y;if(Y!=null){if(pb(Y[ed]))return J0U(Y);if(UKy(Y))return YsA(Y);if(pb(Y==null?void 0:Y.then))return Gdu(Y);if(Symbol.asyncIterator&&pb(Y==null?void 0:Y[Symbol.asyncIterator]))return uQt(Y);if(pb(Y==null?void 0:Y[Btj]))return OO1(Y)}throw c0g(Y);};
J0U=function(Y){return new yK(function(G){var u=Y[ed]();if(pb(u.subscribe))return u.subscribe(G);throw new TypeError("fa");})};
YsA=function(Y){return new yK(function(G){for(var u=0;u<Y.length&&!G.closed;u++)G.next(Y[u]);G.complete()})};
Gdu=function(Y){return new yK(function(G){Y.then(function(u){G.closed||(G.next(u),G.complete())},function(u){return G.error(u)}).then(null,rt)})};
OO1=function(Y){return new yK(function(G){for(var u=Y[Btj]();!G.closed;){var O=u.next(),Q=O.value;O.done?G.complete():G.next(Q)}return function(){return pb(u==null?void 0:u.return)&&u.return()}})};
uQt=function(Y){return new yK(function(G){QBA(Y,G).catch(function(u){return G.error(u)})})};
QBA=function(Y,G){var u,O,Q,M,t,K;return _.a(function(L){switch(L.nextAddress){case 1:_.i3(L,2,3),M=_.RA(Y);case 5:return L.yield(M.next(),8);case 8:O=L.yieldResult;if(O.done){L.jumpTo(3);break}t=O.value;G.next(t);L.jumpTo(5);break;case 3:_.wt(L);_.h0(L,9);if(!O||O.done||!(Q=M.return)){L.jumpTo(9);break}return L.yield(Q.call(M),9);case 9:_.wt(L,0,0,1);if(u)throw u.error;_.dt(L,10,1);break;case 10:_.dt(L,4);break;case 2:K=_.b3(L);u={error:K};L.jumpTo(3);break;case 4:G.complete(),_.Sd(L)}})};
MLg=function(Y,G){return G?jA4(Y,G):YsA(Y)};
HOA=function(Y){return pb(Y[Y.length-1])?Y.pop():void 0};
NK=function(Y){var G=Y[Y.length-1];return G&&pb(G.schedule)?Y.pop():void 0};
VK=function(){var Y=_.vs.apply(0,arguments),G=NK(Y);return G?jA4(Y,G):MLg(Y)};
l3=function(Y){var G=pb(Y)?Y:function(){return Y};
return new yK(function(u){return u.error(G())})};
B8=function(Y){return function(G){if(pb(G==null?void 0:G.lift))return G.lift(function(u){try{return Y(u,this)}catch(O){this.error(O)}});
throw new TypeError("ga");}};
qK=function(){return B8(function(Y,G){var u=null;Y._refCount++;var O=new $6(G,void 0,void 0,void 0,function(){if(!Y||Y._refCount<=0||0<--Y._refCount)u=null;else{var Q=Y._connection,M=u;u=null;!Q||M&&Q!==M||Q.unsubscribe();G.unsubscribe()}});
Y.subscribe(O);O.closed||(u=Y.connect())})};
tLy=function(){var Y=ExY;var G=G===void 0?0:G;return B8(function(u,O){O.add(Y.schedule(function(){return u.subscribe(O)},G))})};
sr=function(Y){return B8(function(G,u){var O=0;G.subscribe(new $6(u,function(Q){u.next(Y.call(void 0,Q,O++))}))})};
aGt=function(Y){return sr(function(G){return KSt(G)?Y.apply(null,_.c8(G)):Y(G)})};
P7I=function(Y){if(Y.length===1){var G=Y[0];if(TgY(G))return{args:G,keys:null};if(G&&typeof G==="object"&&LSt(G)===gx1)return Y=XIu(G),{args:Y.map(function(u){return G[u]}),
keys:Y}}return{args:Y,keys:null}};
Ur=function(){var Y=_.vs.apply(0,arguments),G=NK(Y),u=HOA(Y);Y=P7I(Y);var O=Y.args,Q=Y.keys;if(O.length===0)return oA([],G);G=new yK(IGI(O,G,Q?function(M){for(var t={},K=0;K<M.length;K++)t[Q[K]]=M[K];return t}:x6));
return u?G.pipe(aGt(u)):G};
IGI=function(Y,G,u){u=u===void 0?x6:u;return function(O){kdT(G,function(){for(var Q=Y.length,M=Array(Q),t=Q,K=Y.map(function(){return!1}),L=!0,g={i$jscomp$220:0};g.i$jscomp$220<Q;g={i$jscomp$220:g.i$jscomp$220},g.i$jscomp$220++)kdT(G,function(P){return function(){oA(Y[P.i$jscomp$220],G).subscribe(new Yx(O,function(I){M[P.i$jscomp$220]=I;
L&&(K[P.i$jscomp$220]=!0,L=!K.every(x6));L||O.next(u(M.slice()))},function(){return--t===0}))}}(g),O)},O)}};
kdT=function(Y,G,u){Y?u.add(Y.schedule(G)):G()};
nxj=function(Y,G,u,O){var Q=[],M=0,t=0,K=!1,L=function(g){M++;A0(u(g,t++)).subscribe(new $6(G,function(P){G.next(P)},void 0,function(){M--;
for(var P={};Q.length&&M<O;P={bufferedValue:void 0})P.bufferedValue=Q.shift(),L(P.bufferedValue);!K||Q.length||M||G.complete()}))};
Y.subscribe(new $6(G,function(g){return M<O?L(g):Q.push(g)},void 0,function(){K=!0;
!K||Q.length||M||G.complete()}));
return function(){Q=null}};
Gd=function(Y,G){var u=u===void 0?Infinity:u;if(pb(G))return Gd(function(O,Q){return sr(function(M,t){return G(O,M,Q,t)})(A0(Y(O,Q)))},u);
typeof G==="number"&&(u=G);return B8(function(O,Q){return nxj(O,Q,Y,u)})};
FSa=function(Y){Y=Y===void 0?Infinity:Y;return Gd(x6,Y)};
pIa=function(){var Y=_.vs.apply(0,arguments);return FSa(1)(MLg(Y,NK(Y)))};
zoT=function(Y){return new yK(function(G){A0(Y()).subscribe(G)})};
u7=function(Y,G,u){if(pb(u)){var O=u;u=void 0}if(O)return u7(Y,G,u).pipe(aGt(O));O=_.E(pb(Y.addEventListener)&&pb(Y.removeEventListener)?mIg.map(function(t){return function(K){return Y[t](G,K,u)}}):pb(Y.addListener)&&pb(Y.removeListener)?WSU.map(rDu(Y,G)):pb(Y.on)&&pb(Y.off)?xIu.map(rDu(Y,G)):[]);
var Q=O.next().value,M=O.next().value;return!Q&&UKy(Y)?Gd(function(t){return u7(t,G,u)})(MLg(Y)):new yK(function(t){if(!Q)throw new TypeError("ha");
var K=function(){var L=_.vs.apply(0,arguments);return t.next(1<L.length?L:L[0])};
Q(K);return function(){return M(K)}})};
rDu=function(Y,G){return function(u){return function(O){return Y[u](G,O)}}};
QW=function(){var Y=_.vs.apply(0,arguments),G=NK(Y);var u=typeof Y[Y.length-1]==="number"?Y.pop():Infinity;return Y.length?Y.length===1?A0(Y[0]):FSa(u)(MLg(Y,G)):Os};
C7A=function(Y){return Y.length===1&&fG4(Y[0])?Y[0]:Y};
yD1=function(){var Y=C7A(_.vs.apply(0,arguments));return B8(function(G,u){var O=[G].concat(_.c8(Y)),Q=function(){if(!u.closed)if(O.length>0){try{var M=A0(O.shift())}catch(K){Q();return}var t=new $6(u,void 0,W8,W8);u.add(M.subscribe(t));t.add(Q)}else u.complete()};
Q()})};
MI=function(Y){return B8(function(G,u){var O=0;G.subscribe(new $6(u,function(Q){return Y.call(void 0,Q,O++)&&u.next(Q)}))})};
ADU=function(){var Y=_.vs.apply(0,arguments);Y=C7A(Y);return Y.length===1?A0(Y[0]):new yK(eot(Y))};
eot=function(Y){return function(G){for(var u=[],O={i$jscomp$223:0};u&&!G.closed&&O.i$jscomp$223<Y.length;O={i$jscomp$223:O.i$jscomp$223},O.i$jscomp$223++)u.push(A0(Y[O.i$jscomp$223]).subscribe(new $6(G,function(Q){return function(M){if(u){for(var t=0;t<u.length;t++)t!==Q.i$jscomp$223&&u[t].unsubscribe();u=null}G.next(M)}}(O))))}};
oxt=function(){var Y=_.vs.apply(0,arguments),G=HOA(Y),u=C7A(Y);return u.length?new yK(function(O){var Q=u.map(function(){return[]}),M=u.map(function(){return!1});
O.add(function(){Q=M=null});
for(var t={sourceIndex$jscomp$1:0};!O.closed&&t.sourceIndex$jscomp$1<u.length;t={sourceIndex$jscomp$1:t.sourceIndex$jscomp$1},t.sourceIndex$jscomp$1++)A0(u[t.sourceIndex$jscomp$1]).subscribe(new $6(O,function(K){return function(L){Q[K.sourceIndex$jscomp$1].push(L);Q.every(function(g){return g.length})&&(L=Q.map(function(g){return g.shift()}),O.next(G?G.apply(null,_.c8(L)):L),Q.some(function(g,P){return!g.length&&M[P]})&&O.complete())}}(t),void 0,function(K){return function(){M[K.sourceIndex$jscomp$1]=
!0;
!Q[K.sourceIndex$jscomp$1].length&&O.complete()}}(t)));
return function(){Q=M=null}}):Os};
iOt=function(Y){var G,u,O;return!!Y&&typeof Y.active==="boolean"&&typeof((G=Y.clock)==null?void 0:G.now)==="function"&&((u=Y.clock)==null?void 0:u.timeline)!==void 0&&!((O=Y.lastMeasurement)==null||!O.timestamp)&&typeof Y.equivalentTo==="function"&&typeof Y.extrapolateToNow==="function"&&typeof Y.extrapolateToTime==="function"&&typeof Y.map==="function"&&typeof Y.joinWith==="function"};
Ro4=function(Y){function G(u){return typeof u==="boolean"||typeof u==="string"||typeof u==="number"||u===void 0||u===null}
return G(Y)?!0:Array.isArray(Y)?Y.every(G):typeof Y==="object"?Object.keys(Y).every(function(u){return typeof u==="string"})&&Object.values(Y).every(function(u){return Array.isArray(u)?u.every(G):G(u)}):!1};
wIt=function(Y){if(Ro4(Y))return Y;if(iOt(Y))return{lastMeasurement:{value:wIt(Y.lastMeasurement.value),timestamp:HI(Y.lastMeasurement.timestamp,new Es(0,Y.lastMeasurement.timestamp.timeline))},active:Y.active};try{return JSON.parse(JSON.stringify(Y))}catch(G){}return String(Y)};
tD=function(Y,G){return function(u){return new yK(function(O){return u.subscribe(function(Q){Y.timeExecution(G,function(){O.next(Q)})()},function(Q){Y.timeExecution(G,function(){O.error(Q)})()},function(){Y.timeExecution(G,function(){O.complete()})()})})}};
ZOt=function(Y,G){var u=!1;return new yK(function(O){var Q=Y.setTimeout(function(){u=!0;O.next(!0);O.complete()},G);
return function(){u||Y.clearTimeout(Q)}})};
DIt=function(Y){Y=Y.global;if(Y.fetchLater)return Y.fetchLater.bind(Y)};
KO=function(Y){return B8(function(G,u){var O=null,Q=!1,M;O=G.subscribe(new $6(u,void 0,function(t){M=A0(Y(t,KO(Y)(G)));O?(O.unsubscribe(),O=null,M.subscribe(u)):Q=!0}));
Q&&(O.unsubscribe(),O=null,M.subscribe(u))})};
hog=function(Y,G,u){return function(O,Q){var M=u,t=G,K=0;O.subscribe(new $6(Q,function(L){var g=K++;t=M?Y(t,L,g):(M=!0,L);Q.next(t)},void 0,void 0))}};
dIy=function(Y){Y=Y===void 0?null:Y;return B8(function(G,u){var O=!1;G.subscribe(new $6(u,function(Q){O=!0;u.next(Q)},void 0,function(){O||u.next(Y);
u.complete()}))})};
aB=function(){return B8(function(Y,G){Y.subscribe(new $6(G,W8))})};
Td=function(Y){return B8(function(G,u){G.subscribe(new $6(u,function(){return u.next(Y)}))})};
LO=function(Y){return Y<=0?function(){return Os}:B8(function(G,u){var O=0;
G.subscribe(new $6(u,function(Q){++O<=Y&&(u.next(Q),Y<=O&&u.complete())}))})};
gg=function(Y){var G=G===void 0?x6:G;var u;Y=(u=Y)!=null?u:bOU;return B8(function(O,Q){var M,t=!0;O.subscribe(new $6(Q,function(K){var L=G(K);if(t||!Y(M,L))t=!1,M=L,Q.next(K)}))})};
bOU=function(Y,G){return Y===G};
NgI=function(Y){Y=Y===void 0?Ssu:Y;return B8(function(G,u){var O=!1;G.subscribe(new $6(u,function(Q){O=!0;u.next(Q)},void 0,function(){return O?u.complete():u.error(Y())}))})};
Ssu=function(){return new jBY};
XQ=function(){var Y=_.vs.apply(0,arguments);return function(G){return pIa(G,VK.apply(null,_.c8(Y)))}};
VLA=function(Y){return B8(function(G,u){var O=0;G.subscribe(new $6(u,function(Q){Y.call(void 0,Q,O++,G)||(u.next(!1),u.complete())},void 0,function(){u.next(!0);
u.complete()}))})};
lGI=function(){return B8(function(Y,G){var u=[];Y.subscribe(new $6(G,function(O){u.push(O);1<u.length&&u.shift()},void 0,function(){for(var O=_.E(u),Q=O.next();!Q.done;Q=O.next())G.next(Q.value);
G.complete()},function(){u=null}))})};
BgA=function(Y,G){var u=arguments.length>=2;return function(O){return O.pipe(Y?MI(function(Q,M){return Y(Q,M,O)}):x6,lGI(),u?dIy(G):NgI(function(){return new jBY}))}};
IB=function(Y){var G=pb(Y)?Y:function(){return Y};
return pb()?B8(function(u,O){var Q=G();(void 0)(Q).subscribe(O).add(u.subscribe(Q))}):function(u){var O=new PI(u,G);
pb(u==null?void 0:u.lift)&&(O.lift=u.lift);O.source=u;O.subjectFactory=G;return O}};
nO=function(Y){var G=new kx(Y,void 0,void 0);return function(u){return IB(function(){return G})(u)}};
FQ=function(Y,G){return B8(hog(Y,G,arguments.length>=2))};
pO=function(){var Y=_.vs.apply(0,arguments),G=NK(Y);return B8(function(u,O){(G?pIa(Y,u,G):pIa(Y,u)).subscribe(O)})};
zd=function(Y){return B8(function(G,u){var O=null,Q=0,M=!1;G.subscribe(new $6(u,function(t){var K;(K=O)==null||K.unsubscribe();K=Q++;A0(Y(t,K)).subscribe(O=new $6(u,function(L){return u.next(L)},void 0,function(){O=null;
M&&!O&&u.complete()}))},void 0,function(){(M=!0,!O)&&u.complete()}))})};
mS=function(Y,G){G=G===void 0?!1:G;return B8(function(u,O){var Q=0;u.subscribe(new $6(O,function(M){var t=Y(M,Q++);(t||G)&&O.next(M);!t&&O.complete()}))})};
$IA=function(Y,G,u){var O=pb(Y)||G||u?{next:Y,error:G,complete:u}:Y;return O?B8(function(Q,M){Q.subscribe(new $6(M,function(t){var K;(K=O.next)==null||K.call(O,t);M.next(t)},function(t){var K;
(K=O.error)==null||K.call(O,t);M.error(t)},function(){var t;
(t=O.complete)==null||t.call(O);M.complete()}))}):x6};
qsT=function(){var Y=_.vs.apply(0,arguments),G=HOA(Y);return B8(function(u,O){for(var Q=Y.length,M=Array(Q),t=Y.map(function(){return!1}),K=!1,L={i$jscomp$233:0};L.i$jscomp$233<Q;L={i$jscomp$233:L.i$jscomp$233},L.i$jscomp$233++)A0(Y[L.i$jscomp$233]).subscribe(new $6(O,function(g){return function(P){M[g.i$jscomp$233]=P;
K||t[g.i$jscomp$233]||(t[g.i$jscomp$233]=!0,(K=t.every(x6))&&(t=null))}}(L),void 0,W8));
u.subscribe(new $6(O,function(g){K&&(g=[g].concat(_.c8(M)),O.next(G?G.apply(null,_.c8(g)):g))}))})};
cDI=function(Y){var G=sBy;if(G)for(var u in G)Object.prototype.hasOwnProperty.call(G,u)&&Y(G[u],u,G)};
UIu=function(){var Y=[];cDI(function(G){Y.push(G)});
return Y};
JDT=function(Y){try{return!!Y&&Y.location.href!=null&&vxy(Y,"foo")}catch(G){return!1}};
Ghj=function(){return m4&&Wu?Wu.mobile:!Y_A()&&(rA("iPod")||rA("iPhone")||rA("Android")||rA("IEMobile"))};
Y_A=function(){return m4&&Wu?!Wu.mobile&&(rA("iPad")||rA("Android")||rA("Silk")):rA("iPad")||rA("Android")&&!rA("Mobile")||rA("Silk")};
_.rg=function(Y){return new o6I(Y[0].toLowerCase())};
uij=function(Y){for(var G=_.vs.apply(1,arguments),u=Y[0],O=0;O<Y.length-1;O++)u+=String(G[O]),u+=Y[O+1];G=document.implementation.createHTMLDocument("");O=G.createElement("style");G.head.appendChild(O);G=O.sheet;G.insertRule(u,0);if(G.cssRules.length===1&&(u=G.cssRules[0],u instanceof CSSStyleRule))return new FH(u.cssText.replace(/</g,"\\3C "))};
Oma=function(Y){try{return new URL(Y,window.document.baseURI)}catch(G){return new URL("about:invalid")}};
QyT=function(Y,G){var u=G.createRange();u.selectNode(G.body);Y=Or(Y);return u.createContextualFragment(QK(Y))};
MhU=function(Y){Y=Y.nodeName;return typeof Y==="string"?Y:"FORM"};
Hm4=function(Y){Y=Y.nodeType;return Y===1||typeof Y!=="number"};
xx=function(Y,G,u){Y.setAttribute(G,u)};
EII=function(Y){return Y.parts.map(function(G){var u=G.descriptor;return""+G.url+(u?" "+u:"")}).join(" , ")};
_.fO=function(Y){var G=_.vs.apply(1,arguments);if(G.length===0)return _.dT(Y[0]);for(var u=Y[0],O=0;O<G.length;O++)u+=encodeURIComponent(G[O])+Y[O+1];return _.dT(u)};
_.CO=function(Y,G){Y=_.bs(Y).toString();var u=Y.split(/[?#]/),O=/[?]/.test(Y)?"?"+u[1]:"";return thA(u[0],O,/[#]/.test(Y)?"#"+(O?u[2]:u[1]):"",G)};
thA=function(Y,G,u,O){function Q(t,K){t!=null&&(Array.isArray(t)?t.forEach(function(L){return Q(L,K)}):(G+=M+encodeURIComponent(K)+"="+encodeURIComponent(t),M="&"))}
var M=G.length?"&":"?";O.constructor===Object&&(O=Object.entries(O));Array.isArray(O)?O.forEach(function(t){return Q(t[1],t[0])}):O.forEach(Q);
return _.dT(Y+G+u)};
aMT=function(){var Y=gt(Kha).toString();return _.dT(URL.createObjectURL(new Blob([Y],{type:"text/javascript"})))};
_.yW=function(Y,G,u){return Math.min(Math.max(Y,G),u)};
eL=function(Y,G,u){return Y+u*(G-Y)};
_.AD=function(Y,G){this.x=Y!==void 0?Y:0;this.y=G!==void 0?G:0};
_.oB=function(Y,G){this.width=Y;this.height=G};
TXA=function(Y){var G=[],u=0,O;for(O in Y)G[u++]=O;return G};
Lh1=function(Y,G){for(var u in Y)if(Y[u]==G)return!0;return!1};
gIa=function(Y,G,u){for(var O in Y)if(G.call(u,Y[O],O,Y))return O};
XF1=function(Y){if(!Y||typeof Y!=="object")return Y;if(typeof Y.clone==="function")return Y.clone();if(typeof Map!=="undefined"&&Y instanceof Map)return new Map(Y);if(typeof Set!=="undefined"&&Y instanceof Set)return new Set(Y);if(Y instanceof Date)return new Date(Y.getTime());var G=Array.isArray(Y)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(Y)||Y instanceof DataView?{}:new Y.constructor(Y.length),u;for(u in Y)G[u]=XF1(Y[u]);return G};
Pdu=function(Y){var G=arguments.length;if(G==1&&Array.isArray(arguments[0]))return Pdu.apply(null,arguments[0]);if(G%2)throw Error("na");for(var u={},O=0;O<G;O+=2)u[arguments[O]]=arguments[O+1];return u};
IMa=function(Y){var G=arguments.length;if(G==1&&Array.isArray(arguments[0]))return IMa.apply(null,arguments[0]);for(var u={},O=0;O<G;O++)u[arguments[O]]=!0;return u};
i7=function(Y,G,u,O){this.top=Y;this.right=G;this.bottom=u;this.left=O};
RB=function(Y,G,u,O){this.left=Y;this.top=G;this.width=u;this.height=O};
kh4=function(Y){Y=Y.global;if(Y.PendingGetBeacon)return Y.PendingGetBeacon};
DG=function(Y){return function(G){return G.pipe(nIT(Y,IB(new ZG)))}};
hD=function(Y){return function(G){return G.pipe(nIT(Y,nO(1)))}};
nIT=function(Y,G){function u(O){return new yK(function(Q){return O.subscribe(function(M){dg(Y,function(){return void Q.next(M)},3)},function(M){dg(Y,function(){return void Q.error(M)},3)},function(){dg(Y,function(){return void Q.complete()},3)})})}
return fb(u,tLy(),G,qK(),u)};
zB1=function(Y){var G=Fhj(Y);return G===null?new b7(null):G.pipe(sr(function(u){u=u.serialize();if(pFY)u=_.OI.btoa(u);else{for(var O=[],Q=0,M=0;M<u.length;M++){var t=u.charCodeAt(M);t>255&&(O[Q++]=t&255,t>>=8);O[Q++]=t}u=_.vu(O)}return u}),LO(1),hD(Y.queue))};
mUI=function(Y){var G=G===void 0?{}:G;if(typeof Event==="function")return new Event(Y,G);if(typeof document!=="undefined"){var u=document.createEvent("CustomEvent");u.initCustomEvent(Y,G.bubbles||!1,G.cancelable||!1,G.detail);return u}throw Error();};
Whu=function(Y){return typeof Y==="string"?document.getElementById(Y):Y};
xUj=function(Y){var G=!1;G=G===void 0?!1:G;if(Y.tagName==="IMG"){if(Y.complete&&(!Y.naturalWidth||!Y.naturalHeight))return!0;var u;if(G&&((u=Y.style)==null?void 0:u.display)==="none")return!0}var O,Q;return rXU.test((O=Y.getAttribute("width"))!=null?O:"")&&rXU.test((Q=Y.getAttribute("height"))!=null?Q:"")};
fMt=function(Y,G){if(Y.tagName==="IMG")return Y.naturalWidth&&Y.naturalHeight?!0:!1;try{if(Y.readyState)var u=Y.readyState;else{var O,Q;u=(O=Y.contentWindow)==null?void 0:(Q=O.document)==null?void 0:Q.readyState}return u==="complete"}catch(M){return G===void 0?!1:G}};
Cdj=function(Y){Y||(Y=function(G,u,O){G.addEventListener(u,O)});
return Y};
oIy=function(Y,G){var u=yXA();u=u===void 0?new eB1:u;if(Y=Whu(Y)){var O=Cdj(O);for(var Q=!1,M=function(C){Q||(Q=!0,G(C))},t,K=2,L=0;L<AXy.length;++L)if(AXy[L]===Y.tagName){K=3;
t=[Y];break}t||(t=Y.querySelectorAll(AXy.join(",")));var g=0,P=0,I=!0,k=Y=!1;L={};for(var n=0;n<t.length;L={isImg:void 0},n++){var p=t[n];if(!xUj(p))if(L.isImg=p.tagName==="IMG",fMt(p,u.crossDomainLoadedDefault))Y=!0,L.isImg&&(I=!0);else{g++;var W=function(C){return function(e){g--;!g&&I&&M(K);C.isImg&&(e=e&&e.type==="error",P--,e||(I=!0),!P&&k&&I&&M(K))}}(L);
O(p,"load",W);L.isImg&&(P++,O(p,"error",W))}}P===0&&(I=!0);t=null;t=_.OI.document.readyState==="complete";if(g===0&&!Y&&t)K=5;else if(g||!Y){O(_.OI,"load",function(){!u.pendingImagesBlockLoad||!P&&I?M(4):k=!0});
return}M(K)}};
imA=function(Y,G,u){if(Y)for(var O=0;Y!=null&&O<500&&!u(Y);++O)Y=G(Y)};
RBg=function(Y,G){imA(Y,function(u){try{return u===u.parent?null:u.parent}catch(O){}return null},G)};
wFu=function(Y,G){if(Y.tagName=="IFRAME")G(Y);else{Y=Y.querySelectorAll("IFRAME");for(var u=0;u<Y.length&&!G(Y[u]);++u);}};
Zmt=function(Y){return(Y=Y.ownerDocument)&&(Y.parentWindow||Y.defaultView)||null};
DUY=function(Y,G,u){try{var O=JSON.parse(u.data)}catch(t){}if(typeof O==="object"&&O&&O.type==="creativeLoad"){var Q=Zmt(Y);if(u.source&&Q){var M;RBg(u.source,function(t){try{if(t.parent===Q)return M=t,!0}catch(K){}});
M&&wFu(Y,function(t){if(t.contentWindow===M)return G(O),!0})}}};
hB4=function(Y){return typeof Y==="string"?document.getElementById(Y):Y};
NXt=function(){var Y={};return Y[0]=_.fO(dUA,"current"),Y[1]=_.fO(bmt),Y[2]=_.fO(S_u),Y};
SL=function(Y,G){return Y.left===G.left&&Y.top===G.top&&Y.width===G.width&&Y.height===G.height};
jyg=function(Y,G){return{left:Math.max(Y.left,G.left),top:Math.max(Y.top,G.top),width:Math.max(0,Math.min(Y.left+Y.width,G.left+G.width)-Math.max(Y.left,G.left)),height:Math.max(0,Math.min(Y.top+Y.height,G.top+G.height)-Math.max(Y.top,G.top))}};
VhT=function(Y,G){return{left:Math.round(Y.left+G.x),top:Math.round(Y.top+G.y),width:Y.width,height:Y.height}};
lMT=function(Y,G,u,O,Q,M,t){var K="";Y&&(K+=Y+":");u&&(K+="//",G&&(K+=G+"@"),K+=u,O&&(K+=":"+O));Q&&(K+=Q);M&&(K+="?"+M);t&&(K+="#"+t);return K};
_.jL=function(Y){return Y.match(BX1)};
_.VW=function(Y,G){return Y?G?decodeURI(Y):decodeURIComponent(Y):Y};
$UA=function(Y){Y=_.jL(Y)[1]||null;!Y&&_.OI.self&&_.OI.self.location&&(Y=_.OI.self.location.protocol.slice(0,-1));return Y?Y.toLowerCase():""};
_.l7=function(Y){return _.VW(_.jL(Y)[3]||null,!0)};
_.BI=function(Y){return _.VW(_.jL(Y)[5]||null,!0)};
_.q_a=function(Y){var G=Y.indexOf("#");return G<0?null:Y.slice(G+1)};
syA=function(Y){Y=_.jL(Y);return lMT(Y[1],Y[2],Y[3],Y[4])};
_.cXU=function(Y){Y=_.jL(Y);return lMT(Y[1],null,Y[3],Y[4])};
_.$x=function(Y){Y=_.jL(Y);return lMT(null,null,null,null,Y[5],Y[6],Y[7])};
_.qI=function(Y){var G=Y.indexOf("#");return G<0?Y:Y.slice(0,G)};
ss=function(Y,G){Y=_.jL(Y);G=_.jL(G);return Y[3]==G[3]&&Y[1]==G[1]&&Y[4]==G[4]};
UUg=function(Y,G){if(Y){Y=Y.split("&");for(var u=0;u<Y.length;u++){var O=Y[u].indexOf("="),Q=null;if(O>=0){var M=Y[u].substring(0,O);Q=Y[u].substring(O+1)}else M=Y[u];G(M,Q?cI(Q):"")}}};
vIg=function(Y){var G=Y.indexOf("#");G<0&&(G=Y.length);var u=Y.indexOf("?");if(u<0||u>G){u=G;var O=""}else O=Y.substring(u+1,G);return[Y.slice(0,u),O,Y.slice(G)]};
JX4=function(Y,G){return G?Y?Y+"&"+G:G:Y};
_.Yyj=function(Y,G){if(!G)return Y;Y=vIg(Y);Y[1]=JX4(Y[1],G);return Y[0]+(Y[1]?"?"+Y[1]:"")+Y[2]};
_.Gmj=function(Y,G,u){if(Array.isArray(G))for(var O=0;O<G.length;O++)_.Gmj(Y,String(G[O]),u);else G!=null&&u.push(Y+(G===""?"":"="+_.Us(G)))};
_.vI=function(Y){var G=[],u;for(u in Y)_.Gmj(u,Y[u],G);return G.join("&")};
_.JD=function(Y,G){G=_.vI(G);return _.Yyj(Y,G)};
_.YI=function(Y,G,u){u=u!=null?"="+_.Us(u):"";return _.Yyj(Y,G+u)};
uYy=function(Y,G,u,O){for(var Q=u.length;(G=Y.indexOf(u,G))>=0&&G<O;){var M=Y.charCodeAt(G-1);if(M==38||M==63)if(M=Y.charCodeAt(G+Q),!M||M==61||M==38||M==35)return G;G+=Q+1}return-1};
_.Gh=function(Y,G){var u=Y.search(O7t),O=uYy(Y,0,G,u);if(O<0)return null;var Q=Y.indexOf("&",O);if(Q<0||Q>u)Q=u;O+=G.length+1;return cI(Y.slice(O,Q!==-1?Q:0))};
_.ud=function(Y,G){for(var u=Y.search(O7t),O=0,Q,M=[];(Q=uYy(Y,O,G,u))>=0;)M.push(Y.substring(O,Q)),O=Math.min(Y.indexOf("&",Q)+1||u,u);M.push(Y.slice(O));return M.join("").replace(Qej,"$1")};
_.O_=function(Y,G,u){return _.YI(_.ud(Y,G),G,u)};
MG4=function(Y){var G=vIg(window.location.href),u=G[1],O=[];u&&u.split("&").forEach(function(Q){var M=Q.indexOf("=");M=M>=0?Q.slice(0,M):Q;Y.hasOwnProperty(M)||O.push(Q)});
G[1]=JX4(O.join("&"),_.vI(Y));return G[0]+(G[1]?"?"+G[1]:"")+G[2]};
H7j=function(Y,G,u){if(Y&&G!==null&&G!=G.top){if(!G.top)return new _.oB(-12245933,-12245933);G=G.top}try{return(u===void 0?0:u)?(new _.oB(G.innerWidth,G.innerHeight)).round():_.QF(G).round()}catch(O){return new _.oB(-12245933,-12245933)}};
EHt=function(Y,G,u){try{if(Y){if(!G.top)return new i7(-12245933,-12245933,-12245933,-12245933);G=G.top}var O=H7j(Y,G,u),Q=O.height,M=O.width;if(M===-12245933)return new i7(M,M,M,M);var t=MU(HF(G.document)),K=t.x,L=t.y;return new i7(L,K+M,L+Q,K)}catch(g){return new i7(-12245933,-12245933,-12245933,-12245933)}};
tG1=function(Y){var G;return(G=Y.google_tag_data)!=null?G:Y.google_tag_data={}};
KfA=function(Y){var G,u;return typeof((G=Y.navigator)==null?void 0:(u=G.userAgentData)==null?void 0:u.getHighEntropyValues)==="function"};
TUT=function(Y){if(!KfA(Y))return null;var G=tG1(Y);if(G.uach_promise)return G.uach_promise;Y=Y.navigator.userAgentData.getHighEntropyValues(a4j).then(function(u){G.uach!=null||(G.uach=u);return u});
return G.uach_promise=Y};
Wf4=function(Y){var G;return Lfy(gH1(XMY(PIU(I44(kmj(nHy(FfU(pMy(new zrt,Y.architecture||""),Y.bitness||""),Y.mobile||!1),Y.model||""),Y.platform||""),Y.platformVersion||""),Y.uaFullVersion||""),((G=Y.fullVersionList)==null?void 0:G.map(function(u){var O=new mA4;O=_.E_(O,1,u.brand);return _.E_(O,2,u.version)}))||[]),Y.wow64||!1)};
rPt=function(Y){var G,u;return(u=(G=TUT(Y))==null?void 0:G.then(function(O){return Wf4(O)}))!=null?u:null};
xAY=function(Y,G){return new yK(function(u){var O=!1,Q=Array(G.length);Q.fill(void 0);var M=new Set,t=new Set,K=function(I,k){Y.running?(Q[k]=I,M.add(k),O||(O=!0,dg(Y,function(){O=!1;u.next(_.Vj(Q))},1))):u.error(new tX(k))},L=function(I,k){t.add(k);
M.add(k);dg(Y,function(){u.error(I)},1)},g=function(I){t.add(I);
dg(Y,function(){t.size===G.length&&u.complete()},1)},P=G.map(function(I,k){return I.subscribe(function(n){return void K(n,k)},function(n){return void L(n,k)},function(){return void g(k)})});
return function(){P.forEach(function(I){return void I.unsubscribe()})}})};
yPj=function(Y,G,u){function O(){if(G.debugChannel){var C=G.debugChannel,e=C.next;var w={creativeId:G.debugNames.getName(u),requiredSignals:Q,signals:Object.assign({},M),hasPrematurelyCompleted:t,errorMessage:K,erroredSignalKey:L};w={specMajor:2,specMinor:0,specPatch:0,timestamp:HI(G.timeProvider.now(),new Es(0,G.timeProvider.timeline)),instanceId:G.debugNames.getName(G.symbol),creativeState:w};e.call(C,w)}}
for(var Q=Object.keys(Y),M={},t=!1,K=null,L=null,g={},P=new Set,I=[],k=[],n=_.E(Q),p=n.next(),W={};!p.done;W={key$jscomp$396:void 0},p=n.next())W.key$jscomp$396=p.value,p=Y[W.key$jscomp$396],p instanceof b7?(g[W.key$jscomp$396]=p.value,P.add(W.key$jscomp$396),G.debugChannel&&(M[String(W.key$jscomp$396)]=wIt(p.value))):(p=p.pipe(gg(function(C,e){return iOt(C)||iOt(e)?!1:C===e}),sr(function(C){return function(e){G.debugChannel&&(M[String(C.key$jscomp$396)]=wIt(e),O());
var w={};return w[C.key$jscomp$396]=e,w}}(W)),KO(function(C){return function(e){if(e instanceof tX)throw new f4a(String(C.key$jscomp$396));
throw e;}}(W)),$IA(function(C){return function(){P.add(C.key$jscomp$396)}}(W),function(C){return function(e){L=String(C.key$jscomp$396);
K=String(e);O()}}(W),function(C){return function(){P.has(C.key$jscomp$396)||(t=!0,O())}}(W))),k.push(W.key$jscomp$396),I.push(p));
(Y=Object.keys(M).length>0)&&O();n=xAY(G.queue,I).pipe(KO(function(C){if(C instanceof tX)throw new CIu(String(k[C.inputObservableIndex]));throw C;}),sr(function(C){return Object.freeze(Object.assign.apply(Object,[{},
g].concat(_.c8(C))))}));
return(I=I.length>0)&&Y?QW(VK(Object.freeze(g)),n):I?n:VK(Object.freeze(g))};
ert=function(Y,G,u,O,Q){return Y.performanceMonitor.timeExecution.bind(Y.performanceMonitor)(733,function(){var M={};try{return G.pipe(KO(function(t){O(Object.assign({},M,{error:t}));return Os}),Gd(function(t){try{var K=u(Y,t)}catch(g){return O(Object.assign({},M,{error:g instanceof Error?g:String(g)})),Os}var L={};
return yPj(K,Y,t.symbol).pipe($IA(function(g){L=g}),nO(1),qK()).pipe(Q,KO(function(g){O(Object.assign({},L,{error:g}));
return Os}),XQ(void 0),sr(function(){return!0}))})).pipe(FQ(function(t){return t+1},0),KO(function(t){O(Object.assign({},M,{error:t}));
return Os}))}catch(t){return O(Object.assign({},M,{error:t})),Os}})()};
Km=function(Y){var G=new Map;if(typeof Y!=="object"||Y===null)return G;Object.values(Y).forEach(function(u){u&&typeof u.extrapolateToNow==="function"&&(G.has(u.clock.timeline)||G.set(u.clock.timeline,u.clock.now()))});
return G};
APa=function(Y,G){return typeof Y==="string"?encodeURIComponent(Y):typeof Y==="number"?String(Y):Array.isArray(Y)?Y.map(function(u){return APa(u,G)}).join(","):Y instanceof Es?Y.toString():Y&&typeof Y.extrapolateToNow==="function"?APa(Y.extrapolateUsingTimestampMap(G).value,G):Y===!0?"1":Y===!1?"0":Y===void 0||Y===null?null:Y instanceof oHu?i7U(Y):[Y.top,
Y.left,Y.top+Y.height,Y.left+Y.width].join()};
RrY=function(Y,G){Y=Object.entries(Y).map(function(u){var O=_.E(u);u=O.next().value;O=O.next().value;O=APa(O,G);return O===null?"":u+"="+O}).filter(function(u){return u!==""});
return Y.length?Y.join("&"):""};
DAt=function(Y,G){var u=wM4,O=Z7T;G=G===void 0?.01:G;return function(Q){G>0&&Math.random()<=G&&(Y.global.HTMLFencedFrameElement&&Y.global.fence&&typeof Y.global.fence.reportEvent==="function"&&Y.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),Q=Object.assign({},Q,{errorMessage:Q.error instanceof Error&&Q.error.message?Q.error.message:String(Q.error),errorStack:Q.error instanceof Error&&Q.error.stack?String(Q.error.stack):null,errorName:Q.error instanceof
Error&&Q.error.name?String(Q.error.name):null,errorContext:String(Y.performanceMonitor.timedFunctionContext),errorEscapedQueryId:Q.escapedQueryId}),u(Object.assign({},Q,{payloadMapper:function(){return function(M){try{return O(Object.assign({},M))}catch(t){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),Km(Q)).forEach(function(M){Y.beaconFactory.makeBeacon(M).sendNow()}))}};
hra=function(){var Y=_.vs.apply(0,arguments);return function(G){var u=G.pipe(nO(1),qK());G=Y.map(function(O){return u.pipe(O,XQ(!0))});
return Ur(G).pipe(LO(1),aB())}};
dAt=function(){var Y=_.vs.apply(0,arguments);return function(G){var u=G.pipe(nO(1),qK());G=Y.map(function(O){return u.pipe(O,XQ(!0))});
return QW.apply(null,_.c8(G)).pipe(LO(1),aB())}};
b7j=function(Y,G){return function(u){var O=u.pipe(nO(1),qK());u=O.pipe(Y,XQ(!0));O=O.pipe(fb(G,nO(),qK()),XQ(!0));u=Ur([u,O]);return ADU(u,O).pipe(LO(1),aB())}};
SyA=function(Y,G,u){u(!0)};
NUT=function(Y,G){return fb(zd(function(u){var O=Y(u),Q=G(u),M={};return O&&Q&&M?new yK(function(t){Q(O,M,function(K){t.next(Object.assign({},u,{canEmit:K}));t.complete()});
return function(){}}):ay}),MI(function(u){return u.canEmit}))};
jey=function(Y){var G={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(u){return u.pipe(zd(function(O){return new yK(function(Q){function M(){K.disconnect();L.unsubscribe()}
var t=Y.MutationObserver;if(t&&O.ref!==void 0){var K=new t(function(g){Q.next(g)});
K.observe(O.ref,G);var L=O.JSC$9681_released.subscribe(M);return M}})}))}};
VGt=function(Y){if(Y.measurementDeferralState===3)return null;if(Y.timeOnScreenReason!==void 0){var G=Y.creativeFound===!1?"n":null;if(G!==null)return G}return Y.geometricMeasurementErrors instanceof Th?"msf":Y.contextValidationErrors instanceof Lm?"c":Y.contextVisibilityKnown===!1?"pv":Y.geometricMeasurementErrors||Y.contextValidationErrors?"x":null};
BUA=function(Y,G){return Y.replace(l4j,function(u,O){try{var Q=_.gX.get(G,O);if(Q==null||Q.toString()==null)return u;Q=Q.toString();if(Q==""||!_.K1(Q==null?"":String(Q)))return encodeURIComponent(Q).replace(/%2C/g,",")}catch(M){}return u})};
$A1=function(Y,G){var u=Object.assign({},Y),O=Y.userAgentClientHints;u=(delete u.userAgentClientHints,u);u=Y.payloadMapper(u);var Q=RrY(u,G);return _.Xi(Y.urlPrefixes,function(M){var t="";typeof O==="string"&&(t="&"+RrY({uach:O},G));var K={};return BUA(M,(K.VIEWABILITY=Q,K))+t})};
wM4=function(Y,G){var u=Y.payloadMapper(Y),O=RrY(u,G);return O?_.Xi(Y.urlPrefixes,function(Q){Q=Q.indexOf("?")>=0?Q:Q+"?";Q="?&".indexOf(Q.slice(-1))>=0?Q:Q+"&";return Q+O}):Y.urlPrefixes};
qyj=function(){return fb(MI(function(Y){return Y!==void 0}),sr(function(Y){return Y}))};
set=function(Y){return fb(sr(function(){return!0}),pO(!1),hD(Y))};
cPg=function(Y){return Y.length<=0?Os:Ur(Y.map(function(G){var u=0;return G.pipe(sr(function(O){return{index:u++,value:O}}))})).pipe(MI(function(G){return G.every(function(u){return u.index===G[0].index})}),sr(function(G){return G.map(function(u){return u.value})}))};
UAt=function(Y,G){Y.currentState&&(Y.previousState=Y.currentState);Y.currentState=G;Y.previousState&&Y.previousState.value?(G=Math.max(0,HI(G.timestamp,Y.previousState.timestamp)),Y.totalTime+=G,Y.consecutiveTime+=G):Y.consecutiveTime=0;return Y};
vHg=function(){return fb(FQ(UAt,{totalTime:0,consecutiveTime:0}),sr(function(Y){return Y.totalTime}))};
JPA=function(){return fb(FQ(UAt,{totalTime:0,consecutiveTime:0}),sr(function(Y){return Y.consecutiveTime}))};
YWU=function(Y,G){return function(u){return cPg(G.map(function(O){return u.pipe(Y(O))}))}};
GXT=function(){var Y;return fb($IA(function(G){return void(Y=G.timestamp)}),JPA(),sr(function(G){return{timestamp:Y,
value:Math.round(G)}}))};
uxU=function(Y,G){return SL(Y.topWindowViewportExternalGeometry,G.topWindowViewportExternalGeometry)&&SL(Y.elementGeometry,G.elementGeometry)&&SL(Y.exposedViewportLocalGeometry,G.exposedViewportLocalGeometry)&&SL(Y.intersectionGeometry,G.intersectionGeometry)&&Y.elementGeometrySourceName===G.elementGeometrySourceName&&Y.measurementRequests===G.measurementRequests&&Y.viewportGeometrySourceName===G.viewportGeometrySourceName&&Y.viewportLocalAppOffset.x===G.viewportLocalAppOffset.x&&Y.viewportLocalAppOffset.y===
G.viewportLocalAppOffset.y};
H2A=function(Y,G){return function(u){return function(O){var Q=O.pipe(IB(new ZG),qK());O=u.element.pipe(gg());Q=Q.pipe(sr(function(M){return M.value}));
return Ur([O,Q,G]).pipe(sr(function(M){var t=_.E(M);M=t.next().value;var K=t.next().value;t=t.next().value;if(M.ref===void 0)var L={top:0,left:0,width:0,height:0};else{L=M.ref.getBoundingClientRect();var g=M.ref,P=Y.global,I=new _.AD(0,0),k=kI(_.nm(g));if(vxy(k,"parent")){do{if(k==P)var n=_.Fi(g);else n=O21(g),n=new _.AD(n.left,n.top);I.x+=n.x;I.y+=n.y}while(k&&k!=P&&k!=k.parent&&(g=k.frameElement)&&(k=k.parent))}L={top:I.y,left:I.x,width:L.width,height:L.height}}L=VhT(L,K.viewportLocalAppOffset);
P=jyg(L,K.exposedViewportLocalGeometry);I=Y.timeProvider.now();k=Object;g=k.assign;if(t!==2||Y.inCrossDomainIframe||P.width<=0||P.height<=0)var p=!1;else try{var W=Y.document.elementFromPoint(P.left+P.width/2,P.top+P.height/2);p=W?!QEI(W,M):!1}catch(C){p=!1}return{timestamp:I,value:g.call(k,{},K,{elementGeometrySourceName:"geo",intersectionGeometry:p?MEI.intersectionGeometry:P,elementGeometry:L})}}),DG(Y.queue))}}};
QEI=function(Y,G,u){u=u===void 0?0:u;return Y.ref===void 0||G.ref===void 0?!1:Y.ref===G.ref||_.pm(G.ref,function(O){return O===Y.ref})?!0:G.ref.ownerDocument&&G.ref.ownerDocument.defaultView&&G.ref.ownerDocument.defaultView===G.ref.ownerDocument.defaultView.top?!1:u<10&&G.ref.ownerDocument&&G.ref.ownerDocument.defaultView&&G.ref.ownerDocument.defaultView.frameElement?QEI(Y,new zh(G.ref.ownerDocument.defaultView.frameElement),u+1):!0};
Kvy=function(Y){return function(G){return G.pipe(Y.ResizeObserver?ElY(Y):tEy(Y),nO(1),qK())}};
ElY=function(Y){return function(G){return G.pipe(zd(function(u){var O=Y.ResizeObserver;if(!O||u.ref===void 0)return VK(MEI.elementGeometry);var Q=(new yK(function(M){function t(){u.ref!==void 0&&K.unobserve(u.ref);K.disconnect();L.unsubscribe()}
if(u.ref===void 0)return M.complete(),function(){};
var K=new O(function(g){g.forEach(function(P){M.next(P)})});
K.observe(u.ref);var L=u.JSC$9681_released.subscribe(t);return t})).pipe(tD(Y.performanceMonitor,736),sr(function(M){return M.contentRect}));
return QW(VK(u.ref.getBoundingClientRect()),Q)}),gg(SL))}};
tEy=function(Y){return function(G){var u=G.pipe(jey(Y)),O=Y.onResize;u=QW(G.pipe(sr(function(){return mUI("resize")})),u,O);
return Ur(G,u).pipe(tD(Y.performanceMonitor,737),sr(function(Q){Q=_.E(Q).next().value;return Q.ref===void 0?void 0:Q.ref.getBoundingClientRect()}),qyj(),gg(SL))}};
LvA=function(Y,G){var u=a1T(Y,G).pipe(nO(1),qK());return function(O){return function(Q){Q=Q.pipe(zd(function(M){return M.element}),gg());
return Ur([u,Q]).pipe(zd(function(M){var t=_.E(M);M=t.next().value;t=t.next().value;return T_U(Y,M.intersectionObserver,Kvy(Y),M.observations,O,M.flushRecords,t)}),DG(Y.queue))}}};
glt=function(Y){return sr(function(G){return G.value.viewportGeometrySourceName!=="nio"?G:Object.assign({},G,{value:Object.assign({},G.value,{exposedViewportLocalGeometry:mh(Y,!0),topWindowViewportExternalGeometry:mh(Y,!0)})})})};
XwT=function(Y,G){return VK(G).pipe(Y,sr(function(){return G}))};
a1T=function(Y,G){return Y.timeProvider.timeline!==PFt?l3(new Th(2)):Y.MutationObserver?typeof IntersectionObserver==="undefined"?l3(new Th(0)):(new yK(function(u){var O=new ZG,Q=new WF(O.next.bind(O),{threshold:[].concat(_.c8(G))});u.next({observations:O.pipe(tD(Y.performanceMonitor,735)),intersectionObserver:Q,flushRecords:function(M){M=Q.takeRecords(M);M.length>0&&O.next(M)}})})).pipe(LO(1),nO(1),qK()):l3(new Th(1))};
I1Y=function(Y){return v64(Y.sort(function(G,u){return G.time-u.time}),ExY)};
T_U=function(Y,G,u,O,Q,M,t){return new yK(function(K){function L(){p||(p=!0,t.ref!==void 0&&G.unobserve(Q,t.ref),P.unsubscribe(),n.unsubscribe(),k.unsubscribe(),W.unsubscribe())}
if(t.ref!==void 0){kXu(G,Q);G.observe(Q,t.ref);var g=new rX({timestamp:Y.timeProvider.now(),value:Object.assign({},MEI,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),P=O.pipe(Gd(function(C){return I1Y(C)}),MI(function(C){return C.target===t.ref}),sr(function(C){return{timestamp:new Es(C.time,PFt),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:C.rootBounds||xI,topWindowViewportExternalGeometry:C.rootBounds||mh(Y,!0),measurementRequests:I,elementGeometrySourceName:"nio",intersectionGeometry:C.intersectionRect,elementGeometry:C.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:C.isIntersecting,isV2Visible:C.isVisible}}}),IB(g),qK()).subscribe(K),I=new ZG,k=I.subscribe(function(){M(Q);
K.next({timestamp:Y.timeProvider.now(),value:g.value.value});t.ref!==void 0&&(G.unobserve(Q,t.ref),G.observe(Q,t.ref))}),n=XwT(u,t).subscribe(function(){I.next()}),p=!1,W=t.JSC$9681_released.subscribe(function(){return L()});
return L}})};
nlt=function(Y,G){var u=Y.getOnBackgrounded().pipe(sr(function(){return"b"}));
return ADU(G,u).pipe(LO(1),hD(Y.queue))};
fm=function(Y){return function(G){var u;return G.pipe($IA(function(O){return void(u=O.timestamp)}),sr(function(O){return O.value}),Y,sr(function(O){return{timestamp:u,
value:O}}))}};
Fvy=function(Y){return Y.intersectionGeometry.width*Y.intersectionGeometry.height/(Y.elementGeometry.width*Y.elementGeometry.height)};
Cm=function(Y,G,u){u=u===void 0?function(O,Q){return O===Q}:u;
return Y.timestamp.equals(G.timestamp)&&u(Y.value,G.value)};
AX=function(Y,G){return G.pipe(sr(function(u){return new yF(Y.timeProvider,{timestamp:Y.timeProvider.now(),value:u})}))};
pwU=function(Y){return function(G){return G.pipe(qsT(Y),sr(function(u){var O=_.E(u);u=O.next().value;O=O.next().value;var Q=u.value;return{timestamp:u.timestamp,value:Q>=1?!0:Q<=0?!1:Q>=O}}))}};
mcA=function(){return fb(MI(function(Y,G){return G>0}),zNg,pO(-1),gg())};
WvA=function(Y,G,u){return Y?Ur([G,u]).pipe(MI(function(O){var Q=_.E(O);O=Q.next().value;Q=Q.next().value;return O.timestamp.equals(Q.timestamp)}),sr(function(O){var Q=_.E(O);
O=Q.next().value;Q=Q.next().value;return O.value>Q.value?O:Q})):G};
f14=function(Y){return function(G){var u=G.pipe(rTj),O=G.pipe(xcg);return Y instanceof yK?Y.pipe(zd(function(Q){return WvA(Q,u,O)})):WvA(Y.value,u,O)}};
Dct=function(Y,G,u,O){var Q=O.geometryIsOccluded,M=O.exposureThreshold,t=O.wasLargeAdAtRender,K=O.allowLargeAdThreshold,L=O.largeAdExposureThreshold,g=O.mayUseViewportShareExposure,P=O.hasMeasurementStarted;O=O.useIntersectionObserverV2;G=CFu(Y,u,G);u=yTa(Y,u);O=eN1(G,O);var I=ATu(Y,Q,g,G),k=I.pipe(sr(function(h){return h.value}),gg(),hD(Y),FQ(function(h,q){return Math.max(h,q)},0)),n=I.pipe(sr(function(h){return h.value}),mcA(),hD(Y)),p=G.pipe(olI,sr(function(h){return h.value}),LO(2),gg(),hD(Y));
t=i2t(Y,G,t,K);var W=t.pipe(pO(!1),gg(),sr(function(h){return h?L:M}));
K=I.pipe(pwU(W),gg(),hD(Y));var C=Ur([K,G]).pipe(MI(function(h){var q=_.E(h);h=q.next().value;q=q.next().value;return h.timestamp.equals(q.timestamp)}),sr(function(h){var q=_.E(h);
h=q.next().value;q=q.next().value;return{visible:h.value,geometry:q.value.elementGeometry}}),FQ(function(h,q){return!q.visible&&h.visible?h:q},{visible:!1,
geometry:xI}),sr(function(h){return h.geometry}),pO(xI),hD(Y),gg(SL));
g=g instanceof yK?g.pipe(gg(),Td()):ay;W=Ur([g,W]).pipe(Td());var e=G.pipe(MI(function(h){return h.value.viewportGeometrySourceName!=="ns"&&h.value.elementGeometrySourceName!=="ns"}),FQ(function(h){return h+1},0),pO(0),hD(Y)),w=u.pipe(Td(!0),pO(!1),hD(Y));
w=Ur([P,w]).pipe(sr(function(h){var q=_.E(h);h=q.next().value;q=q.next().value;return h&&!q}),hD(Y));
var B=G.pipe(RNg,gg()),N=B.pipe(sr(function(h){return h.value}),FQ(function(h,q){return Math.max(h,q)},0),gg(),hD(Y));
Y=B.pipe(sr(function(h){return h.value}),mcA(),hD(Y));
return{shouldResetExposureSignals:g,shouldResetViewabilitySignals:W,geometrySignals:{readyGeometryWithDefault:G,measurementStrategy:G.pipe(ww4),creativePosition:C.pipe(gg(SL)),visible:K.pipe(gg(Cm)),timestampedExposure:I.pipe(gg(Cm)),maximumExposure:k,minimumExposure:n,browserSize:G.pipe(Z2I,gg(_.UI)),timestampedScreenShare:B,maxScreenShare:N,minScreenShare:Y,geometricMeasurementErrors:u,measurementRequests:G.pipe(sr(function(h){return h.value.measurementRequests})),
isLargeAd:t,geometryIsOccluded:Q,hasMeasurementStarted:P,geometryMeasurable:w,validMeasurementCount:e,loadTimeExposure:p,v2VisibilityBitVector:O}}};
yTa=function(Y,G){return G.pipe(MI(function(){return!1}),sr(function(u){return u}),KO(function(u){return oy(new b7(u),Y)}))};
CFu=function(Y,G,u){return G.pipe(yD1(ay),hD(Y)).pipe(gg(function(O,Q){return Cm(O,Q,uxU)}),pO({timestamp:u.now(),
value:MEI}),hD(Y))};
ATu=function(Y,G,u,O){u=O.pipe(f14(u),fm(sr(function(Q){return Math.round(Q*100)/100})),hD(Y));
return G instanceof b7?u:Ur([u,G]).pipe(sr(function(Q){var M=_.E(Q);Q=M.next().value;M=M.next().value;return{timestamp:M.timestamp.maximum(Q.timestamp),value:M.value?0:Q.value}}),gg(Cm),hD(Y))};
i2t=function(Y,G,u,O){G=[G.pipe(sr(function(Q){return Q.value.elementGeometry.width*Q.value.elementGeometry.height>=242500}))];
u instanceof yK&&G.push(u.pipe(sr(function(Q){return!!Q})));
u=Ur(G);return O?u.pipe(sr(function(Q){return Q.some(function(M){return M})}),pO(!1),gg(),hD(Y)):oy(new b7(!1),Y)};
eN1=function(Y,G){Y=Ur([Y,G]).pipe(sr(function(Q){var M=_.E(Q);Q=M.next().value;if(M.next().value&&Q.value.isIntersecting)return Q.value.isV2Visible}),gg());
var u=Y.pipe(sr(function(Q){return Q===void 0?!0:Q}),FQ(function(Q,M){return Q||!M},!1)),O=Y.pipe(FQ(function(Q,M){return M===void 0?Q:M?!1:Q!=null?Q:!0},void 0),sr(function(Q){return!!Q}));
return Ur([G,oxt(Y,u,O)]).pipe(sr(function(Q){var M=_.E(Q);Q=M.next().value;var t=_.E(M.next().value);M=t.next().value;var K=t.next().value;t=t.next().value;var L=0;if(!Q)return 0;if(M===void 0)return 16;M&&(L|=1);M||(L|=2);K&&(L|=4);t&&(L|=8);return L}))};
jE1=function(Y,G,u,O,Q){var M=hN1.timeThresholdMs;var t=t===void 0?new dc1(G,O):t;return(new yK(function(K){var L=u.pipe(pO(void 0),zd(function(){return b2Y(Q)})).pipe(sr(function(g){var P=g.value;
g=g.timestamp;var I=P.visible;P=P.consecutiveViewTime;var k=P>=M;k||!I?SWt(t):(g=Math.max(0,HI(G.now(),g)),N_t(t,Math.max(0,M-P-g)));return k}),FQ(function(g,P){return P||g},!1),gg()).subscribe(K);
return function(){t.dispose();L.unsubscribe()}})).pipe(mS(function(K){return!K},!0),hD(Y))};
b2Y=function(Y){return cPg([Y,Y.pipe(GXT())]).pipe(sr(function(G){var u=_.E(G);G=u.next().value;u=u.next().value;return{timestamp:G.timestamp,value:{visible:G.value,consecutiveViewTime:u.value}}}),gg(function(G,u){return Cm(G,u,function(O,Q){return O.consecutiveViewTime===Q.consecutiveViewTime&&O.visible===Q.visible})}))};
VEa=function(){return fb(JPA(),FQ(function(Y,G){return Math.max(Y,G)},0),sr(function(Y){return Math.round(Y)}))};
l1a=function(Y){return fb(pwU(VK(Y)),VEa())};
B_U=function(Y,G){return G instanceof yK?G.pipe(zd(function(u){return(u=u?15:null)?l3(new Th(u)):Y})):(G=G.value?15:null)?l3(new Th(G)):Y};
$cy=function(Y){var G=new Th(13);if(Y.length<1)return{chain:Os,capturedErrors:Os};var u=new ZG,O=Y[0];return{chain:Y.slice(1).reduce(function(Q,M){return Q.pipe(KO(function(t){u.next(t);return M}))},O).pipe(KO(function(Q){u.next(Q);
return l3(G)}),IB(new ZG),qK()),
capturedErrors:u}};
qWT=function(Y,G){var u=Y.pipe(IB(new ZG),qK());return zd(function(O){return u.pipe(G(O))})};
cTa=function(Y,G){if(Y.inCrossDomainIframe)return l3(new Th(6));var u=new ZG;return QW(VK({}),G,u).pipe(sr(function(){return{timestamp:Y.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:sEu(Y),topWindowViewportExternalGeometry:mh(Y,!0),measurementRequests:u,viewportLocalAppOffset:{x:0,y:0}}}}),DG(Y.queue))};
sEu=function(Y){var G=mh(Y,!1);if(!Y.inIframe||!JDT(Y.global.parent)||Y.global.parent===Y.global)return G;var u=new id(Y.global.parent,Y.debugChannel);u.beaconFactory=Y.beaconFactory;u=sEu(u);Y=Y.global.frameElement.getBoundingClientRect();return jyg(VhT(jyg(u,Y),{x:G.left-Y.left,y:G.top-Y.top}),G)};
UcY=function(Y){if(Y.prerendering)return 3;var G;return(G={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[Y.visibilityState||Y.webkitVisibilityState||Y.mozVisibilityState||""])!=null?G:0};
vlA=function(Y){return Y.document.JSC$9692_onVisibilityChange.pipe(sr(function(G){return G==="visible"}),gg(),hD(Y.queue))};
JTy=function(Y,G,u){var O;return G.pipe(gg(),zd(function(Q){return u.pipe(sr(function(){if(!O){O=!0;try{Q.next()}finally{O=!1}}return!0}))}),pO(!1),hD(Y.queue))};
YHj=function(Y){return fb(fm(sr(function(G){return G>=1?!0:G<=0?!1:G>=Y})),vHg(),sr(function(G){return Math.round(G)}))};
u4g=function(Y,G,u,O,Q){var M=GYt;if(M.length>1)for(var t=0;t<M.length-1;t++)if(M[t]<M[t+1])throw Error();t=Q.pipe(pO(void 0),zd(function(){return u.pipe(GXT())}),gg(),hD(Y));
Q=Q.pipe(pO(void 0),zd(function(){return u.pipe(VEa())}),gg(),hD(Y));
return{totalMeasurementTime:O.pipe(pO(void 0),zd(function(){return G.pipe(sr(function(K){return{timestamp:K.timestamp,value:!0}}),vHg())}),gg(),hD(Y)),
totalUnviewedTime:O.pipe(pO(void 0),zd(function(){return G.pipe(sr(function(K){return{timestamp:K.timestamp,value:K.value===0}}),vHg())}),gg(),hD(Y)),
maxTimeOnScreen:O.pipe(pO(void 0),zd(function(){return G.pipe(YWU(l1a,M))}),gg(_.UI),hD(Y)),
timeOnScreen:O.pipe(pO(void 0),zd(function(){return G.pipe(YWU(YHj,M),sr(function(K){return K.map(function(L,g){return g>0?L-K[g-1]:L})}))}),gg(_.UI),hD(Y)),
maxConsecutiveViewTime:Q,consecutiveViewTime:t.pipe(gg(Cm),hD(Y))}};
Q1I=function(Y){var G=!0;G=G===void 0?!1:G;return fb(zd(function(u){return OHI(Y.document,u,G)}),hD(Y.queue))};
MoA=function(Y,G,u){var O=u.pipe(sr(function(Q){return{value:Q,timestamp:Y.timeProvider.now()}}),gg(Cm));
return G instanceof yK?G.pipe(gg(),zd(function(Q){return Q?oy(new b7({value:!1,timestamp:Y.timeProvider.now()}),Y.queue):O})):G.value===!1?O:new b7(!1)};
HHg=function(Y,G,u,O,Q,M,t){var K=hN1;G=G instanceof yK?G.pipe(pO(!1),gg()):G;var L=!Y.isMobile();u=MoA(Y,u,O);Y=t.measurableCreative.pipe(set(Y.queue));return Object.assign({},K,{geometryIsOccluded:u,wasLargeAdAtRender:Q,allowLargeAdThreshold:L,mayUseViewportShareExposure:G,hasMeasurementStarted:Y,useIntersectionObserverV2:M})};
tou=function(Y,G,u,O,Q,M){var t=1;M=M===void 0?!0:M;t=t===void 0?.01:t;var K=K===void 0?Y.timeProvider.intervalObservable(100).pipe(hD(Y.queue)):K;return Y.performanceMonitor.timeExecution(916,function(){return E4g(Y,G.pipe(DG(Y.queue)),u.pipe(DG(Y.queue)),O,Q,M,t,K)})()};
E4g=function(Y,G,u,O,Q,M,t,K){var L=vlA(Y).pipe(sr(function(P){return!P})),g=new K1T(Y,[new aEI(Y,GYt),
new TcY(Y,K)]);K=hra(L1g,g4j);return ert(Y,G,function(P,I){var k=oy(new b7(I.element),P.queue).pipe(Q1I(P),hD(P.queue)),n={loadedElement:k,shouldMeasure:k.pipe(Td(!0)),measurableCreative:k.pipe(sr(function(h){var q=q===void 0?Symbol():q;return Object.freeze({symbol:q,element:oy(new b7(h),P.queue)})})),
creativeSearchResult:oy(new b7("mue"),P.queue)},p=new b7(!1),W=new b7(!1),C=new b7(17),e=new b7(!1),w=new b7(!1),B=oy(Ry,P.queue);p=g.buildGeometrySource(n,{inApp:p,useV2:!1,requestSource:oy(C,P.queue)}).geometrySource;n=HHg(P,e,W,L,w,B,n);W=Dct(P.queue,P.timeProvider,p,n);n=W.geometrySignals;e=W.shouldResetViewabilitySignals;W=u4g(P.queue,n.timestampedExposure,n.visible,W.shouldResetExposureSignals,e);e=jE1(P.queue,P.timeProvider,e,n.measurementRequests,n.visible);w=u.pipe(MI(function(h){return h===
I.element.ref}),sr(function(){return"ur"}));
B=ZOt(P.timeProvider,Q).pipe(Td("t"));w=nlt(P,QW(w,B));B=JTy(P,n.measurementRequests,w.pipe(MI(function(h){return h!==null})));
p=w.pipe(MI(function(h){return h!==null}),sr(function(){return UcY(P.global.document)===1}));
var N=X4u(P.document);return Object.assign({},{beaconFactory:new b7(P.beaconFactory),context:new b7(P),inferredPingId:new b7("lidar2"),timeOnScreenPingId:new b7("lidartos"),binaryContext:new b7(17),binaryVersion:new b7(O),requestSource:C,contextValidationErrors:new b7(P.validate()?null:new Lm),contextVisibilityKnown:new b7(N),payloadMapper:new b7(Z7T),endOfSessionReason:w,timeOnScreenReason:w,requestMeasurementOnEndOfSession:B,hasImpressionFired:Pit,crossDomainIframeState:new b7(P.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Ry,inFetchLaterBeaconExperiment:Ry,isTurtlex:Ry,turtlexReportEventData:new b7(""),reportFencedFrameEvent:ay,isViewableAttributionEnabled:Ry,inViewableAttributionExperiment:new b7(0),fetchBeaconFactory:ay,supportsPendingBeacon:Ry,supportsFetchLater:Ry,emit:new b7(SyA),beginToRenderEvent:new b7(Symbol()),activeViewUnmeasurableEvent:new b7(Symbol()),activeViewViewableEvent:new b7(Symbol()),creativeFound:Pit,immediateUrlPrefixes:new b7(I.immediateUrls),timeOnScreenUrlPrefixes:new b7(I.timeOnScreenUrls),
cpmavUrls:ay,viewableRelayUrls:ay,measurementDeferralState:new b7(2),urlSerializer:new b7($A1),viewUrlSerializer:new b7(IEA),isCreativeLoaded:k.pipe(set(P.queue)),pageVisible:L.pipe(sr(function(h){return!h})),
eosPageVisible:p,timestampedExposureHistory:n.timestampedExposure.pipe(FQ(function(h,q){h.push(q);return h},[]))},n,{viewable:AX(P,e),
maxTimeOnScreen:AX(P,W.maxTimeOnScreen),timeOnScreen:AX(P,W.timeOnScreen),maxConsecutiveViewTime:AX(P,W.maxConsecutiveViewTime),consecutiveViewTime:W.consecutiveViewTime.pipe(sr(function(h){return new yF(P.timeProvider,h)})),
totalMeasurementTime:AX(P,W.totalMeasurementTime),totalUnviewedTime:AX(P,W.totalUnviewedTime),userAgentClientHints:zB1(P),clientOrderPingCounter:new b7(new oHu)})},DAt(Y,t),dAt(M?b7j(K,kYj):b7j(K,n41),F1I))};
p4Y=function(Y){var G=_.vs.apply(1,arguments).filter(Boolean).join("&");if(!G)return Y;var u=Y.match(/[?&]adurl=/);return u?Y.slice(0,u.index+1)+G+"&"+Y.slice(u.index+1):Y+(Y.indexOf("?")<0?"?":"&")+G};
wX=function(Y,G){return G?"&"+Y+"="+encodeURIComponent(G):""};
zPT=function(){try{var Y,G;return!!((Y=window)==null?0:(G=Y.top)==null?0:G.location.href)&&!1}catch(u){return!0}};
_.ZM=function(Y){Y&&typeof Y.dispose=="function"&&Y.dispose()};
_.DM=function(Y){for(var G=0,u=arguments.length;G<u;++G){var O=arguments[G];_.ly(O)?_.DM.apply(null,O):_.ZM(O)}};
W1Y=function(){var Y=m3I();Y=Y===void 0?"bevasrsg":Y;return new Promise(function(G){var u=window===window.top?window:zPT()?window:window.top,O=u[Y],Q;((Q=O)==null?0:Q.bevasrs)?G(new hX(O.bevasrs)):(O||(O={},O=(O.nqfbel=[],O),u[Y]=O),O.nqfbel.push(function(M){G(new hX(M))}))})};
ryU=function(Y){var G={c:Y.eh,e:Y.x9H,mc:Y.wqc,me:Y.jFS};Y.ko&&(G.co={c:Y.ko.ueU,a:Y.ko.mOo,s:Y.ko.eJ3});return G};
x3g=function(Y){var G,u,O={eh:Y.c,x9H:Y.e,wqc:(G=Y.mc)!=null?G:!1,jFS:(u=Y.me)!=null?u:!1};Y.co&&(O.ko={ueU:Y.co.c,mOo:Y.co.a,eJ3:Y.co.s});return O};
fE4=function(Y){return function(){var G;return _.a(function(u){if(u.nextAddress==1)return u.yield(Y(),2);G=u.yieldResult;return u.return({f:function(){return G.suH()},
c:function(O){return G.bxc(O)},
m:function(O){return G.hp(x3g(O))},
mws:function(O){return G.owH(x3g(O))}})})}};
Cig=function(Y,G){var u=m3I();u=u===void 0?"bevasrsg":u;G={s:function(M){var t;return Y.snapshot(Object.assign({},M.c&&{eh:M.c},M.s&&{x0U:M.s},{bUw:(t=M.p)!=null?t:!0}))},
e:function(M){var t;return void((t=Y.kWo)==null?void 0:t.call(Y,M))},
c:function(M,t){return Y.du7(M,t)},
p:Y.m7U,l:function(){return Y.hs5()},
wpc:G?fE4(G):void 0};var O=window===window.top?window:zPT()?window:window.top,Q=O[u];if(Q){Q.bevasrs=G;if(Q.nqfbel!==void 0)for(u=_.E(Q.nqfbel),O=u.next();!O.done;O=u.next())O=O.value,O(G);Q.nqfbel=void 0}else Q={},Q=(Q.bevasrs=G,Q.nqfbel=void 0,Q),O[u]=Q};
ePj=function(Y){var G=G===void 0?53:G;var u=[];_.dX(Y,yyy,6,_.bd()).forEach(function(O){_.Sh(O,2)<=G&&u.push(_.Sh(O,1))});
return u};
Ayu=function(Y){var G=G===void 0?53:G;var u=[];_.dX(Y,yyy,6,_.bd()).forEach(function(O){_.Sh(O,2)>G&&u.push(_.Sh(O,1))});
return u};
o44=function(Y){Y.then(function(){},function(){})};
NU=function(Y){return{fieldType:1,fieldName:Y}};
jh=function(Y){return{fieldType:2,fieldName:Y}};
_.VF=function(Y){return{fieldType:3,fieldName:Y}};
iHY=function(){function Y(){Q[0]=1732584193;Q[1]=4023233417;Q[2]=2562383102;Q[3]=271733878;Q[4]=3285377520;P=g=0}
function G(I){for(var k=t,n=0;n<64;n+=4)k[n/4]=I[n]<<24|I[n+1]<<16|I[n+2]<<8|I[n+3];for(n=16;n<80;n++)I=k[n-3]^k[n-8]^k[n-14]^k[n-16],k[n]=(I<<1|I>>>31)&4294967295;I=Q[0];var p=Q[1],W=Q[2],C=Q[3],e=Q[4];for(n=0;n<80;n++){if(n<40)if(n<20){var w=C^p&(W^C);var B=1518500249}else w=p^W^C,B=1859775393;else n<60?(w=p&W|C&(p|W),B=2400959708):(w=p^W^C,B=3395469782);w=((I<<5|I>>>27)&4294967295)+w+e+B+k[n]&4294967295;e=C;C=W;W=(p<<30|p>>>2)&4294967295;p=I;I=w}Q[0]=Q[0]+I&4294967295;Q[1]=Q[1]+p&4294967295;Q[2]=
Q[2]+W&4294967295;Q[3]=Q[3]+C&4294967295;Q[4]=Q[4]+e&4294967295}
function u(I,k){if(typeof I==="string"){I=unescape(encodeURIComponent(I));for(var n=[],p=0,W=I.length;p<W;++p)n.push(I.charCodeAt(p));I=n}k||(k=I.length);n=0;if(g==0)for(;n+64<k;)G(I.slice(n,n+64)),n+=64,P+=64;for(;n<k;)if(M[g++]=I[n++],P++,g==64)for(g=0,G(M);n+64<k;)G(I.slice(n,n+64)),n+=64,P+=64}
function O(){var I=[],k=P*8;g<56?u(K,56-g):u(K,64-(g-56));for(var n=63;n>=56;n--)M[n]=k&255,k>>>=8;G(M);for(n=k=0;n<5;n++)for(var p=24;p>=0;p-=8)I[k++]=Q[n]>>p&255;return I}
for(var Q=[],M=[],t=[],K=[128],L=1;L<64;++L)K[L]=0;var g,P;Y();return{reset:Y,update:u,digest:O,digestString:function(){for(var I=O(),k="",n=0;n<I.length;n++)k+="0123456789ABCDEF".charAt(Math.floor(I[n]/16))+"0123456789ABCDEF".charAt(I[n]%16);return k}}};
ld=function(Y){this.JSC$9939_document_=Y||{cookie:""}};
d3j=function(Y,G){G=G===void 0?RPY:G;if(!w4A){var u;Y=(u=Y.navigator)==null?void 0:u.userAgentData;if(!Y||typeof Y.getHighEntropyValues!=="function"||Y.brands&&typeof Y.brands.map!=="function")return Promise.reject(Error("va"));ZHg((Y.brands||[]).map(function(Q){var M=new D3t;M=_.E_(M,1,Q.brand);return _.E_(M,2,Q.version)}));
typeof Y.mobile==="boolean"&&_.BF(hPj,2,Y.mobile);w4A=Y.getHighEntropyValues(G)}var O=new Set(G);return w4A.then(function(Q){var M=hPj.clone();O.has("platform")&&_.E_(M,3,Q.platform);O.has("platformVersion")&&_.E_(M,4,Q.platformVersion);O.has("architecture")&&_.E_(M,5,Q.architecture);O.has("model")&&_.E_(M,6,Q.model);O.has("uaFullVersion")&&_.E_(M,7,Q.uaFullVersion);return M.serialize()}).catch(function(){return hPj.serialize()})};
$I=function(Y,G,u,O){this.initialValue_=Y;this.maxValue_=G;this.currBaseValue_=this.currValue_=Y;this.randomFactor_=u||0;this.backoffFactor_=O||2};
SHj=function(Y,G,u,O,Q){this.listener=Y;this.proxy=null;this.src=G;this.type=u;this.capture=!!O;this.handler=Q;this.key=++bHY;this.removed=this.callOnce=!1};
qU=function(Y){this.src=Y;this.listeners={};this.typeCount_=0};
lEg=function(){for(var Y;Y=NcA.remove();){try{Y.fn.call(Y.scope)}catch(G){Qj(G)}j1Y.put(Y)}Vo4=!1};
_.Bct=function(Y){switch(Y){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}};
$3y=function(Y){switch(Y){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""}};
_.qHt=function(){};
OGy=function(Y,G,u,O){Y=s1A(cyu(U31(new _.U_(1828,"0"),Y),new v4y)).disableWithCredentials();G.length&&Jyj(Y,Y5u(new GRU,G));O!==void 0&&(Y.destinationUrl=O);var Q=new uwA(1828,"","",!1,"",Y.build());_.vF(Q,Y);var M=new JX({flush:function(t){try{Q.flush(t)}catch(K){u(K)}}});
M.addOnDisposeCallback(function(){setTimeout(function(){try{M.snapshotAndFlush()}finally{Q.dispose()}})});
M.invocationLimit=1E5;M.flushInterval=3E4;M.JSC$10108_flushTimer.setInterval(3E4);return M};
YH=function(){var Y,G,u;return(u=(Y=globalThis.performance)==null?void 0:(G=Y.now)==null?void 0:G.call(Y))!=null?u:Date.now()};
HG1=function(Y,G){if(Y.disable)return new Q2Y;G=G?ePj(G):[];Y={tO:Y.tO,fm7:Y.rQc,dBE:Y.bYb,destinationUrl:Y.destinationUrl,gzb:Y.gzb,hKt:Y.hKt};G=G===void 0?[]:G;return new M1g(Y,G)};
Egg=function(Y){if(!Y)return null;Y=_.Gm(Y,2);return Y===null||Y===void 0?null:Or(Y)};
_.t1T=function(Y){if(!Y)return null;Y=_.Gm(Y,4);return Y===null||Y===void 0?null:_.dT(Y)};
TCA=function(Y,G){return G?K_a(G):Y?anj(Y):Promise.resolve()};
K_a=function(Y){return new Promise(function(G,u){var O=_.uI("SCRIPT"),Q=_.t1T(Y);_.P8(O,Q);O.onload=function(){_.Oy(O);G()};
O.onerror=function(){_.Oy(O);u(Error("Ga"))};
(Qn("HEAD")[0]||document.documentElement).appendChild(O)})};
anj=function(Y){return new Promise(function(G){var u=_.uI("SCRIPT");if(Y){var O=_.Gm(Y,6);O=O===null||O===void 0?null:_.Lb(O)}else O=null;_.XH(u,O);(Qn("HEAD")[0]||document.documentElement).appendChild(u);_.Oy(u);G()})};
MA=function(Y,G,u){var O,Q=new Promise(function(M){O=setTimeout(M,G)});
return Promise.race([Y.finally(function(){return void clearTimeout(O)}),
Q.then(u)])};
L_j=function(Y,G){try{return globalThis.sessionStorage.setItem(Y,G),!0}catch(u){return!1}};
ggt=function(Y,G,u,O){G=G===void 0?0:G;u=u===void 0?Y.length:u;var Q=0;for(O&&(Q=ggt(O));G<u;G++)O=typeof Y==="string"?Y.charCodeAt(G):Y[G],Q=XKa(31,Q)+O|0;return Q};
P9T=function(Y,G){return[ggt(Y,0,Y.length>>1,G),ggt(Y,Y.length>>1)]};
InU=function(Y){var G=_.E(P9T(Y,HM));Y=G.next().value;G=G.next().value;return Y.toString(16)+G.toString(16)};
kR4=function(Y,G){var u=P9T(G);Y=new Uint32Array(Y.buffer);G=Y[0];var O=_.E(u);u=O.next().value;O=O.next().value;for(var Q=1;Q<Y.length;Q+=2){for(var M=G,t=Q,K=u,L=O,g=0;g<22;g++)t=t>>>8|t<<24,t+=M|0,t^=K+38293,M=M<<3|M>>>29,M^=t,L=L>>>8|L<<24,L+=K|0,L^=g+38293,K=K<<3|K>>>29,K^=L;M=[M,t];Y[Q]^=M[0];Q+1<Y.length&&(Y[Q+1]^=M[1])}};
ngt=function(Y,G,u,O,Q){var M=(4-(HM.length+u.length)%4)%4,t=new Uint8Array(4+M+HM.length+4+u.length),K=new DataView(t.buffer),L=0;K.setUint32(L,Math.random()*4294967295);L=L+4+M;t.set(HM,L);L+=HM.length;K.setUint32(L,Q);t.set(u,L+4);kR4(t,O);return Y.insert(G,function(g){return void globalThis.sessionStorage.removeItem(g)})?L_j(G,_.vu(t))?"s":"t":"i"};
F_T=function(Y,G){var u=globalThis.sessionStorage.getItem(Y);if(!u)return["m"];try{var O=_.JY(u);kR4(O,G)}catch(Q){return globalThis.sessionStorage.removeItem(Y),["c"]}for(G=4;G<7&&O[G]===0;)G++;for(u=0;u<HM.length;u++)if(O[G++]!==HM[u])return globalThis.sessionStorage.removeItem(Y),["d"];u=(new DataView(O.buffer)).getUint32(G);return Math.floor(Date.now()/1E3)>=u?(globalThis.sessionStorage.removeItem(Y),["e"]):["a",new Uint8Array(O.buffer,G+4)]};
pKA=function(Y){return globalThis.TextEncoder?(new TextEncoder).encode(Y):_.Hu(Y)};
ziU=function(Y){var G=Y,u;return function(){if(G){var O=G;G=void 0;u=O.apply(this,arguments)}return u}};
W_U=function(Y){return DV(function(G){if(G instanceof Y)return!0;var u,O,Q=G==null?void 0:(u=G.ownerDocument)==null?void 0:(O=u.defaultView)==null?void 0:O[Y.name];return mNA(Q)&&G instanceof Q})};
_.K7=function(Y,G,u){_.Ey.call(this);this.JSC$10326_listener_=Y;this.JSC$10326_interval_=G||0;this.handler_=u;this.callback_=(0,_.tP)(this.JSC$10328_doAction_,this)};
_.ae=function(Y){_.Ey.call(this);this.handler_=Y;this.JSC$10329_keys_={}};
Tm=function(){_.Ey.call(this);this.services_={}};
rdA=function(){for(var Y=10,G="";Y-- >0;)G+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(Math.random()*62));return G};
L7=function(Y){_.Ey.call(this);this.JSC$10349_domHelper_=Y||HF()};
PM=function(Y,G,u,O,Q){L7.call(this,u);this.JSC$10352_channel_=Y;this.protocolVersion_=Q||2;this.peerHostname_=G||"*";this.JSC$10352_eventHandler_=new _.ae(this);this.maybeAttemptToConnectTimer_=new _.gU(100,this.getWindow());this.oneSidedHandshake_=!!O;this.setupAckReceived_=new XY;this.setupAckSent_=new XY;this.JSC$10352_connected_=new XY;this.endpointId_=rdA();this.peerEndpointId_=null;this.oneSidedHandshake_?xN1(this.JSC$10352_channel_)==1?fnj(this.JSC$10352_connected_,this.setupAckReceived_):
fnj(this.JSC$10352_connected_,this.setupAckSent_):(fnj(this.JSC$10352_connected_,this.setupAckReceived_),this.protocolVersion_==2&&fnj(this.JSC$10352_connected_,this.setupAckSent_));C9y(this.JSC$10352_connected_,this.notifyConnected_,this);this.JSC$10352_connected_.callback(!0);this.JSC$10352_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Ie=function(Y){Y=ydg(Y);return _.dT(Y)};
ydg=function(Y){return Y===null?"null":Y===void 0?"undefined":Y};
FY=function(Y,G){Tm.call(this);for(var u=0,O;O=ei1[u];u++)if(O in Y&&!/^https?:\/\//.test(Y[O]))throw Error("Sa`"+Y[O]+"`"+O);this.cfg_=Y;this.name=this.cfg_.cn||rdA();this.JSC$10353_domHelper_=G||HF();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.ae(this);Y.lpu=Y.lpu||syA(this.JSC$10353_domHelper_.getWindow().location.href)+"/robots.txt";Y.ppu=Y.ppu||syA(Y.pu||"")+"/robots.txt";kH[this.name]=this;AdT(window,"unload",oga)||n7(window,"unload",oga)};
RiT=function(Y){if(Y&&Y.focus)if(Y!==document.activeElement)Y.focus();else return iGj(function(){return _.a(function(G){document.activeElement&&document.activeElement.blur();return G.return(iGj(function(){Y.focus()}))})})};
_.wKj=function(Y){var G=G===void 0?5:G;setTimeout(function(){var u;return _.a(function(O){O.nextAddress==1&&(u=document.activeElement);if(O.nextAddress!=5)return(document.activeElement===u||document.activeElement===document.body)&&G>=0&&Y?O.yield(RiT(Y),5):O.jumpTo(0);if(document.activeElement===Y)return O.return();Y=Y.parentElement;--G;return O.jumpTo(2)})},15)};
iGj=function(Y){return new Promise(function(G){requestAnimationFrame(function(){G(Y())})})};
DNt=function(Y){if(_.p7)Y(_.p7);else{var G;((G=ZGu)!=null?G:ZGu=[]).push(Y)}};
mf=function(){!_.p7&&_.zm&&_.hiA(_.zm());return _.p7};
_.hiA=function(Y){_.p7=Y;var G;(G=ZGu)==null||G.forEach(DNt);ZGu=void 0};
_.WM=function(Y){_.p7&&_.p7.beforeLoadModuleCode(Y)};
_.rU=function(){_.p7&&_.p7.JSC$11389_setLoaded()};
xH=function(Y){return VRj(Y)?Number(Y):String(Y)};
dNt=function(Y){this.action=Y;this.wfv=!1};
bGU=function(){};
S5a=function(Y,G){dNt.call(this,"set-drive-options");this.appId=Y;this.appOrigin=G};
NC1=function(Y){dNt.call(this,"visibility");this.visible=Y};
j2u=function(Y,G){G?Y.setAttribute("role",G):Y.removeAttribute("role")};
f7=function(Y,G,u){Array.isArray(u)&&(u=u.join(" "));var O="aria-"+G;u===""||u==void 0?(V1T||(u={},V1T=(u.atomic=!1,u.autocomplete="none",u.dropeffect="none",u.haspopup=!1,u.live="off",u.multiline=!1,u.multiselectable=!1,u.orientation="vertical",u.readonly=!1,u.relevant="additions text",u.required=!1,u.sort="none",u.busy=!1,u.disabled=!1,u.hidden=!1,u.invalid="false",u)),u=V1T,G in u?Y.setAttribute(O,u[G]):Y.removeAttribute(O)):Y.setAttribute(O,u)};
cdy=function(Y,G){var u=ln1++,O={measureTask:{id:u,fn:Y.measure,context:G},mutateTask:{id:u,fn:Y.mutate,context:G},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(O.args||(O.args=[]),O.args.length=0,O.args.push.apply(O.args,arguments),O.args.push(O.state)):O.args&&O.args.length!=0?(O.args[0]=O.state,O.args.length=1):O.args=[O.state];O.isScheduled||(O.isScheduled=!0,BCt[$Nj].push(O));q5t||(q5t=!0,window.requestAnimationFrame(s2I))}};
s2I=function(){q5t=!1;var Y=BCt[$Nj],G=Y.length;$Nj=($Nj+1)%2;for(var u,O=0;O<G;++O){u=Y[O];var Q=u.measureTask;u.isScheduled=!1;Q.fn&&Q.fn.apply(Q.context,u.args)}for(O=0;O<G;++O)u=Y[O],Q=u.mutateTask,u.isScheduled=!1,Q.fn&&Q.fn.apply(Q.context,u.args),u.state={};Y.length=0};
eG=function(Y){_.C7.call(this);this.JSC$10485_element_=Y;this.listenKeyIn_=_.yn(this.JSC$10485_element_,"focus",this,!0);this.listenKeyOut_=_.yn(this.JSC$10485_element_,"blur",this,!0)};
UNt=function(Y,G){this.JSC$10488_element_=Y;this.JSC$10488_dom_=G};
oe=function(Y,G){AP.call(this,G);this.useIframeMask_=!!Y;this.lastFocus_=null;this.resizeBackgroundTask_=cdy({mutate:this.resizeBackground_},this);cdy({mutate:this.updateModalAndBackground_},this)};
Re=function(Y,G,u){oe.call(this,G,u);this.JSC$10498_class_=Y||"modal-dialog";this.buttons_=(new iI).addButton(vgI,!0).addButton(Jdg,!1,!0)};
Y0T=function(Y,G,u){Re.call(this,Y,G,u)};
GCa=function(Y){wU.call(this,Y)};
unT=function(Y){Y=Y&&Y.getWindow()||window;return Y.gadgets&&Y.gadgets.rpc};
Qwj=function(Y,G){var u=G&&G.getWindow()||window;if(unT(G))Y();else if(Oqy)Oqy.push(Y);else var O=Oqy=[Y],Q=u.setInterval(function(){if(unT(G)){u.clearInterval(Q);for(var M=0;M<O.length;M++)O[M]();Oqy=null}},100)};
Hqt=function(Y,G){var u=new Z4(Y);_.vF(G,u);var O={passive:!1};G.listen(u,"mousewheel",function(Q){return void MVt(Y,Q)},O).listen(Y,"scroll",function(Q){return void MVt(Y,Q)},O)};
MVt=function(Y,G){var u;a:{for(u=G.target;u;){if(u.nodeType==1){var O=_.D4(u,"overflowY");if(O=="auto"||O=="scroll")break a}u=u.parentNode}u=null}if(!u||!_.hP(Y,u)||u.scrollHeight==u.clientHeight||G.deltaY>0&&Math.abs(u.scrollTop-(u.scrollHeight-u.clientHeight))<=1||G.deltaY<0&&u.scrollTop==0)G.preventDefault(),G.stopPropagation()};
Eqt=function(){var Y;if(Y=Y===void 0?window:Y)return Y!==Y.parent&&Y.hasOwnProperty("pangolinIframeGlobals");var G=Error("gb");setTimeout(function(){throw G;},1);
return!1};
Vn=function(Y,G,u,O,Q,M,t,K,L,g){K=K===void 0?!1:K;L=L===void 0?!1:L;g=g===void 0?!1:g;Re.call(this,void 0,void 0,void 0);Re.call(this,M?M+" picker modal-dialog":"picker modal-dialog",!0,u);_.Gh(Y,"protocol");this.iframeManager_=new tVA;this.targetId_=dU();this.rpcToken_=dU();Y=_.bI(Y);_.SG(Y,"hostId");this.useGapi_=!L&&!Eqt();K&&_.NA(Y,"fv2","true");this.setUrl(Y.toString());this.preferredDialogWidth_=O;this.preferredDialogHeight_=Q;O!==void 0||Q!==void 0?O=!0:(O=_.SG(_.bI(Y.toString()),"hostId"),
KTj||(KTj=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),O=!KTj.has(O));this.autoSizeDialog_=O;this.JSC$10516_gadgetsDomHelper_=t||this.JSC$10467_dom_;this.JSC$10516_enablePopover_=g;G&&(t=this.JSC$10516_gadgetsDomHelper_,G=_.SG(_.bI(this.JSC$10518_url_),"grugl")=="true"?aay:ToY,unT(t)||(t=t||HF(document),g=t.createElement("SCRIPT"),_.P8(g,G),g.type="text/javascript",t.JSC$9647_document_.body.appendChild(g)));
Y=Y.toString();G=null;t=Y.indexOf("/picker?");t>-1?G=Y.substring(0,t+8-1):tY(Y,"/picker")&&(G=Y);G&&this.setRelayUrl(G+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(Y=this.buttons_,Y.JSC$10501_element_=this.buttonEl_,Y.render()):_.IA(this.buttonEl_,LTg),_.jG(this.buttonEl_,!!this.buttons_))};
Iaa=function(Y,G){Y.name!==void 0?(this.name=Y.name,this.code=gqu[Y.name]):(this.code=Y=Y.code,this.name=Xjy(Y));_.Ya.call(this,PB4("%s %s",this.name,G))};
kCy=function(Y,G){_.lI.call(this,Y.type,G);this.event_=Y};
_.zZj=function(Y){var G=G===void 0?nqA:G;var u=_.cu(Y),O=function(M){M=_.E(M);M.next();M=$H(M);return G(u,M)},Q=function(M){var t=_.E(M);
M=t.next().value;t=$H(t);return Y.apply(M,t)};
return function(){var M=_.vs.apply(0,arguments),t=this||_.OI,K=FT1.get(t);K||(K={},FT1.set(t,K));return pju(K,[this].concat(_.c8(M)),Q,O)}};
qA=function(Y){var G={};Y=Y.replace(/\r/g,"").split("\n");for(var u=0;u<Y.length;u++){var O=Y[u],Q=O.indexOf(":");Q<0||(G[O.substring(0,Q)]=O.substring(Q+2,O.length))}return G};
xCy=function(Y,G){G.id||(G.id="ow"+_.cu(G));Y.setAttribute("jsowner",G.id);Y.__owner=G;var u=_.pm(G,mCj);u&&(WTt.has(u)||WTt.set(u,[]),WTt.get(u).push(Y));(u=rNy.get(G))||rNy.set(G,u=[]);u.includes(Y)||u.push(Y);G.setAttribute("__IS_OWNER",!0)};
mCj=function(Y){return _.sy(Y)?Y.getAttribute("jsname")==="coFSxe":!1};
faY=function(Y,G,u){u=u===void 0?function(){}:u;
return Y?G():u()};
_.yNT=function(Y){var G;return((G=CB4.documentOverride)!=null?G:Y).__wizdispatcher};
Uy=function(Y){var G=cM;cM=Y;return G};
ANU=function(Y){return Y===eZ1||(Y==null?void 0:Y.name)==="\u0275NotFound"};
vM=function(Y,G){var u;if((u=Y)==null?0:u.isDisposed)throw Error("lb`"+String(Y.debugName));for(;Y!==void 0;){u=Y;if(u.retrieve)return u.retrieve(G,{optional:!0});Y=Y.parent}return eZ1};
JP=function(Y){return{"\u0275prov":{providedIn:"root",token:Symbol(Y),factory:void 0,value:void 0}}};
oqt=function(Y){var G=cM;if(!G){switch(Y===void 0?3:Y){case 0:Y=Error("kb");break;case 1:Y=Error("mb");break;case 2:Y=Error("nb");break;default:Y=Error("ob")}throw Y;}return G};
iq1=function(Y){var G=Uy(Y);Y={};return Y[Symbol.dispose]=function(){Uy(G)},Y};
Zq4=function(){var Y=oqt(1),G=vM(Y,RZt);if(!ANU(G))return G;Y=vM(Y,wjA);if(!ANU(Y))return Y.getOptionalAppContext()};
dCU=function(){var Y=oqt(1);Y=vM(Y,DCt);if(!(ANU(Y)||Y[hZA]&&!Y.__hasBeenSet))return Y.value};
bqT=function(Y,G){G.nextDisposable=void 0;Y.tailDisposable?Y.tailDisposable.nextDisposable=G:Y.childDisposable=G;Y.tailDisposable=G};
S0I=function(Y,G){var u={};bqT(Y,(u[Symbol.dispose]=G,u))};
Yl=function(Y){var G=cM;G&&!G.isDisposed&&(bqT(G,Y),Y.parent=G)};
jwj=function(Y){for(var G=Y.childDisposable;G;){var u=G.nextDisposable;NoU(G);G=u}Y.childDisposable=void 0;Y.tailDisposable=void 0};
NoU=function(Y){if(!Y.isDisposed){Y.isDisposed=!0;var G;(G=Y[Symbol.dispose])==null||G.call(Y);delete Y.parent;jwj(Y)}};
swj=function(Y){var G={retrieve:function(u){switch(u.\u0275prov.token){case VVt.\u0275prov.token:var O=Y.asyncDeps;break;case DCt.\u0275prov.token:O=Y.rootElement;break;case la4.\u0275prov.token:O=Y.modelRootElement;break;case RZt.\u0275prov.token:O=Y.appContext;break;case Bo1.\u0275prov.token:O=Y.rendererData;break;case $CY.\u0275prov.token:O=Y.injectingConstructor;break;case wjA.\u0275prov.token:O=Y.dispatcher}if(O)u=O;else a:{for(O=G.parent;O;){var Q=O;if(Q.retrieve){u=Q.retrieve(u);break a}O=
O.parent}O=u.\u0275prov.token;Q=q0g[O];Q!==void 0?u=Q:(Q=u.\u0275prov.providedIn,u.\u0275prov.factory?(u=u.\u0275prov.factory(),O&&Q==="root"&&(q0g[O]=u)):u=eZ1)}return u}};
Yl(G);return G};
cNg=function(Y){if(typeof document!=="undefined"&&document&&document.getElementById&&(Y=document.getElementById(Y))){var G=Y.tagName.toUpperCase();if(G=="SCRIPT"||G=="LINK")return Y}return null};
vq1=function(Y,G){if((Y=Y===void 0?"":Y)&&G)throw Error("ub");var u="";var O=_.OI._F_jsUrl;(Y=G||cNg(Y))&&(u=Y.src?Y.src:Y.getAttribute("href"));if(O&&u){if(O!=u)throw Error("vb`"+O+"`"+u);u=O}else u=O||u;if(!UC1(u))throw Error("wb");return u};
u3y=function(){if(!JNy){JNy=!0;try{var Y=vq1(_.OI._F_jsUrl?"":"base-js")}catch(O){return}var G=YV4(G5t(Y)),u=Object.keys(G);u.length!==0&&DNt(function(O){for(var Q=_.E(u),M=Q.next();!M.done;M=Q.next()){M=M.value;for(var t=_.E(Object.keys(G[M])),K=t.next();!K.done;K=t.next())O.addExtraEdge(M,K.value)}})}};
OJa=function(Y){return!!Y&&typeof Y==="object"&&Object.getPrototypeOf(Y)===Object.prototype};
MKj=function(Y){return typeof Y==="function"&&Q04 in Y&&typeof Y[Q04]==="function"};
HJu=function(Y){if(GX(Y))return Y.map(function(Q){return HJu(Q)});
if(OJa(Y)){var G={};Y=_.E(Object.entries(Y));for(var u=Y.next();!u.done;u=Y.next()){var O=_.E(u.value);u=O.next().value;O=O.next().value;G[u]=HJu(O)}return G}return MKj(Y)?Y():Y};
tKA=function(){var Y=Object.assign({},E7U);Object.getOwnPropertyNames(E7U).forEach(function(G){uF[G]!==void 0&&(Y[G]=uF[G])});
return Y};
Kmt=function(Y,G){if(uF.enablePerformanceTiming){var u,O;(O=(u=performance).mark)==null||O.call(u,Y+"Start__"+G)}};
aCj=function(Y,G){if(uF.enablePerformanceTiming){var u,O;(O=(u=performance).measure)==null||O.call(u,Y+"__"+G,Y+"Start__"+G)}};
TNU=function(Y,G,u){var O;return Y&&G?Y+"__"+G:(O=Y!=null?Y:G)!=null?O:u};
g7y=function(Y){var G=Object.create(LmA);G.debugName=Y;!cM||Yl(G);return G};
XYt=function(Y,G){var u=g7y(G);G=Uy(u);try{Y(u)}finally{Uy(G)}return function(){return void NoU(u)}};
ICt=function(Y){return QM(Y)&&PjT in Y};
k5u=function(Y){for(Y=Y===void 0?cM:Y;Y;){if(ICt(Y))return Y;var G=void 0;Y=(G=Y.parent)!=null?G:null}return null};
n74=function(Y,G){return Object.is(Y,G)};
Hw=function(Y){var G=Mc;Mc=Y;return G};
pYu=function(Y){if(EW)throw Error("$");if(Mc!==null){var G=Mc.producersTail;if(G===void 0||G.producer!==Y){var u=void 0,O=Mc.recomputing;if(O&&(u=G!==void 0?G.nextProducer:Mc.producers,u!==void 0&&u.producer===Y)){Mc.producersTail=u;u.lastReadVersion=Y.version;return}var Q=Y.consumersTail,M;if(!(M=Q===void 0||Q.consumer!==Mc)){if(O){a:{M=Mc;O=M.producersTail;if(O!==void 0){M=M.producers;do{if(M===Q){O=!0;break a}if(M===O)break;M=M.nextProducer}while(M!==void 0)}O=!1}O=!O}M=O}M&&(O=aE(Mc),u={producer:Y,
consumer:Mc,nextProducer:u,prevConsumer:Q,lastReadVersion:Y.version,nextConsumer:void 0},Mc.producersTail=u,G!==void 0?G.nextProducer=u:Mc.producers=u,O&&Fm4(Y,u))}}};
L2=function(Y){if(!aE(Y)||Y.dirty)if(Y.dirty||Y.lastCleanEpoch!==TX)(Y.producerMustRecompute(Y)||zfY(Y))&&Y.producerRecomputeValue(Y),Y.dirty=!1,Y.lastCleanEpoch=TX};
m6I=function(Y){if(Y.consumers!==void 0){var G=EW;EW=!0;try{for(var u=Y.consumers;u!==void 0;u=u.nextConsumer){var O=u.consumer;O.dirty||(Y=void 0,O.dirty=!0,m6I(O),(Y=O.consumerMarkedDirty)==null||Y.call(O,O))}}finally{EW=G}}};
Wm4=function(){var Y;return((Y=Mc)==null?void 0:Y.consumerAllowSignalWrites)!==!1};
r1A=function(Y){Y&&(Y.producersTail=void 0,Y.recomputing=!0);return Hw(Y)};
fCI=function(Y){Y.recomputing=!1;var G=Y.producersTail,u=G!==void 0?G.nextProducer:Y.producers;if(u!==void 0){if(aE(Y)){do u=x6I(u);while(u!==void 0)}G!==void 0?G.nextProducer=void 0:Y.producers=void 0}};
zfY=function(Y){for(Y=Y.producers;Y!==void 0;Y=Y.nextProducer){var G=Y.producer,u=Y.lastReadVersion;if(u!==G.version)return!0;L2(G);if(u!==G.version)return!0}return!1};
Fm4=function(Y,G){var u=Y.consumersTail,O=aE(Y);u!==void 0?(G.nextConsumer=u.nextConsumer,u.nextConsumer=G):(G.nextConsumer=void 0,Y.consumers=G);G.prevConsumer=u;Y.consumersTail=G;if(!O)for(Y=Y.producers;Y!==void 0;Y=Y.nextProducer)Fm4(Y.producer,Y)};
x6I=function(Y){var G=Y.producer,u=Y.nextProducer,O=Y.nextConsumer,Q=Y.prevConsumer;Y.nextConsumer=void 0;Y.prevConsumer=void 0;O!==void 0?O.prevConsumer=Q:G.consumersTail=Q;if(Q!==void 0)Q.nextConsumer=O;else if(G.consumers=O,!aE(G))for(Y=G.producers;Y!==void 0;)Y=x6I(Y);return u};
aE=function(Y){return Y.consumerIsAlwaysLive||Y.consumers!==void 0};
y1t=function(Y){var G=Object.create(Cja);G.computation=Y;Y=function(){L2(G);pYu(G);if(G.value===g_)throw G.error;return G.value};
Y[Xx]=G;return Y};
iJU=function(Y,G){var u=Object.create(efY);u.value=Y;G!==void 0&&(u.equal=G);Y=function(){pYu(u);return u.value};
Y[Xx]=u;return[Y,function(O){return A1t(u,O)},
function(O){Wm4()||o7t(u);A1t(u,O(u.value))}]};
A1t=function(Y,G){Wm4()||o7t(Y);if(!Y.equal(Y.value,G)){Y.value=G;Y.version++;TX++;m6I(Y);var u;(u=RfU)==null||u(Y)}};
ZJj=function(Y,G,u){var O=Object.create(wYu);O.source=Y;O.computation=G;u!=void 0&&(O.equal=u);Y=function(){L2(O);pYu(O);if(O.value===g_)throw O.error;return O.value};
Y[Xx]=O;return Y};
_.Pw=function(Y){var G=Hw(null);try{return Y()}finally{Hw(G)}};
Q3t=function(Y,G){Kmt("signalSet",G.debugName);try{Y()}finally{aCj("signalSet",G.debugName)}};
MgA=function(Y,G,u){Y=iJU(Y,G.equals);var O=Y[0],Q=O[Xx];Q.debugName=TNU(G.debugName,u,"[signal]");if(!uF.enablePerformanceTiming)return Y;var M=Y[1],t=Y[2];return[O,function(K){Q3t(function(){return void M(K)},Q)},
function(K){Q3t(function(){return void t(K)},Q)}]};
_.IE=function(Y,G,u){return MgA(Y,G!=null?G:{},u===void 0?"":u)};
HjY=function(Y,G){var u=_.E(_.IE(Y,void 0,"serrkb"));Y=u.next().value;u=u.next().value;Y[Q04]=u;Y[kl]=G;return Y};
EdY=function(Y,G){Object.defineProperty(Y,kl,{get:function(){return G}})};
n2=function(Y,G){if(GX(Y)){var u=Y.map(function(M){return n2(M,G)});
EdY(u,G);return u}if(OJa(Y)){u={};Y=_.E(Object.entries(Y));for(var O=Y.next();!O.done;O=Y.next()){var Q=_.E(O.value);O=Q.next().value;Q=Q.next().value;u[O]=n2(Q,G)}EdY(u,G);return u}return HjY(Y,G)};
KN1=function(){var Y={height:0,width:0};if(!OJa(Y))throw Error("Lb");var G=Symbol("Mb");return[n2(Y,G),function(u,O){if(u[kl]===G)if(typeof O==="function"){var Q=[].concat(_.c8(HJu(u)));O=O(Q)||Q;tgt(u,[].concat(_.c8(O)))}else tgt(u,O);else throw Error("Nb");}]};
tgt=function(Y,G){if(MKj(Y))Y[Q04](G);else if(GX(Y)&&GX(G))G=n2(G,Y[kl]),Y.length=0,Y.push.apply(Y,_.c8(G));else if((OJa(Y)||GX(Y))&&(GX(G)||typeof G==="object"&&G!==null)){G=_.E(Object.entries(G));for(var u=G.next();!u.done;u=G.next()){var O=_.E(u.value);u=O.next().value;O=O.next().value;var Q=Y,M=Q[u];Object.hasOwn(Y,u)?tgt(M,O):Q[u]=n2(O,Y[kl])}}else throw Error("Ob");};
aHT=function(Y){return Object.create(Object.assign({},Fx,Y))};
LNU=function(){var Y;return(Y=TjU)!=null?Y:TjU=aHT({consumerAllowSignalWrites:!0})};
_.p2=function(Y,G,u){u=u===void 0?"":u;Y=y1t(Y);var O=Y[Xx];O.debugName=TNU(G==null?void 0:G.debugName,u,"[computed]");(G==null?void 0:G.equals)!=null&&(O.equal=G.equals);return Y};
zX=function(Y){var G=Hw(gd1);try{Y()}finally{Hw(G)}};
XDj=function(Y){return QM(Y)&&Y.name!==void 0&&Y.isReactive!==void 0&&Y.parent!==void 0};
IHY=function(Y,G,u){var O=Pot(Y);mv={name:u?O+" ("+u+")":O,isReactive:Y.componentType!==Ww,parent:mv};Y=G();mv=mv.parent;return Y};
r_=function(){var Y=mv;return Y?Y.isReactive:!1};
f2=function(Y,G,u){var O=mv;G&&(mv=G);try{return u==null?Y():Y.call(u)}catch(M){Y=M;xl(Y,mv);if(Y!==kBt){ndA=mv;G=[];for(u=cM;u;){var Q=void 0;G.push((Q=u.debugName)!=null?Q:"[context]");Q=void 0;u=(Q=u.parent)!=null?Q:null}FNy=G.reverse()}kBt=Y;throw Y;}finally{mv=O}};
xl=function(Y,G){try{var u=pDj(G);if(u&&!Y.componentStack&&(Y.componentStack=u,uF.enableComponentStacksInErrorMessages)){var O=Y.message+"\n\nComponent stack: "+u;Y.stack&&(Y.stack=Y.stack.replace(Y.message,O));Y.message=O}}catch(Q){}};
zQ4=function(Y){for(var G=0,u="";G<20&&Y;)u+="$$XID:"+Y.name+"$$ > ",Y=Y.parent,G++;return u.slice(0,-3)};
pDj=function(Y){return XDj(Y)||Y===null?zQ4(Y):uF.enableContextBasedComponentStacks?k5u(Y).getComponentStack().slice(0,20).map(function(G){return"$$XID:"+G+"$$"}).join(" > "):""};
Pot=function(Y){return Y.debugName||Y.name||"[component]"};
fHg=function(Y){switch(Y.onInitType){case m2j:WNT.schedule(Y);break;case rGa:uF.enableQueueEffectAndOnInitInitialRuns?x2I.enqueue(Y):x2I.schedule(Y);break;default:_.YV(Y.onInitType)}};
ijU=function(Y){if(!Y.isDisposed)switch(Y.effectType){case C2:CoY.schedule(Y);break;case yGU:eQj.schedule(Y);break;case AGt:uF.enableQueueEffectAndOnInitInitialRuns||Y.version!==0?odu.enqueue(Y):odu.schedule(Y);break;default:_.YV(Y.effectType)}};
Zjt=function(){if(yM>0)uF.flushRenderEffectsDuringRender&&CoY.flush();else{for(var Y=_.E(RQT),G=Y.next();!G.done;G=Y.next())G.value.flush();wDj()}};
wDj=function(){_.a(function(Y){if(Y.nextAddress==1)return Y.yield(Promise.resolve(),2);for(var G=_.E(D2u),u=G.next();!u.done;u=G.next())u.value.flush();_.Sd(Y)})};
d2t=function(Y){AT=!0;try{for(var G=_.E(Y),u=G.next();!u.done;u=G.next()){for(var O=u.value,Q=[O],M=O;M.parent!==void 0;)M=M.parent,hQy(M)&&Y.has(M)&&Q.push(M);for(;Q.length>0;){var t=Q.pop();Y.delete(t);t.run()}}}finally{AT=!1}};
oE=function(Y){yM--;if(Y){Y=_.E(bjA);for(var G=Y.next();!G.done;G=Y.next())G.value.clear()}else yM>0||AT&&!uF.flushRenderEffectsDuringRender||Zjt()};
Sk1=function(Y,G,u){Y=Object.create(Y);G&&(Y.fn=G);u&&(Y.debugName=u);Yl(Y);Y.componentStack=mv;return Y};
Nj1=function(Y){if(!Y.isDisposed){if(EW)throw Error("Sb");var G=Uy(Y);Kmt("effectRun",Y.debugName);try{f2(function(){Y.dirty=!1;if(!(Y.version>0)||zfY(Y)){Y.version++;var u=r1A(Y);try{Y.cleanup(),Y.fn()}finally{Hw(u),Y&&fCI(Y)}}},Y.componentStack,Y)}catch(u){throw uF.enableContextBasedComponentStacks&&xl(u),u;
}finally{aCj("effectRun",Y.debugName),Uy(G)}}};
_.iF=function(Y,G){Y=Sk1(j3A,Y,G);ijU(Y)};
_.RE=function(Y,G){Y=Sk1(Vgj,Y,G);ijU(Y)};
lHt=function(Y){return Y};
BjT=function(Y,G,u){function O(){return Q()}
u=u===void 0?"":u;var Q=typeof Y==="function"?ZJj(Y,lHt,G==null?void 0:G.equals):ZJj(Y.source,Y.computation,G==null?void 0:G.equals);var M=Q[Xx];M.debugName=TNU(G==null?void 0:G.debugName,u,"[linkedSignal]");O[Xx]=M;return[O,function(t){Q3t(function(){L2(M);A1t(M,t);M.dirty=!1;M.lastCleanEpoch=TX},M)},
function(t){Q3t(function(){L2(M);Wm4()||o7t(M);A1t(M,t(M.value));M.dirty=!1;M.lastCleanEpoch=TX},M)}]};
_.w_=function(Y){var G=cM;if(G){var u=mv;S0I(G,function(){var O=Hw(LNU());try{f2(function(){return void Y()},u)}catch(Q){throw uF.enableContextBasedComponentStacks&&xl(Q),Q;
}finally{Hw(O)}})}};
D1=function(Y,G){var u={};(G===void 0||G)&&Yl(u);G=Uy(u);try{Y(u)}finally{Uy(G)}return function(){return void NoU(u)}};
_.hT=function(Y){return typeof Y==="function"?Y():(Y==null?0:Y[$2Y])?Y.get():Y};
qkA=function(Y){if(cM)throw Error("pb");D1(Y,!1)};
d_=function(Y,G){Y=Uy(Y);try{return _.Pw(G)}finally{Uy(Y)}};
bF=function(Y,G){var u=pDj(ndA),O,Q;var M=(Q=(O=FNy)==null?void 0:O.slice())!=null?Q:[];G={componentStack:u,contextTrace:M,errorSeverity:3,featureFlags:tKA(),tagName:G};return[Y,G]};
U2j=function(Y,G,u){if(Object.hasOwnProperty.call(s31,Y)&&(Y=s31[Y],Object.hasOwnProperty.call(Y,G)&&(Y=Y[G],Y instanceof Array))){for(var O=null,Q=!1,M=0,t=Y.length;M<t;++M){var K=Y[M],L=K.contingentAttribute;if(!L)return K.contract;O===null&&(O={});L=Object.hasOwnProperty.call(O,L)?O[L]:O[L]=u(L);if(L===K.requiredValue)return K.contract;L==null&&(Q=!0)}if(Q)return null}G=cGA[G];return typeof G==="number"?G:null};
YtA=function(Y,G,u){var O=null;(Y=vdg[Y])&&(O=Y[G]);return typeof O!=="number"&&((Y=vdg["*"])&&(O=Y[G]),typeof O!=="number")?!1:!0===JGy[O][String(u).toLowerCase()]};
u1A=function(Y,G){G=U2j(Y.toLowerCase(),G,function(){var O;(O=uF.handleError)==null||O.call.apply(O,[uF].concat(_.c8(bF(Error("Vb"),Y.toLowerCase()))))});
if(G===null)return null;var u;return(u=GNt[G])!=null?u:null};
OAj=function(Y,G,u){if(u===null||u===void 0)return u;G=G.toLowerCase();Y=u1A(Y,G);return Y===null?u:Y(G,u)};
HA1=function(Y){var G=Qnt,u=Y,O="",Q="",M=1;Y<0&&(Y=-Y);if(Y===Infinity)Y=(Infinity*Math.sign(u)).toString();else{for(var t=0;t<M9g.length;t++){var K=M9g[t];M=G[K];if(Y>=M||M<=1&&Y>.1*M){O=K;break}}O?(O+="B",Q=" "):M=1;Y=Math.round(u/M*10)/10+Q+O}return Y};
ETj=function(){};
t9t=function(Y,G){for(;Y.length>G;)Y.pop()};
KUU=function(Y){Y=Array(Y);t9t(Y,0);return Y};
SE=function(Y,G,u){if(u==null)Y.removeAttribute(G);else{var O;(O=G.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":G.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?Y.setAttributeNS(O,G,u):Y.setAttribute(G,u)}};
Tay=function(Y,G,u){Y=Y.style;if(typeof u==="string")Y.cssText=u;else{Y.cssText="";for(var O in u)if(aUA.call(u,O)){G=Y;var Q=O,M=u[O];Q.indexOf("-")>=0?G.setProperty(Q,M):G[Q]=M}}};
LUA=function(Y,G,u){var O=typeof u;O==="object"||O==="function"?Y[G]=u:SE(Y,G,u)};
gTU=function(){var Y=new ETj;Y[Nc.default]=LUA;Y.style=Tay;return Y};
XcA=function(Y,G,u,O){(O[G]||O[Nc.default])(Y,G,u)};
IUI=function(Y,G,u){G=new Plg(G,u);return Y.__incrementalDOMData=G};
kNj=function(Y,G){if(Y.__incrementalDOMData)return Y.__incrementalDOMData;var u=Y.nodeType===1?Y.localName:Y.nodeName,O=Y.nodeType===1?Y.getAttribute("key"):null;G=IUI(Y,u,Y.nodeType===1?O||G:null);if(Y.nodeType===1&&(Y=Y.attributes,u=Y.length)){O=G._attrsArr||(G._attrsArr=KUU(u*2));for(var Q=0,M=0;Q<u;Q+=1,M+=2){var t=Y[Q],K=t.value;O[M]=t.name;O[M+1]=K}}return G};
nTI=function(Y,G,u,O,Q){return G==u&&O==Q};
FUj=function(Y){for(var G=jE,u=VM();u!==Y;){var O=u.nextSibling;G.removeChild(u);lF.deleted.push(u);u=O}};
VM=function(){return Bw?Bw.nextSibling:jE.firstChild};
$l=function(){Bw=VM()};
mty=function(Y,G){$l();var u;a:{if(u=Bw){do{var O=u,Q=Y,M=G,t=kNj(O,M);if(pcA(O,Q,t.nameOrCtor,M,t.key))break a}while(G&&(u=u.nextSibling))}u=null}u||(Y==="#text"?(Y=qc.createTextNode(""),IUI(Y,"#text",null)):(u=qc,O=jE,typeof Y==="function"?u=new Y:u=(O=Y==="svg"?"http://www.w3.org/2000/svg":Y==="math"?"http://www.w3.org/1998/Math/MathML":O==null||kNj(O).nameOrCtor==="foreignObject"?null:O.namespaceURI)?u.createElementNS(O,Y):u.createElement(Y),IUI(u,Y,G),Y=u),lF.created.push(Y),u=Y);Y=u;if(Y!==
Bw){if(zTj.indexOf(Y)>=0)for(G=jE,u=Y.nextSibling,O=Bw;O!==null&&O!==Y;)Q=O.nextSibling,G.insertBefore(O,u),O=Q;else jE.insertBefore(Y,Bw);Bw=Y}};
WUu=function(Y,G){mty(Y,G);jE=Bw;Bw=null;return jE};
roA=function(){FUj(null);Bw=jE;jE=jE.parentNode};
Clt=function(Y,G){G=G===void 0?{}:G;var u=G.matches===void 0?nTI:G.matches;return function(O,Q,M){var t=lF,K=qc,L=zTj,g=sW,P=Bw,I=jE,k=pcA;qc=O.ownerDocument;lF=new xtA(O);pcA=u;sW=[];Bw=null;var n=jE=O.parentNode,p,W=fUg.call(O);if((p=W.nodeType===11||W.nodeType===9?W.activeElement:null)&&O.contains(p)){for(W=[];p!==n;)W.push(p),p=p.parentNode||(n?p.host:null);n=W}else n=[];zTj=n;try{return Y(O,Q,M)}finally{O=lF,cw&&O.deleted.length>0&&cw(O.deleted),qc=K,lF=t,pcA=k,sW=g,Bw=P,jE=I,zTj=L}}};
yo1=function(Y,G,u,O){UW.push(XcA);UW.push(Y);UW.push(G);UW.push(u);UW.push(O)};
eTt=function(Y){mty("#text",null);var G=Bw;var u=kNj(G);if(u.text!==Y){u=u.text=Y;for(var O=1;O<arguments.length;O+=1)u=(0,arguments[O])(u);G.data!==u&&(G.data=u)}};
DtU=function(Y,G,u){if(u===!1&&Ao1.has(G))SE(Y,G,null);else if(G!=="idomKey"&&G!=="skip"&&G!=="skipchildren"&&G!=="children"&&G!=="el")if(G.startsWith("on")){if(G[2]!==":")throw Error("Ub`"+G);if(u===void 0||u===null){var O;(O=uF.handleError)==null||O.call.apply(O,[uF].concat(_.c8(bF(Error("Zb`"+G),Y.tagName))));Y[G]=void 0}else{var Q=G.slice(3);O=r_();if(Q==="jsaction"){u=Array.isArray(u)?u:[u];u=_.E(u);for(var M=u.next();!M.done;M=u.next()){M=M.value;if(typeof M!=="object"||M===null||typeof M.selfReg!==
"function")throw Error("bc`"+G);M.selfReg(0,Y,O?_.w_:function(){})}}else{if(typeof u!=="object"||u===null)throw Error("$b`"+G+"`"+typeof u);
if(typeof u.getFn!=="function")throw Error("ac`"+G+"`"+Object.keys(u));if(u.selfReg)u.selfReg(0,Y,Q,O?_.w_:function(){});
else if(O&&Y["on"+Q]===void 0){var t=u.getFn(0);Y.addEventListener(Q,t);_.w_(function(){return void Y.removeEventListener(Q,t)})}else if(O||!oTj.includes(Q))Y["on"+Q]=u.getFn(0)}}}else{if(G.startsWith("data-")&&typeof u==="string")try{u=iAI(u)}catch(K){u="zSoyz"}typeof u!=="function"||Y._disposeEffects!=null?((O=G.startsWith("prop:"))&&(G=G.slice(5)),uF.enableAttributeSanitization&&(O&&RTt(Y.tagName)||(u=OAj(Y.tagName,G,u))),G==="style"?("function"==typeof _.vw&&u instanceof _.vw&&(u=u.toString()),
wcU(Y,G,u)):O?Y[G]=u:ZAt(Y,G,u)):(Y._signalProps||(Y._signalProps=[]),Y._signalValues||(Y._signalValues=[]),Y._signalProps.push(G))}};
hT4=function(Y,G,u){u=(u===void 0?{}:u).isReactive;if(G==null?0:G.el){var O=G.el,Q;(Q=O.onRender)==null||Q.call(O,Y);Y._disposeRef||(Y._disposeRef=function(){var M;(M=O.onUnmount)==null||M.call(O);delete Y._disposeRef},u&&_.w_(function(){var M;
(M=Y._disposeRef)==null||M.call(Y)}))}};
RTt=function(Y){return Y.length>0&&Y.includes("-")&&!dtt.includes(Y.toLowerCase())};
bAU=function(Y){return QM(Y)&&JT in Y};
StA=function(Y){return bAU(Y)?Y[JT].flattened:Y};
Nag=function(Y,G){var u=_.vs.apply(2,arguments),O;G=(O=G)!=null?O:{};O={};return O.type=Y,O.props=G,O.children=u,O[Y4]=!0,O};
_.GY=function(Y){return Y.children};
ui=function(Y){var G=jnA!==Nag;jnA=Y?V9Y:Nag;return G};
OH=function(Y){return _.$a(Y)?"nodeType"in Y:!1};
Qg=function(){return document.createTextNode("")};
M3=function(Y){Y=document.createTextNode(String(Y));Y._isSignalTextNode=!0;return Y};
Baj=function(Y){return Y!=null&&Y.contentKind===H4||Y instanceof Go||lUA(Y)};
$tA=function(Y){var G=document.createElement("div");if(lUA(Y)&&Egg(Y))_.IA(G,Egg(Y));else if(Y instanceof Go)_.IA(G,Y);else if(Y!=null&&Y.contentKind===H4){if(Y.contentKind!==H4)throw Error("Yb");Y=Or(Y.toString());_.IA(G,Y)}Y=_.E(G.childNodes);for(var u=Y.next();!u.done;u=Y.next())u.value._isSafeOrSanitizedHtmlNode=!0;return G};
EH=function(Y){Y=typeof Y;return Y==="string"||Y==="number"||Y==="boolean"};
qtg=function(Y){return Y instanceof hz||ls(Y)||Y instanceof FH||"function"==typeof _.vw&&Y instanceof _.vw};
snU=function(Y,G){var u=Y.parentElement;if(!u)return G;u.replaceChild(G,Y);return G};
cou=function(Y,G){var u=Y[0].parentElement;if(u)if(Y[0].previousSibling||Y[Y.length-1].nextSibling){u.insertBefore(G,Y[0]);for(var O=Y.length-1;O>=0;O--)u.removeChild(Y[O])}else u.textContent="",u.appendChild(G);return G};
UtA=function(Y,G){if(Y[0].parentElement)for(var u=Y[0].parentElement,O=G.length,Q=Y.length,M=O,t=0,K=0,L=Y[Q-1].nextSibling,g=null;t<Q||K<M;)if(Y[t]===G[K])t++,K++;else{for(;Y[Q-1]===G[M-1];)Q--,M--;if(Q===t)for(var P=M<O?K?G[K-1].nextSibling:G[M-K]:L;K<M;){var I=G[K++];u.insertBefore(I,P)}else if(M===K)for(;t<Q;)P=Y[t],g&&g.has(P)||u.removeChild(P),t++;else if(Y[t]===G[M-1]&&G[K]===Y[Q-1])P=Y[--Q].nextSibling,u.insertBefore(G[K++],Y[t++].nextSibling),u.insertBefore(G[--M],P),Y[Q]=G[M];else{if(!g)for(g=
new Map,P=K;P<M;)g.set(G[P],P++);P=g.get(Y[t]);if(P==null)u.removeChild(Y[t]),t++;else if(K<P&&P<M){I=t;for(var k=1,n=void 0;++I<Q&&I<M&&(n=g.get(Y[I]))!=null&&n===P+k;)k++;if(k>P-K)for(I=Y[t];K<P;)u.insertBefore(G[K++],I);else u.replaceChild(G[K++],Y[t++])}else t++}}return G};
Jot=function(Y){if(Array.isArray(Y)){if(Y.length>1)throw Error("lc`"+Y.length+"`"+Y.map(vTu).join(", "));Y=Y[0]}if(Y==null)return null;if(!(Y instanceof _.To)){var G,u;if((G=window)==null?0:(u=G.trustedTypes)==null?0:u.isScript(Y))throw Error("kc");if(String(Y).trim().length===0)return null;throw Error("mc`"+vTu(Y));}return Y};
YKj=function(Y,G){G=Jot(G);G!==null&&_.XH(Y,G)};
G14=function(Y){if(Array.isArray(Y)){if(Y.length>1)throw Error("nc`"+Y.length+"`"+Y.map(vTu).join(", "));Y=Y[0]}if(Y==null)return null;if(!(Y instanceof FH)){if(String(Y).trim().length===0)return null;throw Error("oc`"+vTu(Y));}return Y};
uA1=function(Y,G){G=G14(G);G!==null&&(Y.textContent=RHY(G))};
vTu=function(Y){return"("+typeof Y+") "+(Y!=null&&typeof Y==="object"?Y.constructor.name:typeof Y)+" "+Y};
OXa=function(){};
LH=function(Y,G){G=G===void 0?{}:G;var u=QxA(),O=!0,Q,M=!!uF.legacyTriggerSoyRendererEvents;M&&(Q=Zq4());_.iF(function(){var t=!O&&G.isControlFlowComponent&&M,K=t?u[JT].flattened[0].parentElement:void 0;O=!1;ty.setUp();G.isControlFlowComponent&&yM++;var L=u[0],g=u[JT].flattened,P=ui(!0);try{var I=Y(),k=McU(L,I,u);Array.isArray(k)||(u[JT].flattened=[k]);var n=u[JT].flattened;if(g&&(!Array.isArray(g)||g.length!==0)){var p=Array.isArray(g)?g[0]:g,W=p[TY],C=p._disposeEffects;p._disposeEffects=void 0;
p=Array.isArray(n)?n[0]:n;p[TY]=W;p[TY]&&(p[TY].numNodes=p===n?1:n.length);p._disposeEffects=C}u[0]=k;G.isControlFlowComponent&&oE(!1)}catch(e){throw G.isControlFlowComponent&&oE(!0),e;}finally{ui(P),ty.tearDown()}t&&(t=Q,t!=null||(t=_.yNT(document).getAppContext()),t.get(HXa).JSC$30183_getEventTarget().dispatchEvent(new Esu(tcY,K,H4)))},G.debugName);
return u};
McU=function(Y,G,u){for(;typeof G==="function";)G=G();if(G!=null&&G[Y4]){var O,Q,M;(M=uF.handleError)==null||M.call.apply(M,[uF].concat(_.c8(bF(Error("pc`"+((O=G.type)==null?void 0:O.TAG_NAME)),(Q=G.type)==null?void 0:Q.TAG_NAME))))}if(Y==null)return G==null?Qg():EH(G)?M3(G):qtg(G)?M3(G.toString()):OH(G)?G:G.length===0?Qg():KRU(G,u);if(OH(Y)){if(G==null)return snU(Y,Qg());if(EH(G))return aZy(Y,G);if(qtg(G))return aZy(Y,G.toString());if(OH(G))return snU(Y,G);if(G.length===0)return snU(Y,Qg());G=KRU(G,
u);UtA([Y],u[JT].flattened);return G}Y=X4(Y);if(G==null)return cou(Y,Qg());if(EH(G))return cou(Y,M3(G));if(qtg(G))return cou(Y,M3(G.toString()));if(OH(G))return UtA(Y,[G])[0];if(G.length===0)return cou(Y,Qg());G=KRU(G,u);UtA(Y,u[JT].flattened);return G};
aZy=function(Y,G){Y.nodeType===Node.TEXT_NODE?Y.textContent!==String(G)&&(Y.textContent=String(G)):Y=snU(Y,M3(G));return Y};
X4=function(Y,G,u){return TJg(Y,G!=null?G:[],u===void 0?!1:u)};
KRU=function(Y,G){var u=X4(Y,void 0,!0);if(u.length===0)return Qg();G[JT].flattened=u;return Y};
TJg=function(Y,G,u,O,Q){G=G===void 0?[]:G;u=u===void 0?!1:u;Q=Q===void 0?-1:Q;if(Y==null)return G;if(Y instanceof P4){var M=Y.render();return TJg(M,G,u,O,Q)}if(OH(G)&&G.nodeType===Node.ELEMENT_NODE)switch(G.tagName){case "SCRIPT":YKj(G,Y);return;case "STYLE":uA1(G,Y);return}EH(Y)&&(Y=M3(Y),O&&u&&(O[Q]=Y));if(Baj(Y)){u=$tA(Y);u=Array.from(u.childNodes);u=_.E(u);for(M=u.next();!M.done;M=u.next())LRa(G,M.value);return G}qtg(Y)&&(Y=M3(Y.toString()),O&&u&&(O[Q]=Y));if(OH(Y))return LRa(G,Y);if(Array.isArray(Y)){for(M=
0;M<Y.length;M++)TJg(Y[M],G,u,Y,M);return G}if(typeof Y==="function"){M=LH(function(){var K=Y();return K!=null&&!EH(K)&&Baj(K)?(K=$tA(K),Array.from(K.childNodes)):K},{debugName:"qmF2ne",
debugFn:Y})[0];if(Array.isArray(M)){u=_.E(M);for(M=u.next();!M.done;M=u.next())LRa(G,M.value);return G}O&&u&&(O[Q]=M);return LRa(G,M)}if(Y!=null&&Y[Y4]){O=Y;Q=ui(!0);var t=jnA;try{M=t.apply(null,[O.type,O.props].concat(_.c8(O.children)))}finally{ui(Q)}return TJg(M,G,u)}(t=uF.handleError)==null||t.call.apply(t,[uF].concat(_.c8(bF(Error("qc")))));return G};
QxA=function(Y){var G={};G=Object.assign([],(G[JT]={flattened:[]},G));if(!Y)return G;G[0]=KRU(Y,G);return G};
LRa=function(Y,G){Array.isArray(Y)?Y.push(G):Y.appendChild(G);return Y};
I1=function(Y){if(!uF.enableLazyTsx)return Y;if(Array.isArray(Y)){for(var G=0;G<Y.length;G++)Y[G]=I1(Y[G]);return Y}return Y instanceof P4?(Y=Y.render(),I1(Y)):Y};
X$a=function(Y,G){var u,O,Q=Pot(Y),M=function(n){O=n;n=ui(!0);var p=Hw(k4);Kmt("render",Q);try{u=I1(Y(G))}finally{aCj("render",Q),Hw(p),ui(n)}};
M=uF.enableContextPerComponent?XYt(M,Q):D1(M,uF.alwaysTrackContexts||!!cM);ICt(O);if(!G.renderedFromIdom){var t=Uy(O);try{return gs4(Y,G,u),u}finally{Uy(t)}}!bAU(u)&&Array.isArray(u)&&(u=QxA(u));var K=StA(u);t=Array.isArray(K)?K[0]:K;var L=!1;if(t){var g,P=(g=G==null?void 0:G.idomKey)!=null?g:Y;g=K!==t;t._disposeEffects=M;var I=t[TY]||{},k=bAU(u)?u:I.sourceDynamicRange;Object.assign(I,{key:P,numNodes:g?K.length:1,context:O,higherOrder:!!t[TY],sourceDynamicRange:k});t[TY]=I}else L=!0;(function(){var n=
Uy(O);try{gs4(Y,G,K)}finally{Uy(n)}})();
L&&M();return u};
PcA=function(Y){var G={},u;for(u in Y)G={prev$jscomp$24:void 0,next$jscomp$34:void 0},G.prev$jscomp$24=nH[u],G.next$jscomp$34=Y[u],nH[u]=function(O){return function(){var Q=_.vs.apply(0,arguments);O.prev$jscomp$24.apply(null,_.c8(Q));O.next$jscomp$34.apply(null,_.c8(Q))}}(G)};
IZg=function(){if(r_())throw Error("rc");return F4};
k1Y=function(Y,G){if(!Y.__unmounted&&G){Y.__unmounted=!0;try{Y.didUnmount()}catch(Q){var u,O;(O=uF.handleError)==null||O.call.apply(O,[uF].concat(_.c8(bF(Q,(u=Y.__type)==null?void 0:u.TAG_NAME))))}nH.didUnmount(Y);Y.el=null;G.__instance&&delete G.__instance}};
FRj=function(Y,G,u){Y._signalProps!=null&&Y._disposeEffects==null&&((u===void 0?0:u)?Y._disposeEffects=D1(function(){return void nsg(Y,G)},uF.alwaysTrackContexts||!!cM):nsg(Y,G))};
nsg=function(Y,G){_.iF(function(){for(var u=Y._signalProps,O=Y._signalValues,Q=0;Q<u.length;Q++){var M=u[Q],t=G[M]();O[Q]!==t&&(O[Q]=t,DtU(Y,M,t))}},"e3YVbb")};
p$T=function(Y,G,u){var O,Q=[];Y._disposeEffects=D1(function(){_.iF(function(){var M=u();if(M===null||M===void 0)M="";if(EH(M)||M===null)O!=null||(O=document.createTextNode("")),O.parentNode!==Y&&(O._isSignalTextNode=!0,Y.insertBefore(O,G)),O.textContent=String(M);else if(Baj(M)){for(var t=Q.length>0?Q[Q.length-1].nextSibling:G,K=_.E(Q),L=K.next();!L.done;L=K.next())Y.removeChild(L.value);M=$tA(M);Q=Array.from(M.childNodes);M=_.E(Q);for(K=M.next();!K.done;K=M.next())Y.insertBefore(K.value,t)}else throw L=
(K=(t=mv)==null?void 0:t.name)!=null?K:"unknown",Error("gc`"+L+"`"+typeof M);},"VvDgC")},uF.alwaysTrackContexts||!!cM)};
WRy=function(Y,G){var u=_.vs.apply(2,arguments);G!=null||(G={});return!uF.enableLazyTsx||mv!=null&&!r_()?zIj(Y,G,u):new mZg(Y,G,u)};
zIj=function(Y,G,u){if(Y===_.GY)return u;if(typeof Y==="function")return mv&&!r_()&&(G.renderedFromIdom=!0),IHY(Y,function(){u.length>0&&(G.children=u.length===1?u[0]:u);if(Y.componentType===Ww){var M;XYt(function(){var t=G;if(Y.componentType!==Ww)M=!1;else{t||(t={});var K=new pH(t,Y),L=Hw(k4);try{var g=K.render(t)}finally{Hw(L)}g instanceof HTMLElement?(g.__instance=K,K.el=g,K.__type=Y,Y.TAG_NAME=g.tagName.toLowerCase(),nH.didPatch(K),M=g):M=g}},Y.name);
if(M)return M}return X$a(Y,G)},G.debugInstance);
var O=rvt(Y,G),Q;for(Q in G)DtU(O,Q,G[Q]);FRj(O,G);X4(u,O);hT4(O,G,{isReactive:!0});xZj(O,G);return O};
rvt=function(Y,G){Y=(fZg.has(Y.toLowerCase())?0:Cct.has(Y.startsWith("svg:")?Y.replace("svg:",""):Y))?document.createElementNS("http://www.w3.org/2000/svg",Y.startsWith("svg:")?Y.replace("svg:",""):Y):yv4(Y,G)||document.createElement(Y);Y[eI1]=!0;return Y};
Avj=function(Y){if(Y){var G;(G=Y._disposeRef)==null||G.call(Y);var u;(u=Y._disposeEffects)==null||u.call(Y);Y.__instance&&Y.__instance instanceof zY&&(G=Y.__instance,k1Y(G,Y),G instanceof pH&&G.disposeEffects());for(G=0;G<Y.childNodes.length;G++)Avj(Y.childNodes[G])}};
iX4=function(Y){osY.push(Y)===1&&requestAnimationFrame(function(){setTimeout(function(){var G=[].concat(_.c8(osY));osY=[];G=_.E(G);for(var u=G.next();!u.done;u=G.next()){u=u.value;try{for(var O=0;O<u.length;O++)Avj(u[O])}catch(Q){O=u=void 0,(O=(u=uF).handleError)==null||O.call.apply(O,[u].concat(_.c8(bF(Q))))}}})})};
_.T=function(Y,G){return jnA.apply(null,[Y,G].concat(_.c8(_.vs.apply(2,arguments))))};
_.m1=function(Y){return Y};
_.W4=function(Y){return{isDefault:!0,children:Y.children}};
_.X=function(Y){var G=Y.cond;if(G===void 0)return Y.else&&Y.else();var u=_.p2(function(){return!!G()},void 0,"JHVi8"),O=function(){var M=G();
if(!M){var t;(t=uF.handleError)==null||t.call.apply(t,[uF].concat(_.c8(bF(RIA.nonNullableCondIsNull()))))}return M},Q;
return LH(function(){var M=u(),t;D1(function(){var K=Hw(k4);try{t=I1(M?Y.then(O):Y.else&&Y.else())}finally{Hw(K)}},!0);
return t},{debugName:(Q=Y.debugInstance)!=null?Q:"RlDudd",
debugFn:Y.then,isControlFlowComponent:!0})};
w$g=function(Y){return _.X(Y)};
_.rc=function(Y){return Y.keyBy==="INDEX"?ZXt(Y):DZU(Y)};
hIy=function(Y){Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next()){var u=void 0;(u=G.value)==null||u()}};
DZU=function(Y){var G=Y.keyBy===void 0||Y.keyBy==="REFERENCE",u=G?function(I){return I}:Y.keyBy,O=[],Q=[],M=[],t=[],K=[],L=[],g=!0;
_.w_(function(){hIy(t)});
var P;return LH(function(){var I=dZt(Y),k=I.length;if(k===0){if(O.length===0&&!g)return M;hIy(t);O=I;Q=[];for(I=0;I<O.length;I++)Q.push(u(O[I]));M=[];t=[];K=[];L=[];Y.fallback&&(t[0]=bX1(function(){M[0]=I1(Y.fallback())}));
g=!1;return M}for(var n=new SKU,p=O.length-1;p>=0;p--)n.push(Q[p],p);p=Array(k);for(var W=Array(k),C=Array(k),e=Array(k),w=Array(G?0:k),B={i$jscomp$454:0};B.i$jscomp$454<k;B={i$jscomp$454:B.i$jscomp$454,item$jscomp$104:void 0,key$jscomp$565:void 0},B.i$jscomp$454++){B.item$jscomp$104=I[B.i$jscomp$454];B.key$jscomp$565=u(B.item$jscomp$104);var N=n.pop(B.key$jscomp$565);N!=null?(C[B.i$jscomp$454]=M[N],W[B.i$jscomp$454]=Q[N],p[B.i$jscomp$454]=t[N],e[B.i$jscomp$454]=K[N],G||(w[B.i$jscomp$454]=L[N]),zX(function(h){return function(){e[h.i$jscomp$454](h.i$jscomp$454);
if(!G)w[h.i$jscomp$454](h.item$jscomp$104)}}(B)),delete t[N]):p[B.i$jscomp$454]=bX1(function(h){return function(){var q=_.E(_.IE(h.i$jscomp$454,void 0,"Fqk1zd")),U=q.next().value;
q=q.next().value;e[h.i$jscomp$454]=q;W[h.i$jscomp$454]=h.key$jscomp$565;if(G)C[h.i$jscomp$454]=I1(Y.children(h.item$jscomp$104,U));else{var Mj=_.E(_.IE(h.item$jscomp$104,void 0,"GBj5de"));q=Mj.next().value;Mj=Mj.next().value;w[h.i$jscomp$454]=Mj;C[h.i$jscomp$454]=I1(Y.children(q,U))}}}(B))}hIy(t);
O=I;Q=W;M=C;t=p;K=e;L=w;g=!1;return C},{debugName:(P=Y.debugInstance)!=null?P:"nsTGHd",
debugFn:Y.each,isControlFlowComponent:!0})};
ZXt=function(Y){var G=[],u=[],O=[],Q=[],M=!1;_.w_(function(){hIy(Q)});
var t;return LH(function(){var K=dZt(Y);M&&K.length>0&&(Q.pop()(),G.pop(),M=!1);for(var L=Array(K.length),g={i$jscomp$455:0};g.i$jscomp$455<K.length;g={i$jscomp$455:g.i$jscomp$455},g.i$jscomp$455++)if(g.i$jscomp$455<G.length)G[g.i$jscomp$455]!==K[g.i$jscomp$455]&&(zX(function(I){return function(){return void u[I.i$jscomp$455](K[I.i$jscomp$455])}}(g)),G[g.i$jscomp$455]=K[g.i$jscomp$455]),L[g.i$jscomp$455]=O[g.i$jscomp$455];
else{var P=bX1(function(I){return function(){G[I.i$jscomp$455]=K[I.i$jscomp$455];var k=_.E(_.IE(K[I.i$jscomp$455],void 0,"JMMLmd")),n=k.next().value;k=k.next().value;u[I.i$jscomp$455]=k;L[I.i$jscomp$455]=I1(Y.children(n,I.i$jscomp$455))}}(g));
Q[g.i$jscomp$455]=P}for(;G.length>K.length;)G.pop(),Q.pop()(),u.pop();K.length===0&&!M&&Y.fallback&&(g=bX1(function(){L[0]=I1(Y.fallback())}),Q[0]=g,M=!0);
return O=L},{debugName:(t=Y.debugInstance)!=null?t:"nsTGHd",
isControlFlowComponent:!0})};
dZt=function(Y){Y=Y.each();return Array.isArray(Y)?Y:Array.from(Y)};
bX1=function(Y){var G=cM;return D1(function(u){var O=Hw(k4);try{u.parent=G,Y(u)}finally{Hw(O)}},!1)};
_.x4=function(Y){var G=NJY(Y),u=_.p2(function(){return jx4(G)},void 0,"F1PF4"),O;
return LH(function(){var Q=u(),M;D1(function(){var t=Hw(k4);try{M=I1(Q())}finally{Hw(t)}});
return M},{debugName:(O=Y.debugInstance)!=null?O:"vI1rtf",
isControlFlowComponent:!0})};
NJY=function(Y){Y=Y.children;return Array.isArray(Y)?Y:[Y]};
Vct=function(Y){var G=Y.props;Y=Y.getChildren()[0];return G.when?{when:G.when,children:Y}:{isDefault:!0,children:Y}};
jx4=function(Y){var G=function(){return null};
Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())if(u=u.value,u!=null&&u[Y4]&&(u=u.type===_.W4?{isDefault:!0,children:u.children[0]}:{when:u.props.when,children:u.children[0]}),u instanceof P4&&(u=Vct(u)),u.isDefault)G=u.children;else if(u.when())return u.children;return G};
lZY=function(Y){var G=null,u,O={get value(){var M,t;(t=(M=Q).validateGetValue)==null||t.call(M);return Q.__value},set value(M){var t,K;(K=(t=Q).validateSetValue)==null||K.call(t,M);Q.__value=M;Q.__hasBeenSet=!0}},Q=(O.__value=null,O.__hasBeenSet=!1,O.__hasErrored=!1,O.onRender=function(M){if(u&&M!==u){u._disposeRef=void 0;var t;(t=G)==null||t()}u=M;G=Y(M)||null},O.onUnmount=function(){var M;
(M=G)==null||M();G=Q.value=null},O[hZA]=!0,O);
return Q};
fH=function(Y){return typeof Y==="symbol"};
$ZA=function(Y){var G=IZg();if(G==null)throw BJ1.PRIMITIVE_INVALID_HOOK_CALL();var u=G.hookCounter++;G.hooks||(G.hooks=[]);var O=G.hooks;O[u]||(O[u]={key:Y,host:G});if(Y!==O[u].key){if(G.__type){var Q;Y=(Q=G.__type)==null?void 0:Q.name}else Y=G instanceof pH?Pot(G.functionComponent):"<"+G.el.tagName.toLowerCase()+">";throw BJ1.OUT_OF_ORDER_HOOK_CALL(Y);}return O[u]};
qKI=function(Y,G){return!Y||Y.length!==(G==null?void 0:G.length)||Y.some(function(u,O){return u!==G[O]})};
sxA=function(Y,G){if(r_())return Y();var u=$ZA("useMemoInternal");qKI(u.deps,G)&&(u.deps=G,u.value=Y());return u.value};
cvt=function(Y,G){return sxA(Y,G)};
_.CH=function(Y,G){return UZU(Y,!1,G)};
_.yg=function(Y,G){return UZU(Y,!0,G)};
UZU=function(Y,G,u){return r_()?vsj(Y,G,u):Jvu(Y,G,u)};
Jvu=function(Y,G,u){return sxA(function(){return vsj(Y,G,u)},[])};
vsj=function(Y,G,u){var O=lZY(function(Q){O.value=Q;var M=function(){var t=Hw(null);try{return u==null?void 0:u(Q)}finally{Hw(t)}}();
return function(){M==null||M()}});
O.__expectedTagName=Y;O.__optional=G;O.isIdom=!r_();return O};
YUj=function(Y,G){var u;G=D1(function(){var O=ui(!0);yM++;try{u=X4(Y()),oE(!1)}catch(Q){throw oE(!0),Q;}finally{ui(O)}},G===void 0?!1:G);
return[u,G]};
_.Ay=function(Y,G,u){u!=null||(u={});u=u.appContext;var O=!!uF.legacyTriggerSoyRendererEvents;ty.setUp();try{var Q=GbY(Y,G,u);O&&(G=u,G!=null||(G=_.yNT(document).getAppContext()),G.get(HXa).JSC$30183_getEventTarget().dispatchEvent(new Esu(uht,Y,H4)));ty.log(Y);return Q}finally{ty.tearDown()}};
GbY=function(Y,G,u){var O=f2(function(){var Q=Hw(k4);try{return D1(function(){var M=_.yNT(_.nm(Y)),t;var K=swj({rootElement:{value:Y},appContext:u||(M==null?void 0:(t=M.getOptionalAppContext)==null?void 0:t.call(M)),dispatcher:M});M=Uy(K);K=ui(!0);yM++;try{X4(G(),Y),oE(!1)}catch(L){throw oE(!0),L;}finally{ui(K),Uy(M)}},!1)}catch(M){throw uF.enableContextBasedComponentStacks&&xl(M),M;
}finally{Hw(Q)}});
Y[OQU]=!0;return function(){Y.textContent="";O();Y[OQU]=!1}};
_.o1=function(Y){if(hQy(Mc)){var G;(G=uF.handleError)==null||G.call.apply(G,[uF].concat(_.c8(bF(Error("fc")))))}var u=cM,O=mv;fHg({onInitType:rGa,run:function(){if(u&&!u.isDisposed){var Q=Uy(u);try{f2(function(){return void Y()},O)}catch(M){throw uF.enableContextBasedComponentStacks&&xl(M),M;
}finally{Uy(Q)}}}})};
HQI=function(Y){var G=oqt(2),u=new Set;_.w_(function(){return void u.forEach(function(O){return void O()})});
return function(O){var Q=Uy(G);try{var M=QKy(Myy(Y),O);u.add(M);return function(){M();u.delete(M)}}finally{Uy(Q)}}};
_.ENy=function(Y){var G=Y.children;var u=Y.root;_.o1(function(){var O=HQI(u)(G);_.w_(O)});
return document.createTextNode("")};
QKy=function(Y,G){var u=tya(Y);(Y=dCU())&&xCy(u,Y);ty.setUp();G=_.E(YUj(G,!0));Y=G.next().value;var O=G.next().value;G=_.E(Y);for(Y=G.next();!Y.done;Y=G.next())u.appendChild(Y.value);ty.log(u);ty.tearDown();return function(){O();u.remove()}};
Myy=function(Y){if(typeof Y==="string")return Y=document.querySelector(Y),_.tRg(Y),Y;if(OH(Y)&&Y.nodeType===Node.ELEMENT_NODE)return Y;if(!Y.__value&&!Y.__optional){var G=BJ1.USE_ELEMENT_NOT_ASSIGNED(Y.__expectedTagName);Y.__hasErrored=!0;throw G;}return Y.value};
tya=function(Y){var G=document.createElementNS(Y.namespaceURI,Y.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");return Y.appendChild(G)};
K7j=function(Y,G){var u=$ZA("onChange"),O=IZg();qKI(u.deps,G)&&(u.deps=G,u.pendingEffect=Y,O.__syncEffects||(O.__syncEffects=[]),O.__syncEffects.push(u))};
ayu=function(Y,G){K7j(function(){return _.Pw(Y)},G)};
_.ii=function(Y){r_()?_.o1(function(){_.Pw(Y)}):K7j(function(){return _.Pw(Y)},[])};
L7Y=function(Y){var G=[].concat(_.c8(Y));Y.length=0;Y=_.E(G);for(G=Y.next();!G.done;G=Y.next()){G=G.value;TSI(G);var u=G.pendingEffect;G.pendingEffect=null;if(u=u==null?void 0:u())G.pendingCleanup=u}};
TSI=function(Y){var G=Y.pendingCleanup;Y.pendingCleanup=null;G==null||G()};
gNA=function(Y){return sxA(function(){return{value:Y}},[])};
_.R1=function(Y,G){if(!Y)return null;Y=Object.keys(Y);Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next()){u=u.value;var O=u.toLowerCase();if(O.indexOf(G,O.length-G.length)>-1)return u}return null};
_.ZE=function(){var Y=arguments,G=_.wc;Y.length>1?G[Y[0]]=Y[1]:Y.length===1&&Object.assign(G,Y[0])};
_.DE=function(Y,G){return Y in _.wc?_.wc[Y]:G};
_.hy=function(Y,G){return!!_.DE(Y,G)};
X2A=function(Y){var G=_.wc.EXPERIMENT_FLAGS;return G?G[Y]:void 0};
IyI=function(Y){Pgy.forEach(function(G){return G(Y)})};
_.bi=function(Y){return Y&&window.yterr?function(){try{return Y.apply(this,arguments)}catch(G){_.dc(G)}}:Y};
_.dc=function(Y){var G=_.So("yt.logging.errors.log");G?G(Y,"ERROR",void 0,void 0,void 0,void 0,void 0):(G=_.DE("ERRORS",[]),G.push([Y,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.ZE("ERRORS",G));IyI(Y)};
_.N3=function(Y,G,u,O,Q){var M=_.So("yt.logging.errors.log");M?M(Y,"WARNING",G,u,O,void 0,Q):(M=_.DE("ERRORS",[]),M.push([Y,"WARNING",G,u,O,void 0,Q]),_.ZE("ERRORS",M))};
nNa=function(Y,G){G=Y.split(G);for(var u={},O=0,Q=G.length;O<Q;O++){var M=G[O].split("=");if(M.length===1&&M[0]||M.length===2)try{var t=kb1(M[0]||""),K=kb1(M[1]||"");if(t in u){var L=u[t];Array.isArray(L)?_.Bu(L,K):u[t]=[L,K]}else u[t]=K}catch(k){var g=k,P=M[0],I=String(nNa);g.args=[{key:P,value:M[1],query:Y,method:F7j===I?"unchanged":I}];p2j.hasOwnProperty(P)||_.N3(g)}}return u};
zSa=function(Y){var G=[];_.gX.forEach(Y,function(u,O){var Q=_.Us(O);u=Array.isArray(u)?u:[u];_.jo(u,function(M){M==""?G.push(Q):G.push(Q+"="+_.Us(M))})});
return G.join("&")};
_.Vg=function(Y){Y.charAt(0)==="?"&&(Y=Y.substring(1));return nNa(Y,"&")};
_.li=function(Y){return Y.indexOf("?")!==-1?(Y=(Y||"").split("#")[0],Y=Y.split("?",2),_.Vg(Y.length>1?Y[1]:Y[0])):{}};
_.B4=function(Y,G){return muU(Y,G||{},!0)};
W7T=function(Y,G){return muU(Y,G||{},!1)};
muU=function(Y,G,u){var O=Y.split("#",2);Y=O[0];O=O.length>1?"#"+O[1]:"";var Q=Y.split("?",2);Y=Q[0];Q=_.Vg(Q[1]||"");for(var M in G)if(u||!_.gX.containsKey(Q,M))Q[M]=G[M];return _.JD(Y,Q)+O};
$4=function(Y){if(!G)var G=window.location.href;var u=_.jL(Y)[1]||null,O=_.l7(Y);return u&&O?ss(Y,G):O?_.l7(G)===O&&(Number(_.jL(G)[4]||null)||null)===(Number(_.jL(Y)[4]||null)||null):!0};
_.xuj=function(Y){Y=rW4(Y);return Y===null?!1:Y[0]==="com"&&Y[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
rW4=function(Y){Y=_.l7(Y);return Y!==null?Y.split(".").reverse():null};
kb1=function(Y){return Y&&Y.match(fyT)?Y:cI(Y)};
_.q3=function(Y){return new Cg1(Y)};
_.sH=function(){yWA||(yWA=new eSj);return yWA};
oNj=function(){var Y=AWt;return function(){var G=_.sH();if(!G.resolve(_.q3(Y))){var u={};G.addProvider((u.provide=Y,u.useClass=Y,u[c4]=void 0,u))}return G.resolve(Y)}};
_.UH=function(Y,G){var u,O;_.a(function(Q){u=_.sH();return(O=u.resolve(_.q3(Y)))?(G(O),Q.return(Promise.resolve(O))):Q.return(u.resolve(new iQa(Y)).then(function(M){G(M);return M}))})};
_.F=function(Y){Y=v4(Y);return typeof Y==="string"&&Y==="false"?!1:!!Y};
_.Jy=function(Y,G){Y=v4(Y);return Y===void 0&&G!==void 0?G:Number(Y||0)};
RSU=function(Y){Y=v4(Y);return Array.isArray(Y)?_.Xi(Y,function(G){return Number(G||0)}):[Number(Y||0)]};
_.Yg=function(Y){Y=v4(Y);return Y!==void 0?String(Y):""};
_.O5=function(Y){Y=v4(Y);return Array.isArray(Y)?_.Xi(Y,function(G){return String(G||"")}):[String(Y||"")]};
w2a=function(){return _.DE("EXPERIMENTS_TOKEN","")};
v4=function(Y){return _.DE("EXPERIMENT_FLAGS",{})[Y]};
ZQ1=function(){for(var Y=[],G=_.DE("EXPERIMENTS_FORCED_FLAGS",{}),u=_.E(Object.keys(G)),O=u.next();!O.done;O=u.next())O=O.value,Y.push({key:O,value:String(G[O])});u=_.DE("EXPERIMENT_FLAGS",{});O=_.E(Object.keys(u));for(var Q=O.next();!Q.done;Q=O.next())Q=Q.value,Q.startsWith("force_")&&G[Q]===void 0&&Y.push({key:Q,value:String(u[Q])});return Y};
hSt=function(){if(!Dut)return null;var Y=Dut();return"open"in Y?Y:null};
_.duy=function(Y){switch(_.Ql(Y)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Ql=function(Y){return Y&&"status"in Y?Y.status:-1};
_.MN=function(Y,G){typeof Y==="function"&&(Y=_.bi(Y));return window.setTimeout(Y,G)};
_.HK=function(Y,G){typeof Y==="function"&&(Y=_.bi(Y));return window.setInterval(Y,G)};
_.E5=function(Y){window.clearTimeout(Y)};
SUU=function(Y){Y=_.li(Y);for(var G=_.E(bQj),u=G.next();!u.done;u=G.next())if(Y[u.value]!==void 0)return!0;return!1};
VyT=function(Y,G,u,O,Q,M,t,K,L){u=u===void 0?"GET":u;O=O===void 0?"":O;K=K===void 0?!1:K;var g=hSt();if(!g)return null;var P=function(){(g&&"readyState"in g?g.readyState:0)===4&&G&&_.bi(G)(g)};
"onloadend"in g?g.addEventListener("loadend",P,!1):g.onreadystatechange=P;_.F("debug_forward_web_query_parameters")&&(Y=NSA(Y,window.location.search));g.open(u,Y,!0);M&&(g.responseType=M);t&&(g.withCredentials=!0);u=u==="POST"&&(window.FormData===void 0||!(O instanceof FormData));if(Q=jKt(Y,Q))for(var I in Q)g.setRequestHeader(I,Q[I]),"content-type"===I.toLowerCase()&&(u=!1);u&&g.setRequestHeader("Content-Type","application/x-www-form-urlencoded");L&&"onprogress"in g&&(g.onprogress=function(){L(g.responseText)});
if(K&&"setAttributionReporting"in XMLHttpRequest.prototype){Y={eventSourceEligible:!0,triggerEligible:!1};try{g.setAttributionReporting(Y)}catch(k){_.N3(k)}}g.send(O);return g};
jKt=function(Y,G){G=G===void 0?{}:G;var u=$4(Y),O=_.DE("INNERTUBE_CLIENT_NAME"),Q=_.F("web_ajax_ignore_global_headers_if_set"),M;for(M in lya){var t=_.DE(lya[M]),K=M==="X-Goog-AuthUser"||M==="X-Goog-PageId";M!=="X-Goog-Visitor-Id"||t||(t=_.DE("VISITOR_DATA"));var L;if(!(L=!t)){if(!(L=u||(_.l7(Y)?!1:!0))){L=Y;var g;if(g=_.F("add_auth_headers_to_remarketing_google_dot_com_ping")&&M==="Authorization"&&(O==="TVHTML5"||O==="TVHTML5_UNPLUGGED"||O==="TVHTML5_SIMPLY"))g=rW4(L),g=g===null?!1:g[1]==="google"?
!0:g[2]==="google"?g[0]==="au"&&g[1]==="com"?!0:g[0]==="uk"&&g[1]==="co"?!0:!1:!1;g&&(L=_.BI(L)||"",L=L.split("/"),L="/"+(L.length>1?L[1]:""),g=L==="/pagead");L=g?!0:!1}L=!L}L||Q&&G[M]!==void 0||O==="TVHTML5_UNPLUGGED"&&K||(G[M]=t)}"X-Goog-EOM-Visitor-Id"in G&&"X-Goog-Visitor-Id"in G&&delete G["X-Goog-Visitor-Id"];if(u||!_.l7(Y))G["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(u||!_.l7(Y)){try{var P=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(I){}P&&(G["X-YouTube-Time-Zone"]=
P)}document.location.hostname.endsWith("youtubeeducation.com")||!u&&_.l7(Y)||(G["X-YouTube-Ad-Signals"]=zSa(BSt()));return G};
_.$ut=function(Y,G){var u=_.l7(Y);_.F("debug_handle_relative_url_for_query_forward_killswitch")||!u&&$4(Y)&&(u=document.location.hostname);var O=_.BI(Y);O=(u=u&&(u.endsWith("youtube.com")||u.endsWith("youtube-nocookie.com")))&&O&&O.startsWith("/api/");if(!u||O)return Y;var Q=_.Vg(G),M={};_.jo(bQj,function(t){Q[t]&&(M[t]=Q[t])});
return W7T(Y,M)};
qUy=function(Y,G){G.method="POST";G.postParams||(G.postParams={});return _.td(Y,G)};
sKY=function(Y,G){var u=_.DE("XSRF_FIELD_NAME"),O;G.headers&&(O=G.headers["Content-Type"]);return!G.excludeXsrf&&(!_.l7(Y)||G.withCredentials||_.l7(Y)===document.location.hostname)&&G.method==="POST"&&(!O||O==="application/x-www-form-urlencoded")&&!(G.postParams&&G.postParams[u])};
_.td=function(Y,G){var u=G.format||"JSON";Y=cWj(Y,G);var O=Uut(Y,G),Q=!1,M=vN1(Y,function(L){if(!Q){Q=!0;K&&_.E5(K);var g=_.duy(L),P=null,I=400<=L.status&&L.status<500,k=500<=L.status&&L.status<600;if(g||I||k)P=JWj(Y,u,L,G.convertToSafeHtml);g&&(g=YGa(u,L,P));P=P||{};I=G.context||_.OI;g?G.onSuccess&&G.onSuccess.call(I,L,P):G.onError&&G.onError.call(I,L,P);G.onFinish&&G.onFinish.call(I,L,P)}},G.method,O,G.headers,G.responseType,G.withCredentials,!1,G.onProgress);
O=G.timeout||0;if(G.onTimeout&&O>0){var t=G.onTimeout;var K=_.MN(function(){Q||(Q=!0,M.abort(),_.E5(K),t.call(G.context||_.OI,M))},O)}return M};
cWj=function(Y,G){G.includeDomain&&(Y=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+Y);var u=_.DE("XSRF_FIELD_NAME");if(G=G.urlParams)G[u]&&delete G[u],Y=_.B4(Y,G);return Y};
Uut=function(Y,G){var u=_.DE("XSRF_FIELD_NAME"),O=_.DE("XSRF_TOKEN"),Q=G.postBody||"",M=G.postParams;sKY(Y,G)&&(M||(M={}),M[u]=O);(_.F("ajax_parse_query_data_only_when_filled")&&M&&Object.keys(M).length>0||M)&&typeof Q==="string"&&(Q=_.Vg(Q),_.gX.extend(Q,M),Q=G.postBodyFormat&&G.postBodyFormat==="JSON"?JSON.stringify(Q):_.vI(Q));M=Q||M&&!_.gX.isEmpty(M);!GL1&&M&&G.method!=="POST"&&(GL1=!0,_.dc(Error("Lc")));return Q};
JWj=function(Y,G,u,O){var Q=null;switch(G){case "JSON":try{var M=u.responseText}catch(t){throw O=Error("Mc"),O.params=Y,_.N3(O),t;}Y=u.getResponseHeader("Content-Type")||"";M&&Y.indexOf("json")>=0&&(M.substring(0,5)===")]}'\n"&&(M=M.substring(5)),Q=JSON.parse(M));break;case "XML":if(Y=(Y=u.responseXML)?uXg(Y):null)Q={},_.jo(Y.getElementsByTagName("*"),function(t){Q[t.tagName]=OUt(t)})}O&&Qia(Q);
return Q};
Qia=function(Y){if(_.$a(Y))for(var G in Y)G==="html_content"||tY(G,"_html")?Y[G]=Or(Y[G]):Qia(Y[G])};
YGa=function(Y,G,u){if(G&&G.status===204)return!0;switch(Y){case "JSON":return!!u;case "XML":return Number(u&&u.return_code)===0;case "RAW":return!0;default:return!!u}};
uXg=function(Y){return Y?(Y=("responseXML"in Y?Y.responseXML:Y).getElementsByTagName("root"))&&Y.length>0?Y[0]:null:null};
OUt=function(Y){var G="";_.jo(Y.childNodes,function(u){G+=u.nodeValue});
return G};
M71=function(Y){if(Y.name==="JavaException")return!0;Y=Y.stack;return Y.includes("chrome://")||Y.includes("-extension://")||Y.includes("webkit-masked-url://")};
HUY=function(Y){if(!Y.stack)return!0;var G=!Y.stack.includes("\n");return G&&Y.stack.includes("ErrorType: ")||G&&Y.stack.includes("Anonymous function (Unknown script")||Y.stack.toLowerCase()==="not available"||Y.fileName==="user-script"||Y.fileName.startsWith("user-script:")?!0:!1};
_.KG=function(Y){_.Ey.call(this);this.JSC$10852_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!Y};
t74=function(Y,G){var u=Y.length,O=0,Q=function(){return Y.charCodeAt(O++)};
do{var M=EGU(Q);if(M===Infinity)break;var t=M>>3;switch(M&7){case 0:M=EGU(Q);if(t===G)return M;break;case 1:if(t===G)return;O+=8;break;case 2:M=EGU(Q);if(t===G)return Y.substr(O,M);O+=M;break;case 5:if(t===G)return;O+=4;break;default:return}}while(O<u)};
EGU=function(Y){var G=Y(),u=G&127;if(G<128)return u;G=Y();u|=(G&127)<<7;if(G<128)return u;G=Y();u|=(G&127)<<14;if(G<128)return u;G=Y();return G<128?u|(G&127)<<21:Infinity};
asu=function(Y,G,u,O){if(Y)if(Array.isArray(Y)){var Q=O;for(O=0;O<Y.length&&!(Y[O]&&(Q+=KZI(O,Y[O],G,u),Q>500));O++);O=Q}else if(typeof Y==="object")for(Q in Y){if(Y[Q]){var M=Q;var t=Y[Q],K=G,L=u;M=typeof t!=="string"||M!=="clickTrackingParams"&&M!=="trackingParams"?0:(t=t74(atob(t.replace(/-/g,"+").replace(/_/g,"/")),2))?KZI(M+".ve",t,K,L):0;O+=M;O+=KZI(Q,Y[Q],G,u);if(O>500)break}}else u[G]=a2(Y),O+=u[G].length;else u[G]=a2(Y),O+=u[G].length;return O};
KZI=function(Y,G,u,O){u+="."+Y;Y=a2(G);O[u]=Y;return u.length+Y.length};
a2=function(Y){try{return(typeof Y==="string"?Y:String(JSON.stringify(Y))).substr(0,500)}catch(G){return"unable to serialize "+typeof Y+" ("+G.message+")"}};
TKI=function(Y){switch(Y){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}};
_.LG=function(Y,G,u,O,Q){_.TR.set(Y,G,{maxAge:u,path:"/",domain:O===void 0?"youtube.com":O,secure:Q===void 0?!1:Q})};
_.LZg=function(Y,G,u){_.TR.remove(Y,G===void 0?"/":G,u===void 0?"youtube.com":u)};
_.gC=function(){if(!_.TR.isEnabled())return!1;if(!_.TR.isEmpty())return!0;_.TR.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.TR.get("TESTCOOKIESENABLED")!=="1")return!1;_.TR.remove("TESTCOOKIESENABLED");return!0};
gGA=function(){var Y=_.OI.navigator;return Y?Y.connection:void 0};
XC4=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(Y){}};
_.IsA=function(){var Y=gGA();if(Y){var G=P8I[Y.type||"unknown"]||"CONN_UNKNOWN";Y=P8I[Y.effectiveType||"unknown"]||"CONN_UNKNOWN";G==="CONN_CELLULAR_UNKNOWN"&&Y!=="CONN_UNKNOWN"&&(G=Y);if(G!=="CONN_UNKNOWN")return G;if(Y!=="CONN_UNKNOWN")return Y}};
nG4=function(){var Y=gGA();if(Y!=null&&Y.effectiveType)return kLU.hasOwnProperty(Y.effectiveType)?kLU[Y.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.PK=function(){try{return _.Xw(),!0}catch(Y){return!1}};
_.Xw=function(Y){if(_.DE("DATASYNC_ID")!==void 0)return _.DE("DATASYNC_ID");throw new _.I2("Datasync ID not set",Y===void 0?"unknown":Y);};
_.kg=function(Y){this.mechanism=Y};
nG=function(Y){this.mechanism=Y};
Fw=function(Y){this.mechanism=Y};
pG=function(){};
zR=function(Y){return{value:Y,done:!1}};
_.FZt=function(Y){if(Y instanceof pG)return Y;if(typeof Y.__iterator__=="function")return Y.__iterator__(!1);if(_.ly(Y)){var G=0,u=new pG;u.next=function(){for(;;){if(G>=Y.length)return m_;if(G in Y)return zR(Y[G++]);G++}};
return u}throw Error("Qc");};
pCg=function(){};
WK=function(Y){this.storage_=Y;this.cachedIsStorageAvailable_=null};
zUt=function(){var Y=null;try{Y=_.OI.localStorage||null}catch(G){}WK.call(this,Y)};
mWj=function(){var Y=null;try{Y=_.OI.sessionStorage||null}catch(G){}WK.call(this,Y)};
rC=function(Y,G){this.mechanism_=Y;this.JSC$10954_prefix_=G+"::"};
_.xg=function(Y){var G=new zUt;return G.isAvailable()?Y?new rC(G,Y):G:null};
_.WZA=function(Y){var G=new mWj;return G.isAvailable()?Y?new rC(G,Y):G:null};
xWj=function(){var Y;return(Y=rHY())==null?void 0:Y.get("LAST_RESULT_ENTRY_KEY",!0)};
_.yl=function(Y){fsI||(_.fG?_.fG.logError(Y):(_.CG.push({type:"ERROR",payload:Y}),_.CG.length>10&&_.CG.shift()))};
e1=function(Y,G){fsI||(_.fG?_.fG.logEvent(Y,G):(_.CG.push({type:"EVENT",eventType:Y,payload:G}),_.CG.length>10&&_.CG.shift()))};
o2=function(Y){if(Y.indexOf(":")>=0)throw Error("Tc");};
i9=function(Y){return Y.substr(0,Y.indexOf(":"))||Y};
eUT=function(){return(C8g||yHA)&&R2("applewebkit")&&!R2("version")&&(!R2("safari")||R2("gsa/"))};
R2=function(Y){var G=_.zg();return G?G.toLowerCase().indexOf(Y)>=0:!1};
iU1=function(Y,G,u,O){G=i9(G);var Q=Y instanceof Error?Y:Error("Uc`"+Y);if(Q instanceof wC)return Q;Y={objectStoreNames:u,dbName:G,dbVersion:O};if(Q.name==="QuotaExceededError")return new wC("QUOTA_EXCEEDED",Y);if(_.Zn&&Q.name==="UnknownError")return new wC("QUOTA_MAYBE_EXCEEDED",Y);if(Q instanceof AH4)return new wC("MISSING_INDEX",Object.assign({},Y,{objectStore:Q.objectStore,index:Q.index}));if(Q.name==="InvalidStateError"&&oGI.some(function(M){return Q.message.includes(M)}))return new wC("EXECUTE_TRANSACTION_ON_CLOSED_DB",
Y);
if(Q.name==="AbortError")return new wC("UNKNOWN_ABORT",Y,Q.message);Q.args=[Object.assign({},Y,{name:"IdbError",originalName:Q.name})];Q.level="WARNING";return Q};
Dn=function(Y,G,u){var O=xWj();return new wC("IDB_NOT_SUPPORTED",{context:{caller:Y,publicName:G,version:u,hasSucceededOnce:O==null?void 0:O.hasSucceededOnce}})};
RUY=function(Y){if(!Y)throw Error();throw Y;};
wCY=function(Y){return Y};
ZUA=function(Y,G,u){var O=function(){try{Y.removeEventListener("success",Q),Y.removeEventListener("error",M)}catch(t){}},Q=function(){G(Y.result);
O()},M=function(){u(Y.error);
O()};
Y.addEventListener("success",Q);Y.addEventListener("error",M)};
DWg=function(Y){return new Promise(function(G,u){ZUA(Y,G,u)})};
b9=function(Y){return new hd(new dC(function(G,u){ZUA(Y,G,u)}))};
hUj=function(Y,G){return new hd(new dC(function(u,O){var Q=function(){var M=Y?G(Y):null;M?M.then(function(t){Y=t;Q()},O):u()};
Q()}))};
dWA=function(Y,G,u){return new Promise(function(O,Q){var M=G!==void 0?self.indexedDB.open(Y,G):self.indexedDB.open(Y);var t=u.blocked,K=u.blocking,L=u.terminated,g=u.upgrade,P=u.closed,I,k=function(){I||(I=new S1(M.result,{closed:P}));return I};
M.addEventListener("upgradeneeded",function(n){try{if(n.newVersion===null)throw Error("Zc");if(M.transaction===null)throw Error("$c");n.dataLoss&&n.dataLoss!=="none"&&e1("IDB_DATA_CORRUPTED",{reason:n.dataLossMessage||"unknown reason",dbName:i9(Y)});var p=k(),W=new NN(M.transaction);g&&g(p,function(C){return n.oldVersion<C&&n.newVersion>=C},W);
W.done.catch(function(C){Q(C)})}catch(C){Q(C)}});
M.addEventListener("success",function(){var n=M.result;K&&n.addEventListener("versionchange",function(){K(k())});
n.addEventListener("close",function(){e1("IDB_UNEXPECTEDLY_CLOSED",{dbName:i9(Y),dbVersion:n.version});L&&L()});
O(k())});
M.addEventListener("error",function(){Q(M.error)});
t&&M.addEventListener("blocked",function(){t()})})};
bUT=function(Y,G,u){u=u===void 0?{}:u;return dWA(Y,G,u)};
_.Vl=function(Y,G){G=G===void 0?{}:G;var u,O,Q,M;return _.a(function(t){if(t.nextAddress==1)return _.i3(t,2),u=self.indexedDB.deleteDatabase(Y),O=G,(Q=O.blocked)&&u.addEventListener("blocked",function(){Q()}),t.yield(DWg(u),4);
if(t.nextAddress!=2)return _.j1(t,0);M=_.b3(t);throw iU1(M,Y,"",-1);})};
NKy=function(Y,G){var u;return _.a(function(O){if(O.nextAddress==1)return O.yield(_.l9(SGt,G),2);u=O.yieldResult;return O.return(_.BK(u,["databases"],{enableRetries:!0,mode:"readwrite"},function(Q){var M=Q.objectStore("databases");return M.get(Y.actualName).then(function(t){if(t?Y.actualName!==t.actualName||Y.publicName!==t.publicName||Y.userIdentifier!==t.userIdentifier:1)return M.put(Y).then(function(){})})}))})};
_.$g=function(Y,G){var u;return _.a(function(O){if(O.nextAddress==1)return Y?O.yield(_.l9(SGt,G),2):O.return();u=O.yieldResult;return O.return(u.delete("databases",Y))})};
_.jiT=function(Y,G){var u,O;return _.a(function(Q){return Q.nextAddress==1?(u=[],Q.yield(_.l9(SGt,G),2)):Q.nextAddress!=3?(O=Q.yieldResult,Q.yield(_.BK(O,["databases"],{enableRetries:!0,mode:"readonly"},function(M){u.length=0;return qN(M.objectStore("databases"),{},function(t){Y(t.getValue())&&u.push(t.getValue());return t.continue()})}),3)):Q.return(u)})};
V74=function(Y,G){return _.jiT(function(u){return u.publicName===Y&&u.userIdentifier!==void 0},G)};
$Wt=function(){var Y,G,u,O;return _.a(function(Q){switch(Q.nextAddress){case 1:Y=xWj();if((G=Y)==null?0:G.hasSucceededOnce)return Q.return(!0);var M;if(M=ls1)M=/WebKit\/([0-9]+)/.exec(_.zg()),M=!!(M&&parseInt(M[1],10)>=600);M&&(M=/WebKit\/([0-9]+)/.exec(_.zg()),M=!(M&&parseInt(M[1],10)>=602));if(M||s5)return Q.return(!1);try{if(u=self,!(u.indexedDB&&u.IDBIndex&&u.IDBKeyRange&&u.IDBObjectStore))return Q.return(!1)}catch(t){return Q.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Q.return(!1);
_.i3(Q,2);O={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return Q.yield(NKy(O,BKU),4);case 4:return Q.yield(_.$g("yt-idb-test-do-not-use",BKU),5);case 5:return Q.return(!0);case 2:return _.b3(Q),Q.return(!1)}})};
siA=function(){if(qGT!==void 0)return qGT;fsI=!0;return qGT=$Wt().then(function(Y){fsI=!1;var G;if((G=rHY())!=null&&G.hasLocalStorage()){var u;G={hasSucceededOnce:((u=xWj())==null?void 0:u.hasSucceededOnce)||Y};var O;(O=rHY())==null||O.set("LAST_RESULT_ENTRY_KEY",G,2592E3,!0)}return Y})};
cK=function(){return _.So("ytglobal.idbToken_")||void 0};
_.vK=function(){var Y=cK();return Y?Promise.resolve(Y):siA().then(function(G){(G=G?BKU:void 0)&&_.U5("ytglobal.idbToken_",G);return G})};
cHj=function(Y){if(!_.PK())throw Y=new wC("AUTH_INVALID",{dbName:Y}),_.yl(Y),Y;var G=_.Xw();return{actualName:Y+":"+G,publicName:Y,userIdentifier:G}};
UWt=function(Y,G,u,O){var Q,M,t,K,L,g;return _.a(function(P){switch(P.nextAddress){case 1:return M=(Q=Error().stack)!=null?Q:"",P.yield(_.vK(),2);case 2:t=P.yieldResult;if(!t)throw K=Dn("openDbImpl",Y,G),_.F("ytidb_async_stack_killswitch")||(K.stack=K.stack+"\n"+M.substring(M.indexOf("\n")+1)),_.yl(K),K;o2(Y);L=u?{actualName:Y,publicName:Y,userIdentifier:void 0}:cHj(Y);_.i3(P,3);return P.yield(NKy(L,t),5);case 5:return P.yield(bUT(L.actualName,G,O),6);case 6:return P.return(P.yieldResult);case 3:return g=
_.b3(P),_.i3(P,7),P.yield(_.$g(L.actualName,t),9);case 9:_.j1(P,8);break;case 7:_.b3(P);case 8:throw g;}})};
vGT=function(Y,G,u){u=u===void 0?{}:u;return UWt(Y,G,!1,u)};
JHA=function(Y,G,u){u=u===void 0?{}:u;return UWt(Y,G,!0,u)};
Yba=function(Y,G){G=G===void 0?{}:G;var u,O;return _.a(function(Q){if(Q.nextAddress==1)return Q.yield(_.vK(),2);if(Q.nextAddress!=3){u=Q.yieldResult;if(!u)return Q.return();o2(Y);O=cHj(Y);return Q.yield(_.Vl(O.actualName,G),3)}return Q.yield(_.$g(O.actualName,u),0)})};
GA4=function(Y,G,u){Y=Y.map(function(O){return _.a(function(Q){return Q.nextAddress==1?Q.yield(_.Vl(O.actualName,G),2):Q.yield(_.$g(O.actualName,u),0)})});
return Promise.all(Y).then(function(){})};
uEI=function(Y){var G=G===void 0?{}:G;var u,O;return _.a(function(Q){if(Q.nextAddress==1)return Q.yield(_.vK(),2);if(Q.nextAddress!=3){u=Q.yieldResult;if(!u)return Q.return();o2(Y);return Q.yield(V74(Y,u),3)}O=Q.yieldResult;return Q.yield(GA4(O,G,u),0)})};
OBA=function(Y,G){G=G===void 0?{}:G;var u;return _.a(function(O){if(O.nextAddress==1)return O.yield(_.vK(),2);if(O.nextAddress!=3){u=O.yieldResult;if(!u)return O.return();o2(Y);return O.yield(_.Vl(Y,G),3)}return O.yield(_.$g(Y,u),0)})};
Jd=function(Y,G){return Q$a(Y,G)};
HBI=function(Y){return _.l9(Mlt(),Y)};
E31=function(Y,G,u,O){var Q,M,t;return _.a(function(K){switch(K.nextAddress){case 1:return Q={config:Y,hashData:G,timestamp:O!==void 0?O:(0,_.GC)()},K.yield(HBI(u),2);case 2:return M=K.yieldResult,K.yield(M.clear("hotConfigStore"),3);case 3:return K.yield(M.put("hotConfigStore",Q),4);case 4:return t=K.yieldResult,K.return(t)}})};
tlt=function(Y,G,u,O,Q){var M,t,K;return _.a(function(L){switch(L.nextAddress){case 1:return M={config:Y,hashData:G,configData:u,timestamp:Q!==void 0?Q:(0,_.GC)()},L.yield(HBI(O),2);case 2:return t=L.yieldResult,L.yield(t.clear("coldConfigStore"),3);case 3:return L.yield(t.put("coldConfigStore",M),4);case 4:return K=L.yieldResult,L.return(K)}})};
KwI=function(Y){var G,u;return _.a(function(O){return O.nextAddress==1?O.yield(HBI(Y),2):O.nextAddress!=3?(G=O.yieldResult,u=void 0,O.yield(_.BK(G,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(Q){return _.uB(Q.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(M){u=M.getValue()})}),3)):O.return(u)})};
ab4=function(Y){var G,u;return _.a(function(O){return O.nextAddress==1?O.yield(HBI(Y),2):O.nextAddress!=3?(G=O.yieldResult,u=void 0,O.yield(_.BK(G,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(Q){return _.uB(Q.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(M){u=M.getValue()})}),3)):O.return(u)})};
TGt=function(){return _.a(function(Y){return Y.yield(uEI("ytGcfConfig"),0)})};
Lwu=function(){return"INNERTUBE_API_KEY"in _.wc&&"INNERTUBE_API_VERSION"in _.wc};
_.O0=function(){return{innertubeApiKey:_.DE("INNERTUBE_API_KEY"),innertubeApiVersion:_.DE("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.DE("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.DE("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.DE("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.DE("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.DE("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.DE("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.DE("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.hy("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.hy("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.DE("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.FwT=function(Y){var G={client:{hl:Y.innertubeContextHostLanguage,gl:Y.innertubeContextGeoLocation,clientName:Y.innertubeContextClientName,clientVersion:Y.innertubeContextClientVersion,configInfo:Y.innertubeContextClientConfigInfo}};navigator.userAgent&&(G.client.userAgent=String(navigator.userAgent));var u=_.OI.devicePixelRatio;u&&u!=1&&(G.client.screenDensityFloat=String(u));u=w2a();u!==""&&(G.client.experimentsToken=u);u=ZQ1();u.length>0&&(G.request={internalExperimentFlags:u});g3T(Y,void 0,G);
Xm1(void 0,G);P01(void 0,G);Ib1(Y,void 0,G);kAA(void 0,G);_.F("start_client_gcf")&&n3a(void 0,G);_.DE("DELEGATED_SESSION_ID")&&!_.F("pageid_as_header_web")&&(G.user={onBehalfOfUser:_.DE("DELEGATED_SESSION_ID")});!_.F("fill_delegate_context_in_gel_killswitch")&&(Y=_.DE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(G.user=Object.assign({},G.user,{serializedDelegationContext:Y}));Y=_.DE("INNERTUBE_CONTEXT");var O;if(_.F("enable_persistent_device_token")&&(Y==null?0:(O=Y.client)==null?0:O.rolloutToken)){var Q;
G.client.rolloutToken=Y==null?void 0:(Q=Y.client)==null?void 0:Q.rolloutToken}O=Object;Q=O.assign;Y=G.client;u={};for(var M=_.E(Object.entries(_.Vg(_.DE("DEVICE","")))),t=M.next();!t.done;t=M.next()){var K=_.E(t.value);t=K.next().value;K=K.next().value;t==="cbrand"?u.deviceMake=K:t==="cmodel"?u.deviceModel=K:t==="cbr"?u.browserName=K:t==="cbrver"?u.browserVersion=K:t==="cos"?u.osName=K:t==="cosver"?u.osVersion=K:t==="cplatform"&&(u.platform=K)}G.client=Q.call(O,Y,u);return G};
g3T=function(Y,G,u){Y=Y.innertubeContextClientName;if(Y==="WEB"||Y==="MWEB"||Y===1||Y===2)if(G){u=_.QH(G,pmt,96)||new pmt;var O=zmA();O=Object.keys(m7U).indexOf(O);O=O===-1?null:O;O!==null&&_.MC(u,3,O);_.Rh(G,96,u)}else u&&(u.client.mainAppWebInfo=(O=u.client.mainAppWebInfo)!=null?O:{},u.client.mainAppWebInfo.webDisplayMode=zmA())};
Xm1=function(Y,G){var u=_.So("yt.embedded_player.embed_url");u&&(Y?(G=_.QH(Y,Wwt,7)||new Wwt,_.E_(G,4,u),_.Rh(Y,7,G)):G&&(G.thirdParty={embedUrl:u}))};
P01=function(Y,G){var u;if(_.F("web_log_memory_total_kbytes")&&((u=_.OI.navigator)==null?0:u.deviceMemory)){var O;u=(O=_.OI.navigator)==null?void 0:O.deviceMemory;Y?_.Hj(Y,95,zx(u*1E6)):G&&(G.client.memoryTotalKbytes=""+u*1E6)}};
Ib1=function(Y,G,u){if(Y.appInstallData)if(G){var O;u=(O=_.QH(G,E0,62))!=null?O:new E0;_.E_(u,6,Y.appInstallData);_.Rh(G,62,u)}else u&&(u.client.configInfo=u.client.configInfo||{},u.client.configInfo.appInstallData=Y.appInstallData)};
kAA=function(Y,G){var u=_.IsA();u&&(Y?_.MC(Y,61,rhA[u]):G&&(G.client.connectionType=u));_.F("web_log_effective_connection_type")&&(u=nG4())&&(Y?_.MC(Y,94,x71[u]):G&&(G.client.effectiveConnectionType=u))};
_.yhY=function(Y,G,u){u=u===void 0?{}:u;var O={};_.DE("EOM_VISITOR_DATA")?O={"X-Goog-EOM-Visitor-Id":_.DE("EOM_VISITOR_DATA")}:O={"X-Goog-Visitor-Id":u.visitorData||_.DE("VISITOR_DATA","")};if(G&&G.includes("www.youtube-nocookie.com"))return O;G=u.authorization||_.DE("AUTHORIZATION");G||(Y?G="Bearer "+_.So("gapi.auth.getToken")().access_token:(fbI.instance||(fbI.instance=new fbI),Y=C0y(),_.F("pageid_as_header_web")||delete Y["X-Goog-PageId"],O=Object.assign({},O,Y)));G&&(O.Authorization=G);return O};
n3a=function(Y,G){var u=em4();if(u){var O=u.coldConfigData,Q=u.coldHashData;u=u.hotHashData;if(Y){var M;G=(M=_.QH(Y,E0,62))!=null?M:new E0;O=_.E_(G,1,O);_.E_(O,3,Q).setHotHashData(u);_.Rh(Y,62,G)}else G&&(G.client.configInfo=G.client.configInfo||{},O&&(G.client.configInfo.coldConfigData=O),Q&&(G.client.configInfo.coldHashData=Q),u&&(G.client.configInfo.hotHashData=u))}};
tN=function(Y){for(var G=Y.length;--G>=0;)Y[G]=0};
Ahj=function(Y,G,u,O,Q){this.static_tree=Y;this.extra_bits=G;this.extra_base=u;this.elems=O;this.max_length=Q;this.has_stree=Y&&Y.length};
o3g=function(Y,G){this.dyn_tree=Y;this.max_code=0;this.stat_desc=G};
Kq=function(Y,G){Y.pending_buf[Y.pending++]=G&255;Y.pending_buf[Y.pending++]=G>>>8&255};
aw=function(Y,G,u){Y.bi_valid>16-u?(Y.bi_buf|=G<<Y.bi_valid&65535,Kq(Y,Y.bi_buf),Y.bi_buf=G>>16-Y.bi_valid,Y.bi_valid+=u-16):(Y.bi_buf|=G<<Y.bi_valid&65535,Y.bi_valid+=u)};
TC=function(Y,G,u){aw(Y,u[G*2],u[G*2+1])};
iB4=function(Y,G){var u=0;do u|=Y&1,Y>>>=1,u<<=1;while(--G>0);return u>>>1};
Rmj=function(Y,G,u){var O=Array(16),Q=0,M;for(M=1;M<=15;M++)O[M]=Q=Q+u[M-1]<<1;for(u=0;u<=G;u++)Q=Y[u*2+1],Q!==0&&(Y[u*2]=iB4(O[Q]++,Q))};
wmA=function(Y){var G;for(G=0;G<286;G++)Y.dyn_ltree[G*2]=0;for(G=0;G<30;G++)Y.dyn_dtree[G*2]=0;for(G=0;G<19;G++)Y.bl_tree[G*2]=0;Y.dyn_ltree[512]=1;Y.opt_len=Y.static_len=0;Y.last_lit=Y.matches=0};
ZBj=function(Y){Y.bi_valid>8?Kq(Y,Y.bi_buf):Y.bi_valid>0&&(Y.pending_buf[Y.pending++]=Y.bi_buf);Y.bi_buf=0;Y.bi_valid=0};
D7j=function(Y,G,u){ZBj(Y);Kq(Y,u);Kq(Y,~u);Lq.arraySet(Y.pending_buf,Y.window,G,u,Y.pending);Y.pending+=u};
hm4=function(Y,G,u,O){var Q=G*2,M=u*2;return Y[Q]<Y[M]||Y[Q]===Y[M]&&O[G]<=O[u]};
d7y=function(Y,G,u){for(var O=Y.heap[u],Q=u<<1;Q<=Y.heap_len;){Q<Y.heap_len&&hm4(G,Y.heap[Q+1],Y.heap[Q],Y.depth)&&Q++;if(hm4(G,O,Y.heap[Q],Y.depth))break;Y.heap[u]=Y.heap[Q];u=Q;Q<<=1}Y.heap[u]=O};
VlT=function(Y,G,u){var O=0;if(Y.last_lit!==0){do{var Q=Y.pending_buf[Y.d_buf+O*2]<<8|Y.pending_buf[Y.d_buf+O*2+1];var M=Y.pending_buf[Y.l_buf+O];O++;if(Q===0)TC(Y,M,G);else{var t=go[M];TC(Y,t+256+1,G);var K=bBy[t];K!==0&&(M-=Sbt[t],aw(Y,M,K));Q--;t=Q<256?Xn[Q]:Xn[256+(Q>>>7)];TC(Y,t,u);K=NGI[t];K!==0&&(Q-=j$y[t],aw(Y,Q,K))}}while(O<Y.last_lit)}TC(Y,256,G)};
lb4=function(Y,G){var u=G.dyn_tree,O=G.stat_desc.static_tree,Q=G.stat_desc.has_stree,M=G.stat_desc.elems,t,K=-1;Y.heap_len=0;Y.heap_max=573;for(t=0;t<M;t++)u[t*2]!==0?(Y.heap[++Y.heap_len]=K=t,Y.depth[t]=0):u[t*2+1]=0;for(;Y.heap_len<2;){var L=Y.heap[++Y.heap_len]=K<2?++K:0;u[L*2]=1;Y.depth[L]=0;Y.opt_len--;Q&&(Y.static_len-=O[L*2+1])}G.max_code=K;for(t=Y.heap_len>>1;t>=1;t--)d7y(Y,u,t);L=M;do t=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],d7y(Y,u,1),O=Y.heap[1],Y.heap[--Y.heap_max]=t,Y.heap[--Y.heap_max]=
O,u[L*2]=u[t*2]+u[O*2],Y.depth[L]=(Y.depth[t]>=Y.depth[O]?Y.depth[t]:Y.depth[O])+1,u[t*2+1]=u[O*2+1]=L,Y.heap[1]=L++,d7y(Y,u,1);while(Y.heap_len>=2);Y.heap[--Y.heap_max]=Y.heap[1];t=G.dyn_tree;L=G.max_code;O=G.stat_desc.static_tree;Q=G.stat_desc.has_stree;M=G.stat_desc.extra_bits;var g=G.stat_desc.extra_base,P=G.stat_desc.max_length,I,k=0;for(I=0;I<=15;I++)Y.bl_count[I]=0;t[Y.heap[Y.heap_max]*2+1]=0;for(G=Y.heap_max+1;G<573;G++){var n=Y.heap[G];I=t[t[n*2+1]*2+1]+1;I>P&&(I=P,k++);t[n*2+1]=I;if(!(n>
L)){Y.bl_count[I]++;var p=0;n>=g&&(p=M[n-g]);var W=t[n*2];Y.opt_len+=W*(I+p);Q&&(Y.static_len+=W*(O[n*2+1]+p))}}if(k!==0){do{for(I=P-1;Y.bl_count[I]===0;)I--;Y.bl_count[I]--;Y.bl_count[I+1]+=2;Y.bl_count[P]--;k-=2}while(k>0);for(I=P;I!==0;I--)for(n=Y.bl_count[I];n!==0;)O=Y.heap[--G],O>L||(t[O*2+1]!==I&&(Y.opt_len+=(I-t[O*2+1])*t[O*2],t[O*2+1]=I),n--)}Rmj(u,K,Y.bl_count)};
BGA=function(Y,G,u){var O,Q=-1,M=G[1],t=0,K=7,L=4;M===0&&(K=138,L=3);G[(u+1)*2+1]=65535;for(O=0;O<=u;O++){var g=M;M=G[(O+1)*2+1];++t<K&&g===M||(t<L?Y.bl_tree[g*2]+=t:g!==0?(g!==Q&&Y.bl_tree[g*2]++,Y.bl_tree[32]++):t<=10?Y.bl_tree[34]++:Y.bl_tree[36]++,t=0,Q=g,M===0?(K=138,L=3):g===M?(K=6,L=3):(K=7,L=4))}};
$7j=function(Y,G,u){var O,Q=-1,M=G[1],t=0,K=7,L=4;M===0&&(K=138,L=3);for(O=0;O<=u;O++){var g=M;M=G[(O+1)*2+1];if(!(++t<K&&g===M)){if(t<L){do TC(Y,g,Y.bl_tree);while(--t!==0)}else g!==0?(g!==Q&&(TC(Y,g,Y.bl_tree),t--),TC(Y,16,Y.bl_tree),aw(Y,t-3,2)):t<=10?(TC(Y,17,Y.bl_tree),aw(Y,t-3,3)):(TC(Y,18,Y.bl_tree),aw(Y,t-11,7));t=0;Q=g;M===0?(K=138,L=3):g===M?(K=6,L=3):(K=7,L=4)}}};
qbU=function(Y){var G=4093624447,u;for(u=0;u<=31;u++,G>>>=1)if(G&1&&Y.dyn_ltree[u*2]!==0)return 0;if(Y.dyn_ltree[18]!==0||Y.dyn_ltree[20]!==0||Y.dyn_ltree[26]!==0)return 1;for(u=32;u<256;u++)if(Y.dyn_ltree[u*2]!==0)return 1;return 0};
Pj=function(Y,G,u){Y.pending_buf[Y.d_buf+Y.last_lit*2]=G>>>8&255;Y.pending_buf[Y.d_buf+Y.last_lit*2+1]=G&255;Y.pending_buf[Y.l_buf+Y.last_lit]=u&255;Y.last_lit++;G===0?Y.dyn_ltree[u*2]++:(Y.matches++,G--,Y.dyn_ltree[(go[u]+256+1)*2]++,Y.dyn_dtree[(G<256?Xn[G]:Xn[256+(G>>>7)])*2]++);return Y.last_lit===Y.lit_bufsize-1};
kq=function(Y,G){Y.msg=Iw[G];return G};
nq=function(Y){for(var G=Y.length;--G>=0;)Y[G]=0};
Fn=function(Y){var G=Y.state,u=G.pending;u>Y.avail_out&&(u=Y.avail_out);u!==0&&(Lq.arraySet(Y.output,G.pending_buf,G.pending_out,u,Y.next_out),Y.next_out+=u,G.pending_out+=u,Y.total_out+=u,Y.avail_out-=u,G.pending-=u,G.pending===0&&(G.pending_out=0))};
mT=function(Y,G){var u=Y.block_start>=0?Y.block_start:-1,O=Y.strstart-Y.block_start,Q=0;if(Y.level>0){Y.strm.data_type===2&&(Y.strm.data_type=qbU(Y));lb4(Y,Y.l_desc);lb4(Y,Y.d_desc);BGA(Y,Y.dyn_ltree,Y.l_desc.max_code);BGA(Y,Y.dyn_dtree,Y.d_desc.max_code);lb4(Y,Y.bl_desc);for(Q=18;Q>=3&&Y.bl_tree[s$a[Q]*2+1]===0;Q--);Y.opt_len+=3*(Q+1)+5+5+4;var M=Y.opt_len+3+7>>>3;var t=Y.static_len+3+7>>>3;t<=M&&(M=t)}else M=t=O+5;if(O+4<=M&&u!==-1)aw(Y,G?1:0,3),D7j(Y,u,O);else if(Y.strategy===4||t===M)aw(Y,2+(G?
1:0),3),VlT(Y,pq,zC);else{aw(Y,4+(G?1:0),3);u=Y.l_desc.max_code+1;O=Y.d_desc.max_code+1;Q+=1;aw(Y,u-257,5);aw(Y,O-1,5);aw(Y,Q-4,4);for(M=0;M<Q;M++)aw(Y,Y.bl_tree[s$a[M]*2+1],3);$7j(Y,Y.dyn_ltree,u-1);$7j(Y,Y.dyn_dtree,O-1);VlT(Y,Y.dyn_ltree,Y.dyn_dtree)}wmA(Y);G&&ZBj(Y);Y.block_start=Y.strstart;Fn(Y.strm)};
Wj=function(Y,G){Y.pending_buf[Y.pending++]=G};
ro=function(Y,G){Y.pending_buf[Y.pending++]=G>>>8&255;Y.pending_buf[Y.pending++]=G&255};
chY=function(Y,G){var u=Y.max_chain_length,O=Y.strstart,Q=Y.prev_length,M=Y.nice_match,t=Y.strstart>Y.w_size-262?Y.strstart-(Y.w_size-262):0,K=Y.window,L=Y.w_mask,g=Y.prev,P=Y.strstart+258,I=K[O+Q-1],k=K[O+Q];Y.prev_length>=Y.good_match&&(u>>=2);M>Y.lookahead&&(M=Y.lookahead);do{var n=G;if(K[n+Q]===k&&K[n+Q-1]===I&&K[n]===K[O]&&K[++n]===K[O+1]){O+=2;for(n++;K[++O]===K[++n]&&K[++O]===K[++n]&&K[++O]===K[++n]&&K[++O]===K[++n]&&K[++O]===K[++n]&&K[++O]===K[++n]&&K[++O]===K[++n]&&K[++O]===K[++n]&&O<P;);
n=258-(P-O);O=P-258;if(n>Q){Y.match_start=G;Q=n;if(n>=M)break;I=K[O+Q-1];k=K[O+Q]}}}while((G=g[G&L])>t&&--u!==0);return Q<=Y.lookahead?Q:Y.lookahead};
fq=function(Y){var G=Y.w_size,u;do{var O=Y.window_size-Y.lookahead-Y.strstart;if(Y.strstart>=G+(G-262)){Lq.arraySet(Y.window,Y.window,G,G,0);Y.match_start-=G;Y.strstart-=G;Y.block_start-=G;var Q=u=Y.hash_size;do{var M=Y.head[--Q];Y.head[Q]=M>=G?M-G:0}while(--u);Q=u=G;do M=Y.prev[--Q],Y.prev[Q]=M>=G?M-G:0;while(--u);O+=G}if(Y.strm.avail_in===0)break;Q=Y.strm;u=Y.window;M=Y.strstart+Y.lookahead;var t=Q.avail_in;t>O&&(t=O);t===0?u=0:(Q.avail_in-=t,Lq.arraySet(u,Q.input,Q.next_in,t,M),Q.state.wrap===
1?Q.adler=U74(Q.adler,u,t,M):Q.state.wrap===2&&(Q.adler=xq(Q.adler,u,t,M)),Q.next_in+=t,Q.total_in+=t,u=t);Y.lookahead+=u;if(Y.lookahead+Y.insert>=3)for(O=Y.strstart-Y.insert,Y.ins_h=Y.window[O],Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[O+1])&Y.hash_mask;Y.insert&&!(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[O+3-1])&Y.hash_mask,Y.prev[O&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=O,O++,Y.insert--,Y.lookahead+Y.insert<3););}while(Y.lookahead<262&&Y.strm.avail_in!==0)};
v3Y=function(Y,G){for(var u;;){if(Y.lookahead<262){fq(Y);if(Y.lookahead<262&&G===0)return 1;if(Y.lookahead===0)break}u=0;Y.lookahead>=3&&(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+3-1])&Y.hash_mask,u=Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart);u!==0&&Y.strstart-u<=Y.w_size-262&&(Y.match_length=chY(Y,u));if(Y.match_length>=3)if(u=Pj(Y,Y.strstart-Y.match_start,Y.match_length-3),Y.lookahead-=Y.match_length,Y.match_length<=Y.max_lazy_match&&Y.lookahead>=3){Y.match_length--;
do Y.strstart++,Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+3-1])&Y.hash_mask,Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart;while(--Y.match_length!==0);Y.strstart++}else Y.strstart+=Y.match_length,Y.match_length=0,Y.ins_h=Y.window[Y.strstart],Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+1])&Y.hash_mask;else u=Pj(Y,0,Y.window[Y.strstart]),Y.lookahead--,Y.strstart++;if(u&&(mT(Y,!1),Y.strm.avail_out===0))return 1}Y.insert=Y.strstart<2?Y.strstart:2;return G===4?(mT(Y,
!0),Y.strm.avail_out===0?3:4):Y.last_lit&&(mT(Y,!1),Y.strm.avail_out===0)?1:2};
Cq=function(Y,G){for(var u,O;;){if(Y.lookahead<262){fq(Y);if(Y.lookahead<262&&G===0)return 1;if(Y.lookahead===0)break}u=0;Y.lookahead>=3&&(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+3-1])&Y.hash_mask,u=Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart);Y.prev_length=Y.match_length;Y.prev_match=Y.match_start;Y.match_length=2;u!==0&&Y.prev_length<Y.max_lazy_match&&Y.strstart-u<=Y.w_size-262&&(Y.match_length=chY(Y,u),Y.match_length<=5&&(Y.strategy===1||Y.match_length===3&&
Y.strstart-Y.match_start>4096)&&(Y.match_length=2));if(Y.prev_length>=3&&Y.match_length<=Y.prev_length){O=Y.strstart+Y.lookahead-3;u=Pj(Y,Y.strstart-1-Y.prev_match,Y.prev_length-3);Y.lookahead-=Y.prev_length-1;Y.prev_length-=2;do++Y.strstart<=O&&(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+3-1])&Y.hash_mask,Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart);while(--Y.prev_length!==0);Y.match_available=0;Y.match_length=2;Y.strstart++;if(u&&(mT(Y,!1),Y.strm.avail_out===0))return 1}else if(Y.match_available){if((u=
Pj(Y,0,Y.window[Y.strstart-1]))&&mT(Y,!1),Y.strstart++,Y.lookahead--,Y.strm.avail_out===0)return 1}else Y.match_available=1,Y.strstart++,Y.lookahead--}Y.match_available&&(Pj(Y,0,Y.window[Y.strstart-1]),Y.match_available=0);Y.insert=Y.strstart<2?Y.strstart:2;return G===4?(mT(Y,!0),Y.strm.avail_out===0?3:4):Y.last_lit&&(mT(Y,!1),Y.strm.avail_out===0)?1:2};
JhA=function(Y,G){for(var u,O,Q,M=Y.window;;){if(Y.lookahead<=258){fq(Y);if(Y.lookahead<=258&&G===0)return 1;if(Y.lookahead===0)break}Y.match_length=0;if(Y.lookahead>=3&&Y.strstart>0&&(O=Y.strstart-1,u=M[O],u===M[++O]&&u===M[++O]&&u===M[++O])){for(Q=Y.strstart+258;u===M[++O]&&u===M[++O]&&u===M[++O]&&u===M[++O]&&u===M[++O]&&u===M[++O]&&u===M[++O]&&u===M[++O]&&O<Q;);Y.match_length=258-(Q-O);Y.match_length>Y.lookahead&&(Y.match_length=Y.lookahead)}Y.match_length>=3?(u=Pj(Y,1,Y.match_length-3),Y.lookahead-=
Y.match_length,Y.strstart+=Y.match_length,Y.match_length=0):(u=Pj(Y,0,Y.window[Y.strstart]),Y.lookahead--,Y.strstart++);if(u&&(mT(Y,!1),Y.strm.avail_out===0))return 1}Y.insert=0;return G===4?(mT(Y,!0),Y.strm.avail_out===0?3:4):Y.last_lit&&(mT(Y,!1),Y.strm.avail_out===0)?1:2};
YxA=function(Y,G){for(var u;;){if(Y.lookahead===0&&(fq(Y),Y.lookahead===0)){if(G===0)return 1;break}Y.match_length=0;u=Pj(Y,0,Y.window[Y.strstart]);Y.lookahead--;Y.strstart++;if(u&&(mT(Y,!1),Y.strm.avail_out===0))return 1}Y.insert=0;return G===4?(mT(Y,!0),Y.strm.avail_out===0?3:4):Y.last_lit&&(mT(Y,!1),Y.strm.avail_out===0)?1:2};
yH=function(Y,G,u,O,Q){this.good_length=Y;this.max_lazy=G;this.nice_length=u;this.max_chain=O;this.func=Q};
GOg=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 Lq.Buf16(1146);this.dyn_dtree=new Lq.Buf16(122);this.bl_tree=new Lq.Buf16(78);nq(this.dyn_ltree);nq(this.dyn_dtree);nq(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Lq.Buf16(16);this.heap=new Lq.Buf16(573);nq(this.heap);this.heap_max=this.heap_len=0;this.depth=new Lq.Buf16(573);nq(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};
ufA=function(Y,G){if(!Y||!Y.state||G>5||G<0)return Y?kq(Y,-2):-2;var u=Y.state;if(!Y.output||!Y.input&&Y.avail_in!==0||u.status===666&&G!==4)return kq(Y,Y.avail_out===0?-5:-2);u.strm=Y;var O=u.last_flush;u.last_flush=G;if(u.status===42)if(u.wrap===2)Y.adler=0,Wj(u,31),Wj(u,139),Wj(u,8),u.gzhead?(Wj(u,(u.gzhead.text?1:0)+(u.gzhead.hcrc?2:0)+(u.gzhead.extra?4:0)+(u.gzhead.name?8:0)+(u.gzhead.comment?16:0)),Wj(u,u.gzhead.time&255),Wj(u,u.gzhead.time>>8&255),Wj(u,u.gzhead.time>>16&255),Wj(u,u.gzhead.time>>
24&255),Wj(u,u.level===9?2:u.strategy>=2||u.level<2?4:0),Wj(u,u.gzhead.os&255),u.gzhead.extra&&u.gzhead.extra.length&&(Wj(u,u.gzhead.extra.length&255),Wj(u,u.gzhead.extra.length>>8&255)),u.gzhead.hcrc&&(Y.adler=xq(Y.adler,u.pending_buf,u.pending,0)),u.gzindex=0,u.status=69):(Wj(u,0),Wj(u,0),Wj(u,0),Wj(u,0),Wj(u,0),Wj(u,u.level===9?2:u.strategy>=2||u.level<2?4:0),Wj(u,3),u.status=113);else{var Q=8+(u.w_bits-8<<4)<<8;Q|=(u.strategy>=2||u.level<2?0:u.level<6?1:u.level===6?2:3)<<6;u.strstart!==0&&(Q|=
32);u.status=113;ro(u,Q+(31-Q%31));u.strstart!==0&&(ro(u,Y.adler>>>16),ro(u,Y.adler&65535));Y.adler=1}if(u.status===69)if(u.gzhead.extra){for(Q=u.pending;u.gzindex<(u.gzhead.extra.length&65535)&&(u.pending!==u.pending_buf_size||(u.gzhead.hcrc&&u.pending>Q&&(Y.adler=xq(Y.adler,u.pending_buf,u.pending-Q,Q)),Fn(Y),Q=u.pending,u.pending!==u.pending_buf_size));)Wj(u,u.gzhead.extra[u.gzindex]&255),u.gzindex++;u.gzhead.hcrc&&u.pending>Q&&(Y.adler=xq(Y.adler,u.pending_buf,u.pending-Q,Q));u.gzindex===u.gzhead.extra.length&&
(u.gzindex=0,u.status=73)}else u.status=73;if(u.status===73)if(u.gzhead.name){Q=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>Q&&(Y.adler=xq(Y.adler,u.pending_buf,u.pending-Q,Q)),Fn(Y),Q=u.pending,u.pending===u.pending_buf_size)){var M=1;break}M=u.gzindex<u.gzhead.name.length?u.gzhead.name.charCodeAt(u.gzindex++)&255:0;Wj(u,M)}while(M!==0);u.gzhead.hcrc&&u.pending>Q&&(Y.adler=xq(Y.adler,u.pending_buf,u.pending-Q,Q));M===0&&(u.gzindex=0,u.status=91)}else u.status=91;if(u.status===
91)if(u.gzhead.comment){Q=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>Q&&(Y.adler=xq(Y.adler,u.pending_buf,u.pending-Q,Q)),Fn(Y),Q=u.pending,u.pending===u.pending_buf_size)){M=1;break}M=u.gzindex<u.gzhead.comment.length?u.gzhead.comment.charCodeAt(u.gzindex++)&255:0;Wj(u,M)}while(M!==0);u.gzhead.hcrc&&u.pending>Q&&(Y.adler=xq(Y.adler,u.pending_buf,u.pending-Q,Q));M===0&&(u.status=103)}else u.status=103;u.status===103&&(u.gzhead.hcrc?(u.pending+2>u.pending_buf_size&&Fn(Y),
u.pending+2<=u.pending_buf_size&&(Wj(u,Y.adler&255),Wj(u,Y.adler>>8&255),Y.adler=0,u.status=113)):u.status=113);if(u.pending!==0){if(Fn(Y),Y.avail_out===0)return u.last_flush=-1,0}else if(Y.avail_in===0&&(G<<1)-(G>4?9:0)<=(O<<1)-(O>4?9:0)&&G!==4)return kq(Y,-5);if(u.status===666&&Y.avail_in!==0)return kq(Y,-5);if(Y.avail_in!==0||u.lookahead!==0||G!==0&&u.status!==666){O=u.strategy===2?YxA(u,G):u.strategy===3?JhA(u,G):eV[u.level].func(u,G);if(O===3||O===4)u.status=666;if(O===1||O===3)return Y.avail_out===
0&&(u.last_flush=-1),0;if(O===2&&(G===1?(aw(u,2,3),TC(u,256,pq),u.bi_valid===16?(Kq(u,u.bi_buf),u.bi_buf=0,u.bi_valid=0):u.bi_valid>=8&&(u.pending_buf[u.pending++]=u.bi_buf&255,u.bi_buf>>=8,u.bi_valid-=8)):G!==5&&(aw(u,0,3),D7j(u,0,0),G===3&&(nq(u.head),u.lookahead===0&&(u.strstart=0,u.block_start=0,u.insert=0))),Fn(Y),Y.avail_out===0))return u.last_flush=-1,0}if(G!==4)return 0;if(u.wrap<=0)return 1;u.wrap===2?(Wj(u,Y.adler&255),Wj(u,Y.adler>>8&255),Wj(u,Y.adler>>16&255),Wj(u,Y.adler>>24&255),Wj(u,
Y.total_in&255),Wj(u,Y.total_in>>8&255),Wj(u,Y.total_in>>16&255),Wj(u,Y.total_in>>24&255)):(ro(u,Y.adler>>>16),ro(u,Y.adler&65535));Fn(Y);u.wrap>0&&(u.wrap=-u.wrap);return u.pending!==0?0:1};
ODy=function(Y){if(!(this instanceof ODy))return new ODy(Y);Y=this.options=Lq.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},Y||{});Y.raw&&Y.windowBits>0?Y.windowBits=-Y.windowBits:Y.gzip&&Y.windowBits>0&&Y.windowBits<16&&(Y.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new Q4A;this.strm.avail_out=0;var G=this.strm;var u=Y.level,O=Y.method,Q=Y.windowBits,M=Y.memLevel,t=Y.strategy;if(G){var K=1;u===-1&&(u=6);Q<0?(K=0,Q=-Q):Q>15&&
(K=2,Q-=16);if(M<1||M>9||O!==8||Q<8||Q>15||u<0||u>9||t<0||t>4)G=kq(G,-2);else{Q===8&&(Q=9);var L=new GOg;G.state=L;L.strm=G;L.wrap=K;L.gzhead=null;L.w_bits=Q;L.w_size=1<<L.w_bits;L.w_mask=L.w_size-1;L.hash_bits=M+7;L.hash_size=1<<L.hash_bits;L.hash_mask=L.hash_size-1;L.hash_shift=~~((L.hash_bits+3-1)/3);L.window=new Lq.Buf8(L.w_size*2);L.head=new Lq.Buf16(L.hash_size);L.prev=new Lq.Buf16(L.w_size);L.lit_bufsize=1<<M+6;L.pending_buf_size=L.lit_bufsize*4;L.pending_buf=new Lq.Buf8(L.pending_buf_size);
L.d_buf=L.lit_bufsize;L.l_buf=3*L.lit_bufsize;L.level=u;L.strategy=t;L.method=O;if(G&&G.state){G.total_in=G.total_out=0;G.data_type=2;u=G.state;u.pending=0;u.pending_out=0;u.wrap<0&&(u.wrap=-u.wrap);u.status=u.wrap?42:113;G.adler=u.wrap===2?0:1;u.last_flush=0;if(!MNj){O=Array(16);for(M=t=0;M<28;M++)for(Sbt[M]=t,Q=0;Q<1<<bBy[M];Q++)go[t++]=M;go[t-1]=M;for(M=t=0;M<16;M++)for(j$y[M]=t,Q=0;Q<1<<NGI[M];Q++)Xn[t++]=M;for(t>>=7;M<30;M++)for(j$y[M]=t<<7,Q=0;Q<1<<NGI[M]-7;Q++)Xn[256+t++]=M;for(Q=0;Q<=15;Q++)O[Q]=
0;for(Q=0;Q<=143;)pq[Q*2+1]=8,Q++,O[8]++;for(;Q<=255;)pq[Q*2+1]=9,Q++,O[9]++;for(;Q<=279;)pq[Q*2+1]=7,Q++,O[7]++;for(;Q<=287;)pq[Q*2+1]=8,Q++,O[8]++;Rmj(pq,287,O);for(Q=0;Q<30;Q++)zC[Q*2+1]=5,zC[Q*2]=iB4(Q,5);HDt=new Ahj(pq,bBy,257,286,15);Eoj=new Ahj(zC,NGI,0,30,15);tNj=new Ahj([],KOu,0,19,7);MNj=!0}u.l_desc=new o3g(u.dyn_ltree,HDt);u.d_desc=new o3g(u.dyn_dtree,Eoj);u.bl_desc=new o3g(u.bl_tree,tNj);u.bi_buf=0;u.bi_valid=0;wmA(u);u=0}else u=kq(G,-2);u===0&&(G=G.state,G.window_size=2*G.w_size,nq(G.head),
G.max_lazy_match=eV[G.level].max_lazy,G.good_match=eV[G.level].good_length,G.nice_match=eV[G.level].nice_length,G.max_chain_length=eV[G.level].max_chain,G.strstart=0,G.block_start=0,G.lookahead=0,G.insert=0,G.match_length=G.prev_length=2,G.match_available=0,G.ins_h=0);G=u}}else G=-2;if(G!==0)throw Error(Iw[G]);Y.header&&(G=this.strm)&&G.state&&G.state.wrap===2&&(G.state.gzhead=Y.header);if(Y.dictionary){var g;typeof Y.dictionary==="string"?g=aSA(Y.dictionary):TBy.call(Y.dictionary)==="[object ArrayBuffer]"?
g=new Uint8Array(Y.dictionary):g=Y.dictionary;Y=this.strm;M=g;t=M.length;if(Y&&Y.state)if(g=Y.state,G=g.wrap,G===2||G===1&&g.status!==42||g.lookahead)G=-2;else{G===1&&(Y.adler=U74(Y.adler,M,t,0));g.wrap=0;t>=g.w_size&&(G===0&&(nq(g.head),g.strstart=0,g.block_start=0,g.insert=0),u=new Lq.Buf8(g.w_size),Lq.arraySet(u,M,t-g.w_size,g.w_size,0),M=u,t=g.w_size);u=Y.avail_in;O=Y.next_in;Q=Y.input;Y.avail_in=t;Y.next_in=0;Y.input=M;for(fq(g);g.lookahead>=3;){M=g.strstart;t=g.lookahead-2;do g.ins_h=(g.ins_h<<
g.hash_shift^g.window[M+3-1])&g.hash_mask,g.prev[M&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=M,M++;while(--t);g.strstart=M;g.lookahead=2;fq(g)}g.strstart+=g.lookahead;g.block_start=g.strstart;g.insert=g.lookahead;g.lookahead=0;g.match_length=g.prev_length=2;g.match_available=0;Y.next_in=O;Y.input=Q;Y.avail_in=u;g.wrap=G;G=0}else G=-2;if(G!==0)throw Error(Iw[G]);this._dict_set=!0}};
LOT=function(Y,G){G=G||{};G.gzip=!0;G=new ODy(G);G.push(Y,!0);if(G.err)throw G.msg||Iw[G.err];return G.result};
XnU=function(Y,G){var u=got();u&&u.publish.call(u,Y.toString(),Y,G)};
FO1=function(Y,G,u){var O=got();if(!O)return 0;var Q=O.subscribe(Y.toString(),function(M,t){var K=_.So("ytPubsub2Pubsub2SkipSubKey");K&&K==Q||(K=function(){if(PMj[Q])try{if(t&&Y instanceof ISa&&Y!=M)try{var L=Y.dataClass,g=t;if(!g.args||!g.version)throw Error("bd");try{if(!L.version_){var P=new L;L.version_=P.version}var I=L.version_}catch(k){}if(!I||g.version!=I)throw Error("cd");try{t=Reflect.construct(L,_.Vj(g.args))}catch(k){throw k.message="yt.pubsub2.Data.deserialize(): "+k.message,k;}}catch(k){throw k.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+Y.toString()+": "+k.message,k;}G.call(u||window,t)}catch(k){_.dc(k)}},kOj[Y.toString()]?_.So("yt.scheduler.instance")?_.AN.addLowPriorityJob(K):_.MN(K,0):K())});
PMj[Q]=!0;noA[Y.toString()]||(noA[Y.toString()]=[]);noA[Y.toString()].push(Q);return Q};
WOA=function(){var Y=pny,G=FO1(zYY,function(u){Y.apply(void 0,arguments);mbA(G)});
return G};
mbA=function(Y){var G=got();G&&(typeof Y==="number"&&(Y=[Y]),_.jo(Y,function(u){G.unsubscribeByKey(u);delete PMj[u]}))};
got=function(){return _.So("ytPubsub2Pubsub2Instance")};
rjj=function(Y,G,u){u=u===void 0?{sampleRate:.1}:u;Math.random()<Math.min(.02,u.sampleRate/100)&&XnU("meta_logging_csi_event",{timerName:Y,timelineData:G})};
_.xbj=function(Y){return Y?(Y=Y.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Lb(Y):null:null};
_.ow=function(Y){return Y?(Y=Y.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.dT(Y):null:null};
CMy=function(){fSt||(fSt=_.ow(_.DE("WORKER_SERIALIZATION_URL")));return fSt||void 0};
_.eYj=function(){var Y=CMy();yjj||Y===void 0||(yjj=Zbt(Y));return yjj};
_.AjA=function(){return typeof Worker==="function"&&CMy()?!0:!1};
_.wna=function(){if(_.AjA()&&!ooy){var Y=function(u){u=u.data;if(u.op==="gzippedGelBatch"){var O=iD4.get(u.key);O&&(RYI(u.gzippedBatch,O.latencyPayload,O.url,O.options,O.sendFn),iD4.delete(u.key))}},G=_.eYj();
G&&(G.addEventListener("message",Y),G.onerror=function(){iD4.clear()},ooy=!0)}};
Sxj=function(Y,G,u,O,Q){Q=Q===void 0?!1:Q;var M={startTime:(0,_.GC)(),ticks:{},infos:{}};if(iB)try{var t=ZDA(G);if(t!=null&&(t>Dbj||t<hYu))O(Y,u);else{if(_.F("gzip_gel_with_worker")){ooy||_.wna();var K=_.eYj();if(K&&!Q){iD4.set(db4,{latencyPayload:M,url:Y,options:u,sendFn:O});K.postMessage({op:"gelBatchToGzip",serializedBatch:G,key:db4});db4++;return}}var L=LOT(bDU(G));RYI(L,M,Y,u,O)}}catch(g){_.N3(g),O(Y,u)}else O(Y,u)};
RYI=function(Y,G,u,O,Q){var M=(0,_.GC)();G.ticks.gelc=M;Rw++;_.F("disable_compression_due_to_performance_degredation")&&M-G.startTime>=NBt&&(j4u++,iB=!1);VNu(G);O.headers||(O.headers={});O.headers["Content-Encoding"]="gzip";O.postBody=Y;O.postParams=void 0;Q(u,O)};
BB1=function(Y){var G=G===void 0?!1:G;var u=u===void 0?!1:u;var O=(0,_.GC)(),Q={startTime:O,ticks:{},infos:{}},M=G?_.So("yt.logging.gzipForFetch",!1):!0;if(iB&&M){if(!Y.body)return Y;try{var t=u?Y.body:typeof Y.body==="string"?Y.body:JSON.stringify(Y.body);M=t;if(!u&&typeof t==="string"){var K=ZDA(t);if(K!=null&&(K>Dbj||K<hYu))return Y;u=G?{level:1}:void 0;M=LOT(bDU(t),u);var L=(0,_.GC)();Q.ticks.gelc=L;if(G){Rw++;if((_.F("disable_compression_due_to_performance_degredation")||_.F("disable_compression_due_to_performance_degradation_lr"))&&
L-O>=NBt)if(j4u++,_.F("abandon_compression_after_N_slow_zips_lr")){G=j4u/Rw;var g=lSY/_.Jy("compression_disable_point");Rw>0&&Rw%_.Jy("compression_disable_point")===0&&G>=g&&(iB=!1)}else iB=!1;VNu(Q)}}Y.headers=Object.assign({},{"Content-Encoding":"gzip"},Y.headers||{});Y.body=M;return Y}catch(P){return _.N3(P),Y}}else return Y};
ZDA=function(Y){try{return(new Blob(Y.split(""))).size}catch(G){return _.N3(G),null}};
VNu=function(Y){_.F("gel_compression_csi_killswitch")||!_.F("log_gel_compression_latency")&&!_.F("log_gel_compression_latency_lr")||rjj("gel_compression",Y,{sampleRate:.1})};
$bu=function(){this.blockSize=-1};
Za=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var Y=1;Y<this.blockSize;++Y)this.pad_[Y]=0;this.total_=this.inbuf_=0;this.reset()};
s41=function(Y){Y=Object.assign({},Y);delete Y.Authorization;var G=_.qxt();if(G){var u=new Za;u.update(_.DE("INNERTUBE_API_KEY"));u.update(G);Y.hash=_.vu(u.digest(),3)}return Y};
hN=function(){cjy||(cjy=new _.Da("yt.innertube"));return cjy};
Ub4=function(Y,G,u,O){if(O)return null;O=hN().get("nextId",!0)||1;var Q=hN().get("requests",!0)||{};Q[O]={method:Y,request:G,authState:s41(u),requestTime:Math.round((0,_.GC)())};hN().set("nextId",O+1,86400,!0);hN().set("requests",Q,86400,!0);return O};
voj=function(Y){var G=hN().get("requests",!0)||{};delete G[Y];hN().set("requests",G,86400,!0)};
Y3U=function(Y){var G=hN().get("requests",!0);if(G){for(var u in G){var O=G[u];if(!(Math.round((0,_.GC)())-O.requestTime<6E4)){var Q=O.authState,M=s41(_.yhY(!1));_.gX.equals(Q,M)&&(Q=O.request,"requestTimeMs"in Q&&(Q.requestTimeMs=Math.round((0,_.GC)())),Jja(Y,O.method,Q,{}));delete G[u]}}hN().set("requests",G,86400,!0)}};
GUt=function(Y){var G;return(Y=Y==null?void 0:(G=Y.error)==null?void 0:G.code)&&Y>=400&&Y<=599?!1:!0};
uS1=function(Y){var G;Y=Y==null?void 0:(G=Y.error)==null?void 0:G.code;return!(Y!==400&&Y!==415)};
QD4=function(){if(Odt)return Odt();var Y={};Odt=Jd("LogsDatabaseV2",{objectStores:(Y.LogsRequestsStore={addedAtVersion:2},Y),shared:!1,upgrade:function(G,u,O){u(2)&&bB(G,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});u(3);u(5)&&(O=O.objectStore("LogsRequestsStore"),O.JSC$11013_wrapped.indexNames.contains("newRequest")&&O.JSC$11013_wrapped.deleteIndex("newRequest"),SV(O,"newRequestV2",["status","interface","timestamp"]));u(7)&&G.JSC$10998_wrapped.objectStoreNames.contains("sapisid")&&G.JSC$10998_wrapped.deleteObjectStore("sapisid");
u(9)&&G.JSC$10998_wrapped.objectStoreNames.contains("SWHealthLog")&&G.JSC$10998_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Odt()};
NC=function(Y){return _.l9(QD4(),Y)};
Hdy=function(Y,G){var u,O,Q,M;return _.a(function(t){if(t.nextAddress==1)return u={startTime:(0,_.GC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},t.yield(NC(G),2);if(t.nextAddress!=3)return O=t.yieldResult,Q=Object.assign({},Y,{options:JSON.parse(JSON.stringify(Y.options)),interface:_.DE("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),t.yield(O.put("LogsRequestsStore",Q),3);M=t.yieldResult;u.ticks.tc=(0,_.GC)();MkA(u);return t.return(M)})};
Eya=function(Y,G){var u,O,Q,M,t,K,L,g,P;return _.a(function(I){if(I.nextAddress==1)return u={startTime:(0,_.GC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},I.yield(NC(G),2);if(I.nextAddress!=3)return O=I.yieldResult,Q=_.DE("INNERTUBE_CONTEXT_CLIENT_NAME",0),M=[Y,Q,0],t=[Y,Q,(0,_.GC)()],K=IDBKeyRange.bound(M,t),L="prev",_.F("use_fifo_for_networkless")&&(L="next"),g=void 0,P=Y==="NEW"?"readwrite":"readonly",_.F("use_readonly_for_get_most_recent_by_status_killswitch")&&(P="readwrite"),
I.yield(_.BK(O,["LogsRequestsStore"],{mode:P,enableRetries:!0},function(k){return _.uB(k.objectStore("LogsRequestsStore").index("newRequestV2"),{query:K,direction:L},function(n){n.getValue()&&(g=n.getValue(),Y==="NEW"&&(g.status="QUEUED",n.update(g)))})}),3);
u.ticks.tc=(0,_.GC)();MkA(u);return I.return(g)})};
tkt=function(Y,G){var u;return _.a(function(O){if(O.nextAddress==1)return O.yield(NC(G),2);u=O.yieldResult;return O.return(_.BK(u,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){var M=Q.objectStore("LogsRequestsStore");return M.get(Y).then(function(t){if(t)return t.status="QUEUED",M.put(t).then(function(){return t})})}))})};
Kaa=function(Y,G,u,O){u=u===void 0?!0:u;var Q;return _.a(function(M){if(M.nextAddress==1)return M.yield(NC(G),2);Q=M.yieldResult;return M.return(_.BK(Q,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(t){var K=t.objectStore("LogsRequestsStore");return K.get(Y).then(function(L){return L?(L.status="NEW",u&&(L.sendCount+=1),O!==void 0&&(L.options.compress=O),K.put(L).then(function(){return L})):hd.resolve(void 0)})}))})};
a9A=function(Y,G){var u;return _.a(function(O){if(O.nextAddress==1)return O.yield(NC(G),2);u=O.yieldResult;return O.return(u.delete("LogsRequestsStore",Y))})};
THt=function(Y){var G,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(NC(Y),2);G=O.yieldResult;u=(0,_.GC)()-2592E6;return O.yield(_.BK(G,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){return qN(Q.objectStore("LogsRequestsStore"),{},function(M){if(M.getValue().timestamp<=u)return M.delete().then(function(){return M.continue()})})}),0)})};
Lay=function(){_.a(function(Y){return Y.yield(uEI("LogsDatabaseV2"),0)})};
MkA=function(Y){_.F("nwl_csi_killswitch")||rjj("networkless_performance",Y,{sampleRate:1})};
_.X34=function(Y){return _.l9(gyt(),Y)};
Pqt=function(Y){var G,u;_.a(function(O){if(O.nextAddress==1)return O.yield(_.X34(Y),2);G=O.yieldResult;u=(0,_.GC)()-2592E6;return O.yield(_.BK(G,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Q){return qN(Q.objectStore("SWHealthLog"),{},function(M){if(M.getValue().timestamp<=u)return M.delete().then(function(){return M.continue()})})}),0)})};
I9a=function(Y){var G;return _.a(function(u){if(u.nextAddress==1)return u.yield(_.X34(Y),2);G=u.yieldResult;return u.yield(G.clear("SWHealthLog"),0)})};
_.jV=function(Y,G,u,O,Q,M,t){Q=Q===void 0?"":Q;M=M===void 0?!1:M;t=t===void 0?!1:t;if(Y)if(u&&!R2("cobalt"))_.N3(new _.I2("Legacy referrer-scrubbed ping detected")),Y&&kUY(Y,void 0,{scrubReferrer:!0});else if(Q)VyT(Y,G,"POST",Q,O);else if(_.DE("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||O||t)VyT(Y,G,"GET","",O,void 0,M,t);else{b:{try{c:{var K=new nyI({url:Y});if(K.urlParamValues_.dsh==="1")var L=null;else{var g=K.urlParamValues_.ae;if(g==="1"){var P=K.urlParamValues_.adurl;if(P)try{L={version:3,directUrl:decodeURIComponent(P),
asyncUrl:p4Y(K.JSC$9797_url_,"act=1","ri=1",FaA(K))};break c}catch(p){}}L=g==="2"?{version:4,directUrl:p4Y(K.JSC$9797_url_,"dct=1","suid="+K.suid_,"ri=1"),asyncUrl:p4Y(K.JSC$9797_url_,"act=1","ri=1","suid="+K.suid_)}:null}}if(L){var I=_.BI(Y);var k=!(!I||!I.endsWith("/aclk")||_.Gh(Y,"ri")!=="1");break b}}catch(p){}k=!1}if(k){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(Y,"")){var n=!0;break b}}catch(p){}n=!1}n?(G&&G(),u=!0):u=!1}else u=!1;u||kUY(Y,G)}};
kUY=function(Y,G,u){u=u===void 0?{}:u;var O=new Image,Q=""+p3A++;zMa[Q]=O;O.onload=O.onerror=function(){G&&zMa[Q]&&G();delete zMa[Q]};
u.scrubReferrer&&(O.referrerPolicy="no-referrer");O.src=Y};
VH=function(Y,G){m4u(Y,G==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
WaI=function(Y){var G;return((G=document.featurePolicy)==null?0:G.allowedFeatures().includes("attribution-reporting"))?Y+"&nis=6":Y+"&nis=5"};
rRY=function(Y){if(!Y)return!1;try{var G;if(((G=_.Vg(Y))==null?void 0:G.asm)==="4")return!0}catch(u){_.dc(u)}return!1};
m4u=function(Y,G){G?(Y=WaI(Y),_.jV(Y,void 0,void 0,void 0,"",!0,!0)):_.jV(Y)};
f9Y=function(){x4j||(x4j=new _.Da("yt.offline"));return x4j};
Cqt=function(Y){if(_.F("offline_error_handling")){var G=f9Y().get("errors",!0)||{};G[Y.message]={name:Y.name,stack:Y.stack};Y.level&&(G[Y.message].level=Y.level);f9Y().set("errors",G,2592E3,!0)}};
yRt=function(Y,G,u,O){O=O===void 0?!1:O;G=_.F("web_fp_via_jspb")?Object.assign({},G):G;if(_.F("use_request_time_ms_header"))G.headers&&$4(Y)&&(G.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.GC)())));else{var Q;if((Q=G.postParams)==null?0:Q.requestTimeMs)G.postParams.requestTimeMs=Math.round((0,_.GC)())}u&&Object.keys(G).length===0?_.jV(Y):G.compress?G.postBody?(typeof G.postBody!=="string"&&(G.postBody=JSON.stringify(G.postBody)),Sxj(Y,G.postBody,G,_.td,O)):Sxj(Y,JSON.stringify(G.postParams),
G,qUy,O):_.td(Y,G)};
eMA=function(Y,G){_.F("use_event_time_ms_header")&&$4(Y)&&(G.headers||(G.headers={}),G.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.GC)())));return G};
_.oyt=function(){ARA||(ARA=new _.lB({logOfflineErrors:!0,enablePolling:!0}));return ARA};
_.id1=function(){return _.l7(document.location.toString())!=="www.youtube-nocookie.com"};
_.ZdA=function(){return _.So("ytNetworklessLoggingInitializationOptions")?_.RMg.isNwlInitialized:_.w3j};
D4Y=function(Y,G){if(_.F("polymer_on_demand_shady_dom")){var u;var O=(u=Y.__shady_native_firstElementChild)!=null?u:Y.firstElementChild}else O=Y.firstElementChild;for(;O;){if(Y=G(O)?O:D4Y(O,G))return Y;O=O.nextElementSibling}return null};
_.d4t=function(){var Y=document;if("visibilityState"in Y)return Y.visibilityState;var G=hMj+"VisibilityState";if(G in Y)return Y[G]};
_.bdj=function(Y,G){var u;Bj(Y,function(O){u=G[O];return!!u});
return u};
_.qC=function(Y){var G=S3t(Y);G?G.focus(void 0):_.$q(Y)};
S3t=function(Y){return(Y=D4Y(Y,function(G){return _.sy(G)?NHU(G)&&!!G.offsetParent:!1}))?Y:null};
_.$q=function(Y,G){Y.hasAttribute("tabindex")||Y.setAttribute("tabindex","-1");Y.focus(G)};
jDa=function(Y,G,u,O){O=O===void 0?{}:O;Y.addEventListener&&(G!="mouseenter"||"onmouseenter"in document?G!="mouseleave"||"onmouseenter"in document?G=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(G="MozMousePixelScroll"):G="mouseout":G="mouseover");return _.gX.findKey(s0,function(Q){var M=typeof Q[4]==="boolean"&&Q[4]==!!O,t=_.$a(Q[4])&&_.$a(O)&&_.gX.equals(Q[4],O);return!!Q.length&&Q[0]==Y&&Q[1]==G&&Q[2]==u&&(M||t)})};
_.U0=function(Y,G,u,O){O=O===void 0?{}:O;if(!Y||!Y.addEventListener&&!Y.attachEvent)return"";var Q=jDa(Y,G,u,O);if(Q)return Q;Q=++VkI.count+"";var M=!(G!="mouseenter"&&G!="mouseleave"||!Y.addEventListener||"onmouseenter"in document);var t=M?function(K){K=new cj(K);if(!_.pm(K.relatedTarget,function(L){return L==Y},!0))return K.currentTarget=Y,K.type=G,u.call(Y,K)}:function(K){K=new cj(K);
K.currentTarget=Y;return u.call(Y,K)};
t=_.bi(t);Y.addEventListener?(G=="mouseenter"&&M?G="mouseover":G=="mouseleave"&&M?G="mouseout":G=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(G="MozMousePixelScroll"),l9j()||typeof O==="boolean"?Y.addEventListener(G,t,O):Y.addEventListener(G,t,!!O.capture)):Y.attachEvent("on"+G,t);s0[Q]=[Y,G,u,t,O];return Q};
_.$4j=function(Y,G,u){var O=O===void 0?{}:O;var Q=_.U0(Y,G,function(){_.BHt(Q);u.apply(Y,arguments)},O)};
_.BHt=function(Y){Y&&(typeof Y=="string"&&(Y=[Y]),_.jo(Y,function(G){if(G in s0){var u=s0[G],O=u[0],Q=u[1],M=u[3];u=u[4];O.removeEventListener?l9j()||typeof u==="boolean"?O.removeEventListener(Q,M,u):O.removeEventListener(Q,M,!!u.capture):O.detachEvent&&O.detachEvent("on"+Q,M);delete s0[G]}}))};
vj=function(Y){this.callback_=Y;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(Y=0;Y<4;Y++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.U0(window,"mousemove",(0,_.tP)(this.onMouseMove_,this));this.timerId_=_.HK((0,_.tP)(this.checkPosition_,this),25)};
cRg=function(){var Y={};var G=Y.preferMobileEvents===void 0?!1:Y.preferMobileEvents;Y=Y.enableScrollEventListener===void 0?!0:Y.enableScrollEventListener;if(_.So("_lact",window)==null){var u=parseInt(_.DE("LACT"),10);u=isFinite(u)?Date.now()-Math.max(u,0):-1;_.U5("_lact",u,window);_.U5("_fact",u,window);u==-1&&_.JN();q3u(window,G,Y);new vj(function(){sDY("mouse",100)})}};
q3u=function(Y,G,u){G=G===void 0?!1:G;u=u===void 0?!0:u;_.U0(Y.document,"keydown",_.JN);_.U0(Y.document,"keyup",_.JN);_.U0(Y.document,"mousedown",_.JN);_.U0(Y.document,"mouseup",_.JN);G?_.U0(Y,"touchmove",function(){sDY("touchmove",200)},{passive:!0}):(_.U0(Y,"resize",function(){sDY("resize",200)}),u&&_.U0(Y,"scroll",function(){sDY("scroll",200)}));
_.U0(Y.document,"touchstart",_.JN,{passive:!0});_.U0(Y.document,"touchend",_.JN,{passive:!0})};
sDY=function(Y,G){U4y[Y]||(U4y[Y]=!0,_.AN.addLowPriorityJob(function(){_.JN();U4y[Y]=!1},G))};
_.JN=function(){_.So("_lact",window)==null&&cRg();var Y=Date.now();_.U5("_lact",Y,window);_.So("_fact",window)==-1&&_.U5("_fact",Y,window);(Y=_.So("ytglobal.ytUtilActivityCallback_"))&&Y()};
_.Y7=function(){var Y=_.So("_lact",window);return Y==null?-1:Math.max(Date.now()-Y,0)};
_.QO=function(Y,G,u){var O=_.G5();if(O&&G){var Q=O.subscribe(Y,function(){var M=arguments,t=function(){uj[Q]&&G.apply&&typeof G.apply=="function"&&G.apply(u||window,M)};
try{_.vyA[Y]?t():_.MN(t,0)}catch(K){_.dc(K)}},u);
uj[Q]=!0;OV[Y]||(OV[Y]=[]);OV[Y].push(Q);return Q}return 0};
_.JRt=function(Y){var G=_.G5();G&&(typeof Y==="number"?Y=[Y]:typeof Y==="string"&&(Y=[parseInt(Y,10)]),_.jo(Y,function(u){G.unsubscribeByKey(u);delete uj[u]}))};
_.Yju=function(Y,G){var u=_.G5();u&&u.publish.apply(u,arguments)};
_.um1=function(Y){var G=_.G5();if(G)if(G.clear(Y),Y)GSI(Y);else for(var u in OV)GSI(u)};
_.G5=function(){return _.OI.ytPubsubPubsubInstance};
GSI=function(Y){OV[Y]&&(Y=OV[Y],_.jo(Y,function(G){uj[G]&&delete uj[G]}),Y.length=0)};
OzY=function(){var Y,G;return"h5vcc"in M6&&((Y=M6.h5vcc.traceEvent)==null?0:Y.traceBegin)&&((G=M6.h5vcc.traceEvent)==null?0:G.traceEnd)?1:"performance"in M6&&M6.performance.mark&&M6.performance.measure?2:0};
QSy=function(Y){var G=OzY();switch(G){case 1:M6.h5vcc.traceEvent.traceBegin("YTLR",Y);break;case 2:M6.performance.mark(Y+"-start");break;case 0:break;default:_.YV(G,"unknown trace type")}};
Mrj=function(Y){var G=OzY();switch(G){case 1:M6.h5vcc.traceEvent.traceEnd("YTLR",Y);break;case 2:G=Y+"-start";var u=Y+"-end";M6.performance.mark(u);M6.performance.measure(Y,G,u);break;case 0:break;default:_.YV(G,"unknown trace type")}};
HzY=function(Y){var G,u;(u=(G=window).onerror)==null||u.call(G,Y.message,"",0,0,Y)};
EhA=function(Y){if(_.F("web_lifecycle_error_handling_killswitch"))return Y();try{return Y()}catch(G){HzY(G)}};
trU=function(Y){return[Y.auth===void 0?"undefined":Y.auth,Y.isJspb===void 0?"undefined":Y.isJspb,Y.cttAuthInfo===void 0?"undefined":Y.cttAuthInfo,Y.tier===void 0?"undefined":Y.tier].join("/")};
_.z=function(Y,G){if(Y)return Y[G.name]};
EV=function(){var Y=_.So("yt.logging.ims");Y||(Y=new HY,_.U5("yt.logging.ims",Y));return Y};
kSj=function(Y,G){if(Y.endpoint==="log_event"){K2T(Y);var u=avu(Y),O=TEa(Y.payload)||"",Q=L2A(O),M=200;if(Q){if(Q.enabled===!1&&!_.F("web_payload_policy_disabled_killswitch"))return;M=ghu(Q.tier);if(M===400){Xx1(Y,G);return}}t1[u]=!0;u={cttAuthInfo:u,isJspb:!1,tier:M};EV().storePayload(u,Y.payload);PvA(G,!1,u,Ivt(O))}};
F2u=function(Y,G,u){if(G.endpoint==="log_event"){K2T(void 0,G);var O=avu(G,!0),Q=L2A(Y),M=200;if(Q){if(Q.enabled===!1&&!_.F("web_payload_policy_disabled_killswitch"))return;M=ghu(Q.tier);if(M===400){nhT(Y,G,u);return}}t1[O]=!0;O={cttAuthInfo:O,isJspb:!0,tier:M};EV().storePayload(O,bN(G.payload));PvA(u,!0,O,Ivt(Y))}};
PvA=function(Y,G,u,O){G=G===void 0?!1:G;O=O===void 0?!1:O;Y&&(KJ=new Y);Y=_.Jy("tvhtml5_logging_max_batch_ads_fork")||_.Jy("tvhtml5_logging_max_batch")||_.Jy("web_logging_max_batch")||100;var Q=(0,_.GC)(),M=pxj(G,u.tier),t=M.lastDebounceQueueFromLogTimeMs;O&&(M.useVideoStatsEndPoint=!0);O=0;u&&(O=EV().getSequenceCount(u));var K=function(){zst({writeThenSend:!0},G,u.tier)};
O>=1E3?K():O>=Y?m5j||(m5j=W2I(function(){K();m5j=void 0},0)):Q-t>=10&&(rfy(G,u.tier),M.lastDebounceQueueFromLogTimeMs=Q)};
Xx1=function(Y,G){if(Y.endpoint==="log_event"){_.F("more_accurate_gel_parser")&&EV().storePayload({isJspb:!1},Y.payload);K2T(Y);var u=avu(Y),O=new Map;O.set(u,[Y.payload]);var Q=TEa(Y.payload)||"";G&&(KJ=new G);return new _.a0(function(M,t){KJ&&KJ.isReady()?x5A(O,KJ,M,t,{bypassNetworkless:!0},!0,Ivt(Q)):M()})}};
nhT=function(Y,G,u){if(G.endpoint==="log_event"){K2T(void 0,G);var O=avu(G,!0),Q=new Map;Q.set(O,[bN(G.payload)]);u&&(KJ=new u);return new _.a0(function(M){KJ&&KJ.isReady()?fvY(Q,KJ,M,{bypassNetworkless:!0},!0,Ivt(Y)):M()})}};
avu=function(Y,G){var u="";if(Y.dangerousLogToVisitorSession)u="visitorOnlyApprovedKey";else if(Y.cttAuthInfo){if(G===void 0?0:G){G=Y.cttAuthInfo.token;u=Y.cttAuthInfo;var O=new Cvy;u.videoId?O.setVideoId(u.videoId):u.playlistId&&T5(O,2,yf1,eS(u.playlistId));esj[G]=O}else G=Y.cttAuthInfo,u={},G.videoId?u.videoId=G.videoId:G.playlistId&&(u.playlistId=G.playlistId),Af4[Y.cttAuthInfo.token]=u;u=Y.cttAuthInfo.token}return u};
zst=function(Y,G,u){Y=Y===void 0?{}:Y;G=G===void 0?!1:G;new _.a0(function(O,Q){var M=pxj(G,u),t=M.useVideoStatsEndPoint;M.useVideoStatsEndPoint=!1;ohg(M.queueTimer);ohg(M.queueMaxTimer);M.queueMaxTimer=0;KJ&&KJ.isReady()?u===void 0&&_.F("enable_web_tiered_gel")?iz4(O,Q,Y,G,300,t):iz4(O,Q,Y,G,u,t):(rfy(G,u),O())})};
iz4=function(Y,G,u,O,Q,M){var t=KJ;u=u===void 0?{}:u;O=O===void 0?!1:O;Q=Q===void 0?200:Q;M=M===void 0?!1:M;var K=new Map,L=new Map,g={isJspb:O,cttAuthInfo:void 0,tier:Q},P={isJspb:O,cttAuthInfo:void 0};if(O){G=_.E(Object.keys(t1));for(Q=G.next();!Q.done;Q=G.next())Q=Q.value,L=_.F("enable_web_tiered_gel")?EV().smartExtractMatchingEntries({keys:[g,P],sizeLimit:1E3}):EV().extractMatchingEntries({isJspb:!0,cttAuthInfo:Q}),L.length>0&&K.set(Q,L),(_.F("web_fp_via_jspb_and_json")&&u.writeThenSend||!_.F("web_fp_via_jspb_and_json"))&&
delete t1[Q];fvY(K,t,Y,u,!1,M)}else{K=_.E(Object.keys(t1));for(g=K.next();!g.done;g=K.next())g=g.value,P=_.F("enable_web_tiered_gel")?EV().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:g,tier:Q},{isJspb:!1,cttAuthInfo:g}],sizeLimit:1E3}):EV().extractMatchingEntries({isJspb:!1,cttAuthInfo:g}),P.length>0&&L.set(g,P),(_.F("web_fp_via_jspb_and_json")&&u.writeThenSend||!_.F("web_fp_via_jspb_and_json"))&&delete t1[g];x5A(L,t,Y,G,u,!1,M)}};
rfy=function(Y,G){Y=Y===void 0?!1:Y;G=G===void 0?200:G;var u=function(){zst({writeThenSend:!0},Y,G)},O=pxj(Y,G),Q=O===Rsy||O===wxu?5E3:Zzj;
_.F("web_gel_timeout_cap")&&!O.queueMaxTimer&&(Q=W2I(function(){u()},Q),O.queueMaxTimer=Q);
ohg(O.queueTimer);Q=_.DE("LOGGING_BATCH_TIMEOUT",_.Jy("web_gel_debounce_ms",1E4));_.F("shorten_initial_gel_batch_timeout")&&D5T&&(Q=hsI);Q=W2I(function(){_.Jy("gel_min_batch_size")>0?EV().getSequenceCount({cttAuthInfo:void 0,isJspb:Y,tier:G})>=d5I&&u():u()},Q);
O.queueTimer=Q};
x5A=function(Y,G,u,O,Q,M,t){Q=Q===void 0?{}:Q;var K=Math.round((0,_.GC)()),L=Y.size,g=bz1(t);Y=_.E(Y);var P=Y.next();for(t={};!P.done;t={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},P=Y.next()){var I=_.E(P.value);P=I.next().value;I=I.next().value;t.batchRequest=_.gX.unsafeClone({context:_.FwT(G.config_||_.O0())});if(!_.ly(I)&&!_.F("throw_err_when_logevent_malformed_killswitch")){O();break}t.batchRequest.events=I;
(I=Af4[P])&&SjT(t.batchRequest,P,I);delete Af4[P];t.dangerousLogToVisitorSession=P==="visitorOnlyApprovedKey";NEA(t.batchRequest,K,t.dangerousLogToVisitorSession);jSu(Q);t.onSuccess$jscomp$3=function(k){_.F("start_client_gcf")&&_.AN.addLowPriorityJob(function(){return _.a(function(n){return n.yield(Vr4(k),0)})});
L--;L||u()};
t.networkFailures=0;t.onError$jscomp$5=function(k){return function(){k.networkFailures++;if(Q.bypassNetworkless&&k.networkFailures===1)try{Jja(G,g,k.batchRequest,lvI({writeThenSend:!0},k.dangerousLogToVisitorSession,k.onSuccess$jscomp$3,k.onError$jscomp$5,M)),D5T=!1}catch(n){_.dc(n),O()}L--;L||u()}}(t);
try{Jja(G,g,t.batchRequest,lvI(Q,t.dangerousLogToVisitorSession,t.onSuccess$jscomp$3,t.onError$jscomp$5,M)),D5T=!1}catch(k){_.dc(k),O()}}};
fvY=function(Y,G,u,O,Q,M){O=O===void 0?{}:O;var t=Math.round((0,_.GC)()),K={value:Y.size},L=new Map([].concat(_.c8(Y)));L=_.E(L);for(var g=L.next();!g.done;g=L.next()){var P=_.E(g.value).next().value,I=Y.get(P);g=new LJ;var k=G.config_||_.O0(),n=new gN,p=new BEg;_.E_(p,1,k.innertubeContextHostLanguage);_.E_(p,2,k.innertubeContextGeoLocation);_.MC(p,16,k.innertubeContextClientNameFieldNumber);_.E_(p,17,k.innertubeContextClientVersion);if(k.innertubeContextClientConfigInfo){var W=k.innertubeContextClientConfigInfo,
C=new E0;W.coldConfigData&&_.E_(C,1,W.coldConfigData);W.appInstallData&&_.E_(C,6,W.appInstallData);W.coldHashData&&_.E_(C,3,W.coldHashData);W.hotHashData&&C.setHotHashData(W.hotHashData);_.Rh(p,62,C)}(W=_.OI.devicePixelRatio)&&W!=1&&_.Hj(p,65,_.uN(W));W=w2a();W!==""&&_.E_(p,54,W);W=ZQ1();if(W.length>0){C=new $5A;for(var e=0;e<W.length;e++){var w=new X3;w.setKey(W[e].key);T5(w,2,qjt,eS(W[e].value));PY(C,15,X3,w)}_.Rh(n,5,C)}g3T(k,p);Xm1(n);P01(p);Ib1(k,p);kAA(p);_.F("start_client_gcf")&&n3a(p);_.DE("DELEGATED_SESSION_ID")&&
!_.F("pageid_as_header_web")&&(k=new I0,_.E_(k,3,_.DE("DELEGATED_SESSION_ID")));!_.F("fill_delegate_context_in_gel_killswitch")&&(W=_.DE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(C=_.QH(n,I0,3)||new I0,k=n,W=_.E_(C,18,W),_.Rh(k,3,W));k=p;W=_.E(Object.entries(_.Vg(_.DE("DEVICE",""))));for(C=W.next();!C.done;C=W.next())e=_.E(C.value),C=e.next().value,e=e.next().value,C==="cbrand"?_.E_(k,12,e):C==="cmodel"?_.E_(k,13,e):C==="cbr"?_.E_(k,87,e):C==="cbrver"?_.E_(k,88,e):C==="cos"?_.E_(k,18,
e):C==="cosver"?_.E_(k,19,e):C==="cplatform"&&_.MC(k,42,TKI(e));n.setClient(p);_.Rh(g,1,n);if(p=esj[P])a:{if(_.Gm(p,k7(p,yf1,1)))n=1;else if(p.getPlaylistId())n=2;else break a;_.Rh(g,4,p);p=g.getContext()||new gN;k=_.QH(p,I0,3)||new I0;W=new nJ;W.setToken(P);_.MC(W,1,n);PY(k,12,nJ,W);_.Rh(p,3,k)}delete esj[P];P=P==="visitorOnlyApprovedKey";sSI()||_.F3(g,2,t);!P&&(n=_.DE("EVENT_ID"))&&(p=cfU(),k=new U5u,_.E_(k,1,n),_.F3(k,2,p),_.Rh(g,5,k));jSu(O);if(_.F("jspb_serialize_with_worker")&&(n=_.eYj())&&
O.writeThenSend){_.vhg.set(Jfg,{client:G,resolve:u,networklessOptions:O,isIsolated:Q,useVSSEndpoint:M,dangerousLogToVisitorSession:P,requestsOutstanding:K});n.postMessage({op:"gelBatchToSerialize",batchRequest:bN(g),clientEvents:I,key:Jfg});Jfg++;break}if(I){n=[];for(p=0;p<I.length;p++)try{n.push(new mm(I[p]))}catch(B){_.dc(new _.I2("Transport failed to deserialize "+String(I[p])))}I=n}else I=[];I=_.E(I);for(n=I.next();!n.done;n=I.next())PY(g,3,mm,n.value);I={startTime:(0,_.GC)(),ticks:{},infos:{}};
g=g.serialize();I.ticks.geljspc=(0,_.GC)();_.F("log_jspb_serialize_latency")&&rjj("gel_jspb_serialize",I,{sampleRate:.1});_.YeY(g,G,u,O,Q,M,P,K)}};
_.YeY=function(Y,G,u,O,Q,M,t,K){O=O===void 0?{}:O;K=K===void 0?{value:0}:K;M=bz1(M);O=lvI(O,t,function(L){_.F("start_client_gcf")&&_.AN.addLowPriorityJob(function(){return _.a(function(g){return g.yield(Vr4(L),0)})});
K.value--;K.value||u()},function(){K.value--;
K.value||u()},Q);
O.headers["Content-Type"]="application/json+protobuf";O.postBodyFormat="JSPB";O.postBody=Y;Jja(G,M,"",O);D5T=!1};
jSu=function(Y){_.F("always_send_and_write")&&(Y.writeThenSend=!1)};
lvI=function(Y,G,u,O,Q){Y={retry:!0,onSuccess:u,onError:O,networklessOptions:Y,dangerousLogToVisitorSession:G,bypassMonitoring:!!Q,headers:{},postBodyFormat:"",postBody:"",compress:_.F("compress_gel")||_.F("compress_gel_lr")};sSI()&&(Y.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.GC)())));return Y};
NEA=function(Y,G,u){sSI()||(Y.requestTimeMs=String(G));_.F("unsplit_gel_payloads_in_logs")&&(Y.unsplitGelPayloadsInLogs=!0);!u&&(G=_.DE("EVENT_ID"))&&(u=cfU(),Y.serializedClientEventId={serializedEventId:G,clientCounter:String(u)})};
cfU=function(){var Y=_.DE("BATCH_CLIENT_COUNTER")||0;Y||(Y=Math.floor(Math.random()*65535/2));Y++;Y>65535&&(Y=1);_.ZE("BATCH_CLIENT_COUNTER",Y);return Y};
SjT=function(Y,G,u){if(u.videoId)var O="VIDEO";else if(u.playlistId)O="PLAYLIST";else return;Y.credentialTransferTokenTargetId=u;Y.context=Y.context||{};Y.context.user=Y.context.user||{};Y.context.user.credentialTransferTokens=[{token:G,scope:O}]};
K2T=function(Y,G){var u=_.Yg("il_payload_scraping")==="enable_il_payload_scraping";if(!_.So("yt.logging.transport.enableScrapingForTest"))if(u)GiA=[],_.U5("yt.logging.transport.enableScrapingForTest",!0),_.U5("yt.logging.transport.scrapedPayloadsForTesting",GiA),_.U5("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.U5("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.U5("yt.logging.transport.scrapeClientEvent",!0);else return;u=_.So("yt.logging.transport.scrapedPayloadsForTesting");var O=_.So("yt.logging.transport.payloadToScrape");G&&(G=_.So("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(G.payload)())&&u.push(G);G=_.So("yt.logging.transport.scrapeClientEvent");if(O&&O.length>=1)for(var Q=0;Q<O.length;Q++)if(Y&&Y.payload[O[Q]])if(G)u.push(Y.payload);else{var M=void 0;u.push(((M=Y)==null?void 0:M.payload)[O[Q]])}_.U5("yt.logging.transport.scrapedPayloadsForTesting",
u)};
sSI=function(){return _.F("use_request_time_ms_header")||_.F("lr_use_request_time_ms_header")};
W2I=function(Y,G){return _.F("transport_use_scheduler")===!1?_.MN(Y,G):_.F("logging_avoid_blocking_during_navigation")||_.F("lr_logging_avoid_blocking_during_navigation")?_.WY(_.AN,function(){if(_.u9T().currentState==="none")Y();else{var u={};_.u9T().install((u.none={callback:Y},u))}},G):_.WY(_.AN,Y,G)};
ohg=function(Y){_.F("transport_use_scheduler")?_.AN.cancelJob(Y):_.E5(Y)};
Vr4=function(Y){var G,u,O,Q,M,t,K,L,g,P,I,k,n,p,W;return _.a(function(C){if(C.nextAddress==1)return O=(G=Y)==null?void 0:(u=G.responseContext)==null?void 0:u.globalConfigGroup,Q=_.z(O,OK1),t=(M=O)==null?void 0:M.hotHashData,K=_.z(O,Qd4),g=(L=O)==null?void 0:L.coldHashData,(P=_.sH().resolve(_.q3(rN)))?t?Q?C.yield(M0t(P,t,Q),3):C.yield(M0t(P,t),3):C.jumpTo(3):C.jumpTo(2);if(C.nextAddress!=2)return g?K?C.yield(HKY(P,g,K),2):C.yield(HKY(P,g),2):C.jumpTo(2);k=(I=O)==null?void 0:I.rawFinchStaticConfigGroup;
p=(n=O)==null?void 0:n.finchStaticHashData;if(!p)return k&&_.N3(new _.I2("Finch config data is present, but hash is missing.")),C.return();W=_.sH().resolve(_.q3(ECy));return W?C.yield(W.processAndSetFinchConfig({config:k||{},configHash:p||""}),0):((k||p)&&_.N3(new _.I2("FinchConfigManagerService is not present, but Finch config data is present.")),C.jumpTo(0))})};
pxj=function(Y,G){G=G===void 0?200:G;return Y?G===300?Rsy:t04:G===300?wxu:Kij};
L2A=function(Y){if(_.F("enable_web_tiered_gel")){Y=ajA[Y||""];var G,u,O,Q=_.sH().resolve(_.q3(rN))==null?void 0:(G=x7())==null?void 0:(u=G.loggingHotConfig)==null?void 0:(O=u.eventLoggingConfig)==null?void 0:O.payloadPolicies;if(Q)for(G=0;G<Q.length;G++)if(Q[G].payloadNumber===Y)return Q[G]}};
TEa=function(Y){Y=Object.keys(Y);Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next())if(G=G.value,ajA[G])return G};
ghu=function(Y){switch(Y){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}};
Ivt=function(Y){return Y==="gelDebuggingEvent"};
bz1=function(Y){return(Y===void 0?0:Y)&&_.F("vss_through_gel_video_stats")?"video_stats":"log_event"};
CJ=function(Y,G,u,O){O=O===void 0?{}:O;var Q={},M=Math.round(O.timestamp||(0,_.GC)());Q.eventTimeMs=M<Number.MAX_SAFE_INTEGER?M:0;Q[Y]=G;Y=_.Y7();Q.context={lastActivityMs:String(O.timestamp||!isFinite(Y)?-1:Y)};O.sequenceGroup&&!_.F("web_gel_sequence_info_killswitch")&&(Y=Q.context,G=O.sequenceGroup,G={index:Twj(G),groupKey:G},Y.sequence=G,O.endOfSequence&&delete fJ[O.sequenceGroup]);_.F("web_tag_automated_log_events")&&(Q.context.automatedLogEventSource=O.automatedLogEventSource);(O.sendIsolatedPayload?
Xx1:kSj)({endpoint:"log_event",payload:Q,cttAuthInfo:O.cttAuthInfo,dangerousLogToVisitorSession:O.dangerousLogToVisitorSession},u)};
Twj=function(Y){fJ[Y]=Y in fJ?fJ[Y]+1:0;return fJ[Y]};
_.eK=function(Y,G,u){u=u===void 0?{}:u;var O=yO;_.hy("ytLoggingEventsDefaultDisabled",!1)&&yO===yO&&(O=null);CJ(Y,G,O,u)};
_.A1=function(){if(_.F("web_fp_via_jspb")){var Y=!0;Y=Y===void 0?!1:Y;var G=LiT;LiT=[];if(G){G=_.E(G);for(var u=G.next();!u.done;u=G.next())u=u.value,Y?CJ(u.payloadName,u.payload,yO,u.options):_.eK(u.payloadName,u.payload,u.options)}zst(void 0,!0);if(!_.F("web_fp_via_jspb_and_json"))return}zst(void 0,!1)};
gCY=function(Y,G){var u;if((u=G)==null?0:u.componentStack)return G;if(Y=Y.componentStack)G||(G={}),G.componentStack=Y;return G};
XEg=function(){_.jo(_.DE("ERRORS")||[],function(Y){_.o0.apply(null,Y)});
_.ZE("ERRORS",[])};
_.ij=function(Y){_.o0(Y)};
_.R0=function(Y){_.o0(Y,"WARNING")};
P5y=function(Y){Y instanceof Error?_.o0(Y):(Y=_.$a(Y)?JSON.stringify(Y):String(Y),Y=new _.I2(Y),Y.name="RejectedPromiseError",_.R0(Y))};
IjY=function(Y,G,u,O,Q,M){G=G===void 0?"Unknown file":G;u=u===void 0?0:u;var t=!1,K=X2A("log_window_onerror_fraction");if(K&&Math.random()<K)t=!0;else{K=document.getElementsByTagName("script");for(var L=0,g=K.length;L<g;L++)if(K[L].src.indexOf("/debug-")>0){t=!0;break}}t&&(t=!1,Q?t=!0:(typeof Y==="string"?K=Y:ErrorEvent&&Y instanceof ErrorEvent?(t=!0,K=Y.message,G=Y.filename,u=Y.lineno,O=Y.colno):(K="Unknown error",G="Unknown file",u=0),Q=new _.I2(K),Q.name="UnhandledWindowError",Q.message=K,Q.fileName=
G,Q.lineNumber=u,isNaN(O)?delete Q.columnNumber:Q.columnNumber=O),_.F("wiz_enable_component_stack_propagation_killswitch")||(M=gCY(Q,M)),M&&_.wN(Q,M),t?_.o0(Q):_.R0(Q))};
_.o0=function(Y,G,u,O,Q,M,t,K){M=M===void 0?{}:M;M.name=u||_.DE("INNERTUBE_CONTEXT_CLIENT_NAME",1);M.version=O||_.DE("INNERTUBE_CONTEXT_CLIENT_VERSION");u=M;G=G===void 0?"ERROR":G;t=t===void 0?!1:t;G=G===void 0?"ERROR":G;t=t===void 0?!1:t;if(Y&&(Y.hasOwnProperty("level")&&Y.level&&(G=Y.level),_.F("console_log_js_exceptions")&&(O=[],O.push("Name: "+Y.name),O.push("Message: "+Y.message),Y.hasOwnProperty("params")&&O.push("Error Params: "+JSON.stringify(Y.params)),Y.hasOwnProperty("args")&&O.push("Error args: "+
JSON.stringify(Y.args)),O.push("File name: "+Y.fileName),O.push("Stacktrace: "+Y.stack),O=O.join("\n"),window.console.log(O,Y)),!(kiI>=5))){O=[];Q=_.E(nCI);for(M=Q.next();!M.done;M=Q.next()){M=M.value;try{M()&&O.push(M())}catch(C){}}O=[].concat(_.c8(Fij),_.c8(O));var L=pEU(Y);Q=L.message||"Unknown Error";M=L.name||"UnknownError";var g=L.stack||Y.stacktrace||"Not available";if(g.startsWith(M+": "+Q)){var P=g.split("\n");P.shift();g=P.join("\n")}P=L.lineNumber||"Not available";L=L.fileName||"Not available";
var I=0;if(Y.hasOwnProperty("args")&&Y.args&&Y.args.length)for(var k=0;k<Y.args.length&&!(I=asu(Y.args[k],"params."+k,u,I),I>=500);k++);else if(Y.hasOwnProperty("params")&&Y.params){var n=Y.params;if(typeof Y.params==="object")for(k in n){if(n[k]){var p="params."+k,W=a2(n[k]);u[p]=W;I+=p.length+W.length;if(I>500)break}}else u.params=a2(n)}if(O.length)for(k=0;k<O.length&&!(I=asu(O[k],"params.context."+k,u,I),I>=500);k++);navigator.vendor&&!u.hasOwnProperty("vendor")&&(u["device.vendor"]=navigator.vendor);
k={message:Q,name:M,lineNumber:P,fileName:L,stack:g,params:u,sampleWeight:1};u=Number(Y.columnNumber);isNaN(u)||(k.lineNumber=k.lineNumber+":"+u);if(Y.level==="IGNORED")Y=0;else a:{Y=z_1();u=_.E(Y.messageWeights);for(O=u.next();!O.done;O=u.next())if(O=O.value,k.message&&k.message.match(O.messageRegExp)){Y=O.weight;break a}Y=_.E(Y.callbackWeights);for(u=Y.next();!u.done;u=Y.next())if(u=u.value,u.callback(k)){Y=u.weight;break a}Y=1}k.sampleWeight=Y;Y=_.E(mvj);for(u=Y.next();!u.done;u=Y.next())if(u=
u.value,u.patternsForType[k.name])for(Q=_.E(u.patternsForType[k.name]),O=Q.next();!O.done;O=Q.next())if(M=O.value,O=k.message.match(M.regexp)){k.params["params.error.original"]=O[0];Q=M.groups;M={};for(P=0;P<Q.length;P++)M[Q[P]]=O[P+1],k.params["params.error."+Q[P]]=O[P+1];k.message=u.messageFn(M);break}k.params||(k.params={});Y=z_1();k.params["params.errorServiceSignature"]="msg="+Y.messageWeights.length+"&cb="+Y.callbackWeights.length;k.params["params.serviceWorker"]="false";_.OI.document&&_.OI.document.querySelectorAll&&
(k.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new ZC(Wiu,"sample")).constructor!==ZC&&(k.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(k);if(k.sampleWeight!==0&&!r$y.has(k.message)){if(t)xvT(G===void 0?"ERROR":G,k);else{G=G===void 0?"ERROR":G;G==="ERROR"?(DC.publish("handleError",k),_.F("record_app_crashed_web")&&fjt===0&&k.sampleWeight===1&&(fjt++,t={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},_.F("report_client_error_with_app_crash_ks")||
(t.systemHealth={crashData:{clientError:{logMessage:{message:k.message}}}}),_.eK("appCrashed",t)),C5A++):G==="WARNING"&&DC.publish("handleWarning",k);if(_.F("kevlar_gel_error_routing")){t=G;K=K===void 0?{}:K;b:{Y=_.E(y$j);for(u=Y.next();!u.done;u=Y.next())if(R2(u.value.toLowerCase())){Y=!0;break b}Y=!1}if(Y)K=void 0;else{u={stackTrace:k.stack};k.fileName&&(u.filename=k.fileName);Y=k.lineNumber&&k.lineNumber.split?k.lineNumber.split(":"):[];Y.length!==0&&(Y.length!==1||isNaN(Number(Y[0]))?Y.length!==
2||isNaN(Number(Y[0]))||isNaN(Number(Y[1]))||(u.lineNumber=Number(Y[0]),u.columnNumber=Number(Y[1])):u.lineNumber=Number(Y[0]));Y={level:"ERROR_LEVEL_UNKNOWN",message:k.message,errorClassName:k.name,sampleWeight:k.sampleWeight};t==="ERROR"?Y.level="ERROR_LEVEL_ERROR":t==="WARNING"&&(Y.level="ERROR_LEVEL_WARNNING");u={isObfuscated:!0,browserStackInfo:u};K.pageUrl=window.location.href;K.kvPairs=[];_.DE("FEXP_EXPERIMENTS")&&(K.experimentIds=_.DE("FEXP_EXPERIMENTS"));O=_.DE("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!X2A("web_disable_gel_stp_ecatcher_killswitch")&&O)for(Q=_.E(Object.keys(O)),M=Q.next();!M.done;M=Q.next())M=M.value,K.kvPairs.push({key:M,value:String(O[M])});if(O=k.params)for(Q=_.E(Object.keys(O)),M=Q.next();!M.done;M=Q.next())M=M.value,K.kvPairs.push({key:"client."+M,value:String(O[M])});O=_.DE("SERVER_NAME");Q=_.DE("SERVER_VERSION");O&&Q&&(K.kvPairs.push({key:"server.name",value:O}),K.kvPairs.push({key:"server.version",value:Q}));(O=_.DE("PLAYER_CLIENT_VERSION"))&&K.kvPairs.push({key:"client.player.version",
value:O});K={errorMetadata:K,stackTrace:u,logMessage:Y}}K&&(_.eK("clientError",K),(t==="ERROR"||_.F("errors_flush_gel_always_killswitch"))&&_.A1())}_.F("suppress_error_204_logging")||xvT(G,k)}try{r$y.add(k.message)}catch(C){}kiI++}}};
xvT=function(Y,G){var u=G.params||{};Y={urlParams:{a:"logerror",t:"jserror",type:G.name,msg:G.message.substr(0,250),line:G.lineNumber,level:Y,"client.name":u.name},postParams:{url:_.DE("PAGE_NAME",window.location.href),file:G.fileName},method:"POST"};u.version&&(Y["client.version"]=u.version);if(Y.postParams){G.stack&&(Y.postParams.stack=G.stack);G=_.E(Object.keys(u));for(var O=G.next();!O.done;O=G.next())O=O.value,Y.postParams["client."+O]=u[O];if(u=_.DE("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(G=
_.E(Object.keys(u)),O=G.next();!O.done;O=G.next())O=O.value,Y.postParams[O]=u[O];(u=_.DE("LAVA_VERSION"))&&(Y.postParams["lava.version"]=u);u=_.DE("SERVER_NAME");G=_.DE("SERVER_VERSION");u&&G&&(Y.postParams["server.name"]=u,Y.postParams["server.version"]=G);(u=_.DE("PLAYER_CLIENT_VERSION"))&&(Y.postParams["client.player.version"]=u)}_.td(_.DE("ECATCHER_REPORT_HOST","")+"/error_204",Y)};
_.e_I=function(Y,G){G=G===void 0?"ERROR":G;var u=u===void 0?{}:u;var O=_.So("ytbin.polymer.shared.lib.tampering.info");O&&(O=O())&&(u["params.tamperingInfo"]=O.sort().join(","));_.o0(Y,G,void 0,void 0,!0,u)};
_.wN=function(Y){var G=_.vs.apply(1,arguments);Y.args||(Y.args=[]);Array.isArray(Y.args)&&Y.args.push.apply(Y.args,_.c8(G))};
A$j=function(Y){Y.level="IGNORED"};
oCa=function(Y,G){Fij.push(Y);G();Fij.pop()};
h1=function(Y,G){for(var u in G)G.hasOwnProperty(u)&&(Y=_.O_(Y,u,G[u]));return Y};
_.iKT=function(Y,G,u){u=u===void 0?!1:u;if(!Y)return null;if(Y.adInfoDialogEndpoint||Y.backstageImageUploadEndpoint||Y.confirmDialogEndpoint||Y.clientActionEndpoint||Y.createBackstagePostDialogEndpoint||Y.createCommentReplyDialogEndpoint||Y.flowEndpoint||Y.guideBuilderEndpoint||Y.liveChatDialogEndpoint||Y.modalEndpoint||Y.openPopupAction||Y.shareEndpoint||Y.shareEntityEndpoint||Y.showLiveChatItemEndpoint||Y.subscriptionManagerEndpoint||Y.unlimitedCreateFamilyEndpoint||Y.unlimitedFamilyFlowEndpoint||
Y.updateCommentDialogEndpoint||Y.updateCommentReplyDialogEndpoint||Y.userFeedbackEndpoint||Y.videoEditorEndpoint||Y.ypcCancelSurveyEndpoint)return G=_.Jy("polymer_report_client_url_requested_rate"),!u&&Math.random()<G&&_.R0(new _.I2("urlForEndpoint used on client endpoint",Y)),null;var O=_.Jy("polymer_report_missing_web_navigation_endpoint_rate");if(Y.liveChatEndpoint||Y.liveChatReplayEndpoint)O=0;if(!Y.commandMetadata&&!Y.clickTrackingParams&&Math.random()<O){var Q={},M;for(M in Y)Q[M]="1";_.R0(new _.I2("Missing navigation data",
Q))}Q="";if(Y.commandMetadata&&Y.commandMetadata.webCommandMetadata&&Y.commandMetadata.webCommandMetadata.url)Q=Y.commandMetadata.webCommandMetadata.url;else if(Y.searchEndpoint)Math.random()<O&&_.R0(new _.I2("Should not manually handle search",Y)),Q="/results?search_query="+encodeURIComponent(Y.searchEndpoint.query).replace(/%20/g,"+"),Y.searchEndpoint.params&&(Q+="&sp="+Y.searchEndpoint.params);else if(Y.watchEndpoint)Math.random()<O&&_.R0(new _.I2("Should not manually handle watch",Y)),Q="/watch?v="+
Y.watchEndpoint.videoId,Y.watchEndpoint.playlistId&&(Q+="&list="+Y.watchEndpoint.playlistId),Y.watchEndpoint.index&&(Q+="&index="+Y.watchEndpoint.index),Y.watchEndpoint.startTimeSeconds&&(Q+="&t="+Y.watchEndpoint.startTimeSeconds);else if(Y.browseEndpoint)O=Y.browseEndpoint.browseId,(M=Y.browseEndpoint.canonicalBaseUrl)?Q=M:O&&(Q=O.substr(0,2),Q=Q==="FE"?O==="FEwhat_to_watch"?"/":O==="FEmy_videos"?"/my_videos":"/feed/"+O.substr(2):Q==="VL"?"/playlist?list="+O.substr(2):"/channel/"+O),Q&&Y.browseEndpoint.query&&
(Q=h1(Q+"/search",{query:Y.browseEndpoint.query})),Q&&Y.browseEndpoint.params&&(Q=h1(Q,{params:Y.browseEndpoint.params}));else{if(Y.urlEndpoint)return Y.urlEndpoint.url;Y.signInEndpoint?(Q="https://accounts.google.com/ServiceLogin",O={},_.gX.extend(O,G||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),G=O):Y.uploadEndpoint?Q="//www.youtube.com/upload":Y.liveChatEndpoint?(Q=Y.liveChatEndpoint,O=_.gX.clone(Q),_.$a(Q.continuation)&&(M=Object.keys(Q.continuation)[0],
O.continuation=Q.continuation[M].continuation),Q=h1("/youtubei/v1/live_chat/get_live_chat",O)):Y.liveChatReplayEndpoint?(Q=_.gX.clone(Y.liveChatReplayEndpoint),Q.currentPlayerState&&(_.gX.extend(Q,Q.currentPlayerState),delete Q.currentPlayerState),Q=h1("/youtubei/v1/live_chat/get_live_chat_replay",Q)):Y.liveChatItemContextMenuEndpoint?Q=h1("/youtubei/v1/live_chat/get_item_context_menu",Y.liveChatItemContextMenuEndpoint):Y.liveChatPurchaseMessageEndpoint?Q=h1("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
Y.liveChatPurchaseMessageEndpoint):Y.openSuperStickerBuyFlowCommand?Q=h1("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",Y.openSuperStickerBuyFlowCommand):Y.videoEditEndpoint?Q=h1("/edit",{video_id:Y.videoEditEndpoint.videoId}):Y.liveDashboardEndpoint?Q=Y.liveDashboardEndpoint.videoId?h1("/live_dashboard",{v:Y.liveDashboardEndpoint.videoId}):"/live_dashboard":Y.signalNavigationEndpoint&&Y.signalNavigationEndpoint.signal&&Y.signalNavigationEndpoint.signal==="WEBCAM"?Q="/webcam":Y.getPdgBuyFlowCommand&&
(Q=h1(Y.getPdgBuyFlowCommand.buyflowApiPath,{params:Y.getPdgBuyFlowCommand.params}))}return Q||u?h1(Q,G||{}):(_.R0(new _.I2("Error: Can't construct url for endpoint","keys:"+Object.keys(Y).sort().join(","),Y)),null)};
R_A=function(Y){if(Y){if(Y.browseEndpoint)return!!Y.browseEndpoint.nofollow;if(Y.watchEndpoint)return!!Y.watchEndpoint.nofollow;if(Y.urlEndpoint)return!!Y.urlEndpoint.nofollow}return!1};
_.ZKu=function(Y,G){var u=G+Y,O=wEA.get(u);if(O)return O;Y=G+"-"+Y.replace(/([A-Z])/g,"-$1").toLowerCase();wEA.set(u,Y);return Y};
DvY=function(Y){var G=_.R1(Y,"action")||_.R1(Y,"command")||_.R1(Y,"endpoint");if(!G)return null;G=_.ZKu(G,"yt");_.z(Y,_.dN)&&(G+="-"+_.z(Y,_.dN).signal.toLowerCase().replace(/_/g,"-"));return G};
Nwj=function(Y){try{var G=Object.keys(Y)}catch(Q){return[]}for(var u=0;u<G.length;u++){var O=G[u];if(h_y.test(O)||dvj.test(O))return bKu(Y[O])}return[]};
bKu=function(Y){return Y.command?[Y.command]:Y.onExecutionAction?[Y.onExecutionAction]:Y.onResponseReceivedCommand?[Y.onResponseReceivedCommand]:Y.updateFlowCommand?[Y.updateFlowCommand]:Y.clientActions?Y.clientActions:Y.action?[Y.action]:Y.actions||Y.commands||Y.onResponseReceivedActions||Y.onResponseReceivedCommands||Y.onResponseReceivedEndpoints||[]};
V0T=function(Y,G){G=G===void 0?!1:G;var u=_.sH().resolve(_.q3(bj));u||(u=new jdy,_.sH().addProvider({provide:bj,useValue:u}));return u&&Y&&!_.gX.isEmpty(Y)?u.getUrl(Y,G):""};
ljt=function(Y,G,u){u=u===void 0?"":u;if(G){Y.data=G;var O=V0T(G);O?(Y6(Y,O),R_A(G)||!$4(O)?Y.rel="nofollow":Y.removeAttribute("rel"),_.z(G,_.SK)&&_.z(G,_.SK).target==="TARGET_NEW_WINDOW"?Y.target="_blank":u?Y.target=u:Y.removeAttribute("target")):(Y.removeAttribute("href"),Y.removeAttribute("rel"),Y.removeAttribute("target"))}};
_.lj=function(Y,G){var u=cM;if(r_())BwU(Y,function(){var M=_.vs.apply(0,arguments);d_(u,function(){G.apply(null,_.c8(M))})});
else{var O=_.N6.getInstance(),Q=gNA(G);K7j(function(){Q.value=G});
_.ii(function(){var M={},t=_.jK(O,(M[Y]=function(){var K=_.vs.apply(0,arguments);d_(u,function(){Q.value.apply(Q,_.c8(K))})},M));
return function(){var K={};_.VO(O,(K[Y]="",K),t)}})}};
$vt=function(Y){var G=cM,u=mv;return{getFn:function(){return function(O){if(!G.isDisposed){var Q=function(){return Y(O)};
f2(function(){return _.Pw(Q)},u)!==!0&&O.stopPropagation()}}}}};
qej=function(Y){if(typeof Y.children==="function")return Y.children(),null;Y=_.E(Y.children);for(var G=Y.next();!G.done;G=Y.next())G=G.value,G();return null};
sdY=function(Y){var G;return((G=Y.prototype)==null?void 0:G.render)===void 0};
c$1=function(Y){var G=Array.isArray(Y.items)?Y.items:Array.from(Y.items);Y=Y.children;return(Array.isArray(G)?G:Array.from(G)).map(Y)};
vC4=function(Y,G,u){u=u===void 0?!1:u;f2(function(){return Uva(Y,G,u)})};
Uva=function(Y,G,u){var O=null;yM++;u=(u===void 0?0:u)?J$T:YnA;try{O=u(Y,function(){BY(G)}),oE(!1)}catch(Q){throw oE(!0),Q;
}return O===null?Y:O};
BY=function(Y){if(Y!==void 0&&Y!==null)if(Y instanceof P4)for(var G=jE;VM()!=null&&eI1 in VM()&&G.contains(VM());)$l();else if(Array.isArray(Y))for(G=_.E(Y),Y=G.next();!Y.done;Y=G.next())BY(Y.value);else if(Y instanceof hz||Y instanceof FH||"function"==typeof _.vw&&Y instanceof _.vw)eTt(Y.toString());else if(OH(Y)){if(VM()!==Y){var u,O;G=(O=(u=mv)==null?void 0:u.name)!=null?O:"unknown";throw Error("jc`"+Y.tagName+"`"+G);}$l()}else if(Y!=null&&Y.contentKind===H4||Y instanceof Go||lUA(Y))for(G=$tA(Y),
G=Array.from(G.childNodes),G=_.E(G),Y=G.next();!Y.done;Y=G.next())jE.appendChild(Y.value),$l();else if(ls(Y)&&(Y=Y.toString()),u=typeof Y,u==="boolean"||u==="number"||u==="string")eTt(Y);else if(typeof Y==="function"){G=jE;var Q=VM();Q&&(Q._isSignalTextNode||Q._isSafeOrSanitizedHtmlNode)||p$T(G,Q,Y);$l()}else if(Y.type===c$1)BY(Y.type(Object.assign({},Y.props,{children:Y.children[0]})));else{if(typeof Y.type==="string"){a:{Y.__open||WUu(Y.type,Y.props.idomKey);Q=jE;for(var M in Y.props)if(Y.props[M]!==
GPA){var t=Y.props[M];u=sW;u.push(M);u.push(t)}M=uF.attributes;M=M===void 0?$7:M;t=jE;O=kNj(t);u=M;M=sW;O=O._attrsArr||(O._attrsArr=KUU(M.length));for(var K=!O.length||!1,L=0;L<M.length;L+=2){var g=M[L];if(K)O[L]=g;else if(O[L]!==g)break;var P=M[L+1];if(K||O[L+1]!==P)O[L+1]=P,yo1(t,g,P,u)}if(L<M.length||L<O.length){for(L=K=L;L<O.length;L+=2)q6[O[L]]=O[L+1];for(L=K;L<M.length;L+=2)K=M[L],g=M[L+1],q6[K]!==g&&yo1(t,K,g,u),O[L]=K,O[L+1]=g,delete q6[K];t9t(O,M.length);for(G in q6)yo1(t,G,void 0,u),delete q6[G]}G=
u2u;u2u=t=UW.length;for(u=G;u<t;u+=5)(0,UW[u])(UW[u+1],UW[u+2],UW[u+3],UW[u+4]);u2u=G;t9t(UW,G);t9t(M,0);FRj(Q,Y.props,!0);if((Y.props.skip||Y.props.skipchildren)&&jE.hasChildNodes())Bw=jE.lastChild;else{if(Y.type==="style"&&G14(Y.children)===null){Bw=jE.lastChild;G=void 0;break a}BY(Y.children)}roA();Y.__open&&(Y.__open=!1);hT4(Q,Y.props);G=Q}return G}if(Y.type===_.GY)BY(Y.children);else if(!O$j(Y)){G=Y;try{Qzt(G)}catch(I){Y=I,(t=uF.handleError)==null||t.call.apply(t,[uF].concat(_.c8(bF(Y,(Q=G.type)==
null?void 0:Q.TAG_NAME))))}G.__open&&(roA(),G.__open=!1)}}};
M8I=function(Y,G){var u;sdY(Y)?u=new pH(G,Y):u=new Y(G);u.__type=Y;u.__updateContext={nextState:u.state,isForced:!1};return u};
Qzt=function(Y){var G=Y.type,u=G.TAG_NAME;if(G===qej)Y.props.children=Y.children,G(Y.props);else{Y.children.length>0&&(Y.props.children=Y.children);var O;(O=Y.props).idomKey||(O.idomKey=G);if(u){var Q=WUu(u,Y.props.idomKey);Y.__open=!0;var M=Q.__instance}M||(M=M8I(G,Y.props),M.props=null,Q&&(Q.__instance=M,M.el=Q));var t;u=((t=M.__updateContext)!=null?t:{nextState:M.state,isForced:!1}).nextState;M.__updateContext=void 0;G.getDerivedStateFromProps&&(u=G.getDerivedStateFromProps(Y.props,u));M.props=
Y.props;M.state=u;t=function(){var K=M;nH.beforeRender(K);var L=K.render(K.props);L?(K.props.idomKey&&(L.props.idomKey=K.props.idomKey),K=L):K=void 0;if(L=K)if(L.__open=Y.__open,K=BY(L),Y.__open=L.__open,!G.TAG_NAME)if(K)G.TAG_NAME=K.tagName.toLowerCase(),K.__instance=M,M.el=K;else{var g;if((g=M.hooks)==null?0:g.length){var P;(P=uF.handleError)==null||P.call.apply(P,[uF].concat(_.c8(bF(Error("pd")))))}}M.didPatch();nH.didPatch(M)};
(u=M.functionComponent)?IHY(u,t,M.props.debugInstance):t()}};
O$j=function(Y){var G=Y.type;if(!sdY(G)||G===qej||G.componentType===Ww)return!1;Y.props.children=Y.children.length>1?Y.children:Y.children[0];var u,O=(u=Y.props.idomKey)!=null?u:Y.type,Q;if(VM()&&((Q=VM()[TY])==null?void 0:Q.key)===O){var M=VM(),t=M[TY];if(!t)throw Error("ic`"+M.tagName);var K;(K=t.updateSignalsFromIdomProps)==null||K.call(t,Y.props);H$t(t);return!0}if(E2T.has(G.name))throw K=G.name,G=(t=(M=mv)==null?void 0:M.name)!=null?t:"unknown",Error("hc`"+K+"`"+G);Y.props.renderedFromIdom=!0;
(K=IHY(Y.type,function(){return X$a(Y.type,Y.props)},Y.props.debugInstance))&&t8t(K);
return!0};
KzU=function(Y){for(var G=0;G<X4(Y).length;G++)$l()};
H$t=function(Y){var G=aL4();if(G)KzU(G);else for(var u=0;u<Y.numNodes;u++)(G=aL4())?KzU(G):$l()};
aL4=function(){var Y;return(Y=VM()[TY])==null?void 0:Y.sourceDynamicRange};
t8t=function(Y){Y=StA(Y);Y=Array.isArray(Y)?Y:[Y];Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next())jE.insertBefore(G.value,VM()),$l()};
T4a=function(){var Y=IZg(),G=sxA(function(){return{value:0}},[]);
return[G.value,function(u){if(F4!==null){var O;(O=uF.handleError)==null||O.call.apply(O,[uF].concat(_.c8(bF(Error("qd")))))}G.value=typeof u==="function"?u(G.value):u;Y.__updateContext={nextState:Y.state,isForced:!0};u=Uy(Y.effectContext);O=ui(!1);try{if(Y.el){var Q,M={},t=(M.props=Y.props,M.type=Y.__type,M.children=(Q=Y.props.children)!=null?Q:[],M[Y4]=!0,M);try{vC4(Y.el,t,!0)}catch(g){var K,L;(L=uF.handleError)==null||L.call.apply(L,[uF].concat(_.c8(bF(g,(K=Y.__type)==null?void 0:K.TAG_NAME))))}}}finally{ui(O),
Uy(u)}}]};
_.sV=function(Y,G){var u=cM,O=function(Q){d_(u,function(){G(Q)})};
window.addEventListener(Y,O,void 0);_.w_(function(){window.removeEventListener(Y,O,void 0)})};
_.UV=function(Y){var G=cM;return function(u){var O,Q=(O=Y.observer)!=null?O:_.sH().resolve(cY);O=Lzj(u);var M=[];Y.showOption&&M.push(Q.observe(u,function(){d_(G,function(){Y.visibilityCallback(!0,u)})},Y.showOption));
Y.hideOption&&M.push(Q.observe(u,function(){d_(G,function(){Y.visibilityCallback(!1,u)})},Y.hideOption));
Y.prescanOption&&Y.prescanCallback&&M.push(Q.observe(u,function(){d_(G,function(){Y.prescanCallback()})},Y.prescanOption));
var t;O.visibilityMonitorKeys=((t=O.visibilityMonitorKeys)!=null?t:[]).concat(M)}};
Lzj=function(Y){var G;return(G=Y.polymerController)!=null?G:Y};
ILj=function(Y,G){var u=g2j;return _.T(_.GY,null,faY(uF.enableLazyTsx,function(){return _.T(XU4,{id:u,value:Y,children:G})},function(){var O=P64(u,Y);
Yl(O);O=Uy(O);try{return G()}finally{Uy(O)}}))};
XU4=function(Y){var G=Y.children;Y=P64(Y.id,Y.value);Yl(Y);Y=Uy(Y);try{return _.T(_.GY,null,I1(G()))}finally{Uy(Y)}};
P64=function(Y,G){return Object.assign(Object.create(kPA),{id:Y,contextValue:G})};
n2I=function(Y){var G,u=cM;_.iF(function(){var O=Uy(u),Q=ui(!G);try{if(G)vC4(G,Y.children(),!0);else if(G=I1(Y.children()),!(G instanceof Element))throw Error("rd");}finally{ui(Q),Uy(O)}},"i");
return G};
pUj=function(Y){var G=new FzA;G.abort(Y);return G.signal};
z8a=function(){if(this.aborted){var Y;throw(Y=this.reason)!=null?Y:new DOMException("signal is aborted without reason","AbortError");}};
rLI=function(Y){var G=new FzA;Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())if(u=u.value,u.aborted){G.abort(u.reason);break}else mFA.set(G.signal,G),Wzg.add(u,G.signal);return G.signal};
xFy=function(){for(var Y=_.E(Wzg.get(this)),G=Y.next();!G.done;G=Y.next())mFA.get(G.value).abort(this.reason)};
fLA=function(Y){var G=new FzA;setTimeout(function(){G.abort(new DOMException("signal timed out","TimeoutError"))},Y);
return G.signal};
C6T=function(){var Y,G;return{promise:new Promise(function(u,O){Y=u;G=O}),
resolve:Y,reject:G}};
e8I=function(Y){var G=C6T(),u=G.promise;yLt.set(Y,{promise:u,resolve:G.resolve,reject:G.reject});vY||(vY=[],queueMicrotask(function(){var O=[].concat(_.c8(vY));vY=null;var Q=mf().loadMultiple(O);O=_.E(O);for(var M=O.next();!M.done;M=O.next())M=M.value,Q[M].then(yLt.get(M).resolve,yLt.get(M).reject)}));
vY.push(Y);return u};
ALU=function(Y,G){this.fn_=Y;this.handler_=G};
Yd=function(Y,G){_.Ey.call(this);this.deps_=Y;this.JSC$11376_id_=G;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
i$4=function(Y){Y=Y.buf.charCodeAt(Y.pos++);return o2j[Y]};
GB=function(Y){var G=0,u=0;do{var O=i$4(Y);G|=(O&31)<<u;u+=5}while(O&32);return G<0?G+4294967296:G};
R8U=function(Y,G,u,O){var Q=!0;Q=Q===void 0?!1:Q;G=G===void 0?!1:G;O=O===void 0?{}:O;var M=O.cssRowKey||"",t=O.combinedSignature||"";!M&&window&&window._F_cssRowKey&&(M=window._F_cssRowKey,!t&&window._F_combinedSignature&&(t=window._F_combinedSignature));if(M&&typeof window._F_installCss!=="function")throw Error("Bd");var K=O.loaderClass||_.uo;Y=cNg(Y===void 0?"base-js":Y);G=new K(DKj(vq1("",Y)),M,t,Q,G);Q=O.useCors||Y&&Y.hasAttribute("crossorigin");Y=O.corsMode||Y&&Y.getAttribute("crossorigin");
Q&&(G.useCors_=Q);Y&&(G.corsMode_=Y);O.urlMaxLength&&(G.urlMaxLength=O.urlMaxLength);u&&(G.insertPos=u);O.fetchPriority&&(G.fetchPriority=O.fetchPriority);var L=mf();L.JSC$10379_loader_=G;L.setBatchModeEnabled(!0);_.Ok=O.batchingStrategy==="BATCH"?e8I:function(g){return Promise.resolve(L.load(g))}};
DFy=function(Y,G,u){wUA(Y,G);Y[G][Z$Y].unshift(u)};
wUA=function(Y,G){if(!Y[G]||!Y[G][Z$Y]){var u=Y[G],O=u?[u]:[];Y[G]=function(){for(var Q=_.E(O),M=Q.next();!M.done;M=Q.next())M.value.apply(this,arguments)};
Y[G][Z$Y]=O}};
h8A=function(Y){if(!Y)return[];var G=[];Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())u=u.value,Array.isArray(u)?G.push.apply(G,_.c8(h8A(u))):G.push(u);return G};
_.Ek=function(Y,G){if(Y&&dFj.test(Y)||Y==="//")return Y;if(b$U===void 0){b$U=!1;try{var u=new URL("b","http://a");u.pathname="c%20d";b$U=u.href==="http://a/c%20d"}catch(O){}}G||(G=document.baseURI||window.location.href);if(b$U)try{return(new URL(Y,G)).href}catch(O){return Y}Qb||(Qb=document.implementation.createHTMLDocument("temp"),Qb.base=Qb.createElement("base"),Qb.head.appendChild(Qb.base),Qb.anchor=Qb.createElement("a"),Qb.body.appendChild(Qb.anchor));Qb.base.href=G;Qb.anchor.href=Y;return Qb.anchor.href||
Y};
N4t=function(Y,G){return Y.replace(Snj,function(u,O,Q,M){return O+"'"+_.Ek(Q.replace(/["']/g,""),G)+"'"+M})};
jzu=function(Y){return Y.substring(0,Y.lastIndexOf("/")+1)};
B4T=function(){V84=!1;for(var Y=tG.length,G=0;G<Y;G++){var u=tG[G];if(u)try{u()}catch(O){setTimeout(function(){throw O;})}}tG.splice(0,Y);
lLt+=Y};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(Y){console.log("["+Y.is+"]: registered")};
qnY=function(Y){$Fa.push(Y)};
Kj=function(Y){return sz4[Y]||(sz4[Y]=Y.indexOf("-")<0?Y:Y.replace(cLj,function(G){return G[1].toUpperCase()}))};
a3=function(Y){return sz4[Y]||(sz4[Y]=Y.replace(UFt,"-$1").toLowerCase())};
v2U=function(Y,G){var u=G.parentInfo&&v2U(Y,G.parentInfo);if(u)for(Y=u.firstChild,u=0;Y;Y=Y.nextSibling){if(G.parentIndex===u++)return Y}else return Y};
JLI=function(Y,G){Y=Y._methodHost||Y;return function(u){if(Y[G])Y[G](u,u.detail);else console.warn("listener method `"+G+"` not defined")}};
TB=function(Y){return Y.indexOf(".")>=0};
Lj=function(Y){var G=Y.indexOf(".");return G===-1?Y:Y.slice(0,G)};
YAt=function(Y,G){return Y.indexOf(G+".")===0};
gj=function(Y,G){return G.indexOf(Y+".")===0};
XP=function(Y,G,u){return G+u.slice(Y.length)};
G0j=function(Y,G){return Y===G||YAt(Y,G)||gj(Y,G)};
PD=function(Y){if(Array.isArray(Y)){for(var G=[],u=0;u<Y.length;u++)for(var O=Y[u].toString().split("."),Q=0;Q<O.length;Q++)G.push(O[Q]);return G.join(".")}return Y};
uOa=function(Y){return Array.isArray(Y)?PD(Y).split("."):Y.toString().split(".")};
I3=function(Y,G,u){G=uOa(G);for(var O=0;O<G.length;O++){if(!Y)return;Y=Y[G[O]]}u&&(u.path=G.join("."));return Y};
Oyu=function(Y,G,u){var O=uOa(G),Q=O[O.length-1];if(O.length>1){for(G=0;G<O.length-1;G++)if(Y=Y[O[G]],!Y)return;Y[Q]=u}else Y[G]=u;return O.join(".")};
Qft=function(Y,G,u){var O=Y[G];if(!O)O=Y[G]={};else if(!Y.hasOwnProperty(G)&&(O=Y[G]=Object.create(Y[G]),u))for(var Q in O)for(Y=O[Q],G=O[Q]=Array(Y.length),u=0;u<Y.length;u++)G[u]=Y[u];return O};
nj=function(Y,G,u,O,Q,M){if(G){var t=!1,K=kd++,L;for(L in u){var g=Q?Lj(L):L;if(g=G[g])for(var P=0,I=g.length,k=void 0;P<I&&(k=g[P]);P++)k.info&&k.info.lastRun===K||Q&&!M6T(L,k.trigger)||(k.info&&(k.info.lastRun=K),k.fn(Y,L,u,O,k.info,Q,M),t=!0)}return t}return!1};
M6T=function(Y,G){if(G){var u=G.name;return u==Y||!(!G.structured||!YAt(u,Y))||!(!G.wildcard||!gj(u,Y))}return!0};
HyT=function(Y,G,u,O,Q){G=typeof Q.method==="string"?Y[Q.method]:Q.method;u=Q.property;G?G.call(Y,Y.__data[u],O[u]):Q.dynamicFn||console.warn("observer method `"+Q.method+"` not defined")};
EMA=function(Y,G,u,O){u={value:u,queueProperty:!0};O&&(u.path=O);(0,_.FP)(Y).dispatchEvent(new CustomEvent(G,{detail:u}))};
t6U=function(Y,G,u,O,Q,M){M=(O=(M?Lj(G):G)!=G?G:null)?I3(Y,O):Y.__data[G];O&&M===void 0&&(M=u[G]);EMA(Y,Q.eventName,M,O)};
KJy=function(Y,G,u,O,Q){u=Y.__data[G];pj&&(u=pj(u,Q.attrName,"attribute",Y));Y._propertyToAttribute(G,Q.attrName,u)};
TVt=function(Y){var G=Y.constructor.__orderedComputedDeps;if(!G){G=new Map;for(var u=Y.__computeEffects,O=aKT(Y),Q=O.counts,M=O.ready,t=O.total;O=M.shift();)G.set(O,G.size),(O=u[O])&&O.forEach(function(K){K=K.info.methodInfo;--t;--Q[K]===0&&M.push(K)});
t!==0&&console.warn("Computed graph for "+Y.localName+" incomplete; circular?");Y.constructor.__orderedComputedDeps=G}return G};
aKT=function(Y){var G=Y.__computeInfo,u={};Y=Y.__computeEffects;var O=[],Q=0,M;for(M in G){var t=G[M];Q+=u[M]=t.args.filter(function(L){return!L.literal}).length+(t.dynamicFn?1:0)}for(var K in Y)G[K]||O.push(K);
return{counts:u,ready:O,total:Q}};
gMy=function(Y,G,u,O,Q){G=LJA(Y,G,u,O,Q);if(G===zB)return!1;Q=Q.methodInfo;if(Y.__dataHasAccessor&&Y.__dataHasAccessor[Q])return Y._setPendingProperty(Q,G,!0);Y[Q]=G;return!1};
IKa=function(Y,G,u,O,Q,M,t){u.bindings=u.bindings||[];O={kind:O,target:Q,parts:M,literal:t,isCompound:M.length!==1};u.bindings.push(O);O.target&&O.kind!="attribute"&&O.kind!="text"&&!O.isCompound&&O.parts[0].mode==="{"&&(u=O.parts[0],M=u.negate,O.listenerEvent=u.event||a3(Q)+"-changed",O.listenerNegate=M);Q=G.nodeInfoList.length;for(u=0;u<O.parts.length;u++){var K=O.parts[u];K.compoundIndex=u;M=Y;t=G;var L=O,g=K,P=Q;if(!g.literal)if(L.kind==="attribute"&&L.target[0]==="-")console.warn("Cannot set attribute "+
L.target+' because "-" is not a valid attribute starting character');else for(K=g.dependencies,L={index:P,binding:L,part:g,evaluator:M},g=0;g<K.length;g++)P=K[g],typeof P=="string"&&(P=XHI(P),P.wildcard=!0),M._addTemplatePropertyEffect(t,P.rootProperty,{fn:P$U,info:L,trigger:P})}};
P$U=function(Y,G,u,O,Q,M,t){t=t[Q.index];var K=Q.binding,L=Q.part;M&&L.source&&G.length>L.source.length&&K.kind=="property"&&!K.isCompound&&t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[K.target]?(u=u[G],G=XP(L.source,K.target,G),t._setPendingPropertyOrPath(G,u,!1,!0)&&Y._enqueueClient(t)):(G=Q.evaluator._evaluateBinding(Y,L,G,u,O,M),G!==zB&&(K.isCompound&&(u=t.__dataCompoundStorage[K.target],u[L.compoundIndex]=G,G=u.join("")),K.kind==="attribute"||K.target!=="textContent"&&
(K.target!=="value"||t.localName!=="input"&&t.localName!=="textarea")||(G=G==void 0?"":G),L=G,pj&&(L=pj(L,K.target,K.kind,t)),K.kind=="attribute"?Y._valueToNodeAttribute(t,L,K.target):(K=K.target,t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[K]?t.__readOnly&&t.__readOnly[K]||t._setPendingProperty(K,L)&&Y._enqueueClient(t):Y._setUnmanagedPropertyToNode(t,K,L))))};
k0j=function(Y,G,u){if(u.listenerEvent){var O=u.parts[0];Y.addEventListener(u.listenerEvent,function(Q){var M=u.target,t=O.source,K=O.negate,L=Q.detail,g=L&&L.path;g?(t=XP(M,t,g),Q=L&&L.value):Q=Q.currentTarget[M];G.__readOnly&&G.__readOnly[t]||!G._setPendingPropertyOrPath(t,K?!Q:Q,!0,!!g)||L&&L.queueProperty||G._invalidateProperties()})}};
nMI=function(Y,G,u,O,Q,M){M=G.static||M&&(typeof M!=="object"||M[G.methodName]);Q={methodName:G.methodName,args:G.args,methodInfo:Q,dynamicFn:M};for(var t=0,K=void 0;t<G.args.length&&(K=G.args[t]);t++)K.literal||Y._addPropertyEffect(K.rootProperty,u,{fn:O,info:Q,trigger:K});M&&Y._addPropertyEffect(G.methodName,u,{fn:O,info:Q});return Q};
LJA=function(Y,G,u,O,Q){O=Y._methodHost||Y;var M=O[Q.methodName];if(M)return Y=Y._marshalArgs(Q.args,G,u),Y===zB?zB:M.apply(O,Y);Q.dynamicFn||console.warn("method `"+Q.methodName+"` not defined")};
FJI=function(Y){for(var G="",u=0;u<Y.length;u++)G+=Y[u].literal||"";return G};
mzg=function(Y){if(Y=Y.match(/([^\s]+?)\(([\s\S]*)\)/)){var G={methodName:Y[1],static:!0,args:pHA};return Y[2].trim()?z31(Y[2].replace(/\\,/g,"&comma;").split(","),G):G}return null};
z31=function(Y,G){G.args=Y.map(function(u){u=XHI(u);u.literal||(G.static=!1);return u},this);
return G};
XHI=function(Y){Y=Y.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var G={name:Y,value:"",literal:!1},u=Y[0];u==="-"&&(u=Y[1]);u>="0"&&u<="9"&&(u="#");switch(u){case "'":case '"':G.value=Y.slice(1,-1);G.literal=!0;break;case "#":G.value=Number(Y),G.literal=!0}G.literal||(G.rootProperty=Lj(Y),G.structured=TB(Y),G.structured&&(G.wildcard=Y.slice(-2)==".*",G.wildcard&&(G.name=Y.slice(0,-2))));return G};
WJ4=function(Y,G,u){Y=I3(Y,u);Y===void 0&&(Y=G[u]);return Y};
rVI=function(Y,G,u,O){O={indexSplices:O};mN&&!Y._overrideLegacyUndefined&&(G.splices=O);Y.notifyPath(u+".splices",O);Y.notifyPath(u+".length",G.length);mN&&!Y._overrideLegacyUndefined&&(O.indexSplices=[])};
WD=function(Y,G,u,O,Q,M){rVI(Y,G,u,[{index:O,addedCount:Q,removed:M,object:G,type:"splice"}])};
xzA=function(Y){Y=N4t((Y.body?Y.body:Y).textContent,Y.baseURI);var G=document.createElement("style");G.textContent=Y;return G};
C$I=function(Y){Y=Y.trim().split(/\s+/);for(var G=[],u=0;u<Y.length;u++)G.push.apply(G,_.c8(fKj(Y[u])));return G};
fKj=function(Y){var G=rj.import(Y);if(!G)return console.warn("Could not find style data in module named",Y),[];if(G._styles===void 0){Y=[];Y.push.apply(Y,_.c8(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G)));var u=G.querySelector("template");u&&Y.push.apply(Y,_.c8(yV1(u,G.assetpath)));G._styles=Y}return G._styles};
yV1=function(Y,G){if(!Y._styles){for(var u=[],O=Y.content.querySelectorAll("style"),Q=0;Q<O.length;Q++){var M=O[Q],t=M.getAttribute("include");t&&u.push.apply(u,_.c8(C$I(t).filter(function(K,L,g){return g.indexOf(K)===L})));
G&&(M.textContent=N4t(M.textContent,G));u.push(M)}Y._styles=u}return Y._styles};
e3A=function(Y){return(Y=rj.import(Y))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Y):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(Y){var G=[];Y=Y.querySelectorAll("link[rel=import][type~=css]");for(var u=0;u<Y.length;u++){var O=Y[u];if(O.import){var Q=O.import;if((O=O.hasAttribute("shady-unscoped"))&&!Q._unscopedStyle){var M=xzA(Q);M.setAttribute("shady-unscoped","");Q._unscopedStyle=M}else Q._style||(Q._style=xzA(Q));G.push(O?Q._unscopedStyle:Q._style)}}return G};
oMt=function(Y){Y=Y.trim().split(/\s+/);for(var G="",u=0;u<Y.length;u++)G+=AVg(Y[u]);return G};
AVg=function(Y){var G=rj.import(Y);if(G&&G._cssText===void 0){var u=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G),O=G.querySelector("template");O&&(u+=iyj(O,G.assetpath));G._cssText=u||null}G||console.warn("Could not find style data in module named",Y);return G&&G._cssText||""};
iyj=function(Y,G){var u="";Y=yV1(Y,G);for(G=0;G<Y.length;G++){var O=Y[G];O.parentNode&&O.parentNode.removeChild(O);u+=O.textContent}return u};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(Y){var G="";Y=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Y);for(var u=0;u<Y.length;u++)G+=Y[u].textContent;return G};
xd=function(Y,G){return{index:Y,removed:[],addedCount:G}};
wHU=function(Y,G,u,O){var Q=0,M=0,t=0,K=0,L=Math.min(G-Q,O-M);if(Q==0&&M==0)a:{for(t=0;t<L;t++)if(Y[t]!==u[t])break a;t=L}if(G==Y.length&&O==u.length){K=Y.length;for(var g=u.length,P=0;P<L-t&&R3g(Y[--K],u[--g]);)P++;K=P}Q+=t;M+=t;G-=K;O-=K;if(G-Q==0&&O-M==0)return[];if(Q==G){for(G=xd(Q,0);M<O;)G.removed.push(u[M++]);return[G]}if(M==O)return[xd(Q,G-Q)];L=Q;t=M;O=O-t+1;K=G-L+1;G=Array(O);for(g=0;g<O;g++)G[g]=Array(K),G[g][0]=g;for(g=0;g<K;g++)G[0][g]=g;for(g=1;g<O;g++)for(P=1;P<K;P++)if(Y[L+P-1]===
u[t+g-1])G[g][P]=G[g-1][P-1];else{var I=G[g-1][P]+1,k=G[g][P-1]+1;G[g][P]=I<k?I:k}L=G.length-1;t=G[0].length-1;O=G[L][t];for(Y=[];L>0||t>0;)L==0?(Y.push(2),t--):t==0?(Y.push(3),L--):(K=G[L-1][t-1],g=G[L-1][t],P=G[L][t-1],I=g<P?g<K?g:K:P<K?P:K,I==K?(K==O?Y.push(0):(Y.push(1),O=K),L--,t--):I==g?(Y.push(3),L--,O=g):(Y.push(2),t--,O=P));Y.reverse();G=void 0;L=[];for(t=0;t<Y.length;t++)switch(Y[t]){case 0:G&&(L.push(G),G=void 0);Q++;M++;break;case 1:G||(G=xd(Q,0));G.addedCount++;Q++;G.removed.push(u[M]);
M++;break;case 2:G||(G=xd(Q,0));G.addedCount++;Q++;break;case 3:G||(G=xd(Q,0)),G.removed.push(u[M]),M++}G&&L.push(G);return L};
Zy4=function(Y,G){return wHU(Y,Y.length,G,G.length)};
R3g=function(Y,G){return Y===G};
h3j=function(Y){if(Y instanceof Dzt)return Y.value;throw Error("Jd`"+Y);};
dzY=function(Y,G){for(var u in G)u===null?Y.style.removeProperty(u):Y.style.setProperty(u,G[u])};
byu=function(Y,G){return(Y=window.getComputedStyle(Y).getPropertyValue(G))?Y.trim():""};
V6A=function(Y){requestAnimationFrame(function(){SAt?SAt(Y):(NVt||(NVt=new Promise(function(G){jfI=G}),document.readyState==="complete"?jfI():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&jfI()})),NVt.then(function(){Y&&Y()}))})};
$za=function(Y){lKA=Y&&Y.shimcssproperties?!1:BVT||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
vM4=function(Y){if(!(qA1.indexOf(Y)>-1)&&Y!=="touchend"&&sfa&&cVA&&Uzy)return{passive:!0}};
uUj=function(Y){for(var G=JVI?["click"]:qA1,u=0,O;u<G.length;u++)O=G[u],Y?(YDu.length=0,document.addEventListener(O,Gy1,!0)):document.removeEventListener(O,Gy1,!0)};
fj=function(Y){var G=Y.type;return qA1.indexOf(G)>-1?G==="mousemove"?(G=Y.buttons===void 0?1:Y.buttons,Y instanceof window.MouseEvent&&!Ocg&&(G=QGu[Y.which]||0),!!(G&1)):(Y.button===void 0?0:Y.button)===0:!1};
M5j=function(Y){if(Y.type==="click"){if(Y.detail===0)return!0;var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y);if(!G.nodeType||G.nodeType!==Node.ELEMENT_NODE)return!0;G=G.getBoundingClientRect();var u=Y.pageX;Y=Y.pageY;return!(u>=G.left&&u<=G.right&&Y>=G.top&&Y<=G.bottom)}return!1};
Hc1=function(Y,G,u){Y.movefn=G;Y.upfn=u;document.addEventListener("mousemove",G);document.addEventListener("mouseup",u)};
Cj=function(Y){document.removeEventListener("mousemove",Y.movefn);document.removeEventListener("mouseup",Y.upfn);Y.movefn=null;Y.upfn=null};
EU4=function(Y,G){for(var u=document.elementFromPoint(Y,G),O=u;O&&O.shadowRoot&&!window.ShadyDOM;){var Q=O;O=O.shadowRoot.elementFromPoint(Y,G);if(Q===O)break;O&&(u=O)}return u};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y){var G=t5j(Y);return G.length>0?G[0]:Y.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y){var G=Y.type,u=Y.currentTarget.__polymerGestures;if(u&&(u=u[G])){if(!Y.__polymerGesturesHandled&&(Y.__polymerGesturesHandled={},G.slice(0,5)==="touch")){var O=Y.changedTouches[0];G==="touchstart"&&Y.touches.length===1&&(KK1=O.identifier);if(KK1!==O.identifier)return;sfa||(G==="touchstart"||G==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y)}O=
Y.__polymerGesturesHandled;if(!O.skip){for(var Q=0,M;Q<yb.length;Q++)M=yb[Q],u[M.name]&&!O[M.name]&&M.flow&&M.flow.start.indexOf(Y.type)>-1&&M.reset&&M.reset();for(Q=0;Q<yb.length;Q++)M=yb[Q],u[M.name]&&!O[M.name]&&(O[M.name]=!0,M[G](Y))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y){var G=Y.changedTouches[0],u=Y.type;if(u==="touchstart")aB4=G.clientX,TQA=G.clientY,LKT=!1;else if(u==="touchmove"&&!LKT){LKT=!0;u="auto";for(var O=t5j(Y),Q=0,M;Q<O.length;Q++)if(M=O[Q],M.__polymerGesturesTouchAction){u=M.__polymerGesturesTouchAction;break}O=!1;Q=Math.abs(aB4-G.clientX);G=Math.abs(TQA-G.clientY);Y.cancelable&&(u==="none"?O=!0:u==="pan-x"?O=G>Q:u==="pan-y"&&(O=Q>G));O?Y.preventDefault():
eg("track")}};
o3=function(Y,G,u){return AG[G]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y,G,u),!0):!1};
io=function(Y,G,u){return AG[G]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y,G,u),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y,G,u){var O=AG[G],Q=O.deps,M=O.name,t=Y.__polymerGestures;t||(Y.__polymerGestures=t={});for(var K=0,L,g;K<Q.length;K++)L=Q[K],JVI&&qA1.indexOf(L)>-1&&L!=="click"||((g=t[L])||(t[L]=g={_count:0}),g._count===0&&Y.addEventListener(L,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,vM4(L)),g[M]=(g[M]||0)+1,g._count=(g._count||0)+1);Y.addEventListener(G,u);O.touchAction&&_.R3(Y,O.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y,G,u){var O=AG[G],Q=O.deps;O=O.name;var M=Y.__polymerGestures;if(M)for(var t=0,K,L;t<Q.length;t++)K=Q[t],(L=M[K])&&L[O]&&(L[O]=(L[O]||1)-1,L._count=(L._count||1)-1,L._count===0&&Y.removeEventListener(K,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,vM4(K)));Y.removeEventListener(G,u)};
gUA=function(Y){yb.push(Y);for(var G=0;G<Y.emits.length;G++)AG[Y.emits[G]]=Y};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y){for(var G=0,u;G<yb.length;G++){u=yb[G];for(var O=0,Q;O<u.emits.length;O++)if(Q=u.emits[O],Q===Y)return u}return null};
_.R3=function(Y,G){sfa&&Y instanceof HTMLElement&&wj.run(function(){Y.style.touchAction=G});
Y.__polymerGesturesTouchAction=G};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y,G,u){G=new Event(G,{bubbles:!0,cancelable:!0,composed:!0});G.detail=u;(0,_.FP)(Y).dispatchEvent(G);G.defaultPrevented&&(Y=u.preventer||u.sourceEvent)&&Y.preventDefault&&Y.preventDefault()};
eg=function(Y){Y=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y);Y.info&&(Y.info.prevent=!0)};
ZH=function(Y,G,u,O){G&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,Y,{x:u.clientX,y:u.clientY,sourceEvent:u,preventer:O,prevent:function(Q){return eg(Q)}})};
Xa4=function(Y,G,u){if(Y.prevent)return!1;if(Y.started)return!0;u=Math.abs(Y.y-u);return Math.abs(Y.x-G)>=5||u>=5};
PO1=function(Y,G,u){if(G){var O=Y.moves[Y.moves.length-2],Q=Y.moves[Y.moves.length-1],M=Q.x-Y.x,t=Q.y-Y.y,K=0;if(O){var L=Q.x-O.x;K=Q.y-O.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,"track",{state:Y.state,x:u.clientX,y:u.clientY,dx:M,dy:t,ddx:L,ddy:K,sourceEvent:u,hover:function(){return EU4(u.clientX,u.clientY)}})}};
kyT=function(Y,G,u){var O=Math.abs(G.clientX-Y.x),Q=Math.abs(G.clientY-Y.y),M=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u||G);!M||IBj[M.localName]&&M.hasAttribute("disabled")||!(isNaN(O)||isNaN(Q)||O<=25&&Q<=25||M5j(G))||Y.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M,"tap",{x:G.clientX,y:G.clientY,sourceEvent:G,preventer:u})};
nUI=function(Y,G,u,O,Q){var M;Q&&(M=typeof u==="object"&&u!==null)&&(O=Y.__dataTemp[G]);O=O!==u&&(O===O||u===u);M&&O&&(Y.__dataTemp[G]=u);return O};
paA=function(){if(DH&&!hG){if(!FKU){FKU=!0;var Y=document.createElement("style");Y.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(Y)}return!0}return!1};
mPa=function(){return z4I};
WKI=function(Y,G){z4I=Y;Object.setPrototypeOf(Y,G.prototype);new G;z4I=null};
rru=function(Y,G){for(var u=0;u<G.length;u++){var O=G[u];if(!!Y!=!!O.__hideTemplateChildren__)if(O.nodeType===Node.TEXT_NODE)Y?(O.__polymerTextContent__=O.textContent,O.textContent=""):O.textContent=O.__polymerTextContent__;else if(O.localName==="slot")if(Y)O.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.FP)((0,_.FP)(O).parentNode).replaceChild(O.__polymerReplaced__,O);else{var Q=O.__polymerReplaced__;Q&&(0,_.FP)((0,_.FP)(Q).parentNode).replaceChild(O,Q)}else O.style&&(Y?(O.__polymerDisplay__=
O.style.display,O.style.display="none"):O.style.display=O.__polymerDisplay__);O.__hideTemplateChildren__=Y;O._showHideChildren&&O._showHideChildren(Y)}};
xPa=function(Y){return(Y=Y.__dataHost)&&Y._methodHost||Y};
yrt=function(Y,G,u){var O=u.mutableData?fBT:dj;bo.mixin&&(O=bo.mixin(O));var Q=function(){return O.apply(this,arguments)||this};
_.m(Q,O);Q.prototype.__templatizeOptions=u;Q.prototype._bindTemplate(Y);COj(Q,Y,G,u);return Q};
R4j=function(Y,G,u,O){var Q=u.forwardHostProp;if(Q&&G.hasHostProps){var M=Y.localName=="template",t=G.templatizeTemplateClass;if(!t){if(M){var K=u.mutableData?e4I:Arg;t=function(){return K.apply(this,arguments)||this};
_.m(t,K);t=G.templatizeTemplateClass=t}else{var L=Y.constructor;t=function(){return L.apply(this,arguments)||this};
_.m(t,L);t=G.templatizeTemplateClass=t}var g=G.hostProps,P;for(P in g)t.prototype._addPropertyEffect("_host_"+P,t.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:oUj(Q)}),t.prototype._createNotifyingProperty("_host_"+P);Sg&&O&&icA(G,u,O)}Y.__dataProto&&Object.assign(Y.__data,Y.__dataProto);if(M)WKI(Y,t),Y.__dataTemp={},Y.__dataPending=null,Y.__dataOld=null,Y._enableProperties();else{Object.setPrototypeOf(Y,t.prototype);G=G.hostProps;for(var I in G)I="_host_"+I,I in Y&&(G=Y[I],delete Y[I],Y.__data[I]=
G)}}};
oUj=function(Y){return function(G,u,O){Y.call(G.__templatizeOwner,u.substring(6),O[u])}};
COj=function(Y,G,u,O){var Q=u.hostProps||{},M;for(M in O.instanceProps){delete Q[M];var t=O.notifyInstanceProp;t&&Y.prototype._addPropertyEffect(M,Y.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:wa4(t)})}if(O.forwardHostProp&&G.__dataHost)for(var K in Q)u.hasHostProps||(u.hasHostProps=!0),Y.prototype._addPropertyEffect(K,Y.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ZcA()})};
wa4=function(Y){return function(G,u,O){Y.call(G.__templatizeOwner,G,u,O[u])}};
ZcA=function(){return function(Y,G,u){Y.__dataHost._setPendingPropertyOrPath("_host_"+G,u[G],!0,!0)}};
bo=function(Y,G,u){if(N2&&!xPa(Y))throw Error("Pd");u=u||{};if(Y.__templatizeOwner)throw Error("Qd");Y.__templatizeOwner=G;var O=(G?G.constructor:dj)._parseTemplate(Y),Q=O.templatizeInstanceClass;Q||(Q=yrt(Y,O,u),O.templatizeInstanceClass=Q);var M=xPa(Y);R4j(Y,O,u,M);u=function(){return Q.apply(this,arguments)||this};
_.m(u,Q);u.prototype._methodHost=M;u.prototype.__dataHost=Y;u.prototype.__templatizeOwner=G;u.prototype.__hostProps=O.hostProps;return u};
icA=function(Y,G,u){u=u.constructor._properties;Y=Y.propertyEffects;G=G.instanceProps;for(var O in Y)if(!(u[O]||G&&G[O]))for(var Q=Y[O],M=0;M<Q.length;M++){var t=Q[M].info.part;if(!t.signature||!t.signature.static){console.warn("Property '"+O+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
DPt=function(Y,G){for(var u;G;)if(u=G.__dataHost?G:G.__templatizeInstance)if(u.__dataHost!=Y)G=u.__dataHost;else return u;else G=(0,_.FP)(G).parentNode;return null};
jg=function(Y){return Y.localName==="slot"};
h4j=function(){for(var Y=Vb.prototype,G="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),u={},O=0;O<G.length;u={method$jscomp$33:void 0},O++)u.method$jscomp$33=G[O],Y[u.method$jscomp$33]=function(Q){return function(){return this.node[Q.method$jscomp$33].apply(this.node,arguments)}}(u)};
dPy=function(Y,G){for(var u={},O=0;O<G.length;u={name$jscomp$450:void 0},O++)u.name$jscomp$450=G[O],Object.defineProperty(Y,u.name$jscomp$450,{get:function(Q){return function(){return this.node[Q.name$jscomp$450]}}(u),
configurable:!0})};
bc4=function(){for(var Y=Vb.prototype,G=["textContent","innerHTML","className"],u={},O=0;O<G.length;u={name$jscomp$451:void 0},O++)u.name$jscomp$451=G[O],Object.defineProperty(Y,u.name$jscomp$451,{get:function(Q){return function(){return this.node[Q.name$jscomp$451]}}(u),
set:function(Q){return function(M){this.node[Q.name$jscomp$451]=M}}(u),
configurable:!0})};
SD4=function(){lo=document.documentElement.getAttribute("dir");lo=document.documentElement.getAttribute("dir");for(var Y=0;Y<BD.length;Y++){var G=BD[Y];G.__autoDirOptOut||G.setAttribute("dir",lo)}};
lBA=function(){$d=!0;requestAnimationFrame(function(){$d=!1;NQY(jGu);setTimeout(function(){for(var Y=0,G=q2.length;Y<G;Y++)V5t(q2.shift())})})};
NQY=function(Y){for(;Y.length;)V5t(Y.shift())};
V5t=function(Y){var G=Y[0],u=Y[1];Y=Y[2];try{u.apply(G,Y)}catch(O){setTimeout(function(){throw O;})}};
_.BQI=function(Y,G,u){$d||lBA();jGu.push([Y,G,u])};
_.sk=function(Y,G,u){$d||lBA();q2.push([Y,G,u])};
sGY=function(Y,G){G=G===void 0?!1:G;if(!$PA||!qD4||!$PA.handlesDynamicScoping)return null;var u=qD4.ScopingShim;if(!u)return null;var O=u.scopeForNode(Y),Q=(0,_.FP)(Y).getRootNode(),M=function(t){if((0,_.FP)(t).getRootNode()===Q){var K=Array.from($PA.nativeMethods.querySelectorAll.call(t,"*"));K.push(t);for(t=0;t<K.length;t++){var L=K[t];if((0,_.FP)(L).getRootNode()===Q){var g=u.currentScopeForNode(L);g!==O&&(g!==""&&u.unscopeNode(L,g),u.scopeNode(L,O))}}}};
M(Y);return G?(G=new MutationObserver(function(t){for(var K=0;K<t.length;K++)for(var L=t[K],g=0;g<L.addedNodes.length;g++){var P=L.addedNodes[g];P.nodeType===Node.ELEMENT_NODE&&M(P)}}),G.observe(Y,{childList:!0,
subtree:!0}),G):null};
crt=function(){document.body.removeAttribute("unresolved")};
GwT=function(Y){var G=Y=Y.replace(UPu,"").replace(vUt,""),u=new JrI;u.start=0;u.end=G.length;for(var O=u,Q=0,M=G.length;Q<M;Q++)if(G[Q]==="{"){O.rules||(O.rules=[]);var t=O,K=t.rules[t.rules.length-1]||null;O=new JrI;O.start=Q+1;O.parent=t;O.previous=K;t.rules.push(O)}else G[Q]==="}"&&(O.end=Q+1,O=O.parent||u);return YSg(u,Y)};
YSg=function(Y,G){var u=G.substring(Y.start,Y.end-1);Y.parsedCssText=Y.cssText=u.trim();Y.parent&&(u=G.substring(Y.previous?Y.previous.end:Y.parent.start,Y.start-1),u=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(u),u=u.replace(u8g," "),u=u.substring(u.lastIndexOf(";")+1),u=Y.parsedSelector=Y.selector=u.trim(),Y.atRule=u.indexOf("@")===0,Y.atRule?u.indexOf("@media")===0?Y.type=4:u.match(OuA)&&(Y.type=7,Y.keyframesName=Y.selector.split(u8g).pop()):u.indexOf("--")===
0?Y.type=1E3:Y.type=1);if(u=Y.rules)for(var O=0,Q=u.length,M=void 0;O<Q&&(M=u[O]);O++)YSg(M,G);return Y};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(Y){return Y.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var G=arguments[1],u=6-G.length;u--;)G="0"+G;return"\\"+G})};
Q9g=function(Y,G,u){u=u===void 0?"":u;var O="";if(Y.cssText||Y.rules){var Q=Y.rules;if(Q&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Q))for(var M=0,t=Q.length,K=void 0;M<t&&(K=Q[M]);M++)O=Q9g(K,G,O);else G?G=Y.cssText:(G=Y.cssText,G=G.replace(MqA,"").replace(Hug,""),G=G.replace(ESj,"").replace(tq1,"")),(O=G.trim())&&(O="  "+O+"\n")}O&&(Y.selector&&(u+=Y.selector+" {\n"),u+=O,Y.selector&&(u+="}\n\n"));return u};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(Y){Y=Y[0];return!!Y&&!!Y.selector&&Y.selector.indexOf("--")===0};
a0I=function(Y){if(Y=KG1[Y])Y._applyShimCurrentVersion=Y._applyShimCurrentVersion||0,Y._applyShimValidatingVersion=Y._applyShimValidatingVersion||0,Y._applyShimNextVersion=(Y._applyShimNextVersion||0)+1};
T0T=function(Y){return Y._applyShimCurrentVersion===Y._applyShimNextVersion};
gSI=function(Y){Y._applyShimValidatingVersion=Y._applyShimNextVersion;Y._validating||(Y._validating=!0,LGt.then(function(){Y._applyShimCurrentVersion=Y._applyShimNextVersion;Y._validating=!1}))};
PTy=function(Y){if(!Y)return"";typeof Y==="string"&&(Y=GwT(Y));return Q9g(Y,XGT)};
I0T=function(Y){!Y.__cssRules&&Y.textContent&&(Y.__cssRules=GwT(Y.textContent));return Y.__cssRules||null};
nSA=function(Y,G,u,O){if(Y){var Q=!1,M=Y.type;if(O&&M===4){var t=Y.selector.match(kwI);t&&(window.matchMedia(t[1]).matches||(Q=!0))}M===1?G(Y):u&&M===7?u(Y):M===1E3&&(Q=!0);if((Y=Y.rules)&&!Q)for(Q=0,M=Y.length,t=void 0;Q<M&&(t=Y[Q]);Q++)nSA(t,G,u,O)}};
FGy=function(Y,G){var u=Y.indexOf("var(");if(u===-1)return G(Y,"","","");a:{var O=0;var Q=u+3;for(var M=Y.length;Q<M;Q++)if(Y[Q]==="(")O++;else if(Y[Q]===")"&&--O===0)break a;Q=-1}O=Y.substring(u+4,Q);u=Y.substring(0,u);Y=FGy(Y.substring(Q+1),G);M=O.indexOf(",");if(M===-1)return G(u,O.trim(),"",Y);Q=O.substring(0,M).trim();O=O.substring(M+1).trim();return G(u,Q,O,Y)};
pGt=function(Y){if(cD!==void 0)return cD;if(Y.__cssBuild===void 0){var G=Y.getAttribute("css-build");if(G)Y.__cssBuild=G;else{a:{G=Y.localName==="template"?Y.content.firstChild:Y.firstChild;if(G instanceof Comment&&(G=G.textContent.trim().split(":"),G[0]==="css-build")){G=G[1];break a}G=""}if(G!==""){var u=Y.localName==="template"?Y.content.firstChild:Y.firstChild;u.parentNode.removeChild(u)}Y.__cssBuild=G}}return Y.__cssBuild||""};
m1T=function(Y,G,u,O){for(var Q=G._noAccessors,M=Object.getOwnPropertyNames(G),t=0;t<M.length;t++){var K=M[t];if(!(K in O))if(Q)Y[K]=G[K];else{var L=Object.getOwnPropertyDescriptor(G,K);L&&(L.configurable=!0,Object.defineProperty(Y,K,L))}}for(var g in z$4)G[g]&&(u[g]=u[g]||[],u[g].push(G[g]))};
WGY=function(Y,G,u){G=G||[];for(var O=Y.length-1;O>=0;O--){var Q=Y[O];Q?Array.isArray(Q)?WGY(Q,G):G.indexOf(Q)<0&&(!u||u.indexOf(Q)<0)&&G.unshift(Q):console.warn("behavior is null, check for missing or 404 import")}return G};
rmA=function(Y,G){for(var u in G){var O=Y[u],Q=G[u];Y[u]=!("value"in Q)&&O&&"value"in O?Object.assign({value:O.value},Q):Q}};
CTI=function(Y,G,u){var O={},Q=function(){return G.apply(this,arguments)||this};
_.m(Q,G);Q._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(t)for(var L=0,g;L<t.length;L++)g=t[L],g.properties&&this.createProperties(g.properties),g.observers&&this.createObservers(g.observers,g.properties);Y.properties&&this.createProperties(Y.properties);Y.observers&&this.createObservers(Y.observers,Y.properties);this._prepareTemplate()}else G._finalizeClass.call(this)};
Q.prototype.created=function(){G.prototype.created.call(this);var L=O.created;if(L)for(var g=0;g<L.length;g++)L[g].call(this)};
Q.prototype._registered=function(){var L=Q.prototype;if(!L.hasOwnProperty("__hasRegisterFinished")){L.__hasRegisterFinished=!0;G.prototype._registered.call(this);DH&&K(L);L=Object.getPrototypeOf(this);var g=O.beforeRegister;if(g)for(var P=0;P<g.length;P++)g[P].call(L);if(g=O.registered)for(P=0;P<g.length;P++)g[P].call(L)}};
Q.prototype._applyListeners=function(){G.prototype._applyListeners.call(this);var L=O.listeners;if(L)for(var g=0;g<L.length;g++){var P=L[g];if(P)for(var I in P)this._addMethodEventListenerToNode(this,I,P[I])}};
Q.prototype._ensureAttributes=function(){var L=O.hostAttributes;if(L)for(var g=L.length-1;g>=0;g--){var P=L[g],I;for(I in P)this._ensureAttribute(I,P[I])}G.prototype._ensureAttributes.call(this)};
Q.prototype.ready=function(){G.prototype.ready.call(this);var L=O.ready;if(L)for(var g=0;g<L.length;g++)L[g].call(this)};
Q.prototype.attached=function(){G.prototype.attached.call(this);var L=O.attached;if(L)for(var g=0;g<L.length;g++)L[g].call(this)};
Q.prototype.detached=function(){G.prototype.detached.call(this);var L=O.detached;if(L)for(var g=0;g<L.length;g++)L[g].call(this)};
Q.prototype.attributeChanged=function(L,g,P){G.prototype.attributeChanged.call(this);var I=O.attributeChanged;if(I)for(var k=0;k<I.length;k++)I[k].call(this,L,g,P)};
_.Uk.Object.defineProperties(Q,{properties:{configurable:!0,enumerable:!0,get:function(){var L={};if(t)for(var g=0;g<t.length;g++)rmA(L,t[g].properties);rmA(L,Y.properties);return L}},
observers:{configurable:!0,enumerable:!0,get:function(){var L=[];if(t)for(var g=0,P;g<t.length;g++)P=t[g],P.observers&&(L=L.concat(P.observers));Y.observers&&(L=L.concat(Y.observers));return L}}});
if(u){Array.isArray(u)||(u=[u]);var M=G.prototype.behaviors;var t=WGY(u,null,M);Q.prototype.behaviors=M?M.concat(u):t}var K=function(L){if(t)for(var g=t,P=0;P<g.length;P++)m1T(L,g[P],O,x1T);m1T(L,Y,O,f0A)};
DH||K(Q.prototype);Q.generatedFrom=Y;return Q};
oSt=function(Y){var G=typeof Y!=="string"?Y:{is:Y,notifyObserversOnUndefined:!0};G.fastInit===void 0&&(G.fastInit=!0);return function(u){if(!G.disableInheritanceCheck&&Object.getPrototypeOf(u.prototype).constructor!==_.vD)throw Error("Ud");var O=u.prototype;O.is=G.is;DFy(O,"created",function(){this.hostElement=this;this.polymerController=this});
ymj(O,u,G.fastInit);G.notifyObserversOnUndefined&&(O._overrideLegacyUndefined=!0);if(e$y)for(var Q=_.E(Object.getOwnPropertyNames(O)),M=Q.next();!M.done;M=Q.next()){M=M.value;var t=Object.getOwnPropertyDescriptor(O,M);t.enumerable===!1&&(t.enumerable=!0,Object.defineProperty(O,M,t))}if("template"in u)var K=function(){return u.template};
else G.template!==void 0&&(K=G.template);if(K!==void 0){var L;Object.defineProperty(O,"_template",{get:function(){L===void 0&&(L=K());return L},
set:function(g){L=g},
configurable:!0,enumerable:!0})}Polymer(O);u[Am1]=O}};
iug=function(Y){Y=Y===void 0?{}:Y;Y.fastInit===void 0&&(Y.fastInit=!0);return function(G){if(!Y.disableInheritanceCheck&&Object.getPrototypeOf(G.prototype).constructor!==JG)throw Error("Vd");ymj(G.prototype,G,Y.fastInit)}};
ymj=function(Y,G,u){u=u===void 0?!1:u;R$U(G);u?DFy(Y,"created",function(){this.disableEnforceFastDefaultValuesCheck||wGt(G,this)}):DFy(Y,"ready",function(){for(var O={},Q=_.E(h8A(this.behaviors)),M=Q.next();!M.done;M=Q.next())M=M.value,M.properties&&Object.assign(O,Zu1(this,M.properties));
Object.assign(O,Zu1(this,this.properties));wGt(G,this);Q=_.E(Object.keys(O));for(M=Q.next();!M.done;M=Q.next())M=M.value,this[M]=O[M]})};
wGt=function(Y,G){if(e$y){Y=new Y;for(var u=_.E(Object.getOwnPropertyNames(Y)),O=u.next();!O.done;O=u.next())O=O.value,G[O]=Y[O];for(u=G;u&&u!==Object.prototype;u=Object.getPrototypeOf(u)){O=_.E(Object.getOwnPropertyNames(u));for(var Q=O.next();!Q.done;Q=O.next())Q=Q.value,Y.hasOwnProperty(Q)||Object.defineProperty(Y,Q,D11(G,Q))}}else Y.apply(G)};
D11=function(Y,G){return{get:function(){var u=Y[G];return u instanceof Function?u.bind(Y):u},
set:function(u){Y[G]=u}}};
Zu1=function(Y,G){if(!G)return{};for(var u={},O=_.E(Object.keys(G)),Q=O.next();!Q.done;Q=O.next())if(Q=Q.value,!G[Q].readOnly){var M=Y[Q];M!==void 0&&(u[Q]=M)}return u};
R$U=function(Y){var G=new Y;Y=Y.prototype.properties||{};for(var u=_.E(Object.keys(Y)),O=u.next();!O.done;O=u.next())if(O=O.value,G.hasOwnProperty(O)){var Q=Y[O];typeof Q==="function"&&(Y[O]=Q={type:Q});G[O]!=null&&Q.type===Object&&(Q.type=h$4(G[O].constructor))}};
h$4=function(Y){for(var G=_.E(d1a),u=G.next();!u.done;u=G.next())if(u=u.value,Y===u)return u;return Object};
buj=function(Y){return function(G,u){G.behaviors=G.behaviors||[];G.behaviors.push(Y||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",G,u).prototype:void 0));Object.defineProperty(G,u,{get:function(){return this},
enumerable:!0,configurable:!0})}};
SSt=function(Y){Y=Y===void 0?{}:Y;return function(G,u){G.properties=G.properties||{};Y.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Y.type=h$4(Reflect.getMetadata("design:type",G,u)):Y.type=String);var O=Y,Q=G.properties[u];G.properties[u]=Q?Object.assign({},Q,O):O}};
N04=function(Y){return function(G,u){G.listeners=G.listeners||{};G.listeners[Y]=u}};
j9U=function(){var Y=_.vs.apply(0,arguments);if(Y.length===0)throw Error("Wd");return function(G,u){G.observers=G.observers||[];G.observers.push(u+"("+Y.join(",")+")")}};
VqA=function(){var Y=_.vs.apply(0,arguments);return function(G,u,O){var Q=Object.getOwnPropertyDescriptor(G,u).get,M="__compute__"+u;Object.defineProperty(G,M,{value:Q,enumerable:!0});G.properties=G.properties||{};Q=G.properties[u];Q||(Q={},G.properties[u]=Q);Q.computed=M+"("+Y.join(",")+")";O.get=void 0}};
_.GN=function(Y,G,u){_.Ey.call(this);this.JSC$11645_id_=null;this.usingListeners_=!1;this.JSC$11645_listener_=Y;this.handler_=u;this.JSC$11645_win_=G||window;this.callback_=(0,_.tP)(this.JSC$11647_doAction_,this)};
B0j=function(Y){var G=l0t(Y);if(!G)throw Error("Xd`"+Y);return G};
l0t=function(Y){var G={};Y=String(Y);var u=Y.charAt(0)=="#"?Y:"#"+Y;if($1U.test(u))return G.hex=qSI(u),G.type="hex",G;u=s9U(Y);return u.length?(G.hex=cmg(u[0],u[1],u[2]),G.type="rgb",G):U1j&&(Y=U1j[Y.toLowerCase()])?(G.hex=Y,G.type="named",G):null};
qSI=function(Y){if(!$1U.test(Y))throw Error("Zd`"+Y);Y.length==4&&(Y=Y.replace(vS1,"#$1$1$2$2$3$3"));return Y.toLowerCase()};
Jmy=function(Y){Y=qSI(Y);Y=parseInt(Y.slice(1),16);return[Y>>16,Y>>8&255,Y&255]};
cmg=function(Y,G,u){Y=Number(Y);G=Number(G);u=Number(u);if(Y!=(Y&255)||G!=(G&255)||u!=(u&255))throw Error("$d`"+Y+"`"+G+"`"+u);G=Y<<16|G<<8|u;return Y<16?"#"+(16777216|G).toString(16).slice(1):"#"+G.toString(16)};
s9U=function(Y){var G=Y.match(YRI);if(G){Y=Number(G[1]);var u=Number(G[2]);G=Number(G[3]);if(Y>=0&&Y<=255&&u>=0&&u<=255&&G>=0&&G<=255)return[Y,u,G]}return[]};
Gjt=function(){};
ul=function(Y){this.range_=Y};
Ot=function(Y){this.range_=Y};
Qv=function(Y){this.range_=Y};
u_1=function(Y){return _.Mt?new Qv(Y):_.Hc?new Ot(Y):new ul(Y)};
OVy=function(){var Y=HF().JSC$9647_document_;return!!(Y.webkitIsFullScreen||Y.mozFullScreen||Y.msFullscreenElement||Y.fullscreenElement)};
_.Et=function(){var Y=window.getSelection();return Y&&QOy(Y)};
QOy=function(Y){var G=!1;if(Y.createRange)try{var u=Y.createRange()}catch(Q){return null}else if(Y.rangeCount){if(Y.rangeCount>1){u=new to;G=Y.rangeCount;for(var O=0;O<G;O++)u.browserRanges_.push(Y.getRangeAt(O));return u}u=Y.getRangeAt(0);G=MIy(Y.anchorNode,Y.anchorOffset,Y.focusNode,Y.focusOffset)}else return null;return HVy(u_1(u),G)};
_.an=function(Y,G){return _.KA(Y,G,Y,G)};
_.TN=function(Y,G,u,O){return _.KA(Y,G,u,O)};
MIy=function(Y,G,u,O){if(Y==u)return O<G;var Q;if(Y.nodeType==1&&G)if(Q=Y.childNodes[G])Y=Q,G=0;else if(_.hP(Y,u))return!0;if(u.nodeType==1&&O)if(Q=u.childNodes[O])u=Q,O=0;else if(_.hP(u,Y))return!1;return(E5T(Y,u)||G-O)>0};
LA=function(Y,G,u){_.Ey.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=Y;this.scrollTimer_=new _.gU(50);this.JSC$11724_eventHandler_=new _.ae(this);this.scrollDelta_=new _.AD;this.containerIsActuallyContent_=Y.tagName==="BODY"||Y.tagName==="HTML";this.containerBounds_=tI1(Y);this.containerIsActuallyContent_&&(Y=_.QF(),this.containerBounds_.height=Y.height,this.containerBounds_.width=Y.width);this.margin_=G||0;if(G){if(G=this.containerBounds_.clone(),Y=this.margin_){var O=
Math.min(Y,G.height*.25);G.top+=O;G.height-=2*O;Y=Math.min(Y,G.width*.25);G.left+=Y;G.width-=2*Y}}else G=this.containerBounds_;this.scrollBounds_=G;u||this.JSC$11724_eventHandler_.listen(_.nm(this.containerNode_),"mousemove",this.JSC$11726_onMouseMove);this.JSC$11724_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11726_onTick_)};
KVj=function(){};
auT=function(Y){return Y%10==1&&Y%100!=11?"one":Y%10==2&&Y%100!=12?"two":Y%10==3&&Y%100!=13?"few":"other"};
TfU=function(Y,G){var u=Y|0;if(void 0===G){G=Math;var O=G.min,Q=Y+"",M=Q.indexOf(".");G=O.call(G,M===-1?0:Q.length-M-1,3)}O=Math.pow(10,G);Y={v:G,f:(Y*O|0)%O};return u==1&&Y.v==0?"one":"other"};
LVt=function(Y,G,u,O,Q,M,t,K){this.x0=Y;this.y0=G;this.x1=u;this.y1=O;this.x2=Q;this.y2=M;this.x3=t;this.y3=K};
X1=function(){_.C7.call(this);this.JSC$11807_name_="closure_frame"+g5t++;this.iframesForDisposal_=[];Xpt[this.JSC$11807_name_]=this};
_.Pc=function(Y){this.errorMessage_=null;this.result_=[];this.JSC$11811_buffer_="";this.stack_=[];this.JSC$11811_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!Y||!Y.deliverMessageAsRawString)};
_.In=function(Y){this.mechanism=Y};
kT=function(Y,G){this.JSC$11818_key_=Y;this.JSC$11818_value_=G};
_.nA=function(Y,G){this.JSC$11824_map_={};this.JSC$11824_keys_=[];this.version_=this.size=0;var u=arguments.length;if(u>1){if(u%2)throw Error("na");for(var O=0;O<u;O+=2)this.set(arguments[O],arguments[O+1])}else Y&&this.addAll(Y)};
IuU=function(){this.JSC$11827_map_=new _.nA;this.JSC$11827_head_=new PJA("");this.JSC$11827_head_.next=this.JSC$11827_head_.prev=this.JSC$11827_head_};
n5j=function(Y){if(Y>=55296&&Y<=57343||Y>1114111)return"\ufffd";Y in kjA&&(Y=kjA[Y]);var G="";Y>65535&&(Y-=65536,G+=String.fromCharCode(Y>>>10&1023|55296),Y=56320|Y&1023);return G+=String.fromCharCode(Y)};
FVT=function(Y,G){return Y<G?1:-1};
zbA=function(){return function(Y){return Y.charAt(1)==="#"?Y.charAt(2)==="X"||Y.charAt(2)==="x"?n5j(parseInt(Y.substr(3),16)):n5j(parseInt(Y.substr(2),10)):pp4[Y.slice(1,-1)]}};
rE4=function(Y){return Y.slice(1,Y.length-1).trim().replace(mO1,function(G){return WVA[G]||" "})};
F1=function(Y){return Y===32||Y===9};
pA=function(Y,G){return G<Y.length?Y.charCodeAt(G):-1};
xOY=function(Y){for(;Y;){if(Y._lastLineBlank)return!0;var G=Y.type;if(G==="list"||G==="item")Y=Y._lastChild;else break}return!1};
zN=function(Y){if(fua.test(Y)){var G=1,u=0,O=0;for(Y[u]=="|"&&u++;u<Y.length;){switch(Y[u]){case "|":O=1;break;case " ":break;case "\t":break;default:O&&(O=0,G++)}u++}return CJY.test(Y)?-G:G}return 0};
yEa=function(Y){return Y=="table"||Y=="row"||Y=="cell"};
ebA=function(){return new Wc("document",[[1,1],[0,0]])};
AEj=function(){};
ra=function(){var Y={safe:!1};Y=Y||{};Y.softbreak=Y.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=Y};
ZVY=function(Y,G){var u="";if(Y)if(Y=Y.toLowerCase(),Y===" "||o5I.test(Y))u="space";else if(iVa.test(Y))u="esc";else if(Y.length==1){if(!G||Rby.test(Y))u=Y}else u=wpt.test(Y)?Y.replace("arrow",""):Y=="multiply"?"*":Y;return u};
bVj=function(Y,G){var u=Y.hasModifiers;if(G.key)u=ZVY(G.key,u);else if(G.detail&&G.detail.key)u=ZVY(G.detail.key,u);else{u=G.keyIdentifier;var O="";u&&(u in DOj?O=DOj[u]:hbj.test(u)?(u=parseInt(u.replace("U+","0x"),16),O=String.fromCharCode(u).toLowerCase()):O=u.toLowerCase());(u=O)||(u=G.keyCode,O="",Number(u)&&(u>=65&&u<=90?O=String.fromCharCode(32+u):u>=112&&u<=123?O="f"+(u-112+1):u>=48&&u<=57?O=String(u-48):u>=96&&u<=105?O=String(u-96):O=dOj[u]),u=O);u=u||""}return u===Y.key&&(!Y.hasModifiers||
!!G.shiftKey===!!Y.shiftKey&&!!G.ctrlKey===!!Y.ctrlKey&&!!G.altKey===!!Y.altKey&&!!G.metaKey===!!Y.metaKey)};
NfY=function(Y){return Y.length===1?{combo:Y,key:Y,event:"keydown"}:Y.split("+").reduce(function(G,u){var O=u.split(":");u=O[0];O=O[1];u in SR1?(G[SR1[u]]=!0,G.hasModifiers=!0):(G.key=u,G.event=O||"keydown");return G},{combo:Y.split(":").shift()})};
jOY=function(Y){return Y.trim().split(" ").map(function(G){return NfY(G)})};
VIj=function(Y,G){if(Y&&Y.fn){var u=Y.fn;Y.fn=function(){try{u.apply(this,arguments)}catch(O){if(O instanceof xT)console.warn("Argument '"+O.arg+"'"+(G?" for method '"+G+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw O;}}}return Y};
Bfa=function(){var Y=[],G;var u=u||_.lut.length;for(G=0;G<8;G++)Y[G]=_.lut[0|Math.random()*u];return Y.join("")};
$Ou=function(){var Y=_.vs.apply(0,arguments);return Y.length===0?function(G){return G}:Y.length===1?Y[0]:Y.reduce(function(G,u){return function(){return G(u.apply(null,_.c8(_.vs.apply(0,arguments))))}})};
qRA=function(){var Y=_.vs.apply(0,arguments);return function(G){return function(u,O){u=G(u,O);var Q=function(){throw Error("Ge");},M={getState:u.getState,
dispatch:function(t){return Q.apply(null,[t].concat(_.c8(_.vs.apply(1,arguments))))}};
O=Y.map(function(t){return t(M)});
Q=$Ou.apply(null,_.c8(O))(u.dispatch);return Object.assign({},u,{dispatch:Q})}}};
UOY=function(Y){Object.keys(Y).forEach(function(G){var u=Y[G];if(typeof u(void 0,{type:sOA})==="undefined")throw Error("He`"+G);if(typeof u(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+cEA()})==="undefined")throw Error("Ie`"+G+"`"+sOA);})};
fA=function(Y){for(var G=Object.keys(Y),u={},O=0;O<G.length;O++){var Q=G[O];typeof Y[Q]==="function"&&(u[Q]=Y[Q])}var M=Object.keys(u);try{UOY(u)}catch(K){var t=K}return function(K,L){K=K===void 0?{}:K;if(t)throw t;for(var g=!1,P={},I=0;I<M.length;I++){var k=M[I],n=K[k],p=(0,u[k])(n,L);if(typeof p==="undefined")throw K=L&&L.type,Error("Je`"+(K?'"'+String(K)+'"':"(unknown type)")+"`"+k);P[k]=p;g=g||p!==n}return(g=g||M.length!==Object.keys(K).length)?P:K}};
v5j=function(Y,G,u){function O(){if(P)throw Error("Ke");return K}
function Q(n){if(typeof n!=="function")throw Error("Le`"+typeof n);if(P)throw Error("Me");var p=!0;g===L&&(g=L.slice());g.push(n);return function(){if(p){if(P)throw Error("Ne");p=!1;g===L&&(g=L.slice());var W=g.indexOf(n);g.splice(W,1);L=null}}}
function M(n){if(typeof n!=="object"||n===null)var p=!1;else{for(p=n;Object.getPrototypeOf(p)!==null;)p=Object.getPrototypeOf(p);p=Object.getPrototypeOf(n)===p}if(!p)throw Error("Oe`"+typeof n);if(typeof n.type==="undefined")throw Error("Pe");if(P)throw Error("Qe");try{P=!0,K=t(K,n)}finally{P=!1}p=L=g;for(var W=0;W<p.length;W++)(0,p[W])();return n}
if(typeof G==="function"&&typeof u==="function"||typeof u==="function"&&typeof arguments[3]==="function")throw Error("Re");typeof G==="function"&&typeof u==="undefined"&&(u=G,G=void 0);if(typeof u!=="undefined"){if(typeof u!=="function")throw Error("Se`"+typeof u);return u(v5j)(Y,G)}if(typeof Y!=="function")throw Error("Te`"+typeof Y);var t=Y,K=G,L=[],g=L,P=!1;M({type:sOA});var I={},k=(I.dispatch=M,I.subscribe=Q,I.getState=O,I.replaceReducer=function(n){if(typeof n!=="function")throw Error("Ue`"+
typeof n);t=n;M({type:JEg});return k},I[Y94]=function(){var n={};
return n.subscribe=function(p){function W(){p.next&&p.next(O())}
if(typeof p!=="object"||p===null)throw new TypeError("Ve`"+typeof p);W();return{unsubscribe:Q(W)}},n[Y94]=function(){return this},n},I);
return k};
GM1=function(Y){function G(){Q&&(Q=!1,Y());M&&O()}
function u(){requestAnimationFrame(G)}
function O(){var K=Date.now();if(Q){if(K-t<2)return;M=!0}else Q=!0,M=!1,setTimeout(u,20);t=K}
var Q=!1,M=!1,t=0;return O};
CA=function(Y){return typeof Y==="number"?Y:parseFloat(Y)||0};
udu=function(Y){return _.vs.apply(1,arguments).reduce(function(G,u){return G+CA(Y["border-"+u+"-width"])},0)};
Hay=function(Y){if(Oa1[Y])return Oa1[Y];var G=globalThis[Y],u=G.prototype,O=Y in QP4?QP4[Y]:void 0;O=!(!O||!O.every(function(L){var g,P;return!!((g=Object.getOwnPropertyDescriptor(u,L))==null?0:(P=g.get)==null?0:P.toString().includes("[native code]"))}));
var Q=Y in MbT?MbT[Y]:void 0;Q=!(!Q||!Q.every(function(L){var g;return typeof u[L]==="function"&&((g=u[L])==null?void 0:g.toString().includes("[native code]"))}));
if(O&&Q&&!globalThis.Zone)return Oa1[Y]=G.prototype;try{var M=document.createElement("iframe");document.body.appendChild(M);var t=M.contentWindow;if(!t)return G.prototype;var K=t[Y].prototype;document.body.removeChild(M);return K?Oa1[Y]=K:u}catch(L){return u}};
yv=function(Y,G,u){var O=Y+"."+String(u);if(EDj[O])return EDj[O].call(G);Y=Hay(Y);var Q;Y=(Q=Object.getOwnPropertyDescriptor(Y,u))==null?void 0:Q.get;if(!Y)return G[u];EDj[O]=Y;return Y.call(G)};
Kjj=function(Y,G){var u="Node."+String(G);if(tbu[u])return tbu[u].bind(Y);var O=Hay("Node")[G];if(typeof O!=="function")return Y[G];tbu[u]=O;return O.bind(Y)};
e9=function(Y,G,u){try{if(!(G in Y))return function(){};
var O=Y[G],Q=u(O);typeof Q==="function"&&(Q.prototype=Q.prototype||{},Object.defineProperties(Q,{__rrweb_original__:{enumerable:!1,value:O}}));Y[G]=Q;return function(){Y[G]=O}}catch(M){return function(){}}};
il=function(Y){var G=Y&&"host"in Y&&"mode"in Y&&Ao(Y)||null;return!!(G&&"shadowRoot"in G&&on(G)===Y)};
Rn=function(Y){return Object.prototype.toString.call(Y)==="[object ShadowRoot]"};
aJI=function(Y){Y.includes(" background-clip: text;")&&!Y.includes(" -webkit-background-clip: text;")&&(Y=Y.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return Y};
LjT=function(Y){try{var G=Y.rules||Y.cssRules;if(!G)return null;var u=Y.href;!u&&Y.ownerNode&&(u=Y.ownerNode.baseURI);var O=Array.from(G,function(Q){return Tdj(Q,u)}).join("");
return aJI(O)}catch(Q){return null}};
Tdj=function(Y,G){if("styleSheet"in Y){try{var u;if(!(u=LjT(Y.styleSheet))){var O=Y.cssText;if(O.split('"').length<3)u=O;else{var Q=["@import","url("+JSON.stringify(Y.href)+")"];Y.layerName===""?Q.push("layer"):Y.layerName&&Q.push("layer("+Y.layerName+")");Y.supportsText&&Q.push("supports("+Y.supportsText+")");Y.media.length&&Q.push(Y.media.mediaText);u=Q.join(" ")+";"}}var M=u}catch(t){M=Y.cssText}return Y.styleSheet.href?gDy(M,Y.styleSheet.href):M}M=Y.cssText;"selectorText"in Y&&Y.selectorText.includes(":")&&
(M=M.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return G?gDy(M,G):M};
XvA=function(Y){var G=Y.element;var u=Y.maskInputOptions;var O=Y.tagName;var Q=Y.type;var M=Y.value;Y=Y.maskInputFn;M=M||"";Q=Q&&Q.toLowerCase();if(u[O.toLowerCase()]||Q&&u[Q])M=Y?Y(M,G):"*".repeat(M.length);return M};
PuU=function(Y){var G=Y.getContext("2d");if(!G)return!0;for(var u=0;u<Y.width;u+=50)for(var O=0;O<Y.height;O+=50){var Q=G.getImageData;if((new Uint32Array(("__rrweb_original__"in Q?Q.__rrweb_original__:Q).call(G,u,O,Math.min(50,Y.width-u),Math.min(50,Y.height-O)).data.buffer)).some(function(M){return M!==0}))return!1}return!0};
IJT=function(Y){var G=Y.type;return Y.hasAttribute("data-rr-is-password")?"password":G?G.toLowerCase():null};
kMA=function(Y){try{var G=new URL(Y,window.location.href)}catch(Q){return null}var u,O;return(O=(u=G.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:u[1])!=null?O:null};
gDy=function(Y,G){return(Y||"").replace(nDj,function(u,O,Q,M,t,K){Q=Q||t||K;O=O||M||"";if(!Q)return u;if(Fjj.test(Q)||pvj.test(Q)||zWt.test(Q))return"url("+O+Q+O+")";if(Q[0]==="/")return u=G.indexOf("//")>-1?G.split("/").slice(0,3).join("/"):G.split("/")[0],u=u.split("?")[0],"url("+O+(u+Q)+O+")";u=G.split("/");M=Q.split("/");u.pop();M=_.E(M);for(Q=M.next();!Q.done;Q=M.next())Q=Q.value,Q!=="."&&(Q===".."?u.pop():u.push(Q));return"url("+O+u.join("/")+O+")"})};
m$4=function(Y,G){return(G=G===void 0?!1:G)?Y.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):Y.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
Wju=function(Y,G){var u=u===void 0?!1:u;G=Array.from(G.childNodes);var O=[],Q=0;if(G.length>1&&Y&&typeof Y==="string")for(var M=m$4(Y,u),t=M.length/Y.length,K=1;K<G.length;K++)if(G[K].textContent&&typeof G[K].textContent==="string"){for(var L=m$4(G[K].textContent,u),g=3;g<L.length&&(L[g].match(/[a-zA-Z0-9]/)||L.indexOf(L.substring(0,g),1)!==-1);g++);for(;g<L.length;g++){var P=L.substring(0,g),I=M.split(P),k=-1;if(I.length===2)k=I[0].length;else if(I.length>2&&I[0]===""&&G[K-1].textContent!=="")k=
M.indexOf(P,1);else if(I.length===1){P=P.substring(0,P.length-1);I=M.split(P);if(I.length<=1)return O.push(Y),O;g=101}else g===L.length-1&&(k=M.indexOf(P));if(I.length>=2&&g>100){var n=G[K-1].textContent;n&&typeof n==="string"&&(k=M.indexOf(P,m$4(n).length));k===-1&&(k=I[0].length)}if(k!==-1){for(L=Math.floor(k/t);L>0&&L<Y.length;){Q+=1;if(Q>50*G.length)return O.push(Y),O;g=m$4(Y.substring(0,L),u);if(g.length===k){O.push(Y.substring(0,L));Y=Y.substring(L);M=M.substring(k);break}else L=g.length<k?
L+Math.max(1,Math.floor((k-g.length)/t)):L-Math.max(1,Math.floor((g.length-k)*t))}break}}}O.push(Y);return O};
x$u=function(){return rtT++};
CuI=function(Y){if(Y instanceof HTMLFormElement)return"form";Y=Y.tagName.toLowerCase();return fJT.test(Y)?"div":Y};
oDg=function(Y,G){function u(g){return(g=g.exec(G.substring(O)))?(g=g[0],O+=g.length,g):""}
if(G.trim()==="")return G;for(var O=0,Q=[];;){u(ytt);if(O>=G.length)break;var M=u(eWI);if(M.slice(-1)===",")M=AtA(Y,M.substring(0,M.length-1)),Q.push(M);else{var t="";M=AtA(Y,M);for(var K=!1;;){var L=G.charAt(O);if(L===""){Q.push((M+t).trim());break}else if(K)L===")"&&(K=!1);else if(L===","){O+=1;Q.push((M+t).trim());break}else L==="("&&(K=!0);t+=L;O+=1}}}return Q.join(", ")};
AtA=function(Y,G){return G&&G.trim()!==""?iaA(Y,G):G};
iaA=function(Y,G){var u=RWA.get(Y);u||(u=Y.createElement("a"),RWA.set(Y,u));if(!G)G="";else if(G.startsWith("blob:")||G.startsWith("data:"))return G;Y6(u,G);return u.href};
wvt=function(Y,G,u,O){return O?u==="src"||u==="href"&&(G!=="use"||O[0]!=="#")||u==="xlink:href"&&O[0]!=="#"||u==="background"&&(G==="table"||G==="td"||G==="th")?AtA(Y,O):u==="srcset"?oDg(Y,O):u==="style"?gDy(O,iaA(Y)):G==="object"&&u==="data"?AtA(Y,O):O:O};
ZaA=function(Y,G){return(Y==="video"||Y==="audio")&&G==="autoplay"};
D$A=function(Y,G,u){try{if(typeof G==="string"){if(Y.classList.contains(G))return!0}else for(var O=Y.classList.length;O--;)if(G.test(Y.classList[O]))return!0;if(u)return Y.matches(u)}catch(Q){}return!1};
hWg=function(Y,G,u){if(!Y)return!1;if(Y.nodeType!==Y.ELEMENT_NODE)return u?hWg(wa(Y),G,u):!1;for(var O=Y.classList.length;O--;)if(G.test(Y.classList[O]))return!0;return u?hWg(wa(Y),G,u):!1};
d$4=function(Y,G,u,O){if(Y.nodeType===Y.ELEMENT_NODE){if(!DU(Y).length)return!1}else{if(ho(Y)===null)return!1;Y=ho(Y)}try{if(typeof G==="string")if(O){if(Y.closest("."+G))return!0}else{if(Y.classList.contains(G))return!0}else if(hWg(Y,G,O))return!0;if(u)if(O){if(Y.closest(u))return!0}else if(Y.matches(u))return!0}catch(Q){}return!1};
ba4=function(Y,G,u){var O=Y.contentWindow;if(O){var Q=!1;try{var M=O.document.readyState}catch(K){return}if(M!=="complete"){var t=setTimeout(function(){Q||(G(),Q=!0)},u);
Y.addEventListener("load",function(){clearTimeout(t);Q=!0;G()})}else O.location.href==="about:blank"&&Y.src!=="about:blank"&&Y.src!==""||setTimeout(G,0),Y.addEventListener("load",G)}};
S9g=function(Y,G,u){var O=!1;try{var Q=Y.sheet}catch(t){return}if(!Q){var M=setTimeout(function(){O||(G(),O=!0)},u);
Y.addEventListener("load",function(){clearTimeout(M);O=!0;G()})}};
Vbt=function(Y,G){var u=G.doc,O=G.blockClass,Q=G.blockSelector,M=G.needsMask,t=G.inlineStylesheet,K=G.maskInputOptions===void 0?{}:G.maskInputOptions,L=G.maskTextFn,g=G.maskInputFn,P=G.dataURLOptions===void 0?{}:G.dataURLOptions,I=G.inlineImages,k=G.recordCanvas,n=G.keepIframeSrcFn,p=G.newlyAddedElement===void 0?!1:G.newlyAddedElement,W=G.cssCaptured===void 0?!1:G.cssCaptured;G=G.mirror;G.nodeMetaMap.has(u)?(G=G.getId(u),G=G===1?void 0:G):G=void 0;switch(Y.nodeType){case Y.DOCUMENT_NODE:return Y.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:Y.compatMode}:{type:0,childNodes:[]};case Y.DOCUMENT_TYPE_NODE:return{type:1,name:Y.name,publicId:Y.publicId,systemId:Y.systemId,rootId:G};case Y.ELEMENT_NODE:return Nd4(Y,{doc:u,blockClass:O,blockSelector:Q,inlineStylesheet:t,maskInputOptions:K,maskInputFn:g,dataURLOptions:P,inlineImages:I,recordCanvas:k,keepIframeSrcFn:n,newlyAddedElement:p,rootId:G});case Y.TEXT_NODE:return t=(O=wa(Y))&&O.tagName,O="",Q=t==="STYLE"?!0:void 0,(t=t==="SCRIPT"?!0:void 0)?
O="SCRIPT_PLACEHOLDER":W||(O=jPU(Y),Q&&O&&(O=gDy(O,iaA(u)))),!Q&&!t&&O&&M&&(O=L?L(O,ho(Y)):O.replace(/[\S]/g,"*")),{type:3,textContent:O||"",rootId:G};case Y.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:G};case Y.COMMENT_NODE:return{type:5,textContent:jPU(Y)||"",rootId:G};default:return!1}};
Nd4=function(Y,G){var u=G.doc,O=G.inlineStylesheet,Q=G.maskInputOptions===void 0?{}:G.maskInputOptions,M=G.maskInputFn,t=G.dataURLOptions===void 0?{}:G.dataURLOptions,K=G.inlineImages,L=G.recordCanvas,g=G.keepIframeSrcFn,P=G.newlyAddedElement===void 0?!1:G.newlyAddedElement,I=G.rootId;G=D$A(Y,G.blockClass,G.blockSelector);for(var k=CuI(Y),n={},p=Y.attributes.length,W=0;W<p;W++){var C=Y.attributes[W];ZaA(k,C.name)||(n[C.name]=wvt(u,k,C.name.toLowerCase(),C.value))}k==="link"&&O&&(O=Array.from(u.styleSheets).find(function(h){return h.href===
Y.href}),p=null,O&&(p=LjT(O)),p&&(delete n.rel,delete n.href,n._cssText=p));
k==="style"&&Y.sheet&&(O=LjT(Y.sheet))&&(Y.childNodes.length>1&&(O=Wju(O,Y).join("/* rr_split */")),n._cssText=O);if(k==="input"||k==="textarea"||k==="select")O=Y.value,p=Y.checked,n.type!=="radio"&&n.type!=="checkbox"&&n.type!=="submit"&&n.type!=="button"&&O?n.value=XvA({element:Y,type:IJT(Y),tagName:k,value:O,maskInputOptions:Q,maskInputFn:M}):p&&(n.checked=p);k==="option"&&(Y.selected&&!Q.select?n.selected=!0:delete n.selected);k==="dialog"&&Y.open&&(n.rr_open_mode=Y.matches("dialog:modal")?"modal":
"non-modal");k==="canvas"&&L&&(Y.__context==="2d"?PuU(Y)||(n.rr_dataURL=Y.toDataURL(t.type,t.quality)):"__context"in Y||(Q=Y.toDataURL(t.type,t.quality),M=u.createElement("canvas"),M.width=Y.width,M.height=Y.height,M=M.toDataURL(t.type,t.quality),Q!==M&&(n.rr_dataURL=Q)));if(k==="img"&&K){da||(da=u.createElement("canvas"),lJa=da.getContext("2d"));var e=Y.currentSrc||Y.getAttribute("src")||"<unknown-src>",w=Y.crossOrigin,B=function(){Y.removeEventListener("load",B);try{da.width=Y.naturalWidth,da.height=
Y.naturalHeight,lJa.drawImage(Y,0,0),n.rr_dataURL=da.toDataURL(t.type,t.quality)}catch(h){if(Y.crossOrigin!=="anonymous"){Y.crossOrigin="anonymous";Y.complete&&Y.naturalWidth!==0?B():Y.addEventListener("load",B);return}console.warn("Cannot inline img src="+e+"! Error: "+h)}Y.crossOrigin==="anonymous"&&(w?n.crossOrigin=w:Y.removeAttribute("crossorigin"))};
Y.complete&&Y.naturalWidth!==0?B():Y.addEventListener("load",B)}if(k==="audio"||k==="video")u=n,u.rr_mediaState=Y.paused?"paused":"played",u.rr_mediaCurrentTime=Y.currentTime,u.rr_mediaPlaybackRate=Y.playbackRate,u.rr_mediaMuted=Y.muted,u.rr_mediaLoop=Y.loop,u.rr_mediaVolume=Y.volume;P||(Y.scrollLeft&&(n.rr_scrollLeft=Y.scrollLeft),Y.scrollTop&&(n.rr_scrollTop=Y.scrollTop));G&&(P=Y.getBoundingClientRect(),n={class:n.class,rr_width:P.width+"px",rr_height:P.height+"px"});k!=="iframe"||g(n.src)||(Y.contentDocument||
(n.rr_src=n.src),delete n.src);var N;try{customElements.get(k)&&(N=!0)}catch(h){}return{type:2,tagName:k,attributes:n,childNodes:[],isSVG:!(Y.tagName!=="svg"&&!Y.ownerSVGElement)||void 0,needBlock:G,rootId:I,isCustom:N}};
bl=function(Y){return Y===void 0||Y===null?"":Y.toLowerCase()};
Bd1=function(Y,G){return G.comment&&Y.type===5||Y.type===2&&(G.script&&(Y.tagName==="script"||Y.tagName==="link"&&(Y.attributes.rel==="preload"&&Y.attributes.as==="script"||Y.attributes.rel==="modulepreload")||Y.tagName==="link"&&Y.attributes.rel==="prefetch"&&typeof Y.attributes.href==="string"&&kMA(Y.attributes.href)==="js")||G.headFavicon&&(Y.tagName==="link"&&Y.attributes.rel==="shortcut icon"||Y.tagName==="meta"&&(bl(Y.attributes.name).match(/^msapplication-tile(image|color)$/)||bl(Y.attributes.name)===
"application-name"||bl(Y.attributes.rel)==="icon"||bl(Y.attributes.rel)==="apple-touch-icon"||bl(Y.attributes.rel)==="shortcut icon"))||Y.tagName==="meta"&&(G.headMetaDescKeywords&&bl(Y.attributes.name).match(/^description|keywords$/)||G.headMetaSocial&&(bl(Y.attributes.property).match(/^(og|twitter|fb):/)||bl(Y.attributes.name).match(/^(og|twitter):/)||bl(Y.attributes.name)==="pinterest")||G.headMetaRobots&&(bl(Y.attributes.name)==="robots"||bl(Y.attributes.name)==="googlebot"||bl(Y.attributes.name)===
"bingbot")||G.headMetaHttpEquiv&&Y.attributes["http-equiv"]!==void 0||G.headMetaAuthorship&&(bl(Y.attributes.name)==="author"||bl(Y.attributes.name)==="generator"||bl(Y.attributes.name)==="framework"||bl(Y.attributes.name)==="publisher"||bl(Y.attributes.name)==="progid"||bl(Y.attributes.property).match(/^article:/)||bl(Y.attributes.property).match(/^product:/))||G.headMetaVerification&&(bl(Y.attributes.name)==="google-site-verification"||bl(Y.attributes.name)==="yandex-verification"||bl(Y.attributes.name)===
"csrf-token"||bl(Y.attributes.name)==="p:domain_verify"||bl(Y.attributes.name)==="verify-v1"||bl(Y.attributes.name)==="verification"||bl(Y.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
S9=function(Y,G){var u=G.doc,O=G.mirror,Q=G.blockClass,M=G.blockSelector,t=G.maskTextClass,K=G.maskTextSelector,L=G.skipChild===void 0?!1:G.skipChild,g=G.inlineStylesheet===void 0?!0:G.inlineStylesheet,P=G.maskInputOptions===void 0?{}:G.maskInputOptions,I=G.maskTextFn,k=G.maskInputFn,n=G.slimDOMOptions,p=G.dataURLOptions===void 0?{}:G.dataURLOptions,W=G.inlineImages===void 0?!1:G.inlineImages,C=G.recordCanvas===void 0?!1:G.recordCanvas,e=G.onSerialize,w=G.onIframeLoad,B=G.iframeLoadTimeout===void 0?
5E3:G.iframeLoadTimeout,N=G.onStylesheetLoad,h=G.stylesheetLoadTimeout===void 0?5E3:G.stylesheetLoadTimeout,q=G.keepIframeSrcFn===void 0?function(){return!1}:G.keepIframeSrcFn,U=G.newlyAddedElement===void 0?!1:G.newlyAddedElement,Mj=G.cssCaptured===void 0?!1:G.cssCaptured,Xt=G.needsMask,ka=G.preserveWhiteSpace===void 0?!0:G.preserveWhiteSpace;
Xt||(Xt=d$4(Y,t,K,Xt===void 0));var aU=Vbt(Y,{doc:u,mirror:O,blockClass:Q,blockSelector:M,needsMask:Xt,inlineStylesheet:g,maskInputOptions:P,maskTextFn:I,maskInputFn:k,dataURLOptions:p,inlineImages:W,recordCanvas:C,keepIframeSrcFn:q,newlyAddedElement:U,cssCaptured:Mj});if(!aU)return console.warn(Y,"not serialized"),null;U=O.nodeMetaMap.has(Y)?O.getId(Y):Bd1(aU,n)||!ka&&aU.type===3&&!aU.textContent.replace(/^\s+|\s+$/gm,"").length?-2:rtT++;G=Object.assign(aU,{id:U});O.add(Y,G);if(U===-2)return null;
e&&e(Y);U=!L;G.type===2&&(U=U&&!G.needBlock,delete G.needBlock,(Mj=on(Y))&&Rn(Mj)&&(G.isShadowHost=!0));if((G.type===0||G.type===2)&&U){n.headWhitespace&&G.type===2&&G.tagName==="head"&&(ka=!1);L={doc:u,mirror:O,blockClass:Q,blockSelector:M,needsMask:Xt,maskTextClass:t,maskTextSelector:K,skipChild:L,inlineStylesheet:g,maskInputOptions:P,maskTextFn:I,maskInputFn:k,slimDOMOptions:n,dataURLOptions:p,inlineImages:W,recordCanvas:C,preserveWhiteSpace:ka,onSerialize:e,onIframeLoad:w,iframeLoadTimeout:B,
onStylesheetLoad:N,stylesheetLoadTimeout:h,keepIframeSrcFn:q,cssCaptured:!1};if(G.type!==2||G.tagName!=="textarea"||G.attributes.value===void 0)for(G.type===2&&G.attributes._cssText!==void 0&&typeof G.attributes._cssText==="string"&&(L.cssCaptured=!0),U=_.E(Array.from(DU(Y))),Mj=U.next();!Mj.done;Mj=U.next())(Mj=S9(Mj.value,L))&&G.childNodes.push(Mj);U=null;if(Y.nodeType===Y.ELEMENT_NODE&&(U=on(Y))){Mj=_.E(Array.from(DU(U)));for(var Tg=Mj.next();!Tg.done;Tg=Mj.next())if(Tg=S9(Tg.value,L))Rn(U)&&(Tg.isShadow=
!0),G.childNodes.push(Tg)}}(L=wa(Y))&&il(L)&&Rn(L)&&(G.isShadow=!0);G.type===2&&G.tagName==="iframe"&&ba4(Y,function(){var iy=Y.contentDocument;iy&&w&&(iy=S9(iy,{doc:iy,mirror:O,blockClass:Q,blockSelector:M,needsMask:Xt,maskTextClass:t,maskTextSelector:K,skipChild:!1,inlineStylesheet:g,maskInputOptions:P,maskTextFn:I,maskInputFn:k,slimDOMOptions:n,dataURLOptions:p,inlineImages:W,recordCanvas:C,preserveWhiteSpace:ka,onSerialize:e,onIframeLoad:w,iframeLoadTimeout:B,onStylesheetLoad:N,stylesheetLoadTimeout:h,
keepIframeSrcFn:q}))&&w(Y,iy)},B);
G.type===2&&G.tagName==="link"&&typeof G.attributes.rel==="string"&&(G.attributes.rel==="stylesheet"||G.attributes.rel==="preload"&&typeof G.attributes.href==="string"&&kMA(G.attributes.href)==="css")&&S9g(Y,function(){if(N){var iy=S9(Y,{doc:u,mirror:O,blockClass:Q,blockSelector:M,needsMask:Xt,maskTextClass:t,maskTextSelector:K,skipChild:!1,inlineStylesheet:g,maskInputOptions:P,maskTextFn:I,maskInputFn:k,slimDOMOptions:n,dataURLOptions:p,inlineImages:W,recordCanvas:C,preserveWhiteSpace:ka,onSerialize:e,
onIframeLoad:w,iframeLoadTimeout:B,onStylesheetLoad:N,stylesheetLoadTimeout:h,keepIframeSrcFn:q});iy&&N(Y,iy)}},h);
return G};
$$a=function(Y){var G=document;Y=Y||{};var u=Y.maskAllInputs===void 0?!1:Y.maskAllInputs,O=Y.slimDOM===void 0?!1:Y.slimDOM;return S9(G,{doc:G,mirror:Y.mirror===void 0?new Nt:Y.mirror,blockClass:Y.blockClass===void 0?"rr-block":Y.blockClass,blockSelector:Y.blockSelector===void 0?null:Y.blockSelector,maskTextClass:Y.maskTextClass===void 0?"rr-mask":Y.maskTextClass,maskTextSelector:Y.maskTextSelector===void 0?null:Y.maskTextSelector,skipChild:!1,inlineStylesheet:Y.inlineStylesheet===void 0?!0:Y.inlineStylesheet,
maskInputOptions:u===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:u===!1?{password:!0}:u,maskTextFn:Y.maskTextFn,maskInputFn:Y.maskInputFn,slimDOMOptions:O===!0||O==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:O==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:O===!1?{}:O,dataURLOptions:Y.dataURLOptions,
inlineImages:Y.inlineImages===void 0?!1:Y.inlineImages,recordCanvas:Y.recordCanvas===void 0?!1:Y.recordCanvas,preserveWhiteSpace:Y.preserveWhiteSpace,onSerialize:Y.onSerialize,onIframeLoad:Y.onIframeLoad,iframeLoadTimeout:Y.iframeLoadTimeout,onStylesheetLoad:Y.onStylesheetLoad,stylesheetLoadTimeout:Y.stylesheetLoadTimeout,keepIframeSrcFn:Y.keepIframeSrcFn===void 0?function(){return!1}:Y.keepIframeSrcFn,
newlyAddedElement:!1})};
j9=function(Y,G,u){u=u===void 0?document:u;var O={capture:!0,passive:!0};u.addEventListener(Y,G,O);return function(){return u.removeEventListener(Y,G,O)}};
Vv=function(Y,G,u){u=u===void 0?{}:u;var O=null,Q=0;return function(){var M=_.vs.apply(0,arguments),t=Date.now();Q||u.leading!==!1||(Q=t);var K=G-(t-Q),L=this;K<=0||K>G?(O&&(clearTimeout(O),O=null),Q=t,Y.apply(L,M)):O||u.trailing===!1||(O=setTimeout(function(){Q=u.leading===!1?0:Date.now();O=null;Y.apply(L,M)},K))}};
q9t=function(Y,G,u,O,Q){Q=Q===void 0?window:Q;var M=Q.Object.getOwnPropertyDescriptor(Y,G);Q.Object.defineProperty(Y,G,O?u:{set:function(t){var K=this;setTimeout(function(){u.set.call(K,t)},0);
M&&M.set&&M.set.call(this,t)}});
return function(){return q9t(Y,G,M||{},!0)}};
sPa=function(Y){var G=Y.document,u,O,Q,M;return{left:G.scrollingElement?G.scrollingElement.scrollLeft:Y.pageXOffset!==void 0?Y.pageXOffset:G.documentElement.scrollLeft||(G==null?void 0:G.body)&&((u=ho(G.body))==null?void 0:u.scrollLeft)||(G==null?void 0:(O=G.body)==null?void 0:O.scrollLeft)||0,top:G.scrollingElement?G.scrollingElement.scrollTop:Y.pageYOffset!==void 0?Y.pageYOffset:(G==null?void 0:G.documentElement.scrollTop)||(G==null?void 0:G.body)&&((Q=ho(G.body))==null?void 0:Q.scrollTop)||(G==
null?void 0:(M=G.body)==null?void 0:M.scrollTop)||0}};
ctu=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
U$T=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
vDt=function(Y){return Y?Y.nodeType===Y.ELEMENT_NODE?Y:ho(Y):null};
ll=function(Y,G,u,O){if(!Y)return!1;Y=vDt(Y);if(!Y)return!1;try{if(typeof G==="string"){if(Y.classList.contains(G)||O&&Y.closest("."+G)!==null)return!0}else if(hWg(Y,G,O))return!0}catch(Q){}return u&&(Y.matches(u)||O&&Y.closest(u)!==null)?!0:!1};
Jtj=function(Y,G,u){return Y.tagName==="TITLE"&&u.headTitleMutations?!0:G.getId(Y)===-2};
Yzj=function(Y,G){if(il(Y))return!1;var u=G.getId(Y);return G.has(u)?(u=wa(Y))&&u.nodeType===Y.DOCUMENT_NODE?!1:u?Yzj(u,G):!0:!0};
GWg=function(){var Y=Y===void 0?window:Y;"NodeList"in Y&&!Y.NodeList.prototype.forEach&&(Y.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in Y&&!Y.DOMTokenList.prototype.forEach&&(Y.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
u01=function(Y,G){return!(Y.nodeName!=="LINK"||Y.nodeType!==Y.ELEMENT_NODE||!Y.getAttribute||Y.getAttribute("rel")!=="stylesheet"||!G.nodeMetaMap.get(Y))};
Quj=function(Y){var G=null,u;"getRootNode"in Y&&((u=OL1(Y))==null?void 0:u.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Ao(OL1(Y))&&(G=Ao(OL1(Y)));return G};
MmU=function(Y){var G=Y.ownerDocument;if(G){if(!(G=Kjj(G,"contains")(Y)))if(G=Y.ownerDocument){for(var u;u=Quj(Y);)Y=u;G=Kjj(G,"contains")(Y)}else G=!1}else G=!1;return G};
HLI=function(Y,G){Y.delete(G);DU(G).forEach(function(u){return HLI(Y,u)})};
Etj=function(Y,G){for(var u=[Y];u.length;)Y=u.pop(),G.has(Y)||(G.add(Y),DU(Y).forEach(function(O){return u.push(O)}))};
tmA=function(Y,G){Y.size===0?Y=!1:Y=(G=wa(G))?Y.has(G):!1;return Y};
aIu=function(Y,G){return Y.size===0?!1:KlY(Y,G)};
KlY=function(Y,G){return(G=wa(G))?Y.has(G)?!0:KlY(Y,G):!1};
Bc=function(Y){try{if("composedPath"in Y){var G=Y.composedPath();if(G.length)return G[0]}else if("path"in Y&&Y.path.length)return Y.path[0]}catch(u){}return Y&&Y.target};
Lla=function(Y,G){var u=new T1u;$T.push(u);u.init(Y);Y=new (Hay("MutationObserver").constructor)(qt(u.processMutations.bind(u)));Y.observe(G,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return Y};
XyT=function(Y){var G=Y.mousemoveCb;var u=Y.sampling;var O=Y.doc;var Q=Y.mirror;if(u.mousemove===!1)return function(){};
var M=[],t,K=Vv(qt(function(g){var P=Date.now()-t;G(M.map(function(I){I.timeOffset-=P;return I}),g);
M=[];t=null}),typeof u.mousemoveCallback==="number"?u.mousemoveCallback:500);
Y=qt(Vv(qt(function(g){var P=Bc(g),I=g.changedTouches?g.changedTouches[0]:g,k=I.clientX;I=I.clientY;t||(t=gtj());M.push({x:k,y:I,id:Q.getId(P),timeOffset:gtj()-t});K(typeof DragEvent!=="undefined"&&g instanceof DragEvent?12:g instanceof MouseEvent?1:6)}),typeof u.mousemove==="number"?u.mousemove:50,{trailing:!1}));
var L=[j9("mousemove",Y,O),j9("touchmove",Y,O),j9("drag",Y,O)];return qt(function(){L.forEach(function(g){return g()})})};
PPt=function(Y){var G=Y.mouseInteractionCb;var u=Y.doc;var O=Y.mirror;var Q=Y.blockClass;var M=Y.blockSelector;Y=Y.sampling;if(Y.mouseInteraction===!1)return function(){};
var t=Y.mouseInteraction===!0||Y.mouseInteraction===void 0?{}:Y.mouseInteraction,K=[],L=null,g=function(P){return function(I){var k=Bc(I);if(!ll(k,Q,M,!0)){var n=null,p=P;if("pointerType"in I){switch(I.pointerType){case "mouse":n=0;break;case "touch":n=2;break;case "pen":n=1}n===2&&(st[P]===1?p="TouchStart":st[P]===0&&(p="TouchEnd"))}else I.changedTouches&&(n=2);if(n!==null){if(L=n,p.startsWith("Touch")&&n===2||p.startsWith("Mouse")&&n===0)n=null}else st[P]===2&&(n=L,L=null);if(I=I.changedTouches?
I.changedTouches[0]:I)k=O.getId(k),qt(G)(Object.assign({},{type:st[p],id:k,x:I.clientX,y:I.clientY},n!==null&&{pointerType:n}))}}};
Object.keys(st).filter(function(P){return Number.isNaN(Number(P))&&!P.endsWith("_Departed")&&t[P]!==!1}).forEach(function(P){var I=P.toLowerCase(),k=g(P);
if(window.PointerEvent)switch(st[P]){case 1:case 0:I=I.replace("mouse","pointer");break;case 7:case 9:return}K.push(j9(I,k,u))});
return qt(function(){K.forEach(function(P){return P()})})};
IIg=function(Y){var G=Y.scrollCb;var u=Y.doc;var O=Y.mirror;var Q=Y.blockClass;var M=Y.blockSelector;return j9("scroll",qt(Vv(qt(function(t){var K=Bc(t);K&&!ll(K,Q,M,!0)&&(t=O.getId(K),K===u&&u.defaultView?(K=sPa(u.defaultView),G({id:t,x:K.left,y:K.top})):G({id:t,x:K.scrollLeft,y:K.scrollTop}))}),Y.sampling.scroll||100)),u)};
kWt=function(Y,G){var u=Y.viewportResizeCb;var O=-1,Q=-1;return j9("resize",qt(Vv(qt(function(){var M=ctu(),t=U$T();if(O!==M||Q!==t)u({width:Number(t),height:Number(M)}),O=M,Q=t}),200)),G.win)};
py1=function(Y){function G(C){var e=Bc(C),w=C.isTrusted,B=e&&e.tagName;e&&B==="OPTION"&&(e=ho(e));if(!(!e||!B||nta.indexOf(B)<0||ll(e,t,K,!0)||e.classList.contains(L)||g&&e.matches(g))){var N=e.value,h=!1;C=IJT(e)||"";if(C==="radio"||C==="checkbox")h=e.checked;else if(P[B.toLowerCase()]||P[C])N=XvA({element:e,maskInputOptions:P,tagName:B,type:C,value:N,maskInputFn:I});u(e,n?{text:N,isChecked:h,userTriggered:w}:{text:N,isChecked:h});w=e.name;C==="radio"&&w&&h&&Q.querySelectorAll('input[type="radio"][name="'+
w+'"]').forEach(function(q){if(q!==e){var U=q.value;u(q,n?{text:U,isChecked:!h,userTriggered:!1}:{text:U,isChecked:!h})}})}}
function u(C,e){var w=Fly.get(C);w&&w.text===e.text&&w.isChecked===e.isChecked||(Fly.set(C,e),C=M.getId(C),qt(O)(Object.assign({},e,{id:C})))}
var O=Y.inputCb;var Q=Y.doc;var M=Y.mirror;var t=Y.blockClass;var K=Y.blockSelector;var L=Y.ignoreClass;var g=Y.ignoreSelector;var P=Y.maskInputOptions;var I=Y.maskInputFn;var k=Y.sampling;var n=Y.userTriggeredOnInput;var p=(k.input==="last"?["change"]:["input","change"]).map(function(C){return j9(C,qt(G),Q)}),W=Q.defaultView;
if(!W)return function(){p.forEach(function(C){return C()})};
Y=W.Object.getOwnPropertyDescriptor(W.HTMLInputElement.prototype,"value");k=[[W.HTMLInputElement.prototype,"value"],[W.HTMLInputElement.prototype,"checked"],[W.HTMLSelectElement.prototype,"value"],[W.HTMLTextAreaElement.prototype,"value"],[W.HTMLSelectElement.prototype,"selectedIndex"],[W.HTMLOptionElement.prototype,"selected"]];Y&&Y.set&&p.push.apply(p,_.c8(k.map(function(C){return q9t(C[0],C[1],{set:function(){qt(G)({target:this,isTrusted:!1})}},!1,W)})));
return qt(function(){p.forEach(function(C){return C()})})};
maT=function(Y){var G=[],u,O,Q,M;zty("CSSGroupingRule")&&((u=Y.parentRule)==null?void 0:(O=u.constructor)==null?void 0:O.name)==="CSSGroupingRule"||zty("CSSMediaRule")&&Y.parentRule instanceof CSSMediaRule||zty("CSSSupportsRule")&&Y.parentRule instanceof CSSSupportsRule||zty("CSSConditionRule")&&((Q=Y.parentRule)==null?void 0:(M=Q.constructor)==null?void 0:M.name)==="CSSConditionRule"?(Y=Array.from(Y.parentRule.cssRules).indexOf(Y),G.unshift(Y)):Y.parentStyleSheet&&(Y=Array.from(Y.parentStyleSheet.cssRules).indexOf(Y),
G.unshift(Y));return G};
cc=function(Y,G,u){var O,Q;if(!Y)return{};Y.ownerNode?O=G.getId(Y.ownerNode):Q=u.getId(Y);return{styleId:Q,id:O}};
r7t=function(Y,G){var u=Y.styleSheetRuleCb;var O=Y.mirror;var Q=Y.stylesheetManager;var M=G.win;if(!M.CSSStyleSheet||!M.CSSStyleSheet.prototype)return function(){};
var t=M.CSSStyleSheet.prototype.insertRule;M.CSSStyleSheet.prototype.insertRule=new Ut(t,{apply:qt(function(k,n,p){var W=_.E(p),C=W.next().value;W=W.next().value;var e=cc(n,O,Q.styleMirror),w=e.id;e=e.styleId;(w&&w!==-1||e&&e!==-1)&&u({id:w,styleId:e,adds:[{rule:C,index:W}]});return k.apply(n,p)})});
M.CSSStyleSheet.prototype.addRule=function(k,n,p){p=p===void 0?this.cssRules.length:p;return M.CSSStyleSheet.prototype.insertRule.apply(this,[k+" { "+n+" }",p])};
var K=M.CSSStyleSheet.prototype.deleteRule;M.CSSStyleSheet.prototype.deleteRule=new Ut(K,{apply:qt(function(k,n,p){var W=_.E(p).next().value,C=cc(n,O,Q.styleMirror),e=C.id;C=C.styleId;(e&&e!==-1||C&&C!==-1)&&u({id:e,styleId:C,removes:[{index:W}]});return k.apply(n,p)})});
M.CSSStyleSheet.prototype.removeRule=function(k){return M.CSSStyleSheet.prototype.deleteRule.apply(this,[k])};
if(M.CSSStyleSheet.prototype.replace){var L=M.CSSStyleSheet.prototype.replace;M.CSSStyleSheet.prototype.replace=new Ut(L,{apply:qt(function(k,n,p){var W=_.E(p).next().value,C=cc(n,O,Q.styleMirror),e=C.id;C=C.styleId;(e&&e!==-1||C&&C!==-1)&&u({id:e,styleId:C,replace:W});return k.apply(n,p)})})}if(M.CSSStyleSheet.prototype.replaceSync){var g=M.CSSStyleSheet.prototype.replaceSync;
M.CSSStyleSheet.prototype.replaceSync=new Ut(g,{apply:qt(function(k,n,p){var W=_.E(p).next().value,C=cc(n,O,Q.styleMirror),e=C.id;C=C.styleId;(e&&e!==-1||C&&C!==-1)&&u({id:e,styleId:C,replaceSync:W});return k.apply(n,p)})})}var P={};
Wl1("CSSGroupingRule")?P.CSSGroupingRule=M.CSSGroupingRule:(Wl1("CSSMediaRule")&&(P.CSSMediaRule=M.CSSMediaRule),Wl1("CSSConditionRule")&&(P.CSSConditionRule=M.CSSConditionRule),Wl1("CSSSupportsRule")&&(P.CSSSupportsRule=M.CSSSupportsRule));var I={};Object.entries(P).forEach(function(k){var n=_.E(k);k=n.next().value;n=n.next().value;I[k]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule};n.prototype.insertRule=new Ut(I[k].insertRule,{apply:qt(function(p,W,C){var e=_.E(C),w=e.next().value;
e=e.next().value;var B=cc(W.parentStyleSheet,O,Q.styleMirror),N=B.id;B=B.styleId;(N&&N!==-1||B&&B!==-1)&&u({id:N,styleId:B,adds:[{rule:w,index:[].concat(_.c8(maT(W)),[e||0])}]});return p.apply(W,C)})});
n.prototype.deleteRule=new Ut(I[k].deleteRule,{apply:qt(function(p,W,C){var e=_.E(C).next().value,w=cc(W.parentStyleSheet,O,Q.styleMirror),B=w.id;w=w.styleId;(B&&B!==-1||w&&w!==-1)&&u({id:B,styleId:w,removes:[{index:[].concat(_.c8(maT(W)),[e])}]});return p.apply(W,C)})})});
return qt(function(){M.CSSStyleSheet.prototype.insertRule=t;M.CSSStyleSheet.prototype.deleteRule=K;L&&(M.CSSStyleSheet.prototype.replace=L);g&&(M.CSSStyleSheet.prototype.replaceSync=g);Object.entries(P).forEach(function(k){var n=_.E(k);k=n.next().value;n=n.next().value;n.prototype.insertRule=I[k].insertRule;n.prototype.deleteRule=I[k].deleteRule})})};
fI1=function(Y,G){var u=Y.mirror;var O=Y.stylesheetManager;var Q=null;Q=G.nodeName==="#document"?u.getId(G):u.getId(Ao(G));var M,t,K;Y=G.nodeName==="#document"?(M=G.defaultView)==null?void 0:M.Document:(t=G.ownerDocument)==null?void 0:(K=t.defaultView)==null?void 0:K.ShadowRoot;var L=(Y==null?0:Y.prototype)?Object.getOwnPropertyDescriptor(Y==null?void 0:Y.prototype,"adoptedStyleSheets"):void 0;if(Q===null||Q===-1||!Y||!L)return function(){};
Object.defineProperty(G,"adoptedStyleSheets",{configurable:L.configurable,enumerable:L.enumerable,get:function(){var g;return(g=L.get)==null?void 0:g.call(this)},
set:function(g){var P,I=(P=L.set)==null?void 0:P.call(this,g);if(Q!==null&&Q!==-1)try{xaY(O,g,Q)}catch(k){}return I}});
return qt(function(){Object.defineProperty(G,"adoptedStyleSheets",{configurable:L.configurable,enumerable:L.enumerable,get:L.get,set:L.set})})};
CPI=function(Y,G){var u=Y.styleDeclarationCb;var O=Y.mirror;var Q=Y.ignoreCSSAttributes;var M=Y.stylesheetManager;var t=G.win;var K=t.CSSStyleDeclaration.prototype.setProperty;t.CSSStyleDeclaration.prototype.setProperty=new Ut(K,{apply:qt(function(g,P,I){var k=_.E(I),n=k.next().value,p=k.next().value;k=k.next().value;if(Q.has(n))return K.apply(P,[n,p,k]);var W,C=cc((W=P.parentRule)==null?void 0:W.parentStyleSheet,O,M.styleMirror);W=C.id;C=C.styleId;(W&&W!==-1||C&&C!==-1)&&u({id:W,styleId:C,set:{property:n,
value:p,priority:k},index:maT(P.parentRule)});return g.apply(P,I)})});
var L=t.CSSStyleDeclaration.prototype.removeProperty;t.CSSStyleDeclaration.prototype.removeProperty=new Ut(L,{apply:qt(function(g,P,I){var k=_.E(I).next().value;if(Q.has(k))return L.apply(P,[k]);var n,p=cc((n=P.parentRule)==null?void 0:n.parentStyleSheet,O,M.styleMirror);n=p.id;p=p.styleId;(n&&n!==-1||p&&p!==-1)&&u({id:n,styleId:p,remove:{property:k},index:maT(P.parentRule)});return g.apply(P,I)})});
return qt(function(){t.CSSStyleDeclaration.prototype.setProperty=K;t.CSSStyleDeclaration.prototype.removeProperty=L})};
y7Y=function(Y){var G=Y.mediaInteractionCb;var u=Y.blockClass;var O=Y.blockSelector;var Q=Y.mirror;var M=Y.sampling;Y=Y.doc;var t=qt(function(L){return Vv(qt(function(g){if((g=Bc(g))&&!ll(g,u,O,!0)){var P=g.currentTime,I=g.volume,k=g.muted,n=g.playbackRate,p=g.loop;G({type:L,id:Q.getId(g),currentTime:P,volume:I,muted:k,playbackRate:n,loop:p})}}),M.media||500)}),K=[j9("play",t(0),Y),
j9("pause",t(1),Y),j9("seeked",t(2),Y),j9("volumechange",t(3),Y),j9("ratechange",t(4),Y)];return qt(function(){K.forEach(function(L){return L()})})};
eta=function(Y){var G=Y.fontCb;Y=Y.doc;var u=Y.defaultView;if(!u)return function(){};
var O=[],Q=new WeakMap,M=u.FontFace;u.FontFace=function(t,K,L){var g=new M(t,K,L);Q.set(g,{family:t,buffer:typeof K!=="string",descriptors:L,fontSource:typeof K==="string"?K:JSON.stringify(Array.from(new Uint8Array(K)))});return g};
Y=e9(Y.fonts,"add",function(t){return function(K){setTimeout(qt(function(){var L=Q.get(K);L&&(G(L),Q.delete(K))}),0);
return t.apply(this,[K])}});
O.push(function(){u.FontFace=M});
O.push(Y);return qt(function(){O.forEach(function(t){return t()})})};
A7y=function(Y){var G=Y.doc,u=Y.mirror,O=Y.blockClass,Q=Y.blockSelector,M=Y.selectionCb,t=!0;Y=qt(function(){var K=G.getSelection();if(K&&!(t&&(K==null?0:K.isCollapsed))){t=K.isCollapsed||!1;for(var L=[],g=K.rangeCount||0,P=0;P<g;P++){var I=K.getRangeAt(P),k=I.startContainer,n=I.startOffset,p=I.endContainer;I=I.endOffset;ll(k,O,Q,!0)||ll(p,O,Q,!0)||L.push({start:u.getId(k),startOffset:n,end:u.getId(p),endOffset:I})}M({ranges:L})}});
Y();return j9("selectionchange",Y)};
ot1=function(Y){var G=Y.doc;var u=Y.customElementCb;return(Y=G.defaultView)&&Y.customElements?e9(Y.customElements,"define",function(O){return function(Q,M,t){try{u({define:{name:Q}})}catch(K){console.warn("Custom element callback failed for "+Q)}return O.apply(this,[Q,M,t])}}):function(){}};
iLy=function(Y,G){var u=Y.mutationCb,O=Y.mousemoveCb,Q=Y.mouseInteractionCb,M=Y.scrollCb,t=Y.viewportResizeCb,K=Y.inputCb,L=Y.mediaInteractionCb,g=Y.styleSheetRuleCb,P=Y.styleDeclarationCb,I=Y.canvasMutationCb,k=Y.fontCb,n=Y.selectionCb,p=Y.customElementCb;Y.mutationCb=function(){var W=_.vs.apply(0,arguments);G.mutation&&G.mutation.apply(G,_.c8(W));u.apply(null,_.c8(W))};
Y.mousemoveCb=function(){var W=_.vs.apply(0,arguments);G.mousemove&&G.mousemove.apply(G,_.c8(W));O.apply(null,_.c8(W))};
Y.mouseInteractionCb=function(){var W=_.vs.apply(0,arguments);G.mouseInteraction&&G.mouseInteraction.apply(G,_.c8(W));Q.apply(null,_.c8(W))};
Y.scrollCb=function(){var W=_.vs.apply(0,arguments);G.scroll&&G.scroll.apply(G,_.c8(W));M.apply(null,_.c8(W))};
Y.viewportResizeCb=function(){var W=_.vs.apply(0,arguments);G.viewportResize&&G.viewportResize.apply(G,_.c8(W));t.apply(null,_.c8(W))};
Y.inputCb=function(){var W=_.vs.apply(0,arguments);G.input&&G.input.apply(G,_.c8(W));K.apply(null,_.c8(W))};
Y.mediaInteractionCb=function(){var W=_.vs.apply(0,arguments);G.mediaInteaction&&G.mediaInteaction.apply(G,_.c8(W));L.apply(null,_.c8(W))};
Y.styleSheetRuleCb=function(){var W=_.vs.apply(0,arguments);G.styleSheetRule&&G.styleSheetRule.apply(G,_.c8(W));g.apply(null,_.c8(W))};
Y.styleDeclarationCb=function(){var W=_.vs.apply(0,arguments);G.styleDeclaration&&G.styleDeclaration.apply(G,_.c8(W));P.apply(null,_.c8(W))};
Y.canvasMutationCb=function(){var W=_.vs.apply(0,arguments);G.canvasMutation&&G.canvasMutation.apply(G,_.c8(W));I.apply(null,_.c8(W))};
Y.fontCb=function(){var W=_.vs.apply(0,arguments);G.font&&G.font.apply(G,_.c8(W));k.apply(null,_.c8(W))};
Y.selectionCb=function(){var W=_.vs.apply(0,arguments);G.selection&&G.selection.apply(G,_.c8(W));n.apply(null,_.c8(W))};
Y.customElementCb=function(){var W=_.vs.apply(0,arguments);G.customElement&&G.customElement.apply(G,_.c8(W));p.apply(null,_.c8(W))}};
Rtt=function(Y,G){G=G===void 0?{}:G;var u=Y.doc.defaultView;if(!u)return function(){};
iLy(Y,G);var O;Y.recordDOM&&(O=Lla(Y,Y.doc));var Q=XyT(Y),M=PPt(Y),t=IIg(Y),K=kWt(Y,{win:u}),L=py1(Y),g=y7Y(Y),P=function(){},I=function(){},k=function(){},n=function(){};
Y.recordDOM&&(P=r7t(Y,{win:u}),I=fI1(Y,Y.doc),k=CPI(Y,{win:u}),Y.collectFonts&&(n=eta(Y)));var p=A7y(Y),W=ot1(Y),C=[];Y=_.E(Y.plugins);for(G=Y.next();!G.done;G=Y.next())G=G.value,C.push(G.observer(G.callback,u,G.options));return qt(function(){$T.forEach(function(w){return w.reset()});
var e;(e=O)==null||e.disconnect();Q();M();t();K();L();g();P();I();k();n();p();W();C.forEach(function(w){return w()})})};
zty=function(Y){return typeof window[Y]!=="undefined"};
Wl1=function(Y){return!!(typeof window[Y]!=="undefined"&&window[Y].prototype&&"insertRule"in window[Y].prototype&&"deleteRule"in window[Y].prototype)};
wyt=function(Y){Y=new Uint8Array(Y);for(var G="",u=0;u<Y.byteLength;u++)G+=String.fromCharCode(Y[u]);return btoa(G)};
ZLA=function(Y,G,u){if(Y instanceof Array)return Y.map(function(Q){return ZLA(Q,G,u)});
if(Y!==null){if(Y instanceof Float32Array||Y instanceof Float64Array||Y instanceof Int32Array||Y instanceof Uint32Array||Y instanceof Uint8Array||Y instanceof Uint16Array||Y instanceof Int16Array||Y instanceof Int8Array||Y instanceof Uint8ClampedArray)return{rr_type:Y.constructor.name,args:[Object.values(Y)]};if(Y instanceof ArrayBuffer){var O=Y.constructor.name;Y=wyt(Y);return{rr_type:O,base64:Y}}if(Y instanceof DataView)return{rr_type:Y.constructor.name,args:[ZLA(Y.buffer,G,u),Y.byteOffset,Y.byteLength]};
if(Y instanceof HTMLImageElement)return{rr_type:Y.constructor.name,src:Y.src};if(Y instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:Y.toDataURL()};if(Y instanceof ImageData)return{rr_type:Y.constructor.name,args:[ZLA(Y.data,G,u),Y.width,Y.height]};if(DaA(Y,G)||typeof Y==="object")return O=Y.constructor.name,Y=htY(Y,G,u),{rr_type:O,index:Y}}return Y};
bL4=function(Y,G,u,O){for(var Q=[],M=_.E(Object.getOwnPropertyNames(G.CanvasRenderingContext2D.prototype)),t=M.next(),K={};!t.done;K={prop$jscomp$58:void 0},t=M.next()){K.prop$jscomp$58=t.value;try{if(typeof G.CanvasRenderingContext2D.prototype[K.prop$jscomp$58]==="function"){var L=e9(G.CanvasRenderingContext2D.prototype,K.prop$jscomp$58,function(g){return function(P){return function(){var I=_.vs.apply(0,arguments),k=this;ll(this.canvas,u,O,!0)||setTimeout(function(){var n=da1(I,G,k);Y(k.canvas,{type:vc["2D"],
property:g.prop$jscomp$58,args:n})},0);
return P.apply(this,I)}}}(K));
Q.push(L)}}catch(g){t=q9t(G.CanvasRenderingContext2D.prototype,K.prop$jscomp$58,{set:function(P){return function(I){Y(this.canvas,{type:vc["2D"],property:P.prop$jscomp$58,args:[I],setter:!0})}}(K)}),Q.push(t)}}return function(){Q.forEach(function(g){return g()})}};
SzA=function(Y,G,u,O){var Q=[];try{var M=e9(Y.HTMLCanvasElement.prototype,"getContext",function(t){return function(K){var L=_.vs.apply(1,arguments);if(!ll(this,G,u,!0)){var g=K==="experimental-webgl"?"webgl":K;"__context"in this||(this.__context=g);O&&["webgl","webgl2"].includes(g)&&(L[0]&&typeof L[0]==="object"?(g=L[0],g.preserveDrawingBuffer||(g.preserveDrawingBuffer=!0)):L.splice(0,1,{preserveDrawingBuffer:!0}))}return t.apply(this,[K].concat(_.c8(L)))}});
Q.push(M)}catch(t){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){Q.forEach(function(t){return t()})}};
N1g=function(Y,G,u,O,Q,M){for(var t=[],K=_.E(Object.getOwnPropertyNames(Y)),L=K.next(),g={};!L.done;g={prop$jscomp$59:void 0},L=K.next())if(g.prop$jscomp$59=L.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(g.prop$jscomp$59))try{if(typeof Y[g.prop$jscomp$59]==="function"){var P=e9(Y,g.prop$jscomp$59,function(I){return function(k){return function(){var n=_.vs.apply(0,arguments),p=k.apply(this,n);htY(p,M,this);"tagName"in this.canvas&&!ll(this.canvas,O,Q,!0)&&(n=
da1(n,M,this),u(this.canvas,{type:G,property:I.prop$jscomp$59,args:n}));return p}}}(g));
t.push(P)}}catch(I){L=q9t(Y,g.prop$jscomp$59,{set:function(k){return function(n){u(this.canvas,{type:G,property:k.prop$jscomp$59,args:[n],setter:!0})}}(g)}),t.push(L)}return t};
ju4=function(Y,G,u,O){var Q=[];Q.push.apply(Q,_.c8(N1g(G.WebGLRenderingContext.prototype,1,Y,u,O,G)));typeof G.WebGL2RenderingContext!=="undefined"&&Q.push.apply(Q,_.c8(N1g(G.WebGL2RenderingContext.prototype,2,Y,u,O,G)));return function(){Q.forEach(function(M){return M()})}};
Qs4=function(Y){var G=Y=Y===void 0?{}:Y,u=G.emit,O=G.checkoutEveryNms,Q=G.checkoutEveryNth,M=G.blockClass===void 0?"rr-block":G.blockClass,t=G.blockSelector===void 0?null:G.blockSelector,K=G.ignoreClass===void 0?"rr-ignore":G.ignoreClass,L=G.ignoreSelector===void 0?null:G.ignoreSelector,g=G.maskTextClass===void 0?"rr-mask":G.maskTextClass,P=G.maskTextSelector===void 0?null:G.maskTextSelector,I=G.inlineStylesheet===void 0?!0:G.inlineStylesheet,k=G.maskAllInputs,n=G.maskInputOptions,p=G.slimDOMOptions,
W=G.maskInputFn,C=G.maskTextFn,e=G.hooks,w=G.packFn,B=G.sampling===void 0?{}:G.sampling,N=G.dataURLOptions===void 0?{}:G.dataURLOptions,h=G.mousemoveWait,q=G.recordDOM===void 0?!0:G.recordDOM,U=G.recordCanvas===void 0?!1:G.recordCanvas,Mj=G.recordCrossOriginIframes===void 0?!1:G.recordCrossOriginIframes,Xt=G.recordAfter===void 0?Y.recordAfter==="DOMContentLoaded"?Y.recordAfter:"load":G.recordAfter,ka=G.userTriggeredOnInput===void 0?!1:G.userTriggeredOnInput,aU=G.collectFonts===void 0?!1:G.collectFonts,
Tg=G.inlineImages===void 0?!1:G.inlineImages,iy=G.plugins,hY=G.keepIframeSrcFn===void 0?function(){return!1}:G.keepIframeSrcFn,dA=G.ignoreCSSAttributes===void 0?new Set([]):G.ignoreCSSAttributes;
Jo=G.errorHandler;var nT=Mj?window.parent===window:!0,u_=!1;if(!nT)try{window.parent.document&&(u_=!1)}catch(l_){u_=!0}if(nT&&!u)throw Error("af");if(!nT&&!u_)return function(){};
h!==void 0&&B.mousemove===void 0&&(B.mousemove=h);Ys.reset();var jT=k===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:n!==void 0?n:{password:!0},P1=p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:p==="all",headMetaDescKeywords:p==="all",headTitleMutations:p==="all"}:
p?p:{};GWg();var kk,Fe=0,Xg=function(l_){for(var $V=_.E(iy||[]),T2=$V.next();!T2.done;T2=$V.next())T2=T2.value,T2.eventProcessor&&(l_=T2.eventProcessor(l_));w&&!u_&&(l_=w(l_));return l_};
G1=function(l_,$V){l_.timestamp=gtj();var T2;((T2=$T[0])==null?0:T2.isFrozen())&&l_.type!==2&&(l_.type!==3||l_.data.source!==0)&&$T.forEach(function(Pb){return Pb.unfreeze()});
nT?u==null||u(Xg(l_),$V):u_&&($V={type:"rrweb",event:Xg(l_),origin:window.location.origin,isCheckout:$V},window.parent.postMessage($V,"*"));l_.type===2?(kk=l_,Fe=0):l_.type!==3||l_.data.source===0&&l_.data.isAttachIframe||(Fe++,l_=O&&l_.timestamp-kk.timestamp>O,(Q&&Fe>=Q||l_)&&Vm1(!0))};
var Hb=function(l_){G1({type:3,data:Object.assign({},{source:0},l_)})},n1=function(l_){return G1({type:3,
data:Object.assign({},{source:3},l_)})},Yk=function(l_){return G1({type:3,
data:Object.assign({},{source:9},l_)})},qj=new lIg({mutationCb:Hb,
adoptedStyleSheetCb:function(l_){return G1({type:3,data:Object.assign({},{source:15},l_)})}}),Gx=new B1a({mirror:Ys,
mutationCb:Hb,stylesheetManager:qj,recordCrossOriginIframes:Mj,wrappedEmit:G1});Y=_.E(iy||[]);for(G=Y.next();!G.done;G=Y.next())G=G.value,G.getMirror&&G.getMirror({nodeMirror:Ys,crossOriginIframeMirror:Gx.crossOriginIframeMirror,crossOriginIframeStyleMirror:Gx.crossOriginIframeStyleMirror});var fT=new $aA;qzt=new suU({recordCanvas:U,mutationCb:Yk,win:window,blockClass:M,blockSelector:t,mirror:Ys,sampling:B.canvas,dataURLOptions:N});var b_=new c7A({mutationCb:Hb,scrollCb:n1,bypassOptions:{blockClass:M,
blockSelector:t,maskTextClass:g,maskTextSelector:P,inlineStylesheet:I,maskInputOptions:jT,dataURLOptions:N,maskTextFn:C,maskInputFn:W,recordCanvas:U,inlineImages:Tg,sampling:B,slimDOMOptions:P1,iframeManager:Gx,stylesheetManager:qj,canvasManager:qzt,keepIframeSrcFn:hY,processedNodeManager:fT},mirror:Ys});Vm1=function(l_){l_=l_===void 0?!1:l_;if(q){G1({type:4,data:{href:window.location.href,width:U$T(),height:ctu()}},l_);qj.reset();b_.init();$T.forEach(function(T2){return T2.lock()});
var $V=$$a({mirror:Ys,blockClass:M,blockSelector:t,maskTextClass:g,maskTextSelector:P,inlineStylesheet:I,maskAllInputs:jT,maskTextFn:C,maskInputFn:W,slimDOM:P1,dataURLOptions:N,recordCanvas:U,inlineImages:Tg,onSerialize:function(T2){T2.nodeName==="IFRAME"&&Ys.nodeMetaMap.get(T2)&&Uat(Gx,T2);u01(T2,Ys)&&vtU(qj,T2);T2&&on(T2)&&J7j(b_,on(T2),document)},
onIframeLoad:function(T2,Pb){Yqj(Gx,T2,Pb);T2.contentWindow&&T2.contentDocument&&Gl1(b_,T2.contentWindow.Element,T2.contentDocument)},
onStylesheetLoad:function(T2,Pb){uaT(qj,T2,Pb)},
keepIframeSrcFn:hY});$V?(G1({type:2,data:{node:$V,initialOffset:sPa(window)}},l_),$T.forEach(function(T2){return T2.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&xaY(qj,document.adoptedStyleSheets,Ys.getId(document))):console.warn("Failed to snapshot the document")}};
try{var MK=[],v1=function(l_){var $V;return qt(Rtt)({mutationCb:Hb,mousemoveCb:function(T2,Pb){return G1({type:3,data:{source:Pb,positions:T2}})},
mouseInteractionCb:function(T2){return G1({type:3,data:Object.assign({},{source:2},T2)})},
scrollCb:n1,viewportResizeCb:function(T2){return G1({type:3,data:Object.assign({},{source:4},T2)})},
inputCb:function(T2){return G1({type:3,data:Object.assign({},{source:5},T2)})},
mediaInteractionCb:function(T2){return G1({type:3,data:Object.assign({},{source:7},T2)})},
styleSheetRuleCb:function(T2){return G1({type:3,data:Object.assign({},{source:8},T2)})},
styleDeclarationCb:function(T2){return G1({type:3,data:Object.assign({},{source:13},T2)})},
canvasMutationCb:Yk,fontCb:function(T2){return G1({type:3,data:Object.assign({},{source:10},T2)})},
selectionCb:function(T2){G1({type:3,data:Object.assign({},{source:14},T2)})},
customElementCb:function(T2){G1({type:3,data:Object.assign({},{source:16},T2)})},
blockClass:M,ignoreClass:K,ignoreSelector:L,maskTextClass:g,maskTextSelector:P,maskInputOptions:jT,inlineStylesheet:I,sampling:B,recordDOM:q,recordCanvas:U,inlineImages:Tg,userTriggeredOnInput:ka,collectFonts:aU,doc:l_,maskInputFn:W,maskTextFn:C,keepIframeSrcFn:hY,blockSelector:t,slimDOMOptions:P1,dataURLOptions:N,mirror:Ys,iframeManager:Gx,stylesheetManager:qj,shadowDomManager:b_,processedNodeManager:fT,canvasManager:qzt,ignoreCSSAttributes:dA,plugins:(iy==null?void 0:($V=iy.filter(function(T2){return T2.observer}))==
null?void 0:$V.map(function(T2){return{observer:T2.observer,
options:T2.options,callback:function(Pb){return G1({type:6,data:{plugin:T2.name,payload:Pb}})}}}))||[]},e)};
O3A(Gx,function(l_){try{MK.push(v1(l_.contentDocument))}catch($V){console.warn($V)}});
var Ew=function(){Vm1();MK.push(v1(document))};
document.readyState==="interactive"||document.readyState==="complete"?Ew():(MK.push(j9("DOMContentLoaded",function(){G1({type:0,data:{}});Xt==="DOMContentLoaded"&&Ew()})),MK.push(j9("load",function(){G1({type:1,
data:{}});Xt==="load"&&Ew()},window)));
return function(){MK.forEach(function(l_){try{l_()}catch($V){String($V).toLowerCase().includes("cross-origin")||console.warn($V)}});
fT.destroy();Jo=void 0}}catch(l_){console.warn(l_)}};
_.r=function(Y,G){G=QK(Or(G));Y.innerHTML=G};
EpA=function(Y){var G=MX4;G||(G=H3U(),G=MX4=_.gX.transpose(G));G=G[Y];return typeof G==="string"?G:_.uc(Y)};
tXT=function(Y){Y=String(Y).toLowerCase();var G=H3U()[Y];return typeof G==="string"?G:_.OK(Y)};
K3T=function(Y){Y=Y.toLowerCase();Y=H3U()[Y];return typeof Y==="string"?Y:null};
H3U=function(){if(!acU){for(var Y=Object.assign({},TkI),G=_.E(L3y),u=G.next();!u.done;u=G.next())u=u.value,Y[u.toLowerCase()]=u;acU=Y}return acU};
PDj=function(Y,G){var u=window.customElements;return u&&u.get(Y)||gpI[Y]===!0?2:G.name==="HTMLUnknownElement"?1:G.name==="HTMLElement"&&X01.test(Y)?3:0};
npa=function(Y,G){switch(G){case "innerHTML":return IcY(Y)===1?2:null;case "textContent":return Y=IcY(Y),Y===1||Y===6?1:null;default:var u,O;return(O=(u=klg[Y.localName])==null?void 0:u[G])!=null?O:null}};
IcY=function(Y){var G=Y.localName,u=PDj(G,Y.constructor);switch(u){case 0:case 1:return F3g(G,Y);case 3:case 2:return 1;default:_.YV(u,"got an unknown element classification")}};
F3g=function(Y,G){var u=Object.hasOwnProperty.call(p0g,Y)?p0g[Y]:null;return u!==null?u:Object.hasOwnProperty.call(zcA,Y)&&G instanceof SVGElement?zcA[Y]:null};
moU=function(Y,G){return G};
rgT=function(Y){return(Y=Y.split(W3u,2))?{url:Y[0],metadata:Y[1]}:null};
fc1=function(Y){var G=String(Y.url).replace(xo4,encodeURIComponent);if(Y=Y.metadata){xo4.lastIndex=0;if(xo4.test(Y))return null;G+=" "+Y}return G};
AgU=function(Y){function G(g){var P=g.localName;if(!g.getAttribute("is")&&PDj(P,g.constructor)===2){var I;return(I=L)!=null?I:L=document.createElement("polyresinuncustomized")}(g=K[P])||(g=K[P]=document.createElement(P));return g}
var u=Y.reportHandler||void 0,O=Y.safeTypesBridge||CDA,Q=/^$/;if(Y=Y.allowedIdentifierPrefixes){Y=_.E(Y);for(var M=Y.next();!M.done;M=Y.next())Q=new RegExp(Q.source+"|^"+_.ygI(M.value))}u&&u(!1,"initResin",null);var t=ecj(Q,O,u),K={},L=null;return function(g,P,I){var k=g.nodeType;if(k!==Node.ELEMENT_NODE){if(k===Node.TEXT_NODE){P=g.parentElement;I=!P;if(P&&P.nodeType===Node.ELEMENT_NODE){k=P.localName;var n=PDj(k,P.constructor);switch(n){case 0:case 1:P=F3g(k,P);I=P===1||P===6;break;case 3:case 2:I=
!0;break;default:_.YV(n,"got an unknown element classification")}}if(I)return function(e){return""+O(e,"STRING",e)}}return function(e){if(!e&&e!==document.all)return e;
u&&u(!0,"Failed to sanitize "+(g.parentElement&&g.parentElement.nodeName)+" #text node to value "+e,g.parentElement);return QA}}var p=g.localName;
k=G(g);var W=null;switch(I){case "attribute":if(tXT(P)in k)break;return function(e){return e};
case "property":if(P in k){W=npa(k,P);break}if((n=K3T(P))&&n in k)break;return function(e){return e};
default:_.YV(I,"got an unknown resin type, expected either 'property' or 'attribute'")}var C=I==="attribute"?P.toLowerCase():EpA(P);W||(W=U2j(p,C,function(e){var w=g.getAttribute(e);return!w||/[\[\{]/.test(e)?null:w}));
return function(e){var w=MZ,B=null;if(!e&&e!==document.all)return e;if(W!=null){var N=t[W],h=N.safeType;B=N.safeReplacement;h&&(w=O(e,h,MZ));w===MZ&&(N.filterString?(w=String(O(e,"STRING",e)),w=N.filterString(p,C,w)):N.filterRaw&&(w=N.filterRaw(p,C,e,g)),w===B&&(w=MZ))}w===MZ&&(w=B||QA,u&&u(!0,"Failed to sanitize attribute of <"+p+">: <"+p+" "+C+'="'+e+'">',g));return w}}};
ecj=function(Y,G,u){return[,{filterRaw:function(O,Q,M){return M},
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:opT,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:opT,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:QA,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:i3u,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(O,Q,M){M=
String(M).toLowerCase();return YtA(O,Q,M)?M:QA},
safeReplacement:QA,safeType:void 0},,{filterRaw:void 0,filterString:function(O,Q,M){return Y.test(M)?M:QA},
safeReplacement:QA,safeType:"CONSTANT"},{filterRaw:function(O,Q,M,t){if(typeof M==="string")var K=(K=M.match(RcY))?K.map(rgT).filter(Boolean):[];else if(Array.isArray(M))K=M;else return opT;var L=K;K=[];var g=[],P={};if(Array.isArray(L))for(var I=0,k=L.length;I<k;++I){var n=L[I],p=n&&n.url;if(p){var W=G(p,"URL",P);if(W){var C=W!==P;(C?K:g).push({url:C?W:p,metadata:n.metadata})}}}else g.push(L);L=g.length?JSON.stringify(g):null;g=MZ;if(K.length){if(!Array.isArray(K))throw Error();g=K.map(fc1).filter(Boolean).join(" , ")||
MZ}L&&u&&u(!0,"Failed to sanitize attribute value of <"+O+">: <"+O+" "+Q+'="'+M+'">: '+L,t);return g===MZ?opT:g},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
w0g=function(Y){var G=AgU(Y);return function(u,O,Q,M){return M||M===document.all?G(u,O,Q)(M):M}};
H$=function(Y,G){function u(){function Q(K,L,g){for(L=Reflect.getMetadata("parameters",K)||[];L.length<=g;)L.push(null);L[g]=L[g]||[];L[g].push(t);Reflect.defineMetadata(L,K);return K}
var M=_.vs.apply(0,arguments);if(this instanceof u)return O.apply(this,M),this;var t=new (Function.prototype.bind.apply(u,[null].concat(_.c8(M))));Q.annotation=t;return Q}
var O=Z3Y(G);u.prototype.toString=function(){return"@"+Y};
return u.annotationCls=u};
Z3Y=function(Y){return function(){var G=_.vs.apply(0,arguments),u=this;Y.forEach(function(O,Q){Q=G[Q];if(Array.isArray(O))u[O[0]]=Q&&Q!==void 0?Q:O[1];else for(var M in O)u[M]=Q&&Q[M]!==void 0?Q[M]:O[M]})}};
Doa=function(Y){return Y!==void 0&&Y!==null};
EK=function(Y){if(typeof Y==="string")return Y;if(Y===void 0||Y===null)return""+Y;if(Y.overriddenName)return Y.overriddenName;if(Y.name)return Y.name;Y=Y.toString();var G=Y.indexOf("\n");return G===-1?Y:Y.substring(0,G)};
hcg=function(Y){Y.__forward_ref__=hcg;Y.toString=function(){return EK(this())};
return Y};
tv=function(Y){return typeof Y==="function"&&Y.hasOwnProperty("__forward_ref__")&&Y.__forward_ref__===hcg?Y():Y};
dog=function(Y){return Y?Y.map(function(G){return new (Function.prototype.bind.apply(G.type.annotationCls,[null].concat(_.c8(G.args?G.args:[]))))}):[]};
b3A=function(Y){for(var G=[],u=0;u<Y.length;++u){if(G.indexOf(Y[u])>-1){G.push(Y[u]);break}G.push(Y[u])}return G};
SqA=function(Y){return Y.length>1?" ("+b3A(Y.slice().reverse()).map(function(G){return EK(G.token)}).join(" -> ")+")":""};
jsu=function(Y,G,u,O){if(O){var Q=Error("df``"+(O instanceof Error?O.message:O));Q.ngOriginalError=O}else Q=Error();Q.addKey=Nk4;Q.keys=[G];Q.injectors=[Y];Q.constructResolvingMessage=u;Q.message=Q.constructResolvingMessage();Q.ngOriginalError=O;return Q};
Nk4=function(Y,G){this.injectors.push(Y);this.keys.push(G);this.message=this.constructResolvingMessage()};
VXa=function(Y,G){return jsu(Y,G,function(){return"No provider for "+EK(this.keys[0].token)+"!"+SqA(this.keys)})};
lcA=function(Y,G){return jsu(Y,G,function(){return"Cannot instantiate cyclic dependency!"+SqA(this.keys)})};
BkI=function(Y,G,u){return jsu(Y,u,function(){var O=EK(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+O+"!"+SqA(this.keys)+"."},G)};
$o1=function(Y,G){for(var u=[],O=0,Q=G.length;O<Q;O++){var M=G[O];M&&M.length!=0?u.push(M.map(EK).join(" ")):u.push("?")}return Error("hf`"+EK(Y)+"`"+u.join(", ")+"`"+EK(Y))};
YEj=function(Y){var G=void 0,u=void 0;if(Y&&Y.useClass!==void 0){G=Y.useClass;var O=tv(Y.useClass);var Q=qqu.factory(O);O=ssU(O)}else Y&&Y.useExisting!==void 0?(Q=function(M){return M},O=[cgt(KX.get(tv(Y.useExisting)))]):Y&&Y.useFactory!==void 0?(Q=Y.useFactory,O=Uoj(Y.useFactory,Y.deps)):(u=Y.useValue,Q=function(){return Y.useValue},O=vpj);
return new JgI(Q,O,G,u)};
us4=function(Y){return new Gpg(KX.get(tv(Y.provide)),[YEj(Y)],Y.multi)};
QZt=function(Y){Y=OMj(Y,[]).map(us4);for(var G=new Map,u=0;u<Y.length;u++){var O=Y[u],Q=G.get(O.key.id);if(Q){if(O.multiProvider!==Q.multiProvider)throw Error("kf`"+Q+"`"+O);if(O.multiProvider)for(var M=0;M<O.resolvedFactories.length;M++)Q.resolvedFactories.push(O.resolvedFactories[M]);else G.set(O.key.id,O)}else Q=void 0,O.multiProvider?Q=new Gpg(O.key,O.resolvedFactories.slice(),O.multiProvider):Q=O,G.set(O.key.id,Q)}return Array.from(G.values())};
OMj=function(Y,G){Y.forEach(function(u){if(u instanceof Mtt)G.push({provide:u,useClass:u});else if(u&&typeof u=="object"&&u.provide!==void 0)G.push(u);else if(u instanceof Array)OMj(u,G);else throw Error("gf`"+u);});
return G};
Uoj=function(Y,G){if(G){var u=G.map(function(O){return[O]});
return G.map(function(O){return HM1(Y,O,u)})}return ssU(Y)};
ssU=function(Y){var G=qqu.parameters(Y);if(!G)return[];if(G.some(function(u){return u==null}))throw $o1(Y,G);
return G.map(function(u){return HM1(Y,u,G)})};
HM1=function(Y,G,u){var O=null,Q=!1;if(!Array.isArray(G))return G instanceof EcA?ttI(G.token,Q,null):ttI(G,Q,null);for(var M=null,t=0;t<G.length;++t){var K=G[t];if(K instanceof Mtt)O=K;else if(K instanceof EcA)O=K.token;else if(K instanceof KAj)Q=!0;else if(K instanceof aha||K instanceof Tx1)M=K}O=tv(O);if(O!=null)return ttI(O,Q,M);throw $o1(Y,u);};
ttI=function(Y,G,u){return new LAu(KX.get(tv(Y)),G,u)};
gc1=function(Y,G){for(var u=Array(Y.providers.length),O=0;O<Y.providers.length;++O){var Q=O;if(O<0||O>=Y.providers.length)throw Error("jf`"+O);u[Q]=G(Y.providers[O])}return u};
XTa=function(Y){return typeof Y==="function"&&qqu.parameters(Y).every(function(G){return!!G})};
kpj=function(Y){var G=Phj;Ih4.get(Y)||Ih4.set(Y,new G);return Ih4.get(Y)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(Y)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(Y)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y,G){var u,O;if(Y.contains(G))return!0;Y=_.ax(Y).querySelectorAll("content,slot");for(u=0;u<Y.length;++u){var Q=_.ax(Y[u]).getDistributedNodes();for(O=0;O<Q.length;++O)if(Q[O].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Q[O],G))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){Y.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Y)&&Y.preventDefault();Y.targetTouches&&(Y=Y.targetTouches[0],ncj=Y.pageX,FAI=Y.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 Y=0,G=T1.length;Y<G;Y++)document.addEventListener(T1[Y],_._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 Y=0,G=T1.length;Y<G;Y++)document.removeEventListener(T1[Y],_._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(Y){var G=_.ax(Y).rootTarget;Y.type!=="touchmove"&&pTt!==G&&(pTt=G,zhY=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.ax(Y).path));if(!zhY.length)return!0;if(Y.type==="touchstart")return!1;Y=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Y);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(zhY,Y.deltaX,Y.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){for(var G=[],u=Y.indexOf(mRA),O=0;O<=u;O++)if(Y[O].nodeType===Node.ELEMENT_NODE){var Q=Y[O],M=Q.style;M.overflow!=="scroll"&&M.overflow!=="auto"&&(M=window.getComputedStyle(Q));M.overflow!=="scroll"&&M.overflow!=="auto"||G.push(Q)}return G};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y,G,u){if(G||u)for(var O=Math.abs(u)>=Math.abs(G),Q=0;Q<Y.length;Q++){var M=Y[Q];if(O?u<0?M.scrollTop>0:M.scrollTop<M.scrollHeight-M.clientHeight:G<0?M.scrollLeft>0:M.scrollLeft<M.scrollWidth-M.clientWidth)return M}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){var G={deltaX:Y.deltaX,deltaY:Y.deltaY};"deltaX"in Y||("wheelDeltaX"in Y&&"wheelDeltaY"in Y?(G.deltaX=-Y.wheelDeltaX,G.deltaY=-Y.wheelDeltaY):"wheelDelta"in Y?(G.deltaX=0,G.deltaY=-Y.wheelDelta):"axis"in Y?(G.deltaX=Y.axis===1?Y.detail:0,G.deltaY=Y.axis===2?Y.detail:0):Y.targetTouches&&(Y=Y.targetTouches[0],G.deltaX=ncj-Y.pageX,G.deltaY=FAI-Y.pageY));return G};
WAg=function(Y){this.element=Y;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
xR4=function(Y){this.element=Y;this.color=window.getComputedStyle(Y).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");_.ax(this.waveContainer).appendChild(this.wave);rKA(this)};
LX=function(Y,G){for(var u in Y)if(u.toLowerCase()===G.toLowerCase())return Y[u]};
fhu=function(Y,G){for(var u in Y)if(u.toLowerCase()===G.toLowerCase()){delete Y[u];break}};
yKU=function(Y){Y=_.gX.clone(Y);for(var G=0;G<Cht.length;++G){var u=Cht[G],O=LX(Y,u);O&&(Y["X-Goog-Upload-Header-"+u]=O,fhu(Y,u))}return Y};
ehj=function(Y){Y=_.gX.clone(Y);fhu(Y,"X-Goog-Upload-Status")};
ocT=function(Y){return AKA.some(function(G){return G.test(Y)})};
ZMj=function(Y,G){var u;var O=(u=Y.formContent)==null?void 0:u.locale;u=O==null?void 0:O.split("-")[0];O=O&&iMy.includes(O)?O:u&&iMy.includes(u)?u:void 0;O=(O!=null?O:"en").replaceAll("-","_").toLowerCase();var Q;Y=((Q=Y.initializationData)==null?0:Q.useNightlyRelease)?"nightly":"live";var M;return(G==null?0:(M=G.getEnableAlohaBinarySplit)==null?0:M.call(G))?_.fO(RhA,Y):_.fO(wTy,Y,O)};
dRj=function(Y,G,u,O){if(DRu&&hhg===G)return DRu;hhg=G;var Q=ZMj(Y,O);return DRu=G.feedbackV2GlobalObject?Promise.resolve(G.feedbackV2GlobalObject):new Promise(function(M,t){var K=_.uI("SCRIPT");_.P8(K,Q);K.onload=function(){G.feedbackV2GlobalObject?M(G.feedbackV2GlobalObject):t(Error("nf"))};
K.onerror=function(){t(Error("of`"+Q.toString()))};
u.body.appendChild(K)})};
Nxy=function(Y,G,u,O){if(bMA&&SEI===G)return bMA;SEI=G;var Q=ZMj(Y,O);return bMA=G.feedbackV2GlobalObject?Promise.resolve(G.feedbackV2GlobalObject):new Promise(function(M,t){var K=_.uI("SCRIPT");_.P8(K,Q);K.onload=function(){G.feedbackV2GlobalObject?M(G.feedbackV2GlobalObject):t(Error("nf"))};
K.onerror=function(){t(Error("of`"+Q.toString()))};
u.body.appendChild(K)})};
jZj=function(Y,G,u,O,Q){Q=Q===void 0?!0:Q;var M,t,K,L,g;return _.a(function(P){switch(P.nextAddress){case 1:return M=Date.now(),P.yield(dRj(Y,u,O,G),2);case 2:t=P.yieldResult;if(!(Q||((L=Y.initializationData)==null?0:L.useNightlyRelease)||((g=Y.initializationData)==null?0:g.isLocalServer))){K=t.initializeFeedbackClient(Y,M,G);P.jumpTo(3);break}return P.yield(t.initializeFeedbackClientAsync(Y,M,G),4);case 4:K=P.yieldResult;case 3:return K.initiateAloha(),P.return(K)}})};
Vtj=function(Y,G,u,O){var Q,M,t;return _.a(function(K){if(K.nextAddress==1)return Q=Date.now(),K.yield(Nxy(Y,u,O.document,G),2);if(K.nextAddress!=3)return M=K.yieldResult,K.yield(M.initializeFeedbackClientAsync(Y,Q,G,O),3);t=K.yieldResult;t.initiateAloha();return K.return(t)})};
lhA=function(Y,G,u){var O=!0;O=O===void 0?!0:O;var Q,M,t,K,L,g,P,I;return _.a(function(k){Q=u||_.OI;if((M=G)==null?0:(K=(t=M).getEnableAlohaBinarySplit)==null?0:K.call(t)){L=Q;if(L.isFormOpened)throw new gJ;L.isFormOpened=!0;Y.callbacks=Y.callbacks||{};g=Y.callbacks.onClose||function(){};
Y.callbacks.onClose=function(n){L.isFormOpened=!1;g(n)};
try{return k.return(Vtj(Y,G,L,Q))}catch(n){throw L.isFormOpened=!1,n;}}else{P=Q;if(P.isFormOpened)throw new gJ;P.isFormOpened=!0;Y.callbacks=Y.callbacks||{};I=Y.callbacks.onClose||function(){};
Y.callbacks.onClose=function(n){P.isFormOpened=!1;I(n)};
try{return k.return(jZj(Y,G,P,Q.document,O))}catch(n){throw P.isFormOpened=!1,n;}}_.Sd(k)})};
cKA=function(Y,G){return _.a(function(u){return u.return(new Promise(function(O,Q){Number.isInteger(Number(Y))&&Number(Y)>0?(Q=BxT(G!=null?G:"")+"/aloha_form_properties?productId="+Y,$RY(Q,function(M){M=M.target;var t=null;try{var K=JSON,L=K.stringify;if(M.JSC$10117_xhr_){var g=M.JSC$10117_xhr_.responseText;g.indexOf(")]}'\n")==0&&(g=g.substring(5));var P=_.XA(g)}else P=void 0;t=TtY(qEy,L.call(K,P))}catch(I){L=new qEy,P=sZy(),P=_.P$(P,13,!1),P=_.P$(P,14,!0),P=_.P$(P,15,!0),P=_.P$(P,20,!1),t=_.Rh(L,
1,P)}O(t)},"GET","",{},2E3,!0)):Q(Error("pf`"+Y))}))})};
BxT=function(Y){return ocT(Y)?Y:"https://www.google.com/tools/feedback"};
YLj=function(Y){Y=Y.match(new RegExp(URu,"gi"))||[];Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next()){G=G.value;a:{var u=_.E(vc4);for(var O=u.next();!O.done;O=u.next())if(O.value.test(G)){u=!1;break a}u=!0}if(!u)a:{u=_.E(JKj);for(O=u.next();!O.done;O=u.next())if(O.value.test(G)){u=!0;break a}u=!1}if(u)return!0}return!1};
GGy=function(Y,G){var u={},O=Object.keys(Y);O=_.E(O);for(var Q=O.next();!Q.done;Q=O.next())Q=Q.value,u[Q]=G(Q,Y[Q]);return u};
uVA=function(Y){switch(Y){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"}};
Q_t=function(Y){if(window.crypto&&window.crypto.getRandomValues)try{var G=Array(Y),u=new Uint8Array(Y);window.crypto.getRandomValues(u);for(var O=0;O<G.length;O++)G[O]=u[O];return G}catch(M){}G=Array(Y);for(u=0;u<Y;u++){O=Date.now();for(var Q=0;Q<O%23;Q++)G[u]=Math.random();G[u]=Math.floor(Math.random()*256)}if(OkT)for(u=1,O=0;O<OkT.length;O++)G[u%Y]^=G[(u-1)%Y]/4^OkT.charCodeAt(O),u++;return G};
Ix=function(Y){Y=Q_t(Y);for(var G=[],u=0;u<Y.length;u++)G.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(Y[u]&63));return G.join("")};
MDj=function(){var Y=_.OI.ytLoggingDocDocumentNonce_;Y||(Y=Ix(16),_.U5("ytLoggingDocDocumentNonce_",Y));return Y};
Ewg=function(Y){Y&&_.eK("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:HkU,clientScreenNonce:Y})};
tDA=function(Y){return _.DE("client-screen-nonce-store",{})[Y===void 0?0:Y]};
KPI=function(Y,G){G=G===void 0?0:G;var u=_.DE("client-screen-nonce-store");u||(u={},_.ZE("client-screen-nonce-store",u));u[G]=Y};
af1=function(Y){Y=Y===void 0?0:Y;return Y===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+Y};
Tut=function(Y){return _.DE(af1(Y===void 0?0:Y))};
_.nX=function(Y){return(Y=Tut(Y===void 0?0:Y))?new _.ks({veType:Y,youtubeData:void 0,jspbYoutubeData:void 0}):null};
LPu=function(){var Y=_.DE("csn-to-ctt-auth-info");Y||(Y={},_.ZE("csn-to-ctt-auth-info",Y));return Y};
gwT=function(){return Object.values(_.DE("client-screen-nonce-store",{})).filter(function(Y){return Y!==void 0})};
_.FA=function(Y){Y=tDA(Y===void 0?0:Y);if(!Y&&!_.hy("USE_CSN_FALLBACK",!0))return null;Y||(Y="UNDEFINED_CSN");return Y?Y:null};
Pay=function(Y){for(var G=_.E(Object.values(XJY)),u=G.next();!u.done;u=G.next())if(_.FA(u.value)===Y)return!0;return!1};
IfT=function(Y,G,u){var O=LPu();(u=_.FA(u))&&delete O[u];G&&(O[Y]=G)};
pX=function(Y){return LPu()[Y]};
_.z1=function(Y,G,u,O){u=u===void 0?0:u;if(Y!==tDA(u)||G!==_.DE(af1(u)))if(IfT(Y,O,u),KPI(Y,u),_.ZE(af1(u),G),G=function(){setTimeout(function(){Ewg(Y)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(G)}catch(Q){G()}else G()};
kGt=function(Y,G){G=G===void 0?"":G;var u=[],O;for(O in Y)if(Y.hasOwnProperty(O)){var Q=G!==""?G+"."+O:O;typeof Y[O]==="object"?u.push.apply(u,_.c8(kGt(Y[O],Q))):u.push([Q,Y[O]])}u.sort();return u};
_.W$=function(Y){var G=_.vs.apply(1,arguments);if(!mR(Y)||G.some(function(O){return!mR(O)}))throw Error("qf");
G=_.E(G);for(var u=G.next();!u.done;u=G.next())nwA(Y,u.value)};
nwA=function(Y,G){for(var u in G)if(mR(G[u])){if(u in Y&&!mR(Y[u]))throw Error("rf");u in Y||(Y[u]={});nwA(Y[u],G[u])}else if(FPu(G[u])){if(u in Y&&!FPu(Y[u]))throw Error("sf");u in Y||(Y[u]=[]);pJg(Y[u],G[u])}else Y[u]=G[u];return Y};
pJg=function(Y,G){G=_.E(G);for(var u=G.next();!u.done;u=G.next())u=u.value,mR(u)?Y.push(nwA({},u)):FPu(u)?Y.push(pJg([],u)):Y.push(u);return Y};
mR=function(Y){return typeof Y==="object"&&!Array.isArray(Y)};
FPu=function(Y){return typeof Y==="object"&&Array.isArray(Y)};
mQ4=function(Y){for(var G=_.E(Object.entries(zzY)),u=G.next();!u.done;u=G.next())if(u=_.E(u.value),u.next(),u=u.next().value,u==="SLI_STATUS_"+Y)return u;return"SLI_STATUS_UNKNOWN"};
_.rJ=function(Y,G,u,O){return WPU(Y,G,function(){return new _.rwU(Y,G,u,O)})};
_.xQI=function(){return _.rJ("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
ffT=function(){return _.rJ("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
xs=function(){return _.rJ("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
CaT=function(){return _.rJ("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
yw4=function(){return _.rJ("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
ezI=function(){return _.rJ("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
iku=function(Y){Y&&(Y.dataset?Y.dataset[AwT()]="true":_.k6([_.rg(owj)],Y,"data-loaded","true".toString()))};
RzI=function(Y){return Y?Y.dataset?Y.dataset[AwT()]:Y.getAttribute("data-loaded"):null};
AwT=function(){return wJy.loaded||(wJy.loaded="loaded".replace(/\-([a-z])/g,function(Y,G){return G.toUpperCase()}))};
_.fX=function(Y,G,u){Zkg(Y,G,u===void 0?null:u)};
_.hzj=function(Y,G){Y&&G&&(Y=""+_.cu(G),(Y=DQA[Y])&&_.JRt(Y))};
Zkg=function(Y,G,u){u=u===void 0?null:u;var O=_.dQu(typeof Y==="string"?Y:Y.toString()),Q=document.getElementById(O),M=Q&&RzI(Q),t=Q&&!M;M?G&&G():(G&&(M=_.QO(O,G),G=""+_.cu(G),DQA[G]=M),t||(Q=bkY(Y,O,function(){RzI(Q)||(iku(Q),_.Yju(O),_.MN(function(){_.um1(O)},0))},u)))};
bkY=function(Y,G,u,O){O=O===void 0?null:O;var Q=_.uI("SCRIPT");Q.id=G;Q.onload=function(){u&&setTimeout(u,0)};
Q.onreadystatechange=function(){switch(Q.readyState){case "loaded":case "complete":Q.onload()}};
O&&Q.setAttribute("nonce",O);_.P8(Q,typeof Y==="string"?_.Ie(Y):Y);Y=document.getElementsByTagName("head")[0]||document.body;Y.insertBefore(Q,Y.firstChild);return Q};
_.dQu=function(Y){var G=document.createElement("a");Y6(G,Y);return"js-"+CX(G.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
SLj=function(Y){var G=_.DE("INNERTUBE_HOST_OVERRIDE");G&&(Y=String(G)+String(_.$x(Y)));return Y};
NuU=function(Y){var G={};_.F("json_condensed_response")&&(G.prettyPrint="false");return Y=W7T(Y,G)};
_.yA=function(Y){return $4(Y)?"same-origin":"include"};
_.ec=function(Y){return $4(Y)?"same-origin":"cors"};
Av=function(Y,G,u){u=u===void 0?{}:u;Y={method:G===void 0?"POST":G,mode:_.ec(Y),credentials:_.yA(Y)};G={};for(var O=_.E(Object.keys(u)),Q=O.next();!Q.done;Q=O.next())Q=Q.value,u[Q]&&(G[Q]=u[Q]);Object.keys(G).length>0&&(Y.headers=G);return Y};
_.ox=function(Y,G){G=G===void 0?{}:G;return"service:"+Y+"/"+Object.keys(G).sort().map(function(u){return u+":"+G[u]}).join("/")};
j_T=function(Y){var G,u,O,Q;Y=(G=_.z(Y,_.ic))==null?void 0:(u=G.watchEndpointSupportedOnesieConfig)==null?void 0:(O=u.html5PlaybackOnesieConfig)==null?void 0:(Q=O.commonConfig)==null?void 0:Q.url;if(!Y)return[];G=new _.Rx(Y);return G.JSC$10357_domain_?["https://"+G.JSC$10357_domain_+"/generate_204"]:[]};
_.Buj=function(){return VDA()||eUT()||lfa&&R2("version/")?!0:_.DE("EOM_VISITOR_DATA")?!1:!0};
$Qy=function(Y){var G=Y.docid||Y.video_id||Y.videoId||Y.id;if(G)return G;G=Y.raw_player_response;G||(Y=Y.player_response)&&(G=JSON.parse(Y));return G&&G.videoDetails&&G.videoDetails.videoId||null};
qLI=function(Y){return Y.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
DZ=function(Y){return!isNaN(Number(Y))&&!_.K1(Y)};
_.hv=function(Y,G,u,O){O=O===void 0?!0:O;var Q=_.DE("VALID_SESSION_TEMPDATA_DOMAINS",[]),M=_.l7(window.location.href);M&&Q.push(M);M=_.l7(Y);if(_.ST(Q,M)||!M&&_.EI(Y,"/"))if(Q=document.createElement("a"),Y6(Q,Y),Y=Q.href)if(Y=_.$x(Y),Y=_.qI(Y))O&&!G.csn&&(G.itct||G.ved)&&(G=Object.assign({csn:_.FA()},G)),u?(u=parseInt(u,10),isFinite(u)&&u>0&&s_a(Y,G,u)):s_a(Y,G)};
UQj=function(Y){var G=_.DE("VALID_SESSION_TEMPDATA_DOMAINS",[]),u=_.l7(window.location.href);u&&G.push(u);u=_.l7(Y);if(!(_.ST(G,u)||!u&&_.EI(Y,"/")))return null;Y=_.$x(Y);(Y=_.qI(Y))?(Y=cwu(Y),Y=(Y=_.TR.get(Y,void 0)||null)?_.Vg(Y):{}):Y=null;return Y};
s_a=function(Y,G,u){Y=cwu(Y);G=G?_.vI(G):"";u=u||5;_.Buj()&&_.LG(Y,G,u)};
cwu=function(Y){for(var G=_.E(vwA),u=G.next();!u.done;u=G.next())Y=_.ud(Y,u.value);return"ST-"+CX(Y).toString(36)};
_.Jwj=function(Y){if(Y.requestFullscreen)Y=Y.requestFullscreen(void 0);else if(Y.webkitRequestFullscreen)Y=Y.webkitRequestFullscreen();else if(Y.mozRequestFullScreen)Y=Y.mozRequestFullScreen();else if(Y.msRequestFullscreen)Y=Y.msRequestFullscreen();else if(Y.webkitEnterFullscreen)Y=Y.webkitEnterFullscreen();else return Promise.reject(Error("Bf"));return Y instanceof Promise?Y:Promise.resolve()};
_.bc=function(Y){var G;_.bdj(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.dJ()==Y&&(G=document):G=Y;if(G&&(Y=_.bdj(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],G))){Y.call(G)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.dJ=function(){var Y=Y===void 0?!1:Y;var G=_.bdj(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(Y)for(;G&&G.shadowRoot;)G=G.shadowRoot.fullscreenElement;return G?G:null};
_.Sc=function(Y,G){G=G===void 0?!0:G;Y.addEventListener("wheel",Yhj);Y.overscrollConfig={cooldown:G}};
_.NZ=function(Y){Y.overscrollConfig=void 0;Y.removeEventListener("wheel",Yhj)};
Yhj=function(Y){var G=Y.deltaY,u=Y.target,O=null;if(window.Polymer&&window.Polymer.Element){if(u=Y.path||Y.composedPath&&Y.composedPath()){u=_.E(u);for(var Q=u.next();!Q.done&&(Q=Q.value,!GcU(Q,G));Q=u.next())if(Q.overscrollConfig){O=Q;break}}}else for(;u&&!GcU(u,G);){if(u.overscrollConfig){O=u;break}u=u.parentElement}O&&(G=O.overscrollConfig,G.cooldown?(O=Y.deltaY,u=G.lastDeltaY||0,G.lastDeltaY=O,Q=G.lastStopped||0,u&&Q&&u>0==O>0?Math.abs(u)>=Math.abs(O)?(O=Q+1200,u=!1):(O=Q+600,u=!0):(O=Date.now()+
600,u=!0),O>Date.now()&&(Y.preventDefault(),u&&(G.lastStopped=Date.now()))):Y.preventDefault())};
GcU=function(Y,G){return G<0&&Y.scrollTop>0||G>0&&Y.scrollTop<Y.scrollHeight-Y.clientHeight-1?(Y=getComputedStyle(Y).overflowY,Y=="auto"||Y=="scroll"):!1};
uug=function(Y){jc.initialized=!0;jc.sessionId=Y.sessionId||"";jc.enabledSpans=Y.enabledSpans;Y.shouldSampleFn!=null&&(jc.shouldSampleFn=Y.shouldSampleFn)};
OlA=function(Y){jc.processors.push(Y)};
VA=function(Y){return jc.initialized?jc.enabledSpans?jc.enabledSpans[Y]:!0:!1};
ER4=function(Y,G,u){return VA(Y)&&jc.shouldSampleFn(Y,G,Qrt)?new MCg(Y,G,u):HlU};
_.lc=function(Y,G,u){if(typeof u==="function"){var O=u;u=void 0}var Q=ER4(Y,G,u),M;if(((M=u)==null?void 0:M.endTime)!=null)return O&&_.R0(Error("Df")),Q;var t;Q!==HlU&&((t=u)==null?void 0:t.active)!==!1&&jc.stack.push(Q);if(!O)return Q;if(Q===HlU)return O(Q);try{var K=O(Q);if(K instanceof Promise)return K.then(function(L){Q.end();return L},function(L){Q.end("SPAN_STATUS_ERROR");
throw L;});
Q.end();return K}catch(L){throw Q.end("SPAN_STATUS_ERROR"),L;}};
tCt=function(){DC.subscribe("handleError",function(Y){try{for(var G in B$)try{var u=B$[G];typeof B$[G]==="function"&&(u=u());Y.params[G]=typeof B$[G]==="object"?JSON.stringify(u):String(u)}catch(O){_.R0(O)}}catch(O){_.R0(O)}})};
KDt=function(){};
a_j=function(Y){var G=Y.nodeName;if(Y.id)return G+="#"+Y.id;if(Y.classList)for(var u=_.E(Y.classList),O=u.next();!O.done;O=u.next())G+="."+O.value;Y.parentElement&&(G=a_j(Y.parentElement)+" > "+G);return G};
_.$s=function(Y,G,u,O){O||(O={bubbles:!0,cancelable:!1,composed:!0});u!==null&&u!==void 0&&(O.detail=u);var Q=new CustomEvent(G,O);_.F("untrack_fire_custom_event_killswitch")?Y.dispatchEvent(Q):_.Pw(function(){return void Y.dispatchEvent(Q)});
return Q};
Tpg=function(Y){var G=window,u=function(O){G.removeEventListener("yt-navigate-start",u);return Y.call(G,O)};
G.addEventListener("yt-navigate-start",u,void 0)};
_.qZ=function(Y,G,u,O){O=O===void 0?!1:O;return _.lc("ytAction",{name:G,nodepath:a_j(Y)},function(){var Q=new LDu(G,!!O,u);_.$s(Y,"yt-action",Q);return Q.returnValue})};
_.sK=function(Y,G,u){return _.qZ(Y,G,u,!0)};
_.UK=function(Y,G,u,O){G&&G.length&&G.forEach(function(Q){var M=DvY(Q);M&&(_.F("handle_service_request_actions")&&Q.commandMetadata&&Q.commandMetadata.webCommandMetadata&&Q.commandMetadata.webCommandMetadata.sendPost?_.c$(u?u:Y,[Q]):_.sK(Y,M,[Q,u,O]))})};
_.c$=function(Y,G){var u=[Y];G&&u.push.apply(u,G);G=_.qZ(Y,"yt-service-request",u);return G.length>0&&(G=G[0],_.$s(Y,"yt-service-request-sent",G),G&&G.ajaxPromise)?(G.ajaxPromise.then(function(O){_.$s(Y,"yt-service-request-completed",O)},function(O){_.$s(Y,"yt-service-request-error",{error:O,
params:u})},Y),G.ajaxPromise):_.v$()};
_.YN=function(Y,G){if(_.F("handle_service_request_actions"))_.UK(G,Y,G);else{Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next()){u=u.value;var O=void 0;((O=_.z(u,_.Jv))==null?0:O.commands)?_.YN(_.z(u,_.Jv).commands,G):(O=void 0,((O=_.z(u,_.Gb))==null?0:O.actions)?_.YN(_.z(u,_.Gb).actions,G):(O=void 0,((O=_.z(u.commandMetadata,_.ug))==null?0:O.sendPost)?_.c$(G,[u]):_.UK(G,[u],G)))}}};
_.Xqa=function(Y,G,u){G=G===void 0?{}:G;typeof G==="function"&&(G={callback:G});u||G._c&&G._c.jsl&&G._c.jsl.h||_.gX.extend(G,{_c:{jsl:{h:_.DE("GAPI_HINT_PARAMS")}}});(G.gapiHintOverride||_.DE("GAPI_HINT_OVERRIDE"))&&(u=_.li(document.location.href).gapi_jsh)&&_.gX.extend(G,{_c:{jsl:{h:u}}});gRg(Y,G)};
_.Q6=function(Y,G,u){G=G===void 0?{}:G;Y=(Y=Y in OU?OU[Y]:u)||"";u={};for(var O in G){u={key$jscomp$855:u.key$jscomp$855};u.key$jscomp$855=O;var Q=function(M){return function(){return String(G[M.key$jscomp$855])}}(u);
Y=Y.replace(new RegExp("\\$\\{"+u.key$jscomp$855+"\\}","gi"),Q);Y=Y.replace(new RegExp("\\$"+u.key$jscomp$855,"gi"),Q)}return Y};
_.Mu=function(Y,G){return Pfa(Y in OU?OU[Y]:{},G)};
Pfa=function(Y,G){var u=_.DE("I18N_PLURAL_RULES");u||(u=function(O){return O==1?"one":"other"});
return(Y=Y["case"+G]||Y[u(G)])?Y.replace("#",G.toString()):G+""};
nR1=function(Y){var G=I_I(Y),u=document.getElementById(G),O=u&&RzI(u);O||u&&!O||(u=kct(Y,G,function(){if(!RzI(u)){iku(u);_.Yju(G);var Q=_.H2(_.um1,G);_.MN(Q,0)}}))};
kct=function(Y,G,u){var O=document.createElement("link");O.id=G;O.onload=function(){u&&setTimeout(u,0)};
Y=_.Ie(Y);_.nb(O,Y,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(O);return O};
I_I=function(Y){var G=_.uI("A");Y6(G,VG(Y));return"css-"+CX(G.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.pq1=function(Y){var G=FDg();Y!==G&&(G=_.EU(),!_.F("web_autonav_allow_off_by_default")&&Y||_.tW(0,141,!0),_.tW(0,140,!Y),G.save())};
FDg=function(){var Y=_.EU();return _.F("web_autonav_allow_off_by_default")&&!Y.getFlag(141)&&_.DE("AUTONAV_OFF_BY_DEFAULT")?!1:!Y.getFlag(140)};
zkT=function(Y,G){var u,O;Y=((u=Y.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(O=u.videoAuthorizationToken)==null?void 0:O.credentialTransferTokens)||[];for(u=0;u<Y.length;++u)if(Y[u].scope===G)return Y[u].token||void 0};
mEI=function(Y){for(var G=0,u=0;u<Y.length;u++)G=G*31+Y.charCodeAt(u),u<Y.length-1&&(G%=0x800000000000);return G%1E5};
_.KQ=function(Y){return _.So("ytcsi."+(Y||"")+"data_")||WDU(Y)};
_.rMt=function(Y){Y=_.KQ(Y);Y.metadata||(Y.metadata={});return Y.metadata};
_.xEI=function(Y){Y=_.KQ(Y);Y.tick||(Y.tick={});return Y.tick};
_.aK=function(Y){Y=_.KQ(Y);if(Y.gel){var G=Y.gel;G.gelInfos||(G.gelInfos={});G.gelTicks||(G.gelTicks={})}else Y.gel={gelTicks:{},gelInfos:{}};return Y.gel};
_.f_y=function(Y){Y=_.aK(Y);Y.gelInfos||(Y.gelInfos={});return Y.gelInfos};
Cft=function(Y){var G=_.KQ(Y).nonce;G||(G=Ix(16),_.KQ(Y).nonce=G);return G};
WDU=function(Y){var G={tick:{},info:{}};_.U5("ytcsi."+(Y||"")+"data_",G);return G};
yM4=function(){var Y=_.So("ytcsi.debug");Y||(Y=[],_.U5("ytcsi.debug",Y),_.U5("ytcsi.reference",{}));return Y};
_.Tb=function(Y){Y=Y||"";var G=ek1();if(G[Y])return G[Y];var u=yM4(),O={timerName:Y,info:{},tick:{},span:{},jspbInfo:[]};u.push(O);return G[Y]=O};
AMy=function(Y){Y=Y||"";var G=ek1();G[Y]&&delete G[Y];var u=yM4(),O={timerName:Y,info:{},tick:{},span:{},jspbInfo:[]};u.push(O);G[Y]=O};
ek1=function(){var Y=_.So("ytcsi.reference");if(Y)return Y;yM4();return _.So("ytcsi.reference")};
_.ilY=function(Y){return oR1[Y]||"LATENCY_ACTION_UNKNOWN"};
DEy=function(Y,G,u){u=u===void 0?{}:u;var O=!1;_.hy("ytLoggingEventsDefaultDisabled",!1)&&(O=!0);O=O?null:yO;u=u===void 0?{}:u;var Q=Math.round(u.timestamp||(0,_.GC)());_.F3(G,1,Q<Number.MAX_SAFE_INTEGER?Q:0);Q=new Rku;if(u.lact)_.F3(Q,1,isFinite(u.lact)?u.lact:-1);else if(u.timestamp)_.F3(Q,1,-1);else{var M=_.Y7();_.F3(Q,1,isFinite(M)?M:-1)}if(u.sequenceGroup&&!_.F("web_gel_sequence_info_killswitch")){M=u.sequenceGroup;var t=Twj(M),K=new wqy;_.F3(K,2,t);_.E_(K,1,M);_.Rh(Q,3,K);u.endOfSequence&&delete ZlY[u.sequenceGroup]}_.Rh(G,
33,Q);(u.sendIsolatedPayload?nhT:F2u)(Y,{endpoint:"log_event",payload:G,cttAuthInfo:u.cttAuthInfo,dangerousLogToVisitorSession:u.dangerousLogToVisitorSession},O)};
_.hka=function(Y,G){_.LQ("_start",Y,G)};
_.gS=function(Y,G){if(!_.F("web_csi_action_sampling_enabled")||!_.KQ(G).actionDisabled){var u=_.Tb(G||"");_.W$(u.info,Y);Y.loadType&&(u=Y.loadType,_.rMt(G).loadType=u);_.W$(_.f_y(G),Y);u=Cft(G);G=_.KQ(G).cttAuthInfo;dEa().info(Y,u,G)}};
blu=function(){var Y,G,u,O;return((O=_.sH().resolve(_.q3(rN))==null?void 0:(Y=x7())==null?void 0:(G=Y.loggingHotConfig)==null?void 0:(u=G.csiConfig)==null?void 0:u.debugTicks)!=null?O:[]).map(function(Q){return Object.values(Q)[0]})};
_.LQ=function(Y,G,u){if(!_.F("web_csi_action_sampling_enabled")||!_.KQ(u).actionDisabled){var O=Cft(u),Q;if(Q=_.F("web_csi_debug_sample_enabled")&&O){(_.sH().resolve(_.q3(rN))==null?0:x7())&&!ShT&&(ShT=!0,_.LQ("gcfl",(0,_.GC)(),u));var M,t,K;Q=(_.sH().resolve(_.q3(rN))==null?void 0:(M=x7())==null?void 0:(t=M.loggingHotConfig)==null?void 0:(K=t.csiConfig)==null?void 0:K.debugSampleWeight)||0;if(M=Q!==0)b:{M=blu();if(M.length>0)for(t=0;t<M.length;t++)if(Y===M[t]){M=!0;break b}M=!1}M?(Q=mEI(O)%Q!==0,
_.KQ(u).debugTicksExcludedLogged||(M={},M.debugTicksExcluded=Q,_.gS(M,u)),_.KQ(u).debugTicksExcludedLogged=!0):Q=!1}if(!Q){Y[0]!=="_"&&Npj(Y,u,G);Q=_.Tb(u||"");Q.tick[Y]=G||(0,_.GC)();if(Q.callback&&Q.callback[Y])for(Q=_.E(Q.callback[Y]),M=Q.next();!M.done;M=Q.next())M=M.value,M();Q=_.aK(u);Q.gelTicks&&(Q.gelTicks[Y]=!0);M=_.xEI(u);Q=G||(0,_.GC)();M[Y]=Q;M=_.KQ(u).cttAuthInfo;Y==="_start"?dEa().baseline(O,G,M):dEa().tick(Y,O,G,M);_.jra(u);return Q}}};
Npj=function(Y,G,u){if(_.Xh.mark)if(Y.startsWith("mark_")||(Y="mark_"+Y),G&&(Y+=" ("+G+")"),u===void 0||_.F("web_csi_disable_alt_time_performance_mark"))_.Xh.mark(Y);else{u=_.F("csi_use_performance_navigation_timing")?u-_.Xh.timeOrigin:u-(_.Xh.timeOrigin||_.Xh.timing.navigationStart);try{_.Xh.mark(Y,{startTime:u})}catch(O){}}};
VCa=function(){var Y,G=(Y=_.Xh.getEntriesByType)==null?void 0:Y.call(_.Xh,"mark");G&&G.forEach(function(u){if(u.name.startsWith("mark_")){var O;(O=_.Xh.clearMarks)==null||O.call(_.Xh,u.name)}})};
_.l_u=function(Y){var G={},u=function(M,t,K){t=t.match("_rid")?t.split("_rid")[0]:t;typeof K==="number"&&(K=JSON.stringify(K));M.requestIds?M.requestIds.push({endpoint:t,id:K}):M.requestIds=[{endpoint:t,id:K}]};
Y=_.E(Object.entries(Y));for(var O=Y.next();!O.done;O=Y.next()){var Q=_.E(O.value);O=Q.next().value;Q=Q.next().value;switch(O){case "GetBrowse_rid":u(G,O,Q);break;case "GetGuide_rid":u(G,O,Q);break;case "GetHome_rid":u(G,O,Q);break;case "GetPlayer_rid":u(G,O,Q);break;case "GetSearch_rid":u(G,O,Q);break;case "GetSettings_rid":u(G,O,Q);break;case "GetTrending_rid":u(G,O,Q);break;case "GetWatchNext_rid":u(G,O,Q);break;case "yt_red":G.isRedSubscriber=!!Q;break;case "yt_ad":G.isMonetized=!!Q}}return G};
_.Bp1=function(Y){var G=_.P2("aft",Y);if(G)return G;G=_.DE((Y||"")+"TIMING_AFT_KEYS",["ol"]);for(var u=G.length,O=0;O<u;O++){var Q=_.P2(G[O],Y);if(Q)return Q}return NaN};
_.$E1=function(Y,G){_.U5("ytglobal.timing"+(G||"")+"ready_",Y)};
_.P2=function(Y,G){if(Y=_.xEI(G)[Y])return typeof Y==="number"?Y:Y[Y.length-1]};
_.jra=function(Y){var G=_.P2("_start",Y),u=_.Bp1(Y),O=!qh4;G&&u&&O&&(XnU(sra,new cMt(Math.round(u-G),Y)),qh4=!0)};
vRI=function(Y){WDU(Y);UEI();VCa();Y||(_.DE("TIMING_ACTION")&&_.ZE("PREVIOUS_ACTION",_.DE("TIMING_ACTION")),_.ZE("TIMING_ACTION",""))};
_.JMa=function(Y){Y=Y===void 0?{}:Y;_.bi(function(){IK();AMy();vRI();_.$E1(!1);Y.cttAuthInfo&&(_.KQ().cttAuthInfo=Y.cttAuthInfo);_.ZE("TIMING_AFT_KEYS",[]);Y.isHot?_.kN({loadType:"hot"}):_.kN({loadType:"warm"});_.ZE("TIMING_ACTION","");delete _.DE("TIMING_INFO",{}).yt_lt;_.bi(_.hka)(Y.startTime,void 0)})()};
_.Fh=function(Y,G,u,O){G=G===void 0?{}:G;_.bi(function(){var Q=u?u:Y;nQ(Q);var M=G.sampleRate;if(!_.F("web_csi_action_sampling_enabled")||M===void 0||M<=1)M=!1;else{var t=Cft(Q);M=mEI(t)%M!==0}M&&(_.KQ(Q).actionDisabled=!0);_.Tb(Q||"").info.actionType=Y;G.cttAuthInfo&&(_.KQ(Q).cttAuthInfo=G.cttAuthInfo);_.ZE(Q+"TIMING_ACTION",Y);_.bi(_.hka)(G.startTime,Q);M={actionType:O||_.ilY(Y)};G.logPreviousAction&&(M.previousAction=_.ilY(_.DE("TIMING_ACTION")));(t=_.FA())&&t!=="UNDEFINED_CSN"&&(M.clientScreenNonce=
t);_.kN(M,Q);_.$E1(!0,Q)})()};
nQ=function(Y){_.bi(function(){IK(Y);AMy(Y);vRI(Y)})()};
Y24=function(){_.bi(function(){var Y=[],G;for(G in _.So("ytcsi.".slice(0,-1)))G.endsWith("data_")&&Y.push(G.slice(0,-5));Y=_.E(Y);for(G=Y.next();!G.done;G=Y.next())nQ(G.value);IK()})()};
_.ukt=function(Y){return _.bi(function(){return _.Gkj("_start",Y)})()};
_.kN=function(Y,G,u){_.bi(_.gS)(Y,G,u===void 0?!1:u)};
_.pQ=function(Y,G,u){return _.bi(_.LQ)(Y,G,u)};
_.Gkj=function(Y,G){return _.bi(function(){var u=_.xEI(G);return Y in u})()};
Q8y=function(Y){if(!_.F("universal_csi_network_ticks"))return"";Y=_.BI(Y)||"";for(var G=Object.keys(OIj),u=0;u<G.length;u++){var O=G[u];if(Y.includes(O))return O}return""};
HI4=function(Y){if(!_.F("universal_csi_network_ticks"))return function(){};
var G=OIj[Y];return G?(_.zb(G),function(){var u=_.F("universal_csi_network_ticks")?(u=MOj[Y])?_.zb(u):!1:!1;return u}):function(){}};
_.zb=function(Y,G,u){return _.bi(function(){if(_.Gkj(Y,u))return!1;_.pQ(Y,G,u);return!0})()};
_.m7=function(Y,G,u){_.bi(function(){if(!_.ukt(u)||_.Gkj(Y,u))return!1;_.pQ(Y,G,u);return!0})()};
_.W2=function(Y){return _.bi(_.P2)(Y,void 0)};
IK=function(Y){_.ukt(Y)&&_.pQ("aa",void 0,Y)};
_.T8t=function(Y,G,u,O,Q,M,t,K,L,g){var P=EYt();M=new _.ks({veType:G,youtubeData:M,jspbYoutubeData:K});g=rS({automatedLogEventSource:g},P);Q&&(g.cttAuthInfo=Q);Q={csn:P,pageVe:M.getAsJson()};_.F("expectation_logging")&&L&&L.screenCreatedLoggingExpectations&&(Q.screenCreatedLoggingExpectations=L.screenCreatedLoggingExpectations);u&&u.visualElement?(Q.implicitGesture={parentCsn:u.clientScreenNonce,gesturedVe:u.visualElement.getAsJson()},t&&(Q.implicitGesture.gestureType=t)):u&&_.R0(new _.I2("newScreen() parent element does not have a VE - rootVe",
G));O&&(Q.cloneCsn=O);Y?CJ("screenCreated",Q,Y,g):_.eK("screenCreated",Q,g);XnU(zYY,new tOu(P));xN.clear();K9A.clear();aAI.clear();return P};
fQ=function(Y,G,u,O,Q,M){M=M===void 0?{}:M;L9y(Y,G,u,[O],Q===void 0?!1:Q,M)};
L9y=function(Y,G,u,O,Q,M){Q=Q===void 0?!1:Q;M=M===void 0?{}:M;Object.assign(M,rS({cttAuthInfo:pX(G)||void 0},G));for(var t=_.E(O),K=t.next();!K.done;K=t.next()){K=K.value;var L=K.getAsJson();(_.gX.isEmpty(L)||!L.trackingParams&&!L.veType)&&_.R0(Error("Ff"));if(_.F("no_client_ve_attach_unless_shown")){var g=gYu(K,G);if(L.veType&&!K9A.has(g)&&!aAI.has(g)&&!Q){if(!_.F("il_attach_cache_limit")||xN.size<1E3){xN.set(g,[Y,G,u,K]);return}_.F("il_attach_cache_limit")&&xN.size>1E3&&_.R0(new _.I2("IL Attach cache exceeded limit"))}K=
gYu(u,G);xN.has(K)?XZy(u,G):aAI.set(K,!0)}}O=O.filter(function(P){P.csn!==G?(P.csn=G,P=!0):P=!1;return P});
u={csn:G,parentVe:u.getAsJson(),childVes:_.Xi(O,function(P){return P.getAsJson()})};
G==="UNDEFINED_CSN"?CQ("visualElementAttached",M,u):Y?CJ("visualElementAttached",u,Y,M):_.eK("visualElementAttached",u,M)};
IAt=function(Y,G,u,O,Q,M,t){PE1(Y,G,u,Q,t)};
PE1=function(Y,G,u,O,Q){kkI(u,G);Q=rS({cttAuthInfo:pX(G)||void 0,automatedLogEventSource:Q},G);u={csn:G,ve:u.getAsJson(),eventType:1};O&&(u.clientData=O);G==="UNDEFINED_CSN"?CQ("visualElementShown",Q,u):Y?CJ("visualElementShown",u,Y,Q):_.eK("visualElementShown",u,Q)};
nYU=function(Y,G,u,O){kkI(u,G);var Q=rS({cttAuthInfo:pX(G)||void 0,automatedLogEventSource:void 0},G);u={csn:G,ve:u.getAsJson(),eventType:4};O&&(u.clientData=O);G==="UNDEFINED_CSN"?CQ("visualElementShown",Q,u):Y?CJ("visualElementShown",u,Y,Q):_.eK("visualElementShown",u,Q)};
F9T=function(Y,G,u,O,Q,M){var t=(O=O===void 0?!1:O)?16:8;O=rS({cttAuthInfo:pX(G)||void 0,endOfSequence:O,automatedLogEventSource:M},G);u={csn:G,ve:u.getAsJson(),eventType:t};Q&&(u.clientData=Q);G==="UNDEFINED_CSN"?CQ("visualElementHidden",O,u):Y?CJ("visualElementHidden",u,Y,O):_.eK("visualElementHidden",u,O)};
z9t=function(Y,G,u,O,Q,M){pZI(Y,G,u,void 0,O,Q,M)};
pZI=function(Y,G,u,O,Q,M,t){kkI(u,G);O=O||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";M=rS({cttAuthInfo:pX(G)||void 0,automatedLogEventSource:t},G);u={csn:G,ve:u.getAsJson(),gestureType:O};Q&&(u.clientData=Q);G==="UNDEFINED_CSN"?CQ("visualElementGestured",M,u):Y?CJ("visualElementGestured",u,Y,M):_.eK("visualElementGestured",u,M)};
myA=function(Y,G,u,O){var Q=rS({cttAuthInfo:pX(G)||void 0},G);u={csn:G,ve:u.getAsJson(),clientData:O};G==="UNDEFINED_CSN"?CQ("visualElementStateChanged",Q,u):Y?CJ("visualElementStateChanged",u,Y,Q):_.eK("visualElementStateChanged",u,Q)};
W9u=function(){var Y=Q_t(16);for(var G=[],u=0;u<Y.length;u++)G.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(Y[u]&63));return G.join("")};
CQ=function(Y,G,u){rC4.push({payloadName:Y,payload:u,jspbPayload:void 0,options:G});xyU||(xyU=WOA())};
pny=function(Y){if(rC4){for(var G=_.E(rC4),u=G.next();!u.done;u=G.next())u=u.value,u.payload&&(u.payload.csn=Y.csn,_.eK(u.payloadName,u.payload,u.options));rC4.length=0}xyU=0};
gYu=function(Y,G){return""+Y.getAsJson().veType+Y.getAsJson().veCounter+G};
kkI=function(Y,G){if(_.F("no_client_ve_attach_unless_shown")){var u=gYu(Y,G);K9A.set(u,!0);XZy(Y,G)}};
XZy=function(Y,G){Y=gYu(Y,G);xN.has(Y)&&(G=xN.get(Y)||[],fQ(G[0],G[1],G[2],G[3],!0),xN.delete(Y))};
rS=function(Y,G){_.F("log_sequence_info_on_gel_web")&&(Y.sequenceGroup=G);return Y};
_.y6=function(Y,G,u){_.bi(fQ)(void 0,Y,G,u)};
_.ey=function(Y,G,u){_.bi(L9y)(void 0,Y,G,u)};
_.AW=function(Y,G){_.bi(IAt)(void 0,Y,G,void 0,void 0,void 0)};
_.oK=function(Y,G,u){_.bi(function(){_.jo(G,function(O){nYU(void 0,Y,O,u)})})()};
_.ig=function(Y,G,u,O){_.bi(function(){_.jo(G,function(Q){F9T(void 0,Y,Q,u,O)})})()};
_.RK=function(Y,G,u){_.bi(z9t)(void 0,Y,G,u,void 0)};
_.wS=function(Y,G,u,O){_.bi(pZI)(void 0,Y,G,u,O,void 0)};
_.Zy=function(Y,G,u){_.bi(myA)(void 0,Y,G,u,void 0)};
fA1=function(Y,G){Dy.set(Y,G)};
CEA=function(Y,G){var u=Object.keys(Y);Y=new _.I2("[Command Handler] "+G,{filteredCommandNames:u,originalCommand:Y});_.o0(Y)};
yCt=function(Y,G){CEA(Y,G+" was called but not set")};
e91=function(Y){return function(){return new Y}};
hW=function(Y){return function(){return _.sH().resolve(Y)}};
ACT=function(Y,G){var u=_.z(Y,_.dN);if(u&&(u=G[u.signal]))return u();Y=_.E(Object.keys(Y));for(u=Y.next();!u.done;u=Y.next())if(u=u.value,G[u]&&(u=G[u]))return u()};
_.dS=function(Y,G,u,O){return{browseEndpoint:{browseId:Y},commandMetadata:{webCommandMetadata:{url:G,rootVe:u,webPageType:O===void 0?"WEB_PAGE_TYPE_BROWSE":O}}}};
oYA=function(Y,G,u){var O=G=G===void 0?0:G;u=u===void 0?0:u;var Q=u-O;return _.bg(Y,"PPSV",void 0,void 0,(Q>600?0:Q<60||u<=0||O/u>.9)?0:G)};
_.bg=function(Y,G,u,O,Q){var M="/watch?v="+Y;Y={videoId:Y};G&&(Y.playlistId=G,M+="&list="+G);O&&(M+="&pp="+O);Q&&(Y.startTimeSeconds=Q,M+="&t="+Q+"s");G={watchEndpoint:Y,commandMetadata:{webCommandMetadata:{url:M,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};u&&(G.clickTrackingParams=u);O&&(_.z(G,_.ic).playerParams=O);return G};
iI1=function(Y){return{browseEndpoint:{browseId:"VL"+Y},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+Y,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
R91=function(Y){if(Y){var G;if(Y){var u=(G=_.z(Y.commandMetadata,_.ug))==null?void 0:G.url;G=!(!u||u==="/service_ajax")}else G=!1;if(G)return Y;var O;if(Y=(O=_.z(Y,_.Jv))==null?void 0:O.commands)for(O=_.E(Y),Y=O.next();!Y.done;Y=O.next())if(Y=R91(Y.value))return Y}};
_.Sy=function(Y){return{runs:[{text:Y}]}};
wZU=function(Y,G){return Y&&G?{runs:[{text:Y,navigationEndpoint:G}]}:void 0};
Nu=function(Y){return Y?_.Sy(Y):void 0};
_.jy=function(Y){return Y?{simpleText:Y}:void 0};
_.V6=function(Y){var G=Y.type;Y=Y.payload;G={type:G};Y!==void 0&&(G.payload=Y);return G};
ZIu=function(Y,G,u){for(var O=Object.assign({},Y),Q=_.E(Object.keys(G)),M=Q.next();!M.done;M=Q.next()){M=M.value;var t=Y[M],K=G[M];if(K===void 0)delete O[M];else if(t===void 0)O[M]=K;else if(Array.isArray(K)&&Array.isArray(t))O[M]=u?[].concat(_.c8(t),_.c8(K)):K;else if(!Array.isArray(K)&&_.$a(K)&&!Array.isArray(t)&&_.$a(t))O[M]=ZIu(t,K,u);else if(typeof K===typeof t)O[M]=K;else return G=new _.I2("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:M,originalValue:t,updateValue:K}),
_.o0(G),Y}return O};
dyj=function(Y){if(!Y.length)return"";try{if(DyY)return DyY.decode(Y);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(Y)}catch(t){}for(var G=0,u=[],O=Y.length;G<O;){for(var Q=0;Q<1024&&G<O;){var M=Y[G++];if(M<128)h9a[Q++]=M;else{if(M<224)M=(M&31)<<6|Y[G++]&63;else if(M<240)M=(M&15)<<12|(Y[G++]&63)<<6|Y[G++]&63;else{if(Q+1===1024){--G;break}M=(M&7)<<18|(Y[G++]&63)<<12|(Y[G++]&63)<<6|Y[G++]&63;M-=65536;h9a[Q++]=55296|M>>10;M=56320|M&1023}h9a[Q++]=M}}M=String.fromCharCode.apply(String,
h9a);Q<1024&&(M=M.substring(0,Q));u.push(M)}return u.join("")};
S2g=function(Y,G){var u;if((u=bIT)==null?0:u.encodeInto)return G=bIT.encodeInto(Y,G),G.read<Y.length?Y.length*4:G.written;for(var O=u=0;O<Y.length;O++){var Q=Y.charCodeAt(O);Q<128?G[u++]=Q:(Q<2048?G[u++]=Q>>6|192:((Q&64512)===55296&&O+1<Y.length&&(Y.charCodeAt(O+1)&64512)===56320?(Q=65536+((Q&1023)<<10)+(Y.charCodeAt(++O)&1023),G[u++]=Q>>18|240,G[u++]=Q>>12&63|128):G[u++]=Q>>12|224,G[u++]=Q>>6&63|128),G[u++]=Q&63|128)}return u};
N8u=function(Y,G,u){if(G&&u&&u.buffer===G.exports.memory.buffer){var O=G.realloc(u.byteOffset,Y);if(O)return new Uint8Array(G.exports.memory.buffer,O,Y)}Y=G?new Uint8Array(G.exports.memory.buffer,G.malloc(Y),Y):new Uint8Array(Y);u&&Y.set(u);return Y};
_.B2=function(Y){Y=new j8a(new VOA([_.JY(decodeURIComponent(Y))]));if(lA1(Y,2)){var G=lg(Y);var u=Y.pos;var O=Y.arrayView;u=u===void 0?0:u;var Q=G===void 0?-1:G;u=u===void 0?0:u;Q=Q===void 0?-1:Q;if(O.totalLength&&Q){Q<0&&(Q=O.totalLength-u);O.focus(u);if(!(u-O.arrayPos+Q<=O.arrays[O.arrayIdx].length)){var M=O.arrayIdx,t=O.arrayPos;O.focus(u+Q-1);t=new Uint8Array(O.arrayPos+O.arrays[O.arrayIdx].length-t);for(var K=0,L=M;L<=O.arrayIdx;L++)t.set(O.arrays[L],K),K+=O.arrays[L].length;O.arrays.splice(M,
O.arrayIdx-M+1,t);O.arrayIdx=0;O.arrayPos=0;O.focus(u)}M=O.arrays[O.arrayIdx];O=new DataView(M.buffer,M.byteOffset+u-O.arrayPos,Q)}else O=new DataView(new ArrayBuffer(0));O=new Uint8Array(O.buffer,O.byteOffset,O.byteLength);Y.pos+=G;G=O}else G=void 0;G=G?dyj(G):void 0;Y=lA1(Y,4)?lg(Y):void 0;O=B8j[Y];if(typeof O==="undefined")throw Y=new _.I2("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:Y}),_.o0(Y),Y;return{entityTypeFieldNumber:Y,entityType:O,entityId:G}};
_.UU=function(Y,G,u){u=u===void 0?0:u;var O=new $y4;if(bIT)Y=bIT.encode(Y);else{var Q=new Uint8Array(Math.ceil(Y.length*1.2)),M=S2g(Y,Q);Q.length<M&&(Q=new Uint8Array(M),M=S2g(Y,Q));Q.length>M&&(Q=Q.subarray(0,M));Y=Q}Y!==void 0&&(sU(O,18),Q=Y.length,sU(O,Q),c2(O,Q),O.buf.set(Y,O.pos),O.pos+=Q);Y=q2U[G];if(typeof Y==="undefined")throw u=new _.I2("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:G}),_.o0(u),u;Y!==void 0&&(sU(O,32),sU(O,Y));sU(O,40);sU(O,1);G=new Uint8Array(O.buf.buffer,
O.buf.byteOffset,O.pos);return encodeURIComponent(_.vu(G,u))};
s8A=function(Y){Y=Y.key||Y.id;if(!Y)throw Error("If");return Y};
Uyg=function(Y,G){Y=Y===void 0?{}:Y;return cC4(Y,G)};
vYj=function(Y,G,u,O){if(O===void 0)return O=Object.assign({},Y[G]||{}),u=(delete O[u],O),O={},Object.assign({},Y,(O[G]=u,O));var Q={},M={};return Object.assign({},Y,(M[G]=Object.assign({},Y[G],(Q[u]=O,Q)),M))};
JCt=function(Y,G,u,O,Q){var M=Y[G];if(M==null||!M[u])return Y;O=ZIu(M[u],O,Q==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Q={};M={};return Object.assign({},Y,(M[G]=Object.assign({},Y[G],(Q[u]=O,Q)),M))};
_.v2=function(Y,G,u){return Y[G]?Y[G][u]||null:null};
Grt=function(){if(Y6a)return Y6a();var Y={};Y6a=Jd("PersistentEntityStoreDb",{objectStores:(Y.EntityStore={addedAtVersion:1},Y.EntityAssociationStore={addedAtVersion:2},Y),shared:!1,upgrade:function(G,u){u(1)&&SV(bB(G,"EntityStore",{keyPath:"key"}),"entityType","entityType");u(2)&&(G=bB(G,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),SV(G,"byParentEntityKey","parentEntityKey"),SV(G,"byChildEntityKey","childEntityKey"))},
version:3});return Y6a()};
uRA=function(Y){return _.l9(Grt(),Y)};
JW=function(Y){return window.Int32Array?new Int32Array(Y):Array(Y)};
Qtg=function(Y){return _.l9(OZj(),Y)};
MZt=function(Y){return new YG("WRONG_DATA_TYPE",{encoderVersion:Y})};
HZt=function(Y){return Y instanceof Error?new YG("UNKNOWN_ENCODE_ERROR",{originalMessage:Y.message}):new YG("UNKNOWN_ENCODE_ERROR")};
EfI=function(Y){return Y instanceof Error?new YG("UNKNOWN_DECODE_ERROR",{originalMessage:Y.message}):new YG("UNKNOWN_DECODE_ERROR")};
tZA=function(Y,G){Y=Y instanceof YG?Y:G(Y);_.o0(Y);throw Y;};
KBA=function(Y){Y=(new TextEncoder).encode(Y).subarray(0,16);var G=new Uint8Array(16);G.set(Y);return G};
TMU=function(Y){var G=aYy[Y];if(G)return G;_.R0(new _.I2("Entity model not found.",{entityType:Y}))};
_.GL=function(){LBT||(LBT=gfu());return LBT};
gfu=function(){var Y,G,u;return _.a(function(O){if(O.nextAddress==1)return _.i3(O,2),O.yield(_.vK(),4);if(O.nextAddress!=2){Y=O.yieldResult;if(!Y||!_.PK()||typeof _.OI.BroadcastChannel==="undefined")return O.return();G=new XOg;return O.return(new u8(Y,G))}u=_.b3(O);u instanceof Error&&_.o0(u);return O.return()})};
_.OG=function(Y,G){var u;return _.a(function(O){if(O.nextAddress==1){u=Y.mutations;if(!u||u.length<=0)return O.return();G&&G.dispatch(_.V6({type:"ENTITY_LOADED",payload:u}));return O.yield(Pwy(u),2)}u.length=0;_.Sd(O)})};
Pwy=function(Y){var G;return _.a(function(u){return u.nextAddress==1?u.yield(_.GL(),2):(G=u.yieldResult)?u.yield(_.Qc(G,"readwrite",function(O){for(var Q={},M=_.E(Y),t=M.next(),K={};!t.done;K={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},t=M.next())K.mutation$jscomp$8=t.value,K.mutation$jscomp$8.entityKey&&IYY(K.mutation$jscomp$8)&&(K.mutationEntityType$jscomp$3=(0,_.gX.getAnyKey)(K.mutation$jscomp$8.payload),t=void 0,K.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(t=function(L){return function(){return _.kru(O,
L.mutation$jscomp$8.payload[L.mutationEntityType$jscomp$3],L.mutationEntityType$jscomp$3)}}(K)),K.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(t=function(L){return function(){return nfy(O,L.mutation$jscomp$8.entityKey)}}(K)),K.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(t=function(L){return function(){return FBT(O,L.mutation$jscomp$8.entityKey,L.mutation$jscomp$8.payload[L.mutationEntityType$jscomp$3],L.mutationEntityType$jscomp$3)}}(K)),t&&(Q[K.mutation$jscomp$8.entityKey]=
Q[K.mutation$jscomp$8.entityKey]?Q[K.mutation$jscomp$8.entityKey].then(t):t()));
return hd.all(Object.values(Q))}),0):u.return()})};
IYY=function(Y){var G;Y=(G=Y.options)==null?void 0:G.persistenceOption;return Y==="ENTITY_PERSISTENCE_OPTION_PERSIST"||Y==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
mHt=function(Y,G){var u,O;_.a(function(Q){if(Q.nextAddress==1)return Q.yield(_.GL(),2);if(Q.nextAddress!=3)return(u=Q.yieldResult)?Q.yield(_.Qc(u,"readonly",function(M){var t={},K=Object.keys(G).map(function(L){var g=G[L]?[].concat(_.c8(G[L])):[];return pOj(M,L,g,t)});
return hd.all(K).then(function(){return t})}),3):Q.return();
O=Q.yieldResult;Object.keys(O).length>0&&Y.dispatch(zFY(O));_.Sd(Q)})};
pOj=function(Y,G,u,O){return MW(Y,G,u).then(function(Q){O[G]=WBj(u,Q)})};
WBj=function(Y,G){if(G.length!==Y.length)throw Error("Lf");return G.reduce(function(u,O,Q){u[Y[Q]]=O;return u},{})};
fYt=function(Y){var G=Y.filter(function(Q){var M;return(Q==null?void 0:(M=Q.transferEntity)==null?void 0:M.transferState)==="TRANSFER_STATE_COMPLETE"}).length,u=Y.filter(function(Q){var M;
return(Q==null?void 0:(M=Q.transferEntity)==null?void 0:M.transferState)==="TRANSFER_STATE_FAILED"}).length,O=Y.filter(function(Q){var M;
return(Q==null?void 0:(M=Q.transferEntity)==null?void 0:M.transferState)&&rig.includes(Q.transferEntity.transferState)});
if(!(G||O!=null&&O.length))return 0;G=_.xHA(O)+G;Y=Y.length-u;return Y===0?0:Math.round(G*100/Y)/100};
_.xHA=function(Y){var G=[];G=G.concat.apply(G,_.c8(Y.filter(function(M){return M.streamEntity}).map(function(M){var t=Object.assign({},M.streamEntity),K,L=(K=M.transferEntity)==null?void 0:K.transferState;
t.streamsProgress=t.streamsProgress||[];t.streamsProgress=t.streamsProgress.map(function(g){var P=Object.assign({},g);P.numBytesDownloaded=L==="TRANSFER_STATE_COMPLETE"?g.numTotalBytes:g.numBytesDownloaded;return P});
return t}).map(function(M){return M.streamsProgress})));
var u=Y=0;G=_.E(G);for(var O=G.next();!O.done;O=G.next()){var Q=O.value;O=Number(Q.numBytesDownloaded);Q=Number(Q.numTotalBytes);u+=isNaN(O)?0:O;Y+=isNaN(Q)?0:Q}return Y===0?0:Math.round(u*100/Y)/100};
CwT=function(Y){if(!Y||!Y.expirationTimestamp||!Y.action)return!1;var G=(0,_.GC)()/1E3;return Number(Y.expirationTimestamp)>=G};
HC=function(Y){return Y&&Y.expirationTimestamp&&Y.action?CwT(Y)&&Y.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.EG=function(Y){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(Y||"TRANSFER_STATE_UNKNOWN")};
yi1=function(Y){var G=new $y4;if(Y!==void 0){var u=Math.ceil(Math.log2(Y.length*4+2)/7);u=u===void 0?2:u;sU(G,10);G.submessagePosStack.push(G.pos);G.submessagePosStack.push(u);G.pos+=u;c2(G,Y.length*1.2);u=S2g(Y,G.buf.subarray(G.pos));G.pos+u>G.buf.length&&(c2(G,u),u=S2g(Y,G.buf.subarray(G.pos)));G.pos+=u;Y=G.submessagePosStack.pop();u=G.submessagePosStack.pop();for(var O=G.pos-u-Y;Y--;){var Q=Y?128:0;G.view.setUint8(u++,O&127|Q);O>>=7}}G=new Uint8Array(G.buf.buffer,G.buf.byteOffset,G.pos);return(new TextDecoder("utf-8")).decode(G)};
_.tH=function(Y){var G=0;Y=_.E(Y);for(var u=Y.next(),O={};!u.done;O={transferState$jscomp$3:void 0},u=Y.next()){var Q=u.value,M=void 0;u=(M=Q.streamEntity)!=null?M:{};M=void 0;O.transferState$jscomp$3=(M=Q.transferEntity)==null?void 0:M.transferState;M=Q=void 0;((Q=u)==null?0:(M=Q.streamsProgress)==null?0:M.length)&&u.streamsProgress.forEach(function(t){return function(K){K=Number(t.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?K.numTotalBytes:K.numBytesDownloaded);isFinite(K)&&(G+=K)}}(O))}return G};
eFT=function(Y){return Y.some(function(G){var u;if(!(G==null?0:(u=G.transferEntity)==null?0:u.transferState)){var O;return!(G==null?0:(O=G.policyEntity)==null?0:O.action)||G.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return rig.includes(G.transferEntity.transferState)})};
AiA=function(Y,G){if(!G)return!1;if(_.F("of_pb_en_po_ks"))return!0;var u;Y=(u=_.v2(Y,"offlineVideoPolicy",_.UU(G,"offlineVideoPolicy")))!=null?u:void 0;return!!Y&&HC(Y)};
_.iZy=function(Y){var G=["TRANSFER_STATE_COMPLETE"];G=G===void 0?of4:G;return Y.filter(function(u){var O,Q;return G.includes((Q=(O=u.transferEntity)==null?void 0:O.transferState)!=null?Q:"TRANSFER_STATE_UNKNOWN")})};
RFA=function(Y,G){if(G){var u,O=(u=_.v2(Y,"playbackData",_.UU(G,"playbackData")))!=null?u:null,Q;u=(Q=_.v2(Y,"transfer",_.UU(G,"transfer")))!=null?Q:null;var M;Q=(M=_.v2(Y,"offlineVideoStreams",_.UU(G,"offlineVideoStreams")))!=null?M:null;var t;Y=(t=_.v2(Y,"offlineVideoPolicy",_.UU(G,"offlineVideoPolicy")))!=null?t:null;if(O||u||Q||Y)return{playbackDataEntity:O,transferEntity:u,streamEntity:Q,policyEntity:Y}}};
_.KU=function(Y){var G=Y.playbackData;if(!G)return[];var u=[];G=_.E(Object.keys(G));for(var O=G.next();!O.done;O=G.next()){var Q=O.value;if(!wOu(Y,_.B2(Q).entityId)&&(O=RFA(Y,_.B2(Q).entityId))){var M=void 0,t=void 0;Q=(t=Number((M=_.v2(Y,"playbackData",Q))==null?void 0:M.streamDownloadTimestampSeconds))!=null?t:(0,_.GC)();u.push({entity:O,streamDownloadTimestamp:Q})}}return u.sort(function(K,L){var g=K.streamDownloadTimestamp,P=L.streamDownloadTimestamp;return P===g?K.entity.streamEntity&&!L.entity.streamEntity?
1:-1:P-g}).map(function(K){return K.entity})};
ZZA=function(Y){return _.iZy(_.KU(Y))};
_.DH1=function(Y){return _.KU(Y).filter(function(G){var u;if(((u=G.policyEntity)==null?0:u.action)&&G.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var O;if((O=G.transferEntity)==null?0:O.transferState){var Q;return rig.includes((Q=G.transferEntity)==null?void 0:Q.transferState)}return!0})};
wOu=function(Y,G){var u;return((u=_.v2(Y,"downloadStatusEntity",_.UU(G,"downloadStatusEntity")))==null?void 0:u.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
hFj=function(Y){var G;if(Y==null?0:(G=Y.playbackDataEntity)==null?0:G.key)return _.B2(Y.playbackDataEntity.key).entityId;var u;if(Y==null?0:(u=Y.transferEntity)==null?0:u.key)return _.B2(Y.transferEntity.key).entityId;var O;if(Y==null?0:(O=Y.streamEntity)==null?0:O.key)return _.B2(Y.streamEntity.key).entityId;var Q;if(Y==null?0:(Q=Y.policyEntity)==null?0:Q.key)return _.B2(Y.policyEntity.key).entityId};
bZI=function(Y){var G=new Set,u;Y=(u=Y.mainDownloadsListEntity)==null?void 0:u[dHj];var O;if(!(Y==null?0:(O=Y.downloads)==null?0:O.length))return G;var Q;Y==null||(Q=Y.downloads)==null||Q.forEach(function(M){(M==null?0:M.videoItem)&&G.add(M.videoItem)});
return G};
ai=function(Y,G){if(G){var u=_.v2(Y,"mainVideoEntity",_.UU(G,"mainVideoEntity")),O=_.v2(Y,"downloadStatusEntity",_.UU(G,"downloadStatusEntity")),Q=_.v2(Y,"ytMainChannelEntity",_.UU(G,"ytMainChannelEntity")),M={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};Y=RFA(Y,G);O=(O==null?void 0:O.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.F("woffle_render_failed_download_state_ks")&&(O==null?void 0:O.downloadState)==="DOWNLOAD_STATE_FAILED";!Y&&O&&(Y=M);if(Y&&u&&
Q)return Object.assign({},{videoEntity:u,channelEntity:Q},Y)}};
NMT=function(Y,G){return S6T(Y,G)==="TRANSFER_STATE_COMPLETE"&&AiA(Y,G)};
jtj=function(Y,G){if(!G)return!1;var u;Y=(u=_.v2(Y,"playbackData",_.UU(G,"playbackData")))!=null?u:void 0;return!!Y&&!!Y.playerResponseJson};
S6T=function(Y,G){if(!G)return"TRANSFER_STATE_UNKNOWN";var u=_.v2(Y,"transfer",_.UU(G,"transfer"));if(u){var O;return(O=u.transferState)!=null?O:"TRANSFER_STATE_UNKNOWN"}u=_.v2(Y,"offlineOrchestrationActionWrapperEntity",_.UU(G,"offlineOrchestrationActionWrapperEntity"));Y=_.v2(Y,"mainVideoEntity",_.UU(G,"mainVideoEntity"));return u||Y?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
VZY=function(Y,G){if(!G)return"TRANSFER_STATE_UNKNOWN";if(Y=_.v2(Y,"transfer",_.UU(G,"transfer"))){var u;return(u=Y.transferState)!=null?u:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
lYt=function(Y,G){return G&&(Y=_.v2(Y,"videoPlaybackPositionEntity",_.UU(G,"videoPlaybackPositionEntity")),Y==null?0:Y.lastPlaybackPositionSeconds)?Number(Y.lastPlaybackPositionSeconds):0};
$H1=function(Y,G){return BMu(Y).some(function(u){var O;return(u==null?void 0:(O=u.mainPlaylistEntity)==null?void 0:O.playlistId)===G})};
sty=function(Y,G,u){var O=q6y(Y,G);if(!O.length)return[];G=[];O=_.E(O);for(var Q=O.next();!Q.done;Q=O.next()){Q=Q.value;var M=ai(Y,Q);u&&S6T(Y,Q)!=="TRANSFER_STATE_COMPLETE"||M&&G.push(M)}return G};
q6y=function(Y,G){if(!G)return[];var u=_.UU(G,"mainPlaylistEntity"),O;G=(O=Y.mainPlaylistEntity)==null?void 0:O[u];O=[];if(G==null||!G.videos)return O;G=_.E(G.videos);for(u=G.next();!u.done;u=G.next()){u=u.value;var Q=void 0,M=void 0,t=void 0,K=(Q=Y)==null?void 0:(M=Q.mainPlaylistVideoEntity)==null?void 0:(t=M[u])==null?void 0:t.video;K&&(u=_.B2(K).entityId)&&O.push(u)}return O};
ciT=function(Y,G){if(G){var u=_.v2(Y,"mainPlaylistEntity",_.UU(G,"mainPlaylistEntity")),O=_.v2(Y,"mainPlaylistDownloadStateEntity",_.UU(G,"mainPlaylistDownloadStateEntity"));Y=_.v2(Y,"ytMainChannelEntity",_.UU(G,"ytMainChannelEntity"));if(O&&u)return Object.assign({},{mainPlaylistEntity:u,mainPlaylistDownloadStateEntity:O},!!Y&&{channelEntity:Y})}};
BMu=function(Y){return UHA(Y).sort(function(G,u){return u.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return G.downloadedPlaylistEntities})};
UHA=function(Y){var G=Y.mainPlaylistDownloadStateEntity,u=[];if(!G)return u;for(var O=_.E(Object.keys(G)),Q=O.next();!Q.done;Q=O.next()){var M=Q.value;Q=ciT(Y,_.B2(M).entityId);var t=void 0;M=Number((t=G[M])==null?void 0:t.addedTimestampMillis);t=isNaN(M)?(0,_.GC)():M;Q!==void 0&&u.push({downloadedPlaylistEntities:Q,addedTimestampMillis:t})}return u};
vf1=function(Y){var G,u=(G=Y.mainPlaylistVideoEntity)!=null?G:{};return new Set(BMu(Y).reduce(function(O,Q){O=O===void 0?[]:O;var M,t;Q==null||(M=Q.mainPlaylistEntity)==null||(t=M.videos)==null||t.forEach(function(K){var L;(K=(L=u[K])==null?void 0:L.video)&&O.push(K)});
return O},[]))};
Jiu=function(Y){return"downloadedMusicPlaylistEntities"in Y};
YoU=function(Y){return"mainPlaylistEntity"in Y&&"mainPlaylistDownloadStateEntity"in Y};
Gea=function(Y){return"videoEntity"in Y&&"channelEntity"in Y};
uGg=function(Y){var G=Y.musicPlaylistDownloadMetadataEntity,u=[];if(!G)return u;for(var O=_.E(Object.keys(G)),Q=O.next();!Q.done;Q=O.next()){Q=Q.value;a:{var M=Y,t=_.B2(Q).entityId;if(t){var K=_.v2(M,"musicPlaylist",_.UU(t,"musicPlaylist"));M=_.v2(M,"musicPlaylistDownloadMetadataEntity",_.UU(t,"musicPlaylistDownloadMetadataEntity"));if(K&&M){K={musicPlaylistEntity:K,musicPlaylistDownloadStateEntity:M};break a}}K=void 0}M=void 0;Q=Number((M=G[Q])==null?void 0:M.addedTimestampMillis);Q=isNaN(Q)?(0,_.GC)():
Q;K!==void 0&&u.push({downloadedMusicPlaylistEntities:K,addedTimestampMillis:Q})}return u};
O8A=function(Y){var G=new Set;Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())if(u=u.value,"musicPlaylistEntity"in u&&"musicPlaylistDownloadStateEntity"in u){u=_.E(u.musicPlaylistEntity.tracks);for(var O=u.next();!O.done;O=u.next())G.add(O.value)}return G};
QVt=function(Y,G){if(G){var u=_.v2(Y,"musicTrack",_.UU(G,"musicTrack")),O=_.v2(Y,"musicArtist",_.UU(G,"musicArtist"))||{};if((Y=RFA(Y,G))&&u&&O)return Object.assign({},{musicTrackEntity:u,musicArtistEntity:O},Y)}};
Mx4=function(Y){var G=Y.musicTrackDownloadMetadataEntity,u=[];if(!G)return[];G=_.E(Object.keys(G));for(var O=G.next();!O.done;O=G.next()){var Q=O.value;O=QVt(Y,_.B2(Q).entityId);var M=void 0;Q=Number((M=_.v2(Y,"musicTrackDownloadMetadataEntity",Q))==null?void 0:M.addedTimestampMillis);M=isNaN(Q)?(0,_.GC)():Q;O!==void 0&&u.push({downloadedMusicEntities:O,addedTimestampMillis:M})}return u};
txj=function(Y,G){if(!G)return[];if(Object.values(H8A).includes(G))return EKU(Y,G);G=_.UU(G,"musicPlaylist");var u;Y=(u=Y.musicPlaylist)==null?void 0:u[G];u=[];if(Y==null||!Y.tracks)return u;Y=_.E(Y.tracks);for(G=Y.next();!G.done;G=Y.next())(G=_.B2(G.value).entityId)&&u.push(G);return u};
EKU=function(Y,G){var u=new Set,O=uGg(Y).map(function(M){return M.downloadedMusicPlaylistEntities});
O=O8A(O);O=_.E(O);for(var Q=O.next();!Q.done;Q=O.next())(Q=_.B2(Q.value).entityId)&&u.add(Q);return KeU(Y).downloadedMusicEntities.filter(function(M){var t;if((t=M.musicTrackEntity)!=null&&t.videoId){M=M.musicTrackEntity;if(t=G==="PPOM"?!0:!u.has(M.videoId))b:switch(M=M.musicVideoType,G){case "PPSE":t=M==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:t=M!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}M=t}else M=!1;return M}).map(function(M){var t;
return(t=M.musicTrackEntity)==null?void 0:t.videoId})};
KeU=function(Y){var G=Mx4(Y).sort(function(u,O){return O.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return"downloadedMusicEntities"in u?u.downloadedMusicEntities:Jiu(u)?u.downloadedMusicPlaylistEntities:{}});
Y=uGg(Y).sort(function(u,O){return O.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return"downloadedMusicEntities"in u?u.downloadedMusicEntities:Jiu(u)?u.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:G,downloadedMusicPlaylistEntities:Y}};
TWa=function(Y,G){G=_.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?txj(Y,G):q6y(Y,G);if(!G.length)return"TRANSFER_STATE_UNKNOWN";G=G.map(function(u){return VZY(Y,u)});
return amA(G)};
amA=function(Y){var G=new Set(Y);if(G.has("TRANSFER_STATE_FAILED")&&G.size===1)return"TRANSFER_STATE_FAILED";G.delete("TRANSFER_STATE_FAILED");if(G.has("TRANSFER_STATE_UNKNOWN")&&G.size===1)return"TRANSFER_STATE_PRE_TRANSFER";G.delete("TRANSFER_STATE_UNKNOWN");if(G.has("TRANSFER_STATE_PRE_TRANSFER")&&G.size===1||G.size===0)return"TRANSFER_STATE_PRE_TRANSFER";Y=G.has("TRANSFER_STATE_TRANSFERRING");G=G.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return Y||G?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
TL=function(Y){var G=Y.mainVideoDownloadStateEntity,u=[];if(!G)return[];G=_.E(Object.keys(G));for(var O=G.next();!O.done;O=G.next()){var Q=O.value;if(!wOu(Y,_.B2(Q).entityId)){O=ai(Y,_.B2(Q).entityId);var M=void 0,t=void 0;Q=(t=Number((M=_.v2(Y,"mainVideoDownloadStateEntity",Q))==null?void 0:M.addedTimestampMillis))!=null?t:(0,_.GC)();O!==void 0&&u.push({downloadedVideoEntities:O,addedTimestampMillis:Q})}}return u};
LeT=function(Y){return TL(Y).sort(function(G,u){return u.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return G.downloadedVideoEntities})};
_.Xf4=function(Y){var G=vf1(Y),u=_.LU(Y),O=bZI(Y),Q=TL(Y).filter(function(t){var K,L;if((t==null?void 0:(K=t.downloadedVideoEntities)==null?void 0:(L=K.transferEntity)==null?void 0:L.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var g,P;t=t==null?void 0:(g=t.downloadedVideoEntities)==null?void 0:(P=g.videoEntity)==null?void 0:P.key;return _.F("kevlar_use_library_entity")?t&&(O.has(t)||u[t]):t&&!G.has(t)}),M=UHA(Y).filter(function(t){return TWa(Y,t.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.c8(Q),_.c8(M)).sort(function(t,K){return K.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return gK1(t)})};
PAA=function(Y,G){if(G&&AiA(Y,G)){var u,O,Q=(O=(u=_.v2(Y,"playbackData",_.UU(G,"playbackData")))!=null?u:void 0)==null?void 0:O.playerResponseJson;if(Q){try{var M=JSON.parse(Q);var t=_.v2(Y,"transfer",_.UU(G,"transfer")),K=lYt(Y,G);K&&(M=Object.assign({},M,{playerConfig:Object.assign({},M.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+K*1E3}}})}));M.cotn=t==null?void 0:t.cotn}catch(L){}return M}}};
_.key=function(Y){var G,u,O;Y=(O=(u=((G=Y.downloadsPageViewConfigurationEntity)!=null?G:{})[_.gK])==null?void 0:u.smartDownloadsOptInBannerVisibility)!=null?O:{};var Q;return(Q=_.z(Y,Imj))!=null?Q:{}};
_.LU=function(Y){var G,u,O;Y=(O=(u=((G=Y.mainDownloadsListEntity)!=null?G:{})[_.nKj])==null?void 0:u.downloads)!=null?O:[];G={};u=_.E(Y);for(O=u.next();!O.done;O=u.next())Y=void 0,G[(Y=O.value.videoItem)!=null?Y:""]=!0;return G};
Fey=function(Y){var G=_.LU(Y);if(Object.keys(G).length===0)return!1;var u=Y.mainVideoEntity;if(!u)return!0;u=_.E(Object.keys(u));for(var O=u.next();!O.done;O=u.next()){O=O.value;var Q=_.B2(O).entityId;if(G[O]&&!wOu(Y,Q))return!1}return!0};
_.XX=function(Y){var G=_.LU(Y);return TL(Y).sort(function(u,O){return u.addedTimestampMillis-O.addedTimestampMillis}).map(function(u){return u.downloadedVideoEntities}).filter(function(u){var O;
return(u=u==null?void 0:(O=u.videoEntity)==null?void 0:O.key)&&!!G[u]})};
_.z6I=function(Y){var G,u,O;Y=(O=(u=((G=Y.downloadsPageViewConfigurationEntity)!=null?G:{})[_.gK])==null?void 0:u.downloadsUpsellBannerVisibility)!=null?O:{};var Q;return(Q=_.z(Y,pfU))!=null?Q:{}};
gK1=function(Y){return"downloadedVideoEntities"in Y?Y.downloadedVideoEntities:"downloadedPlaylistEntities"in Y?Y.downloadedPlaylistEntities:{}};
meT=function(Y){var G=_.LU(Y),u=vf1(Y),O=TL(Y).filter(function(Q){var M,t;return(Q=Q==null?void 0:(M=Q.downloadedVideoEntities)==null?void 0:(t=M.videoEntity)==null?void 0:t.key)&&!G[Q]&&!u.has(Q)});
Y=UHA(Y);return[].concat(_.c8(O),_.c8(Y)).sort(function(Q,M){return M.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return gK1(Q)})};
_.PC=function(Y){if(!_.F("kevlar_use_library_entity"))return meT(Y);var G=TL(Y).filter(function(O){var Q,M;if(Q=O=O==null?void 0:(Q=O.downloadedVideoEntities)==null?void 0:(M=Q.videoEntity)==null?void 0:M.key){var t,K,L;Q=((K=(t=Y.mainDownloadsListEntity)==null?void 0:t[dHj])==null?0:(L=K.downloads)==null?0:L.length)?bZI(Y).has(O):!1}return Q}),u=UHA(Y);
return[].concat(_.c8(G),_.c8(u)).sort(function(O,Q){return Q.addedTimestampMillis-O.addedTimestampMillis}).map(function(O){return gK1(O)})};
Wet=function(Y){var G=_.LU(Y),u=vf1(Y);return LeT(Y).filter(function(O){var Q;return(O=O==null?void 0:(Q=O.videoEntity)==null?void 0:Q.key)&&!G[O]&&!u.has(O)})};
rsI=function(Y){if(!_.F("kevlar_use_library_entity"))return Wet(Y);var G=_.LU(Y),u=bZI(Y);return LeT(Y).filter(function(O){var Q;return(O=O==null?void 0:(Q=O.videoEntity)==null?void 0:Q.key)&&!G[O]&&u.has(O)})};
xeA=function(Y,G){G=_.UU(G,"settingEntity");var u,O,Q;return!!((Q=(O=((u=Y.settingEntity)!=null?u:{})[G])==null?void 0:O.settingOptionValue)!=null?Q:{}).boolValue};
_.Ii=function(Y){var G=_.XX(Y);if(eFT(G))return 0;var u=[];G=_.E(G);for(var O=G.next();!O.done;O=G.next()){O=O.value;var Q=void 0,M=void 0;if((Q=O)==null?0:(M=Q.videoEntity)==null?0:M.key)Q=_.B2(O.videoEntity.key).entityId,O=Y,Q=_.UU(Q,"mainVideoDownloadStateEntity"),O=_.v2(O,"mainVideoDownloadStateEntity",Q),(O=Number(O==null?void 0:O.addedTimestampMillis))&&u.push(O)}return Math.max.apply(Math,_.c8(u))};
_.kG=function(Y){return Y.ui.richGridMiniMode};
_.nU=function(Y){return Y.ui.richGridItemsPerRow};
_.fmy=function(Y){return Y.ui.richGridSlimItemsPerRow};
_.CAg=function(Y){return Y.ui.guideIsExpanded};
_.FX=function(Y){return Y.ui.miniplayerIsActive};
ysy=function(Y){return Y.ui.singleOptionSurveyIsActive};
_.pU=function(Y){var G;return((G=Y.ui)==null?void 0:G.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.e6j=function(Y){return _.pU(Y)==="WEB_PAGE_TYPE_WATCH"};
_.AsT=function(Y){return _.pU(Y)==="WEB_PAGE_TYPE_SHORTS"};
_.oKj=function(Y){return Y.ui.inlinePreviewIsActive};
_.i8T=function(Y){return Y.ui.inlinePreviewIsEnabled};
_.R6y=function(Y){return Y.ui.miniplayerPlaybackState};
_.zL=function(Y){return Y.ui.isOnline};
_.wfa=function(Y){return Y.ui.frostedGlassMode};
_.mZ=function(Y,G){return S6T(Y.entities,G)};
_.WC=function(Y,G){return TWa(Y.entities,G)};
Z8t=function(Y,G){var u;if(G){var O;Y=(O=_.v2(Y.entities,"offlineVideoPolicy",_.UU(G,"offlineVideoPolicy")))==null?void 0:O.action}else Y=void 0;return(u=Y)!=null?u:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
Deg=function(Y,G){var u;G?(Y=_.v2(Y.entities,"offlineVideoPolicy",_.UU(G,"offlineVideoPolicy")),Y=Number(Y==null?void 0:Y.expirationTimestamp)):Y=void 0;return(u=Y)!=null?u:0};
_.h6y=function(Y){return _.KU(Y.entities).length};
dey=function(Y,G){return ai(Y.entities,G)};
b8g=function(Y,G){return ciT(Y.entities,G)};
rK=function(Y,G){return(Y=ai(Y.entities,G))?_.xHA([Y]):0};
_.So4=function(Y,G){var u=_.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(u){var O=Y.entities;var Q=txj(O,G);if(Q.length){var M=[];Q=_.E(Q);for(var t=Q.next();!t.done;t=Q.next())(t=QVt(O,t.value))&&M.push(t);O=M}else O=[]}else O=sty(Y.entities,G);var K;if(u){var L=Y.entities;G?(G=_.UU(G,"musicPlaylist"),L=(K=L.musicPlaylist)==null?void 0:K[G],K=L!=null&&L.tracks?L.tracks.length:0):K=0}else K=Y.entities,G?(G=_.UU(G,"mainPlaylistEntity"),K=(L=K.mainPlaylistEntity)==null?void 0:L[G],K=K!=null&&K.videos?
K.videos.length:0):K=0;return O.length!==K?0:O?fYt(O):0};
_.NWt=function(Y){return Y.download.isLeaderTab};
_.jVt=function(Y,G,u){if(!G&&u){var O=Y.entities;if(u){var Q=yi1(u),M,t;G=(t=(M=_.v2(O,"offlineabilityEntity",_.UU(Q,"offlineabilityEntity")))==null?void 0:M.addToOfflineButtonState)!=null?t:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else G="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else M=Y.entities,G?(t=yi1(G),G=(Q=(O=_.v2(M,"offlineabilityEntity",_.UU(t,"offlineabilityEntity")))==null?void 0:O.addToOfflineButtonState)!=null?Q:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):G="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return G};
Vxg=function(Y,G){Y=Y.entities;if(G){G=yi1(G);var u,O;G=(O=(u=_.v2(Y,"offlineabilityEntity",_.UU(G,"offlineabilityEntity")))==null?void 0:u.addToOfflineButtonState)!=null?O:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else G="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return G};
_.lmT=function(Y){var G=Y.entities;Y=_.zL(Y);var u=xeA(G,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.F("kevlar_modern_downloads_page")&&u)var O=!1;else{var Q,M;G=(M=(Q=((O=G.downloadsPageViewConfigurationEntity)!=null?O:{})[_.gK])==null?void 0:Q.smartDownloadsOptInBannerVisibility)!=null?M:{};O=Y?!!G.visibleWithConnection:!!G.visibleWithoutConnection}return O};
_.BWj=function(Y){return xeA(Y.entities,"SMART_DOWNLOADS_ENABLED")};
_.$eT=function(Y){return Fey(Y.entities)};
qoa=function(Y){return _.XX(Y.entities).every(function(G){var u;return(G==null?void 0:(u=G.transferEntity)==null?void 0:u.transferState)&&!rig.includes(G.transferEntity.transferState)})};
_.sVu=function(Y){var G,u,O,Q=(O=(u=((G=Y.entities.downloadsPageViewConfigurationEntity)!=null?G:{})[_.gK])==null?void 0:u.downloadsUpsellBannerVisibility)!=null?O:{};return _.zL(Y)?!!Q.visibleWithConnection:!!Q.visibleWithoutConnection};
_.csA=function(Y,G){return wOu(Y.entities,G)};
Uej=function(Y,G){if(G){var u,O;Y=(O=(u=_.v2(Y.entities,"downloadStatusEntity",_.UU(G,"downloadStatusEntity")))==null?void 0:u.downloadState)!=null?O:"DOWNLOAD_STATE_UNKNOWN"}else Y="DOWNLOAD_STATE_UNKNOWN";return Y};
xG=function(Y,G){return lYt(Y.entities,G)};
ylY=function(Y){Y=vKg(Y);var G=Y.hours===void 0?0:Y.hours,u=Y.minutes===void 0?0:Y.minutes,O=Y.seconds===void 0?0:Y.seconds,Q=G>0;Y=[];Q&&(G=fRa(G),Y.push(G));G=Q;G=G===void 0?!1:G;u=(["af","be","lt"].includes(fU)||G)&&u<10?CpA().format(u):(new Intl.NumberFormat("en-u-nu-latn")).format(u);Y.push(u);u=CpA().format(O);Y.push(u);u=":";"da fi id si sr sr-Latn".split(" ").includes(fU)&&(u=".");return Y.join(u)};
_.Alu=function(Y){Y=vKg(Y);var G=Y.hours===void 0?0:Y.hours,u=Y.minutes===void 0?0:Y.minutes,O=Y.seconds===void 0?0:Y.seconds;Y=[];if(G>0){var Q=e5U().format({hours:G});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(fU)||G>9999)Q=Q.replace(G.toString(),fRa(G)),fU==="km"&&(Q=Q.replace(".",","));Y.push(Q)}u>0&&Y.push(e5U().format({minutes:u}));O>0&&Y.push(e5U().format({seconds:O}));G="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");u=fU=="am"?"{0}\u1363 ":fU=="fa"?"{0}\u060c\u200f ":
fU=="my"?"{0} - ":fU=="th"?"{0} ":fU=="ur"?"{0}\u060c ":fU=="ar"||fU=="ar-XB"?"{0} \u0648":fU=="ja"||fU=="zh-CN"||fU=="zh-HK"||fU=="zh-TW"?"{0}\u3001":"{0}, ";O=fU=="am"?"\u1363 ":fU=="fa"?"\u060c\u200f ":fU=="my"?" - ":fU=="th"?" ":fU=="ur"?"\u060c ":fU=="ar"||fU=="ar-XB"?" \u0648":fU=="ja"||fU=="zh-CN"||fU=="zh-HK"||fU=="zh-TW"?"\u3001":", ";Q=fU=="am"?" \u12a5\u1293 {0}":fU=="as"?" \u0986\u09f0\u09c1 {0}":fU=="az"?" v\u0259 {0}":fU=="bn"?" \u098f\u09ac\u0982 {0}":fU=="cs"?" a\u00a0{0}":fU=="de"?
" und {0}":fU=="el"?" \u03ba\u03b1\u03b9 {0}":fU=="eu"?" eta {0}":fU=="fa"?"\u060c \u0648 {0}":fU=="fil"?", at {0}":fU=="gu"?" \u0a85\u0aa8\u0ac7 {0}":fU=="hi"?", \u0914\u0930 {0}":fU=="hu"?" \u00e9s {0}":fU=="hy"?" \u0587 {0}":fU=="id"?", dan {0}":fU=="iw"?" \u05d5-{0}":fU=="ja"?"\u3001{0}":fU=="ka"?" \u10d3\u10d0 {0}":fU=="km"?" \u1793\u17b7\u1784 {0}":fU=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":fU=="ko"?" \ubc0f {0}":fU=="ky"?" \u0436\u0430\u043d\u0430 {0}":fU=="lt"?" ir {0}":fU=="lv"?" un {0}":
fU=="mr"?" \u0906\u0923\u093f {0}":fU=="ms"?" dan {0}":fU=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":fU=="ne"?" \u0930 {0}":fU=="or"?", \u0b13 {0}":fU=="pa"?" \u0a05\u0a24\u0a47 {0}":fU=="ro"?" \u0219i {0}":fU=="si"?", \u0dc3\u0dc4 {0}":fU=="sk"?" a {0}":fU=="sl"?" in {0}":fU=="sq"?" dhe {0}":fU=="sv"?" och {0}":fU=="sw"?" na {0}":fU=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":fU=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":fU=="th"?" \u0e41\u0e25\u0e30{0}":fU=="tr"?" ve {0}":fU=="ur"?
"\u060c \u0627\u0648\u0631 {0}":fU=="uz"?" va {0}":fU=="vi"?" v\u00e0 {0}":fU=="zh-HK"?"\u53ca{0}":fU=="zu"?", ne-{0}":fU=="af"||fU=="nl"?" en {0}":fU=="ar"||fU=="ar-XB"?" \u0648{0}":fU=="be"||fU=="uk"?" \u0456 {0}":fU=="en-GB"||fU=="en-IN"?" and {0}":fU=="en"||fU=="en-XA"?", and {0}":fU=="et"||fU=="fi"?" ja {0}":fU=="fr"||fU=="fr-CA"?" et {0}":fU=="zh-CN"||fU=="zh-TW"?"\u548c{0}":fU=="da"||fU=="is"||fU=="no"?" og {0}":fU=="es"||fU=="es-419"||fU=="es-US"?" y {0}":fU=="bg"||fU=="mk"||fU=="ru"||fU==
"sr"?" \u0438 {0}":fU=="gl"||fU=="it"||fU=="pt-BR"||fU=="pt-PT"?" e {0}":fU=="kk"||fU=="lo"||fU=="ml"||fU=="mn"?", {0}":" i {0}";var M=fU=="am"?"{0} \u12a5\u1293 {1}":fU=="as"?"{0} \u0986\u09f0\u09c1 {1}":fU=="az"?"{0} v\u0259 {1}":fU=="bn"?"{0} \u098f\u09ac\u0982 {1}":fU=="de"?"{0} und {1}":fU=="el"?"{0} \u03ba\u03b1\u03b9 {1}":fU=="eu"?"{0} eta {1}":fU=="fa"?"{0} \u0648 {1}":fU=="fil"?"{0} at {1}":fU=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":fU=="hi"?"{0} \u0914\u0930 {1}":fU=="hu"?"{0} \u00e9s {1}":fU==
"hy"?"{0} \u0587 {1}":fU=="iw"?"{0} \u05d5-{1}":fU=="ja"?"{0}\u3001{1}":fU=="ka"?"{0} \u10d3\u10d0 {1}":fU=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":fU=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":fU=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":fU=="ko"?"{0} \ubc0f {1}":fU=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":fU=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":fU=="lt"?"{0} ir {1}":fU=="lv"?"{0} un {1}":fU=="mr"?"{0} \u0906\u0923\u093f {1}":fU=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":fU=="ne"?"{0} \u0930 {1}":
fU=="or"?"{0} \u0b13 {1}":fU=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":fU=="ro"?"{0} \u0219i {1}":fU=="si"?"{0} \u0dc3\u0dc4 {1}":fU=="sl"?"{0} in {1}":fU=="sq"?"{0} dhe {1}":fU=="sv"?"{0} och {1}":fU=="sw"?"{0} na {1}":fU=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":fU=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":fU=="th"?"{0}\u0e41\u0e25\u0e30{1}":fU=="tr"?"{0} ve {1}":fU=="ur"?"{0} \u0627\u0648\u0631 {1}":fU=="uz"?"{0} va {1}":fU=="vi"?"{0} v\u00e0 {1}":fU=="zh-HK"?"{0}\u53ca{1}":fU==
"zu"?"{0} ne-{1}":fU=="af"||fU=="nl"?"{0} en {1}":fU=="ar"||fU=="ar-XB"?"{0} \u0648{1}":fU=="be"||fU=="uk"?"{0} \u0456 {1}":fU=="cs"||fU=="sk"?"{0} a\u00a0{1}":fU=="et"||fU=="fi"?"{0} ja {1}":fU=="fr"||fU=="fr-CA"?"{0} et {1}":fU=="id"||fU=="ms"?"{0} dan {1}":fU=="ml"||fU=="mn"?"{0}, {1}":fU=="zh-CN"||fU=="zh-TW"?"{0}\u548c{1}":fU=="da"||fU=="is"||fU=="no"?"{0} og {1}":fU=="es"||fU=="es-419"||fU=="es-US"?"{0} y {1}":fU=="bg"||fU=="mk"||fU=="ru"||fU=="sr"?"{0} \u0438 {1}":fU=="en"||fU=="en-GB"||fU==
"en-IN"||fU=="en-XA"?"{0} and {1}":fU=="gl"||fU=="it"||fU=="pt-BR"||fU=="pt-PT"?"{0} e {1}":"{0} i {1}";fU==="sq"?(Q=Q.replace("dhe","e"),M=M.replace("dhe","e")):fU==="th"?(O=O.replace("{0}"," {0}"),M=M.replace("{0}","{0} "),M=M.replace("{1}"," {1}")):fU==="ne"?O=",":fU==="zh-CN"?O="":G.includes(fU)&&(O=" ");return Y.length<2?Y.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(fU)?
Y.length===2?M.replace("{0}",Y[0]).replace("{1}",Y[1]):u.replace("{0}",Y[0])+Y.slice(1,-1).join(O)+Q.replace("{0}",Y[Y.length-1]):Y.join(O)};
vKg=function(Y){var G=Y.hours||0,u=Y.minutes||0,O=Y.seconds||0;G=O+u*60+G*3600+(Y.days||0)*86400+(Y.weeks||0)*604800+(Y.months||0)*2629800+(Y.years||0)*31557600;if(G<=0)return{hours:0,minutes:0,seconds:0};Y=G;G=Math.floor(Y/3600);Y%=3600;u=Math.floor(Y/60);O=Math.floor(Y%60);return{hours:G,minutes:u,seconds:O}};
fRa=function(Y){Y=(new Intl.NumberFormat("en-u-nu-latn")).format(Y);var G=["fr"],u="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(fU)?Y.replace(",","\u00a0"):G.includes(fU)?Y.replace(",","\u202f"):u.includes(fU)?Y.replace(",","."):Y};
CpA=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
e5U=function(){oby||(iRu=R5j,oby=new w7A);return oby};
ZRy=function(Y){try{return(new _.CU(5)).format(Y)}catch(G){}};
yc=function(Y){return{thumbnailOverlayDownloadingRenderer:{state:Y}}};
Diy=function(){var Y=_.Q6("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Sy(Y),icon:{iconType:"PLAY_ALL"}}}};
h5j=function(Y){Y=_.e7(Y,2);return fU!=="ru"&&fU!=="es_419"&&fU!=="es-419"&&fU!=="es"&&fU!=="es_US"&&fU!=="es-US"&&fU!=="fr"&&fU!=="pl"&&fU!=="it"&&fU!=="nl"&&fU!=="uk"&&fU!=="fr_CA"&&fU!=="fr-CA"||Y===""?Y:Y[0].toLocaleUpperCase()+Y.substring(1)};
bRI=function(Y){return function(G){var u=Y(),O=_.e7(G,u.dateFormat);G=_.e7(G,u.timeFormat);var Q=diT.DATETIMEFORMATS[u.joinerStyle];Q=Q.replace(/'(?!')/g,"");Q=Q.replace("{0}",G);Q=Q.replace("{1}",O);return u.capitalize(Q)}};
SaA=function(Y){return Y?typeof Y.seconds==="string"&&(Y.nanos===void 0||typeof Y.nanos==="number"):!1};
NzA=function(Y){return new Date(Number(Y.seconds)*1E3+(Y.nanos||0)*1E-6)};
_.e7=function(Y,G){if(typeof Y.getTime==="function")Y={date:Y};else if(SaA(Y))Y={date:NzA(Y)};else if(typeof SaA(Y.timestamp)&&typeof Y.i18nInternalSecondsEastOfUtc==="number")Y={date:NzA(Y.timestamp),timeZone:AH(-Y.i18nInternalSecondsEastOfUtc/60)};else throw Error("Mf`"+JSON.stringify(Y));var u=Y;Y=u.date;u=u.timeZone;G=jHY(G).format(Y,u);fU==="zh-TW"&&(Y=u?Number(jHY("H").format(Y,u)):Y.getHours(),G=Y<5?G.replace("\u4e0a\u5348","\u51cc\u6668"):Y<8?G.replace("\u4e0a\u5348","\u65e9\u4e0a"):Y<12?
G.replace("\u4e0a\u5348","\u4e0a\u5348"):Y<13?G.replace("\u4e0b\u5348","\u4e2d\u5348"):Y<19?G.replace("\u4e0b\u5348","\u4e0b\u5348"):G.replace("\u4e0b\u5348","\u665a\u4e0a"));return G};
jHY=function(Y){if(VJj.has(Y))return VJj.get(Y);var G=lRU(Y);G=BzY(G);$iy!==!0&&($iy=!0);qaT=!0;qaT=!1;G=new oi(G,diT);VJj.set(Y,G);return G};
lRU=function(Y){return(new oi(Y,diT)).patternParts_.map(function(G){return G.type===0?"'"+G.text+"'":G.text}).join("")};
BzY=function(Y){return fU==="en"||fU==="es_US"||fU==="es-US"?Y:Y.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(G,u,O){return"H".repeat(u.length)+O})};
G$j=function(Y,G){sHt||(iRu=R5j,sHt=new clj);var u=sHt;a:if(Y=UiI(Y),G=UiI(G||new Date),Y>G)u=Y.getTime()-G.getTime()>6048E5?_.e7(Y,1):vbY(Y);else{for(var O=0;JlU(Y,12*(O+1))<G;)++O;if(O>0)u=u.format(-O,0);else{for(O=0;JlU(Y,O+1)<G;)++O;if(O>0)u=u.format(-O,2);else{Y=G.getTime()-Y.getTime();G=_.E(YMy);for(O=G.next();!O.done;O=G.next()){O=O.value;var Q=O.unit,M=Math.floor(Y/O.unitDuration);if(M>=(O.threshold===void 0?1:O.threshold)){u=u.format(-M,Q);break a}}u=u.format(-0,7)}}}return u};
UiI=function(Y){if(typeof Y.getTime==="function")return Y;if(SaA(Y))return NzA(Y);throw Error("Nf`"+JSON.stringify(Y));};
JlU=function(Y,G){for(var u=0,O;;++u)if(O=new Date(Y.getFullYear(),Y.getMonth()+G,Y.getDate()-u,Y.getHours(),Y.getMinutes(),Y.getSeconds()),O.getMonth()===(Y.getMonth()+G)%12)return O};
_.i8=function(Y){return{runs:[{text:Y}]}};
_.Ri=function(Y){if(Y&&Y.simpleText)return Y.simpleText;var G="";if(Y&&Y.runs)for(var u=0;u<Y.runs.length;u++)Y.runs[u].text&&(G+=Y.runs[u].text);return G};
Ory=function(Y,G,u,O){return Y.videoEntity&&!Y.policyEntity&&u!=="DOWNLOAD_STATE_FAILED"?[yc("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:HC(Y.policyEntity)&&G!=="TRANSFER_STATE_FAILED"&&G!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?G==="TRANSFER_STATE_PAUSED_BY_USER"?[yc("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.EG(G)?[yc("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Y.videoEntity.lengthSeconds?uyj(Y.videoEntity.lengthSeconds,O):[]:
[yc("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
uyj=function(Y,G){var u=[{thumbnailOverlayTimeStatusRenderer:{text:_.Sy(ylY({seconds:Y})),style:"DEFAULT"}}];G&&(Y=G<=0||Y<=0?0:G>=Y?100:Math.ceil(G*100/Y),Y>0&&u.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:Y}}));return u};
QWA=function(Y,G,u,O,Q){if(G==="TRANSFER_STATE_UNKNOWN"||!Y)return{};if(_.EG(G)||G==="TRANSFER_STATE_PRE_TRANSFER")var M=[yc("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var t,K;if(G==="TRANSFER_STATE_COMPLETE"&&((t=Y.mainPlaylistEntity)==null?0:(K=t.videos)==null?0:K.length)){var L;Y=(M=Y.mainPlaylistEntity)==null?void 0:(L=M.videos)==null?void 0:L.length;M=(M=ZRy(Y))?{thumbnailOverlayBottomPanelRenderer:{text:_.Sy(M),icon:{iconType:"PLAYLISTS"}}}:void 0;M=[Diy(),Object.assign({},
M!=null?M:{})]}else M=[]}a:if(G==="TRANSFER_STATE_PRE_TRANSFER")u=Nu(_.Q6("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(G==="TRANSFER_STATE_TRANSFER_IN_QUEUE")u=Nu(_.Q6("WAITING_TO_DOWNLOAD"));else if(_.EG(G))u=Math.floor(u*100).toString(),u=Nu(_.Q6("DOWNLOADING_PERCENT",{percent:u},"Downloading... "+u+"%"));else{if(O&&(_.F("playlist_is_offline_selector_killswitch")&&(Q=_.sH().resolve(_.lB).isNetworkAvailable()),Q)){u=wZU(_.Q6("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
iI1(O));break a}u=void 0}G=G==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Q6("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},M.length?{thumbnailOverlays:M}:{},u?{viewPlaylistText:u}:{viewPlaylistText:_.i8("")},G.length?{badges:G}:{})};
MYA=function(Y,G,u,O,Q,M){if(G==="TRANSFER_STATE_UNKNOWN"||!Y)return{};if(O==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var t=Ory(Y,G,O);if(Y.videoEntity&&!Y.policyEntity&&O!=="DOWNLOAD_STATE_FAILED"){var K=_.Q6("WAITING_TO_DOWNLOAD");if(K)return{shortViewCountText:_.i8(K),publishedTimeText:void 0,thumbnailOverlays:t}}if(!HC(Y.policyEntity)){M=Y.policyEntity&&!CwT(Y.policyEntity)?_.Q6("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Q6("TRANSFER_FAILED",{},"Download failed");var L;if((L=Y.policyEntity)==null?0:L.shortMessageForDisabledAction)M=Y.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Nu(M),publishedTimeText:void 0,thumbnailOverlays:t}}if(G==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.i8(_.Q6("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:t};if(G==="TRANSFER_STATE_FAILED"||G==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.i8(_.Q6("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:t};if(G==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(L=_.Q6("WAITING_TO_DOWNLOAD"),O==="DOWNLOAD_STATE_PAUSED"&&(L=_.Q6("DOWNLOAD_PAUSED",{},"Download paused")),L))return{shortViewCountText:_.i8(L),publishedTimeText:void 0,thumbnailOverlays:t};if(_.EG(G))return Y=Math.floor(u*100).toString(),{shortViewCountText:_.i8(_.Q6("DOWNLOADING_PERCENT",{percent:Y},"Downloading... "+Y+"%")),publishedTimeText:void 0,thumbnailOverlays:t};G=void 0;Y.videoEntity.publishedTimestampMillis&&
(G=new Date,Q&&(G=new Date(Q)),G=Nu(G$j(new Date(Number(Y.videoEntity.publishedTimestampMillis)),G)));Q=[];_.F("kevlar_woffle_badge_killswitch")||(Q=[{metadataBadgeRenderer:{label:_.Q6("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var g;Y=Nu((g=Y.videoEntity.localizedStrings)==null?void 0:g.viewCount);return Object.assign({},M?{shortViewCountText:void 0}:{shortViewCountText:Y},M?{}:{publishedTimeText:G},{badges:Q,thumbnailOverlays:t})};
E8g=function(Y,G){Y=Y===void 0?Hrj:Y;switch(G.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:G.payload.playlistId,inviteLinkURL:G.payload.inviteLinkUrl};default:return Y}};
KbI=function(Y,G){Y=Y===void 0?tYY:Y;switch(G.type){case "SET_CURRENT_FORM_ID":return G=G.payload.formId,Y.currentFormId===G?Y:{currentFormId:G,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var u=G.payload;G=u.groupId;u=u.command;if(Y.currentFormId){var O=Object.assign({},Y.commandsMap);O[G]=u;Y=Object.assign({},Y,{commandsMap:O})}return Y;case "RESET_COMMAND_MAP":return Object.assign({},Y,{commandsMap:{}});default:return Y}};
TYY=function(Y,G){Y=Y===void 0?aFg:Y;switch(G.type){case "UPDATE_CANVAS_MODE":return Object.assign({},Y,{currentMode:G.payload.currentMode});default:return Y}};
g8T=function(Y,G){Y=Y===void 0?LbI:Y;switch(G.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},Y,{guideIsExpanded:G.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},Y,{scrollAtTop:G.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},Y,{guideIsVisibleButNotPersistent:G.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},Y,{miniplayerIsActive:G.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},Y,{singleOptionSurveyIsActive:G.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},Y,{slimlineSurveyRatingSelectedIndex:G.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},Y,{richGridMiniMode:G.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},Y,{richGridItemsPerRow:G.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},Y,{richGridSlimItemsPerRow:G.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},Y,{richGridContainerWidth:G.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},Y,{richGridStyle:G.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},Y,{currentPageType:G.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},Y,{inlinePreviewIsActive:G.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},Y,{inlinePreviewIsEnabled:G.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},Y,{darkModeIsEnabled:G.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
Y,{miniplayerPlaybackState:G.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},Y,{tabGesturesIsActive:G.payload});case "SET_ONLINE_STATUS":return Object.assign({},Y,{isOnline:G.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},Y,{chipBarIsSticky:G.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},Y,{frostedGlassMode:G.payload});default:return Y}};
X9T=function(){return _.F("kevlar_disable_theater_mode_persistence")?!1:_.hy("START_IN_THEATER_MODE")};
IFI=function(Y,G){Y=Y===void 0?P21:Y;switch(G.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},Y,{transcription:G.payload});case "SET_OVERLAY_STATE":return Object.assign({},Y,{overlay:G.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return Y}};
fFj=function(){return fA(Object.assign({},{continuation:k$g,download:n8a,canvas:TYY,reportChannelAbuse:Fbg,share:p9y,talkToRecs:zga,ui:g8T,voiceSearch:IFI,watch:m81,ypc:WbA,shorts:rZt,radioButtonGroup:KbI,collabInviteLink:E8g},x8j))};
egt=function(){return _.F("web_player_entities_middleware")?new wK(fFj(),[C2t,yZt]):new wK(fFj(),[C2t])};
_.Zs=function(){AZu||(AZu=egt());return AZu};
o8y=function(Y,G,u){if(Y.length)return{titleText:_.Sy(G!=null?G:_.Q6("DOWNLOADS",void 0,"Downloads")),contents:Y.map(function(O){var Q=O.videoEntity;O={videoId:Q.videoId,title:Nu(Q.title),shortBylineText:Nu(O.channelEntity.title),thumbnail:Q.thumbnail};var M=Q.videoId?xG(_.Zs().getState(),Q.videoId):0;Q.videoId&&u?O.navigationEndpoint=_.bg(Q.videoId,u,void 0,void 0,M):Q.videoId&&(O.navigationEndpoint=oYA(Q.videoId,M,Q.lengthSeconds));Q.lengthSeconds&&(O.thumbnailOverlays=uyj(Q.lengthSeconds,M));return{playlistPanelVideoRenderer:O}}),
totalVideos:Y.length}};
irT=function(Y){return(Y=(0,_.gX.getValueByKeys)(Y,"playlistId"))?{playlistId:Y}:null};
RgT=function(){return{}};
w9j=function(Y,G){return new _.a0(function(u,O){Y.then(function(Q){if(Q){if(Q=G(Q))return u(Q);O()}},O)})};
Zr4=function(Y){var G,u,O,Q=(G=Y.contents)==null?void 0:(u=G.twoColumnWatchNextResults)==null?void 0:(O=u.autoplay)==null?void 0:O.autoplay,M,t,K;G=(M=Y.contents)==null?void 0:(t=M.twoColumnWatchNextResults)==null?void 0:(K=t.playlist)==null?void 0:K.playlist;return Q&&G&&G.playlistId?{rawResponse:Y,autoplayRenderer:Q,playlistPanelRenderer:G,playlistId:G.playlistId}:null};
hg4=function(Y){var G=G===void 0?"UNKNOWN_INTERFACE":G;if(Y.length===1)return Y[0];var u=D8a[G];if(u){u=new RegExp(u);for(var O=_.E(Y),Q=O.next();!Q.done;Q=O.next())if(Q=Q.value,u.exec(Q))return Q}var M=[];Object.entries(D8a).forEach(function(t){var K=_.E(t);t=K.next().value;K=K.next().value;G!==t&&M.push(K)});
u=new RegExp(M.join("|"));Y.sort(function(t,K){return t.length-K.length});
O=_.E(Y);for(Q=O.next();!Q.done;Q=O.next())if(Q=Q.value,!u.exec(Q))return Q;return Y[0]};
_.Ds=function(Y){return"/youtubei/v1/"+hg4(Y)};
_.hH=function(Y,G){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:Y}}},G!==void 0?{durationHintMs:G}:{})}};
_.dK=function(Y,G){return _.hH(_.i8(Y),G)};
d8Y=function(Y,G){var u={mode:"NORMAL"};Y&&(u.autoplayVideo=Y.navigationEndpoint,u.nextButtonVideo=Y.navigationEndpoint);G&&(u.previousButtonVideo=G.navigationEndpoint);return u};
NYa=function(Y,G,u){if(!u||!u.sets)return{sets:[d8Y(Y,G)]};var O=u.sets.find(function(t){return t.mode==="NORMAL"}),Q=(0,_.gX.unsafeClone)(u);
if(!O)return Q.sets.push(d8Y(Y,G)),Q;if(!Y)return u;O=_.gX.getValueByKeys.apply(null,[O].concat(_.c8(brA)));var M=_.gX.getValueByKeys.apply(null,[Y].concat(_.c8(SM4)));if(O===M)return u;Q.sets=Q.sets.filter(function(t){return t.mode!=="NORMAL"});
Q.sets.push(d8Y(Y,G));return Q};
jW4=function(Y){return!!Y.playlistPanelVideoRenderer&&!Y.playlistPanelVideoRenderer.unplayableText};
VYy=function(Y){return!!Y.playlistPanelVideoRenderer&&!!Y.playlistPanelVideoRenderer.title};
lFj=function(Y,G){if(G.contents&&!(Y>=G.contents.length)&&(Y=G.contents.slice(Y).find(jW4)))return Y.playlistPanelVideoRenderer};
BYj=function(Y,G){if(G.contents)return(G=G.contents.find(function(u){return!!u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.videoId===Y}))?G.playlistPanelVideoRenderer:void 0};
$8y=function(Y,G){return G.contents?G.contents.findIndex(function(u){return!!u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.videoId===Y}):-1};
qMA=function(Y,G){return G.contents?G.contents.findIndex(function(u){return!!u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.playlistSetVideoId===Y}):-1};
sWg=function(Y,G){Y.contents&&G!==-1&&Y.contents.splice(G,1).length===1&&Y.totalVideos!==void 0&&(--Y.totalVideos,delete Y.videoCountText)};
_.cZ4=function(Y){var G=[];if(!Y||!Y.contents)return G;Y=_.E(Y.contents);for(var u=Y.next();!u.done;u=Y.next())u=u.value,u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.videoId&&G.push(u.playlistPanelVideoRenderer.videoId);return G};
_.U8u=function(Y){if(Y&&Y.contents)return(Y=Y.contents.find(function(G){return!!G.playlistPanelVideoRenderer&&!!G.playlistPanelVideoRenderer.selected})||Y.contents[Y.currentIndex])?Y.playlistPanelVideoRenderer:void 0};
v8u=function(Y,G,u,O,Q,M,t){Q=Q===void 0?!1:Q;M=M===void 0?!1:M;t=t===void 0?!1:t;if(Y.contents&&Y.contents.length!==0){O&&(Y.contents=Y.contents.filter(O));O=Y.contents.length;for(var K=0;K<O;K++){var L=Y.contents[K].playlistPanelVideoRenderer;L&&(K===G?(M&&delete L.menu,L.indexText=_.i8("\u25b6")):Q||Y.isInfinite||L.indexText===void 0?delete L.indexText:L.indexText=_.i8((K+1+u).toString()))}Y.currentIndex=G+u;t&&(delete Y.videoCountText,Y.totalVideos=O)}};
_.b8=function(Y){Y=jUT(Y);if(Y){var G=Y.length;var u=-72%G;u<0&&(u=G+u);Y=Y.slice(G-u)+Y.slice(0,G-u)}else Y="";u="";for(G=0;G<Y.length&&Y[G]!==JZA;G++)u+=Y[G];return u};
_.Yut=function(Y,G){var u=document.body;G=G===void 0?function(K){return K}:G;
var O,Q=null;Y=_.E(Y);for(O=Y.next();!O.done;O=Y.next()){var M=O.value;O="div";M[2]&&(O=G(M[2]));O=document.createElement(O);Q||(Q=O);var t=M[0];M=M[1];t&&(O.id=G(t));if(M)for(M=_.E(M),t=M.next();!t.done;t=M.next())O.classList.add(G(t.value));u.appendChild(O);u=O}return[Q,u]};
G9I=function(Y,G){for(var u="",O=0;O<G;O++)u+=Y.charAt(Math.floor(Math.random()*Y.length));return u};
S7=function(Y){return G9I("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",Y)};
NW=function(Y){return G9I("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",Y)};
j7=function(Y){return G9I("0123456789",Y)};
u71=function(){var Y=performance.now(),G=new Date;var u="2."+G.getFullYear()+String(G.getMonth()+1).padStart(2,"0")+String(G.getDate()).padStart(2,"0");for(var O,Q=Math.floor(Math.random()*11)+15,M=[],t=0;t<Q;t++)M.push(Math.floor(Math.random()*26476865)+24547720);O=M.join(",");var K=S7(10),L=S7(100),g=S7(102),P=S7(106),I=S7(108),k=S7(11),n=S7(1140),p=S7(123),W=S7(14),C=S7(16),e=S7(1900),w=S7(23),B=S7(26),N=S7(34),h=S7(397),q=S7(44),U=S7(5),Mj=S7(72),Xt=S7(74),ka=S7(75),aU=S7(88),Tg=S7(91),iy="rr2---sn-5hnekn7z rr4---sn-q4fl6n66 rr4---sn-5hneknee rr1---sn-q4fl6nss rr5---sn-q4flrne6 rr2---sn-4g5edn6r rr5---sn-5hne6nsr rr4---sn-q4fl6nsk rr2---sn-5hnekn76 rr1---sn-q4fl6nsd rr1---sn-q4flrnsk rr4---sn-q4flrnsk rr4---sn-q4fl6nsl rr5---sn-aigl6nzl rr3---sn-q4flrne7 rr3---sn-q4fl6n6r rr3---sn-5hnednss rr2---sn-ntq7yney rr4---sn-t0a7lnee rr5---sn-q4flrn7r".split(" ");
var hY=iy[Math.floor(Math.random()*iy.length)];var dA=(new Date("2010-01-01")).getTime();var nT=(new Date(dA+Math.random()*((new Date).getTime()-dA))).toISOString().split("T")[0];for(var u_,jT=[],P1=0;P1<4;P1++)jT.push(Math.floor(Math.random()*100));u_=jT.join(".");var kk=Number(j7(5)),Fe=Number(j7(6)),Xg=Number(j7(7)),Hb=Number(j7(9)),n1=j7(1),Yk=j7(10),qj=j7(16),Gx=j7(19),fT=j7(2),b_=j7(20),MK=j7(21),v1=j7(3),Ew=j7(4),l_=j7(5),$V=j7(6),T2=j7(7),Pb=j7(8),IX=j7(9);var $k=G9I("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var NM=[NW(5),NW(5),NW(5)].join("%2C"),fx=[j7(3),j7(5),j7(5)].join("%2C"),H8=NW(0),jR=NW(1),Io=NW(10),vb=NW(108),K5=NW(11),s_=NW(12),jd=NW(13),eE=NW(14),PF=NW(15),Zx=NW(16),Ad=NW(17),yj=NW(18),by=NW(19),sI=NW(2),rR=NW(20),rb=NW(22),C5=NW(23),y9=NW(24),CT=NW(266),xk=NW(3),jS=NW(30),Mp=NW(34),pT=NW(35),wg=NW(36),OW=NW(4),Np=NW(40),Iy=NW(43),GR=NW(47),u9=NW(5),cF=NW(6),mU=NW(7),g8=NW(75),Yq=NW(8),xp=NW(80),eN=NW(9),zo="https://www."+NW(12)+".com",tE={},Aj={},o4={},Oj={},OD={},KV={},f3={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:O}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:u},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+NW(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:u},{key:"client.name",value:"WEB"},{key:"client.fexp",value:O}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:MK+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+NW(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Np,ypcGetOfflineUpsellEndpoint:{params:xp}},trackingParams:pT+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fmp4&ns="+y9+"&cnr="+fT+"&ratebypass=yes&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&c=WEB&txp="+T2+"&n="+C+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Fe,width:640,height:360,lastModified:qj,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:T2,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+fx+"&mn="+
NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fmp4&ns="+y9+"&cnr="+fT+"&ratebypass=yes&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&c=WEB&txp="+T2+"&n="+C+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+vb+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Fe,width:1280,
height:720,lastModified:qj,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:T2,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+fx+"&mn="+NM+"&ms="+
NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fmp4&ns="+y9+"&gir="+xk+"&clen="+IX+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Xg,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:IX,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Xg,approxDurationMs:T2},{itag:248,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+fx+"&mn="+NM+"&ms="+NM+"&mv="+
jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fwebm&ns="+y9+"&gir="+xk+"&clen="+IX+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/webm; codecs="vp9"',bitrate:Xg,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:IX,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Xg,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:T2},{itag:399,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+
fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fmp4&ns="+y9+"&gir="+xk+"&clen="+IX+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Xg,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:IX,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Xg,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:T2},{itag:136,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+
fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fmp4&ns="+y9+"&gir="+xk+"&clen="+IX+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Xg,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:IX,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Fe,approxDurationMs:T2},{itag:247,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+fx+"&mn="+
NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fwebm&ns="+y9+"&gir="+xk+"&clen="+IX+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/webm; codecs="vp9"',bitrate:Xg,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:IX,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Fe,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:T2},{itag:398,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+
fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fmp4&ns="+y9+"&gir="+xk+"&clen="+IX+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Xg,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:IX,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Fe,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:T2},{itag:135,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+
fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fmp4&ns="+y9+"&gir="+xk+"&clen="+Pb+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Fe,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:Pb,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Fe,approxDurationMs:T2},{itag:244,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+fx+"&mn="+
NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fwebm&ns="+y9+"&gir="+xk+"&clen="+Pb+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+vb+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/webm; codecs="vp9"',bitrate:Fe,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:Pb,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Fe,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:T2},{itag:397,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+
fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fmp4&ns="+y9+"&gir="+xk+"&clen="+Pb+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Fe,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:Pb,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Fe,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:T2},{itag:134,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+
fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fmp4&ns="+y9+"&gir="+xk+"&clen="+Pb+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Fe,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:Pb,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Fe,highReplication:!0,approxDurationMs:T2},{itag:243,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+
fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fwebm&ns="+y9+"&gir="+xk+"&clen="+Pb+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/webm; codecs="vp9"',bitrate:Fe,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:Pb,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Fe,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:T2},{itag:396,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+
fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fmp4&ns="+y9+"&gir="+xk+"&clen="+Pb+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Fe,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:Pb,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Fe,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:T2},{itag:133,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+
fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fmp4&ns="+y9+"&gir="+xk+"&clen="+Pb+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Fe,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:Pb,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Fe,approxDurationMs:T2},{itag:242,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+fx+"&mn="+
NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fwebm&ns="+y9+"&gir="+xk+"&clen="+Pb+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/webm; codecs="vp9"',bitrate:Fe,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:Pb,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Fe,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:T2},{itag:395,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+
fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fmp4&ns="+y9+"&gir="+xk+"&clen="+Pb+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Fe,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:Pb,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Fe,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:T2},{itag:160,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+
fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fmp4&ns="+y9+"&gir="+xk+"&clen="+Pb+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Fe,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:Pb,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:kk,approxDurationMs:T2},{itag:278,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+fx+"&mn="+
NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fwebm&ns="+y9+"&gir="+xk+"&clen="+Pb+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/webm; codecs="vp9"',bitrate:Fe,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:Pb,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:kk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:T2},{itag:394,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&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="+
fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=video%2Fmp4&ns="+y9+"&gir="+xk+"&clen="+Pb+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:kk,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:Pb,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:kk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:T2},{itag:140,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=audio%2Fmp4&ns="+y9+"&gir="+xk+"&clen="+Pb+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Fe,
initRange:{start:"0",end:"631"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:Pb,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Fe,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:T2,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+
fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=audio%2Fwebm&ns="+y9+"&gir="+xk+"&clen="+T2+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'audio/webm; codecs="opus"',bitrate:kk,initRange:{start:"0",end:"265"},indexRange:{start:v1,
end:Ew},lastModified:qj,contentLength:T2,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:kk,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:T2,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=audio%2Fwebm&ns="+
y9+"&gir="+xk+"&clen="+T2+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'audio/webm; codecs="opus"',bitrate:kk,initRange:{start:"0",end:"265"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:T2,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:kk,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:T2,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+hY+".googlevideo.com/videoplayback?expire="+Yk+"&ei="+w+"&ip="+u_+"&id=o-AF"+Iy+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+fx+"&mn="+NM+"&ms="+NM+"&mv="+jR+"&mvi="+n1+"&pl="+fT+"&initcwndbps="+T2+"&siu="+n1+"&spc="+q+"&vprv="+n1+"&svpuc="+n1+"&mime=audio%2Fwebm&ns="+y9+"&gir="+xk+"&clen="+Pb+"&dur="+Pb+"&lmt="+qj+"&mt="+Yk+"&fvip=3&keepalive="+xk+"&c=WEB&txp="+
T2+"&n="+Zx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'audio/webm; codecs="opus"',bitrate:Fe,initRange:{start:"0",end:"265"},indexRange:{start:v1,end:Ew},lastModified:qj,contentLength:Pb,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Fe,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:T2,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="+IX+"&docid="+k+"&ei="+w+"&feature="+K+"&fexp="+H8+"&ns="+sI+"&plid="+C+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+jR+"&el="+Io+"&len="+Ew+"&of="+rb+
"&uga="+fT+"&vm="+CT},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+IX+"&docid="+k+"&ei="+w+"&feature="+K+"&fexp="+H8+"&ns="+sI+"&plid="+C+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+jR+"&el="+Io+"&len="+Ew+"&of="+rb+"&uga="+fT+"&vm="+CT},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+IX+"&docid="+k+"&ei="+w+"&feature="+K+"&fexp="+H8+"&ns="+sI+"&plid="+C+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
jR+"&el="+Io+"&len="+Ew+"&of="+rb+"&uga="+fT+"&vm="+CT},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+w+"&m="+aU+"&oid="+rb+"&plid="+C+"&pltype="+mU+"&ptchn="+rb+"&ptk="+W+"&video_id="+k},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+IX+"&docid="+k+"&ei="+w+"&event="+eE+"&feature="+K+"&fexp="+H8+"&ns="+sI+"&plid="+C+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+jR},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
Zx+"&ver=2&cmt=1."+v1+"&fmt="+v1+"&fs=0&rt="+l_+"&euri&lact="+v1+"&cl="+IX+"&mos="+n1+"&volume=100&cbrand="+u9+"&cbr="+cF+"&cbrver="+u_+"&c=WEB&cver="+u+"&cplayer=UNIPLAYER&cos="+eN+"&cosver="+T2+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+fT+"&len="+Pb+"&fexp="+NM+"&feature=g-high-rec&afmt="+v1+"&muted=0&conn=1&docid="+k+"&ei="+w+"&plid="+C+"&vm="+NW(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
k+"&caps="+xk+"&opi="+IX+"&xoaf="+n1+"&hl="+sI+"&ip="+u_+"&ipbits="+n1+"&expire="+Yk+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+u_+"&key="+xk+"&lang="+U,name:{simpleText:Yq},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+k+"&caps="+xk+"&opi="+IX+"&xoaf="+n1+"&hl="+sI+"&ip="+u_+"&ipbits="+n1+"&expire="+Yk+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+u_+"&key="+xk+"&kind="+xk+"&lang="+sI,name:{simpleText:u9},
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:K5,title:Zx,lengthSeconds:"1155",keywords:[Yq,K5,yj,PF],channelId:y9,isOwnerViewing:!1,shortDescription:by,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+wg+"G&rs="+Mp,width:168,height:94},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+wg+
"G&rs="+Mp,width:196,height:110},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+wg+"G&rs="+N,width:246,height:138},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+wg+"G&rs="+N,width:336,height:188},{url:"https://i.ytimg.com/vi/"+k+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:T2,author:jd,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:T2,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
rb+"/featured_channel.jpg?v="+Yq,width:40,height:40}]},trackingParams:pT+"=",navigationEndpoint:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{url:"/channel/"+y9,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:y9}},channelName:jd,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:PF}]},subscribed:!1,enabled:!0,type:"FREE",channelId:y9,showPreferences:!1,subscribedButtonText:{runs:[{text:Ad}]},unsubscribedButtonText:{runs:[{text:mU}]},
trackingParams:pT+"=",unsubscribeButtonText:{runs:[{text:eE}]},serviceEndpoints:[{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[y9],params:Yq}},{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Np,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:pT+"=",dialogMessages:[{runs:[{text:s_},
{text:eE},{text:PF}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:cF}]},serviceEndpoint:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[y9],params:Yq}},accessibility:{label:by},trackingParams:pT+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:mU}]},accessibility:{label:eN},
trackingParams:pT+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:eN}},unsubscribeAccessibility:{accessibilityData:{label:jd}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Pb},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[y9],
params:Yq}},unsubscribeCommand:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[y9],params:Yq}},addToWatchLaterCommand:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:K5,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:K5}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+k+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+wg+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+k+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+K5,width:1280,
height:720},title:{simpleText:eN},description:{simpleText:by},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+cF,externalChannelId:y9,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:T2,category:"Travel & Events",publishDate:nT,ownerChannelName:jd,uploadDate:nT}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Ad},trackingParams:pT+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Np,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:pT+"="}}],headerText:{simpleText:cF},icon:{infoCardIconRenderer:{trackingParams:pT+"="}},closeButton:{infoCardIconRenderer:{trackingParams:pT+"="}},trackingParams:pT+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:pT+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+K5+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:$k,interpreterSafeUrl:(tE.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+jS+".js",tE),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Zx},{text:by,bold:!0}]},endpoint:{clickTrackingParams:Np,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:pT+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:jd}]},actionButton:{buttonRenderer:{text:{runs:[{text:u9}]},navigationEndpoint:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+k,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
k,target:"TARGET_NEW_WINDOW"}},trackingParams:pT+"="}},trackingParams:pT+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Mj+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Mj+"=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:T2,endMs:T2,title:{accessibility:{accessibilityData:{label:cF}},simpleText:jd},metadata:{simpleText:s_},callToAction:{simpleText:by},dismiss:{simpleText:Io},endpoint:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{url:"/channel/"+y9,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:y9}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:PF}]},subscribed:!1,enabled:!0,type:"FREE",channelId:y9,showPreferences:!1,
subscribedButtonText:{runs:[{text:mU}]},unsubscribedButtonText:{runs:[{text:mU}]},trackingParams:pT+"=",unsubscribeButtonText:{runs:[{text:OW}]},serviceEndpoints:[{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[y9],params:Yq}},{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Np,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:pT+
"=",dialogMessages:[{runs:[{text:rR},{text:cF},{text:mU}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Ad}]},serviceEndpoint:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[y9],params:Yq}},accessibility:{label:u9},trackingParams:pT+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:by}]},
accessibility:{label:by},trackingParams:pT+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Yq}},unsubscribeAccessibility:{accessibilityData:{label:Ad}}}},trackingParams:pT+"=",isSubscribe:!0,id:b_}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+wg+"G&rs="+N,width:168,height:94},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+wg+"G&rs="+Mp,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+wg+"G&rs="+N,width:246,height:138},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+wg+"G&rs="+N,width:336,height:188},{url:"https://i.ytimg.com/vi/"+k+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:T2,endMs:T2,title:{accessibility:{accessibilityData:{label:u9}},simpleText:OW},metadata:{simpleText:PF},endpoint:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
K5,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:K5,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+hY+".googlevideo.com/videoplayback?source=youtube&oeis="+n1+"&c=WEB&oad="+Ew+"&ovd="+Ew+"&oaad="+l_+"&oavd="+l_+"&ocs="+v1+"&oewis="+n1+"&oputc="+n1+"&ofpcc="+n1+"&siu="+n1+"&msp="+n1+"&odepv="+n1+
"&id=o-AF"+Iy+"&ip="+u_+"&initcwndbps="+T2+"&mt="+Yk+"&oweuc="+H8}}}}},trackingParams:pT+"=",id:b_,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Yq}},simpleText:s_},style:"DEFAULT"}}]}}],startMs:T2,trackingParams:pT+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:n1,offsetEndMilliseconds:l_},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+IX+";dc_trk_cid="+IX+";dc_dbm_token="+I+";ord="+Yk+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n1+";dc_rui="+n1+";dc_exteid="+b_+";dc_av="+v1+";dc_sk="+n1+";dc_ctype="+fT+";dc_ref=http://www.youtube.com/video/"+K5+";dc_pubid="+n1+";dc_btype=23?gclid="+Tg+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+n1+"&ns="+n1+"&event="+n1+"&device="+n1+"&content_v="+k+"&el="+Io+"&ei="+w+"&devicever="+u+"&bti="+T2+"&format="+$V+"&break_type="+n1+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+n1+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+u_+"&slot_pos="+n1+"&slot_len="+n1+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+fx+"&ad_len="+l_+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
K5+"&aqi="+w+"&ad_rmp="+n1+"&sli="+n1}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+
";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+$V+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+T2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&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"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&ctype="+v1+"&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"+
n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_engaged_view&ctype="+v1+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+$V+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
IX+";dc_trk_cid="+IX+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n1+";ord="+IX+";dc_rui="+n1+";dc_exteid="+Gx+";dc_av="+n1+";dc_sk="+n1+";dc_ctype="+fT+";dc_pubid="+n1+";dc_btype=3?gclid="+Tg+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+g+"&sig="+C5+"&ad_cpn=[AD_CPN]&id="+cF+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+cF+"&dc_pubid="+n1+"&dc_exteid="+b_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+g+"&sig="+C5+"&ad_cpn=[AD_CPN]&id="+cF+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+n1},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+cF+"&avm="+n1+"&dc_pubid="+n1+"&dc_exteid="+
b_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&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="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
g+"&sig="+C5+"&ad_cpn=[AD_CPN]&id="+cF+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+n1},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+cF+"&dc_pubid="+n1+"&dc_exteid="+b_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+$V+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+$V+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Np,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+
v1+"&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/"+k+"/mqdefault.jpg",width:320,height:180}]},trackingParams:pT+"="},trackingParams:pT+
"=",templatedCountdown:{templatedAdText:{text:OW,isTemplated:!0,trackingParams:pT+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Io,isTemplated:!1,trackingParams:pT+"="},trackingParams:pT+"="}},trackingParams:pT+"=",skipOffsetMilliseconds:5E3}},trackingParams:pT+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Yq},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:pT+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:OW,isTemplated:!1,trackingParams:pT+"="},trackingParams:pT+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Ad,isTemplated:!0,trackingParams:pT+"="}},trackingParams:pT+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Np,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Aj.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+sI+"&origin=www.youtube.com&ata_theme="+OW,Aj),trackingParams:pT+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:pT+"="}},hoverText:{runs:[{text:mU}]},trackingParams:pT+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+GR+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:pT+"="},headline:{text:Io,isTemplated:!1,trackingParams:pT+"="},description:{text:u9,
trackingParams:pT+"="},actionButton:{buttonRenderer:{text:{simpleText:eE},navigationEndpoint:{clickTrackingParams:Np,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+IX+";dc_trk_cid="+IX+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n1+";ord="+IX+";dc_rui="+n1+";dc_exteid="+b_+";dc_av="+n1+";dc_sk="+n1+";dc_ctype="+fT+";dc_pubid="+n1+";dc_btype=3?gclid="+Tg+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:pT+"="}},startMs:n1,trackingParams:pT+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:K5},elementId:eE}},elementId:Zx,trackingParams:pT+"=",legacyInfoCardVastExtension:by,sodarExtensionData:{siub:rR,bgub:mU,scs:rR,bgp:rR},externalVideoId:K5,adLayoutLoggingData:{serializedAdServingDataEntry:PF},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+GR+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:pT+"="},
headline:{text:K5,isTemplated:!1,trackingParams:pT+"="},description:{text:Ad,isTemplated:!1,trackingParams:pT+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:yj},navigationEndpoint:{clickTrackingParams:Np,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+IX+";dc_trk_cid="+IX+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n1+";ord="+IX+";dc_rui="+n1+";dc_exteid="+
b_+";dc_av="+n1+";dc_sk="+n1+";dc_ctype="+fT+";dc_pubid="+n1+";dc_btype=3?gclid="+Tg+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+
n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:pT+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:pT+"="}},navigationEndpoint:{clickTrackingParams:Np,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+IX+";dc_trk_cid="+
IX+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n1+";ord="+IX+";dc_rui="+n1+";dc_exteid="+b_+";dc_av="+n1+";dc_sk="+n1+";dc_ctype="+fT+";dc_pubid="+n1+";dc_btype=3?gclid="+Tg+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+
p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:pT+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:pT+"="},abandonCommands:{commands:[{clickTrackingParams:Np,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&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="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+
n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Np,commandExecutorCommand:{commands:[{clickTrackingParams:Np,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Yq,isTemplated:!1,trackingParams:pT+
"="},trackingParams:pT+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Io},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+T2+";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="+IX+";dc_trk_cid="+IX+";ord="+Yk+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n1+";dc_rui="+n1+";dc_exteid="+b_+";dc_av="+v1+";dc_sk="+n1+";dc_ctype="+fT+";dc_ref=http://www.youtube.com/video/"+K5+";dc_pubid="+n1+";dc_btype=23?gclid="+Tg+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+n1+"&ns="+n1+"&event="+n1+"&device="+n1+"&content_v="+k+"&el="+Io+"&ei="+w+"&devicever="+u+"&bti="+T2+"&format="+$V+"&break_type="+n1+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+n1+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+u_+"&slot_pos="+n1+"&slot_len="+n1+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
fx+"&ad_len="+l_+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+K5+"&aqi="+w+"&ad_rmp="+n1+"&sli="+n1}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+$V+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+
B+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+T2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&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"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&ctype="+v1+"&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"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_engaged_view&ctype="+v1+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+$V+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+g+"&sig="+C5+"&ad_cpn=[AD_CPN]&id="+
cF+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+cF+"&dc_pubid="+n1+"&dc_exteid="+b_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+g+
"&sig="+C5+"&ad_cpn=[AD_CPN]&id="+cF+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+n1},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+cF+"&avm="+n1+"&dc_pubid="+n1+"&dc_exteid="+b_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&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="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+g+"&sig="+C5+"&ad_cpn=[AD_CPN]&id="+cF+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+n1},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+cF+"&dc_pubid="+n1+"&dc_exteid="+b_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+$V+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+$V+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+
v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&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/"+k+"/mqdefault.jpg",width:320,height:180}]},trackingParams:pT+"="},trackingParams:pT+"=",templatedCountdown:{templatedAdText:{text:eE,isTemplated:!0,trackingParams:pT+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:eN,isTemplated:!1,trackingParams:pT+"="},trackingParams:pT+"="}},
trackingParams:pT+"=",skipOffsetMilliseconds:5E3}},trackingParams:pT+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:cF},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:pT+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:jd,isTemplated:!1,trackingParams:pT+"="},trackingParams:pT+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:rR,
isTemplated:!0,trackingParams:pT+"="}},trackingParams:pT+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Np,openPopupAction:{popup:{aboutThisAdRenderer:{url:(o4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+sI+"&origin=www.youtube.com&ata_theme="+OW,o4),trackingParams:pT+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:pT+"="}},hoverText:{runs:[{text:PF}]},trackingParams:pT+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Xt+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:pT+"="},headline:{text:rR,isTemplated:!1,trackingParams:pT+"="},description:{text:jd,trackingParams:pT+"="},actionButton:{buttonRenderer:{text:{simpleText:PF},navigationEndpoint:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:pT+"="}},startMs:n1,trackingParams:pT+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:s_},elementId:u9}},elementId:eE,trackingParams:pT+"=",legacyInfoCardVastExtension:Yq,sodarExtensionData:{siub:yj,bgub:yj,scs:Ad,bgp:jd},externalVideoId:K5,adLayoutLoggingData:{serializedAdServingDataEntry:mU},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Xt+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:pT+"="},headline:{text:s_,
isTemplated:!1,trackingParams:pT+"="},description:{text:PF,isTemplated:!1,trackingParams:pT+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:K5},navigationEndpoint:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:pT+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:pT+"="}},navigationEndpoint:{clickTrackingParams:Np,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+
n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:pT+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:pT+"="},abandonCommands:{commands:[{clickTrackingParams:Np,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&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="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+fT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Np,commandExecutorCommand:{commands:[{clickTrackingParams:Np,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Ad,isTemplated:!1,trackingParams:pT+"="},trackingParams:pT+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:s_},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+n1+";dc_exteid="+b_+";met="+n1+";ecn"+n1+"="+n1+";etm1="+n1+";eid1="+
T2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Zx}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:l_,offsetEndMilliseconds:$V},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+w+"&m_pos="+fT+"&token=ALHj"+h+"&index="+n1+"&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="+u+"&m_pos_ms="+l_}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Io}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:$V,offsetEndMilliseconds:$V},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+w+"&m_pos="+v1+"&token=ALHj"+h+"&index="+n1+"&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="+
u+"&m_pos_ms="+$V}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ad}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$V,offsetEndMilliseconds:$V},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+w+"&m_pos="+v1+"&token=ALHj"+h+"&index="+n1+"&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="+
u+"&m_pos_ms="+$V}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Yq}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$V,offsetEndMilliseconds:$V},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+w+"&m_pos="+v1+"&token=ALHj"+h+"&index="+n1+"&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="+
u+"&m_pos_ms="+$V}},adSlotLoggingData:{serializedSlotAdServingDataEntry:s_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$V,offsetEndMilliseconds:fT},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+w+"&m_pos="+v1+"&token=ALHj"+h+"&index="+n1+"&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="+
u+"&m_pos_ms="+$V}},adSlotLoggingData:{serializedSlotAdServingDataEntry:jd}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:fT,offsetEndMilliseconds:fT},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+w+"&m_pos="+fT+"&token=ALHj"+h+"&index="+n1+"&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="+
u+"&m_pos_ms="+fT}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:mU,isTemplated:!1,trackingParams:pT+"="},description:{text:Zx,isTemplated:!1,trackingParams:pT+"="},actionButton:{buttonRenderer:{text:{simpleText:mU},navigationEndpoint:{clickTrackingParams:Np,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
IX+";dc_trk_cid="+IX+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n1+";ord="+IX+";dc_rui="+n1+";dc_exteid="+b_+";dc_av="+n1+";dc_sk="+n1+";dc_ctype="+fT+";dc_pubid="+n1+";dc_btype=3?gclid="+Tg+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:pT+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+GR+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:pT+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ka+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:pT+"="},navigationEndpoint:{clickTrackingParams:Np,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+IX+";dc_trk_cid="+IX+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n1+";ord="+IX+
";dc_rui="+n1+";dc_exteid="+b_+";dc_av="+n1+";dc_sk="+n1+";dc_ctype="+fT+";dc_pubid="+n1+";dc_btype=3?gclid="+Tg+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:pT+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Np,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Oj.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+sI+"&origin=www.youtube.com&ata_theme="+OW,Oj),trackingParams:pT+"="}},popupType:"DIALOG"}},trackingParams:pT+"="}},hoverText:{runs:[{text:Zx}]},trackingParams:pT+"="}},adVideoId:K5,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:OW},associatedCompositePlayerBytesLayoutId:Zx}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:by}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:s_,isTemplated:!1,trackingParams:pT+"="},description:{text:PF,isTemplated:!1,trackingParams:pT+"="},actionButton:{buttonRenderer:{text:{simpleText:jd},navigationEndpoint:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+
p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:pT+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Xt+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:pT+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+g8+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:pT+"="},navigationEndpoint:{clickTrackingParams:Np,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+
n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:pT+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Np,openPopupAction:{popup:{aboutThisAdRenderer:{url:(OD.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+sI+"&origin=www.youtube.com&ata_theme="+OW,OD),trackingParams:pT+"="}},popupType:"DIALOG"}},trackingParams:pT+"="}},
hoverText:{runs:[{text:eE}]},trackingParams:pT+"="}},adVideoId:K5,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+K5+"&cid="+B+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:s_},associatedCompositePlayerBytesLayoutId:Zx}},adSlotLoggingData:{serializedSlotAdServingDataEntry:eE}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:K5,
isTemplated:!1,trackingParams:pT+"="},description:{text:PF,isTemplated:!1,trackingParams:pT+"="},actionButton:{buttonRenderer:{text:{simpleText:Yq},navigationEndpoint:{clickTrackingParams:Np,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+IX+";dc_trk_cid="+IX+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n1+";ord="+IX+";dc_rui="+n1+";dc_exteid="+b_+";dc_av="+n1+";dc_sk="+n1+";dc_ctype="+
fT+";dc_pubid="+n1+";dc_btype=3?gclid="+Tg+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+
N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:pT+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+GR+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:pT+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ka+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:pT+
"="},navigationEndpoint:{clickTrackingParams:Np,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+IX+";dc_trk_cid="+IX+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+n1+";ord="+IX+";dc_rui="+n1+";dc_exteid="+b_+";dc_av="+n1+";dc_sk="+n1+";dc_ctype="+fT+";dc_pubid="+n1+";dc_btype=3?gclid="+Tg+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+p+"AxAA&ase=2&num="+n1+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+zo+"&label=video_click_to_advertiser_site&ctype="+v1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:pT+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Np,openPopupAction:{popup:{aboutThisAdRenderer:{url:(KV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+sI+"&origin=www.youtube.com&ata_theme="+OW,KV),trackingParams:pT+"="}},popupType:"DIALOG"}},trackingParams:pT+
"="}},hoverText:{runs:[{text:PF}]},trackingParams:pT+"="}},adVideoId:K5,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+p+"AxAA&sigh="+k+"&cid="+B+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:by},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Zx}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Yq}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:jS,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:jS,command:{innertubeCommand:{clickTrackingParams:Np,ypcGetOfflineUpsellEndpoint:{params:xp}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:pT+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:Yk,nanos:Hb}}}},J1=JSON.stringify(f3),Qd=performance.now()-Y;return{objectRepresentation:f3,jsonRepresentation:J1,generationTime:Qd}};
ONT=function(Y,G){if(Y===G)return!0;if(!Y||!G||typeof Y!==typeof G)return!1;if(Y instanceof Array&&G instanceof Array){if(Y.length!==G.length)return!1;for(var u=0;u<Y.length;u++)if(!ONT(Y[u],G[u]))return!1;return!0}if(typeof Y==="object"&&typeof G==="object"&&Y&&G){for(u in Y)if(!(u in G&&ONT(Y[u],G[u])))return!1;for(var O in G)if(!(O in Y))return!1;return!0}return!1};
_.l8=function(){if(!Vc){Vc=new JX(new QNU);var Y=_.Jy("client_streamz_web_flush_count",-1);Y!==-1&&(Vc.invocationLimit=Y)}return Vc};
BC=function(Y,G,u,O){if(Y===G)return!0;if(Array.isArray(Y)&&Array.isArray(G)){if(Y.length!==G.length)return!1;for(var Q=0;Q<Y.length;Q++)if(!BC(Y[Q],G[Q],u,O))return!1;return!0}if(Y instanceof Set||G instanceof Set){if(Y instanceof Set&&G instanceof Set){if(Y.size!==G.size)return!1;O=_.E(Y.values());for(Q=O.next();!Q.done;Q=O.next())if(!G.has(Q.value))return!1;return!0}return!1}if(Y instanceof Function){if(O)return!0;Y.name===""&&_.o0(Error("Rf"),"ERROR");return!1}if(Y instanceof Date&&G instanceof
Date)return Y.getTime()===G.getTime();if(Y instanceof Object&&G instanceof Object){if(MQI(Y)&&MQI(G))try{return Y.equals(G)}catch(t){_.o0(Error("Sf`"+t),"ERROR")}Q=Object.getOwnPropertyNames(Y).filter(function(t){return u?Y[t]!==void 0:!0});
var M=Object.getOwnPropertyNames(G).filter(function(t){return u?G[t]!==void 0:!0});
if(Q.length!==M.length)return!1;Q=_.E(Q);for(M=Q.next();!M.done;M=Q.next())if(M=M.value,!BC(Y[M],G[M],u,O))return!1;return!0}return!1};
MQI=function(Y){Y=Object.getPrototypeOf(Y).equals;return Y instanceof Function&&Y.length===1};
_.tQY=function(){return _.a(function(Y){if(Y.nextAddress==1)return HNu!==2?Y.jumpTo(2):Y.yield(EBU(),3);Y.nextAddress!=2&&(HNu=Y.yieldResult);return Y.return(HNu)})};
_.TDt=function(){return _.a(function(Y){if(Y.nextAddress==1)return _.F("ab_pl_man")?Ksg!==2?Y.jumpTo(2):Y.yield(aDT(),3):Y.return(1);Y.nextAddress!=2&&(Ksg=Y.yieldResult);return Y.return(Ksg)})};
Xda=function(){return _.a(function(Y){if(Y.nextAddress==1)return _.F("ab_fk_sk_cl")?Lst!==2?Y.jumpTo(2):Y.yield(gBA(),3):Y.return(1);Y.nextAddress!=2&&(Lst=Y.yieldResult);return Y.return(Lst)})};
_.k9Y=function(){return _.a(function(Y){if(Y.nextAddress==1)return _.F("ab_det_apb_b")?PLA!==2?Y.jumpTo(2):Y.yield(IDt(),3):Y.return(1);Y.nextAddress!=2&&(PLA=Y.yieldResult);return Y.return(PLA)})};
pdI=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield(Promise.all([_.tQY(),_.k9Y(),_.TDt(),Xda()]),2);if(G.nextAddress!=3)return nBU()?G.return(!0):G.yield(_.Fst(),3);Y=G.yieldResult;return G.return(Y===0)})};
nBU=function(){var Y=!1,G=function(u,O){z7T.increment(O,u);u===0&&(Y=!0)};
G(_.mhI(),"j.s_");G(HNu,"f.i_");G(PLA,"a.b_");G(Ksg,"p.m_");G(Lst,"i.f_");Ws4===2&&(Ws4=_.rqu(xhg));G(Ws4,"e.h_");_.F("ks_det_gpbl")||G(_.fDI(),"p.i_");_.F("ks_get_o_pp")||G(_.CLj(),"g.o_");_.F("ab_deg_unex_thr")||G(_.yqt(),"a.o_");G(e7g,"s.t_");_.F("ab_det_sc_inj_enf")&&G(_.Aqt(),"s.i_");G(oBA,"d.p_");G(_.iNy(_.$G),"o.p_");G(_.R7T()===0?0:_.wdt(),"o.a_");return _.F("debug_sk_em_precheck")?!0:Y};
Dhy=function(){var Y=[].concat(_.c8(ZNT));try{var G=u71();Y.push({jsonRepresentation:G.jsonRepresentation,objectRepresentation:G.objectRepresentation})}catch(u){Y=[].concat(_.c8(ZNT))}return Y};
h7a=function(){var Y=["adPlacements","adSlots"];try{return Y.filter(function(){return!0}).length!==Y.length?0:1}catch(G){return 0}};
_.CLj=function(){if(h7a()===0)return 0;var Y=u71(),G=Y.objectRepresentation,u=(0,_.gX.unsafeClone)(G),O=[];if(G&&typeof G==="object")for(var Q in G)O.push(Q);else return 4;Y=Y.objectRepresentation.adPlacements;if(!(Y&&Y.length>0))return 4;try{if(!ONT(O,Object.getOwnPropertyNames(G)))return 0}catch(M){return 0}return ONT(u,G)?1:0};
_.iNy=function(Y){if(!Y||!Y.length||typeof Y==="string")return 0;for(var G=Object.getOwnPropertyNames(Object.prototype),u=0;u<Y.length;u++)for(var O=_.b8(Y[u]),Q=_.E(G),M=Q.next();!M.done;M=Q.next())if(O===M.value)return 0;return 1};
dhu=function(Y){var G=_.b8(Y[1]);if(Y[0]===null)return G;Y=Y[0];for(var u={},O=0;O<Y.length;O++){var Q=_.b8(Y[O]);if(O===0)u[Q]=G;else{var M={};M[Q]=u;u=M}}return u};
_.R7T=function(){for(var Y=_.qW,G=0;G<Y.length;G++){var u=dhu(Y[G]),O=[];O.push(u);if(O.length===0)return 0}return 1};
_.wdt=function(){for(var Y=_.qW,G={},u=0;u<Y.length;G={jRu:void 0},u++){var O=[dhu(Y[u])];G.jRu=[];O.forEach(function(Q){return function(M){Q.jRu[Q.jRu.length]=M}}(G));
if(G.jRu.length===0)return 0}return 1};
_.mhI=function(){for(var Y=_.E(Dhy()),G=Y.next();!G.done;G=Y.next()){var u=G.value;G=u.jsonRepresentation;u=u.objectRepresentation;try{var O=JSON.parse(G);if(!BC(O,u,!1,!1))return 0}catch(Q){return 0}}return 1};
_.Aqt=function(){try{var Y=_.O5("ab_det_sc_inj_val");Y.length===1&&Y[0]===""&&(Y=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var G=document.querySelectorAll("script"),u=_.E(G),O=u.next();!O.done;O=u.next())for(var Q=O.value,M=_.E(Y),t=M.next();!t.done;t=M.next()){var K=t.value;G=void 0;if((G=Q.textContent)==null?0:G.includes(K))return 0}}catch(L){return 4}return 1};
_.Fst=function(){var Y,G,u,O,Q,M,t;return _.a(function(K){switch(K.nextAddress){case 1:_.i3(K,2),Y=_.E(ZNT),G=Y.next();case 4:if(G.done)return K.return(1);O=u=G.value;Q=O.jsonRepresentation;M=O.objectRepresentation;return K.yield((new Response(Q,{status:200})).json(),7);case 7:t=K.yieldResult;if(!BC(t,M,!1,!1))return K.return(0);G=Y.next();K.jumpTo(4);break;case 2:return _.b3(K),K.return(4)}})};
_.yqt=function(){try{btoa("abc")}catch(Y){return 0}return 1};
EBU=function(){var Y,G,u,O,Q,M,t,K,L,g,P;return _.a(function(I){switch(I.nextAddress){case 1:_.i3(I,2),Y=_.E(Dhy()),G=Y.next();case 4:if(G.done)return I.return(1);O=u=G.value;Q=O.jsonRepresentation;M=O.objectRepresentation;t=btoa(Q);K="data:application/json;base64,"+t;L=new Request(K);Object.defineProperty(L,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(L,"method",{get:function(){return"POST"}});
Object.defineProperty(L,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(L,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(L,"body",{get:function(){return new ReadableStream}});
return I.yield(fetch(L),7);case 7:return g=I.yieldResult,I.yield(g.json(),8);case 8:P=I.yieldResult;if(!BC(P,M,!1,!1))return I.return(0);G=Y.next();I.jumpTo(4);break;case 2:return _.b3(I),I.return(4)}})};
_.rqu=function(Y){if(!Y||!Y.length||typeof Y==="string")return 0;for(var G=function(Q){return _.b8(Q)},u=2,O=0;O<Y.length&&(u=_.bNT(_.Yut(Y[O],G)),u!==0);O++);
return u};
_.bNT=function(Y){var G=_.E(Y);Y=G.next().value;G=G.next().value;try{var u=document.createElement("div");document.body.appendChild(u);var O=getComputedStyle(u).display;document.body.removeChild(u);if(O==="none")return 4;var Q=getComputedStyle(G).display==="none"?0:1;document.body.removeChild(Y);return Q}catch(M){return 4}};
gBA=function(){var Y,G,u;return _.a(function(O){Y=new _.sG;G=document.createElement("button");G.classList.add("ytp-ad-skip-button");G.style.opacity="0";G.style.height="0px";G.style.width="0px";G.style.padding="0px";G.style.border="none";u=function(){G.parentElement&&G.parentElement.removeChild(G)};
G.onclick=function(){Y.resolve(0);u()};
document.body.appendChild(G);setTimeout(function(){u();Y.resolve(1)},50);
return O.return(Y.promise)})};
aDT=function(){var Y,G,u,O,Q,M,t;return _.a(function(K){Y=new _.sG;G=document.createElement("ytd-player");try{document.body.prepend(G)}catch(L){return K.return(4)}u=function(){G.parentElement&&G.parentElement.removeChild(G)};
G.getElementsByTagName("div").length>0?O=G.getElementsByTagName("div")[0]:(O=document.createElement("div"),G.appendChild(O));Q=document.createElement("div");O.appendChild(Q);M=document.createElement("video");t=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"});M.src=_.Bs(_.UT(t));M.ontimeupdate=function(){u();Y.resolve(0)};
Q.appendChild(M);M.classList.add("html5-main-video");setTimeout(function(){Q.classList.add("ad-interrupting")},200);
setTimeout(function(){u();Y.resolve(1)},5E3);
return K.return(Y.promise)})};
Suy=function(Y){var G=u71().objectRepresentation.playbackTracking;if(G){var u=[],O;u.push(G==null?void 0:(O=G.videostatsPlaybackUrl)==null?void 0:O.baseUrl);var Q;u.push(G==null?void 0:(Q=G.videostatsDelayplayUrl)==null?void 0:Q.baseUrl);var M;u.push(G==null?void 0:(M=G.videostatsWatchtimeUrl)==null?void 0:M.baseUrl);var t;u.push(G==null?void 0:(t=G.ptrackingUrl)==null?void 0:t.baseUrl);var K;u.push(G==null?void 0:(K=G.qoeUrl)==null?void 0:K.baseUrl);var L;u.push(G==null?void 0:(L=G.atrUrl)==null?
void 0:L.baseUrl);G=_.E(u);for(u=G.next();!u.done;u=G.next())if((u=u.value)&&Y.test(u))return u.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
ND4=function(Y,G){var u,O;return _.a(function(Q){switch(Q.nextAddress){case 1:u=[],O=0;case 2:if(!(O<3)){Q.jumpTo(4);break}return Q.yield(fetch(Y,{cache:"no-store",method:G}).then(function(M){u.push(M.status)}).catch(function(){u.push(-1)}),3);
case 3:O++;Q.jumpTo(2);break;case 4:return Q.return(u)}})};
jNj=function(Y){return Y.domainLookupStart===0&&Y.domainLookupEnd===0&&Y.connectStart===0&&Y.connectEnd===0||Y.duration===0};
VQu=function(Y,G,u){u=u===void 0?"GET":u;var O,Q,M,t,K,L,g,P,I,k;return _.a(function(n){if(n.nextAddress==1)return n.yield(Promise.all([ND4(Y,u),ND4(G,u)]),2);O=n.yieldResult;Q=_.E(O);M=Q.next().value;t=Q.next().value;K=M;L=t;if(Math.min.apply(Math,_.c8(L))!==Math.max.apply(Math,_.c8(L))||Math.min.apply(Math,_.c8(K))!==Math.max.apply(Math,_.c8(K)))return n.return(2);if(Math.min.apply(Math,_.c8(L))===Math.min.apply(Math,_.c8(K)))return n.return(1);P=(g=performance.getEntriesByName(Y))==null?void 0:
g[0];k=(I=performance.getEntriesByName(G))==null?void 0:I[0];return P&&k?jNj(k)?n.return(1):jNj(P)?n.return(0):n.return(1):n.return(2)})};
IDt=function(){var Y;return _.a(function(G){var u=[];var O;var Q,M,t;(Q=O=(Q=u71().objectRepresentation.streamingData)==null?void 0:(M=Q.formats)==null?void 0:(t=M[0])==null?void 0:t.url)&&Q&&!O.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(Q=Q.replace("initcwndbps","ctier=L&initcwndbps"),Q=Q.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),O={testUrl:Q,baseUrl:O,method:"GET"}):O=void 0;O&&u.push(O);_.F("ab_net_tp_e")&&u.push({testUrl:_.OI.location.origin+"/ad_companion",baseUrl:_.OI.location.origin+
"/generate_204",method:"OPTIONS"});_.F("ab_fix_creator_view_cnt")&&(u.length=0,(O=Suy(/api\/stats\/atr/))&&u.push({testUrl:_.OI.location.origin+O,baseUrl:_.OI.location.origin+"/generate_204",method:"POST"}));_.F("ad_net_pb_pbp")&&(O=Suy(/api\/stats\/qoe/))&&u.push({testUrl:_.OI.location.origin+O,baseUrl:_.OI.location.origin+"/feed/download",method:"GET"});u=u.length!==0?u[Math.floor(Math.random()*u.length)]:void 0;return(Y=u)?G.return(VQu(Y.testUrl,Y.baseUrl,Y.method)):G.return(4)})};
_.fDI=function(){if(_.OI.tDS===void 0||_.OI.tDS===null||typeof _.OI.tDS!=="function")return 2;try{return _.OI.tDS()===!0?0:1}catch(Y){return 0}};
lDy=function(Y){switch(Y){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.YV(Y,"unknown result type")}};
_.BDj=function(Y,G){var u=Number(_.DE("CATSTAT",0));if(G.u7u===void 0)return u;G=G.u7u;Y=lDy(Y);return u&~(3<<G)|Y<<G};
$ht=function(Y){var G,u;if((Y=(G=Y.auxiliaryUi)==null?void 0:(u=G.messageRenderers)==null?void 0:u.bkaEnforcementMessageViewModel)&&Y.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return Y};
sNu=function(){for(var Y=_.E(Object.values(_.quj)),G=Y.next();!G.done;G=Y.next())G=G.value,G.rLV&&G.u7u&&_.ZE("CATSTAT",_.BDj(2,G))};
_.vC=function(Y,G){Y=_.cC("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",Y);(G===void 0?0:G)?_.cqy(Y,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.UG().logFlowEvent(Y,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
vBa=function(){if(!Uhj){if(Polymer.Base){var Y=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{Y.apply(this,arguments)}catch(I){_.dc(I)}};
var G=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{G.apply(this,arguments)}catch(I){_.dc(I)}};
var u=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{u.apply(this,arguments)}catch(I){_.dc(I)}};
var O=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{O.apply(this,arguments)}catch(I){_.dc(I)}};
var Q=Polymer.Base._listen,M=new WeakMap;Polymer.Base._listen=function(I,k,n){var p=function(){try{n.apply(this,arguments)}catch(W){_.dc(W)}};
M.set(n,p);Q.call(this,I,k,p)};
var t=Polymer.Base._unlisten;Polymer.Base._unlisten=function(I,k,n){t.call(this,I,k,M.get(n))}}if(Polymer.Async){var K=Polymer.Async,L=K._atEndOfMicrotask;
K._atEndOfMicrotask=function(){try{L.apply(K,arguments)}catch(I){_.dc(I)}}}if(Polymer.RenderStatus){var g=Polymer.RenderStatus,P=g.afterNextRender;
g.afterNextRender=function(I,k,n){P.call(g,I,function(){try{k.apply(this,arguments)}catch(p){_.dc(p)}},n)}}Uhj=!0}};
_.Yij=function(Y){var G=Y?_.BI(Y):"";if(G){if(G.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(G.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(G.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(G.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(G.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.F("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(G.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";G=G.toLowerCase();if(G==="/")return"home";if(G==="/channel_memberships")return"channel-memberships-shopfront";if(G.indexOf("/feed/trending")===0)return"trending";if(G.indexOf("/feed/explore")===0)return"explore";if(G.indexOf("/live")===0)return"live";if(G.indexOf("/results")===0)return"search";if(G.indexOf("/sports")===0)return"sports";if(G.indexOf("/fashion")===0||G.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(G))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(G))return _.F("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(G.indexOf("/channel/")===0||G.indexOf("/user/")===0||G.indexOf("/gaming")===0||G.indexOf("/post/")===0)return"channel";if(Jqu(Y))return"show";if(G==="/playlist"||G.indexOf("/playlist/")===0||G==="/view_play_list"||G.indexOf("/view_play_list/")===0||G.indexOf("/show/")===0)return"playlist";if(G==="/companion_canvas")return"companion-canvas";if(G==="/feed/history"||
G.indexOf("/feed/history/")===0)return"history";if(G==="/new")return"labs";if(G==="/feed/subscriptions")return"subscriptions";if(G.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(G==="/history_controls")return"standalone";if(G.indexOf("/account")===0||G==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(G.indexOf("/paid_memberships")===0||G.indexOf("/refund")===0||G.indexOf("/purchases")===0||G.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(G.indexOf("/product")===
0)return"yts-products";if(G.indexOf("/premium")===0||G.indexOf("/musicpremium")===0)return G.indexOf("/premium/offers")===0||G.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(G==="/cart/checkout"||G==="/cart")return"ypc-checkout";if(G.indexOf("/reporthistory")===0)return _.F("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(G.indexOf("/feed/downloads")===0||G.indexOf("/redeem")===0)return"browse";if(G.indexOf("/hashtag")===0)return"hashtag-landing-page";if(G.indexOf("/handle")===
0)return"handle";if(G.indexOf("/source")===0)return"audio-pivot";if(G.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(G.indexOf("/playables")===0)return"playables";if(G.indexOf("/create/live/join")===0)return"open-in-app";if(G.indexOf("/shorts")===0)return"shorts";if(G.indexOf("/feed/channels")===0)return"subscriptions-channels";var u=Y?_.BI(Y):"";u&&u.indexOf("/watch")===0&&_.F("web_watch_enable_learning_journey")?(Y=_.li(Y),Y=!!Y.list&&Y.list.indexOf("LJPP")===0):Y=!1;if(Y)return"learning_journey_watch";
if(_.F("enable_new_page_subtypes_for_ai_companion")&&G==="/feed/courses")return"your-courses"}};
_.JH=function(Y){var G,u;(Y=(u=_.z(Y==null?void 0:Y.commandMetadata,_.ug))==null?void 0:u.url)&&(G=_.Yij(Y));return G};
Jqu=function(Y){var G=Y?_.BI(Y):"";if(!G)return!1;G=G.toLowerCase();return G.indexOf("/show/")===0||G.indexOf("/playlist")===0&&(Y=_.li(Y),Y.list&&Y.list.indexOf("EL")===0)?!0:!1};
u0=function(Y){var G="unknown",u;var O=((u=_.z(Y==null?void 0:Y.commandMetadata,_.ug))==null?void 0:u.webPageType)||"";O?(u=O.toLowerCase(),u.startsWith("web_page_type_")&&(u=u.slice(14))):u=O;u&&GT4[u.toUpperCase()]?G=GT4[u.toUpperCase()]:_.z(Y,_.Y3)||_.z(Y,uFa)?G="browse":_.z(Y,_.GA)?G="search":_.z(Y,_.ic)&&(G="watch");G==="watch"&&_.JH(Y||null)==="learning_journey_watch"&&(G="learning_journey_watch");G==="unknown"&&_.R0(Error("Uf`"+JSON.stringify({clickTrackingParams:Y==null?void 0:Y.clickTrackingParams,
commandMetadata:Y==null?void 0:Y.commandMetadata,allEndpointKeys:Object.keys(Y||[])})));return G};
_.Ob=function(Y){if(!_.O0Y||Y)_.O0Y=_.QF();return _.O0Y};
_.QYA=function(Y){return!!_.z(Y,_.ic)||!!_.z(Y,_.Qa)&&_.F("kevlar_enable_shorts_prefetch")};
_.MPI=function(Y,G){Y=_.z(Y,_.ic)||_.z(Y,_.Qa);return"v"+Y.videoId+(Y.playlistId?"-pl"+Y.playlistId:"")+(G?"-an1":"")+(Y.params?"-pr"+Y.params:"")};
_.H0Y=function(Y){var G=new M7(_.DE("ONE_PICK_URL",""));G.urlParamMap_.set("hostId",Y);(Y=_.DE("GAPI_LOCALE"))&&G.urlParamMap_.set("hl",Y);(Y=_.DE("SESSION_INDEX"))&&G.urlParamMap_.set("authuser",Y);(Y=_.DE("DELEGATED_SESSION_ID"))&&G.urlParamMap_.set("groupId",Y);return G};
tPT=function(){var Y=_.sH(),G=Y.resolve(_.Hm);Y=Y.resolve(_.KB);return new EQA(G,Y)};
aly=function(Y){if(window.IntersectionObserver)return new KoT(Y,400);throw new TypeError("Wf");};
Lo4=function(){var Y=Hammer.TouchAction,G=Y.prototype.preventDefaults;Y.prototype.preventDefaults=function(u){var O=this.actions.indexOf("pan-down")>-1;if(!O)return G.call(this,u);if(!T7g){var Q=u.srcEvent;u=u.direction;var M;if((M=this.manager)==null?0:M.session.prevented)Q.preventDefault();else if(O&&u&Hammer.DIRECTION_DOWN)return this.preventSrc(Q)}}};
gQI=function(Y){if(!Y||Y.size===0)return Hammer.DIRECTION_ALL;if(Y.size===2){if(Y.has("up")&&Y.has("down"))return Hammer.DIRECTION_VERTICAL;if(Y.has("right")&&Y.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(Y.size===1){if(Y.has("up"))return Hammer.DIRECTION_UP;if(Y.has("down"))return Hammer.DIRECTION_DOWN;if(Y.has("right"))return Hammer.DIRECTION_RIGHT;if(Y.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.TA=function(Y,G,u){var O=u&&u>0?u:0;u=O?Date.now()+O*1E3:0;if((O=O?_.a$.getLocalStorage():_.a$.getSessionStorage())&&window.JSON){typeof G!=="string"&&(G=JSON.stringify(G,void 0));try{O.set(Y,G,u)}catch(Q){O.remove(Y)}}};
_.LB=function(Y){var G=_.a$.getSessionStorage(),u=_.a$.getLocalStorage();if(!G&&!u||!window.JSON)return null;try{var O=G.get(Y)}catch(Q){}if(typeof O!=="string")try{O=u.get(Y)}catch(Q){}if(typeof O!=="string")return null;try{O=JSON.parse(O,void 0)}catch(Q){}return O};
_.gG=function(Y){try{var G=_.a$.getSessionStorage(),u=_.a$.getLocalStorage();G&&G.remove(Y);u&&u.remove(Y)}catch(O){}};
PYT=function(Y){var G=XAA(),u;return _.a(function(O){switch(O.nextAddress){case 1:return _.i3(O,2),O.yield(Y.match(G,{cacheName:"yt-appshell-assets"}),4);case 4:u=O.yieldResult;_.j1(O,3);break;case 2:_.b3(O);case 3:return O.return(u)}})};
XAA=function(){var Y=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?Ilj.registration.scope:kTg;Y.endsWith("/")&&(Y=Y.slice(0,-1));return Y+"/app_shell_home"};
nQI=function(Y){Y.map(function(G){return G.source}).join("|")};
_.Foy=function(Y){return _.a(function(G){return G.return(PYT(Y))})};
pA1=function(){var Y=window.caches,G;return _.a(function(u){if(u.nextAddress==1)return u.yield(_.Foy(Y),2);G=u.yieldResult;return u.return(!!G)})};
CYY=function(){_.a(function(Y){if(Y.nextAddress==1){if(zdT)return Y.jumpTo(0);zdT=!0;if(_.F("enable_system_health_primes_monitoring"))return _.HK(mwA,3E4),Wot(),Y.return();if(!(Math.random()<_.Jy("web_system_health_fraction")))return Y.jumpTo(0);rSt={heightPixels:screen.height,widthPixels:screen.width};XE&&!isNaN(XE.jsHeapSizeLimit)&&(rSt.memoryTotalKbytes=String(Math.round(XE.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(rSt.devicePixelRatio=window.devicePixelRatio);return Y.yield(xwa(),4)}_.HK(mwA,
3E4);return Y.yield(flj(),0)})};
xwa=function(){return _.a(function(Y){if(Y.nextAddress==1)return Pm.intersectionObserverPresent="IntersectionObserver"in window,Pm.serviceWorkerPresent="serviceWorker"in navigator,Pm.webSharePresent="share"in navigator,Pm.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Pm.cacheStoragePresent="caches"in window,Pm.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Pm.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Pm.webkitTemporaryStoragePresent="webkitTemporaryStorage"in I$&&I$.webkitTemporaryStorage&&"queryUsageAndQuota"in I$.webkitTemporaryStorage,Pm.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",Y.yield(siA(),2);Pm.indexedDbPresent=Y.yieldResult;Pm.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Pm.broadcastChannelPresent="BroadcastChannel"in window;Pm.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Pm.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Pm.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Sd(Y)})};
mwA=function(){var Y=9E4+Math.random()*2E3;_.Y7()>Y||(_.F("enable_system_health_primes_monitoring")?Wot():flj())};
flj=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield(ySt(),2);Y=G.yieldResult;_.eK("systemHealthCaptured",Y);_.Sd(G)})};
Wot=function(){var Y={metric:{}},G=ed4();G.networkEvents.length&&(Y.metric.networkEvents=ASy(G));_.eK("systemHealthCaptured",Y)};
ySt=function(){var Y,G,u,O,Q,M,t,K,L,g;return _.a(function(P){switch(P.nextAddress){case 1:Y={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)};G=window.screen;_.F("enable_is_extended_monitoring")&&G&&"isExtended"in G&&(Y.isExtended=!!G.isExtended);u={metric:{staticContext:rSt,dynamicContext:Y,webMetric:oQa,webApiSupport:Pm}};
if(O=_.FA())u.csn=O;XE&&(u.metric.webMetric.currentHeapKbytes=Math.round(XE.usedJSHeapSize/1E3));window.matchMedia&&(u.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,u.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,u.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in I$&&typeof I$.getBattery==="function")){P.jumpTo(2);break}return P.yield(I$.getBattery(),3);case 3:if(Q=
P.yieldResult)u.metric.dynamicContext.chargingStatus=Q.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(u.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Pm.storageEstimatePresent)return P.yield(navigator.storage.estimate(),8);if(!Pm.webkitTemporaryStoragePresent){P.jumpTo(5);break}return P.yield(i0g(),7);case 7:M=P.yieldResult;P.jumpTo(5);break;case 8:M=P.yieldResult;case 5:return u.metric.dynamicContext.deviceStorageQuotaMbytes=((t=M)==null?0:t.quota)?String(Math.round(M.quota/
1048576/10)*10):"-1",u.metric.dynamicContext.deviceStorageUsageMbytes=((K=M)==null?0:K.usage)?String(Math.round(M.usage/1048576/10)*10):"-1",L=u.metric.dynamicContext,P.yield(pA1(),9);case 9:return L.hasAppShell=P.yieldResult,g=ed4(),g.networkEvents.length&&(u.metric.networkEvents=ASy(g)),P.return(u)}})};
i0g=function(){return new Promise(function(Y){var G;Pm.webkitTemporaryStoragePresent&&(G=I$.webkitTemporaryStorage)!=null&&G.queryUsageAndQuota?I$.webkitTemporaryStorage.queryUsageAndQuota(function(u,O){Y({usage:u,quota:O})}):Y(void 0)})};
_.k3=function(Y){Y&=16777215;Y=[(Y&16711680)>>16,(Y&65280)>>8,Y&255];return cmg(Y[0],Y[1],Y[2])};
_.nB=function(Y){Y=[(Y&16711680)>>>16,(Y&65280)>>>8,Y&255,(Y&4278190080)>>>24];if(!_.Rdg(Y,function(G){return G===(G&255)}))throw Error("Xf`"+Y.join(","));
return"rgba("+Y[0]+","+Y[1]+","+Y[2]+","+(Y[3]/255).toFixed(3)+")"};
_.wAj=function(Y){return[(Y&16711680)>>>16,(Y&65280)>>>8,Y&255]};
_.Z0I=function(Y){Y=Y.map(function(G){G/=255;return G<=.03928?G/12.92:Math.pow((G+.05)/1.05,2.4)});
return Y[0]*.2126+Y[1]*.7152+Y[2]*.0722};
FE=function(Y,G){Y=_.wAj(Y);return"rgba("+Y[0]+", "+Y[1]+", "+Y[2]+", "+G+")"};
pB=function(Y){return(Y&4278190080)>>>24===0?FE(Y,"1"):_.nB(Y)};
_.DwT=function(){try{return!!self.localStorage}catch(Y){return!1}};
Sit=function(){if(hdt())_.R0(Error("Yf"));else{var Y=document.createElement("iframe");Y.style.display="none";var G=G===void 0?window.location.href:G;var u=_.ow(_.DE("PERSIST_IDENTITY_IFRAME_URL"));G=u?u:(new URL(G)).host.indexOf("studio")===0?_.fO(dw1,"persist_identity"):_.fO(b0y,"persist_identity");_.t0(Y,1,G);Y.id="persist_identity";var O;(O=document.body)==null||O.appendChild(Y)}};
hdt=function(){var Y=N74;Y||(Y=document.querySelector("#persist_identity"));return Y};
jYt=function(){var Y=!1;try{Y=!!window.sessionStorage.getItem("session_logininfo")}catch(G){Y=!0}return(_.DE("INNERTUBE_CLIENT_NAME")==="WEB"||_.DE("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&Y};
VPT=function(Y,G){if(!jYt())return!1;G||(G=_.DE("LOGIN_INFO"));return G?(Y.session_logininfo=G,!0):!1};
B7g=function(Y,G){Y=Y===void 0?!1:Y;if((G===void 0||!G)&&llA!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.hy("LOG_STICKINESS",!1)){G=_.FA();var u=_.nX(),O={identityStickinessData:{initialState:llA}};G&&u&&_.Zy(G,u,O)}if(G=hdt())if(u=G.src?(new URL(G.src)).origin:"*",Y){var Q;(Q=G.contentWindow)==null||Q.postMessage({action:"clear"},u)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(Y=window.sessionStorage.getItem("session_logininfo"))){var M;(M=G.contentWindow)==null||M.postMessage({loginInfo:Y},u)}};
_.zA=function(Y){Y=Y===void 0?!0:Y;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.ZE("LOGIN_INFO",""),Y&&window.sessionStorage.setItem("from_switch_account","1"),B7g(!0,Y)}catch(G){}};
$wj=function(Y){Y&&(Y.startsWith("https://accounts.google.com/AddSession")?_.zA():Y.startsWith("https://accounts.google.com/ServiceLogin")?_.zA():Y.startsWith("https://myaccount.google.com")&&_.bI(Y).getPath().endsWith("/youtubeoptions")&&_.zA())};
mw=function(Y,G){$wj(Y);if(_.hy("LOGGED_IN",!0)&&jYt()){var u=UQj(Y);u==null&&(u={});VPT(u,G)&&_.hv(Y,u)}};
qiy=function(){function Y(G){for(G=G.target;G&&G.nodeName!=="A";)if(G=G.parentNode,!(G&&G instanceof HTMLElement))return;if(G&&!G.hasAttribute("download")&&G.getAttribute("rel")!=="external"&&G.href)return G.href}
document.addEventListener("mousedown",function(G){G.button!==0&&(G=Y(G))&&mw(G)});
document.addEventListener("click",function(G){(G=Y(G))&&mw(G)})};
Uwg=function(){var Y=new sYT;try{if(_.hy("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(K){Y.increment(5,!1);return}if(_.DE("LOGIN_INFO")){var G=cSa?cSa:window.location;_.DE("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Sit();var u=UQj(G.href);u==null&&(u={});var O=u.session_logininfo,Q=Number(window.sessionStorage.getItem("stickiness_reload")),M=O===_.DE("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
Q>=2||M)Q>=2?Y.increment(2,M):M?Y.increment(7,M):window.sessionStorage.getItem("session_logininfo")||(Y.increment(3,M),llA="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.DE("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.DE("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))Y.increment(4,M),window.sessionStorage.removeItem("stickiness_reload");
else if(Q<2){window.sessionStorage.setItem("stickiness_reload",String(Q+1));var t=G.href;t=_.ud(t,"sttick");mw(t,window.sessionStorage.getItem("session_logininfo"));t=_.B4(t,{sttick:Q});Y.increment(Q,M);_.w8U(G,t)}}else Y.increment(6,!1)}else _.zA(!1)}catch(K){}};
_.Wm=function(Y,G,u,O,Q){G=G===void 0?{}:G;u=u===void 0?"":u;O=O===void 0?window:O;Y=_.JD(Y,G);mw(Y);u=_.cs(Y+u,Q);_.w8U(O.location,u)};
vQU=function(Y){if(Y.urlEndpoint){if(Y=_.li(Y.urlEndpoint.url),Y.adurl)return cI(Y.adurl)}else if(Y.watchEndpoint)return"//www.youtube.com/watch?v="+Y.watchEndpoint.videoId;return null};
JSA=function(Y){if(!Y||!Y.reportingPings)return null;var G={};Y.reportingPings.forEach(function(u){u.pingType in G?G[u.pingType].push(u.url):G[u.pingType]=[u.url]});
return{adpings:zSa(G)}};
_.x3=function(Y){Y=Y===void 0?!1:Y;var G=_.EU(),u="USER_INTERFACE_THEME_LIGHT";G.getFlag(165)?u="USER_INTERFACE_THEME_DARK":G.getFlag(174)?u="USER_INTERFACE_THEME_LIGHT":_.rG()&&(u="USER_INTERFACE_THEME_DARK");return Y?u:YPA()||u};
_.GsT=function(){return!_.F("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.rG=function(){return _.GsT()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.fB=function(){var Y=_.EU();return _.GsT()&&!Y.getFlag(165)&&!Y.getFlag(174)};
YPA=function(){var Y=Y===void 0?window.location.href:Y;if(_.F("kevlar_disable_theme_param"))return null;var G=_.BI(Y);if(_.uTY(G))return"USER_INTERFACE_THEME_DARK";try{var u=_.li(Y).theme;return Opj.get(u)||null}catch(O){}return null};
_.uTY=function(Y){return _.F("enable_dark_theme_only_on_shorts")?!(Y==null||!Y.startsWith("/shorts/")):!1};
_.el=function(Y,G,u,O,Q){G=G===void 0?!1:G;u=u===void 0?!1:u;var M=_.DE("INNERTUBE_CONTEXT");if(!M)return _.o0(Error("bg")),{};M=(0,_.gX.unsafeClone)(M);_.F("web_no_tracking_params_in_shell_killswitch")||delete M.clickTracking;M.client||(M.client={});var t=M.client;t.clientName==="MWEB"&&t.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(t.clientFormFactor=_.DE("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");t.screenWidthPoints=window.innerWidth;t.screenHeightPoints=window.innerHeight;t.screenPixelDensity=
Math.round(window.devicePixelRatio||1);t.screenDensityFloat=window.devicePixelRatio||1;t.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());t.userInterfaceTheme=_.x3();if(!G){var K=_.IsA();K&&(t.connectionType=K);_.F("web_log_effective_connection_type")&&(K=nG4())&&(M.client.effectiveConnectionType=K)}var L;if(_.F("web_log_memory_total_kbytes")&&((L=_.OI.navigator)==null?0:L.deviceMemory)){var g;L=(g=_.OI.navigator)==null?void 0:g.deviceMemory;M.client.memoryTotalKbytes=""+L*1E6}G&&O&&!_.F("web_it_context_set_original_url_ks")&&
(t.originalUrl=QbI(_.OI.location.href,O).toString());_.F("web_gcf_hashes_innertube")&&(K=em4())&&(g=K.coldConfigData,L=K.coldHashData,K=K.hotHashData,M.client.configInfo=M.client.configInfo||{},g&&(M.client.configInfo.coldConfigData=g),L&&(M.client.configInfo.coldHashData=L),K&&(M.client.configInfo.hotHashData=K));g=_.li(_.OI.location.href);!_.F("web_populate_internal_geo_killswitch")&&g.internalcountrycode&&(t.internalGeo=g.internalcountrycode);!_.F("web_populate_client_screen_killswitch")&&Q&&(t.clientScreen=
Q);t.clientName==="MWEB"||t.clientName==="WEB"?(t.mainAppWebInfo||(t.mainAppWebInfo={}),t.mainAppWebInfo.graftUrl=O||_.OI.location.href,_.F("kevlar_woffle")&&_.CB.instance&&(O=_.CB.instance,t.mainAppWebInfo.pwaInstallabilityStatus=!O.appInstalledEventFired&&O.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),t.mainAppWebInfo.webDisplayMode=zmA(),t.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):t.clientName==="TVHTML5"&&
(!_.F("web_lr_app_quality_killswitch")&&(O=_.DE("LIVING_ROOM_APP_QUALITY"))&&(t.tvAppInfo=Object.assign(t.tvAppInfo||{},{appQuality:O})),O=_.DE("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(t.tvAppInfo=Object.assign(t.tvAppInfo||{},{certificationScope:O}));!_.F("web_populate_time_zone_itc_killswitch")&&(O=XC4())&&(t.timeZone=O);(O=w2a())?t.experimentsToken=O:delete t.experimentsToken;t=ZQ1();O=_.M44();O=(0,_.gX.getValues)(O.tokenJars);M.request=Object.assign({},M.request,{internalExperimentFlags:t,consistencyTokenJars:O});
!_.F("web_prequest_context_killswitch")&&(t=_.DE("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(M.request.externalPrequestContext=t);O=_.EU();t=O.getFlag(58);O=O.get("gsml","");M.user=Object.assign({},M.user);t&&(M.user.enableSafetyMode=t);O&&(M.user.lockedSafetyMode=!0);_.F("warm_op_csn_cleanup")?u&&(G=_.FA())&&(M.clientScreenNonce=G):!G&&(G=_.FA())&&(M.clientScreenNonce=G);Y&&(M.clickTracking={clickTrackingParams:Y});if(Y=_.So("yt.mdx.remote.remoteClient_"))M.remoteClient=Y;_.ya.getInstance().setLocationOnInnerTubeContext(M);
try{var P=BSt(),I=P.bid;delete P.bid;M.adSignalsInfo={params:[],bid:I};for(var k=_.E(Object.entries(P)),n=k.next();!n.done;n=k.next()){var p=_.E(n.value),W=p.next().value,C=p.next().value;P=W;I=C;Y=void 0;(Y=M.adSignalsInfo.params)==null||Y.push({key:P,value:""+I})}var e,w;if(((e=M.client)==null?void 0:e.clientName)==="TVHTML5"||((w=M.client)==null?void 0:w.clientName)==="TVHTML5_UNPLUGGED"){var B=_.DE("INNERTUBE_CONTEXT");B.adSignalsInfo&&(M.adSignalsInfo.advertisingId=B.adSignalsInfo.advertisingId,
M.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",M.adSignalsInfo.limitAdTracking=B.adSignalsInfo.limitAdTracking)}}catch(N){_.o0(N)}return M};
_.Ah=function(){return{isShellLoad:_.hy("IS_SHELL_LOAD",!1)}};
EJA=function(){navigator.serviceWorker.getRegistrations().then(function(Y){Y.forEach(HpY)})};
HpY=function(Y){Y&&_.t4A(KpY,Y.scope)};
_.t4A=function(Y,G){G={scope:G||_.Yg("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.bs(Y),G)};
o$=function(Y,G,u,O){if(G&&G.serializedYpcCujLoggingParams){if(u){var Q={};Q.transactionErrorType=u;O&&(Q.errorMessage=O);G.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:Q}}}u={};u.ypcCujContext=G;Y=_.cC("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",Y,u);_.UG().logFlowEvent(Y,"FLOW_TYPE_YPC_ACQUISITION")}};
_.a5A=function(Y,G,u,O){var Q={};Q.serializedTransactionFlowLoggingParams=G;u&&(Q.errorType=u);O&&(Q.errorMessage=O);_.eK(Y,Q);_.A1()};
_.T9I=function(Y){Y&&_.a5A("transactionFlowStarted",Y)};
_.Lpj=function(Y){Y&&_.a5A("transactionFlowCancelled",Y)};
_.i0=function(Y,G,u){G&&_.a5A("transactionFlowFailed",G,Y,u)};
gJt=function(Y){var G=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");G&&(G.inert=Y)};
_.R$=function(){this.megabloxUrl_=null};
_.wG=function(Y){try{var G=Xzt==null?void 0:Xzt.composedPath(Y)}catch(u){G=Y.composedPath?Y.composedPath():[]}return G&&G.length>0?G:Y.composedPath?Y.composedPath():[]};
_.Zb=function(Y){return _.wG(Y)[0]};
Db=function(Y){return Y instanceof ShadowRoot?ShadowRoot:Y instanceof DocumentFragment?DocumentFragment:Y instanceof Document?Document:HTMLElement};
PRg=function(Y){if(Y instanceof Element)return Element.prototype;if(Y instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("fg`"+Y);};
I5a=function(Y,G){return _.F("sunnydom_native_scoped_query_selectors")?PRg(Y).querySelector.call(Y,G):Db(Y).prototype.querySelector.call(Y,G)};
ksj=function(Y,G){return _.F("sunnydom_native_scoped_query_selectors")?PRg(Y).querySelectorAll.call(Y,G):Db(Y).prototype.querySelectorAll.call(Y,G)};
nJY=function(Y){var G,u,O;return(O=(u=(G=Y.parentElement)!=null?G:Y.__shady_native_parentElement)!=null?u:Y.__shady_parentElement)!=null?O:null};
Fpt=function(Y){var G,u,O;return(O=(u=(G=Y.parentNode)!=null?G:Y.__shady_native_parentNode)!=null?u:Y.__shady_parentNode)!=null?O:null};
pzt=function(Y){var G,u,O;return(O=(u=(G=Y.nextSibling)!=null?G:Y.__shady_native_nextSibling)!=null?u:Y.__shady_nextSibling)!=null?O:null};
zOI=function(Y){var G,u,O;return(O=(u=(G=Y.previousSibling)!=null?G:Y.__shady_native_previousSibling)!=null?u:Y.__shady_previousSibling)!=null?O:null};
mXg=function(Y){var G,u,O;return(O=(u=(G=Y.nextElementSibling)!=null?G:Y.__shady_native_nextElementSibling)!=null?u:Y.__shady_nextElementSibling)!=null?O:null};
Wpy=function(Y){var G,u,O;return(O=(u=(G=Y.previousElementSibling)!=null?G:Y.__shady_native_previousElementSibling)!=null?u:Y.__shady_previousElementSibling)!=null?O:null};
rp1=function(Y){var G,u,O;return new Set([].concat(_.c8((G=Y.children)!=null?G:[]),_.c8((u=Y.__shady_native_children)!=null?u:[]),_.c8((O=Y.__shady_children)!=null?O:[])))};
xXU=function(Y){var G,u,O;return new Set([].concat(_.c8((G=Y.childNodes)!=null?G:[]),_.c8((u=Y.__shady_native_childNodes)!=null?u:[]),_.c8((O=Y.__shady_childNodes)!=null?O:[])))};
_.hh=function(Y){if(!(Y instanceof Element))return null;Y=Y.classList?Array.from(Y.classList):void 0;if(!Y)return null;var G=Y.indexOf("style-scope");return G>-1&&G+1<Y.length?Y[G+1]:null};
dG=function(Y){if(!(Y instanceof HTMLElement))return null;var G=Y&&(Y.$$||Y.polymerController)?Y.tagName.toLowerCase():null;return G?G:_.hh(Y)};
f5y=function(Y,G){return _.F("sunnydom_native_scoped_query_selectors")?Y+".style-scope."+G:Y.replace(/[^a-z]*[^\s]+/g,function(u){return u+".style-scope."+G})};
CRY=function(Y,G){return G?Y.split(",").map(function(u){return f5y(u.trim(),G)}).join(", "):Y};
_.b0=function(Y){var G,u,O,Q;return(Q=(O=(u=(G=Y.root)!=null?G:Y.shadowRoot)!=null?u:Y.__shady_native_shadowRoot)!=null?O:Y.__shady_shadowRoot)!=null?Q:Y};
ypg=function(Y){var G,u,O;return(O=(u=(G=Y.__shady_parentNode)!=null?G:Y.__shady_native_parentNode)!=null?u:Y.parentNode)!=null?O:null};
eOA=function(Y){var G,u;return(u=(G=Fpt(Y))!=null?G:Y.host)!=null?u:null};
Apj=function(Y){for(;Y&&!(Y instanceof HTMLElement);)Y=eOA(Y);return Y};
oJT=function(Y){var G=Apj(Y);return Y===G?_.hh(Y):G?dG(G):null};
ipA=function(Y){return(Y=Apj(Y))?dG(Y):null};
ROt=function(Y){if(Y instanceof Comment)return!1;if(Y instanceof Text){var G,u;if(((u=(G=Y.textContent)==null?void 0:G.trim())!=null?u:"")==="")return!1}return!0};
Sl=function(Y,G,u){var O=G(Y);for(u=u===void 0?ipA(Y):u;O&&(oJT(O)!==u||!ROt(O));)Y=O,O=G(Y);return O};
wzA=function(Y,G,u){if(!G)return null;Y=ipA(Y);return oJT(G)===Y&&ROt(G)?G:Sl(G,u,Y)};
Zp1=function(Y){return Sl(Y,ypg,_.hh(Y))};
DXa=function(Y){return Sl(Y,mXg)};
hO1=function(Y){return Sl(Y,pzt)};
dXA=function(Y){return Sl(Y,Wpy)};
bpA=function(Y){return Sl(Y,zOI)};
SPA=function(Y){return wzA(Y,Y.firstChild||null,pzt)};
N9U=function(Y){var G,u,O;var Q=(O=(u=(G=Y.firstElementChild)!=null?G:Y.__shady_native_firstElementChild)!=null?u:Y.__shady_firstElementChild)!=null?O:null;return wzA(Y,Q,mXg)};
jba=function(Y){var G,u,O;var Q=(O=(u=(G=Y.lastChild)!=null?G:Y.__shady_native_lastChild)!=null?u:Y.__shady_lastChild)!=null?O:null;return wzA(Y,Q,zOI)};
V4j=function(Y){var G,u,O;var Q=(O=(u=(G=Y.lastElementChild)!=null?G:Y.__shady_native_lastElementChild)!=null?u:Y.__shady_lastElementChild)!=null?O:null;return wzA(Y,Q,Wpy)};
l5T=function(Y){var G=ipA(Y);return Array.from(xXU(Y)).filter(function(u){return oJT(u)===G})};
B9g=function(Y){var G=dG(Y);return Array.from(rp1(Y)).filter(function(u){return _.hh(u)===G})};
$Xt=function(Y){if(!Y)return null;var G=_.hh(Y);if(!G){var u;return(u=Node.prototype.getRootNode)==null?void 0:u.call(Y)}G=G.toUpperCase();for(Y=nJY(Y);Y&&Y.tagName!==G;)Y=nJY(Y);return Y?_.b0(Y):null};
_.N7=function(Y,G,u){if(Y instanceof HTMLElement&&_.hh(Y)===u){var O=Array.from(Y.classList).indexOf("style-scope");if(O===-1)Y.classList.add("style-scope"),Y.classList.add(G);else if(!(O+1>=Y.classList.length)){O=Y.classList[O+1];var Q,M;Y==null||(Q=Y.classList)==null||(M=Q.replace)==null||M.call(Q,O,G)}}if(Y instanceof HTMLElement||Y instanceof DocumentFragment)for(Q=_.E(rp1(Y)),M=Q.next();!M.done;M=Q.next())_.N7(M.value,G,u);return Y};
jl=function(Y,G){if(Y instanceof HTMLElement&&_.hh(Y)===G){var u=Array.from(Y.classList).indexOf("style-scope");u===-1||u+1>=Y.classList.length||Y.classList.remove("style-scope",Y.classList[u+1])}if(Y instanceof HTMLElement||Y instanceof DocumentFragment){u=_.E(Y.children);for(var O=u.next();!O.done;O=u.next())jl(O.value,G)}return Y};
_.qPj=function(Y,G){return Db(Y).prototype.appendChild.call(Y,G)};
sbA=function(Y,G){if(Y===G)return!0;Y=xXU(Y);return Array.from(Y).some(function(u){return sbA(u,G)})};
_.l0=function(Y,G){if(Y instanceof Va)return Y;(G==null?0:G.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(Y,"ownerDocument")&&Object.defineProperty(Y,"ownerDocument",{get:function(){return window.document}});
return new Va(Y)};
UXu=function(){var Y=Va.prototype,G=[].concat(_.c8(cp1?[]:["getRootNode"]),["setAttribute","removeAttribute"]);G=_.E(G);for(var u=G.next(),O={};!u.done;O={method$jscomp$53:void 0},u=G.next())O.method$jscomp$53=u.value,Y[O.method$jscomp$53]=function(Q){return function(){return this.host[Q.method$jscomp$53].apply(this.host,arguments)}}(O)};
JpT=function(){var Y=Va.prototype,G=[].concat(_.c8(cp1?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.c8(vJU?[]:["querySelector","querySelectorAll"]));G=_.E(G);for(var u=G.next(),O={};!u.done;O={method$jscomp$54:void 0},u=G.next())O.method$jscomp$54=u.value,Y[O.method$jscomp$54]=function(Q){return function(){return this.root[Q.method$jscomp$54].apply(this.root,arguments)}}(O)};
urj=function(){var Y=Va.prototype,G=[].concat(_.c8(YpI?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.c8(G7T?[]:["parentNode"]));G=_.E(G);for(var u=G.next(),O={};!u.done;O={prop$jscomp$67:void 0},u=G.next())O.prop$jscomp$67=u.value,Object.defineProperty(Y,O.prop$jscomp$67,{get:function(Q){return function(){return this.host[Q.prop$jscomp$67]}}(O),
configurable:!0})};
Mfj=function(){var Y=Va.prototype,G=["activeElement"].concat(_.c8(YpI?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.c8(OoU?[]:["children"]),_.c8(Qkg?[]:["lastChild"]));G=_.E(G);for(var u=G.next(),O={};!u.done;O={prop$jscomp$68:void 0},u=G.next())O.prop$jscomp$68=u.value,Object.defineProperty(Y,O.prop$jscomp$68,{get:function(Q){return function(){return this.root[Q.prop$jscomp$68]}}(O),
configurable:!0})};
Ho4=function(){for(var Y=Va.prototype,G=_.E(["innerHTML","textContent"]),u=G.next(),O={};!u.done;O={prop$jscomp$69:void 0},u=G.next())O.prop$jscomp$69=u.value,Object.defineProperty(Y,O.prop$jscomp$69,{get:function(Q){return function(){return this.root[Q.prop$jscomp$69]}}(O),
set:function(Q){return function(M){this.root[Q.prop$jscomp$69]=M}}(O),
configurable:!0})};
EzY=function(Y){var G=Va.prototype;Y=_.E(Object.entries(Y));for(var u=Y.next(),O={};!u.done;O={fn$jscomp$402:void 0},u=Y.next()){var Q=_.E(u.value);u=Q.next().value;Q=Q.next().value;O.fn$jscomp$402=Q;G[u]=function(M){return function(){return M.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.c8(arguments)))}}(O)}};
K8I=function(){for(var Y=Va.prototype,G=_.E(Object.entries(tfj)),u=G.next(),O={};!u.done;O={fn$jscomp$403:void 0},u=G.next()){var Q=_.E(u.value);u=Q.next().value;Q=Q.next().value;O.fn$jscomp$403=Q;Object.defineProperty(Y,u,{get:function(M){return function(){return M.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.c8(arguments)))}}(O),
configurable:!0})}};
_.Bm=function(Y){return Y instanceof adt||Y instanceof Document?Y:new adt(Y)};
TOI=function(){for(var Y=adt.prototype,G=_.E("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),u=G.next(),O={};!u.done;O={method$jscomp$55:void 0},u=G.next())O.method$jscomp$55=u.value,Y[O.method$jscomp$55]=function(Q){return function(){return HTMLElement.prototype[Q.method$jscomp$55].call.apply(HTMLElement.prototype[Q.method$jscomp$55],[this.node].concat(_.c8(arguments)))}}(O)};
L8a=function(){for(var Y=adt.prototype,G=_.E("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),u=G.next(),O={};!u.done;O={prop$jscomp$70:void 0},u=G.next())O.prop$jscomp$70=u.value,Object.defineProperty(Y,O.prop$jscomp$70,{get:function(Q){return function(){var M;return(M=this.node["__shady_native_"+Q.prop$jscomp$70])!=null?M:this.node[Q.prop$jscomp$70]}}(O),
configurable:!0})};
_.$3=function(Y,G,u){u===void 0&&(u=!Y.classList.contains(G));u?Y.classList.add(G):Y.classList.remove(G)};
_.q7=function(Y,G,u){u===void 0&&(u=!Y.hasAttribute(G));if(G==="class")throw Error("gg");u?_.Bm(Y).setAttribute(G,""):_.Bm(Y).removeAttribute(G)};
gzA=function(Y){return(Y.localName!=="slot"?[]:(0,_.sb)(Y).assignedNodes({flatten:!0})).filter(function(G){return G.nodeType===Node.ELEMENT_NODE})};
_.XWj=function(Y){return(Y=_.l0(Y).querySelector("slot"))&&Y.localName==="slot"?gzA(Y):[]};
_.cm=function(Y,G){window.ShadyCSS&&window.ShadyCSS.styleSubtree(Y,G)};
Ub=function(Y,G){var u=G.bind(Y);return function(O){u(O,O.detail)}};
_.Jh=function(Y,G){var u=PSa.get(Y);u||(u=new WeakMap,PSa.set(Y,u));if(u.has(G))return u.get(G);if(_.F("web_fi_listen_disable_bound_fn_helper")){var O=G.bind(Y);Y=function(Q){O(Q,Q==null?void 0:Q.detail)}}else Y=Ub(Y,G);
u.set(G,Y);return Y};
nzg=function(Y,G){Ida(Y);Y.created[k7A].push(G)};
Ida=function(Y){if(!Y.created||!Y.created[k7A]){var G=Y.created,u=G?[G]:[];Y.created=function(){for(var O=_.E(u),Q=O.next();!Q.done;Q=O.next())Q.value.apply(this)};
Y.created[k7A]=u}};
F8T=function(Y){return function(){var G=_.vs.apply(0,arguments);return function(u,O,Q){Y.apply(null,_.c8(G))(u,O,Q)}}};
pWA=function(){return function(){var Y=_.vs.apply(0,arguments);return function(G,u,O){buj.apply(null,_.c8(Y))(G,u,O)}}};
_.x=function(Y){return pWA()(Y)};
_.f=function(){return F8T(VqA).apply(null,_.c8(_.vs.apply(0,arguments)))};
_.Yo=function(Y){return _.F("pbcm_fi_listen_decorators")?zCI(Y):F8T(N04)(Y)};
zCI=function(Y){return function(G,u){nzg(G,function(){var O=this[u],Q=_.F("web_fi_listen_disable_bound_fn_helper")?function(M){O(M,M.detail)}.bind(this):Ub(this,O);
mJg.has(Y)?o3(this.hostElement,Y,Q):this.hostElement.addEventListener(Y,Q)})}};
_.GO=function(){return F8T(j9U).apply(null,_.c8(_.vs.apply(0,arguments)))};
_.R=function(Y){Y=Y===void 0?{}:Y;return F8T(SSt)(Y)};
_.uM=function(Y){if(Y.hostElement&&Y!==Y.hostElement){var G=_.ax(Y.hostElement);G=Y.renderIdom?G:G.shadowRoot}G||(Y=Y.root,G=Y instanceof Node?_.ax(Y):null);return G};
_.Ox=function(Y){return W8A?rQT(Y):function(G,u){Object.defineProperty(G,u,{get:function(){var O;return(O=_.uM(this))==null?void 0:O.querySelector(Y)},
enumerable:!0,configurable:!0})}};
rQT=function(Y){return function(G,u){Object.defineProperty(G,u,{get:function(){var O,Q=(O=_.l0(this.hostElement))==null?void 0:O.querySelector(Y);if(Q)return Q;var M;return(M=_.uM(this))==null?void 0:M.querySelector(Y)},
enumerable:!0,configurable:!0})}};
_.Q4=function(Y){return W8A?xJg(Y):function(G,u){Object.defineProperty(G,u,{get:function(){var O;return(O=_.uM(this))==null?void 0:O.querySelectorAll(Y)},
enumerable:!0,configurable:!0})}};
xJg=function(Y){return function(G,u){Object.defineProperty(G,u,{get:function(){var O,Q=(O=_.l0(this.hostElement))==null?void 0:O.querySelectorAll(Y);if(Q==null?0:Q.length)return Q;var M;return(M=_.uM(this))==null?void 0:M.querySelectorAll(Y)},
enumerable:!0,configurable:!0})}};
fdg=function(Y){return function(G){if(![_.vD,_.Z].includes(Object.getPrototypeOf(G.prototype).constructor))throw Error("hg");oSt(Object.assign({},typeof Y!=="string"?Y:{is:Y,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(G)}};
_.Hn=function(){var Y=Y===void 0?{}:Y;return function(G){if(![JG,_.Mb].includes(Object.getPrototypeOf(G.prototype).constructor))throw Error("ig");iug(Object.assign({},Y,{disableInheritanceCheck:!0}))(G)}};
yQt=function(Y,G){CSj[Y]!=null||(CSj[Y]=new Set);CSj[Y].add(G)};
_.Ex=function(){var Y=_.GO.apply(null,_.c8(_.vs.apply(0,arguments)));return function(G,u){yQt(G.is,u);Y(G,u)}};
a4=function(Y,G,u){if(tj(Y)&&!eCT.has(G)){G=G.replace(/^JSC\$[\d]+_/,"");G=G.replace(/\.\d+(\.|$)/g,function(M,t){return".#"+t});
KD[Y]!=null||(KD[Y]={});var O,Q;(O=KD[Y])[Q=G]!=null||(O[Q]=new Set);KD[Y][G].has(u)||(KD[Y][G].add(u),_.eK("polymerPropertyAccessEvent",{componentName:Y,propertyName:G,accessType:u}))}};
AQY=function(){return _.F("polymer_property_access_logging_debug")||_.F("polymer_enable_property_access_logging")};
tj=function(Y){if(_.F("polymer_property_access_logging_debug"))return!0;if(!_.F("polymer_enable_property_access_logging"))return!1;ozA||(ozA=Date.now());return(CX(Y)+ozA)%100<_.Jy("polymer_property_access_logging_percent")};
ioA=function(Y,G){return tj(G)&&Y.hostElement.loggingStatus?new Proxy(Y,{get:function(u,O,Q){if(u.hostElement.loggingStatus.bypassProxyController)return u[O];u.hostElement.loggingStatus.isExternalGet=!0;var M=u[O];u.hostElement.loggingStatus.isExternalGet=!1;if(M instanceof Function)return function(){var t=_.vs.apply(0,arguments);try{return u.hostElement.loggingStatus.currentExternalCall=O,a4(G,O,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),M.apply(this===Q?u:this,t)}finally{u.hostElement.loggingStatus.currentExternalCall=
void 0}};
a4(G,O,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return M},
set:function(u,O,Q){if(u.hostElement.loggingStatus.bypassProxyController)return u[O]=Q,!0;u.hostElement.loggingStatus.isRendererStamper?a4(G,O,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):u.hostElement.loggingStatus.isDeclarativeExternal||a4(G,O,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{u.hostElement.loggingStatus.currentExternalSet=O,u[O]=Q}finally{u.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):Y};
RCT=function(Y,G){Y&&Y.loggingStatus&&!Y.loggingStatus.isDeclarativeExternal&&!Y.loggingStatus.isExternalGet&&Y.loggingStatus.currentExternalSet!==G&&a4(Y.tagName.toLowerCase(),G,"PROPERTY_ACCESS_GET_INTERNAL")};
TO=function(Y,G,u){Y&&(u||Y.loggingStatus&&!Y.loggingStatus.isInitializing&&!Y.loggingStatus.isDefiningPropertyAccessor&&Y.loggingStatus.currentExternalSet!==G)&&a4(Y.tagName.toLowerCase(),G,"PROPERTY_ACCESS_SET_INTERNAL")};
wWj=function(){return{_definePropertyAccessor:function(Y,G){var u=this,O=u.hostElement.loggingStatus;O&&(O.isDefiningPropertyAccessor=!0);var Q=u[Y];Q!==void 0&&(u.__data?u._setPendingProperty(Y,Q):(u.__dataProto!=null||(u.__dataProto={}),u.__dataProto[Y]=Q));O&&(O.isDefiningPropertyAccessor=!1);Object.defineProperty(this,Y,{get:function(){RCT(u.hostElement,Y);return this.__data[Y]},
set:function(M){G||this._setPendingProperty(Y,M,!0)&&this._invalidateProperties()}})},
created:function(){var Y=this._setPendingProperty.bind(this);this._setPendingProperty=function(G,u,O){TO(this.hostElement,G);return Y.apply(this,[G,u,O])}}}};
Zot=function(Y){AQY()&&_.x(LD.prototype)(Y.prototype,"__templateBindingLoggingBehavior")};
DJI=function(Y,G){if(G.resolvedFactories.length!==Y.resolvedFactories.length)return!0;G=_.E(G.resolvedFactories.entries());for(var u=G.next();!u.done;u=G.next()){var O=_.E(u.value);u=O.next().value;O=O.next().value;if(O.providerClass){if(O.providerClass!==Y.resolvedFactories[u].providerClass)return!0}else if(O.providerValue){if(O.providerValue!==Y.resolvedFactories[u].providerValue)return!0}else if(O.factory!==Y.resolvedFactories[u].factory)return!0}return!1};
hCy=function(Y,G){Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())if(u=u.value,u.constructor===Array)hCy(u,G);else{var O=G;O.has(u)||(u.inject&&O.add(u),u.behaviors&&hCy(u.behaviors,O))}};
gB=function(Y,G){var u=Y[G];Y[G]=function(){var O=_.vs.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(u)return u.apply(this,O)}};
NOa=function(){_.Xf.Class=function(u,O){u=dJT(u,O);gB(u.prototype,"created");return u};
gB(Pn.prototype,"_initializeProperties");gB(_.I4.prototype,"_initializeProperties");if(bot)gB(Spj,"created");else{var Y=function(){gB(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))Y();else{var G=customElements.define;customElements.define=function(u,O,Q){G.call(customElements,u,O,Q);u==="tp-yt-iron-list"&&(Y(),customElements.define=G)}}}};
VfY=function(Y,G){Y.prototype.behaviors=Y.prototype.behaviors||[];Y.prototype.behaviors.unshift(jkt.InjectBehavior);Y.prototype.provide=G};
_.Ff=function(Y){return function(G){if(!Y.disableElementRegistration){Y.noInjection||VfY(G,Y.providers);var u=G.prototype;u.__templateHelpers||buj(ko.prototype)(u,"__templateHelpers");u=Y.is;ldg||(ldg=Date.now());(CX(u)+ldg)%100<_.Jy("polymer_log_prop_change_observer_percent")&&buj(nD.prototype)(G.prototype,"__propertyObserverObserver");G.prototype.behaviors=G.prototype.behaviors||[];G.prototype.behaviors.unshift(_.BOA.YtHostElementBehavior);Zot(G);fdg({is:Y.is,notifyObserversOnUndefined:Y.notifyObserversOnUndefined!==
!1,fastInit:Y.fastInit,template:Y.template,disableEnforceFastDefaultValuesCheck:!0})(G)}}};
_.pD=function(Y){return _.Ff({is:Y.is,template:Y.template,disableElementRegistration:Y.disableElementRegistration,cssBuildOptOut:Y.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
skI=function(Y,G){if($JY){Y=new Y;for(var u=_.E(Object.getOwnPropertyNames(Y)),O=u.next();!O.done;O=u.next())O=O.value,G[O]=Y[O];for(u=G;u&&u!==Object.prototype;u=Object.getPrototypeOf(u)){O=_.E(Object.getOwnPropertyNames(u));for(var Q=O.next();!Q.done;Q=O.next())Q=Q.value,Y.hasOwnProperty(Q)||Object.defineProperty(Y,Q,qpU(G,Q))}}else Y.apply(G)};
qpU=function(Y,G){return{get:function(){var u=Y[G];return u instanceof Function?u.bind(Y):u},
set:function(u){Y[G]=u}}};
UJj=function(Y,G){for(var u=Y._noAccessors,O=_.E(Object.getOwnPropertyNames(Y)),Q=O.next();!Q.done;Q=O.next())if(Q=Q.value,!cQt.has(Q))if(u)G[Q]=Y[Q];else{var M=Object.getOwnPropertyDescriptor(Y,Q);M&&(M.configurable=!0,Object.defineProperty(G,Q,M))}};
vzy=function(Y,G,u){return function(O){if(u){var Q=u();O.model=Q}if(Y[G])Y[G](O,O.detail)}};
zO=function(Y){var G=[];if(typeof Y==="string")Y.length>0&&G.push.apply(G,_.c8(Y.split(".")));else{Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())u=u.value,typeof u==="string"?G.push.apply(G,_.c8(u.split("."))):G.push(u)}return G};
JQt=function(Y,G){if(G[G.length-1]!=="*"&&G[G.length-1]!=="splices"){for(var u=0;u<G.length;u++){if(!Y)return;Y=Y[G[u]]}return Y}};
Yv1=function(Y,G){if(Y.length>G.length)return!1;for(var u=0;u<Y.length;u++)if(Y[u]!==G[u])return!1;return!0};
ubY=function(Y,G,u){if(G.type==="compute"){var O=G.getter.bind(u);var Q=G.args}else O=function(){return u[G.method.methodName].apply(u,_.c8(_.vs.apply(0,arguments)))},Q=G.method.args;
G_A(Y,G.propertyKey,O,Q,G.value)};
Qgj=function(Y,G){if(G.readOnly){var u=Object.getOwnPropertyDescriptor(Y.model,G.propertyKey);Object.defineProperty(Y.model,G.propertyKey,{get:u.get,set:function(){}});
Y.model[OSI(G.propertyKey)]=u.set}};
Mij=function(Y,G,u){if(u){var O=G.propertyKey,Q=G.selector;G=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.c8(G.selectorArgs.map(function(M){return{type:"path",path:M}})));
G_A(Y,O,function(M){var t=_.vs.apply(1,arguments);return Q.apply(null,[u.getState()].concat(_.c8(t)))},G)}};
Eiu=function(Y,G,u){var O=_.uc(G.propertyKey)+"-changed";HSU(Y,function(Q){var M={value:Q.value,queueProperty:!0};Q.path.split(".").length>1&&(M.path=Q.path);u.dispatchEvent(new CustomEvent(O,{detail:M}))},[{type:"wildcard",
path:G.propertyKey}])};
ti4=function(Y,G,u){HSU(Y,function(){u[G.method.methodName].apply(u,_.c8(_.vs.apply(0,arguments)))},G.method.args)};
OSI=function(Y){return"_set"+(Y.charAt(0).toUpperCase()+Y.slice(1))};
Kda=function(){var Y,G=D1(function(u){Y=u},!1);
return[Y,G]};
XiY=function(Y){Y=Y.trim().replace(aTa,",").replace(TmA,"$1");var G=Y[0];G==="-"&&(G=Y[1]);if(G>="0"&&G<="9")return{type:"literal",value:Number(Y)};if(G==="'"||G==='"')return{type:"literal",value:Y.slice(1,-1)};if(G=Y.match(Ldy)){G=G[1];var u=gi1[G];if(u)return{type:u,path:Y.slice(0,-(G.length+1))}}return{type:"path",path:Y}};
ni1=function(Y){var G=Y.match(PkU);if(G)return Y={methodName:G[1],args:IT1},G[2].trim()&&(G=G[2].replace(k_Y,"&comma;").split(","),Y.args=G.map(XiY)),Y};
Fdu=function(Y,G,u,O){O=O===void 0?!1:O;G=_.uc(G);var Q=pj;Q&&(u=Q(u,G,"attribute",Y));mO(Y,u,G,O)};
mO=function(Y,G,u,O){G=piu(G,O===void 0?!1:O);G===void 0?Y.removeAttribute(u):Y.setAttribute(u,G)};
piu=function(Y,G){switch(typeof Y){case "object":case "function":if(Y instanceof Date)return Y.toString();if(Y){if((G===void 0?0:G)&&!_.F("polymer_reflect_objects_as_boolean_killswitch"))return Y?"":void 0;G=window.trustedTypes?window.trustedTypes.isHTML(Y)||window.trustedTypes.isScript(Y)||window.trustedTypes.isScriptURL(Y):void 0;if(G)return Y;try{return JSON.stringify(Y)}catch(u){_.R0(Error("Eg`"+Y))}}break;case "boolean":return Y?"":void 0;default:return Y!==null&&Y!==void 0?Y.toString():void 0}};
zKg=function(Y){if(Y===void 0)throw Error("Fg");return Y};
fT1=function(Y,G,u,O){var Q=mlj(O);if(Q.length){O=u;var M="property";WdY.test(u)?M="attribute":u[u.length-1]==="$"&&(u=u.slice(0,-1),M="attribute");var t=r4a(Q);t&&M==="attribute"&&(u==="class"&&Y.hasAttribute("class")&&(t+=" "+Y.getAttribute(u)),mO(Y,t,u));M==="attribute"&&O==="disable-upgrade$"&&Y.setAttribute("disable-upgrade","");Y.localName==="input"&&O==="value"&&Y.setAttribute("value","");Y.removeAttribute(O);M==="property"&&(u=_.OK(u));G=zKg(G);xlA(G,M,u,Q);return!0}return u.slice(0,3)===
"on-"?(Y.removeAttribute(u),(M=G).events!=null||(M.events=[]),G.events.push({name:u.slice(3),value:O}),!0):u==="id"?(G.id=O,!0):!1};
mlj=function(Y){for(var G=[],u=0,O;(O=Cky.exec(Y))!==null;){O.index>u&&G.push({type:"literal",value:Y.slice(u,O.index)});var Q=O[1][0];u=!!O[2];O=O[3].trim();if(Q==="{")throw Error("Gg");(Q=ni1(O))?G.push({type:"method",negate:u,signature:Q}):G.push({type:"path",negate:u,path:O});u=Cky.lastIndex}u&&u<Y.length&&(Y=Y.substring(u))&&G.push({type:"literal",value:Y});return G};
r4a=function(Y){for(var G="",u=0;u<Y.length;u++){var O=Y[u];O.type==="literal"&&(G+=O.value)}return G};
xlA=function(Y,G,u,O){Y.bindings!=null||(Y.bindings=[]);Y.bindings.push({kind:G,target:u,parts:O})};
iSY=function(Y,G,u){var O=!1;if(Y.localName==="template"){O=u;var Q=G.stripWhitespace;Q=y4a(Y,Q===void 0?!1:Q);var M=Y.content.ownerDocument.createDocumentFragment();Q.content=M;M.appendChild(Y.content);O&&(O.templateInfo=Q);O=!0}else Y.localName==="slot"&&(G.hasInsertionPoint=!0);if(Y.firstChild&&(Q=u,Y.localName!=="script"&&Y.localName!=="style")){M=0;for(var t=Y.firstChild;t;){var K=t;if(K.localName==="template"){var L=K.getAttribute("is");if((t=L==="dom-if")||L==="dom-repeat"){K.removeAttribute("is");
L=K.ownerDocument.createElement("ps-"+L);K.parentNode.replaceChild(L,K);L.appendChild(K);var g=Array.from(K.attributes);g=_.E(g);for(var P=g.next();!P.done;P=g.next())P=P.value,t?eKA.has(P.name)&&mO(L,P.value,P.name):A4y.has(P.name)?mO(L,P.value,P.name):oiy.has(P.name),K.removeAttribute(P.name);t=L}else t=K}if(t.nodeType===Node.TEXT_NODE){K=void 0;L=Y;for(g=t;((K=g.nextSibling)==null?void 0:K.nodeType)===Node.TEXT_NODE;)P=void 0,(P=g).textContent!=null||(P.textContent=""),g.nextSibling.textContent&&
(g.textContent+=g.nextSibling.textContent),L.removeChild(g.nextSibling);if(G.stripWhitespace&&t.textContent&&!t.textContent.trim()){Y.removeChild(t);t=t.nextSibling;continue}}iSY(t,G,{parentIndex:M,parentInfo:Q});t.parentNode&&M++;t=t.nextSibling}}var I;if((I=Y.hasAttributes)==null?0:I.call(Y)){I=u=zKg(u);Q=!1;M=Array.from(Y.attributes);M=_.E(M);for(K=M.next();!K.done;K=M.next())K=K.value,Q=fT1(Y,I,K.name,K.value)||Q;O=Q||O}Y.nodeType===Node.TEXT_NODE&&(I=mlj(Y.textContent),I.length&&(Y.textContent=
r4a(I)||" ",u=zKg(u),xlA(u,"text","textContent",I),O=!0));u&&O&&(u.infoIndex=G.nodeInfoList.push(u)-1)};
y4a=function(Y,G){G={nodeInfoList:[],stripWhitespace:(G===void 0?!1:G)||Y.hasAttribute("strip-whitespace")};iSY(Y.content,G);return G};
RKI=function(Y){Object.assign(Y,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
ZSg=function(Y,G,u){G.signalCache!=null||(G.signalCache={});var O=G.signalCache[u];if(!O){var Q=u.split(".");O=!wia(Y,Q[0]);if(Q.length>1&&O){var M=Y.getPathMutationSignal(Q);O=function(){var t=d_(Y.owner,function(){return Y.getWithPath([Q[0]])}),K,L=(K=M())==null?void 0:K.value;
return{rootWasDefined:t!==void 0,value:L}}}else O=function(){var t=Y.getWithPath(Q);
return{rootWasDefined:t!==void 0,value:t}};
G.signalCache[u]=O}return O()};
hKA=function(Y,G,u,O,Q){G=G.parts.map(function(t,K){if(t.type==="literal"){u.partWasDefined!=null||(u.partWasDefined=[]);var L;(L=u.partWasDefined)[K]||(L[K]=t.value!==void 0);return t.value}var g;if(t.type==="method"){var P,I=(P=(g=u.partWasDefined)==null?void 0:g[K])!=null?P:!1;I||(I=t.signature.args.every(function(p){return p.type==="literal"}));
var k=!1,n=!0;g=t.signature.args.map(function(p){if(p.type==="literal")return p.value;if(p.type!=="path")throw Error("Hg`"+p.type);var W=ZSg(Y,u,p.path);p=W.value;W=W.rootWasDefined;k||(k=W);n&&(n=W);return p});
I||(I=Q===1?n:k);u.partWasDefined!=null||(u.partWasDefined={});u.partWasDefined[K]=I;if(!I)return;g=(K=ZSg(Y,u,t.signature.methodName).value)&&typeof K==="function"?K.apply(O,g):void 0}else P=ZSg(Y,u,t.path),g=P.value,u.partWasDefined!=null||(u.partWasDefined={}),(I=u.partWasDefined)[K]||(I[K]=g!==void 0||P.rootWasDefined);t.negate&&(g=!g);return g});
if(G.length===1){var M;return((M=u.partWasDefined)==null?0:M[0])?G[0]:DlT}return G.join("")};
dlu=function(Y){return typeof Y==="object"&&!!Y&&"notifyPath"in Y&&"canNotifyPath"in Y};
bS4=function(Y){return typeof Y==="object"&&!!Y&&"notifyPath"in Y};
Svu=function(Y){return"polymerController"in Y};
Nm1=function(Y,G){G=""+zO(G)[0];if(dlu(Y))return Y.canNotifyPath(G);if(Svu(Y)&&dlu(Y.polymerController))return Y.polymerController.canNotifyPath(G);if(bS4(Y)){var u;return!((u=Y.properties)==null||!u[G])}if(Svu(Y)&&bS4(Y.polymerController)){var O;return!((O=Y.polymerController.properties)==null||!O[G])}return!1};
jgt=function(Y,G,u){dlu(Y)||bS4(Y)?Y.notifyPath(G,u):Svu(Y)&&(dlu(Y.polymerController)||bS4(Y.polymerController))&&Y.polymerController.notifyPath(G,u)};
lTj=function(Y,G,u){if(u!==DlT){Y.kind==="attribute"||Y.target!=="textContent"&&(Y.target!=="value"||G.localName!=="input"&&G.localName!=="textarea")||(u=u===void 0?"":u);var O,Q=(O=Vig.Polymer)==null?void 0:O.sanitizeDOMValue;Q&&(u=Q(u,Y.target,Y.kind,G));if(Y.kind==="attribute"){Y=Y.target;if(Y==="class"||Y==="name"||Y==="slot")G=(0,_.sb)(G);mO(G,u,Y)}else if(Y=Y.target,u!==G[Y]||typeof u==="object")G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!0,a4(G.localName,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
G[Y]=u,G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!1)}};
Bmj=function(Y,G,u,O){var Q=G.parts[0];if(G.parts.length!==1||Q.type!=="path"||!Nm1(u,G.target))return!1;var M=_.E(Q.path.split(".")),t=M.next().value,K=$H(M);if(wia(Y,t))return!1;O.signalCache!=null||(O.signalCache={});M=O.signalCache[Q.path];var L;M=(L=M)==null?void 0:L().value;if((M==null?void 0:M.path)!==void 0){O=zO(M.path);var g=zO(Q.path);O=[G.target].concat(_.c8(O.slice(g.length-1)));jgt(u,O,Q.negate?!M.value:M.value);return!0}var P=Wn(Y,t);var I=P.getChangeRecordSignal(K),k=!1;M=function(){if(!k){var p=
d_(Y.owner,function(){return P.getWithPath([])});
k||(k=p!==void 0)}return{value:I(),rootWasDefined:k}};
O.signalCache[Q.path]=M;O.partWasDefined!=null||(O.partWasDefined={});M=M();(g=O.partWasDefined)[0]||(g[0]=M.rootWasDefined);var n=d_(Y.owner,function(){return P.getWithPath(K)});
O.partWasDefined[0]&&d_(Y.owner,function(){return void lTj(G,u,Q.negate?!n:n)});
return!0};
$lj=function(Y,G,u,O,Q,M){if(!Bmj(Y,G,u,O)){var t=hKA(Y,G,O,Q,M);d_(Y.owner,function(){return void lTj(G,u,t)})}};
qvU=function(Y,G,u,O,Q,M){u=_.E(u);for(var t=u.next(),K={};!t.done;K={infoIndex:void 0},t=u.next()){t=t.value;var L=t.bindings;K.infoIndex=t.infoIndex;t=t.parentInfo;if(L){L=_.E(L);for(var g=L.next(),P={};!g.done;P={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},g=L.next()){P.b$jscomp$257=g.value;if(K.infoIndex===void 0)throw Error("Ig");P.bindingCtx$jscomp$4={};Y.effect(function(I,k){return function(){Q&&!Q()||$lj(Y,I.b$jscomp$257,G[k.infoIndex],I.bindingCtx$jscomp$4,O,M)}}(P,K))}}t&&qvU(Y,G,[t],
O,Q,M)}};
sgI=function(Y,G){Y=(G.parentInfo?sgI(Y,G.parentInfo):Y).firstChild;for(var u=0;Y;Y=Y.nextSibling)if(G.parentIndex===u++)return Y;throw Error("Jg");};
UlU=function(Y,G,u,O){Y=document.importNode(Y.content,!0);Y.__noInsertionPoint=!(O==null?0:O.hasInsertionPoint);for(var Q=Array(G.length),M={},t=0;t<G.length;t++){var K=G[t],L=sgI(Y,K);Q[t]=L;K.id&&(M[K.id]=L);if(K.templateInfo){var g=L.parentElement;g&&(g.templateInfo=K.templateInfo,g.parentSignalProxy=u,g.eventListenerHost=O.eventListenerHost,g.stampingEnabled=O.enabledSignal)}g=void 0;if((g=K.events)==null?0:g.length)for(g=0;g<K.events.length;g++){var P=K.events[g];c4T(O.eventListenerHost,L,P.name,
P.value,O.getModel)}}qvU(u,Q,G,O.thisCtx,O.enabledSignal,O.methodInvocationRequirement);return{root:Y,nodes:Q,nodesById:M}};
J4A=function(Y,G){Y=Y();var u;(u=viA.ShadyCSS)==null||u.prepareTemplate(Y,G);G=y4a(Y);return{template:Y,nodeInfoList:G.nodeInfoList,hasInsertionPoint:G.hasInsertionPoint}};
uBY=function(){YBj=!1;for(var Y=rB.length,G=0;G<Y;G++){var u=rB[G];if(u)try{u()}catch(O){Promise.resolve().then(function(){throw O;})}}rB.splice(0,Y);
GQg+=Y};
H9U=function(Y){YBj||(YBj=!0,O9j.textContent=(QLY++).toString());rB.push(Y);return M_I++};
_.CD=function(Y,G,u){xo++;Y=G?new E$A(xo,Y,G,u):new t_t(xo,Y);fD.set(xo,Y);return xo};
KxT=function(Y){(Y=fD.get(Y))&&Y.cancel()};
Teg=function(Y,G){Y=apy.get(Y);return Y?(G=Y.get(G))?G:null:null};
_.y4=function(Y,G,u,O){var Q=Teg(Y,G);if(!Q){Q=new Lxj;var M=apy.get(Y);M||(M=new Map,apy.set(Y,M));M.set(G,Q)}Y=u.bind(Y);Q.run(Y,O,void 0)};
_.g$4=function(Y,G){var u;(u=Teg(Y,G))==null||u.cancel()};
iM=function(Y){var G;return(G=Y.hostElement)!=null?G:Y};
Xej=function(Y){var G=Y.indexOf(".");return G===-1?Y:Y.slice(0,G)};
PmT=function(Y,G,u,O,Q,M){M=(Q=(O=M?Xej(G):G)?G:null)?Y.get(Q):Y.__data[G];Q&&M===void 0&&(M=u[G]);_.$s(Y.hostElement,qLI(O)+"-changed",{value:M,queueProperty:!0,path:Q!=null?Q:void 0},{bubbles:!1,composed:!1})};
IpU=function(Y,G){Y.__isReflecting=!0;Fdu(Y.hostElement,G,Y.__data[G]);Y.__isReflecting=!1};
kQI=function(Y){if(Y._onIronRequestResizeNotifications){var G=Y._onIronRequestResizeNotifications.bind(Y);Y._onIronRequestResizeNotifications=function(u){_.Zb(u)!==Y.hostElement&&G(u)}}Y._ariaActiveAttributeChanged&&(Y._ariaActiveAttributeChanged=Y._ariaActiveAttributeChanged.bind(Y.hostElement));
Y._activeChanged&&(Y._activeChanged=function(u){Y.toggles?mO(Y.hostElement,u?"true":"false",Y.ariaActiveAttribute):Y.hostElement.removeAttribute(Y.ariaActiveAttribute);Y._changedButtonState()});
Y._asyncClick&&(Y._asyncClick=function(){_.CD(function(){Y.hostElement.click()},1)});
!Y.keyEventTarget||Y.keyEventTarget instanceof EventTarget||(Y.keyEventTarget=iM(Y.keyEventTarget));Y._disabledChanged&&(Y._disabledChanged=Y._disabledChanged.bind(Y.hostElement));Y._observeItems&&(Y._observeItems=function(u){var O=iM(u);return _.ax(O).observeNodes(function(Q){Y._updateItems();Y._updateSelected();_.$s(O,"iron-items-changed",Q,{bubbles:!1,cancelable:!1})})});
Y._updateItems&&Y._updateItems===_.R4._updateItems&&(Y._updateItems=function(){var u=_.ax(Y.hostElement).queryDistributedElements(Y.selectable||"*");u=Array.prototype.filter.call(u,Y._bindFilterItem);Y._setItems(u)});
Y._computeKeyboardClass&&(Y._computeKeyboardClass=function(u){_.$3(Y.hostElement,"keyboard-focus",u)});
Y.ensureRipple&&(Y.ensureRipple=function(u){if(Y.hasRipple&&!Y.hasRipple()){if(!Y._createRipple)return;Y._ripple=Y._createRipple();Y._ripple.noink=Y.noink;var O=Y._rippleContainer||Y.hostElement;O&&_.l0(O).appendChild(Y._ripple)}var Q;if(u&&((Q=Y._ripple)==null?0:Q.uiDownAction)){O=_.l0(Y._rippleContainer||Y.hostElement);var M;Q=(M=u.composedPath())==null?void 0:M[0];O.contains(Q)&&Y._ripple.uiDownAction(u)}});
Y._updateMultiselectable&&(Y._updateMultiselectable=function(u){u?Y.hostElement.setAttribute("aria-multiselectable","true"):Y.hostElement.removeAttribute("aria-multiselectable")})};
n$A=function(Y,G,u){u=_.E(u);for(var O=u.next();!O.done;O=u.next())skI(O.value.constructor,Y);skI(G.constructor,Y)};
peT=function(Y,G){Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())if(u=u.value,u.type==="signal"){var O=u.propertyKey;if(G.hasOwnProperty(O)&&G[O]!=null&&u.attributeType===Object){a:{O=G[O].constructor;for(var Q=_.E(Fxt),M=Q.next();!M.done;M=Q.next())if(M=M.value,O===M){O=M;break a}O=Object}u.attributeType=O}}};
z0j=function(){};
mf4=function(Y){var G;return(G=Y.hostElement)!=null?G:Y};
Wxt=function(){throw Error("Ng");};
r3u=function(Y,G){Y.constructor.prototype.useSignals=!0;var u=new Y.constructor;n$A(u,Y,G.behaviors);peT(G.reactiveSchemas,u);u={};for(var O=_.E(G.reactiveSchemas),Q=O.next();!Q.done;Q=O.next())Q=Q.value,Q.type==="signal"&&(u[Q.propertyKey]=Q.attributeType);var M={copyPropertiesToProto:Wxt,didRegister:!1,typesForSignals:u},t=["disable-upgrade"].concat(_.c8(G.observedAttributes)),K=function(L){wB.call(this,Y,G,M,L)};
_.m(K,wB);_.Uk.Object.defineProperties(K,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return t}}});
M.copyPropertiesToProto=function(){for(var L=0;L<G.behaviors.length;L++)UJj(G.behaviors[L],K.prototype);UJj(Y,K.prototype)};
G.legacyOptimizations||M.copyPropertiesToProto();K.prototype.is=Y.is;return K};
xf4=function(Y,G){if(Object.getPrototypeOf(G.prototype).constructor!==_.Z)throw Error("Og");G.prototype.is=Y.is;return r3u(G.prototype,Y)};
fpY=function(Y){return Y.type==="compute"||Y.type==="computeWithMethod"};
Cmj=function(Y){for(var G=Y.reactiveSchemas.filter(fpY),u=new Map,O=new Map,Q=new Map,M=_.E(G),t=M.next();!t.done;t=M.next())t=t.value,u.set(t.propertyKey,t),O.set(t.propertyKey,[]),Q.set(t.propertyKey,0);M=0;G=_.E(G);for(t=G.next();!t.done;t=G.next()){t=t.value;for(var K=_.E(t.type==="computeWithMethod"?t.method.args:t.args),L=K.next();!L.done;L=K.next())L=L.value,L.type!=="literal"&&(L=L.path.split(".")[0],O.has(L)&&(O.get(L).push(t.propertyKey),Q.set(t.propertyKey,Q.get(t.propertyKey)+1),M++))}t=
[].concat(_.c8(O.keys())).filter(function(g){return Q.get(g)===0});
for(G=[];t.length;)for(K=t.shift(),G.push(u.get(K)),K=_.E(O.get(K)),L=K.next();!L.done;L=K.next())L=L.value,Q.set(L,Q.get(L)-1),M--,Q.get(L)===0&&t.push(L);u=Y.reactiveSchemas.filter(function(g){return!fpY(g)});
Y.reactiveSchemas=[].concat(_.c8(u),_.c8(G))};
y3A=function(Y,G){if(G.properties)for(var u=_.E(Object.entries(G.properties)),O=u.next();!O.done;O=u.next()){var Q=_.E(O.value);O=Q.next().value;Q=Q.next().value;Y.properties[O]=typeof Q==="function"?{type:Q}:Q}G.observers&&Y.observers.push.apply(Y.observers,_.c8(G.observers));G.disabledPolySiReactions&&Y.disabledPolySiReactions.push.apply(Y.disabledPolySiReactions,_.c8(G.disabledPolySiReactions))};
e0U=function(Y,G){for(var u=G.length-1;u>=0;u--){var O=G[u];Array.isArray(O)?e0U(Y,O):Y.indexOf(O)<0&&Y.unshift(O)}};
A3j=function(Y,G){Y.reactiveSchemas=Y.reactiveSchemas.filter(function(u){return u.type==="observe"&&G.includes(u.method.methodName)||fpY(u)&&G.includes(u.propertyKey)?!1:!0})};
i9y=function(Y,G){var u=G.prototype,O,Q,M={is:Y.is,reactiveSchemas:[],observedAttributes:[],behaviors:[jkt.InjectBehavior,ko.prototype],disableElementRegistration:Y.disableElementRegistration,provide:(O=Y.providers)!=null?O:[],reactivityMode:Y.reactivityMode,signalProperties:(Q=u.signalProperties)!=null?Q:[]};"template"in G?M.templateGetter=function(){return G.template}:Y.getTemplate&&(M.templateGetter=Y.getTemplate);
u.behaviors&&e0U(M.behaviors,u.behaviors);o$T(M,G);return M};
o$T=function(Y,G){for(var u=G.prototype,O={properties:{},observers:[],disabledPolySiReactions:[]},Q=_.E(Y.behaviors),M=Q.next();!M.done;M=Q.next())y3A(O,M.value);y3A(O,u);if(Y.signalProperties)for(u=_.E(Y.signalProperties),Q=u.next();!Q.done;Q=u.next())delete O.properties[Q.value];u=_.E(Object.entries(O.properties));for(Q=u.next();!Q.done;Q=u.next()){M=_.E(Q.value);Q=M.next().value;M=M.next().value;var t=void 0;if((t=Y.signalProperties)==null||!t.includes(Q)){t=void 0;var K=Y,L=M.type;if(!L)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{L=Reflect.getMetadata("design:type",G,Q);for(var g=_.E(R0j),P=g.next();!P.done;P=g.next())if(P=P.value,L===P){L=P;break a}L=Object}else L=String;M.computed||M.selector||(K.reactiveSchemas.push({type:"signal",propertyKey:Q,value:M.value,attributeType:L,readOnly:M.readOnly}),K.observedAttributes.push(_.uc(Q)));M.reflectToAttribute&&K.reactiveSchemas.push({type:"reflect",propertyKey:Q});if(M.computed){L=ni1(M.computed);if(!L)throw Error("Pg");K.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:Q,method:L,value:M.value})}M.observer&&K.reactiveSchemas.push({type:"observe",method:{methodName:M.observer,args:[{type:"path",path:Q}]}});M.notify&&K.reactiveSchemas.push({type:"notify",propertyKey:Q});M.selector&&K.reactiveSchemas.push({type:"redux",propertyKey:Q,selector:M.selector,selectorArgs:(t=M.selectorArgs)!=null?t:[]})}}weT&&Cmj(Y);G=_.E(O.observers);for(Q=G.next();!Q.done;Q=G.next())u=Y,Q=Q.value,(M=ni1(Q))?u.reactiveSchemas.push({type:"observe",method:M}):console.log('Warning: unable to parse observe declaration: "'+
Q+'"');A3j(Y,O.disabledPolySiReactions)};
Z94=function(Y,G){for(var u=0;u<G.length;u++){var O=G[u],Q=void 0;(Q=O).showHideApi!=null||(Q.showHideApi={});Q=void 0;!!Y!==!((Q=O.showHideApi)==null||!Q.hideTemplateChildren)&&(O.nodeType===Node.TEXT_NODE?Y?(O.showHideApi.polymerTextContent=O.textContent,O.textContent=""):(Q=void 0,O.textContent=(Q=O.showHideApi.polymerTextContent)!=null?Q:null):O instanceof Element&&O.localName==="slot"?Y?(O.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.sb)((0,_.sb)(O).parentNode).replaceChild(O.showHideApi.polymerReplaced,
O)):(Q=O.showHideApi.polymerReplaced)&&(0,_.sb)((0,_.sb)(Q).parentNode).replaceChild(O,Q):O instanceof HTMLElement&&O.style&&(Y?(O.showHideApi.polymerDisplay=O.style.display,O.style.display="none"):O.style.display=O.showHideApi.polymerDisplay));O.showHideApi.hideTemplateChildren=Y;O.showHideChildren&&O.showHideChildren(Y)}};
h0u=function(){if(!Df4){var Y=document.createElement("style");Y.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(Y);Df4=!0}};
ZS=function(){return _.F("disable_hidden_dom_if_using_stamper")};
dfa=function(Y,G){var u=_.DS().getState();return G?Y.apply(null,[u].concat(_.c8(G))):Y(u)};
Nea=function(){if(b9a)return b9a;var Y=_.E(_.IE(0,void 0,"MB1Hb")),G=Y.next().value;Y.next();var u=Y.next().value;_.DS().subscribe(function(){SBa(u)});
return b9a=G};
SBa=function(Y){jLj||(jLj=!0,Promise.resolve().then(function(){Y(function(G){return G+1});
jLj=!1}))};
_.DS=function(){return V_a.getAppStore()};
lpa=function(Y,G){return V_a.getSelectFn()(Y,G)};
_.hj=function(Y){V_a.getDispatchFn()(Y)};
Be4=function(Y,G){var u={},O;for(O in Y)u[O]=G(Y[O],O);return u};
_.dB=function(Y,G){return function(){var u;return(u=_.hT(Y))!=null?u:G}};
_.bM=function(Y,G){var u=Object.assign({},Y),O;for(O in G)G.hasOwnProperty(O)&&(u[O]=_.dB(Y[O],G[O]));return u};
$fY=function(Y,G,u,O){Y instanceof Element&&(u.debugName||(u.debugName="<"+Y.tagName.toLowerCase()+(Y.tagName.includes("-")?">":"."+Y.className+">")),_.F("ytwiz_enable_debug_component_props")&&(Y.debugProps||(Y.debugProps=Be4(G,function(Q){return function(){return Q()}})),G.data===void 0||"data"in Y&&!Y.isWebComponentWrapper||Object.defineProperty(Y.debugProps,"data",{get:function(){return _.hT(G.data)},
set:function(Q){var M;O==null||(M=O.data)==null||M.call(O,Q)},
enumerable:!0,configurable:!0})))};
_.SN=function(Y,G){if(Y.length===0&&(G==null||!G.initial))return BjT(Y,{debugName:G==null?void 0:G.debugName},"l");var u=_.E(BjT({source:function(){return Y()},
computation:function(M,t){return(t==null?0:t.value)?Y(t.value):(G==null?0:G.initial)?Y(G.initial):M}},{debugName:G==null?void 0:G.debugName},"m")),O=u.next().value,Q=u.next().value;
u=u.next().value;return[O,Q,u]};
_.D=function(Y,G){var u=function(O){return _.lc("ytComponent",{},function(Q){var M=qBY={};var t;if(((t=u)==null?0:t.idomCompat)&&O.renderedFromIdom){var K;t=typeof u.idomCompat==="object"?(K=u)==null?void 0:K.idomCompat.callbacks:{};t=_.E(sLg(O,t));K=t.next().value;var L=t.next().value;t=t.next().value;var g=c3t(Y,K);M.privateValue=g;qBY=void 0;$fY(g,K,u,L);Q.addAttributes({debugName:u.debugName});Q=StA(g);Q=Array.isArray(Q)?Q[0]:Q;Q[TY]||(Q[TY]={});Q[TY].updateSignalsFromIdomProps=t;Ufu(K,g);return g}t=
Be4(O,v$t);K=c3t(Y,t);$fY(K,t,u);M.privateValue=K;qBY=void 0;Q.addAttributes({debugName:u.debugName});Ufu(t,K);return K})};
u.debugName=G===void 0?"":G;return u};
c3t=function(Y,G){Y=Y(G);return I1(Y)};
J3Y=function(Y,G){Y[G]||(Y=new _.I2("IDOM interop setter undefined. Key:",G),_.o0(Y))};
v$t=function(Y,G){return G==="children"||G==="ref"||typeof Y==="function"||Y===void 0?Y:function(){return _.hT(Y)}};
sLg=function(Y,G){var u={},O={},Q={},M={},t;for(t in Y){M={key$jscomp$954:M.key$jscomp$954};M.key$jscomp$954=t;var K=Y[M.key$jscomp$954];if(M.key$jscomp$954==="children"||M.key$jscomp$954==="ref")u[M.key$jscomp$954]=K;else if(typeof K==="function")if(M.key$jscomp$954 in G||K.length>0)Q[M.key$jscomp$954]=K,u[M.key$jscomp$954]=function(g){return function(){return Q[g.key$jscomp$954].apply(Q,_.c8(_.vs.apply(0,arguments)))}}(M);
else if(M.key$jscomp$954==="data"){var L=_.E(_.SN(K,{debugName:M.key$jscomp$954+":cwis"}));K=L.next().value;L=L.next().value;u[M.key$jscomp$954]=K;O[M.key$jscomp$954]=L}else u[M.key$jscomp$954]=K;else Y[M.key$jscomp$954]===void 0&&M.key$jscomp$954 in G||(L=_.E(_.IE(Y[M.key$jscomp$954],{debugName:M.key$jscomp$954+":cwis"},"YNRI5")),K=L.next().value,L=L.next().value,u[M.key$jscomp$954]=K,O[M.key$jscomp$954]=L)}return[u,O,function(g){var P={},I;for(I in g)P={key$jscomp$953:P.key$jscomp$953,val$jscomp$122:void 0},
P.key$jscomp$953=I,P.val$jscomp$122=g[P.key$jscomp$953],P.key$jscomp$953!=="children"&&P.key$jscomp$953!=="ref"&&(typeof P.val$jscomp$122==="function"?P.key$jscomp$953 in G?Q[P.key$jscomp$953]=P.val$jscomp$122:P.val$jscomp$122.length>0&&(Q[P.key$jscomp$953]=P.val$jscomp$122,_.R0(new _.I2("Callback detected that was not set in the idomCompat callbacks map. Key:",P.key$jscomp$953))):P.key$jscomp$953 in G&&P.val$jscomp$122===void 0||(J3Y(O,P.key$jscomp$953),zX(function(k){return function(){O[k.key$jscomp$953](k.val$jscomp$122)}}(P))))}]};
uJA=function(Y,G,u){var O=CTI(Y.prototype,YFT,Y.prototype.behaviors);O.prototype.is=G;O.prototype.localName=G;u&&GFU(O,u);return function(Q){Q&&(O.prototype.hostElement=Q);var M=new O;M.root=M;M.hostElement=Q;return M}};
GFU=function(Y,G){var u;Object.defineProperty(Y.prototype,"_template",{get:function(){u===void 0&&(u=G());return u},
set:function(O){u=O},
configurable:!0,enumerable:!0})};
E1j=function(Y,G,u,O){function Q(){if(!n){for(var p=new Set,W=_.E(P),C=W.next();!C.done;C=W.next()){C=C.value;for(var e=_.E(Object.getOwnPropertyNames(C)),w=e.next();!w.done;w=e.next()){w=w.value;var B=void 0,N=(B=Object.getOwnPropertyDescriptor(C,w))==null?void 0:B.value;N&&N instanceof Function&&!Nb(w)&&(!K[w]||_.F("polymer_forward_method_killswitch"))&&p.add(w)}}W=_.E(Object.entries(Object.getOwnPropertyDescriptors(Y.prototype)));for(C=W.next();!C.done;C=W.next())e=_.E(C.value),C=e.next().value,
e=e.next().value,e.value instanceof Function&&!Nb(C)&&p.add(C);n=p}return n}
Oga(Y,G,O==null?void 0:O.providers);ymj(Y.prototype,Y,!0);var M=uJA(Y,G,u),t,K=(t=Y.prototype.properties)!=null?t:{},L,g,P=(g=(L=Y.prototype.behaviors)==null?void 0:L.flat(Infinity))!=null?g:[];u=_.E(P);for(t=u.next();!t.done;t=u.next())K=Object.assign({},t.value.properties,K);var I=[].concat(_.c8(QJI),_.c8(Object.keys(K).map(function(p){return _.uc(p)}))),k=!1,n;
return{ctor:function(p,W){var C=M(p),e,w;p=[].concat(_.c8((e=O==null?void 0:O.allowedProps)!=null?e:[]),_.c8((w=O==null?void 0:O.allowedPropsFromBehaviors)!=null?w:[]));C.allowedProps=p.length>0?p:void 0;e={};w=_.E(I);for(p=w.next();!p.done;p=w.next())p=p.value,e[p]=_.OK(p);C.__dataAttributes=e;var B=C.ready.bind(C);C.ready=function(){W.beforeReady();B();if(tj(G)&&!k){var N=C.__templateInfo;if(N==null?0:N.hostProps){N=_.E(Object.keys(N.hostProps));for(var h=N.next();!h.done;h=N.next())a4(G,h.value,
"PROPERTY_ACCESS_GET_INTERNAL")}k=!0}};
C._overrideLegacyUndefined=!0;return C},
props:K,observedAttributes:I,getInitialMethods:Q,getPropsToForwardBeforeRegister:function(){for(var p=[],W=new Set,C=_.E(Object.keys(K)),e=C.next();!e.done;e=C.next())e=e.value,p.push([e,K[e].readOnly]),W.add(e);C=Q();e=_.E(Object.keys(Object.getOwnPropertyDescriptors(Y.prototype)));for(var w=e.next();!w.done;w=e.next())w=w.value,!MzY(w)||C.has(w)||W.has(w)||(p.push([w,!1]),W.add(w));W=_.E(Hgu);for(C=W.next();!C.done;C=W.next())p.push([C.value,!0]);return p},
getPropsToForwardBeforeReady:function(p){for(var W=[],C=_.E(Object.entries(p)),e=C.next();!e.done;e=C.next()){var w=_.E(e.value);e=w.next().value;w=w.next().value;if(MzY(e)&&!(w instanceof Function)&&(W.push([e,!1]),tj(G))){var B=w=void 0;(B=(w=p)._createPropertyAccessor)==null||B.call(w,e)}}return W},
shouldForwardProp:MzY,shouldLog:tj}};
Oga=function(Y,G,u){VfY(Y,u);Y.prototype.behaviors.unshift(tz1);if(AQY()){if(tj(G)){var O;(O=Y.prototype).behaviors!=null||(O.behaviors=[]);Y.prototype.behaviors.unshift(wWj())}Zot(Y)}_.x(ko.prototype)(Y.prototype,"__templateHelpers")};
Nb=function(Y){return Kty.has(Y)||Y.startsWith("__compute__")};
MzY=function(Y){return!Nb(Y)&&!Y.startsWith("_")&&!Y.endsWith("_")};
XQy=function(Y,G){function u(){var k=L();k=_.E(k);for(var n=k.next();!n.done;n=k.next()){var p=_.E(n.value);n=p.next().value;p=p.next().value;aXU(I.prototype,n,p)}O=!0}
var O=!1,Q=Y.ctor,M=Y.getInitialMethods,t=Y.observedAttributes,K=Y.getPropsToForwardBeforeReady,L=Y.getPropsToForwardBeforeRegister,g=Y.shouldForwardProp,P=Y.shouldLog,I=function(){var k=HTMLElement.call(this)||this;k.didForwardDynamicProps=!1;k.loggingStatus={};O||u();k.inst=Q(k,{beforeReady:function(){k.didForwardDynamicProps||(k.forwardDynamicProps(),k.didForwardDynamicProps=!0)}});
k.controllerProxy=ioA(k.inst,G);k.forwardMethods();return k};
_.m(I,HTMLElement);I.prototype.forwardMethods=function(){for(var k=this,n=_.E(this.inst.getExtraMethodsToForward()),p=n.next(),W={};!p.done;W={method$jscomp$65:void 0},p=n.next()){var C=_.E(p.value);p=C.next().value;C=C.next().value;W.method$jscomp$65=C;this[p]=function(e){return function(){return e.method$jscomp$65.call.apply(e.method$jscomp$65,[k.inst].concat(_.c8(_.vs.apply(0,arguments))))}}(W)}n=_.E(M());
for(W=n.next();!W.done;W=n.next())W=W.value,g(W)&&TlY(this,W),P(G)&&!Nb(W)&&LtI(this.inst,W)};
I.prototype.forwardDynamicProps=function(){var k=K(this.inst);k=_.E(k);for(var n=k.next();!n.done;n=k.next()){var p=_.E(n.value);n=p.next().value;p=p.next().value;aXU(this,n,p);P(G)&&!Nb(n)&&g1t(this.inst,n)}};
I.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
I.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
I.prototype.attributeChangedCallback=function(k,n,p){this.inst.attributeChangedCallbackWrapper(k,n,p)};
_.Uk.Object.defineProperties(I.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return G}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Uk.Object.defineProperties(I,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return t}}});
customElements.define(G,I)};
aXU=function(Y,G,u){Y.hasOwnProperty(G)||Object.defineProperty(Y,G,{get:function(){var O,Q=((O=Y.is)!=null?O:Y.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||a4(Q,G,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,O=this.polymerController[G],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,O},
set:function(O){if(!u){var Q,M=((Q=Y.is)!=null?Q:Y.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||a4(M,G,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=G,this.loggingStatus.bypassProxyController=!0,this.polymerController[G]!==O&&(Q={},this.polymerController.setProperties((Q[G]=O,Q)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
TlY=function(Y,G,u){var O=Y.polymerController;Y[G]=function(){var Q=_.vs.apply(0,arguments);Y.loggingStatus.currentExternalCall=G;Y.loggingStatus.bypassProxyController=!0;var M,t=((M=Y.is)!=null?M:Y.tagName).toLowerCase();a4(t,G,"PROPERTY_ACCESS_CALL_EXTERNAL");var K;M=(K=u!=null?u:O[G])==null?void 0:K.call.apply(K,[O].concat(_.c8(Q)));Y.loggingStatus.currentExternalCall=void 0;Y.loggingStatus.bypassProxyController=!1;return M}};
LtI=function(Y,G){var u=Y.hostElement,O=Y[G];Y[G]=function(){var Q=_.vs.apply(0,arguments);if(u.loggingStatus.currentExternalCall!==G){var M,t=((M=u.is)!=null?M:u.tagName).toLowerCase();a4(t,G,"PROPERTY_ACCESS_CALL_INTERNAL")}return O==null?void 0:O.apply(Y,Q)}};
g1t=function(Y,G){var u=Object.getOwnPropertyDescriptor(Y,G);u&&!u.get&&Object.defineProperty(Y,G,{get:function(){RCT(Y.hostElement,G);return u.value},
set:function(O){TO(Y.hostElement,G);u.value=O}})};
Pt4=function(Y){return Y.tagName==="PS-DOM-REPEAT"||Y.tagName==="DOM-REPEAT"};
kFI=function(Y,G){var u=IXt(Y);Y instanceof Element&&u.unshift(Y);Y=_.E(u.filter(Pt4));for(var O=Y.next();!O.done;O=Y.next()){var Q=void 0;O=_.E((Q=O.value.__instances)!=null?Q:[]);for(Q=O.next();!Q.done;Q=O.next())if(Q=Q.value,Q.root){Q=Array.from(Q.root.children);Q=_.E(Q);for(var M=Q.next();!M.done;M=Q.next())u.push.apply(u,_.c8(kFI(M.value,G)))}}return u.filter(function(t){return t.usePatchedLifecycles&&t.lifecycleIsConnected===G})};
IXt=function(Y){var G=null;Y instanceof Element?G=Element.prototype.querySelectorAll:Y instanceof DocumentFragment&&(G=DocumentFragment.prototype.querySelectorAll);return G?Array.from(G.call(Y,"*")):[]};
jN=function(Y){_.Pw(function(){for(var G=_.E(kFI(Y,!1)),u=G.next();!u.done;u=G.next()){u=u.value;u.lifecycleIsConnected=!0;try{var O=void 0,Q=(O=u.polymerController)!=null?O:u;Q.connectedCallback&&_.lc("polymerComponent",{debugName:u.tagName.toLowerCase()},Q.connectedCallback.bind(Q))}catch(M){_.o0(M)}}})};
V4=function(Y){_.Pw(function(){for(var G=_.E(kFI(Y,!0)),u=G.next();!u.done;u=G.next()){u=u.value;u.lifecycleIsConnected=!1;try{var O=void 0,Q=void 0,M=void 0,t=void 0;(O=(t=u.polymerController)!=null?t:u)==null||(M=(Q=O).disconnectedCallback)==null||M.call(Q)}catch(K){_.o0(K)}}})};
rkj=function(){if(!n1u){n1u=!0;var Y=[Node];lM&&Y.push(lM.Wrapper);var G=Node.prototype.insertBefore,u=Node.prototype.removeChild;Y=_.E(Y);for(var O=Y.next(),Q={};!O.done;Q={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},O=Y.next())O=O.value,Q.nativeInsertBefore=O.prototype.insertBefore,O.prototype.insertBefore=function(t){return function(K,L){if(K instanceof DocumentFragment){var g=Array.from(K.children);K=t.nativeInsertBefore.call(this,K,L);
if(this.isConnected&&t.nativeInsertBefore===G)for(L=_.E(g),g=L.next();!g.done;g=L.next())jN(g.value);return K}g=K instanceof Element&&K.isConnected;L=t.nativeInsertBefore.call(this,K,L);g&&V4(K);this.isConnected&&jN(K);return L}}(Q),Q.nativeAppendChild=O.prototype.appendChild,O.prototype.appendChild=function(t){return function(K){if(K instanceof DocumentFragment){var L=Array.from(K.children);
K=t.nativeAppendChild.call(this,K);if(this.isConnected){L=_.E(L);for(var g=L.next();!g.done;g=L.next())jN(g.value)}return K}L=K instanceof Element&&K.isConnected;g=t.nativeAppendChild.call(this,K);L&&V4(K);this.isConnected&&jN(K);return g}}(Q),Q.nativeRemoveChild=O.prototype.removeChild,O.prototype.removeChild=function(t){return function(K){var L=K instanceof Element&&K.isConnected,g=t.nativeRemoveChild.call(this,K);
L&&u===t.nativeRemoveChild&&V4(K);return g}}(Q),Q.nativeReplaceChild=O.prototype.replaceChild,O.prototype.replaceChild=function(t){return function(K,L){if(K instanceof DocumentFragment){var g=Array.from(K.children);
K=t.nativeReplaceChild.call(this,K,L);if(this.isConnected)for(V4(L),L=_.E(g),g=L.next();!g.done;g=L.next())jN(g.value);return K}g=K instanceof Element&&K.isConnected;var P=this.isConnected,I=t.nativeReplaceChild.call(this,K,L);P&&V4(L);g&&V4(K);P&&jN(K);return I}}(Q);
Y=[Element];lM&&Y.push(lM.Wrapper);Y=_.E(Y);O=Y.next();for(Q={};!O.done;Q={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},O=Y.next())O=O.value,O.prototype.before=Ftt(O.prototype.before),O.prototype.after=Ftt(O.prototype.after),Q.nativeReplaceWith=O.prototype.replaceWith,O.prototype.replaceWith=function(t){return function(){var K=_.vs.apply(0,arguments),L=_.E(pQj(K)),g=L.next().value,
P=L.next().value;L=this.isConnected;t.nativeReplaceWith.apply(this,K);K=_.E(P);for(P=K.next();!P.done;P=K.next())V4(P.value);if(L)for(V4(this),g=_.E(g),L=g.next();!L.done;L=g.next())L=L.value,L instanceof Element&&jN(L)}}(Q),Q.nativeRemove=O.prototype.remove,O.prototype.remove=function(t){return function(){var K=this.isConnected;
t.nativeRemove.call(this);K&&V4(this)}}(Q),Q.nativeInsertAdjacentElement=O.prototype.insertAdjacentElement,O.prototype.insertAdjacentElement=function(t){return function(K,L){var g=L.isConnected;
K=t.nativeInsertAdjacentElement.call(this,K,L);g&&V4(L);K.isConnected&&jN(K);return K}}(Q),Q.nativeSetAttribute=O.prototype.setAttribute,O.prototype.setAttribute=function(t){return function(K,L){var g=zRa(this);
if(!g.usePatchedLifecycles)return t.nativeSetAttribute.call(this,K,L);var P=this.getAttribute(K);t.nativeSetAttribute.call(this,K,L);L=this.getAttribute(K);mrj(g,K,P,L)}}(Q),Q.nativeRemoveAttribute=O.prototype.removeAttribute,O.prototype.removeAttribute=function(t){return function(K){var L=zRa(this);
if(!L.usePatchedLifecycles)return t.nativeRemoveAttribute.call(this,K);var g=this.getAttribute(K);t.nativeRemoveAttribute.call(this,K);g!==null&&mrj(L,K,g,null)}}(Q),Q.nativeToggleAttribute=O.prototype.toggleAttribute,O.prototype.toggleAttribute=function(t){return function(K,L){var g=zRa(this);
if(!this.usePatchedLifecycles)return t.nativeToggleAttribute.call(this,K,L);var P=this.getAttribute(K),I=P!==null;L=t.nativeToggleAttribute.call(this,K,L);L!==I&&mrj(g,K,P,L?"":null);return L}}(Q);
Y=[Document,DocumentFragment,Element,ShadowRoot];lM&&Y.push(lM.Wrapper);Y=_.E(Y);for(Q=Y.next();!Q.done;Q=Y.next())Q=Q.value,Q.prototype.prepend=Ftt(Q.prototype.prepend),Q.prototype.append=Ftt(Q.prototype.append);(lM==null?void 0:lM.noPatch)===!0&&WtA();document.readyState==="complete"?jN(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&jN(document.body)});
var M=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");M&&M.get&&M.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:M.enumerable,configurable:!0,get:M.get,set:function(t){t||V4(this);M.set.call(this,t);return t}})}};
Ftt=function(Y){return function(){var G=_.vs.apply(0,arguments),u=_.E(pQj(G)),O=u.next().value;u=u.next().value;Y.apply(this,G);G=_.E(u);for(u=G.next();!u.done;u=G.next())V4(u.value);if(this.isConnected)for(O=_.E(O),G=O.next();!G.done;G=O.next())G=G.value,G instanceof Element&&jN(G)}};
WtA=function(){for(var Y=_.E(xr1),G=Y.next();!G.done;G=Y.next()){G=G.value.prototype;for(var u=_.E(fXa),O=u.next();!O.done;O=u.next()){O=O.value;var Q=Object.getOwnPropertyDescriptor(G,O);Q&&Object.defineProperty(G,"__shady_native_"+O,Q)}}};
mrj=function(Y,G,u,O){var Q,M;if((Q=Y.polymerController)==null?0:(M=Q.observedAttributes)==null?0:M.includes(G))if(Y=Y.polymerController,Y.attributeChangedCallbackWrapper)Y.attributeChangedCallbackWrapper.call(Y,G,u,O);else{var t;(t=Y.attributeChangedCallback)==null||t.call(Y,G,u,O)}};
pQj=function(Y){var G=[],u=[];Y=_.E(Y);for(var O=Y.next();!O.done;O=Y.next())O=O.value,O instanceof Element&&O.isConnected&&u.push(O),O instanceof DocumentFragment?G.push.apply(G,_.c8(Array.from(O.children))):G.push(O);return[G,u]};
zRa=function(Y){return!(Y instanceof Element)&&Y.node instanceof Element?Y.node:Y};
Ctj=function(Y,G){var u=G?["children"].concat(_.c8(G)):["children"];G=[];u=_.E(u);for(var O=u.next();!O.done;O=u.next()){var Q=O.value;if(Y.hasOwnProperty(Q)){Q==="children"?O=_.T(_.GY,null,Y[Q]):(O=Y[Q],O=typeof O==="function"?O():O,O=Array.isArray(O)?O:[O]);O=I1(O).flat();if(Q!=="children"){Q=qLI(Q);for(var M=_.E(O),t=M.next();!t.done;t=M.next())t=t.value,t instanceof Element&&t.setAttribute("slot",Q)}G.push(O)}}G.length===0?Y=[]:(Y=I1(_.T("div",null,G)),Y=Array.from(Y.childNodes));return Y};
eRu=function(Y,G,u){var O={};_.iF(function(){var Q={},M;for(M in G)if(G.hasOwnProperty(M)){var t=void 0,K=void 0;if(!(((t=u.slotProps)==null?0:t.includes(M))||M==="children"||((K=u.callbackProps)==null?0:K.includes(M))||M==="ref")&&(t=_.hT(G[M]),O[M]!==t)){O[M]=t;K=void 0;var L=(K=Y.hostElement)!=null?K:Y;!u.skipHostForwardedProps&&ykA.has(M)&&(L[M]=t);Q[M]=t}}zX(function(){if(Y.setProperties)Y.setProperties(Q);else for(var g=_.E(Object.entries(Q)),P=g.next();!P.done;P=g.next()){var I=_.E(P.value);
P=I.next().value;I=I.next().value;Y[P]=I}})},"n")};
o1j=function(Y,G,u,O){var Q=Ctj(u,O.slotProps),M=(0,_.sb)(Y);Q=_.E(Q);for(var t=Q.next();!t.done;t=Q.next())M.appendChild(t.value);eRu(G,u,O);O=_.E(O.callbackProps||[]);Q=O.next();for(M={};!Q.done;M={kebabEventName:void 0,eventListener:void 0},Q=O.next())t=Q=Q.value,String(Q).substring(0,2)==="on"&&u[t]?(M.kebabEventName=qLI(String(Q).substring(2)),M.eventListener=u[t],Y.addEventListener(M.kebabEventName,M.eventListener),_.w_(function(P){return function(){Y.removeEventListener(P.kebabEventName,P.eventListener)}}(M))):
G[t]=u[t];
if(u.ref){u=_.E(AkA(u.ref));var K=u.next().value,L=u.next().value,g=G.attached.bind(G);G.attached=function(){K(Y);g()};
_.w_(function(){L()})}};
AkA=function(Y){if(typeof Y==="function"){var G;return[function(u){G=Y(u)},
function(){var u;(u=G)==null||u()}]}if(!Y.onRender||!Y.onUnmount)throw Error("Tg");
return[Y.onRender,Y.onUnmount]};
ig1=function(Y,G){G=G===void 0?{}:G;var u=function(O){var Q=document.createElement(Y),M;var t=(M=Q.polymerController)!=null?M:Q;o1j(Q,t,O,G);return Q};
u.debugName=Y;return u};
Dru=function(Y,G,u,O,Q){O=O===void 0?{}:O;var M=RRA,t=!1;M?(t=!0,RRA=void 0):(wQA=G,M=document.createElement(G),wQA=void 0);var K=M;K.usePatchedLifecycles=!0;K.lifecycleIsConnected=!1;M.loggingStatus={};var L=ZgA(Y,G,M,O,Q);_.w_(function(){K.lifecycleIsConnected&&(K.lifecycleIsConnected=!1,L.disconnectedCallback())});
t||(M.__noInsertionPoint=!0,o1j(M,L,u,O));return M};
ZgA=function(Y,G,u,O,Q){Q=Q===void 0?E1j:Q;hRj[G]!=null||(hRj[G]=Q(Y,G,O==null?void 0:O.getTemplate,O));var M=hRj[G],t=M.ctor;Q=M.getInitialMethods;var K=M.getPropsToForwardBeforeReady;Y=M.getPropsToForwardBeforeRegister;O=M.shouldForwardProp;var L=M.observedAttributes,g=M.shouldLog,P=t(u,{beforeReady:function(){var I=P;I._takeAttributes?I._takeAttributes():I.setPropertiesFromInitialAttributeValues&&I.setPropertiesFromInitialAttributeValues();I=_.E(K(u.polymerController));for(var k=I.next();!k.done;k=
I.next()){var n=_.E(k.value);k=n.next().value;n=n.next().value;aXU(u,k,n);g(G)&&!Nb(k)&&g1t(u.polymerController,k)}u.polymerController=ioA(P,G)}});
u.polymerController=P;u.polymerController.observedAttributes=L;M=_.E(P.getExtraMethodsToForward());for(t=M.next();!t.done;t=M.next())L=_.E(t.value),t=L.next().value,L=L.next().value,TlY(u,t,L);Q=_.E(Q());for(M=Q.next();!M.done;M=Q.next())M=M.value,O(M)&&TlY(u,M),g(G)&&!Nb(M)&&LtI(P,M);Y=_.E(Y());for(O=Y.next();!O.done;O=Y.next())Q=_.E(O.value),O=Q.next().value,Q=Q.next().value,aXU(u,O,Q);return P};
drA=function(Y){var G=Bn;Bn=Y;return G};
Nlt=function(Y){if(bgj.has(Y)&&Bn&&SFt(Bn)===Y){var G;(G=Bn)._numRenders!=null||(G._numRenders=0);Bn._numRenders++;if(Bn._numRenders>1)throw Error("Ug");return Bn}};
Vz4=function(Y){var G=SFt(Y);Bn!==Y&&G.includes("-")&&jJu.set(Y,!0)};
SFt=function(Y){var G;return(G=Y==null?void 0:Y.tagName.toLowerCase())!=null?G:""};
lXA=function(Y,G){if(Y.componentType===Ww)throw Error("Vg");bgj.add(G);var u=function(){var O=HTMLElement.call(this)||this;O.is=G;if(wQA===G)return O.isInert=!0,O;O.createElement();return O};
_.m(u,HTMLElement);u.prototype.createElement=function(){if(!this.isInert){RRA=this;var O=_.E(YUj(function(){return _.T(Y,null)})).next().value;
RRA=void 0;RKI(this);return O}};
customElements.define(G,u)};
$rA=function(Y,G,u,O,Q){Y.prototype.is=G;(O==null?0:O.useSink)?Blt(Y,G,u,O,Q):(u=E1j(Y,G,u,O),XQy(u,G));return Y};
Blt=function(Y,G,u,O,Q){rkj();var M=_.D(function(t){return Dru(Y,G,t,Object.assign({},O,{getTemplate:u}),Q)},"o");
M.debugName=G;lXA(M,G);return M};
sJt=function(Y){return!qFj.has(Y)};
v14=function(Y,G,u,O){function Q(){if(!I){for(var k=new Set(ckj),n=_.E(M.behaviors),p=n.next();!p.done;p=n.next()){p=p.value;for(var W=_.E(Object.getOwnPropertyNames(p)),C=W.next();!C.done;C=W.next()){C=C.value;var e=void 0,w=(e=Object.getOwnPropertyDescriptor(p,C))==null?void 0:e.value;w&&w instanceof Function&&(!g[C]||_.F("polymer_forward_method_killswitch"))&&k.add(C)}}n=_.E(Object.entries(Object.getOwnPropertyDescriptors(Y.prototype)));for(p=n.next();!p.done;p=n.next())W=_.E(p.value),p=W.next().value,
W=W.next().value,W.value instanceof Function&&k.add(p);I=k}return I}
var M=i9y({is:G,disableElementRegistration:!1,getTemplate:u,providers:O==null?void 0:O.providers,reactivityMode:O==null?void 0:O.reactivityMode},Y);if((O==null?0:O.allowedProps)||(O==null?0:O.allowedPropsFromBehaviors)){var t,K;M.allowedProps=[].concat(_.c8((t=O.allowedProps)!=null?t:[]),_.c8((K=O.allowedPropsFromBehaviors)!=null?K:[]))}var L=xf4(M,Y);G=L.observedAttributes;var g={};u=_.E(M.reactiveSchemas);for(O=u.next();!O.done;O=u.next())if(O=O.value,O.type==="signal")g[O.propertyKey]={readOnly:O.readOnly},
O.readOnly&&(g[OSI(O.propertyKey)]={readOnly:!0});else if(O.type==="compute"||O.type==="computeWithMethod"||O.type==="redux")g[O.propertyKey]={readOnly:!0};var P=M.reactiveSchemas.length,I;return{ctor:function(k,n){k=new L(k);k.beforeReady=n.beforeReady;return k},
props:g,observedAttributes:G,getInitialMethods:Q,getPropsToForwardBeforeRegister:function(){for(var k=[],n=new Set,p=_.E(UrI),W=p.next();!W.done;W=p.next())W=W.value,k.push([W,W!=="observers"&&W!=="properties"]),n.add(W);p=_.E(Object.keys(g));for(W=p.next();!W.done;W=p.next())W=W.value,k.push([W,g[W].readOnly]),n.add(W);p=Q();W=_.E(Object.keys(Object.getOwnPropertyDescriptors(Y.prototype)));for(var C=W.next();!C.done;C=W.next())C=C.value,!sJt(C)||p.has(C)||n.has(C)||(k.push([C,!1]),n.add(C));k.push(["allowedProps",
!0]);return k},
getPropsToForwardBeforeReady:function(k){var n=[];k=_.E(Object.keys(k));for(var p=k.next();!p.done;p=k.next()){p=p.value;var W=Q();sJt(p)&&!W.has(p)&&n.push([p,!1])}k=_.E(M.reactiveSchemas.slice(P));for(p=k.next();!p.done;p=k.next())p=p.value,p.type!=="compute"&&p.type!=="computeWithMethod"&&p.type!=="redux"&&p.type!=="signal"||n.push([p.propertyKey,p.type==="signal"?p.readOnly:!0]);return n},
shouldForwardProp:sJt,shouldLog:tj}};
_.d=function(Y,G,u,O){var Q,M,t=(M=(Q=O)==null?void 0:Q.mode)!=null?M:0;O!=null||(O={});var K;(K=O).reactivityMode!=null||(K.reactivityMode=0);return t===1?$rA(Y,G,u,Object.assign({},O,{useSink:!0}),v14):$rA(Y,G,u,Object.assign({},O,{useSink:t===2}))};
_.$o=function(){return function(Y,G,u,O){var Q,M,t=(M=(Q=O)==null?void 0:Q.mode)!=null?M:2;O!=null||(O={});var K;(K=O).reactivityMode!=null||(K.reactivityMode=0);if(t===0)throw Error("Wg`"+t);return Blt(Y,G,u,O,t===1?v14:void 0)}};
qb=function(Y){return Y?Y.icon?Y.icon.iconType.toLowerCase():Y.customThumbnail?"member":"":""};
JkU=function(Y){if(!Y)return"";Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next())if((G=G.value)&&G.liveChatAuthorBadgeRenderer&&(G=qb(G.liveChatAuthorBadgeRenderer))&&G!=="verified")return G;return""};
YCI=function(Y,G){if(!Y)return null;var u;return((u=Y.find(function(O){return O&&O.liveChatAuthorBadgeRenderer?qb(O.liveChatAuthorBadgeRenderer)===G:!1}))==null?void 0:u.liveChatAuthorBadgeRenderer)||null};
_.OFU=function(Y){var G=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;Y=B0j(Y);G=B0j(G);var u=Jmy(Y.hex);G=Jmy(G.hex);var O=G[0]/255;var Q=G[1]/255,M=G[2]/255,t=Math.max(O,Q,M),K=Math.min(O,Q,M),L=0,g=0,P=.5*(t+K);t!=K&&(t==O?L=60*(Q-M)/(t-K):t==Q?L=60*(M-O)/(t-K)+120:t==M&&(L=60*(O-Q)/(t-K)+240),g=0<P&&P<=.5?(t-K)/(2*P):(t-K)/(2-2*P));O=[Math.round(L+360)%360,g,P];u=Gzt(u,G);for(Y=uMu(Y.hex);u<4.5;){Y=O[2]>=.5?Y.darker((4.5-u)/2):Y.brighter((4.5-u)/2);u=Y.toString();
Q=s9U(u);if(!Q.length)throw Error("Yd`"+u);u=Q;u=Gzt(u,G)}return Y.hex()};
Gzt=function(Y,G){Y=_.Z0I(Y);G=_.Z0I(G);return(Math.max(Y,G)+.05)/(Math.min(Y,G)+.05)};
_.sx=function(Y){return"#"+("000000"+(Y&16777215).toString(16)).slice(-6)};
_.Qju=function(Y){for(var G=0,u=0;u<Y.length;u++)G=Y.charCodeAt(u)+((G<<5)-G);Y="#";for(u=0;u<3;u++)Y+=("00"+(G>>u*8&255).toString(16)).slice(-2);return Y};
MBI=function(Y){Y=(Y||"").split(":");Y.length===1&&Y.unshift("yt-icons");Y[1]=Y[1].toLowerCase();return Y};
T6t=function(Y,G){var u=(G=G===void 0?!1:G)?HFu:EPU,O=G?tBA:KYy;Y.getIconNames().forEach(function(Q){Q=G?Q:Q.substring(Q.indexOf(":")+1);Y.name==="yt-icons"?aOt.add(Q):Q.includes("-filled")?u.add(Q):O.add(Q)})};
cn=function(Y,G,u,O){u=u===void 0?!1:u;O=O===void 0?!1:O;var Q,M,t;return _.a(function(K){if(K.nextAddress==1)return K.yield(LYa,2);if(O)return K.return(aOt.has(Y));Q=u?HFu:EPU;M=u?tBA:KYy;return G?(t=Y.includes("-filled")?Y:Y.concat("-filled"),K.return(Q.has(t))):K.return(M.has(Y))})};
_.Ux=function(Y){if(gPy(Y))return Y.toString();var G=XPY.get(Y);if(G)return G;G=Y.toLowerCase();var u="yt-icons",O=G.replace(/_/g,"-");switch(Y){case "MY_CHANNEL":G="account_circle";break;case "ADD_TO_LIBRARY":G="add";break;case "ALERT_WARN_RED":G="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":G="person_music";break;case "BLOCK_USER":G="block";break;case "CAPTIONS":G="closed_caption";break;case "CLOSED_CAPTION":u="av";G="closed-caption";break;case "COLLECTION":u="maps";G="layers";break;case "CONTACT":u=
"icons";G="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":u="yt-studio-system-icons";G=O.split("creator-studio-")[1];break;case "DISMISSAL":G="close";break;case "DO_NOT_DISTURB":G="block";break;case "DOGFOOD":u="icons";G="pets";break;case "DRAFT":G="paper_corner_folded";
break;case "EMPTY_LIKE":G="like_outline";break;case "EXIT_APP":G="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":G=O;break;case "GAMES":u="ytg";G="my-games";break;case "GO_TO_PAGE":G="arrow-forward";break;case "GROUP":u="social";break;case "HIDE":G="not_interested";break;case "INPUT_COMPONENT":u="icons";G="settings-input-component";break;case "KIDS_BLOCK":G="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":u="ytg";G="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":u=
"ytg";G="membership-post-purchase";break;case "MULTIVIEW":G="screen_multi_view";break;case "MY_LOCATION":u="maps";G=O;break;case "NOTIFICATIONS_INBOX":G="NOTIFICATIONS";break;case "NEXT":G="chevron_right";break;case "OFFLINE":G="power-settings-new";break;case "PAUSE":u="miniplayer";break;case "PAYMENT":u="icons";break;case "PHONE_DOWNLOAD":G="phone_download";break;case "PREMIUM_STANDALONE":u="yt-logos";G="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":u="yt-logos";G="premium_standalone_cairo";
break;case "QUESTION_ANSWER":G="question_answer";break;case "REDEEM":u="icons";G="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":G="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":G="library_add";break;case "SCHOOL":u="yt-sys-icons";G="creator_academy";break;case "SETTINGS_LIGHT":G="settings_applications";break;case "SETTINGS_MATERIAL":G="settings";break;case "SEARCH_HISTORY":G="watch_history";break;case "SHOPPING_BAG":G="bag";break;case "SOCIAL":case "PEOPLE":u=
"yt-icons";G="people";break;case "STAFF_PICK":u="ytg";G="spotlight";break;case "START_DVR":G="add";break;case "STOP_DVR":u="av";G="stop";break;case "TAB_LIKED":G="like";break;case "TAB_INBOX":G="mail";break;case "TERMS_OF_SERVICE":u="icons";G="description";break;case "TRENDING":G="fire";break;case "UNBLOCK_USER":G="remove";break;case "UNPLUGGED_DARK_THEME":u="image";G="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":G="live";break;case "UNPLUGGED_SPORTS":u="ytu";G="visibility-off";break;
case "VIDEOS":u="av";G="play-circle-filled";break;case "YOUTUBE":u="yt-logos";G="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":u="yt-logos-ext";G="yt-logo-red-updated";break;case "YOUTUBE_LOGO":u="yt-logos-ext";G="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":u="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":u="shorts";G=O;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":u="yt-sys-icons";G="youtube_improve_tv";break;case "OUTLINE_BAG":u=
"yt-sys-icons";G="bag";break;case "QUEUE_PLAY_LAST":u="yt-sys-icons";G="list_queue_last";break;case "SLASH_CIRCLE_LEFT":G="slash_circle_left";break;case "SPEED_1_POINT_2X":G="1_point_2x";break;case "SPEED_1_POINT_5X":G="1_point_5x";break;case "SPEED_1_POINT_8X":G="1_point_8x";break;case "SPEED_POINT_2X":G="point_2x";break;case "SPEED_POINT_5X":G="point_5x";break;case "SPEED_POINT_8X":G="point_8x";break;case "SPEED_1X":G="1x";break;case "SPEED_2X":G="2x";break;case "TAB_BOOKMARK":G="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":u="yt-sys-icons";G="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":u="yt-sys-icons";G="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":u="yt-sys-icons",G="tic_tac_toe"}G=u+":"+G;XPY.set(Y,G);return G};
gPy=function(Y){var G;_.F("kevlar_use_wil_icons")?G=!!_.sH().resolve(_.vn).resolveIcon({iconName:Y.toString()}):G=!1;return G};
_.Yy=function(Y,G,u,O){u=u===void 0?{}:u;O=O===void 0?!1:O;u===null&&(u={});var Q=_.O5("kevlar_command_handler_command_banlist");Q=_.E(Q);for(var M=Q.next();!M.done;M=Q.next())if(M=Y?Y.hasOwnProperty(M.value):void 0,M)return!1;Q=_.z(Y.commandMetadata,_.ug);return O&&Q!=null&&Q.url?!1:!G.disableCommandHandlerOverride&&_.Jj.instance?(O=_.Jj.instance,u.form||(u.form={element:G}),u.form.element||(u.form.element=G),!u.clickedVisualElement&&G.visualElement&&(u.clickedVisualElement=G.visualElement),O.resolveCommand(Y,
u),!0):!1};
PUY=function(Y,G){Y=GU(Y);for(var u=_.E(Y.visibilityMonitorKeys||[]),O=u.next();!O.done;O=u.next())G.unobserveByKey(O.value);Y.visibilityMonitorKeys=void 0};
uq=function(Y,G){if(_.FA()){if(_.F("kevlar_vimio_use_shared_monitor"))IOI(Y,G.data);else if(!IOI(Y,G.data))return;var u=G.data,O=kzY(u);if(_.F("enable_client_ve_spec_logging"))PUY(Y,G.observer);else{var Q=GU(Y);Q.trackedParams&&Q.trackedParams!==O&&PUY(Y,G.observer)}Q=GU(Y);!u||Q.data&&Q.data===u||(Q.data=u);nPT(Y,G);Q.trackedParams=O}};
nPT=function(Y,G){var u=G.observer;if(!u&&_.F("web_skip_missing_vimio_observer")){var O,Q;_.R0(new _.I2("VisibilityObserver is not defined.",Y.tagName,Y.trackedParams,(O=G.data)==null?void 0:O.trackingParams,(Q=G.data)==null?void 0:Q.loggingDirectives))}else{var M=G.layer,t=G.visibilityCallback||function(){},K=G.prescanCallback,L=GU(Y);
O=[];G.showOption&&O.push(u.observe(Y,function(){G.skipLogging&&G.skipLogging()||_.O3().reportShown(L,void 0,M,7);t(!0)},G.showOption));
G.hideOption&&O.push(u.observe(Y,function(){_.O3().reportHidden(L,void 0,M,7);t(!1)},G.hideOption));
G.prescanOption&&K&&O.push(u.observe(Y,function(){K()},G.prescanOption));
L.visibilityMonitorKeys=O}};
IOI=function(Y,G){Y=GU(Y);if(Y.visualElement&&!G)return!0;if(!G)return!1;var u=!1;if(_.F("enable_client_ve_spec_logging")){var O,Q;u=!!((O=G.loggingDirectives)==null?0:(Q=O.clientVeSpec)==null?0:Q.uiType)}O=kzY(G);if(!O&&!u)return!1;_.F("mweb_component_visibility_logging")&&(Y.veContainer||(Y.veContainer={}),Y.veContainer.trackingParams=O);if(Y.trackedParams&&Y.trackedParams===O)return!1;var M;if(_.F("enable_client_ve_spec_logging")&&((M=Y.visualElement)==null?0:M.isClientVe())){var t;M=(t=Y.visualElement)==
null?void 0:t.getAsJspb();var K,L,g,P;if(_.Sh(M,2)===((K=G.loggingDirectives)==null?void 0:(L=K.clientVeSpec)==null?void 0:L.uiType)&&_.Sh(M,3,-1)===((g=G.loggingDirectives)==null?void 0:(P=g.clientVeSpec)==null?void 0:P.elementIndex))return!1}if(_.F("enable_client_ve_spec_logging")){var I,k;!Y.visualElement&&((I=G.loggingDirectives)==null?0:(k=I.clientVeSpec)==null?0:k.uiType)&&(K=G.loggingDirectives.clientVeSpec,G=K.uiType,t=K.elementIndex,K=K.clientYoutubeData,Y.visualElement=_.QZ(_.M4(),{veType:G,
elementIndex:t,clientYouTubeData:K}))}return!0};
kzY=function(Y){if(Y==null?0:Y.rendererContext){var G=_.z(Y.rendererContext,_.H3);if(G==null?0:G.loggingDirectives)return G.loggingDirectives.trackingParams}return(Y==null?0:Y.loggingDirectives)?Y.loggingDirectives.trackingParams:Y==null?void 0:Y.trackingParams};
GU=function(Y){var G;return(G=Y.polymerController)!=null?G:Y};
mV4=function(Y){_.O3();if(_.bi(E3().JSC$13072_elementShouldLogGesture).bind(E3())(Y,4)){FYU(Y);var G=pPj(Y);zGu.set(Y,G)}};
FYU=function(Y){zGu.has(Y)&&(zGu.get(Y).cancel("untrack hover element"),zGu.delete(Y))};
pPj=function(Y){var G,u=[],O=!1,Q=new _.a0(function(M,t){n7(Y,"mouseenter",_.bi(function(){var K,L,g;return _.a(function(P){if(P.nextAddress==1)return G=(0,_.GC)(),K=WYt(Y),u.push(K),L=rbj(Y,function(){O=!0;t(Error("Xg"))}),P.yield(K,2);
if(P.nextAddress!=3)return L&&tR(L),g=xVY(Y),u.push(g),P.yield(g,3);M();_.Sd(P)})}))});
Q.then(function(){var M=(0,_.GC)()-G;M=Math.round(M);if(!(500>M||6E5<=M)){var t=Y.getScreenLayer?Y.getScreenLayer():void 0;t=_.FA(t)||"";var K=fOa(_.O3(),Y);_.wS(t,Y.visualElement?Y.visualElement:_.Kd(K),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:M}})}mV4(Y)},function(){aD&&(aD(),aD=null);
O&&(FYU(Y),mV4(Y))});
return Q};
WYt=function(Y){var G;return(new _.a0(function(u,O){aD=function(){O(Error("Yg"))};
G=_.AN.debounce(_.bi(function(){tR(Q);u()}),1,100);
var Q=_.yn(Y,"mousemove",G)})).thenCatch(function(){var u=_.AN.cancelDebouncedJobMap.get(G);
u&&_.AN.cancelJob(u)})};
xVY=function(Y){var G;return(new _.a0(function(u,O){aD=function(){O(Error("Zg"))};
G=n7(Y,"mouseleave",_.bi(function(){u()}))})).thenCatch(function(){tR(G)})};
rbj=function(Y,G){return n7(Y,"mouseleave",_.bi(G))};
ybI=function(Y){CUa&&_.TU.cancel(CUa);CUa=_.TU.run(function(){_.$s(Y,"yt-visibility-refresh");CUa=0})};
eGy=function(Y){Y=Number(Y);return"rgba("+[Y>>16&255,Y>>8&255,Y&255,(Y>>24&255)/255].join()+")"};
oPj=function(Y){if(!Y)return!1;if(_.z(Y,_.Ab4))return!0;var G;if(Y=(G=_.z(Y,_.Jv))==null?void 0:G.commands)for(G=_.E(Y),Y=G.next();!Y.done;Y=G.next())if(_.z(Y.value,_.Ab4))return!0;return!1};
iFT=function(Y){var G=!0;G=G===void 0?!0:G;if(!Y.useSignals&&!Y.experimentalPropertiesChanged||_.F("experimental_templating_behavior_nopatch_killswitch")){var u=Y._propertiesChanged;Y._propertiesChanged=function(O,Q,M){G?Y.debounceRender():Y.doRender();u&&u.call(Y,O,Q,M)}}};
RGT=function(Y,G){if(Y.useSignals||Y.experimentalPropertiesChanged)if(_.F("experimental_templating_behavior_nopatch_killswitch"))Y.experimentalPropertiesChanged=function(){};
else return;var u=new Set,O=[Y].concat(_.c8(Y.behaviors));O=_.E(O);for(var Q=O.next();!Q.done;Q=O.next()){Q=Q.value;for(var M in Q.properties)u.has(M)||(Y._addPropertyEffect(M,"function",G),u.add(M))}};
wPt=function(){var Y=Polymer.Element,G=Y._prepareTemplate;Y._prepareTemplate=function(){G.call(this);var u=this.prototype;if(u.experimentalTemplatingInUse&&u.experimentalTemplatingInUse()&&u.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.o0(Error("$g"));else{u=this.template.content.childNodes;for(var O=u.length-1;O>=0;O--){var Q=u[O];Q.nodeName!=="STYLE"&&Q.nodeName!=="LINK"&&Q.nodeName!=="SCRIPT"&&Q.nodeName!=="#comment"&&Q.remove()}}}};
ZF1=function(Y){var G=!0;G=G===void 0?!0:G;wPt();var u=Y.ready;Y.ready=function(){this._template=null;u.call(this)};
RGT(Y,G?Y.debounceRender:Y.doRender)};
hGI=function(Y,G,u){if(u===null||u===void 0)return u;var O=U2j(Y.tagName.toLowerCase(),G,function(){throw Error("Vb");});
if(O===null)return u;O=DVj[O];var Q;if((Q=O.isUnwrappable)==null?0:Q.call(O,u)){if(O.unwrap)return O.unwrap(u);throw Error("ch");}return O.filterString?O.filterString(Y.tagName,G,String(u)):u};
dV4=function(Y,G,u){var O=G[G.length-1]!=="$";u=hGI(Y,G,u);O?Y[G]=u:(O=u==null?null:String(u),SE(Y,G.slice(0,-1),O))};
gH=function(Y){_.F("mweb_after_render_to_scheduler")?_.AN.addJob(function(){try{Y()}catch(G){_.Ld(G)}},8):(bFj.length===0&&requestAnimationFrame(function(){setTimeout(function(){var G=bFj.slice();
bFj.length=0;G=_.E(G);for(var u=G.next();!u.done;u=G.next()){u=u.value;try{u()}catch(O){_.Ld(O)}}})}),bFj.push(Y))};
SCT=function(Y){if(Y){var G=Y.component;if(G){var u;G==null||(u=G.events)==null||u.publish("DISCONNECTED");var O;G==null||(O=G.onDisconnected)==null||O.call(G)}var Q,M;(Q=Y.__spec)==null||(M=Q.didUnmount)==null||M.call(Q);for(G=0;G<Y.childNodes.length;G++)SCT(Y.childNodes[G])}};
_.XS=function(Y,G,u){u===void 0?delete Y[G.name]:Y[G.name]=u};
_.P3=function(Y){var G={androidIncludeFontPadding:!1},u=0,O=[],Q=[],M=[];if(Y.simpleText)return G.content=Y.simpleText,G;if(Y.runs===void 0)return G.content="",G;Y=_.E(Y.runs);for(var t=Y.next();!t.done;t=Y.next()){t=t.value;var K=t.text,L=void 0,g=(L=K)==null?void 0:L.length;if(K&&g){O.push(K);if(t.bold||t.italics||t.strikethrough||t.underline||t.textColor!=null&&t.textColor!==0||t.deemphasize){K=Q;L=K.push;var P={startIndex:u,length:g};t.bold&&(P.weightLabel="FONT_WEIGHT_MEDIUM");t.italics&&(P.italic=
!0);t.strikethrough&&(P.strikethrough="LINE_STYLE_SINGLE");t.underline&&(P.underline="LINE_STYLE_SINGLE");t.textColor!=null&&t.textColor!==0?document.documentElement.hasAttribute("dark")?P.fontColor=t.darkModeTextColor||t.textColor:P.fontColor=t.textColor:t.deemphasize&&(document.documentElement.hasAttribute("dark")?P.fontColor=parseInt("ff"+qSI("#aaa").substring(1),16):P.fontColor=parseInt("ff"+qSI("#606060").substring(1),16));L.call(K,P)}t.navigationEndpoint&&(K=M,L=K.push,P={startIndex:u,length:g,
onTap:{innertubeCommand:t.navigationEndpoint}},t.loggingDirectives&&_.XS(P,N6I,t.loggingDirectives),L.call(K,P));u+=g}}G.content=O.join("");G.styleRuns=Q.length?Q:void 0;G.commandRuns=M.length?M:void 0;return G};
VBj=function(Y){if(Y==null||!Y.runs)return!0;Y=_.E(Y.runs);for(var G=Y.next();!G.done;G=Y.next())if(G=G.value,G.bracket||G.errorUnderline||G.deemphasize||_.z(G,ID)||_.z(G,jjy))return!1;return!0};
lOA=function(Y,G){return function(u){var O=G.unit;if(O!==u)throw Error("fh`"+Y+"`"+O+"`"+u);return G}};
ky=function(Y){if(!((Y==null?0:Y.value)&&(Y==null?0:Y.unit)))return"";switch(Y.unit){case "DIMENSION_UNIT_FRACTION":var G="%";break;default:G="px"}Y=Y.value;G==="%"&&(Y*=100);return""+Y+G};
B6t=function(Y){try{return Y()}catch(G){_.R0(G)}};
_.FS=function(Y){var G=_.z(Y,_.nd);if(G)return G;if((G=_.z(Y,$VA))&&G.commands)return qCA(G.commands);if((G=_.z(Y,sj4))&&G.commands)return qCA(G.commands);if((Y=_.z(Y,cbu))&&Y.identifier&&Y.command&&(UVU||(UVU=[]),!UVU.includes(Y.identifier)))return UVU.push(Y.identifier),_.z(Y.command,_.nd)};
qCA=function(Y){if(Y.length!==0){var G=[];Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())(u=_.FS(u.value))&&G.push(u);return{commandExecutorCommand:{commands:G}}}};
_.zU=function(Y){var G=Y.defaultTarget,u=Y.elementConfig,O=Y.elementsCommand,Q=Y.skipOnClick,M=Y.forceNewState,t=Y.additionalCommandArgs,K=Y.innertubeCommand||_.FS(O);if(K){Y={};var L=vPj(K);O=L.navigatingCommand;L=L.href;O&&L?(Y.href$=L,Jby(Y,O,L,G),_.F("web_atagconfig_pointerdown")&&Y7j(Y,O),M&&(Y["force-new-state$"]=!0)):(Y.role$="button",Y.href$="javascript:void(0);");_.z(K,GZy)&&(Y["aria-haspopup$"]=!0);Q||(Y.onclick=function(g){var P={};if(u$A(g)){var I=(t==null?void 0:t.clickedVisualElement)||
(t==null?void 0:t.getClickedVisualElement)&&t.getClickedVisualElement();I&&(P={clickedVisualElement:I});P=Object.assign({},{form:{element:g.target,event:g,createScreenConfig:P}},t);g.preventDefault();_.pd(K,P)}});
return Object.assign({},u,Y)}};
O_A=function(Y){if(Y.length){if(Y.length===1)return Y[0];var G={};_.XS(G,_.Jv,{commands:Y});return G}};
ma=function(Y){return Y&&Y.href$!=="javascript:void(0);"};
vPj=function(Y){var G,u=((G=_.z(Y,_.Jv))==null?void 0:G.commands)||[Y];Y=_.E(u);for(G=Y.next();!G.done;G=Y.next()){G=G.value;var O=void 0,Q=void 0;u=(Q=_.z((O=G)==null?void 0:O.commandMetadata,_.ug))==null?void 0:Q.url;_.F("web_remove_web_navigation_endpoint_data")||(O=void 0,u=u||((O=_.z(G,QvY))==null?void 0:O.url));if(u&&u!=="/service_ajax"){if(O=_.qp(u,MsU))return Y=_.Bs(O),{navigatingCommand:G,href:Y};_.R0(new _.I2("AttributedString URL could not be sanitized",u))}}return{}};
u$A=function(Y){return Y.button!==void 0?Y.button===0&&!(Y.shiftKey||Y.altKey||Y.metaKey||Y.ctrlKey):!(Y.shiftKey||Y.altKey||Y.metaKey||Y.ctrlKey)};
Jby=function(Y,G,u,O){u=!$4(u);var Q,M,t;if((Q=_.z(G,_.Y3))!=null&&Q.nofollow||(M=_.z(G,_.ic))!=null&&M.nofollow||(t=_.z(G,_.SK))!=null&&t.nofollow||u)Y.rel$="nofollow";var K;G=((K=_.z(G,_.SK))==null?void 0:K.target)==="TARGET_NEW_WINDOW"?"_blank":O===void 0?"":O;Y.target$=G};
Y7j=function(Y,G){G.clickTrackingParams&&(Y.params={itct:G.clickTrackingParams});Y.onpointerdown=function(u){H_T(u)};
Y._data=G};
EeY=function(Y){(Y.loggingUrls||[]).forEach(function(G){VH(G.baseUrl,G.attributionSrcMode)})};
H_T=function(Y){var G=Y.currentTarget;Y=B6t(function(){return G.href});
var u=G.params;Y&&_.hv(Y,u||{},8,!0)};
_.W3=function(Y,G){(Y=_.FS(Y))&&_.pd(Y,G)};
_.pd=function(Y,G){_.UH(_.rH,function(u){G?u.resolveCommand(Y,G):u.resolveCommand(Y)})};
Tnj=function(Y,G){var u=["yt-core-attributed-string__link"];G!=null&&G.noLinkColor||((G==null?0:G.isOverlay)?u.push("yt-core-attributed-string__link--overlay-call-to-action-color"):u.push("yt-core-attributed-string__link--call-to-action-color"),(G==null?0:G.linkInheritColor)&&u.push("yt-core-attributed-string--link-inherit-color"));u={className:u.join(" "),tabindex$:"0"};var O=Y.onTap||Y.onLongPress;if(!O)return u;var Q=tsA(Y);Q&&(u["aria-label$"]=Q);G=_.zU({elementsCommand:O,elementConfig:u,skipOnClick:!(G==
null||!G.skipOnClick),forceNewState:!0});Y.onLongPress&&(O=new KCt(function(){var M=_.FS(Y.onLongPress);M&&_.sH().resolve(_.rH).resolveCommand(M)}),G&&ary(O,G));
return G||u};
tsA=function(Y){var G,u;return(G=Y.onTapOptions)==null?void 0:(u=G.accessibilityInfo)==null?void 0:u.accessibilityLabel};
LCI=function(Y){var G=Y;Y<=16777215&&(G+=parseInt("ff000000",16));return _.nB(G)};
get=function(Y){var G=Y.isDarkTheme;var u=Y.extension;Y=Y.runColor;var O=void 0;if(u=u==null?void 0:u.colorMap){G=G?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";u=_.E(u);for(var Q=u.next();!Q.done;Q=u.next())if(Q=Q.value,G===Q.key){O=Q.value;break}}O==null&&Y&&(O=Y);if(O)return LCI(O)};
xy=function(Y){var G=Y.config;var u=Y.image;var O=Y.imageConfig;var Q=Y.imageWrapperConfig;var M=Y.run;var t=Y.tag;var K=Y.textLength;var L=Y.startIndex===void 0?0:Y.startIndex;Y=Y.length;L===void 0&&(L=0);M={run:M,startIndex:L,endIndex:Y!==void 0?L+Y:K,tag:t};u&&(M.image=u);O&&(M.imageConfig=O);Q&&(M.imageWrapperConfig=Q);G&&(M.config=G);return M};
XlI=function(Y,G){if(Y.weight)return Y.weight;switch(Y.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 G?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
PHj=function(Y){switch(Y){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"}};
Irg=function(Y){switch(Y){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"}};
yZ=function(Y,G,u){var O=G;Y.content&&u&&(u=Y.content.indexOf("\n"),u!==-1&&(O=Math.min(G,u)));if(!Y.content||Y.content.length<=O)G=Y;else if(Y.attachmentRuns||Y.commandRuns||Y.decorationRuns||Y.styleRuns||Y.paragraphStyleRuns){G=fd(Y.content,O);u=O;var Q=Y.attachmentRuns;if(Q){var M=[];Q=_.E(Q);for(var t=Q.next();!t.done;t=Q.next())t=Object.assign({},t.value),t.startIndex===void 0||t.startIndex>=u||(t.length||(t.length=0),t.length+t.startIndex>u&&(t.length=u-t.startIndex),M.push(t));u=M}else u=void 0;
M=kZj(O,Y.commandRuns);Q=O;var K=Y.decorationRuns;if(K){t=[];K=_.E(K);for(var L=K.next();!L.done;L=K.next()){L=L.value;var g=_.z(L.textDecorator,Cd);if(g&&g.startIndex!==void 0&&!(g.startIndex>=Q)){L=Object.assign({},L,{textDecorator:{highlightTextDecorator:Object.assign({},g)}});g=_.z(L.textDecorator,Cd);if(!g.length||g.length+g.startIndex>Q)g.length=Q-g.startIndex;t.push(L)}}Q=t}else Q=void 0;t=kZj(O,Y.styleRuns);if(K=Y.paragraphStyleRuns)for(Y=[],K=_.E(K),L=K.next();!L.done;L=K.next()){var P=L.value;
L=Object.assign({},P);if(!(L.startIndex===void 0||L.startIndex>=O)){if(!L.length||L.length+L.startIndex>O)L.length=O-L.startIndex;g=[];var I=void 0,k=void 0;if((I=P)==null?0:(k=I.listGroup)==null?0:k.listItems)for(P=_.E(P.listGroup.listItems),I=P.next();!I.done;I=P.next())if(I=Object.assign({},I.value),!(I.startIndex===void 0||I.startIndex>=O)){if(!I.length||I.length+I.startIndex>O)I.length=O-I.startIndex;g.push(I)}g.length>0&&(L.listGroup||(L.listGroup={}),L.listGroup=Object.assign({},L.listGroup,
{listItems:g}));Y.push(L)}}else Y=void 0;G={content:G,attachmentRuns:u,commandRuns:M,decorationRuns:Q,styleRuns:t,paragraphStyleRuns:Y}}else G=Object.assign({},Y,{content:fd(Y.content,O)});return G};
kZj=function(Y,G){if(G){var u=[];G=_.E(G);for(var O=G.next();!O.done;O=G.next())if(O=Object.assign({},O.value),!(O.startIndex===void 0||O.startIndex>=Y)){if(!O.length||O.length+O.startIndex>Y)O.length=Y-O.startIndex;u.push(O)}return u}};
fd=function(Y,G){var u=G,O;if(O=u>0)O=Y.charCodeAt(u-1),O=O>=55296&&O<=56319;O&&(u=Y.charCodeAt(u),O=u>=56320&&u<=57343);O&&--G;return Y.substring(0,G)};
_.ek=function(Y){return(Y==null?void 0:Y.content)!==void 0};
plj=function(Y){return function(G){var u=Y.run;(u.onTap!==void 0||u.onLongPress!==void 0)&&_.z(u,N6I)&&uq(G,{data:{loggingDirectives:_.z(u,N6I)},observer:_.sH().resolve(cY),hideOption:ne4,showOption:FCj,layer:G.layer})}};
zJg=function(Y){return function(G){for(var u in Y)($7[u]||$7[Nc["default"]])(G,u,Y[u])}};
mkt=function(Y,G,u,O){for(var Q=_.E(Y.parts),M=Q.next();!M.done;M=Q.next()){M=M.value;if(typeof M==="string")throw Error("hh");if(M.start<=G&&u<=M.end){mkt(M,G,u,O);return}}Y.parts.push({data:O,parts:[],start:G,end:u})};
WCt=function(Y,G){for(var u=G.parts.length;u>=0;u--){var O=G.parts[u],Q=G.parts[u-1],M=u===G.parts.length?G.end:O.start;Q=u===0?G.start:Q.end;M!==Q&&G.parts.splice(u,0,Y.slice(Q,M));O&&WCt(Y,O)}};
rAg=function(Y){Y.sort(function(G,u){if(G.startIndex<u.startIndex)return-1;if(u.startIndex<G.startIndex)return 1;G=G.endIndex-G.startIndex;u=u.endIndex-u.startIndex;return G>u?-1:u>G?1:0})};
_.xk1=function(Y){var G=Y.thumbnails;if(G){Y={sources:[]};G=_.E(G);for(var u=G.next();!u.done;u=G.next()){u=u.value;var O={};O.url=u.url;O.width=u.width;O.height=u.height;Y.sources.push(O)}return Y}};
frU=function(Y,G,u,O){if(!G)return Y.length>=1?Y[Y.length-1]:null;if(O)for(var Q=_.E(Y),M=Q.next();!M.done;M=Q.next()){M=M.value;var t=void 0,K=(t=M.url)==null?void 0:t.indexOf(O);if(K!==void 0&&K>=0)return M}O=_.E(Y);for(Q=O.next();!Q.done;Q=O.next())if(Q=Q.value,Q.width&&Q.height&&(u&&Q.width>=G||!u&&Q.height>=G))return Q;for(G=Y.length-1;G>=0;G--)if(u&&Y[G].width||!u&&Y[G].height)return Y[G];return Y[0]};
_.CHt=function(Y){var G;return(Y=(G=Y.sources)==null?void 0:G[0])?Y.width/Y.height:0};
_.yAt=function(Y){if(Y.sources){Y=_.E(Y.sources);for(var G=Y.next();!G.done;G=Y.next()){G=G.value;var u=void 0;if((u=G.clientResource)==null?0:u.imageName)return G}}};
AA4=function(Y){var G={};Y=_.z(Y.processor,eJt);var u=(Y=Y==null?void 0:(u=Y.imageTint)==null?void 0:u.color)?_.nB(Y):void 0;u&&(G.color=u);return G};
oe1=function(Y){var G;if((G=Y.clientResource)!=null&&G.imageColor)return _.nB(Y.clientResource.imageColor)};
_.RJU=function(Y,G,u,O,Q,M,t){if(!G||G.length===0||G[0].clientResource)return null;if(u&&G[0].url)return G[0].url;O===void 0&&(O=!0);if(O){var K;Y=i_g*(Q||(Y==null?void 0:(K=Y.getBoundingClientRect())==null?void 0:K.width)||0)}else{var L;Y=i_g*(M||(Y==null?void 0:(L=Y.getBoundingClientRect())==null?void 0:L.height)||0)}G=frU(G,Y,O,t);return(G==null?0:G.url)?G.url:(G==null?0:G.imageData)?G.imageData:null};
wlA=function(Y,G,u){u=u?[u]:[];Y.opacity&&u.push("opacity: "+Y.opacity+";");G&&Y.placeholderColor?(Y=_.nB(Y.placeholderColor),u.push("background-color: "+Y+";")):u.push("background-color: transparent;");return u.join(" ")};
Z_U=function(Y,G,u,O,Q){var M=["ytCoreImageHost"];G&&M.push(G);u||M.push("ytCoreImageFillParentHeight");O||M.push("ytCoreImageFillParentWidth");switch(Y.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":M.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":M.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":M.push("ytCoreImageContentModeCenter");break;default:M.push("ytCoreImageContentModeScaleToFill")}Y.flipForRtlLayout&&M.push("ytCoreImageFlipRtl");
switch(Q){case "TOP_START":var t;M.push(((t=document.body)==null?void 0:t.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return M.join(" ")};
hJ1=function(Y){var G;if(Y==null?0:(G=Y.clientResource)==null?0:G.imageName){var u;Y=(u=Y.clientResource)==null?void 0:u.imageName;a:{switch(Y){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":u="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":u="yt-logos-ext:yt-logo-updated";break a}u=void 0}return u||Dku.get(Y)||Y}};
S7j=function(Y){return _.F("mweb_wiz_skip_render")?dk1(Y):b_U(Y)};
dk1=function(Y){return function(G){var u=WUu("wink-root");Bw=jE.lastChild;roA();vC4(u,_.T(Y,G))}};
b_U=function(Y){var G=G===void 0?!1:G;return function(u){if(!G||!_.F("mweb_skip_keto_to_c3_if_no_data")||u.data!==void 0){var O=ui(!1);try{var Q=u.children;_.F("mweb_render_outside_patch_killswitch")||jE?Q?BY(_.T(Y,u,Q)):BY(_.T(Y,u)):_.R0(new _.I2("ketoToC3 called outside of a patch",{tagName:Y.TAG_NAME}))}finally{ui(O)}}}};
NnY=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
VsU=function(Y,G){Y.onViewportEntered=G;jvA.observe(Y)};
lra=function(){var Y={rootMargin:"10%",threshold:.01};_.F("mweb_enable_set_io_root_to_null_safari")?Y.root=null:_.F("mweb_enable_set_io_root_to_body_safari")&&(Y.root=document.body);return new IntersectionObserver(function(G,u){G.filter(function(O){return O.intersectionRect.height>0}).forEach(function(O){O=O.target;
if(!_.F("mweb_enable_only_update_image_when_connected")||O.isConnected!==!1){var Q;(Q=O.onViewportEntered)==null||Q.call(O);u.unobserve(O)}})},Y)};
Bna=function(Y,G,u,O,Q){function M(){if(O){var K=O.loadedClass,L=O.notifyOnUnloaded;K&&_.AR(Y,K);L&&Y.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function t(){var K=u(G,Y);K&&Y.getAttribute("src")!==K&&(_.F("mweb_enable_only_update_image_when_connected")&&Y.isConnected===!1||K===Y.src||(Y.src=K),M())}
Q=Q===void 0?!0:Q;Y.removeAttribute("src");M();G&&(Q?VsU(Y,t):t())};
$kg=function(Y,G,u){if(!G)return!1;G=u(G,Y);u=Y.getAttribute("src");return G&&G===u&&Y.complete};
q7g=function(Y,G){for(var u in G)u==="className"?Y.className=G[u]:($7[u]||$7[Nc.default])(Y,u,G[u])};
cAT=function(Y,G,u){u=u===void 0?!1:u;var O=Y.sources!==void 0?Y:_.xk1(Y);if(O){var Q=G.onload;G.onload=function(g){var P=g.target;u&&P.naturalWidth===120||_.oD(P,"ytCoreImageLoaded");G.notifyOnLoaded&&P.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));Q==null||Q(g)};
G.targetWidth&&G.preserveWidth&&(G.width=G.targetWidth);G.targetHeight&&G.preserveHeight&&(G.height=G.targetHeight);var M=_.yAt(O),t=M&&hJ1(M),K=AA4(O);if(t)return(Y=oe1(M)||K.color)&&(G.color=Y),{type:"icon",iconName:t,config:Object.assign({},G,G.alt?{}:{"aria-hidden$":"true"},{"aria-label$":G.alt,role:"img"})};if(Y.sources===void 0){G.alt=Y.accessibility&&Y.accessibility.accessibilityData&&Y.accessibility.accessibilityData.label||G.alt;G.style$=wlA(Y,G.shouldShowPlaceholder,G.style$);var L;G.isPreloaded=
!((L=_.z(Y,sva))==null||!L.isPreloaded)}G.contentMode&&!O.contentMode&&(O.contentMode=G.contentMode);G.className=Z_U(O,G.className,G.preserveHeight,G.preserveWidth,G.objectPosition);G.loadedClass="ytCoreImageLoaded";return{type:"image",image:O,config:G}}};
_.iq=function(){var Y=_.vs.apply(0,arguments);return _.yg(UkA,function(G){var u=Y.map(function(O){return O==null?void 0:O(G)});
return function(){return void u.forEach(function(O){return void(O==null?void 0:O())})}})};
vej=function(Y,G){var u=G==null?void 0:G.initial;return _.p2(function(){_.hT(!0);return u=Y(u)},{equals:G==null?void 0:G.isEqual},"rSlKsc")};
JAI=function(Y,G){if(Y===G)return!0;if(Y===void 0||G===void 0)return!1;var u,O,Q,M,t,K,L,g;return Y.content===G.content&&((u=Y.styleRuns)==null?void 0:u.length)===((O=G.styleRuns)==null?void 0:O.length)&&((Q=Y.commandRuns)==null?void 0:Q.length)===((M=G.commandRuns)==null?void 0:M.length)&&((t=Y.attachmentRuns)==null?void 0:t.length)===((K=G.attachmentRuns)==null?void 0:K.length)&&((L=Y.decorationRuns)==null?void 0:L.length)===((g=G.decorationRuns)==null?void 0:g.length)};
GqA=function(Y){return Y.parts.map(Ygj)};
Ygj=function(Y){if(typeof Y==="string")return Y;var G=Y.data;Y=G.image!==void 0&&G.imageConfig!==void 0?_.T("span",{el:_.iq(zJg(Y.data.imageWrapperConfig))},_.T(_.RD,Object.assign({},{data:Y.data.image},Y.data.imageConfig))):_.T(Y.data.tag,{el:_.iq(plj(Y.data),zJg(Y.data.config))},Y.parts.map(Ygj));return I1(Y)};
uDy=function(Y,G){return Y===G?!0:Y===void 0||G===void 0?!1:Y.noStyleRuns===G.noStyleRuns&&Y.noLinkColor===G.noLinkColor&&Y.noEndpoints===G.noEndpoints&&Y.headerRuns===G.headerRuns&&Y.isOverlay===G.isOverlay&&Y.linkInheritColor===G.linkInheritColor&&Y.userInput===G.userInput&&Y.isHeadline===G.isHeadline};
O6y=function(Y){return function(){var G,u,O,Q,M,t,K,L,g,P,I,k,n,p;return{ariaLabel:(G=Y.ariaLabel)==null?void 0:G.call(Y),className:(u=Y.className)==null?void 0:u.call(Y),ellipsisTruncate:(O=Y.ellipsisTruncate)==null?void 0:O.call(Y),isOverlay:(Q=Y.isOverlay)==null?void 0:Q.call(Y),linkInheritColor:(M=Y.linkInheritColor)==null?void 0:M.call(Y),noEndpoints:(t=Y.noEndpoints)==null?void 0:t.call(Y),noStyleRuns:(K=Y.noStyleRuns)==null?void 0:K.call(Y),noLinkColor:(L=Y.noLinkColor)==null?void 0:L.call(Y),
noPreWrap:(g=Y.noPreWrap)==null?void 0:g.call(Y),noWrap:(P=Y.noWrap)==null?void 0:P.call(Y),skipOnClick:(I=Y.skipOnClick)==null?void 0:I.call(Y),userInput:(k=Y.userInput)==null?void 0:k.call(Y),headerRuns:(n=Y.headerRuns)==null?void 0:n.call(Y),isHeadline:(p=Y.isHeadline)==null?void 0:p.call(Y)}}};
Mnt=function(Y,G){Y=new QpT(Y,G);_.o0(Y);throw Y;};
H61=function(Y,G,u){var O=drA(Y);Y._numRenders=0;try{var Q=YUj(function(){return _.T(G,Object.assign({},u))})}catch(t){var M=function(K){K.args||(K.args=[]);
K.args.push("Error in web component wrapper");K.args.push(Y.tagName.toLowerCase());return K};
_.ij(t instanceof Error?M(t):new QpT("Wiz rendering error",Y.tagName.toLowerCase()));throw t;}finally{drA(O)}return Q};
_.hR=function(Y,G,u){function O(P){var I={};P=_.E(P);for(var k=P.next();!k.done;k=P.next()){k=k.value;var n=void 0,p=void 0,W=void 0,C=_.OK((W=(p=(n=k).getAttribute)==null?void 0:p.call(n,"slot"))!=null?W:"children");if(n=I[C])n.push(k);else if(C in M||C==="children")I[C]=[k]}P=_.E(Object.keys(I));C=P.next();for(k={};!C.done;k={content$jscomp$64:void 0},C=P.next())C=C.value,C!=="children"&&(k.content$jscomp$64=I[C],I[C]=function(e){return function(){return e.content$jscomp$64}}(k));
return I}
u=u===void 0?{}:u;Y.debugName=G+" (CoW)";var Q,M=(Q=u.props)!=null?Q:{};bgj.add(G);var t=E0t();Q=function(){var P=t.apply(this,arguments)||this;P.rawProps={};P.queuingRender=!1;P.dispose=function(){};
P.isWebComponentWrapper=!0;P.isReparenting=!1;P.hasRendered=!1;return P};
_.m(Q,t);Q.prototype.render=function(){this.hasRendered=!0;for(var P=_.E([].concat(_.c8(this.attributes))),I=P.next();!I.done;I=P.next())I=I.value,I.name!=="slot"&&I.name!=="hidden"&&this.removeAttribute(I.name);P=Object.assign({},this.componentProps,this.slotProps);I=_.E(H61(this,Y,P));P=I.next().value;I=I.next().value;!(P[0]instanceof Element)||P.length>1?Mnt("Wrapped Wiz components must return a single root element.",G):(P=P[0].tagName.toLowerCase(),P!==G&&Mnt("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(P+" !== '"+G),G),this.dispose=I)};
Q.prototype.setUpProps=function(){for(var P=this.rawProps,I=this.attributes,k=_.E(Object.keys(M)),n=k.next();!n.done;n=k.next()){n=n.value;var p=void 0;((p=this)==null?0:p[n])&&this[n]!==tnA&&P[n]===void 0&&(P[n]=this[n],(p=Object.getOwnPropertyDescriptor(this.constructor.prototype,n))&&Object.defineProperty(this,n,p))}k=_.E(I);for(n=k.next();!n.done;n=k.next()){p=n.value;n=_.OK(p.name);var W=n==="class"&&!I.getNamedItem("class-name");if(n in M||W)p=p.value===""||p.value==="true"?!0:p.value==="false"?
!1:isNaN(Number(p.value))?p.value:Number(p.value),n!=="class"||P.className?P[n]=p:P.className=p}I={};for(var C in M)M[C]!==_.wH&&M[C]!==K6t&&(P[C]instanceof Function&&Mnt("Function props must be configured as STATIC, not SIGNAL.",G),n=_.E(_.IE(P[C],void 0,"thC4wf")),k=n.next().value,n=n.next().value,I[C]=n,P[C]=k);P=_.E([P,I]);this.componentProps=P.next().value;this.setters=P.next().value;this.slotProps=O(this.childNodes)};
Q.prototype.connectedCallback=function(){jJu.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in M&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
Q.prototype.disconnectedCallback=function(){if(!jJu.has(this)){var P;a:{if(_.Z9)for(P=this;P;){if(_.D9.has(P)){P=!0;break a}P=P.parentElement}P=!1}if(P)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){P=_.E([].concat(_.c8(this.attributes)));for(var I=P.next();!I.done;I=P.next()){I=I.value;var k=void 0;I.name==="slot"||I.name==="hidden"&&((k=u.unsafeExternallySettableAttributes)==null?0:k.has("hidden"))||this.removeAttribute(I.name)}}this.innerText="";RKI(this)}}};
Q.prototype._setPendingPropertyOrPath=function(){};
Q.prototype.notifyPath=function(){};
_.Uk.Object.defineProperties(Q.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
var K=Object.keys(M);K.includes("className")&&K.push("class");K=_.E(K);for(var L=K.next(),g={};!L.done;g={prop$jscomp$109:void 0},L=K.next())g.prop$jscomp$109=L.value,L=void 0,((L=u.legacyPolymer)==null?0:L.forwardHostProps)&&ykA.has(g.prop$jscomp$109)||Object.defineProperty(Q.prototype,g.prop$jscomp$109,{set:function(P){return function(I){var k=this;jJu.has(this)||(P.prop$jscomp$109==="class"&&(P.prop$jscomp$109="className"),this.setters?zX(function(){var n,p;return void((p=(n=k.setters)[P.prop$jscomp$109])==
null?void 0:p.call(n,I))}):(this.rawProps[P.prop$jscomp$109]=I,this.queuingRender&&P.prop$jscomp$109==="data"&&I!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(g),
get:a$j.has(g.prop$jscomp$109)?void 0:function(){return tnA}});
customElements.define(G,Q)};
_.T2A=function(Y,G){return(Y=_.dH(Y,G))?_.Bs(_.cs(Y)):null};
_.bq=function(Y){if(Y=_.dH(Y,Number.MAX_VALUE,void 0,"width"))return _.cs(Y)};
_.dH=function(Y,G,u,O){O=O===void 0?"width":O;if(!Y||!Y.length)return null;if(_.F("kevlar_tuner_should_always_use_device_pixel_ratio")){var Q=window.devicePixelRatio;_.F("kevlar_tuner_should_clamp_device_pixel_ratio")?Q=Math.min(Q,_.Jy("kevlar_tuner_clamp_device_pixel_ratio")):_.F("kevlar_tuner_should_use_thumbnail_factor")&&(Q=_.Jy("kevlar_tuner_thumbnail_factor"));L6A=Q}else L6A||(L6A=window.devicePixelRatio);Q=L6A;_.F("kevlar_tuner_should_always_use_device_pixel_ratio")?G*=Q:Q>1&&(G*=Q);if(_.F("kevlar_tuner_min_thumbnail_quality"))return Y[0].url||
null;Q=Y.length;if(_.F("kevlar_tuner_max_thumbnail_quality"))return Y[Q-1].url||null;if(u)for(var M=0;M<Q;M++)if(Y[M].url.indexOf(u)>=0)return Y[M].url||null;for(u=0;u<Q;u++)if(Y[u][O]>=G)return Y[u].url||null;for(G=Q-1;G>0;G--)if(Y[G][O])return Y[G].url||null;return Y[0].url||null};
Px4=function(){Sk.size?setTimeout(function(){N4(g0t)},0):Xgt=0};
g0t=function(){var Y=(0,_.GC)(),G=null,u=!1;Sk.forEach(function(Q){Q.loaded=!0;Q.loadTime=Y;Q.pendingPaint=!1;var M=I$I.get(Q);M&&M.resolve(Y);G=Q;u||!Q.ftlEligible&&Q.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(u=!0)});
var O;((O=G)==null?0:O.markDirty)&&G.markDirty();Sk.clear();Xgt=0;u&&kqA(Y)};
n0y=function(Y){Sk.add(Y);Y.pendingPaint=!0;Xgt||(Xgt=_.jk(_.AN,Px4))};
F6t=function(Y){Y.loaded=!1;Y.loadTime=Infinity;var G=I$I.get(Y);G&&(G.reject(Error("nh")),I$I.delete(Y));Y.pendingPaint&&(Sk.delete(Y),Y.pendingPaint=!1)};
pgU=function(Y){switch(Y){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
zpY=function(){var Y=_.VZ(197497);_.lq(_.M4(),Y);var G=_.FA();G&&Y&&_.oK(G,[Y])};
_.mnt=function(Y){var G=Y.indexOf(":");return G===-1?{originalName:Y}:{originalName:Y.substring(0,G),datasyncId:Y.substring(G+1)}};
_.r5y=function(){return _.a(function(Y){if(W61!==void 0)return Y.return(W61);W61=new Promise(function(G){var u;return _.a(function(O){switch(O.nextAddress){case 1:return _.i3(O,2),O.yield(_.B3.open("test-only"),4);case 4:return O.yield(_.B3.delete("test-only"),5);case 5:_.j1(O,3);break;case 2:if(u=_.b3(O),u instanceof Error&&u.name==="SecurityError")return G(!1),O.return();case 3:G("caches"in window),_.Sd(O)}})});
return Y.return(W61)})};
CxA=function(){return _.a(function(Y){if(Y.nextAddress==1)return Y.yield(_.r5y(),2);if(!Y.yieldResult)return Y.return(void 0);xnj||(xnj=new f$A);return Y.return(xnj)})};
$y=function(Y){var G,u,O,Q;return _.a(function(M){switch(M.nextAddress){case 1:return M.yield(CxA(),2);case 2:G=M.yieldResult;if(!G)throw Error("ph");return M.yield(G.open("yt-player-local-img"),3);case 3:return u=M.yieldResult,M.yield(u.match(Y),4);case 4:O=M.yieldResult;if(!O)throw Error("qh");return M.yield(O.blob(),5);case 5:return Q=M.yieldResult,M.return(Q)}})};
y51=function(Y,G){for(var u in Y)if(Y.hasOwnProperty(u)&&G[u])return u;return null};
epu=function(Y){return"stamp"+Y.replace("-","_")+"_"};
A5y=function(Y){var G=Y.match(/\[\[([\w\.]+)\]\]/);if(G&&G.length>1)return G[1];_.o0(Error("sh`"+Y));return null};
o0Y=function(Y){return Y===void 0?_.hy("REUSE_COMPONENTS",!1):Y||!1};
wgA=function(Y,G,u){u&&(G.is?(i6t.has(G)&&(Y=i6t.get(G),u=Y.listener,delete G[Y.property],u.type==="element"&&G.removeEventListener(u.eventName,u.handler),i6t.delete(G)),RpT(G)):G.__proto__==HTMLElement.prototype&&(G=new _.I2("Rendererstamper removed a non custom element","Stamper: "+Y+" element: "+(G&&G.nodeName)),_.R0(G)))};
Z6j=function(Y,G,u,O){var Q=G.node?G.node:G;_.l0(u).parentNode===Q&&(G.removeChild(u),wgA(Y,u,O));if(Y=q4.get(u))q4.delete(u),_.AN.cancelJob(Y);u.hidden=!1};
DnA=function(Y,G,u,O){var Q,M=(Q=G.polymerController)!=null?Q:G;Q=G.loggingStatus;try{Q&&(Q.isRendererStamper=!0);if(typeof u!=="string"){for(var t in u.attributes)u.attributes[t]===!0?G.setAttribute(t,""):u.attributes[t]===!1?G.removeAttribute(t):G.setAttribute(t,u.attributes[t]);for(var K in u.params)M[K]=u.params[K],G!==M&&a4(G.localName,K,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(var L in u.properties){var g=u.properties[L];if(g){var P=A5y(g);M[L]=Y.get(P);G!==M&&a4(G.localName,L,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");
if(L==="on-tap"||L==="on-click"){var I=Y.get(P);G.addEventListener("click",I);i6t.set(G,{property:L,listener:{type:"element",eventName:"click",handler:I}})}}else _.ij(new _.I2("Undefined property binding",L))}}u.classListBinding&&u.classListBinding.split(" ").forEach(function(k){k=k.trim();if(k.startsWith("[[")){if(k=A5y(k))k=Y.get(k),(Array.isArray(k)?k:(k!=null?k:"").split(" ")).forEach(function(n){n&&_.$3(G,n,!0)})}else k&&_.$3(G,k,!0)});
M.data=O}finally{Q&&(Q.isRendererStamper=!1)}if(u=q4.get(G))G.hidden=!1,q4.delete(G),_.AN.cancelJob(u)};
hp4=function(Y,G,u,O){if(G&&G.children&&(u=G.children[u]))if(_.hy("DEFERRED_DETACH"))for(;u&&!q4.has(u);){var Q=Y,M=G,t=u,K=O;t.hidden=!0;Q=_.WY(_.AN,Z6j.bind(null,Q,M,t,K),0);q4.set(t,Q);u=u.nextElementSibling}else for(;(t=G.lastElementChild)&&(G.removeChild(t),wgA(Y,t,O),t!=u););};
_.s3=function(){for(var Y=_.vs.apply(0,arguments),G=!0,u=_.E(Y),O=u.next();!O.done;O=u.next())if(typeof O.value!=="string"){G=!1;break}return G?Y.join(" ").trim()||void 0:function(){for(var Q="",M=_.E(Y),t=M.next();!t.done;t=M.next())if(t=t.value,typeof t==="function"&&(t=t()),t)if(typeof t==="string")Q+=" "+t;else for(var K in t)if(t.hasOwnProperty(K)){var L=t[K];typeof L==="function"&&(L=L());L&&(Q+=" "+K)}Q=Q.trim()||void 0;return _.hT(Q)}};
_.dn4=function(Y,G){return _.v2(Y.entities,"markersEngagementPanelSyncEntity",G)};
_.c3=function(Y,G){return _.v2(Y.entities,"playerStateEntity",G)};
b6u=function(Y,G){return _.v2(Y.entities,"fantasyWinProbabilityEntity",G)};
Sga=function(Y,G){return _.v2(Y.entities,"fantasyTeamEntity",G)};
N24=function(Y,G){return _.v2(Y.entities,"fantasyPlayerEntity",G)};
jpY=function(Y,G){return _.v2(Y.entities,"booleanEntity",G)};
Vnj=function(Y,G){return _.v2(Y.entities,"qrCodeEntity",G)};
l$T=function(Y){return _.v2(Y.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
$ng=function(Y){var G;return(G=B2j[Y])!=null?G:"EVENT_SPAN_TYPE_UNKNOWN"};
qgI=function(Y){return function(G){var u=$ng(G.type);return u==="EVENT_SPAN_TYPE_UNKNOWN"?Y(G):_.lc("event",{type:u,nodepath:G.target instanceof Element?a_j(G.target):void 0},function(){return Y(G)})}};
_.U3=function(Y){Y&&VA("event")&&(Y=qgI(Y));return $vt(function(G){var u,O=(u=Y)==null?void 0:u(G);return typeof O==="boolean"?O:!0})};
v3=function(Y){return function(){return Y()?Y():void 0}};
v0t=function(Y){var G=_.CH("animated-rolling-character"),u=gNA(),O=DZ(Y.character)||DZ(Y.previousCharacter),Q=_.E(T4a()),M=Q.next().value,t=Q.next().value;_.ii(function(){if(window.ResizeObserver&&_.F("web_fix_rolling_numbers_zoom_safari")){var K=new _.JR(function(){var g,P,I=Math.round(((P=(g=G.value.querySelector("div"))==null?void 0:g.getBoundingClientRect().height)!=null?P:0)*100)/100;I&&t(I)},500),L=new ResizeObserver(function(){K.fire()});
L.observe(G.value);return function(){L.disconnect();K.dispose()}}});
K7j(function(){var K=_.F("web_fix_rolling_numbers_zoom_safari")?M:Y.marginMultiplier;if(K){var L;(L=u.value)==null||L.cancel();O?(L=Y.previousCharacter?Number(Y.previousCharacter)+10:Y.rollUp?0:30,Y.shouldAnimate||(L-=spT(Y,L))):(L=Y.rollUp?0:2,Y.shouldAnimate||(L-=Y.rollUp?-1:1));G.value.style.marginTop="-"+L*K+"px";Y.shouldAnimate?u.value=c5u(G.value,Y,L,O,K):G.value.style.display=Y.character?"":"none"}});
return _.T("animated-rolling-character",{el:G,class:"animatedRollingCharacterHost"},faY(O,function(){for(var K=[],L=1;L<30;L++)K.push(_.T("div",null,L%10));return _.T(_.GY,null,_.T("div",null,"\u00a0"),K,_.T("div",null,"\u00a0"))},function(){return Unt(Y.character)}))};
Unt=function(Y){return _.T(_.GY,null,_.T("div",null,"\u00a0"),_.T(_.GY,null,faY(!Y||_.K1(Y),function(){return _.T("div",null,"\u00a0")},function(){return _.T("div",null,Y)})),_.T("div",null,"\u00a0"))};
c5u=function(Y,G,u,O,Q){u=new Animation(new KeyframeEffect(Y,[{transform:"translateY(0px)"},{transform:"translateY("+(O?spT(G,u):G.rollUp?-1:1)*Q+"px)"}],J5g),document.timeline);G.character?(Y.style.display="",u.onfinish=null):u.onfinish=function(){Y.style.display="none"};
u.play();return u};
spT=function(Y,G){var u=Number(Y.character)+10;if(Y.previousCharacter)if(Y.character){var O=Number(Y.character),Q=Number(Y.previousCharacter);Y=Y.rollUp?Q<O?u:u+10:Q<O?u-10:u}else Y=Y.rollUp?30:0;else Y=Y.character==="0"?u:Y.rollUp?u-10:u+10;return G-Y};
YJg=function(Y){return function(G){var u={},O;for(O in G){var Q=void 0,M=void 0;((Q=void 0)==null?0:(M=Q.callbacks)==null?0:M[O])||(u[O]=G[O])}return _.T(n2I,null,function(){for(var t in u)G[t]=_.hT(u[t]);G.disableReactiveLogging=!0;return _.T(Y,Object.assign({},G))})}};
OEA=function(Y,G,u,O,Q,M,t){u=new Animation(new KeyframeEffect(Y,[{transform:"translateY(0px)"},{transform:"translateY("+(M?GVj(G,u,O,Q):O?-1:1)*t+"px)"}],u64),document.timeline);G?(Y.style.display="",u.onfinish=null):u.onfinish=function(){Y.style.display="none"};
u.play();return u};
GVj=function(Y,G,u,O){var Q=Number(Y)+10;G?Y?(Y=Number(Y),G=Number(G),u=u?G<Y?Q:Q+10:G<Y?Q-10:Q):u=u?30:0:u=Y==="0"?Q:u?Q-10:Q+10;return O-u};
MeT=function(Y){var G=gNA(),u=gNA();ayu(function(){G.value=Y.numberText;u.value=Y.numberValue},[Y.numberText]);
var O=Y.fontSizeMultiplier?Y.heightPx*Y.fontSizeMultiplier:Y.heightPx,Q=cvt(function(){if(Y.numberText){var t=Y.numberText;var K=Y.forceRollUp||!u.value||!Y.numberValue||u.value<Y.numberValue;var L=!!Y.shouldAnimate,g=G.value,P=[],I=0,k=0,n=(g?g.replace(/\D/g,"").length:0)-(t?t.replace(/\D/g,"").length:0);g=g?g.split(/(\d)/).filter(Boolean):[];for(t=t.split(/(\d)/).filter(Boolean);n<0;){var p=t[k];P.push({character:p,rollUp:K,marginMultiplier:O,shouldAnimate:L});k++;DZ(p)&&n++}for(;I<n;)p=g[I],P.push({previousCharacter:p,
rollUp:K,marginMultiplier:O,shouldAnimate:L}),I++,DZ(p)||n++;for(;k<t.length;)n=t[k],p=g[I],DZ(n)===DZ(p)?(k++,I++):DZ(n)?(I++,n=void 0):DZ(p)&&(k++,p=void 0),P.push({character:n,previousCharacter:p,rollUp:K,marginMultiplier:O,shouldAnimate:L});K=P}else K=[];return K},[Y.numberText]),M=Y.numberText?["height: "+O+"px;",
"line-height: "+Y.heightPx+"px;"].join(" "):"";return _.T("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:M,dir:"ltr","aria-hidden":"true"},Q.map(function(t){return _.T(QlI,Object.assign({},t))}))};
HEj=function(Y){switch(Y){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}};
_.E9g=function(Y,G){if(!Y&&!G)return"medium";Y=Math.max(Y||0,G||0);return Y>=256?"large":Y>=96?"medium":"small"};
teu=function(Y){switch(Y){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
KH4=function(Y){return new KeyframeEffect(Y,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
aet=function(Y){return new KeyframeEffect(Y,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.Yh=function(Y){return function(){var G="",u;for(u in Y){for(var O=Y[u];typeof O==="function";)O=O();O!==void 0&&O!==null&&(G+="; "+u+": "+O)}return G.length>0?_.hT(G.slice(2)):_.hT()}};
TFA=function(Y){switch(Y){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"}};
LHA=function(Y,G){if(G)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(Y)switch(Y){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
kVt=function(Y,G,u,O,Q,M,t){var K=g9Y(Y),L=K.disabled,g=K.iconPosition,P=K.style,I=K.focused,k=function(){return!!W()&&g()==="icon-only"},n=function(){return!!W()&&g()==="icon-only-40"},p=function(){return!!W()&&g()==="icon-with-label"},W=function(){return!!G||!(O==null||!O())};
return{type:function(){return P()==="call-to-action-inverse"?"text":P()==="overlay-dark"&&Y().type!=="filled"&&Y().type!=="tonal"?"tonal":Y().type},
shouldFocus:function(){return(I()||(M==null?void 0:M()))&&!L()},
hasIconLeading:function(){return!!W()&&g()==="leading"},
hasIconTrailing:function(){return!!W()&&g()==="trailing"},
hasIconLeadingTrailing:function(){return!!W()&&!!(u||Q!=null&&Q())&&g()==="leading-trailing"},
hasIconOnly:k,hasIconOnly40:n,hasIconWithLabel:p,iconButton:function(){return k()||n()||p()},
visiblyDisabled:function(){return(L()?"disabled":Y().state)==="disabled"||L()},
overrideSmallSizeIcon:function(){return!Y().ignoreIconSizeOverride&&XSt(Y(),W())},
iconToRender:G?G:function(){return _.T(_.GS,{icon:O,gradientColor:function(){var C;return(C=Y().customColors)==null?void 0:C.iconGradientColor},
size:function(){return PVI(Y(),!0,Y().ignoreIconSizeOverride)},
active:function(){return Y().toggled},
iconFilter:function(){return IeI(Y())},
animateIcon:t})},
secondaryIconToRender:u?u:function(){return _.T(_.GS,{icon:Q,size:function(){return PVI(Y(),!0,Y().ignoreIconSizeOverride)},
active:function(){return Y().toggled},
iconFilter:function(){return IeI(Y())}})}}};
g9Y=function(Y){return{size:function(){return Y().size},
style:function(){return Y().style},
focused:function(){return Y().focused},
disabled:function(){return Y().disabled},
onTap:function(G){var u,O;return(O=(u=Y()).onTap)==null?void 0:O.call(u,G)},
alignByText:function(){return Y().alignByText},
aTagConfig:function(){return Y().aTagConfig},
customColors:function(){return Y().customColors},
segmentedPosition:function(){return Y().segmentedPosition},
toggled:function(){return Y().toggled},
toggleable:function(){return Y().toggleable},
accessibilityLabel:function(){return Y().accessibilityLabel},
ariaDescribedby:function(){return Y().ariaDescribedby},
onToggle:function(G){var u,O;return(O=(u=Y()).onToggle)==null?void 0:O.call(u,G)},
iconPosition:function(){return Y().iconPosition},
oneOffCustomTextWrap:function(){return Y().oneOffCustomTextWrap},
disableTextEllipsis:function(){return Y().disableTextEllipsis},
disableBackdropFilter:function(){return Y().disableBackdropFilter},
tooltipText:function(){return Y().tooltipText},
tooltipShape:function(){return Y().tooltipShape},
ariaHidden:function(){return Y().ariaHidden},
ariaExpanded:function(){return Y().ariaExpanded},
tabIndex:function(){return Y().tabIndex},
buttonText:function(){return Y().buttonText},
formattedButtonText:function(){return Y().formattedButtonText},
animatedTextProps:function(){return Y().animatedTextProps},
onClickRateLimitMs:function(){return Y().onClickRateLimitMs}}};
XSt=function(Y,G){G=(Y.iconPosition==="icon-only"||Y.iconPosition==="icon-only-40"||Y.iconPosition==="icon-with-label")&&G;return!Y.segmentedPosition&&G&&Y.size==="S"};
PVI=function(Y,G,u){switch(Y.size){case "XS":return 16;case "S":return!u&&XSt(Y,G)?24:16;default:return 24}};
n9I=function(Y){switch(Y){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"}};
FHI=function(Y){switch(Y){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"}};
pS4=function(Y){switch(Y){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"}};
IeI=function(Y){if(Y.style==="overlay-dark"&&Y.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
uv=function(Y){return Y&&Y.endsWith("px")?Number(Y.slice(0,-2)):0};
WH4=function(Y,G){var u=_.E(_.SN(function(){var Q,M;return(M=Y())!=null?M:G==null?void 0:(Q=G())==null?void 0:Q.text})),O=u.next().value;
return[function(Q){var M=_.p2(function(){var L;return Object.assign({},{location:"bottom",offset:16,delay:1},G==null?void 0:G(),{text:(L=O())!=null?L:""})},void 0,"IJU38d");
_.RE(function(){var L=M();_.Pw(function(){_.AN.addJob(function(){Qx.notify(Q,L)},4)})},"WlsgZc");
var t=function(){zx4(Q,M())},K=function(){mLa()};
Q.addEventListener("mouseenter",t);Q.addEventListener("focus",t);Q.addEventListener("mouseleave",K);Q.addEventListener("blur",K);Q.addEventListener("tap",K);_.w_(function(){Q.removeEventListener("mouseenter",t);Q.removeEventListener("mouseleave",K);Q.removeEventListener("focus",t);Q.removeEventListener("blur",K);Q.removeEventListener("tap",K);mLa()})},
u.next().value]};
xL1=function(Y,G){if(!cM){var u;qkA(function(){return u=ILj(Y,G)});
return u}Y.parent=rF1();return ILj(Y,G)};
rF1=function(){var Y=vM(cM||void 0,g2j);return ANU(Y)?void 0:Y};
M5=function(Y,G){_.pd(Y,Object.assign({},G,{forceClickLogging:!0}))};
feg=function(Y){switch(Y){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
yFu=function(Y,G){var u=_.FS(Y==null?void 0:Y.onTap),O={};u&&(O.getClickedVisualElement=function(){var Q;return CVu(Y,u,G==null?void 0:(Q=G.value)==null?void 0:Q.visualElement)});
O=_.zU({elementsCommand:Y.onTap,forceNewState:!0,additionalCommandArgs:O});return ma(O)?O:void 0};
exy=function(Y,G,u,O){M5(Y,Object.assign({},{form:{element:G,event:u}},O))};
AFu=function(Y,G,u,O,Q){var M=void 0;return function(t){var K=_.FS(u?Y==null?void 0:Y.onDisabledTap:Y==null?void 0:Y.onTap);if(K){var L;M=(L=M)!=null?L:G==null?void 0:G.value;if(K)if(_.F("web_button_vm_click_client_ve_killswitch"))exy(K,M,t);else{var g;L=CVu(Y,K,(g=M)==null?void 0:g.visualElement);if(Q){exy(K,Q,t,{clickedVisualElement:L,form:{element:Q}});return}exy(K,M,t,{clickedVisualElement:L})}}O&&O(t)}};
CVu=function(Y,G,u){G=G==null?void 0:G.clickTrackingParams;var O,Q;Y=Y==null?void 0:(O=Y.loggingDirectives)==null?void 0:(Q=O.clientVeSpec)==null?void 0:Q.uiType;if(u&&Y&&!G)return u};
o9j=function(Y){switch(Y){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"}};
iEU=function(Y){switch(Y){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"}};
Rxj=function(Y){switch(Y){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"}};
wST=function(Y){switch(Y){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"}};
_.Hx=function(Y){return _.p2(function(){Nea()();return lpa(Y)},{debugName:"d8B62c"},"DEXkhd")};
ZEt=function(Y,G){return _.v2(Y.entities,"engagementToolbarStateEntityPayload",G)};
hxI=function(Y){(Y=_.Kd(Y))&&_.DLg(Y)};
_.DLg=function(Y){var G=_.FA();G&&_.AW(G,Y)};
dLY=function(Y,G,u){_.qZ(Y,"yt-open-popup-action",[G,u||Y])};
bEt=function(Y,G){var u=_.R1(Y,"endpoint"),O=_.R1(Y,"action");return(u=O?O:u)&&G&&(u=G.navigationEndpointPopupMap[u])&&(Y=_.So(u,Y),(u=_.R1(Y,"renderer"))&&G.supportedPopups.hasOwnProperty(u))?{openPopupAction:{popupType:G.popupTypeMap[u],popup:Y}}:null};
SJu=function(Y,G,u,O){if(O){var Q;u=u==null?void 0:(Q=u.data)==null?void 0:Q.contents;(Q=u instanceof Array&&u.length?u[0]:u)&&(u=_.R1(Q,"renderer"))&&O.supportedPopups.hasOwnProperty(u)&&(G.stopPropagation(),dLY(Y,{openPopupAction:{popupType:O.popupTypeMap[u],popup:Q}}))}};
VeI=function(Y,G,u,O){O=O===void 0?!1:O;var Q=NFT(G);if(Q){Q.href&&mw(Q.href);var M=G.button;M=M!==void 0?M===0&&!Ej(G):!Ej(G);Q.data&&M&&jl1(Y,Q,G,u,O)}};
jl1=function(Y,G,u,O,Q){Q=Q===void 0?!1:Q;var M=_.Jy("pbj_navigate_limit",-1)===0;le4(G);_.sH().resolve(_.q3(bj));var t=G.data;if(Object.keys(t).length!==0)if(!_.F("unplugged_web_disable_actions_for_cec_endpoint")&&_.z(t,_.Jv))_.F("endpoint_behavior_command_executor_fix_killswitch")||(u.preventDefault(),u.stopPropagation()),_.UK(Y,[t],Y);else if(O=bEt(t,O))t.loggingUrls&&t.loggingUrls.forEach(function(L){L.baseUrl&&_.jV(L.baseUrl)}),u.preventDefault(),u.stopPropagation(),dLY(Y,O,G);
else{var K=BF1(0,G.data,u);if(Y=G.getForm)Y=Y(),K.tempData=K.tempData||{},K.tempData=Object.assign({},K.tempData,Y);Y=_.wG(u);if(O=Y.find(function(L){return!!L.visualElement}))K.createScreenConfig=K.createScreenConfig||{},K.createScreenConfig.clickedVisualElement=O.visualElement;
if(!M)if(u.preventDefault(),u.stopPropagation(),_.z(t,_.$LU)&&!Q&&_.Jj.instance)_.Jj.instance.resolveCommand(t,K);else if(_.F("kevlar_command_handler_formatted_string")&&!Q&&_.Jj.instance&&qJa(t))Q=Y.find(function(L){return!!L.is})||u.target,u={form:Object.assign({},K,{event:u,
element:Q,originatingNode:G})},_.Jj.instance.resolveCommand(t,u);else{t=_.wG(u);u=[];for(Q=0;Q<t.length;Q++)(M=t[Q].is)&&u.push(M);oCa({parents:u.join(","),text:G.innerText},function(){_.$s(G,"yt-navigate",K)})}}};
sla=function(Y){if(Y=NFT(Y))le4(Y),$wj(Y.href)};
NFT=function(Y){Y=_.wG(Y);for(var G,u=0;u<Y.length;u++)if(G=Y[u],G.tagName==="A"&&G.classList.contains("yt-simple-endpoint")){if(!G.data)break;return G}return null};
Ej=function(Y){return Y.shiftKey||Y.altKey||Y.metaKey||Y.ctrlKey};
cFu=function(Y,G){var u={itct:G.clickTrackingParams};_.F("kevlar_client_side_screens")&&(!_.z(G,_.Qa)||_.F("kevlar_exclude_endpoint_killswitch"))&&(u.endpoint=JSON.stringify(G));_.F("enable_unknown_lact_fix_on_html5")&&_.sH().resolve(_.q3(_.tf))&&(u.lact=_.Y7());VPT(u);_.hv(Y,u)};
le4=function(Y){Y.href&&Object.keys(Y.data).length!==0&&cFu(Y.href,Y.data)};
qJa=function(Y){for(var G=_.E(ULa),u=G.next();!u.done;u=G.next())if(Y[u.value])return!1;return!0};
v9a=function(){if(Kz)return Kz;if(window.lottie)return Kz=Promise.resolve(window.lottie);var Y=_.ow(_.DE("LOTTIE_URL"));return Y?Kz=new Promise(function(G,u){var O=document.createElement("script");O.addEventListener("load",function(){G(lottie)});
O.addEventListener("error",function(Q){var M="Lottie library failed to load.";Q?Q.message&&(M+=" Original description: "+Q.message,_.wN(Q,M)):Q=Error(M);_.R0(Q);u(Q)});
O.setAttribute("async","");_.P8(O,Y);document.head.appendChild(O)}):Promise.reject(Error("th"))};
JFu=function(){return Kz?Kz:v9a()};
YlI=function(Y){if(Y)switch(Y){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.F("kevlar_use_wil_icons"))return Y=(Y=l$T(_.Zs().getState()))&&Y.animationLightUrl&&Y.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:Y.animationLightUrl,pathDarkTheme:Y.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,Y?Y:aS.get("LIKE");break;case "LIKE_DELHI_PLAYER":return aS.get("LIKE_DELHI_PLAYER")}};
GaT=function(Y){var G=YlI(Y);if(G)return G;switch(Y){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return aS.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return aS.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return aS.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return aS.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return aS.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return aS.get("NOTIFICATION_BELL")}};
uzy=function(Y,G){if(!Y.closest)return!1;G=!!YlI(G);return _.DE("ID_TOKEN")&&G?!!Y.closest("segmented-like-dislike-button-view-model")||!!Y.closest("yt-player-quick-action-buttons"):!1};
Q64=function(Y,G){if(!Y||OW1)G=!1;else{var u;if(!(u=uzy(Y,G)))if(Y.closest)if(u=!_.DE("ID_TOKEN"),Y=Y.closest("ytd-subscription-notification-toggle-button-renderer-next"),u||!Y)u=!1;else{var O;u=((O=Y.data)==null?void 0:O.targetId)==="notification-bell"&&G!=="EXPAND_MORE"}else u=!1;G=u}return G};
MAA=function(Y){var G,u;return _.a(function(O){switch(O.nextAddress){case 1:return _.i3(O,2),O.yield(fetch(Y),4);case 4:return G=O.yieldResult,O.yield(G.json(),5);case 5:return O.return(O.yieldResult);case 2:u=_.b3(O),_.R0(u),_.Sd(O)}})};
HW1=function(Y,G){var u,O,Q;return _.a(function(M){if(M.nextAddress==1)return(u=G?Y.pathDarkTheme:Y.path)?M.yield(Promise.all([MAA(u),v9a()]),2):M.return();O=M.yieldResult;Q=O[0];TS.set(u,Q);_.Sd(M)})};
tAU=function(Y,G,u,O){function Q(t,K){if(G.value===K&&!G.cancelled){for(;Y.firstChild;)Y.removeChild(Y.firstChild);Y.classList.add("ytSpecIconShapeHost");t(Y,O)}}
var M=_.Eu1(_.sH().resolve(_.vn),u);typeof M==="function"?(G.value=null,Q(M,null)):(G.value=M,M.then(function(t){Q(t,M)}))};
K5T=function(Y,G){var u=document.createElement("div"),O=_.Ay(u,function(){return _.T(_.X,{cond:Y,then:function(Q){return _.T(_.Lz,{data:Q,options:G})}})},"ga");
return[u,O]};
_.gE=function(Y,G){if(G){var u={};akA.forEach(function(O){O=Ts1(G,O,"--yt-lightsource-");Object.assign(u,O)});
L54.forEach(function(O){O=Ts1(G,O,"--yt-basic-");Object.assign(u,O)});
_.cm(Y,u)}};
Ts1=function(Y,G,u){var O={};O[u+_.uc(G)]=Y&&Y[G]?_.nB(Y[G]):"";return O};
_.Px=function(Y,G,u){Xm[Y]||(Xm[Y]={});Xm[Y][G]=u};
_.IS=function(Y){Xm[Y]||(Xm[Y]={});return Xm[Y]};
guU=function(Y){if(!Y)return{};var G=Y.foregroundTitleColor,u=Y.backgroundColor;Y=Y.borderColor;var O="text";Y?O="outline":u&&(O="filled");return{type:O,customColors:{color:G?_.nB(G):void 0,backgroundColor:u?_.nB(u):void 0,borderColor:Y?_.nB(Y):void 0}}};
nut=function(Y){var G=Y.renderer;var u=Y.element;var O=Y.commandController;var Q=Y.onTapCallback;var M=Y.skipCommandHandling;var t=Y.overrides;var K=Y.forceIcon;var L=Y.forceModernIconButton;var g=Y.forceDisabled;var P=Y.isSubscribe===void 0?!1:Y.isSubscribe;var I=Y.isPressed===void 0?!1:Y.isPressed;var k=Y.useButtonSize===void 0?!1:Y.useButtonSize;Y=Xkg(G);P&&(Y.style="mono",Y.type="filled");K=!G.icon||!K&&G.text?G.icon?G.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:L?"icon-only":"icon-only-40";K==="icon-only-40"&&(Y.type="text");var n;L=Object;P=L.assign;k=PGy(G,k);I=!!G.isSelected||!_.F("web_propagate_is_pressed_killswitch")&&!!I;var p=G.isSelected!==void 0;g=g===void 0?G.isDisabled:g;var W=G.text?_.P3(G.text):void 0;var C,e,w,B=((C=G.accessibilityData)==null?void 0:(e=C.accessibilityData)==null?void 0:e.label)||((w=G.accessibility)==null?void 0:w.label);C=B?B:_.Ri(G.text);u=Ika(G,u,O,Q,M);O=kaY(G);O!=null&&O.length?(O=_.zU({innertubeCommand:O_A(O),
forceNewState:!0}),O=ma(O)?O:void 0):O=void 0;return P.call(L,{},Y,k,{iconPosition:K},t,{focused:!1,toggled:I,toggleable:p,disabled:g,formattedButtonText:W,accessibilityLabel:C,onTap:u,aTagConfig:O},guU((n=G.colorData)==null?void 0:n.basicColorPaletteData),{oneOffCustomTextWrap:G.oneOffCustomTextWrap})};
Ika=function(Y,G,u,O,Q){return function(M){var t=kaY(Y);O(t,M);if(!Q){t=_.E(t);for(var K=t.next();!K.done;K=t.next())M5(K.value,{form:{element:G,event:M},commandController:u})}}};
kaY=function(Y){var G=[];Y.command&&G.push(Y.command);Y.serviceEndpoint&&G.push(Y.serviceEndpoint);Y.navigationEndpoint&&G.push(Y.navigationEndpoint);return G};
PGy=function(Y,G){if(G)switch(Y.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(Y.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
Xkg=function(Y){switch(Y.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_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",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"}}};
F5Y=function(Y,G){return typeof Y!=="object"||Y===null?!1:Object.keys(G).every(function(u){return u in Y})};
kh=function(Y){return Object.fromEntries(Object.keys(Y).map(function(G){return[G,G]}))};
pkt=function(Y,G,u){return GGy(u,function(O,Q){return function(M){var t=_.vs.apply(1,arguments);return F5Y(M,Y)?Q.apply(null,[M[G]].concat(_.c8(t))):Q.apply(null,[M].concat(_.c8(t)))}})};
nz=function(Y){return function(G,u){return pkt(Y,G,u)}};
zwA=function(Y,G){var u;return(u=_.v2(Y,"playlistLoopStateEntity",G))!=null?u:void 0};
mmT=function(Y,G){var u;return(u=_.v2(Y,"toggleMenuServiceItemEntity",G))!=null?u:void 0};
_.Fm=function(Y){return Y!=null&&Y.watch?Y.watch.isTheaterMode:!1};
_.pz=function(Y){return Y!=null&&Y.watch?Y.watch.isWatchFullscreen:!1};
_.zS=function(Y){return _.W5t(Y)?!0:_.rca(Y)};
_.W5t=function(Y){return Y!=null&&Y.watch?Y.watch.isSwatcherooActive:!1};
_.rca=function(Y){return Y!=null&&Y.watch?Y.watch.isWatchNarrowWidth:!1};
_.xma=function(Y){return _.Fm(Y)||_.pz(Y)||_.rca(Y)};
_.fkI=function(Y){return Y.watch.openEngagementPanels};
_.Wx=function(Y,G){return _.v2(Y.entities,"likeStatusEntity",G)};
CGg=function(Y,G){return _.v2(Y.entities,"likeCountEntity",G)};
_.yca=function(Y,G){return _.v2(Y.entities,"stringEntity",G)};
ew1=function(Y,G){return _.v2(Y.entities,"dataFreshnessEntity",G)};
Acu=function(Y,G){if(!Y)return!1;var u,O=(u=_.z(Y,_.Gb))==null?void 0:u.signal;if(O&&G.signalEndpointMap)return!!G.signalEndpointMap[O];var Q;if((u=(Q=_.z(Y,_.rE))==null?void 0:Q.request)&&G.continuationEndpointMap)return!!G.continuationEndpointMap[u];for(var M in Y)if(G.commandEndpointMap[M])return!0;return!1};
oua=function(Y,G){if(G.streamingEndpointMap)for(var u in Y)if(G.streamingEndpointMap[u]&&(Y=G.streamingEndpointMap[u]))return Y()};
iW4=function(Y,G){var u,O=(u=_.z(Y,_.Gb))==null?void 0:u.signal;if(O&&G.signalEndpointMap&&(u=G.signalEndpointMap[O]))return u();var Q;if((u=(Q=_.z(Y,_.rE))==null?void 0:Q.request)&&G.continuationEndpointMap&&(Q=G.continuationEndpointMap[u]))return Q();for(var M in Y)if(G.commandEndpointMap[M]&&(Y=G.commandEndpointMap[M]))return Y()};
Rwj=function(Y){var G={"Content-Type":"application/json"};_.DE("EOM_VISITOR_DATA")?G["X-Goog-EOM-Visitor-Id"]=_.DE("EOM_VISITOR_DATA"):_.DE("VISITOR_DATA")&&(G["X-Goog-Visitor-Id"]=_.DE("VISITOR_DATA"));G["X-Youtube-Bootstrap-Logged-In"]=_.DE("LOGGED_IN",!1);_.DE("DEBUG_SETTINGS_METADATA")&&(G["X-Debug-Settings-Metadata"]=_.DE("DEBUG_SETTINGS_METADATA"));Y!=="cors"&&((Y=_.DE("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(G["X-Youtube-Client-Name"]=Y),(Y=_.DE("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(G["X-Youtube-Client-Version"]=
Y),(Y=_.DE("CHROME_CONNECTED_HEADER"))&&(G["X-Youtube-Chrome-Connected"]=Y),(Y=_.DE("DOMAIN_ADMIN_STATE"))&&(G["X-Youtube-Domain-Admin-State"]=Y));(Y=_.DE("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(G["X-YouTube-Lava-Device-Context"]=Y);return G};
wk1=function(Y,G){G.watchNextResponse||G.reelItemWatchResponse?G.watchNextResponse?Y.content=G.watchNextResponse:Y.content=G.reelItemWatchResponse:G.playerResponse?Y.player=G.playerResponse:G.reelWatchSequenceResponse&&(Y.reelSequence=G.reelWatchSequenceResponse)};
xh=function(Y){return function(){return new Y}};
fz=function(Y){var G=_.sH();return function(){return G.resolve(Y)}};
_.Cz=function(Y){if(!Y)return null;for(var G=[],u=0;u<Y.textSegments.length;u++){var O=Y.textSegments[u];O.text?G.push(O):O.emojiId&&G.push({emoji_id:O.emojiId})}return{text_segments:G}};
bWu=function(Y,G,u,O,Q,M,t){M=M===void 0?[]:M;var K=new _.yx;K.endpoint=u;if(!u)return _.ij(new _.I2("handle undefined endpoint",G.tagName)),K;var L=Nwj(u);L.length&&(_.UK(Y,L,G,O),K.actions=L);u.loggingUrls&&u.loggingUrls.forEach(function(P){P.baseUrl&&VH(P.baseUrl,P.attributionSrcMode)});
L=!_.F("web_skip_impression_click_killswitch")&&O&&O.impression;if(u.clickTrackingParams&&!ZW4(u)&&!DmU(G)&&!L&&(L=_.M4(),!_.er(L,G))){var g=G.getScreenLayer&&G.getScreenLayer();g?L.clickCommand(u,null,g):L.clickCommand(u,null)}L=!1;for(g=0;g<M.length;g++)if((0,M[g])(G,u,O)){L=!0;break}!L&&hwI(u)&&(K.ajaxPromise=dmt(Y,G,u,O,Q,t));return K};
DmU=function(Y){var G;return(Y=(G=Y.data)==null?void 0:G.navigationEndpoint)&&!!Y.clickTrackingParams};
ZW4=function(Y){var G=_.z(Y,_.Gb);if(G&&(G=G.signal)&&SlA.indexOf(G)>=0)return!0;for(var u in Y)if(Nsg.indexOf(u)>=0)return!0;return!1};
hwI=function(Y){var G;if(((G=_.z(Y,_.Gb))==null?void 0:G.signal)==="CLIENT_SIGNAL")return!1;for(var u in Y)if(j6y.indexOf(u)>=0)return!1;Y=Object.keys(Y);return Y.length===1&&Y[0]==="loggingUrls"?!1:!0};
vuA=function(Y,G,u,O,Q,M,t){var K=_.Af.instance;if(K&&_.oS(K,O))var L=_.iv(K,O,Q).then(function(P){return(P==null?0:P.data)?P:{data:P}});
else L=Y.requestDataForServiceEndpoint(O,Q),_.z(O,VA4)||_.z(O,lka)||_.z(O,_.Bs1)||_.z(O,$mt)||_.R0(new _.I2("No RequestBuilder for endpoint",O));var g=_.RS();g.promise.thenCatch(function(){var P=_.R1(O,"action")||_.R1(O,"command")||_.R1(O,"endpoint");P&&(P=O[P],P.hasOwnProperty("onFailureAction")?_.UK(G,[P.onFailureAction],u):P.hasOwnProperty("onFailureCommand")&&_.UK(G,P.onFailureCommand,u));L.cancel("Resolver promise rejected")});
L.then(function(P){if(P){var I=P.error;if(I){if(M&&M.onServerError)M.onServerError(O,P);g.reject(new _.I2("Response error",O,I))}else if(P=P.data)if(I=P.error){if(M&&M.onServerError)M.onServerError(O,P);g.reject(new _.I2("Returned error",O,I))}else{qlt(G,u,P,O);s6a(P);if(I=bKu(P))for(var k=_.E(I),n=k.next();!n.done;n=k.next()){n=n.value;var p=_.sH().resolve(_.q3(ccu))||Umy;if(!_.Af.instance||!p.some(function(C){return!!_.z(O,C)})||_.F("kevlar_response_processor_allowlist_killswitch")){var W=p=void 0;
((W=_.z((p=n)==null?void 0:p.commandMetadata,_.ug))==null?0:W.sendPost)?_.c$(G,[n]):_.UK(G,[n],u)}}(k=_.z(P==null?void 0:P.frameworkUpdates,wE))&&t&&t(k);if(M&&M.onSuccess)M.onSuccess(O,P);g.resolve(new _.Zv(P,I))}}else g.reject(new _.I2("Invalid service endpoint provided",O))},function(P){g.reject(P)});
return g.promise};
s6a=function(Y){var G;(Y=(G=_.z(Y==null?void 0:Y.onResponseReceivedCommand,Jcg))==null?void 0:G.continuationItems)&&(Y==null?void 0:Y.length)===1&&_.z(Y[0],Y$U)&&_.pQ("so_r",void 0,"search_overview_answer")};
dmt=function(Y,G,u,O,Q,M){var t;return(t=G.getNetworkManager&&G.getNetworkManager()?G.getNetworkManager():_.sH().resolve(_.q3(_.Hm)))?vuA(t,Y,G,u,O,Q,M):_.Ld("No network manager.")};
qlt=function(Y,G,u,O){if(u=u.trackingParams||u.loggingDirectives&&u.loggingDirectives.trackingParams){var Q;(_.z(O,_.Dv)||_.z(O,GIU)||_.z(O,upa))&&O.clickTrackingParams&&(Q=_.Kd(O.clickTrackingParams));var M;O=(M=G.getScreenLayer)==null?void 0:M.call(G);G=_.M4().graftServerVe(u,Q,O);_.sK(Y,"yt-store-grafted-ve-action",[G])}};
_.OCA=function(Y){var G=new Image;return new _.a0(function(u,O){G.addEventListener("load",function(){u()});
G.addEventListener("error",function(){O()});
G.src=Y})};
Q7a=function(Y){return!!Y};
MUj=function(Y){return!!Y};
HCa=function(Y,G,u){var O=Y.rowIndex;O!==void 0&&_.sK(Y.hostElement,"yt-section-reactive-dismissal",[O,G,u])};
_.hf=function(Y,G,u){Y=_.E(Y);for(var O=Y.next();!O.done;O=Y.next()){O=O.value;if(O===G)break;for(var Q=_.E(u),M=Q.next();!M.done;M=Q.next())if(M=M.value,O.tagName===M||!_.F("web_event_button_role_check_killswitch")&&O.role==="button"&&M==="BUTTON")return!0}return!1};
_.dE=function(Y,G,u){Y=_.E(Y);for(var O=Y.next();!O.done;O=Y.next()){O=O.value;if(O===G)break;for(var Q=_.E(u),M=Q.next();!M.done;M=Q.next())if(O.id===M.value)return!0}return!1};
_.N5=function(){var Y=_.sH().resolve(_.q3(_.bv));return Y?(Y=Y.getCurrentPage())?_.Sr(Y):null:null};
_.jr=function(){var Y=_.N5();if(!Y){var G=_.sH().resolve(_.q3(_.bv)),u=G?typeof G:"no page manager";G=G?G.getCurrentPage():null;u=new _.I2("Player is missing when requested.",u,G?G.tagName:"no page");_.o0(u)}return Y};
_.Sr=function(Y){return Y&&Y.getPlayer?Y.getPlayer():null};
Eju=function(Y,G){Y={args:{raw_player_response:Y}};G&&(Y.args=Object.assign({},Y.args,G));return Y};
tUt=function(Y){if(Y.args){if(Y.args.raw_player_response)return Y.args.raw_player_response;if(Y.args.player_response)return JSON.parse(Y.args.player_response)}};
_.Kct=function(Y,G){var u={url:"/watch?v="+Y.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};Y.playlistId&&(u.url+="&list="+Y.playlistId);Y.playerParams&&(u.url+="&pp="+Y.playerParams);Y={watchEndpoint:Y,commandMetadata:{webCommandMetadata:u}};G&&(Y.clickTrackingParams=G);return Y};
TrI=function(){return aoT||!!_.So("yt.player.Application")};
gjt=function(){return Lc1||!!document.querySelector("link#player-css")};
PXI=function(){function Y(){aoT=!0;XL4.resolve()}
var G,u;return _.a(function(O){XL4||(XL4=new _.sG,TrI()?Y():(G=document.createElement("script"),G.addEventListener("load",Y),u=_.Ie(_.DE("PLAYER_JS_URL")),_.P8(G,u),document.head.appendChild(G)));return O.return(XL4.promise)})};
kI1=function(){function Y(){Lc1=!0;Iog.resolve()}
if(!Iog)if(Iog=new _.sG,gjt())Y();else{var G=document.createElement("link");G.id="player-css";G.addEventListener("load",Y);var u=_.Ie(_.DE("PLAYER_CSS_URL"));_.nb(G,u,"stylesheet");document.head.appendChild(G)}return Iog.promise};
njt=function(){return TrI()&&gjt()?Promise.resolve([]):Promise.all([PXI(),kI1()])};
Fcg=function(Y,G,u){var O={args:{}};Y&&(O.args.raw_player_response=Y);G&&(O.args.raw_watch_next_response=G);u&&(O.args=Object.assign({},O.args,u));return O};
WcA=function(Y,G,u){var O=!1;O=O===void 0?!0:O;Y=typeof Y==="string"?_.Vx(document,Y):Y;var Q=pLj+"_"+_.cu(Y),M=zey[Q];if(M&&O)return mgt(G,u)?M.api.loadVideoByPlayerVars(G.args||null):M.loadNewVideoConfig(G),M.api;M=new lv(Y,Q,G,u,void 0);zey[Q]=M;M.addOnDisposeCallback(function(){delete zey[M.getId()]});
return M.api};
mgt=function(Y,G){return G&&G.serializedExperimentFlags?G.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):Y&&Y.args&&Y.args.fflags?Y.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
ruj=function(){var Y=new _.sG;Y.resolved=!1;var G=Y.resolve;Y.resolve=function(u){Y.resolved=!0;G(u)};
return Y};
foY=function(Y){var G={};xgu().install((G.document_disposed={callback:Y},G))};
Bx=function(Y,G){if(!Y&&Math.random()<=_.Jy("kevlar_unified_player_logging_threshold")){Y=Error("vh`"+(G?G:"Unspecified error"));if(_.F("kevlar_unified_player_throw_errors"))throw Y;_.R0(Y)}};
_.CXt=function(){var Y=_.So("ytDebugData.callbacks");Y||(Y={},_.U5("ytDebugData.callbacks",Y));return Y};
eeU=function(Y,G){var u=_.CXt();if(_.F("web_dd_iu")||yuY.includes(Y))u[Y]=G};
Au4=function(){return _.a(function(Y){return Y.return({isLeader:_.NWt(_.Zs().getState()),c:_.DE("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.DE("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
ojI=function(){var Y;_.a(function(G){if(G.nextAddress==1)return eeU("APP_STATE",Au4),G.yield(_.sH().resolve(_.$h),2);Y=G.yieldResult;eeU("PI",function(){return _.a(function(u){return u.return(Y.getVideoStats())})});
_.Sd(G)})};
iCA=function(Y){return!!Y&&Y.length>0&&Y[0].loggingUrls!=null&&Y[0].loggingUrls.length>0};
Ret=function(){var Y=_.DE("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(Y==null?void 0:Y.length)===2?Y[1]:null};
wLT=function(Y){if(!Y)return[];var G=[];Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())if(u=u.value,u.loggingUrls){u=_.E(u.loggingUrls);for(var O=u.next();!O.done;O=u.next())O=O.value,O.baseUrl&&G.push(O.baseUrl)}return G};
ZCI=function(Y){var G=_.qI(_.$x(_.OI.location.href));Y=_.qI(_.$x(Y));return _.F("kevlar_clear_non_displayable_url_params")?G==q5(Y):q5(G)==q5(Y)};
q5=function(Y){var G=_.q_a(Y);Y=Y.slice(0);var u=["frags"];_.F("kevlar_hide_pp_url_param")&&u.push("pp");_.F("kevlar_hide_time_continue_url_param")&&u.push("time_continue");u=_.E(u);for(var O=u.next();!O.done;O=u.next())O=O.value,Y=_.ud(_.qI(Y),O);return _.qI(Y)+(G?"#"+G:"")};
sj=function(Y,G){var u=u===void 0?!0:u;G=Number(G)*1E3;var O=Math.round((0,_.GC)()),Q=O.toString();Y={innertubeResponse:Y,serverDateTimestampMs:Q,lastModifiedTimestampMs:Q,expireTimestampMs:(O+G).toString(),isProcessed:u};if(u=_.DE("INNERTUBE_CONTEXT_CLIENT_NAME"))Y.clientName=u;return Y};
heU=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++DgU};
dgI=function(Y){return!isNaN(Y)&&Y>0};
S$t=function(){_.F("web_adaptive_repeat_ase")&&bCj&&_.eK("applicationStarted",bCj)};
_.Nrt=function(){var Y=_.nX(),G=_.FA();G&&Y&&_.ig(G,[Y],!0)};
VU4=function(Y){return Y&&j7j.some(function(G){return Y.includes(G)})};
cuy=function(Y){var G=_.z(Y,_.SK);if(!G)return!1;var u=G.url,O=G.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!u)return _.o0(Error("Ah")),!1;if(G.target==="TARGET_NEW_WINDOW"){G={};_.F("resolve_url_parent_tracking_params")&&(!_.l7(u)||ss(window.location.href,u))&&(G={endpoint:Y,itct:Y.clickTrackingParams});VPT(G);Y=null;try{if(O){a:{var Q=u,M=G;O=O===void 0?!1:O;M&&_.hv(Q,M);var t=_.cs(Q),K=_.Bs(t);Q!=K&&_.N3(Error("Zf`"+Q));Q=K;try{if(O){K=Q;K=WaI(K);mw(K);Y=_.Kb(window,K,"_blank",
"attributionsrc");break a}}catch(k){_.dc(k)}mw(Q);Y=_.Kb(window,t,"_blank")}loj(_.sH().resolve(Brt),Y,u);return!0}}catch(k){_.o0(k)}_.hv(u,G);G={target:"_blank",noopener:!1};t=window;K=ls(u)?u:_.cs(typeof u.href!="undefined"?u.href:String(u));O=self.crossOriginIsolated!==void 0;Y="strict-origin-when-cross-origin";window.Request&&(Y=(new Request("/")).referrerPolicy);Q=G.noreferrer;if(O&&Q&&Y==="unsafe-url")throw Error("we");Y=Q&&!O;Q=G.target||u.target;M=[];var L=[],g=!1;for(I in G){var P=G[I];switch(I){case "width":case "height":case "top":case "left":M.push(I+
"="+P);break;case "target":break;case "noopener":case "noreferrer":P?L.push(I):(g=!0,L.push(I+"=false"));break;case "attributionsrc":M.push(I+(P?"="+P:""));break;default:M.push(I+"="+(P?1:0))}}var I=Q!==void 0&&!["_blank","_self","_top","_parent",""].includes(Q);I=C1()&&I;$gU&&O&&M.length===0&&L.length>0&&!I&&!g?(L.length===2&&(L=["noreferrer"]),_.Kb(t,K,Q,L[0]),Y=q$a()):(I=M.join(","),_.oU()&&t.navigator&&t.navigator.standalone&&Q&&Q!="_self"?(I=_.uI("A"),Y6(I,K),I.target=Q,Y&&(I.rel="noreferrer"),
((G=G.attributionsrc)||G==="")&&I.setAttribute("attributionsrc",G),G=document.createEvent("MouseEvent"),G.initMouseEvent("click",!0,!0,t,1),I.dispatchEvent(G),I=q$a()):Y?(I=_.Kb(t,"",Q,I),t=_.Bs(K),I&&(I.opener=null,t===""&&(t="javascript:''"),t='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+cx(t)+'">',t=Or(t),(G=I.document)&&G.write&&(G.write(QK(t)),G.close()))):((I=_.Kb(t,K,Q,I))&&G.noopener&&(I.opener=null),I&&G.noreferrer&&(I.opener=null)),Y=I);loj(_.sH().resolve(Brt),
Y,u);return!0}I=_.BI(u);I=VU4(I)||u==="https://studio.youtube.com/";if(_.l7(u)&&!ss(window.location.href,u)||I)mw(u),IK(),_.Wm(u,void 0,void 0,window.top,s7A);else return _.R0(new _.I2("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",Y)),!1;return!0};
_.Juy=function(Y,G){G=G===void 0?0:G;if(!(_.z(Y,Uga)||_.z(Y,vjI)||_.z(Y,_.SK)&&_.z(Y,_.SK).url))return!1;var u,O=(u=_.z(Y,_.SK))==null?void 0:u.url;u=O?{externalLinkData:{url:O}}:null;return _.M4().clickCommand(Y,u,G)};
GH1=function(Y,G,u,O,Q){Q=Q===void 0?{}:Q;return function(M){var t,K;var L=((t=Y.loggingDirectives)==null?0:(K=t.clientVeSpec)==null?0:K.uiType)?_.VZ(Y.loggingDirectives.clientVeSpec.uiType):void 0;Q.clickedVisualElement||(Q.clickedVisualElement=L);L=YQj(Y,G);u(L,M);L=_.E(L);for(t=L.next();!t.done;t=L.next()){t=t.value;K=O;var g=M,P=Q;P.form?P.form.event=g:P.form={element:K,event:g};M5(t,P)}}};
YQj=function(Y,G){var u=[];G?(Y.toggledCommand&&u.push(Y.toggledCommand),Y.toggledServiceEndpoint&&u.push(Y.toggledServiceEndpoint)):(Y.defaultCommand&&u.push(Y.defaultCommand),Y.defaultServiceEndpoint&&u.push(Y.defaultServiceEndpoint),Y.defaultNavigationEndpoint&&u.push(Y.defaultNavigationEndpoint));return u};
uNg=function(Y,G){var u=Y.toggledStyle||Y.style,O;switch((O=G?u:Y.style)==null?void 0:O.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"}}};
_.Uj=function(){return _.a(function(Y){return Y.nextAddress==1?Y.yield(_.sH().resolve(_.$h),2):Y.return(_.sH().resolve(Oiy)())})};
_.vx=function(){return _.sH().resolve(Oiy)()};
_.Jf=function(){return{lottieEl:void 0}};
QqA=function(Y,G){return Y.startsWith(G.uniqueId)};
M3y=function(Y){var G,u;_.a(function(O){if(O.nextAddress==1)return O.yield(_.Uj(),2);G=O.yieldResult;if((u=G)==null||!u.addEventListener)return YC(),O.return();G.addEventListener("onCueRangeEnter",Y);_.Sd(O)})};
HiI=function(Y){var G,u;_.a(function(O){if(O.nextAddress==1)return O.yield(_.Uj(),2);G=O.yieldResult;if((u=G)==null||!u.removeEventListener)return YC(),O.return();G.removeEventListener("onCueRangeEnter",Y);_.Sd(O)})};
EAU=function(Y){var G,u,O,Q,M;_.a(function(t){if(t.nextAddress==1)return t.yield(_.Uj(),2);G=t.yieldResult;if((u=G)==null||!u.addCueRange)return YC(),t.return();O=_.E(Y.timings);for(Q=O.next();!Q.done;Q=O.next())M=Q.value,G.addCueRange(Y.uniqueId+"-"+M,M/1E3,(M+100)/1E3);_.Sd(t)})};
t3U=function(Y){var G,u,O,Q,M;_.a(function(t){if(t.nextAddress==1)return t.yield(_.Uj(),2);G=t.yieldResult;if((u=G)==null||!u.removeCueRange)return YC(),t.return();O=_.E(Y.timings);for(Q=O.next();!Q.done;Q=O.next())M=Q.value,G.removeCueRange(Y.uniqueId+"-"+M);_.Sd(t)})};
K$j=function(){var Y,G,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(_.Uj(),2);Y=O.yieldResult;if((G=Y)==null||!G.getPlayerState)return YC(),O.return();u=Y.getPlayerState();return O.return(u===2)})};
YC=function(){_.R0(new _.I2("Smartimation player does not exist or is corrupted"))};
aiA=function(){try{var Y;return(Y=window.CSS)!=null&&Y.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(G){return _.R0(new _.I2("Smartimation CSS.supports threw an error")),!1}};
kHA=function(Y,G,u,O,Q){var M=Y.playlistId?T$g:L$a;G=G();u=u();Q=!!Y.videoId&&Q()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.EG(G))return gAj({data:Y,actionType:M,disabled:Q},u);if(Y.videoId&&O())return XrU({data:Y,actionType:M,disabled:Q});switch(G){case "TRANSFER_STATE_UNKNOWN":return XrU({data:Y,actionType:M,disabled:Q});case "TRANSFER_STATE_FAILED":return Y.videoId?PCa({data:Y,actionType:M,disabled:Q}):Iig({data:Y,actionType:M,disabled:Q});case "TRANSFER_STATE_COMPLETE":return Iig({data:Y,
actionType:M,disabled:Q});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return gAj({data:Y,actionType:M,disabled:Q},u);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return Y.videoId?PCa({data:Y,actionType:M,disabled:Q}):XrU({data:Y,actionType:M,disabled:Q});default:return XrU({data:Y,actionType:M,disabled:Q})}};
nAy=function(Y,G){var u=Y.onTapCommand,O=_.FS(u);if(Y.videoId&&_.z(O,_.Gi))return _.z(O,_.Gi).action=G,u;Y.playlistId&&_.z(O,_.u5)&&(_.z(O,_.u5).action=G);return u};
XrU=function(Y){var G=Y.data;var u=Y.actionType;Y=Y.disabled;return{text:F$y,iconType:"OFFLINE_DOWNLOAD",onTap:nAy(G,u.ACTION_ADD),disabled:Y}};
gAj=function(Y,G){var u=Y.data;var O=Y.actionType;Y=Y.disabled;var Q="OFFLINE_DOWNLOAD";G>=0&&G<=.1?Q="OFFLINE_DOWNLOADING_ZERO":G>.1&&G<=.3?Q="OFFLINE_DOWNLOADING_TWENTY":G>.3&&G<=.5?Q="OFFLINE_DOWNLOADING_FORTY":G>.5&&G<=.7?Q="OFFLINE_DOWNLOADING_SIXTY":G>.7&&G<1?Q="OFFLINE_DOWNLOADING_EIGHTY":G===1&&(Q="OFFLINE_PIN");return{text:prT,iconType:Q,onTap:nAy(u,O.ACTION_REMOVE_WITH_PROMPT),disabled:Y}};
Iig=function(Y){var G=Y.data;var u=Y.actionType;Y=Y.disabled;return{text:zVj,iconType:"OFFLINE_PIN",onTap:nAy(G,u.ACTION_REMOVE_WITH_PROMPT),disabled:Y}};
PCa=function(Y){var G=Y.data;var u=Y.actionType;Y=Y.disabled;return{text:mxj,iconType:"OFFLINE_DOWNLOAD",onTap:nAy(G,u.ACTION_RETRY),disabled:Y}};
_.Oe=function(Y,G){var u=Nea();return _.p2(function(){u();return lpa(Y,[_.hT(G)||""])},{debugName:"LUZslf"},"Z105t")};
W$j=function(Y){var G=_.Oe(_.mZ,function(){return Y().videoId}),u=_.Oe(_.WC,function(){return Y().playlistId});
return function(){return Y().videoId?G:Y().playlistId?u:_.E(_.IE("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
rnI=function(Y){var G=_.Oe(rK,function(){return Y().videoId}),u=_.Oe(_.So4,function(){return Y().playlistId});
return function(){return Y().videoId?G:Y().playlistId?u:_.E(_.IE(0,void 0,"K4tgOc")).next().value}};
xxj=function(Y){var G=_.Oe(_.csA,function(){return Y().videoId});
return function(){return Y().videoId?G:_.E(_.IE(!1,void 0,"Oaxwcf")).next().value}};
fiy=function(Y){var G=_.Oe(Vxg,function(){return Y().videoId});
return function(){return Y().videoId?G:_.E(_.IE("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
CCA=function(){return{}};
_.iiy=function(Y,G,u){return{submitForm:function(){var O,Q,M,t;return _.a(function(K){if(K.nextAddress==1){O=ynA(Y());if(!O)return K.return();if(O.onSubmit)return eVT(G),O.onSubmit(),eVT(u),K.return();if(!O.submitConfig||!O.formData)return K.jumpTo(0);O.disableDuringSubmission&&Anj(Y(),!0);eVT(G);return K.yield(oA1(O.submitConfig,O.formData()),3)}Q=K.yieldResult;eVT(u);if(((M=Q)==null?0:M.submitResult)&&((t=O)==null?0:t.onSubmitResult))O.onSubmitResult(Q.submitResult);O.disableDuringSubmission&&Anj(Y(),
!1);return K.return()})},
isValid:function(){var O=ynA(Y());if(O){var Q;return!((Q=O.isValid)==null||!Q.call(O))}return!0},
isSubmitting:function(){var O,Q;return!!((O=ynA(Y()))==null?0:(Q=O.isSubmitting)==null?0:Q.call(O))}}};
_.QY=function(){if(!RV4){var Y=_.E(_.IE(new Map,void 0,"Y1XnBc"));RV4=Y.next().value;wr4=Y.next().value}return RV4};
_.Ziy=function(Y){wr4(new Map(Y))};
ynA=function(Y){if(Y)return _.QY()().get(Y)};
oA1=function(Y,G){var u;return _.a(function(O){return O.nextAddress==1?G?(u=_.sH().resolve(_.q3(Dx4)))&&Y.submitId?O.yield(u.submitForm(Y.submitId,G,hVU,Y.params,Y.clickTrackingParams),2):O.return(Promise.reject(Error("Ch"))):O.return(Promise.reject(Error("Bh"))):O.return(O.yieldResult)})};
Anj=function(Y,G){if(Y){var u=_.QY();u().set(Y,Object.assign({},u().get(Y),{isSubmitting:function(){return G}}));
_.Ziy(u())}};
eVT=function(Y){if(Y){var G=_.sH().resolve(_.rH);G&&(Y=_.FS(Y()))&&G.resolveCommand(Y)}};
SQA=function(Y,G){G=G===void 0?{shouldPersist:!0}:G;return{useUpdatableData:function(u,O){var Q=_.p2(function(){return Y(u())},void 0,"Gmrblb"),M=dxj(u,Q,O,G);
_.RE(function(){if(Q()!=null){biT.set(Q(),M);var t=Q();_.w_(function(){biT.delete(t)})}},"j4hx9b");
return M},
getData:function(u){var O;return(O=biT.get(Y(u)))==null?void 0:O[0]()},
updateData:function(u,O){u=Y(u);u=biT.get(u);if(!u)return!1;var Q=_.E(u);u=Q.next().value;Q=Q.next().value;O=O(u());Q(O);return!0}}};
dxj=function(Y,G,u,O){O=O===void 0?{}:O;var Q=_.E(_.SN(function(){var K=Y(),L=G();return N$I(K,L,u,O)})),M=Q.next().value,t=Q.next().value;
return[M,function(K){t(K);var L=G();if(O.shouldPersist&&L!=null){var g,P=(g=u==null?void 0:u.map(function(I){return I()}))!=null?g:[];
_.Mv.set(L,[K,P])}}]};
N$I=function(Y,G,u,O){O=O===void 0?{}:O;if(G==null||!O.shouldPersist)return Y;O=_.Mv.get(G);if(!O)return Y;var Q=_.E(O);O=Q.next().value;var M=Q.next().value,t;Q=(t=u==null?void 0:u.map(function(K){return K()}))!=null?t:[];
if((M==null?0:M.length)&&(u==null?0:u.length)&&Q.some(function(K,L){return K!==M[L]}))return _.Mv.remove(G),Y;
(u==null?0:u.length)&&_.Mv.set(G,[O,Q]);return O};
V3j=function(Y){var G=_.E(_.IE(!0,void 0,"bKtO6d")),u=G.next().value;G=G.next().value;return jqu(G,function(){var O=I1(Y.children());return _.T(_.X,{cond:u,then:function(){return O},
else:Y.fallback})})};
jqu=function(Y,G){var u=liu,O=0;liu={addDep:function(){O++;zX(function(){Y(!1)})},
removeDep:function(){--O===0&&zX(function(){Y(!0)})}};
try{return G()}finally{liu=u}};
_.HE=function(Y){var G=B$y(Y),u=G.data,O=G.mapping,Q=G.wrapper;G=G.pendingFallback;var M=function(){return $xt(_.hT(u))},t=function(){var K=M(),L=[];
K=_.E(K);for(var g=K.next();!g.done;g=K.next()){var P=void 0;g=g.value;var I=void 0;for(P in g)if(!(!g).hasOwnProperty(P)){I=P;break}(P=I)&&L.push(P)}return L};
return Y.data?_.T(V3j,{fallback:G},function(){return _.T(_.rc,{each:t},function(K,L){var g=Q?function(p){return Q(function(){return O[K](p,L)},P,L)}:function(p){return O[K](p,L)};
g.debugName||(g.debugName=String(K));if(!O[String(K)])return document.createComment("");g.componentType!==Ww&&qQj(String(K));var P=sqT(M,K,L);if(_.F("web_add_microtask_to_stamper")&&!cna.has(String(K))){var I=_.E(_.IE(!1,void 0,"afb1md")),k=I.next().value,n=I.next().value;Promise.resolve().then(function(){cna.add(String(K));n(!0)});
return _.T(_.X,{cond:k,then:function(){return _.T(g,{data:P})}})}return _.T(g,{data:P})})}):_.T(_.GY,null)};
B$y=function(Y){var G=Y.targetId||Uxj(Y.children);if(!Y.data||!G)return Object.assign({},Y,{mapping:Y.children});var u="stamper-"+vAj++,O=function(){var K;return(K=typeof Y.targetId==="function"?Y.targetId(u):Y.targetId)!=null?K:u};
G=_.E(Jn4(function(){var K=$xt(Y.data());K.targetId=O;return K})).next().value;
var Q=Object.assign({},(_.sH().resolve(_.q3(Yct))||{}).replaceableMapping,Y.children);if(Y.replacementWrapper){var M=Q.notificationTextRenderer,t=Q.notificationMultiActionRenderer;M&&(Q.notificationTextRenderer=function(K,L){return Y.replacementWrapper(M({data:K.data},L))});
t&&(Q.notificationMultiActionRenderer=function(K,L){return Y.replacementWrapper(t({data:K.data},L))})}return Object.assign({},Y,{data:G,
mapping:Q,wrapper:function(K,L,g){return xL1({targetId:O,stamperIndex:g},Y.wrapper?function(){return Y.wrapper(K,L,g)}:K)}})};
sqT=function(Y,G,u){var O;return _.p2(function(){var Q=Y()[u()];if(Q)O=Q[G];else return _.R0(new _.I2("Stamper failed to find "+String(G)+" at index "+u()+" of data array of length "+(Y().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),O;return Q[G]},void 0,"Su9U8")};
Uxj=function(Y){Y=_.E(Object.keys(Y));for(var G=Y.next();!G.done;G=Y.next())if(G=G.value,Gtj.includes(G)||uq1.includes(G)||OhA.includes(G))return!0;return!1};
$xt=function(Y){return Y?Array.isArray(Y)&&Y instanceof Array?Y:[Y]:[]};
qQj=function(Y){if(_.F("web_enable_renderer_logger")){var G;(G=_.sH().resolve(_.q3(QFI)))!=null&&G.loggingEnabled&&!G.ids.has(Y)&&G.ids.add(Y)}};
MaI=function(){var Y,G;return(G=(Y=_.sH().resolve(_.q3(_.Ee)))==null?void 0:Y())!=null?G:!1};
EvU=function(Y,G){Y=Y===void 0?HhI:Y;switch(G.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},Y,{isOpen:G.payload});default:return Y}};
KWT=function(Y,G){Y=Y===void 0?taU:Y;switch(G.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},Y,{isAllowed:G.payload});default:return Y}};
ThY=function(Y,G){Y=Y===void 0?aQ4:Y;switch(G.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},Y,{errorMessage:G.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},Y,{title:G.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},Y,{privacy:G.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},Y,{isDisabled:G.payload});default:return Y}};
gvI=function(Y,G){Y=Y===void 0?LWa:Y;switch(G.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},Y,{isOpen:G.payload});default:return Y}};
PeA=function(Y,G){Y=Y===void 0?XVt:Y;switch(G.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},Y,{isFullscreen:G.payload});case "SET_NAVIGATION_BUTTON":var u=G.payload.targetId,O=Object.assign({},Y.navigationButtons);O[u]=G.payload.button;return Object.assign({},Y,{navigationButtons:O});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},Y,{topPanelId:G.payload});case "SET_SECONDARY_HEADER":return u=G.payload.panelId,O=Object.assign({},Y.secondaryHeader),O[u]=G.payload.secondaryHeader,
Object.assign({},Y,{secondaryHeader:O});default:return Y}};
FWu=function(){return fA(Object.assign({},{voiceSearch:IFI,engagementPanel:PeA,bottomSheet:EvU,cinematicSetting:KWT,shorts:rZt,drawerLayout:gvI,createPlaylist:ThY,locationCollection:IQt,reportChannel:ktT,reportForm:nva},x8j))};
pVA=function(Y,G){_.AN.addLowPriorityJob(function(){var u,O,Q;return _.a(function(M){switch(M.nextAddress){case 1:return _.i3(M,2),M.yield(v9a(),4);case 4:return M.yield(fetch(Y),5);case 5:return u=M.yieldResult,M.yield(u.json(),6);case 6:O=M.yieldResult;TS.set(Y,O);requestAnimationFrame(function(){G(O)});
_.j1(M,0);break;case 2:Q=_.b3(M),_.R0(Q),_.Sd(M)}})})};
zLu=function(Y){var G={animationConfig:{},listeners:{}},u=function(){Y(!0)};
G.listeners.data_failed=u;G.listeners.error=u;G.listeners.data_ready=function(){Y(!1)};
return G};
rOt=function(Y){var G=Y.model;var u=Y.subscribed;var O=Y.isOverlay;var Q=Y.element;var M=Y.commandController;var t=Y.notificationState;if(u){var K,L;var g=(G==null?void 0:(K=G.buttonStyle)==null?void 0:K.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:G==null?void 0:(L=G.unsubscribeButtonContent)==null?void 0:L.buttonText}else{var P;g=G==null?void 0:(P=G.subscribeButtonContent)==null?void 0:P.buttonText}a:{var I;switch(G==null?void 0:(I=G.buttonStyle)==
null?void 0:I.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":K="S";break a;default:K="M"}}a:if(O)O="overlay";else switch(G.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":O="overlay";break a;default:O="mono"}a:if(u)var k="tonal";else switch((k=G.buttonStyle)==null?void 0:k.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":k=
"tonal";break a;default:k="filled"}return{style:O,type:k,state:G.disableSubscribeButton?"disabled":"active",size:K,focused:Y.focused,toggled:u,accessibilityLabel:mYI(G,u,t),buttonText:g,iconPosition:G.disableNotificationBell?"none":"leading-trailing",onTap:WWA(G,u,Q,M),disableTextEllipsis:!!Y.disableTextEllipsis}};
WWA=function(Y,G,u,O){return function(Q){if(G){var M;var t=Y.disableNotificationBell?_.FS(Y==null?void 0:(M=Y.unsubscribeButtonContent)==null?void 0:M.onTapCommand):_.FS(Y==null?void 0:Y.onShowSubscriptionOptions)}else{var K;t=_.FS(Y==null?void 0:(K=Y.subscribeButtonContent)==null?void 0:K.onTapCommand)}t&&M5(t,{form:{element:u==null?void 0:u.value},commandController:O});Q.stopPropagation()}};
mYI=function(Y,G,u){if(G){if(Y==null?0:Y.disableNotificationBell){var O;return Y==null?void 0:(O=Y.unsubscribeButtonContent)==null?void 0:O.accessibilityText}switch(u){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var Q;return Y==null?void 0:(Q=Y.bellAccessibilityData)==null?void 0:Q.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var M;return Y==null?void 0:(M=Y.bellAccessibilityData)==null?void 0:M.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var t;return Y==null?void 0:(t=
Y.bellAccessibilityData)==null?void 0:t.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var K;return Y==null?void 0:(K=Y.bellAccessibilityData)==null?void 0:K.disabledLabel;default:var L;return Y==null?void 0:(L=Y.unsubscribeButtonContent)==null?void 0:L.accessibilityText}}else{var g;return Y==null?void 0:(g=Y.subscribeButtonContent)==null?void 0:g.accessibilityText}};
xYg=function(Y,G){return _.v2(Y.entities,"subscriptionStateEntity",G)};
fQt=function(Y,G){return _.v2(Y.entities,"subscriptionNotificationStateEntity",G)};
CeT=function(Y,G){return _.v2(Y.entities,"upcomingEventReminderStateEntity",G)};
yOu=function(Y,G){return _.v2(Y.entities,"commentEntityPayload",G)};
eLt=function(Y,G){return _.v2(Y.entities,"engagementToolbarSurfaceEntityPayload",G)};
AOA=function(Y,G){return _.v2(Y.entities,"triStateButtonStateEntityPayload",G)};
ov1=function(Y,G){return _.v2(Y.entities,"commerceCartCheckoutButtonEntity",G)};
ihU=function(Y,G){return _.v2(Y.entities,"commandEntity",G)};
RL1=function(Y){if(Y){switch(Y){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":Y="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":Y="NOTIFICATIONS_OFF";break;default:Y="NOTIFICATIONS_NONE"}return Y}};
wVu=function(Y,G,u){u.subscribed!==G&&((u=u.key)&&_.hj(_.t$("subscriptionStateEntity",u,{key:u,subscribed:G})),Y.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:G})),G||_.qZ(Y,"yt-unsubscribe-action"))};
DYA=function(Y){Y=_.z(_.FS(Y),_.KK);var G,u,O,Q;return(Q=_.z(Y==null?void 0:(G=Y.panelLoadingStrategy)==null?void 0:(u=G.inlineContent)==null?void 0:(O=u.sheetViewModel)==null?void 0:O.content,Zh1))==null?void 0:Q.listItems};
hLu=function(Y,G){if(Y.onShowSubscriptionOptions&&G&&(Y=DYA(Y.onShowSubscriptionOptions),Y!=null&&Y.length)){var u=RL1(G);Y.forEach(function(O){O=_.z(O,_.ad);var Q,M,t,K,L=O==null?void 0:(Q=O.leadingImage)==null?void 0:(M=Q.sources)==null?void 0:(t=M[0])==null?void 0:(K=t.clientResource)==null?void 0:K.imageName;O&&L&&(O.isSelected=L===u)})}};
dYA=function(Y,G,u,O){G&&u?Y.style.width=u+"px":!G&&O&&(Y.style.width=O+"px")};
bht=function(Y,G,u){var O;(O=Y.lottieEl)==null||O.goToAndPlay(0);var Q;(Q=G.lottieEl)==null||Q.goToAndPlay(0);_.Ti(_.AN,function(){var M;(M=u.lottieEl)==null||M.goToAndPlay(0)},300)};
Sc1=function(Y){return!(Y==null||!Y.iconName||(Y==null?0:Y.title))};
Nht=function(Y,G,u,O){u&&_.AN.cancelJob(u);u=_.AN.addLowPriorityJob(function(){O(void 0)},5E3);
O(u);G&&Y!==(G.likeStatus==="LIKE")&&G.key&&_.hj(_.t$("likeStatusEntity",G.key,{key:G.key,likeStatus:Y?"LIKE":"INDIFFERENT",hadUserInteraction:Y}))};
_.jFA=function(Y,G){return _.v2(Y.entities,"accountLinkStatusEntity",G)};
Vay=function(Y,G){return _.v2(Y.entities,"hatsSurveyEntity",G)};
lQt=function(Y,G){return _.v2(Y.entities,"hatsSurveyStateEntity",G)};
Bht=function(Y,G){return _.v2(Y.entities,"quantityIncrementerEntity",G)};
$Yj=function(Y){switch(Y){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
qcT=function(Y){switch(Y){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}};
sFA=function(Y){switch(Y){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.LK=function(Y){var G=_.Jy("web_generic_client_event_wait_period ",0);G||(G=3E5);var u=cOI.get(Y);!_.F("enable_web_client_experiment_event_timeout_killswitch")&&u&&(0,_.GC)()-u<G||(cOI.set(Y,(0,_.GC)()),_.eK("genericClientExperimentEvent",{eventType:Y}))};
_.UYt=function(Y,G){var u,O,Q,M;a:{var t=Y.style;if(t===void 0)t=17;else switch(t){case "LIVE":t=18;break a;default:t=17}}return{type:t,text:G?ylY({seconds:G}):_.Ri(Y.text),accessibilityText:(u=Y.text)==null?void 0:(O=u.accessibility)==null?void 0:(Q=O.accessibilityData)==null?void 0:Q.label,icon:(M=Y.icon)==null?void 0:M.iconType}};
vvY=function(Y){switch(Y){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
JOI=function(Y){if(!Y)return"";var G,u=(G=_.sH().resolve(_.q3(_.Ee)))==null?void 0:G(),O;if(!u&&((O=Y.vibrantColorPalette)==null?0:O.iconInactiveColor))return FE(Y.vibrantColorPalette.iconInactiveColor,"1");var Q;return u&&((Q=Y.darkColorPalette)==null?0:Q.iconInactiveColor)?FE(Y.darkColorPalette.iconInactiveColor,"1"):Y.color?FE(Y.color,"1"):Y.sampledThumbnailColor?(Y=Y.sampledThumbnailColor,"rgba("+Y.red+","+Y.green+","+Y.blue+");"):""};
_.gw=function(Y,G){if(!Y.includes("DATE_PLACEHOLDER"))return Y;var u=new Date(0);u.setUTCSeconds(G);return Y.replace("DATE_PLACEHOLDER",YmU(u))};
GEa=function(Y,G,u){return function(O){var Q=Y.command;Q&&(M5(Q,{form:{element:u}}),G([Q],O))}};
Of1=function(Y,G,u,O,Q){return function(M){var t=u51(Y,G);t&&M5(t,{form:{element:u},commandController:O});Q&&M.stopPropagation()}};
u51=function(Y,G){if(Y.signInEndpoint&&!_.F("web_subscribe_sign_in_endpoint_killswitch"))return Y.signInEndpoint;if(G){if(Y.serviceEndpoints)return Y.serviceEndpoints[1];if(Y.onUnsubscribeEndpoints)return Y.onUnsubscribeEndpoints[0]}else{if(Y.serviceEndpoints)return Y.serviceEndpoints[0];if(Y.onSubscribeEndpoints)return Y.onSubscribeEndpoints[0]}};
QTt=function(Y,G){var u,O,Q,M;G=G&&((u=Y.unsubscribeAccessibility)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label)||((Q=Y.subscribeAccessibility)==null?void 0:(M=Q.accessibilityData)==null?void 0:M.label);return Y.longSubscriberCountText?[G,_.Ri(Y.longSubscriberCountText)].filter(function(t){return t}).join(" "):G};
X9=function(Y,G){return G||(Y==null?0:Y.isChannelDelegate)?"disabled":"active"};
MuU=function(Y,G){var u;switch((u=Y.style)==null?void 0:u.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:X9(Y)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:X9(Y)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:X9(Y,!0)};case "OVERLAY":return G?{style:"overlay",type:"tonal",state:X9(Y)}:{style:"overlay",type:"filled",state:X9(Y)};default:return G?{style:"mono",type:"tonal",state:X9(Y)}:{style:"mono",type:"filled",state:X9(Y)}}};
_.PE=function(){for(var Y=[],G=_.E(_.vs.apply(0,arguments)),u=G.next();!u.done;u=G.next())if(u=u.value)if(typeof u==="string")Y.push(u);else{u=_.E(Object.entries(u));for(var O=u.next();!O.done;O=u.next()){var Q=_.E(O.value);O=Q.next().value;(Q=Q.next().value)&&Y.push(O)}}return Y.join(" ")};
Hfy=function(Y){switch(Y){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
EFg=function(Y){switch(Y){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
tut=function(Y,G){var u=Y.map(function(O){return O.toString()});
return _.U3(function(O){if(u.includes(O.key)){G&&O.preventDefault();var Q;(Q=O.currentTarget)==null||Q.click()}})};
_.Id=function(){return tut(["Enter"])};
_.KMI=function(){return tut(["Enter"," "],!0)};
_.kC=function(Y){if(Y.composedPath)return Y.composedPath();if(!Y.__composedPath){for(var G=[],u=Y.target;u;)G.push(u),u=u.parentNode;G.push(window);Y.__composedPath=G}return Y.__composedPath};
_.nK=function(Y,G,u){Y=_.E(Y);for(var O=Y.next();!O.done;O=Y.next()){O=O.value;if(O===G)break;for(var Q=_.E(u),M=Q.next();!M.done;M=Q.next())if(M=M.value,O.tagName===M||O.role==="button"&&M==="BUTTON")return!0}return!1};
T5j=function(Y,G){var u,O=(u=G.observer)!=null?u:_.sH().resolve(cY);if(Y){u=a3I(Y);var Q=[];G.showOption&&Q.push(O.observe(Y,function(){G.visibilityCallback(!0,Y)},G.showOption));
G.hideOption&&Q.push(O.observe(Y,function(){G.visibilityCallback(!1,Y)},G.hideOption));
G.prescanOption&&G.prescanCallback&&Q.push(O.observe(Y,function(){G.prescanCallback()},G.prescanOption));
var M;u.visibilityMonitorKeys=((M=u.visibilityMonitorKeys)!=null?M:[]).concat(Q)}};
a3I=function(Y){var G;return(G=Y.polymerController)!=null?G:Y};
_.pK=function(Y){return!!_.F9(Y)};
_.zi=function(Y,G,u,O,Q){return function(M){var t=rF1();_.RE(function(){if(M){LMI(M,Y(),Q);var K=gFt(M,Y(),G,u,O,t);_.w_(K)}},"lrewVd")}};
LMI=function(Y,G,u){var O=Xh4(G),Q=PrY(G),M=O&&FCj,t=Q&&ne4;(O||Q)&&T5j(Y,{visibilityCallback:function(K){var L=_.sH().resolve(_.rH);K&&O?(L.resolveCommand(O,{form:{element:u?Y:void 0},disableClickTracking:!0}),O=Xh4(G)):!K&&Q&&(L.resolveCommand(Q,{form:{element:u?Y:void 0},disableClickTracking:!0}),Q=PrY(G))},
showOption:M,hideOption:t})};
gFt=function(Y,G,u,O,Q,M){var t=new Map;if(G=_.F9(G)){var K;Y=(O==null?void 0:(K=O.onTap)==null?void 0:K.value)||Y;u=I3A(G,Y,u==null?void 0:u.onTap,Q,M);Y.addEventListener("click",u);t.set("click",u)}return function(){for(var L=_.E(t),g=L.next();!g.done;g=L.next()){var P=_.E(g.value);g=P.next().value;P=P.next().value;Y.removeEventListener(g,P)}}};
_.F9=function(Y){var G;return(Y=(G=_.z(Y,_.mi))==null?void 0:G.onTap)&&_.FS(Y)};
Xh4=function(Y){var G;return(Y=(G=_.z(Y,_.mi))==null?void 0:G.onVisible)&&_.FS(Y)};
PrY=function(Y){var G;return(Y=(G=_.z(Y,_.mi))==null?void 0:G.onHidden)&&_.FS(Y)};
I3A=function(Y,G,u,O,Q){var M=function(K){_.sH().resolve(_.rH).resolveCommand(Y,K)},t=function(K){O&&_.nK(_.kC(K),G,O)||M(K.target?{form:{element:K.target,
sourceData:Y,mutationContext:Q}}:void 0)};
u&&(t=function(K){u(K,M)});
return t};
kEY=function(Y){switch(Y){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}};
nF4=function(Y){var G=Y.numAvatarsInCluster;switch(Y.clusterSize){case "small":return G===2?22:18;case "40":return G===2?24:22;default:return G===2?24:20}};
FMI=function(Y,G){return function(u){var O=Object.keys(G);_.RE(function(){if(Y!=null&&Y()){for(var Q=_.E(O),M=Q.next();!M.done;M=Q.next())M=M.value,u.addEventListener(M,G[M]);_.w_(function(){for(var t=_.E(O),K=t.next();!K.done;K=t.next())K=K.value,u.removeEventListener(K,G[K])})}},"bXZGfe")}};
ph1=function(Y){switch(nF4(Y)){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""}};
zXt=function(Y){switch(Y){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""}};
m0A=function(Y){switch(nF4(Y)){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""}};
WMu=function(Y){switch(Y){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""}};
r6I=function(Y){switch(Y){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}};
x0U=function(Y){return Y==="medium"||Y==="48"||Y==="large"||Y==="extra-large"||Y==="extra-extra-large"||Y==="giant"};
f3I=function(Y){return!!((Y==null?0:Y.includes(3))||(Y==null?0:Y.includes(5)))};
y6u=function(Y){var G=Y.data;return{size:Crg(G.avatarImageSize),type:G.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:Y.onTap,decorations:Y.decorations||[],badgeText:Y.badgeText,accessibilityText:Y.accessibilityText,avatarButtonCustomClassName:Y.avatarButtonCustomClassName,clusterLayoutConfig:Y.clusterLayoutConfig}};
Crg=function(Y){switch(Y){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"}};
eXu=function(Y){switch(Y){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}};
A6j=function(Y){switch(Y){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
oFu=function(Y){var G=Y.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",u,O=Y.avatars&&Y.avatars.length>0?(u=_.z(Y.avatars[0],_.WE))==null?void 0:u.avatarImageSize:"AVATAR_SIZE_UNKNOWN";u=eXu(O)||0;if(G){var Q,M=(Q=Y.avatarClusterSize)!=null?Q:"AVATAR_SIZE_M";G=eXu(M);var t,K,L=Math.min((K=(t=Y.avatars)==null?void 0:t.length)!=null?K:0,4),g;return{avatars:((g=Y.avatars)==null?void 0:g.slice(0,4))||[],avatarSizeInPx:u,avatarStackStyle:{width:G+"px",height:G+"px",position:"relative"},avatarStyle:function(I){var k=
nF4({clusterSize:Crg(M),numAvatarsInCluster:L,avatarIndex:I});var n=eXu(M);L===3&&I===2?(n=(n-k)/2,n=(_.DE("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*n):n=void 0;return{position:"absolute",top:L===2&&I===1||L===3&&I===2||L===4&&I>=2?"0":void 0,bottom:L===2&&I===0||L>2&&I<2?"0":void 0,left:L===2&&I===1||L>2&&(I===1||I===3)?"0":void 0,right:L<=3&&I===0||L===4&&(I===0||I===2)?"0":void 0,transform:n?"translateX("+n+"px)":void 0,width:k+"px",height:k+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(I){return{clusterSize:Crg(Y.avatarClusterSize),numAvatarsInCluster:L,avatarIndex:I}},
avatarButtonCustomClassName:void 0}}var P;return{avatars:((P=Y.avatars)==null?void 0:P.slice())||[],avatarSizeInPx:u,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:A6j(O),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
ifU=function(Y,G,u){return function(){M5(Y,{form:{element:G},commandController:u})}};
RXA=function(Y){switch(Y){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
whT=function(Y){switch(Y){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
ZfI=function(Y){if("accessibilityText"in Y)return Y.accessibilityText||"";if("title"in Y){var G,u,O;return((G=Y.title)==null?void 0:(u=G.accessibility)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label)||""}if("accessibility"in Y){var Q,M;return((Q=Y.accessibility)==null?void 0:(M=Q.accessibilityData)==null?void 0:M.label)||""}return""};
D0A=function(Y){return"inlinePlayerData"in Y};
rw=function(Y){return new hXI(Y)};
d0g=function(Y){switch(Y){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"}};
bfy=function(Y){switch(Y){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;case "BADGE_TIMELY":return 5;default:return 0}};
SmA=function(Y){switch(Y){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}};
N5U=function(Y){return function(G){Y&&(Y.thumbnailElRef=G.thumbnailElRef,Y.thumbnail=G.thumbnail,Y.thumbnailOverlays=G.thumbnailOverlays,Y.thumbnailSize=G.thumbnailSize)}};
jT4=function(Y){switch(Y){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
l3a=function(Y){var G=_.E(_.IE(!1,void 0,"E6wDDe")),u=G.next().value,O=G.next().value;_.ii(function(){var Q=Y==null?void 0:Y();if(Q){var M=_.sH().resolve(_.q3(Vug));if(M){var t={triggeringElement:Q,onDwellTriggeredFn:function(){O(!0)},
onDwellEndFn:function(){O(!1)}};
M.registerElement(t);_.w_(function(){_.xC(M,t)})}}});
return u};
B54=function(Y){if(Y.querySelector("img")){var G=Y.querySelector("img");G.addEventListener("error",function(){$y(G.src).then(function(u){(u=_.UT(u).toString())?G.src=u:G.removeAttribute("src")}).catch(function(){G.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
$0g=function(Y,G,u){u?u(G):_.W3(G,Y.target?{form:{element:Y.target}}:void 0)};
_.fK=function(Y,G,u,O){return function(Q){_.RE(function(){function M(P){P=P.composedPath();P=_.E(P);for(var I=P.next();!I.done;I=P.next()){I=I.value;if(I===Q)break;if(I.className.indexOf("HostIsClickableAdComponent")>=0||I.tagName==="A".toString()||I.tagName==="BUTTON".toString())return!0}return!1}
var t=new Map,K,L=(K=Y())==null?void 0:K.onTap;if(L){K=function(P){M(P)||$0g(P,L,G)};
var g=function(P){M(P)||P.key!=="Enter"||$0g(P,L,G)};
(u==null?0:u())||_.F("enable_web_home_top_landscape_image_layout_level_click")?(Q.addEventListener("tap",K),t.set("tap",K)):(Q.addEventListener("click",K),t.set("click",K));if(O==null?0:O())Q.addEventListener("keydown",g),t.set("keydown",g)}_.w_(function(){for(var P=_.E(t),I=P.next();!I.done;I=P.next()){var k=_.E(I.value);I=k.next().value;k=k.next().value;Q.removeEventListener(I,k)}})},"D7XqOc")}};
qmj=function(Y,G){var u,O=(u=Y.interaction)==null?void 0:u.onTap;if(Y=_.zU({elementsCommand:O,forceNewState:!0,skipOnClick:!0}))return Y.onclick=function(Q){u$A(Q)&&(Q.preventDefault(),O&&$0g(Q,O,G))},ma(Y)?Y:void 0};
sTg=function(Y){switch(Y){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
c6u=function(Y){switch(Y){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"}};
U0u=function(Y){switch(Y){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"}};
_.vFA=function(Y){return _.F("rich_grid_enable_dynamic_offset")&&Y?Math.max((Y-_.Jy("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Jy("rich_grid_dynamic_offset_offset_per_100",10),_.Jy("rich_grid_dynamic_offset_lower_bound",-60)):0};
J6A=function(Y,G){switch(G){case 4:return 16;case 1:return Y<528?16:Y<1024?32:48;case 2:return(Y>=528?16:8)/2;case 3:return(Y<528?16:Y<1024?32:48)+(Y>=528?16:8)/2;default:return 0}};
YdI=function(Y){var G=Y.originalContainerWidth;var u=Y.sizing;var O=Y.standardUnit;if(Y.isCompactList&&G<528)return 1;switch(u){case "STANDARD":return O;case "COMPACT":return O+1;case "EXTRA_COMPACT":return _.F("web_responsive_extra_compact_2x")?O*2:_.F("web_responsive_current")?O===1?2:O%2===0?O/2*3:O+2:O<4?O*2:Math.ceil(O*3/2);case "MINI":return O>1?O*2:3;default:return O}};
uC4=function(Y){var G=Y.containerWidth;var u=Y.peek;var O=Y.gutter;var Q=Y.numItems;Y=Y.ignoreMaxWidthLimit;G=u?Math.max((G-u-O*Q)/Q,0):Math.max((G-O*(Q-1))/Q,0);return Y?G:Math.min(G,GfT)};
_.CK=function(Y){var G=Y.containerWidth;var u=Y.hasPeek;var O=Y.sizing;var Q=Y.marginSettings;var M=Y.isCompactList;var t=Y.enableFullBleedForSingleCol;var K=Y.standardUnitMinWidth;O=O||"STANDARD";u=!!u;Y=G>=528?16:8;var L=u?G>=528?48:24:0;Q=J6A(G,Q);var g=Math.max(G-Q*2,0);K=Math.min(Math.max(Math.floor((g-L+Y)/((K!=null?K:Otj)+_.vFA(G)+Y)),1),6);var P=(t=!!t&&K===1)||K===1&&O!=="STANDARD";u=u||P?g:Math.min(g,(GfT+Y)*K-Y);O=YdI({originalContainerWidth:G,sizing:O,standardUnit:K,isCompactList:M});
return{itemWidth:uC4({containerWidth:u,peek:L,gutter:Y,numItems:O,ignoreMaxWidthLimit:P}),gutter:Y,maxContainerWidth:u,numItems:O,margin:t?0:Q,contentMargin:J6A(G,1),typographyBump:uC4({containerWidth:u,peek:L,gutter:Y,numItems:K,ignoreMaxWidthLimit:P})>400&&!(M&&G<528),standardUnit:K}};
yY=function(Y){switch(Y){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.QQY=function(Y){if(Y){var G;if((G=Y.responsiveContainerConfiguration)==null?0:G.responsiveSize)return yY(Y.responsiveContainerConfiguration.responsiveSize);if(Y.layoutSizing)switch(Y.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"}}};
MMA=function(Y){if(Y.fullbleed)return 1;switch(Y.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
a8a=function(Y,G,u,O,Q,M,t,K,L){a:if(Y===4&&O==="LOCKUP_CONTENT_TYPE_SOURCE")var g=1;else switch(Y){case 3:g=1;break a;default:g=0}var P=HtT(Y,O);a:switch(Y){case 4:M=!!(M&&M<100);break a;default:M=!1}a:switch(Y){case 3:case 4:var I=O==="LOCKUP_CONTENT_TYPE_CHANNEL"||O==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:I=!1}return{metadataOnThumbnail:P,isOverlay:K||P,isCard:EEu(O,t),sizing:G!=null?G:"STANDARD",typographyBump:u!=null?u:!1,isTiny:M,isCentered:I,isCollection:tMt(O),arrangement:g,addMarginForFullbleed:Y===
1&&O!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:Y===1&&O==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:KkY(O,Q,L),disableRounding:Y===5||EEu(O,t)||Y===1&&O==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:tMt(O)?2:0,useLegacyTypography:!(L==null||!L.useLegacyTypography),useRichGridLegacyTypography:!(L==null||!L.useRichGridLegacyTypography)&&!_.F("web_enable_typography_bump"),compactMetadata:g===0&&O==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:L==null?void 0:L.onFocusEffect,titleMaxLines:O==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
tMt=function(Y){switch(Y){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
EEu=function(Y,G){if(G&&Y==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(Y){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
HtT=function(Y,G){if(G==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(Y){case 5:return!0;case 4:return!1;default:return!1}};
KkY=function(Y,G,u){if(G&&(u==null||!u.alwaysRespectPodcastShowAspectRatio||Y!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(Y){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}};
_.e0=function(Y){if(Y){var G;return((G=_.sH().resolve(_.q3(_.Ee)))==null?0:G())?Y.darkThemeImage:Y.image}};
gEI=function(Y,G,u,O,Q,M){if(Q&&M&&G==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:Q,height:M};if(!u)return{};Q=u.size;u=u.allowFullWidth;if(G==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&u)return{fullWidth:!0};if(Q===void 0)return{};switch(Y){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:Q,height:Q};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:Q,height:1/TIt*Q};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:Q*
LkU,height:Q};default:return(O==null?0:O.height)&&(O==null?0:O.width)?O.width/O.height>1?{maxWidth:Q*LkU}:{maxWidth:Q}:{maxWidth:Q}}};
X6A=function(Y){var G;return Y&&((G=_.e0(Y.themedImage))!=null?G:Y.image)};
Pnt=function(Y){var G;return Y==null?void 0:(G=Y.sources)==null?void 0:G[0]};
I8j=function(Y){switch(Y){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.kfI=function(Y){if(Y)return"content-id-"+Y};
nEI=function(Y){switch(Y.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"}}};
Fkj=function(Y){var G=_.A$.currentPageSubTypeSelector(_.DS().getState())||"";return Y?Y+G:""};
p6A=function(Y){switch(Y){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
mDt=function(Y){var G=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],u=_.E(_.IE(void 0,void 0,"JrqNsb")),O=u.next().value,Q=u.next().value,M=_.E(_.IE(void 0,void 0,"rWytse"));u=M.next().value;var t=M.next().value;M=_.E(_.IE(void 0,void 0,"DHRqxe"));var K=M.next().value,L=M.next().value;return{touchFeedbackEvents:{pointerUpEvent:O,pointerDownEvent:u,pointerLeaveEvent:K},touchFeedbackOnPointerUp:_.U3(function(g){zEg(_.kC(g),G)||(Q(g),t(void 0),L(void 0))}),
touchFeedbackOnPointerDown:_.U3(function(g){Y==null||Y(g);zEg(_.kC(g),G)||(t(g),Q(void 0),L(void 0))}),
touchFeedbackOnPointerLeave:_.U3(function(g){zEg(_.kC(g),G)||(L(g),t(void 0),Q(void 0))})}};
zEg=function(Y,G){G=G===void 0?[]:G;G=[].concat(_.c8(G),["BUTTON".toString()]);Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next()){u=u.value;for(var O=_.E(G),Q=O.next();!Q.done;Q=O.next())if(u.tagName===Q.value)return!0}return!1};
Wk1=function(Y){switch(Y){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"}};
raT=function(Y){return Y.scrollHeight-Y.offsetHeight>1};
xDu=function(Y,G){var u;return yZ(Y,((u=Y.content)==null?void 0:u.length)||0,!G)};
yaj=function(Y,G,u,O,Q,M){if(!G||f8U){var t;return yZ(Y,((t=Y.content)==null?void 0:t.length)||0,!0)}G=O.value;if(!u.value||!G||!Y.content)return Y;u=0;O=Y.content.length;t=0;Cnj||(Cnj=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var K=Cnj;for(Q=Q*M*K;u<=O;)M=Math.floor(u+(O-u)/2),K=yZ(Y,M)||Y,G.firstChild&&(G.firstChild.textContent=K.content),G.scrollHeight>Q?O=M-1:(t=M,u=M+1);return yZ(Y,t)};
eEj=function(Y,G){var u,O;return(((u=Y.content)==null?void 0:u.length)||0)>(((O=G.content)==null?void 0:O.length)||0)};
Aaa=function(Y,G,u,O,Q,M){var t=_.CH("truncated-text-content"),K=_.CH("truncated-text-content"),L=_.CH("button"),g=_.CH("button"),P=_.CH("button"),I=_.sH().resolve(_.od),k=_.E(_.SN(function(){return xDu(Y(),Q())})),n=k.next().value,p=k.next().value;
k=_.E(_.SN(function(){return eEj(Y(),n())}));
var W=k.next().value,C=k.next().value,e=null;_.RE(function(){function w(){if(t.value&&L.value&&P.value){var h=M()?Y():yaj(Y(),Q(),t,K,G(),u());p(h);requestAnimationFrame(function(){if(t.value&&L.value&&P.value){var q=raT(t.value)||eEj(Y(),h);C(q);if(!O()){var U=raT(t.value),Mj=u(),Xt=t.value,ka=L.value,aU=P.value,Tg=I==="rtl";if(Xt&&ka){var iy=ka.offsetLeft;Tg&&(iy=Xt.offsetWidth-ka.offsetWidth-ka.offsetLeft);if(q){q=ka.offsetWidth;ka=Xt.offsetWidth;var hY=U?ka-q-70:iy-70;Mj="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
Mj+"rem,\n      #000 "+Mj+"rem,\n      #000 100%), linear-gradient(\n      to "+((Tg?"left":"right")+",\n      #000 0px,\n      #000 "+hY+"px,\n      transparent "+(U?ka-q:hY+70)+"px)");Xt.style.setProperty("-webkit-mask-image",Mj);Xt.style.setProperty("mask-image",Mj)}else Xt.style.setProperty("-webkit-mask-image",""),Xt.style.setProperty("mask-image","");U?Tg?(aU.style.setProperty("left","0"),aU.style.setProperty("right","unset")):(aU.style.setProperty("left",""),aU.style.setProperty("right","0")):
Tg?(aU.style.setProperty("left","unset"),aU.style.setProperty("right",iy+"px")):(aU.style.setProperty("left",iy+"px"),aU.style.setProperty("right","unset"))}}}})}}
var B,N;(B=e)==null||(N=B.stop)==null||N.call(B);B=new _.JR(w,17);w();e=B},"KjwIxd");
_.ii(function(){p(xDu(Y(),Q()));C(eEj(Y(),n()));var w=function(){Cnj=void 0;var N,h;(N=e)==null||(h=N.fire)==null||h.call(N)};
if(window.ResizeObserver){var B=new ResizeObserver(w);B.observe(t.value);_.w_(function(){var N,h;(N=e)==null||(h=N.stop)==null||h.call(N);B.disconnect()})}else window.addEventListener("resize",w),_.w_(function(){var N,h;
(N=e)==null||(h=N.stop)==null||h.call(N);window.removeEventListener("resize",w)})});
return{isTruncated:W,displayText:n,contentRef:t,hiddenRef:K,placeholderTruncationTextRef:L,hiddenTruncationTextRef:g,truncationTextRef:P}};
oEY=function(Y){return{content:Y!=null?Y:""}};
ity=function(Y){return _.FS(Y.onTap)||_.F9(Y.rendererContext)};
REY=function(Y){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:Y.overflowMenuA11yLabel,onTap:function(G){G.preventDefault();G.stopPropagation();if(Y.overflowMenuOnTap){var u=_.zU({elementsCommand:Y.overflowMenuOnTap,forceNewState:!0});if(u==null?0:u.onclick)u.onclick(G)}}}};
_.i5=function(Y,G,u,O,Q){O=O===void 0?{}:O;if(!Q||Math.random()<5E-4){G=G||null;u=u||null;Y=Y instanceof Error?Y:new _.I2(Y);if(Y.args)for(var M=_.E(Y.args),t=M.next();!t.done;t=M.next())t=t.value,t instanceof Object&&(O=Object.assign({},t,O));O.category="H5 Ads Control Flow";G&&(O.slot=G?"slot:  "+G.slotType:"");u&&(O.layout=u?"layout:  "+u.layoutType:"",O.layoutId=u.layoutId);Q&&(O.known_error_aggressively_sampled=!0);Y.args=[O];_.R0(Y)}};
_.w61=function(Y,G){G=_.hH(G);_.qZ(Y,"yt-open-popup-action",[G,Y])};
_.Rd=function(Y,G){_.w61(Y,_.i8(G))};
DDu=function(Y){if(!Y)return"";if(Ztu[Y])return Ztu[Y];ww||(ww=_.uI("A"));ww.href!==Y&&Y6(ww,Y);var G=ww.pathname;Ztu[Y]=G.startsWith("/")?G:"/"+G;return Ztu[Y]};
hE4=function(){var Y=DDu(window.location.href);if(Y==="/")return"home";if(Y.startsWith("/results"))return"search";if(Y.startsWith("/watch"))return"watch";if(Y.startsWith("/shorts"))return"shorts";if(Y.startsWith("/hashtag"))return"hashtag";if(Y.startsWith("/create_channel"))return"create_channel";if(Y.startsWith("/@")||Y.startsWith("/user/")||Y.startsWith("/channel/"))return"channel";if(Y.startsWith("/experiments"))return"experiments";if(Y.startsWith("/sponsor_channel"))return"sponsorship";if(Y.startsWith("/select_site"))return"settings";
if(Y.startsWith("/locate"))return"locate";if(Y.startsWith("/redeem"))return"redeem";if(Y.startsWith("/musicpremium")||Y.startsWith("/premium")||Y.startsWith("/red"))return"premium";if(Y.startsWith("/paid_memberships"))return"paid_memberships";if(Y.startsWith("/oops"))return"oops";if(Y.startsWith("/clip"))return"clip";var G;return(Zj==null?void 0:(G=Zj.response)==null?void 0:G.page)==="404"?"404":Y.startsWith("/feed/history")?"history":Y.startsWith("/feed/library")?"library":Y.startsWith("/feed/subscriptions")?
"subscriptions":Y.startsWith("/feed/trending")?"trending":Y.startsWith("/feed/news_destination")?"news":Y.startsWith("/playlist")?"playlist":Y.startsWith("/minor_moment")?"minor_moment":Y.startsWith("/playable/")||Y.match("^/playables/(?!saved).")?"mini_app":Y.startsWith("/playables")?"playables":Y.startsWith("/create/live/join")?"open_in_app":Y.startsWith("/feed/explore")?"explore":"browse"};
_.h$=function(){var Y=Zj==null?void 0:Zj.response,G=Y==null?void 0:Y.endpoint;if(!G)return(Y==null?void 0:Y.page)==="watch"?"watch":hE4();var u;Y=(u=_.z(G==null?void 0:G.commandMetadata,_.ug))==null?void 0:u.webPageType;u=!1;if(Y&&!dDg.includes(Y))switch(Y){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 O;return((O=_.z(G==null?void 0:G.commandMetadata,_.ug))==null?0:O.url)&&DDu(_.z(G.commandMetadata,_.ug).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var Q;return(G=(Q=_.z(G,_.Y3))==null?void 0:Q.browseId)?bt4[G]||"browse":"browse";default:u=!0}if(_.z(G,_.Dj)||_.z(G,SdA))return"sponsorship";Q=DDu(window.location.href);if(Q.startsWith("/experiments"))return"experiments";if(Q.startsWith("/create_channel"))return"create_channel";
if(_.z(G,_.SK)&&Q.startsWith("/shorts"))return"shorts";if(_.z(G,_.SK)&&Q.startsWith("/watch"))return"watch";u&&(G=new _.I2("Unsupported mWeb page type",{pathname:Q,webPageType:Y}),_.o0(G));return"browse"};
dw=function(Y,G,u,O){return Y&&G?Y!==u||G!==O?(_.i5(Error("Lh"),void 0,void 0,{"stored-slot":Y,"stored-layout":G,"latest-slot":u,"latest-layout":O}),!1):!0:!1};
jQg=function(Y,G,u){return Y({targetId:G},function(O){return u.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},O,{contents:[u.continuationItems?_.z(u.continuationItems[0],NIj):{}]}):u.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},O,{header:u.continuationItems?u.continuationItems[0]:void 0}):Object.assign({},O,{contents:u.continuationItems?u.continuationItems:[]})})};
VMy=function(Y,G,u,O){if(G=G.trackingParams){var Q,M=(Q=u.getScreenLayer)==null?void 0:Q.call(u);u=_.FA(M);Q=_.nX(M);if(u&&Q){var t=_.Kd(G);_.F("combine_ve_grafts")?Y.graftServerVe(G,Q,M):_.y6(u,Q,t);O==null||O(t)}}};
BIj=function(Y){var G;return((G=l81.get(Y))==null?void 0:G.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
sQA=function(Y,G){var u={type:G.slotType,controlFlowManagerLayer:$Dt.get(G.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};G.slotEntryTrigger&&(u.entryTriggerType=G.slotEntryTrigger.triggerType);G.slotPhysicalPosition!==1&&(u.slotPhysicalPosition=G.slotPhysicalPosition);if(Y){u.debugData={slotId:G.slotId};if(Y=G.slotEntryTrigger)u.debugData.slotEntryTriggerData=qdU(Y);Y=G.slotFulfillmentTriggers;u.debugData.fulfillmentTriggerData=[];Y=_.E(Y);for(var O=Y.next();!O.done;O=Y.next())u.debugData.fulfillmentTriggerData.push(qdU(O.value));
G=G.slotExpirationTriggers;u.debugData.expirationTriggerData=[];G=_.E(G);for(Y=G.next();!Y.done;Y=G.next())u.debugData.expirationTriggerData.push(qdU(Y.value))}return u};
qdU=function(Y,G){var u={type:Y.triggerType};G!=null&&(u.category=G);Y.triggeringSlotId!=null&&(u.triggerSourceData||(u.triggerSourceData={}),u.triggerSourceData.associatedSlotId=Y.triggeringSlotId);Y.triggeringLayoutId!=null&&(u.triggerSourceData||(u.triggerSourceData={}),u.triggerSourceData.associatedLayoutId=Y.triggeringLayoutId);return u};
ca1=function(Y,G,u,O){G={opportunityType:G};Y&&(O||u)&&(O=_.Xi(O||[],function(Q){return sQA(Y,Q)}),G.debugData=Object.assign({},u&&u.length>0?{associatedSlotId:u}:{},O.length>0?{slots:O}:{}));
return G};
UDa=function(Y){return b5(Y.opportunityAdapterMap).concat(b5(Y.triggerAdapterMap)).concat(b5(Y.fulfillmentAdapterFactoryMap)).concat(b5(Y.slotAdapterFactoryMap)).concat(b5(Y.layoutRenderingAdapterFactoryMap))};
b5=function(Y){var G=[];Y=_.E(Y.values());for(var u=Y.next();!u.done;u=Y.next())u=u.value,u.isAdsControlFlowEventListener&&G.push(u);return G};
Nv=function(Y){var G=Y.slotId,u=Y.slotType,O=Y.slotPhysicalPosition;return G===void 0?new S0("Cannot construct a slot due to the missing id.",{adSlotMetadata:Y}):u===void 0?new S0("Cannot construct a slot due to the missing type.",{adSlotMetadata:Y}):O===void 0?new S0("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:Y}):{slotId:G,slotType:u,slotPhysicalPosition:O,managerLayer:"external",adSlotLoggingData:Y.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new vEt}};
JaY=function(Y){var G=Y.layoutId,u=Y.layoutType;return G===void 0?new j0("Cannot construct a layout due to the missing id.",{adLayoutMetadata:Y}):u===void 0?new j0("Cannot construct a layout due to the missing type.",{adLayoutMetadata:Y}):{layoutId:G,layoutType:u,managerLayer:"external",adLayoutLoggingData:Y.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new vEt,interactionLoggingAdsClientData:{}}};
l5=function(Y,G){if(G&&(YNu(G.viewableCommand)||YNu(G.endOfSessionCommand))){var u=G3U(G==null?void 0:G.viewableCommand);G=G3U(G==null?void 0:G.endOfSessionCommand);if(!VY){var O=_.Jy("custom_active_view_tos_timeout_ms");VY=O>0&&O!==36E5?new uKY(Ovj(),O):new uKY(Ovj())}Q5A(VY,Y);M$u(VY,Y,u,G)}};
BE=function(Y){VY&&Q5A(VY,Y)};
Ovj=function(){var Y=_.DE("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(Y==null?void 0:Y.length)===2?Y[1]:null};
YNu=function(Y){Y=_.FS(Y);return!(Y==null||!Y.loggingUrls)&&Y.loggingUrls.length>0};
G3U=function(Y){if(!Y)return[];var G=[],u,O;((O=(u=_.FS(Y))==null?void 0:u.loggingUrls)!=null?O:[]).forEach(function(Q){Q.baseUrl&&G.push(Q.baseUrl)});
return G};
Hvt=function(Y){if(_.F("stop_av_measurement_on_detach"))return function(){BE(Y)}};
EZj=function(Y){return function(){_.F("stop_av_measurement_on_detach")&&BE(Y)}};
t$g=function(Y){if(_.F("stop_av_measurement_on_detach"))return function(){BE(Y)}};
Kn1=function(Y){return Y.shorts.isDesktopSmallWidth};
_.aga=function(Y){return Y.shorts.isShortsActive};
_.TyI=function(Y){return Y.shorts.isWatchWhileMode};
_.$C=function(Y){return Y.shorts.isFullscreen};
_.qv=function(Y){return Y.shorts.isShortsPipActive};
gZA=function(Y){var G,u;if(Y=(G=_.z(Y.reelsAdCardButtoned,Lnj))==null?void 0:(u=G.animatedRenderingConfig)==null?void 0:u.easeOutSeconds)return Y+"s"};
Pz4=function(Y,G,u){return _.a(function(O){return O.return(new Promise(function(Q){var M=new Image;M.onload=function(){Q(new XR4(Y,G,u,M.naturalWidth,M.naturalHeight))};
M.src=u.toString()}))})};
Igt=function(Y,G){return Math.round(Y/1E-5)===Math.round(G/1E-5)};
k3A=function(Y,G){return Math.round(Y/1E-5)===Math.round(G/1E-5)};
nZt=function(Y,G){return Y.year===G.year&&Y.month===G.month&&Y.day===G.day};
Fnu=function(Y,G){return Y.year!==G.year?Y.year<G.year:Y.month!==G.month?Y.month<G.month:Y.day<G.day};
z2A=function(Y){return Y.day===pR1(Y.year,Y.month)?Y.month===11?{year:Y.year+1,month:0,day:1}:{year:Y.year,month:Y.month+1,day:1}:{year:Y.year,month:Y.month,day:Y.day+1}};
mBg=function(){var Y=new Date,G={year:Y.getFullYear(),month:Y.getMonth(),day:Y.getDate()};return{start:G,end:{year:Y.getFullYear()+2,month:Y.getMonth(),day:Y.getDate()},selectedDate:z2A(G)}};
WnI=function(Y){return(new oi(2)).format(new Date(Y.year,Y.month,Y.day))};
r94=function(Y){return{year:Y.getFullYear(),month:Y.getMonth(),day:Y.getDate()}};
xBt=function(Y,G){Y=(Y+(Number(G.utcOffsetSec)+(new Date(Y*1E3)).getTimezoneOffset()*60))*1E3;G=r94(new Date(Y));return{date:G,secondsSinceMidnight:Math.floor((Y-(new Date(G.year,G.month,G.day)).getTime())/1E3)}};
fgu=function(Y,G){G=G.months.findIndex(function(u){return u.year===Y.year&&u.month===Y.month});
return G>=0?G:void 0};
Czu=function(Y){if(!Y)return!1;try{if(Y.host&&Y.host.tagName==="YT-FORMATTED-STRING"&&Y.host.id==="contenteditable-textarea"||Y.nodeType===Node.ELEMENT_NODE&&Y.tagName==="YTD-COMMENTBOX")return!0}catch(G){return!1}return Czu(Y.parentNode)};
se=function(Y){return Y?!(Y.tagName!=="A"||!Y.href||!Y.classList.contains("yt-simple-endpoint")):!1};
y91=function(Y){return Y?Y.tagName==="IMG"&&Y.classList.contains("emoji"):!1};
e2y=function(Y,G,u){if(!Y)return null;var O=se(Y);if(O&&u)return G=Y.pathname.substring(Y.pathname.indexOf("/channel/")+9),document.createTextNode("@"+G);if(O&&!u)return document.createTextNode("");if(y91(Y))return u=Y.alt,Y=Y.dataset.emojiId,!Y&&G&&(G=_.cE(G,u))&&G.isCustomEmoji&&(Y=G.emojiId),Y?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+Y+">"):document.createTextNode(u);O=Y.cloneNode(!1);for(var Q=0;Q<Y.childNodes.length;++Q){var M=e2y(Y.childNodes[Q],G,u);M&&O.appendChild(M)}return O};
Ue=function(Y){return Y?se(Y)?Y:Ue(Y.lastChild):null};
A94=function(Y){return Y?se(Y)?Y:A94(Y.firstChild):null};
oZt=function(Y){if(!Y)return null;for(var G=Y.previousSibling;G;)if(G.nodeType===Node.ELEMENT_NODE&&G.nodeName==="BR")G=G.previousSibling;else if(G.nodeType===Node.TEXT_NODE&&/\s+/.test(G.textContent))G=G.previousSibling;else break;(G=Ue(G))?Y=G:Y=(Y=Y.parentNode)?Ue(Y.previousElementSibling):null;return Y};
ivt=function(Y){if(!Y)return null;for(var G=Y.nextSibling;G;)if(G.nodeType===Node.ELEMENT_NODE&&G.nodeName==="BR")G=G.nextSibling;else if(G.nodeType===Node.TEXT_NODE&&/\s+/.test(G.textContent))G=G.nextSibling;else break;return(G=A94(G))?G:ivt(Y.parentNode)};
R2I=function(Y){var G=_.Et(),u=G.JSC$11678_getStartNode();if(!Czu(u.parentNode))return null;G=G.JSC$11678_getStartOffset();if(u.nodeType===Node.TEXT_NODE){var O=_.pm(u,se);if(O){if(Y&&G===0||!Y&&G===u.length)return O}else{if(Y&&G===u.length)return!u||u.nodeName==="BR"||u.nextElementSibling&&_.vE(u.nextElementSibling,"display")==="block"?null:A94(u.nextElementSibling);if(!Y&&G===0)return u?Ue(u.previousElementSibling):null}}if(u.nodeType===Node.ELEMENT_NODE)if(Y){if(0<=G&&G<u.childNodes.length)return A94(u.childNodes[G])}else if(0<
G&&G<=u.childNodes.length)return Ue(u.childNodes[G-1]);return null};
wRA=function(Y,G,u){if(!Y)return null;if(Y.nodeType===Node.TEXT_NODE)if(u){var O=oZt(Y);if(O&&!/^\s+\S/.test(Y.wholeText.substr(0,G)))return O}else if((O=ivt(Y))&&!/\S\s+/.test(Y.wholeText.substr(G,Y.wholeText.length)))return O;return Y.nodeType===Node.ELEMENT_NODE?u?oZt(Y.childNodes[G]):ivt(Y.childNodes[G]):wRA(Y.parentNode,G,u)};
Zvt=function(Y){if(Y.hasChildNodes())switch(Y.tagName){case "DIV":case "A":case "SPAN":var G="";for(Y=Y.firstChild;Y;Y=Y.nextSibling)G+=Zvt(Y);return G;default:return""}else switch(Y.nodeType){case 3:return Y.textContent;default:return""}};
J$=function(Y,G){return Y.year===G.year&&Y.month===G.month&&Y.day===G.day};
Y2=function(Y,G){return Y.year!==G.year?Y.year<G.year:Y.month!==G.month?Y.month<G.month:Y.day<G.day};
DBj=function(Y){return{year:Y.getFullYear(),month:Y.getMonth(),day:Y.getDate()}};
h24=function(Y){var G=h5j;G=G===void 0?h5j:G;G(new Date(Y.year,Y.month,Y.day))};
GP=function(Y){return DBj(new Date(Number(Y.seconds)*1E3))};
dBt=function(Y){return Y.year!==void 0&&Y.month!==void 0&&Y.day!==void 0};
bvj=function(Y){return Y.start!==void 0&&Y.end!==void 0};
SNy=function(Y){return bvj(Y)?Y.start:Y};
Nyt=function(Y){return bvj(Y)?Y.end:void 0};
V$j=function(Y,G){for(var u=[],O=new Date(Y.start.year,Y.start.month);O.getFullYear()<Y.end.year||O.getFullYear()===Y.end.year&&O.getMonth()<=Y.end.month;){var Q=u,M=Q.push,t=O.getFullYear(),K=O.getMonth(),L=Y,g=G,P=void 0,I=[],k=Object.freeze({extraCssClass:"invisible"}),n=new Date(t,K),p=DBj(n);n=n.getDay();for(var W=DBj(new Date);p.month===K;){n!==j5j&&P||(P=Array.from({length:7}).fill(k),I.push(P));var C={date:{year:t,month:K,day:p.day},extraCssClass:"",debugClass:""};C.extraCssClass=g(C.date,
p,W,L).trim();P[(n-j5j+7)%7]=C;p=p.day===pR1(p.year,p.month)?p.month===11?{year:p.year+1,month:0,day:1}:{year:p.year,month:p.month+1,day:1}:{year:p.year,month:p.month,day:p.day+1};n=(n+1)%7}M.call(Q,{weeks:I,monthLabel:u6.SHORTMONTHS[K]+" "+t,year:t,month:K,monthLabelExtraCssClass:I[0][2]===k?"shift-down-label":""});O.setMonth(O.getMonth()+1)}return u};
lgg=function(Y,G){G=G.months.findIndex(function(u){return u.year===Y.year&&u.month===Y.month});
return G>=0?G:void 0};
$BY=function(Y,G){a:{var u=u===void 0?[2,3]:u;u=_.E(u);for(var O=u.next();!O.done;O=u.next()){var Q=new Date;if((new ByY(O.value)).parse(G,Q,{validate:!0})){Q.setHours(0,0,0,0);G=Q;break a}}G=null}if(!G)return{isValid:!1,value:void 0};G=DBj(G);u=Y.end;return Y2(G,Y.start)||Y2(u,G)?{isValid:!1,value:void 0}:{isValid:!0,value:G}};
vZA=function(Y){var G=qNu;G=G===void 0?s5T:G;var u=Y.columnsToShow||[],O=c9A(Y.columnDimensions,Y.columnsToShow,Y.leftFloatingColumns,G);return u.map(function(Q,M){var t=Y.columns[Q];if(t===void 0)throw Error("Rh");var K=O?O[M]:"";var L=Y.getCustomTooltip?Y.getCustomTooltip(Q,t.headerTooltipParagraphs):t.headerTooltipParagraphs;var g=UBg(Y,Q);return{type:Q,index:M,style:K,classes:g,headerName:t.headerName||"",headerIcon:t.headerIcon,headerTooltipParagraphs:L||[],headerTooltipHelpContext:t.headerTooltipHelpContext,
sortOrders:t.sortOrders||[],selectionState:t.isSelectionCheckbox?Y.selectionState:void 0}})};
UBg=function(Y,G){var u=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],O=Y.columns[G];if(O===void 0)return"";var Q=u.includes("DEFAULTS")&&O.cssClass?[O.cssClass]:[];if(u.includes("SORTING")){O.sortOrders&&O.sortOrders.length&&Q.push("sortable");if(Y.sorting&&Y.sorting.columnType===G)a:switch(Y.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var M="column-sorted";break a;default:M=""}else M="";M&&Q.push(M)}u.includes("FLOATING")&&(G=Y.columnsToShow.indexOf(G),Y.leftFloatingColumns&&G<Y.leftFloatingColumns&&
Q.push("floating-column"),Y.leftFloatingColumns&&G===Y.leftFloatingColumns-1&&Q.push("last-floating-column"));u.includes("RIGHT_ALIGN")&&O.rightAlignHeader&&Q.push("right-align");return Q.filter(function(t){return t}).join(" ")};
c9A=function(Y,G,u,O){u=u===void 0?0:u;O=O===void 0?s5T:O;if(Y){var Q=[],M=0;J9g(Y,G,O).forEach(function(t,K){var L="min-width:"+t.minWidth+"px;padding-left:"+t.paddingLeft+"px;padding-right:"+t.paddingRight+"px;flex:"+t.flexGrow+" 0 "+t.minWidth+"px;";t.maxWidth!==Infinity&&(L=[L,"max-width:"+t.maxWidth+"px;"].join(""));M>0&&K<u&&(L=[L,"left:"+M+"px;"].join(""));Q.push(L);M+=t.minWidth+t.paddingLeft+t.paddingRight});
return Q}};
J9g=function(Y,G,u){u=u===void 0?s5T:u;return G.map(function(O,Q){O=Y&&Y[O]||{};var M=Q===0?u.paddingLeftFirstColumn:u.padding;O.paddingLeft!==void 0&&(M=O.paddingLeft);Q=Q===G.length-1?u.paddingRightLastColumn:u.padding;O.paddingRight!==void 0&&(Q=O.paddingRight);return{paddingLeft:M,paddingRight:Q,minWidth:O.minWidth!==void 0?O.minWidth:u.minWidth,maxWidth:O.maxWidth!==void 0?O.maxWidth:u.maxWidth,flexGrow:O.flexGrow!==void 0?O.flexGrow:u.flexGrow}})};
YYA=function(Y){var G=Y.reduce(function(O,Q){var M=Q.columnId,t={};Q.headerText&&(t.headerName=_.Ri(Q.headerText));Q.rightAlignHeader&&(t.rightAlignHeader=Q.rightAlignHeader);var K;if((K=Q.headerIcon)==null?0:K.iconType)t.headerIcon=_.Ux(Q.headerIcon.iconType);O[M]=t;return O},{}),u=Y.filter(function(O){return!O.hideColumn}).map(function(O){return O.columnId});
Y=Y.filter(function(O){return!!O.dimensions}).reduce(function(O,Q){O[Q.columnId]=Q.dimensions;
return O},{});
return{columns:G,columnsToShow:u,columnDimensions:Y}};
_.GJj=function(Y){return Y?Y.simpleText?Y.simpleText:Y.runs?Y.runs.map(function(G){return G.text}).join(""):"":""};
ErY=function(Y){var G=Y.data;var u=Y.onTap;var O=Y.isSelected;var Q=Y.onFocusIn;if(!G)return{};Y=uWA(G);O===void 0&&(O=G==null?void 0:G.isSelected);var M;return{text:OYj(G,Y),startIcon:(M=G.icon)==null?void 0:M.iconType,state:O?0:2,type:0,style:QmA(G),onTap:Mwt(G,u),accessibilityLabel:HYy(G,Y),onFocusIn:function(){return Q==null?void 0:Q()}}};
OYj=function(Y,G){if(!G)return Y.text?_.GJj(Y.text):void 0};
QmA=function(Y){var G;switch((G=Y.style)==null?void 0:G.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
Mwt=function(Y,G){return function(u){G==null||G(u,Y)}};
uWA=function(Y){Y=Y.style&&Y.style.styleType;return!f8U&&Y==="STYLE_EXPLORE_LAUNCHER_CHIP"};
HYy=function(Y,G){if(G){var u,O,Q;return(Q=(u=Y.accessibilityData)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label)!=null?Q:OYj(Y,!1)}};
twA=function(){var Y;return[function(G,u,O){return _.$s(Y,G,u,O)},
function(G){Y=G}]};
Krg=function(Y,G){return _.v2(Y.entities,"chipEntity",G)};
Tqu=function(Y,G,u,O){return function(){var Q=a6I.has(Y.displayType)&&Y.selected,M=Q&&Y.deselectCommand?Y.deselectCommand:Y.tapCommand;!M||Q&&O||_.W3(M,{form:{element:G==null?void 0:G.value}});u==null||u()}};
Lrt=function(Y,G){G=G==null?void 0:G.stepStates;if(Y&&G){var u,O;return(u=G[Y])==null?void 0:(O=u.userQuery)==null?void 0:O.userQuery}};
On=function(Y){return{signalAction:{signal:Y}}};
P1y=function(){return _.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?grU:_.X_4};
I6u=function(Y,G){Y=Y===void 0?"SOFT_RELOAD_PAGE":Y;G=G===void 0?49504:G;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Sy(_.Q6("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:G}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:Y}}]}}}};
kJj=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Sy(_.Q6("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:P1y()}};
nrU=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Sy(_.Q6("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:P1y()}};
FrA=function(Y,G){var u=_.Sy(_.Q6("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),O=_.Sy(_.Q6("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),Q={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Sy(_.Q6("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};Q.serviceEndpoint=Y?Y:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[On("SOFT_RELOAD_PAGE")]}};return{title:u,bodyText:O,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:Q},
style:{value:G!=null?G:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
zDu=function(Y){Y=Y===void 0?{}:Y;return{title:_.Sy(Y.localizedZeroStateTitleText===void 0?"":Y.localizedZeroStateTitleText),bodyText:_.Sy(Y.localizedZeroStateMessage===void 0?"":Y.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Sy(Y.localizedZeroStateButtonText===void 0?"":Y.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[p_A]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Wrt=function(Y){Y=Y===void 0?{}:Y;return{title:_.Sy(Y.localizedOptInBannerTitleText===void 0?"":Y.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Sy(Y.localizedOptInMessage===void 0?"":Y.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Sy(_.Q6("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:_.Sy(_.Q6("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:[msu]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
f6t=function(Y,G){var u=G=G===void 0?{}:G;G=u.offlineTitleText===void 0?"":u.offlineTitleText;var O=u.offlineDescriptionText===void 0?"":u.offlineDescriptionText,Q=u.formattedSupplementalText,M=u.actionButtonText===void 0?"":u.actionButtonText,t=u.titleText===void 0?"":u.titleText;u=u.descriptionText===void 0?"":u.descriptionText;var K={title:M,accessibilityText:M,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};Y||(t=G,u=O,K={title:M,accessibilityText:M,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.Sy(t),titleLength:t.length,overrideTitleMaxFontSize:30,subtitle:_.Sy(u),supplementalText:Q,primaryButton:{buttonViewModel:K},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[rJg]},darkTileImage:{thumbnails:[xst]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.eDg=function(Y,G,u,O,Q,M,t,K,L,g,P){Q=Q===void 0?!1:Q;M=M===void 0?!1:M;t=t===void 0?0:t;K=K===void 0?-Infinity:K;L=L===void 0?!1:L;g=g===void 0?!1:g;P=P===void 0?!1:P;var I=[],k=_.Sy(_.Q6("SMART_DOWNLOADS",void 0,"Smart downloads")),n=_.Sy(C1u(t,K,Y.length));K=t=void 0;g?t={statementBannerRenderer:f6t(P,O)}:Q?Y.length>0?K=yJ4(Y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.F("kevlar_manual_downloads_above"),k,n):L?K={alertBannerViewModel:{heading:{content:u.localizedOptInBannerTitleText===
void 0?"":u.localizedOptInBannerTitleText},body:{content:u.localizedPromptMessage===void 0?"":u.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Q6("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Q6("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:_.nKj}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:M&&(K={backgroundPromoRenderer:{bodyText:_.Sy(_.Q6("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"}}}):
M&&(K={alertBannerViewModel:{heading:{content:u.localizedOptInBannerTitleText===void 0?"":u.localizedOptInBannerTitleText},body:{content:u.localizedOptInMessage===void 0?"":u.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Q6("TURN_ON",void 0,"Turn on"),accessibilityText:_.Q6("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}}}}}});u=_.Sy(_.Q6("YOUR_DOWNLOADS",void 0,"Your downloads"));O=void 0;G.length>0?(O=void 0,_.F("kevlar_display_downloads_numbers")&&(O=_.Sy(_.Mu("VIDEO_COUNT",G.length))),O=yJ4(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,u,O)):Q||Y.length||
g||(O={backgroundPromoRenderer:{bodyText:_.Sy(_.Q6("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}}}});t?I.push({richSectionRenderer:{content:t}}):K&&!_.F("kevlar_manual_downloads_above")&&I.push({richSectionRenderer:{content:K,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
O&&I.push({richSectionRenderer:{content:O,loggingDirectives:{clientVeSpec:{uiType:51721}}}});K&&_.F("kevlar_manual_downloads_above")&&I.push({richSectionRenderer:{content:K,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(G.length>0||Q&&Y.length>0&&!g)&&I.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Sy(_.Q6("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:I}};
_.orA=function(Y){return AJY(Y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.iYu=function(Y){return AJY(Y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
AJY=function(Y,G){var u=[];Y=yJ4(Y,G,!0);u.push({richSectionRenderer:{content:Y}});return{contents:u}};
yJ4=function(Y,G,u,O,Q){u=u===void 0?!1:u;var M="RESPONSIVE_SIZE_STANDARD";_.F("kevlar_standard_rich_grid_on_offline_home")&&G==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?M="RESPONSIVE_SIZE_STANDARD":_.F("kevlar_modern_downloads_compact")?M="RESPONSIVE_SIZE_COMPACT":_.F("kevlar_modern_downloads_extra_compact")?M="RESPONSIVE_SIZE_EXTRA_COMPACT":_.F("kevlar_modern_downloads_tiny")&&(M="RESPONSIVE_SIZE_TINY");Y={isExpanded:u,contents:QN(Y),entitySelectorType:G,responsiveContainerConfiguration:{responsiveSize:M}};
O&&(Y.title=O);Q&&(Y.subtitle=Q);u||(_.F("kevlar_smart_downloads_show_more_button")?(Y.showMoreButton={buttonRenderer:{accessibility:{label:_.Q6("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Sy(_.Q6("SHOW_MORE",void 0,"Show more"))}},Y.showLessButton={buttonRenderer:{accessibility:{label:_.Q6("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.Sy(_.Q6("SHOW_LESS",void 0,"Show less"))}}):(Y.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Q6("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}}}},Y.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Q6("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}}}},Y.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Q6("VIEW_ALL",void 0,"View all"),accessibilityText:_.Q6("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:_.dS("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:Y}};
QN=function(Y){var G=[];Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())if(u=u.value,Gea(u)){var O=G,Q=O.push;var M=void 0;if(u==null?0:(M=u.videoEntity)==null?0:M.videoId){M=xG(_.Zs().getState(),u.videoEntity.videoId);var t=_.Zs().getState();var K=_.UU(u.videoEntity.videoId,"mainVideoEntity");t=!!_.LU(t.entities)[K];t={videoId:u.videoEntity.videoId,title:Nu(u.videoEntity.title),shortBylineText:Nu(u.channelEntity.title),thumbnail:u.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:t&&_.F("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:oYA(u.videoEntity.videoId,M,u.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Q6("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};u.videoEntity.lengthSeconds&&(t.thumbnailOverlays=uyj(u.videoEntity.lengthSeconds,M));t.isWatched=M>0;_.F("kevlar_modern_downloads_page")&&(t.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:u.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Q6("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},t.badges=void 0);u=t}else u={};Q.call(O,{richItemRenderer:{content:{videoRenderer:u},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(YoU(u)){O=G;Q=O.push;var L=K=M=void 0,g=void 0,P=void 0,I=void 0,k=void 0,n=void 0,p=void 0,W=void 0,C=void 0,e=void 0;t=u.mainPlaylistEntity.playlistId;var w=u==null?void 0:(e=u.mainPlaylistEntity)==null?void 0:(C=e.thumbnailStyleData)==null?void 0:(W=C[0])==null?void 0:(p=W.value)==null?void 0:(n=p.collageThumbnail)==
null?void 0:n.coverThumbnail;if(t&&w){n=iI1(t);!_.F("enable_offline_playlist_page")&&(u==null?0:(k=u.mainPlaylistEntity)==null?0:k.videos)&&(k=u==null?void 0:(I=u.mainPlaylistEntity)==null?void 0:(P=I.videos)==null?void 0:P[0],P=_.B2(k).entityId,P=JSON.parse(P).videoId,P!==void 0&&(n=xG(_.Zs().getState(),P),n=_.bg(P,t,void 0,void 0,n)));P=[];if(u==null?0:(g=u.mainPlaylistEntity)==null?0:(L=g.videos)==null?0:L.length)L=Diy(),g=Object,P=g.assign,I=(I=ZRy(u==null?void 0:u.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.Sy(I),icon:{iconType:"PLAYLISTS"}}}:void 0,P=[L,P.call(g,{},(K=I)!=null?K:{})];u={playlistId:t,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:w}},navigationEndpoint:n,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:P,title:Nu(u.mainPlaylistEntity.title),shortBylineText:Nu(u==null?void 0:(M=u.channelEntity)==null?void 0:M.title),badges:[{metadataBadgeRenderer:{label:_.Q6("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.F("kevlar_modern_downloads_page")&&(u.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:RDj,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:t,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Q6("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},u.badges=void 0)}else u=void 0;Q.call(O,{richItemRenderer:{content:{playlistRenderer:u},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return G};
C1u=function(Y,G,u){Y=Y?HA1(Y):"";G!==void 0&&isFinite(G)?G===0?G=_.Q6("UPDATING",void 0,"Updating..."):(G=G$j(new Date(G),new Date),G=_.Q6("UPDATED_TIME",{relative_time:G},"Updated "+G)):G="";var O="";Y&&G&&(O=" \u2022 ");if(u&&_.F("kevlar_display_downloads_numbers")){u=_.Mu("VIDEO_COUNT",u);if(Y||G)O=" \u2022 ";return u+O+Y+O+G}return Y+O+G};
w_A=function(Y){return BMu(Y.entities).length};
_.ZYU=function(Y,G,u){var O=yY(Y.responsiveSize),Q;Y=!((Q=Y.responsiveMap)==null||!Q.some(function(M){return M.containerSize==="CONTAINER_SIZE_NARROW"&&M.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:u,containerWidth:G,sizing:O,enableFullBleedForSingleCol:!1,isCompactList:O==="COMPACT"&&Y}};
Dsj=function(Y,G){return _.v2(Y.entities,"votingEntity",G)};
MF=function(Y){if(Y){var G;return((G=_.sH().resolve(_.q3(_.Ee)))==null?0:G())?Y.darkTheme:Y.lightTheme}};
hDt=function(Y,G){if(Y.simpleText)return Object.assign({},Y,{simpleText:fd(Y.simpleText,G)});if(!Y.runs)return Y;for(var u=Object.assign({},Y,{runs:[]}),O=0,Q=_.E(Y.runs),M=Q.next();!M.done;M=Q.next())if(M=M.value,M.text)if(O+M.text.length<=G)u.runs.push(M),O+=M.text.length;else return u.runs.push(Object.assign({},M,{text:fd(M.text,G-O)})),u;return Y};
dsj=function(Y,G){return _.v2(Y.entities,"chipBarStateEntity",G)};
bYA=function(Y){switch(Y){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
SYI=function(Y,G){return{triggeringElement:Y,onDwellTriggeredFn:function(){var u={triggeringElement:Y,loadVideoPreviewEventData:G},O=document.querySelector(".video-preview");O&&O.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:u}))},
onDwellEndFn:function(){var u=document.querySelector(".video-preview");u&&u.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
NqU=function(Y){var G=_.sH().resolve(_.q3(Vug));return function(u){var O=function(){var Q=Y(u);return G&&Q?SYI(u,Q):null};
_.RE(function(){var Q=O();G&&Q&&Promise.resolve().then(function(){G.registerElement(Q)});
_.w_(function(){G&&Q&&Promise.resolve().then(function(){_.xC(G,Q)})})},"p0smCb")}};
VwA=function(Y){var G=Y.dataset.resizeObserverId;if(G)return G;G=""+jmt++;return Y.dataset.resizeObserverId=G};
l6U=function(Y){Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next()){G=G.value;var u=VwA(G.target),O=Object.assign({},{target:G.target},HU.get(u));if(O!=null&&O.contentRect?O.contentRect.width!==G.contentRect.width||O.contentRect.height!==G.contentRect.height:1)for(HU.set(u,{borderBoxSize:G.borderBoxSize,contentBoxSize:G.contentBoxSize,contentRect:G.contentRect,devicePixelContentBoxSize:G.devicePixelContentBoxSize}),u=_.E(En.get(u)||[]),O=u.next();!O.done;O=u.next())O=O.value,O(G)}};
$sU=function(Y,G){var u=VwA(Y);En.has(u)||En.set(u,new Set);En.get(u).add(G);HU.has(u)&&G(Object.assign({},{target:Y},HU.get(u)));tL||(tL=new BqA(l6U));G=tL;G.observe(Y)};
qY4=function(Y,G){var u=VwA(Y);En.has(u)&&(En.get(u).delete(G),En.get(u).size===0&&(En.delete(u),HU.delete(u),tL.unobserve(Y),delete Y.dataset.resizeObserverId));En.size===0&&tL&&(tL.disconnect(),tL=void 0)};
cJu=function(Y,G){var u=_.sH().resolve(cY);return smy.map(function(O){return u.observe(Y,G,O)})};
Us4=function(Y){var G=_.sH().resolve(cY);Y.forEach(function(u){G.unobserveByKey(u)})};
_.K$=function(Y){var G=_.E(KN1()),u=G.next().value,O=G.next().value,Q=Object.assign({},vr4,Y),M=JJt(function(t){var K=t.contentRect.height;if((t=t.contentRect.width)||K||Q.canHaveZeroSize)u.width()===t&&u.height()===K||O(u,{height:K,width:t})},Q.throttleMs);
return[u,function(t){var K=[];Q.useVisibilityObserver&&(K=cJu(t,function(L,g){requestAnimationFrame(function(){g==="visible"?$sU(t,M):qY4(t,M)})}));
K.length||$sU(t,M);return function(){K.length&&(Us4(K),K.length=0);qY4(t,M)}}]};
_.az=function(Y,G){var u=_.E(_.IE(!1,void 0,"YLPUhc")),O=u.next().value,Q=u.next().value,M=!1,t;return function(K){if(t)return _.T(t,Object.assign({},K));if(!M){M=!0;var L=liu;L==null||L.addDep();Y().then(function(g){t=g;Q(!0);L==null||L.removeDep()}).catch(function(g){L==null||L.removeDep();
if(G==null?0:G.debugName){var P,I=new _.I2("failed to load chunk",G.debugName,g==null?void 0:(P=g.toString)==null?void 0:P.call(g));_.o0(I)}else _.o0(g);throw g;})}return _.T(_.X,{cond:O,
then:function(){return _.T(t,Object.assign({},K))}})}};
G6a=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield((0,_.Ok)("dpUCFd"),2);Y=_.Y1T;return G.return(Y)})};
OPa=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield((0,_.Ok)("U9vrqd"),2);Y=ulU;return G.return(Y)})};
MHu=function(Y,G,u,O,Q){Y=G?Y.switchOffCommand:Y.switchOnCommand;if(O&&Q)Qay(Y,u,Q);else{var M,t;(M=_.zU({elementsCommand:Y}))==null||(t=M.onclick)==null||t.call(M,u)}};
Qay=function(Y,G,u){Y=_.zU({elementsCommand:Y,additionalCommandArgs:{commandController:{onSuccess:function(){u(!1)},
onServerError:function(){u(!1)}}}});
if(Y==null?0:Y.onclick)Y.onclick(G),u(!0)};
EWu=function(Y){if(Y)return _.z(Y,HPg)};
tHt=function(Y){if(Y)switch(Y){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
_.TP=function(Y){var G=_.F(Y);B$["counterfactuals."+Y]=String(G);return G};
KQa=function(Y,G){if(!((Y==null?0:Y.entitySelectorType)&&(Y==null?0:Y.entityKey)))return{};switch(Y.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":var u,O=(u=_.vx())==null?void 0:u.getOption("captions","track"),Q,M=typeof(O==null?void 0:O.translationLanguage)==="object"&&((Q=O.translationLanguage)==null?void 0:Q.languageName)||(O==null?void 0:O.displayName)||"";return{data:Object.assign({},!!M&&{selectionText:{content:M}},!!M&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},
{isDisabled:typeof O==="undefined"})};case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.TP("web_shorts_audio_track_picker")){var t;Q=((t=_.vx())==null?void 0:t.getAudioTrack())||void 0;u=Q==null?void 0:(M=Q.getLanguageInfo())==null?void 0:M.getName();Q={data:Object.assign({},{selectionText:{content:u}},u&&!(Q==null?0:(O=Q.getLanguageInfo())==null?0:O.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else Q={};return Q;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return O=
Y!=null&&Y.entityKey?(O=_.c3(G,Y.entityKey))?{isHidden:(O==null?void 0:O.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},O;default:return{}}};
aPY=function(Y,G){return function(u){var O=function(Q){_.nK(_.kC(Q),u,G)||Y(Q)};
u.addEventListener("click",O);return function(){u.removeEventListener("click",O)}}};
_.TZj=function(Y){return function(){return _.z(Y(),_.L$)}};
LQa=function(Y){switch(Y){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
gW1=function(Y){return LQa(Y==null?void 0:Y.all)};
XtT=function(Y){var G={};(Y=Y==null?void 0:Y.padding)&&(G.padding=LQa(Y.vertical)+"px "+LQa(Y.horizontal)+"px");return G};
PWt=function(Y){switch(Y){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
IPa=function(Y){switch(Y){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
k6I=function(Y){switch(Y){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
nWa=function(Y,G){if(G)return{containerStyles:XtT(G),itemStyles:function(u,O){var Q={flex:"1"},M=G==null?void 0:G.flexDirection;b:switch(M){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":u=!!u;break b;default:u=!!O}u||(u=_.DE("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",M==="FLEX_DIRECTION_ROW"||M==="FLEX_DIRECTION_ROW_REVERSE"?(M=gW1(G==null?void 0:G.gap)+"px",u?Q["margin-left"]=M:Q["margin-right"]=M):Q["margin-bottom"]=gW1(G==null?void 0:G.gap)+"px",Q.flex=
"1");return Q},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(G==null?void 0:G.flexDirection)==="FLEX_DIRECTION_ROW"||(G==null?void 0:G.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
FQg=function(Y){return Y<528?"CONTAINER_SIZE_NARROW":Y<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
pta=function(Y,G){Y=_.E(Y.responsiveMap||[]);for(var u=Y.next();!u.done;u=Y.next())if(u=u.value,u.containerSize===G)return u.containerType};
_.zqI=function(Y,G){if(G){var u=G.responsiveSize;Y=FQg(Y);var O=pta(G,Y);if(O&&u){a:{if(O==="CONTAINER_TYPE_VERTICAL_LIST")if(u==="RESPONSIVE_SIZE_STANDARD"){if(Y!=="CONTAINER_SIZE_NARROW"){var Q="50%";break a}}else{Q=Y==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}Q=void 0}return{responsiveSize:u,containerSize:Y,containerType:O,force16By9ThumbnailAspectRatio:!G.enableContentSpecificAspectRatio,contentPreviewWidth:Q,fullbleed:(O==="CONTAINER_TYPE_VERTICAL_LIST"||O==="CONTAINER_TYPE_GRID")&&Y===
"CONTAINER_SIZE_NARROW"&&!1}}}};
mqa=function(Y,G){var u={};switch(G){case "CONTAINER_TYPE_VERTICAL_LIST":u["flex-direction"]="column";u.padding="0 "+Y.margin+"px";break;case "CONTAINER_TYPE_GRID":u["flex-direction"]="row";u.flex="none";u["flex-wrap"]="wrap";u.width=Y.maxContainerWidth?Y.maxContainerWidth+Y.gutter+"px":void 0;u.padding="0 "+(Y.margin-Y.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":u["flex-direction"]="row",u.flex="none",u["overflow-x"]="auto",u.width=Y.maxContainerWidth?Y.maxContainerWidth+"px":void 0,
u.padding="0 "+Y.margin+"px"}return u};
WQt=function(Y,G){if(G){var u=pta(G,FQg(Y));a:switch(u){case "CONTAINER_TYPE_GRID":var O=3;break a;default:O=1}O=_.ZYU(G,Y,O);var Q=_.CK(O);return{containerLayoutConfig:_.zqI(Y,G),containerStyles:mqa(Q,u),itemStyles:function(M,t){M={};switch(u){case "CONTAINER_TYPE_VERTICAL_LIST":t||(M["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":M.width=Q.itemWidth+"px";M["margin-right"]=Q.gutter/2+"px";M["margin-left"]=Q.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":M.width=Q.itemWidth+
"px",M.flex="none",t||(M["margin-right"]=Q.gutter+"px")}return M}}}};
yIA=function(Y,G,u){if(G)return[rIt];switch(Y){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[g4];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return u?[g4]:[xqY,g4];case "TRANSFER_STATE_PAUSED_BY_USER":return[fPA,g4];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[CWY,g4];default:return[rIt]}};
eqt=function(Y,G,u,O){return yIA(Y,G,O).map(function(Q){var M=Q.text,t=Q.iconType,K=Q.videoAction;Q=Q.playlistAction;M=M?{content:M}:void 0;t=t&&{sources:[{clientResource:{imageName:t}}]};var L=(0,_.gX.unsafeClone)(u);if(L){var g=_.z(L,_.Gi),P=_.z(L,_.u5);g&&K?g.action=K:P&&Q&&(P.action=Q)}return{title:M,leadingImage:t,rendererContext:L&&{commandContext:{onTap:{innertubeCommand:L}}}}})};
AIA=function(Y){Y=_.F9(Y.rendererContext);var G;return(G=_.z(Y,_.u5))==null?void 0:G.playlistId};
oWa=function(Y){var G;return(G=Y.listItems)==null?void 0:G.some(function(u){var O;return _.pK((O=_.z(u,_.ad))==null?void 0:O.rendererContext)})};
iP4=function(Y,G){var u;(u=Y[(G+1)%Y.length])==null||u.focus()};
Rqa=function(Y,G){var u=Y.length,O;(O=Y[G===-1?u-1:(G-1+u)%u])==null||O.focus()};
_.X2=function(Y){var G=_.sH().resolve(_.q3(_.Ee));return G!=null&&G()?Y.darkThemeColorPalette:Y.lightThemeColorPalette};
_.Iz=function(Y){return{primaryTextColor:PU(Y,0),secondaryTextColor:PU(Y,1),optionColor:PU(Y,2),backgroundColor:PU(Y,3),videoBackgroundColor:PU(Y,4)}};
PU=function(Y,G){if(Y){switch(G){case 0:Y=Y.primaryTitleColor;break;case 1:Y=Y.secondaryTitleColor;break;case 2:Y=Y.surgeColor;break;case 3:Y=Y.section2Color;break;case 4:Y=Y.section3Color;break;default:return}if(Y)return _.k3(Y)}};
DqU=function(Y){var G=Y.element;var u=Y.veType;var O=Y.storedVisualElement===void 0?null:Y.storedVisualElement;var Q=Y.elementIndex===void 0?0:Y.elementIndex;Y=Y.clientYouTubeData;var M=_.FA();M!==wtg&&(ZPj.clear(),wtg=M);if(G.visualElement&&ZPj.has(G.visualElement))return null;if(O&&ZPj.has(O))return G.visualElement=O,null;u=_.QZ(_.M4(),{veType:u,elementIndex:Q,clientYouTubeData:Y});if(!u)return null;G.visualElement=u;ZPj.add(u);return u};
_.k2=function(Y,G,u,O){u=u===void 0?null:u;O=O===void 0?hqt:O;var Q=Q===void 0?null:Q;gH(function(){if(G){u instanceof Function&&(u=u());var M=DqU({element:G,veType:Y,storedVisualElement:u,clientYouTubeData:void 0});M&&(uq(G,{data:Q,observer:_.sH().resolve(cY),hideOption:ne4,showOption:FCj,layer:G.layer}),O(M))}})};
dq1=function(Y){return Y?_.nB(Y):""};
bP4=function(Y){return(Y==null?void 0:Y.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
S1A=function(Y,G){return _.v2(Y.entities,"videoOverviewAsyncDataEntity",G)};
NZY=function(Y,G){var u;return"linear-gradient(to bottom, "+((u=G==null?void 0:G.map(function(O){var Q=Y?O.darkThemeColor:O.lightThemeColor;return Q?_.nB(Q)+" "+((O==null?void 0:O.startLocation)||0)*100+"%":"transparent"}))==null?void 0:u.join(", "))+")"};
jat=function(Y,G,u,O,Q){if(!((O==null?0:O.height)&&(O==null?0:O.width)))return{size:0};var M=O.width;O=O.height;if(Q)return G==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||G==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&M>O?{size:312/LkU}:G==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(u!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||Y!==1&&Y!==2||G!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&G!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&G!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(G==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||G==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||O===M)switch(Y){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(G==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||O>M)switch(Y){case 1:case 3:return{size:240*TIt};default:return{size:360*TIt}}switch(Y){case 1:case 2:return{size:1/LkU*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.VHy=function(Y){if(!("matchMedia"in window))return _.N3(Error("Sh")),function(){return!1};
var G=window.matchMedia(Y);Y=_.E(_.IE(G.matches,void 0,"waIHpe"));var u=Y.next().value,O=Y.next().value,Q=function(M){O(M.matches)};
G.addEventListener?(G.addEventListener("change",Q),_.w_(function(){G.removeEventListener("change",Q)})):G.addListener&&(G.addListener(Q),_.w_(function(){G.removeListener(Q)}));
return u};
lPU=function(Y){return Y==="IMAGE_BANNER_STYLE_INSET"||Y==="IMAGE_BANNER_STYLE_UNKNOWN"};
BZt=function(){if(!("matchMedia"in window))return _.N3(Error("Sh")),function(){return 0};
var Y=window.matchMedia("(max-width: 527.9px)"),G=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),u=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),O=window.matchMedia("(min-width: 1024px)"),Q=_.E(_.IE(Y.matches,void 0,"TmIKcb")),M=Q.next().value,t=Q.next().value;Q=_.E(_.IE(G.matches,void 0,"Z0fTKd"));var K=Q.next().value,L=Q.next().value;Q=_.E(_.IE(u.matches,void 0,"w4xy7b"));var g=Q.next().value,P=Q.next().value;Q=_.E(_.IE(O.matches,void 0,"DrbNC"));var I=Q.next().value,
k=Q.next().value,n=function(e){t(e.matches)},p=function(e){L(e.matches)},W=function(e){P(e.matches)},C=function(e){k(e.matches)};
_.ii(function(){Y.addEventListener?(Y.addEventListener("change",n),G.addEventListener("change",p),u.addEventListener("change",W),O.addEventListener("change",C)):Y.addListener&&(Y.addListener(n),G.addListener(p),u.addListener(W),O.addListener(C));_.w_(function(){Y.removeEventListener?(Y.removeEventListener("change",n),G.removeEventListener("change",p),u.removeEventListener("change",W),O.removeEventListener("change",C)):Y.removeListener&&(Y.removeListener(n),G.removeListener(p),u.removeListener(W),
O.removeListener(C))})});
return function(){return M()?1:K()?2:g()?3:I()?4:0}};
$qT=function(Y){var G=0;Y=_.E([Y.title,Y.metadata,Y.actions,Y.description,Y.attribution]);for(var u=Y.next();!u.done;u=Y.next())u.value&&G++;return G};
q1T=function(Y){return Y===1||Y===2?1:0};
cIj=function(Y){Y=(new saY).parse(Y);return(new ra).render(Y).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(G){var u=G.split(":").map(Number),O=0,Q=0;if(u.length===3)u=_.E(u),O=u.next().value,Q=u.next().value,u=u.next().value;else if(u.length===2)u=_.E(u),Q=u.next().value,u=u.next().value;else if(u.length===1)u=_.E(u).next().value;else throw Error("Th");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(O*3600+Q*60+u)+'" role="button">'+G+"</span>"})};
UqY=function(Y){Y=_.E(Y.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var G=Y.next(),u={};!G.done;u={clickHandler$jscomp$5:void 0},G=Y.next()){G=G.value;u.clickHandler$jscomp$5=function(Q){Q=Number(Q.target.getAttribute("data-time"));if(isNaN(Q))throw Error("Uh");var M;(M=_.vx())==null||M.seekTo(Q,!0)};
var O=function(Q){return function(M){M.key!=="Enter"&&M.key!=="Space"||(0,Q.clickHandler$jscomp$5)(M)}}(u);
G.setAttribute("tabindex","0");G.removeEventListener("click",u.clickHandler$jscomp$5);G.removeEventListener("keydown",O);G.addEventListener("click",u.clickHandler$jscomp$5);G.addEventListener("keydown",O)}};
vWt=function(){return _.T("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.T(n$,{percentWidth:100}),_.T(n$,{animationDelay:200}),_.T(n$,{animationDelay:400}),_.T(n$,{animationDelay:600}),_.T(n$,{animationDelay:800,percentWidth:60}),_.T("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.T(n$,{percentWidth:100}),_.T(n$,{animationDelay:200}),_.T(n$,{animationDelay:400}),_.T(n$,{animationDelay:600,percentWidth:50}))};
n$=function(Y){return _.T("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(Y.percentWidth===void 0?100:Y.percentWidth)+"%"},_.T("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(Y.animationDelay===void 0?0:Y.animationDelay)+"ms"}))};
JIg=function(){var Y=_.E(_.IE(function(){return""},void 0,"dXJHWc")),G=Y.next().value;
return[function(){return G()()},
Y.next().value]};
YfY=function(Y,G){Y=Y?HA1(Y):"";G!==void 0&&isFinite(G)?G===0?G=_.Q6("UPDATING",void 0,"Updating..."):(G=G$j(new Date(G),new Date),G=_.Q6("UPDATED_TIME",{relative_time:G},"Updated "+G)):G="";var u="";Y&&G&&(u=" \u2022 ");return _.Sy(Y+u+G)};
OwA=function(Y,G,u,O,Q,M){G=G===void 0?0:G;var t=G8t[G],K=t.title,L=t.iconType,g=t.topButtonRenderer,P=t.sectionClientVE;t=t.videoClientVE;var I;if(G!==1||Y.length){u=[];Y=_.E(Y);for(O=Y.next();!O.done;O=Y.next()){var k=O.value;if(Gea(k))u.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:k.videoEntity.videoId,title:Nu(k.videoEntity.title),shortBylineText:Nu(k.channelEntity.title),thumbnail:k.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:k.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Q6("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:t}}}}}});else if(YoU(k)){O=u;var n=O.push;var p=void 0,W=void 0,C=void 0,e=void 0,w=void 0,B=void 0,N=void 0,h=void 0,q=k.mainPlaylistEntity.playlistId,U=k==null?void 0:(h=k.mainPlaylistEntity)==null?void 0:(N=h.thumbnailStyleData)==null?void 0:(B=N[0])==null?void 0:(w=B.value)==null?void 0:(e=w.collageThumbnail)==null?void 0:e.coverThumbnail;e=iI1(q);if(!_.F("enable_offline_playlist_page")&&
(k==null?0:(C=k.mainPlaylistEntity)==null?0:C.videos)){b:{C=k==null?void 0:(W=k.mainPlaylistEntity)==null?void 0:W.videos;W=_.Zs().getState().entities;if(C!=null&&C.length&&W)for(C=_.E(C),w=C.next();!w.done;w=C.next())if(w=_.B2(w.value).entityId,(w=JSON.parse(w).videoId)&&VZY(W,w)==="TRANSFER_STATE_COMPLETE"){W=w;break b}W=""}W!==void 0&&(e=xG(_.Zs().getState(),W),e=_.bg(W,q,void 0,void 0,e))}W=wZU(_.Q6("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),iI1(q));k=q&&U&&W?{playlistId:q,navigationEndpoint:e,
viewPlaylistText:W,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:U}},title:Nu(k.mainPlaylistEntity.title),shortBylineText:Nu(k==null?void 0:(p=k.channelEntity)==null?void 0:p.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:uLa,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:q,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Q6("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:t}}}:
void 0;n.call(O,{gridPlaylistRenderer:k})}}t={gridRenderer:{items:u}};G===1&&(I=YfY(Q,M))}else if(O){var Mj=_.Sy((n=u==null?void 0:u.localizedPromptMessage)!=null?n:"");t={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Sy(_.Q6("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.nKj}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Sy(_.Q6("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};I=YfY(Q,M)}else Mj=_.Sy(_.Q6("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
t={};return{contents:[{shelfRenderer:{title:K,titleAnnotation:I,icon:{iconType:L},subtitle:Mj,content:t,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:g}]}}}}],loggingDirectives:{clientVeSpec:{uiType:P}}}};
QI4=function(Y,G,u,O,Q,M,t,K,L,g,P){u=u===void 0?{}:u;O=O===void 0?{}:O;Q=Q===void 0?!1:Q;M=M===void 0?!1:M;t=t===void 0?!1:t;K=K===void 0?!1:K;L=L===void 0?!1:L;g=g===void 0?0:g;P=P===void 0?-Infinity:P;if(!(G.length||Y.length||Q||K))return M?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:zDu(u)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Sy(_.Q6("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 I=[];Y.length&&I.push(OwA(Y,0));K?I.push({contents:[{statementBannerRenderer:f6t(L,O)}]}):Q?I.push(OwA(G,1,u,t,g,P)):M&&I.push({contents:[{statementBannerRenderer:Wrt(u)}]});(Q&&G.length||Y.length)&&I.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Sy(_.Q6("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 I.map(function(k){return{itemSectionRenderer:k}})};
F2=function(Y,G){if(typeof Y!=="object")return null;Y=_.E(Object.entries(Y));for(var u=Y.next();!u.done;u=Y.next()){var O=_.E(u.value);u=O.next().value;O=O.next().value;if(u===G)return u;if(O=F2(O,G))return u+"."+O}return null};
p$=function(Y){var G=Y.content;return(Y=Y.styleRuns)&&G?{runs:Y.map(function(u){var O={text:G.slice(u.startIndex,u.startIndex+u.length)};u.fontColor&&(O.textColor=u.fontColor);return O})}:{simpleText:G}};
E_T=function(Y,G,u,O){var Q=MFy;O&&(Y.quantity=O);if(!Y.quantity||!Y.maxQuantity)return{};O=Y.minusButton;var M=Y.plusButton,t,K,L,g;return{value:Y.quantity,maxValue:Y.maxQuantity,onChangeCallback:function(P){Q(Y,P)},
minusLabel:(t=_.z(O,Hwg))==null?void 0:t.label,minimumReachedLabel:(K=_.z(O,Hwg))==null?void 0:K.limitReachedLabel,plusLabel:(L=_.z(M,Hwg))==null?void 0:L.label,maximumReachedLabel:(g=_.z(M,Hwg))==null?void 0:g.limitReachedLabel,disabled:G,onRemoveCommand:u}};
MFy=function(Y,G){var u=Y.quantityIncrementerEntityKey;if(u){var O={};O.quantity=G;_.hj(_.zP("quantityIncrementerEntity",u,O));Y.onChangeCommand&&_.W3(Y.onChangeCommand)}};
tFy=function(Y){if(Y)return Y===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(Y).overflowY)?Y:tFy(Y.parentElement)};
TPT=function(Y,G){(Y=KIt(Y))&&((_.F("enable_mini_app_command_handler_mweb_fix")?0:G)?a2a.push({command:Y,sourceData:{},commandContext:void 0}):_.sH().resolve(_.rH).resolveCommand(Y))};
KIt=function(Y){return _.z(Y,_.nd)};
LIU=function(){var Y=window.performance.timeOrigin+window.performance.now(),G=(new _.mz).setSeconds(Y/1E9);return _.Hs(G,2,_.Tx(Y%1E9),0)};
XBI=function(Y,G){var u;Y=(u=_.z(_.z(Y,_.nd),g_t))==null?void 0:u.methodName;var O,Q;(u=window.youtubewebview||((O=window.webkit)==null?void 0:(Q=O.messageHandlers)==null?void 0:Q.youtubewebview))&&Y&&(O=new C$,Y=_.E_(O,1,Y),Y=_.vu(Y.JSC$12880_serializeBinary()),G=_.vu(G),u.postMessage(Y+","+G))};
yN=function(Y,G,u){var O=_.z(_.z(Y,_.nd),g_t);O&&(G&&(O.serializedAdditionalMetadata=_.vu(G)),u&&(O.messageId=u),TPT(Y,!0))};
PbT=function(Y,G,u){setTimeout(function(){_.Er(Y,G)},u)};
I2u=function(Y){switch(Y){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"}};
k8j=function(){return!!_.DE("ID_TOKEN")};
pBy=function(Y){return Y instanceof Error&&Y.cause instanceof n_j&&Y.cause.rpcErrorCode!==void 0?!FIt.includes(Y.cause.rpcErrorCode):!0};
mGu=function(){return _.JD(z11,{authuser:""+(_.DE("SESSION_INDEX")||0)})};
e8=function(Y,G,u,O){u=u===void 0?"MINI_APP_SDK_API_UNSPECIFIED":u;O=O===void 0?"":O;var Q=new _.I2;u={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:O,sdkApi:u};Y instanceof Error&&(Q.message=Y.message,Q.name=Y.name,Y.cause instanceof n_j&&Y.cause.rpcErrorCode!==void 0&&(u.rpcErrorCode=Y.cause.rpcErrorCode));var M;(M=G.onError)==null||M.call(G,{loggingError:Q,metadata:u})};
r81=function(Y,G,u,O){switch(Y){case "MINI_APP_SOURCE_GAMESNACKS":return new AL(G,u,O);default:return new WIA(G,u,O)}};
xGj=function(Y){switch(Y){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"}};
f2j=function(Y){switch(Y){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"}};
Cb1=function(Y){switch(Y){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";case 15:return"MINI_APP_SDK_API_OPEN_CONTENT";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
y8I=function(){return Math.floor(Math.random()*4)+1};
e1U=function(Y,G,u,O){Y=_.E(Object.entries(Y));for(var Q=Y.next(),M={};!Q.done;M={message$jscomp$995:void 0},Q=Y.next()){var t=_.E(Q.value);Q=t.next().value;t=t.next().value;M.message$jscomp$995=t;G.push(setTimeout(function(K){return function(){O(!1);u(K.message$jscomp$995.text)}}(M),M.message$jscomp$995.delayMs));
Number(Q)>0&&G.push(setTimeout(function(){O(!0)},M.message$jscomp$995.delayMs-400))}};
A8T=function(Y,G,u){u=u===void 0?hqt:u;if(Y){var O=_.sH().resolve(cY);O||_.F("mweb_no_observer_killswitch")?uq(Y,{data:G,observer:O,visibilityCallback:u,hideOption:ne4,showOption:FCj,layer:Y.layer}):_.R0(new _.I2("Warning: monitorVisibility called with null observer",Y.tagName,G==null?void 0:G.loggingDirectives,G==null?void 0:G.trackingParams))}else _.R0(new _.I2("Warning: monitorVisibility called with null element",G==null?void 0:G.loggingDirectives,G==null?void 0:G.trackingParams,G==null?void 0:
G.rendererContext))};
o_t=function(Y,G){var u=u===void 0?hqt:u;_.F("mweb_fix_monitor_visibility_after_render")?Y&&gH(function(){A8T(Y,G,u)}):gH(function(){A8T(Y,G,u)})};
iw4=function(Y,G){var u=document.createElement("ytd-engagement-panel-section-list-renderer");u.data=Y;var O=G!=null?G:{};Y=O.isPersistentPanel;G=O.hideDelayMs;O=O.overscrollContain;Y=Object.assign({},Y&&{isPersistentPanel:Y},G&&{hideDelayMs:G},O&&{overscrollContain:O});Object.assign(u,Y);return u};
DG4=function(Y){R1u||(R1u=wBy(new _.CU(1,void 0,void 0,Zwg),0));var G=R1u.format(Math.floor(Y));G=fU==="be"||fU==="bg"||fU==="es"||fU==="et"||fU==="hu"||fU==="ka"||fU==="lv"||fU==="pl"||fU==="pt-PT"||fU==="sq"?G.replace(new RegExp("^(\\d)"+Zwg.GROUP_SEP.replace(".","\\.")+"(\\d+("+Zwg.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):G;return Y>=1E3&&Y<=9999&&G[1]==="."&&(fU==="sl"||fU==="it")?G.replace(".",""):G};
_.bwU=function(Y,G,u){return window.spf&&!_.F("web_disable_spfjs_client")?h1y(Y,G,u):dG1(Y,G)};
h1y=function(Y,G,u){var O=null,Q=(new _.a0(function(M,t){var K={};if(G){K.method=G.method;var L=G.postParams||{};sKY(Y,G)&&(L[_.DE("XSRF_FIELD_NAME")]=_.DE("XSRF_TOKEN"));K.postData=_.vI(L);G.type&&(K.type=G.type);L=G.headers}K.headers=jKt(Y,L);_.F("debug_forward_web_query_parameters")&&(Y=_.$ut(Y,window.location.search));K.experimental_headers=K.headers;K.onError=function(g){g.err&&g.xhr&&(g.err.params={url:g.xhr.responseURL,response:g.xhr.responseText.substr(0,64)});t(g.err)};
K.onPartDone=function(g){u&&u.call(null,g.part)};
K.onDone=function(g){var P=Sfj(g.response,"xsrf_token");ss(window.location.href,Y)&&P&&_.ZE("XSRF_TOKEN",P);if(P=Sfj(g.response,"service_worker_killswitch"))_.ZE("SERVICE_WORKER_KILLSWITCH",P),EJA();M(g.response)};
O=spf.request(Y,K)})).then(NPa);
Q.thenCatch(function(M){var t=M instanceof _.oz,K=M&&M.hasOwnProperty("params")&&M.params.response?M.params.response:"";M instanceof Error&&(K?t?A$j(M):K===')]}\'\n{"reload":"now"}'?A$j(M):(jIj(M,Y,K),VF4(M,K)?_.R0(M):_.o0(M)):A$j(M));O&&O.abort()});
return Q};
NPa=function(Y){if(Y.type==="multipart"){var G=Y.timing;Y=Y.parts.reduce(function(u,O){Object.assign(u,O);return u},{});
Y.timing=Y.timing||{};Object.assign(Y.timing,G);Y.type="reduced"}return Y};
dG1=function(Y,G){G=G===void 0?{}:G;var u=null,O=new _.a0(function(Q,M){G.onFinish=function(t){if(t.readyState===XMLHttpRequest.DONE)if(t.status===200){if(t.responseType!=="json"){var K=t.response;K.substring(0,5)===")]}'\n"&&(K=K.substring(5));try{var L=JSON.parse(K)}catch(g){L=g}}else L=t.response;L instanceof Error?M(L):(K=Sfj(L,"xsrf_token"),ss(window.location.href,Y)&&K&&_.ZE("XSRF_TOKEN",K),t=t.responseURL,window.performance&&window.performance.getEntriesByName?(K=window.performance.getEntriesByName(t).pop())?
t={responseStart:(0,_.GC)()-(K.responseEnd-K.responseStart)}:(Math.random()<.01&&(K=Error("gi"),K.params=t,_.R0(K)),t={responseStart:-1}):t={responseStart:0},L.timing=L.timing||{},Object.assign(L.timing,t),Q(L))}else M(Error("fi`"+t.status))};
(u=_.td(Y,G))||M(Error("fi`"+u.status))});
O.thenCatch(function(Q){Q instanceof Error&&(jIj(Q,Y),VF4(Q)&&(Q.level="WARNING"))});
_.F("cancel_pending_navs")&&O.thenCatch(function(){u.abort()});
return O};
Sfj=function(Y,G){var u=Y[G],O=Y.parts;Y.type==="multipart"&&O&&(u=(Y=O.find(function(Q){return G in Q}))&&Y[G]);
return u};
jIj=function(Y,G,u){var O=Y.message||"";G={original:O,url:G};if(u)if(O=O.match(/position:?\s*(\d+)/)){O=O&&Number(O[1])?Number(O[1]):0;var Q=Math.max(O-25,0);G.position=O;G.response=u.substring(Q,O+25)}else G.response=u.substring(0,50);_.wN(Y,G);try{Y.message="JSON parse error"}catch(M){}};
VF4=function(Y,G){Y=Y.message||"";Y=!!(Y.indexOf("<")>=0||Y.indexOf("end of ")>=0||Y.indexOf("Unterminated string")>=0||Y.indexOf("Unexpected EOF"));if(!Y&&G)for(var u=G.length,O=!1,Q=0;Q<u;Q++)if(O&&G[Q]==="\\")Q++;else if(G[Q]==='"')O=!O;else if(G[Q]==="<"&&!O){Y=!0;break}return Y};
l2j=function(){return document.documentElement.hasAttribute("dark")};
_.BP4=function(Y,G){if(Y!=="GFEEDBACK"&&Y!=="GUIDED_HELP")_.dc(Error("hi`"+Y));else{var u=_.sH().resolve(_.q3(_.bv));if(u&&(u=u.getCurrentPage())&&u.getServiceTrackingParams&&(u=u.getServiceTrackingParams()))for(var O=0,Q;Q=u[O++];)if(Q.service===Y){if(Y=Q.params)for(u=0;O=Y[u++];)G[O.key]=O.value;break}}};
_.$Gt=function(Y){var G=_.N5();G&&(G=G.getPlayer())&&(G.pauseVideo(),Y.playback_id=G.getVideoData().cpn,Y.eid=G.getVideoData().eventId,Object.assign(Y,G.getFeedbackProductData()))};
qf4=function(){var Y={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.DE("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(Y.enableAnonymousFeedback=!0);_.DE("SESSION_INDEX")&&(Y.authuser=String(_.DE("SESSION_INDEX")));_.F("enable_pageid_for_feedback")&&_.DE("DELEGATED_SESSION_ID")&&(Y.pageId=String(_.DE("DELEGATED_SESSION_ID")));return Y};
_.i6=function(Y){_.F("enable_ypc_spinners")&&_.qZ(Y,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},Y])};
_.Rz=function(Y){_.F("enable_ypc_spinners")&&_.qZ(Y,"yt-close-popup-action",["yt-loading-renderer"])};
sIA=function(Y){return new Promise(function(G,u){_.pd({verifyCommand:{recaptchaToken:Y.recaptchaResponse}},{commandController:{onSuccess:function(O,Q){Q||u("ChallengeService did not return a response.");var M;G({challengeCompleted:(M=Q.verified)!=null?M:!1})},
onServerError:function(O,Q){u(Q)}}})})};
c84=function(Y,G,u,O){G({recaptchaResponse:O}).then(function(Q){Q.challengeCompleted?_.gC()?(u(3),_.sH().resolve(_.rH).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:Y}})):u(2):u(4)},function(){u(4)})};
v_t=function(Y,G,u){_.fX(_.fO(UGU,_.DE("HL")),function(){var O;(O=window.grecaptcha)==null||O.ready(function(){var Q=window.grecaptcha;Q?(u(Q.render(Y,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:c84.bind(null,Y,sIA,G)})),G(1)):G(4)})})};
J8j=function(Y,G){return function(){switch(G()){case 0:return Y().captchaLoadingMessage;case 1:return Y().challengeReason;case 3:return Y().captchaSuccessfulMessage;case 2:return Y().captchaCookieSetFailureMessage;case 4:return Y().captchaFailedMessage;default:return Y().challengeReason}}()};
_.w4=function(){if(!YXA){var Y=document.querySelector("#player.skeleton");Y&&(_.Oy(Y),YXA=!0)}};
_.uIt=function(){return Guu=nBU()};
Mju=function(){return _.a(function(Y){return OsY!==void 0?Y.return():Y.yield(Qcg(),0)})};
Qcg=function(){return _.a(function(Y){if(Y.nextAddress==1)return Y.yield(pdI(),2);Guu=Y.yieldResult;OsY=_.AN.addLowPriorityJob(Qcg,5E3);_.Sd(Y)})};
azU=function(Y){var G=G===void 0?Hst:G;var u,O,Q=(u=Y.responseContext)==null?void 0:(O=u.mainAppWebResponseContext)==null?void 0:O.trackingParam;if(!Q){G.increment("MISSING");var M,t,K,L,g,P;_.R0(new _.I2("282054944_a",{rRZ:!!((M=Y.responseContext)==null?0:(t=M.mainAppWebResponseContext)==null?0:t.loggedOut),y20:((K=Y.responseContext)==null?void 0:K.mainAppWebResponseContext)===void 0,hbV:Y.responseContext===void 0,cp:(L=Y.playabilityStatus)==null?void 0:L.contextParams,gEI:(((g=Y.streamingData)==
null?void 0:g.formats)||[]).length>0,uQN:(((P=Y.streamingData)==null?void 0:P.adaptiveFormats)||[]).length>0,os:!!Y.offlineState,cotn:Y.cotn}));return 2}u="";try{u=ELt(Q)}catch(n){return G.increment("C_ERROR"),_.o0(n),2}try{var I=_.VTU(u);var k=tjT(I)}catch(n){return G.increment("P_ERROR"),_.o0(n),2}k=_.dX(k,KXu,1,_.bd());Q=[];k=_.E(k);for(I=k.next();!I.done;I=k.next())O=I.value,I=O.getPath(),u=(0,_.gX.getValueByKeys)(Y,I.split(".")),u=String(u===void 0||u===null?"":u),O=O.getValue()||"",M=/[+\-\/_]/g,
u.replace(M,"")!==O.replace(M,"")&&(G.increment("MISMATCH"),_.F("ab_mis_log_err")&&(u=new _.I2("282054944_p",{n5m:I,g:String(u),e:String(O)}),_.o0(u)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(I)||(I.match(/enforcementMessageViewModel/i)?Q.push(3):Q.push(2)));if(Q.length>0)return Math.max.apply(Math,_.c8(Q));G.increment("SUCCESS");return 1};
gLu=function(Y){var G=new ZL;if(Y.interpreterJavascript){var u=_.xbj(Y.interpreterJavascript);u=gt(u).toString();var O=new T3t;_.E_(O,6,u);_.Rh(G,1,O,wR)}else Y.interpreterUrl&&(u=_.ow(Y.interpreterUrl),u=_.bs(u).toString(),O=new _.LXA,_.E_(O,4,u),_.Rh(G,2,O,wR));Y.interpreterHash&&_.DL(G,3,Y.interpreterHash,wR);Y.program&&_.DL(G,4,Y.program,wR);Y.globalName&&_.DL(G,5,Y.globalName,wR);Y.clientExperimentsStateBlob&&_.DL(G,7,Y.clientExperimentsStateBlob,wR);return G};
hL=function(Y){var G={};Y=_.E(Y.split("&"));for(var u=Y.next();!u.done;u=Y.next())u=u.value.split("="),u.length===2&&(G[u[0]]=u[1]);return G};
Xog=function(Y){return Number(Y.t)||7200};
PZt=function(){var Y=Y===void 0?window:Y;var G,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(W1Y(),2);G=Y;u=G.bgevmc;if(!u)throw Error("li");return O.return({pause:function(){u.p()},
resume:function(){u.r()},
checkForRefresh:function(){return u.cr()}})})};
m3I=function(){if(_.F("bg_st_hr"))return"havuokmhhs-0";var Y,G=((Y=globalThis.performance)==null?void 0:Y.timeOrigin)||0;return"havuokmhhs-"+Math.floor(G)};
d4=function(Y){window.bgens=Y};
Izg=function(){return new Promise(function(Y){var G=window;G.ntpevasrs!==void 0?Y(new b6(G.ntpevasrs)):(G.ntpqfbel===void 0&&(G.ntpqfbel=[]),G.ntpqfbel.push(function(u){Y(new b6(u))}))})};
kuy=function(Y){if(_.F("attmusi")&&_.F("attmusi_ue")){Y={s:Y.nkt.bind(Y),ir:Y.qGu.bind(Y)};var G=window;G.attmp=Y;if(G.attmq!==void 0)for(var u=_.E(G.attmq),O=u.next();!O.done;O=u.next())O=O.value,O(Y);G.attmq=void 0}else G=Y.nkt.bind(Y),_.U5("yt.aba.att",G),Y=Y.qGu.bind(Y),_.U5("yt.aba.att2",Y)};
FXa=function(Y){switch(_.BI(Y.input)){case _.Ds(nLY):var G={};return G.encryptedVideoId=Y.innerTubeRequest.externalVideoId,G}return{}};
m_Y=function(Y){switch(_.BI(Y.input)){case _.Ds(nLY):if(_.F("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Ds(poj):if(_.F("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.Ds(S8):if(_.F("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&Y.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Ds(zyt):var G,u;if(_.F("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((u=_.z((G=Y.config)==null?void 0:G.command,_.Dv))==null?0:u.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.rxa=function(Y){var G;if(Y.playlistVideoRenderer&&((G=Y.playlistVideoRenderer)==null?0:G.engagementBar))return WXt(Y.playlistVideoRenderer.engagementBar);if(_.z(Y,NF)){var u;if(Y=(u=_.z(Y,NF))==null?void 0:u.engagementBar)return WXt(Y)}return""};
WXt=function(Y){if(!Y)return"";Y=_.z(Y,_.x_U);if(Y==null||!Y.actions)return"";Y=_.E(Y.actions);for(Y=Y.next();!Y.done;Y=Y.next()){Y=_.z(Y.value,_.fzU);var G=void 0;if((G=Y)==null||!G.itemId)break;return Y.itemId}return""};
_.CZt=function(Y){var G;if(Y.playlistVideoRenderer&&((G=Y.playlistVideoRenderer)==null?0:G.videoId))return Y.playlistVideoRenderer.videoId;if(_.z(Y,NF)){var u,O;if(Y=(u=_.z(Y,NF))==null?void 0:(O=u.playlistItemData)==null?void 0:O.videoId)return Y}return""};
_.yxt=function(Y){var G;if(Y.playlistVideoRenderer&&((G=Y.playlistVideoRenderer)==null?0:G.voteCount))return Y.playlistVideoRenderer.voteCount;if(_.z(Y,NF)){var u,O;if(Y=(u=_.z(Y,NF))==null?void 0:(O=u.playlistItemData)==null?void 0:O.voteCount)return Y}return 0};
_.j8=function(Y,G){return _.v2(Y.entities,"flowStateEntity",G)};
AxT=function(Y,G,u,O){var Q=void 0;Y=_.E(Y[G.iconName]||[]);for(var M=Y.next();!M.done;M=Y.next()){M=M.value;var t=G.iconSize;var K=G.iconStyle;t=!t||t===M[2];var L=eyj[M[0]];O&&O!==M[1]||!t||K&&K!==L?K=!1:Q?(K=eyj[M[0]],K=!!G.iconStyle||K==="youtube_outline",t=Q.version<=M[1],K=(!!G.iconSize||M[2]===24)&&K&&t):K=!0;K&&(Q={name:G.iconName,style:eyj[M[0]],size:M[2],version:M[1],allowMirroring:!!M[3],url:u(G.iconName,M)})}return Q};
oLU=function(Y,G,u,O){return Y+(""+eyj[u[0]]+((O===void 0?0:O)?"_experimental":"")+"/"+G+"/v"+u[1]+"/")+(u[2]+"px.svg")};
isu=function(Y){return _.DE("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.DE("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":Y};
RyY=function(Y,G){return oLU("https://fonts.gstatic.com/s/i/",Y,G)};
woA=function(Y,G){return oLU("https://fonts.gstatic.com/s/i/",Y,G,!0)};
ZsA=function(Y,G){return oLU("https://www.gstatic.com/youtube/img/icons/web/",Y,G)};
d_A=function(Y){var G=Y.enabled;var u=Y.itemPlaybackModel;var O=Y.thumbnailElRef;var Q=Y.containerElRef;var M=Y.options;var t;_.RE(function(){var K=Q==null?void 0:Q.value;var L,g=(L=O())==null?void 0:L.value,P=u();L=M();if(G&&P&&K&&g&&(L==null?0:L.thumbnail)){var I={data:P,hostElement:K},k,n,p=[].concat(_.c8((k=L.thumbnailOverlays)!=null?k:[]),_.c8((n=P.overlays)!=null?n:[]));n=P.itemPlaybackOptions;k=(n==null?void 0:n.enableRoundedPlayer)||L.enableRounding;n=n==null?void 0:n.disableTimeStatusOverlay;
var W,C,e=(W=P.inlinePlayerData)==null?void 0:W.onVisible,w=(C=P.inlinePlayerData)==null?void 0:C.onSelect;C=L.thumbnail;W=L.accessibilityText||"";P=(P=_.z(e,D_I))&&P.playerDescriptors?P.playerDescriptors:void 0;if(P){e=[];for(w=0;w<P.length;w++){var B=void 0;e.push({inlinePlaybackEndpoint:P[w].inlinePlaybackEndpoint,navigationEndpoint:P[w].navigationEndpoint,thumbnail:(B=P[w].thumbnail)!=null?B:C,thumbnailOverlays:P[w].thumbnailOverlays?P[w].thumbnailOverlays:p,accessibilityText:W})}p=e}else p={inlinePlaybackEndpoint:_.FS(e),
navigationEndpoint:_.FS(w),thumbnail:C,thumbnailOverlays:p,accessibilityText:W};K={mediaRenderer:I,lockupElement:K,thumbnailElement:g,videoPreviewOpts:{videoPreviewData:p,thumbnailSize:L.thumbnailSize,enableRounding:k,mouseleaveCallback:L.mouseleaveCallback,hideTimeDisplay:n}}}else K=void 0;if(K){var N;(N=t)==null||VN(N);t=rw(K);var h,q;((h=u())==null?0:(q=h.inlinePlayerData)==null?0:q.forceImpAutoplay)&&hyY(t)}},"mM6F9");
_.w_(function(){var K;(K=t)==null||VN(K)})};
bs1=function(Y){Y=atob(Y);for(var G=[],u=0;u<Y.length;u++)G.push(Y.charCodeAt(u));return new Blob([new Uint8Array(G)],{type:"image/png"})};
N3U=function(Y,G,u,O){O=O===void 0?"INSERTION_POSITION_UNSPECIFIED":O;return Y({targetId:G},function(Q){var M,t=(M=Q.contents)!=null?M:[];M=u!=null?u:[];var K=SXI(t);switch(O){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},Q,{contents:[].concat(_.c8(t.slice(0,K)),_.c8(M),_.c8(t.slice(K+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},Q,{contents:[].concat(_.c8(M),_.c8(t))});case "INSERTION_POSITION_LAST":return Object.assign({},Q,{contents:[].concat(_.c8(t),_.c8(M))});
default:return Q}})};
Vj1=function(Y,G,u,O,Q){Q=Q===void 0?"RELATIVE_INSERTION_POSITION_AFTER":Q;return Y({targetId:G},function(M){var t,K=(t=M.contents)!=null?t:[];t=jcY(K,u);if(t<0)return M;t=Q==="RELATIVE_INSERTION_POSITION_BEFORE"?t:t+1;return Object.assign({},M,{contents:[].concat(_.c8(K.slice(0,t)),_.c8(O),_.c8(K.slice(t)))})})};
SXI=function(Y){var G=Y.findIndex(function(u){return _.z(u,_.l6)});
return G>=0?G:Y.length};
jcY=function(Y,G){return Y.findIndex(function(u){a:{u=_.E(Object.values(u));for(var O=u.next();!O.done;O=u.next())if((O=O.value)&&O.targetId){u=O.targetId;break a}u=""}return u===G})};
B3y=function(Y,G,u){return Y({targetId:G},function(O){var Q,M=(Q=O.contents)!=null?Q:[];return Object.assign({},O,{contents:lzg(M,u)})})};
lzg=function(Y,G){return Y.filter(function(u){var O=G.includes;a:{u=_.E(Object.values(u));for(var Q=u.next();!Q.done;Q=u.next())if((Q=Q.value)&&Q.targetId){u=Q.targetId;break a}u=""}return!O.call(G,u||"")})};
_.$_A=function(Y,G){return{engagementPanelSectionListRenderer:{panelIdentifier:Y,identifier:G,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
qX4=function(Y,G){Y=Y.getAvailableAudioTracks();if(Y.length)return Y==null?void 0:Y.find(function(u){var O;return(u==null?void 0:(O=u.getLanguageInfo())==null?void 0:O.getId())===G})};
_.cxA=function(Y){var G,u=(G=Y.getOption("captions","tracklist",{includeAsr:!0}))!=null?G:[];return u=scj(u,Y)};
U_y=function(Y){return Y.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
scj=function(Y,G){G=U_y(G);if(G==null||!G.length)return Y;var u=G.filter(function(t){return t});
G=Y.filter(function(t){return t.languageCode.startsWith("en")});
u=_.E(u);for(var O=u.next();!O.done;O=u.next())if(O=O.value,G.length){var Q=G[0],M=Object.assign({},Q);Q.languageCode!==O.languageCode&&(M.displayName=Q.languageName+" >> "+O.languageName,M.translationLanguage=O,Y.push(M))}return Y};
vL4=function(Y,G,u){Y=_.cxA(Y);if(Y.length)return u?Y.find(function(O){if(typeof(O==null?void 0:O.translationLanguage)==="object"){var Q;return((Q=O.translationLanguage)==null?void 0:Q.languageCode)===G}return!1}):Y==null?void 0:Y.find(function(O){return O.languageCode===G})};
Jxg=function(Y){return Y.getOption("captions","tracklist",{includeAsr:!0})};
YZt=function(Y){var G=Y.getAvailableAudioTracks();if(G!=null&&G.length){var u=Y.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.c8(G.map(function(O){return{listItemViewModel:{title:{content:O.getLanguageInfo().getName()},isSelected:O.getLanguageInfo().getId()===(u==null?void 0:u.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:O.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
G44=function(Y){return Y.getOption("captions","tracklist",{includeAsr:!0})};
ucU=function(Y){var G=G44(Y);if(G==null?0:G.length)return G;Y.loadModule("captions");return G44(Y)};
On1=function(Y){var G=Y.getOption("captions","track");if(G)return G;Y.loadModule("captions");return Y.getOption("captions","track")};
MWI=function(Y){var G=ucU(Y);if(G!=null&&G.length){var u=On1(Y),O;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Q6("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(u==null?0:u.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.c8(G.map(function(Q){return{listItemViewModel:{title:{content:Q.displayName},
isSelected:Q.displayName===(u==null?void 0:u.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Q.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Q6("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!u.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!u.translationLanguage&&{selectionText:{content:(u==null?void 0:(O=u.translationLanguage)==null?void 0:O.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[QCj(Y)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
QCj=function(Y){var G=U_y(Y);if(G==null||!G.length)throw Error("Hi");var u=On1(Y);Y=G.filter(function(O){return!O.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.c8(Y.map(function(O){var Q;return{listItemViewModel:{title:{content:O.languageName},isSelected:O.languageName===(u==null?void 0:(Q=u.translationLanguage)==null?void 0:Q.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:O.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
KLu=function(Y){return new Promise(function(G,u){if(Y===void 0)_.o0(Error("Li"),"ERROR"),u(Error("Li"));else{u=new _.HnA;var O=_.EXt();u=u.init();var Q=_.tWI(_.DE("YPC_MB_URL"),!0);Promise.all([u,Q]).then(function(){var M=_.BU.payments.business.integration.ClientTokenFactory.createClientToken(Y,O);G(M)})}})};
LLa=function(Y,G,u,O,Q,M,t){var K=_.RS();u=u.replace(/-/g,"+").replace(/_/g,"/");var L=_.EU().get("hl"),g=_.$2(_.R$),P=G==null?void 0:G.element;P&&_.i6(P);aWA(G,!0);_.Tia(g,u,K.resolve,function(){P&&_.Rz(P)},function(I){P&&_.Rz(P);
K.reject(I)},L,O?function(I){O&&_.iv(Y,O,{backend_analytics:I})}:void 0,K.resolve,Q,M,t);
return K.promise};
aWA=function(Y,G){!(Y=Y==null?void 0:Y.element)||Y.tagName!=="YT-BUTTON-RENDERER"&&Y.tagName!=="YTD-BUTTON-RENDERER"||(Y.disabled=G)};
gXT=function(){var Y=_.Q6("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Sy(Y),actionButton:{buttonRenderer:nrU()}}},popupType:"TOAST"}};
XNY=function(){var Y=_.Q6("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Sy(Y),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
P4A=function(Y){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:Y}]}}};
qF=function(Y,G,u,O){var Q;return _.a(function(M){if(M.nextAddress==1)return _.i3(M,2),M.yield(Y,4);if(M.nextAddress!=2)return(Q=_.KU(G.getState().entities).length>0)?M.return({title:_.Sy(_.Q6("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Sy(_.Q6("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:kJj()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
M.return(FrA(u,O));_.b3(M);return M.return(FrA(u,O))})};
IWt=function(Y,G){return G?G==="PPSV"||$H1(Y,G):!1};
k4a=function(Y){Y.responseContext||(Y.responseContext={});Y.responseContext.maxAgeSeconds=0;return Y};
cU=function(Y){var G;return _.a(function(u){return u.nextAddress==1?u.yield(nXU(Y,"service:topbar:fallback"),2):(G=u.yieldResult)&&_.sn(G)?u.return(k4a(_.sn(G))):u.return()})};
FLT=function(Y){var G;return _.a(function(u){return u.nextAddress==1?u.yield(nXU(Y,"service:downloads_settings:fallback"),2):(G=u.yieldResult)&&_.sn(G)?u.return(G):u.return()})};
nXU=function(Y,G){var u;return _.a(function(O){if(O.nextAddress==1)return Y?O.yield(Y.get(G),2):O.return();u=O.yieldResult;return!u||!_.sn(u)||!isNaN(Number(u.data.expireTimestampMs))&&u.isExpired()?O.return():O.return(u)})};
pN1=function(Y){var G=_.sH().resolve(Un).getState().entities;return Y.playlistId?IWt(G,Y.playlistId):!1};
mTU=function(Y){var G=_.Jy("web_pbj_log_warning_rate",0);G=G>0&&Math.random()<G;if(!_.z(Y,_.Qa))return G&&_.R0(Error("ej")),!1;var u;return _.F("shorts_controller_retrieve_seedless_sequence_v2")&&((u=_.z(Y,_.Qa))==null?void 0:u.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:zuy(Y)?!0:(G&&_.R0(Error("fj")),!1)};
zuy=function(Y){var G=(_.z(Y,_.ic)||_.z(Y,_.Qa)).videoId;if(!G||!WLA.test(G))return!1;var u;return(Y=(u=_.z(Y.commandMetadata,_.ug))==null?void 0:u.url)&&(Y.includes(G)||Y.startsWith("/clip"))?!0:!1};
_.xTA=function(){var Y=_.EU();return Y.getFlag(192)?Y.getFlag(190):!(_.TP("web_watch_cinematics_disabled_by_default")||_.TP("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&r_j())};
_.vU=function(Y,G,u){var O={};O.currentUrl=G;O.vis=Y.vis!==void 0?Y.vis:0;O.splay=!1;G=_.EU();O.autoCaptionsDefaultOn=G.getFlag(66);G.getFlag(141)?G.getFlag(140)?O.autonavState="STATE_OFF":O.autonavState="STATE_ON":O.autonavState="STATE_NONE";O.html5Preference="HTML5_PREF_WANTS";isNaN(_.DE("STS"))||(O.signatureTimestamp=_.DE("STS"));Y.autonav&&(O.autoplay=!0,O.autonav=!0);Y.mutedAutoplay&&(O.autoplay=!0,O.mutedAutoplay=!0);Y.inlinePlayback&&(O.autoplay=!0,O.autonav=!1,O.isInlineUnmutedPlayback=!!Y.inlineUnmuted);
O.referer=u;O.lactMilliseconds=Y.lact!==void 0?Y.lact.toString():"-1";_.F("enable_unknown_lact_fix_on_html5")&&O.lactMilliseconds==="-1"&&_.R0(new _.I2("Unknown LACT is set in playbackContext.",{"lact in tempData":Y.lact||"undefined",autonav:Y.autonav||"undefined"}));Y={};G.getFlag(194)&&(Y.hasShownAmbientMode=!0);G.getFlag(192)&&(Y.hasToggledOffAmbientMode=!0);_.xTA()&&(Y.watchAmbientModeEnabled=!0);O.watchAmbientModeContext=Y;return O};
fWA=function(Y){var G={},u=Y.pbis||0;u&&(G.playbackBeginsInSeconds=u);Y.prefetch_reason&&Y.prefetch_reason==="hc_pbis"&&(G.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return G};
C4I=function(Y,G){var u;if(G==null?0:(u=G.requestTemplate)==null?0:u.panelId)Y.panelId=G.requestTemplate.panelId;var O;if(G==null?0:(O=G.requestTemplate)==null?0:O.params)Y.params=G.requestTemplate.params};
eua=function(){if(y_A)return y_A();var Y=!_.F("idb_response_store_auth_killswitch"),G={};y_A=Jd("yt-it-response-store",{objectStores:(G.ResponseStore={addedAtVersion:1},G),shared:!Y,upgrade:function(u,O){O(1)&&(u=bB(u,"ResponseStore",{keyPath:["key","clientName"]}),SV(u,"byExpiration","expireTimestampMs"),SV(u,"byInterface","clientName"))},
version:1});return y_A()};
JL=function(Y){return _.l9(eua(),Y)};
oXt=function(Y,G){var u;return _.a(function(O){return O.nextAddress==1?O.yield(_.vK(),2):(u=O.yieldResult)?O.return(new A_A(Y,G,u)):O.return()})};
inI=function(Y){var G=Object.keys(Y)[0];if(G)return Y.screenExit&&(G=G+";"+Y.screenExit.screen),G};
Ru1=function(Y){var G=new Map;Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())u=u.value,u!=null&&(G.has(u.taskType)||G.set(u.taskType,[]),G.get(u.taskType).push(u));return G};
wNa=function(Y){Y=[].concat(_.c8(Y)).sort(function(u,O){return u-O});
var G=Math.floor(Y.length/2);return Y.length%2?Y[G]:(Y[G-1]+Y[G])/2};
huI=function(Y,G){Y=Y===void 0?IjY:Y;G=G===void 0?{}:G;_.U5("yt.logging.errors.log",_.o0);XEg();Znj(z_1(),G);window.onerror=Y;DTa=P5y;window.addEventListener("unhandledrejection",function(u){if(u.reason instanceof Error){var O=u.reason;_.wN(O,{source:"unhandledrejection"});O.name==="AbortError"&&(O.level="WARNING")}P5y(u.reason);u.preventDefault()})};
_.dTy=function(Y){var G,u,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N,h,q,U,Mj,Xt,ka,aU,Tg,iy,hY,dA,nT,u_,jT,P1,kk,Fe,Xg,Hb,n1;return _.a(function(Yk){if(Yk.nextAddress==1)return Yk.yield(_.Qc(Y,{mode:"readonly",enableRetries:!0},function(qj){return MW(qj,"playbackData").then(function(Gx){var fT=Gx.map(function(Ew){return Ew.transfer}).filter(function(Ew){return!!Ew}),b_=Gx.map(function(Ew){return Ew.offlineVideoPolicy}).filter(function(Ew){return!!Ew}),MK=Gx.filter(function(Ew){return!!Ew.key}).map(function(Ew){return _.UU(_.B2(Ew.key).entityId,
"downloadStatusEntity")});
fT=MW(qj,"transfer",fT);b_=MW(qj,"offlineVideoPolicy",b_);MK=MW(qj,"downloadStatusEntity",MK);var v1=fT.then(function(Ew){Ew=Ew.reduce(function(l_,$V){($V==null?0:$V.offlineVideoStreams)&&l_.push.apply(l_,_.c8($V.offlineVideoStreams));return l_},[]).filter(function(l_){return!!l_});
return MW(qj,"offlineVideoStreams",Ew)});
return hd.all([fT,b_,v1,MK]).then(function(Ew){var l_=_.E(Ew);Ew=l_.next().value;var $V=l_.next().value;var T2=l_.next().value;l_=l_.next().value;return[Gx,Ew,$V,T2,l_]})})}),2);
if(Yk.nextAddress!=3)return G=Yk.yieldResult,Yk.yield(_.Qc(Y,{mode:"readonly",enableRetries:!0},function(qj){return MW(qj,"mainDownloadsListEntity").then(function(Gx){var fT,b_;return(b_=(fT=Gx[0])==null?void 0:fT.downloads)!=null?b_:[]})}),3);
u=Yk.yieldResult;O=_.E(G);Q=O.next().value;M=O.next().value;t=O.next().value;K=O.next().value;L=O.next().value;g=Q;P=M;I=t;k=K;n=L;p={};W={};C={};e={};w={};B=[];N=_.E(P);for(h=N.next();!h.done;h=N.next())(q=h.value)&&(p[q.key]=q);U=_.E(I);for(Mj=U.next();!Mj.done;Mj=U.next())(Xt=Mj.value)&&(W[Xt.key]=Xt);ka=_.E(n);for(aU=ka.next();!aU.done;aU=ka.next())(Tg=aU.value)&&(C[Tg.key]=Tg);iy=_.E(k);for(hY=iy.next();!hY.done;hY=iy.next())(dA=hY.value)&&(e[dA.key]=dA);nT=_.E(u);for(u_=nT.next();!u_.done;u_=
nT.next())jT=u_.value,P1=void 0,w[(P1=jT.videoItem)!=null?P1:""]=!0,jT.videoItem&&(Fe=kk=void 0,Xg=(Fe=(kk=_.B2(jT.videoItem))==null?void 0:kk.entityId)!=null?Fe:"",B.push({externalVideoId:Xg}));Hb=g.filter(function(qj){if(!qj||!qj.key||!qj.offlineVideoPolicy)return!1;qj=_.B2(qj.key).entityId;qj=_.UU(qj,"downloadStatusEntity");var Gx;return!(qj&&((Gx=C[qj])==null?void 0:Gx.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
n1=Hb.map(function(qj){var Gx=p[qj.transfer],fT=[];if(Gx==null?0:Gx.offlineVideoStreams)for(var b_=_.E(Gx.offlineVideoStreams),MK=b_.next();!MK.done;MK=b_.next())(MK=e[MK.value])&&fT.push(MK);b_=W[qj.offlineVideoPolicy];MK=w;var v1=qj==null?void 0:qj.playerResponseTimestamp,Ew=_.B2(b_.key).entityId;qj=_.UU(Ew,"mainVideoEntity");if(b_.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var l_="OFFLINE_VIDEO_STATE_DISABLED";b_.expirationTimestamp&&Number(b_.expirationTimestamp)<Date.now()/1E3&&(l_="OFFLINE_VIDEO_STATE_EXPIRED")}else if(b_.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")l_="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Gx==null?void 0:Gx.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":l_="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":l_="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":l_="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":l_="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":l_="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":l_="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:l_="OFFLINE_VIDEO_STATE_UNKNOWN"}if(l_==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Gx==null?void 0:Gx.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":l_="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":l_="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":l_=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Ew={id:Ew,videoState:l_};if(Gx==null?0:Gx.cotn)Ew.cotn=Gx.cotn;if(Gx==null?0:Gx.maximumDownloadQuality)Ew.selectedVideoQuality=Gx==null?void 0:Gx.maximumDownloadQuality;if(Gx==null?0:Gx.lastProgressTimeMs)Ew.lastProgressTimeMs=Gx.lastProgressTimeMs;v1&&(Ew.playerResponseSavedTimeMs=String(Number(v1)*1E3));Gx=String;v1=0;fT=_.E(fT);for(l_=fT.next();!l_.done;l_=fT.next())if(l_=l_.value,l_.streamsProgress){l_=_.E(l_.streamsProgress);for(var $V=l_.next();!$V.done;$V=
l_.next()){var T2=void 0;v1+=Number((T2=$V.value.numBytesDownloaded)!=null?T2:0)}}Ew.downloadedBytes=Gx(v1);Ew.selectedOfflineMode=MK[qj]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";b_.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Ew.offlinePlaybackDisabledReason=b_.offlinePlaybackDisabledReason);return Ew});
return Yk.return({offlineVideos:n1,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:B}}})})};
bna=function(){var Y;return _.a(function(G){return G.nextAddress==1?G.yield(_.GL(),2):(Y=G.yieldResult)?G.return(_.dTy(Y)):G.return({state:"PES Unavailable"})})};
jCt=function(){var Y,G,u,O;return _.a(function(Q){if(Q.nextAddress==1)return Q.yield(_.GL(),2);if(Q.nextAddress!=3)return(Y=Q.yieldResult)?Q.yield(SZI(Y),3):Q.return({state:"PES Unavailable"});G=Q.yieldResult;u={};O=G.reduce(function(M,t){M[t.key]=t;return M},u);
return Q.return(Ni4(O))})};
Ni4=function(Y){for(var G={},u=[],O=_.E(Object.keys(Y)),Q=O.next();!Q.done;Q=O.next()){var M=Q.value;Q=Y[M];var t=void 0;if(((t=Q)==null?void 0:t.entityType)==="mainVideoEntity"){delete Y[M];var K=Q.data;Q={};if(K){var L=void 0;t=(L=K.videoId)!=null?L:"vid-"+M;M=Y;Q.video=K;delete Q.video.formattedDescription;delete Q.video.thumbnail;K.owner&&(L=M[K.owner],L==null?0:L.data)&&(delete M[L.key],Q.video.owner=L.data,delete Q.video.owner.avatar);if(K=K.downloadState)if(L=M[K],L==null?0:L.data)if(delete M[K],
K=L.data.playbackData)if(L=M[K],L!=null&&L.data){delete M[K];K=L.data;delete K.playerResponseJson;Q.playbackData=K;if(K.transfer&&(L=M[K.transfer],L==null?0:L.data)){delete M[L.key];var g=L.data;Q.transfer=g;L=[];g=_.E(g.offlineVideoStreams||[]);for(var P=g.next();!P.done;P=g.next())if(P=M[P.value])delete M[P.key],L.push(P.data);L&&(Q.streams=L)}(K=K.offlineVideoPolicy)&&(K=M[K])&&K.data&&(delete M[K.key],Q.offlineVideoPolicy=K.data)}G[t]=Q}}else Q&&Q.entityType==="offlineOrchestrationActionWrapperEntity"&&
Q.data&&(delete Y[Q.key],t=Q.data,M=void 0,u.push({id:t.rootActionId,type:((M=t.actionProto)==null?void 0:M.actionType)||"",entity:Q}))}G.wrapperEntities=u;Object.keys(Y).length>0&&(G.unknownKeys=Y);return G};
VWy=function(){var Y,G,u,O,Q,M,t,K,L;return _.a(function(g){if(g.nextAddress==1)return Y=(new _.Da("")).hasLocalStorage(),O=!!((G=_.OI.crypto)==null?0:(u=G.subtle)==null?0:u.importKey),Q=!!_.OI.BroadcastChannel,M=!!_.OI.navigator.locks,g.yield(siA(),2);t=g.yieldResult;K=Y&&O&&Q&&M&&t;L={isSupported:K};if(K)return g.return(L);L.missingBrowserFeatures=[];t||L.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");Y||L.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
O||L.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");Q||L.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");M||L.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return g.return(L)})};
lW1=function(Y,G,u,O){var Q=!1,M={contentId:void 0,contentType:"video"};G=_.E(Object.entries(G));for(var t=G.next();!t.done;t=G.next()){var K=_.E(t.value);t=K.next().value;K=K.next().value;Y.includes(t)&&!u.has(K)?(M.contentId=K,u.add(K),Q=!0):t==="contentType"?K==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(M.contentType="playlist"):typeof K==="object"&&K!==null&&lW1(Y,K,u,O)}Q&&O.push(M)};
BiA=function(){var Y;return!((Y=YM?YM:null)==null||!Y.window)};
_.sCt=function(Y){if(_.$Tg()){var G=_.qZ1().mediaSession;try{G.setActionHandler("enterpictureinpicture",function(u){Y(u)})}catch(u){}}};
_.c_u=function(){return _.$Tg()&&W4T("Chromium")>=142};
_.$Tg=function(){return!(!YM||!YM)&&eT()&&W4T("Chromium")>=120};
UTI=function(Y){for(var G=[],u=_.E(document.styleSheets),O=u.next(),Q={};!O.done;Q={node$jscomp$779:void 0},O=u.next())Q.node$jscomp$779=O.value.ownerNode,Q.node$jscomp$779&&(Q.node$jscomp$779 instanceof HTMLStyleElement||Q.node$jscomp$779 instanceof HTMLLinkElement)&&G.push(new Promise(function(M){return function(t){var K=M.node$jscomp$779.cloneNode(!0);K.onload=function(){t()};
K.onerror=function(){_.R0(Error("xj"));t()};
Y.document.head.appendChild(K)}}(Q)));
return Promise.all(G)};
Ena=function(Y){var G=[_.rg(vXj),_.rg(J_a),_.rg(Y8a)];GDg(window.document.documentElement,Y.document.documentElement,[_.rg(uZg),_.rg(O4U),_.rg(QRA),_.rg(Mv4),_.rg(H41)]);GDg(window.document.body,Y.document.body,G)};
GDg=function(Y,G,u){Y=_.E(Y.attributes);for(var O=Y.next();!O.done;O=Y.next())if(O=O.value)try{_.k6(u,G,O.name,O.value)}catch(Q){}};
KqA=function(Y,G){Y=new _.G0(Y.document.documentElement);Y.start(tvY,G);return Y};
aw4=function(Y){var G=Y.document.documentElement;G.addEventListener("click",function(u){VeI(G,u)});
G.addEventListener("touchstart",function(u){sla(u)});
G.addEventListener("mousedown",function(u){sla(u)})};
LqU=function(Y,G,u,O){O=O===void 0?!1:O;G=new TLI(G||Y,u||Y);return{x:Y.x+((O===void 0?0:O)?G.lengthX*-1:G.lengthX)*.2,y:Y.y+((O===void 0?0:O)?G.lengthY*-1:G.lengthY)*.2}};
gnu=function(Y){if(!Y)return!1;var G=Y.status==="OK"||Y.status==="LIVE_STREAM_OFFLINE",u,O,Q,M=(Q=(u=Y.errorScreen)==null?void 0:u.playerLegacyDesktopYpcTrailerRenderer)!=null?Q:(O=Y.errorScreen)==null?void 0:O.ypcTrailerRenderer;return!!G||!!M};
_.X5t=function(Y,G){if(!Y)return!1;var u,O=(u=Y.errorScreen)==null?void 0:u.playerLegacyDesktopYpcOfferRenderer,Q;G=!!(G==null?0:(Q=G.playerOverlayRenderer)==null?0:Q.gatedActionsOverlayRenderer);return!!gnu(Y)||!!O||!!G};
PQA=function(Y){return uYy(Y,0,"gclid",Y.search(O7t))>=0||uYy(Y,0,"gad_source",Y.search(O7t))>=0};
Iwy=function(Y){var G=[],u=0;return{clear:function(){u=G.length=0},
push:function(O){G[u]=O;u=(u+1)%Y},
iterate:function(){return function Q(){var M,t,K,L;return _.u$(Q,function(g){switch(g.nextAddress){case 1:_.h0(g,2),M=G.length,t=0;case 4:if(!(t<M)){g.jumpTo(2);break}K=u+t;L=_.OA;return g.yield(G[K%M],7);case 7:L(g.yieldResult);t++;g.jumpTo(4);break;case 2:_.wt(g),_.dt(g,0)}})}()}}};
kDj=function(Y){Y.eventsToIgnore||(Y.eventsToIgnore=[]);var G=Y.eventsToIgnore.map($ng),u=new Set(G),O=Iwy(Y.bufferSize);return{flush:function(){var Q=Array.from(O.iterate());O.clear();Q=Q.map(function(M){return{name:M.name,timestamp:M.startTime,attributes:M.attributes}});
return JSON.stringify(Q)},
onSpanStart:function(Q){Q.name==="event"&&u.has(Q.attributes.type)||O.push(Q)}}};
nnt=function(Y){Y=kDj(Y);var G=Y.flush;OlA({onSpanStart:Y.onSpanStart});DC.subscribe("handleError",function(u){try{u.params.breadcrumbs=G()}catch(O){_.o0(O,"WARNING")}})};
FqA=function(){nQ("web_tracing_action");_.Fh("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
p5I=function(){nQ("web_tracing_action");_.Fh("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
Wqy=function(Y,G,u,O){if(G===void 0){zn1||(p5I(),setInterval(p5I,6E5),zn1=!0);var Q="web_tracing_action"}else Q=G;var M,t=((M=Y.endTime)!=null?M:Y.startTime)-Y.startTime;M={};u=mSj(Y.name,t,Y.startTime,{webTracing:(M[Y.name]=Y.attributes,M)},u,Q,{spanStatus:Y.status,rootSpanNonce:void 0});if(Y.children)for(Y=_.E(Y.children),Q=Y.next();!Q.done;Q=Y.next())Wqy(Q.value,G,u,O||u)};
r2y=function(Y){var G=KDt.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(u){u.data&&typeof u.data==="object"&&(u=u.data,u.from==="extension"&&u.app==="yt.telemetry"&&(G("Received message from extension",u),Y.onMessage(u)))});
return function(u,O){u={app:"yt.telemetry",from:"app",key:u,payload:O};G("Sending message to extension",u);window.postMessage(u,"*")}};
xST=function(){var Y=Y===void 0?3E3:Y;var G=r2y({onMessage:function(){}}),u=[];
return{onSpanEnd:function(O){O.parentId==null&&u.push(O)===1&&setTimeout(function(){var Q=[].concat(_.c8(u));u.length=0;G("spansReported",{spans:Q})},Y)}}};
fwj=function(Y){Y=Y===void 0?400:Y;var G=[],u=[];return{start:function(){return Qs4({checkoutEveryNth:Y,emit:function(O,Q){Q&&(G=u,u=[]);u.push(O)},
blockSelector:'img, video, audio, source, picture, [style*="background"][style*="url"]',maskAllInputs:!0,maskTextSelector:"*"})},
getRecording:function(){return[].concat(_.c8(G),_.c8(u))}}};
enY=function(){(new CQU({sessionReplayEvents:_.Jy("web_tracing_session_replay",0)})).subscribe(function(Y){if(Y.sessionReplayEvents>0)try{var G=fwj(Y.sessionReplayEvents);G.start();var u=console.log;window.exportSessionReplay=function(){var O=JSON.stringify(G.getRecording(),null,2);O=y2g(new Blob([O],{type:"text/plain"}));var Q=document.createElement("a");Q.download="session_replay.json";Q.dataset.downloadurl=["application/json",Q.download,Q.href].join(":");Q.style.display="none";Q.href=O;Q.click();
URL.revokeObjectURL(O);u("View replay at go/yt-session-replay-viewer")}}catch(O){_.R0(Error("zj"))}})};
onA=function(){var Y=window.fetch;window.fetch=function(){var G=_.vs.apply(0,arguments),u=_.E(G),O=u.next().value;u=u.next().value;var Q=_.lc("httpEvent",{method:(u===void 0?{}:u).method||"GET",path:A2A(O),type:"fetch"},{active:!1});return Y.apply(null,_.c8(G)).then(function(M){Q.addAttributes({statusCode:M.status,statusText:M.statusText});Q.end();return M}).catch(function(M){Q.end("SPAN_STATUS_ERROR");
throw M;})}};
i4T=function(){var Y=XMLHttpRequest.prototype.open,G=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(u,O,Q,M,t){var K=this;Q=Q===void 0?!0:Q;this._requestData={method:u,url:O.toString()};this.addEventListener("load",function(){var L=K._span;L==null||L.addAttributes({statusCode:K.status,responseContentLength:K.responseText.length});L==null||L.end()});
this.addEventListener("error",function(){var L=K._span;L==null||L.addAttributes({statusCode:K.status,statusText:K.statusText});L==null||L.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var L=K._span;L==null||L.addAttributes({statusCode:K.status,aborted:!0});L==null||L.end()});
Y.apply(this,[u,O,Q,M,t])};
XMLHttpRequest.prototype.send=function(u){var O=this._requestData||{method:"N/A",url:"N/A"};this._span=_.lc("httpEvent",{method:O.method,path:A2A(O.url),type:"xhr"},{active:!1});G.apply(this,[u])}};
A2A=function(Y){try{if(Y instanceof URL)return Y.pathname;Y instanceof Request&&(Y=Y.url);return(new URL(Y,"https://youtube.com")).pathname}catch(G){return"<unable to parse path>"}};
w54=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var Y=window.performance.getEntriesByType("navigation");if(Y.length>0){var G=Y[0],u=window.performance.timeOrigin;_.lc("pageLoad",{navigationType:RnY(G.type),unloadEventStart:Math.round(G.unloadEventStart),unloadEventEnd:Math.round(G.unloadEventEnd),domInteractive:Math.round(G.domInteractive),domContentLoadedEventStart:Math.round(G.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(G.domContentLoadedEventEnd),
domComplete:Math.round(G.domComplete),loadEventStart:Math.round(G.loadEventStart),loadEventEnd:Math.round(G.loadEventEnd),redirectCount:G.redirectCount},{active:!1,startTime:u+G.startTime,endTime:u+G.loadEventEnd})}}catch(O){}})};
RnY=function(Y){switch(Y){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
b41=function(){for(var Y=Z4y.value,G={},u=_.E(Y.enabledSpansArray),O=u.next();!O.done;O=u.next())G[O.value]=!0;uug({sessionId:MDj(),enabledSpans:G,shouldSampleFn:function(Q,M,t){if(DSj){var K;return Q==="shortToShort"||(t==null?void 0:(K=t.rootSpan())==null?void 0:K.name)==="shortToShort"}return!0}});
tCt();VA("pageLoad")&&w54();VA("httpEvent")&&(onA(),i4T());Y.exportToCsi&&OlA(hnT);Y.exportToDevTools&&OlA(xST());Y.maxBreadcrumbs>0&&nnt({eventsToIgnore:dS1,bufferSize:Y.maxBreadcrumbs})};
S8j=function(Y){return new Promise(function(G){window.setTimeout(G,Y)})};
NL1=function(Y){var G={bicf:function(M){Y.tpc=M},
blc:function(){return Y.getLatestChallengeResponse()},
bcr:function(M){Y.iOF.push(M)}},u=window;
u.ntpevasrs=G;if(u.ntpqfbel!==void 0)for(var O=_.E(u.ntpqfbel),Q=O.next();!Q.done;Q=O.next())Q=Q.value,Q(G);u.ntpqfbel=void 0};
jRu=function(Y){return _.a(function(G){if(G.nextAddress==1)return _.i3(G,2),G.yield(Y.suH(),4);if(G.nextAddress!=2)return _.j1(G,0);_.b3(G);_.Sd(G)})};
Vv1=function(Y){var G,u;(G=Y.ytcsi)==null||(u=G.tick)==null||u.call(G,"pot_ist")};
lwu=function(Y){if(Y instanceof Error){var G=_.So("yt.logging.errors.log");G&&G(Y,"WARNING")}};
BLu=function(Y){try{var G=JSON.parse(Y);if(G.bgChallenge)return G}catch(u){}};
q8U=function(){var Y=window,G={networkStatusManagerPromise:_.sH().resolve(new iQa(_.lB)),initialChallengeSli:_.F("wpo_att_sli")?new _.rwU("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};Y=Y===void 0?window:Y;var u=Y.ytAtR,O;G==null||(O=G.initialChallengeSli)==null||_.Qo(O);if(u){if(u=BLu(u)){var Q;G==null||(Q=G.initialChallengeSli)==null||_.Mz(Q,"SUCCESS");$SU(u,G)}Y.ytAtR=void 0}else Y.ytAtRC=function(M){if(M=BLu(M)){var t;G==null||(t=G.initialChallengeSli)==null||
_.Mz(t,"SUCCESS");$SU(M,G);Y.ytAtRC=void 0}}};
USt=function(){if(sRT)return sRT;try{var Y=_.uI("IFRAME");_.Er(Y,_.fO(c2T));Y.sandbox.add("allow-same-origin");Y.style.display="none";document.body.appendChild(Y);return sRT=Y}catch(G){Y=new _.I2("Failed to create sandbox iframe"),_.o0(Y)}};
vnA=function(Y){var G=[];return function(u){G.push(Y.onSchedule(u))===1&&Y.scheduleFn(function(){var O=[].concat(_.c8(G));G=[];Y.onFlush(O)})}};
J2I=function(Y){if(Y===window)return{x:0,y:0,w:window.innerWidth,h:window.innerHeight,scrollTop:window.scrollY,scrollLeft:window.scrollX};var G=Y.getBoundingClientRect();return{x:G.left,y:G.top,w:G.width,h:G.height,scrollTop:Y.scrollTop,scrollLeft:Y.scrollLeft}};
YOy=function(Y){if(Y===window)return null;var G=Y.parentElement;if(G)return G;Y=Y.getRootNode();return Y instanceof ShadowRoot?Y.host:window};
Oej=function(Y,G,u,O){if(Y._attn_data)return Y._attn_data;G={parentId:void 0,t:G,id:GK1++,dimensions:J2I(Y)};Y._attn_data=G;u.push(Y);O.push(G);if(Y===window)return G;Y=_.E(ujy(Y));for(var Q=Y.next();!Q.done;Q=Y.next()){Q=Q.value;if(Q===window)return u=Oej(Q,0,u,O),G.parentId=u.id,G;if(Q){var M=window.getComputedStyle(Q);var t=M.getPropertyValue("overflow-y");M=M.getPropertyValue("overflow-x");M=(M==="scroll"||M==="auto")&&Q.scrollWidth>Q.clientWidth;t=(t==="scroll"||t==="auto")&&Q.scrollHeight>Q.clientHeight||
M}else t=!1;if(t)return u=Oej(Q,1,u,O),G.parentId=u.id,G;if(Q._attn_tracked)return u=Oej(Q,2,u,O),G.parentId=u.id,G}throw Error("Ij");};
ujy=function(Y){return function u(){var O,Q;return _.u$(u,function(M){switch(M.nextAddress){case 1:_.h0(M,2),O=YOy(Y);case 4:if(!O){M.jumpTo(2);break}Q=_.OA;return M.yield(O,7);case 7:Q(M.yieldResult);O=YOy(O);M.jumpTo(4);break;case 2:_.wt(M),_.dt(M,0)}})}()};
QMT=function(Y){Y=Y===void 0?!0:Y;var G=[],u=window._attn_data,O=u.dimensions,Q=J2I(window);u.dimensions=Q;G.push(u);if(Y&&O.w===Q.w&&O.h===Q.h)return G;for(u=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT,function(M){if(M._attn_data==null)return NodeFilter.FILTER_SKIP;if(M===window)throw Error("Jj");var t=M._attn_data.dimensions,K=J2I(M);M._attn_data.dimensions=K;if(!Y||t.w!==K.w||t.h!==K.h)return G.push(M._attn_data),NodeFilter.FILTER_ACCEPT;t.x===K.x&&t.y===K.y||G.push(M._attn_data);
return NodeFilter.FILTER_REJECT});u.nextNode(););
return G};
Emy=function(Y){var G=Y.scrollThrottle,u=Y.scheduleAfterRender,O=new ZG,Q=M24(G,function(t){u(function(){var K=t._attn_data;K&&O.next({t:4,scrolled:{id:K.id,dimensions:J2I(t)}})})}),M=M24(G,function(){u(function(){O.next({t:2,
resized:QMT()})})});
Y=vnA({scheduleFn:u,onSchedule:function(t){t._attn_tracked=!0;return t},
onFlush:function(t){var K=[],L=[];t=_.E(t);for(var g=t.next();!g.done;g=t.next())Oej(g.value,2,K,L);t={};for(g=0;g<K.length;t={node$jscomp$785:void 0},g++){var P=L[g];t.node$jscomp$785=K[g];P.t===1&&t.node$jscomp$785.addEventListener("scroll",function(I){return function(){return Q(I.node$jscomp$785)}}(t))}O.next({t:1,
added:L})}});
G=vnA({scheduleFn:u,onSchedule:function(t){return t},
onFlush:function(t){O.next({t:3,removed:t.map(function(K){return K._attn_data})})}});
window.addEventListener("scroll",function(){return Q(window)});
window.addEventListener("resize",function(){return M});
return{events$:HeT(O),track:Y,untrack:G,snapshot:function(){u(function(){var t=QMT(!1);O.next({t:0,snapshot:t})})}}};
M24=function(Y,G){var u=new _.JR(G,Y);return function(O){return void u.fire(O)}};
t2t=function(Y){function G(u){if(u._attn_data)Y.untrack(u);else if(u.children){u=_.E(u.children);for(var O=u.next();!O.done;O=u.next())G(O.value)}}
(new MutationObserver(function(u){u=_.E(u);for(var O=u.next();!O.done;O=u.next())if(O=O.value,O.type==="childList"){O=_.E(O.removedNodes);for(var Q=O.next();!Q.done;Q=O.next())G(Q.value)}})).observe(document.body,{childList:!0,
subtree:!0})};
KFA=function(Y){var G;return function(){G||(G=Y());return G}};
a71=function(){return function(Y,G){_.DE("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[Y]=G}};
Tvy=function(){return function(Y,G){var u={};u[Y]=G;Y=_.bi(_.l_u)(u);Object.keys(Y).length>0&&_.kN(Y)}};
XXt=function(){if(_.d4t()==="hidden")var Y="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else _.d4t()==="visible"&&(Y="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",LFj=null);Y&&gma(Y)};
gma=function(Y){if(Y==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||Y==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(PKa===Y)return;PKa=Y}var G=9E4+Math.random()*2E3;if(Y!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Y7()>G)&&_.d4t()==="visible"){G=-1;LFj&&(G=Math.round((0,_.GC)()-LFj));var u=String;var O=_.So("_fact",window);O=O==null||O==-1?-1:Math.max(Date.now()-O,0);_.eK("foregroundHeartbeat",{firstActivityMs:u(O),clientDocumentNonce:HkU,index:String(I7a),lastEventDeltaMs:String(G),trigger:Y});
_.U5("_fact",-1,window);I7a++;LFj=(0,_.GC)()}};
kKy=function(Y,G,u,O,Q,M){G=new Uint8Array(G);if(Y.length===0)return G;var t=0;Q=Q!=null?Q:Y.length-1;for(var K=u;K<=Q;K++){var L=Y[K],g=K===u?O:0,P=void 0,I=K===Q?(P=M)!=null?P:L.length:L.length;L=L.subarray(g,I);G.set(L,t);t+=L.length}return G};
FFj=function(){typeof window.queueMicrotask!=="function"&&(window.queueMicrotask=function(Y){return nmt.then(Y)})};
_.pXA=function(){try{return!!self.sessionStorage}catch(Y){return!1}};
zva=function(){var Y=navigator;return new Promise(function(G,u){var O;(O=Y.webkitTemporaryStorage)!=null&&O.queryUsageAndQuota?Y.webkitTemporaryStorage.queryUsageAndQuota(function(Q,M){G({usage:Q,quota:M})},function(Q){u(Q)}):u(Error("Kj"))})};
mdI=function(Y,G){var u={errorSeverity:G.errorSeverity.toString(),wizFeatureFlags:Object.entries(G.featureFlags).join("\n")};gCY(G,u);G=G.errorSeverity;G===3?_.o0(Y,"ERROR",void 0,void 0,void 0,u):G===2&&_.o0(Y,"WARNING",void 0,void 0,void 0,u);_.F("cow_if_errors_in_popup")&&G===3&&Y.message.indexOf("<If>")!==-1&&window.alert(Y.message)};
WF4=function(Y,G){var u=Dy.get(Y)||{layerNode:G};u.layerNode=G;fA1(Y,u);Y.getScreenLayer=function(){return HH(u.layerNode)}};
re4=function(Y){var G;Y=Y.parentNode;for(var u;Y&&((G=Dy.get(Y))==null||!G.isRenderer)&&!((u=Y.polymerController)!=null?u:Y).isRenderer_;)Y=Y.parentNode||Y.host;if(G=Y)return Dy.get(G)};
xdt=function(Y){if(Y){Dy.delete(Y);var G=_.sH().resolve(cY);PUY(Y,G)}};
CKT=function(Y,G,u){if(u===void 0?0:u){if(u=Y.getAttribute("client-ve-type"),G.data&&!G.disableReactiveLogging||u)_.iF(function(){f7y(Y,_.hT(G.data))},"Jg"),_.w_(function(){return void xdt(Y)})}else typeof G.data!=="function"&&f7y(Y,G.data)};
f7y=function(Y,G){yeY++;ev1(Y,G)&&_.AN.addJob(function(){_.EA(_.AN,function(){if(ev1(Y,G)&&Y.ownerDocument.documentElement===document.documentElement&&Y){var u;if(Y.getAttribute("layer")){var O=u=Number(Y.getAttribute("layer")),Q=Dy.get(Y);Q?Q.layerNode.layer=O:WF4(Y,new Ae1(O));(O=re4(Y))&&(Q=Dy.get(Y))!=null&&(Q.layerNode.parent=O.layerNode)}else if(u=Dy.get(Y))u=HH(u.layerNode);else{u=HH;O=new Ae1;if(Q=re4(Y))O.parent=Q.layerNode;WF4(Y,O);u=u(O)}u!=null||(u=0);O=Y.getAttribute("client-ve-type");
Q=Number(O);var M=!1;O=!1;var t=Dy.get(Y),K;if((K=t)&&!(K=t[omA]!==G)&&(K=Q)){var L;K=((L=Dy.get(Y))==null?void 0:L.clientVeType)===void 0}K&&(t[omA]=G,M=O=t.isRenderer=!0);Dy.has(Y)&&(Dy.get(Y).clientVeType=Q);Y.visualElement&&(O=!0);if(_.F("wiz_next_ld_fix_client_ve_spec")){var g;L=((g=_.z(G==null?void 0:G.rendererContext,_.H3))==null?void 0:g.loggingDirectives)||(G==null?void 0:G.loggingDirectives)}else L=G==null?void 0:G.loggingDirectives;L&&L.clientVeSpec&&(g=iej(_.O3(),Y),g=_.Rvu(_.M4(),L,g||
void 0,u))&&(Y.visualElement=g);!Y.visualElement&&Q&&M&&(Y.veType=Q,g=void 0,_.F("wiz_next_client_ve_parent_fix")&&(g=iej(_.O3(),Y)),g=_.QZ(_.M4(),Y,g,u),Y.visualElement=g);O&&(g=_.sH().resolve(cY),uq(Y,{data:G,observer:g,layer:u,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.F("web_attention_logging")&&wXA().track(Y)}},0)},8)};
ev1=function(Y,G){return(G==null?0:G.trackingParams)||(G==null?0:G.loggingDirectives)||_.z(G==null?void 0:G.rendererContext,_.H3)||Y.getAttribute("client-ve-type")?!0:!1};
ZeI=function(Y,G,u){Y.componentType!==Ww&&u instanceof HTMLElement&&G&&!_.F("cow_logging_in_component_wrapper")&&CKT(u,G,!0)};
dd4=function(){if(!Dd4){Dd4=!0;var Y=_.F("enable_wiz_context_per_component")||!1;Y=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.F("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:Y,enableContextBasedComponentStacks:Y},{handleError:mdI,enableComponentStacksInErrorMessages:!1});Object.assign(uF,Y);hvA();yv4=Nlt;xZj=Vz4}};
hvA=function(){_.F("cow_logging_in_component_wrapper")?(Ufu=function(Y,G){G instanceof HTMLElement&&CKT(G,Y,!0)},gs4=function(){}):(Ufu=function(){},gs4=ZeI)};
beA=function(Y,G,u){G=G===void 0?{}:G;var O,Q=(O=_.z(Y.commandMetadata,_.ug))==null?void 0:O.url;O=G.form||{};!u||O.element||O.skipDefaultElement||(G.form=G.form||{},G.form.element=u);if(Q&&Q!=="/service_ajax")return{type:0,command:Y,form:G.form};if(_.F("kevlar_service_command_check")){if(_.oS(_.sH().resolve(_.KB),Y))return Object.assign({},{type:1,command:Y},G)}else{var M;if((M=_.z(Y.commandMetadata,_.ug))==null?0:M.apiUrl)return Object.assign({},{type:1,command:Y},G)}return{type:2,command:Y,form:G.form}};
SOa=function(Y){if(Y.form){var G=Y.form,u=Object.assign({},G);G=G.element;u=(delete u.element,u);if(G)return[_.c$(G,[Y.command,u,Y.commandController])]}return[]};
Nvt=function(Y){if(Y.form){var G=Y.form,u=Object.assign({},G);G=G.element;u=(delete u.element,u);G&&_.UK(G,[Y.command],G,u)}};
V2y=function(Y,G,u){var O=new jMt(Y,G),Q=new tV(Y,G,u);Y={"/youtubei/v1/browse":new Ky(Y,G,u),"/youtubei/v1/player":O,"/youtubei/v1/navigation/resolve_url":new af,"/youtubei/v1/next":Q,"/youtubei/v1/guide":new T0(u),"/youtubei/v1/search":new Ly(Y,G,u),"/youtubei/v1/reel/reel_item_watch":new gV(Y,G,u),"/youtubei/v1/get_watch":new XO(O,Q)};Y["/youtubei/v1/account/account_menu"]=new PH;Y["/youtubei/v1/notification/get_notification_menu"]=new If;return Y};
ny=function(){var Y=_.sH().resolve(_.kM);return Promise.resolve(l7A(Y,_.OI.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
Bv1=function(Y){return Y&&(Y=_.VW(_.q_a(Y)))?(new URLSearchParams(Y)).get("service"):null};
z0=function(Y,G){_.jk(_.FO(),function(){_.pQ("adl")});
_.sH().resolve($da)(G);Y=Y.root;Y.loadData&&Y.loadData(G);(G==null?0:G.response)?_.Mz(CaT(),"SUCCESS"):_.R0(new _.I2("Lifecycle: No response in data",_.hy("IS_SHELL_LOAD"),G?G.page:"NO_PAGE",G?G.endpoint:"NO_ENDPOINT"));Y.polymerController.$["page-manager"].lazyPrepareCriticalPages((G==null?void 0:G.page)||"",G.endpoint);var u,O;((O=_.z(G==null?void 0:(u=G.endpoint)==null?void 0:u.commandMetadata,_.ug))==null?0:O.webPageType)&&_.Zs().dispatch(_.py(_.z(G.endpoint.commandMetadata,_.ug).webPageType))};
qOj=function(){var Y,G;return _.a(function(u){switch(u.nextAddress){case 1:Y=window;if(!Y.getDataPromise){u.jumpTo(2);break}_.i3(u,3);return u.yield(Y.getDataPromise(),5);case 5:return u.return(u.yieldResult);case 3:return _.b3(u),u.yield(ny(),6);case 6:return u.return(u.yieldResult);case 2:if(Y.getInitialData)return G=Y.getInitialData(),Y.getInitialData=void 0,u.return(G);throw Error("Mj`"+_.OI.location.href);}})};
ceg=function(){_.ZE("CSI_SERVICE_NAME","youtube");_.kN({loadType:"cold"});_.F("kevlar_log_lcp")&&sMa(function(Y){_.pQ("lcp",Y.value)})};
UdU=function(){var Y=_.Gh(document.location.href,"enable");Y&&Y.indexOf("scraper")>-1&&_.ZE("ADD_SCRAPER_ATTRIBUTES",!0)};
utk=function(Y){var G=Y.root;Y=[vmY,Jet,_.mJ];_.F("web_feedback_endpoint_autolog_allowlist_killswitch")&&Y.push(_.WH,YIV);Ggl(function(u,O){return beA(u,O,G)},function(u){if(!u.command)return[];
var O;((O=u.form)==null?0:O.element)?u.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},u.form,{endpoint:u.command})})):G.handleNavigate(u);return[]},Y);
_.sH().addProvider({provide:_.rH,useValue:_.Jj.instance})};
QU1=function(){var Y={},G={},u;for(u in O1U){var O=_.E(_.IE(O1U[u],void 0,"e17Ccb"));Y[u]=O.next().value;G[u]=O.next().value}return[Y,function(Q){for(var M in Q){var t=void 0;(t=G[M])==null||t(Q[M])}}]};
_.EaT=function(Y,G){var u=!1;u=u===void 0?!1:u;var O=_.gX.getValueByKeys(Y,"contents","twoColumnWatchNextResults","results","results","contents"),Q=_.gX.getValueByKeys(Y,"contents","twoColumnWatchNextResults","playlist","playlist")||null;u&&(Q=null);var M=u=null;if(Q)u=_.gX.getValueByKeys(Q,"titleText"),M=_.gX.unsafeClone(_.gX.getValueByKeys(Q,"longBylineText")),O="",M&&(O=_.Ri(M)),M=_.i8(O);else if(O){O=_.E(O);for(var t=O.next();!t.done;t=O.next())t=t.value,t.videoPrimaryInfoRenderer&&(u=_.gX.getValueByKeys.apply(_.gX,
[t].concat(_.c8(MT_)))),t.videoSecondaryInfoRenderer&&(M=_.gX.getValueByKeys.apply(_.gX,[t].concat(_.c8(H1X))))}else _.N3(Error("Rj"));var K;Y.currentVideoEndpoint?K=Y.currentVideoEndpoint:_.N3(Error("Sj"));var L;G&&(L=_.gX.getValueByKeys(G,"playabilityStatus","miniplayer","miniplayerRenderer"));Y={miniplayerTitle:u,miniplayerSubtitle:M,watchEndpoint:K,playlistData:Q};L&&(Y.miniplayerRenderer=L);return Y};
tT4=function(Y){if(Y)return _.P3(Y)};
_.K4U=function(){return{isFullscreen:function(){throw Error("Tj");},
toggleFullscreen:function(){throw Error("Uj");},
exitFullscreen:function(){throw Error("Vj");},
isAutonavEnabled:function(){throw Error("Wj");},
setAutonavEnabled:function(){throw Error("Xj");},
isAutoplaySetExplicitly:function(){throw Error("Yj");}}};
atT=function(Y){return Y.videoDuration?Y.numTaps>1&&Y.tapDirection!==0?_.yW(Y.draggedTime/Y.videoDuration,0,1):_.yW((Y.playedTime||0)/Y.videoDuration,0,1):0};
TAV=function(Y){return Y.videoDuration?Y.isDragging||Y.numTaps>1&&Y.tapDirection!==0?_.yW(Y.draggedTime/Y.videoDuration,0,1):_.yW((Y.playedTime||0)/Y.videoDuration,0,1):0};
gak=function(Y){var G,u,O;return _.z(Y==null?void 0:(G=Y.markersMap)==null?void 0:(u=G.find(function(Q){return Q.key==="HEATSEEKER"}))==null?void 0:(O=u.value)==null?void 0:O.heatmap,L41)};
XuI=function(Y){var G,u;return(u=(G=gak(Y))==null?void 0:G.heatMarkersDecorations)!=null?u:[]};
PyX=function(Y){if(_.F("mweb_supported_chapters_killswitch"))return!0;var G;return!!(Y==null?0:(G=Y.markersMap)==null?0:G.find(function(u){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(u.key)}))};
_.ItM=function(Y){var G=Object,u=G.assign,O;Y={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(O=Y==null?void 0:Y.getPlayerState())!=null?O:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return u.call(G,{},{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,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},Y,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
kg2=function(Y){return function(G){var u=Y(),O,Q=(O=u.playerApi)==null?void 0:O.getPlayerState();G&&G!==u.playerState&&(G===1||G===2)&&u.setState({playerState:Q})}};
F42=function(Y){return function(G){var u=Y(),O=u.playerApi;O&&(G==null?void 0:G.type)==="newdata"&&(naI&&(clearTimeout(naI),naI=void 0),_.F("web_shorts_use_progress_state_for_gapless")?(G=O==null?void 0:O.getProgressState(G==null?void 0:G.playertype),G=G.seekableEnd-G.seekableStart):G=O==null?void 0:O.getDuration(G==null?void 0:G.playertype),u.setState({playedTime:0,videoDuration:G}))}};
puI=function(Y){return function(G){var u=Y(),O=u.playerApi;if(O){var Q=O.getPresentingPlayerType();_.F("web_shorts_use_progress_state_for_gapless")?(O=O.getProgressState(Q),O=O.seekableEnd-O.seekableStart):O=O.getDuration(Q);u.setState({playedTime:G,videoDuration:O})}}};
mjT=function(Y){_.k2(112394,Y,function(){return zAk},function(G){zAk=G})};
xjI=function(Y,G){if(!Y)return[];var u,O,Q;Y=((u=Y.markersMap)==null?void 0:(O=u.find(function(M){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(M.key)}))==null?void 0:(Q=O.value)==null?void 0:Q.chapters)||[];
!W4R(Y)||(G==null?0:G.ignoreStub)||(Y=[rYR()].concat(_.c8(Y)));return Y};
rYR=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
W4R=function(Y){if(Y.length===0)return!1;var G;return((G=_.z(Y[0],rV))==null?void 0:G.timeRangeStartMillis)!==0};
xM=function(Y){return Y?Y.timeRangeStartMillis||0:0};
Cy1=function(Y,G){if(Y.isDragging&&G)return Y=ft1(Y,G),Y===-1?rYR():xjI(G)[Y]};
ft1=function(Y,G){return Y.isDragging&&G?xjI(G,{ignoreStub:!0}).findIndex(function(u,O,Q){u=yYV(Y);return eA1(u,Q,O).scrubberHovering}):-1};
yYV=function(Y){return Object.assign({},Y,{videoDuration:Y.videoDuration*1E3,playedTime:Y.playedTime*1E3,draggedTime:Y.draggedTime*1E3})};
eA1=function(Y,G,u){var O=xM(_.z(G[u],rV));G=xM(_.z(G[u+1],rV))||Y.videoDuration;u=Y.isDragging;var Q;if(Q=Y.isDragging)Q=Y.draggedTime,Q=Q!==null&&Q>=O&&Q<G;var M=Y.playedTime;return M!==null&&M>=O&&M<G?{videoPosition:"active",isScrubbing:u,scrubberHovering:Q}:Y.playedTime<O?{videoPosition:"pending",isScrubbing:u,scrubberHovering:Q}:{videoPosition:"seen",isScrubbing:u,scrubberHovering:Q}};
AY_=function(Y,G){return Y.videoPosition==="seen"||(G===void 0?0:G)>0};
oaT=function(Y,G,u){G=Y/G.storyboardInterval;var O=xjI(u);if(!O.length)return-G*72;u=0;O=_.E(O);for(var Q=O.next();!Q.done;Q=O.next())if(xM(_.z(Q.value,rV))/1E3<Y)u++;else break;return-(G*72)-u*56};
i1U=function(Y){return Y?Y.width/Y.columns:0};
RAE=function(Y){return Y.isHovering?Y.hoveredTime:Y.draggedTime};
wu_=function(Y,G){Y=Y.draggedTime*1E3;return Y>=G.visibleTimeRangeStartMillis&&Y<=G.visibleTimeRangeEndMillis};
_.Z1I=function(Y){if(Y===void 0||Number.isNaN(Y))return"--:--";var G=Math.abs(Math.floor(Y)),u=Math.floor(G/86400),O=Math.floor(G%86400/3600),Q=Math.floor(G%3600/60);G=Math.floor(G%60);var M="";u>0&&(M+=u+":",O<10&&(M+="0"));if(u>0||O>0)M+=O+":",Q<10&&(M+="0");M+=Q+":";G<10&&(M+="0");M+=G;return Y>=0?M:"-"+M};
Djk=function(Y,G){return function(){var u=RAE(Y());var O=G();var Q=Y().playerApi;if(Q&&Q.getNumberOfStoryboardLevels()!==0){var M=Q.getStoryboardFrameIndex(u,1);M!==-1?O=Q.getStoryboardFrame(M,1):(u=Q.getStoryboardFrameIndex(u,0),Q=Q.getStoryboardFrame(u,0),O&&Q&&(Q.height*=3,Q.width*=3),O=Q)}else O=null;if(!O)return null;G()&&(O.width=90*O.columns,O.height=160*O.rows);return O}};
_.fy=function(Y){if(!Y||Y.getVideoData)return Y};
hAM=function(){var Y;return{playerApi:(Y=_.vx())!=null?Y:void 0}};
djR=function(Y,G){var u,O,Q;_.a(function(M){if(M.nextAddress==1)return(u=G)!=null?(O=u,M.jumpTo(2)):M.yield(_.Uj(),3);M.nextAddress!=2&&(O=M.yieldResult);if(Q=O)Q.unMute(!0),Q.setVolume(Y,!0);_.Sd(M)})};
Cy=function(Y,G){Y&&(Y.value=""+G,Y.style.setProperty("--gradient-percent",G+"%"))};
b12=function(Y){var G;return(G=Y==null?void 0:Y.value)!=null?G:0};
SI1=function(){var Y;_.a(function(G){if(G.nextAddress==1)return G.yield(_.Uj(),2);Y=G.yieldResult;if(!Y)return G.return();Y.isMuted()?Y.unMute(!0):Y.mute(!0);_.Sd(G)})};
NAk=function(Y){var G=_.sH().resolve(_.yo).getPlayerElement();G&&Y&&(Y===1?G.pause():G.play())};
jUR=function(Y){return!!_.z(Y,_.e6)||!!_.z(Y,_.AV)};
VTX=function(Y){_.sK(Y,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
lt2=function(Y){_.sK(Y,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
$j1=function(Y){return _.Ay(Y.document.body,function(){return _.T(BAR,null)},"uh")};
qI4=function(){var Y;return(Y=navigator.userActivation)==null?void 0:Y.isActive};
sUE=function(){var Y=window.performance.getEntriesByType("navigation");return Y?Y.map(function(G){return G.type}).includes("reload"):!1};
cYM=function(Y,G){G=G===void 0?!1:G;var u,O,Q,M;return _.a(function(t){if(t.nextAddress==1)return G||!_.F("kevlar_shorts_seedless_retry_initial_load")||(u=window,O=!(!u.getDataPromise&&!u.getInitialData),O)?t.yield(qOj(),2):(setTimeout(cYM.bind(window,Y,!0),1E3),t.return());if(t.nextAddress!=3)return Q=t.yieldResult,t.yield(Uj4(Q),3);M=t.yieldResult;z0(Y,M);_.Sd(t)})};
Uj4=function(Y){var G;if((G=Y.response)==null||!G.replacementEndpoint)return _.v$(Y);G=_.sH().resolve(_.kM);Y=Y.response;_.z(Y.replacementEndpoint,_.Qa)&&Y.sequenceContinuation&&(_.z(Y.replacementEndpoint,_.Qa).sequenceParams=Y.sequenceContinuation);return of(G,Y.replacementEndpoint,{},_.OI.location.href,"shorts",function(){},function(){return!1})};
JY2=function(Y){var G=_.sH().resolve(vak);Y.playerResponse&&G.handleResponse(Y.playerResponse);Y.response&&G.handleResponse(Y.response)};
Y4X=function(Y){var G=_.Zs(),u,O=_.z((u=Y.response)==null?void 0:u.frameworkUpdates,wE),Q;u=_.z((Q=Y.playerResponse)==null?void 0:Q.frameworkUpdates,wE);var M;Y=_.z((M=Y.reelWatchSequenceResponse)==null?void 0:M.frameworkUpdates,wE);O&&_.OG(O,G);u&&_.OG(u,G);Y&&_.OG(Y,G)};
G2V=function(Y){var G;_.F("enable_redirect_linking_for_desktop_web_client")&&((G=window.location.hash)==null?0:G.includes("redirect_state"))&&Y.url&&(Y.url=Y.url.toString()+window.location.hash)};
QXE=function(Y){var G=_.sH(),u=G.resolve(_.kM);G=G.resolve(_.ueX);Y.endpoint&&(u=OT2(u,Y.endpoint),u.content&&Y.response&&_.i$(G,Y.response,u.content),u.player&&Y.playerResponse&&_.i$(G,Y.playerResponse,u.player),u.reelSequence&&Y.reelWatchSequenceResponse&&_.i$(G,Y.reelWatchSequenceResponse,u.reelSequence))};
Rf=function(Y,G){_.F("web_enable_chunk_prediction")&&MRT(G);JY2(G);Y4X(G);var u;(G==null?0:G.url)&&((u=window.location.hash)==null?0:u.includes("redirect_state"))&&(G2V(G),(u=Bv1(G.url))&&_.qZ(Y.root,"yt-initialize-third-party",[u,G]));QXE(G);u=_.sH();var O=u.resolve(HT1);G.playerResponse&&u.resolve(EkT).handleResponse(G.playerResponse);if(G.playerResponse){u=void 0;if(_.F("ab_v_vid_sig")&&G.endpoint){var Q,M=(Q=_.z(G.endpoint,_.ic))!=null?Q:_.z(G.endpoint,_.Qa);M&&(u=M.videoId)}tR2(O,G.playerResponse,
u)}G.playerResponse&&$ht(G.playerResponse)&&_.F("web_enable_ab_rsp_cl")?Mju().then(function(){KEe(O,G.playerResponse);z0(Y,G)}):z0(Y,G)};
TRT=function(Y){if(Y=Y.root.data){var G=_.sH().resolve(aVl);Y.endpoint&&(Y.response&&G.handleResponse(Y.response,void 0,document.querySelector("ytd-app")),Y.playerResponse&&G.handleResponse(Y.playerResponse),Y.reelWatchSequenceResponse&&G.handleResponse(Y.reelWatchSequenceResponse))}};
MRT=function(Y){Y.response&&_.sH().resolve(LER).handleResponse(Y.response)};
gkl=function(Y){var G,u,O,Q,M,t;return _.a(function(K){switch(K.nextAddress){case 1:G=window;if(!G.getDataPromise){K.jumpTo(2);break}_.i3(K,3);return K.yield(G.getDataPromise(),5);case 5:u=K.yieldResult;Rf(Y,u);_.j1(K,4);break;case 3:return _.b3(K),K.yield(ny(),6);case 6:O=K.yieldResult,_.F("web_enable_chunk_prediction")&&MRT(O),z0(Y,O);case 4:return K.return();case 2:if(!_.F("sw_nav_preload_pbj")){K.jumpTo(7);break}G.fetchInitialData=function(){var L;return _.a(function(g){if(g.nextAddress==1)return g.yield(ny(),
2);L=g.yieldResult;_.F("web_enable_chunk_prediction")&&MRT(L);z0(Y,L);_.Sd(g)})};
if(G.getInitialData){G.loadInitialData=function(L){Rf(Y,L)};
Q=G.getInitialData();G.getInitialData=void 0;Rf(Y,Q);K.jumpTo(8);break}G.fetchInitialData=void 0;return K.yield(ny(),9);case 9:M=K.yieldResult,_.F("web_enable_chunk_prediction")&&MRT(M),z0(Y,M);case 8:return K.return();case 7:G.getInitialData?(t=G.getInitialData(),G.getInitialData=void 0,Rf(Y,t)):G.loadInitialData=function(L){Rf(Y,L)},_.Sd(K)}})};
P_U=function(){var Y=new X1M;_.hiA(Y);Y.registerInitializationCallback(function(){R8U(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
Y.registerCallback("error",function(G,u,O){_.dc(Error("bk`"+u+"`"+O))})};
mMU=typeof Object.create=="function"?Object.create:function(Y){var G=function(){};
G.prototype=Y;return new G};
WEM=typeof Object.defineProperties=="function"?Object.defineProperty:function(Y,G,u){if(Y==Array.prototype||Y==Object.prototype)return Y;Y[G]=u.value;return Y};
rU_=function(Y){Y=["object"==typeof globalThis&&globalThis,Y,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var G=0;G<Y.length;++G){var u=Y[G];if(u&&u.Math==Math)return u}throw Error("a");};
_.Uk=rU_(this);xMR="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.Uk.BigInt64Array&&(xMR.push("BigInt64"),xMR.push("BigUint64"));var C_V=function(Y,G){if(G)for(var u=0;u<xMR.length;u++)fVl(xMR[u]+"Array.prototype."+Y,G)},wV=function(Y,G){G&&fVl(Y,G)},fVl=function(Y,G){var u=_.Uk;
Y=Y.split(".");for(var O=0;O<Y.length-1;O++){var Q=Y[O];if(!(Q in u))return;u=u[Q]}Y=Y[Y.length-1];O=u[Y];G=G(O);G!=O&&G!=null&&WEM(u,Y,{configurable:!0,writable:!0,value:G})},yU2=function(){function Y(){function u(){}
new u;Reflect.construct(u,[],function(){});
return new u instanceof u}
if(typeof Reflect!="undefined"&&Reflect.construct){if(Y())return Reflect.construct;var G=Reflect.construct;return function(u,O,Q){u=G(u,O);Q&&Reflect.setPrototypeOf(u,Q.prototype);return u}}return function(u,O,Q){Q===void 0&&(Q=u);
Q=mMU(Q.prototype||Object.prototype);return Function.prototype.apply.call(u,Q,O)||Q}}(),elI;
if(typeof Object.setPrototypeOf=="function")elI=Object.setPrototypeOf;else{var AUk;a:{var okk={a:!0},iT_={};try{iT_.__proto__=okk;AUk=iT_.a;break a}catch(Y){}AUk=!1}elI=AUk?function(Y,G){Y.__proto__=G;if(Y.__proto__!==G)throw new TypeError("b`"+Y);return Y}:null}ZK=elI;
_.m=function(Y,G){Y.prototype=mMU(G.prototype);Y.prototype.constructor=Y;if(ZK)ZK(Y,G);else for(var u in G)if(u!="prototype")if(Object.defineProperties){var O=Object.getOwnPropertyDescriptor(G,u);O&&Object.defineProperty(Y,u,O)}else Y[u]=G[u];Y.superClass_=G.prototype};
RlU=function(Y){var G=0;return function(){return G<Y.length?{done:!1,value:Y[G++]}:{done:!0}}};
_.E=function(Y){var G=typeof Symbol!="undefined"&&Symbol.iterator&&Y[Symbol.iterator];if(G)return G.call(Y);if(typeof Y.length=="number")return{next:RlU(Y)};throw Error("c`"+String(Y));};
$H=function(Y){for(var G,u=[];!(G=Y.next()).done;)u.push(G.value);return u};
_.c8=function(Y){return Y instanceof Array?Y:$H(_.E(Y))};
_.hV=function(Y){return DK(Y,Y)};
DK=function(Y,G){Y.raw=G;Object.freeze&&(Object.freeze(Y),Object.freeze(G));return Y};
dV=function(Y,G){return Object.prototype.hasOwnProperty.call(Y,G)};
w1E=function(Y){if(Y==null)throw new TypeError("d");return Object(Y)};
ZTR=typeof Object.assign=="function"?Object.assign:function(Y,G){Y=w1E(Y);for(var u=1;u<arguments.length;u++){var O=arguments[u];if(O)for(var Q in O)dV(O,Q)&&(Y[Q]=O[Q])}return Y};
wV("Object.assign",function(Y){return Y||ZTR});
var b$=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},DMR=function(Y){if(Y.isRunning_)throw new TypeError("f");
Y.isRunning_=!0};
b$.prototype.JSC$9033_next_=function(Y){this.yieldResult=Y};
var hlU=function(Y,G){Y.abruptCompletion_={exception:G,isException:!0};Y.nextAddress=Y.catchAddress_||Y.finallyAddress_};
b$.prototype.return=function(Y){this.abruptCompletion_={return:Y};this.nextAddress=this.finallyAddress_};
b$.prototype.yield=function(Y,G){this.nextAddress=G;return{value:Y}};
b$.prototype.jumpTo=function(Y){this.nextAddress=Y};
_.Sd=function(Y){Y.nextAddress=0};
_.i3=function(Y,G,u){Y.catchAddress_=G;u!=void 0&&(Y.finallyAddress_=u)};
_.h0=function(Y,G){Y.catchAddress_=0;Y.finallyAddress_=G||0};
_.j1=function(Y,G,u){Y.nextAddress=G;Y.catchAddress_=u||0};
_.b3=function(Y,G){Y.catchAddress_=G||0;G=Y.abruptCompletion_.exception;Y.abruptCompletion_=null;return G};
_.wt=function(Y,G,u,O){O?Y.finallyContexts_[O]=Y.abruptCompletion_:Y.finallyContexts_=[Y.abruptCompletion_];Y.catchAddress_=G||0;Y.finallyAddress_=u||0};
_.dt=function(Y,G,u){u=Y.finallyContexts_.splice(u||0)[0];(u=Y.abruptCompletion_=Y.abruptCompletion_||u)?u.isException?Y.nextAddress=Y.catchAddress_||Y.finallyAddress_:u.jumpTo!=void 0&&Y.finallyAddress_<u.jumpTo?(Y.nextAddress=u.jumpTo,Y.abruptCompletion_=null):Y.nextAddress=Y.finallyAddress_:Y.nextAddress=G};
dMT=function(Y){this.JSC$9038_context_=new b$;this.program_=Y};
S4X=function(Y,G){DMR(Y.JSC$9038_context_);var u=Y.JSC$9038_context_.yieldAllIterator_;if(u)return bT4(Y,"return"in u?u["return"]:function(O){return{value:O,done:!0}},G,Y.JSC$9038_context_.return);
Y.JSC$9038_context_.return(G);return S6(Y)};
bT4=function(Y,G,u,O){try{var Q=G.call(Y.JSC$9038_context_.yieldAllIterator_,u);if(!(Q instanceof Object))throw new TypeError("e`"+Q);if(!Q.done)return Y.JSC$9038_context_.isRunning_=!1,Q;var M=Q.value}catch(t){return Y.JSC$9038_context_.yieldAllIterator_=null,hlU(Y.JSC$9038_context_,t),S6(Y)}Y.JSC$9038_context_.yieldAllIterator_=null;O.call(Y.JSC$9038_context_,M);return S6(Y)};
S6=function(Y){for(;Y.JSC$9038_context_.nextAddress;)try{var G=Y.program_(Y.JSC$9038_context_);if(G)return Y.JSC$9038_context_.isRunning_=!1,{value:G.value,done:!1}}catch(u){Y.JSC$9038_context_.yieldResult=void 0,hlU(Y.JSC$9038_context_,u)}Y.JSC$9038_context_.isRunning_=!1;if(Y.JSC$9038_context_.abruptCompletion_){G=Y.JSC$9038_context_.abruptCompletion_;Y.JSC$9038_context_.abruptCompletion_=null;if(G.isException)throw G.exception;return{value:G.return,done:!0}}return{value:void 0,done:!0}};
NRV=function(Y){this.next=function(G){DMR(Y.JSC$9038_context_);Y.JSC$9038_context_.yieldAllIterator_?G=bT4(Y,Y.JSC$9038_context_.yieldAllIterator_.next,G,Y.JSC$9038_context_.JSC$9033_next_):(Y.JSC$9038_context_.JSC$9033_next_(G),G=S6(Y));return G};
this.throw=function(G){DMR(Y.JSC$9038_context_);Y.JSC$9038_context_.yieldAllIterator_?G=bT4(Y,Y.JSC$9038_context_.yieldAllIterator_["throw"],G,Y.JSC$9038_context_.JSC$9033_next_):(hlU(Y.JSC$9038_context_,G),G=S6(Y));return G};
this.return=function(G){return S4X(Y,G)};
this[Symbol.iterator]=function(){return this}};
_.u$=function(Y,G){G=new NRV(new dMT(G));ZK&&Y.prototype&&ZK(G,Y.prototype);return G};
jXX=function(Y){function G(O){return Y.next(O)}
function u(O){return Y.throw(O)}
return new Promise(function(O,Q){function M(t){t.done?O(t.value):Promise.resolve(t.value).then(G,u).then(M,Q)}
M(Y.next())})};
_.a=function(Y){return jXX(new NRV(new dMT(Y)))};
wV("Symbol",function(Y){if(Y)return Y;var G=function(M,t){this.$jscomp$symbol$id_=M;WEM(this,"description",{configurable:!0,writable:!0,value:t})};
G.prototype.toString=function(){return this.$jscomp$symbol$id_};
var u="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",O=0,Q=function(M){if(this instanceof Q)throw new TypeError("g");return new G(u+(M||"")+"_"+O++,M)};
return Q});
wV("Symbol.iterator",function(Y){if(Y)return Y;Y=Symbol("h");WEM(Array.prototype,Y,{configurable:!0,writable:!0,value:function(){return VRI(RlU(this))}});
return Y});
wV("Symbol.asyncIterator",function(Y){return Y?Y:Symbol("i")});
VRI=function(Y){Y={next:Y};Y[Symbol.iterator]=function(){return this};
return Y};
_.RA=function(Y){var G=Y[Symbol.asyncIterator];return G!==void 0?G.call(Y):new lV4(_.E(Y))};
lV4=function(Y){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return Y};
this.next=function(G){return Promise.resolve(Y.next(G))};
this["throw"]=function(G){return new Promise(function(u,O){var Q=Y["throw"];Q!==void 0?u(Q.call(Y,G)):(u=Y["return"],u!==void 0&&u.call(Y),O(new TypeError("j")))})};
Y["return"]!==void 0&&(this["return"]=function(G){return Promise.resolve(Y["return"](G))})};
_.vs=function(){for(var Y=Number(this),G=[],u=Y;u<arguments.length;u++)G[u-Y]=arguments[u];return G};
_.OA=function(Y){return Y};
wV("globalThis",function(Y){return Y||_.Uk});
wV("Reflect",function(Y){return Y?Y:{}});
wV("Reflect.construct",function(){return yU2});
wV("Reflect.setPrototypeOf",function(Y){return Y?Y:ZK?function(G,u){try{return ZK(G,u),!0}catch(O){return!1}}:null});
wV("Promise",function(Y){function G(){this.batch_=null}
function u(t){return t instanceof Q?t:new Q(function(K){K(t)})}
if(Y&&(typeof _.Uk.PromiseRejectionEvent!=="undefined"||!_.Uk.Promise||_.Uk.Promise.toString().indexOf("[native code]")===-1))return Y;G.prototype.asyncExecute=function(t){if(this.batch_==null){this.batch_=[];var K=this;this.asyncExecuteFunction(function(){K.executeBatch_()})}this.batch_.push(t)};
var O=_.Uk.setTimeout;G.prototype.asyncExecuteFunction=function(t){O(t,0)};
G.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var t=this.batch_;this.batch_=[];for(var K=0;K<t.length;++K){var L=t[K];t[K]=null;try{L()}catch(g){this.asyncThrow_(g)}}}this.batch_=null};
G.prototype.asyncThrow_=function(t){this.asyncExecuteFunction(function(){throw t;})};
var Q=function(t){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var K=this.createResolveAndReject_();try{t(K.resolve,K.reject)}catch(L){K.reject(L)}};
Q.prototype.createResolveAndReject_=function(){function t(g){return function(P){L||(L=!0,g.call(K,P))}}
var K=this,L=!1;return{resolve:t(this.resolveTo_),reject:t(this.JSC$9070_reject_)}};
Q.prototype.resolveTo_=function(t){if(t===this)this.JSC$9070_reject_(new TypeError("n"));else if(t instanceof Q)this.settleSameAsPromise_(t);else{a:switch(typeof t){case "object":var K=t!=null;break a;case "function":K=!0;break a;default:K=!1}K?this.resolveToNonPromiseObj_(t):this.fulfill_(t)}};
Q.prototype.resolveToNonPromiseObj_=function(t){var K=void 0;try{K=t.then}catch(L){this.JSC$9070_reject_(L);return}typeof K=="function"?this.settleSameAsThenable_(K,t):this.fulfill_(t)};
Q.prototype.JSC$9070_reject_=function(t){this.settle_(2,t)};
Q.prototype.fulfill_=function(t){this.settle_(1,t)};
Q.prototype.settle_=function(t,K){if(this.state_!=0)throw Error("o`"+t+"`"+K+"`"+this.state_);this.state_=t;this.result_=K;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
Q.prototype.scheduleUnhandledRejectionCheck_=function(){var t=this;O(function(){if(t.notifyUnhandledRejection_()){var K=_.Uk.console;typeof K!=="undefined"&&K.error(t.result_)}},1)};
Q.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var t=_.Uk.CustomEvent,K=_.Uk.Event,L=_.Uk.dispatchEvent;if(typeof L==="undefined")return!0;typeof t==="function"?t=new t("unhandledrejection",{cancelable:!0}):typeof K==="function"?t=new K("unhandledrejection",{cancelable:!0}):(t=_.Uk.document.createEvent("CustomEvent"),t.initCustomEvent("unhandledrejection",!1,!0,t));t.promise=this;t.reason=this.result_;return L(t)};
Q.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var t=0;t<this.onSettledCallbacks_.length;++t)M.asyncExecute(this.onSettledCallbacks_[t]);this.onSettledCallbacks_=null}};
var M=new G;Q.prototype.settleSameAsPromise_=function(t){var K=this.createResolveAndReject_();t.callWhenSettled_(K.resolve,K.reject)};
Q.prototype.settleSameAsThenable_=function(t,K){var L=this.createResolveAndReject_();try{t.call(K,L.resolve,L.reject)}catch(g){L.reject(g)}};
Q.prototype.then=function(t,K){function L(k,n){return typeof k=="function"?function(p){try{g(k(p))}catch(W){P(W)}}:n}
var g,P,I=new Q(function(k,n){g=k;P=n});
this.callWhenSettled_(L(t,g),L(K,P));return I};
Q.prototype.catch=function(t){return this.then(void 0,t)};
Q.prototype.callWhenSettled_=function(t,K){function L(){switch(g.state_){case 1:t(g.result_);break;case 2:K(g.result_);break;default:throw Error("p`"+g.state_);}}
var g=this;this.onSettledCallbacks_==null?M.asyncExecute(L):this.onSettledCallbacks_.push(L);this.isRejectionHandled_=!0};
Q.resolve=u;Q.reject=function(t){return new Q(function(K,L){L(t)})};
Q.race=function(t){return new Q(function(K,L){for(var g=_.E(t),P=g.next();!P.done;P=g.next())u(P.value).callWhenSettled_(K,L)})};
Q.all=function(t){var K=_.E(t),L=K.next();return L.done?u([]):new Q(function(g,P){function I(p){return function(W){k[p]=W;n--;n==0&&g(k)}}
var k=[],n=0;do k.push(void 0),n++,u(L.value).callWhenSettled_(I(k.length-1),P),L=K.next();while(!L.done)})};
return Q});
var Nz=function(Y,G,u){if(Y==null)throw new TypeError("q`"+u);if(G instanceof RegExp)throw new TypeError("r`"+u);return Y+""};
wV("String.prototype.startsWith",function(Y){return Y?Y:function(G,u){var O=Nz(this,G,"startsWith"),Q=O.length,M=G.length;u=Math.max(0,Math.min(u|0,O.length));for(var t=0;t<M&&u<Q;)if(O[u++]!=G[t++])return!1;return t>=M}});
wV("Object.setPrototypeOf",function(Y){return Y||ZK});
wV("Symbol.dispose",function(Y){return Y?Y:Symbol("s")});
wV("SuppressedError",function(Y){function G(u,O,Q){if(!(this instanceof G))return new G(u,O,Q);Q=Error(Q);"stack"in Q&&(this.stack=Q.stack);this.message=Q.message;this.error=u;this.suppressed=O}
if(Y)return Y;_.m(G,Error);G.prototype.name="SuppressedError";return G});
wV("Array.from",function(Y){return Y?Y:function(G,u,O){u=u!=null?u:function(K){return K};
var Q=[],M=typeof Symbol!="undefined"&&Symbol.iterator&&G[Symbol.iterator];if(typeof M=="function"){G=M.call(G);for(var t=0;!(M=G.next()).done;)Q.push(u.call(O,M.value,t++))}else for(M=G.length,t=0;t<M;t++)Q.push(u.call(O,G[t],t));return Q}});
var BRM=function(Y,G,u){Y instanceof String&&(Y=String(Y));for(var O=Y.length,Q=0;Q<O;Q++){var M=Y[Q];if(G.call(u,M,Q,Y))return{i:Q,v:M}}return{i:-1,v:void 0}};
wV("Array.prototype.find",function(Y){return Y?Y:function(G,u){return BRM(this,G,u).v}});
wV("WeakMap",function(Y){function G(){}
function u(L){var g=typeof L;return g==="object"&&L!==null||g==="function"}
function O(L){if(!dV(L,M)){var g=new G;WEM(L,M,{value:g})}}
function Q(L){var g=Object[L];g&&(Object[L]=function(P){if(P instanceof G)return P;Object.isExtensible(P)&&O(P);return g(P)})}
if(function(){if(!Y||!Object.seal)return!1;try{var L=Object.seal({}),g=Object.seal({}),P=new Y([[L,2],[g,3]]);if(P.get(L)!=2||P.get(g)!=3)return!1;P.delete(L);P.set(g,4);return!P.has(L)&&P.get(g)==4}catch(I){return!1}}())return Y;
var M="$jscomp_hidden_"+Math.random();Q("freeze");Q("preventExtensions");Q("seal");var t=0,K=function(L){this.JSC$9078_id_=(t+=Math.random()+1).toString();if(L){L=_.E(L);for(var g;!(g=L.next()).done;)g=g.value,this.set(g[0],g[1])}};
K.prototype.set=function(L,g){if(!u(L))throw Error("t");O(L);if(!dV(L,M))throw Error("u`"+L);L[M][this.JSC$9078_id_]=g;return this};
K.prototype.get=function(L){return u(L)&&dV(L,M)?L[M][this.JSC$9078_id_]:void 0};
K.prototype.has=function(L){return u(L)&&dV(L,M)&&dV(L[M],this.JSC$9078_id_)};
K.prototype.delete=function(L){return u(L)&&dV(L,M)&&dV(L[M],this.JSC$9078_id_)?delete L[M][this.JSC$9078_id_]:!1};
return K});
wV("Map",function(Y){if(function(){if(!Y||typeof Y!="function"||!Y.prototype.entries||typeof Object.seal!="function")return!1;try{var K=Object.seal({x:4}),L=new Y(_.E([[K,"s"]]));if(L.get(K)!="s"||L.size!=1||L.get({x:4})||L.set({x:4},"t")!=L||L.size!=2)return!1;var g=L.entries(),P=g.next();if(P.done||P.value[0]!=K||P.value[1]!="s")return!1;P=g.next();return P.done||P.value[0].x!=4||P.value[1]!="t"||!g.next().done?!1:!0}catch(I){return!1}}())return Y;
var G=new WeakMap,u=function(K){this[0]={};this[1]=M();this.size=0;if(K){K=_.E(K);for(var L;!(L=K.next()).done;)L=L.value,this.set(L[0],L[1])}};
u.prototype.set=function(K,L){K=K===0?0:K;var g=O(this,K);g.list||(g.list=this[0][g.id]=[]);g.entry?g.entry.value=L:(g.entry={next:this[1],previous:this[1].previous,head:this[1],key:K,value:L},g.list.push(g.entry),this[1].previous.next=g.entry,this[1].previous=g.entry,this.size++);return this};
u.prototype.delete=function(K){K=O(this,K);return K.entry&&K.list?(K.list.splice(K.index,1),K.list.length||delete this[0][K.id],K.entry.previous.next=K.entry.next,K.entry.next.previous=K.entry.previous,K.entry.head=null,this.size--,!0):!1};
u.prototype.clear=function(){this[0]={};this[1]=this[1].previous=M();this.size=0};
u.prototype.has=function(K){return!!O(this,K).entry};
u.prototype.get=function(K){return(K=O(this,K).entry)&&K.value};
u.prototype.entries=function(){return Q(this,function(K){return[K.key,K.value]})};
u.prototype.keys=function(){return Q(this,function(K){return K.key})};
u.prototype.values=function(){return Q(this,function(K){return K.value})};
u.prototype.forEach=function(K,L){for(var g=this.entries(),P;!(P=g.next()).done;)P=P.value,K.call(L,P[1],P[0],this)};
u.prototype[Symbol.iterator]=u.prototype.entries;var O=function(K,L){var g=L&&typeof L;g=="object"||g=="function"?G.has(L)?g=G.get(L):(g=""+ ++t,G.set(L,g)):g="p_"+L;var P=K[0][g];if(P&&dV(K[0],g))for(K=0;K<P.length;K++){var I=P[K];if(L!==L&&I.key!==I.key||L===I.key)return{id:g,list:P,index:K,entry:I}}return{id:g,list:P,index:-1,entry:void 0}},Q=function(K,L){var g=K[1];
return VRI(function(){if(g){for(;g.head!=K[1];)g=g.previous;for(;g.next!=g.head;)return g=g.next,{done:!1,value:L(g)};g=null}return{done:!0,value:void 0}})},M=function(){var K={};
return K.previous=K.next=K.head=K},t=0;
return u});
wV("Set",function(Y){if(function(){if(!Y||typeof Y!="function"||!Y.prototype.entries||typeof Object.seal!="function")return!1;try{var u=Object.seal({x:4}),O=new Y(_.E([u]));if(!O.has(u)||O.size!=1||O.add(u)!=O||O.size!=1||O.add({x:4})!=O||O.size!=2)return!1;var Q=O.entries(),M=Q.next();if(M.done||M.value[0]!=u||M.value[1]!=u)return!1;M=Q.next();return M.done||M.value[0]==u||M.value[0].x!=4||M.value[1]!=M.value[0]?!1:Q.next().done}catch(t){return!1}}())return Y;
var G=function(u){this.JSC$9092_map_=new Map;if(u){u=_.E(u);for(var O;!(O=u.next()).done;)this.add(O.value)}this.size=this.JSC$9092_map_.size};
G.prototype.add=function(u){u=u===0?0:u;this.JSC$9092_map_.set(u,u);this.size=this.JSC$9092_map_.size;return this};
G.prototype.delete=function(u){u=this.JSC$9092_map_.delete(u);this.size=this.JSC$9092_map_.size;return u};
G.prototype.clear=function(){this.JSC$9092_map_.clear();this.size=0};
G.prototype.has=function(u){return this.JSC$9092_map_.has(u)};
G.prototype.entries=function(){return this.JSC$9092_map_.entries()};
G.prototype.values=function(){return this.JSC$9092_map_.values()};
G.prototype.keys=G.prototype.values;G.prototype[Symbol.iterator]=G.prototype.values;G.prototype.forEach=function(u,O){var Q=this;this.JSC$9092_map_.forEach(function(M){return u.call(O,M,M,Q)})};
return G});
wV("Math.log2",function(Y){return Y?Y:function(G){return Math.log(G)/Math.LN2}});
wV("Object.values",function(Y){return Y?Y:function(G){var u=[],O;for(O in G)dV(G,O)&&u.push(G[O]);return u}});
wV("Object.is",function(Y){return Y?Y:function(G,u){return G===u?G!==0||1/G===1/u:G!==G&&u!==u}});
wV("Array.prototype.includes",function(Y){return Y?Y:function(G,u){var O=this;O instanceof String&&(O=String(O));var Q=O.length;u=u||0;for(u<0&&(u=Math.max(u+Q,0));u<Q;u++){var M=O[u];if(M===G||Object.is(M,G))return!0}return!1}});
wV("String.prototype.includes",function(Y){return Y?Y:function(G,u){return Nz(this,G,"includes").indexOf(G,u||0)!==-1}});
wV("Object.entries",function(Y){return Y?Y:function(G){var u=[],O;for(O in G)dV(G,O)&&u.push([O,G[O]]);return u}});
wV("Number.isFinite",function(Y){return Y?Y:function(G){return typeof G!=="number"?!1:!isNaN(G)&&G!==Infinity&&G!==-Infinity}});
wV("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
wV("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
wV("Number.isInteger",function(Y){return Y?Y:function(G){return Number.isFinite(G)?G===Math.floor(G):!1}});
wV("Number.isSafeInteger",function(Y){return Y?Y:function(G){return Number.isInteger(G)&&Math.abs(G)<=Number.MAX_SAFE_INTEGER}});
wV("String.prototype.endsWith",function(Y){return Y?Y:function(G,u){var O=Nz(this,G,"endsWith");u===void 0&&(u=O.length);u=Math.max(0,Math.min(u|0,O.length));for(var Q=G.length;Q>0&&u>0;)if(O[--u]!=G[--Q])return!1;return Q<=0}});
var $M2=function(Y,G){Y instanceof String&&(Y+="");var u=0,O=!1,Q={next:function(){if(!O&&u<Y.length){var M=u++;return{value:G(M,Y[M]),done:!1}}O=!0;return{done:!0,value:void 0}}};
Q[Symbol.iterator]=function(){return Q};
return Q};
wV("Array.prototype.entries",function(Y){return Y?Y:function(){return $M2(this,function(G,u){return[G,u]})}});
wV("Math.trunc",function(Y){return Y?Y:function(G){G=Number(G);if(isNaN(G)||G===Infinity||G===-Infinity||G===0)return G;var u=Math.floor(Math.abs(G));return G<0?-u:u}});
wV("Number.isNaN",function(Y){return Y?Y:function(G){return typeof G==="number"&&isNaN(G)}});
wV("Array.prototype.keys",function(Y){return Y?Y:function(){return $M2(this,function(G){return G})}});
wV("Array.prototype.values",function(Y){return Y?Y:function(){return $M2(this,function(G,u){return u})}});
wV("Array.prototype.fill",function(Y){return Y?Y:function(G,u,O){var Q=this.length||0;u<0&&(u=Math.max(0,Q+u));if(O==null||O>Q)O=Q;O=Number(O);O<0&&(O=Math.max(0,Q+O));for(u=Number(u||0);u<O;u++)this[u]=G;return this}});
C_V("fill",function(Y){return Y?Y:Array.prototype.fill});
wV("Object.fromEntries",function(Y){return Y?Y:function(G){var u={};if(!(Symbol.iterator in G))throw new TypeError("v`"+G);G=G[Symbol.iterator].call(G);for(var O=G.next();!O.done;O=G.next()){O=O.value;if(Object(O)!==O)throw new TypeError("w");u[O[0]]=O[1]}return u}});
wV("String.prototype.replaceAll",function(Y){return Y?Y:function(G,u){if(G instanceof RegExp&&!G.global)throw new TypeError("x");return G instanceof RegExp?this.replace(G,u):this.replace(new RegExp(String(G).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),u)}});
wV("Object.getOwnPropertySymbols",function(Y){return Y?Y:function(){return[]}});
wV("String.prototype.repeat",function(Y){return Y?Y:function(G){var u=Nz(this,null,"repeat");if(G<0||G>1342177279)throw new RangeError("y");G|=0;for(var O="";G;)if(G&1&&(O+=u),G>>>=1)u+=u;return O}});
wV("Array.prototype.findIndex",function(Y){return Y?Y:function(G,u){return BRM(this,G,u).i}});
wV("Array.prototype.flatMap",function(Y){return Y?Y:function(G,u){var O=[];Array.prototype.forEach.call(this,function(Q,M){Q=G.call(u,Q,M,this);Array.isArray(Q)?O.push.apply(O,Q):O.push(Q)});
return O}});
wV("String.prototype.codePointAt",function(Y){return Y?Y:function(G){var u=Nz(this,null,"codePointAt"),O=u.length;G=Number(G)||0;if(G>=0&&G<O){G|=0;var Q=u.charCodeAt(G);if(Q<55296||Q>56319||G+1===O)return Q;G=u.charCodeAt(G+1);return G<56320||G>57343?Q:(Q-55296)*1024+G+9216}}});
wV("String.fromCodePoint",function(Y){return Y?Y:function(G){for(var u="",O=0;O<arguments.length;O++){var Q=Number(arguments[O]);if(Q<0||Q>1114111||Q!==Math.floor(Q))throw new RangeError("z`"+Q);Q<=65535?u+=String.fromCharCode(Q):(Q-=65536,u+=String.fromCharCode(Q>>>10&1023|55296),u+=String.fromCharCode(Q&1023|56320))}return u}});
wV("String.prototype.trimLeft",function(Y){function G(){return this.replace(/^[\s\xa0]+/,"")}
return Y||G});
wV("String.prototype.trimStart",function(Y){return Y||String.prototype.trimLeft});
wV("String.prototype.padStart",function(Y){return Y?Y:function(G,u){var O=Nz(this,null,"padStart");G-=O.length;u=u!==void 0?String(u):" ";return(G>0&&u?u.repeat(Math.ceil(G/u.length)).substring(0,G):"")+O}});
wV("Promise.prototype.finally",function(Y){return Y?Y:function(G){return this.then(function(u){return Promise.resolve(G()).then(function(){return u})},function(u){return Promise.resolve(G()).then(function(){throw u;
})})}});
wV("Math.imul",function(Y){return Y?Y:function(G,u){G=Number(G);u=Number(u);var O=G&65535,Q=u&65535;return O*Q+((G>>>16&65535)*Q+O*(u>>>16&65535)<<16>>>0)|0}});
wV("Object.hasOwn",function(Y){return Y?Y:function(G,u){return Object.prototype.hasOwnProperty.call(G,u)}});
var q4R=function(Y){Y=Math.trunc(Y)||0;Y<0&&(Y+=this.length);if(!(Y<0||Y>=this.length))return this[Y]};
wV("Array.prototype.at",function(Y){return Y?Y:q4R});
C_V("at",function(Y){return Y?Y:q4R});
wV("String.prototype.at",function(Y){return Y?Y:q4R});
wV("Math.sign",function(Y){return Y?Y:function(G){G=Number(G);return G===0||isNaN(G)?G:G>0?1:-1}});
wV("Array.prototype.flat",function(Y){return Y?Y:function(G){G=G===void 0?1:G;var u=[];Array.prototype.forEach.call(this,function(O){Array.isArray(O)&&G>0?(O=Array.prototype.flat.call(O,G-1),u.push.apply(u,O)):u.push(O)});
return u}});
wV("String.raw",function(Y){return Y?Y:function(G,u){G=w1E(G);for(var O=G.raw,Q=O.length,M="",t=0;t<Q;++t)M+=O[t],t+1<Q&&t+1<arguments.length&&(M+=String(arguments[t+1]));return M}});
wV("WeakSet",function(Y){if(function(){if(!Y||!Object.seal)return!1;try{var u=Object.seal({}),O=Object.seal({}),Q=new Y([u]);if(!Q.has(u)||Q.has(O))return!1;Q.delete(u);Q.add(O);return!Q.has(u)&&Q.has(O)}catch(M){return!1}}())return Y;
var G=function(u){this.JSC$9107_map_=new WeakMap;if(u){u=_.E(u);for(var O;!(O=u.next()).done;)this.add(O.value)}};
G.prototype.add=function(u){this.JSC$9107_map_.set(u,!0);return this};
G.prototype.has=function(u){return this.JSC$9107_map_.has(u)};
G.prototype.delete=function(u){return this.JSC$9107_map_.delete(u)};
return G});
wV("Reflect.ownKeys",function(Y){return Y?Y:function(G){var u=[],O=Object.getOwnPropertyNames(G);G=Object.getOwnPropertySymbols(G);for(var Q=0;Q<O.length;Q++)(O[Q].substring(0,14)=="jscomp_symbol_"?G:u).push(O[Q]);return u.concat(G)}});
wV("Object.getOwnPropertyDescriptors",function(Y){return Y?Y:function(G){for(var u={},O=Reflect.ownKeys(G),Q=0;Q<O.length;Q++)u[O[Q]]=Object.getOwnPropertyDescriptor(G,O[Q]);return u}});
wV("Promise.allSettled",function(Y){function G(O){return{status:"fulfilled",value:O}}
function u(O){return{status:"rejected",reason:O}}
return Y?Y:function(O){var Q=this;O=Array.from(O,function(M){return Q.resolve(M).then(G,u)});
return Q.all(O)}});
wV("Number.parseInt",function(Y){return Y||parseInt});
var sX4=function(Y,G,u){Y instanceof String&&(Y=String(Y));for(var O=Y.length-1;O>=0;O--){var Q=Y[O];if(G.call(u,Q,O,Y))return{i:O,v:Q}}return{i:-1,v:void 0}};
wV("Array.prototype.findLastIndex",function(Y){return Y?Y:function(G,u){return sX4(this,G,u).i}});
C_V("findLastIndex",function(Y){return Y?Y:function(G,u){return sX4(this,G,u).i}});
_._DumpException=window._DumpException||function(Y){throw Y;};
window._DumpException=_._DumpException;var cU2=window.ytcsi;cU2&&typeof cU2.tick==="function"&&cU2.tick("rses_dpj");var UM4,j6,Vo,l$,vk4,JUl,YwM,GxT,hB,ugl;UM4=UM4||{};_.OI=this||self;_.U5=function(Y,G,u){Y=Y.split(".");u=u||_.OI;for(var O;Y.length&&(O=Y.shift());)Y.length||G===void 0?u[O]&&u[O]!==Object.prototype[O]?u=u[O]:u=u[O]={}:u[O]=G};
j6=function(Y,G){var u=_.So("WIZ_global_data.oxN3nb");Y=u&&u[Y];return Y!=null?Y:G};
Vo=_.OI._F_toggles_default_kevlar_base||[];l$=function(){};
l$.get=function(){return null};
_.Ok=null;_.So=function(Y,G){Y=Y.split(".");G=G||_.OI;for(var u=0;u<Y.length;u++)if(G=G[Y[u]],G==null)return null;return G};
_.BH=function(Y){Y.instance_=void 0;Y.getInstance=function(){return Y.instance_?Y.instance_:Y.instance_=new Y}};
_.Q9=function(Y){var G=typeof Y;return G!="object"?G:Y?Array.isArray(Y)?"array":G:"null"};
_.ly=function(Y){var G=_.Q9(Y);return G=="array"||G=="object"&&typeof Y.length=="number"};
_.$a=function(Y){var G=typeof Y;return G=="object"&&Y!=null||G=="function"};
_.cu=function(Y){return Object.prototype.hasOwnProperty.call(Y,vk4)&&Y[vk4]||(Y[vk4]=++JUl)};
vk4="closure_uid_"+(Math.random()*1E9>>>0);JUl=0;YwM=function(Y,G,u){return Y.call.apply(Y.bind,arguments)};
GxT=function(Y,G,u){if(!Y)throw Error();if(arguments.length>2){var O=Array.prototype.slice.call(arguments,2);return function(){var Q=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Q,O);return Y.apply(G,Q)}}return function(){return Y.apply(G,arguments)}};
_.tP=function(Y,G,u){_.tP=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?YwM:GxT;return _.tP.apply(null,arguments)};
_.H2=function(Y,G){var u=Array.prototype.slice.call(arguments,1);return function(){var O=u.slice();O.push.apply(O,arguments);return Y.apply(this,O)}};
_.$M=function(){return Date.now()};
hB=function(Y){return Y};
_.qz=function(Y,G){function u(){}
u.prototype=G.prototype;Y.superClass_=G.prototype;Y.prototype=new u;Y.prototype.constructor=Y;Y.base=function(O,Q,M){for(var t=Array(arguments.length-2),K=2;K<arguments.length;K++)t[K-2]=arguments[K];return G.prototype[Q].apply(O,t)}};
ugl=function(Y){return Y};var Ox2,Qol;_.S=function(Y,G,u,O){var Q=arguments.length,M=Q<3?G:O===null?O=Object.getOwnPropertyDescriptor(G,u):O,t;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")M=Reflect.decorate(Y,G,u,O);else for(var K=Y.length-1;K>=0;K--)if(t=Y[K])M=(Q<3?t(M):Q>3?t(G,u,M):t(G,u))||M;Q>3&&M&&Object.defineProperty(G,u,M)};
_.V=function(Y,G){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(Y,G)};
Ox2=function(Y,G){if(G!==null&&G!==void 0){if(typeof G!=="object"&&typeof G!=="function")throw new TypeError("B");if(u===void 0){if(!Symbol.dispose)throw new TypeError("D");var u=G[Symbol.dispose]}if(typeof u!=="function")throw new TypeError("E");Y.stack.push({value:G,dispose:u,async:!1})}return G};
Qol=function(Y){function G(M){Y.error=Y.hasError?new SuppressedError(M,Y.error,"An error was suppressed during disposal."):M;Y.hasError=!0}
function u(){for(;O=Y.stack.pop();)try{if(!O.async&&Q===1)return Q=0,Y.stack.push(O),Promise.resolve().then(u);if(O.dispose){var M=O.dispose.call(O.value);if(O.async)return Q|=2,Promise.resolve(M).then(u,function(t){G(t);return u()})}else Q|=1}catch(t){G(t)}if(Q===1)return Y.hasError?Promise.reject(Y.error):Promise.resolve();
if(Y.hasError)throw Y.error;}
var O,Q=0;u()};var MSl="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(" ");YIt()&&MSl.push("details:not(:has(summary))");var uta=MSl.join(",");_.qz(_.Ya,Error);_.Ya.prototype.name="CustomError";var HxR;var EV2=void 0,tSk,KyR=typeof TextDecoder!=="undefined",TAt,at1=typeof String.prototype.isWellFormed==="function",K4Y=typeof TextEncoder!=="undefined";var IU=String.prototype.trim?function(Y){return Y.trim()}:function(Y){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(Y)[1]},aN1=/&/g,TbM=/</g,LyU=/>/g,gVe=/"/g,Xbe=/'/g,PNR=/\x00/g,INE=/[\x00&<>"']/;var sA=!!(Vo[0]>>17&1),cH=!!(Vo[0]&4096),kxe=!!(Vo[0]>>18&1),nVR=!!(Vo[0]&8),Fye=!!(Vo[0]&2),pbl=!!(Vo[0]&4),zjV=!!(Vo[0]&16),m9_=!!(Vo[0]&256),WyI=!!(Vo[0]&32),rBR=!!(Vo[0]&1024);var x9I,m4,fNk,CN_,yBI,$gU,ixA;x9I=j6(1,!0);m4=sA?kxe:j6(610401301,!1);fNk=sA?cH||!nVR:j6(772657768,!0);CN_=sA?Fye:j6(513659523,!1);yBI=sA?cH||!pbl:j6(568333945,!0);$gU=sA?zjV:j6(1331761403,!1);ixA=sA?cH||!m9_:j6(748402147,!0);_.UA=sA?cH||!WyI:j6(824648567,!0);_.gb=sA?cH||!rBR:j6(824656860,x9I);var Wu,ej4=_.OI.navigator;Wu=ej4?ej4.userAgentData||null:null;var Bj;_.Dt=function(Y,G){return Array.prototype.indexOf.call(Y,G,void 0)};
_.jo=function(Y,G,u){Array.prototype.forEach.call(Y,G,u)};
_.vH=function(Y,G,u){return Array.prototype.filter.call(Y,G,u)};
_.Xi=function(Y,G,u){return Array.prototype.map.call(Y,G,u)};
Bj=function(Y,G,u){return Array.prototype.some.call(Y,G,u)};
_.Rdg=function(Y,G,u){return Array.prototype.every.call(Y,G,u)};var JV=function(Y){JV[" "](Y);return Y};
JV[" "]=function(){};
var vxy=function(Y,G){try{return JV(Y[G]),!0}catch(u){}return!1},pju=function(Y,G,u,O){O=O?O(G):G;
return Object.prototype.hasOwnProperty.call(Y,O)?Y[O]:Y[O]=u(G)};var AB2,s5,oVk,ixR,wbE,ZxI,lfa,D94,hjT,d9T,f8U,Swe,Nb2,Bbe,$9I,qwT;_.qZ1=function(){return _.OI.navigator||null};
AB2=Itj();_.YU=kgg();s5=rA("Edge");oVk=s5||_.YU;_.Hc=rA("Gecko")&&!(_.Pu(_.zg(),"WebKit")&&!rA("Edge"))&&!(rA("Trident")||rA("MSIE"))&&!rA("Edge");_.Mt=_.Pu(_.zg(),"WebKit")&&!rA("Edge");ixR=_.Mt&&rA("Mobile");_.RjR=_.ftu();wbE=_.Cyu();ZxI=(AY()?Wu.platform==="Linux":rA("Linux"))||_.yYt();lfa=_.rYA();D94=xjj();hjT=rA("iPad");d9T=rA("iPod");_.bxE=_.oU();f8U=_.Pu(_.zg(),"KaiOS");Swe=function(){var Y=_.OI.document;return Y?Y.documentMode:void 0};
a:{var joU="",VSe=function(){var Y=_.zg();if(_.Hc)return/rv:([^\);]+)(\)|;)/.exec(Y);if(s5)return/Edge\/([\d\.]+)/.exec(Y);if(_.YU)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Y);if(_.Mt)return/WebKit\/(\S+)/.exec(Y);if(AB2)return/(?:Version)[ \/]?(\S+)/.exec(Y)}();
VSe&&(joU=VSe?VSe[1]:"");if(_.YU){var lN_=Swe();if(lN_!=null&&lN_>parseFloat(joU)){Nb2=String(lN_);break a}}Nb2=joU}Bbe=Nb2;$9I={};_.Gy=function(Y){return pju($9I,Y,function(){return _.Ft(Bbe,Y)>=0})};
if(_.OI.document&&_.YU){var so2=Swe();qwT=so2?so2:parseInt(Bbe,10)||void 0}else qwT=void 0;_.cBM=qwT;var C8g,yHA,U9E;_.uO=C1();C8g=xjj()||rA("iPod");yHA=rA("iPad");U9E=_.puj();_.MP=eT();_.Zn=_.F4g()&&!_.oU();var SIu={},O4=null,pFY=_.Hc||_.Mt||typeof _.OI.btoa=="function";var OTg=typeof Uint8Array!=="undefined",$ju=!_.YU&&typeof btoa==="function",qII=/[-_.]/g,ltg={"-":"+",_:"/",".":"="},oX={};var AU,JBT;AU=function(Y,G){if(G!==oX)throw Error("K");this.JSC$9141_value_=Y;if(Y!=null&&Y.length===0)throw Error("J");};
_.i_=function(){return vVk||(vVk=new AU(null,oX))};
JBT=function(Y){return new Uint8Array(GnI(Y)||0)};
AU.prototype.isEmpty=function(){return this.JSC$9141_value_==null};
AU.prototype.sizeBytes=function(){var Y=GnI(this);return Y?Y.length:0};
var GnI=function(Y){if(oX!==oX)throw Error("K");var G=Y.JSC$9141_value_;G==null||OTg&&G!=null&&G instanceof Uint8Array||(typeof G==="string"?G=sU4(G):(_.Q9(G),G=null));return G==null?G:Y.JSC$9141_value_=G},vVk;var UjI=void 0;var tU=typeof Symbol==="function"&&typeof Symbol()==="symbol",YTR=E4("jas",void 0,!0),UMI=E4(void 0,"0di"),tz=E4(void 0,"1oa"),db=E4(void 0,Symbol()),gVt=E4(void 0,"0ub"),PNT=E4(void 0,"0ubs"),haI=E4(void 0,"0ubsb"),wb4=E4(void 0,"0actk"),iN=E4("m_m","messagePrototypeMarker",!0),fNa=E4(void 0,"vps"),aNu=E4();var Y4U,JYg,Uw,Gn4;Y4U={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};JYg=Object.defineProperties;_.KT=tU?YTR:"internalArrayState";Gn4=[];Xe(Gn4,7);Uw=Object.freeze(Gn4);var Ro={},yI={},uo1=function(Y,G,u){this.iterable=Y;this.mapper=G;this.thisArg=u};
uo1.prototype.next=function(){var Y=this.iterable.next();Y.done||(Y.value=this.mapper.call(this.thisArg,Y.value));return Y};
uo1.prototype[Symbol.iterator]=function(){return this};
var O5T=Object.freeze({}),wR={};var HTu=void 0,Ek1=DV(function(Y){return Y!==null&&Y!==void 0});var LEA=DV(function(Y){return typeof Y==="number"}),TR1=DV(function(Y){return typeof Y==="string"}),X1j=DV(function(Y){return typeof Y==="boolean"}),Qh4=DV(function(Y){return Y!=null&&typeof Y==="object"&&typeof Y.then==="function"}),mNA=DV(function(Y){return typeof Y==="function"}),QM=DV(function(Y){return!!Y&&(typeof Y==="object"||typeof Y==="function")});var gkA=typeof _.OI.BigInt==="function"&&typeof _.OI.BigInt(0)==="bigint";var VRj=DV(function(Y){return gkA?Y>=MpX&&Y<=H5_:Y[0]==="-"?P_Y(Y,EOe):P_Y(Y,tp2)}),EOe=Number.MIN_SAFE_INTEGER.toString(),MpX=gkA?BigInt(Number.MIN_SAFE_INTEGER):void 0,tp2=Number.MAX_SAFE_INTEGER.toString(),H5_=gkA?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Kg_=typeof Uint8Array.prototype.slice==="function",dR=0,SR=0,nkA;var Fg,Wb,M9,my,elj;Fg=typeof BigInt==="function"?BigInt.asIntN:void 0;_.xV=typeof BigInt==="function"?BigInt.asUintN:void 0;Wb=Number.isSafeInteger;M9=Number.isFinite;my=Math.trunc;elj=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var CNy={};var EVg={},aqk=function(){try{var Y=function(){return yU2(Map,[],this.constructor)};
_.m(Y,Map);JV(new Y);return!1}catch(G){return!0}}(),Ha=function(){this.JSC$9160_map_=new Map};
_.H=Ha.prototype;_.H.get=function(Y){return this.JSC$9160_map_.get(Y)};
_.H.set=function(Y,G){this.JSC$9160_map_.set(Y,G);this.size=this.JSC$9160_map_.size;return this};
_.H.delete=function(Y){Y=this.JSC$9160_map_.delete(Y);this.size=this.JSC$9160_map_.size;return Y};
_.H.clear=function(){this.JSC$9160_map_.clear();this.size=this.JSC$9160_map_.size};
_.H.has=function(Y){return this.JSC$9160_map_.has(Y)};
_.H.entries=function(){return this.JSC$9160_map_.entries()};
_.H.keys=function(){return this.JSC$9160_map_.keys()};
_.H.values=function(){return this.JSC$9160_map_.values()};
_.H.forEach=function(Y,G){return this.JSC$9160_map_.forEach(Y,G)};
Ha.prototype[Symbol.iterator]=function(){return this.entries()};
var ED=function(){if(aqk)return Object.setPrototypeOf(Ha.prototype,Map.prototype),Object.defineProperties(Ha.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Ha;var Y=function(){return yU2(Map,[],this.constructor)};
_.m(Y,Map);return Y}(),wb=function(Y,G,u,O){u=u===void 0?ugA:u;
O=O===void 0?ugA:O;var Q=ED.call(this)||this;Q.arrayState=Y[_.KT]|0;Q.valueCtor=G;Q.keyToApi=u;Q.valueToApi=Q.valueCtor?QoA:O;for(var M=0;M<Y.length;M++){var t=Y[M],K=u(t[0],!1,!0),L=t[1];G?L===void 0&&(L=null):L=O(t[1],!1,!0,void 0,void 0,Q.arrayState);ED.prototype.set.call(Q,K,L)}return Q};
_.m(wb,ED);var TTR=function(Y){if(Y.arrayState&2)throw Error("O");},x9j=function(Y,G){return W1(Array.from(ED.prototype.entries.call(Y),G))};
_.H=wb.prototype;_.H.clear=function(){TTR(this);ED.prototype.clear.call(this)};
_.H.delete=function(Y){TTR(this);return ED.prototype.delete.call(this,this.keyToApi(Y,!0,!1))};
_.H.entries=function(){if(this.valueCtor){var Y=ED.prototype.keys.call(this);Y=new uo1(Y,MSA,this)}else Y=ED.prototype.entries.call(this);return Y};
_.H.values=function(){if(this.valueCtor){var Y=ED.prototype.keys.call(this);Y=new uo1(Y,wb.prototype.get,this)}else Y=ED.prototype.values.call(this);return Y};
_.H.forEach=function(Y,G){this.valueCtor?ED.prototype.forEach.call(this,function(u,O,Q){Y.call(G,Q.get(O),O,Q)}):ED.prototype.forEach.call(this,Y,G)};
_.H.set=function(Y,G){TTR(this);Y=this.keyToApi(Y,!0,!1);return Y==null?this:G==null?(ED.prototype.delete.call(this,Y),this):ED.prototype.set.call(this,Y,this.valueToApi(G,!0,!0,this.valueCtor,!1,this.arrayState))};
_.H.has=function(Y){return ED.prototype.has.call(this,this.keyToApi(Y,!1,!1))};
_.H.get=function(Y){Y=this.keyToApi(Y,!1,!1);var G=ED.prototype.get.call(this,Y);if(G!==void 0){var u=this.valueCtor;return u?(u=this.valueToApi(G,!1,!0,u,this.callToMutableOnAccess,this.arrayState),u!==G&&ED.prototype.set.call(this,Y,u),u):G}};
wb.prototype[Symbol.iterator]=function(){return this.entries()};
wb.prototype.toJSON=void 0;var HxA;var Fyt=function(){},kxt=function(Y,G){for(var u in Y)!isNaN(u)&&G(Y,+u,Y[u])},pbA=function(Y){var G=new Fyt;
kxt(Y,function(u,O,Q){G[O]=JU(Q)});
G.reviveUnknownFields=Y.reviveUnknownFields;return G},Tbj={reviveIntoImmutable:!0};var nVA;var yBj,ejI;var Lg4,OT,T5,k7,gOX,XU,PY,XsM,IqI,FU,knR,pc,Wa,rQ;Lg4=_.hU(0);_.tr={};_.Kc=function(Y,G,u,O,Q){G=OT(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G,u,Q);if(G!==null||O&&Y.noLegacyNull!==yI)return G};
OT=function(Y,G,u,O){if(G===-1)return null;var Q=G+(u?0:-1),M=Y.length-1;if(!(M<1+(u?0:-1))){if(Q>=M){var t=Y[M];if(t!=null&&typeof t==="object"&&t.constructor===Object){u=t[G];var K=!0}else if(Q===M)u=t;else return}else u=Y[Q];if(O&&u!=null){O=O(u);if(O==null)return O;if(!Object.is(O,u))return K?t[G]=O:Y[Q]=O,O}return u}};
_.Hj=function(Y,G,u,O){Bb(Y);var Q=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;cb(Q,Q[_.KT]|0,G,u,O);return Y};
_.aG=function(Y,G,u){Y=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return cBj(Y,Y[_.KT]|0,G,u)!==void 0};
_.Ty=function(Y,G,u,O){var Q=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return cBj(Q,Q[_.KT]|0,G,k7(Y,O,u))!==void 0};
_.bd=function(Y){return Y===O5T?2:4};
_.Lc=function(Y,G){Y=_.Kc(Y,G,void 0,void 0,VSt);return Y==null?_.i_():Y};
T5=function(Y,G,u,O){Bb(Y);var Q=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=Q[_.KT]|0;if(O==null){var t=$9j(Q);if(qw1(t,Q,M,u)===G)t.set(u,0);else return Y}else M=sog(Q,M,u,G);cb(Q,M,G,O);return Y};
_.f5=function(Y,G,u,O){var Q=Y[_.KT]|0,M=ZV(Q);Q=sog(Y,Q,u,G,M);cb(Y,Q,G,O,M)};
k7=function(Y,G,u){return _.gQ(Y,G)===u?u:-1};
_.gQ=function(Y,G){Y=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return qw1($9j(Y),Y,void 0,G,void 0)};
gOX=function(Y,G,u){var O=Y[_.KT]|0,Q=ZV(O),M=OT(Y,u,Q);if(M!=null&&M[iN]===Ro){if(!eR(M))return lN(M),M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var t=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(M)&&(t=M);if(t){var K=t[_.KT]|0;K&2&&(t=V9(t,K))}t=SS(t,G);t!==M&&cb(Y,O,u,t,Q);return t};
_.QH=function(Y,G,u,O){var Q=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=Q[_.KT]|0;G=cBj(Q,M,G,u,O);if(G==null)return G;M=Q[_.KT]|0;if(!eR(Y,M)){var t=Oxg(G);t!==G&&(lN(Y)&&(Q=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=Q[_.KT]|0),G=t,M=cb(Q,M,u,G,O),q9(Q,M))}return G};
_.dX=function(Y,G,u,O){var Q=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return U94(Y,Q,Q[_.KT]|0,G,u,O,!1,!0)};
_.Rh=function(Y,G,u,O){u=vVa(u);_.Hj(Y,G,u,O);u&&!eR(u)&&q9(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return Y};
_.wT=function(Y,G,u,O){O=vVa(O);T5(Y,G,u,O);O&&!eR(O)&&q9(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return Y};
XU=function(Y,G,u){Bb(Y);var O=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=O[_.KT]|0;if(u==null)return cb(O,Q,G),Y;for(var M=u===Uw?7:u[_.KT]|0,t=M,K=us(M),L=K||Object.isFrozen(u),g=!0,P=!0,I=0;I<u.length;I++){var k=u[I];K||(k=eR(k),g&&(g=!k),P&&(P=k))}K||(M=g?13:5,M=P?M&-4097:M|4096);L&&M===t||(u=JU(u),t=0,M=YO(M,Q));M!==t&&Xe(u,M);Q=cb(O,Q,G,u);2&M||!(4096&M||16&M)||q9(O,Q);return Y};
PY=function(Y,G,u,O){YTT(Y,G,u,O);return Y};
XsM=function(Y,G,u){YTT(Y,G,Pa,void 0,u,1,!0);return Y};
_.Psl=function(Y,G){return _.gb?lVI(_.Kc(Y,G,void 0,void 0,$Mg)):lVI(_.Kc(Y,G))};
_.IG=function(Y,G,u){return _.gb?_.Kc(Y,G,void 0,u,$Mg):$Mg(_.Kc(Y,G,void 0,u))};
_.kU=function(Y,G,u){return _.gb?_.Kc(Y,G,void 0,u,q4A):q4A(_.Kc(Y,G,void 0,u))};
_.nc=function(Y,G){var u=u===void 0?!1:u;var O;return(O=_.yUg(_.Kc(Y,G)))!=null?O:u};
_.Sh=function(Y,G,u){u=u===void 0?0:u;var O;return(O=_.Lx(_.Kc(Y,G)))!=null?O:u};
IqI=function(Y,G){var u=u===void 0?0:u;Y=_.oka(_.Kc(Y,G));return Y!=null?Y:u};
FU=function(Y,G,u){u=u===void 0?Lg4:u;var O;return(O=_.IG(Y,G))!=null?O:u};
knR=function(Y){var G=G===void 0?Lg4:G;var u;return(u=_.kU(Y,23))!=null?u:G};
pc=function(Y,G){var u=u===void 0?0:u;var O;return(O=_.Kc(Y,G,void 0,void 0,_.Ow))!=null?O:u};
_.zy=function(Y,G,u,O){u=u===void 0?"":u;var Q;return(Q=_.AB(_.Kc(Y,G,O)))!=null?Q:u};
_.mK=function(Y,G){var u=u===void 0?0:u;var O;return(O=_.ao(_.Kc(Y,G)))!=null?O:u};
Wa=function(Y,G){var u=u===void 0?"0":u;Y=_.gb?BRj(_.Kc(Y,G,void 0,void 0,$Mg)):BRj(_.Kc(Y,G),!0);return Y!=null?Y:u};
_.nOl=function(Y,G,u){Y=_.Gn(Y,G,_.AB,3,!0);QX4(Y,u);return Y[u]};
rQ=function(Y,G,u){return _.zy(Y,k7(Y,u,G))};
_.fc=function(Y,G,u,O){return _.QH(Y,G,k7(Y,O,u),void 0)};
_.Gm=function(Y,G){return _.AB(_.Kc(Y,G,void 0,_.tr))};
_.BF=function(Y,G,u){return _.Hj(Y,G,C_t(u))};
_.P$=function(Y,G,u){return _.Hs(Y,G,C_t(u),!1)};
_.Cc=function(Y,G,u){return _.Hj(Y,G,_.Tx(u))};
_.F3=function(Y,G,u){return _.Hj(Y,G,zx(u))};
_.E_=function(Y,G,u){return _.Hj(Y,G,eS(u))};
_.DL=function(Y,G,u,O){return _.Hs(Y,G,eS(u),"",O)};
_.MC=function(Y,G,u){return _.Hj(Y,G,u==null?u:_.Kx(u))};
_.yd=function(Y,G,u){return _.Hs(Y,G,u==null?u:_.Kx(u),0)};var ah=function(Y,G,u){this.buffer=Y;if(u&&!G)throw Error();this.JSC$9172_isImmutable=G};var Fg2=function(Y,G,u,O){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9175_start_=0;this.init(Y,G,u,O)},zaU,e5,mpI,Hb4,Wgk,rz4,xp4,fq4,fqI,psR;
_.H=Fg2.prototype;_.H.init=function(Y,G,u,O){var Q=O===void 0?{}:O;O=Q.aliasBytesFields===void 0?!1:Q.aliasBytesFields;Q=Q.treatNewDataAsImmutable===void 0?!1:Q.treatNewDataAsImmutable;this.aliasBytesFields=O;this.treatNewDataAsImmutable=Q;Y&&(Y=uou(Y,this.treatNewDataAsImmutable),this.bytes_=Y.buffer,this.bytesAreImmutable_=Y.JSC$9172_isImmutable,this.JSC$9175_start_=G||0,this.end_=u!==void 0?this.JSC$9175_start_+u:this.bytes_.length,this.cursor_=this.JSC$9175_start_)};
_.H.free=function(){this.clear();psR.length<100&&psR.push(this)};
_.H.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9175_start_=0;this.aliasBytesFields=!1};
_.H.reset=function(){this.cursor_=this.JSC$9175_start_};
_.H.atEnd=function(){return this.cursor_==this.end_};
_.xO=function(Y,G){var u=0,O=0,Q=0,M=Y.bytes_,t=Y.cursor_;do{var K=M[t++];u|=(K&127)<<Q;Q+=7}while(Q<32&&K&128);if(Q>32)for(O|=(K&127)>>4,Q=3;Q<32&&K&128;Q+=7)K=M[t++],O|=(K&127)<<Q;e5(Y,t);if(!(K&128))return G(u>>>0,O>>>0);throw Error();};
zaU=function(Y){return _.xO(Y,function(G,u){return rUy(G,u,mMY)})};
e5=function(Y,G){Y.cursor_=G;if(G>Y.end_)throw Error();};
_.Ar=function(Y){var G=Y.bytes_,u=Y.cursor_,O=G[u++],Q=O&127;if(O&128&&(O=G[u++],Q|=(O&127)<<7,O&128&&(O=G[u++],Q|=(O&127)<<14,O&128&&(O=G[u++],Q|=(O&127)<<21,O&128&&(O=G[u++],Q|=O<<28,O&128&&G[u++]&128&&G[u++]&128&&G[u++]&128&&G[u++]&128&&G[u++]&128)))))throw Error();e5(Y,u);return Q};
_.oG=function(Y){var G=Y.bytes_,u=Y.cursor_,O=G[u],Q=G[u+1],M=G[u+2];G=G[u+3];e5(Y,Y.cursor_+4);return(O<<0|Q<<8|M<<16|G<<24)>>>0};
mpI=function(Y){var G=_.oG(Y);Y=_.oG(Y);return p1j(G,Y)};
Hb4=function(Y){var G=_.oG(Y);Y=_.oG(Y);return zlA(G,Y)};
Wgk=function(Y){var G=_.oG(Y);Y=(G>>31)*2+1;var u=G>>>23&255;G&=8388607;return u==255?G?NaN:Y*Infinity:u==0?Y*1.401298464324817E-45*G:Y*Math.pow(2,u-150)*(G+8388608)};
rz4=function(Y){var G=_.oG(Y),u=_.oG(Y);Y=(u>>31)*2+1;var O=u>>>20&2047;G=4294967296*(u&1048575)+G;return O==2047?G?NaN:Y*Infinity:O==0?Y*4.9E-324*G:Y*Math.pow(2,O-1075)*(G+4503599627370496)};
xp4=function(Y){for(var G=0,u=Y.cursor_,O=u+10,Q=Y.bytes_;u<O;){var M=Q[u++];G|=M;if((M&128)===0)return e5(Y,u),!!(G&127)}throw Error();};
fq4=function(Y,G){if(G<0)throw Error();var u=Y.cursor_;G=u+G;if(G>Y.end_)throw Error();Y.cursor_=G;return u};
fqI=function(Y,G){if(G==0)return _.i_();var u=fq4(Y,G);Y.aliasBytesFields&&Y.bytesAreImmutable_?u=Y.bytes_.subarray(u,u+G):(Y=Y.bytes_,G=u+G,u=u===G?new Uint8Array(0):Kg_?Y.slice(u,G):new Uint8Array(Y.subarray(u,G)));return u.length==0?_.i_():new AU(u,oX)};
psR=[];var CsX=function(Y,G,u,O){if(psR.length){var Q=psR.pop();Q.init(Y,G,u,O);Y=Q}else Y=new Fg2(Y,G,u,O);this.decoder_=Y;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;this.setOptions(O)},Wga,xpI,iO,eaR,yz2;
CsX.prototype.setOptions=function(Y){Y=Y===void 0?{}:Y;this.discardUnknownFields=Y.discardUnknownFields===void 0?!1:Y.discardUnknownFields};
var eaT=function(Y,G,u,O){if(yz2.length){var Q=yz2.pop();Q.setOptions(O);Q.decoder_.init(Y,G,u,O);return Q}return new CsX(Y,G,u,O)};
CsX.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;yz2.length<100&&yz2.push(this)};
CsX.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
Wga=function(Y){if(Y.decoder_.atEnd())return!1;Y.fieldCursor_=Y.decoder_.cursor_;var G=_.Ar(Y.decoder_)>>>0,u=G>>>3;G&=7;if(!(G>=0&&G<=5))throw Error();if(u<1)throw Error();Y.nextField_=u;Y.nextWireType_=G;return!0};
xpI=function(Y){switch(Y.nextWireType_){case 0:Y.nextWireType_!=0?xpI(Y):xp4(Y.decoder_);break;case 1:Y=Y.decoder_;e5(Y,Y.cursor_+8);break;case 2:if(Y.nextWireType_!=2)xpI(Y);else{var G=_.Ar(Y.decoder_)>>>0;Y=Y.decoder_;e5(Y,Y.cursor_+G)}break;case 5:Y=Y.decoder_;e5(Y,Y.cursor_+4);break;case 3:G=Y.nextField_;do{if(!Wga(Y))throw Error();if(Y.nextWireType_==4){if(Y.nextField_!=G)throw Error();break}xpI(Y)}while(1);break;default:throw Error();}};
iO=function(Y,G,u){var O=Y.decoder_.end_,Q=_.Ar(Y.decoder_)>>>0;Q=Y.decoder_.cursor_+Q;var M=Q-O;M<=0&&(Y.decoder_.end_=Q,u(G,Y,void 0,void 0,void 0),M=Q-Y.decoder_.cursor_);if(M)throw Error();Y.decoder_.cursor_=Q;Y.decoder_.end_=O;return G};
eaR=function(Y){var G=_.Ar(Y.decoder_)>>>0;Y=Y.decoder_;var u=fq4(Y,G);Y=Y.bytes_;if(KyR){var O=Y,Q;(Q=tSk)||(Q=tSk=new TextDecoder("utf-8",{fatal:!0}));G=u+G;O=u===0&&G===O.length?O:O.subarray(u,G);try{var M=Q.decode(O)}catch(g){if(EV2===void 0){try{Q.decode(new Uint8Array([128]))}catch(P){}try{Q.decode(new Uint8Array([97])),EV2=!0}catch(P){EV2=!1}}!EV2&&(tSk=void 0);throw g;}}else{M=u;G=M+G;u=[];for(var t=null,K,L;M<G;)K=Y[M++],K<128?u.push(K):K<224?M>=G?Gg():(L=Y[M++],K<194||(L&192)!==128?(M--,
Gg()):u.push((K&31)<<6|L&63)):K<240?M>=G-1?Gg():(L=Y[M++],(L&192)!==128||K===224&&L<160||K===237&&L>=160||((Q=Y[M++])&192)!==128?(M--,Gg()):u.push((K&15)<<12|(L&63)<<6|Q&63)):K<=244?M>=G-2?Gg():(L=Y[M++],(L&192)!==128||(K<<28)+(L-144)>>30!==0||((Q=Y[M++])&192)!==128||((O=Y[M++])&192)!==128?(M--,Gg()):(K=(K&7)<<18|(L&63)<<12|(Q&63)<<6|O&63,K-=65536,u.push((K>>10&1023)+55296,(K&1023)+56320))):Gg(),u.length>=8192&&(t=tTI(t,u),u.length=0);M=tTI(t,u)}return M};
_.AzE=function(Y){var G=_.Ar(Y.decoder_)>>>0;return fqI(Y.decoder_,G)};
_.oO_=function(Y,G,u){var O=_.Ar(Y.decoder_)>>>0;for(O=Y.decoder_.cursor_+O;Y.decoder_.cursor_<O;)u.push(G(Y.decoder_))};
yz2=[];var i5e=function(Y,G){this.JSC$9182_lo=Y>>>0;this.JSC$9182_hi=G>>>0},VpU=function(Y){Y=BigInt.asUintN(64,Y);
return new i5e(Number(Y&BigInt(4294967295)),Number(Y>>BigInt(32)))},MpU=function(Y){if(!Y)return RaE||(RaE=new i5e(0,0));
if(!/^\d+$/.test(Y))return null;c1(Y);return new i5e(dR,SR)},RaE,jhA=function(Y,G){this.JSC$9184_lo=Y>>>0;
this.JSC$9184_hi=G>>>0},O51=function(Y){if(!Y)return wsU||(wsU=new jhA(0,0));
if(!/^-?\d+$/.test(Y))return null;c1(Y);return new jhA(dR,SR)},wsU;var RG=function(){this.JSC$9186_buffer_=[]},zn,rT,Z5X;
RG.prototype.length=function(){return this.JSC$9186_buffer_.length};
RG.prototype.end=function(){var Y=this.JSC$9186_buffer_;this.JSC$9186_buffer_=[];return Y};
zn=function(Y,G,u){for(;u>0||G>127;)Y.JSC$9186_buffer_.push(G&127|128),G=(G>>>7|u<<25)>>>0,u>>>=7;Y.JSC$9186_buffer_.push(G)};
rT=function(Y,G){for(;G>127;)Y.JSC$9186_buffer_.push(G&127|128),G>>>=7;Y.JSC$9186_buffer_.push(G)};
_.BT1=function(Y,G){if(G>=0)rT(Y,G);else{for(var u=0;u<9;u++)Y.JSC$9186_buffer_.push(G&127|128),G>>=7;Y.JSC$9186_buffer_.push(1)}};
Z5X=function(Y,G){c1(G);WEj(function(u,O){zn(Y,u>>>0,O>>>0)})};
RG.prototype.writeUint8=function(Y){this.JSC$9186_buffer_.push(Y>>>0&255)};
_.p5=function(Y,G){Y.JSC$9186_buffer_.push(G>>>0&255);Y.JSC$9186_buffer_.push(G>>>8&255);Y.JSC$9186_buffer_.push(G>>>16&255);Y.JSC$9186_buffer_.push(G>>>24&255)};
RG.prototype.writeInt8=function(Y){this.JSC$9186_buffer_.push(Y>>>0&255)};var Dp2,Ih,qT4,Upu,Kgy;Dp2=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new RG};
Ih=function(Y,G){G.length!==0&&(Y.blocks_.push(G),Y.totalLength_+=G.length)};
_.ha4=function(Y,G){_.Fo(Y,G,2);G=Y.encoder_.end();Ih(Y,G);G.push(Y.totalLength_);return G};
_.dpI=function(Y,G){var u=G.pop();for(u=Y.totalLength_+Y.encoder_.length()-u;u>127;)G.push(u&127|128),u>>>=7,Y.totalLength_++;G.push(u);Y.totalLength_++};
_.Fo=function(Y,G,u){rT(Y.encoder_,G*8+u)};
qT4=function(Y,G,u){if(u!=null)switch(H5y(u),_.Fo(Y,G,1),typeof u){case "number":Y=Y.encoder_;IVI(u);_.p5(Y,dR);_.p5(Y,SR);break;case "bigint":u=VpU(u);Y=Y.encoder_;G=u.JSC$9182_hi;_.p5(Y,u.JSC$9182_lo);_.p5(Y,G);break;default:u=MpU(u),Y=Y.encoder_,G=u.JSC$9182_hi,_.p5(Y,u.JSC$9182_lo),_.p5(Y,G)}};
Upu=function(Y,G,u){_.Fo(Y,G,2);rT(Y.encoder_,u.length);Ih(Y,Y.encoder_.end());Ih(Y,u)};
Kgy=function(Y,G,u,O){u!=null&&(G=_.ha4(Y,G),O(u,Y),_.dpI(Y,G))};var EOt,b5T,STR,NTT,jhl,lqT,BTT,qTE,sh1;EOt=Tn();b5T=Tn();STR=Tn();NTT=Tn();jhl=Tn();_.VpX=Tn();_.wQ=Tn();lqT=Tn();BTT=Tn();_.$p_=Tn();qTE=Tn();sh1=Tn();_.cz_=Tn();_.Up1=Tn();_.Ps=function(Y,G,u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y,G,u)};
_.Ps.prototype.toJSON=function(){return bN(this)};
_.Ps.prototype.serialize=function(Y){return JSON.stringify(bN(this,Y))};
var TtY=function(Y,G){if(G==null||G=="")return new Y;G=JSON.parse(G);if(!Array.isArray(G))throw Error("W");return new Y(ueU(G))};
_.Ps.prototype.getExtension=function(Y){Xbt(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y.fieldIndex);LyY(this,Y.fieldIndex);return Y.ctor?Y.isRepeated?Y.getExtensionFn(this,Y.ctor,Y.fieldIndex,_.bd(),Y.JSC$9197_hasMessageId):Y.getExtensionFn(this,Y.ctor,Y.fieldIndex,Y.JSC$9197_hasMessageId):Y.isRepeated?Y.getExtensionFn(this,Y.fieldIndex,_.bd(),Y.JSC$9197_hasMessageId):Y.getExtensionFn(this,Y.fieldIndex,Y.defaultValue,Y.JSC$9197_hasMessageId)};
_.Ps.prototype.clone=function(){var Y=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=Y[_.KT]|0;return bx4(this,Y,G)?d91(this,Y,!0):new this.constructor(V9(Y,G,!1))};
_.Ps.prototype[iN]=Ro;_.Ps.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var L5=function(Y,G,u){this.$$binaryReaderFn=Y;this.$$binaryWriterFn=G;Y=hB(EOt);this.$$isMsg=!!Y&&u===Y||!1},PsA=tpg(function(Y,G,u,O,Q){if(Y.nextWireType_!==2)return!1;
iO(Y,gOX(G,O,u),Q);return!0},TTA),Iqj=tpg(function(Y,G,u,O,Q){if(Y.nextWireType_!==2)return!1;
iO(Y,gOX(G,O,u),Q);return!0},TTA),oOy=Symbol(),Fgg=Symbol(),mpj=Symbol(),wsY=Symbol(),CsU=Symbol(),LgI,gOU;var vOk,tdj,JzX,ZB,YrR,Gol,uHl,ObV,hr,MdI,HbE,E6U,tdI,K0R,TtU,L0U,g6R,X8k,P3V,Ixk;vOk=_.hU(0);tdj=function(Y,G){var u=new Dp2;Z5U(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u,gT(oOy,Az4,i5t,G));Ih(u,u.encoder_.end());Y=new Uint8Array(u.totalLength_);G=u.blocks_;for(var O=G.length,Q=0,M=0;M<O;M++){var t=G[M];Y.set(t,Q);Q+=t.length}u.blocks_=[Y];return Y};
JzX=tpg(function(Y,G,u,O,Q){if(Y.nextWireType_!==2)return!1;Y=iO(Y,SS([void 0,void 0],O),Q);Y=JU(Y);O=G[_.KT]|0;Q=ZV(O);if(O&2)throw Error();var M=OT(G,u,Q);if(M instanceof wb)(M.arrayState&2)!=0?(M=x9j(M),M.push(Y),cb(G,O,u,M,Q)):(G=M,u=G.keyToApi(Y[0],!1,!0),Y=Y[1],Y=G.valueCtor?Y===void 0?null:Y:G.valueToApi(Y,!1,!0,void 0,!1,G.arrayState),ED.prototype.set.call(G,u,Y));else if(Array.isArray(M)){var t=M[_.KT]|0;t&8192||Xe(M,t|=8192);t&2&&(M=lNy(M),cb(G,O,u,M,Q));M.push(Y)}else cb(G,O,u,W1([Y]),
Q);return!0},function(Y,G,u,O,Q){if(G instanceof wb)G.forEach(function(K,L){Kgy(Y,u,SS([L,
K],O),Q)});
else if(Array.isArray(G)){for(var M=0;M<G.length;M++){var t=G[M];Array.isArray(t)&&Kgy(Y,u,SS(t,O),Q)}W1(G)}});
ZB=_.kO(function(Y,G,u){if(Y.nextWireType_!==1)return!1;_.n5(G,u,rz4(Y.decoder_));return!0},STA,sh1);
YrR=_.kO(function(Y,G,u,O){if(Y.nextWireType_!==1)return!1;_.f5(G,u,O,rz4(Y.decoder_));return!0},STA,sh1);
Gol=_.kO(function(Y,G,u){if(Y.nextWireType_!==5)return!1;_.n5(G,u,Wgk(Y.decoder_));return!0},NT1,qTE);
uHl=_.b51(function(Y,G,u){if(Y.nextWireType_!==5&&Y.nextWireType_!==2)return!1;G=_.ET(G,G[_.KT]|0,u);Y.nextWireType_==2?_.oO_(Y,Wgk,G):G.push(Wgk(Y.decoder_));return!0},function(Y,G,u){G=_.dpj(_.Ow,G,!0);
if(G!=null&&G.length)for(_.Fo(Y,u,2),rT(Y.encoder_,G.length*4),u=0;u<G.length;u++){var O=Y.encoder_;FEu(G[u]);_.p5(O,dR)}},qTE);
ObV=_.kO(function(Y,G,u,O){if(Y.nextWireType_!==5)return!1;_.f5(G,u,O,Wgk(Y.decoder_));return!0},NT1,qTE);
_.QAR=_.kO(function(Y,G,u){if(_.UA)return Obt(Y,G,u);if(Y.nextWireType_!==0)return!1;_.n5(G,u,_.xO(Y.decoder_,_.s4));return!0},_.mg,_.wQ);
_.DB=_.kO(function(Y,G,u){if(_.UA)return Obt(Y,G,u);if(Y.nextWireType_!==0)return!1;_.n5(G,u,_.xO(Y.decoder_,qM));return!0},_.mg,_.wQ);
hr=_.kO(function(Y,G,u){if(_.UA)return Y.nextWireType_!==0?G=!1:(Y=_.xO(Y.decoder_,mMY),_.n5(G,u,Y===vOk?void 0:Y),G=!0),G;if(Y.nextWireType_!==0)return!1;Y=_.xO(Y.decoder_,qM);_.n5(G,u,Y===0?void 0:Y);return!0},_.mg,_.wQ);
MdI=_.kO(function(Y,G,u,O){if(_.UA)return _.QAT(Y,G,u,O);if(Y.nextWireType_!==0)return!1;_.f5(G,u,O,_.xO(Y.decoder_,qM));return!0},_.mg,_.wQ);
HbE=_.kO(function(Y,G,u){if(_.UA)return Mdj(Y,G,u);if(Y.nextWireType_!==0)return!1;_.n5(G,u,_.xO(Y.decoder_,_.B1));return!0},lq1,lqT);
_.dQ=_.kO(function(Y,G,u){if(_.UA)return Mdj(Y,G,u);if(Y.nextWireType_!==0)return!1;_.n5(G,u,_.xO(Y.decoder_,p1j));return!0},lq1,lqT);
_.bO=_.kO(function(Y,G,u){if(Y.nextWireType_!==0)return!1;_.n5(G,u,_.Ar(Y.decoder_));return!0},$py,NTT);
E6U=_.kO(function(Y,G,u){if(Y.nextWireType_!==0)return!1;Y=_.Ar(Y.decoder_);_.n5(G,u,Y===0?void 0:Y);return!0},$py,NTT);
tdI=_.kO(function(Y,G,u,O){if(Y.nextWireType_!==0)return!1;_.f5(G,u,O,_.Ar(Y.decoder_));return!0},$py,NTT);
K0R=_.kO(function(Y,G,u){if(_.UA)return _.E6Y(Y,G,u);if(Y.nextWireType_!==1)return!1;_.n5(G,u,mpI(Y.decoder_));return!0},_.shu,_.$p_);
_.axI=_.b51(function(Y,G,u){if(_.UA)return Y.nextWireType_!==1&&Y.nextWireType_!==2?Y=!1:(G=_.ET(G,G[_.KT]|0,u),Y.nextWireType_==2?_.oO_(Y,Hb4,G):G.push(Hb4(Y.decoder_)),Y=!0),Y;if(Y.nextWireType_!==1&&Y.nextWireType_!==2)return!1;G=_.ET(G,G[_.KT]|0,u);Y.nextWireType_==2?_.oO_(Y,mpI,G):G.push(mpI(Y.decoder_));return!0},function(Y,G,u){G=_.dpj(cUg,G,!1);
if(G!=null)for(var O=0;O<G.length;O++)qT4(Y,u,G[O])},_.$p_);
_.S5=_.kO(function(Y,G,u){if(Y.nextWireType_!==0)return!1;_.n5(G,u,xp4(Y.decoder_));return!0},czy,b5T);
_.NP=_.kO(function(Y,G,u){if(Y.nextWireType_!==0)return!1;Y=xp4(Y.decoder_);_.n5(G,u,Y===!1?void 0:Y);return!0},czy,b5T);
TtU=_.kO(function(Y,G,u,O){if(Y.nextWireType_!==0)return!1;_.f5(G,u,O,xp4(Y.decoder_));return!0},czy,b5T);
_.j5=_.kO(function(Y,G,u){if(Y.nextWireType_!==2)return!1;_.n5(G,u,eaR(Y));return!0},vOa,STR);
_.Vd=_.kO(function(Y,G,u){if(Y.nextWireType_!==2)return!1;Y=eaR(Y);_.n5(G,u,Y===""?void 0:Y);return!0},vOa,STR);
_.lO=_.kO(function(Y,G,u,O){if(Y.nextWireType_!==2)return!1;_.f5(G,u,O,eaR(Y));return!0},vOa,STR);
L0U=_.b51(function(Y,G,u){if(Y.nextWireType_!==2)return!1;Y=eaR(Y);_.ET(G,G[_.KT]|0,u).push(Y);return!0},function(Y,G,u){G=_.dpj(_.AB,G,!0);
if(G!=null)for(var O=0;O<G.length;O++){var Q=Y,M=u,t=G[O];t!=null&&Upu(Q,M,L4u(t))}},STR);
g6R=void 0;g6R=g6R===void 0?EOt:g6R;_.Ba=new L5(function(Y,G,u,O,Q){if(Y.nextWireType_!==2)return!1;O=SS(void 0,O);_.ET(G,G[_.KT]|0,u).push(O);iO(Y,O,Q);return!0},function(Y,G,u,O,Q){if(Array.isArray(G)){for(var M=0;M<G.length;M++)JzU(Y,G[M],u,O,Q);
Y=G[_.KT]|0;Y&1||Xe(G,Y|1)}},g6R);
_.$U=tpg(function(Y,G,u,O,Q,M){if(Y.nextWireType_!==2)return!1;var t=G[_.KT]|0;sog(G,t,M,u,ZV(t));G=gOX(G,O,u);iO(Y,G,Q);return!0},JzU);
_.qP=_.kO(function(Y,G,u){if(Y.nextWireType_!==2)return!1;_.n5(G,u,_.AzE(Y));return!0},_.YrA,_.cz_);
X8k=_.kO(function(Y,G,u,O){if(Y.nextWireType_!==2)return!1;_.f5(G,u,O,_.AzE(Y));return!0},_.YrA,_.cz_);
_.sD=_.kO(function(Y,G,u){if(Y.nextWireType_!==0)return!1;_.n5(G,u,_.Ar(Y.decoder_)>>>0);return!0},GoA,jhl);
P3V=_.kO(function(Y,G,u,O){if(Y.nextWireType_!==0)return!1;_.f5(G,u,O,_.Ar(Y.decoder_)>>>0);return!0},GoA,jhl);
_.ca=_.kO(function(Y,G,u){if(Y.nextWireType_!==0)return!1;_.n5(G,u,_.Ar(Y.decoder_));return!0},_.uHA,_.Up1);
_.UD=_.kO(function(Y,G,u){if(Y.nextWireType_!==0)return!1;Y=_.Ar(Y.decoder_);_.n5(G,u,Y===0?void 0:Y);return!0},_.uHA,_.Up1);
Ixk=_.kO(function(Y,G,u){if(_.UA)return Y.nextWireType_!==0?Y=!1:(_.n5(G,u,zaU(Y.decoder_)),Y=!0),Y;if(Y.nextWireType_!==0)return!1;_.n5(G,u,_.xO(Y.decoder_,xMT));return!0},function(Y,G,u){G=sXI(G);
if(G!=null&&(QhI(G),G!=null))switch(_.Fo(Y,u,0),typeof G){case "number":Y=Y.encoder_;u=G;G=u<0;u=Math.abs(u)*2;IVI(u);u=dR;var O=SR;G&&(u==0?O==0?O=u=4294967295:(O--,u=4294967295):u--);dR=u;SR=O;zn(Y,dR,SR);break;case "bigint":Y=Y.encoder_;G=G<<BigInt(1)^G>>BigInt(63);dR=Number(BigInt.asUintN(32,G));SR=Number(BigInt.asUintN(32,G>>BigInt(32)));zn(Y,dR,SR);break;default:Z5X(Y.encoder_,G)}},BTT);var F0l=function(){var Y=koR,G=n6e;this.fieldIndex=175237375;this.ctor=G;this.isRepeated=0;this.getExtensionFn=_.QH;this.defaultValue=void 0;this.JSC$9197_hasMessageId=Y.messageId!=null?wR:void 0};
F0l.prototype.register=function(){JV(this)};var p84=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(p84,_.Ps);var zHU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(zHU,_.Ps);var X8a=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(X8a,_.Ps);var mKl=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(mKl,_.Ps);var W0V=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(W0V,_.Ps);var r0k=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(r0k,_.Ps);var xKV=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(xKV,_.Ps);xKV.prototype.getData=function(){return _.Lc(this,2)};var fxe=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(fxe,_.Ps);var C3R=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(C3R,_.Ps);C3R.prototype.getStyle=function(){return _.QH(this,p84,1)};var is=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(is,_.Ps);is.prototype.getPayloadCase=function(){return _.gQ(this,Zq)};
is.prototype.getStyle=function(){return _.fc(this,C3R,6,Zq)};
var y0e=function(){var Y=new is,G=new W0V;return _.wT(Y,7,Zq,G)},eHe=function(){var Y=new is,G=new r0k;
return _.wT(Y,8,Zq,G)},Zq=[1,
2,3,4,5,6,7,8];var A0I=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(A0I,_.Ps);var o64=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(o64,_.Ps);var ibR=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(ibR,_.Ps);var RHU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(RHU,_.Ps);var w8X=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(w8X,_.Ps);var Zbe=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Zbe,_.Ps);var DKI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(DKI,_.Ps);var hHE=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(hHE,_.Ps);hHE.prototype.getData=function(){return _.Lc(this,2)};var dK2=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(dK2,_.Ps);var g6T=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(g6T,_.Ps);g6T.prototype.getPayloadCase=function(){return _.gQ(this,va)};
var va=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Jr=function(Y,G){Y=Error.call(this,Y);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.code=G===void 0?2:G};
_.m(Jr,Error);var bb1=Promise;var SrE=function(Y){this.channelPromise=Y};
SrE.prototype.send=function(Y,G,u){this.channelPromise.then(function(O){O.send(Y,G,u)})};var Ntl=function(Y,G){this.data=Y;this.channel=G};
Ntl.prototype.reply=function(Y,G,u){this.channel.send(Y,G,u)};var jAE=function(Y){this.JSC$9263_port_=Y};
jAE.prototype.send=function(Y,G,u){u=u===void 0?[]:u;var O=new MessageChannel;VdT(O.port1,G);this.JSC$9263_port_.postMessage(Y,[O.port2].concat(u))};
var lxI=function(Y,G){VdT(Y,G);return new jAE(Y)},VdT=function(Y,G){G&&(Y.onmessage=function(u){G(new Ntl(u.data,lxI(u.ports[0])))})};var BtM=function(Y){this.verifier_=Y};
BtM.prototype.verify=function(Y){return this.verifier_(Y)};
var $Kk=function(Y){var G=Object.create(null);(typeof Y==="string"?[Y]:Y).forEach(function(u){if(u==="null")throw Error("Y");G[u]=!0});
return function(u){return G[u]===!0}};_.qr4=function(){if(!_.OI.addEventListener||!Object.defineProperty)return!1;var Y=!1,G=Object.defineProperty({},"passive",{get:function(){Y=!0}});
try{var u=function(){};
_.OI.addEventListener("test",u,G);_.OI.removeEventListener("test",u,G)}catch(O){}return Y}();var sAV;_.YS=function(Y){var G=Y.destination;var u=Y.iframe;var O=Y.origin;var Q=Y.channelName===void 0?"ZNWN1d":Y.channelName;var M=Y.onMessage===void 0?void 0:Y.onMessage;Y=Y.onEstablished===void 0?void 0:Y.onEstablished;return sAV({destination:G,getSource:function(){return u.contentWindow},
originVerifier:O instanceof BtM?O:typeof O==="function"?new BtM(O):new BtM($Kk(O)),channelName:Q,onMessage:M,onEstablished:Y})};
sAV=function(Y){var G=Y.destination;var u=Y.getSource;var O=Y.originVerifier;var Q=Y.token===void 0?void 0:Y.token;var M=Y.channelName;var t=Y.onMessage===void 0?void 0:Y.onMessage;var K=Y.onEstablished===void 0?void 0:Y.onEstablished;return new SrE(new bb1(function(L,g){var P=function(I){I.source&&I.source===u()&&O.verify(I.origin)&&(I.data.n||I.data)===M&&(G.removeEventListener("message",P,!1),Q&&I.data.t!==Q?g(Error("Z`"+M+"`"+Q+"`"+I.data.t)):(L(lxI(I.ports[0],t)),K&&K(I)))};
G.addEventListener("message",P,!1)}))};var c02=function(Y){try{Y()}catch(G){Qj(G)}};var v6E=function(Y){var G=this;var u=Y.getMessageType;var O=Y.onUnregisteredMessage===void 0?function(){}:Y.onUnregisteredMessage;
var Q=Y.onBeforeRegisteredMessage===void 0?function(){}:Y.onBeforeRegisteredMessage;
Y=Y.onAfterRegisteredMessage===void 0?function(){}:Y.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=u;this.onUnregisteredMessage_=O;this.onBeforeRegisteredMessage_=Q;this.onAfterRegisteredMessage_=Y;this.onMessage=function(M){return UK_(G,M)}};
v6E.prototype.register=function(Y,G){this.registry_.set(Y,G);return this};
var UK_=function(Y,G){var u=Y.getMessageType_(G.data),O=Y.registry_.get(u);O?(c02(function(){return Y.onBeforeRegisteredMessage_(G,u)}),c02(function(){return O(G)}),c02(function(){return Y.onAfterRegisteredMessage_(G,u)})):c02(function(){return Y.onUnregisteredMessage_(G,u)})};var J0X=function(Y){this.JSC$9280_channel_=Y},Gd1,uQe;
J0X.prototype.send=function(Y,G,u){this.JSC$9280_channel_.send(bN(Y),G,u)};
_.Ysl=function(Y,G){return function(u){var O=new Y(u.data);return G(new Ntl(O,u.channel))}};
Gd1=function(Y){return function(G){return Y(new Ntl(G.data,new J0X(G.channel)))}};
uQe=function(Y,G){return Gd1(_.Ysl(Y,G))};var OOT=function(Y,G,u,O){this.registry=Y;this.delegate=G;this.receiveMessageConstructor=u;this.createInitMessage=O;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},L0Y=function(Y){var G=new v6E({getMessageType:Y.getPayloadCase});
return new OOT(G,new J0X(_.YS({iframe:Y.child,destination:window,origin:Y.origin,channelName:Y.channelName,onMessage:uQe(Y.receiveMessageConstructor,G.onMessage)})),Y.receiveMessageConstructor,Y.createInitMessage)},QBR=function(Y,G){Y.createInitMessage=G};
OOT.prototype.send=function(Y){if(!this.initialised)throw new Jr("Attempted to send a message before initialisation.");this.delegate.send(Y)};
var ML2=function(Y,G){return _.a(function(u){if(!Y.initialised)throw new Jr("Attempted to send a message before initialisation.");return u.return(new Promise(function(O){Y.delegate.send(G,uQe(Y.receiveMessageConstructor,O))}))})};
OOT.prototype.init=function(){var Y=this;return _.a(function(G){if(Y.initialised)throw new Jr("Attempted to initialise twice. The SDK can only be initialised once.");if(Y.createInitMessage!==void 0){var u=Y.delegate,O=u.send,Q=Y.createInitMessage;var M=new zHU;var t=[].concat(_.c8(Y.features));M=_.QG(M,1,t,_.Kx);O.call(u,Q.call(Y,M))}Y.initialised=!0;_.Sd(G)})};
var Gw=function(Y,G){if(Y.initialised)throw new Jr('Attempted to set up API "'+G+'" after initialisation. All APIs must be set up before initialising the SDK.');Y.features.add(G);return Y.registry};
_.Uk.Object.defineProperties(OOT.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var HOR=function(Y){this.channel=Y;this.registered=!1};
HOR.prototype.update=function(Y){if(this.channel.isInitialised){if(!this.registered)throw new Jr("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var G=new is;var u=new mKl;u=_.BF(u,1,Y);G=_.wT(G,2,Zq,u);this.channel.send(G)}else this.register();this.JSC$9294_audioEnabled=Y};
HOR.prototype.register=function(){Gw(this.channel,1);this.registered=!0};
HOR.prototype.isAudioEnabled=function(){return this.JSC$9294_audioEnabled};var ExU=function(Y){this.channel=Y};
_.H=ExU.prototype;_.H.onFirstFrameReady=function(Y){Gw(this.channel,2).register(11,function(G){G=_.fc(G.data,A0I,11,va);if(!G)throw new Jr("Unexpectedly nonexistent GameFirstFrameReadyEvent");Y(_.zy(G,1))})};
_.H.onReady=function(Y){Gw(this.channel,2).register(4,function(G){G=_.fc(G.data,ibR,4,va);if(!G)throw new Jr("Unexpectedly nonexistent GameReadyEvent");Y(_.zy(G,1))})};
_.H.onLevelComplete=function(Y){Gw(this.channel,2).register(5,function(G){G=_.fc(G.data,RHU,5,va);if(!G)throw new Jr("Unexpectedly nonexistent LevelCompleteEvent");Y(_.zy(G,1),_.Sh(G,2))})};
_.H.onGameOver=function(Y){Gw(this.channel,2).register(6,function(G){G=_.fc(G.data,o64,6,va);if(!G)throw new Jr("Unexpectedly nonexistent GameOverEvent");Y(_.zy(G,1))})};
_.H.pause=function(){var Y=this;if(!this.channel.isInitialised)return Gw(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Jr("Using unregistered Game Feature: pause.");var G=y0e();return new Promise(function(u){return _.a(function(O){if(O.nextAddress==1)return O.yield(ML2(Y.channel,G),2);u();_.Sd(O)})})};
_.H.resume=function(){var Y=this;if(!this.channel.isInitialised)return Gw(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Jr("Using unregistered Game Feature: resume.");var G=eHe();return new Promise(function(u){return _.a(function(O){if(O.nextAddress==1)return O.yield(ML2(Y.channel,G),2);u();_.Sd(O)})})};var tL_=function(Y){this.channel=Y};
tL_.prototype.onReady=function(Y){Gw(this.channel,5).register(8,function(G){if(!_.fc(G.data,w8X,8,va))throw new Jr("Unexpectedly nonexistent PageReadyEvent");Y()})};var KSV=function(Y){this.channel=Y};
KSV.prototype.onChange=function(Y){Gw(this.channel,3).register(7,function(G){G=_.fc(G.data,Zbe,7,va);if(!G)throw new Jr("Unexpectedly nonexistent ScoreEvent");Y(_.zy(G,1),_.Sh(G,2))})};var aGV={load:function(){throw new Jr("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Jr("Storage used, but storage.onSave() listener not set!");}},TgU=function(Y){this.channel=Y;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},LSV=function(Y){Gw(Y.channel,4).register(2,aGV.load).register(3,aGV.save);
Y.initialSetupDone=!0};
TgU.prototype.onLoad=function(Y){this.initialSetupDone||LSV(this);this.loadRegistered||(this.loadRegistered=!0,Gw(this.channel,4).register(2,function(G){var u,O,Q;return _.a(function(M){if(M.nextAddress==1){u=_.fc(G.data,DKI,2,va);if(!u)throw new Jr("Unexpectedly nonexistent StorageLoad");O=_.zy(u,1);return M.yield(Y(O),2)}Q=M.yieldResult;var t=G.reply,K=new is;var L=new xKV;L=_.E_(L,1,O);L=_.Hj(L,2,_.RX(Q,!1));K=_.wT(K,3,Zq,L);t.call(G,K);_.Sd(M)})}))};
TgU.prototype.onSave=function(Y){this.initialSetupDone||LSV(this);this.saveRegistered||(this.saveRegistered=!0,Gw(this.channel,4).register(3,function(G){var u,O,Q;return _.a(function(M){if(M.nextAddress==1){u=_.fc(G.data,hHE,3,va);if(!u)throw new Jr("Unexpectedly nonexistent StorageSave");O=_.zy(u,1);Q=JBT(u.getData());return M.yield(Y(O,Q),2)}var t=G.reply,K=new is;var L=new fxe;L=_.E_(L,1,O);K=_.wT(K,4,Zq,L);t.call(G,K);_.Sd(M)})}))};var gxT=function(Y){this.channel=Y};
gxT.prototype.update=function(Y){if(!this.channel.features.has(6))throw new Jr("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var G=new is,u=new C3R;Y=_.Rh(u,1,Y);G=_.wT(G,6,Zq,Y);this.channel.send(G)};
gxT.prototype.register=function(){Gw(this.channel,6)};var XI1=function(Y){this.channel=Y;this.userActivityLoggingIntervalMs=0};
XI1.prototype.onUserActivity=function(Y,G){this.userActivityLoggingIntervalMs=G;Gw(this.channel,7).register(9,function(u){if(!_.fc(u.data,dK2,9,va))throw new Jr("Unexpectedly nonexistent ClickEvent");Y()})};var P74=function(Y){var G=this;this.channel=Y;this.init=this.channel.init.bind(this.channel);this.page=new tL_(this.channel);this.game=new ExU(this.channel);this.audio=new HOR(this.channel);this.score=new KSV(this.channel);this.storage=new TgU(this.channel);this.style=new gxT(this.channel);this.userActivity=new XI1(this.channel);QBR(this.channel,function(u){var O=new X8a;u=_.Rh(O,1,u);u=_.Cc(u,3,G.userActivity.userActivityLoggingIntervalMs);O=G.audio.isAudioEnabled();O!==void 0&&_.BF(u,2,O);O=new is;
return _.wT(O,5,Zq,u)})};var IG4=function(){this.timedFunctionContext=0};
IG4.prototype.timeExecution=function(Y,G){var u=this;return function(){var O=_.vs.apply(0,arguments);u.timedFunctionContext=Y;return G.apply(null,_.c8(O))}};var kdR=function(){var Y={};this.priorityTasks=(Y[3]=[],Y[2]=[],Y[1]=[],Y);this.isFlushing=!1},dg=function(Y,G,u){var O=nxM(Y,u);
Y.priorityTasks[u].push(G);O&&Y.priorityTasks[u].length===1&&Y.flush()},nxM=function(Y,G){return Object.keys(Y.priorityTasks).map(function(u){return Number(u)}).filter(function(u){return!isNaN(u)&&u>G}).every(function(u){return Y.priorityTasks[u].length===0})};
kdR.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(Y){return Y.length>0});)FSk(this,3),FSk(this,2),FSk(this,1)}catch(Y){throw Object.values(this.priorityTasks).forEach(function(G){return void G.splice(0,G.length)}),Y;
}finally{this.isFlushing=!1}}};
var FSk=function(Y,G){for(;nxM(Y,G)&&Y.priorityTasks[G].length>0;)Y.priorityTasks[G][0](),Y.priorityTasks[G].shift()};
_.Uk.Object.defineProperties(kdR.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(Y){return Y.length>0})}}});var zHY={};var pIk=globalThis.trustedTypes,Ixa=pIk,n6t;var hz=function(Y){this.privateDoNotAccessOrElseWrappedResourceUrl=Y};
hz.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var zoR,mI2,WSX,rD1,xI1,fGE,C7l,yDT;zoR=_.hV([""]);mI2=DK(["\x00"],["\\0"]);WSX=DK(["\n"],["\\n"]);rD1=DK(["\x00"],["\\u0000"]);xI1=_.hV([""]);fGE=DK(["\x00"],["\\0"]);C7l=DK(["\n"],["\\n"]);yDT=DK(["\x00"],["\\u0000"]);_.eoV=p8I(function(Y){return Y(zoR)})||p8I(function(Y){return Y(mI2)})||p8I(function(Y){return Y(WSX)})||p8I(function(Y){return Y(rD1)});
_.ADX=_.Sp(xI1)&&_.Sp(fGE)&&_.Sp(C7l)&&_.Sp(yDT);var sT;_.jp=function(Y,G){this.privateDoNotAccessOrElseWrappedUrl=G};
_.jp.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.oxe=VG("about:blank");sT=VG("about:invalid#zClosurez");var mKA=function(Y){this.isValid=Y},iOV=new mKA(function(Y){return/^[^:]*([/?#]|$)/.test(Y)}),RoE=$O("data"),wIV=$O("http"),ZOV=$O("https"),DIV=$O("ftp"),ho2=$O("mailto"),dI_=$O("intent"),bOX=$O("vnd.youtube"),W0t=[RoE,
wIV,ZOV,ho2,DIV,iOV],xKt=Dq(function(){return typeof URL==="function"}),Ss1=["data:",
"http:","https:","mailto:","ftp:"],C3A=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Go=function(Y){this.privateDoNotAccessOrElseWrappedHtml=Y};
Go.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var LTg=Dq(function(){return new Go(pIk?pIk.emptyHTML:"")});var Ng4={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"},eHt=function(Y,G){var u=Error.call(this,Y+" cannot be used with intent "+Ng4[G]);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.type=Y;this.intent=G;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.m(eHt,Error);_.To=function(Y){this.privateDoNotAccessOrElseWrappedScript=Y};
_.To.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var o6I=function(Y){this.privateDoNotAccessOrElseWrappedAttributePrefix=Y};
o6I.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var ibT="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var FH=function(Y){this.privateDoNotAccessOrElseWrappedStyleSheet=Y};
FH.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var pEU=function(Y){var G=_.So("window.location.href");Y==null&&(Y='Unknown Error of type "null/undefined"');if(typeof Y==="string")return{message:Y,name:"Unknown error",lineNumber:"Not available",fileName:G,stack:"Not available"};var u=!1;try{var O=Y.lineNumber||Y.line||"Not available"}catch(t){O="Not available",u=!0}try{var Q=Y.fileName||Y.filename||Y.sourceURL||_.OI.$googDebugFname||G}catch(t){Q="Not available",u=!0}G=jBU(Y);if(!(!u&&Y.lineNumber&&Y.fileName&&Y.stack&&Y.message&&Y.name)){u=Y.message;
if(u==null){if(Y.constructor&&Y.constructor instanceof Function){if(Y.constructor.name)u=Y.constructor.name;else if(u=Y.constructor,uT[u])u=uT[u];else{u=String(u);if(!uT[u]){var M=/function\s+([^\(]+)/m.exec(u);uT[u]=M?M[1]:"[Anonymous]"}u=uT[u]}u='Unknown Error of type "'+u+'"'}else u="Unknown Error of unknown type";typeof Y.toString==="function"&&Object.prototype.toString!==Y.toString&&(u+=": "+Y.toString())}return{message:u,name:Y.name||"UnknownError",lineNumber:O,fileName:Q,stack:G||"Not available"}}return{message:Y.message,
name:Y.name,lineNumber:Y.lineNumber,fileName:Y.fileName,stack:G}},jBU=function(Y,G){G||(G={});
G[VLl(Y)]=!0;var u=Y.stack||"",O=Y.cause;O&&!G[VLl(O)]&&(u+="\nCaused by: ",O.stack&&O.stack.indexOf(O.toString())==0||(u+=typeof O==="string"?O:O.message+"\n"),u+=jBU(O,G));Y=Y.errors;if(Array.isArray(Y)){O=1;var Q;for(Q=0;Q<Y.length&&!(O>4);Q++)G[VLl(Y[Q])]||(u+="\nInner error "+O++ +": ",Y[Q].stack&&Y[Q].stack.indexOf(Y[Q].toString())==0||(u+=typeof Y[Q]==="string"?Y[Q]:Y[Q].message+"\n"),u+=jBU(Y[Q],G));Q<Y.length&&(u+="\n... "+(Y.length-Q)+" more inner errors")}return u},VLl=function(Y){var G=
"";
typeof Y.toString==="function"&&(G=""+Y);return G+Y.stack},uT={};var PB4,cI,cx,lG4,BgR,qsR,dU,CX,cD4;PB4=function(Y,G){for(var u=Y.split("%s"),O="",Q=Array.prototype.slice.call(arguments,1);Q.length&&u.length>1;)O+=u.shift()+Q.shift();return O+u.join("%s")};
_.Us=function(Y){return encodeURIComponent(String(Y))};
cI=function(Y){return decodeURIComponent(Y.replace(/\+/g," "))};
cx=function(Y){INE.test(Y)&&(Y.indexOf("&")!=-1&&(Y=Y.replace(aN1,"&amp;")),Y.indexOf("<")!=-1&&(Y=Y.replace(TbM,"&lt;")),Y.indexOf(">")!=-1&&(Y=Y.replace(LyU,"&gt;")),Y.indexOf('"')!=-1&&(Y=Y.replace(gVe,"&quot;")),Y.indexOf("'")!=-1&&(Y=Y.replace(Xbe,"&#39;")),Y.indexOf("\x00")!=-1&&(Y=Y.replace(PNR,"&#0;")));return Y};
_.$Il=function(Y){return _.gA(Y,"&")?"document"in _.OI?lG4(Y):BgR(Y):Y};
lG4=function(Y){var G={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var u=_.OI.document.createElement("div");return Y.replace(qsR,function(O,Q){var M=G[O];if(M)return M;Q.charAt(0)=="#"&&(Q=Number("0"+Q.slice(1)),isNaN(Q)||(M=String.fromCharCode(Q)));M||(_.IA(u,Or(O+" ")),M=u.firstChild.nodeValue.slice(0,-1));return G[O]=M})};
BgR=function(Y){return Y.replace(/&([^;]+);/g,function(G,u){switch(u){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return u.charAt(0)!="#"||(u=Number("0"+u.slice(1)),isNaN(u))?G:String.fromCharCode(u)}})};
qsR=/&([^;\s<&]+);?/g;_.ygI=function(Y){return String(Y).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.sB_=String.prototype.repeat?function(Y,G){return Y.repeat(G)}:function(Y,G){return Array(G+1).join(Y)};
_.OS=function(Y,G){if(!Number.isFinite(Y))return String(Y);Y=String(Y);var u=Y.indexOf(".");u===-1&&(u=Y.length);var O=Y[0]==="-"?"-":"";O&&(Y=Y.substring(1));return O+(0,_.sB_)("0",Math.max(0,G-u))+Y};
dU=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.$M()).toString(36)};
CX=function(Y){for(var G=0,u=0;u<Y.length;++u)G=31*G+Y.charCodeAt(u)>>>0;return G};
_.OK=function(Y){return String(Y).replace(/\-([a-z])/g,function(G,u){return u.toUpperCase()})};
_.uc=function(Y){return String(Y).replace(/([A-Z])/g,"-$1").toLowerCase()};
cD4=function(Y){return Y.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(G,u,O){return u+O.toUpperCase()})};var UI1=function(){this.names=new Map};
UI1.prototype.getName=function(Y){var G=this.names.get(Y);if(G)return G;var u;G=(u=Y.description)!=null?u:dU();this.names.set(Y,G);return G};var vx_=function(Y){var G=Error.call(this,Y?Y.length+" errors occurred during unsubscription:\n"+Y.map(function(u,O){return O+1+") "+u.toString()}).join("\n  "):"");
this.message=G.message;"stack"in G&&(this.stack=G.stack);this.errors=Y;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.m(vx_,Error);var m0=function(Y){this.initialTeardown=Y;this.closed=!1;this._teardowns=this._parentage=null};
_.H=m0.prototype;
_.H.unsubscribe=function(){if(!this.closed){this.closed=!0;var Y=this._parentage;if(Array.isArray(Y))for(var G=_.E(Y),u=G.next();!u.done;u=G.next())u.value.remove(this);else Y==null||Y.remove(this);G=this.initialTeardown;if(pb(G))try{G()}catch(M){var O=M instanceof vx_?M.errors:[M]}var Q=this._teardowns;if(Q)for(this._teardowns=null,G=_.E(Q),u=G.next();!u.done;u=G.next()){u=u.value;try{pb(u)?u():u.unsubscribe()}catch(M){u=void 0,O=(u=O)!=null?u:[],M instanceof vx_?O=[].concat(_.c8(O),_.c8(M.errors)):
O.push(M)}}if(O)throw new vx_(O);}};
_.H.add=function(Y){if(Y&&Y!==this)if(this.closed)pb(Y)?Y():Y.unsubscribe();else{if(Y instanceof m0){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}var G;(this._teardowns=(G=this._teardowns)!=null?G:[]).push(Y)}};
_.H._hasParent=function(Y){var G=this._parentage;return G===Y||Array.isArray(G)&&G.includes(Y)};
_.H._addParent=function(Y){var G=this._parentage;this._parentage=Array.isArray(G)?(G.push(Y),G):G?[G,Y]:Y};
_.H._removeParent=function(Y){var G=this._parentage;G===Y?this._parentage=null:Array.isArray(G)&&hH4(G,Y)};
_.H.remove=function(Y){var G=this._teardowns;G&&hH4(G,Y);Y instanceof m0&&Y._removeParent(this)};
var JDR=new m0;JDR.closed=!0;m0.JSC$9390_EMPTY=JDR;var bbu=function(){setTimeout.apply(null,_.c8(_.vs.apply(0,arguments)))};var QV=function(Y){m0.call(this);this.JSC$9395_isStopped=!1;this.destination=Y instanceof QV?Y:new M1(!Y||pb(Y)?{next:Y!=null?Y:void 0}:Y);dKg(Y)&&Y.add(this)};
_.m(QV,m0);QV.JSC$9390_EMPTY=m0.JSC$9390_EMPTY;QV.create=function(Y,G,u){return new HG(Y,G,u)};
_.H=QV.prototype;_.H.next=function(Y){this.JSC$9395_isStopped||this._next(Y)};
_.H.error=function(Y){this.JSC$9395_isStopped||(this.JSC$9395_isStopped=!0,this._error(Y))};
_.H.complete=function(){this.JSC$9395_isStopped||(this.JSC$9395_isStopped=!0,this._complete())};
_.H.unsubscribe=function(){this.closed||(this.JSC$9395_isStopped=!0,m0.prototype.unsubscribe.call(this))};
_.H._next=function(Y){this.destination.next(Y)};
_.H._error=function(Y){this.destination.error(Y);this.unsubscribe()};
_.H._complete=function(){this.destination.complete();this.unsubscribe()};
var M1=function(Y){this.partialObserver=Y};
M1.prototype.next=function(Y){var G=this.partialObserver;if(G.next)try{G.next(Y)}catch(u){rt(u)}};
M1.prototype.error=function(Y){var G=this.partialObserver;if(G.error)try{G.error(Y)}catch(u){rt(u)}else rt(Y)};
M1.prototype.complete=function(){var Y=this.partialObserver;if(Y.complete)try{Y.complete()}catch(G){rt(G)}};
var HG=function(Y,G,u){QV.call(this);var O;pb(Y)||!Y?O={next:Y!=null?Y:void 0,error:G!=null?G:void 0,complete:u!=null?u:void 0}:O=Y;this.destination=new M1(O)};
_.m(HG,QV);HG.JSC$9390_EMPTY=QV.JSC$9390_EMPTY;HG.create=QV.create;var ed=typeof Symbol==="function"&&Symbol.observable||"@@observable";var yK=function(Y){Y&&(this._subscribe=Y)};
_.H=yK.prototype;_.H.lift=function(Y){var G=new yK;G.source=this;G.operator=Y;return G};
_.H.subscribe=function(Y,G,u){Y=Y&&Y instanceof QV||Y&&pb(Y.next)&&pb(Y.error)&&pb(Y.complete)&&dKg(Y)?Y:new HG(Y,G,u);G=this.operator;u=this.source;Y.add(G?G.call(Y,u):u?this._subscribe(Y):this._trySubscribe(Y));return Y};
_.H._trySubscribe=function(Y){try{return this._subscribe(Y)}catch(G){Y.error(G)}};
_.H.forEach=function(Y,G){var u=this;G=NtA(G);return new G(function(O,Q){var M=u.subscribe(function(t){try{Y(t)}catch(K){Q(K),M==null||M.unsubscribe()}},Q,O)})};
_.H._subscribe=function(Y){var G;return(G=this.source)==null?void 0:G.subscribe(Y)};
yK.prototype[ed]=function(){return this};
yK.prototype.pipe=function(){var Y=_.vs.apply(0,arguments);return Y.length?Sr4(Y)(this):this};
yK.create=function(Y){return new yK(Y)};var Y_R=function(){var Y=Error.call(this,"object unsubscribed");this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.m(Y_R,Error);var ZG=function(){this.observers=[];this.hasError=this.JSC$9411_isStopped=this.closed=!1;this.thrownError=null};
_.m(ZG,yK);_.H=ZG.prototype;_.H.lift=function(Y){var G=new ES(this,this);G.operator=Y;return G};
_.H._throwIfClosed=function(){if(this.closed)throw new Y_R;};
_.H.next=function(Y){this._throwIfClosed();if(!this.JSC$9411_isStopped){var G=this.observers.slice();G=_.E(G);for(var u=G.next();!u.done;u=G.next())u.value.next(Y)}};
_.H.error=function(Y){this._throwIfClosed();if(!this.JSC$9411_isStopped){this.hasError=this.JSC$9411_isStopped=!0;this.thrownError=Y;for(var G=this.observers;G.length;)G.shift().error(Y)}};
_.H.complete=function(){this._throwIfClosed();if(!this.JSC$9411_isStopped){this.JSC$9411_isStopped=!0;for(var Y=this.observers;Y.length;)Y.shift().complete()}};
_.H.unsubscribe=function(){this.JSC$9411_isStopped=this.closed=!0;this.observers=null};
_.H._trySubscribe=function(Y){this._throwIfClosed();return yK.prototype._trySubscribe.call(this,Y)};
_.H._subscribe=function(Y){this._throwIfClosed();this._checkFinalizedStatuses(Y);return this._innerSubscribe(Y)};
_.H._innerSubscribe=function(Y){var G=this,u=this.JSC$9411_isStopped,O=this.observers;return this.hasError||u?m0.JSC$9390_EMPTY:(O.push(Y),new m0(function(){return hH4(G.observers,Y)}))};
_.H._checkFinalizedStatuses=function(Y){var G=this.thrownError,u=this.JSC$9411_isStopped;this.hasError?Y.error(G):u&&Y.complete()};
var HeT=function(Y){var G=new yK;G.source=Y;return G};
ZG.create=function(Y,G){return new ES(Y,G)};
var ES=function(Y,G){ZG.call(this);this.destination=Y;this.source=G};
_.m(ES,ZG);ES.create=ZG.create;ES.prototype.next=function(Y){var G,u;(G=this.destination)==null||(u=G.next)==null||u.call(G,Y)};
ES.prototype.error=function(Y){var G,u;(G=this.destination)==null||(u=G.error)==null||u.call(G,Y)};
ES.prototype.complete=function(){var Y,G;(Y=this.destination)==null||(G=Y.complete)==null||G.call(Y)};
ES.prototype._subscribe=function(Y){var G,u;return(u=(G=this.source)==null?void 0:G.subscribe(Y))!=null?u:m0.JSC$9390_EMPTY};var rX=function(Y){ZG.call(this);this._value=Y};
_.m(rX,ZG);rX.create=ZG.create;rX.prototype._subscribe=function(Y){var G=ZG.prototype._subscribe.call(this,Y);!G.closed&&Y.next(this._value);return G};
rX.prototype.getValue=function(){var Y=this.thrownError,G=this._value;if(this.hasError)throw Y;this._throwIfClosed();return G};
rX.prototype.next=function(Y){ZG.prototype.next.call(this,this._value=Y)};
_.Uk.Object.defineProperties(rX.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Os=new yK(function(Y){return Y.complete()});var Btj=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var UKy=function(Y){return Y&&typeof Y.length==="number"&&typeof Y!=="function"};var GhM={now:function(){return(GhM.delegate||Date).now()},
delegate:void 0};var kx=function(Y,G,u){Y=Y===void 0?Infinity:Y;G=G===void 0?Infinity:G;u=u===void 0?GhM:u;ZG.call(this);this.bufferSize=Y;this.windowTime=G;this.timestampProvider=u;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=G===Infinity;this.bufferSize=Math.max(1,Y);this.windowTime=Math.max(1,G)};
_.m(kx,ZG);kx.create=ZG.create;kx.prototype.next=function(Y){var G=this.buffer,u=this.infiniteTimeWindow,O=this.timestampProvider,Q=this.windowTime;this.JSC$9411_isStopped||(G.push(Y),!u&&G.push(O.now()+Q));uiI(this);ZG.prototype.next.call(this,Y)};
kx.prototype._subscribe=function(Y){this._throwIfClosed();uiI(this);for(var G=this._innerSubscribe(Y),u=this.infiniteTimeWindow,O=this.buffer.slice(),Q=0;Q<O.length&&!Y.closed;Q+=u?1:2)Y.next(O[Q]);this._checkFinalizedStatuses(Y);return G};
var uiI=function(Y){var G=Y.bufferSize,u=Y.timestampProvider,O=Y.buffer;Y=Y.infiniteTimeWindow;var Q=(Y?1:2)*G;G<Infinity&&Q<O.length&&O.splice(0,O.length-Q);if(!Y){G=u.now();u=0;for(Y=1;Y<O.length&&O[Y]<=G;Y+=2)u=Y;u&&O.splice(0,u+1)}};var QyR=function(Y,G){G=G===void 0?Omk:G;this.schedulerActionCtor=Y;this.now=G};
QyR.prototype.schedule=function(Y,G,u){G=G===void 0?0:G;return(new this.schedulerActionCtor(this,Y)).schedule(u,G)};
var Omk=GhM.now;var jBY=function(){var Y=Error.call(this,"no elements in sequence");this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.m(jBY,Error);var $6=function(Y,G,u,O,Q){QV.call(this,Y);this.onUnsubscribe=Q;G&&(this._next=function(M){try{G(M)}catch(t){this.destination.error(t)}});
u&&(this._error=function(M){try{u(M)}catch(t){this.destination.error(t)}this.unsubscribe()});
O&&(this._complete=function(){try{O()}catch(M){this.destination.error(M)}this.unsubscribe()})};
_.m($6,QV);$6.JSC$9390_EMPTY=QV.JSC$9390_EMPTY;$6.create=QV.create;$6.prototype.unsubscribe=function(){var Y;this.closed||(Y=this.onUnsubscribe)!=null&&Y.call(this);QV.prototype.unsubscribe.call(this)};var PI=function(Y,G){this.source=Y;this.subjectFactory=G;this._subject=null;this._refCount=0;this._connection=null};
_.m(PI,yK);PI.create=yK.create;PI.prototype._subscribe=function(Y){return MhX(this).subscribe(Y)};
var MhX=function(Y){var G=Y._subject;if(!G||G.JSC$9411_isStopped)Y._subject=Y.subjectFactory();return Y._subject};
PI.prototype._teardown=function(){this._refCount=0;var Y=this._connection;this._subject=this._connection=null;Y==null||Y.unsubscribe()};
PI.prototype.connect=function(){var Y=this,G=this._connection;if(!G){G=this._connection=new m0;var u=MhX(this);G.add(this.source.subscribe(new $6(u,void 0,function(O){Y._teardown();u.error(O)},function(){Y._teardown();
u.complete()},function(){return Y._teardown()})));
G.closed&&(this._connection=null,G=m0.JSC$9390_EMPTY)}return G};var KSt=Array.isArray;var TgY=Array.isArray,HmE=Object,LSt=HmE.getPrototypeOf,gx1=HmE.prototype,XIu=HmE.keys;var Yx=function(Y,G,u){QV.call(this,Y);this._next=G;this.shouldComplete=u};
_.m(Yx,QV);Yx.JSC$9390_EMPTY=QV.JSC$9390_EMPTY;Yx.create=QV.create;Yx.prototype._complete=function(){this.shouldComplete()?QV.prototype._complete.call(this):this.unsubscribe()};var WSU=["addListener","removeListener"],mIg=["addEventListener","removeEventListener"],xIu=["on","off"];var tm=function(){m0.call(this)};
_.m(tm,m0);tm.JSC$9390_EMPTY=m0.JSC$9390_EMPTY;tm.prototype.schedule=function(){return this};var EI4=function(Y,G){return setInterval.apply(null,[Y,G].concat(_.c8(_.vs.apply(2,arguments))))};var Ku=function(Y,G){m0.call(this);this.scheduler=Y;this.work=G;this.pending=!1};
_.m(Ku,tm);Ku.JSC$9390_EMPTY=tm.JSC$9390_EMPTY;Ku.prototype.schedule=function(Y,G){G=G===void 0?0:G;if(this.closed)return this;this.state=Y;Y=this.id;var u=this.scheduler;Y!=null&&(this.id=thl(this,Y,G));this.pending=!0;this.delay=G;this.id=this.id||this.requestAsyncId(u,this.id,G);return this};
Ku.prototype.requestAsyncId=function(Y,G,u){u=u===void 0?0:u;return EI4(Y.flush.bind(Y,this),u)};
var thl=function(Y,G,u){u=u===void 0?0:u;if(u!=null&&Y.delay===u&&Y.pending===!1)return G;clearInterval(G)};
Ku.prototype.execute=function(Y,G){if(this.closed)return Error("ia");this.pending=!1;if(Y=this._execute(Y,G))return Y;this.pending===!1&&this.id!=null&&(this.id=thl(this,this.id,null))};
Ku.prototype._execute=function(Y){var G=!1;try{this.work(Y)}catch(O){G=!0;var u=!!O&&O||Error(O)}if(G)return this.unsubscribe(),u};
Ku.prototype.unsubscribe=function(){if(!this.closed){var Y=this.id,G=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;hH4(G,this);Y!=null&&(this.id=thl(this,Y,null));this.delay=null;tm.prototype.unsubscribe.call(this)}};var Khk=function(Y,G){G=G===void 0?Omk:G;QyR.call(this,Y,G);this.actions=[];this.active=!1;this.scheduled=void 0};
_.m(Khk,QyR);Khk.prototype.flush=function(Y){var G=this.actions;if(this.active)G.push(Y);else{var u;this.active=!0;do if(u=Y.execute(Y.state,Y.delay))break;while(Y=G.shift());this.active=!1;if(u){for(;Y=G.shift();)Y.unsubscribe();throw u;}}};var ay=new yK(W8);var fG4=Array.isArray;var a9=function(Y,G){Ku.call(this,Y,G);this.scheduler=Y;this.work=G};
_.m(a9,Ku);a9.JSC$9390_EMPTY=Ku.JSC$9390_EMPTY;a9.prototype.schedule=function(Y,G){G=G===void 0?0:G;if(G>0)return Ku.prototype.schedule.call(this,Y,G);this.delay=G;this.state=Y;this.scheduler.flush(this);return this};
a9.prototype.execute=function(Y,G){return G>0||this.closed?Ku.prototype.execute.call(this,Y,G):this._execute(Y,G)};
a9.prototype.requestAsyncId=function(Y,G,u){u=u===void 0?0:u;return u!=null&&u>0||u==null&&this.delay>0?Ku.prototype.requestAsyncId.call(this,Y,G,u):Y.flush(this)};var aMR=function(){Khk.apply(this,arguments)};
_.m(aMR,Khk);var ExY=new aMR(a9);var TXl=function(){this.performanceMonitor=new IG4;this.queue=new kdR;this.internalSymbol=Symbol();this.debugNames=new UI1};
TXl.prototype.getOnBackgrounded=function(){return ay};
_.Uk.Object.defineProperties(TXl.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Tw=function(Y,G){G=Error.call(this,G?Y+": "+G:String(Y));this.message=G.message;"stack"in G&&(this.stack=G.stack);this.code=Y;this.__proto__=Tw.prototype;this.name=String(Y)};
_.m(Tw,Error);var Th=function(Y){Tw.call(this,1E3,'sfr:"'+Y+'"');this.measurementStrategyFailureReason=Y;this.__proto__=Th.prototype};
_.m(Th,Tw);var Lm=function(){Tw.call(this,1003);this.__proto__=Lm.prototype};
_.m(Lm,Tw);var Lu=function(){Tw.call(this,1009);this.__proto__=Lu.prototype};
_.m(Lu,Tw);var LhT=function(){Tw.call(this,1011);this.__proto__=LhT.prototype};
_.m(LhT,Tw);var gIk=function(){Tw.call(this,1007);this.__proto__=Lm.prototype};
_.m(gIk,Tw);var tX=function(Y){Tw.call(this,1004,String(Y));this.inputObservableIndex=Y;this.__proto__=tX.prototype};
_.m(tX,Tw);var f4a=function(Y){Tw.call(this,1010,Y);this.__proto__=CIu.prototype};
_.m(f4a,Tw);var CIu=function(Y){Tw.call(this,1005,Y);this.__proto__=CIu.prototype};
_.m(CIu,Tw);var XFT=function(Y){var G=_.vs.apply(1,arguments),u=this;this.orderedFactories=[];this.orderedFactories.push(Y);G.forEach(function(O){u.orderedFactories.push(O)})};
XFT.prototype.isSupported=function(Y){return this.orderedFactories.some(function(G){return G.isSupported(Y)})};
XFT.prototype.makeBeacon=function(Y,G){for(var u=0;u<this.orderedFactories.length;u++)if(this.orderedFactories[u].isSupported(G))return this.orderedFactories[u].makeBeacon(Y,G);throw new Lu;};var PFt=Symbol("ja"),Pd1=Symbol("ka"),Es=function(Y,G){this.value=Y;this.timeline=G},HI=function(Y,G){if(G.timeline!==Y.timeline)throw new gIk;
return Y.value-G.value};
_.H=Es.prototype;_.H.equals=function(Y){return HI(this,Y)===0};
_.H.maximum=function(Y){if(Y.timeline!==this.timeline)throw new gIk;return this.value>=Y.value?this:Y};
_.H.round=function(){return new Es(Math.round(this.value),this.timeline)};
_.H.add=function(Y){return new Es(this.value+Y,this.timeline)};
_.H.toString=function(){return String(this.value)};var g0=function(Y,G){this.context=Y;this.JSC$9517_pinger=G};
g0.prototype.isSupported=function(Y){return this.JSC$9517_pinger.isSupported(Y)};
g0.prototype.makeBeacon=function(Y,G){if(!this.isSupported(G))throw new Lu;return new X8(this.context,this.JSC$9517_pinger,G!=null?G:void 0,Y)};
var X8=function(Y,G,u,O){var Q=this;this.JSC$9523_pinger=G;this.properties=u;this.url=O;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var M;this.method=(M=u==null?void 0:u.beaconMethod)!=null?M:"GET";this.backgroundedSubscription=Y.getOnBackgrounded().subscribe(function(){Q.sendNow()})};
X8.prototype.deactivate=function(){this.internalIsPending=!1};
X8.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9523_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var Y,G;this.JSC$9523_pinger.pingWithHeadersAndBody((Y=this.properties)!=null?Y:{},this.customHeaders,(G=this.body)!=null?G:"",this.url)}else this.JSC$9523_pinger.ping(this.url);this.internalIsPending=!1}catch(u){}else this.internalIsPending=!1};
X8.prototype.setHeader=function(Y,G){this.customHeaders.set(Y,G)};
_.Uk.Object.defineProperties(X8.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var khE=function(){for(var Y=_.E(_.vs.apply(0,arguments)),G=Y.next();!G.done;G=Y.next())if(G=G.value,G.available()){this.timeProvider=G;return}this.timeProvider=new IMk};
_.H=khE.prototype;_.H.available=function(){return this.timeProvider.available()};
_.H.now=function(){return this.timeProvider.now()};
_.H.setTimeout=function(Y,G){return this.timeProvider.setTimeout(Y,G)};
_.H.clearTimeout=function(Y){this.timeProvider.clearTimeout(Y)};
_.H.interval=function(Y,G){var u=this.intervalObservable(Y).subscribe(G);return function(){return void u.unsubscribe()}};
_.H.intervalObservable=function(Y){return this.timeProvider.intervalObservable(Y)};
_.Uk.Object.defineProperties(khE.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var IMk=function(){this.timeline=Symbol()};
_.H=IMk.prototype;_.H.available=function(){return!1};
_.H.now=function(){return new Es(0,this.timeline)};
_.H.setTimeout=function(){return 0};
_.H.clearTimeout=function(){};
_.H.interval=function(){return function(){}};
_.H.intervalObservable=function(){return ay};var PG=function(Y,G){this.intrinsicFunctionNamespace=Y;this.performanceMonitor=G};
_.H=PG.prototype;_.H.setTimeout=function(Y,G){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,Y),G)};
_.H.clearTimeout=function(Y){this.intrinsicFunctionNamespace.clearTimeout(Y)};
_.H.interval=function(Y,G){var u=this.intervalObservable(Y).subscribe(G);return function(){return void u.unsubscribe()}};
_.H.intervalObservable=function(Y){var G=this;return new yK(function(u){var O=0,Q=G.intrinsicFunctionNamespace.setInterval(function(){u.next(O++)},Y);
return function(){G.intrinsicFunctionNamespace.clearInterval(Q)}})};
_.H.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var nIR=function(Y,G){PG.call(this,Y,G);this.timeline=Pd1};
_.m(nIR,PG);nIR.prototype.now=function(){return new Es(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
nIR.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&PG.prototype.available.call(this)};var FhM=function(Y,G){PG.call(this,Y,G);this.timeline=PFt};
_.m(FhM,PG);FhM.prototype.now=function(){return new Es(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
FhM.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&PG.prototype.available.call(this)};var zBT=function(Y){this.context=Y;if(pFU===void 0)a:{var G,u,O=(G=Y.global)==null?void 0:(u=G.document)==null?void 0:u.createElement("meta");if(O)try{O.httpEquiv="origin-trial";O.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";Y.global.document.head.append(O);pFU=O;break a}catch(Q){}pFU=void 0}},
pFU;
zBT.prototype.isSupported=function(Y){return DIt(this.context)!==void 0&&!(Y==null||!Y.endOfSession)&&!I9(this.context)&&!(Y==null?0:Y.attributionEnabled)&&!(Y==null?0:Y.customHeaders)&&!(Y==null?0:Y.customBody)};
zBT.prototype.makeBeacon=function(Y,G){if(!this.isSupported(G))throw new Lu;return new kS(this.context,Y,G)};
var kS=function(Y,G,u){this.context=Y;this.properties=u;this.JSC$9550_urlWithoutToken=G;var O;this.beaconMethod=(O=u==null?void 0:u.beaconMethod)!=null?O:"GET";Y=DIt(this.context);if(Y===void 0)throw Error();this.fetchLater=Y;mU4(this,Wh1(this))},mU4=function(Y,G){Y.beaconResult&&Y.beaconResult.activated||(Y.beaconAbort=new AbortController,Y.beaconResult=Y.fetchLater(G,{method:Y.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:Y.beaconAbort.signal,activateAfter:96E4}))},Wh1=function(Y){Y=Y.JSC$9550_urlWithoutToken;
return(Y.slice(-1)[0]==="&"?Y:Y+"&")+"flapi=1"};
kS.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
kS.prototype.sendNow=function(){};
kS.prototype.setHeader=function(){};
_.Uk.Object.defineProperties(kS.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9550_urlWithoutToken},
set:function(Y){this.JSC$9550_urlWithoutToken=Y;Y=Wh1(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);mU4(this,Y)}},
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 rXX=function(Y){this.context=Y};
rXX.prototype.isSupported=function(){return!I9(this.context)&&!!this.context.global.fetch};
rXX.prototype.ping=function(){var Y=this;return QW.apply(null,_.c8(_.vs.apply(0,arguments).map(function(G){return oA(Y.context.global.fetch(G,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(sr(function(u){return u.status===200}))}))).pipe(VLA(function(G){return G}),BgA())};
rXX.prototype.pingWithHeadersAndBody=function(Y,G,u){for(var O=_.vs.apply(3,arguments),Q=this,M=new Headers,t=_.E(G.entries()),K=t.next();!K.done;K=t.next()){var L=_.E(K.value);K=L.next().value;L=L.next().value;M.set(K,L)}var g,P=(g=Y.keepAlive)!=null?g:!1;QW.apply(null,_.c8(O.map(function(I){return oA(Q.context.global.fetch(I,Object.assign({},{method:String(Y.beaconMethod),cache:"no-cache"},P?{keepalive:!0}:{},{mode:"no-cors",headers:M,body:u}))).pipe(sr(function(k){return k.status===200}))}))).pipe(VLA(function(I){return I}),
BgA())};var xUI,JJt,fMV;_.nu=function(){};
_.Zt=function(Y){return Y};
xUI=function(Y){var G=G||0;return function(){return Y.apply(this,Array.prototype.slice.call(arguments,0,G))}};
_.F8=function(Y){var G=!1,u;return function(){G||(u=Y(),G=!0);return u}};
_.pu=function(Y,G){var u=0;return function(O){_.OI.clearTimeout(u);var Q=arguments;u=_.OI.setTimeout(function(){Y.apply(void 0,Q)},G)}};
JJt=function(Y,G){var u=0,O=!1,Q=[],M=function(){u=0;O&&(O=!1,t())},t=function(){u=_.OI.setTimeout(M,G);
var K=Q;Q=[];Y.apply(void 0,K)};
return function(K){Q=arguments;u?O=!0:t()}};
fMV=function(Y,G){var u=0,O=function(){u=0};
return function(Q){u||(u=_.OI.setTimeout(O,G),Y.apply(void 0,arguments))}};var zw=function(Y,G,u,O,Q){this.allowedElements=Y;this.elementPolicies=G;this.allowedGlobalAttributes=u;this.globalAttributePolicies=O;this.globallyAllowedAttributePrefixes=Q},CdI=function(Y,G,u){u=Y.elementPolicies.get(u);
return(u==null?0:u.has(G))?u.get(G):Y.allowedGlobalAttributes.has(G)?{policyAction:1}:(u=Y.globalAttributePolicies.get(G))?u:Y.globallyAllowedAttributePrefixes&&[].concat(_.c8(Y.globallyAllowedAttributePrefixes)).some(function(O){return G.indexOf(O)===0})?{policyAction:1}:{policyAction:0}};var yXl="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(" "),
eBT=[["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}]])]],AX_="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(" "),
oI_=[["dir",{policyAction:3,conditions:Dq(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Dq(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Dq(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Dq(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],imR=new zw(new Set(yXl),new Map(eBT),new Set(AX_),new Map(oI_)),RB2=new zw(new Set(yXl.concat(["BUTTON",
"INPUT"])),new Map(eBT),new Set(Dq(function(){return AX_.concat(["class","id","name"])})),new Map(Dq(function(){return oI_.concat([["style",
{policyAction:1}]])})));var mG=function(Y,G,u,O,Q){this.JSC$9607_sanitizerTable=Y;this.styleElementSanitizer=G;this.styleAttributeSanitizer=u;this.JSC$9607_resourceUrlPolicy=O;this.JSC$9607_navigationUrlPolicy=Q;this.changes=[]},Zme;
mG.prototype.sanitize=function(Y){var G=document.implementation.createHTMLDocument("");Y=wF1(this,Y,G);G=G.body;G.appendChild(Y);G=(new XMLSerializer).serializeToString(G);G=G.slice(G.indexOf(">")+1,G.lastIndexOf("</"));return Or(G)};
var wF1=function(Y,G,u){G=QyT(G,u);G=document.createTreeWalker(G,5,function(K){if(K.nodeType===3)K=1;else if(Hm4(K))if(K=MhU(K),K===null)K=2;else{var L=Y.JSC$9607_sanitizerTable;K=K!=="FORM"&&(L.allowedElements.has(K)||L.elementPolicies.has(K))?1:2}else K=2;return K});
for(var O=G.nextNode(),Q=u.createDocumentFragment(),M=Q;O!==null;){var t=void 0;if(O.nodeType===3)Y.styleElementSanitizer&&M.nodeName==="STYLE"?(O=Y.styleElementSanitizer(O.data),t=Y.createTextNode(O)):t=Y.createTextNode(O.data);else if(Hm4(O))t=Zme(Y,O,u);else throw Error("$");M.appendChild(t);if(O=G.firstChild())M=t;else for(;!(O=G.nextSibling())&&(O=G.parentNode());)M=M.parentNode}return Q};
mG.prototype.createTextNode=function(Y){return document.createTextNode(Y)};
Zme=function(Y,G,u){var O,Q=MhU(G);u=u.createElement(Q);G=G.attributes;for(var M=_.E(G),t=M.next();!t.done;t=M.next()){var K=t.value;t=K.name;K=K.value;var L=CdI(Y.JSC$9607_sanitizerTable,t,Q);a:{if(O=L.conditions){O=_.E(O);for(var g=O.next();!g.done;g=O.next()){var P=_.E(g.value);g=P.next().value;P=P.next().value;var I=void 0;if((g=(I=G.getNamedItem(g))==null?void 0:I.value)&&!P.has(g)){O=!1;break a}}}O=!0}if(O)switch(L.policyAction){case 1:xx(u,t,K);break;case 2:throw Error();case 3:xx(u,t,K.toLowerCase());
break;case 4:Y.styleAttributeSanitizer?(K=Y.styleAttributeSanitizer(K),xx(u,t,K)):xx(u,t,K);break;case 5:Y.JSC$9607_resourceUrlPolicy?(L={type:2,attributeName:t,elementName:Q},K=Oma(K),(K=Y.JSC$9607_resourceUrlPolicy(K,L))&&xx(u,t,K.toString())):xx(u,t,K);break;case 6:if(Y.JSC$9607_resourceUrlPolicy){L={type:2,attributeName:t,elementName:Q};O=[];K=_.E(K.split(","));for(g=K.next();!g.done;g=K.next())P=_.E(g.value.trim().split(/\s+/,2)),g=P.next().value,P=P.next().value,O.push({url:g,descriptor:P});
K={parts:[]};O=_.E(O);for(g=O.next();!g.done;g=O.next())g=g.value,P=Oma(g.url),(P=Y.JSC$9607_resourceUrlPolicy(P,L))&&K.parts.push({url:P.toString(),descriptor:g.descriptor});xx(u,t,EII(K))}else xx(u,t,K);break;case 7:L=K;if(Y.JSC$9607_navigationUrlPolicy){L={type:2,attributeName:t,elementName:Q};K=Oma(K);K=Y.JSC$9607_navigationUrlPolicy(K,L);if(K===null)break;L=K.toString()}K=L;L=_.fxt(K);L=L!==void 0&&Ss1.indexOf(L.toLowerCase())!==-1?K:"about:invalid#zClosurez";xx(u,t,L)}}return u};
_.DUU=Dq(function(){return new mG(imR)});
_.hBE=Dq(function(){return new mG(RB2)});var dUR=function(){this.calledBuild=!1;this.JSC$9619_sanitizerTable=imR},bme=function(){dUR.apply(this,arguments)};
_.m(bme,dUR);bme.prototype.build=function(){if(this.calledBuild)throw Error("ma");this.calledBuild=!0;return new mG(this.JSC$9619_sanitizerTable,void 0,void 0,this.JSC$9619_resourceUrlPolicy,this.JSC$9619_navigationUrlPolicy)};var S_1=/[^#]*/;var sBy={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"},NXe=_.F8(function(){return UIu()}),
VhR=function(){var Y=jy2("IFRAME"),G={};
_.jo(NXe(),function(u){Y.sandbox&&Y.sandbox.supports&&Y.sandbox.supports(u)&&(G[u]=!0)});
return G},jy2=function(Y,G){G=G===void 0?document:G;
return G.createElement(String(Y).toLowerCase())};_.H=_.AD.prototype;_.H.clone=function(){return new _.AD(this.x,this.y)};
_.H.equals=function(Y){return Y instanceof _.AD&&(this==Y?!0:this&&Y?this.x==Y.x&&this.y==Y.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(Y,G){Y instanceof _.AD?(this.x+=Y.x,this.y+=Y.y):(this.x+=Number(Y),typeof G==="number"&&(this.y+=G));return this};
_.H.scale=function(Y,G){this.x*=Y;this.y*=typeof G==="number"?G:Y;return this};_.H=_.oB.prototype;_.H.clone=function(){return new _.oB(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(Y,G){this.width*=Y;this.height*=typeof G==="number"?G:Y;return this};var lMR;_.gX={};lMR="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.gX.add=function(Y,G,u){if(Y!==null&&G in Y)throw Error("oa`"+G);Y[G]=u};
_.gX.clear=function(Y){for(var G in Y)delete Y[G]};
_.gX.clone=function(Y){var G={},u;for(u in Y)G[u]=Y[u];return G};
_.gX.contains=function(Y,G){return Lh1(Y,G)};
_.gX.containsKey=function(Y,G){return Y!==null&&G in Y};
_.gX.containsValue=Lh1;_.gX.create=Pdu;_.gX.createImmutableView=function(Y){var G=Y;Object.isFrozen&&!Object.isFrozen(Y)&&(G=Object.create(Y),Object.freeze(G));return G};
_.gX.createSet=IMa;_.gX.equals=function(Y,G){for(var u in Y)if(!(u in G)||Y[u]!==G[u])return!1;for(var O in G)if(!(O in Y))return!1;return!0};
_.gX.every=function(Y,G,u){for(var O in Y)if(!G.call(u,Y[O],O,Y))return!1;return!0};
_.gX.extend=function(Y,G){for(var u,O,Q=1;Q<arguments.length;Q++){O=arguments[Q];for(u in O)Y[u]=O[u];for(var M=0;M<lMR.length;M++)u=lMR[M],Object.prototype.hasOwnProperty.call(O,u)&&(Y[u]=O[u])}};
_.gX.filter=function(Y,G,u){var O={},Q;for(Q in Y)G.call(u,Y[Q],Q,Y)&&(O[Q]=Y[Q]);return O};
_.gX.findKey=gIa;_.gX.findValue=function(Y,G,u){return(G=gIa(Y,G,u))&&Y[G]};
_.gX.forEach=function(Y,G,u){for(var O in Y)G.call(u,Y[O],O,Y)};
_.gX.get=function(Y,G,u){return Y!==null&&G in Y?Y[G]:u};
_.gX.getAllPropertyNames=function(Y,G,u){if(!Y)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return TXA(Y);for(var O={};Y&&(Y!==Object.prototype||G)&&(Y!==Function.prototype||u);){for(var Q=Object.getOwnPropertyNames(Y),M=0;M<Q.length;M++)O[Q[M]]=!0;Y=Object.getPrototypeOf(Y)}return TXA(O)};
_.gX.getAnyKey=function(Y){for(var G in Y)return G};
_.gX.getAnyValue=function(Y){for(var G in Y)return Y[G]};
_.gX.getCount=function(Y){var G=0,u;for(u in Y)G++;return G};
_.gX.getKeys=TXA;_.gX.getSuperClass=function(Y){return(Y=Object.getPrototypeOf(Y.prototype))&&Y.constructor};
_.gX.getValueByKeys=function(Y,G){var u=_.ly(G),O=u?G:arguments;for(u=u?0:1;u<O.length;u++){if(Y==null)return;Y=Y[O[u]]}return Y};
_.gX.getValues=function(Y){var G=[],u=0,O;for(O in Y)G[u++]=Y[O];return G};
_.gX.isEmpty=function(Y){for(var G in Y)return!1;return!0};
_.gX.isImmutableView=function(Y){return!!Object.isFrozen&&Object.isFrozen(Y)};
_.gX.map=function(Y,G,u){var O={},Q;for(Q in Y)O[Q]=G.call(u,Y[Q],Q,Y);return O};
_.gX.remove=function(Y,G){var u;(u=G in Y)&&delete Y[G];return u};
_.gX.set=function(Y,G,u){Y[G]=u};
_.gX.setIfUndefined=function(Y,G,u){return G in Y?Y[G]:Y[G]=u};
_.gX.setWithReturnValueIfNotSet=function(Y,G,u){if(G in Y)return Y[G];u=u();return Y[G]=u};
_.gX.some=function(Y,G,u){for(var O in Y)if(G.call(u,Y[O],O,Y))return!0;return!1};
_.gX.transpose=function(Y){var G={},u;for(u in Y)G[Y[u]]=u;return G};
_.gX.unsafeClone=XF1;var ZC=function(Y,G){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=Y===Wiu&&G||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=BXT};
ZC.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var $Ul=function(Y){return Y instanceof ZC&&Y.constructor===ZC&&Y.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===BXT?Y.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},BXT={},Wiu={};
new ZC(Wiu,"");var HF,Qn,r0,q_k,UU2,cXX,kI,JXE,GmI,YyM,yV,uY_,E5T,tGT,EHe,Kfl,a4I,TUR,Lf_,NHU,gHT,PIX,I4E,XMU,WG;HF=function(Y){return Y?new WG(_.nm(Y)):HxR||(HxR=new WG)};
_.Vx=function(Y,G){return typeof G==="string"?Y.getElementById(G):G};
Qn=function(Y,G){return(G||document).getElementsByTagName(String(Y))};
_.syR=function(Y){return q_k("yt-formatted-string","paper-input-input",Y)};
r0=function(Y,G,u,O){Y=O||Y;return(G=G&&G!="*"?String(G).toUpperCase():"")||u?Y.querySelectorAll(G+(u?"."+u:"")):Y.getElementsByTagName("*")};
q_k=function(Y,G,u){var O=document,Q=Y&&Y!="*"?String(Y).toUpperCase():"";return Q||G?(u||O).querySelector(Q+(G?"."+G:"")):r0(O,Y,G,u)[0]||null};
UU2=function(Y,G){_.gX.forEach(G,function(u,O){O=="style"?Y.style.cssText=u:O=="class"?Y.className=u:O=="for"?Y.htmlFor=u:cXX.hasOwnProperty(O)?Y.setAttribute(cXX[O],u):_.EI(O,"aria-")||_.EI(O,"data-")?Y.setAttribute(O,u):Y[O]=u})};
cXX={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"};_.QF=function(Y){Y=(Y||window).document;Y=Y.compatMode=="CSS1Compat"?Y.documentElement:Y.body;return new _.oB(Y.clientWidth,Y.clientHeight)};
_.vI2=function(Y){var G=_.xS(Y);Y=Y.defaultView;return new _.AD((Y==null?void 0:Y.pageXOffset)||G.scrollLeft,(Y==null?void 0:Y.pageYOffset)||G.scrollTop)};
_.xS=function(Y){return Y.scrollingElement?Y.scrollingElement:_.Mt||Y.compatMode!="CSS1Compat"?Y.body||Y.documentElement:Y.documentElement};
kI=function(Y){return Y?Y.defaultView:window};
_.fu=function(Y,G,u){return JXE(document,arguments)};
JXE=function(Y,G){var u=G[1],O=YyM(Y,String(G[0]));u&&(typeof u==="string"?O.className=u:Array.isArray(u)?O.className=u.join(" "):UU2(O,u));G.length>2&&GmI(Y,O,G,2);return O};
GmI=function(Y,G,u,O){function Q(K){K&&G.appendChild(typeof K==="string"?Y.createTextNode(K):K)}
for(;O<u.length;O++){var M=u[O];if(!_.ly(M)||_.$a(M)&&M.nodeType>0)Q(M);else{a:{if(M&&typeof M.length=="number"){if(_.$a(M)){var t=typeof M.item=="function"||typeof M.item=="string";break a}if(typeof M==="function"){t=typeof M.item=="function";break a}}t=!1}_.jo(t?_.Vj(M):M,Q)}}};
_.uI=function(Y){return YyM(document,Y)};
YyM=function(Y,G){G=String(G);Y.contentType==="application/xhtml+xml"&&(G=G.toLowerCase());return Y.createElement(G)};
_.Cu=function(){return document.createTextNode("\n")};
yV=function(Y){if(Y.nodeType!=1)return!1;switch(Y.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};
uY_=function(Y,G){GmI(_.nm(Y),Y,arguments,1)};
_.eq=function(Y){for(var G;G=Y.firstChild;)Y.removeChild(G)};
_.Am=function(Y,G){G.parentNode&&G.parentNode.insertBefore(Y,G)};
_.o9=function(Y,G){G.parentNode&&G.parentNode.insertBefore(Y,G.nextSibling)};
_.Oy=function(Y){return Y&&Y.parentNode?Y.parentNode.removeChild(Y):null};
_.O7V=function(Y,G){var u=G.parentNode;u&&u.replaceChild(Y,G)};
_.QeM=function(Y){var G,u=Y.parentNode;if(u&&u.nodeType!=11)if(Y.removeNode)Y.removeNode(!1);else{for(;G=Y.firstChild;)u.insertBefore(G,Y);_.Oy(Y)}};
_.iT=function(Y){return Y.children!=void 0?Y.children:Array.prototype.filter.call(Y.childNodes,function(G){return G.nodeType==1})};
_.H7I=function(Y){return Y.nextElementSibling!==void 0?Y.nextElementSibling:_.MGE(Y.nextSibling,!0)};
_.MGE=function(Y,G){for(;Y&&Y.nodeType!=1;)Y=G?Y.nextSibling:Y.previousSibling;return Y};
_.sy=function(Y){return _.$a(Y)&&Y.nodeType==1};
_.hP=function(Y,G){if(!Y||!G)return!1;if(Y.contains&&G.nodeType==1)return Y==G||Y.contains(G);if(typeof Y.compareDocumentPosition!="undefined")return Y==G||!!(Y.compareDocumentPosition(G)&16);for(;G&&Y!=G;)G=G.parentNode;return G==Y};
E5T=function(Y,G){if(Y==G)return 0;if(Y.compareDocumentPosition)return Y.compareDocumentPosition(G)&2?1:-1;if("sourceIndex"in Y||Y.parentNode&&"sourceIndex"in Y.parentNode){var u=Y.nodeType==1,O=G.nodeType==1;if(u&&O)return Y.sourceIndex-G.sourceIndex;var Q=Y.parentNode,M=G.parentNode;return Q==M?EHe(Y,G):!u&&_.hP(Q,G)?-1*tGT(Y,G):!O&&_.hP(M,Y)?tGT(G,Y):(u?Y.sourceIndex:Q.sourceIndex)-(O?G.sourceIndex:M.sourceIndex)}O=_.nm(Y);u=O.createRange();u.selectNode(Y);u.collapse(!0);Y=O.createRange();Y.selectNode(G);
Y.collapse(!0);return u.compareBoundaryPoints(_.OI.Range.START_TO_END,Y)};
tGT=function(Y,G){var u=Y.parentNode;if(u==G)return-1;for(;G.parentNode!=u;)G=G.parentNode;return EHe(G,Y)};
EHe=function(Y,G){for(;G=G.previousSibling;)if(G==Y)return-1;return 1};
Kfl=function(Y){var G,u=arguments.length;if(!u)return null;if(u==1)return arguments[0];var O=[],Q=Infinity;for(G=0;G<u;G++){for(var M=[],t=arguments[G];t;)M.unshift(t),t=t.parentNode;O.push(M);Q=Math.min(Q,M.length)}M=null;for(G=0;G<Q;G++){t=O[0][G];for(var K=1;K<u;K++)if(t!=O[K][G])return M;M=t}return M};
_.nm=function(Y){return Y.nodeType==9?Y:Y.ownerDocument||Y.document};
a4I=function(Y){return Y.contentDocument||Y.contentWindow.document};
_.R9=function(Y,G){if("textContent"in Y)Y.textContent=G;else if(Y.nodeType==3)Y.data=String(G);else if(Y.firstChild&&Y.firstChild.nodeType==3){for(;Y.lastChild!=Y.firstChild;)Y.removeChild(Y.lastChild);Y.firstChild.data=String(G)}else _.eq(Y),Y.appendChild(_.nm(Y).createTextNode(String(G)))};
TUR={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};Lf_={IMG:" ",BR:"\n"};NHU=function(Y){var G;Y.tagName=="A"&&Y.hasAttribute("href")||Y.tagName=="INPUT"||Y.tagName=="TEXTAREA"||Y.tagName=="SELECT"||Y.tagName=="BUTTON"?G=!Y.disabled&&(!Y.hasAttribute("tabindex")||gHT(Y)):G=Y.hasAttribute("tabindex")&&gHT(Y);return G};
gHT=function(Y){Y=Y.tabIndex;return typeof Y==="number"&&Y>=0&&Y<32768};
PIX=function(Y){var G=[];XMU(Y,G,!0);Y=G.join("");Y=Y.replace(/ \xAD /g," ").replace(/\xAD/g,"");Y=Y.replace(/\u200B/g,"");Y=Y.replace(/ +/g," ");Y!=" "&&(Y=Y.replace(/^\s*/,""));return Y};
I4E=function(Y){var G=[];XMU(Y,G,!1);return G.join("")};
XMU=function(Y,G,u){if(!(Y.nodeName in TUR))if(Y.nodeType==3)u?G.push(String(Y.nodeValue).replace(/(\r\n|\r|\n)/g,"")):G.push(Y.nodeValue);else if(Y.nodeName in Lf_)G.push(Lf_[Y.nodeName]);else for(Y=Y.firstChild;Y;)XMU(Y,G,u),Y=Y.nextSibling};
_.kmI=function(Y,G,u){if(!G&&!u)return null;var O=G?String(G).toUpperCase():null;return _.pm(Y,function(Q){return(!O||Q.nodeName==O)&&(!u||typeof Q.className==="string"&&_.ST(Q.className.split(/\s+/),u))},!0)};
_.pm=function(Y,G,u){Y&&!u&&(Y=Y.parentNode);for(u=0;Y;){if(G(Y))return Y;Y=Y.parentNode;u++}return null};
WG=function(Y){this.JSC$9647_document_=Y||_.OI.document||document};
_.H=WG.prototype;_.H.getElement=function(Y){return _.Vx(this.JSC$9647_document_,Y)};
_.H.$=WG.prototype.getElement;_.H.getElementsByTagName=function(Y,G){return(G||this.JSC$9647_document_).getElementsByTagName(String(Y))};
_.H.getElementsByTagNameAndClass=function(Y,G,u){return r0(this.JSC$9647_document_,Y,G,u)};
_.H.$$=WG.prototype.getElementsByTagNameAndClass;_.H.setProperties=UU2;_.H.JSC$9649_createDom=function(Y,G,u){return JXE(this.JSC$9647_document_,arguments)};
_.H.createElement=function(Y){return YyM(this.JSC$9647_document_,Y)};
_.H.createTextNode=function(Y){return this.JSC$9647_document_.createTextNode(String(Y))};
_.H.getWindow=function(){return this.JSC$9647_document_.defaultView};
var MU=function(Y){return _.vI2(Y.JSC$9647_document_)};
_.H=WG.prototype;_.H.appendChild=function(Y,G){Y.appendChild(G)};
_.H.append=uY_;_.H.canHaveChildren=yV;_.H.removeNode=_.Oy;_.H.getChildren=_.iT;_.H.contains=_.hP;_.H.isFocusable=NHU;_.H=i7.prototype;_.H.getWidth=function(){return this.right-this.left};
_.H.getHeight=function(){return this.bottom-this.top};
_.H.clone=function(){return new i7(this.top,this.right,this.bottom,this.left)};
_.H.contains=function(Y){return this&&Y?Y instanceof i7?Y.left>=this.left&&Y.right<=this.right&&Y.top>=this.top&&Y.bottom<=this.bottom:Y.x>=this.left&&Y.x<=this.right&&Y.y>=this.top&&Y.y<=this.bottom:!1};
_.H.expand=function(Y,G,u,O){_.$a(Y)?(this.top-=Y.top,this.right+=Y.right,this.bottom+=Y.bottom,this.left-=Y.left):(this.top-=Y,this.right+=Number(G),this.bottom+=Number(u),this.left-=Number(O));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(Y,G){Y instanceof _.AD?(this.left+=Y.x,this.right+=Y.x,this.top+=Y.y,this.bottom+=Y.y):(this.left+=Y,this.right+=Y,typeof G==="number"&&(this.top+=G,this.bottom+=G));return this};
_.H.scale=function(Y,G){G=typeof G==="number"?G:Y;this.left*=Y;this.right*=Y;this.top*=G;this.bottom*=G;return this};_.H=RB.prototype;_.H.clone=function(){return new RB(this.left,this.top,this.width,this.height)};
_.H.boundingRect=function(Y){var G=Math.max(this.left+this.width,Y.left+Y.width),u=Math.max(this.top+this.height,Y.top+Y.height);this.left=Math.min(this.left,Y.left);this.top=Math.min(this.top,Y.top);this.width=G-this.left;this.height=u-this.top};
_.H.contains=function(Y){return Y instanceof _.AD?Y.x>=this.left&&Y.x<=this.left+this.width&&Y.y>=this.top&&Y.y<=this.top+this.height:this.left<=Y.left&&this.left+this.width>=Y.left+Y.width&&this.top<=Y.top&&this.top+this.height>=Y.top+Y.height};
_.H.distance=function(Y){var G=Y.x<this.left?this.left-Y.x:Math.max(Y.x-(this.left+this.width),0);Y=Y.y<this.top?this.top-Y.y:Math.max(Y.y-(this.top+this.height),0);return Math.sqrt(G*G+Y*Y)};
_.H.getSize=function(){return new _.oB(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(Y,G){Y instanceof _.AD?(this.left+=Y.x,this.top+=Y.y):(this.left+=Y,typeof G==="number"&&(this.top+=G));return this};
_.H.scale=function(Y,G){G=typeof G==="number"?G:Y;this.left*=Y;this.width*=Y;this.top*=G;this.height*=G;return this};var FfX,D0,O21,Z0,WfE,mAE,rPe,tI1,xAU,CI1;_.w0=function(Y,G,u){if(typeof G==="string")(G=_.nH_(Y,G))&&(Y.style[G]=u);else for(var O in G){u=Y;var Q=G[O],M=_.nH_(u,O);M&&(u.style[M]=Q)}};
FfX={};_.nH_=function(Y,G){var u=FfX[G];if(!u){var O=_.OK(G);u=O;Y.style[O]===void 0&&(O=(_.Mt?"Webkit":_.Hc?"Moz":null)+cD4(O),Y.style[O]!==void 0&&(u=O));FfX[G]=u}return u};
_.vE=function(Y,G){var u=_.nm(Y);return u.defaultView&&u.defaultView.getComputedStyle&&(Y=u.defaultView.getComputedStyle(Y,null))?Y[G]||Y.getPropertyValue(G)||"":""};
_.D4=function(Y,G){return _.vE(Y,G)||(Y.currentStyle?Y.currentStyle[G]:null)||Y.style&&Y.style[G]};
_.pM_=function(Y){return _.D4(Y,"position")};
D0=function(Y,G,u){if(G instanceof _.AD){var O=G.x;G=G.y}else O=G,G=u;Y.style.left=Z0(O,!1);Y.style.top=Z0(G,!1)};
O21=function(Y){try{return Y.getBoundingClientRect()}catch(G){return{left:0,top:0,right:0,bottom:0}}};
_.Fi=function(Y){var G=_.nm(Y),u=new _.AD(0,0);if(Y==(G?_.nm(G):document).documentElement)return u;Y=O21(Y);G=MU(HF(G));u.x=Y.left+G.x;u.y=Y.top+G.y;return u};
_.zre=function(Y,G,u){if(G instanceof _.oB)u=G.height,G=G.width;else if(u==void 0)throw Error("pa");Y.style.width=Z0(G,!0);Y.style.height=Z0(u,!0)};
Z0=function(Y,G){typeof Y=="number"&&(Y=(G?Math.round(Y):Y)+"px");return Y};
WfE=function(Y){return mAE(Y)};
mAE=function(Y){var G=rPe;if(_.D4(Y,"display")!="none")return G(Y);var u=Y.style,O=u.display,Q=u.visibility,M=u.position;u.visibility="hidden";u.position="absolute";u.display="inline";Y=G(Y);u.display=O;u.position=M;u.visibility=Q;return Y};
rPe=function(Y){var G=Y.offsetWidth,u=Y.offsetHeight,O=_.Mt&&!G&&!u;return(G===void 0||O)&&Y.getBoundingClientRect?(Y=O21(Y),new _.oB(Y.right-Y.left,Y.bottom-Y.top)):new _.oB(G,u)};
tI1=function(Y){var G=_.Fi(Y);Y=mAE(Y);return new RB(G.x,G.y,Y.width,Y.height)};
xAU=function(Y,G){Y=Y.style;"opacity"in Y?Y.opacity=G:"MozOpacity"in Y?Y.MozOpacity=G:"filter"in Y&&(Y.filter=G===""?"":"alpha(opacity="+Number(G)*100+")")};
_.jG=function(Y,G){Y.style.display=G?"":"none"};
_.f4k=function(Y){return"rtl"==_.D4(Y,"direction")};
CI1=function(Y){var G=_.vE(Y,"marginLeft"),u=_.vE(Y,"marginRight"),O=_.vE(Y,"marginTop");Y=_.vE(Y,"marginBottom");return new i7(parseFloat(O),parseFloat(u),parseFloat(Y),parseFloat(G))};
_.yPI=function(Y){var G=_.vE(Y,"borderLeftWidth"),u=_.vE(Y,"borderRightWidth"),O=_.vE(Y,"borderTopWidth");Y=_.vE(Y,"borderBottomWidth");return new i7(parseFloat(O),parseFloat(u),parseFloat(Y),parseFloat(G))};var hm=function(Y){this.context=Y};
hm.prototype.isSupported=function(Y){return(Y==null?0:Y.attributionEnabled)||(Y==null?void 0:Y.beaconMethod)==="POST"||(Y==null?0:Y.customHeaders)||(Y==null?0:Y.customBody)||(Y==null?0:Y.keepAlive)?!1:!I9(this.context)};
hm.prototype.ping=function(){var Y=this;return VK(_.vs.apply(0,arguments).map(function(G){try{var u=Y.context.global,O=!1;O=O===void 0?!1:O;u.google_image_requests||(u.google_image_requests=[]);var Q=jy2("IMG",u.document);O&&(Q.attributionSrc="");Q.src=G;u.google_image_requests.push(Q);return!0}catch(M){return!1}}).every(function(G){return G}))};
hm.prototype.pingWithHeadersAndBody=function(Y,G,u){this.ping.apply(this,_.c8(_.vs.apply(3,arguments)))};var erV=function(Y){this.context=Y};
erV.prototype.isSupported=function(Y){return APk&&!I9(this.context)&&kh4(this.context)!==void 0&&!(Y==null?0:Y.attributionEnabled)&&(Y==null?void 0:Y.beaconMethod)!=="POST"&&!(Y==null?0:Y.customHeaders)&&!(Y==null?0:Y.customBody)};
erV.prototype.makeBeacon=function(Y,G){if(!this.isSupported(G))throw new Lu;return new d0(this.context,Y)};
var APk=!1,d0=function(Y,G){this.context=Y;this.JSC$9668_urlWithoutToken=G;Y=kh4(this.context);if(Y===void 0)throw Error();this.wrappedBeacon=new Y(oH1(this),{})},oH1=function(Y){Y=Y.JSC$9668_urlWithoutToken;
return(Y.slice(-1)[0]==="&"?Y:Y+"&")+"pbapi=1"};
d0.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
d0.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
d0.prototype.setHeader=function(){};
_.Uk.Object.defineProperties(d0.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9668_urlWithoutToken},
set:function(Y){this.JSC$9668_urlWithoutToken=Y;this.wrappedBeacon.setURL(oH1(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(Y){if(Y!=="GET")throw new Lu;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var i7X=function(Y){this.context=Y};
i7X.prototype.isSupported=function(Y){if((Y==null?0:Y.attributionEnabled)||(Y==null?void 0:Y.beaconMethod)==="GET"||(Y==null?0:Y.customHeaders)||(Y==null?0:Y.customBody)||(Y==null?0:Y.keepAlive))return!1;var G;return!I9(this.context)&&((G=this.context.global.navigator)==null?void 0:G.sendBeacon)!==void 0};
i7X.prototype.ping=function(){var Y=this;return VK(_.vs.apply(0,arguments).map(function(G){var u;return(u=Y.context.global.navigator)==null?void 0:u.sendBeacon(G)}).every(function(G){return G}))};
i7X.prototype.pingWithHeadersAndBody=function(Y,G,u){this.ping.apply(this,_.c8(_.vs.apply(3,arguments)))};var b7=function(Y){this.value=Y},oy=function(Y,G){return VK(Y.value).pipe(hD(G))},Ry=new b7(!1),Pit=new b7(!0);var zh=function(Y){this.value=Y;this.releasedSubject=new ZG};
zh.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Uk.Object.defineProperties(zh.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9681_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var AXy=["FRAME","IMG","IFRAME"],rXU=/^[01](px)?$/,eB1=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},yXA=function(){var Y=new eB1;
Y.crossDomainLoadedDefault=!0;Y.pendingImagesBlockLoad=!0;return Y};var RrU=function(Y,G){var u=hB4(Y);if(u)if(u.onCreativeLoad)u.onCreativeLoad(G);else{var O=G?[G]:[],Q=function(M){for(var t=0;t<O.length;++t)try{O[t](1,M)}catch(K){}O={push:function(K){K(1,M)}}};
u.onCreativeLoad=function(M){O.push(M)};
u.setAttribute("data-creative-load-listener","");u.addEventListener("creativeLoad",function(M){Q(M.detail)});
_.OI.addEventListener("message",function(M){DUY(u,Q,M)})}};var bT=function(Y,G){var u=this;this.global=Y;this.parentContext=G;this.JSC$9692_onVisibilityChange=this.document?QW(VK(!0),u7(this.document,"visibilitychange")).pipe(tD(this.parentContext.performanceMonitor,748),sr(function(){return u.getVisibilityState()}),gg()):VK("visible");
this.document?u7(this.document,"DOMContentLoaded").pipe(tD(this.parentContext.performanceMonitor,739),LO(1)):VK(mUI("DOMContentLoaded"))},X4u=function(Y){return Y.document!==null&&Y.document.visibilityState!==void 0};
bT.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
bT.prototype.querySelector=function(Y){return this.document?this.document.querySelector(Y):null};
bT.prototype.querySelectorAll=function(Y){return this.document?_.Vj(this.document.querySelectorAll(Y)):[]};
bT.prototype.elementFromPoint=function(Y,G){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;Y=this.document.elementFromPoint(Y,G);return Y===null?null:new zh(Y)};
var OHI=function(Y,G,u){u=u===void 0?!1:u;if(G.ref===void 0||!Y.document)return VK(G).pipe(tD(Y.parentContext.performanceMonitor,749));var O=new kx(1),Q=function(){O.next(G)};
u||RrU(G.ref,Q);oIy(G.ref,Q);return O.pipe(tD(Y.parentContext.performanceMonitor,749),LO(1))};
_.Uk.Object.defineProperties(bT.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return vxy(this.global,"document")?this.global.document||null:null}}});var dUA=_.hV(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),bmt=_.hV(["./reach_worklet.js"]),S_u=_.hV(["./reach_worklet.js"]),wME=_.hV(["./reach_worklet.html"]),Z7R=_.hV(["./reach_worklet.js"]),DAV=_.hV(["./reach_worklet.js"]);_.fO(wME);_.fO(Z7R);_.fO(DAV);var xI={left:0,top:0,width:0,height:0};var BX1=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),O7t=/#|$/,Qej=/[?&]($|#)/;var mA4=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(mA4,_.Ps);var zrt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(zrt,_.Ps);var PIU=function(Y,G){return _.E_(Y,2,G)},pMy=function(Y,G){return _.E_(Y,3,G)};
zrt.prototype.getModel=function(){return _.zy(this,4)};
var kmj=function(Y,G){return _.E_(Y,4,G)},XMY=function(Y,G){return _.E_(Y,5,G)},FfU=function(Y,G){return _.E_(Y,9,G)},gH1=function(Y,G){return XU(Y,10,G)},Lfy=function(Y,G){return _.BF(Y,11,G)},I44=function(Y,G){return _.E_(Y,1,G)},nHy=function(Y,G){return _.BF(Y,7,G)};var a4j="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var id=function(Y,G,u,O){Y=Y===void 0?window:Y;G=G===void 0?null:G;u=u===void 0?new IG4:u;O=O===void 0?NXt():O;TXl.call(this);var Q=this;this.global=Y;this.debugChannel=G;this.performanceMonitor=u;this.onPageHide=zoT(function(){return u7(Q.global,"pagehide")}).pipe(tD(this.performanceMonitor,941));
this.onLoad=zoT(function(){return u7(Q.global,"load")}).pipe(tD(this.performanceMonitor,738),LO(1));
this.onResize=zoT(function(){return u7(Q.global,"resize")}).pipe(tD(this.performanceMonitor,741));
this.onMessage=zoT(function(){return u7(Q.global,"message")}).pipe(tD(this.performanceMonitor,740));
this.document=new bT(this.global,this);this.timeProvider=new khE(new FhM(this.intrinsicFunctionNamespace,this.performanceMonitor),new nIR(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new XFT(new zBT(this),new erV(this),new g0(this,new rXX(this)),new g0(this,new i7X(this)),new g0(this,new hm(this)))};
_.m(id,TXl);id.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(Y){return Y}};
var I9=function(Y){var G=Y.global;return!!Y.global.HTMLFencedFrameElement&&!!G.fence&&typeof G.fence.reportEvent==="function"};
_.H=id.prototype;_.H.reportFencedFrameEvent=function(Y){I9(this)&&this.global.fence.reportEvent(Y)};
_.H.getOnBackgrounded=function(){return this.onPageHide.pipe(tD(this.performanceMonitor,942),hD(this.queue),sr(function(){}))};
_.H.postMessage=function(Y,G,u){u=u===void 0?[]:u;this.global.postMessage(Y,G,u)};
_.H.getWidth=function(){return JDT(this.global)?this.global.width:0};
_.H.getHeight=function(){return JDT(this.global)?this.global.height:0};
_.H.isMobile=function(){return Y_A()||Ghj()};
var mh=function(Y,G){try{var u=EHt(G,Y.global,Y.isMobile());return{left:u.left,top:u.top,width:u.getWidth(),height:u.getHeight()}}catch(O){return xI}};
id.prototype.validate=function(){var Y=this.beaconFactory.isSupported()||I9(this);return this.global&&this.timeProvider.available()&&Y};
var Fhj=function(Y){return(Y=rPt(Y.global))?oA(Y):null};
_.Uk.Object.defineProperties(id.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(Y){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(Y){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!JDT(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}}});_.hrk=!_.YU&&!_.F4g();var IEA=function(Y){return Y};var n41=function(Y){return Y.pipe(MI(function(G){var u=G.endOfSessionReason;var O;return((O=G.viewable)==null?void 0:O.extrapolateToNow().value)||u!=void 0}),LO(1),aB())};var oHu=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},i7U=function(Y){var G=Y.sequenceNumber.toString(10).padStart(2,"0");
G=""+Y.startTime+G;Y.sequenceNumber<99&&Y.sequenceNumber++;return G};var g4j=fb(mS(function(Y){return Y.endOfSessionReason===void 0}),sr(function(Y){return Object.assign({},Y,{timestamps:Km(Y)})}),MI(function(Y){var G=Y.viewable;
Y=Y.timestamps;var u;return(u=G==null?void 0:G.extrapolateUsingTimestampMap(Y).value)!=null?u:!1}),sr(function(Y){var G=Y.beaconFactory;
var u=Y.timestampedExposureHistory;var O=Y.timeOnScreen;var Q=Y.binaryContext;Y=Y.timestamps;if(G===void 0||u===void 0||O===void 0||Q===void 0)return!1;if(O.extrapolateUsingTimestampMap(Y).value.every(function(M){return M>=0}))return!0;
u=u.map(function(M){return M.timestamp+":"+M.value}).join(",");
O=RrY({bin:Q,tos:O},Y);G.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+O+("&eh="+u)).sendNow();return!0}),mS(function(Y){return!Y}),aB());var Z7T=function(Y){return{id:Y.pingId,mcvt:Y.maxConsecutiveViewTime,p:Y.creativePosition,asp:Y.adSpeedPosition,tm:Y.totalMeasurementTime,tu:Y.totalUnviewedTime,mtos:Y.maxTimeOnScreen,tos:Y.timeOnScreen,v:Y.binaryVersion,bin:Y.binaryContext,avms:Y.measurementStrategy,bs:Y.browserSize,mc:Y.maximumExposure,"if":Y.crossDomainIframeState,vu:Y.delayedImpressionJsState,app:Y.inApp,mse:Y.mraidError,mtop:Y.mraidSituation,itpl:Y.injectedTemplateId,adk:Y.adKey,exk:Y.awbidKey,rs:Y.requestSource,la:Y.isLargeAd,
cr:Y.isContentRecommendationAd,uach:Y.userAgentClientHints,vs:Y.viewState,r:Y.reasonCode,pay:Y.hasCpmavUrl,co:Y.clientPingOrderCounter,rst:Y.adRenderStartTime,rpt:Y.adRenderPeriodTime,isd:Y.initialScrollDepth,lsd:Y.loadedScrollDepth,context:Y.errorContext,msg:Y.errorMessage,stack:Y.errorStack,name:Y.errorName,ec:Y.hasElementChanged,sfr:Y.strategyFailureReasons,met:Y.creativeSearchResult,wmsd:Y.webMeasurementStartDiagnostic,pv:Y.pageVisible,epv:Y.eosPageVisible,pbe:Y.inStatefulBeaconExperiment,fle:Y.inFetchLaterBeaconExperiment,
vae:Y.inViewableAttributionExperiment,spb:Y.supportsPendingBeacon,sfl:Y.supportsFetchLater,ffslot:Y.isFencedFrameSlotTurtlex,reach:Y.sharedStorageReachMode,io2:Y.v2VisibilityBitVector,rxdbg:Y.rxDebugger,omida:Y.omidAppId,omidp:Y.omidPartner,omidpv:Y.omidPartnerVersion,omidor:Y.omidOcclusionReasons,omidv:Y.omidVersion,omids:Y.omidSessionType,omidam:Y.omidAccessMode,omidct:Y.omidCreativeType,omidia:Y.omidInApp,omiddc:Y.omidDeviceCategory,omidlat:Y.omidLastActivity,omiddit:Y.omidDeviceIdleTime,qid:Y.errorEscapedQueryId}};var kYj=function(Y){var G=[];return Y.pipe(sr(function(u){var O=u.beaconFactory,Q=u.fetchBeaconFactory,M=u.timeOnScreen,t=u.timeOnScreenUrlPrefixes,K=u.payloadMapper,L=u.timeOnScreenPingId,g=u.timeOnScreenReason,P=u.urlSerializer,I=u.viewable,k=u.hasImpressionFired,n=u.inStatefulBeaconExperiment,p=u.supportsPendingBeacon,W=u.supportsFetchLater,C=u.turtlexReportEventData;if(!u.geometryMeasurable||!k||u.maxTimeOnScreen===void 0||M===void 0||t===void 0||K===void 0||L===void 0||P===void 0||O===void 0)return!1;
if(u.isTurtlex){if(g===void 0)return!1;t=u.reportFencedFrameEvent;if(!t)return!1;t({eventType:"active-view-time-on-screen",eventData:C!=null?C:"",destination:["buyer"]});return!0}if(!(n||W||g))return!1;C=Km(u);var e;I=(e=I==null?void 0:I.extrapolateUsingTimestampMap(C).value)!=null?e:!1;e=P(Object.assign({},u,{pingId:L,viewState:I?4:3,reasonCode:g!=null?g:"u",payloadMapper:K,urlPrefixes:t}),C);if(n){for(;G.length>t.length;)u=void 0,(u=G.shift())==null||u.deactivate();e.forEach(function(B,N){N>=G.length?
G.push(O.makeBeacon(B)):G[N].url=B});
return p&&Q&&g!==void 0?(e.forEach(function(B){Q.makeBeacon(B).sendNow()}),!0):g!==void 0}if(p&&Q&&g!==void 0)return e.forEach(function(B){Q.makeBeacon(B).sendNow()}),!0;
if(W&&Q){for(;G.length>t.length;)p=void 0,(p=G.shift())==null||p.deactivate();var w=P(Object.assign({},u,{pingId:L,viewState:I?4:3,reasonCode:g!=null?g:"u",payloadMapper:K,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),C)[0];e.forEach(function(B,N){N>=G.length?G.push(O.makeBeacon(w,{endOfSession:!0})):G[N].url=w});
return g!==void 0?(e.forEach(function(B){Q.makeBeacon(B).sendNow()}),!0):g!==void 0}return g!==void 0?(e.forEach(function(B){O.makeBeacon(B).sendNow()}),!0):!1}),mS(function(u){return!u}),aB())};var F1I=fb(MI(function(Y){return Y.immediateUrlPrefixes!==void 0&&Y.payloadMapper!==void 0&&Y.urlSerializer!==void 0&&Y.inferredPingId!==void 0&&Y.beaconFactory!==void 0}),MI(function(Y){return VGt(Y)!==null}),NUT(function(Y){return Y.activeViewUnmeasurableEvent},function(Y){return Y.emit}),sr(function(Y){if(Y.isTurtlex){var G=Y.reportFencedFrameEvent;
if(G){var u;G({eventType:"active-view-unmeasurable",eventData:(u=Y.turtlexReportEventData)!=null?u:"",destination:["buyer"]})}}else{u=void 0;var O=VGt(Y);if(O==="x"){var Q,M=(Q=Y.geometricMeasurementErrors)!=null?Q:Y.contextValidationErrors;M&&(G=M.stack,u=M.message)}Y.urlSerializer(Object.assign({},Y,{urlPrefixes:Y.immediateUrlPrefixes,payloadMapper:Y.payloadMapper,pingId:Y.inferredPingId,viewState:2,reasonCode:O,errorMessage:u,errorStack:G}),Km(Y)).forEach(function(t){Y.beaconFactory.makeBeacon(t).sendNow()})}}),
LO(1),aB());var l4j=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var L1g=fb(MI(function(Y){return Y.payloadMapper!==void 0&&Y.immediateUrlPrefixes!==void 0&&Y.urlSerializer!==void 0&&Y.inferredPingId!==void 0&&Y.beaconFactory!==void 0}),sr(function(Y){return Object.assign({},Y,{timestamps:Km(Y)})}),MI(function(Y){var G=Y.viewable;
var u=Y.hasImpressionFired;Y=Y.timestamps;var O;return!!u&&((O=G==null?void 0:G.extrapolateUsingTimestampMap(Y).value)!=null?O:!1)}),NUT(function(Y){return Y.activeViewViewableEvent},function(Y){return Y.emit}),sr(function(Y){var G=Y.beaconFactory,u=Y.turtlexReportEventData;
if(Y.isTurtlex){var O=Y.reportFencedFrameEvent;if(!O)return!1;O({eventType:"active-view-viewable",eventData:u!=null?u:"",destination:["buyer"]});return!0}u=Y.urlSerializer(Object.assign({},Y,{urlPrefixes:Y.immediateUrlPrefixes,payloadMapper:Y.payloadMapper,pingId:Y.inferredPingId,viewState:4,reasonCode:"v"}),Y.timestamps);(O=Y.cpmavUrls)&&O.length>0&&Y.viewUrlSerializer&&Y.viewUrlSerializer(O,Y).forEach(function(Q){G.makeBeacon(Q).sendNow()});
(O=Y.viewableRelayUrls)&&O.length>0&&Y.viewUrlSerializer&&Y.viewUrlSerializer(O,Y).forEach(function(Q){G.makeBeacon(Q).sendNow()});
u.forEach(function(Q){G.makeBeacon(Q,{attributionEnabled:Y.isViewableAttributionEnabled}).sendNow()});
return!0}),mS(function(Y){return!Y}),aB());var Z2I=sr(function(Y){return[Y.value.topWindowViewportExternalGeometry.width,Y.value.topWindowViewportExternalGeometry.height]});var WF=function(Y,G){this.callback=Y;this.options=G;this.intersectionObserverV2=this.intersectionObserverV1=null},kXu=function(Y,G){G?Y.intersectionObserverV2||(G=Object.assign({},Y.options,{delay:100,
trackVisibility:!0}),Y.intersectionObserverV2=new IntersectionObserver(Y.callback,G)):Y.intersectionObserverV1||(Y.intersectionObserverV1=new IntersectionObserver(Y.callback,Y.options))},dAe=function(Y,G){Y=G?Y.intersectionObserverV2:Y.intersectionObserverV1;
if(!Y)throw new LhT;return Y};
WF.prototype.observe=function(Y,G){dAe(this,Y).observe(G)};
WF.prototype.unobserve=function(Y,G){dAe(this,Y).unobserve(G)};
WF.prototype.disconnect=function(Y){dAe(this,Y).disconnect()};
WF.prototype.takeRecords=function(Y){return dAe(this,Y).takeRecords()};var MEI={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:xI,topWindowViewportExternalGeometry:xI,measurementRequests:new ZG,elementGeometrySourceName:"ns",elementGeometry:xI,intersectionGeometry:xI,viewportLocalAppOffset:{x:0,y:0}};var rTj=fm(fb(sr(function(Y){var G;return(G=Y.exposureOverride)!=null?G:Fvy(Y)}),sr(function(Y){return isFinite(Y)?Y:0}))),olI=fm(fb(sr(function(Y){var G;
return(G=Y.exposureOverride)!=null?G:Fvy(Y)}),sr(function(Y){return isFinite(Y)?Y:-1})));var Sq=function(Y,G){this.a=Y;this.b=G;if(Y.clock.timeline!==G.clock.timeline)throw Error();};
Sq.prototype.equivalentTo=function(Y){return Y instanceof Sq?this.a.equivalentTo(Y.a)&&this.b.equivalentTo(Y.b):!1};
Sq.prototype.extrapolateToTime=function(Y){var G=this.a.extrapolateToTime(Y).value,u=this.b.extrapolateToTime(Y).value;return{timestamp:Y,value:[G,u]}};
_.Uk.Object.defineProperties(Sq.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 Y=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),G=this.a.lastMeasurement.timestamp.equals(Y)?this.a.lastMeasurement.value:this.a.extrapolateToTime(Y).value,u=this.b.lastMeasurement.timestamp.equals(Y)?this.b.lastMeasurement.value:this.b.extrapolateToTime(Y).value;return{timestamp:Y,value:[G,u]}}}});var N1=function(Y,G){this.input=Y;this.mapFunction=G;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
N1.prototype.equivalentTo=function(Y){return Y instanceof N1?this.input.equivalentTo(Y.input)&&this.mapFunction===Y.mapFunction:!1};
N1.prototype.extrapolateToTime=function(Y){Y=this.input.extrapolateToTime(Y);return{timestamp:Y.timestamp,value:this.mapFunction(Y.value)}};
_.Uk.Object.defineProperties(N1.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var jq=function(){};
jq.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
jq.prototype.extrapolateUsingTimestampMap=function(Y){var G=this.clock.timeline,u,O=(u=Y.get(G))!=null?u:this.clock.now();Y.set(G,O);return this.extrapolateToTime(O)};
jq.prototype.map=function(Y){return new b7M(this,Y)};
jq.prototype.joinWith=function(Y){return new SyR(this,Y)};
var SyR=function(){Sq.apply(this,arguments);this.map=jq.prototype.map;this.joinWith=jq.prototype.joinWith;this.extrapolateToNow=jq.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=jq.prototype.extrapolateUsingTimestampMap};
_.m(SyR,Sq);var b7M=function(){N1.apply(this,arguments);this.map=jq.prototype.map;this.joinWith=jq.prototype.joinWith;this.extrapolateToNow=jq.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=jq.prototype.extrapolateUsingTimestampMap};
_.m(b7M,N1);var yF=function(Y,G){this.lastMeasurement=G;this.extrapolateToNow=jq.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=jq.prototype.extrapolateUsingTimestampMap;this.map=jq.prototype.map;this.joinWith=jq.prototype.joinWith;this.clock=Y};
yF.prototype.equivalentTo=function(Y){return Y.active};
yF.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Uk.Object.defineProperties(yF.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var ww4=sr(function(Y){if(Y.value.viewportGeometrySourceName==="omid"){if(Y.value.elementGeometrySourceName==="nio")return"omio";if(Y.value.elementGeometrySourceName==="geo")return"omgeo"}return Y.value.elementGeometrySourceName==="geo"||Y.value.elementGeometrySourceName==="nio"?Y.value.viewportGeometrySourceName:Y.value.elementGeometrySourceName});var zNg=fb(MI(function(Y){return!isNaN(Y)}),FQ(function(Y,G){return isNaN(Y)?G:Math.min(Y,G)},NaN),gg());var xcg=fm(fb(sr(function(Y){return Y.intersectionGeometry.width*Y.intersectionGeometry.height/(Y.exposedViewportLocalGeometry.width*Y.exposedViewportLocalGeometry.height)}),sr(function(Y){return isFinite(Y)?Math.min(1,Y):0})));var RNg=fb(fm(sr(function(Y){Y=Y.exposureOverride?Y.elementGeometry.width*Y.elementGeometry.height*Y.exposureOverride/(Y.topWindowViewportExternalGeometry.width*Y.topWindowViewportExternalGeometry.height):Y.intersectionGeometry.width*Y.intersectionGeometry.height/(Y.topWindowViewportExternalGeometry.width*Y.topWindowViewportExternalGeometry.height);return isFinite(Y)?Y:0})));var dc1=function(Y,G){var u=this;this.timeProvider=Y;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=G.pipe(gg()).subscribe(function(O){SWt(u);u.measurementRequestObserver=O})},N_t=function(Y,G){SWt(Y);
Y.lastMeasurementRequest=Y.timeProvider.setTimeout(function(){var u;return void((u=Y.measurementRequestObserver)==null?void 0:u.next())},G)},SWt=function(Y){Y.lastMeasurementRequest!==null&&Y.timeProvider.clearTimeout(Y.lastMeasurementRequest);
Y.lastMeasurementRequest=null};
dc1.prototype.dispose=function(){SWt(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var NUR=function(){};var K1T=function(Y,G){this.context=Y;this.strategies=G};
_.m(K1T,NUR);K1T.prototype.buildGeometrySource=function(Y,G){var u=this.strategies.map(function(M){return M.buildGeometrySource(Y,G)}),O=$cy(u.map(function(M){return M.geometrySource})),Q=O.capturedErrors.pipe(je_());
return{geometrySource:O.chain.pipe(hD(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:Q,strategyErrors:O.capturedErrors}].concat(_.c8(u.map(function(M){return M.additionalOutputs}))))}};
var je_=function(){return FQ(function(Y,G){G instanceof Th?Y.push(G.measurementStrategyFailureReason):Y.push(-1);return Y},[])};var TcY=function(Y,G){this.context=Y;this.poller=G};
_.m(TcY,NUR);TcY.prototype.buildGeometrySource=function(Y,G){var u=qWT(cTa(this.context,this.poller),H2A(this.context,G.requestSource));return{geometrySource:B_U(Y.measurableCreative.pipe(u),G.inApp),additionalOutputs:{}}};var aEI=function(Y,G,u){u=u===void 0?LvA(Y,G):u;this.context=Y;this.intersectionObserverStrategy=u};
_.m(aEI,NUR);aEI.prototype.buildGeometrySource=function(Y,G){var u=this.intersectionObserverStrategy(G.useV2);return{geometrySource:B_U(Y.measurableCreative.pipe(u,glt(this.context)),G.inApp),additionalOutputs:{}}};var VGe=function(Y,G,u){var O=O===void 0?Symbol():O;this.element=Y;this.immediateUrls=G;this.timeOnScreenUrls=u;this.symbol=O};var hN1=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),GYt=Object.freeze([1,.75,hN1.exposureThreshold,hN1.largeAdExposureThreshold,0]);var uKY=function(Y,G){G=G===void 0?36E5:G;var u=u===void 0?!0:u;this.creatives=new ZG;this.elementsToUnregister=new ZG;this.elementMap=new Map;var O=new id(window,null);O.beaconFactory=new g0(O,new hm(O));tou(O,this.creatives,this.elementsToUnregister,Y,G,u).subscribe()},M$u=function(Y,G,u,O){if(!Y.elementMap.has(G)){var Q=new zh(G);
Y.elementMap.set(G,Q);Y.creatives.next(new VGe(Q,u,O))}},Q5A=function(Y,G){Y.elementsToUnregister.next(G);
var u=Y.elementMap.get(G);u!==void 0&&(u.release(),Y.elementMap.delete(G))};var nyI=function(Y){var G=Y.url;Y=Y.uaDataValues;this.JSC$9797_url_=G;this.uaDataValues_=Y;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var u=/[?&]([^&=]+)=([^&]*)/g;Y=u.exec(G);)this.urlParamValues_[Y[1]]=Y[2]},FaA=function(Y){Y=Y.uaDataValues_;
if(!Y)return"";var G=wX("uap",Y.platform)+wX("uapv",Y.platformVersion)+wX("uafv",Y.uaFullVersion)+wX("uaa",Y.architecture)+wX("uam",Y.model)+wX("uab",Y.bitness);Y.fullVersionList&&(G+="&uafvl="+encodeURIComponent(Y.fullVersionList.map(function(u){return encodeURIComponent(u.brand)+";"+encodeURIComponent(u.version)}).join("|")));
Y.wow64!=null&&(G+="&uaw="+Number(Y.wow64));return G.slice(1)};var l4I=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(l4I,_.Ps);l4I.prototype.getId=function(){return _.zy(this,1)};var VV=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(VV,_.Ps);VV.prototype.getSeconds=function(){return FU(this,1)};
VV.prototype.setSeconds=function(Y){return _.Hs(this,1,zx(Y),"0")};_.mz=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(_.mz,_.Ps);_.mz.prototype.getSeconds=function(){return FU(this,1)};
_.mz.prototype.setSeconds=function(Y){return _.Hs(this,1,zx(Y),"0")};
_.BUR=function(Y){var G=Number(Wa(Y,1));Y=_.Sh(Y,2);return new Date(G*1E3+Y/1E6)};var lT=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(lT,_.Ps);lT.prototype.getUrl=function(){return _.zy(this,1)};
lT.prototype.setUrl=function(Y){return _.DL(this,1,Y)};
lT.prototype.getHeight=function(){return _.Sh(this,2)};
lT.prototype.getWidth=function(){return _.Sh(this,3)};var BG=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(BG,_.Ps);BG.prototype.getAspectRatio=function(){return pc(this,1)};
BG.prototype.getDuration=function(){return _.QH(this,VV,2)};var $AT=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m($AT,_.Ps);var qyI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(qyI,_.Ps);var seV=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(seV,_.Ps);var cP2=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(cP2,_.Ps);var UAe=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(UAe,_.Ps);var vH2=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(vH2,_.Ps);var JPl=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(JPl,_.Ps);var YWX=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(YWX,_.Ps);var GXR=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(GXR,_.Ps);var $S=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m($S,_.Ps);var q1=[2,4,5,6,7];var uxX=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(uxX,_.Ps);var Pa=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Pa,_.Ps);_.H=Pa.prototype;_.H.getId=function(){return _.QH(this,l4I,1)};
_.H.getName=function(){return _.zy(this,2)};
_.H.setDescription=function(Y){return _.DL(this,3,Y)};
_.H.getUrl=function(){return _.zy(this,8)};
_.H.setUrl=function(Y){return _.DL(this,8,Y)};
var sS=function(Y){return _.dX(Y,lT,10,_.bd())};
Pa.prototype.getOwner=function(Y){return _.nOl(this,40,Y)};
var cG=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(cG,_.Ps);_.US=[0,hr,E6U];_.vG=[0,hr,E6U];var O2T=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(O2T,_.Ps);var Jm=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Jm,_.Ps);Jm.prototype.getStatus=function(){return _.mK(this,1)};
Jm.prototype.removeItem=function(Y){return XsM(this,2,Y)};var QE4=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(QE4,_.Ps);QE4.prototype.getName=function(){return _.zy(this,8)};var Y5=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Y5,_.Ps);Y5.prototype.getCommand=function(){return _.mK(this,1)};
Y5.prototype.getSource=function(){return _.QH(this,QE4,2)};
Y5.prototype.setVisible=function(Y){return _.P$(this,5,Y)};
Y5.prototype.removeItem=function(Y){return XsM(this,7,Y)};var ME4=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(ME4,_.Ps);ME4.prototype.getCommand=function(){return _.mK(this,1)};
ME4.prototype.removeItem=function(Y){return XsM(this,4,Y)};
var H2R=_.oh(ME4);var Gj=function(Y,G,u){u=u===void 0?Error():u;var O=Error.call(this);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.code=Y;G+=":";u instanceof Error?(this.message=G+u.message,this.stack=u.stack||""):(this.message=G+String(u),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(Gj,Error);_.Ey=function(){this.JSC$9855_disposed_=this.JSC$9855_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Ey.prototype.JSC$9855_disposed_=!1;_.Ey.prototype.isDisposed=function(){return this.JSC$9855_disposed_};
_.Ey.prototype.dispose=function(){this.JSC$9855_disposed_||(this.JSC$9855_disposed_=!0,this.disposeInternal())};
_.Ey.prototype[Symbol.dispose]=function(){this.dispose()};
_.vF=function(Y,G){Y.addOnDisposeCallback(_.H2(_.ZM,G))};
_.Ey.prototype.addOnDisposeCallback=function(Y,G){this.JSC$9855_disposed_?G!==void 0?Y.call(G):Y():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),G&&(Y=Y.bind(G)),this.onDisposeCallbacks_.push(Y))};
_.Ey.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var uJ=function(Y){_.Ey.call(this);this.wpc=Y};
_.m(uJ,_.Ey);uJ.prototype.suH=function(){return this.wpc.f()};
uJ.prototype.bxc=function(Y){return this.wpc.c(Y)};
uJ.prototype.hp=function(Y){return this.wpc.m(ryU(Y))};
uJ.prototype.owH=function(Y){return this.wpc.mws(ryU(Y))};
var hX=function(Y){_.Ey.call(this);var G=this;this.vm=Y;this.gnp="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.qXc=void 0;this.m7U=this.vm.p;this.zLp=this.kWo.bind(this);this.addOnDisposeCallback(function(){return void ElU(G)})};
_.m(hX,_.Ey);var tE_=function(Y){var G;return _.a(function(u){if(u.nextAddress==1){if(!Y.vm.wpc)throw new Gj(30,"NWA");return Y.h92?u.return(Y.h92):u.yield(Y.vm.wpc(),2)}G=u.yieldResult;Y.h92=new uJ(G);return u.return(Y.h92)})};
hX.prototype.snapshot=function(Y){return this.vm.s(Object.assign({},Y.eh&&{c:Y.eh},Y.x0U&&{s:Y.x0U},Y.obc!==void 0&&{p:Y.obc}))};
hX.prototype.kWo=function(Y){this.vm.e(Y)};
hX.prototype.du7=function(Y,G){return this.vm.c(Y,G,!1)};
var ElU=function(Y){Y.qXc!==void 0&&(Y.gnp.forEach(function(G){var u;(u=Y.qXc)==null||u.removeEventListener(G,Y.zLp)}),Y.qXc=void 0)};
hX.prototype.hs5=function(){return this.vm.l()};var OR=function(){_.Ey.apply(this,arguments);this.jDw=1};
_.m(OR,_.Ey);OR.prototype.share=function(){if(this.isDisposed())throw Error("qa");this.jDw++;return this};
OR.prototype.dispose=function(){--this.jDw||_.Ey.prototype.dispose.call(this)};var Kv_=function(Y){this.l5c=Y;Y.addNewEventMetric("/client_streamz/bg/frs",_.VF("mk"))};
Kv_.prototype.record=function(Y,G){this.l5c.record("/client_streamz/bg/frs",Y,G)};
var a1R=function(Y){this.bPL=Y;Y.addNewEventMetric("/client_streamz/bg/wrl",_.VF("mn"),jh("ac"),jh("sc"),_.VF("rk"),_.VF("mk"))};
a1R.prototype.record=function(Y,G,u,O,Q,M){this.bPL.record("/client_streamz/bg/wrl",Y,G,u,O,Q,M)};
var T_X=function(Y){this.qOq=Y;Y.addNewCounter("/client_streamz/bg/ec",_.VF("en"),_.VF("mk"))};
T_X.prototype.increment=function(Y,G){this.qOq.JSC$10108_incrementCounter("/client_streamz/bg/ec",Y,G)};
var Lvl=function(Y){this.xww=Y;Y.addNewEventMetric("/client_streamz/bg/el",_.VF("en"),_.VF("mk"))};
Lvl.prototype.record=function(Y,G,u){this.xww.record("/client_streamz/bg/el",Y,G,u)};
var gle=function(Y){this.vkV=Y;Y.addNewCounter("/client_streamz/bg/cec",jh("ec"),_.VF("mk"))};
gle.prototype.increment=function(Y,G){this.vkV.JSC$10108_incrementCounter("/client_streamz/bg/cec",Y,G)};
var XwR=function(Y){this.seF=Y;Y.addNewCounter("/client_streamz/bg/po/csc",jh("cs"),_.VF("mk"))};
XwR.prototype.increment=function(Y,G){this.seF.JSC$10108_incrementCounter("/client_streamz/bg/po/csc",Y,G)};
var PFe=function(Y){this.dwi=Y;Y.addNewCounter("/client_streamz/bg/po/ctav",_.VF("av"),_.VF("mk"))};
PFe.prototype.increment=function(Y,G){this.dwi.JSC$10108_incrementCounter("/client_streamz/bg/po/ctav",Y,G)};
var I1U=function(Y){this.izL=Y;Y.addNewCounter("/client_streamz/bg/po/cwsc",_.VF("su"),_.VF("mk"))};
I1U.prototype.increment=function(Y,G){this.izL.JSC$10108_incrementCounter("/client_streamz/bg/po/cwsc",Y,G)};var GRU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(GRU,_.Ps);var Y5u=function(Y,G){return _.QG(Y,3,G,AUa)};var kX1=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(kX1,_.Ps);var nlV=[1,2,3];var Fv_=[0,nlV,_.lO,tdI,TtU];var pwX=[0,_.Ba,[0,ZB,_.DB]];var zN2=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(zN2,_.Ps);var mcR=[1,2,3];var WvR=[0,mcR,MdI,YrR,_.$U,pwX];var rTI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(rTI,_.Ps);var xc2=[0,_.Ba,Fv_,WvR];var f1E=[0,_.j5];var CF1=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(CF1,_.Ps);var yTk=[0,_.j5,-1,_.S5];var eNT=[0,_.j5,-1,_.bO,_.S5];var AT1=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(AT1,_.Ps);var ol4=[1,2,3];var i2e=[0,ol4,_.$U,yTk,_.$U,eNT,_.$U,f1E];var RN2=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(RN2,_.Ps);RN2.prototype.JSC$9928_serializeBinary=K0A([0,_.j5,i2e,L0U,_.Ba,xc2,K0R,_.axI]);var wwE=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(wwE,_.Ps);var hNT=function(Y){var G=new RN2;G=_.E_(G,1,Y.JSC$10044_metricName);var u=Z24(Y);G=_.QG(G,3,u,_.Cx);u=[];for(var O=[],Q=_.E(Y.cellMap.keys()),M=Q.next();!M.done;M=Q.next())O.push(M.value.split(","));for(Q=0;Q<O.length;Q++){M=O[Q];for(var t=Y.cellType,K=Y.getCells(M)||[],L=[],g=0;g<K.length;g++){var P=K[g],I=P&&P.cellValue;P=new zN2;switch(t){case 3:I=Number(I);Number.isFinite(I)&&T5(P,1,mcR,zx(I));break;case 2:T5(P,2,mcR,_.uN(Number(I)))}L.push(P)}t=L;for(K=0;K<t.length;K++){L=t[K];g=new rTI;L=_.Rh(g,
2,L);g=[];P=DcV(Y);for(I=0;I<P.length;I++){var k=P[I],n=M[I],p=new kX1;switch(k){case 3:T5(p,1,nlV,eS(String(n)));break;case 2:k=Number(n);Number.isFinite(k)&&T5(p,2,nlV,_.Tx(k));break;case 1:T5(p,3,nlV,C_t(n==="true"))}g.push(p)}XU(L,1,g);u.push(L)}}XU(G,4,u);return G};var dcT=function(Y){if(!Y)return"";if(/^about:(?:blank|srcdoc)$/.test(Y))return window.origin||"";Y.indexOf("blob:")===0&&(Y=Y.substring(5));Y=Y.split("#")[0].split("?")[0];Y=Y.toLowerCase();Y.indexOf("//")==0&&(Y=window.location.protocol+Y);/^[\w\-]*:\/\//.test(Y)||(Y=window.location.href);var G=Y.substring(Y.indexOf("://")+3),u=G.indexOf("/");u!=-1&&(G=G.substring(0,u));u=Y.substring(0,Y.indexOf("://"));if(!u)throw Error("ra`"+Y);if(u!=="http"&&u!=="https"&&u!=="chrome-extension"&&u!=="moz-extension"&&
u!=="file"&&u!=="android-app"&&u!=="chrome-search"&&u!=="chrome-untrusted"&&u!=="chrome"&&u!=="app"&&u!=="devtools")throw Error("sa`"+u);Y="";var O=G.indexOf(":");if(O!=-1){var Q=G.substring(O+1);G=G.substring(0,O);if(u==="http"&&Q!=="80"||u==="https"&&Q!=="443")Y=":"+Q}return u+"://"+G+Y};var SWe=function(Y,G,u){var O=String(_.OI.location.href);return O&&Y&&G?[G,b2U(dcT(O),Y,u||null)].join(" "):null},b2U=function(Y,G,u){var O=[],Q=[];
if((Array.isArray(u)?2:1)==1)return Q=[G,Y],_.jo(O,function(K){Q.push(K)}),N_e(Q.join(" "));
var M=[],t=[];_.jo(u,function(K){t.push(K.key);M.push(K.value)});
u=Math.floor((new Date).getTime()/1E3);Q=M.length==0?[u,G,Y]:[M.join(":"),u,G,Y];_.jo(O,function(K){Q.push(K)});
Y=N_e(Q.join(" "));Y=[u,Y];t.length==0||Y.push(t.join(""));return Y.join("_")},N_e=function(Y){var G=iHY();
G.update(Y);return G.digestString().toLowerCase()};var jET;_.H=ld.prototype;_.H.isEnabled=function(){if(!_.OI.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(Y,G,u){var O=!1;if(typeof u==="object"){var Q=u.sameSite;O=u.secure||!1;var M=u.domain||void 0;var t=u.path||void 0;var K=u.maxAge}if(/[;=\s]/.test(Y))throw Error("ta`"+Y);if(/[;\r\n]/.test(G))throw Error("ua`"+G);K===void 0&&(K=-1);u=M?";domain="+M:"";t=t?";path="+t:"";O=O?";secure":"";K=K<0?"":K==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+K*1E3)).toUTCString();this.JSC$9939_document_.cookie=Y+"="+G+u+t+K+O+(Q!=null?";samesite="+Q:"")};
_.H.get=function(Y,G){for(var u=Y+"=",O=(this.JSC$9939_document_.cookie||"").split(";"),Q=0,M;Q<O.length;Q++){M=IU(O[Q]);if(M.lastIndexOf(u,0)==0)return M.slice(u.length);if(M==Y)return""}return G};
_.H.remove=function(Y,G,u){var O=this.containsKey(Y);this.set(Y,"",{maxAge:0,path:G,domain:u});return O};
_.H.getKeys=function(){return jET(this).keys};
_.H.getValues=function(){return jET(this).values};
_.H.isEmpty=function(){return!this.JSC$9939_document_.cookie};
_.H.getCount=function(){return this.JSC$9939_document_.cookie?(this.JSC$9939_document_.cookie||"").split(";").length:0};
_.H.containsKey=function(Y){return this.get(Y)!==void 0};
_.H.containsValue=function(Y){for(var G=jET(this).values,u=0;u<G.length;u++)if(G[u]==Y)return!0;return!1};
_.H.clear=function(){for(var Y=jET(this).keys,G=Y.length-1;G>=0;G--)this.remove(Y[G])};
jET=function(Y){Y=(Y.JSC$9939_document_.cookie||"").split(";");for(var G=[],u=[],O,Q,M=0;M<Y.length;M++)Q=IU(Y[M]),O=Q.indexOf("="),O==-1?(G.push(""),u.push(Q)):(G.push(Q.substring(0,O)),u.push(Q.substring(O+1)));return{keys:G,values:u}};
_.TR=new ld(typeof document=="undefined"?null:document);var VDA,VEk;VDA=function(){var Y=_.OI.__SAPISID||_.OI.__APISID||_.OI.__3PSAPISID||_.OI.__1PSAPISID||_.OI.__OVERRIDE_SID;if(Y)return!0;typeof document!=="undefined"&&(Y=new ld(document),Y=Y.get("SAPISID")||Y.get("APISID")||Y.get("__Secure-3PAPISID")||Y.get("__Secure-1PAPISID"));return!!Y};
VEk=function(Y,G,u,O){(Y=_.OI[Y])||typeof document==="undefined"||(Y=(new ld(document)).get(G));return Y?SWe(Y,u,O):null};
_.qxt=function(Y){var G=dcT(_.OI==null?void 0:_.OI.location.href),u=[];if(VDA()){G=G.indexOf("https:")==0||G.indexOf("chrome-extension:")==0||G.indexOf("chrome-untrusted://new-tab-page")==0||G.indexOf("moz-extension:")==0;var O=G?_.OI.__SAPISID:_.OI.__APISID;O||typeof document==="undefined"||(O=new ld(document),O=O.get(G?"SAPISID":"APISID")||O.get("__Secure-3PAPISID"));(O=O?SWe(O,G?"SAPISIDHASH":"APISIDHASH",Y):null)&&u.push(O);G&&((G=VEk("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",Y))&&u.push(G),
(Y=VEk("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",Y))&&u.push(Y))}return u.length==0?null:u.join(" ")};var l1k=function(){this.minSize=1024};
l1k.prototype.compress=function(Y){var G,u,O,Q;return _.a(function(M){switch(M.nextAddress){case 1:return G=new CompressionStream("gzip"),u=(new Response(G.readable)).arrayBuffer(),O=G.writable.getWriter(),M.yield(O.write((new TextEncoder).encode(Y)),2);case 2:return M.yield(O.close(),3);case 3:return Q=Uint8Array,M.yield(u,4);case 4:return M.return(new Q(M.yieldResult))}})};
l1k.prototype.isSupported=function(Y){return Y<this.minSize?!1:typeof CompressionStream!=="undefined"};var B_X=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(B_X,_.Ps);var QB=function(Y,G){this.intervalMs=Y;this.callback=G;this.enabled=!1;this.nowFn=function(){return _.$M()};
this.lastTimeMs=this.nowFn()};
QB.prototype.setInterval=function(Y){this.intervalMs=Y;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
QB.prototype.start=function(){var Y=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){Y.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
QB.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
QB.prototype.tick=function(){var Y=this;if(this.enabled){var G=Math.max(this.nowFn()-this.lastTimeMs,0);G<this.intervalMs*.8?this.timer=setTimeout(function(){Y.tick()},this.intervalMs-G):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var $c_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m($c_,_.Ps);var qWR=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(qWR,_.Ps);var sE1=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(sE1,_.Ps);sE1.prototype.getTransmissionType=function(){return _.mK(this,1)};
sE1.prototype.getRetryCount=function(){return _.Sh(this,3)};var D3t=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(D3t,_.Ps);var MO=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(MO,_.Ps);var ZHg=function(Y){XU(hPj,1,Y)};
MO.prototype.getModel=function(){return _.zy(this,6)};
var cTk=_.oh(MO);var UcU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(UcU,_.Ps);var RPY=["platform","platformVersion","architecture","model","uaFullVersion"],hPj=new MO,w4A=null;var Hp=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Hp,_.Ps);var vlR=function(Y){return _.MC(Y,1,1)};var JT_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y,4)};
_.m(JT_,_.Ps);_.ER=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y,36)};
_.m(_.ER,_.Ps);_.ER.prototype.getExperimentIds=function(){return _.QH(this,B_X,16)};var YHM=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y,19)};
_.m(YHM,_.Ps);YHM.prototype.setLogSource=function(Y){return _.MC(this,2,Y)};
YHM.prototype.setScheduler=function(Y){return _.MC(this,10,Y)};var u42=function(Y,G){this.isServiceWorkerScope=G=G===void 0?!1:G;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new YHM;Number.isInteger(Y)&&this.logRequest.setLogSource(Y);G||(this.locale=document.documentElement.getAttribute("lang"));GYV(this,new Hp)};
u42.prototype.setLogSource=function(Y){this.logRequest.setLogSource(Y);return this};
var GYV=function(Y,G){_.Rh(Y.logRequest,1,G);_.mK(G,1)||vlR(G);Y.isServiceWorkerScope||(G=aO(Y),_.zy(G,5)||_.E_(G,5,Y.locale));Y.uach&&(G=aO(Y),_.QH(G,MO,9)||_.Rh(G,9,Y.uach))},OH4=function(Y,G){Y.transmissionType=G},Q14=function(Y){var G=G===void 0?RPY:G;
var u=Y.isServiceWorkerScope?void 0:kI();u?d3j(u,G).then(function(O){Y.uach=cTk(O!=null?O:"[]");O=aO(Y);_.Rh(O,9,Y.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},aO=function(Y){var G=_.QH(Y.logRequest,Hp,1);
G||(G=new Hp,GYV(Y,G));Y=G;G=_.QH(Y,UcU,11);G||(G=new UcU,_.Rh(Y,11,G));return G};
u42.prototype.build=function(Y,G,u,O,Q,M){G=G===void 0?0:G;u=u===void 0?0:u;O=O===void 0?null:O;Q=Q===void 0?0:Q;M=M===void 0?0:M;if(!this.isServiceWorkerScope){var t=aO(this);var K=new sE1;K=_.MC(K,1,this.transmissionType);K=_.BF(K,2,this.isFinal);u=_.Cc(K,3,u>0?u:void 0);u=_.Cc(u,4,Q>0?Q:void 0);u=_.Cc(u,5,M>0?M:void 0);Q=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;M=Q[_.KT]|0;u=eR(u,M)?u:bx4(u,Q,M)?d91(u,Q):new u.constructor(V9(Q,M,!0));_.Rh(t,10,u)}t=this.logRequest.clone();u=Date.now().toString();
t=_.Hj(t,4,zx(u));Y=Y.slice();Y=XU(t,3,Y);O&&(t=new $c_,O=_.Cc(t,13,O),t=new qWR,O=_.Rh(t,2,O),t=new JT_,O=_.Rh(t,1,O),O=_.MC(O,2,9),_.Rh(Y,18,O));G&&_.F3(Y,14,G);return Y};$I.prototype.currBackoffCount_=0;$I.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
$I.prototype.getValue=function(){return this.currValue_};
var Mol=function(Y){Y.currBaseValue_=Math.min(Y.maxValue_,Y.currBaseValue_*Y.backoffFactor_);Y.currValue_=Math.min(Y.maxValue_,Y.currBaseValue_+(Y.randomFactor_?Math.round(Y.randomFactor_*(Math.random()-.5)*2*Y.currBaseValue_):0));Y.currBackoffCount_++};var koR=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y,8)};
_.m(koR,_.Ps);var HH2=_.oh(koR);var n6e=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(n6e,_.Ps);var Tj;Tj=new F0l;var LV=function(Y){_.Ey.call(this);var G=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$10017_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$10017_sendBeaconApiEnabled=!1;this.logSource=Y.logSource;this.getAuthHeaderValue=
Y.getAuthHeaderValue||function(){};
this.logRequestBuilder=new u42(Y.logSource,Y.isServiceWorkerScope);this.network=Y.network||null;this.productID=Y.productID||null;this.bufferSize=1E3;this.clearcutUrl=Y.urlOverride||null;this.sessionIndex=Y.sessionIndex||null;this.disableAutomaticFlush=Y.disableAutomaticFlush||!1;this.withCredentials=!Y.disableWithCredentials;this.isServiceWorkerScope=Y.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!kI()&&!!kI().navigator&&kI().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(E42())).searchParams&&!!(new URL(E42())).searchParams.set;var u=vlR(new Hp);GYV(this.logRequestBuilder,u);this.flushBackoff=new $I(1E4,3E5,.1);Y=to1(this,Y.backgroundJobDeferrer);this.JSC$10017_flushTimer=new QB(this.flushBackoff.getValue(),Y);this.backupTimer=new QB(6E5,Y);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){K1R(G);
var O;(O=G.metalogService)==null||O.flush()}}),document.addEventListener("pagehide",function(){K1R(G);
var O;(O=G.metalogService)==null||O.flush()}))};
_.m(LV,_.Ey);var to1=function(Y,G){return Y.isBrowserSupported?G?function(){G().then(function(){Y.flush()})}:function(){Y.flush()}:function(){}};
LV.prototype.disposeInternal=function(){K1R(this);this.JSC$10017_flushTimer.stop();this.backupTimer.stop();_.Ey.prototype.disposeInternal.call(this)};
var aE4=function(Y){Y.clearcutUrl||(Y.clearcutUrl=E42());try{return(new URL(Y.clearcutUrl)).toString()}catch(G){return(new URL(Y.clearcutUrl,kI().location.origin)).toString()}};
LV.prototype.dispatch=function(Y){if(Y instanceof _.ER)this.log(Y);else try{var G=new _.ER,u=Y.serialize();var O=_.E_(G,8,u);this.log(O)}catch(Q){gf(this,4,1)}};
var gf=function(Y,G,u){Y.metalogService&&Y.metalogService.increment(G,u)};
LV.prototype.log=function(Y){gf(this,2,1);if(this.isBrowserSupported){Y=Y.clone();var G=this.sequencePosition++;Y=_.F3(Y,21,G);this.componentId&&_.E_(Y,26,this.componentId);G=Y;if(BRj(_.Kc(G,1))==null){var u=Date.now();u=Number.isFinite(u)?u.toString():"0";_.Hj(G,1,zx(u))}_.Psl(G,15)!=null||_.F3(G,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(u=this.experimentIds.clone(),_.Rh(G,16,u));gf(this,1,1);G=this.pendingEvents.length-this.bufferSize+1;G>0&&(this.pendingEvents.splice(0,G),this.numLogsDroppedSinceLastFlush+=
G,gf(this,3,G));this.pendingEvents.push(Y);this.disableAutomaticFlush||this.JSC$10017_flushTimer.enabled||this.JSC$10017_flushTimer.start()}};
LV.prototype.flush=function(Y,G){var u=this;if(this.pendingEvents.length===0)Y&&Y();else if(this.JSC$10017_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,TcU(this);else{var O=Date.now();if(this.noFlushUntilMs>O&&this.startWaitingMs<O)G&&G("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?OH4(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var Q=this.pendingEvents.length,
M=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),t=this.getAuthHeaderValue();if(t&&this.lastFailedAuth===t)G&&G("stale-auth-token");else{this.pendingEvents=[];this.JSC$10017_flushTimer.enabled&&this.JSC$10017_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;O=M.serialize();var K;this.JSC$10017_compressor&&this.JSC$10017_compressor.isSupported(O.length)&&
(K=this.JSC$10017_compressor.compress(O));var L=L12(this,O,t),g=function(k){u.flushBackoff.reset();u.JSC$10017_flushTimer.setInterval(u.flushBackoff.getValue());if(k){var n=null;try{var p=JSON.stringify(JSON.parse(k.replace(")]}'\n","")));n=HH2(p)}catch(W){}n&&(k=Number(FU(n,1,_.hU("-1"))),k>0&&(u.startWaitingMs=Date.now(),u.noFlushUntilMs=u.startWaitingMs+k),Xbt(n.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Tj.fieldIndex),LyY(n,Tj.fieldIndex),n=Tj.ctor?Tj.getExtensionFn(n,Tj.ctor,Tj.fieldIndex,
Tj.JSC$9197_hasMessageId):Tj.getExtensionFn(n,Tj.fieldIndex,null,Tj.JSC$9197_hasMessageId),n=n===null?void 0:n)&&(n=_.Sh(n,1,-1),n!==-1&&(u.flushBackoff=new $I(n<1?1:n,3E5,.1),u.JSC$10017_flushTimer.setInterval(u.flushBackoff.getValue())))}Y&&Y();u.numRetriesSinceLastSuccessfulFlush=0},P=function(k,n){var p=_.dX(M,_.ER,3,_.bd());
var W=Number(FU(M,14));Mol(u.flushBackoff);u.JSC$10017_flushTimer.setInterval(u.flushBackoff.getValue());k===401&&t&&(u.lastFailedAuth=t);W&&(u.numLogsDroppedSinceLastFlush+=W);n===void 0&&(n=u.isRetryable(k));n&&(u.pendingEvents=p.concat(u.pendingEvents),u.disableAutomaticFlush||u.JSC$10017_flushTimer.enabled||u.JSC$10017_flushTimer.start());gf(u,7,1);G&&G("net-send-failed",k);++u.numRetriesSinceLastSuccessfulFlush},I=function(){u.network&&u.network.send(L,g,P)};
K?K.then(function(k){gf(u,5,Q);L.requestHeaders["Content-Encoding"]="gzip";L.requestHeaders["Content-Type"]="application/binary";L.body=k;L.bodyType=2;I()},function(){gf(u,6,Q);
I()}):I()}}}};
var L12=function(Y,G,u){u=u===void 0?null:u;var O=O===void 0?Y.withCredentials:O;var Q={},M=new URL(aE4(Y));u&&(Q.Authorization=u);Y.sessionIndex&&(Q["X-Goog-AuthUser"]=Y.sessionIndex,M.searchParams.set("authuser",Y.sessionIndex));Y.pageId&&(Object.defineProperty(Q,"X-Goog-PageId",{value:Y.pageId}),M.searchParams.set("pageId",Y.pageId));return{url:M.toString(),body:G,bodyType:1,requestHeaders:Q,requestType:"POST",withCredentials:O,timeoutMillis:Y.timeoutMillis}},K1R=function(Y){Y.logRequestBuilder.isFinal=
!0;
Y.flush();Y.logRequestBuilder.isFinal=!1},TcU=function(Y){g4I(Y,function(G,u){G=new URL(G);
G.searchParams.set("format","json");var O=!1;try{O=kI().navigator.sendBeacon(G.toString(),u.serialize())}catch(Q){}O||(Y.isSendBeaconSupported=!1);return O})},g4I=function(Y,G){if(Y.pendingEvents.length!==0){var u=new URL(aE4(Y));
u.searchParams.delete("format");var O=Y.getAuthHeaderValue();O&&u.searchParams.set("auth",O);u.searchParams.set("authuser",Y.sessionIndex||"0");for(O=0;O<10&&Y.pendingEvents.length;++O){var Q=Y.pendingEvents.slice(0,32),M=Y.logRequestBuilder.build(Q,Y.numLogsDroppedSinceLastFlush,Y.numRetriesSinceLastSuccessfulFlush,Y.productID,Y.persistedLogRecoveredCount,Y.persistedLogExpiredCount);if(!G(u.toString(),M)){++Y.numRetriesSinceLastSuccessfulFlush;break}Y.numLogsDroppedSinceLastFlush=0;Y.numRetriesSinceLastSuccessfulFlush=
0;Y.persistedLogRecoveredCount=0;Y.persistedLogExpiredCount=0;Y.pendingEvents=Y.pendingEvents.slice(Q.length)}Y.JSC$10017_flushTimer.enabled&&Y.JSC$10017_flushTimer.stop()}};
LV.prototype.isRetryable=function(Y){return 500<=Y&&Y<600||Y===401||Y===0};
var E42=function(){return"https://play.google.com/log?format=json&hasfast=true"};var X41=function(){this.abortSupported=typeof AbortController!=="undefined"};
X41.prototype.send=function(Y,G,u){var O=this,Q,M,t,K,L,g,P,I,k,n;return _.a(function(p){switch(p.nextAddress){case 1:return M=(Q=O.abortSupported?new AbortController:void 0)?setTimeout(function(){Q.abort()},Y.timeoutMillis):void 0,_.i3(p,2,3),t=Object.assign({},{method:Y.requestType,
headers:Object.assign({},Y.requestHeaders)},Y.body&&{body:Y.body},Y.withCredentials&&{credentials:"include"},{signal:Y.timeoutMillis&&Q?Q.signal:null}),p.yield(fetch(Y.url,t),5);case 5:K=p.yieldResult;if(K.status!==200){(L=u)==null||L(K.status);p.jumpTo(3);break}if((g=G)==null){p.jumpTo(7);break}return p.yield(K.text(),8);case 8:g(p.yieldResult);case 7:case 3:_.wt(p);clearTimeout(M);_.dt(p,0);break;case 2:P=_.b3(p);switch((I=P)==null?void 0:I.name){case "AbortError":(k=u)==null||k(408);break;default:(n=
u)==null||n(400)}p.jumpTo(3)}})};
X41.prototype.getTransmissionType=function(){return 4};_.U_=function(Y,G){G=G===void 0?"0":G;_.Ey.call(this);this.logSource=Y;this.sessionIndex=G;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$10035_clearExperimentIds=this.productID=null;this.JSC$10035_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.m(_.U_,_.Ey);var U31=function(Y,G){Y.buildLabel=G;return Y},cyu=function(Y,G){Y.network=G;
return Y},Jyj=function(Y,G){Y.JSC$10035_clearExperimentIds=G},s1A=function(Y){Y.JSC$10035_sendBeaconApiEnabled=!0;
return Y};
_.U_.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.U_.prototype.build=function(){this.network||(this.network=new X41);var Y=new LV({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.qxt,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.vF(this,Y);if(this.buildLabel){var G=this.buildLabel,u=
aO(Y.logRequestBuilder);_.E_(u,7,G)}Y.JSC$10017_compressor=new l1k;this.componentId&&(Y.componentId=this.componentId);this.productID&&(Y.productID=this.productID);this.pageId&&(Y.pageId=this.pageId);this.JSC$10035_clearExperimentIds&&((u=this.JSC$10035_clearExperimentIds)?(Y.experimentIds||(Y.experimentIds=new B_X),G=Y.experimentIds,u=u.serialize(),_.E_(G,4,u)):Y.experimentIds&&_.Hj(Y.experimentIds,4));this.JSC$10035_sendBeaconApiEnabled&&(Y.JSC$10017_sendBeaconApiEnabled=Y.isSendBeaconSupported);
Q14(Y.logRequestBuilder);this.bufferSize&&(Y.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(Y);return Y};var uwA=function(Y,G,u,O,Q,M,t){Y=Y===void 0?-1:Y;G=G===void 0?"":G;u=u===void 0?"":u;O=O===void 0?!1:O;Q=Q===void 0?"":Q;_.Ey.call(this);this.logSource=Y;this.componentId=G;M?G=M:(Y=new _.U_(Y,"0"),Y.componentId=G,_.vF(this,Y),u!==""&&(Y.destinationUrl=u),O&&(Y.serviceWorkerScopeEnabled=!0),Q&&U31(Y,Q),t&&cyu(Y,t),G=Y.build());this.JSC$10039_transport=G};
_.m(uwA,_.Ey);uwA.prototype.flush=function(Y){Y=Y||[];if(Y.length){for(var G=new wwE,u=[],O=0;O<Y.length;O++){var Q=Y[O],M=hNT(Q);u.push(M);Q.clear()}XU(G,1,u);this.JSC$10039_transport.dispatch(G);this.JSC$10039_transport.flush()}};var PiV=function(Y){this.cellValue=Y};var X_=function(Y,G,u){this.JSC$10044_metricName=Y;this.cellType=G;this.fields=u||[];this.cellMap=new Map},DcV=function(Y){return Y.fields.map(function(G){return G.fieldType})},Z24=function(Y){return Y.fields.map(function(G){return G.fieldName})};
_.H=X_.prototype;_.H.addCell=function(Y){var G=_.vs.apply(1,arguments),u=this.getCells(G);u?u.push(new PiV(Y)):this.JSC$10044_setCell(Y,G)};
_.H.JSC$10044_setCell=function(Y){var G=this.JSC$10044_getKey(_.vs.apply(1,arguments));this.cellMap.set(G,[new PiV(Y)])};
_.H.getCells=function(){var Y=this.JSC$10044_getKey(_.vs.apply(0,arguments));return this.cellMap.has(Y)?this.cellMap.get(Y):void 0};
_.H.getCell=function(){var Y=this.getCells(_.vs.apply(0,arguments));return Y&&Y.length?Y[0]:void 0};
_.H.clear=function(){this.cellMap.clear()};
_.H.JSC$10044_getKey=function(){var Y=_.vs.apply(0,arguments);return Y?Y.join(","):"key"};var IEl=function(Y,G){X_.call(this,Y,3,G)};
_.m(IEl,X_);IEl.prototype.JSC$10047_incrementCounterBy=function(Y){var G=_.vs.apply(1,arguments),u=0,O=this.getCell(G);O&&(u=O.cellValue);this.JSC$10044_setCell(u+Y,G)};var kYI=function(Y,G){X_.call(this,Y,2,G)};
_.m(kYI,X_);kYI.prototype.record=function(Y){this.addCell(Y,_.vs.apply(1,arguments))};_.Pp=function(Y){this.id=Y};
_.Pp.prototype.toString=function(){return this.id};_.lI=function(Y,G){this.type=Y instanceof _.Pp?String(Y):Y;this.currentTarget=this.target=G;this.defaultPrevented=this.propagationStopped_=!1};
_.lI.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.lI.prototype.preventDefault=function(){this.defaultPrevented=!0};_.IO=function(Y,G){_.lI.call(this,Y?Y.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;Y&&this.init(Y,G)};
_.qz(_.IO,_.lI);
_.IO.prototype.init=function(Y,G){var u=this.type=Y.type,O=Y.changedTouches&&Y.changedTouches.length?Y.changedTouches[0]:null;this.target=Y.target||Y.srcElement;this.currentTarget=G;G=Y.relatedTarget;G||(u=="mouseover"?G=Y.fromElement:u=="mouseout"&&(G=Y.toElement));this.relatedTarget=G;O?(this.clientX=O.clientX!==void 0?O.clientX:O.pageX,this.clientY=O.clientY!==void 0?O.clientY:O.pageY,this.screenX=O.screenX||0,this.screenY=O.screenY||0):(this.offsetX=_.Mt||Y.offsetX!==void 0?Y.offsetX:Y.layerX,
this.offsetY=_.Mt||Y.offsetY!==void 0?Y.offsetY:Y.layerY,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.button=Y.button;this.keyCode=Y.keyCode||0;this.key=Y.key||"";this.charCode=Y.charCode||(u=="keypress"?Y.keyCode:0);this.ctrlKey=Y.ctrlKey;this.altKey=Y.altKey;this.shiftKey=Y.shiftKey;this.metaKey=Y.metaKey;this.pointerId=Y.pointerId||0;this.pointerType=Y.pointerType;this.state=Y.state;
this.timeStamp=Y.timeStamp;this.event_=Y;Y.defaultPrevented&&_.IO.superClass_.preventDefault.call(this)};
_.IO.prototype.isButton=function(Y){return this.event_.button==Y};
_.IO.prototype.stopPropagation=function(){_.IO.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.IO.prototype.preventDefault=function(){_.IO.superClass_.preventDefault.call(this);var Y=this.event_;Y.preventDefault?Y.preventDefault():Y.returnValue=!1};var n4T="closure_listenable_"+(Math.random()*1E6|0),k5=function(Y){return!(!Y||!Y[n4T])};var bHY=0;var F14=function(Y){Y.removed=!0;Y.listener=null;Y.proxy=null;Y.src=null;Y.handler=null};qU.prototype.add=function(Y,G,u,O,Q){var M=Y.toString();Y=this.listeners[M];Y||(Y=this.listeners[M]=[],this.typeCount_++);var t=p4U(Y,G,O,Q);t>-1?(G=Y[t],u||(G.callOnce=!1)):(G=new SHj(G,this.src,M,!!O,Q),G.callOnce=u,Y.push(G));return G};
qU.prototype.remove=function(Y,G,u,O){Y=Y.toString();if(!(Y in this.listeners))return!1;var Q=this.listeners[Y];G=p4U(Q,G,u,O);return G>-1?(F14(Q[G]),_.oa1(Q,G),Q.length==0&&(delete this.listeners[Y],this.typeCount_--),!0):!1};
var zPR=function(Y,G){var u=G.type;if(!(u in Y.listeners))return!1;var O=_.Nj(Y.listeners[u],G);O&&(F14(G),Y.listeners[u].length==0&&(delete Y.listeners[u],Y.typeCount_--));return O};
qU.prototype.removeAll=function(Y){Y=Y&&Y.toString();var G=0,u;for(u in this.listeners)if(!Y||u==Y){for(var O=this.listeners[u],Q=0;Q<O.length;Q++)++G,F14(O[Q]);delete this.listeners[u];this.typeCount_--}return G};
qU.prototype.getListener=function(Y,G,u,O){Y=this.listeners[Y.toString()];var Q=-1;Y&&(Q=p4U(Y,G,u,O));return Q>-1?Y[Q]:null};
qU.prototype.hasListener=function(Y,G){var u=Y!==void 0,O=u?Y.toString():"",Q=G!==void 0;return _.gX.some(this.listeners,function(M){for(var t=0;t<M.length;++t)if(!(u&&M[t].type!=O||Q&&M[t].capture!=G))return!0;return!1})};
var p4U=function(Y,G,u,O){for(var Q=0;Q<Y.length;++Q){var M=Y[Q];if(!M.removed&&M.listener==G&&M.capture==!!u&&M.handler==O)return Q}return-1};var m34,W1U,ryX,fEE,Ci2,n7,tR,AdT,yy_,ePM,nV,Ay1,x32;m34="closure_lm_"+(Math.random()*1E6|0);W1U={};ryX=0;_.yn=function(Y,G,u,O,Q){if(O&&O.once)return n7(Y,G,u,O,Q);if(Array.isArray(G)){for(var M=0;M<G.length;M++)_.yn(Y,G[M],u,O,Q);return null}u=x32(u);return k5(Y)?Y.listen(G,u,_.$a(O)?!!O.capture:!!O,Q):fEE(Y,G,u,!1,O,Q)};
fEE=function(Y,G,u,O,Q,M){if(!G)throw Error("wa");var t=_.$a(Q)?!!Q.capture:!!Q,K=nV(Y);K||(Y[m34]=K=new qU(Y));u=K.add(G,u,O,t,M);if(u.proxy)return u;O=Ci2();u.proxy=O;O.src=Y;O.listener=u;if(Y.addEventListener)_.qr4||(Q=t),Q===void 0&&(Q=!1),Y.addEventListener(G.toString(),O,Q);else if(Y.attachEvent)Y.attachEvent(yy_(G.toString()),O);else if(Y.addListener&&Y.removeListener)Y.addListener(O);else throw Error("xa");ryX++;return u};
Ci2=function(){var Y=ePM,G=function(u){return Y.call(G.src,G.listener,u)};
return G};
n7=function(Y,G,u,O,Q){if(Array.isArray(G)){for(var M=0;M<G.length;M++)n7(Y,G[M],u,O,Q);return null}u=x32(u);return k5(Y)?Y.listenOnce(G,u,_.$a(O)?!!O.capture:!!O,Q):fEE(Y,G,u,!0,O,Q)};
_.F_=function(Y,G,u,O,Q){if(Array.isArray(G))for(var M=0;M<G.length;M++)_.F_(Y,G[M],u,O,Q);else O=_.$a(O)?!!O.capture:!!O,u=x32(u),k5(Y)?Y.unlisten(G,u,O,Q):Y&&(Y=nV(Y))&&(G=Y.getListener(G,u,O,Q))&&tR(G)};
tR=function(Y){if(typeof Y==="number"||!Y||Y.removed)return!1;var G=Y.src;if(k5(G))return zPR(G.eventTargetListeners_,Y);var u=Y.type,O=Y.proxy;G.removeEventListener?G.removeEventListener(u,O,Y.capture):G.detachEvent?G.detachEvent(yy_(u),O):G.addListener&&G.removeListener&&G.removeListener(O);ryX--;(u=nV(G))?(zPR(u,Y),u.typeCount_==0&&(u.src=null,G[m34]=null)):F14(Y);return!0};
AdT=function(Y,G,u,O,Q){u=x32(u);O=!!O;return k5(Y)?Y.getListener(G,u,O,Q):Y?(Y=nV(Y))?Y.getListener(G,u,O,Q):null:null};
yy_=function(Y){return Y in W1U?W1U[Y]:W1U[Y]="on"+Y};
ePM=function(Y,G){if(Y.removed)Y=!0;else{G=new _.IO(G,this);var u=Y.listener,O=Y.handler||Y.src;Y.callOnce&&tR(Y);Y=u.call(O,G)}return Y};
nV=function(Y){Y=Y[m34];return Y instanceof qU?Y:null};
Ay1="__closure_events_fn_"+(Math.random()*1E9>>>0);x32=function(Y){if(typeof Y==="function")return Y;Y[Ay1]||(Y[Ay1]=function(G){return Y.handleEvent(G)});
return Y[Ay1]};_.C7=function(){_.Ey.call(this);this.eventTargetListeners_=new qU(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.qz(_.C7,_.Ey);_.C7.prototype[n4T]=!0;_.H=_.C7.prototype;_.H.setParentEventTarget=function(Y){this.parentEventTarget_=Y};
_.H.addEventListener=function(Y,G,u,O){_.yn(this,Y,G,u,O)};
_.H.removeEventListener=function(Y,G,u,O){_.F_(this,Y,G,u,O)};
_.H.dispatchEvent=function(Y){var G,u=this.parentEventTarget_;if(u)for(G=[];u;u=u.parentEventTarget_)G.push(u);u=this.actualEventTarget_;var O=Y.type||Y;if(typeof Y==="string")Y=new _.lI(Y,u);else if(Y instanceof _.lI)Y.target=Y.target||u;else{var Q=Y;Y=new _.lI(O,u);_.gX.extend(Y,Q)}Q=!0;var M;if(G)for(M=G.length-1;!Y.propagationStopped_&&M>=0;M--){var t=Y.currentTarget=G[M];Q=o4E(t,O,!0,Y)&&Q}Y.propagationStopped_||(t=Y.currentTarget=u,Q=o4E(t,O,!0,Y)&&Q,Y.propagationStopped_||(Q=o4E(t,O,!1,Y)&&
Q));if(G)for(M=0;!Y.propagationStopped_&&M<G.length;M++)t=Y.currentTarget=G[M],Q=o4E(t,O,!1,Y)&&Q;return Q};
_.H.disposeInternal=function(){_.C7.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.H.listen=function(Y,G,u,O){return this.eventTargetListeners_.add(String(Y),G,!1,u,O)};
_.H.listenOnce=function(Y,G,u,O){return this.eventTargetListeners_.add(String(Y),G,!0,u,O)};
_.H.unlisten=function(Y,G,u,O){return this.eventTargetListeners_.remove(String(Y),G,u,O)};
_.H.removeAllListeners=function(Y){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(Y):0};
var o4E=function(Y,G,u,O){G=Y.eventTargetListeners_.listeners[String(G)];if(!G)return!0;G=G.concat();for(var Q=!0,M=0;M<G.length;++M){var t=G[M];if(t&&!t.removed&&t.capture==u){var K=t.listener,L=t.handler||t.src;t.callOnce&&zPR(Y.eventTargetListeners_,t);Q=K.call(L,O)!==!1&&Q}}return Q&&!O.defaultPrevented};
_.C7.prototype.getListener=function(Y,G,u,O){return this.eventTargetListeners_.getListener(String(Y),G,u,O)};
_.C7.prototype.hasListener=function(Y,G){return this.eventTargetListeners_.hasListener(Y!==void 0?String(Y):void 0,G)};var pV=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(Y){return Y&&AsyncContext.Snapshot.wrap(Y)}:function(Y){return Y};var iHU=function(Y,G){this.create_=Y;this.reset_=G;this.occupants_=0;this.JSC$10079_head_=null};
iHU.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var Y=this.JSC$10079_head_;this.JSC$10079_head_=Y.next;Y.next=null}else Y=this.create_();return Y};
iHU.prototype.put=function(Y){this.reset_(Y);this.occupants_<100&&(this.occupants_++,Y.next=this.JSC$10079_head_,this.JSC$10079_head_=Y)};var RPU=function(){this.workTail_=this.workHead_=null};
RPU.prototype.add=function(Y,G){var u=j1Y.get();u.set(Y,G);this.workTail_?this.workTail_.next=u:this.workHead_=u;this.workTail_=u};
RPU.prototype.remove=function(){var Y=null;this.workHead_&&(Y=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),Y.next=null);return Y};
var j1Y=new iHU(function(){return new w4R},function(Y){return Y.reset()}),w4R=function(){this.next=this.scope=this.fn=null};
w4R.prototype.set=function(Y,G){this.fn=Y;this.scope=G;this.next=null};
w4R.prototype.reset=function(){this.next=this.scope=this.fn=null};var ZH2,Vo4,NcA,D3V;Vo4=!1;NcA=new RPU;_.zj=function(Y,G){ZH2||D3V();Vo4||(ZH2(),Vo4=!0);NcA.add(Y,G)};
D3V=function(){var Y=Promise.resolve(void 0);ZH2=function(){Y.then(lEg)}};var hPI=function(Y){Y.prototype.$goog_Thenable=!0},d3I=function(Y){if(!Y)return!1;
try{return!!Y.$goog_Thenable}catch(G){return!1}};var bHU,SHM,Ncl,VoE,lE2,BcV,cy1,JyM,OG_,GRX,DTa;_.a0=function(Y,G){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(Y!=_.nu)try{var u=this;Y.call(G,function(O){u.resolve_(2,O)},function(O){u.resolve_(3,O)})}catch(O){this.resolve_(3,O)}};
bHU=function(){this.next=this.context=this.JSC$10090_onRejected=this.JSC$10090_onFulfilled=this.child=null;this.always=!1};
bHU.prototype.reset=function(){this.context=this.JSC$10090_onRejected=this.JSC$10090_onFulfilled=this.child=null;this.always=!1};
SHM=new iHU(function(){return new bHU},function(Y){Y.reset()});
Ncl=function(Y,G,u){var O=SHM.get();O.JSC$10090_onFulfilled=Y;O.JSC$10090_onRejected=G;O.context=u;return O};
_.v$=function(Y){if(Y instanceof _.a0)return Y;var G=new _.a0(_.nu);G.resolve_(2,Y);return G};
_.Ld=function(Y){return new _.a0(function(G,u){u(Y)})};
VoE=function(Y,G,u){j1U(Y,G,u,null)||_.zj(_.H2(G,Y))};
_.mV=function(Y){return new _.a0(function(G,u){var O=Y.length,Q=[];if(O)for(var M=function(g,P){O--;Q[g]=P;O==0&&G(Q)},t=function(g){u(g)},K,L=0;L<Y.length;L++)K=Y[L],VoE(K,_.H2(M,L),t);
else G(Q)})};
lE2=function(Y){return new _.a0(function(G){var u=Y.length,O=[];if(u)for(var Q=function(K,L,g){u--;O[K]=L?{fulfilled:!0,value:g}:{fulfilled:!1,reason:g};u==0&&G(O)},M,t=0;t<Y.length;t++)M=Y[t],VoE(M,_.H2(Q,t,!0),_.H2(Q,t,!1));
else G(O)})};
BcV=function(Y){return new _.a0(function(G,u){var O=Y.length,Q=[];if(O)for(var M=function(g){G(g)},t=function(g,P){O--;
Q[g]=P;O==0&&u(Q)},K,L=0;L<Y.length;L++)K=Y[L],VoE(K,M,_.H2(t,L));
else G(void 0)})};
_.RS=function(){var Y,G,u=new _.a0(function(O,Q){Y=O;G=Q});
return new $3_(u,Y,G)};
_.a0.prototype.then=function(Y,G,u){return qHV(this,pV(typeof Y==="function"?Y:null),pV(typeof G==="function"?G:null),u)};
hPI(_.a0);cy1=function(Y,G,u,O){s1R(Y,Ncl(G||_.nu,u||null,O))};
_.Wp=function(Y,G){G=pV(G);G=Ncl(G,G);G.always=!0;s1R(Y,G);return Y};
_.a0.prototype.finally=function(Y){var G=this;Y=pV(Y);return new _.a0(function(u,O){cy1(G,function(Q){Y();u(Q)},function(Q){Y();
O(Q)})})};
_.a0.prototype.thenCatch=function(Y,G){return qHV(this,null,pV(Y),G)};
_.a0.prototype.catch=_.a0.prototype.thenCatch;_.a0.prototype.cancel=function(Y){if(this.state_==0){var G=new _.oz(Y);_.zj(function(){U3T(this,G)},this)}};
var U3T=function(Y,G){if(Y.state_==0)if(Y.parent_){var u=Y.parent_;if(u.callbackEntries_){for(var O=0,Q=null,M=null,t=u.callbackEntries_;t&&(t.always||(O++,t.child==Y&&(Q=t),!(Q&&O>1)));t=t.next)Q||(M=t);Q&&(u.state_==0&&O==1?U3T(u,G):(M?(O=M,O.next==u.callbackEntriesTail_&&(u.callbackEntriesTail_=O),O.next=O.next.next):v4_(u),JyM(u,Q,3,G)))}Y.parent_=null}else Y.resolve_(3,G)},s1R=function(Y,G){Y.callbackEntries_||Y.state_!=2&&Y.state_!=3||Y51(Y);
Y.callbackEntriesTail_?Y.callbackEntriesTail_.next=G:Y.callbackEntries_=G;Y.callbackEntriesTail_=G},qHV=function(Y,G,u,O){var Q=Ncl(null,null,null);
Q.child=new _.a0(function(M,t){Q.JSC$10090_onFulfilled=G?function(K){try{var L=G.call(O,K);M(L)}catch(g){t(g)}}:M;
Q.JSC$10090_onRejected=u?function(K){try{var L=u.call(O,K);L===void 0&&K instanceof _.oz?t(K):M(L)}catch(g){t(g)}}:t});
Q.child.parent_=Y;s1R(Y,Q);return Q.child};
_.a0.prototype.unblockAndFulfill_=function(Y){this.state_=0;this.resolve_(2,Y)};
_.a0.prototype.unblockAndReject_=function(Y){this.state_=0;this.resolve_(3,Y)};
_.a0.prototype.resolve_=function(Y,G){this.state_==0&&(this===G&&(Y=3,G=new TypeError("ya")),this.state_=1,j1U(G,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=G,this.state_=Y,this.parent_=null,Y51(this),Y!=3||G instanceof _.oz||GRX(this,G)))};
var j1U=function(Y,G,u,O){if(Y instanceof _.a0)return cy1(Y,G,u,O),!0;if(d3I(Y))return Y.then(G,u,O),!0;if(_.$a(Y))try{var Q=Y.then;if(typeof Q==="function")return uwl(Y,Q,G,u,O),!0}catch(M){return u.call(O,M),!0}return!1},uwl=function(Y,G,u,O,Q){var M=!1,t=function(L){M||(M=!0,u.call(Q,L))},K=function(L){M||(M=!0,O.call(Q,L))};
try{G.call(Y,t,K)}catch(L){K(L)}},Y51=function(Y){Y.executing_||(Y.executing_=!0,_.zj(Y.executeCallbacks_,Y))},v4_=function(Y){var G=null;
Y.callbackEntries_&&(G=Y.callbackEntries_,Y.callbackEntries_=G.next,G.next=null);Y.callbackEntries_||(Y.callbackEntriesTail_=null);return G};
_.a0.prototype.executeCallbacks_=function(){for(var Y;Y=v4_(this);)JyM(this,Y,this.state_,this.result_);this.executing_=!1};
JyM=function(Y,G,u,O){if(u==3&&G.JSC$10090_onRejected&&!G.always)for(;Y&&Y.hadUnhandledRejection_;Y=Y.parent_)Y.hadUnhandledRejection_=!1;if(G.child)G.child.parent_=null,OG_(G,u,O);else try{G.always?G.JSC$10090_onFulfilled.call(G.context):OG_(G,u,O)}catch(Q){DTa.call(null,Q)}SHM.put(G)};
OG_=function(Y,G,u){G==2?Y.JSC$10090_onFulfilled.call(Y.context,u):Y.JSC$10090_onRejected&&Y.JSC$10090_onRejected.call(Y.context,u)};
GRX=function(Y,G){Y.hadUnhandledRejection_=!0;_.zj(function(){Y.hadUnhandledRejection_&&DTa.call(null,G)})};
DTa=Qj;_.oz=function(Y){_.Ya.call(this,Y)};
_.qz(_.oz,_.Ya);_.oz.prototype.name="cancel";var $3_=function(Y,G,u){this.promise=Y;this.resolve=G;this.reject=u};var rf;_.gU=function(Y,G){_.C7.call(this);this.JSC$10102_interval_=Y||1;this.timerObject_=G||_.OI;this.boundTick_=(0,_.tP)(this.tick_,this);this.last_=_.$M()};
_.qz(_.gU,_.C7);_.H=_.gU.prototype;_.H.enabled=!1;_.H.JSC$10104_timer_=null;_.H.setInterval=function(Y){this.JSC$10102_interval_=Y;this.JSC$10104_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$10104_timer_&&this.stop()};
_.H.tick_=function(){if(this.enabled){var Y=_.$M()-this.last_;Y>0&&Y<this.JSC$10102_interval_*.8?this.JSC$10104_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10102_interval_-Y):(this.JSC$10104_timer_&&(this.timerObject_.clearTimeout(this.JSC$10104_timer_),this.JSC$10104_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.H.start=function(){this.enabled=!0;this.JSC$10104_timer_||(this.JSC$10104_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10102_interval_),this.last_=_.$M())};
_.H.stop=function(){this.enabled=!1;this.JSC$10104_timer_&&(this.timerObject_.clearTimeout(this.JSC$10104_timer_),this.JSC$10104_timer_=null)};
_.H.disposeInternal=function(){_.gU.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
rf=function(Y,G,u){if(typeof Y==="function")u&&(Y=(0,_.tP)(Y,u));else if(Y&&typeof Y.handleEvent=="function")Y=(0,_.tP)(Y.handleEvent,Y);else throw Error("za");return Number(G)>2147483647?-1:_.OI.setTimeout(Y,G||0)};
_.Q2U=function(Y){var G=null;return(new _.a0(function(u,O){G=rf(function(){u(void 0)},Y);
G==-1&&O(Error("Aa"))})).thenCatch(function(u){_.OI.clearTimeout(G);
throw u;})};var JX=function(Y){_.Ey.call(this);this.streamzLogger=Y;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$10108_flushTimer=new _.gU(this.flushInterval);this.JSC$10108_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.vF(this,this.JSC$10108_flushTimer)};
_.m(JX,_.Ey);JX.prototype.sendIsolatedPayload=function(Y){this.shouldSendIsolatedPayload=Y;this.invocationLimit=1};
var M12=function(Y){Y.JSC$10108_flushTimer.enabled||Y.JSC$10108_flushTimer.start();Y.invocationCount++;Y.invocationCount>=Y.invocationLimit&&Y.snapshotAndFlush()};
JX.prototype.snapshotAndFlush=function(){var Y=this.metricMap.values();Y=[].concat(_.c8(Y)).filter(function(G){return G.cellMap.size});
Y.length&&this.streamzLogger.flush(Y,this.shouldSendIsolatedPayload);HGT(Y);this.invocationCount=0;this.JSC$10108_flushTimer.enabled&&this.JSC$10108_flushTimer.stop()};
JX.prototype.addNewCounter=function(Y){var G=_.vs.apply(1,arguments);this.metricMap.has(Y)||this.metricMap.set(Y,new IEl(Y,G))};
JX.prototype.addNewEventMetric=function(Y){var G=_.vs.apply(1,arguments);this.metricMap.has(Y)||this.metricMap.set(Y,new kYI(Y,G))};
var Eg2=function(Y,G){return Y.disabledMetrics.has(G)?void 0:Y.metricMap.get(G)};
JX.prototype.JSC$10108_incrementCounter=function(Y){this.JSC$10108_incrementCounterBy(Y,1,_.vs.apply(1,arguments))};
JX.prototype.JSC$10108_incrementCounterBy=function(Y,G){var u=_.vs.apply(2,arguments),O=Eg2(this,Y);O&&O instanceof IEl&&(O.JSC$10047_incrementCounterBy(G,u),M12(this))};
JX.prototype.record=function(Y,G){var u=_.vs.apply(2,arguments),O=Eg2(this,Y);O&&O instanceof kYI&&(O.record(G,u),M12(this))};
var HGT=function(Y){for(var G=0;G<Y.length;G++)Y[G].clear()};_.x5=function(Y,G,u){u=u===void 0?{}:u;G=Error.call(this,G);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.code=Y;this.metadata=u;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(_.x5,Error);_.x5.prototype.toString=function(){var Y="RpcError("+($3y(this.code)||String(this.code))+")";this.message&&(Y+=": "+this.message);return Y};_.t1R=_.OI.JSON.parse;_.fV=_.OI.JSON.stringify;_.XA=_.OI.JSON.parse;_.K_k=function(Y){switch(Y){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 anM=function(Y){switch(Y){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var TCR,L_M=function(){};
_.qz(L_M,_.qHt);L_M.prototype.createInstance=function(){return new XMLHttpRequest};
TCR=new L_M;_.CV=function(Y){_.C7.call(this);this.headers=new Map;this.JSC$10117_xmlHttpFactory_=Y||null;this.JSC$10117_active_=!1;this.JSC$10117_xhr_=null;this.JSC$10117_lastUri_="";this.JSC$10117_lastErrorCode_=0;this.JSC$10117_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$10117_timeoutId_=null;this.responseType_="";this.JSC$10117_withCredentials_=!1};
_.qz(_.CV,_.C7);var ggV=/^https?$/i,XKk=["POST","PUT"],P9R=[],$RY=function(Y,G,u,O,Q,M,t){var K=new _.CV;P9R.push(K);G&&K.listen("complete",G);K.listenOnce("ready",K.cleanupSend_);M&&(K.timeoutInterval_=Math.max(0,M));t&&(K.JSC$10117_withCredentials_=t);K.send(Y,u,O,Q)};
_.CV.prototype.cleanupSend_=function(){this.dispose();_.Nj(P9R,this)};
_.CV.prototype.send=function(Y,G,u,O){if(this.JSC$10117_xhr_)throw Error("Ba`"+this.JSC$10117_lastUri_+"`"+Y);G=G?G.toUpperCase():"GET";this.JSC$10117_lastUri_=Y;this.JSC$10117_lastError_="";this.JSC$10117_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$10117_active_=!0;this.JSC$10117_xhr_=this.createXhr();this.JSC$10117_xhr_.onreadystatechange=pV((0,_.tP)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$10117_xhr_.open(G,String(Y),!0),this.inOpen_=!1}catch(t){InX(this,t);return}Y=
u||"";u=new Map(this.headers);if(O)if(Object.getPrototypeOf(O)===Object.prototype)for(var Q in O)u.set(Q,O[Q]);else if(typeof O.keys==="function"&&typeof O.get==="function"){Q=_.E(O.keys());for(var M=Q.next();!M.done;M=Q.next())M=M.value,u.set(M,O.get(M))}else throw Error("Ca`"+String(O));O=Array.from(u.keys()).find(function(t){return"content-type"==t.toLowerCase()});
Q=_.OI.FormData&&Y instanceof _.OI.FormData;!_.ST(XKk,G)||O||Q||u.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");G=_.E(u);for(O=G.next();!O.done;O=G.next())u=_.E(O.value),O=u.next().value,u=u.next().value,this.JSC$10117_xhr_.setRequestHeader(O,u);this.responseType_&&(this.JSC$10117_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$10117_xhr_&&this.JSC$10117_xhr_.withCredentials!==this.JSC$10117_withCredentials_&&(this.JSC$10117_xhr_.withCredentials=this.JSC$10117_withCredentials_);
try{this.JSC$10117_timeoutId_&&(clearTimeout(this.JSC$10117_timeoutId_),this.JSC$10117_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$10117_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$10117_xhr_.send(Y),this.inSend_=!1}catch(t){InX(this,t)}};
_.CV.prototype.createXhr=function(){return this.JSC$10117_xmlHttpFactory_?this.JSC$10117_xmlHttpFactory_.createInstance():TCR.createInstance()};
_.CV.prototype.timeout_=function(){typeof UM4!="undefined"&&this.JSC$10117_xhr_&&(this.JSC$10117_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$10117_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var InX=function(Y,G){Y.JSC$10117_active_=!1;Y.JSC$10117_xhr_&&(Y.inAbort_=!0,Y.JSC$10117_xhr_.abort(),Y.inAbort_=!1);Y.JSC$10117_lastError_=G;Y.JSC$10117_lastErrorCode_=5;kRE(Y);nge(Y)},kRE=function(Y){Y.errorDispatched_||(Y.errorDispatched_=!0,Y.dispatchEvent("complete"),Y.dispatchEvent("error"))};
_.CV.prototype.abort=function(Y){this.JSC$10117_xhr_&&this.JSC$10117_active_&&(this.JSC$10117_active_=!1,this.inAbort_=!0,this.JSC$10117_xhr_.abort(),this.inAbort_=!1,this.JSC$10117_lastErrorCode_=Y||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),nge(this))};
_.CV.prototype.disposeInternal=function(){this.JSC$10117_xhr_&&(this.JSC$10117_active_&&(this.JSC$10117_active_=!1,this.inAbort_=!0,this.JSC$10117_xhr_.abort(),this.inAbort_=!1),nge(this,!0));_.CV.superClass_.disposeInternal.call(this)};
_.CV.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)F_R(this);else this.onReadyStateChangeEntryPoint_()};
_.CV.prototype.onReadyStateChangeEntryPoint_=function(){F_R(this)};
var F_R=function(Y){if(Y.JSC$10117_active_&&typeof UM4!="undefined")if(Y.inSend_&&_.yB(Y)==4)setTimeout(Y.onReadyStateChange_.bind(Y),0);else if(Y.dispatchEvent("readystatechange"),Y.isComplete()){Y.JSC$10117_active_=!1;try{if(Y.isSuccess())Y.dispatchEvent("complete"),Y.dispatchEvent("success");else{Y.JSC$10117_lastErrorCode_=6;try{var G=_.yB(Y)>2?Y.JSC$10117_xhr_.statusText:""}catch(u){G=""}Y.JSC$10117_lastError_=G+" ["+Y.getStatus()+"]";kRE(Y)}}finally{nge(Y)}}},nge=function(Y,G){if(Y.JSC$10117_xhr_){Y.JSC$10117_timeoutId_&&
(clearTimeout(Y.JSC$10117_timeoutId_),Y.JSC$10117_timeoutId_=null);
var u=Y.JSC$10117_xhr_;Y.JSC$10117_xhr_=null;G||Y.dispatchEvent("ready");try{u.onreadystatechange=null}catch(O){}}};
_.CV.prototype.isActive=function(){return!!this.JSC$10117_xhr_};
_.CV.prototype.isComplete=function(){return _.yB(this)==4};
_.CV.prototype.isSuccess=function(){var Y=this.getStatus(),G;if(!(G=anM(Y))){if(Y=Y===0)Y=$UA(String(this.JSC$10117_lastUri_)),Y=!ggV.test(Y);G=Y}return G};
_.yB=function(Y){return Y.JSC$10117_xhr_?Y.JSC$10117_xhr_.readyState:0};
_.H=_.CV.prototype;_.H.getStatus=function(){try{return _.yB(this)>2?this.JSC$10117_xhr_.status:-1}catch(Y){return-1}};
_.H.getResponseText=function(){try{return this.JSC$10117_xhr_?this.JSC$10117_xhr_.responseText:""}catch(Y){return""}};
_.H.getResponse=function(){try{if(!this.JSC$10117_xhr_)return null;if("response"in this.JSC$10117_xhr_)return this.JSC$10117_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$10117_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$10117_xhr_)return this.JSC$10117_xhr_.mozResponseArrayBuffer}return null}catch(Y){return null}};
_.H.getAllResponseHeaders=function(){return this.JSC$10117_xhr_&&_.yB(this)>=2?this.JSC$10117_xhr_.getAllResponseHeaders()||"":""};
_.H.getLastError=function(){return typeof this.JSC$10117_lastError_==="string"?this.JSC$10117_lastError_:String(this.JSC$10117_lastError_)};var v4y=function(){};
v4y.prototype.send=function(Y,G,u){G=G===void 0?function(){}:G;
u=u===void 0?function(){}:u;
$RY(Y.url,function(O){O=O.target;O.isSuccess()?G(O.getResponseText()):u(O.getStatus())},Y.requestType,Y.body,Y.requestHeaders,Y.timeoutMillis,Y.withCredentials)};
v4y.prototype.getTransmissionType=function(){return 1};var pKR=function(Y,G){this.xjg=Y;this.event=G;this.startTime=YH()},Q2Y;
pKR.prototype.done=function(){this.xjg.jv(this.event,YH()-this.startTime)};
var eI=function(){OR.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.m(eI,OR);_.AE=function(Y,G,u){var O=YH();G=G();Y.jv(u,YH()-O);return G};
Q2Y=function(){eI.apply(this,arguments)};
_.m(Q2Y,eI);_.H=Q2Y.prototype;_.H.ea6=function(){};
_.H.g4=function(){};
_.H.jv=function(){};
_.H.logError=function(){};
_.H.lp=function(){};
_.H.wlb=function(){};
_.H.tj6=function(){};
_.H.cUH=function(){};
var ziX=function(Y){eI.call(this);var G=this;this.l6=Y;this.TEST_ONLY={iN0:function(){return G.l6},
getExperimentIds:function(){return G.l6.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void G.l6.dispose()})};
_.m(ziX,eI);_.H=ziX.prototype;_.H.update=function(Y){this.l6.dispose();this.l6=Y};
_.H.g4=function(Y){this.l6.g4(Y)};
_.H.jv=function(Y,G){this.l6.jv(Y,G)};
_.H.logError=function(Y){this.l6.logError(Y)};
_.H.lp=function(){this.l6.lp()};
_.H.wlb=function(Y){this.l6.wlb(Y)};
_.H.tj6=function(Y){this.l6.tj6(Y)};
_.H.cUH=function(Y){this.l6.cUH(Y)};
_.H.ea6=function(Y){this.l6.ea6(Y)};
var mNR=function(Y,G){_.Ey.call(this);var u=this;this.callback=Y;this.qPZ=G;this.xfc=-G;this.addOnDisposeCallback(function(){return void clearTimeout(u.timer)})};
_.m(mNR,_.Ey);var W_X=function(Y){if(Y.timer===void 0){var G=Math.max(0,Y.xfc+Y.qPZ-YH());Y.timer=setTimeout(function(){try{Y.callback()}finally{Y.xfc=YH(),Y.timer=void 0}},G)}},rdR=function(Y,G){eI.call(this);
this.metrics=Y;this.tO=G};
_.m(rdR,eI);_.H=rdR.prototype;_.H.ea6=function(Y){this.metrics.nnU.record(Y,this.tO)};
_.H.g4=function(Y){this.metrics.eventCount.increment(Y,this.tO)};
_.H.jv=function(Y,G){this.metrics.exS.record(G,Y,this.tO)};
_.H.logError=function(Y){this.metrics.errorCount.increment(Y,this.tO)};
_.H.wlb=function(Y){this.metrics.bcD.increment(Y,this.tO)};
_.H.tj6=function(Y){this.metrics.g8c.increment(Y,this.tO)};
_.H.cUH=function(Y){this.metrics.lKb.increment(Y,this.tO)};
var M1g=function(Y,G){G=G===void 0?[]:G;var u={tO:Y.tO||"_",fm7:Y.fm7||[],dBE:Y.dBE|0,destinationUrl:Y.destinationUrl,gzb:Y.gzb||function(){},
hKt:Y.hKt||function(M,t){return OGy(M,t,u.gzb,u.destinationUrl)}},O=u.hKt("53",u.fm7.concat(G));
rdR.call(this,{nnU:new Kv_(O),errorCount:new gle(O),eventCount:new T_X(O),exS:new Lvl(O),nRO:new a1R(O),bcD:new XwR(O),g8c:new PFe(O),lKb:new I1U(O)},u.tO);var Q=this;this.TEST_ONLY={getExperimentIds:function(){return Q.options.fm7.concat(Q.uG9).sort(function(M,t){return M-t})}};
this.options=u;this.service=O;this.m0D=!Y.hKt;this.flushDebouncer=new mNR(function(){return void Q.service.snapshotAndFlush()},u.dBE);
this.addOnDisposeCallback(function(){Q.flushDebouncer.dispose();Q.m0D&&Q.service.dispose()});
(this.uG9=G.slice()).sort(_.Z1j)};
_.m(M1g,rdR);M1g.prototype.lp=function(){W_X(this.flushDebouncer)};var T3t=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(T3t,_.Ps);_.LXA=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(_.LXA,_.Ps);var ZL=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y,0,ZL.messageId)};
_.m(ZL,_.Ps);var xNT=_.axj(ZL);ZL.messageId="bfkj";var yyy=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(yyy,_.Ps);var fnI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(fnI,_.Ps);var C9_=_.oh(fnI);_.sG=function(){var Y=this;this.promise=new Promise(function(G,u){Y.resolve=G;Y.reject=u})};_.oO=function(Y){_.Ey.call(this);var G=this;this.fLS=Math.floor(Math.random()*200);this.hJu=new fnI;if("challenge"in Y&&xNT(Y.challenge)){var u=_.zy(Y.challenge,4,void 0,wR);var O=_.zy(Y.challenge,5,void 0,wR);_.zy(Y.challenge,7,void 0,wR)&&(this.hJu=C9_(_.zy(Y.challenge,7,void 0,wR)))}else u=Y.program,O=Y.globalName;this.addOnDisposeCallback(function(){var p,W,C;return _.a(function(e){if(e.nextAddress==1)return e.yield(G.lN7,2);p=e.yieldResult;W=p.mjY;(C=W)==null||C();_.Sd(e)})});
this.f0=HG1(Y.aFH||{},this.hJu);_.vF(this,this.f0);var Q=new _.sG;this.lN7=Q.promise;this.f0.g4("t");var M=this.f0.share(),t=new pKR(M,"t"),K=function(p,W,C,e){if(!G.f0.isDisposed()){var w="k";W?w="h":C&&(w="u");w!=="k"?e!==0&&(G.f0.g4(w),G.f0.jv(w,p)):G.fLS<=0?(G.f0.g4(w),G.f0.jv(w,p),G.fLS=Math.floor(Math.random()*200)):G.fLS--}},L=function(p,W,C,e){Promise.resolve().then(function(){t.done();
M.lp();M.dispose();Q.resolve({nHS:p,mjY:W,ibz:C,jJp:e})})};
if(!_.OI[O])throw this.f0.logError(25),Error("Da");if(!_.OI[O].a)throw this.f0.logError(26),Error("Ea");try{var g=_.OI[O].a;O=[];for(var P=[],I=ePj(this.hJu),k=0;k<I.length;k++)O.push(I[k]),P.push(1);var n=Ayu(this.hJu);for(I=0;I<n.length;I++)O.push(n[I]),P.push(2);this.zsU=_.E(g(u,L,!0,Y.kIi,K,[O,P],_.zy(this.hJu,5),!1)).next().value;this.m7U=Q.promise.then(function(){})}catch(p){throw this.f0.logError(28),p;
}};
_.m(_.oO,_.Ey);_.oO.prototype.snapshot=function(Y){if(this.isDisposed())throw Error("Fa");this.f0.g4("n");var G=this.f0.share();return this.lN7.then(function(u){var O=u.nHS;return new Promise(function(Q){var M=new pKR(G,"n");O(function(t){M.done();G.ea6(t.length);G.lp();G.dispose();Q(t)},[Y.eh,
Y.x0U,Y.vrL,Y.obc])})})};
_.oO.prototype.kWo=function(Y){this.lN7.then(function(G){var u;(u=G.ibz)==null||u(Y)})};
_.oO.prototype.du7=function(Y,G){return this.lN7.then(function(u){var O;return(O=u.jJp)==null?void 0:O(Y,G,!1)})};
_.oO.prototype.hs5=function(){return this.f0.share()};var yd2=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(yd2,_.Ps);var lUA=_.axj(yd2);var eiT=function(){this.promises={};this.mBc=null},AdR=function(){eiT.instance||(eiT.instance=new eiT);
return eiT.instance},iGI=function(Y,G){return ogk(Y,_.QH(G,T3t,1,wR),_.QH(G,_.LXA,2,wR),_.zy(G,3,void 0,wR))},ogk=function(Y,G,u,O){if(!G&&!u)return Promise.resolve();
if(!O)return TCA(G,u);var Q;(Q=Y.promises)[O]||(Q[O]=new Promise(function(M,t){TCA(G,u).then(function(){Y.mBc=O;M()},function(K){delete Y.promises[O];
t(K)})}));
return Y.promises[O]};var RiR=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(RiR,_.Ps);var wKI=function(Y,G){return _.DL(Y,1,G)},ZG1=function(Y,G){return _.DL(Y,2,G)};var iJ=function(Y){_.Ey.call(this);var G=this;this.options=Y;this.udu=new _.sG;this.m7U=this.udu.promise;this.nBU=new _.sG;this.t6j=1;this.sjl=new _.sG;this.sVu=[];this.isPaused=!1;this.ssU=Y.ssU||function(){};
this.lM6=new ziX(HG1(Y.aFH||{}));DNV(this,Y.aO,Y.ygV,Y.wFM,Y.fJw,Object.assign({},hiR,Y.jyH||{}));this.addOnDisposeCallback(function(){return void dNe(G)})};
_.m(iJ,_.Ey);iJ.prototype.snapshot=function(Y){var G=this;return _.a(function(u){switch(u.nextAddress){case 1:if(G.isDisposed())throw Error("Fa");if(G.kK||G.rau){u.jumpTo(2);break}return u.yield(G.nBU.promise,2);case 2:if(!G.kK){u.jumpTo(4);break}return u.yield(G.kK.snapshot(Y),5);case 5:return u.return(u.yieldResult);case 4:throw G.rau;}})};
iJ.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.e5&&this.e5.pause())};
iJ.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.e5&&this.e5.resume())};
iJ.prototype.checkForRefresh=function(){var Y=this;return _.a(function(G){if(Y.isDisposed())throw Error("Fa");var u;if(u=Y.e5)u=Y.e5,u.isExpired()?(bGX(u),u.resolver(0),u=!0):u=!1,u=!u;return u?G.jumpTo(0):G.yield(Y.sjl.promise,0)})};
var NCT=function(Y){var G;return _.a(function(u){if(Y.isDisposed())throw Error("Fa");(G=Y.e5)==null||S5k(G);return u.yield(Y.sjl.promise,0)})},dNe=function(Y){Y.rau=Error("Ha");
Y.nBU.resolve();o44(Y.udu.promise);Y.udu.reject(Error("Ha"));Y.lM6.dispose();Promise.all(Y.sVu).then(function(){var u;return _.a(function(O){(u=Y.kK)==null||u.dispose();Y.kK=void 0;_.Sd(O)})});
Y.sVu=[];var G;(G=Y.e5)==null||S5k(G);o44(Y.sjl.promise);Y.sjl.reject(Error("Ha"))};
iJ.prototype.kWo=function(Y){var G,u;(G=this.kK)==null||(u=G.kWo)==null||u.call(G,Y)};
iJ.prototype.du7=function(Y,G){var u,O,Q;return(Q=(u=this.kK)==null?void 0:(O=u.du7)==null?void 0:O.call(u,Y,G))!=null?Q:Promise.resolve()};
var j21=function(Y,G){var u=Y.ssU;Y.ssU=function(){u();G()}},V1R=function(Y,G){Y.isDisposed()||(Y.kK=G,Y.lM6.update(G.hs5()),Y.nBU.resolve(),Y.udu.resolve(void 0),Y.ssU())};
iJ.prototype.handleError=function(Y){if(!this.isDisposed()){this.rau=Y;this.nBU.resolve();var G,u;(u=(G=this.options).pUm)==null||u.call(G,Y)}};
var lnT=function(Y,G){G&&(Promise.all(Y.sVu).then(function(){return void G.dispose()}),Y.sVu=[])},RO=function(Y,G){Y.t6j=G;
var u,O;(O=(u=Y.options).sHN)==null||O.call(u,G)},BCV=function(Y){Y.isDisposed()||(Y.sjl.resolve(),Y.sjl=new _.sG)},DNV=function(Y,G,u,O,Q,M){O=O===void 0?AdR():O;
Q=Q===void 0?Promise.resolve(void 0):Q;var t,K,L,g,P,I,k,n,p,W,C,e;_.a(function(w){switch(w.nextAddress){case 1:return w.yield(0,3);case 3:K=null;if(!t){w.jumpTo(6);break}RO(Y,7);_.i3(w,7);return w.yield(MA(t.snapshot({}),M.z4V,function(){return Promise.resolve("E:CTO")}),9);
case 9:K=w.yieldResult;_.j1(w,6);break;case 7:_.b3(w),K="E:UCE";case 6:L=void 0,g=t?M.kEE:M.fXw,P=new $I(g,M.pk3,M.tbp,M.moj),I=1;case 10:if(!(I<=M.maxAttempts)){w.jumpTo(12);break}if(I===1){w.jumpTo(13);break}RO(Y,0);Y.e5=new wf(P.getValue(),M.scH,M.dyq);return w.yield(Y.e5.promise,14);case 14:k=w.yieldResult,Y.e5=void 0,k===1?(I=1,P.reset()):Mol(P);case 13:_.i3(w,15);n=void 0;if(u){n=u;w.jumpTo(17);break}RO(Y,5);p=O.mBc;return w.yield(MA($NI(G,p,K),M.wwL,function(){return Promise.reject(Error("Ia"))}),
18);
case 18:n=w.yieldResult;case 17:return RO(Y,3),w.yield(MA(iGI(O,n),M.gVT,function(){return Promise.reject(Error("Ja"))}),19);
case 19:return RO(Y,8),w.yield(Q,20);case 20:return W=new _.oO({challenge:n,aFH:Y.options.aFH,kIi:Y.options.kIi}),w.yield(MA(W.m7U,M.lft,function(){return Promise.reject(Error("Ka"))}),21);
case 21:L=W;w.jumpTo(12);break;case 15:C=_.b3(w),Y.handleError(C),BCV(Y);case 11:I++;w.jumpTo(10);break;case 12:if(Y.isDisposed()){w.jumpTo(5);break}L&&(u=void 0,lnT(Y,t),t=L,V1R(Y,L),BCV(Y));RO(Y,2);Y.e5=new wf(M.eej,M.scH,M.dyq);Y.isPaused&&Y.e5.pause();return w.yield(Y.e5.promise,22);case 22:Y.e5=void 0;if(Y.isDisposed()){w.jumpTo(5);break}w.jumpTo(3);break;case 5:(e=t)==null||e.dispose(),_.Sd(w)}})};
iJ.prototype.hs5=function(){return this.lM6.share()};
var hiR={eej:432E5,scH:3E5,dyq:10,z4V:1E4,wwL:3E4,gVT:3E4,lft:6E4,fXw:1E3,kEE:6E4,pk3:6E5,tbp:.25,moj:2,maxAttempts:10},wf=function(Y,G,u){var O=this;this.endTimeMs=0;this.ef2=null;this.isPaused=!1;this.tick=function(){if(!O.isPaused){var Q=O.endTimeMs-Date.now();Q<=O.wKm?(O.ef2=null,O.resolver(0)):O.ef2=setTimeout(O.tick,Math.min(Q,O.scH))}};
this.scH=G;this.wKm=u;this.promise=new Promise(function(Q){O.resolver=Q});
q5V(this,Y)},q5V=function(Y,G){Y.endTimeMs=Date.now()+G;
Y.tick()};
wf.prototype.pause=function(){this.isPaused||(this.isPaused=!0,bGX(this))};
wf.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var S5k=function(Y){bGX(Y);Y.endTimeMs=0;Y.isPaused=!1;Y.resolver(1)},bGX=function(Y){Y.ef2&&(clearTimeout(Y.ef2),Y.ef2=null)};
wf.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var s24,XKa=(s24=Math.imul)!=null?s24:function(Y,G){return Y*G|0},HM=[196,
200,224,18],Zu=function(Y,G,u){u=u===void 0?[]:u;this.maxItems=Y;this.f6=G===void 0?0:G;this.zw=u},cd_=function(Y){var G=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!G)return new Zu(Y);var u=G.split(",");if(u.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Zu(Y);G=u.slice(1);G.length===1&&G[0]===""&&(G=[]);u=Number(u[0]);return isNaN(u)||u<0||u>G.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Zu(Y)):new Zu(Y,u,G)};
Zu.prototype.serialize=function(){return String(this.f6)+","+this.zw.join()};
Zu.prototype.insert=function(Y,G){var u=void 0;if(this.zw[this.f6]!==Y){var O=this.zw.indexOf(Y);O!==-1?(this.zw.splice(O,1),O<this.f6&&this.f6--,this.zw.splice(this.f6,0,Y)):(u=this.zw[this.f6],this.zw[this.f6]=Y)}this.f6=(this.f6+1)%this.maxItems;Y=L_j("iU5q-!O9@$",this.serialize());u&&Y&&G(u);return Y};
var UNe=function(Y,G){this.hk2=G;try{var u=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(O){u=!1}u&&(this.index=cd_(Y))},vg4=function(Y,G,u,O,Q){var M=Y.index?_.AE(Y.hk2,function(){return ngt(Y.index,InU(G),u,O,Q)},"W"):"u";
Y.hk2.cUH(M)},Jd2=function(Y,G,u){var O=_.E(Y.index?_.AE(Y.hk2,function(){return F_T(InU(G),u)},"R"):["u"]),Q=O.next().value;
O=O.next().value;Y.hk2.tj6(Q);return O};var Y0R={toString:function(Y){var G=[],u=0;Y-=-2147483648;G[u++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Y%52);for(Y=Math.floor(Y/52);Y>0;)G[u++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Y%62),Y=Math.floor(Y/62);return G.join("")}};var Oq_=function(Y){Y=GCk(Y);for(var G=2654435769,u=2654435769,O=314159265,Q=Y.length,M=Q,t=0,K=function(){G-=u;G-=O;G^=O>>>13;u-=O;u-=G;u^=G<<8;O-=G;O-=u;O^=u>>>13;G-=u;G-=O;G^=O>>>12;u-=O;u-=G;u^=G<<16;O-=G;O-=u;O^=u>>>5;G-=u;G-=O;G^=O>>>3;u-=O;u-=G;u^=G<<10;O-=G;O-=u;O^=u>>>15};M>=12;M-=12,t+=12)G+=unR(Y,t),u+=unR(Y,t+4),O+=unR(Y,t+8),K();
O+=Q;switch(M){case 11:O+=Y[t+10]<<24;case 10:O+=Y[t+9]<<16;case 9:O+=Y[t+8]<<8;case 8:u+=Y[t+7]<<24;case 7:u+=Y[t+6]<<16;case 6:u+=Y[t+5]<<8;case 5:u+=Y[t+4];case 4:G+=Y[t+3]<<24;case 3:G+=Y[t+2]<<16;case 2:G+=Y[t+1]<<8;case 1:G+=Y[t]}K();return Y0R.toString(O)},GCk=function(Y){for(var G=[],u=0;u<Y.length;u++)G.push(Y.charCodeAt(u));
return G},unR=function(Y,G){return Y[G]+(Y[G+1]<<8)+(Y[G+2]<<16)+(Y[G+3]<<24)};var Du=function(Y){_.Ey.call(this);this.uM=Y;this.vTN=new _.sG};
_.m(Du,_.Ey);var QwM=function(Y,G){var u=setTimeout(function(){Y.vTN.resolve()},G);
Y.addOnDisposeCallback(function(){return void clearTimeout(u)})};
Du.prototype.owH=function(Y,G){var u=this.hp(Y);G==null||G(u);return _.AE(this.uM,function(){return _.vu(u,2)},this.eJi)};
var MVe=function(Y,G,u,O){return _.AE(Y.uM,function(){return u?Y.owH(G,O):Y.hp(G,O)},Y.hDo)},Hqe=function(Y,G,u,O){Du.call(this,Y);
this.sGd=G;this.iOU=u;this.hDo="m";this.eJi="x";this.dZU=0;QwM(this,O)};
_.m(Hqe,Du);Hqe.prototype.hp=function(Y,G){var u=this;this.uM.g4(this.hDo);++this.dZU>=this.iOU&&this.vTN.resolve();var O=Y();Y=_.AE(this.uM,function(){return u.sGd(O)},"C");
if(Y===void 0)throw new Gj(17,"YNJ:Undefined");if(!(Y instanceof Uint8Array))throw new Gj(18,"ODM:Invalid");G==null||G(Y);return Y};
var Eqe=function(Y,G,u){Du.call(this,Y);this.pwj=G;this.hDo="f";this.eJi="z";QwM(this,u)};
_.m(Eqe,Du);Eqe.prototype.hp=function(){return this.pwj};
var tVl=function(Y,G,u){Du.call(this,Y);this.d1w=G;this.hDo="w";this.eJi="z";QwM(this,u)};
_.m(tVl,Du);tVl.prototype.hp=function(){var Y=this;return _.AE(this.uM,function(){return _.JY(Y.d1w)},"d")};
tVl.prototype.owH=function(){return this.d1w};
var KTM=function(Y,G){Du.call(this,Y);this.error=G;this.hDo="e";this.eJi="y"};
_.m(KTM,Du);var aa_=function(Y,G){var u=(G(Y.error.message)+":"+G(Y.error.stack)).substring(0,2048);G=u.length+1;u=pKA(u);var O=new Uint8Array(4+u.length);O.set([42,G&127|128,G>>7,Y.error.code]);O.set(u,4);return O};
KTM.prototype.hp=function(){if(this.tEc)return this.tEc;this.tEc=aa_(this,function(Y){return"_"+Oq_(Y)});
return aa_(this,function(Y){return Y})};
var ToU=function(Y,G,u){Du.call(this,Y);this.bXi=G;this.clientState=u;this.hDo="S";this.eJi="q"};
_.m(ToU,Du);ToU.prototype.hp=function(){var Y=Math.floor(Date.now()/1E3),G=[Math.random()*255,Math.random()*255],u=G.concat([this.bXi&255,this.clientState],[Y>>24&255,Y>>16&255,Y>>8&255,Y&255]);Y=new Uint8Array(2+u.length);Y[0]=34;Y[1]=u.length;Y.set(u,2);u=Y.subarray(2);for(var O=G=G.length;O<u.length;++O)u[O]^=u[O%G];this.uM.wlb(this.clientState);return Y};var LT2={jTL:3E4,uyZ:2E4},hE=function(Y){_.Ey.call(this);var G=this;this.j5P=new _.sG;this.jjc=0;this.oO=void 0;this.state=2;this.vm=Y.vm;this.aO=Y.aO;this.jyH=Object.assign({},LT2,Y.jyH||{});this.hO=Y.vm.hs5();var u;this.onError=(u=Y.onError)!=null?u:function(){};
this.koT=Y.koT||!1;if(gq1(Y)){var O=this.vm;this.sAq=function(){return NCT(O).catch(function(t){t=G.reportError(new Gj(G.xX?20:32,"TRG:Disposed",t));G.oO=t;var K;(K=G.xX)==null||K.dispose();G.xX=void 0;G.j5P.reject(t)})};
j21(O,function(){return void Xj_(G)});
O.t6j===2&&Xj_(this)}else this.sAq=Y.boN,Xj_(this);var Q=this.hO.share();Q.g4("o");var M=new pKR(Q,"o");this.j5P.promise.then(function(){M.done();Q.lp();Q.dispose()},function(){return void Q.dispose()});
this.addOnDisposeCallback(function(){G.xX?(G.xX.dispose(),G.xX=void 0):G.oO?G.hO.lp():(G.oO=G.reportError(new Gj(32,"TNP:Disposed")),G.hO.lp(),G.j5P.reject(G.oO))});
_.vF(this,this.hO)};
_.m(hE,_.Ey);hE.prototype.suH=function(){return this.j5P.promise};
var PBE=function(Y,G){if(!(G instanceof Gj))if(G instanceof _.x5){var u=Error(G.toString());u.stack=G.stack;G=new Gj(11,"EBH:Error",u)}else G=new Gj(12,"BSO:Unknown",G);return Y.reportError(G)},Xj_=function(Y){var G,u,O,Q,M,t,K,L,g,P,I,k,n,p,W;
return _.a(function(C){switch(C.nextAddress){case 1:G=void 0;Y.jjc++;u=new _.sG;Y.vm instanceof iJ&&Y.vm.sVu.push(u.promise);if(!Y.koT){C.jumpTo(2);break}O=new _.sG;setTimeout(function(){return void O.resolve()});
return C.yield(O.promise,2);case 2:return Q=Y.hO.share(),_.i3(C,4,5),Y.state=5,M={},t=[],C.yield(MA(Y.vm.snapshot({eh:M,vrL:t}),Y.jyH.uyZ,function(){return Promise.reject(new Gj(15,"MDA:Timeout"))}),7);
case 7:K=C.yieldResult;if(Y.isDisposed())throw new Gj(Y.xX?20:32,"MDA:Disposed");L=t[0];Y.state=6;return C.yield(MA(Iak(Y.aO,K),Y.jyH.jTL,function(){return Promise.reject(new Gj(10,"BWB:Timeout"))}),8);
case 8:g=C.yieldResult;if(Y.isDisposed())throw new Gj(Y.xX?20:32,"BWB:Disposed");Y.state=7;G=_.AE(Q,function(){var w=kC_(Y,g,u,L);w.vTN.promise.then(function(){return void Y.sAq()});
return w},"i");
case 5:_.wt(C);Q.dispose();_.dt(C,6);break;case 4:P=_.b3(C);(I=G)==null||I.dispose();if(!Y.oO){k=PBE(Y,P);u.resolve();var e;if(e=Y.vm instanceof iJ&&Y.jjc<2)a:if(P instanceof Gj)e=P.code!==32&&P.code!==20&&P.code!==10;else{if(P instanceof _.x5)switch(P.code){case 2:case 13:case 14:case 4:break;default:e=!1;break a}e=!0}if(e)return n=(1+Math.random()*.25)*(Y.xX?6E4:1E3),p=setTimeout(function(){return void Y.sAq()},n),Y.addOnDisposeCallback(function(){return void clearTimeout(p)}),C.return();
Y.oO=k}Q.logError(Y.xX?13:14);Y.j5P.reject(Y.oO);return C.return();case 6:Y.state=8,Y.jjc=0,(W=Y.xX)==null||W.dispose(),Y.xX=G,Y.j5P.resolve(),_.Sd(C)}})},kC_=function(Y,G,u,O){var Q=IqI(G,2)*1E3;
if(Q<=0)throw new Gj(31,"TTM:Invalid");if(_.zy(G,4))return new tVl(Y.hO,_.zy(G,4),Q);if(!IqI(G,3))return new Eqe(Y.hO,JBT(_.Lc(G,1)),Q);if(!O)throw new Gj(4,"PMD:Undefined");O=O(JBT(_.Lc(G,1)));if(typeof O!=="function")throw new Gj(16,"APF:Failed");Y.ctp=Math.floor((Date.now()+Q)/1E3);Y=new Hqe(Y.hO,O,IqI(G,3),Q);Y.addOnDisposeCallback(function(){return void u.resolve()});
return Y};
hE.prototype.hp=function(Y){return nql(this,Object.assign({},Y),!1)};
hE.prototype.owH=function(Y){return nql(this,Object.assign({},Y),!0)};
hE.prototype.bxc=function(Y){if(Y>150)return!1;try{return this.cache=new UNe(Y,this.hO),!0}catch(G){return this.reportError(new Gj(22,"GBJ:init",G)),!1}};
hE.prototype.reportError=function(Y){this.hO.logError(Y.code);this.onError(Y);return Y};
var FTT=function(Y,G){G=G instanceof Gj?G:new Gj(5,"TVD:error",G);return Y.reportError(G)},nql=function(Y,G,u){try{if(Y.isDisposed())throw new Gj(21,"BNT:disposed");
if(!Y.xX&&Y.oO)throw Y.oO;var O,Q;return(Q=(O=pj1(Y,G,u))!=null?O:zZI(Y,G,u))!=null?Q:mCM(Y,G,u)}catch(M){if(!G.jFS)throw FTT(Y,M);return WTe(Y,u,M)}},pj1=function(Y,G,u){var O;
return(O=Y.xX)==null?void 0:MVe(O,function(){return rN_(Y,G)},u,function(Q){var M;
if(Y.xX instanceof Hqe&&((M=G.ko)==null?0:M.eJ3))try{var t;(t=Y.cache)==null||vg4(t,rN_(Y,G),Q,G.ko.ueU,Y.ctp-120)}catch(K){Y.reportError(new Gj(24,"ELX:write",K))}})},zZI=function(Y,G,u){var O;
if((O=G.ko)!=null&&O.mOo)try{var Q,M=(Q=Y.cache)==null?void 0:Jd2(Q,rN_(Y,G),G.ko.ueU);return M?u?_.AE(Y.hO,function(){return _.vu(M,2)},"a"):M:void 0}catch(t){Y.reportError(new Gj(23,"RXO:read",t))}},mCM=function(Y,G,u){var O={stack:[],
error:void 0,hasError:!1};try{if(!G.wqc)throw new Gj(29,"SDF:notready");return MVe(Ox2(O,new ToU(Y.hO,0,Y.state)),function(){return rN_(Y,G)},u)}catch(Q){O.error=Q,O.hasError=!0}finally{Qol(O)}},WTe=function(Y,G,u){var O={stack:[],
error:void 0,hasError:!1};try{var Q=FTT(Y,u);return MVe(Ox2(O,new KTM(Y.hO,Q)),function(){return[]},G)}catch(M){O.error=M,O.hasError=!0}finally{Qol(O)}},rN_=function(Y,G){return G.x9H?G.x9H:G.eh?_.AE(Y.hO,function(){return G.x9H=pKA(G.eh)},"c"):[]},gq1=function(Y){return DV(function(G){if(!QM(G))return!1;
for(var u=_.E(Object.entries(Y)),O=u.next();!O.done;O=u.next()){var Q=_.E(O.value);O=Q.next().value;Q=Q.next().value;if(!(O in G)){if(Q.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!Q(G[O]))return!1}return!0})}({vm:function(Y){return DV(function(G){return G instanceof Y})}(iJ)},"");var xC_=function(){var Y=_.l8();this.JSC$10236_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",NU("cookie_enabled"),NU("cookie_3p_enabled"),_.VF("browser"))};
xC_.prototype.increment=function(Y,G,u){this.JSC$10236_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",Y,G,u)};
var sYT=function(){var Y=_.l8();this.JSC$10260_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",jh("tick"),NU("from_st_cookie"))};
sYT.prototype.increment=function(Y,G){this.JSC$10260_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",Y,G)};
var faU=function(){var Y=_.l8();this.JSC$10266_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.VF("status"))};
faU.prototype.increment=function(Y){this.JSC$10266_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",Y)};
var CBE=function(){var Y=_.l8();this.JSC$10269_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.VF("stage"),NU("is_using_ytd_player"),NU("has_expandable_tiles"))};
CBE.prototype.increment=function(Y,G,u){this.JSC$10269_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",Y,G,u)};
var yNR=function(){var Y=_.l8();this.JSC$10272_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/response_signature",_.VF("check_status"))};
yNR.prototype.increment=function(Y){this.JSC$10272_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/web/response_signature",Y)};
var eZT=function(){var Y=_.l8();this.JSC$10275_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.VF("sig"),jh("de"))};
eZT.prototype.increment=function(Y,G){this.JSC$10275_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/web/e_sig_log",Y,G)};
var ANX=function(){var Y=_.l8();this.JSC$10278_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.VF("sig"),jh("de"))};
ANX.prototype.increment=function(Y,G){this.JSC$10278_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/web/e_sig_en",Y,G)};
_.oqV=function(){var Y=_.l8();this.JSC$10281_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.VF("action"))};
_.oqV.prototype.increment=function(Y){this.JSC$10281_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/web/enforcement_intent",Y)};
var iqT=function(){var Y=_.l8();this.JSC$10284_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/aba/gac",jh("type"),jh("sequence"))};
iqT.prototype.increment=function(Y,G){this.JSC$10284_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/aba/gac",Y,G)};var df=window;var RZe=(new Date).getTime();_.gX.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.gX.createSet("action","cite","data","formaction","href","manifest","poster","src");var wjl=function(Y){this.servicePromise_=Y;Y.then((0,_.tP)(function(){},this),function(){},this)},ZqE=function(Y,G,u){Y.servicePromise_.then(function(O){var Q=O[G];
if(!Q)throw Error("La`"+G);return Q.apply(O,u)})},dCX=function(Y,G,u){for(var O=Array(arguments.length-2),Q=2;Q<arguments.length;Q++)O[Q-2]=arguments[Q];
Q=DCe(Y,G).then(function(M){return M.apply(null,O)},function(M){M=Error("Ma`"+G+"`"+Y+"`"+M,{cause:M});
delete hZR[G];return _.Ld(M)});
return new wjl(Q)},hZR={},DCe=function(Y,G){var u=hZR[G];
if(u)return u;u=(u=_.So(G))?_.v$(u):(new _.a0(function(O,Q){var M=(new WG(document)).createElement("SCRIPT");M.async=!0;_.P8(M,_.dT($Ul(Y)));M.onload=M.onreadystatechange=function(){M.readyState&&M.readyState!="loaded"&&M.readyState!="complete"||O()};
M.onerror=function(t){Q(Error("Na`"+G+"`"+Y,{cause:t}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(M)})).then(function(){var O=_.So(G);
if(!O)throw Error("Oa`"+G+"`"+Y);return O});
return hZR[G]=u};var bqR={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},NoX=function(){var Y=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=ziU(function(){return _.a(function(G){if(G.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?G.return(Promise.resolve()):G.yield(S04(Y),2);Y.rsaForList.length>
0&&document.addEventListener("click",Y.requestAccessForHelpPanel);_.Sd(G)})});
this.requestAccessForHelpPanel=function(){if(!(Y.rsaForPromises.length>0)){for(var G=_.E(Y.rsaForList),u=G.next();!u.done;u=G.next()){u=u.value;try{Y.rsaForPromises.push(document.requestStorageAccessFor(u))}catch(O){}}Promise.all(Y.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){Y.reset()})}}};
NoX.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var S04=function(Y){var G,u,O,Q;return _.a(function(M){switch(M.nextAddress){case 1:G=_.E(Object.values(bqR)),u=G.next();case 2:if(u.done){M.jumpTo(0);break}O=u.value;_.i3(M,5);return M.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:O}),7);case 7:Q=M.yieldResult;Q.state!=="granted"&&Y.rsaForList.push(O);_.j1(M,3);break;case 5:_.b3(M);M.jumpTo(0);break;case 3:u=G.next(),M.jumpTo(2)}})};(new NoX).initialize();var jwI=function(Y){this.JSC$10298_loader_=Y};
jwI.prototype.startHelp=function(Y){ZqE(this.JSC$10298_loader_,"startHelp",arguments)};
jwI.prototype.JSC$10300_loadChatSupport=function(Y){ZqE(this.JSC$10298_loader_,"loadChatSupport",arguments)};
var laE=function(Y,G){G=G||{};Y=dCX(VVe,"help.service.Lazy.create",Y,{apiKey:G.apiKey||G.apiKey,asxUiUri:G.asxUiUri||G.asxUiUri,environment:G.environment||G.environment,flow:G.flow||G.flow,frdProductData:G.frdProductData||G.frdProductData,frdProductDataSerializedJspb:G.frdProductDataSerializedJspb||G.frdProductDataSerializedJspb,helpCenterPath:G.helpCenterPath||G.helpCenterPath,locale:G.locale||G.locale||"en-US".replace(/-/g,"_"),nonce:G.nonce||G.nonce,productData:G.productData||G.productData,receiverUri:G.receiverUri||
G.receiverUri,renderApiUri:G.renderApiUri||G.renderApiUri,theme:G.theme||G.theme,window:G.window||G.window});return new jwI(Y)},VVe=new ZC(Wiu,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var BoT=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(BoT,_.Ps);var $CU=_.oh(BoT);var q02=[0,_.Vd,hr,E6U];_.swM=new function(Y,G,u,O){this.configType=Y;this.flagName=u;this.defaultValue=O;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 UCT=function(){this.retriever=_.sH().resolve(cN2)};_.BU={get payments(){return window.payments}};W_U(Node);W_U(Element);var vqT=W_U(HTMLElement);W_U(SVGElement);var JN_,YVE,NO,G5e;JN_=function(Y){return typeof Y.className=="string"?Y.className:Y.getAttribute&&Y.getAttribute("class")||""};
YVE=function(Y){return Y.classList?Y.classList:JN_(Y).match(/\S+/g)||[]};
_.bJ=function(Y,G){typeof Y.className=="string"?Y.className=G:Y.setAttribute&&Y.setAttribute("class",G)};
_.SI=function(Y,G){return Y.classList?Y.classList.contains(G):_.ST(YVE(Y),G)};
_.oD=function(Y,G){if(Y.classList)Y.classList.add(G);else if(!_.SI(Y,G)){var u=JN_(Y);_.bJ(Y,u+(u.length>0?" "+G:G))}};
NO=function(Y,G){if(Y.classList)Array.prototype.forEach.call(G,function(Q){_.oD(Y,Q)});
else{var u={};Array.prototype.forEach.call(YVE(Y),function(Q){u[Q]=!0});
Array.prototype.forEach.call(G,function(Q){u[Q]=!0});
G="";for(var O in u)G+=G.length>0?" "+O:O;_.bJ(Y,G)}};
_.AR=function(Y,G){Y.classList?Y.classList.remove(G):_.SI(Y,G)&&_.bJ(Y,Array.prototype.filter.call(YVE(Y),function(u){return u!=G}).join(" "))};
G5e=function(Y,G){Y.classList?Array.prototype.forEach.call(G,function(u){_.AR(Y,u)}):_.bJ(Y,Array.prototype.filter.call(YVE(Y),function(u){return!_.ST(G,u)}).join(" "))};var u3_=function(Y){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=Y.document},MKI=function(Y,G){OJk(Y);
var u=document.createElement("div"),O;(O=G.parentNode)==null||O.insertBefore(u,G);u.tabIndex=0;u.id="fc-focus-trap-pre-div";u=document.createElement("div");var Q;(Q=G.parentNode)==null||Q.insertBefore(u,G.nextSibling);u.tabIndex=0;u.id="fc-focus-trap-post-div";var M=Q0E(Y,G),t=Q0E(Y,G,!0);M&&t&&(Y.focusChangeHandler=function(){var K=Y.document.activeElement;if(K)if(_.hP(G,K))Y.previouslyFocusedElement=K;else if(K===Y.document.activeElement)switch(Y.previouslyFocusedElement){case M:t.focus();Y.previouslyFocusedElement=
t;break;default:M.focus(),Y.previouslyFocusedElement=M}},Y.document.addEventListener("focus",Y.focusChangeHandler,!0),Y.document.addEventListener("focusin",Y.focusChangeHandler))},OJk=function(Y){Y.focusChangeHandler&&(document.removeEventListener("focus",Y.focusChangeHandler,!0),document.removeEventListener("focusin",Y.focusChangeHandler),Y.focusChangeHandler=null);
var G;(G=document.getElementById("fc-focus-trap-pre-div"))==null||G.remove();var u;(u=document.getElementById("fc-focus-trap-post-div"))==null||u.remove()},HJ1=function(Y,G,u,O,Q){u=u===void 0?!0:u;
var M;Q=(M=Q===void 0?null:Q)!=null?M:Q0E(Y,G,O===void 0?!1:O);Q!==null&&(Q.focus(),u&&MKI(Y,G))};
u3_.prototype.disableButton=function(Y,G){G=G===void 0?null:G;Y.disabled=!0;G&&_.oD(Y,G)};
var Q0E=function(Y,G,u){u=u===void 0?!1:u;if(NHU(G)&&!u)return G;var O=u?[].slice.call(G.children,0).reverse():G.children;O=_.E(O);for(var Q=O.next();!Q.done;Q=O.next())if(Q=Q.value,vqT(Q)&&(Q=Q0E(Y,Q,u)))return Q;return NHU(G)&&u?G:null};var E7X=function(Y){this.originalBodyOverflow="";this.JSC$10325_domHelper=HF(Y);var G;this.isScrollingEnabled=((G=this.JSC$10325_domHelper.JSC$9647_document_.body)==null?void 0:G.style.overflow)!=="hidden"};
E7X.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10325_domHelper.JSC$9647_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.qz(_.K7,_.Ey);_.H=_.K7.prototype;_.H.JSC$10328_id_=0;_.H.disposeInternal=function(){_.K7.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10326_listener_;delete this.handler_};
_.H.start=function(Y){this.stop();this.JSC$10328_id_=rf(this.callback_,Y!==void 0?Y:this.JSC$10326_interval_)};
_.H.stop=function(){this.isActive()&&_.OI.clearTimeout(this.JSC$10328_id_);this.JSC$10328_id_=0};
_.H.fire=function(){this.stop();this.JSC$10328_doAction_()};
_.H.isActive=function(){return this.JSC$10328_id_!=0};
_.H.JSC$10328_doAction_=function(){this.JSC$10328_id_=0;this.JSC$10326_listener_&&this.JSC$10326_listener_.call(this.handler_)};_.qz(_.ae,_.Ey);var tKl=[];_.ae.prototype.listen=function(Y,G,u,O){Array.isArray(G)||(G&&(tKl[0]=G.toString()),G=tKl);for(var Q=0;Q<G.length;Q++){var M=_.yn(Y,G[Q],u||this.handleEvent,O||!1,this.handler_||this);if(!M)break;this.JSC$10329_keys_[M.key]=M}return this};
_.ae.prototype.listenOnce=function(Y,G,u,O){return KmV(this,Y,G,u,O)};
var KmV=function(Y,G,u,O,Q,M){if(Array.isArray(u))for(var t=0;t<u.length;t++)KmV(Y,G,u[t],O,Q,M);else{G=n7(G,u,O||Y.handleEvent,Q,M||Y.handler_||Y);if(!G)return Y;Y.JSC$10329_keys_[G.key]=G}return Y};
_.ae.prototype.unlisten=function(Y,G,u,O,Q){if(Array.isArray(G))for(var M=0;M<G.length;M++)this.unlisten(Y,G[M],u,O,Q);else if(Y=AdT(Y,G,u||this.handleEvent,_.$a(O)?!!O.capture:!!O,Q||this.handler_||this))tR(Y),delete this.JSC$10329_keys_[Y.key];return this};
_.ae.prototype.removeAll=function(){_.gX.forEach(this.JSC$10329_keys_,function(Y,G){this.JSC$10329_keys_.hasOwnProperty(G)&&tR(Y)},this);
this.JSC$10329_keys_={}};
_.ae.prototype.disposeInternal=function(){_.ae.superClass_.disposeInternal.call(this);this.removeAll()};
_.ae.prototype.handleEvent=function(){throw Error("Pa");};_.qz(Tm,_.Ey);Tm.prototype.connect=function(Y){Y&&Y()};
Tm.prototype.isConnected=function(){return!0};
Tm.prototype.registerService=function(Y,G,u){this.services_[Y]={callback:G,objectPayload:!!u}};
Tm.prototype.getService=function(Y,G){var u=this.services_[Y];return u?u:this.defaultService_?{callback:_.H2(this.defaultService_,Y),objectPayload:_.$a(G)}:null};
var aCI=function(Y,G){if(G&&typeof Y==="string")try{return JSON.parse(Y)}catch(u){return null}else if(!G&&typeof Y!=="string")return _.fV(Y);return Y};
Tm.prototype.disposeInternal=function(){Tm.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 XY=function(Y,G){this.sequence_=[];this.onCancelFunction_=Y;this.defaultScope_=G||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};
XY.prototype.cancel=function(Y){if(this.fired_)this.result_ instanceof XY&&this.result_.cancel();else{if(this.parent_){var G=this.parent_;delete this.parent_;Y?G.cancel(Y):(G.branches_--,G.branches_<=0&&G.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new jI(this))}};
XY.prototype.continue_=function(Y,G){this.blocked_=!1;TNX(this,Y,G)};
var TNX=function(Y,G,u){Y.fired_=!0;Y.result_=u;Y.hadError_=!G;Lml(Y)},XYe=function(Y){if(Y.fired_){if(!Y.silentlyCanceled_)throw new g7_(Y);
Y.silentlyCanceled_=!1}};
XY.prototype.callback=function(Y){XYe(this);TNX(this,!0,Y)};
XY.prototype.errback=function(Y){XYe(this);TNX(this,!1,Y)};
var C9y=function(Y,G,u){VB(Y,G,null,u)};
XY.prototype.finally=function(Y){var G=this;return PjR(new Promise(function(u,O){VB(G,function(Q){Y();u(Q)},function(Q){Y();
O(Q)})}))};
var VB=function(Y,G,u,O){var Q=Y.fired_;Q||(G===u?G=u=pV(G):(G=pV(G),u=pV(u)));Y.sequence_.push([G,u,O]);Q&&Lml(Y)};
XY.prototype.then=function(Y,G,u){var O,Q,M=new _.a0(function(t,K){Q=t;O=K});
VB(this,Q,function(t){t instanceof jI?M.cancel():O(t);return ICe},this);
return M.then(Y,G,u)};
hPI(XY);var fnj=function(Y,G){G instanceof XY?C9y(Y,(0,_.tP)(G.branch,G)):C9y(Y,function(){return G})};
XY.prototype.branch=function(Y){var G=new XY;VB(this,G.callback,G.errback,G);Y&&(G.parent_=this,this.branches_++);return G};
XY.prototype.isError=function(Y){return Y instanceof Error};
var k51=function(Y){return Bj(Y.sequence_,function(G){return typeof G[1]==="function"})},ICe={},Lml=function(Y){if(Y.unhandledErrorId_&&Y.fired_&&k51(Y)){var G=Y.unhandledErrorId_,u=n7E[G];
u&&(_.OI.clearTimeout(u.JSC$10346_id_),delete n7E[G]);Y.unhandledErrorId_=0}Y.parent_&&(Y.parent_.branches_--,delete Y.parent_);G=Y.result_;for(var O=u=!1;Y.sequence_.length&&!Y.blocked_;){var Q=Y.sequence_.shift(),M=Q[0],t=Q[1];Q=Q[2];if(M=Y.hadError_?t:M)try{var K=M.call(Q||Y.defaultScope_,G);K===ICe&&(K=void 0);K!==void 0&&(Y.hadError_=Y.hadError_&&(K==G||Y.isError(K)),Y.result_=G=K);if(d3I(G)||typeof _.OI.Promise==="function"&&G instanceof _.OI.Promise)O=!0,Y.blocked_=!0}catch(L){G=L,Y.hadError_=
!0,k51(Y)||(u=!0)}}Y.result_=G;O&&(K=(0,_.tP)(Y.continue_,Y,!0),O=(0,_.tP)(Y.continue_,Y,!1),G instanceof XY?(VB(G,K,O),G.blocking_=!0):G.then(K,O));u&&(G=new FmE(G),n7E[G.JSC$10346_id_]=G,Y.unhandledErrorId_=G.JSC$10346_id_)},PjR=function(Y){var G=new XY;
Y.then(function(u){G.callback(u)},function(u){G.errback(u)});
return G},g7_=function(){_.Ya.call(this)};
_.qz(g7_,_.Ya);g7_.prototype.message="Deferred has already fired";g7_.prototype.name="AlreadyCalledError";var jI=function(){_.Ya.call(this)};
_.qz(jI,_.Ya);jI.prototype.message="Deferred was canceled";jI.prototype.name="CanceledError";var FmE=function(Y){this.JSC$10346_id_=_.OI.setTimeout((0,_.tP)(this.throwError,this),0);this.JSC$10346_error_=Y};
FmE.prototype.throwError=function(){delete n7E[this.JSC$10346_id_];throw this.JSC$10346_error_;};
var n7E={};var pY1={1:"NativeMessagingTransport"},ei1=["pu","lru","pru","lpu","ppu"];_.qz(L7,_.Ey);L7.prototype.transportType=0;L7.prototype.getWindow=function(){return this.JSC$10349_domHelper_.getWindow()};
L7.prototype.getName=function(){return pY1[String(this.transportType)]||""};_.qz(PM,L7);PM.prototype.peerProtocolVersion_=null;PM.prototype.initialized_=!1;PM.prototype.transportType=1;var zfU={};PM.prototype.sendTimerId_=0;
var r1R=function(Y){var G=Y.event_.data;if(typeof G!=="string")return!1;var u=G.indexOf("|"),O=G.indexOf(":");if(u==-1||O==-1)return!1;var Q=G.substring(0,u);u=G.substring(u+1,O);G=G.substring(O+1);if(O=kH[Q])return O.xpcDeliver(u,G,Y.event_.origin),!0;O=m64(G)[0];for(var M in kH){var t=kH[M];if(xN1(t)==1&&!t.isConnected()&&u=="tp"&&(O=="SETUP"||O=="SETUP_NTPV2")&&WmE(t,Y.event_.origin))return delete kH[t.name],t.name=Q,kH[Q]=t,t.xpcDeliver(u,G),!0}return!1},x64=function(Y){Y.protocolVersion_!=2||
Y.peerProtocolVersion_!=null&&Y.peerProtocolVersion_!=2||Y.send("tp","SETUP_NTPV2,"+Y.endpointId_);
Y.peerProtocolVersion_!=null&&Y.peerProtocolVersion_!=1||Y.send("tp","SETUP")},fC4=function(Y,G){if(Y.protocolVersion_!=2||Y.peerProtocolVersion_!=null&&Y.peerProtocolVersion_!=2||G!=2){if(Y.peerProtocolVersion_!=null&&Y.peerProtocolVersion_!=1||G!=1)return;
Y.send("tp","SETUP_ACK")}else Y.send("tp","SETUP_ACK_NTPV2");Y.setupAckSent_.fired_||Y.setupAckSent_.callback(!0)},Cjk=function(Y,G){G>Y.peerProtocolVersion_&&(Y.peerProtocolVersion_=G);
Y.peerProtocolVersion_==1&&(Y.setupAckSent_.fired_||Y.oneSidedHandshake_||Y.setupAckSent_.callback(!0),Y.peerEndpointId_=null)};
_.H=PM.prototype;_.H.connect=function(){var Y=this.getWindow(),G=_.cu(Y),u=zfU[G];typeof u!=="number"&&(u=0);u==0&&_.yn(Y.postMessage?Y:Y.document,"message",r1R,!1,PM);zfU[G]=u+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.H.maybeAttemptToConnect_=function(){var Y=xN1(this.JSC$10352_channel_)==0;this.oneSidedHandshake_&&Y||this.JSC$10352_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),x64(this))};
_.H.send=function(Y,G){var u=this.JSC$10352_channel_.peerWindowObject_;u&&(this.send=function(O,Q){var M=this,t=this.JSC$10352_channel_.name;this.sendTimerId_=rf(function(){M.sendTimerId_=0;try{var K=u.postMessage?u:u.document;K.postMessage&&K.postMessage(t+"|"+O+":"+Q,M.peerHostname_)}catch(L){}},0)},this.send(Y,G))};
_.H.notifyConnected_=function(){var Y=this.JSC$10352_channel_,G=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;Y.isConnected()||Y.connectionDelay_&&Y.connectionDelay_.isActive()||(Y.state_=2,_.ZM(Y.connectionDelay_),G!==void 0?(Y.connectionDelay_=new _.K7(Y.connectCb_,G),Y.connectionDelay_.start()):(Y.connectionDelay_=null,Y.connectCb_()))};
_.H.disposeInternal=function(){if(this.initialized_){var Y=this.getWindow(),G=_.cu(Y),u=zfU[G];zfU[G]=u-1;u==1&&_.F_(Y.postMessage?Y:Y.document,"message",r1R,!1,PM)}this.sendTimerId_&&(_.OI.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.ZM(this.JSC$10352_eventHandler_);delete this.JSC$10352_eventHandler_;_.ZM(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10352_connected_.cancel();delete this.JSC$10352_connected_;delete this.send;PM.superClass_.disposeInternal.call(this)};
var m64=function(Y){Y=Y.split(",");Y[1]=Y[1]||null;return Y};var efU;_.lJ=function(Y){if(Y.getValues&&typeof Y.getValues=="function")return Y.getValues();if(typeof Map!=="undefined"&&Y instanceof Map||typeof Set!=="undefined"&&Y instanceof Set)return Array.from(Y.values());if(typeof Y==="string")return Y.split("");if(_.ly(Y)){for(var G=[],u=Y.length,O=0;O<u;O++)G.push(Y[O]);return G}return _.gX.getValues(Y)};
_.y1e=function(Y){if(Y.getKeys&&typeof Y.getKeys=="function")return Y.getKeys();if(!Y.getValues||typeof Y.getValues!="function"){if(typeof Map!=="undefined"&&Y instanceof Map)return Array.from(Y.keys());if(!(typeof Set!=="undefined"&&Y instanceof Set)){if(_.ly(Y)||typeof Y==="string"){var G=[];Y=Y.length;for(var u=0;u<Y;u++)G.push(u);return G}return _.gX.getKeys(Y)}}};
efU=function(Y,G,u){if(Y.forEach&&typeof Y.forEach=="function")Y.forEach(G,u);else if(_.ly(Y)||typeof Y==="string")Array.prototype.forEach.call(Y,G,u);else for(var O=_.y1e(Y),Q=_.lJ(Y),M=Q.length,t=0;t<M;t++)G.call(u,Q[t],O&&O[t],Y)};var QbI,vp,YD,D6_,A1V,iJX,o7e,ZJM,RfX;
_.Rx=function(Y,G){this.JSC$10357_domain_=this.userInfo_=this.scheme_="";this.JSC$10357_port_=null;this.fragment_=this.JSC$10357_path_="";this.JSC$10357_ignoreCase_=!1;var u;Y instanceof _.Rx?(this.JSC$10357_ignoreCase_=G!==void 0?G:Y.JSC$10357_ignoreCase_,_.Bp(this,Y.scheme_),this.userInfo_=Y.userInfo_,_.$5(this,Y.JSC$10357_domain_),_.qO(this,Y.JSC$10357_port_),_.sR(this,Y.getPath()),_.cp(this,Y.JSC$10357_queryData_.clone()),_.UR(this,Y.fragment_)):Y&&(u=_.jL(String(Y)))?(this.JSC$10357_ignoreCase_=
!!G,_.Bp(this,u[1]||"",!0),this.userInfo_=vp(u[2]||""),_.$5(this,u[3]||"",!0),_.qO(this,u[4]),_.sR(this,u[5]||"",!0),_.cp(this,u[6]||"",!0),_.UR(this,u[7]||"",!0)):(this.JSC$10357_ignoreCase_=!!G,this.JSC$10357_queryData_=new _.JE(null,this.JSC$10357_ignoreCase_))};
_.Rx.prototype.toString=function(){var Y=[],G=this.scheme_;G&&Y.push(YD(G,A1V,!0),":");var u=this.JSC$10357_domain_;if(u||G=="file")Y.push("//"),(G=this.userInfo_)&&Y.push(YD(G,A1V,!0),"@"),Y.push(_.Us(u).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),u=this.JSC$10357_port_,u!=null&&Y.push(":",String(u));if(u=this.getPath())this.JSC$10357_domain_&&u.charAt(0)!="/"&&Y.push("/"),Y.push(YD(u,u.charAt(0)=="/"?o7e:iJX,!0));(u=this.JSC$10357_queryData_.toString())&&Y.push("?",u);(u=this.fragment_)&&Y.push("#",
YD(u,RfX));return Y.join("")};
_.Rx.prototype.resolve=function(Y){var G=this.clone(),u=!!Y.scheme_;u?_.Bp(G,Y.scheme_):u=!!Y.userInfo_;u?G.userInfo_=Y.userInfo_:u=!!Y.JSC$10357_domain_;u?_.$5(G,Y.JSC$10357_domain_):u=Y.JSC$10357_port_!=null;var O=Y.getPath();if(u)_.qO(G,Y.JSC$10357_port_);else if(u=!!Y.JSC$10357_path_){if(O.charAt(0)!="/")if(this.JSC$10357_domain_&&!this.JSC$10357_path_)O="/"+O;else{var Q=G.getPath().lastIndexOf("/");Q!=-1&&(O=G.getPath().slice(0,Q+1)+O)}Q=O;if(Q==".."||Q==".")O="";else if(_.gA(Q,"./")||_.gA(Q,
"/.")){O=_.EI(Q,"/");Q=Q.split("/");for(var M=[],t=0;t<Q.length;){var K=Q[t++];K=="."?O&&t==Q.length&&M.push(""):K==".."?((M.length>1||M.length==1&&M[0]!="")&&M.pop(),O&&t==Q.length&&M.push("")):(M.push(K),O=!0)}O=M.join("/")}else O=Q}u?_.sR(G,O):u=Y.JSC$10357_queryData_.toString()!=="";u?_.cp(G,Y.JSC$10357_queryData_.clone()):u=!!Y.fragment_;u&&_.UR(G,Y.fragment_);return G};
_.Rx.prototype.clone=function(){return new _.Rx(this)};
_.Bp=function(Y,G,u){Y.scheme_=u?vp(G,!0):G;Y.scheme_&&(Y.scheme_=Y.scheme_.replace(/:$/,""));return Y};
_.$5=function(Y,G,u){Y.JSC$10357_domain_=u?vp(G,!0):G;return Y};
_.qO=function(Y,G){if(G){G=Number(G);if(isNaN(G)||G<0)throw Error("Qa`"+G);Y.JSC$10357_port_=G}else Y.JSC$10357_port_=null;return Y};
_.Rx.prototype.getPath=function(){return this.JSC$10357_path_};
_.sR=function(Y,G,u){Y.JSC$10357_path_=u?vp(G,!0):G;return Y};
_.cp=function(Y,G,u){G instanceof _.JE?(Y.JSC$10357_queryData_=G,wY1(Y.JSC$10357_queryData_,Y.JSC$10357_ignoreCase_)):(u||(G=YD(G,ZJM)),Y.JSC$10357_queryData_=new _.JE(G,Y.JSC$10357_ignoreCase_));return Y};
_.NA=function(Y,G,u){Y.JSC$10357_queryData_.set(G,u);return Y};
_.SG=function(Y,G){return Y.JSC$10357_queryData_.get(G)};
_.UR=function(Y,G,u){Y.fragment_=u?vp(G):G;return Y};
_.GM=function(Y){_.NA(Y,"zx",dU());return Y};
_.bI=function(Y,G){return Y instanceof _.Rx?Y.clone():new _.Rx(Y,G)};
QbI=function(Y,G){Y instanceof _.Rx||(Y=_.bI(Y));G instanceof _.Rx||(G=_.bI(G));return Y.resolve(G)};
vp=function(Y,G){return Y?G?decodeURI(Y.replace(/%25/g,"%2525")):decodeURIComponent(Y):""};
YD=function(Y,G,u){return typeof Y==="string"?(Y=encodeURI(Y).replace(G,D6_),u&&(Y=Y.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Y):null};
D6_=function(Y){Y=Y.charCodeAt(0);return"%"+(Y>>4&15).toString(16)+(Y&15).toString(16)};
A1V=/[#\/\?@]/g;iJX=/[#\?:]/g;o7e=/[#\?]/g;ZJM=/[#\?@]/g;RfX=/#/g;_.JE=function(Y,G){this.count_=this.keyMap_=null;this.encodedQuery_=Y||null;this.JSC$10358_ignoreCase_=!!G};
_.uu=function(Y){Y.keyMap_||(Y.keyMap_=new Map,Y.count_=0,Y.encodedQuery_&&UUg(Y.encodedQuery_,function(G,u){Y.add(cI(G),u)}))};
_.H=_.JE.prototype;_.H.getCount=function(){_.uu(this);return this.count_};
_.H.add=function(Y,G){_.uu(this);this.encodedQuery_=null;Y=O9(this,Y);var u=this.keyMap_.get(Y);u||this.keyMap_.set(Y,u=[]);u.push(G);this.count_+=1;return this};
_.H.remove=function(Y){_.uu(this);Y=O9(this,Y);return this.keyMap_.has(Y)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(Y).length,this.keyMap_.delete(Y)):!1};
_.H.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.H.isEmpty=function(){_.uu(this);return this.count_==0};
_.H.containsKey=function(Y){_.uu(this);Y=O9(this,Y);return this.keyMap_.has(Y)};
_.H.containsValue=function(Y){var G=this.getValues();return _.ST(G,Y)};
_.H.forEach=function(Y,G){_.uu(this);this.keyMap_.forEach(function(u,O){u.forEach(function(Q){Y.call(G,Q,O,this)},this)},this)};
_.H.getKeys=function(){_.uu(this);for(var Y=Array.from(this.keyMap_.values()),G=Array.from(this.keyMap_.keys()),u=[],O=0;O<G.length;O++)for(var Q=Y[O],M=0;M<Q.length;M++)u.push(G[O]);return u};
_.H.getValues=function(Y){_.uu(this);var G=[];if(typeof Y==="string")this.containsKey(Y)&&(G=G.concat(this.keyMap_.get(O9(this,Y))));else{Y=Array.from(this.keyMap_.values());for(var u=0;u<Y.length;u++)G=G.concat(Y[u])}return G};
_.H.set=function(Y,G){_.uu(this);this.encodedQuery_=null;Y=O9(this,Y);this.containsKey(Y)&&(this.count_-=this.keyMap_.get(Y).length);this.keyMap_.set(Y,[G]);this.count_+=1;return this};
_.H.get=function(Y,G){if(!Y)return G;Y=this.getValues(Y);return Y.length>0?String(Y[0]):G};
_.hfX=function(Y,G,u){Y.remove(G);u.length>0&&(Y.encodedQuery_=null,Y.keyMap_.set(O9(Y,G),_.Vj(u)),Y.count_+=u.length)};
_.JE.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var Y=[],G=Array.from(this.keyMap_.keys()),u=0;u<G.length;u++){var O=G[u],Q=_.Us(O);O=this.getValues(O);for(var M=0;M<O.length;M++){var t=Q;O[M]!==""&&(t+="="+_.Us(O[M]));Y.push(t)}}return this.encodedQuery_=Y.join("&")};
_.JE.prototype.clone=function(){var Y=new _.JE;Y.encodedQuery_=this.encodedQuery_;this.keyMap_&&(Y.keyMap_=new Map(this.keyMap_),Y.count_=this.count_);return Y};
var O9=function(Y,G){G=String(G);Y.JSC$10358_ignoreCase_&&(G=G.toLowerCase());return G},wY1=function(Y,G){G&&!Y.JSC$10358_ignoreCase_&&(_.uu(Y),Y.encodedQuery_=null,Y.keyMap_.forEach(function(u,O){var Q=O.toLowerCase();
O!=Q&&(this.remove(O),_.hfX(this,Q,u))},Y));
Y.JSC$10358_ignoreCase_=G};
_.JE.prototype.extend=function(Y){for(var G=0;G<arguments.length;G++)efU(arguments[G],function(u,O){this.add(O,u)},this)};_.qz(FY,Tm);var d6R=RegExp("^%*tp$"),bJI=RegExp("^%+tp$");_.H=FY.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.getConfig=function(){return this.cfg_};
_.H.connect=function(Y){this.connectCb_=Y||_.nu;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?C9y(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.H.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10353_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var Y=this.iframeElement_.contentWindow;Y||(Y=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=Y}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ua");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$10353_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new PM(this,this.cfg_.ph,this.JSC$10353_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Ta");}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;_.ZM(this.transport_);this.connectCb_=this.transport_=null;_.ZM(this.connectionDelay_);this.connectionDelay_=null};
_.H.send=function(Y,G){if(this.isConnected()){try{var u=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(Q){u=!1}if(u){_.$a(G)&&(G=_.fV(G));u=this.transport_;var O=u.send;d6R.test(Y)&&(Y="%"+Y);Y=Y.replace(/[%:|]/g,encodeURIComponent);O.call(u,Y,G)}else this.close()}};
_.H.xpcDeliver=function(Y,G,u){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.tP)(this.xpcDeliver,this,Y,G,u));else if(WmE(this,u)&&!this.isDisposed()&&this.state_!=3)if(Y&&Y!="tp")this.isConnected()&&(Y=Y.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),Y=bJI.test(Y)?Y.substring(1):Y,Y=this.getService(Y,G))&&(G=aCI(G,Y.objectPayload),G!=null&&Y.callback(G));else switch(Y=this.transport_,u=m64(G),G=u[1],u[0]){case "SETUP_ACK":Cjk(Y,1);Y.setupAckReceived_.fired_||Y.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":Y.protocolVersion_==2&&(Cjk(Y,2),Y.setupAckReceived_.fired_||Y.setupAckReceived_.callback(!0));break;case "SETUP":Cjk(Y,1);fC4(Y,1);break;case "SETUP_NTPV2":Y.protocolVersion_==2&&(u=Y.peerProtocolVersion_,Cjk(Y,2),fC4(Y,2),u!=1&&Y.peerEndpointId_==null||Y.peerEndpointId_==G||x64(Y),Y.peerEndpointId_=G)}};
var xN1=function(Y){var G=Y.cfg_.role;return typeof G==="number"?G:window.parent==Y.peerWindowObject_?1:0},WmE=function(Y,G){var u=Y.cfg_.ph;
return _.K1(G==null?"":String(G))||_.K1(u==null?"":String(u))||G==Y.cfg_.ph};
FY.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete kH[this.name];_.ZM(this.peerLoadHandler_);delete this.peerLoadHandler_;FY.superClass_.disposeInternal.call(this)};
var oga=function(){for(var Y in kH)_.ZM(kH[Y])},kH={};var NN4=function(Y,G){this.win=Y;this.allowAdsHttpEndpoint=G;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10367_domHelper=HF(Y);this.scrollManager=new E7X(Y);this.accessibilityManager=new u3_(Y);SVV(this)},SVV=function(Y){var G=function(){Y.allowAdsPopup&&Y.allowAdsPopup.style.setProperty("display","none","important");
Y.wallElement.style.setProperty("display","","important");OJk(Y.accessibilityManager);HJ1(Y.accessibilityManager,Y.wallElement.querySelector(".fc-dialog-container"),!1,!1,Y.wallElement.querySelector(".fc-button-whitelist"));Y.scrollManager.enableScrolling()};
Y.allowAdsPopup=Y.JSC$10367_domHelper.JSC$9649_createDom("DIV",{"class":"fc-whitelist-root"});Y.allowAdsPopup.style.setProperty("display","none","important");Y.JSC$10367_domHelper.appendChild(Y.JSC$10367_domHelper.JSC$9647_document_.body,Y.allowAdsPopup);var u=Y.JSC$10367_domHelper.JSC$9649_createDom("DIV",{"class":"fc-dialog-overlay"});Y.JSC$10367_domHelper.appendChild(Y.allowAdsPopup,u);var O=Y.JSC$10367_domHelper.JSC$9649_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:G});Y.JSC$10367_domHelper.appendChild(Y.allowAdsPopup,
O);u=Y.JSC$10367_domHelper.JSC$9649_createDom("IFRAME");u.className="fc-whitelist-dialog";u.frameBorder="0";u.id="fc-whitelist-iframe";u.tabIndex="0";_.Er(u,Y.allowAdsHttpEndpoint);Y.JSC$10367_domHelper.appendChild(O,u);O={};O.pu=_.bs(Y.allowAdsHttpEndpoint).toString();O.tp=1;O.cn="fc-whitelist-channel";O.ifrid=u.id;O.osh=!0;Y.allowAdsCrossPageChannel=new FY(O);Y.allowAdsCrossPageChannel.registerService("close",G);Y.allowAdsCrossPageChannel.registerService("refresh",function(){Y.win.location.reload()});
Y.allowAdsCrossPageChannel.registerService("resize",function(Q){if(Q){var M=Y.allowAdsPopup.querySelector(".fc-whitelist-dialog");Q.width&&M.style.setProperty("width",Q.width,"important");Q.height&&M.style.setProperty("height",Q.height,"important")}},!0);
Y.allowAdsCrossPageChannel.connect()};
NN4.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10367_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Qs=window,M$=document,j0_=Qs.location,VKR=function(){},lCR=/\[native code\]/,Hv=function(Y,G,u){return Y[G]=Y[G]||u},BN2=function(Y){Y=Y.sort();
for(var G=[],u=void 0,O=0;O<Y.length;O++){var Q=Y[O];Q!=u&&G.push(Q);u=Q}return G},E9=function(){var Y;
if((Y=Object.create)&&lCR.test(Y))Y=Y(null);else{Y={};for(var G in Y)Y[G]=void 0}return Y},tt=Hv(Qs,"gapi",{});var Ka={};Ka=Hv(Qs,"___jsl",E9());Hv(Ka,"I",0);Hv(Ka,"hel",10);var $6e=function(){var Y=j0_.href;if(Ka.dpo)var G=Ka.h;else{G=Ka.h;var u=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),O=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(Y=Y&&(u.exec(Y)||O.exec(Y)))try{G=decodeURIComponent(Y[2])}catch(Q){}}return G},qV1=function(Y){var G=Hv(Ka,"PQ",[]);
Ka.PQ=[];var u=G.length;if(u===0)Y();else for(var O=0,Q=function(){++O===u&&Y()},M=0;M<u;M++)G[M](Q)},s0R=function(Y){return Hv(Hv(Ka,"H",E9()),Y,E9())};var aP=function(Y){this.JSC$10369_obj_=Y};
aP.prototype.value=function(){return this.JSC$10369_obj_};
aP.prototype.getWidth=function(){return this.JSC$10369_obj_.width};
aP.prototype.getHeight=function(){return this.JSC$10369_obj_.height};
aP.prototype.getStyle=function(){return this.JSC$10369_obj_.style};var c1X=function(Y){this.JSC$10372_obj_=Y||{}};
_.H=c1X.prototype;_.H.value=function(){return this.JSC$10372_obj_};
_.H.setUrl=function(Y){this.JSC$10372_obj_.url=Y;return this};
_.H.getUrl=function(){return this.JSC$10372_obj_.url};
_.H.getStyle=function(){return this.JSC$10372_obj_.style};
_.H.getId=function(){return this.JSC$10372_obj_.id};
_.H.getContext=function(){return this.JSC$10372_obj_.context};
var U6X=function(Y){Y.JSC$10372_obj_.attributes=Y.JSC$10372_obj_.attributes||{};return new aP(Y.JSC$10372_obj_.attributes)};var v7R=function(){c1X.apply(this,arguments)};
_.m(v7R,c1X);var J11=Hv(Ka,"perf",E9());Hv(J11,"g",E9());var YkE=Hv(J11,"i",E9());Hv(J11,"r",[]);E9();E9();var uPR=function(Y,G,u){G&&G.length>0&&(G=GB2(G),u&&u.length>0&&(G+="___"+GB2(u)),G.length>28&&(G=G.substr(0,28)+(G.length-28)),u=G,G=Hv(YkE,"_p",E9()),Hv(G,u,E9())[Y]=(new Date).getTime(),G=J11.r,typeof G==="function"?G(Y,"_p",u):G.push([Y,"_p",u]))},GB2=function(Y){return Y.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var OjU=E9(),Q3V=[],TM=function(Y){throw Error("Va`"+Y);};
Q3V.push(["jsl",function(Y){for(var G in Y)if(Object.prototype.hasOwnProperty.call(Y,G)){var u=Y[G];typeof u=="object"?Ka[G]=Hv(Ka,G,[]).concat(u):Hv(Ka,G,u)}if(G=Y.u)Y=Hv(Ka,"us",[]),Y.push(G),(G=/^https:(.*)$/.exec(G))&&Y.push("http:"+G[1])}]);
var Mgl=/^(\/[a-zA-Z0-9_\-]+)+$/,HjU=[/\/amp\//,/\/amp$/,/^\/amp$/],EdU=/^[a-zA-Z0-9\-_\.,!]+$/,tge=/^gapi\.loaded_[0-9]+$/,KNT=/^[a-zA-Z0-9,._-]+$/,gdT=function(Y,G,u,O,Q){var M=Y.split(";"),t=M.shift(),K=OjU[t],L=null;K?L=K(M,G,u,O):TM("no hint processor for: "+t);L||TM("failed to generate load url");G=L;u=G.match(aHR);(O=G.match(TjX))&&O.length===1&&LNX.test(G)&&u&&u.length===1||TM("failed sanity: "+Y);try{Y="?";if(Q&&Q.length>0){wuy(Q);var g=Q.join(",");L=L+"?le="+g;Y="&"}if(Ka.rol){var P=Ka.ol;
P&&P.length&&(L=""+L+Y+"ol="+P.length)}}catch(I){}return L},IHU=function(Y,G,u,O){Y=XDM(Y);
tge.test(u)||TM("invalid_callback");G=Poe(G);O=O&&O.length?Poe(O):null;var Q=function(M){return encodeURIComponent(M).replace(/%2C/g,",")};
return[encodeURIComponent(Y.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",Q(Y.version),"/m=",Q(G),O?"/exm="+Q(O):"","/rt=j/sv=1/d=1/ed=1",Y.activeMods?"/am="+Q(Y.activeMods):"",Y.resourceSig?"/rs="+Q(Y.resourceSig):"",Y.zcms?"/t="+Q(Y.zcms):"","/cb=",Q(u)].join("")},XDM=function(Y){Y.charAt(0)!=="/"&&TM("relative path");
for(var G=Y.substring(1).split("/"),u=[];G.length;){Y=G.shift();if(!Y.length||Y.indexOf(".")==0)TM("empty/relative directory");else if(Y.indexOf("=")>0){G.unshift(Y);break}u.push(Y)}Y={};for(var O=0,Q=G.length;O<Q;++O){var M=G[O].split("="),t=decodeURIComponent(M[0]),K=decodeURIComponent(M[1]);M.length==2&&t&&K&&(Y[t]=Y[t]||K)}G="/"+u.join("/");Mgl.test(G)||TM("invalid_prefix");u=0;for(O=HjU.length;u<O;++u)HjU[u].test(G)&&TM("invalid_prefix");u=kBe(Y,"k",!0);O=kBe(Y,"am");Q=kBe(Y,"rs");Y=kBe(Y,"t");
return{pathPrefix:G,version:u,activeMods:O,resourceSig:Q,zcms:Y}},Poe=function(Y){for(var G=[],u=0,O=Y.length;u<O;++u){var Q=Y[u].replace(/\./g,"_").replace(/-/g,"_");
KNT.test(Q)&&G.push(Q)}return G.join(",")},kBe=function(Y,G,u){Y=Y[G];
!Y&&u&&TM("missing: "+G);if(Y){if(EdU.test(Y))return Y;TM("invalid: "+G)}return null},LNX=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,TjX=/\/cb=/g,aHR=/\/\//g;
OjU.m=function(Y,G,u,O){(Y=Y[0])||TM("missing_hint");return"https://apis.google.com"+IHU(Y,G,u,O)};
var ndl=decodeURI("%73cript"),FN_=/^[-+_0-9\/A-Za-z]+={0,2}$/,pDI=function(Y,G){for(var u=[],O=0;O<Y.length;++O){var Q=Y[O],M;if(M=Q){a:{for(M=0;M<G.length;M++)if(G[M]===Q)break a;M=-1}M=M<0}M&&u.push(Q)}return u},zQE=function(){var Y=Ka.nonce;
return Y!==void 0?Y&&Y===String(Y)&&Y.match(FN_)?Y:Ka.nonce=null:M$.querySelector?(Y=M$.querySelector("script[nonce]"))?(Y=Y.nonce||Y.getAttribute("nonce")||"",Y&&Y===String(Y)&&Y.match(FN_)?Ka.nonce=Y:Ka.nonce=null):null:null},rGk=function(Y){if(M$.readyState!="loading")m2M(Y);
else{var G=zQE(),u="";G!==null&&(u=' nonce="'+G+'"');Y="<"+ndl+' src="'+encodeURI(Y)+'"'+u+"></"+ndl+">";M$.write(WNR?WNR.createHTML(Y):Y)}},m2M=function(Y){var G=M$.createElement(ndl);
G.setAttribute("src",WNR?WNR.createScriptURL(Y):Y);Y=zQE();Y!==null&&G.setAttribute("nonce",Y);G.async="true";(Y=M$.getElementsByTagName(ndl)[0])?Y.parentNode.insertBefore(G,Y):(M$.head||M$.body||M$.documentElement).appendChild(G)},fH2=function(Y,G,u){x24(function(){var O=G===$6e()?Hv(tt,"_",E9()):E9();
O=Hv(s0R(G),"_",O);Y(O)},u)},gRg=function(Y,G){var u=G||{};
typeof G=="function"&&(u={},u.callback=G);var O=(G=u)&&G._c;if(O)for(var Q=0;Q<Q3V.length;Q++){var M=Q3V[Q][0],t=Q3V[Q][1];t&&Object.prototype.hasOwnProperty.call(O,M)&&t(O[M],Y,G)}G=[];Y?G=Y.split(":"):u.features&&(G=u.features);if(!(Y=u.h)&&(Y=$6e(),!Y))throw Error("Wa");CoU(G||[],u,Y)},CoU=function(Y,G,u){Y=BN2(Y)||[];
var O=G.callback,Q=G.config,M=G.timeout,t=G.ontimeout,K=G.onerror,L=void 0;typeof K=="function"&&(L=K);var g=null,P=!1;if(M&&!t||!M&&t)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";K=Hv(s0R(u),"r",[]).sort();var I=Hv(s0R(u),"L",[]).sort(),k=Ka.le||[],n=[].concat(K),p=function(B,N){if(P)return 0;Qs.clearTimeout(g);I.push.apply(I,W);var h=((tt||{}).config||{}).update;h?h(Q):Q&&Hv(Ka,"cu",[]).push(Q);if(N){uPR("me0",B,n);try{fH2(N,u,L)}finally{uPR("me1",B,n)}}return 1};
M>0&&(g=Qs.setTimeout(function(){P=!0;t()},M));
var W=pDI(Y,I);if(W.length){W=pDI(Y,K);var C=Hv(Ka,"CP",[]),e=C.length;C[e]=function(B){if(!B)return 0;uPR("ml1",W,n);var N=function(q){C[e]=null;p(W,B)&&qV1(function(){O&&O();q()})},h=function(){var q=C[e+1];
q&&q()};
e>0&&C[e-1]?C[e]=function(){N(h)}:N(h)};
if(W.length){var w="loaded_"+Ka.I++;tt[w]=function(B){C[e](B);tt[w]=null};
Y=gdT(u,W,"gapi."+w,K,k);K.push.apply(K,W);uPR("ml0",W,n);G.sync||Qs.___gapisync?rGk(Y):m2M(Y)}else C[e](VKR)}else p(W)&&O&&O()},yGX;
var eQI=null,AGe=_.OI.trustedTypes;if(AGe&&AGe.createPolicy){try{eQI=AGe.createPolicy("goog#gapi",{createHTML:ugl,createScript:ugl,createScriptURL:ugl})}catch(Y){_.OI.console&&_.OI.console.error(Y.message)}yGX=eQI}else yGX=eQI;var WNR=yGX,x24=function(Y,G){if(Ka.hee&&Ka.hel>0)try{return Y()}catch(u){G&&G(u),Ka.hel--,gRg("debug_error",function(){try{window.___jsl.hefn(u)}catch(O){throw u;}})}else try{return Y()}catch(u){throw G&&G(u),u;
}},od1=tt.load;
od1&&Hv(Ka,"ol",[]).push(od1);tt.load=function(Y,G){return x24(function(){return gRg(Y,G)})};var ZGu;var RQR=function(){var Y=Y||[];this.dependencies_=[];ijX(this,Y)};
RQR.prototype.toString=function(){return"MpJwZc"};
RQR.prototype.getModuleId=function(){return"MpJwZc"};
var ijX=function(Y,G){var u=!1;u=u===void 0?!1:u;Y.dependencies_=Y.dependencies_.concat(G);u&&G.map(function(O){return O.getModuleId()}).forEach(function(O){DNt(function(Q){Q.addExtraEdge("MpJwZc",O)})})};var HXa=new RQR;var uht=new _.Pp("a"),tcY=new _.Pp("c"),Esu=function(Y,G,u){_.lI.call(this,Y,G);this.node=G;this.kind=u};
_.m(Esu,_.lI);var wDM=function(){this.JSC$10385_keys_={};this.urlPrefix_="";this.JSC$10385_queryData_={}};
wDM.prototype.toString=function(){var Y=this.urlPrefix_+Zje(this),G=_.vI(this.JSC$10385_queryData_),u="";G!=""&&(u="?"+G);return Y+u};
var D21=function(Y){Y=La(Y,"md");return!!Y&&Y!=="0"},Zje=function(Y){var G=[],u=function(O){Y.JSC$10385_keys_[O]!==void 0&&G.push(O+"="+Y.JSC$10385_keys_[O])};
D21(Y)?(u("md"),u("k"),u("ck"),u("am"),u("rs"),u("gssmodulesetproto"),u("slk"),u("dti")):(u("sdch"),u("k"),u("ck"),u("am"),u("amc"),u("rt"),"d"in Y.JSC$10385_keys_||gd(Y,"d","0"),u("d"),u("exm"),u("excm"),(Y.JSC$10385_keys_.excm||Y.JSC$10385_keys_.exm)&&G.push("ed=1"),u("im"),u("dg"),u("sm"),La(Y,"br")!="1"&&La(Y,"br")!="0"||u("br"),u("br-d"),La(Y,"rb")=="1"&&u("rb"),La(Y,"zs")!=="0"&&u("zs"),hQ_(Y)!==""&&u("wt"),u("gssmodulesetproto"),u("ujg"),u("sp"),u("rs"),u("cb"),u("ee"),u("slk"),u("dti"),u("m"));
return G.join("/")},La=function(Y,G){return Y.JSC$10385_keys_[G]?Y.JSC$10385_keys_[G]:null},gd=function(Y,G,u){u?Y.JSC$10385_keys_[G]=u:delete Y.JSC$10385_keys_[G]},d2e=function(Y,G){Y.urlPrefix_=G},bjR=function(Y,G){G&&G.length>0?(G.sort(),gd(Y,"exm",G.join(","))):gd(Y,"exm",null)},SkT=function(Y,G){G&&G.length>0?(G.sort(),gd(Y,"excm",G.join(","))):gd(Y,"excm",null)},NjT=function(Y){return(Y=La(Y,"m"))?Y.split(","):[]},hQ_=function(Y){switch(La(Y,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},j3R=function(Y,G){var u=Object.keys(G).filter(function(O){return!!Object.keys(G[O]).length}).map(function(O){var Q=Object.keys(G[O]);
Q.length>1&&Q.sort();return O+":"+Q.join(",")});
u.sort();gd(Y,"ee",u.join(";"))},YV4=function(Y){var G=La(Y,"ee");
if(!G)return{};Y={};G=_.E(G.split(";"));for(var u=G.next();!u.done;u=G.next()){var O=_.E(u.value.split(":"));u=O.next().value;O=O.next().value;Y[u]={};O=_.E(O.split(","));for(var Q=O.next();!Q.done;Q=O.next())Y[u][Q.value]=!0}return Y},VgM=function(Y){delete Y.JSC$10385_keys_.m;
delete Y.JSC$10385_keys_.exm;delete Y.JSC$10385_keys_.ed};
wDM.prototype.clone=function(){var Y=new wDM;Y.JSC$10385_keys_=Object.assign({},this.JSC$10385_keys_);Y.urlPrefix_=this.urlPrefix_;Y.JSC$10385_queryData_=Object.assign({},this.JSC$10385_queryData_);return Y};
var G5t=function(Y,G){G=G===void 0?!0:G;var u=lHe(Y),O=new wDM,Q=_.jL(u)[5];_.gX.forEach(BjR,function(t){var K=Q.match("/"+t+"=([^/]+)");K&&gd(O,t,K[1])});
var M="";M=Y.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";d2e(O,Y.substr(0,Y.indexOf(M)+M.length));if(!G)return O;(Y=_.jL(u)[6]||null)&&UUg(Y,function(t,K){O.JSC$10385_queryData_[t]=K});
return O},UC1=function(Y){Y=_.BI(lHe(Y));
return Y===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(Y)?/\/k=/.test(Y):!1},lHe=function(Y){return Y.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?Y.substr(65):Y},BjR={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",ALLOW_MISSING_CHUNKS:"amc",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"},$2U=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.Xd=function(Y){this.JSC$10397_id_=Y;this.opts={}};
_.Xd.prototype.JSC$10399_setLabel=function(Y){this.label_=Y||void 0;return this};
_.Xd.prototype.setOptions=function(Y){this.opts=Y;return this};
_.Xd.prototype.addUploadMetadata=function(Y,G){var u=this.opts.data||{};u[Y]=G;this.opts.data=u;return this};
var qkR=function(Y){var G=_.gX.filter(Y.opts,function(u){return u!==null});
G=_.gX.isEmpty(G)?null:G;Y=[Y.JSC$10397_id_,Y.label_,G];G=eAu(Y);return Y=Y.slice(0,G+1)};
_.Xd.prototype.toString=function(){var Y=qkR(this);return"("+_.Xi(Y,function(G){return JSON.stringify(G)}).join(",")+")"};
_.Xd.prototype.getId=function(){return this.JSC$10397_id_};
_.Xd.prototype.getOptions=function(){return _.gX.clone(this.opts)};var Pv=function(){_.Xd.call(this,"image-search")};
_.m(Pv,_.Xd);Pv.prototype.setSize=function(Y){this.opts.imgsz=Y;return this};
Pv.prototype.JSC$10399_setLabel=function(Y){_.Xd.prototype.JSC$10399_setLabel.call(this,Y);return this};
Pv.prototype.addUploadMetadata=function(Y,G){_.Xd.prototype.addUploadMetadata.call(this,Y,G);return this};var IP=function(){_.Xd.call(this,"maps")};
_.m(IP,_.Xd);IP.prototype.setZoom=function(Y){this.opts.zoom=Y;return this};
IP.prototype.JSC$10399_setLabel=function(Y){_.Xd.prototype.JSC$10399_setLabel.call(this,Y);return this};
IP.prototype.addUploadMetadata=function(Y,G){_.Xd.prototype.addUploadMetadata.call(this,Y,G);return this};_.kD=function(){_.Xd.call(this,"photos")};
_.m(_.kD,_.Xd);_.kD.prototype.JSC$10399_setLabel=function(Y){_.Xd.prototype.JSC$10399_setLabel.call(this,Y);return this};
_.kD.prototype.addUploadMetadata=function(Y,G){_.Xd.prototype.addUploadMetadata.call(this,Y,G);return this};var na=function(){_.Xd.call(this,"url")};
_.m(na,_.Xd);var s3T=function(){var Y=new na;Y.opts.type="video";Y.opts.site="youtube.com";return Y};
na.prototype.JSC$10399_setLabel=function(Y){_.Xd.prototype.JSC$10399_setLabel.call(this,Y);return this};
na.prototype.addUploadMetadata=function(Y,G){_.Xd.prototype.addUploadMetadata.call(this,Y,G);return this};var Fd=function(){_.Xd.call(this,"video-search")};
_.m(Fd,_.Xd);var cGl=function(){var Y=new Fd;Y.opts.site="youtube.com";return Y};
Fd.prototype.JSC$10399_setLabel=function(Y){_.Xd.prototype.JSC$10399_setLabel.call(this,Y);return this};
Fd.prototype.addUploadMetadata=function(Y,G){_.Xd.prototype.addUploadMetadata.call(this,Y,G);return this};var U2M=function(){_.Xd.call(this,"web")};
_.m(U2M,_.Xd);U2M.prototype.JSC$10399_setLabel=function(Y){_.Xd.prototype.JSC$10399_setLabel.call(this,Y);return this};
U2M.prototype.addUploadMetadata=function(Y,G){_.Xd.prototype.addUploadMetadata.call(this,Y,G);return this};var pa=function(){this.items_=[];this.opts={}},vd2=function(Y){switch(Y){case "image-search":return new Pv;
case "maps":return new IP;case "photos":return new _.kD;case "url":return new na;case "video-search":return new Fd;case "web":return new U2M}return new _.Xd(Y)};
pa.prototype.addView=function(Y){this.items_.push(typeof Y==="string"?vd2(Y):Y);return this};
var JG_=function(Y){return"("+_.Xi(Y.items_,function(G){return G.toString()}).join(",")+")"};
pa.prototype.toString=function(){return JG_(this)};
pa.prototype.getViews=function(Y,G){G=G===void 0?[]:G;for(var u=this.items_,O=0;O<u.length;O++){var Q=u[O];Q instanceof pa?Q.getViews(Y,G):Q.getId()==Y&&G.push(Q)}return G};
pa.prototype.getOptions=function(){return _.gX.clone(this.opts)};var wU=function(Y){this.basePickerUrl_=Y||"https://docs.google.com/picker";this.nav_=new pa};
wU.prototype.nav_=null;wU.prototype.addView=function(Y){this.nav_.addView(Y);return this};
wU.prototype.getBaseUrl=function(){return this.basePickerUrl_};
wU.prototype.getViews=function(Y){return this.nav_.getViews(Y)};
_.YtR=function(Y,G){Y.callback_=G;return Y};var GNe=new Map;GNe.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");GNe.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");GNe.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var u1R=new Set;u1R.add("application/vnd.google-apps.kix");u1R.add("application/vnd.google-apps.ritz");u1R.add("application/vnd.google-apps.punch");var Xcl=function(Y,G,u){var O=u&&_.zy(u,1);u=OAI(u);var Q=Y[0].getId();switch(_.mK(Q,2)){case 13:return Qne(Y,G,O,u);case 3:return M92(Y,G,O,u);case 10:return HAT(Y,G,O,u);case 27:return HAT(Y,G,O,u);case 12:return ETI(Y,G);case 2:return t9e(Y,G,O,u);case 5:return KUX(Y,G,O,u);case 9:return aUl(Y,G,O,u);case 6:return Ta_(Y,G,O,u);case 25:return LUR(Y,G,O,u);case 1:return _.aG(Y[0],$AT,26)?gTX(Y,G,O,u):HAT(Y,G,O,u);default:return{}}},Ta_=function(Y,G,u,O){Y=Y.map(function(Q){return{id:Q.getId().getId(),
serviceId:"youtube",name:Q.getName(),description:_.zy(Q,3),type:zM(Q),lastEditedUtc:_.BUR(_.QH(Q,_.mz,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Q.getUrl(),embedUrl:_.zy(Q,13),thumbnails:mj(sS(Q))}});
return{action:G,docs:Y,viewToken:O,view:u||"youtube",v2Translated:!0}},t9e=function(Y,G,u,O){var Q=Y.map(function(M){var t=M.getId().getId(),K=_.zy(M,7),L=M.getName(),g=zM(M),P=_.BUR(_.QH(M,_.mz,12)).getTime(),I=M.getUrl(),k=Number(knR(M)),n=_.zy(M,3),p=_.zy(M,11),W=mj(sS(M));
var C=_.QH(M,cG,21);C=_.nc(C,1);var e=_.QH(M,cG,21);e=_.zy(e,10);var w=_.zy(M,13);var B=_.QH(M,cG,21);B=_.nc(B,9);var N=_.QH(M,cG,21);N=_.zy(N,11);t={id:t,serviceId:"docs",mimeType:K,name:L,type:g,lastEditedUtc:P,url:I,sizeBytes:k,description:n,iconUrl:p,thumbnails:W,isShared:C,downloadUrl:e,embedUrl:w,copyable:B,resourceKey:N};K=_.QH(M,cG,21);_.nc(K,12)&&(t.uploadState="success",t.isNew=!0);K=_.QH(M,cG,21);_.aG(K,BG,3)&&(M=_.QH(M,cG,21),M=_.QH(M,BG,3),_.aG(M,VV,2)&&(K=xH(M.getDuration().getSeconds()),
L=M.getDuration(),L=_.Sh(L,2),t.duration=K+L/1E9),t.aspectRatio=M.getAspectRatio());return t});
return{action:G,docs:Q,viewToken:O,view:u||"all",extraUserInputs:Pl2(Y),v2Translated:!0}},KUX=function(Y,G,u,O){Y=Y.map(function(Q){var M=_.QH(Q,uxX,15);
M=_.QH(M,lT,1);PY(Q,10,lT,M);return{id:Q.getId().getId(),serviceId:"web",mimeType:_.zy(Q,7),name:Q.getName(),type:zM(Q),url:Q.getUrl(),description:_.zy(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:mj(sS(Q))}});
return{action:G,docs:Y,viewToken:O,view:u||"image-search",v2Translated:!0}},aUl=function(Y,G,u,O){Y=Y.map(function(Q){return{serviceId:"url",
name:sS(Q)[0].getUrl().split("/").pop(),type:zM(Q),mimeType:_.zy(Q,7),url:Q.getUrl(),description:_.zy(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:mj(sS(Q))}});
return{action:G,docs:Y,viewToken:O,view:u||"url",v2Translated:!0}},gTX=function(Y,G,u,O){Y=Y.map(function(Q){return{id:Q.getId().getId(),
serviceId:"picasa",name:Q.getName(),type:zM(Q),description:_.zy(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:mj(sS(Q))}});
return{action:G,docs:Y,viewToken:O,view:u||"webcam",v2Translated:!0}},HAT=function(Y,G,u,O){return{action:G,
docs:Y.map(IU4),viewToken:O,view:kNI(u||"upload",Y),extraUserInputs:Pl2(Y),v2Translated:!0}},kNI=function(Y,G){return G.some(function(u){var O;
return((O=_.QH(u,$S,30))==null?void 0:_.mK(O,3))===9})?Y+"/gmailphotos":Y},M92=function(Y,G,u,O){var Q=Y.map(function(M){var t={id:M.getId().getId(),
serviceId:"picasa",mimeType:_.zy(M,7),name:M.getName(),type:zM(M),lastEditedUtc:_.BUR(_.QH(M,_.mz,12)).getTime(),url:M.getUrl(),sizeBytes:Number(knR(M)),description:_.zy(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:mj(sS(M)),mediaKey:M.getId().getId(),parentId:_.zy(M,4)},K,L=(K=_.QH(M,cP2,18))==null?void 0:_.QH(K,seV,3);L&&(t.latitude=pc(L,1),t.longitude=pc(L,2));var g;M=(g=_.QH(M,cP2,18))==null?void 0:FU(g,6);g=M!=null?xH(M):void 0;g&&(t.version=
g);return t});
return{action:G,docs:Q,viewToken:O,view:u||"photos",extraUserInputs:Pl2(Y),v2Translated:!0}},Qne=function(Y,G,u,O){Y=Y.map(function(Q){return{id:Q.getId().getId(),
serviceId:"et",name:sS(Q)[0].getUrl().split("/").pop(),description:_.zy(Q,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:mj(sS(Q),"etjpg")}});
return{action:G,docs:Y,viewToken:O,view:u||"et",v2Translated:!0}},LUR=function(Y,G,u,O){Y=Y.map(function(Q){var M=Q.getId().getId(),t=O["2"];
return{id:M,serviceId:t.type!=="gmail_themes"&&t.parent==="6226252643674576769"?"picasa":"static_themes",name:Q.getName(),mimeType:_.zy(Q,7),type:zM(Q),description:_.zy(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Q.getUrl(),embedUrl:Q.getUrl(),thumbnails:mj(sS(Q))}});
return{action:G,docs:Y,viewToken:O,view:u||"photos",v2Translated:!0}},ETI=function(Y,G){Y=Y.map(function(u){var O=_.QH(u,qyI,27);
O=_.Gn(O,1,_.AB,_.bd())[0];return{id:u.getId().getId(),serviceId:"contacts",mimeType:_.zy(u,7),name:u.getName(),description:_.zy(u,3),url:"mailto:"+O,thumbnail:[{url:_.zy(u,11)}],email:O}});
return{action:G,docs:Y,view:"contacts",v2Translated:!0}},OAI=function(Y){if(!Y)return{};
var G=_.zy(Y,3);G=G&&JSON.parse(G)||{};return{0:_.zy(Y,1),1:_.zy(Y,2),2:G}},mj=function(Y,G){G=G===void 0?"":G;
if(!Y.length)return null;G=="etjpg"&&(Y=Y.filter(function(u){return u.getUrl().includes("w1200-h300")}));
return Y.map(function(u){return{url:u.getUrl(),height:u.getHeight(),width:u.getWidth(),type:G}})},Pl2=function(Y){return{isAttachment:Y.some(function(G){return _.nc(G,31)})}},IU4=function(Y){var G,u={id:(G=Y.getId())==null?void 0:G.getId(),
serviceId:nT4(Y),mimeType:_.zy(Y,7),name:Y.getName(),type:zM(Y),sizeBytes:Number(knR(Y)),description:_.zy(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:mj(sS(Y)),isNew:!0};if(G=_.QH(Y,$S,30)){u.dataUrl=_.zy(G,1)||null;a:{var O=_.QH(Y,$S,30);switch(_.mK(O,3)){case 9:O=_.fc(O,YWX,2,q1);O={remoteRefs:O&&_.zy(O,1)};break a;case 10:case 15:O=_.fc(O,JPl,4,q1);var Q=sS(Y);O={photo_id:O&&_.zy(O,1),media_key:Y.getId().getId(),media_type:_.mK(Y,6)===1?1:2,image_url:Q&&
Q[0].getUrl(),width:Q&&String(Q[0].getWidth()),height:Q&&String(Q[0].getHeight())};break a}O=null}u.uploadMetadata=O;u.uploadId=_.zy(G,9)||null;u.uploadState=FUI(G)||null}(O=G&&_.fc(G,JPl,4,q1))&&(u.id=_.zy(O,1));(O=G&&_.fc(G,GXR,5,q1))&&(u.contentId=_.zy(O,1));(O=G&&_.fc(G,UAe,7,q1))&&(u.contentId=_.zy(O,1));(O=G&&_.fc(G,vH2,6,q1))&&(u.contentId=_.zy(O,1));(G==null?void 0:_.mK(G,3))===1&&(u.mediaKey=Y.getId().getId());return u},nT4=function(Y){var G;
switch(((G=_.QH(Y,$S,30))==null?void 0:_.mK(G,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},zM=function(Y){switch(_.mK(Y,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 _.zy(Y,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},FUI=function(Y){switch(Y==null?void 0:_.mK(Y,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 WU1,pcR,zTI,mt_;_.roR=function(Y,G){var u=G||{};G=u.document||document;var O=_.bs(Y).toString(),Q=(new WG(G)).createElement("SCRIPT"),M={script_:Q,timeout_:void 0},t=new XY(pcR,M),K=null,L=u.timeout!=null?u.timeout:5E3;L>0&&(K=window.setTimeout(function(){zTI(Q,!0);t.errback(new mt_(1,"Timeout reached for loading script "+O))},L),M.timeout_=K);
Q.onload=Q.onreadystatechange=function(){Q.readyState&&Q.readyState!="loaded"&&Q.readyState!="complete"||(zTI(Q,u.cleanupWhenDone||!1,K),t.callback(null))};
Q.onerror=function(){zTI(Q,!0,K);t.errback(new mt_(0,"Error while loading script "+O))};
M=u.attributes||{};_.gX.extend(M,{type:"text/javascript",charset:"UTF-8"});UU2(Q,M);_.P8(Q,Y);WU1(G).appendChild(Q);return t};
WU1=function(Y){var G=Qn("HEAD",Y);return G&&G.length!==0?G[0]:Y.documentElement};
pcR=function(){if(this&&this.script_){var Y=this.script_;Y&&Y.tagName=="SCRIPT"&&zTI(Y,!0,this.timeout_)}};
zTI=function(Y,G,u){u!=null&&_.OI.clearTimeout(u);Y.onload=function(){};
Y.onerror=function(){};
Y.onreadystatechange=function(){};
G&&window.setTimeout(function(){_.Oy(Y)},0)};
mt_=function(Y,G){var u="Jsloader error (code #"+Y+")";G&&(u+=": "+G);_.Ya.call(this,u);this.code=Y};
_.qz(mt_,_.Ya);var xtl=_.hV(["https://apis.google.com/js/api.js"]),fU2=_.fO(xtl),AoT=function(Y,G,u){u=u===void 0?{}:u;var O=!1,Q=ClV(Y,G,u).then(function(t){O=!0;return t}),M=_.Q2U(5E3).then(function(){return O?ClV(Y,G,u):yoT(G,u).then(function(t){return eTe(t,Y)})});
return BcV([Q,M])},ClV=function(Y,G,u){u=u===void 0?{}:u;
return oTI(G,u).then(function(O){return eTe(O,Y)})},eTe=function(Y,G){var u=_.EI(G,"gapi.")?G.slice(5):G;
return Y[u]?_.v$(Y[u]):new _.a0(function(O,Q){var M=rf(function(){Q(Error("Za"))},3E4);
Y.load(G,{callback:function(){_.OI.clearTimeout(M);O(Y[u])},
onerror:function(t){_.OI.clearTimeout(M);Q(t)}})})},oTI=function(Y,G){G=G===void 0?{}:G;
return Y.gapi&&Y.gapi.load?_.v$(Y.gapi):yoT(Y,G)},yoT=function(Y,G){G=G===void 0?{}:G;
return _.roR(fU2,{document:Y.document,attributes:G}).then(function(){return Y.gapi})},iA4=function(){};
iA4.prototype.load=function(Y,G,u){G=G===void 0?window:G;u=u===void 0?{}:u;var O=Date.now();return AoT(Y,G,u).then(function(Q){var M=Date.now();return{library:Q,loadStartMs:O,loadEndMs:M}},function(Q){throw Q instanceof Error?Q:Error(String(Q));
})};var tVA=function(){_.Ey.call(this);this.gapiLoader_=new iA4;this.origin_=null;this.gapiPickerIframeResolver_=_.RS();this.gapiIframesResolver_=_.RS();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.m(tVA,_.Ey);var RTe=function(Y,G){var u=u===void 0?{}:u;var O=_.So("gapi.iframes",G);return O?(Y=Date.now(),_.v$({library:O,loadStartMs:Y,loadEndMs:Y})):Y.gapiLoader_.load("gapi.iframes",G,u)},wcX=function(Y,G,u,O,Q,M){var t=!1;
t=t===void 0?!1:t;RTe(Y,kI(G.ownerDocument)).then(function(K){var L=K.library;Y.gapiIframesResolver_.resolve(L);K=Y.gapiPickerIframeResolver_;var g=K.resolve,P=t;P=P===void 0?!1:P;var I={};I["host-message-handler"]=u;Y.hostMessageHandlerInternal_=I;var k=_.bI(O);k=_.bI(k);k=_.qO(_.$5(_.Bp(new _.Rx,k.scheme_),k.JSC$10357_domain_),k.JSC$10357_port_).toString();Y.origin_=k;k=(new v7R).setUrl(O);k.JSC$10372_obj_.where=G;k.JSC$10372_obj_.allowPost=P;k.JSC$10372_obj_.messageHandlers=I;P=_.So("makeWhiteListIframesFilter",
L)([Y.origin_]);k.JSC$10372_obj_.messageHandlersFilter=P;Q!=null&&(k.JSC$10372_obj_.id=Q);M!=null&&(k.JSC$10372_obj_.rpctoken=M);P=U6X(k);P.JSC$10369_obj_.style={display:"block","min-width":"100%",width:"1px"};P.JSC$10369_obj_.height="100%";U6X(k).value().allow="camera 'src' "+Y.origin_;L=L.getContext().openChild(k.value());g.call(K,L)},function(K){Y.gapiIframesResolver_.reject(K);
Y.gapiPickerIframeResolver_.reject(K)});
return Y.gapiPickerIframeResolver_.promise},ZAe=function(Y,G){return _.mV([Y.gapiIframesResolver_.promise,
Y.gapiPickerIframeResolver_.promise]).then(function(u){var O=_.E(u);u=O.next().value;return(O=O.next().value)?O.send("picker-message-handler",G,void 0,_.So("makeWhiteListIframesFilter",u)([Y.origin_])):_.Ld(Error("$a"))})};
tVA.prototype.disposeInternal=function(){DtX(this);_.Ey.prototype.disposeInternal.call(this)};
var DtX=function(Y){Y.gapiPickerIframeResolver_.promise.then(function(G){G&&(G.unregister("host-message-handler"),delete Y.hostMessageHandlerInternal_["host-message-handler"])})};var hTE=function(){this.nextId=0};var bAX=function(Y,G){switch(Y.action){case "select-contacts":Y=dtV(Y.contacts);break;case "visibility":Y=Y.visible;var u=new Y5;Y=_.yd(u,1,7).setVisible(Y);u={};u["iframe-command"]=Y.serialize();Y=u;break;default:Y=null}return Y?ZAe(G,Y):_.v$()},dtV=function(Y){if(!Y||Y.length==0)return null;
var G=new Y5;_.yd(G,1,11);var u=new hTE;Y.forEach(function(O){if(O.email){var Q=new Pa;Q=_.DL(Q,2,O.name?O.name:O.email);var M=new qyI;O=_.JB1(M,1,_.Cx,O.email,_.AB);O=_.Rh(Q,27,O);Q=new l4I;M=":"+(u.nextId++).toString(36);Q=_.DL(Q,1,M);Q=_.yd(Q,2,12);O=_.Rh(O,1,Q)}else O=null;O&&PY(G,7,Pa,O)});
Y={};Y["iframe-command"]=G.serialize();return Y};_.Stl=function(){if(wbE){var Y=/Windows NT ([0-9.]+)/;return(Y=Y.exec(_.zg()))?Y[1]:"0"}return _.RjR?(Y=/1[0|1][_.][0-9_.]+/,(Y=Y.exec(_.zg()))?Y[0].replace(/_/g,"."):"10"):lfa?(Y=/Android\s+([^\);]+)(\)|;)/,(Y=Y.exec(_.zg()))?Y[1]:""):D94||hjT||d9T?(Y=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(Y=Y.exec(_.zg()))?Y[1].replace(/_/g,"."):""):""}();var Wv;Wv=function(Y){return(Y=Y.exec(_.zg()))?Y[1]:""};
_.Na2=function(){if(_.uO)return Wv(/Firefox\/([0-9.]+)/);if(_.YU||s5||AB2)return Bbe;if(_.MP){if(_.oU()||_.ftu()){var Y=Wv(/CriOS\/([0-9.]+)/);if(Y)return Y}return Wv(/Chrome\/([0-9.]+)/)}if(_.Zn&&!_.oU())return Wv(/Version\/([0-9.]+)/);if(C8g||yHA){if(Y=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.zg()))return Y[1]+"."+Y[2]}else if(U9E)return(Y=Wv(/Android\s+([0-9.]+)/))?Y:Wv(/Version\/([0-9.]+)/);return""}();_.BH(bGU);bGU.prototype.nextId_=0;_.rd=function(Y){return":"+(Y.nextId_++).toString(36)};var AP=function(Y){_.C7.call(this);this.JSC$10467_dom_=Y||HF();this.JSC$10467_id_=null;this.inDocument_=!1;this.JSC$10467_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.qz(AP,_.C7);AP.prototype.idGenerator_=bGU.getInstance();AP.prototype.getId=function(){return this.JSC$10467_id_||(this.JSC$10467_id_=_.rd(this.idGenerator_))};
AP.prototype.getElement=function(){return this.JSC$10467_element_};
var xD=function(Y){Y.googUiComponentHandler_||(Y.googUiComponentHandler_=new _.ae(Y));return Y.googUiComponentHandler_},jnR=function(Y,G){if(Y==G)throw Error("ab");
var u;if(u=G&&Y.parent_&&Y.JSC$10467_id_){u=Y.parent_;var O=Y.JSC$10467_id_;u=u.childIndex_&&O?_.gX.get(u.childIndex_,O)||null:null}if(u&&Y.parent_!=G)throw Error("ab");Y.parent_=G;AP.superClass_.setParentEventTarget.call(Y,G)};
AP.prototype.setParentEventTarget=function(Y){if(this.parent_&&this.parent_!=Y)throw Error("bb");AP.superClass_.setParentEventTarget.call(this,Y)};
AP.prototype.JSC$10469_createDom=function(){this.JSC$10467_element_=this.JSC$10467_dom_.createElement("DIV")};
AP.prototype.render=function(Y){V9U(this,Y)};
var V9U=function(Y,G,u){if(Y.inDocument_)throw Error("cb");Y.JSC$10467_element_||Y.JSC$10469_createDom();G?G.insertBefore(Y.JSC$10467_element_,u||null):Y.JSC$10467_dom_.JSC$9647_document_.body.appendChild(Y.JSC$10467_element_);Y.parent_&&!Y.parent_.inDocument_||Y.enterDocument()};
_.H=AP.prototype;_.H.decorate=function(Y){if(this.inDocument_)throw Error("cb");if(Y&&this.canDecorate(Y)){this.wasDecorated_=!0;var G=_.nm(Y);this.JSC$10467_dom_&&this.JSC$10467_dom_.JSC$9647_document_==G||(this.JSC$10467_dom_=HF(Y));this.decorateInternal(Y);this.enterDocument()}else throw Error("db");};
_.H.canDecorate=function(){return!0};
_.H.decorateInternal=function(Y){this.JSC$10467_element_=Y};
_.H.enterDocument=function(){this.inDocument_=!0;lUR(this,function(Y){!Y.inDocument_&&Y.getElement()&&Y.enterDocument()})};
_.H.exitDocument=function(){lUR(this,function(Y){Y.inDocument_&&Y.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.H.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);lUR(this,function(Y){Y.dispose()});
!this.wasDecorated_&&this.JSC$10467_element_&&_.Oy(this.JSC$10467_element_);this.parent_=this.model_=this.JSC$10467_element_=this.childIndex_=this.children_=null;AP.superClass_.disposeInternal.call(this)};
_.H.getModel=function(){return this.model_};
_.H.addChild=function(Y,G){var u=this.children_?this.children_.length:0;if(Y.inDocument_&&(G||!this.inDocument_))throw Error("cb");if(u<0||u>(this.children_?this.children_.length:0))throw Error("eb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);Y.parent_==this?(_.gX.set(this.childIndex_,Y.getId(),Y),_.Nj(this.children_,Y)):_.gX.add(this.childIndex_,Y.getId(),Y);jnR(Y,this);_.RA4(this.children_,u,0,Y);Y.inDocument_&&this.inDocument_&&Y.parent_==this?(G=this.getContentElement(),
(G.childNodes[u]||null)!=Y.getElement()&&(Y.getElement().parentElement==G&&G.removeChild(Y.getElement()),u=G.childNodes[u]||null,G.insertBefore(Y.getElement(),u))):G?(this.JSC$10467_element_||this.JSC$10469_createDom(),u=this.children_?this.children_[u+1]||null:null,V9U(Y,this.getContentElement(),u?u.JSC$10467_element_:null)):this.inDocument_&&!Y.inDocument_&&Y.JSC$10467_element_&&Y.JSC$10467_element_.parentNode&&Y.JSC$10467_element_.parentNode.nodeType==1&&Y.enterDocument()};
_.H.getContentElement=function(){return this.JSC$10467_element_};
var lUR=function(Y,G){Y.children_&&Y.children_.forEach(G,void 0)};
AP.prototype.removeChild=function(Y,G){if(Y){var u=typeof Y==="string"?Y:Y.getId();Y=this.childIndex_&&u?_.gX.get(this.childIndex_,u)||null:null;u&&Y&&(_.gX.remove(this.childIndex_,u),_.Nj(this.children_,Y),G&&(Y.exitDocument(),Y.JSC$10467_element_&&_.Oy(Y.JSC$10467_element_)),jnR(Y,null))}if(!Y)throw Error("fb");return Y};_.qz(S5a,dNt);_.qz(NC1,dNt);var V1T;_.gX.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var BaM;_.fa=function(Y,G,u){_.C7.call(this);this.target=Y;this.handle=G||Y;this.limits=u||new RB(NaN,NaN,NaN,NaN);this.JSC$10472_document_=_.nm(Y);this.JSC$10472_eventHandler_=new _.ae(this);_.vF(this,this.JSC$10472_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;_.yn(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=BaM};
_.qz(_.fa,_.C7);BaM=_.OI.document&&_.OI.document.documentElement&&!!_.OI.document.documentElement.setCapture&&!!_.OI.document.releaseCapture;_.$tl=function(Y,G){Y.hysteresisDistanceSquared_=Math.pow(G,2)};
_.H=_.fa.prototype;_.H.setEnabled=function(Y){this.enabled_=Y};
_.H.disposeInternal=function(){_.fa.superClass_.disposeInternal.call(this);_.F_(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10472_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10472_document_.releaseCapture();this.handle=this.target=null};
_.H.startDrag=function(Y){var G=Y.type=="mousedown";if(!this.enabled_||this.dragging_||G&&(!Y.isButton(0)||_.RjR&&Y.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Ca("start",this,Y.clientX,Y.clientY,Y)))this.dragging_=!0,G&&Y.preventDefault();else return;else G&&Y.preventDefault();G=this.JSC$10472_document_;var u=G.documentElement,O=!this.useSetCapture_;this.JSC$10472_eventHandler_.listen(G,["touchmove","mousemove"],this.handleMove_,
{capture:O,passive:!1});this.JSC$10472_eventHandler_.listen(G,["touchend","mouseup"],this.endDrag,O);this.useSetCapture_?(u.setCapture(!1),this.JSC$10472_eventHandler_.listen(u,"losecapture",this.endDrag)):this.JSC$10472_eventHandler_.listen(kI(G),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10472_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,O);this.clientX=this.startX=Y.clientX;this.clientY=this.startY=Y.clientY;this.screenX=Y.screenX;this.screenY=Y.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=MU(HF(this.JSC$10472_document_))}};
_.H.endDrag=function(Y,G){this.JSC$10472_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10472_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Ca("end",this,Y.clientX,Y.clientY,Y,qt2(this,this.deltaX),snX(this,this.deltaY),G||Y.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.H.handleMove_=function(Y){if(this.enabled_){var G=Y.clientX-this.clientX,u=Y.clientY-this.clientY;this.clientX=Y.clientX;this.clientY=Y.clientY;this.screenX=Y.screenX;this.screenY=Y.screenY;if(!this.dragging_){var O=this.startX-this.clientX,Q=this.startY-this.clientY;if(O*O+Q*Q>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Ca("start",this,Y.clientX,Y.clientY,Y)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(Y);return}}u=co1(this,G,u);G=u.x;u=u.y;this.dragging_&&this.dispatchEvent(new Ca("beforedrag",
this,Y.clientX,Y.clientY,Y,G,u))&&(Utl(this,Y,G,u),Y.preventDefault())}};
var co1=function(Y,G,u){var O=MU(HF(Y.JSC$10472_document_));G+=O.x-Y.pageScroll.x;u+=O.y-Y.pageScroll.y;Y.pageScroll=O;Y.deltaX+=G;Y.deltaY+=u;return new _.AD(qt2(Y,Y.deltaX),snX(Y,Y.deltaY))};
_.fa.prototype.onScroll_=function(Y){var G=co1(this,0,0);Y.clientX=this.clientX;Y.clientY=this.clientY;Utl(this,Y,G.x,G.y)};
var Utl=function(Y,G,u,O){Y.target.style.left=u+"px";Y.target.style.top=O+"px";Y.dispatchEvent(new Ca("drag",Y,G.clientX,G.clientY,G,u,O))},qt2=function(Y,G){var u=Y.limits;
Y=isNaN(u.left)?null:u.left;u=isNaN(u.width)?0:u.width;return Math.min(Y!=null?Y+u:Infinity,Math.max(Y!=null?Y:-Infinity,G))},snX=function(Y,G){var u=Y.limits;
Y=isNaN(u.top)?null:u.top;u=isNaN(u.height)?0:u.height;return Math.min(Y!=null?Y+u:Infinity,Math.max(Y!=null?Y:-Infinity,G))};
_.fa.prototype.isDragging=function(){return this.dragging_};
var Ca=function(Y,G,u,O,Q,M,t){_.lI.call(this,Y);this.clientX=u;this.clientY=O;this.browserEvent=Q;this.left=M!==void 0?M:G.deltaX;this.top=t!==void 0?t:G.deltaY};
_.qz(Ca,_.lI);var ys=function(Y){this.JSC$10479_map_=new Map;var G=arguments.length;if(G>1){if(G%2)throw Error("na");for(var u=0;u<G;u+=2)this.set(arguments[u],arguments[u+1])}else Y&&this.addAll(Y)};
_.H=ys.prototype;_.H.getCount=function(){return this.JSC$10479_map_.size};
_.H.getValues=function(){return Array.from(this.JSC$10479_map_.values())};
_.H.getKeys=function(){return Array.from(this.JSC$10479_map_.keys())};
_.H.containsKey=function(Y){return this.JSC$10479_map_.has(Y)};
_.H.containsValue=function(Y){return this.getValues().some(function(G){return G==Y})};
_.H.equals=function(Y,G){var u=this;G=G===void 0?function(O,Q){return O===Q}:G;
return this===Y?!0:this.JSC$10479_map_.size!=Y.getCount()?!1:this.getKeys().every(function(O){return G(u.JSC$10479_map_.get(O),Y.get(O))})};
_.H.isEmpty=function(){return this.JSC$10479_map_.size==0};
_.H.clear=function(){this.JSC$10479_map_.clear()};
_.H.remove=function(Y){return this.JSC$10479_map_.delete(Y)};
_.H.get=function(Y,G){return this.JSC$10479_map_.has(Y)?this.JSC$10479_map_.get(Y):G};
_.H.set=function(Y,G){this.JSC$10479_map_.set(Y,G);return this};
_.H.addAll=function(Y){if(Y instanceof ys){Y=_.E(Y.JSC$10479_map_);for(var G=Y.next();!G.done;G=Y.next()){var u=_.E(G.value);G=u.next().value;u=u.next().value;this.JSC$10479_map_.set(G,u)}}else if(Y)for(Y=_.E(Object.entries(Y)),G=Y.next();!G.done;G=Y.next())u=_.E(G.value),G=u.next().value,u=u.next().value,this.JSC$10479_map_.set(G,u)};
_.H.forEach=function(Y,G){var u=this;G=G===void 0?this:G;this.JSC$10479_map_.forEach(function(O,Q){return Y.call(G,O,Q,u)})};
_.H.clone=function(){return new ys(this)};(function(){for(var Y=["ms","moz","webkit","o"],G,u=0;G=Y[u]&&!_.OI.requestAnimationFrame;++u)_.OI.requestAnimationFrame=_.OI[G+"RequestAnimationFrame"],_.OI.cancelAnimationFrame=_.OI[G+"CancelAnimationFrame"]||_.OI[G+"CancelRequestAnimationFrame"];if(!_.OI.requestAnimationFrame){var O=0;_.OI.requestAnimationFrame=function(Q){var M=(new Date).getTime(),t=Math.max(0,16-(M-O));O=M+t;return _.OI.setTimeout(function(){Q(M+t)},t)};
_.OI.cancelAnimationFrame||(_.OI.cancelAnimationFrame=function(Q){clearTimeout(Q)})}})();
var BCt=[[],[]],$Nj=0,q5t=!1,ln1=0;var vT1=_.hV(["about:blank"]),JoV=_.hV(["javascript:undefined"]),YKI=_.fO(vT1);_.bs(YKI);var G1E=_.fO(JoV);_.bs(G1E);_.qz(eG,_.C7);eG.prototype.handleEvent=function(Y){var G=new _.IO(Y.event_);G.type=Y.type=="focusin"||Y.type=="focus"?"focusin":"focusout";this.dispatchEvent(G)};
eG.prototype.disposeInternal=function(){eG.superClass_.disposeInternal.call(this);tR(this.listenKeyIn_);tR(this.listenKeyOut_);delete this.JSC$10485_element_};_.qz(oe,AP);_.H=oe.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$10469_createDom=function(){oe.superClass_.JSC$10469_createDom.call(this);var Y=this.getElement(),G=IU(this.getCssClass()).split(" ");NO(Y,G);Y.tabIndex=0;_.jG(Y,!1);uAT(this);OXk(this)};
var uAT=function(Y){if(Y.useIframeMask_&&!Y.bgIframeEl_){var G=Y.JSC$10467_dom_.JSC$9649_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Er(G,YKI);Y.bgIframeEl_=G;Y.bgIframeEl_.className=Y.getCssClass()+"-bg";_.jG(Y.bgIframeEl_,!1);xAU(Y.bgIframeEl_,0)}Y.bgEl_||(Y.bgEl_=Y.JSC$10467_dom_.JSC$9649_createDom("DIV",Y.getCssClass()+"-bg"),_.jG(Y.bgEl_,!1))},OXk=function(Y){Y.tabCatcherElement_||(Y.tabCatcherElement_=Y.JSC$10467_dom_.createElement("SPAN"),_.jG(Y.tabCatcherElement_,
!1),Y.tabCatcherElement_.tabIndex=0,Y.tabCatcherElement_.style.position="absolute")};
_.H=oe.prototype;_.H.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.H.canDecorate=function(Y){return!!Y&&Y.tagName=="DIV"};
_.H.decorateInternal=function(Y){oe.superClass_.decorateInternal.call(this,Y);Y=IU(this.getCssClass()).split(" ");NO(this.getElement(),Y);uAT(this);OXk(this);this.getElement().tabIndex=0;_.jG(this.getElement(),!1)};
_.H.enterDocument=function(){this.bgIframeEl_&&_.Am(this.bgIframeEl_,this.getElement());_.Am(this.bgEl_,this.getElement());oe.superClass_.enterDocument.call(this);_.o9(this.tabCatcherElement_,this.getElement());this.focusHandler_=new eG(this.JSC$10467_dom_.JSC$9647_document_);xD(this).listen(this.focusHandler_,"focusin",this.onFocus);Qxl(this,!1)};
_.H.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.ZM(this.focusHandler_);oe.superClass_.exitDocument.call(this);_.Oy(this.bgIframeEl_);_.Oy(this.bgEl_);_.Oy(this.tabCatcherElement_)};
_.H.setVisible=function(Y){if(Y!=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_&&Qxl(this,Y),Y){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10467_dom_.JSC$9647_document_.activeElement}catch(Q){}this.updateModalAndBackground_();xD(this).listen(this.JSC$10467_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10467_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);McX(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)n7(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){xD(this).unlisten(this.JSC$10467_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10467_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)n7(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var G=this.JSC$10467_dom_,u=G.JSC$9647_document_.body,O=G.JSC$9647_document_.activeElement||u;if(!this.lastFocus_||this.lastFocus_==u){this.lastFocus_=null;break a}(O==u||G.contains(this.getElement(),O))&&this.lastFocus_.focus()}catch(Q){}this.lastFocus_=
null}}};
var Qxl=function(Y,G){Y.modalAriaVisibilityHelper_||(Y.modalAriaVisibilityHelper_=new UNt(Y.JSC$10467_element_,Y.JSC$10467_dom_));Y=Y.modalAriaVisibilityHelper_;if(G){Y.hiddenElements_||(Y.hiddenElements_=[]);G=Y.JSC$10488_dom_.getChildren(Y.JSC$10488_dom_.JSC$9647_document_.body);for(var u=0;u<G.length;u++){var O=G[u],Q;if(Q=O!=Y.JSC$10488_element_)Q=O.getAttribute("aria-hidden"),Q=!(Q==null||Q==void 0?0:String(Q));Q&&(f7(O,"hidden",!0),Y.hiddenElements_.push(O))}}else if(Y.hiddenElements_){for(G=
0;G<Y.hiddenElements_.length;G++)Y.hiddenElements_[G].removeAttribute("aria-hidden");Y.hiddenElements_=null}};
oe.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var McX=function(Y,G){Y.bgIframeEl_&&_.jG(Y.bgIframeEl_,G);Y.bgEl_&&_.jG(Y.bgEl_,G);_.jG(Y.getElement(),G);_.jG(Y.tabCatcherElement_,G)};
_.H=oe.prototype;_.H.onShow=function(){this.dispatchEvent("show")};
_.H.onHide=function(){McX(this,!1);this.dispatchEvent("hide")};
_.H.isVisible=function(){return this.visible_};
_.H.focus=function(){this.focusElement_()};
_.H.resizeBackground_=function(){this.bgIframeEl_&&_.jG(this.bgIframeEl_,!1);this.bgEl_&&_.jG(this.bgEl_,!1);var Y=this.JSC$10467_dom_.JSC$9647_document_;var G=_.QF(kI(this.JSC$10467_dom_.JSC$9647_document_)||window);var u=Math.max(G.width,Math.max(Y.body.scrollWidth,Y.documentElement.scrollWidth));Y=Math.max(G.height,Math.max(Y.body.scrollHeight,Y.documentElement.scrollHeight));this.bgIframeEl_&&(_.jG(this.bgIframeEl_,!0),_.zre(this.bgIframeEl_,u,Y));this.bgEl_&&(_.jG(this.bgEl_,!0),_.zre(this.bgEl_,
u,Y))};
_.H.reposition=function(){var Y;if(_.pM_(this.getElement())=="fixed")var G=Y=0;else G=MU(this.JSC$10467_dom_),Y=G.x,G=G.y;var u=WfE(this.getElement());var O=_.QF(kI(this.JSC$10467_dom_.JSC$9647_document_)||window);Y=Math.max(Y+O.width/2-u.width/2,0);G=Math.max(G+O.height/2-u.height/2,0);D0(this.getElement(),Y,G);D0(this.tabCatcherElement_,Y,G)};
_.H.onFocus=function(Y){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():Y.target==this.tabCatcherElement_&&rf(this.focusElement_,0,this)};
_.H.focusElement_=function(){try{this.getElement().focus()}catch(Y){}};
_.H.disposeInternal=function(){_.ZM(this.popupShowTransition_);this.popupShowTransition_=null;_.ZM(this.popupHideTransition_);this.popupHideTransition_=null;_.ZM(this.bgShowTransition_);this.bgShowTransition_=null;_.ZM(this.bgHideTransition_);this.bgHideTransition_=null;oe.superClass_.disposeInternal.call(this)};_.qz(Re,oe);_.H=Re.prototype;_.H.escapeToCancel_=!0;_.H.hasTitleCloseButton_=!0;_.H.modal_=!0;_.H.draggable_=!0;_.H.backgroundElementOpacity_=.5;_.H.title_="";_.H.JSC$10500_dragger_=null;_.H.JSC$10500_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$10498_class_};
_.H.setTitle=function(Y){this.title_=Y;this.titleTextEl_&&_.R9(this.titleTextEl_,Y)};
_.H.getTitle=function(){return this.title_};
_.H.getContent=function(){return""};
_.H.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var HXk=function(Y){Y.getElement()||Y.render();return Y.getElement()};
Re.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Re.superClass_.getBackgroundElement.call(this)};
var Es1=function(Y,G){Y.backgroundElementOpacity_=G;Y.getElement()&&(G=Y.getBackgroundElement())&&xAU(G,Y.backgroundElementOpacity_)};
Re.prototype.setDraggable=function(Y){this.draggable_=Y;tcU(this,Y&&this.inDocument_)};
Re.prototype.handleDrag=function(){};
var tcU=function(Y,G){var u=IU(Y.JSC$10498_class_+"-title-draggable").split(" ");Y.getElement()&&(G?NO(Y.titleEl_,u):G5e(Y.titleEl_,u));G&&!Y.JSC$10500_dragger_?(G=new _.fa(Y.getElement(),Y.titleEl_),Y.JSC$10500_dragger_=G,NO(Y.titleEl_,u),_.yn(Y.JSC$10500_dragger_,"start",Y.setDraggerLimits_,!1,Y),_.yn(Y.JSC$10500_dragger_,"drag",Y.handleDrag,!1,Y)):!G&&Y.JSC$10500_dragger_&&(Y.JSC$10500_dragger_.dispose(),Y.JSC$10500_dragger_=null)};
_.H=Re.prototype;
_.H.JSC$10469_createDom=function(){Re.superClass_.JSC$10469_createDom.call(this);var Y=this.getElement(),G=this.JSC$10467_dom_;this.titleTextId_=this.getId();var u=this.getId()+".contentEl";this.titleEl_=G.JSC$9649_createDom("DIV",this.JSC$10498_class_+"-title",this.titleTextEl_=G.JSC$9649_createDom("SPAN",{className:this.JSC$10498_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=G.JSC$9649_createDom("SPAN",this.JSC$10498_class_+"-title-close"));uY_(Y,this.titleEl_,this.contentEl_=
G.JSC$9649_createDom("DIV",{className:this.JSC$10498_class_+"-content",id:u}),this.buttonEl_=G.JSC$9649_createDom("DIV",this.JSC$10498_class_+"-buttons"));j2u(this.titleTextEl_,"heading");j2u(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;f7(this.titleCloseEl_,"label","Close");j2u(Y,"dialog");f7(Y,"labelledby",this.titleTextId_||"");_.jG(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(Y=this.buttons_,Y.JSC$10501_element_=this.buttonEl_,Y.render());_.jG(this.buttonEl_,!!this.buttons_);
Es1(this,this.backgroundElementOpacity_)};
_.H.decorateInternal=function(Y){Re.superClass_.decorateInternal.call(this,Y);Y=this.getElement();var G=this.JSC$10498_class_+"-content";this.contentEl_=r0(document,null,G,Y)[0];this.contentEl_||(this.contentEl_=this.JSC$10467_dom_.JSC$9649_createDom("DIV",G),Y.appendChild(this.contentEl_));G=this.JSC$10498_class_+"-title";var u=this.JSC$10498_class_+"-title-text",O=this.JSC$10498_class_+"-title-close";(this.titleEl_=r0(document,null,G,Y)[0])?(this.titleTextEl_=r0(document,null,u,this.titleEl_)[0],
this.titleCloseEl_=r0(document,null,O,this.titleEl_)[0]):(this.titleEl_=this.JSC$10467_dom_.JSC$9649_createDom("DIV",G),Y.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=PIX(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.fu("SPAN",{className:u,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;f7(Y,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10467_dom_.JSC$9649_createDom("SPAN",O),this.titleEl_.appendChild(this.titleCloseEl_));_.jG(this.titleCloseEl_,this.hasTitleCloseButton_);G=this.JSC$10498_class_+"-buttons";(this.buttonEl_=r0(document,null,G,Y)[0])?(this.buttons_=new iI(this.JSC$10467_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10467_dom_.JSC$9649_createDom("DIV",G),Y.appendChild(this.buttonEl_),this.buttons_&&(Y=this.buttons_,Y.JSC$10501_element_=this.buttonEl_,Y.render()),_.jG(this.buttonEl_,
!!this.buttons_));Es1(this,this.backgroundElementOpacity_)};
_.H.enterDocument=function(){Re.superClass_.enterDocument.call(this);xD(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);xD(this).listen(this.buttonEl_,"click",this.onButtonClick_);tcU(this,this.draggable_);xD(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var Y=this.getElement();j2u(Y,"dialog");this.titleTextEl_.id!==""&&f7(Y,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){Y=this.JSC$10467_dom_;
var G=this.getBackgroundElement();Y.removeNode(this.bgIframeEl_);Y.removeNode(G)}this.isVisible()&&Qxl(this,!1)}};
_.H.exitDocument=function(){this.isVisible()&&this.setVisible(!1);tcU(this,!1);Re.superClass_.exitDocument.call(this)};
_.H.setVisible=function(Y){Y!=this.isVisible()&&(this.inDocument_||this.render(),Re.superClass_.setVisible.call(this,Y))};
_.H.onShow=function(){Re.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.H.onHide=function(){Re.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10500_disposeOnHide_&&this.dispose()};
_.H.setDraggerLimits_=function(){var Y=this.JSC$10467_dom_.JSC$9647_document_,G=_.QF(kI(Y)||window),u=Math.max(Y.body.scrollWidth,G.width);Y=Math.max(Y.body.scrollHeight,G.height);var O=WfE(this.getElement());_.pM_(this.getElement())=="fixed"?this.JSC$10500_dragger_.limits=new RB(0,0,Math.max(0,G.width-O.width),Math.max(0,G.height-O.height)):this.JSC$10500_dragger_.limits=new RB(0,0,u-O.width,Y-O.height)};
_.H.onTitleCloseClick_=function(){KRX(this)};
var KRX=function(Y){if(Y.hasTitleCloseButton_){var G=Y.buttons_,u=G&&G.cancelButton_;u?(G=G.get(u),Y.dispatchEvent(new eb(u,G))&&Y.setVisible(!1)):Y.setVisible(!1)}},aZ_=function(Y){Y.hasTitleCloseButton_=!1;
Y.titleCloseEl_&&_.jG(Y.titleCloseEl_,Y.hasTitleCloseButton_)};
Re.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Re.superClass_.disposeInternal.call(this)};
Re.prototype.onButtonClick_=function(Y){a:{for(Y=Y.target;Y!=null&&Y!=this.buttonEl_;){if(Y.tagName=="BUTTON")break a;Y=Y.parentNode}Y=null}if(Y&&!Y.disabled){Y=Y.name;var G=this.buttons_.get(Y);this.dispatchEvent(new eb(Y,G))&&this.setVisible(!1)}};
Re.prototype.onKey_=function(Y){var G=!1,u=!1,O=this.buttons_,Q=Y.target;if(Y.type=="keydown")if(this.escapeToCancel_&&Y.keyCode==27){var M=O&&O.cancelButton_;Q=Q.tagName=="SELECT"&&!Q.disabled;M&&!Q?(u=!0,G=O.get(M),G=this.dispatchEvent(new eb(M,G))):Q||(G=!0)}else{if(Y.keyCode==9&&Y.shiftKey&&Q==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(P){}rf(this.resetBackwardTabWrap_,0,this)}}else if(Y.keyCode==13){if(Q.tagName=="BUTTON"&&!Q.disabled)M=Q.name;
else if(Q==this.titleCloseEl_)KRX(this);else if(O){var t=O.defaultButton_,K;if(K=t)a:{K=Qn("BUTTON",O.JSC$10501_element_);for(var L,g=0;L=K[g];g++)if(L.name==t||L.id==t){K=L;break a}K=null}Q=(Q.tagName=="TEXTAREA"||Q.tagName=="SELECT"||Q.tagName=="A")&&!Q.disabled;!K||K.disabled||Q||(M=t)}M&&O&&(u=!0,G=this.dispatchEvent(new eb(M,String(O.get(M)))))}else Q!=this.titleCloseEl_||Y.keyCode!=32&&Y.key!=" "||KRX(this);if(G||u)Y.stopPropagation(),Y.preventDefault();G&&this.setVisible(!1)};
var eb=function(Y,G){this.type="dialogselect";this.key=Y;this.caption=G};
_.qz(eb,_.lI);var iI=function(Y){ys.call(this);Y||HF();this.cancelButton_=this.JSC$10501_element_=this.defaultButton_=null};
_.qz(iI,ys);_.H=iI.prototype;_.H.clear=function(){ys.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.H.set=function(Y,G,u,O){ys.prototype.set.call(this,Y,G);u&&(this.defaultButton_=Y);O&&(this.cancelButton_=Y);return this};
_.H.addButton=function(Y,G,u){return this.set(Y.key,Y.caption,G,u)};
_.H.render=function(){if(this.JSC$10501_element_){_.IA(this.JSC$10501_element_,LTg);var Y=HF(this.JSC$10501_element_);this.forEach(function(G,u){G=Y.JSC$9649_createDom("BUTTON",{name:u},G);u==this.defaultButton_&&(G.className="goog-buttonset-default");this.JSC$10501_element_.appendChild(G)},this)}};
_.H.decorate=function(Y){if(Y&&Y.nodeType==1){this.JSC$10501_element_=Y;Y=Qn("BUTTON",this.JSC$10501_element_);for(var G,u,O,Q=0;G=Y[Q];Q++)if(u=G.name||G.id,O=PIX(G)||G.value,u){var M=Q==0;this.set(u,O,M,G.name=="cancel");M&&_.oD(G,"goog-buttonset-default")}}};
_.H.getElement=function(){return this.JSC$10501_element_};
var vgI={key:"ok",caption:"OK"},Jdg={key:"cancel",caption:"Cancel"},TJ2={key:"yes",caption:"Yes"},LRk={key:"no",caption:"No"},gsE={key:"save",caption:"Save"},X$k={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new iI).addButton(vgI,!0,!0),(new iI).addButton(vgI,!0).addButton(Jdg,!1,!0),(new iI).addButton(TJ2,!0).addButton(LRk,!1,!0),(new iI).addButton(TJ2).addButton(LRk,!0).addButton(Jdg,!1,!0),(new iI).addButton(X$k).addButton(gsE).addButton(Jdg,!0,!0));_.qz(Y0T,Re);_.qz(GCa,wU);var PcR=_.hV(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),IZ2=_.hV(["//apis.google.com/js/rpc.js"]),ToY=_.fO(PcR),aay=_.fO(IZ2),Oqy=null;var Z4=function(Y,G){_.C7.call(this);this.JSC$10510_element_=Y;Y=_.sy(this.JSC$10510_element_)?this.JSC$10510_element_:this.JSC$10510_element_?this.JSC$10510_element_.body:null;this.isRtl_=!!Y&&_.f4k(Y);this.listenKey_=_.yn(this.JSC$10510_element_,_.Hc?"DOMMouseScroll":"mousewheel",this,G)};
_.qz(Z4,_.C7);Z4.prototype.handleEvent=function(Y){var G=0,u=0,O=Y.event_;O.type=="mousewheel"?(Y=k1U(-O.wheelDelta),O.wheelDeltaX!==void 0?(G=k1U(-O.wheelDeltaX),u=k1U(-O.wheelDeltaY)):u=Y):(Y=O.detail,Y>100?Y=3:Y<-100&&(Y=-3),O.axis!==void 0&&O.axis===O.HORIZONTAL_AXIS?G=Y:u=Y);typeof this.maxDeltaX_==="number"&&(G=_.yW(G,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(u=_.yW(u,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(G=-G);G=new ns2(Y,O,G,u);this.dispatchEvent(G)};
var k1U=function(Y){return _.Mt&&(_.RjR||ZxI)&&Y%40!=0?Y:Y/40};
Z4.prototype.disposeInternal=function(){Z4.superClass_.disposeInternal.call(this);tR(this.listenKey_);this.listenKey_=null};
var ns2=function(Y,G,u,O){_.IO.call(this,G);this.type="mousewheel";this.detail=Y;this.deltaX=u;this.deltaY=O};
_.qz(ns2,_.IO);_.$2=function(Y){var G="instance_";if(Y.instance_&&Y.hasOwnProperty(G))return Y.instance_;G=new Y;return Y.instance_=G};var KTj;var FRM=_.hV(["https://about:blank"]),p$R=_.hV(['javascript:""']),zIM=_.hV(["about:blank"]);_.qz(Vn,Y0T);_.H=Vn.prototype;_.H.JSC$10518_url_="";_.H.JSC$10518_iframe_=null;_.H.iframeLoaded_=!1;_.H.loadedFired_=!1;_.H.callback_=function(){};
_.H.enterDocument=function(){Vn.superClass_.enterDocument.call(this);Hqt(this.getBackgroundElement(),xD(this))};
_.H.render=function(Y){var G=this;Vn.superClass_.render.call(this,Y);this.useGapi_?RTe(this.iframeManager_,window).then(function(){return mZ2(G)}).then(null,function(){G.callback_({action:"error"})}):WR_(this);
this.JSC$10516_enablePopover_&&(this.getBackgroundElement().setAttribute("popover","manual"),HXk(this).setAttribute("popover","manual"))};
var mZ2=function(Y){var G=Y.JSC$10467_dom_.JSC$9649_createDom("div",["picker-dialog-content","picker-frame"]);_.jG(G,!1);Y.getContentElement().appendChild(G);return wcX(Y.iframeManager_,G,function(u){var O=H2R(u["iframe-command"]);switch(O.getCommand()){case 1:u=Y.callback_;O=_.QH(O,Jm,2);var Q="";switch(O.getStatus()){case 2:Q="cancel";break;case 1:Q="picked";break;case 3:Q="error"}var M=_.dX(O,Pa,2,_.bd(O5T));O=M.length===0?{action:Q}:Xcl(M,Q,_.QH(O,O2T,7));u.call(Y,O);Y.setVisible(!1);break;case 4:aZ_(Y);
Y.callback_({action:"loaded"});break;case 7:case 8:u=Y.callback_;a:{Q=O.getCommand();M=_.QH(O,Jm,2);switch(Q){case 7:Q="uploadScheduled";break;case 8:Q="uploadStateChange";break;default:O={};break a}O=_.dX(M,Pa,2,_.bd(O5T));if(O.length===0)O={action:Q};else{var t=_.QH(M,O2T,7);M=t&&_.zy(t,1);t=OAI(t);O=HAT(O,Q,M,t)}}u.call(Y,O)}},Y.JSC$10518_url_,Y.targetId_,Y.rpcToken_).then(function(u){Y.JSC$10518_iframe_=u.getIframeEl();
rve(Y);_.jG(Y.JSC$10518_iframe_.parentElement,!0);_.oD(Y.getElement(),"picker-dialog");xZI(Y);return u})},WR_=function(Y){Y.JSC$10518_iframe_=Y.JSC$10467_dom_.JSC$9649_createDom("IFRAME",{id:Y.targetId_,
name:Y.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Er(Y.JSC$10518_iframe_,fZ2(Y));_.oD(Y.getElement(),"picker-dialog");Y.getContentElement().appendChild(Y.JSC$10518_iframe_);xD(Y).listen(Y.JSC$10518_iframe_,"load",function(){return void rve(Y)});
Y.JSC$10518_iframe_.src=Y.JSC$10518_url_;xZI(Y)},yvE=function(Y){Cce(Y,(0,_.tP)(function(G){G.setAuthToken(this.targetId_,this.rpcToken_)},Y))},xZI=function(Y){var G=_.SG(_.bI(Y.JSC$10518_url_),"title");
G&&Y.setTitle(G)},fZ2=function(Y){return W4T("Internet Explorer")>=7&&_.EI(Y.JSC$10518_url_,"https")?_.fO(FRM):_.YU?_.fO(p$R):_.fO(zIM)},rve=function(Y){yvE(Y);
Y.iframeLoaded_=!0;Y.JSC$10518_iframe_.tabIndex=0;Y.isVisible()&&Y.focus()};
Vn.prototype.handleKeydown_=function(Y){Y.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),Y.stopPropagation(),Y.preventDefault())};
var Cce=function(Y,G){var u=Y.JSC$10516_gadgetsDomHelper_;Qwj(function(){G(u.getWindow().gadgets.rpc)},u)};
Vn.prototype.setUrl=function(Y){Y=_.NA(new _.Rx(Y),"rpcService",this.targetId_);_.NA(Y,"rpctoken",this.rpcToken_);_.UR(Y,"rpctoken="+this.rpcToken_);_.Bp(Y,"https");this.JSC$10518_url_=Y.toString();this.JSC$10518_iframe_&&(this.JSC$10518_iframe_.src=this.JSC$10518_url_)};
var eIT=function(Y,G){Y.callback_=G;Cce(Y,(0,_.tP)(function(u){u.register(this.targetId_,(0,_.tP)(this.handlePickerAction_,this))},Y))};
Vn.prototype.handlePickerAction_=function(Y){var G=Y.action;G=="loaded"&&(this.loadedFired_=!0,AvI(this,new NC1(this.isVisible())),osU(this),aZ_(this),xD(this).unlisten(this.JSC$10467_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10518_iframe_.tabIndex=0);G!="picked"&&G!="cancel"||this.setVisible(!1);this.callback_(Y)};
var osU=function(Y){Y.JSC$10518_appId_&&AvI(Y,new S5a(Y.JSC$10518_appId_,window.location.protocol+"//"+window.location.host))};
Vn.prototype.setRelayUrl=function(Y){Cce(this,(0,_.tP)(function(G){G.setRelayUrl(this.targetId_,Y)},this))};
var AvI=function(Y,G){Y.useGapi_&&bAX(G,Y.iframeManager_).then(null,function(){Y.callback_({action:"error"})});
Cce(Y,(0,_.tP)(function(u){u.call(this.targetId_,"picker",null,G)},Y))};
Vn.prototype.resizePicker_=function(){var Y=kI(this.JSC$10467_dom_.JSC$9647_document_)||window;if(_.SG(_.bI(this.JSC$10518_url_),"ignoreLimits")=="true")Y=new _.oB(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.SG(_.bI(this.JSC$10518_url_),"shadeDialog")=="true"){var G=HXk(this);G=CI1(G);var u=_.QF(Y);Y=u.width-80;u=u.height-40;G&&(Y-=G.left?G.left:0,Y-=G.right?G.right:0,u-=G.top?G.top:0,u-=G.bottom?G.bottom:0);Y=new _.oB(Y>0?Y:0,u>0?u:0)}else(G=this.preferredDialogWidth_)?(G=Math.max(320,
Math.min(1051,G)),(u=this.preferredDialogHeight_)||(u=_.QF(Y).height*.85),u=Math.max(480,Math.min(650,u))):(G=_.QF(Y),u=G.width*.618,u=u<G.height?Math.round(Math.max(480,Math.min(650,u*.85))):Math.round(Math.max(480,Math.min(650,G.height*.85))),G=Math.round(u/.618)),Y=_.QF(Y),G=Math.min(G,Math.max(Y.width,320)),u=Math.min(u,Math.max(Y.height,480)),Y=new _.oB(G,u);_.zre(this.getContentElement(),Y);this.reposition()};
Vn.prototype.reposition=function(){if(_.SG(_.bI(this.JSC$10518_url_),"shadeDialog")=="true"){var Y=WfE(this.getElement()),G=_.QF(this.JSC$10467_dom_.getWindow());Y=Math.floor(G.width/2-Y.width/2);G=HXk(this);if(G=CI1(G)){var u=G.left?G.left:0;u+=G.right?G.right:0;Y=Math.floor(Y-u/2)}Y=Y>0?Y:0;G=MU(this.JSC$10467_dom_).y;D0(this.getElement(),Y,G)}else Vn.superClass_.reposition.call(this)};
Vn.prototype.setVisible=function(Y){if(Y!=this.isVisible()){if(this.autoSizeDialog_){var G=this.JSC$10467_dom_.getWindow();Y?(this.resizePicker_(),xD(this).listen(G,"resize",this.resizePicker_),this.iframeLoaded_||xD(this).listen(G,"keydown",this.handleKeydown_)):(xD(this).unlisten(G,"resize",this.resizePicker_),this.iframeLoaded_||xD(this).unlisten(G,"keydown",this.handleKeydown_))}if(this.JSC$10516_enablePopover_){G=this.getBackgroundElement();var u=HXk(this);"showPopover"in u&&(Y?(G.showPopover(),
u.showPopover()):(G.hidePopover(),u.hidePopover()))}}Vn.superClass_.setVisible.call(this,Y);AvI(this,new NC1(Y))};
Vn.prototype.focus=function(){Vn.superClass_.focus.call(this);if(this.JSC$10518_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10518_iframe_.focus()}catch(Y){}};var M7=function(Y,G){G=G===void 0?Vn:G;wU.call(this,Y);this.pickerConstructor=G;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(Y=window.location.origin)||(Y=window.location.protocol+"//"+window.location.host);Y&&this.urlParamMap_.set("origin",Y);this.postProcessors_=[]};
_.m(M7,GCa);M7.prototype.JSC$10523_disposeOnHide_=!1;
M7.prototype.build=function(){this.JSC$10424_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10424_appId_);this.getRelayUrl()||this.setRelayUrl(_.sR(_.UR(_.cp(_.bI(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("hb");var Y=new this.pickerConstructor(iXE(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1,!1);Y.JSC$10500_disposeOnHide_=this.JSC$10523_disposeOnHide_;
Y.JSC$10518_appId_=this.JSC$10424_appId_;Y.loadedFired_&&osU(Y);eIT(Y,this.callback_);return Y};
var RIl=function(Y){Y.urlParamMap_.set("multiselectEnabled","true");return Y};
_.H=M7.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 w$2=function(Y){Y.JSC$10523_disposeOnHide_=void 0;return Y};
M7.prototype.setRelayUrl=function(Y){this.urlParamMap_.set("parent",Y);return this};
var ZXe=function(Y,G){Y.urlParamMap_.set("selectButtonLabel",G);return Y};
M7.prototype.setSize=function(Y,G){this.dialogWidth_=Y;this.dialogHeight_=G;return this};
M7.prototype.setTitle=function(Y){this.urlParamMap_.set("title",Y);return this};
var iXE=function(Y){Y.postProcessors_.length&&Y.urlParamMap_.set("pp",JSON.stringify(Y.postProcessors_));Y.urlParamMap_.set("nav",JG_(Y.nav_));var G=new _.Rx(Y.getBaseUrl());Y.urlParamMap_.forEach(function(u,O){_.NA(G,O,u)});
return G};_.qz(Iaa,_.Ya);var Xjy=function(Y){var G=_.gX.findKey(gqu,function(u){return Y==u});
if(G===void 0)throw Error("jb`"+Y);return G},At={},gqu=(At.AbortError=3,At.EncodingError=5,At.InvalidModificationError=9,At.InvalidStateError=7,At.NotFoundError=1,At.NotReadableError=4,At.NoModificationAllowedError=6,At.PathExistsError=12,At.QuotaExceededError=10,At.SecurityError=2,At.SyntaxError=8,At.TypeMismatchError=11,At);_.qz(kCy,_.lI);var DZX=function(Y,G,u){u===void 0&&(u=Y.size);return Y.slice?Y.slice(G,u):null};var FT1=new WeakMap,nqA=function(Y,G){Y=[Y];for(var u=G.length-1;u>=0;--u)Y.push(typeof G[u],G[u]);return Y.join("\v")};_.zZj(function(){if(!_.OI.Blob)return!1;var Y=new Uint8Array(100);try{var G=new Blob([Y])}catch(u){return!1}return G.size!=100?!1:!0});
var hI_=_.zZj(function(){if(!_.OI.Blob)return!1;var Y=new Uint8Array(100);try{var G=new Blob([Y])}catch(u){return!1}return DZX(G,0,1)===null?!1:!0});try{var dZV,bXT,SKX=(bXT=(dZV=window)==null?void 0:dZV.top)!=null?bXT:_.OI;SKX.U3bHHf!=null||(SKX.U3bHHf=0);SKX.U3bHHf++}catch(Y){_.OI.U3bHHf!=null||(_.OI.U3bHHf=0),_.OI.U3bHHf++};var rNy=new WeakMap;var WTt=new WeakMap;var CB4={};var cM=void 0;var eZ1=Symbol("rb");var la4=JP("WizInjectionContext_ModelRootElement"),Bo1=JP("WizInjectionContext_RendererData"),$CY=JP("WizInjectionContext_InjectingConstructor"),RZt=JP("WizInjectionContext_AppContext"),wjA=JP("WizInjectionContext_Dispatcher"),DCt=JP("WizInjectionContext_RootElement"),VVt=JP("WizInjectionContext_AsyncDeps");var Y4=Symbol("sb");var P4=function(){this.afterRenderCallbacks=null},hZA=Symbol("tb"),zY=function(Y){this.props=Y;
this.__unmounted=!1};
zY.prototype.didPatch=function(){};
zY.prototype.didMount=function(){};
zY.prototype.didUnmount=function(){};
zY.prototype.didUpdate=function(){};var q0g={};var JNy=!1;var Q04=Symbol("xb"),kl=Symbol("yb");var GX=Array.isArray;var E7U={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:CN_,enableContextPerComponent:CN_,enableLazyTsx:yBI,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:fNk,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var uF=Object.assign({},{attributes:{},handleError:function(Y){throw Y;}},E7U);var NJU=Symbol("zb"),C2=Symbol("Ab"),AGt=Symbol("Bb"),yGU=Symbol("Cb"),hQy=DV(function(Y){return QM(Y)&&NJU in Y});var PjT=Symbol("Db"),oP={},LmA=(oP[PjT]=!0,oP.debugName="[component]",oP.getComponentStack=function(){for(var Y=[],G=this;G;)ICt(G)&&Y.push(G.debugName),G=G.parent;return Y},oP.registerSignal=function(){},oP.registerEffect=function(){},oP);var Mc=null,EW=!1,TX=1,Xx=Symbol("Hb"),Fx={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 iu=Symbol("Ib"),RP=Symbol("Jb"),g_=Symbol("Kb"),Cja=Object.assign({},Fx,{value:iu,dirty:!0,error:null,equal:n74,kind:"computed",producerMustRecompute:function(Y){return Y.value===iu||Y.value===RP},
producerRecomputeValue:function(Y){if(Y.value===RP)throw Error("$");var G=Y.value;Y.value=RP;var u=r1A(Y),O=!1;try{var Q=Y.computation();Hw(null);O=G!==iu&&G!==g_&&Q!==g_&&Y.equal(G,Q)}catch(M){Q=g_,Y.error=M}finally{Hw(u),Y&&fCI(Y)}O?Y.value=G:(Y.value=Q,Y.version++)}});var jxE=Object.assign({},Fx,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var o7t=function(){throw Error();};var RfU=null,efY=Object.assign({},Fx,{equal:n74,value:void 0,kind:"signal"});var wYu=Object.assign({},Fx,{value:iu,dirty:!0,error:null,equal:n74,kind:"linkedSignal",producerMustRecompute:function(Y){return Y.value===iu||Y.value===RP},
producerRecomputeValue:function(Y){if(Y.value===RP)throw Error("$");var G=Y.value;Y.value=RP;var u=r1A(Y);try{var O=Y.source();var Q=Y.computation(O,G===iu||G===g_?void 0:{source:Y.sourceValue,value:G});Y.sourceValue=O}catch(M){Q=g_,Y.error=M}finally{Hw(u),Y&&fCI(Y)}G!==iu&&Q!==g_&&Y.equal(G,Q)?Y.value=G:(Y.value=Q,Y.version++)}});Object.assign({},Fx,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(Y){Y.schedule!==null&&Y.schedule(Y.ref)},
cleanupFn:function(){}});var TjU;var VcV={},gd1=aHT(Object.assign({},{consumerAllowSignalWrites:!0},VcV)),k4=aHT(Object.assign({},{consumerAllowSignalWrites:!0},VcV));var Ww=Symbol("Pb");var mv=null,kBt,ndA=null,FNy;var yM=0,AT=!1,wd=function(){this.queue=new Set};
wd.prototype.schedule=function(Y){this.queue.add(Y)};
wd.prototype.remove=function(Y){this.queue.delete(Y)};
wd.prototype.clear=function(){this.queue.clear()};
var rGa=Symbol("Qb"),m2j=Symbol("Rb"),ZJ=function(){wd.apply(this,arguments)};
_.m(ZJ,wd);ZJ.prototype.flush=function(){if(this.queue.size){AT=!0;for(var Y=_.E(this.queue),G=Y.next();!G.done;G=Y.next()){G=G.value;this.queue.delete(G);try{G.run()}catch(u){lZU(u)}}AT=!1}};
var BJT=function(){ZJ.apply(this,arguments)};
_.m(BJT,ZJ);var WNT=new BJT,$Zl=function(){ZJ.apply(this,arguments)};
_.m($Zl,ZJ);$Zl.prototype.schedule=function(Y){return _.a(function(G){if(G.nextAddress==1)return G.yield(Promise.resolve(),2);Y.run();_.Sd(G)})};
$Zl.prototype.enqueue=function(Y){this.queue.add(Y)};
var x2I=new $Zl,DJ=function(){wd.apply(this,arguments)};
_.m(DJ,wd);DJ.prototype.flush=function(){this.queue.size&&d2t(this.queue)};
var qK4=function(){DJ.apply(this,arguments)};
_.m(qK4,DJ);qK4.prototype.schedule=function(Y){Y.version===0?Y.run():this.queue.add(Y)};
qK4.prototype.flush=function(){if(this.queue.size)if(uF.flushRenderEffectsDuringRender){var Y=this.queue;this.queue=new Set;d2t(Y)}else d2t(this.queue)};
var CoY=new qK4,sxR=function(){DJ.apply(this,arguments)};
_.m(sxR,DJ);sxR.prototype.schedule=function(Y){return _.a(function(G){if(G.nextAddress==1)return G.yield(Promise.resolve(),2);Y.run();_.Sd(G)})};
sxR.prototype.enqueue=function(Y){this.queue.add(Y)};
var odu=new sxR,cve=function(){DJ.apply(this,arguments)};
_.m(cve,DJ);var eQj=new cve,RQT=[CoY,WNT,eQj],D2u=[x2I,odu],UZX=[CoY,eQj,odu],bjA=[].concat(_.c8(RQT),_.c8(D2u)),vsI=[];RfU=function(){Zjt();for(var Y=_.E(vsI),G=Y.next();!G.done;G=Y.next())G=G.value,G()};
var lZU=Qj;var ht={},Jv1=Object.assign({},jxE,(ht[NJU]=!0,ht.effectType=C2,ht.isResettableContext=!0,ht.consumerMarkedDirty=ijU,ht.run=function(){Nj1(this)},ht.cleanup=function(){jwj(this)},ht.componentStack=void 0,ht.debugName="[effect]",ht.destroy=function(){if(aE(this))for(var Y=this.producers;Y!==void 0;)Y=x6I(Y);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;Y=_.E(UZX);for(var G=Y.next();!G.done;G=Y.next())G.value.remove(this);NoU(this)},ht[Symbol.dispose]=function(){this.destroy()},ht)),YUI=Object.assign({},Jv1,{version:1,
dirty:!1});var j3A=Object.assign({},Jv1,{effectType:C2});var Vgj=Object.assign({},Jv1,{effectType:AGt});var $2Y=Symbol("Tb");var Ao1=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 cGA={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},s31=
{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}]}},p0g={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},JGy=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],vdg={"*":{async:1,dir:0,loading:2,target:3}};var GbU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,dd={},GNt=(dd[1]=null,dd[2]=function(Y,G){return G instanceof Go?QK(G):sT.toString()},dd[3]=function(Y,G){return ls(G)?_.Bs(G):GbU.test(String(G))?String(G):sT.toString()},dd[4]=function(Y,G){return G instanceof hz?_.bs(G):sT.toString()},dd[5]=function(Y,G){return String(G)},dd[7]=null,dd[8]=null,dd[10]=null,dd);var GPA=Symbol("Wb");var M9g="Y Z E P T G M K  m u n".split(" "),Qnt={"":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};_.uhe=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 H4={};RegExp.prototype.hasOwnProperty("sticky");var iAI=function(Y){Y=String(Y);for(var G=function(O,Q,M){for(var t=Math.min(Q.length-M,O.length),K=0;K<t;K++){var L=Q[M+K];if(O[K]!==("A"<=L&&L<="Z"?L.toLowerCase():L))return!1}return!0},u=0;(u=Y.indexOf("<",u))!=-1;){if(G("\x3c/script",Y,u)||G("\x3c!--",Y,u))return"zSoyz";
u+=1}return Y};var Nc={default:"__default"};var aUA=Object.prototype.hasOwnProperty;ETj.prototype=Object.create(null);var $7=gTU();var cw=null;var xtA=function(Y){this.created=[];this.deleted=[];this.node=Y};var fUg=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var Y=this,G=Y;Y;)G=Y,Y=Y.parentNode;return G};var Plg=function(Y,G){this._attrsArr=null;this.nameOrCtor=Y;this.key=G;this.text=void 0};var lF=null,Bw=null,jE=null,qc=null,zTj=[],pcA=nTI,sW=[],YnA=function(Y){return Clt(function(G,u,O){jE=Bw=G;Bw=null;u(O);FUj(null);Bw=jE;jE=jE.parentNode;return G},Y)}(),J$T=function(Y){return Clt(function(G,u,O){var Q={nextSibling:G};
Bw=Q;u(O);jE&&FUj(G.nextSibling);return Q===Bw?null:Bw},Y)}();var UW=[],u2u=0;var q6=new ETj;var OQX=gTU(),ZAt=OQX[Nc.default],wcU=OQX.style,oTj=["focusin","focusout"],dtt="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var gs4=function(){},yv4=function(){},xZj=function(){};var JT=Symbol("dc");var V9Y,jnA=Nag;var TY=Symbol("ec");var Cct=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(" ")),
fZg=new Set(["a","font","script","style","title"]);var ty={setUp:OXa,tearDown:OXa,log:OXa,logNodeRange:OXa,graft:function(Y,G){G()}};var nH={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var F4=null,pH=function(Y,G){zY.call(this,Y);var u=this;this.functionComponent=G;this.hooks=[];this.hookCounter=0;this.disposeEffects=D1(function(O){u.effectContext=O;_.w_(function(){k1Y(u,u.el)})},uF.alwaysTrackContexts||!!cM)};
_.m(pH,zY);pH.prototype.render=function(Y){var G=F4;F4=this;this.hookCounter=0;var u=Hw(k4),O=Uy(this.effectContext);try{return Kmt("render",this.componentName),this.functionComponent(Y)}finally{aCj("render",this.componentName),Uy(O),Hw(u),F4=G}};
_.Uk.Object.defineProperties(pH.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return Pot(this.functionComponent)}}});var eI1=Symbol("sc"),mZg=function(Y,G,u){this.afterRenderCallbacks=null;this.kind=Y;this.props=G;this.children=u};
_.m(mZg,P4);mZg.prototype.render=function(){var Y=zIj(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var G=_.E(this.afterRenderCallbacks),u=G.next();!u.done;u=G.next())u=u.value,Y=u(Y);return Y};
mZg.prototype.getChildren=function(){return this.children};var osY=[];o7t=function(Y){throw Error("qb`"+Y.debugName);};
(function(){var Y=cw;cw=function(G){Y==null||Y(G);iX4(G)}})();Object.assign({},YUI,{effectType:C2,elementRef:null,attributes:null,fn:function(){var Y=this.elementRef;var G;Y.element!=null||(Y.element=(G=Y.document.getElementById(Y.value))!=null?G:void 0);Y=Y.element;for(G=this.attributes;G;){var u=G.signal();u!==G.prevValue&&(G.prevValue=u,G.namespace===1?Y[G.name]=u:Ao1.has(G.name)?SE(Y,G.name,u?"":null):SE(Y,G.name,u));G=G.next}}});_.m1.debugName="tbhMcf";_.W4.debugName="zyMFzb";Object.assign({},YUI,{effectType:C2});_.X.debugName="RlDudd";var RIA={nonNullableCondIsNull:function(){return Error("vc")}};var SKU=function(){this.map=new Map};
SKU.prototype.push=function(Y,G){var u=this.map;u.has(Y)&&(this.multi||(this.multi=new Map),this.multi.set(G,u.get(Y)));u.set(Y,G)};
SKU.prototype.pop=function(Y){var G=this.map,u=G.get(Y),O;u!==void 0&&((O=this.multi)==null?0:O.has(u))?(G.set(Y,this.multi.get(u)),this.multi.delete(u)):G.delete(Y);return u};_.rc.debugName="nsTGHd";_.x4.debugName="vI1rtf";var BJ1={OUT_OF_ORDER_HOOK_CALL:function(Y){return Error("wc`"+Y)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(Y,G){return Error("Ac`"+((G===void 0?0:G)?"IDOM":"Reactive")+"`"+(fH(Y)?Y.description:Y))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(Y,G){return Error("Bc`"+(fH(Y)?Y.description:Y)+"`"+G)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(Y){return Error("Cc`"+(fH(Y)?Y.description:Y))},
USE_ELEMENT_NOT_ASSIGNED:function(Y){return Error("Dc`"+(fH(Y)?Y.description:Y))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(Y){return Error("Ec`"+(fH(Y)?Y.description:Y))}};var UkA=Symbol("Fc");V9Y=WRy;V9Y=WRy;var OQU=Symbol("Gc");PcA({beforeRender:function(Y){var G=Uy(Y.effectContext);try{var u;((u=Y.__syncEffects)==null?0:u.length)&&L7Y(Y.__syncEffects)}finally{Uy(G)}},
didPatch:function(Y){var G=Uy(Y.effectContext);try{var u;((u=Y.__syncEffects)==null?0:u.length)&&L7Y(Y.__syncEffects)}finally{Uy(G)}},
didUnmount:function(Y){var G;((G=Y.hooks)==null?0:G.length)&&Y.hooks.forEach(TSI)}});var QK_,My_,HQ4;QK_=_.OI.window;_.wc=(QK_==null?void 0:(My_=QK_.yt)==null?void 0:My_.config_)||(QK_==null?void 0:(HQ4=QK_.ytcfg)==null?void 0:HQ4.data_)||{};_.U5("yt.config_",_.wc);var EN_={},Pgy=[];_.I2=function(Y){var G=_.vs.apply(1,arguments);var u=Error.call(this,Y);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.args=[].concat(_.c8(G));Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(_.I2,Error);var LDu=function(Y,G,u){this.actionName=Y;this.optionalAction=G===void 0?!1:G;this.args=u===void 0?null:u;this.returnValue=[]};_.bu=function(Y){this.name=Y};_.dN=new _.bu("signalAction");var fyT=/^[\w.]*$/,p2j={q:!0,search_query:!0},F7j=String(nNa);var c4;c4=Symbol("Hc");_.Sb=function(Y){this.name=Y};
_.Sb.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var Cg1=function(Y){this.key=Y},iQa=function(Y){this.deferredKey=Y},eSj=function(){var Y=this;
this.providers=new Map;this.JSC$10823_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(Y.providers)}}};
eSj.prototype.addProvider=function(Y){this.providers.set(Y.provide,Y);var G=this.JSC$10823_deferred.get(Y.provide);if(G)try{G.resolver(this.resolve(Y.provide))}catch(u){G.rejector(u)}};
eSj.prototype.resolve=function(Y){return Y instanceof iQa?tyk(this,Y):Y instanceof Cg1?K7M(this,Y.key,[],!0):K7M(this,Y,[])};
var tyk=function(Y,G){G=G.deferredKey;if(Y.JSC$10823_deferred.has(G))return Y.JSC$10823_deferred.get(G).promise;var u={};u.promise=new Promise(function(O,Q){u.resolver=O;u.rejector=Q});
Y.JSC$10823_deferred.set(G,u);return u.promise},K7M=function(Y,G,u,O){O=O===void 0?!1:O;
if(u.indexOf(G)>-1)throw Error("Ic`"+G);if(Y.cachedValues.has(G))return Y.cachedValues.get(G);if(!Y.providers.has(G)){if(O)return;throw Error("Jc`"+G);}O=Y.providers.get(G);u.push(G);if(O.useValue!==void 0)var Q=O.useValue;else if(O.useFactory)Q=O[c4]?ay1(Y,O[c4],u):[],Q=O.useFactory.apply(O,_.c8(Q));else if(O.useClass){Q=O.useClass;var M=Q[c4]?ay1(Y,Q[c4],u):[];Q=new (Function.prototype.bind.apply(Q,[null].concat(_.c8(M))))}else throw Error("Kc`"+G);u.pop();O.skipCache||Y.cachedValues.set(G,Q);return Q},
ay1=function(Y,G,u){return G?G.map(function(O){return O instanceof Cg1?K7M(Y,O.key,u,!0):K7M(Y,O,u)}):[]};var yWA;var bj=new _.Sb("ENDPOINT_HANDLER_TOKEN");_.SK=new _.bu("urlEndpoint");var TS4=function(){this.data=[];this.cachedPackedInt52=-1};
TS4.prototype.set=function(Y,G){G=G===void 0?!0:G;0<=Y&&Y<52&&Number.isInteger(Y)&&this.data[Y]!==G&&(this.data[Y]=G,this.cachedPackedInt52=-1)};
TS4.prototype.get=function(Y){return!!this.data[Y]};
var L7U=function(Y){Y.cachedPackedInt52===-1&&(Y.cachedPackedInt52=Y.data.reduce(function(G,u,O){return G+(u?Math.pow(2,O):0)},0));
return Y.cachedPackedInt52};var BSt=function(Y){var G=gNR;Y=Y===void 0?_.So("yt.ads.biscotti.lastId_")||"":Y;var u=Object,O=u.assign,Q={};Q.dt=RZe;Q.flash="0";a:{try{var M=G.JSC$10829_win_.top.location.href}catch(U){M=2;break a}M=M?M===G.doc_.location.href?0:1:2}Q=(Q.frm=M,Q);try{Q.u_tz=-(new Date).getTimezoneOffset();try{var t=df.history.length}catch(U){t=0}Q.u_his=t;var K;Q.u_h=(K=df.screen)==null?void 0:K.height;var L;Q.u_w=(L=df.screen)==null?void 0:L.width;var g;Q.u_ah=(g=df.screen)==null?void 0:g.availHeight;var P;Q.u_aw=
(P=df.screen)==null?void 0:P.availWidth;var I;Q.u_cd=(I=df.screen)==null?void 0:I.colorDepth}catch(U){}t=G.JSC$10829_win_;try{var k=t.screenX;var n=t.screenY}catch(U){}try{var p=t.outerWidth;var W=t.outerHeight}catch(U){}try{var C=t.innerWidth;var e=t.innerHeight}catch(U){}try{var w=t.screenLeft;var B=t.screenTop}catch(U){}try{C=t.innerWidth,e=t.innerHeight}catch(U){}try{var N=t.screen.availWidth;var h=t.screen.availTop}catch(U){}k=[w,B,k,n,N,h,p,W,C,e];n=H7j(!1,G.JSC$10829_win_.top);p={};var q=q===
void 0?_.OI:q;W=new TS4;"SVGElement"in q&&"createElementNS"in q.document&&W.set(0);C=VhR();C["allow-top-navigation-by-user-activation"]&&W.set(1);C["allow-popups-to-escape-sandbox"]&&W.set(2);q.crypto&&q.crypto.subtle&&W.set(3);"TextDecoder"in q&&"TextEncoder"in q&&W.set(4);q=L7U(W);G=(p.bc=q,p.bih=n.height,p.biw=n.width,p.brdim=k.join(),p.vis=UcY(G.doc_),p.wgl=!!df.WebGLRenderingContext,p);u=O.call(u,Q,G);u.ca_type="image";Y&&(u.bid=Y);return u},gNR=new function(){var Y=window.document;
this.JSC$10829_win_=window;this.doc_=Y};
_.U5("yt.ads_.signals_.getAdSignalsString",function(Y){return zSa(BSt(Y))});_.$M();navigator.userAgent.indexOf(" (CrKey ");var Dut="XMLHttpRequest"in _.OI?function(){return new XMLHttpRequest}:null;var X2R="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Pg_=[].concat(_.c8(X2R),["client_dev_set_cookie"]);var lya={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"},bQj="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(_.c8(X2R)),GL1=!1,NSA=_.$ut,vN1=VyT;var mvj=[{messageFn:function(Y){return"Cannot read property '"+Y.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(Y){return"Cannot call '"+Y.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(Y){return Y.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var Iy4={messageWeights:[],callbackWeights:[{callback:M71,weight:500},{callback:HUY,weight:500}]};var kbT=function(){this.callbackWeights=[];this.messageWeights=[]},nNk,z_1=function(){if(!nNk){var Y=nNk=new kbT;
Y.messageWeights.length=0;Y.callbackWeights.length=0;Znj(Y,Iy4)}return nNk},Znj=function(Y,G){G.messageWeights&&Y.messageWeights.push.apply(Y.messageWeights,G.messageWeights);
G.callbackWeights&&Y.callbackWeights.push.apply(Y.callbackWeights,G.callbackWeights)};_.qz(_.KG,_.Ey);_.KG.prototype.subscribe=function(Y,G,u){var O=this.topics_[Y];O||(O=this.topics_[Y]=[]);var Q=this.JSC$10852_key_;this.subscriptions_[Q]=Y;this.subscriptions_[Q+1]=G;this.subscriptions_[Q+2]=u;this.JSC$10852_key_=Q+3;O.push(Q);return Q};
var F7M=function(Y){var G=DC,u=!1,O=G.subscribe("handleError",function(Q){u||(u=!0,this.unsubscribeByKey(O),Y.apply(void 0,arguments))},G)};
_.KG.prototype.unsubscribe=function(Y,G,u){if(Y=this.topics_[Y]){var O=this.subscriptions_;if(Y=Y.find(function(Q){return O[Q+1]==G&&O[Q+2]==u}))return this.unsubscribeByKey(Y)}return!1};
_.KG.prototype.unsubscribeByKey=function(Y){var G=this.subscriptions_[Y];if(G){var u=this.topics_[G];this.publishDepth_!=0?(this.pendingKeys_.push(Y),this.subscriptions_[Y+1]=function(){}):(u&&_.Nj(u,Y),delete this.subscriptions_[Y],delete this.subscriptions_[Y+1],delete this.subscriptions_[Y+2])}return!!G};
_.KG.prototype.publish=function(Y,G){var u=this.topics_[Y];if(u){var O=Array(arguments.length-1),Q=arguments.length,M;for(M=1;M<Q;M++)O[M-1]=arguments[M];if(this.async_)for(M=0;M<u.length;M++)Q=u[M],p2I(this.subscriptions_[Q+1],this.subscriptions_[Q+2],O);else{this.publishDepth_++;try{for(M=0,Q=u.length;M<Q&&!this.isDisposed();M++){var t=u[M];this.subscriptions_[t+1].apply(this.subscriptions_[t+2],O)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;u=this.pendingKeys_.pop();)this.unsubscribeByKey(u)}}return M!=
0}return!1};
var p2I=function(Y,G,u){_.zj(function(){Y.apply(G,u)})};
_.KG.prototype.clear=function(Y){if(Y){var G=this.topics_[Y];G&&(G.forEach(this.unsubscribeByKey,this),delete this.topics_[Y])}else this.subscriptions_.length=0,this.topics_={}};
_.KG.prototype.getCount=function(Y){if(Y){var G=this.topics_[Y];return G?G.length:0}Y=0;for(G in this.topics_)Y+=this.getCount(G);return Y};
_.KG.prototype.disposeInternal=function(){_.KG.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var DC=new _.KG;var E0=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(E0,_.Ps);E0.prototype.getColdHashData=function(){return _.zy(this,3)};
E0.prototype.getHotHashData=function(){return _.zy(this,5)};
E0.prototype.setHotHashData=function(Y){return _.E_(this,5,Y)};var pmt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(pmt,_.Ps);var BEg=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(BEg,_.Ps);_.H=BEg.prototype;_.H.getDeviceId=function(){return _.zy(this,6)};
_.H.getExperimentIds=function(Y){var G=_.Gn(this,9,_.Lx,3,!0);QX4(G,Y);return G[Y]};
_.H.getPlayerType=function(){return _.mK(this,36)};
_.H.setHomeGroupInfo=function(Y){return _.Rh(this,81,Y)};
_.H.clearLocationPlayabilityToken=function(){return _.Hj(this,89)};var X3=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(X3,_.Ps);X3.prototype.setKey=function(Y){return _.E_(this,1,Y)};
X3.prototype.getValue=function(){return rQ(this,2,qjt)};
var qjt=[2,3,4,5,6];var zSk=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(zSk,_.Ps);zSk.prototype.setTrackingParams=function(Y){return _.Hj(this,1,_.RX(Y,!1))};var $5A=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m($5A,_.Ps);var Wwt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Wwt,_.Ps);Wwt.prototype.getExperimentIds=function(Y){var G=_.Gn(this,5,_.oka,3,!0);QX4(G,Y);return G[Y]};var nJ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(nJ,_.Ps);nJ.prototype.getToken=function(){return _.Gm(this,2)};
nJ.prototype.setToken=function(Y){return _.E_(this,2,Y)};var I0=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(I0,_.Ps);I0.prototype.setSafetyMode=function(Y){return _.MC(this,5,Y)};var gN=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(gN,_.Ps);gN.prototype.setClient=function(Y){return _.Rh(this,1,Y)};var m7U={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 zmA;_.CB=function(){var Y=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.OI.addEventListener("beforeinstallprompt",function(G){G.preventDefault();Y.deferredInstallPrompt=G});
_.OI.addEventListener("appinstalled",function(){Y.appInstalledEventFired=!0},{once:!0})};
zmA=function(){if(!_.OI.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.OI.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.OI.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.OI.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.OI.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(Y){return"WEB_DISPLAY_MODE_UNKNOWN"}};var fbI=function(){this.syncHeaders=!0},C0y=function(Y){var G={},u=[];
"USER_SESSION_ID"in _.wc&&u.push({key:"u",value:_.DE("USER_SESSION_ID")});if(u=_.qxt(u))G.Authorization=u,u=Y=Y==null?void 0:Y.sessionIndex,u===void 0&&(u=Number(_.DE("SESSION_INDEX",0)),u=isNaN(u)?0:u),_.F("voice_search_auth_header_removal")||(G["X-Goog-AuthUser"]=u.toString()),"INNERTUBE_HOST_OVERRIDE"in _.wc||(G["X-Origin"]=window.location.origin),Y===void 0&&"DELEGATED_SESSION_ID"in _.wc&&(G["X-Goog-PageId"]=_.DE("DELEGATED_SESSION_ID"));return G};var muX={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var N$=_.So("ytglobal.prefsUserPrefsPrefs_")||{},W7R;_.U5("ytglobal.prefsUserPrefsPrefs_",N$);_.jb=function(){this.cookieName=_.DE("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.DE("ALT_PREF_COOKIE_DOMAIN","youtube.com");var Y=_.TR.get(this.cookieName,void 0);Y&&this.parse(Y)};
_.EU=function(){W7R||(W7R=new _.jb);return W7R};
_.jb.prototype.get=function(Y,G){rWE(Y);xuM(Y);Y=N$[Y]!==void 0?N$[Y].toString():null;return Y!=null?Y:G?G:""};
_.jb.prototype.set=function(Y,G){rWE(Y);xuM(Y);if(G==null)throw Error("Nc");N$[Y]=G.toString()};
_.jb.prototype.getFlag=function(Y){return!!((fyR("f"+(Math.floor(Y/31)+1))||0)&1<<Y%31)};
_.tW=function(Y,G,u){Y="f"+(Math.floor(G/31)+1);G=1<<G%31;var O=fyR(Y)||0;O=u?O|G:O&~G;O===0?delete N$[Y]:(u=O.toString(16),N$[Y]=u.toString())};
_.jb.prototype.remove=function(Y){rWE(Y);xuM(Y);delete N$[Y]};
_.jb.prototype.save=function(){var Y=!0;_.F("web_secure_pref_cookie_killswitch")&&(Y=!1);_.LG(this.cookieName,this.dump(),63072E3,this.cookieDomain,Y)};
_.jb.prototype.clear=function(){_.gX.clear(N$)};
_.jb.prototype.dump=function(){var Y=[],G;for(G in N$)N$.hasOwnProperty(G)&&Y.push(G+"="+encodeURIComponent(String(N$[G])));return Y.join("&")};
var xuM=function(Y){if(/^f([1-9][0-9]*)$/.test(Y))throw Error("Oc`"+Y);},rWE=function(Y){if(!/^\w+$/.test(Y))throw Error("Pc`"+Y);
},fyR=function(Y){Y=N$[Y]!==void 0?N$[Y].toString():null;
return Y!=null&&/^[A-Fa-f0-9]+$/.test(Y)?parseInt(Y,16):null};
_.jb.prototype.parse=function(Y){Y=decodeURIComponent(Y).split("&");for(var G=0;G<Y.length;G++){var u=Y[G].split("="),O=u[0];(u=u[1])&&(N$[O]=u.toString())}};var P8I={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"},rhA={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},x71={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},kLU={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var N4;_.Vs=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.WY=function(Y,G,u){return Y.addJob(G,0,u)};
_.Vs.prototype.addLowPriorityJob=function(Y,G){return this.addJob(Y,1,G)};
_.Ti=function(Y,G,u){return Y.addJob(G,2,u)};
_.EA=function(Y,G,u){return Y.addJob(G,3,u)};
_.jk=function(Y,G,u){return Y.addJob(G,4,u)};
N4=function(Y){var G=_.So("yt.scheduler.instance.addImmediateJob");G?G(Y):Y()};
_.Vs.prototype.debounce=function(Y,G,u){var O=this,Q=0,M=function(){Q&&O.cancelJob(Q);Q=O.addJob(Y,G,u);O.cancelDebouncedJobMap.set(M,Q)};
return M};
_.Vs.prototype.cancelThrottle=function(Y){(Y=this.cancelThrottledJobMap.get(Y))&&Y()};var lu=function(){_.Vs.apply(this,arguments)},CgT;
_.m(lu,_.Vs);_.FO=function(){lu.instance||(lu.instance=new lu);return lu.instance};
lu.prototype.addJob=function(Y,G,u){u!==void 0&&Number.isNaN(Number(u))&&(u=void 0);var O=_.So("yt.scheduler.instance.addJob");return O?O(Y,G,u):u===void 0?(Y(),NaN):_.MN(Y,u||0)};
lu.prototype.cancelJob=function(Y){if(Y===void 0||!Number.isNaN(Number(Y))){var G=_.So("yt.scheduler.instance.cancelJob");G?G(Y):_.E5(Y)}};
lu.prototype.start=function(){var Y=_.So("yt.scheduler.instance.start");Y&&Y()};
lu.prototype.pause=function(){var Y=_.So("yt.scheduler.instance.pause");Y&&Y()};
CgT=function(){_.FO();var Y=_.So("yt.scheduler.instance.setPriorityThreshold");Y&&Y(4)};
_.AN=_.FO();_.kg.prototype.set=function(Y,G){G===void 0?this.mechanism.remove(Y):this.mechanism.set(Y,_.fV(G))};
_.kg.prototype.get=function(Y){try{var G=this.mechanism.get(Y)}catch(u){return}if(G!==null)try{return JSON.parse(G)}catch(u){throw"Storage: Invalid value was encountered";}};
_.kg.prototype.remove=function(Y){this.mechanism.remove(Y)};_.qz(nG,_.kg);var yWl=function(Y){this.data=Y},eSI=function(Y){return Y===void 0||Y instanceof yWl?Y:new yWl(Y)};
nG.prototype.set=function(Y,G){nG.superClass_.set.call(this,Y,eSI(G))};
nG.prototype.getWrapper=function(Y){Y=nG.superClass_.get.call(this,Y);if(Y===void 0||Y instanceof Object)return Y;throw"Storage: Invalid value was encountered";};
nG.prototype.get=function(Y){if(Y=this.getWrapper(Y)){if(Y=Y.data,Y===void 0)throw"Storage: Invalid value was encountered";}else Y=void 0;return Y};_.qz(Fw,nG);_.AWe=function(Y){var G=Y.creation;Y=Y.expiration;return!!Y&&Y<_.$M()||!!G&&G>_.$M()};
Fw.prototype.set=function(Y,G,u){if(G=eSI(G)){if(u){if(u<_.$M()){Fw.prototype.remove.call(this,Y);return}G.expiration=u}G.creation=_.$M()}Fw.superClass_.set.call(this,Y,G)};
Fw.prototype.getWrapper=function(Y,G){var u=Fw.superClass_.getWrapper.call(this,Y);if(u)if(!G&&_.AWe(u))Fw.prototype.remove.call(this,Y);else return u};pG.prototype.next=function(){return m_};
var m_={done:!0,value:void 0};pG.prototype.__iterator__=function(){return this};var oNM=function(Y){if(Y instanceof Bv||Y instanceof $D||Y instanceof q$)return Y;if(typeof Y.next=="function")return new Bv(function(){return Y});
if(typeof Y[Symbol.iterator]=="function")return new Bv(function(){return Y[Symbol.iterator]()});
if(typeof Y.__iterator__=="function")return new Bv(function(){return Y.__iterator__()});
throw Error("Rc");},Bv=function(Y){this.func_=Y};
Bv.prototype.__iterator__=function(){return new $D(this.func_())};
Bv.prototype[Symbol.iterator]=function(){return new q$(this.func_())};
Bv.prototype.toEs6=function(){return new q$(this.func_())};
var $D=function(Y){this.JSC$10936_iter_=Y};
_.m($D,pG);$D.prototype.next=function(){return this.JSC$10936_iter_.next()};
$D.prototype[Symbol.iterator]=function(){return new q$(this.JSC$10936_iter_)};
$D.prototype.toEs6=function(){return new q$(this.JSC$10936_iter_)};
var q$=function(Y){Bv.call(this,function(){return Y});
this.JSC$10939_iter_=Y};
_.m(q$,Bv);q$.prototype.next=function(){return this.JSC$10939_iter_.next()};var s9=function(){};
_.qz(s9,pCg);s9.prototype.getCount=function(){for(var Y=0,G=_.E(this),u=G.next();!u.done;u=G.next())Y++;return Y};
s9.prototype[Symbol.iterator]=function(){return oNM(this.__iterator__(!0)).toEs6()};
s9.prototype.clear=function(){var Y=Array.from(this);Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next())this.remove(G.value)};_.qz(WK,s9);_.H=WK.prototype;_.H.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var Y=this.storage_;if(Y)try{Y.setItem("__sak","1");Y.removeItem("__sak");var G=!0}catch(u){G=u instanceof DOMException&&(u.name==="QuotaExceededError"||u.code===22||u.code===1014||u.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Y&&Y.length!==0}else G=!1;this.cachedIsStorageAvailable_=G}return this.cachedIsStorageAvailable_};
_.H.set=function(Y,G){cv(this);try{this.storage_.setItem(Y,G)}catch(u){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.H.get=function(Y){cv(this);Y=this.storage_.getItem(Y);if(typeof Y!=="string"&&Y!==null)throw"Storage mechanism: Invalid value was encountered";return Y};
_.H.remove=function(Y){cv(this);this.storage_.removeItem(Y)};
_.H.getCount=function(){cv(this);return this.storage_.length};
_.H.__iterator__=function(Y){cv(this);var G=0,u=this.storage_,O=new pG;O.next=function(){if(G>=u.length)return m_;var Q=u.key(G++);if(Y)return zR(Q);Q=u.getItem(Q);if(typeof Q!=="string")throw"Storage mechanism: Invalid value was encountered";return zR(Q)};
return O};
_.H.clear=function(){cv(this);this.storage_.clear()};
_.H.key=function(Y){cv(this);return this.storage_.key(Y)};
var cv=function(Y){if(Y.storage_==null)throw Error("Sc");Y.isAvailable()||Qj(Error("Sc"))};_.qz(zUt,WK);_.qz(mWj,WK);_.qz(rC,s9);rC.prototype.set=function(Y,G){this.mechanism_.set(this.JSC$10954_prefix_+Y,G)};
rC.prototype.get=function(Y){return this.mechanism_.get(this.JSC$10954_prefix_+Y)};
rC.prototype.remove=function(Y){this.mechanism_.remove(this.JSC$10954_prefix_+Y)};
rC.prototype.__iterator__=function(Y){var G=this.mechanism_[Symbol.iterator](),u=this,O=new pG;O.next=function(){var Q=G.next();if(Q.done)return Q;for(Q=Q.value;Q.slice(0,u.JSC$10954_prefix_.length)!=u.JSC$10954_prefix_;){Q=G.next();if(Q.done)return Q;Q=Q.value}return zR(Y?Q.slice(u.JSC$10954_prefix_.length):u.mechanism_.get(Q))};
return O};_.Da=function(Y){this.expiringStorage_=(Y=_.xg(Y))?new Fw(Y):null;this.JSC$10958_domain_=document.domain||window.location.hostname};
_.H=_.Da.prototype;_.H.hasLocalStorage=function(){return!!this.expiringStorage_};
_.H.set=function(Y,G,u,O){u=u||31104E3;this.remove(Y);if(this.hasLocalStorage())try{this.expiringStorage_.set(Y,G,Date.now()+u*1E3);return}catch(M){}var Q="";if(O)try{Q=escape(_.fV(G))}catch(M){return}else Q=escape(G);_.LG(Y,Q,u,this.JSC$10958_domain_)};
_.H.get=function(Y,G){var u=void 0,O=!this.hasLocalStorage();if(!O)try{u=this.expiringStorage_.get(Y)}catch(Q){O=!0}if(O&&(u=_.TR.get(Y,void 0))&&(u=unescape(u),G))try{u=JSON.parse(u)}catch(Q){this.remove(Y),u=void 0}return u};
_.H.remove=function(Y){this.hasLocalStorage()&&this.expiringStorage_.remove(Y);_.LZg(Y,"/",this.JSC$10958_domain_)};
_.H.getCreationTime=function(Y){return this.hasLocalStorage()&&(Y=(this.expiringStorage_.getWrapper(Y)||{}).creation,typeof Y==="number")?Y:null};var rHY=function(){var Y;return function(){Y||(Y=new _.Da("ytidb"));return Y}}();var fsI;_.CG=[];fsI=!1;var ls1=C8g||yHA;var U9={},iQk=(U9.AUTH_INVALID="No user identifier specified.",U9.EXPLICIT_ABORT="Transaction was explicitly aborted.",U9.IDB_NOT_SUPPORTED="IndexedDB is not supported.",U9.MISSING_INDEX="Index not created.",U9.MISSING_OBJECT_STORES="Object stores not created.",U9.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",U9.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",U9.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",U9.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",U9.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",U9.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",U9.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",U9),vv={},RSX=(vv.AUTH_INVALID="ERROR",vv.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",vv.EXPLICIT_ABORT="IGNORED",
vv.IDB_NOT_SUPPORTED="ERROR",vv.MISSING_INDEX="WARNING",vv.MISSING_OBJECT_STORES="ERROR",vv.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",vv.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",vv.QUOTA_EXCEEDED="WARNING",vv.QUOTA_MAYBE_EXCEEDED="WARNING",vv.UNKNOWN_ABORT="WARNING",vv.INCOMPATIBLE_DB_VERSION="WARNING",vv),Jt={},w2k=(Jt.AUTH_INVALID=!1,Jt.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Jt.EXPLICIT_ABORT=!1,Jt.IDB_NOT_SUPPORTED=!1,Jt.MISSING_INDEX=!1,Jt.MISSING_OBJECT_STORES=!1,Jt.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Jt.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Jt.QUOTA_EXCEEDED=!1,Jt.QUOTA_MAYBE_EXCEEDED=!0,Jt.UNKNOWN_ABORT=!0,Jt.INCOMPATIBLE_DB_VERSION=!1,Jt),wC=function(Y,G,u,O,Q){G=G===void 0?{}:G;u=u===void 0?iQk[Y]:u;O=O===void 0?RSX[Y]:O;Q=Q===void 0?w2k[Y]:Q;_.I2.call(this,u,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:Y},G));this.type=Y;this.message=u;this.level=O;this.retryable=Q;Object.setPrototypeOf(this,wC.prototype)};
_.m(wC,_.I2);var ZQT=function(Y,G){wC.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:G,foundObjectStores:Y},iQk.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,ZQT.prototype)};
_.m(ZQT,wC);var AH4=function(Y,G){var u=Error.call(this);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.index=Y;this.objectStore=G;Object.setPrototypeOf(this,AH4.prototype)};
_.m(AH4,Error);var oGI=["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 dC=function(Y){this.executor=Y},hd=function(Y){var G=this;
this.state={status:"PENDING"};this.JSC$10986_onFulfilled=[];this.JSC$10986_onRejected=[];Y=Y.executor;var u=function(Q){if(G.state.status==="PENDING"){G.state={status:"FULFILLED",value:Q};Q=_.E(G.JSC$10986_onFulfilled);for(var M=Q.next();!M.done;M=Q.next())M=M.value,M()}},O=function(Q){if(G.state.status==="PENDING"){G.state={status:"REJECTED",
reason:Q};Q=_.E(G.JSC$10986_onRejected);for(var M=Q.next();!M.done;M=Q.next())M=M.value,M()}};
try{Y(u,O)}catch(Q){O(Q)}};
hd.all=function(Y){return new hd(new dC(function(G,u){var O=[],Q=Y.length;Q===0&&G(O);for(var M={i$jscomp$472:0};M.i$jscomp$472<Y.length;M={i$jscomp$472:M.i$jscomp$472},++M.i$jscomp$472)hd.resolve(Y[M.i$jscomp$472]).then(function(t){return function(K){O[t.i$jscomp$472]=K;Q--;Q===0&&G(O)}}(M)).catch(function(t){u(t)})}))};
hd.resolve=function(Y){return new hd(new dC(function(G,u){Y instanceof hd?Y.then(G,u):G(Y)}))};
hd.reject=function(Y){return new hd(new dC(function(G,u){u(Y)}))};
hd.prototype.then=function(Y,G){var u=this,O=Y!=null?Y:wCY,Q=G!=null?G:RUY;return new hd(new dC(function(M,t){u.state.status==="PENDING"?(u.JSC$10986_onFulfilled.push(function(){Due(u,u,O,M,t)}),u.JSC$10986_onRejected.push(function(){hSV(u,u,Q,M,t)})):u.state.status==="FULFILLED"?Due(u,u,O,M,t):u.state.status==="REJECTED"&&hSV(u,u,Q,M,t)}))};
hd.prototype.catch=function(Y){return this.then(void 0,Y)};
var Due=function(Y,G,u,O,Q){try{if(Y.state.status!=="FULFILLED")throw Error("Vc");var M=u(Y.state.value);M instanceof hd?du_(Y,G,M,O,Q):O(M)}catch(t){Q(t)}},hSV=function(Y,G,u,O,Q){try{if(Y.state.status!=="REJECTED")throw Error("Wc");
var M=u(Y.state.reason);M instanceof hd?du_(Y,G,M,O,Q):O(M)}catch(t){Q(t)}},du_=function(Y,G,u,O,Q){G===u?Q(new TypeError("Xc")):u.then(function(M){M instanceof hd?du_(Y,G,M,O,Q):O(M)},function(M){Q(M)})};var Yt;Yt=window;_.GC=Yt.ytcsi&&Yt.ytcsi.now?Yt.ytcsi.now:Yt.performance&&Yt.performance.timing&&Yt.performance.now&&Yt.performance.timing.navigationStart?function(){return Yt.performance.timing.navigationStart+Yt.performance.now()}:function(){return(new Date).getTime()};var S1=function(Y,G){this.JSC$10998_wrapped=Y;this.options=G;this.transactionCount=0;this.startedMs=Math.round((0,_.GC)());this.hasUnknownAbortedTransaction=!1},GW=function(){return _.F("idb_immediate_commit")},NSl,jKV,QQ,BSV;
S1.prototype.add=function(Y,G,u){return _.BK(this,[Y],{mode:"readwrite",enableRetries:!0,commit:GW()},function(O){return O.objectStore(Y).add(G,u)})};
S1.prototype.clear=function(Y){return _.BK(this,[Y],{mode:"readwrite",enableRetries:!0},function(G){return G.objectStore(Y).clear()})};
S1.prototype.close=function(){this.JSC$10998_wrapped.close();var Y;((Y=this.options)==null?0:Y.closed)&&this.options.closed()};
S1.prototype.count=function(Y,G){return _.BK(this,[Y],{mode:"readonly",enableRetries:!0,commit:GW()},function(u){return u.objectStore(Y).count(G)})};
var bB=function(Y,G,u){Y=Y.JSC$10998_wrapped.createObjectStore(G,u);return new uP(Y)};
S1.prototype.delete=function(Y,G){return _.BK(this,[Y],{mode:"readwrite",enableRetries:!0,commit:GW()&&!(G instanceof IDBKeyRange)},function(u){return u.objectStore(Y).delete(G)})};
var bQM=function(Y,G){return _.BK(Y,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(u){return u.objectStore("ResponseStore").index("byInterface").delete(G)})};
S1.prototype.get=function(Y,G){return _.BK(this,[Y],{mode:"readonly",enableRetries:!0,commit:GW()},function(u){return u.objectStore(Y).get(G)})};
S1.prototype.getAll=function(Y,G,u){return _.BK(this,[Y],{mode:"readonly",enableRetries:!0},function(O){return O.objectStore(Y).getAll(G,u)})};
S1.prototype.put=function(Y,G,u){return _.BK(this,[Y],{mode:"readwrite",enableRetries:!0,commit:GW()},function(O){return O.objectStore(Y).put(G,u)})};
S1.prototype.objectStoreNames=function(){return Array.from(this.JSC$10998_wrapped.objectStoreNames)};
_.BK=function(Y,G,u,O){var Q,M,t,K,L,g,P,I,k,n,p,W;return _.a(function(C){switch(C.nextAddress){case 1:var e={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof u==="string"?e.mode=u:Object.assign(e,u);Q=e;Y.transactionCount++;M=Q.enableRetries?3:1;t=0;case 2:if(K){C.jumpTo(4);break}t++;L=Math.round((0,_.GC)());_.i3(C,5);g=Y.JSC$10998_wrapped.transaction(G,Q.mode);e=C.yield;var w=!!Q.commit;var B=new NN(g);w=SUX(B,O,w);return e.call(C,w,7);case 7:return P=C.yieldResult,I=Math.round((0,_.GC)()),
NSl(Y,L,I,t,void 0,G.join(),Q),C.return(P);case 5:k=_.b3(C);n=Math.round((0,_.GC)());p=iU1(k,Y.JSC$10998_wrapped.name,G.join(),Y.JSC$10998_wrapped.version);if((W=p instanceof wC&&!p.retryable)||t>=M)NSl(Y,L,n,t,p,G.join(),Q),K=p;C.jumpTo(2);break;case 4:return C.return(Promise.reject(K))}})};
NSl=function(Y,G,u,O,Q,M,t){G=u-G;Q?(Q instanceof wC&&(Q.type==="QUOTA_EXCEEDED"||Q.type==="QUOTA_MAYBE_EXCEEDED")&&e1("QUOTA_EXCEEDED",{dbName:i9(Y.JSC$10998_wrapped.name),objectStoreNames:M,transactionCount:Y.transactionCount,transactionMode:t.mode}),Q instanceof wC&&Q.type==="UNKNOWN_ABORT"&&(u-=Y.startedMs,u<0&&u>=2147483648&&(u=0),e1("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:M,transactionDuration:G,transactionCount:Y.transactionCount,dbDuration:u}),Y.hasUnknownAbortedTransaction=!0),
jKV(Y,!1,O,M,G,t.tag),_.yl(Q)):jKV(Y,!0,O,M,G,t.tag)};
jKV=function(Y,G,u,O,Q,M){e1("TRANSACTION_ENDED",{objectStoreNames:O,connectionHasUnknownAbortedTransaction:Y.hasUnknownAbortedTransaction,duration:Q,isSuccessful:G,tryCount:u,tag:M===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":M})};
S1.prototype.getName=function(){return this.JSC$10998_wrapped.name};
var uP=function(Y){this.JSC$11013_wrapped=Y};
uP.prototype.add=function(Y,G){return b9(this.JSC$11013_wrapped.add(Y,G))};
uP.prototype.autoIncrement=function(){return this.JSC$11013_wrapped.autoIncrement};
uP.prototype.clear=function(){return b9(this.JSC$11013_wrapped.clear()).then(function(){})};
var SV=function(Y,G,u){Y.JSC$11013_wrapped.createIndex(G,u,{unique:!1})};
uP.prototype.count=function(Y){return b9(this.JSC$11013_wrapped.count(Y))};
var VyR=function(Y,G){return qN(Y,{query:G},function(u){return u.delete().then(function(){return u.continue()})}).then(function(){})};
uP.prototype.delete=function(Y){return Y instanceof IDBKeyRange?VyR(this,Y):b9(this.JSC$11013_wrapped.delete(Y))};
uP.prototype.get=function(Y){return b9(this.JSC$11013_wrapped.get(Y))};
uP.prototype.getAll=function(Y,G){return"getAll"in IDBObjectStore.prototype?b9(this.JSC$11013_wrapped.getAll(Y,G)):lyk(this,Y,G)};
var lyk=function(Y,G,u){var O=[];return qN(Y,{query:G},function(Q){if(!(u!==void 0&&O.length>=u))return O.push(Q.getValue()),Q.continue()}).then(function(){return O})};
uP.prototype.index=function(Y){try{return new Oz(this.JSC$11013_wrapped.index(Y))}catch(G){if(G instanceof Error&&G.name==="NotFoundError")throw new AH4(Y,this.JSC$11013_wrapped.name);throw G;}};
uP.prototype.getName=function(){return this.JSC$11013_wrapped.name};
uP.prototype.keyPath=function(){return this.JSC$11013_wrapped.keyPath};
uP.prototype.put=function(Y,G){return b9(this.JSC$11013_wrapped.put(Y,G))};
var qN=function(Y,G,u){Y=Y.JSC$11013_wrapped.openCursor(G.query,G.direction);return BSV(Y).then(function(O){return hUj(O,u)})},NN=function(Y){var G=this;
this.JSC$11021_wrapped=Y;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(u,O){G.JSC$11021_wrapped.addEventListener("complete",function(){u()});
G.JSC$11021_wrapped.addEventListener("error",function(Q){Q.currentTarget===Q.target&&O(G.JSC$11021_wrapped.error)});
G.JSC$11021_wrapped.addEventListener("abort",function(){var Q=G.JSC$11021_wrapped.error;if(Q)O(Q);else if(!G.aborted){Q=wC;for(var M=G.JSC$11021_wrapped.objectStoreNames,t=[],K=0;K<M.length;K++){var L=M.item(K);if(L===null)throw Error("Yc");t.push(L)}Q=new Q("UNKNOWN_ABORT",{objectStoreNames:t.join(),dbName:G.JSC$11021_wrapped.db.name,mode:G.JSC$11021_wrapped.mode});O(Q)}})})},SUX=function(Y,G,u){var O=new Promise(function(Q,M){try{var t=G(Y);
u&&Y.commit();t.then(function(K){Q(K)}).catch(M)}catch(K){M(K),Y.abort()}});
return Promise.all([O,Y.done]).then(function(Q){return _.E(Q).next().value})};
NN.prototype.abort=function(){this.JSC$11021_wrapped.abort();this.aborted=!0;throw new wC("EXPLICIT_ABORT");};
NN.prototype.commit=function(){if(!this.aborted){var Y,G;(G=(Y=this.JSC$11021_wrapped).commit)==null||G.call(Y)}};
NN.prototype.objectStore=function(Y){Y=this.JSC$11021_wrapped.objectStore(Y);var G=this.objectStoreCache.get(Y);G||(G=new uP(Y),this.objectStoreCache.set(Y,G));return G};
var Oz=function(Y){this.JSC$11023_wrapped=Y};
Oz.prototype.count=function(Y){return b9(this.JSC$11023_wrapped.count(Y))};
Oz.prototype.delete=function(Y){return _.uB(this,{query:Y},function(G){return G.delete().then(function(){return G.continue()})})};
Oz.prototype.get=function(Y){return b9(this.JSC$11023_wrapped.get(Y))};
Oz.prototype.getAll=function(Y,G){return"getAll"in IDBIndex.prototype?b9(this.JSC$11023_wrapped.getAll(Y,G)):$ue(this,Y,G)};
var $ue=function(Y,G,u){var O=[];return _.uB(Y,{query:G},function(Q){if(!(u!==void 0&&O.length>=u))return O.push(Q.getValue()),Q.continue()}).then(function(){return O})};
Oz.prototype.keyPath=function(){return this.JSC$11023_wrapped.keyPath};
Oz.prototype.unique=function(){return this.JSC$11023_wrapped.unique};
_.uB=function(Y,G,u){Y=Y.JSC$11023_wrapped.openCursor(G.query===void 0?null:G.query,G.direction===void 0?"next":G.direction);return BSV(Y).then(function(O){return hUj(O,u)})};
QQ=function(Y,G){this.request=Y;this.cursor=G};
BSV=function(Y){return b9(Y).then(function(G){return G?new QQ(Y,G):null})};
QQ.prototype.continue=function(Y){this.cursor.continue(Y);return BSV(this.request)};
QQ.prototype.delete=function(){return b9(this.cursor.delete()).then(function(){})};
QQ.prototype.getValue=function(){return this.cursor.value};
QQ.prototype.update=function(Y){return b9(this.cursor.update(Y))};var Ma=function(Y,G){this.name=Y;this.options=G;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},qU_;
Ma.prototype.openDb=function(Y,G,u){u=u===void 0?{}:u;return bUT(Y,G,u)};
Ma.prototype.delete=function(Y){Y=Y===void 0?{}:Y;return _.Vl(this.name,Y)};
qU_=function(Y,G){return new wC("INCOMPATIBLE_DB_VERSION",{dbName:Y.name,oldVersion:Y.options.version,newVersion:G})};
_.l9=function(Y,G){if(!G)throw Dn("openWithToken",i9(Y.name));return Y.open()};
Ma.prototype.open=function(){var Y=this;if(!this.isCompatible)throw qU_(this);if(this.connectionPromise)return this.connectionPromise;var G,u=function(){Y.connectionPromise===G&&(Y.connectionPromise=void 0)},O={blocking:function(M){M.close()},
closed:u,terminated:u,upgrade:this.options.upgrade},Q=function(){var M,t,K,L,g,P,I,k,n,p;return _.a(function(W){switch(W.nextAddress){case 1:return t=(M=Error().stack)!=null?M:"",_.i3(W,2),W.yield(Y.openDb(Y.name,Y.options.version,O),4);case 4:for(var C=K=W.yieldResult,e=Y.options,w=[],B=_.E(Object.keys(e.objectStores)),N=B.next();!N.done;N=B.next()){N=N.value;var h=e.objectStores[N],q=h.removedAtVersion===void 0?Number.MAX_VALUE:h.removedAtVersion;!(C.JSC$10998_wrapped.version>=h.addedAtVersion)||
C.JSC$10998_wrapped.version>=q||C.JSC$10998_wrapped.objectStoreNames.contains(N)||w.push(N)}L=w;if(L.length===0){W.jumpTo(5);break}g=Object.keys(Y.options.objectStores);P=K.objectStoreNames();if(Y.timesReopenedToFixMissingObjectStore<_.Jy("ytidb_reopen_db_retries",0))return Y.timesReopenedToFixMissingObjectStore++,K.close(),_.yl(new wC("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:Y.name,expectedObjectStores:g,foundObjectStores:P})),W.return(Q());if(!(Y.timesDeletedToFixMissingObjectStore<_.Jy("ytidb_remake_db_retries",
1))){W.jumpTo(6);break}Y.timesDeletedToFixMissingObjectStore++;return W.yield(Y.delete(),7);case 7:return _.yl(new wC("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:Y.name,expectedObjectStores:g,foundObjectStores:P})),W.return(Q());case 6:throw new ZQT(P,g);case 5:return W.return(K);case 2:I=_.b3(W);if(I instanceof DOMException?I.name!=="VersionError":"DOMError"in self&&I instanceof DOMError?I.name!=="VersionError":!(I instanceof Object&&"message"in I)||I.message!=="An attempt was made to open a database using a lower version than the existing version."){W.jumpTo(8);
break}return W.yield(Y.openDb(Y.name,void 0,Object.assign({},O,{upgrade:void 0})),9);case 9:k=W.yieldResult;n=k.JSC$10998_wrapped.version;if(Y.options.version!==void 0&&n>Y.options.version+1)throw k.close(),Y.isCompatible=!1,qU_(Y,n);return W.return(k);case 8:throw u(),I instanceof Error&&!_.F("ytidb_async_stack_killswitch")&&(I.stack=I.stack+"\n"+t.substring(t.indexOf("\n")+1)),iU1(I,Y.name,"",(p=Y.options.version)!=null?p:-1);}})};
return this.connectionPromise=G=Q()};var SGt=new Ma("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(Y,G){G(1)&&bB(Y,"databases",{keyPath:"actualName"})}});var qGT,BKU=new function(){}(new function(){});new _.sG;var sKU=function(Y,G){Ma.call(this,Y,G);this.options=G;o2(Y)};
_.m(sKU,Ma);var Q$a=function(Y,G){var u;return function(){u||(u=new sKU(Y,G));return u}};
sKU.prototype.openDb=function(Y,G,u){u=u===void 0?{}:u;return(this.options.shared?JHA:vGT)(Y,G,Object.assign({},u))};
sKU.prototype.delete=function(Y){Y=Y===void 0?{}:Y;return(this.options.shared?OBA:Yba)(this.name,Y)};var cWI={},Mlt=Jd("ytGcfConfig",{objectStores:(cWI.coldConfigStore={addedAtVersion:1},cWI.hotConfigStore={addedAtVersion:1},cWI),shared:!1,upgrade:function(Y,G){G(1)&&(SV(bB(Y,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),SV(bB(Y,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Uue=function(){_.Ey.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var Y=_.So("yt.gcf.config.hotUpdateCallbacks");Y?(this.localHotConfigJobQueue=[].concat(_.c8(Y)),this.sharedHotConfigJobQueue=Y):(this.sharedHotConfigJobQueue=[],_.U5("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.m(Uue,_.Ey);Uue.prototype.disposeInternal=function(){for(var Y=_.E(this.localHotConfigJobQueue),G=Y.next();!G.done;G=Y.next()){var u=this.sharedHotConfigJobQueue;G=u.indexOf(G.value);G>=0&&u.splice(G,1)}this.localHotConfigJobQueue.length=0;_.Ey.prototype.disposeInternal.call(this)};var rN=function(){var Y=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Uue;this.TEST_ONLY={initializeConfigDb:function(){Y.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return Y.coldGlobalConfigGroup},
setHotConfigGroup:function(G){vNT(Y,G)},
setHotHashData:function(G){Y.setHotHashData(G)},
setColdConfigGroup:function(G){JWM(Y,G)},
getColdHashData:function(){return Y.coldHashData},
getHotHashData:function(){return Y.hotHashData},
getHotConfigGroup:function(){return Y.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return YGk()},
getExportedHotConfigGroup:function(){return Hy()},
getExportedColdHashData:function(){return _.So("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.So("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){GLT(Y)},
resetInstance:function(){Y.setHotHashData(void 0);uX2(Y);delete rN.instance},
setDebounceTimer:function(G){Y.debounceTimer=G},
getDebounceTimer:function(){return Y.debounceTimer}}},OUe=function(){if(!rN.instance){var Y=new rN;
rN.instance=Y}return rN.instance},HUU=function(Y){var G;
_.a(function(u){if(u.nextAddress==1)return _.F("start_client_gcf")||_.F("delete_gcf_config_db")?_.F("start_client_gcf")?u.yield(_.vK(),3):u.jumpTo(2):u.return();u.nextAddress!=2&&((G=u.yieldResult)&&_.PK()&&!_.F("delete_gcf_config_db")?(Y.isConfigDbInitialized=!0,GLT(Y)):(Qik(Y),M7T(Y)));return _.F("delete_gcf_config_db")?u.yield(TGt(),0):u.jumpTo(0)})},x7=function(){var Y;
return(Y=Hy())!=null?Y:_.DE("RAW_HOT_CONFIG_GROUP")},EGX=function(Y){var G,u,O,Q,M,t;
return _.a(function(K){switch(K.nextAddress){case 1:if(Y.hotGlobalConfigGroup)return K.return(Hy());if(!Y.isConfigDbInitialized)return G=Dn("getHotConfig IDB not initialized"),_.N3(G),K.return(Promise.reject(G));u=cK();O=_.DE("TIME_CREATED_MS");if(!u){Q=Dn("getHotConfig token error");_.N3(Q);K.jumpTo(2);break}return K.yield(ab4(u),3);case 3:if((M=K.yieldResult)&&M.timestamp>O)return vNT(Y,M.config),Y.setHotHashData(M.hashData),K.return(Hy());case 2:M7T(Y);if(!(u&&Y.hotGlobalConfigGroup&&Y.hotHashData)){K.jumpTo(4);
break}return K.yield(E31(Y.hotGlobalConfigGroup,Y.hotHashData,u,O),4);case 4:return Y.hotGlobalConfigGroup?K.return(Hy()):(t=new _.I2("Config not available in ytConfig"),_.N3(t),K.return(Promise.reject(t)))}})},KZ4=function(Y){var G,u,O,Q,M,t;
return _.a(function(K){switch(K.nextAddress){case 1:if(Y.coldGlobalConfigGroup)return K.return(YGk());if(!Y.isConfigDbInitialized)return G=Dn("getColdConfig IDB not initialized"),_.N3(G),K.return(Promise.reject(G));u=cK();O=_.DE("TIME_CREATED_MS");if(!u){Q=Dn("getColdConfig");_.N3(Q);K.jumpTo(2);break}return K.yield(KwI(u),3);case 3:if((M=K.yieldResult)&&M.timestamp>O)return JWM(Y,M.config),t7E(Y,M.configData),uX2(Y,M.hashData),K.return(YGk());case 2:Qik(Y);if(!(u&&Y.coldGlobalConfigGroup&&Y.coldHashData&&
Y.configData)){K.jumpTo(4);break}return K.yield(tlt(Y.coldGlobalConfigGroup,Y.coldHashData,Y.configData,u,O),4);case 4:return Y.coldGlobalConfigGroup?K.return(YGk()):(t=new _.I2("Config not available in ytConfig"),_.N3(t),K.return(Promise.reject(t)))}})},GLT=function(Y){if(!Y.hotGlobalConfigGroup||!Y.coldGlobalConfigGroup){if(!cK()){var G=Dn("scheduleGetConfigs");
_.N3(G)}Y.initJob||(Y.initJob=_.AN.addLowPriorityJob(function(){return _.a(function(u){switch(u.nextAddress){case 1:return _.i3(u,2),u.yield(EGX(Y),4);case 4:_.j1(u,3);break;case 2:_.b3(u);case 3:return _.i3(u,5),u.yield(KZ4(Y),7);case 7:_.j1(u,6);break;case 5:_.b3(u);case 6:Y.initJob&&(Y.initJob=0),_.Sd(u)}})},100))}},M0t=function(Y,G,u){var O,Q,M;
return _.a(function(t){switch(t.nextAddress){case 1:if(!_.F("start_client_gcf")){t.jumpTo(0);break}u&&vNT(Y,u);Y.setHotHashData(G);O=cK();if(!O){t.jumpTo(3);break}if(u){t.jumpTo(4);break}return t.yield(ab4(O),5);case 5:Q=t.yieldResult,u=(M=Q)==null?void 0:M.config;case 4:return t.yield(E31(u,G,O),3);case 3:if(u)for(var K=u,L=_.E(Y.configUpdateService.sharedHotConfigJobQueue),g=L.next();!g.done;g=L.next())g=g.value,g(K);_.Sd(t)}})},HKY=function(Y,G,u){var O,Q,M,t;
return _.a(function(K){if(K.nextAddress==1){if(!_.F("start_client_gcf"))return K.jumpTo(0);uX2(Y,G);return(O=cK())?u?K.jumpTo(4):K.yield(KwI(O),5):K.jumpTo(0)}K.nextAddress!=4&&(Q=K.yieldResult,u=(M=Q)==null?void 0:M.config);if(!u)return K.jumpTo(0);t=u.configData;return K.yield(tlt(u,G,t,O),0)})},em4=function(){var Y=OUe(),G=(0,_.GC)()-Y.debounceTimer;
if(!(Y.debounceTimer!==0&&G<_.Jy("send_config_hash_timer"))){G=_.So("yt.gcf.config.coldConfigData");var u=_.So("yt.gcf.config.hotHashData"),O=_.So("yt.gcf.config.coldHashData");G&&u&&O&&(Y.debounceTimer=(0,_.GC)());return{coldConfigData:G,hotHashData:u,coldHashData:O}}},Qik=function(Y){JWM(Y,_.DE("RAW_COLD_CONFIG_GROUP"));
uX2(Y,_.DE("SERIALIZED_COLD_HASH_DATA"));var G;t7E(Y,(G=Y.coldGlobalConfigGroup)==null?void 0:G.configData)},M7T=function(Y){vNT(Y,_.DE("RAW_HOT_CONFIG_GROUP"));
Y.setHotHashData(_.DE("SERIALIZED_HOT_HASH_DATA"))},vNT=function(Y,G){Y.hotGlobalConfigGroup=G;
_.U5("yt.gcf.config.hotConfigGroup",Y.hotGlobalConfigGroup||null)},JWM=function(Y,G){Y.coldGlobalConfigGroup=G;
_.U5("yt.gcf.config.coldConfigGroup",Y.coldGlobalConfigGroup||null)};
rN.prototype.setHotHashData=function(Y){this.hotHashData=Y;_.U5("yt.gcf.config.hotHashData",this.hotHashData||null)};
var uX2=function(Y,G){Y.coldHashData=G;_.U5("yt.gcf.config.coldHashData",Y.coldHashData||null)},t7E=function(Y,G){Y.configData=G;
_.U5("yt.gcf.config.coldConfigData",Y.configData||null)},Hy=function(){return _.So("yt.gcf.config.hotConfigGroup")},YGk=function(){return _.So("yt.gcf.config.coldConfigGroup")};var Lq={},as1=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Lq.assign=function(Y){for(var G=Array.prototype.slice.call(arguments,1);G.length;){var u=G.shift();if(u){if(typeof u!=="object")throw new TypeError("ad`"+u);for(var O in u)Object.prototype.hasOwnProperty.call(u,O)&&(Y[O]=u[O])}}return Y};
Lq.shrinkBuf=function(Y,G){if(Y.length===G)return Y;if(Y.subarray)return Y.subarray(0,G);Y.length=G;return Y};
var TK4={arraySet:function(Y,G,u,O,Q){if(G.subarray&&Y.subarray)Y.set(G.subarray(u,u+O),Q);else for(var M=0;M<O;M++)Y[Q+M]=G[u+M]},
flattenChunks:function(Y){var G,u;var O=u=0;for(G=Y.length;O<G;O++)u+=Y[O].length;var Q=new Uint8Array(u);O=u=0;for(G=Y.length;O<G;O++){var M=Y[O];Q.set(M,u);u+=M.length}return Q}},LZ2={arraySet:function(Y,G,u,O,Q){for(var M=0;M<O;M++)Y[Q+M]=G[u+M]},
flattenChunks:function(Y){return[].concat.apply([],Y)}};
Lq.setTyped=function(){as1?(Lq.Buf8=Uint8Array,Lq.Buf16=Uint16Array,Lq.Buf32=Int32Array,Lq.assign(Lq,TK4)):(Lq.Buf8=Array,Lq.Buf16=Array,Lq.Buf32=Array,Lq.assign(Lq,LZ2))};
Lq.setTyped();var gGR=!0;try{new Uint8Array(1)}catch(Y){gGR=!1}
var aSA=function(Y){var G,u,O=Y.length,Q=0;for(G=0;G<O;G++){var M=Y.charCodeAt(G);if((M&64512)===55296&&G+1<O){var t=Y.charCodeAt(G+1);(t&64512)===56320&&(M=65536+(M-55296<<10)+(t-56320),G++)}Q+=M<128?1:M<2048?2:M<65536?3:4}var K=new Lq.Buf8(Q);for(G=u=0;u<Q;G++)M=Y.charCodeAt(G),(M&64512)===55296&&G+1<O&&(t=Y.charCodeAt(G+1),(t&64512)===56320&&(M=65536+(M-55296<<10)+(t-56320),G++)),M<128?K[u++]=M:(M<2048?K[u++]=192|M>>>6:(M<65536?K[u++]=224|M>>>12:(K[u++]=240|M>>>18,K[u++]=128|M>>>12&63),K[u++]=
128|M>>>6&63),K[u++]=128|M&63);return K};var U74={};U74=function(Y,G,u,O){var Q=Y&65535|0;Y=Y>>>16&65535|0;for(var M;u!==0;){M=u>2E3?2E3:u;u-=M;do Q=Q+G[O++]|0,Y=Y+Q|0;while(--M);Q%=65521;Y%=65521}return Q|Y<<16|0};for(var xq={},Ez,XCE=[],P84=0;P84<256;P84++){Ez=P84;for(var IsR=0;IsR<8;IsR++)Ez=Ez&1?3988292384^Ez>>>1:Ez>>>1;XCE[P84]=Ez}xq=function(Y,G,u,O){u=O+u;for(Y^=-1;O<u;O++)Y=Y>>>8^XCE[(Y^G[O])&255];return Y^-1};var Iw={};Iw={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 bBy=[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],NGI=[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],KOu=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],s$a=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],pq=Array(576);tN(pq);var zC=Array(60);tN(zC);var Xn=Array(512);tN(Xn);var go=Array(256);tN(go);var Sbt=Array(29);tN(Sbt);var j$y=Array(30);tN(j$y);var HDt,Eoj,tNj,MNj=!1;var eV;
eV=[new yH(0,0,0,0,function(Y,G){var u=65535;for(u>Y.pending_buf_size-5&&(u=Y.pending_buf_size-5);;){if(Y.lookahead<=1){fq(Y);if(Y.lookahead===0&&G===0)return 1;if(Y.lookahead===0)break}Y.strstart+=Y.lookahead;Y.lookahead=0;var O=Y.block_start+u;if(Y.strstart===0||Y.strstart>=O)if(Y.lookahead=Y.strstart-O,Y.strstart=O,mT(Y,!1),Y.strm.avail_out===0)return 1;if(Y.strstart-Y.block_start>=Y.w_size-262&&(mT(Y,!1),Y.strm.avail_out===0))return 1}Y.insert=0;if(G===4)return mT(Y,!0),Y.strm.avail_out===0?3:
4;Y.strstart>Y.block_start&&mT(Y,!1);return 1}),
new yH(4,4,8,4,v3Y),new yH(4,5,16,8,v3Y),new yH(4,6,32,32,v3Y),new yH(4,4,16,16,Cq),new yH(8,16,32,32,Cq),new yH(8,16,128,128,Cq),new yH(8,32,128,256,Cq),new yH(32,128,258,1024,Cq),new yH(32,258,258,4096,Cq)];var Q4A={};Q4A=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 TBy=Object.prototype.toString;
ODy.prototype.push=function(Y,G){var u=this.strm,O=this.options.chunkSize;if(this.ended)return!1;var Q=G===~~G?G:G===!0?4:0;typeof Y==="string"?u.input=aSA(Y):TBy.call(Y)==="[object ArrayBuffer]"?u.input=new Uint8Array(Y):u.input=Y;u.next_in=0;u.avail_in=u.input.length;do{u.avail_out===0&&(u.output=new Lq.Buf8(O),u.next_out=0,u.avail_out=O);Y=ufA(u,Q);if(Y!==1&&Y!==0)return kLX(this,Y),this.ended=!0,!1;if(u.avail_out===0||u.avail_in===0&&(Q===4||Q===2))if(this.options.to==="string"){var M=Lq.shrinkBuf(u.output,
u.next_out);G=M;M=M.length;if(M<65537&&(G.subarray&&gGR||!G.subarray))G=String.fromCharCode.apply(null,Lq.shrinkBuf(G,M));else{for(var t="",K=0;K<M;K++)t+=String.fromCharCode(G[K]);G=t}this.chunks.push(G)}else G=Lq.shrinkBuf(u.output,u.next_out),this.chunks.push(G)}while((u.avail_in>0||u.avail_out===0)&&Y!==1);if(Q===4)return(u=this.strm)&&u.state?(O=u.state.status,O!==42&&O!==69&&O!==73&&O!==91&&O!==103&&O!==113&&O!==666?Y=kq(u,-2):(u.state=null,Y=O===113?kq(u,-3):0)):Y=-2,kLX(this,Y),this.ended=
!0,Y===0;Q===2&&(kLX(this,0),u.avail_out=0);return!0};
var kLX=function(Y,G){G===0&&(Y.result=Y.options.to==="string"?Y.chunks.join(""):Lq.flattenChunks(Y.chunks));Y.chunks=[];Y.err=G;Y.msg=Y.strm.msg};var nGE=typeof TextEncoder!=="undefined"?new TextEncoder:null,bDU=nGE?function(Y){return nGE.encode(Y)}:function(Y){Y=_.Hu(Y);
for(var G=new Uint8Array(Y.length),u=0;u<G.length;u++)G[u]=Y[u];return G};var OIj={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},MOj={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var t7=function(Y,G){this.version=Y;this.args=G};
t7.prototype.serialize=function(){return{version:this.version,args:this.args}};var ISa=function(Y,G){this.topic=Y;this.dataClass=G};
ISa.prototype.toString=function(){return this.topic};var FZV=_.So("ytPubsub2Pubsub2Instance")||new _.KG;_.KG.prototype.subscribe=_.KG.prototype.subscribe;_.KG.prototype.unsubscribeByKey=_.KG.prototype.unsubscribeByKey;_.KG.prototype.publish=_.KG.prototype.publish;_.KG.prototype.clear=_.KG.prototype.clear;_.U5("ytPubsub2Pubsub2Instance",FZV);var PMj=_.So("ytPubsub2Pubsub2SubscribedKeys")||{};_.U5("ytPubsub2Pubsub2SubscribedKeys",PMj);var noA=_.So("ytPubsub2Pubsub2TopicToKeys")||{};_.U5("ytPubsub2Pubsub2TopicToKeys",noA);
var kOj=_.So("ytPubsub2Pubsub2IsAsync")||{};_.U5("ytPubsub2Pubsub2IsAsync",kOj);_.U5("ytPubsub2Pubsub2SkipSubKey",null);var yjj=void 0,fSt=void 0;var Dbj=_.Jy("max_body_size_to_compress",5E5),hYu=_.Jy("min_body_size_to_compress",500),iB=!0,j4u=0,Rw=0,NBt=_.Jy("compression_performance_threshold_lr",250),lSY=_.Jy("slow_compressions_before_abandon_count",4),ooy=!1,iD4=new Map,db4=1;_.qz(Za,$bu);Za.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 pC2=function(Y,G,u){u||(u=0);var O=Y.W_;if(typeof G==="string")for(var Q=0;Q<16;Q++)O[Q]=G.charCodeAt(u)<<24|G.charCodeAt(u+1)<<16|G.charCodeAt(u+2)<<8|G.charCodeAt(u+3),u+=4;else for(Q=0;Q<16;Q++)O[Q]=G[u]<<24|G[u+1]<<16|G[u+2]<<8|G[u+3],u+=4;for(G=16;G<80;G++)u=O[G-3]^O[G-8]^O[G-14]^O[G-16],O[G]=(u<<1|u>>>31)&4294967295;G=Y.chain_[0];u=Y.chain_[1];Q=Y.chain_[2];for(var M=Y.chain_[3],t=Y.chain_[4],K,L,g=0;g<80;g++)g<40?g<20?(K=M^u&(Q^M),L=1518500249):(K=u^Q^M,L=1859775393):g<60?(K=u&Q|M&(u|Q),
L=2400959708):(K=u^Q^M,L=3395469782),K=(G<<5|G>>>27)+K+t+L+O[g]&4294967295,t=M,M=Q,Q=(u<<30|u>>>2)&4294967295,u=G,G=K;Y.chain_[0]=Y.chain_[0]+G&4294967295;Y.chain_[1]=Y.chain_[1]+u&4294967295;Y.chain_[2]=Y.chain_[2]+Q&4294967295;Y.chain_[3]=Y.chain_[3]+M&4294967295;Y.chain_[4]=Y.chain_[4]+t&4294967295};
Za.prototype.update=function(Y,G){if(Y!=null){G===void 0&&(G=Y.length);for(var u=G-this.blockSize,O=0,Q=this.buf_,M=this.inbuf_;O<G;){if(M==0)for(;O<=u;)pC2(this,Y,O),O+=this.blockSize;if(typeof Y==="string")for(;O<G;){if(Q[M]=Y.charCodeAt(O),++M,++O,M==this.blockSize){pC2(this,Q);M=0;break}}else for(;O<G;)if(Q[M]=Y[O],++M,++O,M==this.blockSize){pC2(this,Q);M=0;break}}this.inbuf_=M;this.total_+=G}};
Za.prototype.digest=function(){var Y=[],G=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var u=this.blockSize-1;u>=56;u--)this.buf_[u]=G&255,G/=256;pC2(this,this.buf_);for(u=G=0;u<5;u++)for(var O=24;O>=0;O-=8)Y[G]=this.chain_[u]>>O&255,++G;return Y};var cjy;var au=function(Y){var G=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(P){G.databaseToken=P},
triggerThrottle:function(){G.throttledSend()},
cancelThrottle:function(){G.cancelThrottledSend()},
immediateSend:function(P){return _.a(function(I){return I.yield(G.immediateSend(P),0)})},
requestWithinAgeLimit:function(P,I){return G.requestWithinAgeLimit(P,I)},
retryQueuedRequests:function(){G.retryQueuedRequests()}};
var u;this.throttleTimeout=(u=Y.throttleTimeout)!=null?u:100;var O;this.retryMaxAttempts=(O=Y.retryMaxAttempts)!=null?O:1;var Q;this.requestAgeLimitMs=(Q=Y.requestAgeLimitMs)!=null?Q:2592E6;var M;this.queuedRequestAgeLimitMs=(M=Y.queuedRequestAgeLimitMs)!=null?M:12E4;var t;this.retryDelayMs=(t=Y.retryDelayMs)!=null?t:5E3;var K;this.databaseToken=(K=Y.databaseToken)!=null?K:void 0;this.enableCleaning=!!Y.enableCleaning;var L;this.cleaningRate=(L=Y.cleaningRate)!=null?L:.1;var g;this.potentialEsfErrorLimit=
(g=Y.potentialEsfErrorLimit)!=null?g:10;Y.handleError&&(this.handleError=Y.handleError);Y.handleWarning&&(this.handleWarning=Y.handleWarning);Y.disableYtIdbTransactions&&(this.disableYtIdbTransactions=Y.disableYtIdbTransactions);Y.bypassDbTokenDependency&&(this.bypassDbTokenDependency=Y.bypassDbTokenDependency);this.getBooleanFlag=Y.getBooleanFlag;this.jobManager=Y.jobManager;this.logsStore=Y.logsStore;this.networkManager=Y.networkManager;this.sendFn=Y.sendFn;this.onlineEvent=Y.onlineEvent;this.offlineEvent=
Y.offlineEvent;KL(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&zUe(this)},zUe=function(Y){KL(Y)&&!Y.disableYtIdbTransactions&&(Y.initialized=!0,Y.enableCleaning&&Math.random()<=Y.cleaningRate&&Y.logsStore.cleanLogsStore(Y.databaseToken),Y.retryQueuedRequests(),Y.networkManager.isNetworkAvailable()&&Y.throttledSend(),Y.networkManager.listen(Y.onlineEvent,Y.throttledSend.bind(Y)),Y.networkManager.listen(Y.offlineEvent,Y.cancelThrottledSend.bind(Y)))};
_.H=au.prototype;_.H.writeThenSend=function(Y,G){var u=this;G=G===void 0?{}:G;if(KL(this)&&this.initialized){var O={url:Y,options:G,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(O,this.databaseToken).then(function(Q){O.id=Q;u.networkManager.isNetworkAvailable()&&u.immediateSend(O)}).catch(function(Q){u.immediateSend(O);
mWI(u,Q)})}else this.sendFn(Y,G)};
_.H.sendThenWrite=function(Y,G,u){var O=this;G=G===void 0?{}:G;if(KL(this)&&this.initialized){var Q={url:Y,options:G,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(Q.skipRetry=u);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!Q.skipRetry){if(!Q.skipRetry){var M=G.onError?G.onError:function(){};
G.onError=function(t,K){return _.a(function(L){if(L.nextAddress==1)return L.yield(O.logsStore.set(Q,O.databaseToken).catch(function(g){mWI(O,g)}),2);
M(t,K);_.Sd(L)})}}this.sendFn(Y,G,Q.skipRetry)}else this.logsStore.set(Q,this.databaseToken).catch(function(t){O.sendFn(Y,G,Q.skipRetry);
mWI(O,t)})}else this.sendFn(Y,G,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&u)};
_.H.sendAndWrite=function(Y,G){var u=this;G=G===void 0?{}:G;if(KL(this)&&this.initialized){var O={url:Y,options:G,timestamp:this.now(),status:"NEW",sendCount:0},Q=!1,M=G.onSuccess?G.onSuccess:function(){};
O.options.onSuccess=function(t,K){O.id!==void 0?u.logsStore.deleteRequest(O.id,u.databaseToken):Q=!0;u.networkManager.networkStatusHint&&u.getBooleanFlag&&u.getBooleanFlag("vss_network_hint")&&u.networkManager.networkStatusHint(!0);M(t,K)};
this.sendFn(O.url,O.options,void 0,!0);this.logsStore.set(O,this.databaseToken).then(function(t){O.id=t;Q&&u.logsStore.deleteRequest(O.id,u.databaseToken)}).catch(function(t){mWI(u,t)})}else this.sendFn(Y,G,void 0,!0)};
_.H.throttledSend=function(){var Y=this;if(!KL(this))throw Error("dd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var G;return _.a(function(u){if(u.nextAddress==1)return u.yield(Y.logsStore.getMostRecentByStatus("NEW",Y.databaseToken),2);if(u.nextAddress!=3)return G=u.yieldResult,G?u.yield(Y.immediateSend(G),3):(Y.cancelThrottledSend(),u.return());Y.intervalJob&&(Y.intervalJob=0,Y.throttledSend());_.Sd(u)})},this.throttleTimeout))};
_.H.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.H.immediateSend=function(Y){var G=this,u;return _.a(function(O){switch(O.nextAddress){case 1:if(!KL(G))throw Error("ed");if(Y.id===void 0){O.jumpTo(2);break}return O.yield(G.logsStore.markAsQueued(Y.id,G.databaseToken),3);case 3:(u=O.yieldResult)||G.handleWarning(Error("fd"));case 2:if(G.requestWithinAgeLimit(Y,G.requestAgeLimitMs)){O.jumpTo(4);break}G.handleWarning(Error("gd"));if(Y.id===void 0){O.jumpTo(5);break}return O.yield(G.logsStore.deleteRequest(Y.id,G.databaseToken),5);case 5:return O.return();
case 4:Y.skipRetry||(Y=WZl(G,Y));if(!Y){O.jumpTo(0);break}if(!Y.skipRetry||Y.id===void 0){O.jumpTo(8);break}return O.yield(G.logsStore.deleteRequest(Y.id,G.databaseToken),8);case 8:G.sendFn(Y.url,Y.options,!!Y.skipRetry),_.Sd(O)}})};
var WZl=function(Y,G){if(!KL(Y))throw Error("hd");var u=G.options.onError?G.options.onError:function(){};
G.options.onError=function(Q,M){var t,K,L,g;return _.a(function(P){switch(P.nextAddress){case 1:t=GUt(M);(K=uS1(M))&&Y.getBooleanFlag&&Y.getBooleanFlag("web_enable_error_204")&&Y.handleError(Error("id"),G.url,M);if(!(Y.getBooleanFlag&&Y.getBooleanFlag("nwl_consider_error_code")&&t||Y.getBooleanFlag&&!Y.getBooleanFlag("nwl_consider_error_code")&&Y.potentialEsfErrorCounter<=Y.potentialEsfErrorLimit)){P.jumpTo(2);break}if(!Y.networkManager.sendNetworkCheckRequest){P.jumpTo(3);break}return P.yield(Y.networkManager.sendNetworkCheckRequest(),
3);case 3:if(Y.networkManager.isNetworkAvailable()){P.jumpTo(2);break}u(Q,M);if(!Y.getBooleanFlag||!Y.getBooleanFlag("nwl_consider_error_code")||((L=G)==null?void 0:L.id)===void 0){P.jumpTo(6);break}return P.yield(Y.logsStore.resetRequest(G.id,Y.databaseToken,!1),6);case 6:return P.return();case 2:if(Y.getBooleanFlag&&Y.getBooleanFlag("nwl_consider_error_code")&&!t&&Y.potentialEsfErrorCounter>Y.potentialEsfErrorLimit)return P.return();Y.potentialEsfErrorCounter++;if(((g=G)==null?void 0:g.id)===void 0){P.jumpTo(8);
break}return G.sendCount<Y.retryMaxAttempts?P.yield(Y.logsStore.resetRequest(G.id,Y.databaseToken,!0,K?!1:void 0),12):P.yield(Y.logsStore.deleteRequest(G.id,Y.databaseToken),8);case 12:Y.jobManager.addLowPriorityJob(function(){Y.networkManager.isNetworkAvailable()&&Y.throttledSend()},Y.retryDelayMs);
case 8:u(Q,M),_.Sd(P)}})};
var O=G.options.onSuccess?G.options.onSuccess:function(){};
G.options.onSuccess=function(Q,M){var t;return _.a(function(K){if(K.nextAddress==1)return((t=G)==null?void 0:t.id)===void 0?K.jumpTo(2):K.yield(Y.logsStore.deleteRequest(G.id,Y.databaseToken),2);Y.networkManager.networkStatusHint&&Y.getBooleanFlag&&Y.getBooleanFlag("vss_network_hint")&&Y.networkManager.networkStatusHint(!0);O(Q,M);_.Sd(K)})};
return G};
au.prototype.requestWithinAgeLimit=function(Y,G){Y=Y.timestamp;return this.now()-Y>=G?!1:!0};
au.prototype.retryQueuedRequests=function(){var Y=this;if(!KL(this))throw Error("jd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(G){G&&!Y.requestWithinAgeLimit(G,Y.queuedRequestAgeLimitMs)?Y.jobManager.addLowPriorityJob(function(){return _.a(function(u){if(u.nextAddress==1)return G.id===void 0?u.jumpTo(2):u.yield(Y.logsStore.resetRequest(G.id,Y.databaseToken),2);Y.retryQueuedRequests();_.Sd(u)})}):Y.networkManager.isNetworkAvailable()&&Y.throttledSend()})};
var mWI=function(Y,G){Y.writeError&&!Y.networkManager.isNetworkAvailable()?Y.writeError(G):Y.handleError(G)},KL=function(Y){return!!Y.databaseToken||Y.bypassDbTokenDependency};var Odt;var ajA={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,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,tvhtml5DeviceStorageStats:535,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,
appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,
webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,
parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,
prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,
sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,
parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,
biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,
youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,
crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,
embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534,
mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539,loggingReliabilityProbe:540};var rHU={},gyt=Jd("ServiceWorkerLogsDatabase",{objectStores:(rHU.SWHealthLog={addedAtVersion:1},rHU),shared:!0,upgrade:function(Y,G){G(1)&&SV(bB(Y,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var zMa={},p3A=0;var x4j;var TW=function(Y){_.C7.call(this);var G=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=Y!=null?Y:{addLowPriorityJob:function(Q,M){return setTimeout(Q,M)},
cancelJob:function(Q){clearTimeout(Q)}};
var u,O;this.isOnline=(O=(u=window.navigator)==null?void 0:u.onLine)!=null?O:!0;this.onNavigatorChange=function(){return _.a(function(Q){return Q.yield(xWM(G),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||fs4(this)};
_.m(TW,_.C7);TW.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete TW.instance};
TW.prototype.isNetworkAvailable=function(){return this.isOnline};
var fs4=function(Y){Y.pollingJob=Y.jobManager.addLowPriorityJob(function(){var G;return _.a(function(u){if(u.nextAddress==1)return Y.isOnline?((G=window.navigator)==null?0:G.onLine)?u.jumpTo(3):u.yield(xWM(Y),3):u.yield(xWM(Y),3);fs4(Y);_.Sd(u)})},3E4)},xWM=function(Y,G){return Y.networkRequestPromise?Y.networkRequestPromise:Y.networkRequestPromise=new Promise(function(u){var O,Q,M,t;
return _.a(function(K){switch(K.nextAddress){case 1:return O=window.AbortController?new window.AbortController:void 0,M=(Q=O)==null?void 0:Q.signal,t=!1,_.i3(K,2,3),O&&(Y.abortTimeoutKey=Y.jobManager.addLowPriorityJob(function(){O.abort()},G||2E4)),K.yield(fetch("/generate_204",{method:"HEAD",
signal:M}),5);case 5:t=!0;case 3:_.wt(K);Y.networkRequestPromise=void 0;Y.abortTimeoutKey&&(Y.jobManager.cancelJob(Y.abortTimeoutKey),Y.abortTimeoutKey=0);t!==Y.isOnline&&(Y.isOnline=t,Y.isOnline?Y.dispatchEvent("networkstatus-online"):Y.dispatchEvent("networkstatus-offline"));u(t);_.dt(K,0);break;case 2:_.b3(K),t=!1,K.jumpTo(3)}})})};var LL=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},C82=function(){if(!LL.instance){var Y=_.So("yt.networkRequestMonitor.instance")||new LL;
_.U5("yt.networkRequestMonitor.instance",Y);LL.instance=Y}return LL.instance};
LL.prototype.requestComplete=function(Y,G){G&&(this.anyRequestHasSucceeded=!0);Y=this.removeParams(Y);this.requestMap.get(Y)||this.requestMap.set(Y,G)};
LL.prototype.isEndpointCFR=function(Y){Y=this.removeParams(Y);return(Y=this.requestMap.get(Y))?!1:Y===!1&&this.anyRequestHasSucceeded?!0:null};
LL.prototype.removeParams=function(Y){return Y.split("?")[0]};
LL.prototype.removeParams=LL.prototype.removeParams;LL.prototype.isEndpointCFR=LL.prototype.isEndpointCFR;LL.prototype.requestComplete=LL.prototype.requestComplete;LL.getInstance=C82;var g1=function(){_.C7.call(this);var Y=this;this.shouldFlushErrors=!1;TW.instance||(TW.instance=new TW(_.AN));this.sharedNetworkStatusManager=TW.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(Y.shouldFlushErrors&&_.F("offline_error_handling")){var G=f9Y().get("errors",!0);if(G){for(var u in G)if(G[u]){var O=new _.I2(u,"sent via offline_errors");O.name=G[u].name;O.stack=G[u].stack;O.level=G[u].level;_.dc(O)}f9Y().set("errors",{},2592E3,!0)}}})};
_.m(g1,_.C7);var yHR=function(){if(!g1.instance){var Y=_.So("yt.networkStatusManager.instance")||new g1;_.U5("yt.networkStatusManager.instance",Y);g1.instance=Y}return g1.instance};
_.H=g1.prototype;_.H.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.H.networkStatusHint=function(Y){this.sharedNetworkStatusManager.isOnline=Y};
_.H.getWindowStatus=function(){var Y=window.navigator.onLine;return Y===void 0?!0:Y};
_.H.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.H.listen=function(Y,G){return this.sharedNetworkStatusManager.listen(Y,G)};
_.H.sendNetworkCheckRequest=function(Y){return xWM(this.sharedNetworkStatusManager,Y)};
g1.prototype.sendNetworkCheckRequest=g1.prototype.sendNetworkCheckRequest;g1.prototype.listen=g1.prototype.listen;g1.prototype.enableErrorFlushing=g1.prototype.enableErrorFlushing;g1.prototype.getWindowStatus=g1.prototype.getWindowStatus;g1.prototype.networkStatusHint=g1.prototype.networkStatusHint;g1.prototype.isNetworkAvailable=g1.prototype.isNetworkAvailable;g1.getInstance=yHR;_.lB=function(Y){Y=Y===void 0?{}:Y;_.C7.call(this);var G=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=yHR();var u=_.So("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);u&&(Y.rateLimit?(this.rateLimit=Y.rateLimit,u("networkstatus-online",function(){eUR(G,"publicytnetworkstatus-online")}),u("networkstatus-offline",function(){eUR(G,"publicytnetworkstatus-offline")})):(u("networkstatus-online",function(){G.dispatchEvent("publicytnetworkstatus-online")}),u("networkstatus-offline",
function(){G.dispatchEvent("publicytnetworkstatus-offline")})))};
_.m(_.lB,_.C7);_.lB.prototype.isNetworkAvailable=function(){var Y=_.So("yt.networkStatusManager.instance.isNetworkAvailable");return Y?Y.bind(this.nsmInstance)():!0};
_.lB.prototype.networkStatusHint=function(Y){var G=_.So("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);G&&G(Y)};
_.lB.prototype.sendNetworkCheckRequest=function(Y){var G=this,u;return _.a(function(O){u=_.So("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(G.nsmInstance);return _.F("skip_network_check_if_cfr")&&C82().isEndpointCFR("generate_204")?O.return(new Promise(function(Q){var M;G.networkStatusHint(((M=window.navigator)==null?void 0:M.onLine)||!0);Q(G.isNetworkAvailable())})):u?O.return(u(Y)):O.return(!0)})};
var eUR=function(Y,G){Y.rateLimit?Y.lastJobTime?(_.AN.cancelJob(Y.schedulerJob),Y.schedulerJob=_.AN.addLowPriorityJob(function(){Y.lastPublicSignalSent!==G&&(Y.dispatchEvent(G),Y.lastPublicSignalSent=G,Y.lastJobTime=(0,_.GC)())},Y.rateLimit-((0,_.GC)()-Y.lastJobTime))):(Y.dispatchEvent(G),Y.lastPublicSignalSent=G,Y.lastJobTime=(0,_.GC)()):Y.dispatchEvent(G)};var ARA,X0=function(){au.call(this,{logsStore:{cleanLogsStore:THt,deleteRequest:a9A,getMostRecentByStatus:Eya,markAsQueued:tkt,resetRequest:Kaa,set:Hdy},networkManager:_.oyt(),handleError:function(Y,G,u){var O,Q=u==null?void 0:(O=u.error)==null?void 0:O.code;if(Q===400||Q===415){var M;Y=new _.I2(Y.message,G,u==null?void 0:(M=u.error)==null?void 0:M.code);_.N3(Y,void 0,void 0,void 0,!0)}else _.dc(Y)},
handleWarning:_.N3,sendFn:yRt,now:_.GC,writeError:Cqt,jobManager:_.FO(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Jy("potential_esf_error_limit",10),getBooleanFlag:_.F,disableYtIdbTransactions:!(_.PK()&&_.id1())});this.initializationPromise=new _.sG;_.F("networkless_immediately_drop_all_requests")&&Lay();OBA("LogsDatabaseV2")};
_.m(X0,au);_.oG4=function(){var Y=_.So("yt.networklessRequestController.instance");Y||(Y=new X0,_.U5("yt.networklessRequestController.instance",Y),_.F("networkless_logging")&&_.vK().then(function(G){Y.databaseToken=G;zUe(Y);Y.initializationPromise.resolve();Y.enableCleaning&&Math.random()<=Y.cleaningRate&&Y.databaseToken&&Pqt(Y.databaseToken);_.F("networkless_immediately_drop_sw_health_store")&&AHE(Y)}));
return Y};
X0.prototype.writeThenSend=function(Y,G){G||(G={});G=eMA(Y,G);_.PK()||(this.initialized=!1);au.prototype.writeThenSend.call(this,Y,G)};
X0.prototype.sendThenWrite=function(Y,G,u){G||(G={});G=eMA(Y,G);_.PK()||(this.initialized=!1);au.prototype.sendThenWrite.call(this,Y,G,u)};
X0.prototype.sendAndWrite=function(Y,G){G||(G={});G=eMA(Y,G);_.PK()||(this.initialized=!1);au.prototype.sendAndWrite.call(this,Y,G)};
X0.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var AHE=function(Y){var G;_.a(function(u){if(!Y.databaseToken)throw G=Dn("clearSWHealthLogsDb"),G;return u.return(I9a(Y.databaseToken).catch(function(O){Y.handleError(O)}))})};_.w3j=!1;_.RMg=_.OI.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.w3j};_.U5("ytNetworklessLoggingInitializationOptions",_.RMg);var yO=function(Y){var G=this;this.config_=null;Y?this.config_=Y:Lwu()&&(this.config_=_.O0());_.WY(_.AN,function(){Y3U(G)},5E3)};
yO.prototype.isReady=function(){!this.config_&&Lwu()&&(this.config_=_.O0());return!!this.config_};
var Jja=function(Y,G,u,O){!_.DE("VISITOR_DATA")&&G!=="visitor_id"&&Math.random()<.01&&_.N3(new _.I2("Missing VISITOR_DATA when sending innertube request.",G,u,O));if(!Y.isReady()){var Q=new _.I2("innertube xhrclient not ready",G,u,O);_.dc(Q);throw Q;}var M={headers:O.headers||{},method:"POST",postParams:u,postBody:O.postBody,postBodyFormat:O.postBodyFormat||"JSON",onTimeout:function(){O.onTimeout()},
onFetchTimeout:O.onTimeout,onSuccess:function(I,k){if(O.onSuccess)O.onSuccess(k)},
onFetchSuccess:function(I){if(O.onSuccess)O.onSuccess(I)},
onProgress:function(I){if(O.onProgress)O.onProgress(I)},
onError:function(I,k){if(O.onError)O.onError(k)},
onFetchError:function(I){if(O.onError)O.onError(I)},
timeout:O.timeout,withCredentials:!0,compress:O.compress};M.headers["Content-Type"]||(M.headers["Content-Type"]="application/json");var t="";(Q=Y.config_.innertubeHostOverride)&&(t=Q);var K=Y.config_.innertubeUseThirdPartyAuth||!1,L=_.yhY(K,t,O);Object.assign(M.headers,L);M.headers.Authorization&&!t&&K&&(M.headers["x-origin"]=window.location.origin);var g=_.B4(t+("/youtubei/"+Y.config_.innertubeApiVersion+"/"+G),{alt:"json"}),P=function(I){I=I===void 0?!1:I;var k;if(O.retry&&t!="www.youtube-nocookie.com"&&
(I||_.F("skip_ls_gel_retry")||M.headers["Content-Type"]!=="application/json"||(k=Ub4(G,u,L,K)),k)){var n=M.onSuccess,p=M.onFetchSuccess;M.onSuccess=function(e,w){voj(k);n(e,w)};
u.onFetchSuccess=function(e,w){voj(k);p(e,w)}}try{if(I&&O.retry&&!O.networklessOptions.bypassNetworkless)M.method="POST",O.networklessOptions.writeThenSend?_.oG4().writeThenSend(g,M):_.oG4().sendAndWrite(g,M);
else if(O.compress){var W=!O.networklessOptions.writeThenSend;if(M.postBody){var C=M.postBody;typeof C!=="string"&&(C=JSON.stringify(M.postBody));Sxj(g,C,M,_.td,W)}else Sxj(g,JSON.stringify(M.postParams),M,qUy,W)}else qUy(g,M)}catch(e){if(e.name==="InvalidAccessError")k&&(voj(k),k=0),_.N3(Error("kd"));else throw e;}k&&_.WY(_.AN,function(){Y3U(Y)},5E3)};
_.ZdA()?siA().then(function(I){P(I)}):P(!1)};var wqy=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(wqy,_.Ps);var iUT=0,hMj=_.Mt?"webkit":_.Hc?"moz":_.YU?"ms":AB2?"o":"";_.U5("ytDomDomGetNextId",_.So("ytDomDomGetNextId")||function(){return++iUT});var RUU={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},cj=function(Y){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(Y=
Y||window.event){this.event=Y;for(var G in Y)G in RUU||(this[G]=Y[G]);this.scale=Y.scale;this.rotation=Y.rotation;var u=Y.target||Y.srcElement;u&&u.nodeType==3&&(u=u.parentNode);this.target=u;var O=Y.relatedTarget;if(O)try{O=O.nodeName?O:null}catch(Q){O=null}else this.type=="mouseover"?O=Y.fromElement:this.type=="mouseout"&&(O=Y.toElement);this.relatedTarget=O;this.clientX=Y.clientX!=void 0?Y.clientX:Y.pageX;this.clientY=Y.clientY!=void 0?Y.clientY:Y.pageY;this.keyCode=Y.keyCode?Y.keyCode:Y.which;
this.charCode=Y.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=Y.altKey;this.ctrlKey=Y.ctrlKey;this.shiftKey=Y.shiftKey;this.metaKey=Y.metaKey;this.pageX_=Y.pageX;this.pageY_=Y.pageY}}catch(Q){}},wCU=function(Y){if(document.body&&document.documentElement){var G=document.body.scrollTop+document.documentElement.scrollTop;
Y.pageX_=Y.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);Y.pageY_=Y.clientY+G}};
cj.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
cj.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
cj.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var s0=_.OI.ytEventsEventsListeners||{};_.U5("ytEventsEventsListeners",s0);var VkI=_.OI.ytEventsEventsCounter||{count:0};_.U5("ytEventsEventsCounter",VkI);var l9j=_.F8(function(){var Y=!1;try{var G=Object.defineProperty({},"capture",{get:function(){Y=!0}});
window.addEventListener("test",null,G)}catch(u){}return Y});_.qz(vj,_.Ey);vj.prototype.onMouseMove_=function(Y){Y.pageX_===void 0&&wCU(Y);var G=Y.pageX_;Y.pageY_===void 0&&wCU(Y);this.position_=new _.AD(G,Y.pageY_)};
vj.prototype.checkPosition_=function(){if(this.position_){var Y=(0,_.GC)();if(this.previousTime_!=0){var G=this.previousPosition_,u=this.position_,O=G.x-u.x;G=G.y-u.y;O=Math.sqrt(O*O+G*G)/(Y-this.previousTime_);this.cycles_[this.index_]=Math.abs((O-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(u=G=0;u<4;u++)G+=this.cycles_[u]||0;G>=3&&this.callback_();this.previousVelocity_=O}this.previousTime_=Y;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
vj.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.BHt(this.mouseListenerKey_)};var U4y={};var Qd4=new _.bu("rawColdConfigGroup");var OK1=new _.bu("rawHotConfigGroup");var ZUR=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(ZUR,_.Ps);var Rku=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Rku,_.Ps);var mm=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y,500)};
_.m(mm,_.Ps);mm.prototype.getPayloadCase=function(){return _.gQ(this,DW2)};
mm.prototype.getContext=function(){return _.QH(this,Rku,33)};
var DW2=[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,526,527,528,529,530,531,536,537,538,539];var U5u=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(U5u,_.Ps);var Cvy=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Cvy,_.Ps);Cvy.prototype.setVideoId=function(Y){return T5(this,1,yf1,eS(Y))};
Cvy.prototype.getPlaylistId=function(){return _.Gm(this,k7(this,yf1,2))};
var yf1=[1,2];var LJ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(LJ,_.Ps);LJ.prototype.getContext=function(){return _.QH(this,gN,1)};
LJ.prototype.getTier=function(){return _.mK(this,7)};
LJ.prototype.getRetryCount=function(){return _.Sh(this,11)};var hUM,uj,OV;hUM=_.OI.ytPubsubPubsubInstance||new _.KG;uj=_.OI.ytPubsubPubsubSubscribedKeys||{};OV=_.OI.ytPubsubPubsubTopicToKeys||{};_.vyA=_.OI.ytPubsubPubsubIsSynchronous||{};_.KG.prototype.subscribe=_.KG.prototype.subscribe;_.KG.prototype.unsubscribeByKey=_.KG.prototype.unsubscribeByKey;_.KG.prototype.publish=_.KG.prototype.publish;_.KG.prototype.clear=_.KG.prototype.clear;_.U5("ytPubsubPubsubInstance",hUM);_.U5("ytPubsubPubsubTopicToKeys",OV);_.U5("ytPubsubPubsubIsSynchronous",_.vyA);
_.U5("ytPubsubPubsubSubscribedKeys",uj);var M6=window;var Py=_.F("web_enable_lifecycle_monitoring")&&OzY()!==0,dWl=_.F("web_enable_lifecycle_monitoring");var bUR=function(Y){var G=this;var u=u===void 0?0:u;var O=O===void 0?_.FO():O;this.JSC$11219_defaultPriority=u;this.scheduler=O;this.completedResolver=new _.sG;this.scheduledPayloads=Y;for(Y={i$jscomp$496:0};Y.i$jscomp$496<this.scheduledPayloads.length;Y={payload$jscomp$20:void 0,i$jscomp$496:Y.i$jscomp$496},Y.i$jscomp$496++)Y.payload$jscomp$20=this.scheduledPayloads[Y.i$jscomp$496],u=function(Q){return function(){Q.payload$jscomp$20.job();G.scheduledPayloads[Q.i$jscomp$496].processed=!0;G.scheduledPayloads.every(function(M){return M.processed===
!0})&&G.completedResolver.resolve()}}(Y),O=this.getPriority(Y.payload$jscomp$20),O=this.scheduler.addJob(u,O),this.scheduledPayloads[Y.i$jscomp$496]=Object.assign({},Y.payload$jscomp$20,{job:u,
jobId:O})};
bUR.prototype.flushJobs=function(){var Y=this,G=Array.from(this.scheduledPayloads.keys()).sort(function(O,Q){return Y.getPriority(Y.scheduledPayloads[Q])-Y.getPriority(Y.scheduledPayloads[O])});
G=_.E(G);for(var u=G.next();!u.done;u=G.next())u=this.scheduledPayloads[u.value],u.jobId===void 0||u.processed||(this.scheduler.cancelJob(u.jobId),this.scheduler.addJob(u.job,10))};
bUR.prototype.cancel=function(){for(var Y=_.E(this.scheduledPayloads),G=Y.next();!G.done;G=Y.next())G=G.value,G.jobId===void 0||G.processed||this.scheduler.cancelJob(G.jobId),G.processed=!0;this.completedResolver.resolve()};
bUR.prototype.getPriority=function(Y){var G;return(G=Y.priority)!=null?G:this.JSC$11219_defaultPriority};var Iu=function(Y){this.state=Y;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Py&&QSy(this.state)};
Iu.prototype.install=function(Y){this.plugins.push(Y);return this};
Iu.prototype.uninstall=function(){var Y=this;_.vs.apply(0,arguments).forEach(function(G){G=Y.plugins.indexOf(G);G>-1&&Y.plugins.splice(G,1)})};
Iu.prototype.transition=function(Y,G){var u=this;Py&&Mrj(this.state);var O=this.transitions.find(function(M){return Array.isArray(M.from)?M.from.find(function(t){return t===u.state&&M.to===Y}):M.from===u.state&&M.to===Y});
if(O){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);SGV(this,Y,G);this.state=Y;Py&&QSy(this.state);O=O.action.bind(this);var Q=this.plugins.filter(function(M){return M[Y]}).map(function(M){return M[Y]});
O(NK_(this,Q),G)}else throw Error("ld`"+this.state+"`"+Y);};
var NK_=function(Y,G){var u=G.filter(function(Q){return jiR(Y,Q)===10}),O=G.filter(function(Q){return jiR(Y,Q)!==10});
return Y.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var Q=_.vs.apply(0,arguments);return _.a(function(M){if(M.nextAddress==1)return M.yield(Y.runImmediateJobsAsync.apply(Y,[u].concat(_.c8(Q))),2);Y.setJobSetWithScheduledJobs.apply(Y,[O].concat(_.c8(Q)));_.Sd(M)})}:function(){var Q=_.vs.apply(0,arguments);
Y.runImmediateJobsSync.apply(Y,[u].concat(_.c8(Q)));Y.setJobSetWithScheduledJobs.apply(Y,[O].concat(_.c8(Q)))}};
Iu.prototype.runImmediateJobsSync=function(Y){var G=_.vs.apply(1,arguments);_.FO();for(var u=_.E(Y),O=u.next(),Q={};!O.done;Q={lifecycle$jscomp$2:void 0},O=u.next())Q.lifecycle$jscomp$2=O.value,N4(function(M){return function(){V7E(M.lifecycle$jscomp$2.name);EhA(function(){return M.lifecycle$jscomp$2.callback.apply(M.lifecycle$jscomp$2,_.c8(G))});
kt(M.lifecycle$jscomp$2.name)}}(Q))};
Iu.prototype.runImmediateJobsAsync=function(Y){var G=_.vs.apply(1,arguments),u,O,Q,M;return _.a(function(t){t.nextAddress==1&&(_.FO(),u=_.E(Y),O=u.next(),Q={});if(t.nextAddress!=3){if(O.done)return t.jumpTo(0);Q.lifecycle$jscomp$3=O.value;Q.asyncJobCompletion=void 0;M=function(K){return function(){V7E(K.lifecycle$jscomp$3.name);var L=EhA(function(){return K.lifecycle$jscomp$3.callback.apply(K.lifecycle$jscomp$3,_.c8(G))});
Qh4(L)?K.asyncJobCompletion=_.F("web_lifecycle_error_handling_killswitch")?L.then(function(){kt(K.lifecycle$jscomp$3.name)}):L.then(function(){kt(K.lifecycle$jscomp$3.name)},function(g){HzY(g);
kt(K.lifecycle$jscomp$3.name)}):kt(K.lifecycle$jscomp$3.name)}}(Q);
N4(M);return Q.asyncJobCompletion?t.yield(Q.asyncJobCompletion,3):t.jumpTo(3)}Q={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};O=u.next();return t.jumpTo(2)})};
Iu.prototype.setJobSetWithScheduledJobs=function(Y){var G=_.vs.apply(1,arguments),u=this,O=Y.map(function(Q){return{job:function(){V7E(Q.name);EhA(function(){return Q.callback.apply(Q,_.c8(G))});
kt(Q.name)},
priority:jiR(u,Q)}});
O.length&&(this.jobSet=new bUR(O))};
var jiR=function(Y,G){var u,O;return(O=(u=Y.overridePriority)!=null?u:G.priority)!=null?O:0},V7E=function(Y){Py&&Y&&QSy(Y)},kt=function(Y){Py&&Y&&Mrj(Y)},SGV=function(Y,G,u){dWl&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+Y.constructor.name+"] '"+Y.state+"' to '"+G+"'"),console.log("with message: ",u),console.groupEnd())};
_.Uk.Object.defineProperties(Iu.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var lsT=function(Y){Iu.call(this,Y===void 0?"none":Y);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(){}}]},BKX;
_.m(lsT,Iu);lsT.prototype.runApplicationNavigationBegin=function(Y,G){var u=this;this.navigationTimer=_.WY(_.AN,function(){u.currentState==="application_navigating"&&u.transition("none")},5E3);
Y(G==null?void 0:G.event)};
lsT.prototype.runApplicationNavigationEnd=function(Y,G){this.navigationTimer&&(_.AN.cancelJob(this.navigationTimer),this.navigationTimer=null);Y(G==null?void 0:G.event)};
_.u9T=function(){BKX||(BKX=new lsT);return BKX};var GiA=[];_.U5("yt.logging.transport.getScrapedGelPayloads",function(){return GiA});var HY=function(){var Y=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return Y.totalEntries}}};
HY.prototype.storePayload=function(Y,G){Y=trU(Y);this.store[Y]?this.store[Y].push(G):(this.memoizedKeySequences={},this.store[Y]=[G]);this.totalEntries++;_.F("more_accurate_gel_parser")&&(G=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(G));return Y};
HY.prototype.smartExtractMatchingEntries=function(Y){if(!Y.keys.length)return[];for(var G=$WV(this,Y.keys.splice(0,1)[0]),u=[],O=0;O<G.length;O++)this.store[G[O]]&&Y.sizeLimit&&(this.store[G[O]].length<=Y.sizeLimit?(u.push.apply(u,_.c8(this.store[G[O]])),delete this.store[G[O]]):u.push.apply(u,_.c8(this.store[G[O]].splice(0,Y.sizeLimit))));this.totalEntries-=u.length;(Y==null?0:Y.sizeLimit)&&u.length<(Y==null?void 0:Y.sizeLimit)&&(Y.sizeLimit-=u.length,u.push.apply(u,_.c8(this.smartExtractMatchingEntries(Y))));
return u};
HY.prototype.extractMatchingEntries=function(Y){Y=$WV(this,Y);for(var G=[],u=0;u<Y.length;u++)this.store[Y[u]]&&(G.push.apply(G,_.c8(this.store[Y[u]])),delete this.store[Y[u]]);this.totalEntries-=G.length;return G};
HY.prototype.getSequenceCount=function(Y){Y=$WV(this,Y);for(var G=0,u=0;u<Y.length;u++){var O=void 0;G+=((O=this.store[Y[u]])==null?void 0:O.length)||0}return G};
var $WV=function(Y,G){var u=trU(G);if(Y.memoizedKeySequences[u])return Y.memoizedKeySequences[u];var O=Object.keys(Y.store)||[];if(O.length<=1&&trU(G)===O[0])return O;for(var Q=[],M=0;M<O.length;M++){var t=O[M].split("/");if(qGR(G.auth,t[0])){var K=G.isJspb;qGR(K===void 0?"undefined":K?"true":"false",t[1])&&qGR(G.cttAuthInfo,t[2])&&(K=G.tier,K=K===void 0?"undefined":JSON.stringify(K),qGR(K,t[3])&&Q.push(O[M]))}}return Y.memoizedKeySequences[u]=Q},qGR=function(Y,G){return Y===void 0||Y==="undefined"?
!0:Y===G};
HY.prototype.getSequenceCount=HY.prototype.getSequenceCount;HY.prototype.extractMatchingEntries=HY.prototype.extractMatchingEntries;HY.prototype.smartExtractMatchingEntries=HY.prototype.smartExtractMatchingEntries;HY.prototype.storePayload=HY.prototype.storePayload;var ECy=new _.Sb("FinchConfigManagerService");var hsI,Zzj,d5I,KJ,siR,Kij,t04,wxu,Rsy,m5j,D5T,Jfg,Af4;hsI=_.Jy("initial_gel_batch_timeout",2E3);Zzj=_.Jy("gel_queue_timeout_max_ms",6E4);d5I=_.Jy("gel_min_batch_size",5);KJ=void 0;siR=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
Kij=new siR;t04=new siR;wxu=new siR;Rsy=new siR;D5T=!0;Jfg=1;_.vhg=new Map;Af4=_.OI.ytLoggingTransportTokensToCttTargetIds_||{};_.U5("ytLoggingTransportTokensToCttTargetIds_",Af4);var esj=_.OI.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.U5("ytLoggingTransportTokensToJspbCttTargetIds_",esj);var t1={};var fJ=_.OI.ytLoggingGelSequenceIdObj_||{};_.U5("ytLoggingGelSequenceIdObj_",fJ);var LiT=[];var r$y=new Set,kiI=0,C5A=0,fjt=0,Fij=[],nCI=[],y$j=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var jdy=function(){};
jdy.prototype.getUrl=function(Y,G){G=G===void 0?!1:G;return Y.hasOwnProperty("shareEndpoint")?null:_.iKT(Y,null,G)};
var BF1=function(Y,G,u){Y={endpoint:G,actions:[]};u=(u.path?u.path[0]:u.target).icon||"";G=u.indexOf(":");G>0&&(u=u.substr(G+1));u&&Y.actions.push(u);return Y};var dvj=/Command$/,h_y=/Endpoint$/,wEA=new Map;var cHI,UWe;cHI=1;_.N6=function(){this.actionRoutingMap=new Map};
_.N6.prototype.triggerAction=function(Y){var G=new LDu(Y,!1,_.vs.apply(1,arguments));this.handleAction(G);return G.returnValue};
_.N6.prototype.triggerOptionalAction=function(Y){var G=new LDu(Y,!0,_.vs.apply(1,arguments));this.handleAction(G);return G.returnValue};
_.nL=function(Y,G,u){G.forEach(function(O){var Q=DvY(O);Q&&Y.triggerOptionalAction(Q,O,u,void 0)})};
_.N6.prototype.handleAction=function(Y){var G=this.actionRoutingMap.get(Y.actionName);G&&UWe(Y,G);Y.optionalAction||Y.returnValue.length!==0||(Y=new _.I2("Unhandled action",Y.actionName),_.N3(Y))};
UWe=function(Y,G){G.forEach(function(u){var O=null;u?O=u.apply(null,Y.args):(u=Error("md"),u.params=Y.actionName,_.dc(u));Y.returnValue.push(O)})};
_.jK=function(Y,G,u){u||(u=cHI++);for(var O=_.E(Object.keys(G)),Q=O.next();!Q.done;Q=O.next()){Q=Q.value;var M=Y.actionRoutingMap.get(Q);M||(M=new Map,Y.actionRoutingMap.set(Q,M));Y.registerActionHandler(u,Q,G[Q],M)}return u};
_.N6.prototype.registerActionHandler=function(Y,G,u,O){O.set(Y,_.bi(u))};
_.VO=function(Y,G,u){G=_.E(Object.keys(G));for(var O=G.next();!O.done;O=G.next())(O=Y.actionRoutingMap.get(O.value))&&O.delete(u)};
_.BH(_.N6);var BwU=function(Y,G){var u=_.N6.getInstance();_.ii(function(){var O={},Q=_.jK(u,(O[Y]=G,O));_.w_(function(){var M={};_.VO(u,(M[Y]="",M),Q)})})};V9Y=WRy;var E2T=new Set(["For","If","Match","Watch"]),vGR={},JHR=(vGR[Nc.default]=function(){return DtU},vGR.style=function(){return DtU},vGR),Ybk;
for(Ybk in JHR)uF.attributes[Ybk]=JHR[Ybk](uF.attributes[Ybk]);var cY=new _.Sb("VISIBILITY_OBSERVER");var kPA={retrieve:function(Y){return this.id.\u0275prov.token===Y.\u0275prov.token?this.contextValue:this?vM(this,this.id):eZ1}};var GAE=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(Y){}var uE4=typeof WeakRef==="function";var OBl=function(Y){this.value=Y};
OBl.prototype.deref=function(){return this.value};
var Q$k=uE4?WeakRef:OBl,Mle=function(Y){this.newKeyHandler=Y;this.map=new WeakMap};
Mle.prototype.add=function(Y,G){this.map.has(Y)||(this.newKeyHandler(Y),this.map.set(Y,[]));this.map.get(Y).push(new Q$k(G))};
Mle.prototype.get=function(Y){var G=this;return function O(){var Q,M,t,K,L,g,P,I,k,n,p;return _.u$(O,function(W){switch(W.nextAddress){case 1:_.h0(W,2);Q=G.map.get(Y);if(!Q)return W.return();M=0;t=_.E(Q);K=t.next();case 4:if(K.done){W.jumpTo(6);break}L=K.value;g=L.deref();if(!g){W.jumpTo(5);break}M++;P=_.OA;return W.yield(g,8);case 8:P(W.yieldResult);case 5:K=t.next();W.jumpTo(4);break;case 6:if(2*M<Q.length){I=0;k=_.E(Q);for(n=k.next();!n.done;n=k.next())p=n.value,p.deref()&&(Q[I++]=p);Q.length=
I}case 2:_.wt(W),_.dt(W,0)}})}()};var HB4=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},Wzg=new Mle(function(Y){Y.addEventListener("abort",xFy,{once:!0})}),mFA=new WeakMap,E3T=function(Y){Y=Y===void 0?F0:Y;
this.signal=new Y};
E3T.prototype.abort=function(Y){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=Y,Y=new Event("abort"),this.signal.dispatchEvent(Y))};
var F0=function(){this.target=HB4();this.aborted=!1;this.onabort=null};
F0.prototype.throwIfAborted=function(){z8a.call(this)};
F0.prototype.addEventListener=function(Y,G,u){this.target.addEventListener(Y,G,u)};
F0.prototype.removeEventListener=function(Y,G,u){this.target.removeEventListener(Y,G,u)};
F0.prototype.dispatchEvent=function(Y){if(this.onabort&&Y.type==="abort")this.onabort(Y);return this.target.dispatchEvent(Y)};
F0.abort=pUj;F0.timeout=fLA;F0.any=rLI;var FzA=GAE?AbortController:E3T,pL=GAE?AbortSignal:F0;typeof pL.abort!=="function"&&(pL.abort=pUj);typeof pL.prototype.throwIfAborted!=="function"&&(pL.prototype.throwIfAborted=z8a);typeof pL.any!=="function"&&(pL.any=rLI);typeof pL.timeout!=="function"&&(pL.timeout=fLA);var vY=null,yLt=new Map;var tlV=function(Y){Y=Y.clone();VgM(Y);gd(Y,"dg",null);gd(Y,"d","0");bjR(Y,null);SkT(Y,null);return Y},Kw4=!0,abE=function(Y,G,u){var O=u===void 0?{}:u;
u=O.cssRowKey===void 0?void 0:O.cssRowKey;var Q=O.combinedSignature===void 0?void 0:O.combinedSignature;var M=O.extraEdges===void 0?void 0:O.extraEdges;O=O.callback===void 0?void 0:O.callback;gd(Y,"m",G.join(","));M&&j3R(Y,M);u&&(gd(Y,"ck",u),Q?gd(Y,"rs",Q):Kw4&&(Kw4=!1));if(O){if(O!=null&&!$2U.test(O))throw Error("Ya`"+O);gd(Y,"cb",O)}Y=Y.toString();_.EI(Y,"/")&&(Y=syA(document.location.href)+Y);return _.dT(Y)};var Lw1=function(Y){return TGe(Y).then(function(G){return JSON.parse(G.responseText)})},TGe=function(Y){var G={},u=G.xmlHttpFactory?G.xmlHttpFactory.createInstance():TCR.createInstance();
return(new _.a0(function(O,Q){var M;try{u.open("GET",Y,!0)}catch(L){Q(new zW("Error opening XHR: "+L.message,Y,u))}u.onreadystatechange=function(){if(u.readyState==4){_.OI.clearTimeout(M);var L;!(L=anM(u.status))&&(L=u.status===0)&&(L=$UA(Y),L=!(L=="http"||L=="https"||L==""));L?O(u):Q(new g3R(u.status,Y,u))}};
u.onerror=function(){Q(new zW("Network error",Y,u))};
if(G.headers)for(var t in G.headers){var K=G.headers[t];K!=null&&u.setRequestHeader(t,K)}G.withCredentials&&(u.withCredentials=G.withCredentials);G.responseType&&(u.responseType=G.responseType);G.mimeType&&u.overrideMimeType(G.mimeType);G.timeoutMs>0&&(M=_.OI.setTimeout(function(){u.onreadystatechange=function(){};
u.abort();Q(new XmT(Y,u))},G.timeoutMs));
try{u.send(null)}catch(L){u.onreadystatechange=function(){},_.OI.clearTimeout(M),Q(new zW("Error sending XHR: "+L.message,Y,u))}})).thenCatch(function(O){O instanceof _.oz&&u.abort();
throw O;})},zW=function(Y,G,u){_.Ya.call(this,Y+", url="+G);
this.url=G;this.xhr=u};
_.qz(zW,_.Ya);zW.prototype.name="XhrError";var g3R=function(Y,G,u){zW.call(this,"Request Failed, status="+Y,G,u);this.status=Y};
_.qz(g3R,zW);g3R.prototype.name="XhrHttpError";var XmT=function(Y,G){zW.call(this,"Request timed out",Y,G)};
_.qz(XmT,zW);XmT.prototype.name="XhrTimeoutError";l$=l$||{};var ml=function(){_.Ey.call(this)};
_.qz(ml,_.Ey);ml.prototype.initialize=function(){};ALU.prototype.execute=function(Y){this.fn_&&(this.fn_.call(this.handler_||null,Y),this.fn_=this.handler_=null)};
ALU.prototype.abort=function(){this.handler_=this.fn_=null};
l$.ModuleLoadCallback=ALU;_.qz(Yd,_.Ey);Yd.prototype.moduleConstructor_=ml;Yd.prototype.module_=null;Yd.prototype.getId=function(){return this.JSC$11376_id_};
Yd.prototype.registerCallback=function(Y,G){return Wy(this.onloadCallbacks_,Y,G)};
var P0T=function(Y,G){Wy(Y.onErrorCallbacks_,G)},Wy=function(Y,G,u){G=new l$.ModuleLoadCallback(G,u);
Y.push(G);return G};
Yd.prototype.isLoaded=function(){return!!this.module_};
Yd.prototype.onLoad=function(Y){var G=new this.moduleConstructor_;G.initialize(Y());this.module_=G;G=(G=IbT(this.earlyOnloadCallbacks_,Y()))||IbT(this.onloadCallbacks_,Y());G||(this.onErrorCallbacks_.length=0);return G};
Yd.prototype.onError=function(Y){(Y=IbT(this.onErrorCallbacks_,Y))&&Qj(Error("sd`"+Y));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var IbT=function(Y,G){for(var u=[],O=0;O<Y.length;O++)try{Y[O].execute(G)}catch(Q){Qj(Q),u.push(Q)}Y.length=0;return u.length?u:null};
Yd.prototype.disposeInternal=function(){Yd.superClass_.disposeInternal.call(this);_.ZM(this.module_)};
l$.ModuleInfo=Yd;var kAR,WwV,zmR,m7X,FwR,pme,yhU,fb4,C0_;
_.uo=function(Y,G,u,O,Q){O=O===void 0?!1:O;Q=Q===void 0?!1:Q;var M=M===void 0?!0:M;this.scsReferenceUrl_=G5t(_.bs(Y).toString(),M);this.cssRowKey_=G;this.combinedSignature_=u;this.useNegativeLoading_=O;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(Y=La(this.scsReferenceUrl_,"excm"))?Y.split(","):[];this.shouldScanForCss_=Q;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;u3y();_.r1(this,NjT(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
kAR=function(Y,G){if(G.href||G.getAttribute("data-href"))if(G=G.href||G.getAttribute("data-href"),UC1(G)&&!G5t(G).urlPrefix_.endsWith("_/js/")){G=NjT(G5t(G));G=_.E(G);for(var u=G.next();!u.done;u=G.next())u=u.value,Y.loadedCssModuleList_.includes(u)||Y.loadedCssModuleList_.push(u)}};
_.uo.prototype.loadModules=function(Y,G,u){var O=u===void 0?{}:u;G=O.extraEdges;u=O.onError;var Q=O.onSuccess;O=O.forceReload;if(!Y)throw Error("td");if(this.shouldScanForCss_){for(var M=_.E(document.getElementsByTagName("style")),t=M.next();!t.done;t=M.next())kAR(this,t.value);M=_.E(document.getElementsByTagName("link"));for(t=M.next();!t.done;t=M.next())kAR(this,t.value)}n3k(this,FwR(this,Y),G,u,Q,O)};
var n3k=function(Y,G,u,O,Q,M){O=O===void 0?function(){}:O;
Q=Q===void 0?function(){}:Q;
M=M===void 0?!1:M;pme(Y,G,function(t,K,L){L=L===void 0?K:L;Y.enableFallbackFetch&&M?Y.loadWithFetch(t,K,O,Q,L):Y.load(t,K,O,Q,L,u)},u)||O(-1)};
_.uo.prototype.loadWithFetch=function(){_.a(function(){throw Error("ud");})};
_.uo.prototype.maybeSetAdditionalFields=function(){};
WwV=function(Y,G,u){if(Y.useNegativeLoading_){var O=Y.scsReferenceUrl_;Y={cssRowKey:Y.cssRowKey_,combinedSignature:Y.combinedSignature_,extraEdges:u,requestedModuleIds:zmR(Y),requestedCssModuleIds:m7X(Y)};var Q=Y===void 0?{}:Y;Y=Q.requestedModuleIds===void 0?[]:Q.requestedModuleIds;u=Q.requestedCssModuleIds===void 0?[]:Q.requestedCssModuleIds;var M=Q.cssRowKey===void 0?void 0:Q.cssRowKey;var t=Q.combinedSignature===void 0?void 0:Q.combinedSignature;var K=Q.extraEdges===void 0?void 0:Q.extraEdges;
Q=Q.callback===void 0?void 0:Q.callback;O=tlV(O);gd(O,"d","1");bjR(O,Y);SkT(O,u);G=abE(O,G,{cssRowKey:M,combinedSignature:t,extraEdges:K,callback:Q})}else O=Y.scsReferenceUrl_,Y={cssRowKey:Y.cssRowKey_,combinedSignature:Y.combinedSignature_,requestedModuleIds:zmR(Y),requestedCssModuleIds:m7X(Y)},K=Y===void 0?{}:Y,Y=K.requestedCssModuleIds===void 0?[]:K.requestedCssModuleIds,u=K.cssRowKey===void 0?void 0:K.cssRowKey,M=K.combinedSignature===void 0?void 0:K.combinedSignature,t=K.extraEdges===void 0?
void 0:K.extraEdges,K=K.callback===void 0?void 0:K.callback,O=tlV(O),SkT(O,Y),G=abE(O,G,{cssRowKey:u,combinedSignature:M,extraEdges:t,callback:K});return G};
_.r1=function(Y,G){for(var u=!1,O=[],Q=0;Q<G.length;++Q){var M=G[Q];Y.requestedModuleMap_[M]||(Y.requestedModuleMap_[M]=!0,Y.requestedModuleList_.push(M),u=!0,O.push(M))}u&&(Y.requestedModuleListSorted_=!1)};
_.xt=function(Y,G){for(var u=[],O=0;O<G.length;++O){var Q=G[O];Y.requestedModuleMap_[Q]&&(delete Y.requestedModuleMap_[Q],_.Nj(Y.requestedModuleList_,Q),u.push(Q))}};
_.uo.prototype.load=function(Y,G,u,O,Q){Q=Q===void 0?G:Q;_.bs(Y);var M=this.useCors_,t=this.corsMode_,K=this.fetchPriority,L=_.uI("SCRIPT");_.P8(L,Y);M&&(L.crossOrigin=t);L.async=!1;K&&L.setAttribute("fetchpriority",K);_.r1(this,G);_.rhl(this,Y,L,G,u,O,Q)};
_.rhl=function(Y,G,u,O,Q,M,t){t=t===void 0?O:t;Y.lastScript_=u;Y.insertPos.insertBefore(u,Y.insertPos.firstChild);_.x7T(u,O,function(){u.parentElement.removeChild(u);Y.lastScript_==u&&(Y.lastScript_=null);M()},function(K){u.parentElement.removeChild(u);
Y.lastScript_==u&&(Y.lastScript_=null);_.xt(Y,K);Y.pendingModuleGraphUpdate_?Y.pendingModuleGraphUpdate_.then(function(){Q(-1,G)}):Q(-1,G)},t)};
_.x7T=function(Y,G,u,O,Q){Q=Q===void 0?G:Q;var M=G.length,t=function(){M=0;Y.onload=null;Y.onerror=null;K=function(){}},K=function(){t();
var g=Q.filter(function(P){return!mf().getModuleInfo(P).isLoaded()});
g.length!==0?O(g,"Response was successful but was missing module(s) "+g+"."):u()},L=function(){M--;
M==0&&K()};
G.forEach(function(g){g=mf().getModuleInfo(g);g.isLoaded()?L():(Wy(g.earlyOnloadCallbacks_,L),P0T(g,L))});
Y.onload=function(){return K()};
Y.onerror=function(){t();O(G)}};
zmR=function(Y){Y.requestedModuleListSorted_||(Y.requestedModuleListSorted_=!0,Y.requestedModuleList_.sort());return Y.requestedModuleList_};
m7X=function(Y){Y=Y.loadedCssModuleList_;Y.sort();return Y};
FwR=function(Y,G){return G.filter(function(u){return!Y.requestedModuleMap_[u]})};
pme=function(Y,G,u,O){if(Y.pendingModuleGraphUpdate_)return Y.pendingModuleGraphUpdate_.then(function(){pme(Y,G,u,O)}),!0;
if(!Y.useNegativeLoading_){var Q=[],M=Object.assign({},Y.requestedModuleMap_);fb4(Y,G,function(P){Q.push(P.getId())},O,function(P){return!P.isLoaded()},M);
G=Q}for(M=0;M<G.length;){for(var t=G.length-M,K=M==0?G:G.slice(M,G.length),L=WwV(Y,K,O),g=_.bs(L).toString();g.length>Y.urlMaxLength;)if(t>1)t-=Math.ceil((g.length-Y.urlMaxLength)/6),t=Math.max(t,1),K=G.slice(M,M+t),L=WwV(Y,K,O),g=_.bs(L).toString();else return Y.useNegativeLoading_?(Y.useNegativeLoading_=!1,Y.pendingModuleGraphUpdate_=C0_(Y).then(function(P){yhU(Y,P,O)}),pme(Y,G.slice(M),u,O)):!1;
M+=t;Y.useNegativeLoading_?u(L,K):u(L,K,M===G.length?G:[])}return!0};
yhU=function(Y,G,u){mf().setAllModuleInfoString((G||{}).moduleGraph);fb4(Y,zmR(Y),function(O){_.r1(Y,[O.getId()])},u);
Y.pendingModuleGraphUpdate_=null};
fb4=function(Y,G,u,O,Q,M){M=M===void 0?{}:M;var t=mf();G=_.E(G);for(var K=G.next();!K.done;K=G.next()){K=K.value;var L=t.getModuleInfo(K);if(!(M[K]||Q&&!Q(L))){M[K]=!0;var g=L.deps_||[];if(O){var P=[];O[K]&&(P=Object.keys(O[K]));g=g.concat(P)}fb4(Y,g,u,O,Q,M);u(L)}}};
C0_=function(Y){Y=Y.scsReferenceUrl_.clone();VgM(Y);gd(Y,"dg",null);gd(Y,"md","1");return Lw1(Y.toString())};var o2j=new Uint8Array(123);var emE=[];var AhI=function(){this.JSC$10379_loader_=null};
_.H=AhI.prototype;_.H.setBatchModeEnabled=function(){};
_.H.setAllModuleInfoString=function(){};
_.H.addExtraEdge=function(){throw Error("vd");};
_.H.removeExtraEdge=function(){throw Error("wd");};
_.H.getModuleContext=function(){return null};
_.H.isActive=function(){return!1};
_.H.isUserActive=function(){return!1};
_.H.registerInitializationCallback=function(){};
_.H.registerCallback=function(){};var fL=function(Y,G,u,O,Q){var M=Error.call(this);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.name="ModuleLoadFailure";this.type=Y;this.status=G;this.requestedModuleIds=u;this.url=O;this.cause=Q;this.message=this.toString()};
_.m(fL,Error);fL.prototype.toString=function(){return o32(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var o32=function(Y){switch(Y.type){case fL.Type.UNAUTHORIZED:return"Unauthorized";case fL.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case fL.Type.TIMEOUT:return"Timed out";case fL.Type.OLD_CODE_GONE:return"Out of date module id";case fL.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+Y.type}};
l$.ModuleLoadFailure=fL;l$.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var CL=function(){this.moduleIds_=this.JSC$10379_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11394_extraEdges_={};this.JSC$11394_callbackMap_={};this.JSC$11394_currentlyLoadingModule_=this.baseModuleInfo_=new l$.ModuleInfo([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new XY;this.isDisposed_=this.userLastActive_=this.lastActive_=
this.batchModeEnabled_=!1};
_.qz(CL,AhI);var iBE=function(Y,G){_.Ya.call(this,"Error loading "+Y+": "+G)};
_.qz(iBE,_.Ya);CL.prototype.setBatchModeEnabled=function(Y){this.batchModeEnabled_=Y};
CL.prototype.setAllModuleInfoString=function(Y,G){if(!(this instanceof CL))this.setAllModuleInfoString(Y,G);else if(typeof Y==="string"){if(Y.startsWith("d$")){Y=Y.substring(2);for(var u=[],O=0,Q=Y.indexOf("/"),M=0,t=!1,K=0;;){var L=t?Y.substring(M):Y.substring(M,Q);if(L.length===0)O++,M="sy"+O.toString(36),L=[];else{var g=L.indexOf(":");if(g<0)M=L,L=[];else if(g===L.length-1)M=L.substring(0,g),L=Array(u[K-1]);else{M=L.substring(0,g);L=L.substring(g+1).split(",");g=K;for(var P=0;P<L.length;P++)g-=
L[P].length===0?1:Number(L[P]),L[P]=u[g]}g=0;if(M.length===0)g=1;else if(M.charAt(0)==="+"||M.charAt(0)==="-")g=Number(M);g!==0&&(O+=g,M="sy"+O.toString(36))}u.push(M);RmI(this,M,L);if(t)break;M=Q+1;Q=Y.indexOf("/",M);Q===-1&&(t=!0);K++}this.moduleIds_=u}else if(Y.startsWith("p$"))wmR(this,Y);else{Y=Y.split("/");u=[];for(O=0;O<Y.length;O++){K=Y[O].split(":");Q=K[0];t=[];if(K[1])for(t=K[1].split(","),K=0;K<t.length;K++)t[K]=u[parseInt(t[K],36)];u.push(Q);RmI(this,Q,t)}this.moduleIds_=u}G&&G.length?
(_.Bu(this.loadingModuleIds_,G),this.lastInitialModuleId_=_.RU(G)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11394_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11394_currentlyLoadingModule_=null,(G=this.baseModuleInfo_.onLoad((0,_.tP)(this.getModuleContext,this)))&&G.length&&ZBI(this,new l$.ModuleLoadFailure(l$.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,G[0])),yQ(this))}};
var wmR=function(Y,G){var u=G.substring(2);for(G=0;G<64;G++)o2j["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(G)]=G;var O={buf:u,pos:0};GB(O);var Q=GB(O),M=GB(O)+1;G=Array(Q);var t=Array(Q),K=Array(Q);M=Array(M);var L=0,g=0,P=O.pos,I=O.buf.indexOf("|",O.pos);O.pos=I+1;for(I=0;I<Q;I++){var k=GB(O),n=k&2,p=k&1;k>>>=2;p?(L+=k>>>1^-(k&1),k="sy"+L.toString(36)):(p=P,P+=k,k=u.substring(p,P));G[I]=k;n&&(M[g++]=k)}M[g]="";O.pos++;g=Q&-2;u=Q&1;for(L=0;L<g;L+=2)P=i$4(O),K[L]=
P&7,K[L+1]=P>>>3&7;u&&(u=i$4(O),K[g]=u&7);O.pos++;for(g=0;g<Q;g++)K[g]===7&&(K[g]=GB(O));O.pos++;for(u=g=0;u<Q;u++){L=K[u];P=L===0?emE:Array(L);t[u]=P;I=g;for(n=0;n<L;n++)I-=GB(O),P[n]=M[I];M[g]===G[u]&&g++}for(O=0;O<G.length;O++)RmI(Y,G[O],t[O]);Y.moduleIds_=G};
_.H=CL.prototype;_.H.getModuleInfo=function(Y){return this.moduleInfoMap[Y]};
_.H.addExtraEdge=function(Y,G){var u=this.getModuleInfo(Y);u&&u.isLoaded()?this.load(G):(this.JSC$11394_extraEdges_[Y]||(this.JSC$11394_extraEdges_[Y]={}),this.JSC$11394_extraEdges_[Y][G]=!0)};
_.H.removeExtraEdge=function(Y,G){if(this.JSC$11394_extraEdges_[Y]){delete this.JSC$11394_extraEdges_[Y][G];for(var u in this.JSC$11394_extraEdges_[Y])return;delete this.JSC$11394_extraEdges_[Y]}};
_.H.isActive=function(){return this.loadingModuleIds_.length>0};
_.H.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var yQ=function(Y){var G=Y.lastActive_,u=Y.isActive();u!=G&&(Y.executeCallbacks_(u?"active":"idle"),Y.lastActive_=u);G=Y.isUserActive();G!=Y.userLastActive_&&(Y.executeCallbacks_(G?"userActive":"userIdle"),Y.userLastActive_=G)},RmI=function(Y,G,u){Y.moduleInfoMap[G]?(Y=Y.moduleInfoMap[G].deps_,Y!=u&&Y.splice.apply(Y,[0,
Y.length].concat(_.c8(u)))):Y.moduleInfoMap[G]=new l$.ModuleInfo(u,G)},hmE=function(Y,G,u){var O=[];
wuy(G,O);G=[];for(var Q={},M=0;M<O.length;M++){var t=O[M],K=Y.getModuleInfo(t);if(!K)throw Error("xd`"+t);var L=new XY;Q[t]=L;K.isLoaded()?L.callback(null):(D7M(Y,t,K,!!u,L),Y.isModuleLoading(t)||G.push(t))}G.length>0&&(Y.loadingModuleIds_.length===0?Y.loadModules_(G):(Y.requestedModuleIdsQueue_.push(G),yQ(Y)));return Q},D7M=function(Y,G,u,O,Q){u.registerCallback(Q.callback,Q);
P0T(u,function(M){Q.errback(new iBE(G,M))});
Y.isModuleLoading(G)?O&&(d7_(Y,G),yQ(Y)):O&&d7_(Y,G)};
CL.prototype.loadModules_=function(Y,G,u){var O=this;G=G===void 0?0:G;var Q=bB_(this,Y);this.loadingModuleIds_=Q;this.requestedLoadingModuleIds_=this.batchModeEnabled_?Y:_.Vj(Q);yQ(this);if(Q.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,Q);Y=this.JSC$10379_loader_;if(!Y)throw Error("yd");if(Object.keys(this.JSC$11394_extraEdges_).length>0&&!Y.supportsExtraEdges)throw Error("zd");u=(0,_.tP)(Y.loadModules,Y,_.Vj(Q),this.moduleInfoMap,{extraEdges:this.JSC$11394_extraEdges_,
forceReload:!!u,onError:function(M,t,K){var L=O.requestedLoadingModuleIds_;M=M!=null?M:void 0;var g=G;K=K===void 0?!1:K;K=(K===void 0?0:K)?0:(g===void 0?0:g)+1;g=_.Vj(Q);O.requestedLoadingModuleIds_=L;Q.forEach(_.H2(_.Nj,O.requestedModuleIds_),O);M==401?(ZBI(O,new l$.ModuleLoadFailure(l$.ModuleLoadFailure.Type.UNAUTHORIZED,M)),O.requestedModuleIdsQueue_.length=0):M==410?(SbV(O,new l$.ModuleLoadFailure(l$.ModuleLoadFailure.Type.OLD_CODE_GONE,M)),NG4(O)):K>=3?(SbV(O,new l$.ModuleLoadFailure(l$.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
M,g,t)),NG4(O)):O.loadModules_(O.requestedLoadingModuleIds_,K,M==8001||!1)},
onTimeout:(0,_.tP)(this.handleLoadTimeout_,this)});(Y=Math.pow(G,2)*5E3)?_.OI.setTimeout(u,Y):u()}};
var bB_=function(Y,G){G=G.filter(function(Q){return Y.moduleInfoMap[Q].isLoaded()?(_.OI.setTimeout(function(){return Error("Ad`"+Q)},0),!1):!0});
for(var u=[],O=0;O<G.length;O++)u=u.concat(j$_(Y,G[O]));wuy(u);return!Y.batchModeEnabled_&&u.length>1?(G=u.shift(),Y.requestedModuleIdsQueue_=u.map(function(Q){return[Q]}).concat(Y.requestedModuleIdsQueue_),[G]):u},j$_=function(Y,G){var u=_.gX.createSet(Y.requestedModuleIds_),O=[];
u[G]||O.push(G);G=[G];for(var Q=0;Q<G.length;Q++)for(var M=Y.getModuleInfo(G[Q]).deps_,t=M.length-1;t>=0;t--){var K=M[t];Y.getModuleInfo(K).isLoaded()||u[K]||(O.push(K),G.push(K))}O.reverse();wuy(O);return O};
CL.prototype.JSC$11389_setLoaded=function(){if(this.JSC$11394_currentlyLoadingModule_){var Y=this.JSC$11394_currentlyLoadingModule_.getId(),G=[];if(this.JSC$11394_extraEdges_[Y]){for(var u=_.E(Object.keys(this.JSC$11394_extraEdges_[Y])),O=u.next();!O.done;O=u.next()){O=O.value;var Q=this.getModuleInfo(O);Q&&!Q.isLoaded()&&(this.removeExtraEdge(Y,O),G.push(O))}this.loadMultiple(G)}this.isDisposed()||((G=this.moduleInfoMap[Y].onLoad((0,_.tP)(this.getModuleContext,this)))&&G.length&&ZBI(this,new l$.ModuleLoadFailure(l$.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,G[0])),_.Nj(this.userInitiatedLoadingModuleIds_,Y),_.Nj(this.loadingModuleIds_,Y),this.loadingModuleIds_.length===0&&NG4(this),this.lastInitialModuleId_&&Y==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),yQ(this),this.JSC$11394_currentlyLoadingModule_=null)}};
CL.prototype.isModuleLoading=function(Y){if(_.ST(this.loadingModuleIds_,Y))return!0;for(var G=0;G<this.requestedModuleIdsQueue_.length;G++)if(_.ST(this.requestedModuleIdsQueue_[G],Y))return!0;return!1};
CL.prototype.load=function(Y,G){return hmE(this,[Y],G)[Y]};
CL.prototype.loadMultiple=function(Y){return hmE(this,Y)};
var d7_=function(Y,G){_.ST(Y.userInitiatedLoadingModuleIds_,G)||Y.userInitiatedLoadingModuleIds_.push(G)};
CL.prototype.beforeLoadModuleCode=function(Y){var G=this;this.JSC$11394_currentlyLoadingModule_&&this.JSC$11394_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11389_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[Y]&&VlR(this,this.moduleInfoMap[Y].deps_||[],function(u){u.module_=new ml;_.Nj(G.loadingModuleIds_,u.getId())},function(u){return!u.isLoaded()});
this.JSC$11394_currentlyLoadingModule_=this.getModuleInfo(Y)};
CL.prototype.registerInitializationCallback=function(Y){this.JSC$11394_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new l$.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11394_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);Wy(this.JSC$11394_currentlyLoadingModule_.earlyOnloadCallbacks_,Y)};
CL.prototype.handleLoadTimeout_=function(){SbV(this,new l$.ModuleLoadFailure(l$.ModuleLoadFailure.Type.TIMEOUT));NG4(this)};
var SbV=function(Y,G){Y.requestedLoadingModuleIds_.length>1?Y.requestedModuleIdsQueue_=Y.requestedLoadingModuleIds_.map(function(u){return[u]}).concat(Y.requestedModuleIdsQueue_):ZBI(Y,G)},ZBI=function(Y,G){var u=Y.requestedLoadingModuleIds_;
Y.loadingModuleIds_.length=0;for(var O=[],Q=0;Q<Y.requestedModuleIdsQueue_.length;Q++){var M=Y.requestedModuleIdsQueue_[Q].filter(function(L){var g=j$_(this,L);return Bj(u,function(P){return _.ST(g,P)})},Y);
_.Bu(O,M)}for(Q=0;Q<u.length;Q++)_.AYy(O,u[Q]);for(Q=0;Q<O.length;Q++){for(M=0;M<Y.requestedModuleIdsQueue_.length;M++)_.Nj(Y.requestedModuleIdsQueue_[M],O[Q]);_.Nj(Y.userInitiatedLoadingModuleIds_,O[Q])}if(Q=Y.JSC$11394_callbackMap_.error)for(M=0;M<Q.length;M++)for(var t=Q[M],K=0;K<O.length;K++)t("error",O[K],G);for(O=0;O<u.length;O++)if(Y.moduleInfoMap[u[O]])Y.moduleInfoMap[u[O]].onError(G);Y.requestedLoadingModuleIds_.length=0;yQ(Y)},NG4=function(Y){for(;Y.requestedModuleIdsQueue_.length;){var G=
Y.requestedModuleIdsQueue_.shift().filter(function(u){return!this.getModuleInfo(u).isLoaded()},Y);
if(G.length>0){Y.loadModules_(G);return}}yQ(Y)};
CL.prototype.registerCallback=function(Y,G){Array.isArray(Y)||(Y=[Y]);for(var u=0;u<Y.length;u++){var O=Y[u],Q=G,M=this.JSC$11394_callbackMap_;M[O]||(M[O]=[]);M[O].push(Q)}};
CL.prototype.executeCallbacks_=function(Y){for(var G=this.JSC$11394_callbackMap_[Y],u=0;G&&u<G.length;u++)G[u](Y)};
var VlR=function(Y,G,u,O,Q){O=O===void 0?function(){return!0}:O;
Q=Q===void 0?{}:Q;G=_.E(G);for(var M=G.next();!M.done;M=G.next()){M=M.value;var t=Y.getModuleInfo(M);!Q[M]&&O(t)&&(Q[M]=!0,VlR(Y,t.deps_||[],u,O,Q),u(t))}};
CL.prototype.dispose=function(){_.DM(_.gX.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11394_callbackMap_={};this.isDisposed_=!0};
CL.prototype.isDisposed=function(){return this.isDisposed_};
_.zm=function(){return new CL};var lbE=[5E3,2E4],X1M=function(){this.JSC$10379_loader_=null;this.JSC$11402_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11402_queue_=[];this.JSC$11402_extraEdges_=Object.create(null);this.JSC$11402_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.m(X1M,AhI);_.H=X1M.prototype;_.H.setAllModuleInfoString=function(){this.JSC$11402_currentlyLoadingModule_&&this.JSC$11402_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11389_setLoaded()};
_.H.getModuleInfo=function(Y){var G=this.JSC$11402_moduleInfoMap_[Y];G||(G=new l$.ModuleInfo([],Y),this.JSC$11402_moduleInfoMap_[Y]=G);return G};
_.H.addExtraEdge=function(Y,G){this.getModuleInfo(Y).isLoaded()?this.load(G):(this.JSC$11402_extraEdges_[Y]||(this.JSC$11402_extraEdges_[Y]={}),this.JSC$11402_extraEdges_[Y][G]=!0)};
_.H.removeExtraEdge=function(Y,G){if(this.JSC$11402_extraEdges_[Y]){delete this.JSC$11402_extraEdges_[Y][G];for(var u in this.JSC$11402_extraEdges_[Y])return;delete this.JSC$11402_extraEdges_[Y]}};
_.H.isModuleLoading=function(Y){return!!this.loadingModules_[Y]};
_.H.load=function(Y){BGl(this,[Y]);return $7M(this,Y)};
_.H.loadMultiple=function(Y){var G=this,u=Object.create(null),O=[];Y.forEach(function(Q){u[Q]||(u[Q]=$7M(G,Q),O.push(Q))});
BGl(this,O);return u};
_.H.beforeLoadModuleCode=function(Y){var G;((G=this.JSC$11402_currentlyLoadingModule_)==null?void 0:G.getId())==="synthetic_module_overhead"&&this.JSC$11389_setLoaded();var u,O;qbX(this,(O=(u=this.JSC$11402_moduleInfoMap_[Y])==null?void 0:u.deps_)!=null?O:[],function(Q){Q.module_=new ml},function(Q){return!Q.isLoaded()});
this.JSC$11402_currentlyLoadingModule_=this.getModuleInfo(Y)};
_.H.JSC$11389_setLoaded=function(){if(this.JSC$11402_currentlyLoadingModule_){var Y=this.JSC$11402_currentlyLoadingModule_.getId(),G=[];if(this.JSC$11402_extraEdges_[Y]){for(var u=_.E(Object.keys(this.JSC$11402_extraEdges_[Y])),O=u.next();!O.done;O=u.next())O=O.value,this.getModuleInfo(O).isLoaded()||(this.removeExtraEdge(Y,O),G.push(O));this.loadMultiple(G)}this.JSC$11402_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11402_currentlyLoadingModule_=null;(!this.isModuleLoading(Y)&&/^sy[0-9a-z]{0,4}$/.test(Y)||Y==="synthetic_module_overhead")&&delete this.JSC$11402_moduleInfoMap_[Y];this.unsetModulesAsLoading(Y)}};
_.H.registerInitializationCallback=function(Y){this.JSC$11402_currentlyLoadingModule_||(this.JSC$11402_moduleInfoMap_.synthetic_module_overhead=new l$.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11402_currentlyLoadingModule_=this.JSC$11402_moduleInfoMap_.synthetic_module_overhead);Wy(this.JSC$11402_currentlyLoadingModule_.earlyOnloadCallbacks_,Y)};
_.H.setModulesAsLoading=function(){var Y=this;_.vs.apply(0,arguments).forEach(function(G){Y.loadingModules_[G]=!0})};
_.H.unsetModulesAsLoading=function(){var Y=this;_.vs.apply(0,arguments).forEach(function(G){delete Y.loadingModules_[G]})};
var $7M=function(Y,G){return new _.a0(function(u,O){var Q=Y.getModuleInfo(G);Q.isLoaded()?u(null):(Q.registerCallback(function(){u(null)}),P0T(Q,function(M){var t="Error loading "+G+": "+M;
M instanceof l$.ModuleLoadFailure&&M.url&&(t=t+", requested url: "+M.url.toString());O(Error(t))}))})},BGl=function(Y,G){G=G.filter(function(u){return!Y.isModuleLoading(u)&&!Y.getModuleInfo(u).isLoaded()});
G.length>0&&(Y.setModulesAsLoading.apply(Y,_.c8(G)),Y.JSC$11402_queue_.push(G),s$k(Y))},s$k=function(Y){for(var G={};Y.activeLoads_<Infinity&&Y.JSC$11402_queue_.length>0;G={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})G.ids$jscomp$37=Y.JSC$11402_queue_.shift().filter(function(u){return!Y.getModuleInfo(u).isLoaded()}),G.ids$jscomp$37.length>0&&(Y.activeLoads_++,G.finishLoad=function(u){return function(){Y.activeLoads_--;
s$k(Y);u.finishLoad=function(){}}}(G),_.mV(G.ids$jscomp$37.map(function(u){return $7M(Y,u)})).then(function(u){return function(){(0,u.finishLoad)()}}(G)),G.attempt$jscomp$6=0,G.load$jscomp$1=function(u){return function(){if(Object.keys(Y.JSC$11402_extraEdges_).length>0&&!Y.JSC$10379_loader_.supportsExtraEdges)throw Error("zd");
Y.JSC$10379_loader_.loadModules(u.ids$jscomp$37,Y.JSC$11402_moduleInfoMap_,{extraEdges:Y.JSC$11402_extraEdges_,onError:function(O,Q){var M=lbE[u.attempt$jscomp$6++];M!==void 0?setTimeout(function(){(0,u.load$jscomp$1)()},M):(Y.unsetModulesAsLoading.apply(Y,_.c8(u.ids$jscomp$37)),(0,u.finishLoad)(),u.ids$jscomp$37.forEach(function(t){t=Y.getModuleInfo(t);
if(!t.isLoaded())t.onError(new l$.ModuleLoadFailure(l$.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,O,u.ids$jscomp$37,Q))}))}})}}(G),(0,G.load$jscomp$1)())},qbX=function(Y,G,u,O,Q){O=O===void 0?function(){return!0}:O;
Q=Q===void 0?{}:Q;G=_.E(G);for(var M=G.next();!M.done;M=G.next()){M=M.value;var t=Y.getModuleInfo(M);!Q[M]&&O(t)&&(Q[M]=!0,qbX(Y,t.deps_||[],u,O,Q),u(t))}};var chU=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var Z$Y=Symbol("Cd");window.JSCompiler_renameProperty=function(Y){return Y};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var U7E=!chU||HTMLElement.es5Shimmed||_.OI.Reflect===void 0||_.OI.customElements===void 0||_.OI.customElements.polyfillWrapFlushCallback||!1,v3U,E0t=function(){var Y=HTMLElement;if(U7E)return Y;if(v3U!==void 0)return v3U;var G=_.OI.Reflect,u=function(){return G.construct(Y,[],this.constructor)};
u.prototype=Y.prototype;u.prototype.constructor=u;u.es5Shimmed=!0;Object.setPrototypeOf(u,Y);return v3U=u},JhR=!1;U7E||JhR||(JhR=!0,_.OI.HTMLElement=E0t());/*

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 Snj=/(url\()([^)]*)(\))/g,dFj=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,b$U,Qb;var hG=!window.ShadyDOM||!window.ShadyDOM.inUse,YxR=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),GO2=!window.customElements.polyfillWrapFlushCallback,ufl;if(ufl=hG&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var OD_=new CSSStyleSheet;OD_.replaceSync("");var Q4R=document.createElement("div");Q4R.attachShadow({mode:"open"});Q4R.shadowRoot.adoptedStyleSheets=[OD_];ufl=Q4R.shadowRoot.adoptedStyleSheets[0]===OD_}catch(Y){ufl=!1}
var MNM=ufl,HDe=window.Polymer&&window.Polymer.rootPath||jzu(document.baseURI||window.location.href),pj=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Uzy=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,N2=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,EoM=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,DH=window.Polymer&&window.Polymer.legacyOptimizations||!1,Sg=window.Polymer&&window.Polymer.legacyWarnings||!1,tNI=window.Polymer&&window.Polymer.syncInitialRender||
!1,mN=window.Polymer&&window.Polymer.legacyUndefined||!1,KO1=window.Polymer&&window.Polymer.orderedComputed||!1,em=window.Polymer&&window.Polymer.removeNestedTemplates||!1,A7=window.Polymer&&window.Polymer.fastDomIf||!1,ou=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,aSl=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,TB_=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var iP={},LOR={},rj=function(){return HTMLElement.apply(this,arguments)||this};
_.m(rj,HTMLElement);rj.import=function(Y,G){return Y?(Y=iP[Y]||LOR[Y.toLowerCase()])&&G?Y.querySelector(G):Y:null};
rj.prototype.attributeChangedCallback=function(Y,G,u){G!==u&&this.register()};
rj.prototype.register=function(Y){if(Y=Y||this.id){if(N2&&(iP[Y]||LOR[Y.toLowerCase()])!==void 0)throw iP[Y]=LOR[Y.toLowerCase()]=null,Error("Dd`"+Y);this.id=Y;iP[Y]=LOR[Y.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Uk.Object.defineProperties(rj.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var Y=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;Y=_.Ek(this.getAttribute("assetpath")||"",Y.baseURI);this.__assetpath=jzu(Y)}return this.__assetpath}}});
_.Uk.Object.defineProperties(rj,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
rj["import"]=rj.import;rj.prototype.modules=iP;customElements.define("dom-module",rj);var goe=0,lLt=0,tG=[],XnX=0,V84=!1,PMI=document.createTextNode(""),ISk,wj;(new window.MutationObserver(B4T)).observe(PMI,{characterData:!0});_.Ru={after:function(Y){return{run:function(G){return window.setTimeout(G,Y)},
cancel:function(G){window.clearTimeout(G)}}},
run:function(Y,G){return window.setTimeout(Y,G)},
cancel:function(Y){window.clearTimeout(Y)}};
_.TU={run:function(Y){return window.requestAnimationFrame(Y)},
cancel:function(Y){window.cancelAnimationFrame(Y)}};
ISk={run:function(Y){return window.requestIdleCallback?window.requestIdleCallback(Y):window.setTimeout(Y,16)},
cancel:function(Y){window.cancelIdleCallback?window.cancelIdleCallback(Y):window.clearTimeout(Y)}};
wj={run:function(Y){V84||(V84=!0,PMI.textContent=XnX++);tG.push(Y);return goe++},
cancel:function(Y){var G=Y-lLt;if(G>=0){if(!tG[G])throw Error("Ed`"+Y);tG[G]=null}}};var kOM=0,w1=function(Y){var G=Y.__mixinApplications;G||(G=new WeakMap,Y.__mixinApplications=G);var u=kOM++;return function(O){var Q=O.__mixinSet;if(Q&&Q[u])return O;var M=G,t=M.get(O);t||(t=Y(O),M.set(O,t),O=Object.create(t.__mixinSet||Q||null),O[u]=!0,t.__mixinSet=O);return t}};_.FP=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(Y){return ShadyDOM.patch(Y)}:function(Y){return Y};var noR=w1(function(Y){var G=function(){var u=Y.call(this)||this;u.__dataEnabled=!1;u.__dataReady=!1;u.__dataInvalid=!1;u.__data={};u.__dataPending=null;u.__dataOld=null;u.__dataInstanceProps=null;u.__dataCounter=0;u.__serializing=!1;u._initializeProperties();return u};
_.m(G,Y);G.createProperties=function(u){var O=this.prototype,Q;for(Q in u)Q in O||O._createPropertyAccessor(Q)};
G.attributeNameForProperty=function(u){return u.toLowerCase()};
G.typeForProperty=function(){};
G.prototype._createPropertyAccessor=function(u,O){this._addPropertyToAttributeMap(u);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[u]||(this.__dataHasAccessor[u]=!0,this._definePropertyAccessor(u,O))};
G.prototype._addPropertyToAttributeMap=function(u){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var O=this.__dataAttributes[u];O||(O=this.constructor.attributeNameForProperty(u),this.__dataAttributes[O]=u);return O};
G.prototype._definePropertyAccessor=function(u,O){Object.defineProperty(this,u,{get:function(){return this.__data[u]},
set:O?function(){}:function(Q){this._setPendingProperty(u,Q,!0)&&this._invalidateProperties()}})};
G.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
G.prototype._initializeProperties=function(){for(var u in this.__dataHasAccessor)this.hasOwnProperty(u)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[u]=this[u],delete this[u])};
G.prototype._initializeInstanceProperties=function(u){Object.assign(this,u)};
G.prototype._setProperty=function(u,O){this._setPendingProperty(u,O)&&this._invalidateProperties()};
G.prototype._getProperty=function(u){return this.__data[u]};
G.prototype._setPendingProperty=function(u,O){var Q=this.__data[u],M=this._shouldPropertyChange(u,O,Q);M&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||u in this.__dataOld||(this.__dataOld[u]=Q),this.__data[u]=O,this.__dataPending[u]=O);return M};
G.prototype._isPropertyPending=function(u){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(u))};
G.prototype._invalidateProperties=function(){var u=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,wj.run(function(){u.__dataInvalid&&(u.__dataInvalid=!1,u._flushProperties())}))};
G.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
G.prototype._flushProperties=function(){this.__dataCounter++;var u=this.__data,O=this.__dataPending,Q=this.__dataOld;this._shouldPropertiesChange(u,O,Q)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(u,O,Q));this.__dataCounter--};
G.prototype._shouldPropertiesChange=function(u,O){return!!O};
G.prototype._propertiesChanged=function(){};
G.prototype._shouldPropertyChange=function(u,O,Q){return Q!==O&&(Q===Q||O===O)};
G.prototype.attributeChangedCallback=function(u,O,Q,M){O!==Q&&this._attributeToProperty(u,Q);Y.prototype.attributeChangedCallback&&Y.prototype.attributeChangedCallback.call(this,u,O,Q,M)};
G.prototype._attributeToProperty=function(u,O,Q){if(!this.__serializing){var M=this.__dataAttributes;u=M&&M[u]||u;this[u]=this._deserializeValue(O,Q||this.constructor.typeForProperty(u))}};
G.prototype._propertyToAttribute=function(u,O,Q){this.__serializing=!0;Q=arguments.length<3?this[u]:Q;this._valueToNodeAttribute(this,Q,O||this.constructor.attributeNameForProperty(u));this.__serializing=!1};
G.prototype._valueToNodeAttribute=function(u,O,Q){O=this._serializeValue(O);if(Q==="class"||Q==="name"||Q==="slot")u=(0,_.FP)(u);O===void 0?u.removeAttribute(Q):u.setAttribute(Q,O===""&&window.trustedTypes?window.trustedTypes.emptyScript:O)};
G.prototype._serializeValue=function(u){switch(typeof u){case "boolean":return u?"":void 0;default:return u!=null?u.toString():void 0}};
G.prototype._deserializeValue=function(u,O){switch(O){case Boolean:return u!==null;case Number:return Number(u);default:return u}};
return G});var FOT=0,$Fa=[];var pn_=w1(function(Y){function G(M){M=Object.getPrototypeOf(M);return M.prototype instanceof Q?M:null}
function u(M){if(!M.hasOwnProperty("__ownProperties")){var t=null;if(M.hasOwnProperty("properties")){var K=M.properties;if(K){t={};for(var L in K){var g=K[L];t[L]=typeof g==="function"?{type:g}:g}}}M.__ownProperties=t}return M.__ownProperties}
var O=noR(Y),Q=function(){return O.apply(this,arguments)||this};
_.m(Q,O);Q.finalize=function(){if(!this.hasOwnProperty("__finalized")){var M=G(this);M&&M.finalize();this.__finalized=!0;this._finalizeClass()}};
Q._finalizeClass=function(){var M=u(this);M&&this.createProperties(M)};
Q.typeForProperty=function(M){return(M=this._properties[M])&&M.type};
Q.prototype._initializeProperties=function(){FOT++;this.constructor.finalize();O.prototype._initializeProperties.call(this)};
Q.prototype.connectedCallback=function(){O.prototype.connectedCallback&&O.prototype.connectedCallback.call(this);this._enableProperties()};
Q.prototype.disconnectedCallback=function(){O.prototype.disconnectedCallback&&O.prototype.disconnectedCallback.call(this)};
_.Uk.Object.defineProperties(Q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var M=this;if(!this.hasOwnProperty("__observedAttributes")){qnY(this.prototype);var t=this._properties;this.__observedAttributes=t?Object.keys(t).map(function(K){return M.prototype._addPropertyToAttributeMap(K)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var M=G(this);this.__properties=Object.assign({},M&&M._properties,u(this))}return this.__properties}}});
return Q});var sz4={},cLj=/-[a-z]/g,UFt=/([A-Z])/g;for(var zYU={},mbl=HTMLElement.prototype;mbl;){for(var WOl=Object.getOwnPropertyNames(mbl),rjI=0;rjI<WOl.length;rjI++)zYU[WOl[rjI]]=!0;mbl=Object.getPrototypeOf(mbl)}var xbI=window.trustedTypes?function(Y){return trustedTypes.isHTML(Y)||trustedTypes.isScript(Y)||trustedTypes.isScriptURL(Y)}:function(){return!1},fSV=w1(function(Y){var G=noR(Y);
Y=function(){return G.apply(this,arguments)||this};
_.m(Y,G);Y.createPropertiesForAttributes=function(){for(var u=this.observedAttributes,O=0;O<u.length;O++)this.prototype._createPropertyAccessor(Kj(u[O]))};
Y.attributeNameForProperty=function(u){return a3(u)};
Y.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);G.prototype._initializeProperties.call(this)};
Y.prototype._initializeProtoProperties=function(u){for(var O in u)this._setProperty(O,u[O])};
Y.prototype._ensureAttribute=function(u,O){this.hasAttribute(u)||this._valueToNodeAttribute(this,O,u)};
Y.prototype._serializeValue=function(u){switch(typeof u){case "object":if(u instanceof Date)return u.toString();if(u){if(xbI(u))return u;try{return JSON.stringify(u)}catch(O){return""}}default:return G.prototype._serializeValue.call(this,u)}};
Y.prototype._deserializeValue=function(u,O){switch(O){case Object:try{var Q=JSON.parse(u)}catch(M){Q=u}break;case Array:try{Q=JSON.parse(u)}catch(M){Q=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+u)}break;case Date:Q=isNaN(u)?String(u):Number(u);Q=new Date(Q);break;default:Q=G.prototype._deserializeValue.call(this,u,O)}return Q};
Y.prototype._definePropertyAccessor=function(u,O){if(!zYU[u]){var Q=this[u];Q!==void 0&&(this.__data?this._setPendingProperty(u,Q):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[u]=Q))}G.prototype._definePropertyAccessor.call(this,u,O)};
Y.prototype._hasAccessor=function(u){return this.__dataHasAccessor&&this.__dataHasAccessor[u]};
Y.prototype._isPropertyPending=function(u){return!!(this.__dataPending&&u in this.__dataPending)};
return Y});var CM_={"dom-if":!0,"dom-repeat":!0},yjI=!1,eYM=!1,Ajl=function(){var Y=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(G){return G}});
return function(G,u,O){u=u.getAttribute(O);Y&&O.startsWith("on-")?G.setAttribute(O,Y.createScript(u,O)):G.setAttribute(O,u)}}(),oo_=w1(function(Y){var G=function(){return Y.apply(this,arguments)||this};
_.m(G,Y);G._parseTemplate=function(u,O){if(!u._templateInfo){var Q=u._templateInfo={};Q.nodeInfoList=[];Q.nestedTemplate=!!O;Q.stripWhiteSpace=O&&O.stripWhiteSpace||u.hasAttribute&&u.hasAttribute("strip-whitespace");this._parseTemplateContent(u,Q,{parent:null})}return u._templateInfo};
G._parseTemplateContent=function(u,O,Q){return this._parseTemplateNode(u.content,O,Q)};
G._parseTemplateNode=function(u,O,Q){var M=!1;u.localName!="template"||u.hasAttribute("preserve-content")?u.localName==="slot"&&(O.hasInsertionPoint=!0):M=this._parseTemplateNestedTemplate(u,O,Q)||M;if(!yjI){yjI=!0;var t=document.createElement("textarea");t.placeholder="a";eYM=t.placeholder===t.textContent}eYM&&u.localName==="textarea"&&u.placeholder&&u.placeholder===u.textContent&&(u.textContent=null);u.firstChild&&this._parseTemplateChildNodes(u,O,Q);u.hasAttributes&&u.hasAttributes()&&(M=this._parseTemplateNodeAttributes(u,
O,Q)||M);return M||Q.noted};
G._parseTemplateChildNodes=function(u,O,Q){if(u.localName!=="script"&&u.localName!=="style")for(var M=u.firstChild,t=0,K;M;M=K){if(M.localName=="template"){var L=M.getAttribute("is");if(L&&CM_[L])for(K=M,K.removeAttribute("is"),M=K.ownerDocument.createElement(L),K.parentNode.replaceChild(M,K),M.appendChild(K);K.attributes.length;)L=K.attributes[0].name,Ajl(M,K,L),K.removeAttribute(L)}K=M.nextSibling;if(M.nodeType===Node.TEXT_NODE){for(L=K;L&&L.nodeType===Node.TEXT_NODE;)M.textContent+=L.textContent,
K=L.nextSibling,u.removeChild(L),L=K;if(O.stripWhiteSpace&&!M.textContent.trim()){u.removeChild(M);continue}}L={parentIndex:t,parentInfo:Q};this._parseTemplateNode(M,O,L)&&(L.infoIndex=O.nodeInfoList.push(L)-1);M.parentNode&&t++}};
G._parseTemplateNestedTemplate=function(u,O,Q){O=this._parseTemplate(u,O);(O.content=u.content.ownerDocument.createDocumentFragment()).appendChild(u.content);Q.templateInfo=O;return!0};
G._parseTemplateNodeAttributes=function(u,O,Q){for(var M=!1,t=Array.from(u.attributes),K=t.length-1,L;L=t[K];K--)M=this._parseTemplateNodeAttribute(u,O,Q,L.name,L.value)||M;return M};
G._parseTemplateNodeAttribute=function(u,O,Q,M,t){return M.slice(0,3)==="on-"?(u.removeAttribute(M),Q.events=Q.events||[],Q.events.push({name:M.slice(3),value:t}),!0):M==="id"?(Q.id=t,!0):!1};
G._contentForTemplate=function(u){var O=u._templateInfo;return O&&O.content||u.content};
G.prototype._stampTemplate=function(u,O){u&&!u.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(u);O=O||this.constructor._parseTemplate(u);var Q=O.nodeInfoList;u=document.importNode(O.content||u.content,!0);u.__noInsertionPoint=!O.hasInsertionPoint;var M=u.nodeList=Array(Q.length);u.$={};for(var t=0,K=Q.length,L=void 0;t<K&&(L=Q[t]);t++){var g=M[t]=v2U(u,L);L.id&&(u.$[L.id]=g);var P=g,I=L,k=O;I.templateInfo&&(P._templateInfo=I.templateInfo,P._parentTemplateInfo=
k);if(L.events&&L.events.length)for(P=0,I=L.events,k=void 0;P<I.length&&(k=I[P]);P++)this._addMethodEventListenerToNode(g,k.name,k.value,this)}return u};
G.prototype._addMethodEventListenerToNode=function(u,O,Q,M){Q=JLI(M||u,Q);this._addEventListenerToNode(u,O,Q);return Q};
G.prototype._addEventListenerToNode=function(u,O,Q){u.addEventListener(O,Q)};
G.prototype._removeEventListenerFromNode=function(u,O,Q){u.removeEventListener(O,Q)};
return G});var kd=0,zB=[],iDE={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},RY4=/[A-Z]/,wnk=function(Y,G,u,O,Q){var M=Q?Lj(Y):Y;if(G=G[M])for(M=0;M<G.length;M++){var t=G[M];if(t.info.lastRun!==kd&&(!Q||M6T(Y,t.trigger))){t.info.lastRun=kd;t=t.info;for(var K=u,L=O,g=0,P=K.length-1,I=-1;g<=P;){var k=g+P>>1,n=L.get(K[k].methodInfo)-L.get(t.methodInfo);if(n<0)g=k+1;else if(n>0)P=k-1;else{I=k;break}}I<
0&&(I=P+1);K.splice(I,0,t)}}},pHA=[],ZDl=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"),DI=w1(function(Y){var G=oo_(fSV(Y));
Y=function(){var u=G.call(this)||this;u.__isPropertyEffectsClient=!0;return u};
_.m(Y,G);Y.prototype._initializeProperties=function(){G.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};
Y.prototype._registerHost=function(){if(ZI.length){var u=ZI[ZI.length-1];u._enqueueClient(this);this.__dataHost=u}};
Y.prototype._initializeProtoProperties=function(u){this.__data=Object.create(u);this.__dataPending=Object.create(u);this.__dataOld={}};
Y.prototype._initializeInstanceProperties=function(u){var O=this.__readOnly,Q;for(Q in u)O&&O[Q]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[Q]=this.__dataPending[Q]=u[Q])};
Y.prototype._addPropertyEffect=function(u,O,Q){this._createPropertyAccessor(u,O=="__readOnly");var M=Qft(this,O,!0)[u];M||(M=this[O][u]=[]);M.push(Q)};
Y.prototype._removePropertyEffect=function(u,O,Q){u=Qft(this,O,!0)[u];Q=u.indexOf(Q);Q>=0&&u.splice(Q,1)};
Y.prototype._hasPropertyEffect=function(u,O){O=this[O];return!(!O||!O[u])};
Y.prototype._hasReadOnlyEffect=function(u){return this._hasPropertyEffect(u,"__readOnly")};
Y.prototype._hasNotifyEffect=function(u){return this._hasPropertyEffect(u,"__notifyEffects")};
Y.prototype._hasReflectEffect=function(u){return this._hasPropertyEffect(u,"__reflectEffects")};
Y.prototype._hasComputedEffect=function(u){return this._hasPropertyEffect(u,"__computeEffects")};
Y.prototype._setPendingPropertyOrPath=function(u,O,Q,M){if(M||Lj(Array.isArray(u)?u[0]:u)!==u){if(!M&&(M=I3(this,u),u=Oyu(this,u,O),!u||!G.prototype._shouldPropertyChange.call(this,u,O,M)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(u,O,Q)){if(Q=this.__dataLinkedPaths)for(var t in Q)M=Q[t],gj(t,u)?(M=XP(t,M,u),this._setPendingPropertyOrPath(M,O,!0,!0)):gj(M,u)&&(M=XP(M,t,u),this._setPendingPropertyOrPath(M,O,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[u])return this._setPendingProperty(u,
O,Q);this[u]=O}return!1};
Y.prototype._setUnmanagedPropertyToNode=function(u,O,Q){if(Q!==u[O]||typeof Q=="object")O==="className"&&(u=(0,_.FP)(u)),u[O]=Q};
Y.prototype._setPendingProperty=function(u,O,Q){var M=this.__dataHasPaths&&TB(u);if(this._shouldPropertyChange(u,O,(M?this.__dataTemp:this.__data)[u])){this.__dataPending||(this.__dataPending={},this.__dataOld={});u in this.__dataOld||(this.__dataOld[u]=this.__data[u]);M?this.__dataTemp[u]=O:this.__data[u]=O;this.__dataPending[u]=O;if(M||this.__notifyEffects&&this.__notifyEffects[u])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[u]=Q;return!0}return!1};
Y.prototype._setProperty=function(u,O){this._setPendingProperty(u,O,!0)&&this._invalidateProperties()};
Y.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
Y.prototype._enqueueClient=function(u){this.__dataPendingClients=this.__dataPendingClients||[];u!==this&&this.__dataPendingClients.push(u)};
Y.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
Y.prototype.__enableOrFlushClients=function(){var u=this.__dataPendingClients;if(u){this.__dataPendingClients=null;for(var O=0;O<u.length;O++){var Q=u[O];Q.__dataEnabled?Q.__dataPending&&Q._flushProperties():Q._enableProperties()}}};
Y.prototype._readyClients=function(){this.__enableOrFlushClients()};
Y.prototype.setProperties=function(u,O){for(var Q in u)!O&&this.__readOnly&&this.__readOnly[Q]||this._setPendingPropertyOrPath(Q,u[Q],!0);this._invalidateProperties()};
Y.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
Y.prototype._propertiesChanged=function(u,O,Q){u=this.__dataHasPaths;this.__dataHasPaths=!1;var M;if(M=this.__computeEffects)if(KO1){kd++;var t=TVt(this),K=[],L;for(L in O)wnk(L,M,K,t,u);for(;L=K.shift();)gMy(this,"",O,Q,L)&&wnk(L.methodInfo,M,K,t,u);Object.assign(Q,this.__dataOld);Object.assign(O,this.__dataPending);this.__dataPending=null}else for(t=O;nj(this,M,t,Q,u);)Object.assign(Q,this.__dataOld),Object.assign(O,this.__dataPending),t=this.__dataPending,this.__dataPending=null;M=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(O,Q,u);this._flushClients();nj(this,this.__reflectEffects,O,Q,u);nj(this,this.__observeEffects,O,Q,u);if(M){t=this.__notifyEffects;K=kd++;for(var g in M)if(M[g]){if(L=t){var P=t;L=K;var I=g,k=O,n=Q,p=u,W=!1,C=p?Lj(I):I;if(P=P[C]){C=0;for(var e=P.length,w=void 0;C<e&&(w=P[C]);C++)w.info&&w.info.lastRun===L||p&&!M6T(I,w.trigger)||(w.info&&(w.info.lastRun=L),w.fn(this,I,k,n,w.info,p,void 0),W=!0)}L=W}if(L)var B=!0;else{if(L=u)L=g,I=O,k=Lj(L),k!==
L?(k=a3(k)+"-changed",EMA(this,k,I[L],L),L=!0):L=!1;L&&(B=!0)}}var N;B&&(N=this.__dataHost)&&N._invalidateProperties&&N._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
Y.prototype._propagatePropertyChanges=function(u,O,Q){this.__propagateEffects&&nj(this,this.__propagateEffects,u,O,Q);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,u,O,Q)};
Y.prototype._runEffectsForTemplate=function(u,O,Q,M){var t=this,K=function(L,g){nj(t,u.propertyEffects,L,Q,g,u.nodeList);for(var P=u.firstChild;P;P=P.nextSibling)t._runEffectsForTemplate(P,L,Q,g)};
u.runEffects?u.runEffects(K,O,M):K(O,M)};
Y.prototype.linkPaths=function(u,O){u=PD(u);O=PD(O);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[u]=O};
Y.prototype.unlinkPaths=function(u){u=PD(u);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[u]};
Y.prototype.notifySplices=function(u,O){var Q={path:""};u=I3(this,u,Q);rVI(this,u,Q.path,O)};
Y.prototype.get=function(u,O){return I3(O||this,u)};
Y.prototype.set=function(u,O,Q){Q?Oyu(Q,u,O):this.__readOnly&&this.__readOnly[u]||this._setPendingPropertyOrPath(u,O,!0)&&this._invalidateProperties()};
Y.prototype.push=function(u){var O=_.vs.apply(1,arguments),Q={path:""},M=I3(this,u,Q),t=M.length,K=M.push.apply(M,_.c8(O));O.length&&WD(this,M,Q.path,t,O.length,[]);return K};
Y.prototype.pop=function(u){var O={path:""};u=I3(this,u,O);var Q=!!u.length,M=u.pop();Q&&WD(this,u,O.path,u.length,0,[M]);return M};
Y.prototype.splice=function(u,O,Q){var M=_.vs.apply(3,arguments),t={path:""},K=I3(this,u,t);O<0?O=K.length-Math.floor(-O):O&&(O=Math.floor(O));var L=arguments.length===2?K.splice(O):K.splice.apply(K,[O,Q].concat(_.c8(M)));(M.length||L.length)&&WD(this,K,t.path,O,M.length,L);return L};
Y.prototype.shift=function(u){var O={path:""};u=I3(this,u,O);var Q=!!u.length,M=u.shift();Q&&WD(this,u,O.path,0,0,[M]);return M};
Y.prototype.unshift=function(u){var O=_.vs.apply(1,arguments),Q={path:""},M=I3(this,u,Q),t=M.unshift.apply(M,_.c8(O));O.length&&WD(this,M,Q.path,0,O.length,[]);return t};
Y.prototype.notifyPath=function(u,O){if(arguments.length==1){var Q={path:""};O=I3(this,u,Q);Q=Q.path}else Q=Array.isArray(u)?PD(u):u;this._setPendingPropertyOrPath(Q,O,!0,!0)&&this._invalidateProperties()};
Y.prototype._createReadOnlyProperty=function(u,O){this._addPropertyEffect(u,"__readOnly");O&&(this["_set"+(u[0].toUpperCase()+u.substring(1))]=function(Q){this._setProperty(u,Q)})};
Y.prototype._createPropertyObserver=function(u,O,Q){var M={property:u,method:O,dynamicFn:!!Q};this._addPropertyEffect(u,"__observeEffects",{fn:HyT,info:M,trigger:{name:u}});Q&&this._addPropertyEffect(O,"__observeEffects",{fn:HyT,info:M,trigger:{name:O}})};
Y.prototype._createMethodObserver=function(u,O){var Q=mzg(u);if(!Q)throw Error("Fd`"+u);nMI(this,Q,"__observeEffects",LJA,null,O)};
Y.prototype._createNotifyingProperty=function(u){this._addPropertyEffect(u,"__notifyEffects",{fn:t6U,info:{eventName:a3(u)+"-changed",property:u}})};
Y.prototype._createReflectedProperty=function(u){var O=this.constructor.attributeNameForProperty(u);O[0]==="-"?console.warn("Property "+u+" cannot be reflected to attribute "+O+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(u,"__reflectEffects",{fn:KJy,info:{attrName:O}})};
Y.prototype._createComputedProperty=function(u,O,Q){var M=mzg(O);if(!M)throw Error("Gd`"+O);O=nMI(this,M,"__computeEffects",gMy,u,Q);Qft(this,"__computeInfo")[u]=O};
Y.prototype._marshalArgs=function(u,O,Q){for(var M=this.__data,t=[],K=0,L=u.length;K<L;K++){var g=u[K],P=g.name,I=g.structured,k=g.wildcard,n=g.value;g.literal||(k?(g=gj(P,O),I=WJ4(M,Q,g?O:P),n={path:g?O:P,value:I,base:g?I3(M,P):I}):n=I?WJ4(M,Q,P):M[P]);if(mN&&!this._overrideLegacyUndefined&&n===void 0&&u.length>1)return zB;t[K]=n}return t};
Y.addPropertyEffect=function(u,O,Q){this.prototype._addPropertyEffect(u,O,Q)};
Y.createPropertyObserver=function(u,O,Q){this.prototype._createPropertyObserver(u,O,Q)};
Y.createMethodObserver=function(u,O){this.prototype._createMethodObserver(u,O)};
Y.createNotifyingProperty=function(u){this.prototype._createNotifyingProperty(u)};
Y.createReadOnlyProperty=function(u,O){this.prototype._createReadOnlyProperty(u,O)};
Y.createReflectedProperty=function(u){this.prototype._createReflectedProperty(u)};
Y.createComputedProperty=function(u,O,Q){this.prototype._createComputedProperty(u,O,Q)};
Y.bindTemplate=function(u){return this.prototype._bindTemplate(u)};
Y.prototype._bindTemplate=function(u,O){var Q=this.constructor._parseTemplate(u),M=this.__preBoundTemplateInfo==Q;if(!M)for(var t in Q.propertyEffects)this._createPropertyAccessor(t);O?(Q=Object.create(Q),Q.wasPreBound=M,this.__templateInfo?(u=u._parentTemplateInfo||this.__templateInfo,O=u.lastChild,Q.parent=u,u.lastChild=Q,(Q.previousSibling=O)?O.nextSibling=Q:u.firstChild=Q):this.__templateInfo=Q):this.__preBoundTemplateInfo=Q;return Q};
Y._addTemplatePropertyEffect=function(u,O,Q){(u.hostProps=u.hostProps||{})[O]=!0;u=u.propertyEffects=u.propertyEffects||{};(u[O]=u[O]||[]).push(Q)};
Y.prototype._stampTemplate=function(u,O){O=O||this._bindTemplate(u,!0);ZI.push(this);u=G.prototype._stampTemplate.call(this,u,O);ZI.pop();O.nodeList=u.nodeList;if(!O.wasPreBound)for(var Q=O.childNodes=[],M=u.firstChild;M;M=M.nextSibling)Q.push(M);u.templateInfo=O;Q=O.nodeList;M=O.nodeInfoList;if(M.length)for(var t=0;t<M.length;t++){var K=Q[t],L=M[t].bindings;if(L)for(var g=0;g<L.length;g++){var P=L[g],I=K,k=P;if(k.isCompound){for(var n=I.__dataCompoundStorage||(I.__dataCompoundStorage={}),p=k.parts,
W=Array(p.length),C=0;C<p.length;C++)W[C]=p[C].literal;p=k.target;n[p]=W;k.literal&&k.kind=="property"&&(p==="className"&&(I=(0,_.FP)(I)),I[p]=k.literal)}k0j(K,this,P)}K.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(O,this.__data,null,!1),this._flushClients());return u};
Y.prototype._removeBoundDom=function(u){u=u.templateInfo;var O=u.previousSibling,Q=u.nextSibling,M=u.parent;O?O.nextSibling=Q:M&&(M.firstChild=Q);Q?Q.previousSibling=O:M&&(M.lastChild=O);u.nextSibling=u.previousSibling=null;u=u.childNodes;for(O=0;O<u.length;O++)Q=u[O],(0,_.FP)((0,_.FP)(Q).parentNode).removeChild(Q)};
Y._parseTemplateNode=function(u,O,Q){var M=G._parseTemplateNode.call(this,u,O,Q);if(u.nodeType===Node.TEXT_NODE){var t=this._parseBindings(u.textContent,O);t&&(u.textContent=FJI(t)||" ",IKa(this,O,Q,"text","textContent",t),M=!0)}return M};
Y._parseTemplateNodeAttribute=function(u,O,Q,M,t){var K=this._parseBindings(t,O);if(K){t=M;var L="property";RY4.test(M)?L="attribute":M[M.length-1]=="$"&&(M=M.slice(0,-1),L="attribute");var g=FJI(K);g&&L=="attribute"&&(M=="class"&&u.hasAttribute("class")&&(g+=" "+u.getAttribute(M)),u.setAttribute(M,g));L=="attribute"&&t=="disable-upgrade$"&&u.setAttribute(M,"");u.localName==="input"&&t==="value"&&u.setAttribute(t,"");u.removeAttribute(t);L==="property"&&(M=Kj(M));IKa(this,O,Q,L,M,K,g);return!0}return G._parseTemplateNodeAttribute.call(this,
u,O,Q,M,t)};
Y._parseTemplateNestedTemplate=function(u,O,Q){var M=G._parseTemplateNestedTemplate.call(this,u,O,Q),t=u.parentNode,K=Q.templateInfo,L=t.localName==="dom-if",g=t.localName==="dom-repeat";em&&(L||g)&&(t.removeChild(u),Q=Q.parentInfo,Q.templateInfo=K,Q.noted=!0,M=!1);u=K.hostProps;if(A7&&L)u&&(O.hostProps=Object.assign(O.hostProps||{},u),em||(Q.parentInfo.noted=!0));else for(var P in u)IKa(this,O,Q,"property","_host_"+P,[{mode:"{",source:P,dependencies:[P],hostProp:!0}]);return M};
Y._parseBindings=function(u,O){for(var Q=[],M=0,t;(t=ZDl.exec(u))!==null;){t.index>M&&Q.push({literal:u.slice(M,t.index)});M=t[1][0];var K=!!t[2];t=t[3].trim();var L=!1,g="",P=-1;M=="{"&&(P=t.indexOf("::"))>0&&(g=t.substring(P+2),t=t.substring(0,P),L=!0);P=mzg(t);var I=[];if(P){var k=P,n=k.args;k=k.methodName;for(var p=0;p<n.length;p++){var W=n[p];W.literal||I.push(W)}if((n=O.dynamicFns)&&n[k]||P.static)I.push(k),P.dynamicFn=!0}else I.push(t);Q.push({source:t,mode:M,negate:K,customEvent:L,signature:P,
dependencies:I,event:g});M=ZDl.lastIndex}M&&M<u.length&&(u=u.substring(M))&&Q.push({literal:u});return Q.length?Q:null};
Y._evaluateBinding=function(u,O,Q,M,t,K){u=O.signature?LJA(u,Q,M,t,O.signature):Q!=O.source?I3(u,O.source):K&&TB(Q)?I3(u,Q):u.__data[Q];O.negate&&(u=!u);return u};
_.Uk.Object.defineProperties(Y.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return iDE}}});
return Y}),ZI=[];var DbI=window.ShadyCSS&&window.ShadyCSS.cssBuild,h7=w1(function(Y){function G(O,Q,M,t){if(!DbI){for(var K=Q.content.querySelectorAll("style"),L=yV1(Q),g=e3A(M),P=Q.content.firstElementChild,I=0;I<g.length;I++){var k=g[I];k.textContent=O._processStyleText(k.textContent,t);Q.content.insertBefore(k,P)}for(P=g=0;P<L.length;P++)I=L[P],k=K[g],k!==I?(I=I.cloneNode(!0),k.parentNode.insertBefore(I,k)):g++,I.textContent=O._processStyleText(I.textContent,t)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(Q,
M);if(TB_&&DbI&&MNM&&(Q=Q.content.querySelectorAll("style"))){var n="";Array.from(Q).forEach(function(p){n+=p.textContent;p.parentNode.removeChild(p)});
O._styleSheet=new CSSStyleSheet;O._styleSheet.replaceSync(n)}}
var u=pn_(DI(Y));Y=function(){return u.call(this)||this};
_.m(Y,u);Y._finalizeClass=function(){u._finalizeClass.call(this);var O;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(O=this.__ownObservers)&&this.createObservers(O,this._properties);this._prepareTemplate()};
Y._prepareTemplate=function(){var O=this.template;O&&(typeof O==="string"?(console.error("template getter must return HTMLTemplateElement"),O=null):DH||(O=O.cloneNode(!0)));this.prototype._template=O};
Y.createProperties=function(O){for(var Q in O){var M=this.prototype,t=Q,K=O[Q],L=O;K.computed&&(K.readOnly=!0);K.computed&&(M._hasReadOnlyEffect(t)?console.warn("Cannot redefine computed property '"+t+"'."):M._createComputedProperty(t,K.computed,L));K.readOnly&&!M._hasReadOnlyEffect(t)?M._createReadOnlyProperty(t,!K.computed):K.readOnly===!1&&M._hasReadOnlyEffect(t)&&console.warn("Cannot make readOnly property '"+t+"' non-readOnly.");K.reflectToAttribute&&!M._hasReflectEffect(t)?M._createReflectedProperty(t):
K.reflectToAttribute===!1&&M._hasReflectEffect(t)&&console.warn("Cannot make reflected property '"+t+"' non-reflected.");K.notify&&!M._hasNotifyEffect(t)?M._createNotifyingProperty(t):K.notify===!1&&M._hasNotifyEffect(t)&&console.warn("Cannot make notify property '"+t+"' non-notify.");K.observer&&M._createPropertyObserver(t,K.observer,L[K.observer]);M._addPropertyToAttributeMap(t)}};
Y.createObservers=function(O,Q){for(var M=this.prototype,t=0;t<O.length;t++)M._createMethodObserver(O[t],Q)};
Y.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);u.prototype._initializeProperties.call(this);this.rootPath=HDe;this.importPath=this.constructor.importPath;var O=this.constructor;if(!O.hasOwnProperty("__propertyDefaults")){O.__propertyDefaults=null;var Q=O._properties,M;for(M in Q){var t=Q[M];"value"in t&&(O.__propertyDefaults=O.__propertyDefaults||{},O.__propertyDefaults[M]=t)}}if(O=O.__propertyDefaults)for(var K in O)Q=O[K],
this._canApplyPropertyDefault(K)&&(Q=typeof Q.value=="function"?Q.value.call(this):Q.value,this._hasAccessor(K)?this._setPendingProperty(K,Q,!0):this[K]=Q)};
Y.prototype._canApplyPropertyDefault=function(O){return!this.hasOwnProperty(O)};
Y._processStyleText=function(O,Q){return N4t(O,Q)};
Y._finalizeTemplate=function(O){var Q=this.prototype._template;if(Q&&!Q.__polymerFinalized){Q.__polymerFinalized=!0;var M=this.importPath;M=M?_.Ek(M):"";G(this,Q,O,M);this.prototype._bindTemplate(Q)}};
Y.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);u.prototype.connectedCallback.call(this)};
Y.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);u.prototype.ready.call(this)};
Y.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));u.prototype._readyClients.call(this)};
Y.prototype._attachDom=function(O){var Q=(0,_.FP)(this);if(Q.attachShadow)return O?(Q.shadowRoot||(Q.attachShadow({mode:"open",shadyUpgradeFragment:O}),Q.shadowRoot.appendChild(O),this.constructor._styleSheet&&(Q.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),tNI&&window.ShadyDOM&&window.ShadyDOM.flushInitial(Q.shadowRoot),Q.shadowRoot):null;throw Error("Id");};
Y.prototype.updateStyles=function(O){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,O)};
Y.prototype.resolveUrl=function(O,Q){!Q&&this.importPath&&(Q=_.Ek(this.importPath));return _.Ek(O,Q)};
Y._parseTemplateContent=function(O,Q,M){Q.dynamicFns=Q.dynamicFns||this._properties;return u._parseTemplateContent.call(this,O,Q,M)};
Y._addTemplatePropertyEffect=function(O,Q,M){!Sg||Q in this._properties||M.info.part.signature&&M.info.part.signature.static||M.info.part.hostProp||O.nestedTemplate||console.warn("Property '"+Q+"' used in template but not declared in 'properties'; attribute will not be observed.");return u._addTemplatePropertyEffect.call(this,O,Q,M)};
_.Uk.Object.defineProperties(Y,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var O=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof O==="function"&&(O=O());if(O===void 0){if(O=this.hasOwnProperty("is")){O=this.is;var Q=null;if(O&&(!N2||EoM)&&(Q=rj.import(O,"template"),N2&&!Q))throw Error("Hd`"+O);O=Q}O=O||Object.getPrototypeOf(this.prototype).constructor.template}this._template=O}return this._template},
set:function(O){this._template=O}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var O=this.importMeta;O?this._importPath=jzu(O.url):this._importPath=(O=rj.import(this.is))&&O.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return Y});var hY1=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(Y){return Y}}),Dzt=function(Y,G){dbE(Y,G);
this.value=G.reduce(function(u,O,Q){return u+h3j(O)+Y[Q+1]},Y[0]).toString()},dbE;
Dzt.prototype.toString=function(){return this.value};
_.bDX=function(Y){var G=_.vs.apply(1,arguments);dbE(Y,G);var u=document.createElement("template");G=G.reduce(function(O,Q,M){if(Q instanceof HTMLTemplateElement)Q=Q.innerHTML;else if(Q instanceof Dzt)Q=h3j(Q);else throw Error("Kd`"+Q);return O+Q+Y[M+1]},Y[0]);
hY1&&(G=hY1.createHTML(G));u.innerHTML=G;return u};
dbE=function(Y,G){if(!Array.isArray(Y)||!Array.isArray(Y.raw)||G.length!==Y.length-1)throw new TypeError("Ld");};var d1=h7(HTMLElement);var SxM=w1(function(Y){var G=h7(Y);Y=function(){var u=G.call(this)||this;u.__lastItems=null;u.__lastMulti=null;u.__selectedMap=null;return u};
_.m(Y,G);Y.prototype.__updateSelection=function(u,O){var Q=O.path;Q=="items"?(O=O.base||[],Q=this.__lastItems,u!==this.__lastMulti&&this.clearSelection(),Q&&(Q=Zy4(O,Q),this.__applySplices(Q)),this.__lastItems=O,this.__lastMulti=u):O.path=="items.splices"?this.__applySplices(O.value.indexSplices):(u=Q.slice(6),O=parseInt(u,10),u.indexOf(".")<0&&u==O&&this.__deselectChangedIdx(O))};
Y.prototype.__applySplices=function(u){for(var O=this,Q=this.__selectedMap,M={},t=0;t<u.length;M={s$jscomp$109:void 0},t++){M.s$jscomp$109=u[t];Q.forEach(function(P){return function(I,k){I<P.s$jscomp$109.index||(I>=P.s$jscomp$109.index+P.s$jscomp$109.removed.length?Q.set(k,I+P.s$jscomp$109.addedCount-P.s$jscomp$109.removed.length):Q.set(k,-1))}}(M));
for(var K=0;K<M.s$jscomp$109.addedCount;K++){var L=M.s$jscomp$109.index+K;Q.has(this.items[L])&&Q.set(this.items[L],L)}}this.__updateLinks();var g=0;Q.forEach(function(P,I){P<0?(O.multi?O.splice("selected",g,1):O.selected=O.selectedItem=null,Q.delete(I)):g++})};
Y.prototype.__updateLinks=function(){var u=this;this.__dataLinkedPaths={};if(this.multi){var O=0;this.__selectedMap.forEach(function(Q){Q>=0&&u.linkPaths("items."+Q,"selected."+O++)})}else this.__selectedMap.forEach(function(Q){u.linkPaths("selected","items."+Q);
u.linkPaths("selectedItem","items."+Q)})};
Y.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
Y.prototype.isSelected=function(u){return this.__selectedMap.has(u)};
Y.prototype.isIndexSelected=function(u){return this.isSelected(this.items[u])};
Y.prototype.__deselectChangedIdx=function(u){var O=this,Q=this.__selectedIndexForItemIndex(u);if(Q>=0){var M=0;this.__selectedMap.forEach(function(t,K){Q==M++&&O.deselect(K)})}};
Y.prototype.__selectedIndexForItemIndex=function(u){if(u=this.__dataLinkedPaths["items."+u])return parseInt(u.slice(9),10)};
Y.prototype.deselect=function(u){var O=this.__selectedMap.get(u);if(O>=0){this.__selectedMap.delete(u);var Q;this.multi&&(Q=this.__selectedIndexForItemIndex(O));this.__updateLinks();this.multi?this.splice("selected",Q,1):this.selected=this.selectedItem=null}};
Y.prototype.deselectIndex=function(u){this.deselect(this.items[u])};
Y.prototype.select=function(u){this.selectIndex(this.items.indexOf(u))};
Y.prototype.selectIndex=function(u){var O=this.items[u];this.isSelected(O)?this.toggle&&this.deselectIndex(u):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(O,u),this.__updateLinks(),this.multi?this.push("selected",O):this.selected=this.selectedItem=O)};
_.Uk.Object.defineProperties(Y,{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 Y}),NBe=SxM(d1),bP=function(){return NBe.apply(this,arguments)||this};
_.m(bP,NBe);_.Uk.Object.defineProperties(bP,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(bP.is,bP);var j41=window.Polymer;window.Polymer=function(Y){return window.Polymer._polymerFn(Y)};
j41&&Object.assign(Polymer,j41);Polymer._polymerFn=function(){throw Error("Md");};/*

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:N4t,resolveUrl:_.Ek,pathFromUrl:jzu};Polymer.DomModule=rj;Polymer.Async={timeOut:_.Ru,animationFrame:_.TU,idlePeriod:ISk,microTask:wj};Polymer.dedupingMixin=w1;Polymer.wrap=_.FP;Polymer.PropertiesChanged=noR;Polymer.telemetry={instanceCount:FOT,incrementInstanceCount:function(){FOT++},
registrations:$Fa,register:qnY,dumpRegistrations:function(){$Fa.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=pn_;Polymer.CaseMap={dashToCamelCase:Kj,camelToDashCase:a3};Polymer.PropertyAccessors=fSV;Polymer.TemplateStamp=oo_;Polymer.Path={isPath:TB,root:Lj,isAncestor:YAt,isDescendant:gj,translate:XP,matches:G0j,normalize:PD,split:uOa,get:I3,set:Oyu,isDeep:TB};Polymer.Settings={useShadow:hG,useNativeCSSProperties:YxR,useNativeCustomElements:GO2,get rootPath(){return HDe},setRootPath:function(Y){HDe=Y},
get sanitizeDOMValue(){return pj},setSanitizeDOMValue:function(Y){pj=Y},
get passiveTouchGestures(){return Uzy},setPassiveTouchGestures:function(Y){Uzy=Y},
get strictTemplatePolicy(){return N2},setStrictTemplatePolicy:function(Y){N2=Y},
get allowTemplateFromDomModule(){return EoM},setAllowTemplateFromDomModule:function(Y){EoM=Y},
get legacyOptimizations(){return DH},setLegacyOptimizations:function(Y){DH=Y},
get syncInitialRender(){return tNI},setSyncInitialRender:function(Y){tNI=Y},
get legacyUndefined(){return mN},setLegacyUndefined:function(Y){mN=Y},
get legacyWarnings(){return Sg},setLegacyWarnings:function(Y){Sg=Y},
get orderedComputed(){return KO1},setOrderedComputed:function(Y){KO1=Y},
get fastDomIf(){return A7},setFastDomIf:function(Y){A7=Y},
get removeNestedTemplates(){return em},setRemoveNestedTemplates:function(Y){em=Y},
get suppressTemplateNotifications(){return ou},setSuppressTemplateNotifications:ou};Polymer.rootPath!==void 0&&(HDe=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(pj=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Uzy=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(N2=Polymer.strictTemplatePolicy);EoM=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(DH=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(tNI=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(mN=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Sg=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(KO1=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(A7=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(em=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(ou=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return pj},
set:function(Y){pj=Y}});Polymer.PropertyEffects=DI;Polymer.StyleGather={stylesFromModules:C$I,stylesFromModule:fKj,stylesFromTemplate:yV1,stylesFromModuleImports:e3A,cssFromModules:oMt,cssFromModule:AVg,cssFromTemplate:iyj,cssFromModuleImports:function(Y){return(Y=rj.import(Y))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Y):""}};Polymer.ElementMixin=h7;Polymer.updateStyles=function(Y){window.ShadyCSS&&window.ShadyCSS.styleDocument(Y)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:Zy4};Polymer.html=_.bDX;Polymer.htmlLiteral=function(Y){return new Dzt(Y,_.vs.apply(1,arguments))};Polymer.Element=d1;Polymer.ArraySelectorMixin=SxM;Polymer.ArraySelector=bP;var VN1=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,lSU=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,kwI=/@media\s(.*)/;var NVt=null,SAt=window.HTMLImports&&window.HTMLImports.whenReady||null,jfI;var BBT=null,Sm=null,Na=function(){this.customStyles=[];this.enqueued=!1;V6A(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},$b1=function(Y){!Y.enqueued&&Sm&&(Y.enqueued=!0,V6A(Sm))};
Na.prototype.addCustomStyle=function(Y){Y.__seenByShadyCSS||(Y.__seenByShadyCSS=!0,this.customStyles.push(Y),$b1(this))};
Na.prototype.getStyleForCustomStyle=function(Y){if(Y.__shadyCSSCachedStyle)return Y.__shadyCSSCachedStyle;var G;Y.getStyle?G=Y.getStyle():G=Y;return G};
Na.prototype.processStyles=function(){for(var Y=this.customStyles,G=0;G<Y.length;G++){var u=Y[G];if(!u.__shadyCSSCachedStyle){var O=this.getStyleForCustomStyle(u);O&&(O=O.__appliedElement||O,BBT&&BBT(O),u.__shadyCSSCachedStyle=O)}}return Y};
Na.prototype.addCustomStyle=Na.prototype.addCustomStyle;Na.prototype.getStyleForCustomStyle=Na.prototype.getStyleForCustomStyle;Na.prototype.processStyles=Na.prototype.processStyles;Object.defineProperties(Na.prototype,{transformCallback:{get:function(){return BBT},
set:function(Y){BBT=Y}},
validateCallback:{get:function(){return Sm},
set:function(Y){var G=!1;Sm||(G=!0);Sm=Y;G&&$b1(this)}}});var BVT=!(window.ShadyDOM&&window.ShadyDOM.inUse),lKA,cD;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(cD=window.ShadyCSS.cssBuild);var qxe=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?lKA=window.ShadyCSS.nativeCss:window.ShadyCSS?($za(window.ShadyCSS),window.ShadyCSS=void 0):$za(window.WebComponents&&window.WebComponents.flags);var XGT=lKA;var s4T=new Na;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(Y,G){s4T.processStyles();dzY(Y,G)},
styleElement:function(){s4T.processStyles()},
styleDocument:function(Y){s4T.processStyles();dzY(document.body,Y)},
getComputedStyleValue:function(Y,G){return byu(Y,G)},
flushCustomStyles:function(){},
nativeCss:XGT,nativeShadow:BVT,cssBuild:cD,disableRuntime:qxe});window.ShadyCSS.CustomStyleInterface=s4T;var cj_=window.ShadyCSS.CustomStyleInterface,jm=function(){var Y=HTMLElement.call(this)||this;Y._style=null;cj_.addCustomStyle(Y);return Y};
_.m(jm,HTMLElement);jm.prototype.getStyle=function(){if(this._style)return this._style;var Y=this.querySelector("style");if(!Y)return null;this._style=Y;var G=Y.getAttribute("include");G&&(Y.removeAttribute("include"),Y.textContent=oMt(G)+Y.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
jm.prototype.getStyle=jm.prototype.getStyle;window.customElements.define("custom-style",jm);Polymer.CustomStyle=jm;var VQ=function(){this._timer=this._callback=this._asyncModule=null},lP,voI;
VQ.prototype.setConfig=function(Y,G){var u=this;this._asyncModule=Y;this._callback=G;this._timer=this._asyncModule.run(function(){u._timer=null;lP.delete(u);u._callback()})};
VQ.prototype.cancel=function(){this.isActive()&&(UbE(this),lP.delete(this))};
var UbE=function(Y){Y.isActive()&&(Y._asyncModule.cancel(Y._timer),Y._timer=null)};
VQ.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
VQ.prototype.isActive=function(){return this._timer!=null};
_.By=function(Y,G,u){Y instanceof VQ?UbE(Y):Y=new VQ;Y.setConfig(G,u);return Y};
lP=new Set;_.$t=function(Y){lP.add(Y)};
voI=function(){var Y=!!lP.size;lP.forEach(function(G){try{G.flush()}catch(u){setTimeout(function(){throw u;})}});
return Y};var sfa=typeof document.head.style.touchAction==="string",qA1=["mousedown","mousemove","mouseup","click"],QGu=[0,1,4,2],Jjk;try{Jjk=(new MouseEvent("test",{buttons:1})).buttons===1}catch(Y){Jjk=!1}var Ocg=Jjk,cVA=!1;(function(){try{var Y=Object.defineProperty({},"passive",{get:function(){cVA=!0}});
window.addEventListener("test",null,Y);window.removeEventListener("test",null,Y)}catch(G){}})();
var JVI=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),YDu=[],Y3X={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},IBj={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},Gy1=function(Y){var G=Y.sourceCapabilities;if(!G||G.firesTouchEvents)if(Y.__polymerGesturesHandled={skip:!0},Y.type==="click"){G=!1;for(var u=t5j(Y),O=0;O<u.length;O++){if(u[O].nodeType===Node.ELEMENT_NODE)if(u[O].localName==="label")YDu.push(u[O]);
else if(Y3X[u[O].localName]){var Q=u[O];var M=Array.prototype.slice.call(Q.labels||[]);if(!M.length){M=[];try{var t=Q.getRootNode();if(Q.id){var K=t.querySelectorAll("label[for = '"+Q.id+"']");for(Q=0;Q<K.length;Q++)M.push(K[Q])}}catch(L){}}for(Q=0;Q<M.length;Q++)G=G||YDu.indexOf(M[Q])>-1}if(u[O]===GUV)return}G||(Y.preventDefault(),Y.stopPropagation())}},GUV=null,qa=null,aB4=0,TQA=0,KK1=-1,LKT=!1;
document.addEventListener("touchend",function(Y){qa||uUj(!0);GUV=t5j(Y)[0];qa=_.By(qa,_.Ru.after(2500),function(){uUj();qa=GUV=null})},cVA?{passive:!0}:!1);
var t5j=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(Y){return Y.composedPath&&Y.composedPath()||[]},AG={},yb=[];
gUA({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Cj(this.info)},
mousedown:function(Y){if(fj(Y)){var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y),u=this;Hc1(this.info,function(O){fj(O)||(ZH("up",G,O),Cj(u.info))},function(O){fj(O)&&ZH("up",G,O);
Cj(u.info)});
ZH("down",G,Y)}},
touchstart:function(Y){ZH("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y),Y.changedTouches[0],Y)},
touchend:function(Y){ZH("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y),Y.changedTouches[0],Y)}});
gUA({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(Y){this.moves.length>2&&this.moves.shift();this.moves.push(Y)},
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;Cj(this.info)},
mousedown:function(Y){if(fj(Y)){var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y),u=this,O=function(Q){var M=Q.clientX,t=Q.clientY;Xa4(u.info,M,t)&&(u.info.state=u.info.started?Q.type==="mouseup"?"end":"track":"start",u.info.state==="start"&&eg("tap"),u.info.addMove({x:M,y:t}),fj(Q)||(u.info.state="end",Cj(u.info)),G&&PO1(u.info,G,Q),u.info.started=!0)};
Hc1(this.info,O,function(Q){u.info.started&&O(Q);Cj(u.info)});
this.info.x=Y.clientX;this.info.y=Y.clientY}},
touchstart:function(Y){Y=Y.changedTouches[0];this.info.x=Y.clientX;this.info.y=Y.clientY},
touchmove:function(Y){var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y);Y=Y.changedTouches[0];var u=Y.clientX,O=Y.clientY;Xa4(this.info,u,O)&&(this.info.state==="start"&&eg("tap"),this.info.addMove({x:u,y:O}),PO1(this.info,G,Y),this.info.state="track",this.info.started=!0)},
touchend:function(Y){var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y);Y=Y.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:Y.clientX,y:Y.clientY}),PO1(this.info,G,Y))}});
gUA({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(Y){fj(Y)&&(this.info.x=Y.clientX,this.info.y=Y.clientY)},
click:function(Y){fj(Y)&&kyT(this.info,Y)},
touchstart:function(Y){Y=Y.changedTouches[0];this.info.x=Y.clientX;this.info.y=Y.clientY},
touchend:function(Y){kyT(this.info,Y.changedTouches[0],Y)}});var uST=w1(function(Y){var G=function(){return Y.apply(this,arguments)||this};
_.m(G,Y);G.prototype._addEventListenerToNode=function(u,O,Q){o3(u,O,Q)||Y.prototype._addEventListenerToNode.call(this,u,O,Q)};
G.prototype._removeEventListenerFromNode=function(u,O,Q){io(u,O,Q)||Y.prototype._removeEventListenerFromNode.call(this,u,O,Q)};
return G});var sz=w1(function(Y){var G=function(){return Y.apply(this,arguments)||this};
_.m(G,Y);G.prototype._shouldPropertyChange=function(u,O,Q){return nUI(this,u,O,Q,!0)};
return G}),OdV=w1(function(Y){var G=function(){return Y.apply(this,arguments)||this};
_.m(G,Y);G.prototype._shouldPropertyChange=function(u,O,Q){return nUI(this,u,O,Q,this.mutableData)};
_.Uk.Object.defineProperties(G,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return G});
sz._mutablePropertyChange=nUI;var FKU=!1;var QDE=uST(OdV(DI(HTMLElement))),cy=function(){var Y=QDE.call(this)||this;if(N2)throw Error("Nd");Y.root=null;Y.$=null;Y.__children=null;return Y};
_.m(cy,QDE);_.H=cy.prototype;_.H.attributeChangedCallback=function(){this.mutableData=!0};
_.H.connectedCallback=function(){paA()||(this.style.display="none");this.render()};
_.H.disconnectedCallback=function(){this.__removeChildren()};
_.H.__insertChildren=function(){(0,_.FP)((0,_.FP)(this).parentNode).insertBefore(this.root,this)};
_.H.__removeChildren=function(){if(this.__children)for(var Y=0;Y<this.__children.length;Y++)this.root.appendChild(this.__children[Y])};
_.H.render=function(){var Y=this;if(!this.__children){var G=G||this.querySelector("template");if(!G){var u=new MutationObserver(function(){if(G=Y.querySelector("template"))u.disconnect(),Y.render();else throw Error("Od");});
u.observe(this,{childList:!0});return}this.root=this._stampTemplate(G);this.$=this.root.$;this.__children=[];for(var O=this.root.firstChild;O;O=O.nextSibling)this.__children[this.__children.length]=O;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Uk.Object.defineProperties(cy,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",cy);Polymer.Debouncer=VQ;Polymer.Gestures={gestures:AG,recognizers:yb,deepTargetFind:EU4,addListener:o3,removeListener:io,register:gUA,setTouchAction:_.R3,prevent:eg,resetMouseCanceller:function(){qa&&qa.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:o3,remove:io};Polymer.GestureEventListeners=uST;Polymer.MutableData=sz;Polymer.OptionalMutableData=OdV;Polymer.DomBind=cy;_.Uz=function(){do{var Y=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var G=voI()}while(Y||G)};var z4I=null;mPa.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:mPa,writable:!0}});var Arg=DI(mPa),e4I=sz(Arg),Mkl=DI(function(){}),dj=function(Y){var G=Mkl.call(this)||this;
G._configureProperties(Y);G.root=G._stampTemplate(G.__dataHost);var u=[];G.children=u;for(var O=G.root.firstChild;O;O=O.nextSibling)u.push(O),O.__templatizeInstance=G;G.__templatizeOwner&&G.__templatizeOwner.__hideTemplateChildren__&&G._showHideChildren(!0);u=G.__templatizeOptions;(Y&&u.instanceProps||!u.instanceProps)&&G._enableProperties();return G};
_.m(dj,Mkl);_.H=dj.prototype;_.H._configureProperties=function(Y){if(this.__templatizeOptions.forwardHostProp)for(var G in this.__hostProps)this._setPendingProperty(G,this.__dataHost["_host_"+G]);for(var u in Y)this._setPendingProperty(u,Y[u])};
_.H.forwardHostProp=function(Y,G){this._setPendingPropertyOrPath(Y,G,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.H._addEventListenerToNode=function(Y,G,u){var O=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(Y,G,function(M){M.model=O;u(M)});
else{var Q=this.__dataHost.__dataHost;Q&&Q._addEventListenerToNode(Y,G,u)}};
_.H._showHideChildren=function(Y){rru(Y,this.children)};
_.H._setUnmanagedPropertyToNode=function(Y,G,u){Y.__hideTemplateChildren__&&Y.nodeType==Node.TEXT_NODE&&G=="textContent"?Y.__polymerTextContent__=u:Mkl.prototype._setUnmanagedPropertyToNode.call(this,Y,G,u)};
_.H.dispatchEvent=function(){return!0};
_.Uk.Object.defineProperties(dj.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var Y=this.__parentModel;if(!Y){var G;Y=this;do Y=Y.__dataHost.__dataHost;while((G=Y.__templatizeOptions)&&!G.parentModel);this.__parentModel=Y}return Y}}});
var fBT=sz(dj);var vy=function(){var Y=d1.call(this)||this;Y.__renderDebouncer=null;Y._lastIf=!1;Y.__hideTemplateChildren__=!1;return Y};
_.m(vy,d1);_.H=vy.prototype;_.H.__debounceRender=function(){var Y=this;this.__renderDebouncer=_.By(this.__renderDebouncer,wj,function(){return Y.__render()});
_.$t(this.__renderDebouncer)};
_.H.disconnectedCallback=function(){d1.prototype.disconnectedCallback.call(this);var Y=(0,_.FP)(this).parentNode;Y&&(Y.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.FP)(Y).host)||this.__teardownInstance()};
_.H.connectedCallback=function(){d1.prototype.connectedCallback.call(this);paA()||(this.style.display="none");this.if&&this.__debounceRender()};
_.H.__ensureTemplate=function(){var Y=this;if(!this.__template){var G=this._templateInfo?this:(0,_.FP)(this).querySelector("template");if(!G){var u=new MutationObserver(function(){if((0,_.FP)(Y).querySelector("template"))u.disconnect(),Y.__render();else throw Error("Rd");});
u.observe(this,{childList:!0});return!1}this.__template=G}return!0};
_.H.__ensureInstance=function(){var Y=(0,_.FP)(this).parentNode;if(this.__hasInstance()){var G=this.__getInstanceNodes();if(G&&G.length&&(0,_.FP)(this).previousSibling!==G[G.length-1])for(var u=0,O=void 0;u<G.length&&(O=G[u]);u++)(0,_.FP)(Y).insertBefore(O,this)}else{if(!Y||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(Y)}return!0};
_.H.render=function(){_.Uz()};
_.H.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();ou&&!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(){};
_.Uk.Object.defineProperties(vy,{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:vy.prototype.__debounceRender},restamp:{type:Boolean,observer:vy.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var Hd_=function(){var Y=vy.call(this)||this;Y.__instance=null;Y.__syncInfo=null;return Y};
_.m(Hd_,vy);_.H=Hd_.prototype;_.H.__hasInstance=function(){return!!this.__instance};
_.H.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.H.__createAndInsertInstance=function(Y){var G=this,u=this.__dataHost||this;if(N2&&!this.__dataHost)throw Error("Pd");var O=u._bindTemplate(this.__template,!0);O.runEffects=function(Q,M,t){var K=G.__syncInfo;if(G.if)K&&(G.__syncInfo=null,G._showHideChildren(),M=Object.assign(K.changedProps,M)),Q(M,t);else if(G.__instance)if(K||(K=G.__syncInfo={runEffects:Q,changedProps:{}}),t)for(var L in M)Q=Lj(L),K.changedProps[Q]=G.__dataHost[Q];else Object.assign(K.changedProps,M)};
this.__instance=u._stampTemplate(this.__template,O);(0,_.FP)(Y).insertBefore(this.__instance,this)};
_.H.__syncHostProperties=function(){var Y=this.__syncInfo;Y&&(this.__syncInfo=null,Y.runEffects(Y.changedProps,!1))};
_.H.__teardownInstance=function(){var Y=this.__dataHost||this;this.__instance&&(Y._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.H._showHideChildren=function(){var Y=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==Y&&(this.__instance.__hidden=Y,rru(Y,this.__instance.templateInfo.childNodes));Y||this.__syncHostProperties()};
var Eyk=function(){var Y=vy.call(this)||this;Y.__ctor=null;Y.__instance=null;Y.__invalidProps=null;return Y};
_.m(Eyk,vy);_.H=Eyk.prototype;_.H.__hasInstance=function(){return!!this.__instance};
_.H.__getInstanceNodes=function(){return this.__instance.children};
_.H.__createAndInsertInstance=function(Y){this.__ctor||(this.__ctor=bo(this.__template,this,{mutableData:!0,forwardHostProp:function(G,u){this.__instance&&(this.if?this.__instance.forwardHostProp(G,u):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Lj(G)]=!0))}}));
this.__instance=new this.__ctor;(0,_.FP)(Y).insertBefore(this.__instance.root,this)};
_.H.__teardownInstance=function(){if(this.__instance){var Y=this.__instance.children;if(Y&&Y.length){var G=(0,_.FP)(Y[0]).parentNode;if(G){G=(0,_.FP)(G);for(var u=0,O=void 0;u<Y.length&&(O=Y[u]);u++)G.removeChild(O)}}this.__instance=this.__invalidProps=null}};
_.H.__syncHostProperties=function(){var Y=this.__invalidProps;if(Y){this.__invalidProps=null;for(var G in Y)this.__instance._setPendingProperty(G,this.__dataHost[G]);this.__instance._flushProperties()}};
_.H._showHideChildren=function(){var Y=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==Y&&(this.__instance.__hidden=Y,this.__instance._showHideChildren(Y));Y||this.__syncHostProperties()};
_.I4=A7?Hd_:Eyk;customElements.define(_.I4.is,_.I4);Polymer.enqueueDebouncer=_.$t;Polymer.flush=_.Uz;Polymer.Templatize={templatize:bo,modelForElement:DPt};Polymer.TemplateInstanceBase=dj;Polymer.DomIf=_.I4;var tkV=OdV(d1),Pn=function(){var Y=tkV.call(this)||this;Y.__instances=[];Y.__renderDebouncer=null;Y.__itemsIdxToInstIdx={};Y.__chunkCount=null;Y.__renderStartTime=null;Y.__itemsArrayChanged=!1;Y.__shouldMeasureChunk=!1;Y.__shouldContinueChunking=!1;Y.__chunkingId=0;Y.__sortFn=null;Y.__filterFn=null;Y.__observePaths=null;Y.__ctor=null;Y.__isDetached=!0;Y.template=null;return Y};
_.m(Pn,tkV);_.H=Pn.prototype;_.H.disconnectedCallback=function(){tkV.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var Y=0;Y<this.__instances.length;Y++)this.__detachInstance(Y);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.H.connectedCallback=function(){tkV.prototype.connectedCallback.call(this);paA()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var Y=(0,_.FP)((0,_.FP)(this).parentNode),G=0;G<this.__instances.length;G++)this.__attachInstance(G,Y);this.__chunkingId&&this.__render()}};
_.H.__ensureTemplatized=function(){var Y=this;if(!this.__ctor){var G=this.template=this._templateInfo?this:this.querySelector("template");if(!G){var u=new MutationObserver(function(){if(Y.querySelector("template"))u.disconnect(),Y.__render();else throw Error("Sd");});
u.observe(this,{childList:!0});return!1}var O={};O[this.as]=!0;O[this.indexAs]=!0;O[this.itemsIndexAs]=!0;this.__ctor=bo(G,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:O,forwardHostProp:function(Q,M){for(var t=this.__instances,K=0,L=void 0;K<t.length&&(L=t[K]);K++)L.forwardHostProp(Q,M)},
notifyInstanceProp:function(Q,M,t){G0j(this.as,M)&&(Q=Q[this.itemsIndexAs],M==this.as&&(this.items[Q]=t),M=XP(this.as,"items."+Q,M),this.notifyPath(M,t))}})}return!0};
_.H.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.H.__functionFromPropertyValue=function(Y){if(typeof Y==="string"){var G=this.__getMethodHost();return function(){return G[Y].apply(G,arguments)}}return Y};
_.H.__sortChanged=function(Y){this.__sortFn=this.__functionFromPropertyValue(Y);this.items&&this.__debounceRender(this.__render)};
_.H.__filterChanged=function(Y){this.__filterFn=this.__functionFromPropertyValue(Y);this.items&&this.__debounceRender(this.__render)};
_.H.__computeFrameTime=function(Y){return Math.ceil(1E3/Y)};
_.H.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.H.__handleObservedPaths=function(Y){if(this.__sortFn||this.__filterFn)if(!Y)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var G=this.__observePaths,u=0;u<G.length;u++)Y.indexOf(G[u])===0&&this.__debounceRender(this.__render,this.delay)};
_.H.__itemsChanged=function(Y){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(Y.path,Y.value)||(Y.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.H.__debounceRender=function(Y,G){G=G===void 0?0:G;this.__renderDebouncer=_.By(this.__renderDebouncer,G>0?_.Ru.after(G):wj,Y.bind(this));_.$t(this.__renderDebouncer)};
_.H.render=function(){this.__debounceRender(this.__render);_.Uz()};
_.H.__render=function(){var Y=this;if(this.__ensureTemplatized()){var G=this.items||[],u=this.__sortAndFilterItems(G),O=this.__calculateLimit(u.length);this.__updateInstances(G,O,u);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){Y.__chunkingId=null;Y.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);ou&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.H.__sortAndFilterItems=function(Y){for(var G=this,u=Array(Y.length),O=0;O<Y.length;O++)u[O]=O;this.__filterFn&&(u=u.filter(function(Q,M,t){return G.__filterFn(Y[Q],M,t)}));
this.__sortFn&&u.sort(function(Q,M){return G.__sortFn(Y[Q],Y[M])});
return u};
_.H.__calculateLimit=function(Y){var G=Y,u=this.__instances.length;if(this.initialCount){var O;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(G=Math.min(Y,this.initialCount),this.__chunkCount=(O=Math.max(G-u,0))||1):(O=Math.min(Math.max(Y-u,0),this.__chunkCount),G=Math.min(u+O,Y));this.__shouldMeasureChunk=O===this.__chunkCount;this.__shouldContinueChunking=G<Y;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return G};
_.H.__continueChunking=function(){if(this.__shouldMeasureChunk){var Y=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/Y*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.H.__updateInstances=function(Y,G,u){var O=this.__itemsIdxToInstIdx={},Q;for(Q=0;Q<G;Q++){var M=this.__instances[Q],t=u[Q],K=Y[t];O[t]=Q;M?(M._setPendingProperty(this.as,K),M._setPendingProperty(this.indexAs,Q),M._setPendingProperty(this.itemsIndexAs,t),M._flushProperties()):this.__insertInstance(K,Q,t)}for(Y=this.__instances.length-1;Y>=Q;Y--)this.__detachAndRemoveInstance(Y)};
_.H.__detachInstance=function(Y){Y=this.__instances[Y];for(var G=(0,_.FP)(Y.root),u=0;u<Y.children.length;u++)G.appendChild(Y.children[u]);return Y};
_.H.__attachInstance=function(Y,G){G.insertBefore(this.__instances[Y].root,this)};
_.H.__detachAndRemoveInstance=function(Y){this.__detachInstance(Y);this.__instances.splice(Y,1)};
_.H.__stampInstance=function(Y,G,u){var O={};O[this.as]=Y;O[this.indexAs]=G;O[this.itemsIndexAs]=u;return new this.__ctor(O)};
_.H.__insertInstance=function(Y,G,u){Y=this.__stampInstance(Y,G,u);u=(u=this.__instances[G+1])?u.children[0]:this;(0,_.FP)((0,_.FP)(this).parentNode).insertBefore(Y.root,u);return this.__instances[G]=Y};
_.H._showHideChildren=function(Y){for(var G=0;G<this.__instances.length;G++)this.__instances[G]._showHideChildren(Y)};
_.H.__handleItemPath=function(Y,G){var u=Y.slice(6),O=u.indexOf(".");Y=O<0?u:u.substring(0,O);if(Y==parseInt(Y,10)){u=O<0?"":u.substring(O+1);this.__handleObservedPaths(u);if(Y=this.__instances[this.__itemsIdxToInstIdx[Y]])Y._setPendingPropertyOrPath(this.as+(u?"."+u:""),G,!1,!0),Y._flushProperties();return!0}};
_.H.itemForElement=function(Y){return(Y=this.modelForElement(Y))&&Y[this.as]};
_.H.indexForElement=function(Y){return(Y=this.modelForElement(Y))&&Y[this.indexAs]};
_.H.modelForElement=function(Y){return DPt(this.template,Y)};
_.Uk.Object.defineProperties(Pn,{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:Pn.prototype.__sortChanged},filter:{type:Function,observer:Pn.prototype.__filterChanged},observe:{type:String,observer:Pn.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!ou,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.*)"]}}});
Pn.prototype._setRenderedItemCount=function(){};
customElements.define(Pn.is,Pn);Polymer.DomRepeat=Pn;var Kak=function(Y,G){var u=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=Y;this.callback=G;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){u._schedule()};
this.connect();this._schedule()},a9R=function(Y){var G=(0,_.FP)(Y);
if(jg(Y))return G.assignedNodes({flatten:!0});Y=[];for(var u=0;u<G.childNodes.length;u++){var O=G.childNodes[u];jg(O)?Y.push.apply(Y,_.c8((0,_.FP)(O).assignedNodes({flatten:!0}))):Y.push(O)}return Y};
_.H=Kak.prototype;_.H.connect=function(){var Y=this;jg(this._target)?this._listenSlots([this._target]):(0,_.FP)(this._target).children&&(this._listenSlots((0,_.FP)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(G){Y._processMutations(G)}):(this._nativeChildrenObserver=new MutationObserver(function(G){Y._processMutations(G)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.H.disconnect=function(){jg(this._target)?this._unlistenSlots([this._target]):(0,_.FP)(this._target).children&&(this._unlistenSlots((0,_.FP)(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 Y=this;this._scheduled||(this._scheduled=!0,wj.run(function(){return Y.flush()}))};
_.H._processMutations=function(Y){this._processSlotMutations(Y);this.flush()};
_.H._processSlotMutations=function(Y){if(Y)for(var G=0;G<Y.length;G++){var u=Y[G];u.addedNodes&&this._listenSlots(u.addedNodes);u.removedNodes&&this._unlistenSlots(u.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 Y={target:this._target,addedNodes:[],removedNodes:[]},G=a9R(this._target),u=Zy4(G,this._effectiveNodes),O=0,Q=void 0;O<u.length&&(Q=u[O]);O++)for(var M=0,t=void 0;M<Q.removed.length&&(t=Q.removed[M]);M++)Y.removedNodes.push(t);
O=0;for(Q=void 0;O<u.length&&(Q=u[O]);O++)for(M=Q.index;M<Q.index+Q.addedCount;M++)Y.addedNodes.push(G[M]);this._effectiveNodes=G;G=!1;if(Y.addedNodes.length||Y.removedNodes.length)G=!0,this.callback.call(this._target,Y);return G};
_.H._listenSlots=function(Y){for(var G=0;G<Y.length;G++){var u=Y[G];jg(u)&&u.addEventListener("slotchange",this._boundSchedule)}};
_.H._unlistenSlots=function(Y){for(var G=0;G<Y.length;G++){var u=Y[G];jg(u)&&u.removeEventListener("slotchange",this._boundSchedule)}};var J7=Element.prototype,THV=J7.matches||J7.matchesSelector||J7.mozMatchesSelector||J7.msMatchesSelector||J7.oMatchesSelector||J7.webkitMatchesSelector,La_=function(Y,G){return THV.call(Y,G)},Vb=function(Y){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(Y);
this.node=Y},I9k;
_.H=Vb.prototype;_.H.observeNodes=function(Y){return new Kak(this.node,Y)};
_.H.unobserveNodes=function(Y){Y.disconnect()};
_.H.notifyObserver=function(){};
_.H.deepContains=function(Y){if((0,_.FP)(this.node).contains(Y))return!0;var G=Y;for(Y=Y.ownerDocument;G&&G!==Y&&G!==this.node;)G=(0,_.FP)(G).parentNode||(0,_.FP)(G).host;return G===this.node};
_.H.getOwnerRoot=function(){return(0,_.FP)(this.node).getRootNode()};
_.H.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.FP)(this.node).assignedNodes({flatten:!0}):[]};
_.H.getDestinationInsertionPoints=function(){for(var Y=[],G=(0,_.FP)(this.node).assignedSlot;G;)Y.push(G),G=(0,_.FP)(G).assignedSlot;return Y};
_.H.importNode=function(Y,G){return(0,_.FP)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(Y,G)};
_.H.getEffectiveChildNodes=function(){return a9R(this.node)};
_.H.queryDistributedElements=function(Y){for(var G=this.getEffectiveChildNodes(),u=[],O=0,Q=G.length,M=void 0;O<Q&&(M=G[O]);O++)M.nodeType===Node.ELEMENT_NODE&&La_(M,Y)&&u.push(M);return u};
_.Uk.Object.defineProperties(Vb.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var Y=this.node;return Y._activeElement!==void 0?Y._activeElement:Y.activeElement}}});
var Yp=function(Y){this.event=Y};
_.Uk.Object.defineProperties(Yp.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 gyV=Vb;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var X3E=window.ShadyDOM.Wrapper,Pqe=function(){return X3E.apply(this,arguments)||this};
_.m(Pqe,X3E);Object.getOwnPropertyNames(Vb.prototype).forEach(function(Y){Y!="activeElement"&&Y!="constructor"&&(Pqe.prototype[Y]=Vb.prototype[Y])});
dPy(Pqe.prototype,["classList"]);gyV=Pqe;Object.defineProperties(Yp.prototype,{localTarget:{get:function(){var Y=this.event.currentTarget;Y=Y&&_.ax(Y).getOwnerRoot();for(var G=this.path,u=0;u<G.length;u++){var O=G[u];if(_.ax(O).getOwnerRoot()===Y)return O}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else h4j(),dPy(Vb.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),bc4();I9k=gyV;_.ax=function(Y){Y=Y||document;if(Y instanceof gyV)return Y;if(Y instanceof Yp)return Y;var G=Y.__domApi;G||(Y instanceof Event?G=new Yp(Y):G=new gyV(Y),Y.__domApi=G);return G};var kUU=/:host\(:dir\((ltr|rtl)\)\)/g,ny4=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Fal=/:dir\((?:ltr|rtl)\)/,p3l=!(!window.ShadyDOM||!window.ShadyDOM.inUse),BD=[],Gl=null,lo="",zMk=w1(function(Y){p3l||Gl||(lo=document.documentElement.getAttribute("dir"),Gl=new MutationObserver(SD4),Gl.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var G=fSV(Y);Y=function(){var u=G.call(this)||this;u.__autoDirOptOut=!1;return u};
_.m(Y,G);Y._processStyleText=function(u,O){u=G._processStyleText.call(this,u,O);!p3l&&Fal.test(u)&&(u=this._replaceDirInCssText(u),this.__activateDir=!0);return u};
Y._replaceDirInCssText=function(u){u=u.replace(kUU,':host([dir="$1"])');return u=u.replace(ny4,':host([dir="$2"]) $1')};
Y.prototype.ready=function(){G.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
Y.prototype.connectedCallback=function(){G.prototype.connectedCallback&&G.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Gl&&Gl.takeRecords().length&&SD4(),BD.push(this),this.__autoDirOptOut||this.setAttribute("dir",lo))};
Y.prototype.disconnectedCallback=function(){G.prototype.disconnectedCallback&&G.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var u=BD.indexOf(this);u>-1&&BD.splice(u,1)}};
Y.__activateDir=!1;return Y});var m41=function(Y){for(;Y;){var G=Object.getOwnPropertyDescriptor(Y,"observedAttributes");if(G)return G.get;Y=Object.getPrototypeOf(Y.prototype).constructor}return function(){return[]}};
w1(function(Y){var G=h7(Y),u=m41(G);Y=function(){return G.call(this)||this};
_.m(Y,G);Y.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:G.prototype._initializeProperties.call(this)};
Y.prototype._enableProperties=function(){this.__isUpgradeDisabled||G.prototype._enableProperties.call(this)};
Y.prototype._canApplyPropertyDefault=function(O){return G.prototype._canApplyPropertyDefault.call(this,O)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(O))};
Y.prototype.attributeChangedCallback=function(O,Q,M,t){O=="disable-upgrade"?this.__isUpgradeDisabled&&M==null&&(G.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.FP)(this).isConnected&&G.prototype.connectedCallback.call(this)):G.prototype.attributeChangedCallback.call(this,O,Q,M,t)};
Y.prototype.connectedCallback=function(){this.__isUpgradeDisabled||G.prototype.connectedCallback.call(this)};
Y.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||G.prototype.disconnectedCallback.call(this)};
_.Uk.Object.defineProperties(Y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return u.call(this).concat("disable-upgrade")}}});
return Y});var $d=!1,jGu=[],q2=[];var $PA=window.ShadyDOM,qD4=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",crt):document.readyState==="interactive"||document.readyState==="complete"?crt():window.addEventListener("DOMContentLoaded",crt);var JrI=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=""},UPu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,vUt=/@import[^;]*;/gim,MqA=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Hug=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,ESj=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,tq1=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,OuA=/^@[^\s]*keyframes/,
u8g=/\s+/g;var KG1={};var LGt=Promise.resolve();var Wa4=new Set;var rRU=/;\s*/m,x4I=/^\s*(initial)|(inherit)\s*$/,f9U=/\s*!important/,Cqe=function(){this._map={}};
Cqe.prototype.set=function(Y,G){Y=Y.trim();this._map[Y]={properties:G,dependants:{}}};
Cqe.prototype.get=function(Y){Y=Y.trim();return this._map[Y]||null};
var yRV=null,uD=function(){this._measureElement=this._currentElement=null;this._map=new Cqe};
_.H=uD.prototype;_.H.detectMixin=function(Y){Y=lSU.test(Y)||VN1.test(Y);lSU.lastIndex=0;VN1.lastIndex=0;return Y};
_.H.transformTemplate=function(Y,G){if(Y._gatheredStyle===void 0){var u=[];for(var O=Y.content.querySelectorAll("style"),Q=0;Q<O.length;Q++){var M=O[Q];if(M.hasAttribute("shady-unscoped")){if(!BVT){var t=M.textContent;if(!Wa4.has(t)){Wa4.add(t);var K=document.createElement("style");K.setAttribute("shady-unscoped","");K.textContent=t;document.head.appendChild(K)}M.parentNode.removeChild(M)}}else u.push(M.textContent),M.parentNode.removeChild(M)}(u=u.join("").trim())?(O=document.createElement("style"),
O.textContent=u,Y.content.insertBefore(O,Y.content.firstChild),u=O):u=null;Y._gatheredStyle=u}return(Y=Y._gatheredStyle)?this.JSC$11602_transformStyle(Y,G):null};
_.H.JSC$11602_transformStyle=function(Y,G){G=G===void 0?"":G;var u=I0T(Y);this.transformRules(u,G);Y.textContent=PTy(u);return u};
_.H.transformCustomStyle=function(Y){var G=this,u=I0T(Y);nSA(u,function(O){O.selector===":root"&&(O.selector="html");G.transformRule(O)});
Y.textContent=PTy(u);return u};
_.H.transformRules=function(Y,G){var u=this;this._currentElement=G;nSA(Y,function(O){u.transformRule(O)});
this._currentElement=null};
_.H.transformRule=function(Y){Y.cssText=eMR(this,Y.parsedCssText,Y);Y.selector===":root"&&(Y.selector=":host > *")};
var eMR=function(Y,G,u){G=G.replace(VN1,function(O,Q,M,t){return Y._produceCssProperties(O,Q,M,t,u)});
return Y._consumeCssProperties(G,u)};
_.H=uD.prototype;_.H._getInitialValueForProperty=function(Y){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(Y)};
_.H._fallbacksFromPreviousRules=function(Y){for(var G=this,u=Y;u.parent;)u=u.parent;var O={},Q=!1;nSA(u,function(M){(Q=Q||M===Y)||M.selector===Y.selector&&Object.assign(O,G._cssTextToMap(M.parsedCssText))});
return O};
_.H._consumeCssProperties=function(Y,G){for(var u;u=lSU.exec(Y);){var O=u[0],Q=u[1];u=u.index;var M=u+O.indexOf("@apply"),t=u+O.length;O=Y.slice(0,M);Y=Y.slice(t);M=G?this._fallbacksFromPreviousRules(G):{};Object.assign(M,this._cssTextToMap(O));Q=this._atApplyToCssProperties(Q,M);Y=O+Q+Y;lSU.lastIndex=u+Q.length}return Y};
_.H._atApplyToCssProperties=function(Y,G){Y=Y.replace(rRU,"");var u=[],O=this._map.get(Y);O||(this._map.set(Y,{}),O=this._map.get(Y));if(O){this._currentElement&&(O.dependants[this._currentElement]=!0);var Q,M=O.properties;for(Q in M){var t=G&&G[Q];O=[Q,": var(",Y,"_-_",Q];t&&O.push(",",t.replace(f9U,""));O.push(")");f9U.test(M[Q])&&O.push(" !important");u.push(O.join(""))}}return u.join("; ")};
_.H._replaceInitialOrInherit=function(Y,G){var u=x4I.exec(G);u&&(G=u[1]?this._getInitialValueForProperty(Y):"apply-shim-inherit");return G};
_.H._cssTextToMap=function(Y,G){G=G===void 0?!1:G;Y=Y.split(";");for(var u,O,Q={},M=0;M<Y.length;M++)if(u=Y[M])O=u.split(":"),O.length>1&&(u=O[0].trim(),O=O.slice(1).join(":"),G&&(O=this._replaceInitialOrInherit(u,O)),Q[u]=O);return Q};
_.H._invalidateMixinEntry=function(Y){if(yRV)for(var G in Y.dependants)G!==this._currentElement&&yRV(G)};
_.H._produceCssProperties=function(Y,G,u,O,Q){var M=this;u&&FGy(u,function(p,W){W&&M._map.get(W)&&(O="@apply "+W+";")});
if(!O)return Y;var t=this._consumeCssProperties(""+O,Q);Q=Y.slice(0,Y.indexOf("--"));var K=t=this._cssTextToMap(t,!0),L=this._map.get(G),g=L&&L.properties;g?K=Object.assign(Object.create(g),t):this._map.set(G,K);var P=[],I,k=!1;for(I in K){var n=t[I];n===void 0&&(n="initial");!g||I in g||(k=!0);P.push(G+"_-_"+I+": "+n)}k&&this._invalidateMixinEntry(L);L&&(L.properties=K);u&&(Q=Y+";"+Q);return Q+P.join("; ")+";"};
uD.prototype.detectMixin=uD.prototype.detectMixin;uD.prototype.transformStyle=uD.prototype.JSC$11602_transformStyle;uD.prototype.transformCustomStyle=uD.prototype.transformCustomStyle;uD.prototype.transformRules=uD.prototype.transformRules;uD.prototype.transformRule=uD.prototype.transformRule;uD.prototype.transformTemplate=uD.prototype.transformTemplate;uD.prototype._separator="_-_";Object.defineProperty(uD.prototype,"invalidCallback",{get:function(){return yRV},
set:function(Y){yRV=Y}});var Oq=new uD,ARl=function(){this.customStyleInterface=null;Oq.invalidCallback=a0I},Q2=function(Y){!Y.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(Y.customStyleInterface=window.ShadyCSS.CustomStyleInterface,Y.customStyleInterface.transformCallback=function(G){Oq.transformCustomStyle(G)},Y.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){Y.customStyleInterface.enqueued&&Y.flushCustomStyles()})})};
_.H=ARl.prototype;_.H.prepareTemplate=function(Y,G){Q2(this);pGt(Y)===""&&(KG1[G]=Y,G=Oq.transformTemplate(Y,G),Y._styleAst=G)};
_.H.flushCustomStyles=function(){Q2(this);if(this.customStyleInterface){var Y=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var G=0;G<Y.length;G++){var u=this.customStyleInterface.getStyleForCustomStyle(Y[G]);u&&Oq.transformCustomStyle(u)}this.customStyleInterface.enqueued=!1}}};
_.H.styleSubtree=function(Y,G){Q2(this);G&&dzY(Y,G);if(Y.shadowRoot)for(this.styleElement(Y),Y=Y.shadowRoot.children||Y.shadowRoot.childNodes,G=0;G<Y.length;G++)this.styleSubtree(Y[G]);else for(Y=Y.children||Y.childNodes,G=0;G<Y.length;G++)this.styleSubtree(Y[G])};
_.H.styleElement=function(Y){Q2(this);var G=Y.localName,u;G?G.indexOf("-")>-1?u=G:u=Y.getAttribute&&Y.getAttribute("is")||"":u=Y.is;G=KG1[u];if(!(G&&pGt(G)!==""||!G||T0T(G))){if(T0T(G)||G._applyShimValidatingVersion!==G._applyShimNextVersion)this.prepareTemplate(G,u),gSI(G);if(Y=Y.shadowRoot)if(Y=Y.querySelector("style"))Y.__cssRules=G._styleAst,Y.textContent=PTy(G._styleAst)}};
_.H.styleDocument=function(Y){Q2(this);this.styleSubtree(document.body,Y)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Mo=new ARl,oye=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(Y,G){Mo.flushCustomStyles();Mo.prepareTemplate(Y,G)},
prepareTemplateStyles:function(Y,G,u){window.ShadyCSS.prepareTemplate(Y,G,u)},
prepareTemplateDom:function(){},
styleSubtree:function(Y,G){Mo.flushCustomStyles();Mo.styleSubtree(Y,G)},
styleElement:function(Y){Mo.flushCustomStyles();Mo.styleElement(Y)},
styleDocument:function(Y){Mo.flushCustomStyles();Mo.styleDocument(Y)},
getComputedStyleValue:function(Y,G){return byu(Y,G)},
flushCustomStyles:function(){Mo.flushCustomStyles()},
nativeCss:XGT,nativeShadow:BVT,cssBuild:cD,disableRuntime:qxe};oye&&(window.ShadyCSS.CustomStyleInterface=oye)}window.ShadyCSS.ApplyShim=Oq;var idT;idT=window.ShadyCSS;_.H0=w1(function(Y){Y=uST(h7(Y));var G=DbI?Y:zMk(Y),u=m41(G),O={x:"pan-x",y:"pan-y",none:"none",all:"auto"};Y=function(){return G.call(this)||this};
_.m(Y,G);Y.prototype.created=function(){};
Y.prototype.__attributeReaction=function(Q,M,t){(this.__dataAttributes&&this.__dataAttributes[Q]||Q==="disable-upgrade")&&this.attributeChangedCallback(Q,M,t,null)};
Y.prototype.setAttribute=function(Q,M){if(aSl&&!this._legacyForceObservedAttributes){var t=this.getAttribute(Q);G.prototype.setAttribute.call(this,Q,M);this.__attributeReaction(Q,t,String(M))}else G.prototype.setAttribute.call(this,Q,M)};
Y.prototype.removeAttribute=function(Q){if(aSl&&!this._legacyForceObservedAttributes){var M=this.getAttribute(Q);G.prototype.removeAttribute.call(this,Q);this.__attributeReaction(Q,M,null)}else G.prototype.removeAttribute.call(this,Q)};
Y.prototype._enableProperties=function(){this.__isUpgradeDisabled||G.prototype._enableProperties.call(this)};
Y.prototype._canApplyPropertyDefault=function(Q){return G.prototype._canApplyPropertyDefault.call(this,Q)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Q))};
Y.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(G.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
Y.prototype.attached=function(){};
Y.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(G.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
Y.prototype.detached=function(){};
Y.prototype.attributeChangedCallback=function(Q,M,t,K){M!==t&&(Q=="disable-upgrade"?this.__isUpgradeDisabled&&t==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.FP)(this).isConnected&&this.connectedCallback()):(G.prototype.attributeChangedCallback.call(this,Q,M,t,K),this.attributeChanged(Q,M,t)))};
Y.prototype.attributeChanged=function(){};
Y.prototype._initializeProperties=function(){if(DH&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var Q=Object.getPrototypeOf(this);Q.hasOwnProperty("__hasRegisterFinished")||(this._registered(),Q.__hasRegisterFinished=!0);G.prototype._initializeProperties.call(this);this.root=this;this.created();aSl&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
Y.prototype._takeAttributes=function(){for(var Q=this.attributes,M=0,t=Q.length;M<t;M++){var K=Q[M];this.__attributeReaction(K.name,null,K.value)}};
Y.prototype._registered=function(){};
Y.prototype.ready=function(){this._ensureAttributes();G.prototype.ready.call(this)};
Y.prototype._ensureAttributes=function(){};
Y.prototype._applyListeners=function(){};
Y.prototype.serialize=function(Q){return this._serializeValue(Q)};
Y.prototype.deserialize=function(Q,M){return this._deserializeValue(Q,M)};
Y.prototype.reflectPropertyToAttribute=function(Q,M,t){this._propertyToAttribute(Q,M,t)};
Y.prototype.serializeValueToAttribute=function(Q,M,t){this._valueToNodeAttribute(t||this,Q,M)};
Y.prototype.extend=function(Q,M){if(!Q||!M)return Q||M;for(var t=Object.getOwnPropertyNames(M),K=0,L=void 0;K<t.length&&(L=t[K]);K++){var g=Object.getOwnPropertyDescriptor(M,L);g&&Object.defineProperty(Q,L,g)}return Q};
Y.prototype.mixin=function(Q,M){for(var t in M)Q[t]=M[t];return Q};
Y.prototype.chainObject=function(Q,M){Q&&M&&Q!==M&&(Q.__proto__=M);return Q};
Y.prototype.instanceTemplate=function(Q){Q=this.constructor._contentForTemplate(Q);return document.importNode(Q,!0)};
Y.prototype.fire=function(Q,M,t){t=t||{};M=M===null||M===void 0?{}:M;Q=new Event(Q,{bubbles:t.bubbles===void 0?!0:t.bubbles,cancelable:!!t.cancelable,composed:t.composed===void 0?!0:t.composed});Q.detail=M;(0,_.FP)(t.node||this).dispatchEvent(Q);return Q};
Y.prototype.listen=function(Q,M,t){Q=Q||this;var K=this.__boundListeners||(this.__boundListeners=new WeakMap),L=K.get(Q);L||(L={},K.set(Q,L));K=M+t;L[K]||(L[K]=this._addMethodEventListenerToNode(Q,M,t,this))};
Y.prototype.unlisten=function(Q,M,t){Q=Q||this;var K=this.__boundListeners&&this.__boundListeners.get(Q);t=M+t;var L=K&&K[t];L&&(this._removeEventListenerFromNode(Q,M,L),K[t]=null)};
Y.prototype.setScrollDirection=function(Q,M){_.R3(M||this,O[Q]||"auto")};
Y.prototype.$$=function(Q){return this.root.querySelector(Q)};
Y.prototype.distributeContent=function(){var Q=_.ax(this);window.ShadyDOM&&Q.shadowRoot&&ShadyDOM.flush()};
Y.prototype.getEffectiveChildNodes=function(){return _.ax(this).getEffectiveChildNodes()};
Y.prototype.queryDistributedElements=function(Q){return _.ax(this).queryDistributedElements(Q)};
Y.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(Q){return Q.nodeType===Node.ELEMENT_NODE})};
Y.prototype.getEffectiveTextContent=function(){for(var Q=this.getEffectiveChildNodes(),M=[],t=0,K;K=Q[t];t++)K.nodeType!==Node.COMMENT_NODE&&M.push(K.textContent);return M.join("")};
Y.prototype.queryEffectiveChildren=function(Q){return(Q=this.queryDistributedElements(Q))&&Q[0]};
Y.prototype.queryAllEffectiveChildren=function(Q){return this.queryDistributedElements(Q)};
Y.prototype.getContentChildNodes=function(Q){return(Q=this.root.querySelector(Q||"slot"))?_.ax(Q).getDistributedNodes():[]};
Y.prototype.getContentChildren=function(Q){return this.getContentChildNodes(Q).filter(function(M){return M.nodeType===Node.ELEMENT_NODE})};
Y.prototype.isLightDescendant=function(Q){return this!==Q&&(0,_.FP)(this).contains(Q)&&(0,_.FP)(this).getRootNode()===(0,_.FP)(Q).getRootNode()};
Y.prototype.isLocalDescendant=function(Q){return this.root===(0,_.FP)(Q).getRootNode()};
Y.prototype.scopeSubtree=function(Q,M){return sGY(Q,M===void 0?!1:M)};
Y.prototype.getComputedStyleValue=function(Q){return idT.getComputedStyleValue(this,Q)};
Y.prototype.debounce=function(Q,M,t){this._debouncers=this._debouncers||{};return this._debouncers[Q]=_.By(this._debouncers[Q],t>0?_.Ru.after(t):wj,M.bind(this))};
Y.prototype.isDebouncerActive=function(Q){this._debouncers=this._debouncers||{};Q=this._debouncers[Q];return!(!Q||!Q.isActive())};
Y.prototype.flushDebouncer=function(Q){this._debouncers=this._debouncers||{};(Q=this._debouncers[Q])&&Q.flush()};
Y.prototype.cancelDebouncer=function(Q){this._debouncers=this._debouncers||{};(Q=this._debouncers[Q])&&Q.cancel()};
Y.prototype.async=function(Q,M){return M>0?_.Ru.run(Q.bind(this),M):~wj.run(Q.bind(this))};
Y.prototype.cancelAsync=function(Q){Q<0?wj.cancel(~Q):_.Ru.cancel(Q)};
Y.prototype.create=function(Q,M){Q=document.createElement(Q);if(M)if(Q.setProperties)Q.setProperties(M);else for(var t in M)Q[t]=M[t];return Q};
Y.prototype.elementMatches=function(Q,M){return La_(M||this,Q)};
Y.prototype.toggleAttribute=function(Q,M){var t=this;arguments.length===3&&(t=arguments[2]);arguments.length==1&&(M=!t.hasAttribute(Q));if(M)return(0,_.FP)(t).setAttribute(Q,""),!0;(0,_.FP)(t).removeAttribute(Q);return!1};
Y.prototype.toggleClass=function(Q,M,t){t=t||this;arguments.length==1&&(M=!t.classList.contains(Q));M?t.classList.add(Q):t.classList.remove(Q)};
Y.prototype.transform=function(Q,M){M=M||this;M.style.webkitTransform=Q;M.style.transform=Q};
Y.prototype.translate3d=function(Q,M,t,K){this.transform("translate3d("+Q+","+M+","+t+")",K||this)};
Y.prototype.arrayDelete=function(Q,M){if(Array.isArray(Q)){if(M=Q.indexOf(M),M>=0)return Q.splice(M,1)}else if(M=I3(this,Q).indexOf(M),M>=0)return this.splice(Q,M,1);return null};
Y.prototype._logger=function(Q,M){Array.isArray(M)&&M.length===1&&Array.isArray(M[0])&&(M=M[0]);switch(Q){case "log":case "warn":case "error":console[Q].apply(console,_.c8(M))}};
Y.prototype._log=function(){this._logger("log",_.vs.apply(0,arguments))};
Y.prototype._warn=function(){this._logger("warn",_.vs.apply(0,arguments))};
Y.prototype._error=function(){this._logger("error",_.vs.apply(0,arguments))};
Y.prototype._logf=function(Q){return["[%s::%s]",this.is,Q].concat(_.c8(_.vs.apply(1,arguments)))};
_.Uk.Object.defineProperties(Y.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var Q=(0,_.FP)(this).getRootNode();return Q instanceof DocumentFragment?Q.host:Q}}});
_.Uk.Object.defineProperties(Y,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return aSl&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],qnY(this.prototype)),this.__observedAttributes):u.call(this).concat("disable-upgrade")}}});
Y.prototype.is="";return Y});Polymer.FlattenedNodesObserver=Kak;Polymer.DomApi=I9k;Polymer.EventApi=Yp;Polymer.dom=_.ax;Polymer.dom.matchesSelector=La_;Polymer.dom.flush=_.Uz;Polymer.dom.addDebouncer=_.$t;Polymer.DirMixin=zMk;Polymer.RenderStatus={beforeNextRender:_.BQI,afterNextRender:_.sk,flush:function(){for(;jGu.length||q2.length;)NQY(jGu),NQY(q2);$d=!1}};Polymer.LegacyElementMixin=_.H0;var RM2;RM2=sz._mutablePropertyChange;var w3M={properties:{mutableData:Boolean},_shouldPropertyChange:function(Y,G,u){return RM2(this,Y,G,u,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(Y,G,u){return RM2(this,Y,G,u,!0)}};
Polymer.OptionalMutableDataBehavior=w3M;var z$4={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},f0A={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},x1T=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},f0A),ZdR=(0,_.H0)(HTMLElement),dJT=function(Y,G){Y||console.warn("Polymer.Class requires `info` argument");G=G?G(ZdR):ZdR;G=CTI(Y,G,Y.behaviors);G.is=G.prototype.is=
Y.is;return G};Polymer.Class=dJT;Polymer.mixinBehaviors=function(Y,G){return CTI({},(0,_.H0)(G),Y)};
Polymer.GenerateClassFromInfo=CTI;_.Xf=function(Y){var G=typeof Y==="function"?Y:_.Xf.Class(Y);Y._legacyForceObservedAttributes&&(G.prototype._legacyForceObservedAttributes=Y._legacyForceObservedAttributes);customElements.define(G.is,G);return G};
_.Xf.Class=dJT;Polymer._polymerFn=_.Xf;var D4U=window.onLegacyPolymerFunctionDefinedCallback;D4U&&D4U();var Spj={templatize:function(Y,G){this._templatizerTemplate=Y;this.ctor=bo(Y,this,{mutableData:!!G,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(Y){return new this.ctor(Y)},
modelForElement:function(Y){return DPt(this._templatizerTemplate,Y)}};Polymer.Templatizer=Spj;_.Eq=(0,_.H0)(HTMLElement).prototype;Polymer.Base=_.Eq;var e$y=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.vD=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.m(_.vD,PolymerFakeBaseClass);var JG=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.m(JG,PolymerFakeBaseClass);var Am1=Symbol("Td"),d1a=[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 hMM=hMM||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},d4e;(function(Y){function G(N,h,q){var U=B.get(N);if(!U){if(!q)return;U=new e;B.set(N,U)}N=U.get(h);if(!N){if(!q)return;N=new e;U.set(h,N)}return N}
function u(N,h,q){if(O(N,h,q))return!0;h=k(h);return h!==null?u(N,h,q):!1}
function O(N,h,q){h=G(h,q,!1);return h===void 0?!1:!!h.has(N)}
function Q(N,h,q){if(O(N,h,q))return M(N,h,q);h=k(h);if(h!==null)return Q(N,h,q)}
function M(N,h,q){h=G(h,q,!1);if(h!==void 0)return h.get(N)}
function t(N,h){var q=K(N,h);N=k(N);if(N===null)return q;var U=t(N,h);if(U.length<=0)return q;if(q.length<=0)return U;h=new w;N=[];q=_.E(q);for(var Mj=q.next();!Mj.done;Mj=q.next())Mj=Mj.value,h.has(Mj)||(h.add(Mj),N.push(Mj));q=_.E(U);for(U=q.next();!U.done;U=q.next())U=U.value,h.has(U)||(h.add(U),N.push(U));return N}
function K(N,h){N=G(N,h,!1);var q=[];N&&N.forEach(function(U,Mj){return q.push(Mj)});
return q}
function L(N){return N===void 0}
function g(N){return typeof N==="object"?N!==null:typeof N==="function"}
function P(N){return typeof N==="function"}
function I(N){return typeof N==="symbol"?N:String(N)}
function k(N){var h=Object.getPrototypeOf(N);if(typeof N!=="function"||N===C||h!==C)return h;var q=Object.getPrototypeOf(N.prototype);if(q==null||q===Object.prototype)return h;q=q.constructor;return typeof q!=="function"||q===N?h:q}
function n(){function N(){this._keys=[];this._values=[];this._cache=h}
var h={};N.prototype={get size(){return this._keys.length},has:function(q){return q===this._cache?!0:this._find(q)>=0?(this._cache=q,!0):!1},
get:function(q){var U=this._find(q);if(U>=0)return this._cache=q,this._values[U]},
set:function(q,U){this.delete(q);this._keys.push(q);this._values.push(U);this._cache=q;return this},
delete:function(q){q=this._find(q);return q>=0?(this._keys.splice(q,1),this._values.splice(q,1),this._cache=h,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=h},
forEach:function(q){for(var U=this.size,Mj=0;Mj<U;++Mj){var Xt=this._keys[Mj],ka=this._values[Mj];this._cache=Xt;q.call(this,ka,Xt,this)}},
_find:function(q){for(var U=this._keys,Mj=U.length,Xt=0;Xt<Mj;++Xt)if(U[Xt]===q)return Xt;return-1}};
return N}
function p(){function N(){this._map=new e}
N.prototype={get size(){return this._map.length},has:function(h){return this._map.has(h)},
add:function(h){this._map.set(h,h);return this},
delete:function(h){return this._map.delete(h)},
clear:function(){this._map.clear()},
forEach:function(h,q){this._map.forEach(h,q)}};
return N}
function W(){function N(){this._key=q()}
function h(Tg,iy){for(var hY=0;hY<iy;++hY)Tg[hY]=Math.random()*255|0}
function q(){do{if(Mj)var Tg=Mj.randomBytes(16);else typeof Uint8Array==="function"?(Tg=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Tg):h(Tg,16)):(Tg=Array(16),h(Tg,16));Tg[6]=Tg[6]&79|64;Tg[8]=Tg[8]&191|128;for(var iy="",hY=0;hY<16;++hY){var dA=Tg[hY];if(hY===4||hY===6||hY===8)iy+="-";dA<16&&(iy+="0");iy+=dA.toString(16).toLowerCase()}Tg="@@WeakMap@@"+iy}while(Xt.call(ka,Tg));ka[Tg]=!0;return Tg}
function U(Tg,iy){if(!Xt.call(Tg,aU)){if(!iy)return;Object.defineProperty(Tg,aU,{value:Object.create(null)})}return Tg[aU]}
var Mj=typeof global!=="undefined"&&typeof hMM==="object"&&typeof require==="function"&&require("crypto"),Xt=Object.prototype.hasOwnProperty,ka={},aU=q();N.prototype={has:function(Tg){return(Tg=U(Tg,!1))?this._key in Tg:!1},
get:function(Tg){if(Tg=U(Tg,!1))return Tg[this._key]},
set:function(Tg,iy){U(Tg,!0)[this._key]=iy;return this},
delete:function(Tg){return(Tg=U(Tg,!1))&&this._key in Tg?delete Tg[this._key]:!1},
clear:function(){this._key=q()}};
return N}
var C=Object.getPrototypeOf(Function),e=typeof Map==="function"?Map:n(),w=typeof Set==="function"?Set:p(),B=new (typeof WeakMap==="function"?WeakMap:W());Y.decorate=function(N,h,q,U){if(L(U)){if(L(q)){if(!Array.isArray(N))throw new TypeError;if(!P(h))throw new TypeError;for(q=N.length-1;q>=0;--q)if(U=(0,N[q])(h),!L(U)){if(!P(U))throw new TypeError;h=U}return h}if(!Array.isArray(N))throw new TypeError;if(!g(h))throw new TypeError;q=I(q);for(U=N.length-1;U>=0;--U)(0,N[U])(h,q)}else{if(Array.isArray(N))if(g(h)){if(L(q))throw new TypeError;
if(!g(U))throw new TypeError;}else throw new TypeError;else throw new TypeError;q=I(q);for(var Mj=N.length-1;Mj>=0;--Mj){var Xt=(0,N[Mj])(h,q,U);if(!L(Xt)){if(!g(Xt))throw new TypeError;U=Xt}}return U}};
Y.metadata=function(N,h){return function(q,U){if(L(U)){if(!P(q))throw new TypeError;G(q,void 0,!0).set(N,h)}else{if(!g(q))throw new TypeError;U=I(U);G(q,U,!0).set(N,h)}}};
Y.defineMetadata=function(N,h){var q;if(g(h))L(q)||(q=I(q));else throw new TypeError;G(h,q,!0).set("parameters",N)};
Y.hasMetadata=function(N,h,q){if(g(h))L(q)||(q=I(q));else throw new TypeError;return u(N,h,q)};
Y.hasOwnMetadata=function(N,h,q){if(g(h))L(q)||(q=I(q));else throw new TypeError;return O(N,h,q)};
Y.getMetadata=function(N,h,q){if(g(h))L(q)||(q=I(q));else throw new TypeError;return Q(N,h,q)};
Y.getOwnMetadata=function(N,h,q){if(g(h))L(q)||(q=I(q));else throw new TypeError;return M(N,h,q)};
Y.getMetadataKeys=function(N,h){if(g(N))L(h)||(h=I(h));else throw new TypeError;return t(N,h)};
Y.getOwnMetadataKeys=function(N,h){if(g(N))L(h)||(h=I(h));else throw new TypeError;return K(N,h)};
Y.deleteMetadata=function(N,h,q){if(g(h))L(q)||(q=I(q));else throw new TypeError;var U=G(h,q,!1);if(!L(U)){if(!U.delete(N))return!1;if(U.size>0)return!0;N=B.get(h);N.delete(q);if(N.size>0)return!0;B.delete(h);return!0}};
(function(N){if(typeof N.Reflect!=="undefined"){if(N.Reflect!==Y)for(var h in Y)N.Reflect[h]=Y[h]}else N.Reflect=Y})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(d4e||(d4e={}));var Ilj=self;var bdI=[0,_.bO,_.j5,_.bO];var S3V=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(S3V,_.Ps);var NHX=_.yG(S3V,[0,_.qP,_.Ba,bdI,_.j5,_.ca]);var Vk4=[0,_.sD,-3,_.ca,_.qP,_.bO,_.QAR,_.sD,HbE,Gol,ZB,_.S5,_.bO,function(){return jDk},
_.j5],jDk=[0,_.Ba,function(){return Vk4},
_.qP,14,_.sD];_.qz(_.GN,_.Ey);_.H=_.GN.prototype;_.H.start=function(){this.stop();this.usingListeners_=!1;var Y=l9M(this),G=BHe(this);Y&&!G&&this.JSC$11645_win_.mozRequestAnimationFrame?(this.JSC$11645_id_=_.yn(this.JSC$11645_win_,"MozBeforePaint",this.callback_),this.JSC$11645_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11645_id_=Y&&G?Y.call(this.JSC$11645_win_,this.callback_):this.JSC$11645_win_.setTimeout(xUI(this.callback_),20)};
_.H.stop=function(){if(this.isActive()){var Y=l9M(this),G=BHe(this);Y&&!G&&this.JSC$11645_win_.mozRequestAnimationFrame?tR(this.JSC$11645_id_):Y&&G?G.call(this.JSC$11645_win_,this.JSC$11645_id_):this.JSC$11645_win_.clearTimeout(this.JSC$11645_id_)}this.JSC$11645_id_=null};
_.H.fire=function(){this.stop();this.JSC$11647_doAction_()};
_.H.isActive=function(){return this.JSC$11645_id_!=null};
_.H.JSC$11647_doAction_=function(){this.usingListeners_&&this.JSC$11645_id_&&tR(this.JSC$11645_id_);this.JSC$11645_id_=null;this.JSC$11645_listener_.call(this.handler_,_.$M())};
_.H.disposeInternal=function(){this.stop();_.GN.superClass_.disposeInternal.call(this)};
var l9M=function(Y){Y=Y.JSC$11645_win_;return Y.requestAnimationFrame||Y.webkitRequestAnimationFrame||Y.mozRequestAnimationFrame||Y.oRequestAnimationFrame||Y.msRequestAnimationFrame||null},BHe=function(Y){Y=Y.JSC$11645_win_;
return Y.cancelAnimationFrame||Y.cancelRequestAnimationFrame||Y.webkitCancelRequestAnimationFrame||Y.mozCancelRequestAnimationFrame||Y.oCancelRequestAnimationFrame||Y.msCancelRequestAnimationFrame||null};_.JR=function(Y,G,u){_.Ey.call(this);this.JSC$11648_listener_=u!=null?Y.bind(u):Y;this.JSC$11648_interval_=G;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11648_timer_=null};
_.m(_.JR,_.Ey);_.H=_.JR.prototype;_.H.fire=function(Y){this.args_=arguments;this.JSC$11648_timer_||this.pauseCount_?this.shouldFire_=!0:$4M(this)};
_.H.stop=function(){this.JSC$11648_timer_&&(_.OI.clearTimeout(this.JSC$11648_timer_),this.JSC$11648_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.H.pause=function(){this.pauseCount_++};
_.H.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11648_timer_||(this.shouldFire_=!1,$4M(this))};
_.H.disposeInternal=function(){_.Ey.prototype.disposeInternal.call(this);this.stop()};
var $4M=function(Y){Y.JSC$11648_timer_=rf(function(){Y.JSC$11648_timer_=null;Y.shouldFire_&&!Y.pauseCount_&&(Y.shouldFire_=!1,$4M(Y))},Y.JSC$11648_interval_);
var G=Y.args_;Y.args_=null;Y.JSC$11648_listener_.apply(null,G)};var q31=function(Y,G){this.childIterator_=Y[_.OI.Symbol.iterator]();this.mapFn_=G};
q31.prototype[Symbol.iterator]=function(){return this};
q31.prototype.next=function(){var Y=this.childIterator_.next();return{value:Y.done?void 0:this.mapFn_.call(void 0,Y.value),done:Y.done}};
var sDU=function(Y,G){return new q31(Y,G)};var U1j={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 vS1=/#(.)(.)(.)/,$1U=/^#(?:[0-9a-f]{3}){1,2}$/i,YRI=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;var cR2={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},u6=cR2;u6=cR2;var pR1,U4_,vyl;pR1=function(Y,G){switch(G){case 1:return Y%4!=0||Y%100==0&&Y%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
U4_=function(Y,G,u,O,Q){Y=new Date(Y,G,u);Q=Q||0;return Y.valueOf()+(((O!==void 0?O:3)-Q+7)%7-((Y.getDay()+6)%7-Q+7)%7)*864E5};
_.tg=function(Y,G,u){typeof Y==="number"?(this.date=vyl(Y,G||0,u||1),JRV(this,u||1)):_.$a(Y)?(this.date=vyl(Y.getFullYear(),Y.getMonth(),Y.getDate()),JRV(this,Y.getDate())):(this.date=new Date(_.$M()),Y=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),JRV(this,Y))};
vyl=function(Y,G,u){G=new Date(Y,G,u);Y>=0&&Y<100&&G.setFullYear(G.getFullYear()-1900);return G};
_.H=_.tg.prototype;_.H.firstDayOfWeek_=u6.FIRSTDAYOFWEEK;_.H.firstWeekCutOffDay_=u6.FIRSTWEEKCUTOFFDAY;_.H.clone=function(){var Y=new _.tg(this.date);Y.firstDayOfWeek_=this.firstDayOfWeek_;Y.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return Y};
_.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(Y){this.date=new Date(Y.getFullYear(),Y.getMonth(),Y.getDate())};
_.H.setFullYear=function(Y){this.date.setFullYear(Y)};
_.H.setYear=function(Y){this.setFullYear(Y)};
_.H.setMonth=function(Y){this.date.setMonth(Y)};
_.H.setDate=function(Y){this.date.setDate(Y)};
_.H.setTime=function(Y){this.date.setTime(Y)};
_.H.setUTCFullYear=function(Y){this.date.setUTCFullYear(Y)};
_.H.setUTCMonth=function(Y){this.date.setUTCMonth(Y)};
_.H.setUTCDate=function(Y){this.date.setUTCDate(Y)};
_.H.add=function(Y){if(Y.years||Y.months){var G=this.getMonth()+Y.months+Y.years*12,u=this.getYear()+Math.floor(G/12);G%=12;G<0&&(G+=12);var O=Math.min(pR1(u,G),this.getDate());this.setDate(1);this.setFullYear(u);this.setMonth(G);this.setDate(O)}Y.days&&(u=this.getYear(),G=u>=0&&u<=99?-1900:0,Y=new Date((new Date(u,this.getMonth(),this.getDate(),12)).getTime()+Y.days*864E5),this.setDate(1),this.setFullYear(Y.getFullYear()+G),this.setMonth(Y.getMonth()),this.setDate(Y.getDate()),JRV(this,Y.getDate()))};
_.H.JSC$11661_toIsoString=function(Y){var G=this.getFullYear(),u=G<0?"-":G>=1E4?"+":"";return[u+_.OS(Math.abs(G),u?6:4),_.OS(this.getMonth()+1,2),_.OS(this.getDate(),2)].join(Y?"-":"")};
_.H.equals=function(Y){return!(!Y||this.getYear()!=Y.getYear()||this.getMonth()!=Y.getMonth()||this.getDate()!=Y.getDate())};
_.H.toString=function(){return this.JSC$11661_toIsoString()};
var JRV=function(Y,G){Y.getDate()!=G&&Y.date.setUTCHours(Y.date.getUTCHours()+(Y.getDate()<G?1:-1))};
_.tg.prototype.valueOf=function(){return this.date.valueOf()};var as=function(Y,G,u,O,Q){this.reversed=!!G;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!u;Y&&K3(this,Y,O);this.depth=Q!=void 0?Q:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.qz(as,pG);var K3=function(Y,G,u,O){if(Y.node=G)Y.tagType=typeof u==="number"?u:Y.node.nodeType!=1?0:Y.reversed?-1:1;typeof O==="number"&&(Y.depth=O)};
_.H=as.prototype;_.H.JSC$11676_copyFrom=function(Y){this.node=Y.node;this.tagType=Y.tagType;this.depth=Y.depth;this.reversed=Y.reversed;this.constrained=Y.constrained};
_.H.clone=function(){return new as(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 m_;var Y=this.node;var G=this.reversed?-1:1;if(this.tagType==G){var u=this.reversed?Y.lastChild:Y.firstChild;u?K3(this,u):K3(this,Y,G*-1)}else(u=this.reversed?Y.previousSibling:Y.nextSibling)?K3(this,u):K3(this,Y.parentNode,G*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(Y=this.node)?zR(Y):m_};
_.H.equals=function(Y){return Y.node==this.node&&(!this.node||Y.tagType==this.tagType)};
_.H.splice=function(Y){var G=this.node,u=this.reversed?1:-1;this.tagType==u&&(this.tagType=u*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;as.prototype.next.call(this);this.reversed=!this.reversed;u=_.ly(arguments[0])?arguments[0]:arguments;for(var O=u.length-1;O>=0;O--)_.o9(u[O],G);_.Oy(G)};var Yj1=function(){},Tl=function(Y){for(var G=[],u=Y.getTextRangeCount(),O=0;O<u;O++)G.push(Y.getTextRange(O));
return G};
Yj1.prototype.isReversed=function(){return!1};
Yj1.prototype.getWindow=function(){return kI(_.nm(this.JSC$11678_getStartNode()))};
var GS4=function(Y,G){as.call(this,Y,G,!0)};
_.qz(GS4,as);var L3=function(Y,G,u,O,Q){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!Q;if(Y){this.startNode_=Y;this.startOffset_=G;this.endNode_=u;this.endOffset_=O;if(Y.nodeType==1&&Y.tagName!="BR")if(Y=Y.childNodes,G=Y[G])this.startNode_=G,this.startOffset_=0;else{Y.length&&(this.startNode_=_.RU(Y));var M=!0}u.nodeType==1&&((this.endNode_=u.childNodes[O])?this.endOffset_=0:this.endNode_=u)}as.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);M&&this.next()};
_.qz(L3,GS4);_.H=L3.prototype;_.H.JSC$11684_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()?m_:L3.superClass_.next.call(this)};
_.H.JSC$11676_copyFrom=function(Y){this.startNode_=Y.startNode_;this.endNode_=Y.endNode_;this.startOffset_=Y.startOffset_;this.endOffset_=Y.endOffset_;this.isReversed_=Y.isReversed_;L3.superClass_.JSC$11676_copyFrom.call(this,Y)};
_.H.clone=function(){var Y=new L3(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);Y.JSC$11676_copyFrom(this);return Y};Gjt.prototype.__iterator__=function(){return new L3(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};_.qz(ul,Gjt);var umT=function(Y){var G=_.nm(Y).createRange();if(Y.nodeType==3)G.setStart(Y,0),G.setEnd(Y,Y.length);else if(yV(Y)||Y.nodeType==3){for(var u,O=Y;(u=O.firstChild)&&(yV(u)||u.nodeType==3);)O=u;G.setStart(O,0);for(O=Y;(u=O.lastChild)&&(yV(u)||u.nodeType==3);)O=u;G.setEnd(O,O.nodeType==1?O.childNodes.length:O.length)}else u=Y.parentNode,Y=Array.prototype.indexOf.call(u.childNodes,Y),G.setStart(u,Y),G.setEnd(u,Y+1);return G},OzU=function(Y,G,u,O){var Q=_.nm(Y).createRange();
Q.setStart(Y,G);Q.setEnd(u,O);return Q};
_.H=ul.prototype;_.H.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.H.getContainer=function(){return this.range_.commonAncestorContainer};
_.H.compareBrowserRangeEndpoints=function(Y,G,u){return this.range_.compareBoundaryPoints(u==1?G==1?_.OI.Range.START_TO_START:_.OI.Range.START_TO_END:G==1?_.OI.Range.END_TO_START:_.OI.Range.END_TO_END,Y)};
_.H.isCollapsed=function(){return this.range_.collapsed};
_.H.select=function(Y){this.selectInternal(kI(_.nm(this.range_.startContainer)).getSelection(),Y)};
_.H.selectInternal=function(Y){Y.removeAllRanges();Y.addRange(this.range_)};
_.H.insertNode=function(Y,G){var u=this.range_.cloneRange();u.collapse(G);u.insertNode(Y);u.detach();return Y};
_.H.collapse=function(Y){this.range_.collapse(Y)};_.qz(Ot,ul);Ot.prototype.selectInternal=function(Y,G){!G||this.isCollapsed()?Ot.superClass_.selectInternal.call(this,Y,G):(Y.collapse(this.range_.endContainer,this.range_.endOffset),Y.extend(this.range_.startContainer,this.range_.startOffset))};_.qz(Qv,ul);Qv.prototype.compareBrowserRangeEndpoints=function(Y,G,u){return Qv.superClass_.compareBrowserRangeEndpoints.call(this,Y,G,u)};
Qv.prototype.selectInternal=function(Y,G){G?Y.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):Y.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var gk=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},HVy;
_.qz(gk,Yj1);HVy=function(Y,G){var u=new gk;u.browserRangeWrapper_=Y;u.isReversed_=!!G;return u};
_.QS_=function(Y){Y=_.Mt?new Qv(umT(Y)):_.Hc?new Ot(umT(Y)):new ul(umT(Y));return HVy(Y)};
_.KA=function(Y,G,u,O){var Q=new gk;Q.isReversed_=MIy(Y,G,u,O);if(_.sy(Y)&&!yV(Y)){var M=Y.parentNode;G=Array.prototype.indexOf.call(M.childNodes,Y);Y=M}_.sy(u)&&!yV(u)&&(M=u.parentNode,O=Array.prototype.indexOf.call(M.childNodes,u),u=M);Q.isReversed_?(Q.startNode_=u,Q.startOffset_=O,Q.endNode_=Y,Q.endOffset_=G):(Q.startNode_=Y,Q.startOffset_=G,Q.endNode_=u,Q.endOffset_=O);return Q};
_.H=gk.prototype;_.H.clone=function(){var Y=new gk;Y.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();Y.startNode_=this.startNode_;Y.startOffset_=this.startOffset_;Y.endNode_=this.endNode_;Y.endOffset_=this.endOffset_;Y.isReversed_=this.isReversed_;return Y};
_.H.JSC$11678_getType=function(){return"text"};
_.H.getBrowserRangeObject=function(){return Xa(this).range_};
_.H.getTextRangeCount=function(){return 1};
_.H.getTextRange=function(){return this};
var Xa=function(Y){var G;if(!(G=Y.browserRangeWrapper_)){G=Y.JSC$11678_getStartNode();var u=Y.JSC$11678_getStartOffset(),O=Y.JSC$11678_getEndNode(),Q=Y.JSC$11678_getEndOffset();G=_.Mt?new Qv(OzU(G,u,O,Q)):_.Hc?new Ot(OzU(G,u,O,Q)):new ul(OzU(G,u,O,Q));G=Y.browserRangeWrapper_=G}return G};
_.H=gk.prototype;_.H.getContainer=function(){return Xa(this).getContainer()};
_.H.JSC$11678_getStartNode=function(){return this.startNode_||(this.startNode_=Xa(this).range_.startContainer)};
_.H.JSC$11678_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=Xa(this).range_.startOffset};
_.H.JSC$11678_getEndNode=function(){return this.endNode_||(this.endNode_=Xa(this).range_.endContainer)};
_.H.JSC$11678_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=Xa(this).range_.endOffset};
_.H.isReversed=function(){return this.isReversed_};
_.H.JSC$11678_containsRange=function(Y,G){if(Y.JSC$11678_getType()=="text"){var u=Xa(this);Y=Xa(Y);G=G&&!Y.isCollapsed();Y=Y.range_;u=G?u.compareBrowserRangeEndpoints(Y,0,1)>=0&&u.compareBrowserRangeEndpoints(Y,1,0)<=0:u.compareBrowserRangeEndpoints(Y,0,0)>=0&&u.compareBrowserRangeEndpoints(Y,1,1)<=0}else u=!1;return u};
_.H.isCollapsed=function(){return Xa(this).isCollapsed()};
_.H.JSC$11678_getText=function(){return Xa(this).range_.toString()};
_.H.__iterator__=function(){return new L3(this.JSC$11678_getStartNode(),this.JSC$11678_getStartOffset(),this.JSC$11678_getEndNode(),this.JSC$11678_getEndOffset())};
_.H.select=function(){Xa(this).select(this.isReversed_)};
_.H.JSC$11678_removeContents=function(){var Y=Xa(this).range_;Y.extractContents();if(Y.startContainer.hasChildNodes()&&(Y=Y.startContainer.childNodes[Y.startOffset])){var G=Y.previousSibling;I4E(Y)==""&&_.Oy(Y);G&&I4E(G)==""&&_.Oy(G)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.H.insertNode=function(Y,G){Y=Xa(this).insertNode(Y,G);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return Y};
_.H.collapse=function(Y){Y=this.isReversed()?!Y:Y;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(Y);Y?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var MrM=function(){};
_.qz(MrM,Yj1);MrM.prototype.JSC$11678_containsRange=function(Y,G){var u=Tl(this);Y=Tl(Y);return(G?Bj:_.Rdg)(Y,function(O){return Bj(u,function(Q){return Q.JSC$11678_containsRange(O,G)})})};
MrM.prototype.insertNode=function(Y,G){G?_.Am(Y,this.JSC$11678_getStartNode()):_.o9(Y,this.JSC$11678_getEndNode());return Y};var HzU,Ehl=HF().JSC$9647_document_.documentElement;HzU=Ehl.requestFullscreen?"fullscreenchange":Ehl.webkitRequestFullscreen?"webkitfullscreenchange":Ehl.mozRequestFullScreen?"mozfullscreenchange":Ehl.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var to=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.qz(to,MrM);_.H=to.prototype;_.H.clone=function(){var Y=new to;Y.browserRanges_=_.Vj(this.browserRanges_);return Y};
_.H.JSC$11678_getType=function(){return"mutli"};
_.H.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.H.getTextRangeCount=function(){return this.browserRanges_.length};
_.H.getTextRange=function(Y){this.ranges_[Y]||(this.ranges_[Y]=HVy(u_1(this.browserRanges_[Y])));return this.ranges_[Y]};
_.H.getContainer=function(){if(!this.container_){for(var Y=[],G=this.getTextRangeCount(),u=0;u<G;u++)Y.push(this.getTextRange(u).getContainer());this.container_=Kfl.apply(null,Y)}return this.container_};
var P0=function(Y){Y.sortedRanges_||(Y.sortedRanges_=Tl(Y),Y.sortedRanges_.sort(function(G,u){var O=G.JSC$11678_getStartNode();G=G.JSC$11678_getStartOffset();var Q=u.JSC$11678_getStartNode();u=u.JSC$11678_getStartOffset();return O==Q&&G==u?0:MIy(O,G,Q,u)?1:-1}));
return Y.sortedRanges_};
_.H=to.prototype;_.H.JSC$11678_getStartNode=function(){return P0(this)[0].JSC$11678_getStartNode()};
_.H.JSC$11678_getStartOffset=function(){return P0(this)[0].JSC$11678_getStartOffset()};
_.H.JSC$11678_getEndNode=function(){return _.RU(P0(this)).JSC$11678_getEndNode()};
_.H.JSC$11678_getEndOffset=function(){return _.RU(P0(this)).JSC$11678_getEndOffset()};
_.H.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.H.JSC$11678_getText=function(){return Tl(this).map(function(Y){return Y.JSC$11678_getText()}).join("")};
_.H.__iterator__=function(){return new Is(this)};
_.H.select=function(){var Y=this.getWindow().getSelection();Y.removeAllRanges();for(var G=this.getTextRangeCount(),u=0;u<G;u++)Y.addRange(this.getTextRange(u).getBrowserRangeObject())};
_.H.JSC$11678_removeContents=function(){Tl(this).forEach(function(Y){Y.JSC$11678_removeContents()})};
_.H.collapse=function(Y){if(!this.isCollapsed()){var G=Y?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;G.collapse(Y);this.ranges_=[G];this.sortedRanges_=[G];this.browserRanges_=[G.getBrowserRangeObject()]}};
var Is=function(Y){this.iterators_=null;this.currentIdx_=0;Y&&(this.iterators_=P0(Y).map(function(G){return _.FZt(G)}));
as.call(this,Y?this.JSC$11684_getStartNode():null,!1,!0)};
_.qz(Is,GS4);_.H=Is.prototype;_.H.JSC$11684_getStartNode=function(){return this.iterators_[0].JSC$11684_getStartNode()};
_.H.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.H.next=function(){for(;this.currentIdx_<this.iterators_.length;){var Y=this.iterators_[this.currentIdx_],G=Y.next();if(G.done)this.currentIdx_++;else return K3(this,Y.node,Y.tagType,Y.depth),G}return m_};
_.H.JSC$11676_copyFrom=function(Y){this.iterators_=_.Vj(Y.iterators_);Is.superClass_.JSC$11676_copyFrom.call(this,Y)};
_.H.clone=function(){var Y=new Is(null);Y.JSC$11676_copyFrom(this);return Y};var kp=function(){_.C7.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.tP)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.tP)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.tP)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.tP)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.tP)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.tP)(this.dispatchProgressEvent_,this)};
_.qz(kp,_.C7);kp.prototype.abort=function(){try{this.reader_.abort()}catch(Y){throw new Iaa(Y,"aborting read");}};
kp.prototype.getError=function(){return this.reader_.error&&new Iaa(this.reader_.error,"reading file")};
kp.prototype.dispatchProgressEvent_=function(Y){this.dispatchEvent(new kCy(Y,this))};
kp.prototype.disposeInternal=function(){kp.superClass_.disposeInternal.call(this);delete this.reader_};
var K2R=function(Y){var G=new kp,u=trX(G);G.reader_.readAsArrayBuffer(Y);return u},av1=function(Y){var G=new kp,u=trX(G);
G.reader_.readAsDataURL(Y);return u},trX=function(Y){var G=new XY;
Y.listen("loadend",_.H2(function(u,O){var Q=O.reader_.result,M=O.getError();Q==null||M?u.errback(M):u.callback(Q);O.dispose()},G,Y));
return G};var n3=function(){_.C7.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11718_eventHandler_=new _.ae(this);this.JSC$11718_isInitialized_=!1};
_.qz(n3,_.C7);var TEk=new _.Pp("d"),L2l=new _.Pp("beforedragstart"),gh1=new _.Pp("dragstart"),XxT=new _.Pp("beforedragmove"),Pvl=new _.Pp("dragmove"),Ive=new _.Pp("beforedragend"),kSI=new _.Pp("dragend"),nhR=new _.Pp("e");n3.prototype.isDragging=function(){return!!this.JSC$11718_dragger_};
var F21=function(Y,G){G.dlgGrowthDirection_=0;G.dlgDragHoverClass_=void 0;G.dlgDragPermission=0;Y.dragLists_.push(G)},pxM=function(Y,G){Y.getHandleForDragItem_=G};
n3.prototype.init=function(){if(!this.JSC$11718_isInitialized_){for(var Y=this.dragLists_.length,G=0;G<Y;G++)for(var u=_.iT(this.dragLists_[G]),O=u.length,Q=0;Q<O;++Q){var M=u[Q],t=this.getHandleForDragItem_(M),K=_.cu(t);this.dragItemForHandle_[K]=M;this.dragItemHoverClasses_&&(this.JSC$11718_eventHandler_.listen(M,"mouseover",this.handleDragItemMouseover_),this.JSC$11718_eventHandler_.listen(M,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11718_eventHandler_.listen(t,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11718_eventHandler_.listen(t,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(M);this.JSC$11718_eventHandler_.listen(t,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11718_isInitialized_=!0}};
n3.prototype.disposeInternal=function(){this.JSC$11718_eventHandler_.dispose();for(var Y=this.dragLists_.length,G=0;G<Y;G++){var u=this.dragLists_[G];u.dlgGrowthDirection_=void 0;u.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;zsV(this);n3.superClass_.disposeInternal.call(this)};
var m5I=function(Y,G){for(var u=Y.dragLists_.length,O=0;O<u;O++){var Q=Y.dragLists_[O];Q.dlgBounds_=tI1(Q)}u=Y.dragItems_.length;for(O=0;O<u;O++)Q=Y.dragItems_[O],Q!=G&&(Q.dlgBounds_=tI1(Q))};
_.H=n3.prototype;
_.H.handlePotentialDragStart_=function(Y){var G=_.cu(Y.currentTarget);G=this.dragItemForHandle_[G];if(G.parentElement.dlgDragPermission!=2){this.currDragItem_=G;a:{G=this.currDragItem_;for(var u=G.cloneNode(!0),O=Qn("TEXTAREA",G),Q=Qn("TEXTAREA",u),M=0;M<O.length;M++)Q[M].value=O[M].value;switch(G.tagName){case "TR":G=_.fu("TABLE",null,_.fu("TBODY",null,u));break a;case "TD":case "TH":G=_.fu("TABLE",null,_.fu("TBODY",null,_.fu("TR",null,u)));break a;case "TEXTAREA":u.value=G.value;default:G=u;break a}G=
void 0}this.draggerEl_=G;this.draggerElClasses_&&NO(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.nm(this.currDragItem_).body.appendChild(this.draggerEl_);u=_.Fi(this.currDragItem_);G=this.draggerEl_;O=_.Fi(G);if(u instanceof _.AD){var t=u.y;u=u.x}D0(G,G.offsetLeft+(u-O.x),G.offsetTop+(Number(t)-O.y));this.JSC$11718_dragger_=new _.fa(this.draggerEl_);_.$tl(this.JSC$11718_dragger_,this.hysteresisDistance_);
_.yn(this.JSC$11718_dragger_,"start",this.handleDragStart_,!1,this);_.yn(this.JSC$11718_dragger_,"end",this.handleDragEnd_,!1,this);_.yn(this.JSC$11718_dragger_,"earlycancel",this.JSC$11720_cleanup_,!1,this);this.dispatchEvent(new Fa(TEk,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$11718_dragger_));this.JSC$11718_dragger_.startDrag(Y)}};
_.H.handleDragStart_=function(Y){if(this.dispatchEvent(new Fa(L2l,this,Y.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.H7I(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?NO(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var G=mAE(this.draggerEl_);this.draggerEl_.halfWidth=G.width/2;this.draggerEl_.halfHeight=G.height/2;G=this.draggerEl_.getBoundingClientRect();
var u=Y.clientY,O=qt2(this.JSC$11718_dragger_,Y.clientX);if(O>G.right){var Q=this.currDragItem_.getBoundingClientRect();this.JSC$11718_dragger_.deltaX=O-(O-Q.left)/Q.width*G.width}u=snX(this.JSC$11718_dragger_,u);u>G.bottom&&(this.JSC$11718_dragger_.deltaY+=u-G.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";m5I(this,this.currDragItem_);this.currDragItem_.style.display="";_.yn(this.JSC$11718_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Fa(gh1,
this,Y.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11718_dragger_))}else Y.preventDefault(),this.JSC$11720_cleanup_()};
_.H.handleDragMove_=function(Y){var G=_.Fi(this.draggerEl_);G=new _.AD(G.x+this.draggerEl_.halfWidth,G.y+this.draggerEl_.halfHeight);a:{var u=null;if(this.currDragItem_.style.display!="none"){u=this.currDragItem_.parentNode;var O=tI1(u);if(W24(G,O))break a}O=this.dragLists_.length;for(var Q=0;Q<O;Q++){var M=this.dragLists_[Q];if(M!=u&&W24(G,M.dlgBounds_)){u=M;break a}}u=null}if(u){if(u==null)throw Error("ae");O=0;Q=!1;M=void 0;switch(u.dlgGrowthDirection_){case 0:O=G.y;var t=rf_;var K=x5R;break;case 4:Q=
!0;case 2:O=G.x;t=fvU;K=x5R;break;case 5:Q=!0;case 3:O=G.x,t=Cv_,K=yfT}for(var L=null,g,P=_.iT(u),I=P.length,k=0;k<I;k++){var n=P[k];if(n!=this.currDragItem_){var p=t(n.dlgBounds_);if(Q){var W=esI(n,G);M===void 0&&(M=W);K(O,p)&&(g==void 0||W<M||W==M&&(K(p,g)||p==g))&&(L=n,g=p);W<M&&(M=W)}else K(O,p)&&(g==void 0||K(p,g))&&(L=n,g=p)}}t=L!==null&&esI(L,G)>M?null:L}else t=null;if(!this.dispatchEvent(new Fa(XxT,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$11718_dragger_,G,u,t)))return!1;if(u&&u.dlgDragPermission!=
1)this.currDragItem_.parentNode==u&&_.H7I(this.currDragItem_)==t||u.insertBefore(this.currDragItem_,t),this.currDragItem_.style.display="",u.dlgDragHoverClass_&&_.oD(u,u.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",K=this.dragLists_.length,g=0;g<K;g++)O=this.dragLists_[g],O.dlgDragHoverClass_&&_.AR(O,O.dlgDragHoverClass_);u!=this.currHoverList_&&(this.currHoverList_=u,m5I(this,this.currDragItem_));this.dispatchEvent(new Fa(Pvl,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$11718_dragger_,
G,u,t));return!1};
_.H.JSC$11720_cleanup_=function(){zsV(this);this.JSC$11718_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var Y=this.dragLists_.length,G=0;G<Y;G++)this.dragLists_[G].dlgBounds_=null;Y=this.dragItems_.length;for(G=0;G<Y;G++)this.dragItems_[G].dlgBounds_=null};
_.H.handleDragEnd_=function(Y){if(!this.dispatchEvent(new Fa(Ive,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$11718_dragger_)))return!1;zsV(this);this.dispatchEvent(new Fa(kSI,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$11718_dragger_));this.JSC$11720_cleanup_();return!0};
var zsV=function(Y){_.ZM(Y.JSC$11718_dragger_);var G=Y.draggerEl_&&Y.draggerEl_.parentElement;Y.draggerEl_&&_.Oy(Y.draggerEl_);Y.currDragItem_&&Y.currDragItem_.style.display=="none"&&(Y.origList_.insertBefore(Y.currDragItem_,Y.origNextItem_),Y.currDragItem_.style.display="");Y.currDragItemClasses_&&Y.currDragItem_?G5e(Y.currDragItem_,Y.currDragItemClasses_||[]):Y.currDragItem_&&(Y.currDragItem_.style.visibility="");for(var u=Y.dragLists_.length,O=0;O<u;O++){var Q=Y.dragLists_[O];Q.dlgDragHoverClass_&&
_.AR(Q,Q.dlgDragHoverClass_)}G&&Y.dispatchEvent(new Fa(nhR,Y,null,Y.currDragItem_,Y.draggerEl_,Y.JSC$11718_dragger_))};
_.H=n3.prototype;_.H.getHandleForDragItem_=function(Y){return Y};
_.H.handleDragItemMouseover_=function(Y){NO(Y.currentTarget,this.dragItemHoverClasses_||[])};
_.H.handleDragItemMouseout_=function(Y){G5e(Y.currentTarget,this.dragItemHoverClasses_||[])};
_.H.handleDragItemHandleMouseover_=function(Y){NO(Y.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.H.handleDragItemHandleMouseout_=function(Y){G5e(Y.currentTarget,this.dragItemHandleHoverClasses_||[])};
var W24=function(Y,G){return Y.x>G.left&&Y.x<G.left+G.width&&Y.y>G.top&&Y.y<G.top+G.height},esI=function(Y,G){Y=Y.dlgBounds_;
return Math.abs(G.y-(Y.top+(Y.height-1)/2))},rf_=function(Y){return Y.top+Y.height-1},fvU=function(Y){return Y.left+Y.width-1},Cv_=function(Y){return Y.left||0},x5R=function(Y,G){return Y<G},yfT=function(Y,G){return Y>G},Fa=function(Y,G,u,O,Q,M){_.lI.call(this,Y);
this.event=u;this.currDragItem=O;this.draggerEl=Q;this.JSC$11722_dragger=M};
_.qz(Fa,_.lI);_.qz(LA,_.Ey);var AfE=new _.AD(0,0);LA.prototype.JSC$11726_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
LA.prototype.JSC$11726_onMouseMove=function(Y){var G=this.containerIsActuallyContent_?AfE:MU(HF(this.containerNode_)),u=this.horizontalScrolling_?this.calculateScrollDelta(Y.clientX+G.x,this.scrollBounds_.left,this.scrollBounds_.width):0,O=this.calculateScrollDelta(Y.clientY+G.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=u;this.scrollDelta_.y=O;!(u=!u&&!O)&&(u=this.constrainScroll_)&&(u=Y.clientX+G.x,Y=Y.clientY+G.y,G=this.containerBounds_,u=!(G.left<=u&&G.left+G.width>=
u&&G.top<=Y&&G.top+G.height>=Y));u?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
LA.prototype.calculateScrollDelta=function(Y,G,u){var O=0;Y<G?O=-8:Y>G+u&&(O=8);return O};
LA.prototype.disposeInternal=function(){LA.superClass_.disposeInternal.call(this);this.JSC$11724_eventHandler_.dispose();this.scrollTimer_.dispose()};var oh2={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"}}},p3=oh2;p3=oh2;var zl={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 AH=function(Y){if(typeof Y=="number"){var G=new KVj;G.standardOffset_=Y;var u=Y;if(u==0)u="Etc/GMT";else{var O=["Etc/GMT",u<0?"-":"+"];u=Math.abs(u);O.push(Math.floor(u/60)%100);u%=60;u!=0&&O.push(":",_.OS(u,2));u=O.join("")}G.timeZoneId_=u;u=Y;u==0?u="UTC":(O=["UTC",u<0?"+":"-"],u=Math.abs(u),O.push(Math.floor(u/60)%100),u%=60,u!=0&&O.push(":",u),u=O.join(""));Y=izE(Y);G.tzNames_=[u,u];G.tzNamesExt_={STD_LONG_NAME_GMT:Y,STD_GENERIC_LOCATION:Y};G.transitions_=[];return G}G=new KVj;G.timeZoneId_=
Y.id;G.standardOffset_=-Y.std_offset;G.tzNames_=Y.names;G.tzNamesExt_=Y.names_ext;G.transitions_=Y.transitions;return G},izE=function(Y){var G=["GMT"];
G.push(Y<=0?"+":"-");Y=Math.abs(Y);G.push(_.OS(Math.floor(Y/60)%100,2),":",_.OS(Y%60,2));return G.join("")},Rs_=function(Y,G){G=Date.UTC(G.getUTCFullYear(),G.getUTCMonth(),G.getUTCDate(),G.getUTCHours(),G.getUTCMinutes())/36E5;
for(var u=0;u<Y.transitions_.length&&G>=Y.transitions_[u];)u+=2;return u==0?0:Y.transitions_[u-1]},wx1=function(Y,G){Y=Y.standardOffset_-Rs_(Y,G);
return Y===-1440?0:Y};var oi=function(Y,G){this.patternParts_=[];this.JSC$11737_dateTimeSymbols_=G||u6;typeof Y=="number"?ZzM(this,Y):D5R(this,Y)},hs4=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],m3=function(Y){return Y.getHours?Y.getHours():0},D5R=function(Y,G){for(qaT&&(G=G.replace(/\u200f/g,""));G;){for(var u=G,O=0;O<hs4.length;++O){var Q=G.match(hs4[O]);
if(Q){var M=Q[0];G=G.substring(M.length);O==0&&(M=="''"?M="'":(M=M.substring(1,Q[1]=="'"?M.length-1:M.length),M=M.replace(/''/g,"'")));Y.patternParts_.push({text:M,type:O});break}}if(u===G)throw Error("be`"+G);}};
oi.prototype.format=function(Y,G){if(!Y)throw Error("ce");var u=G?(Y.getTimezoneOffset()-wx1(G,Y))*6E4:0,O=u?new Date(Y.getTime()+u):Y,Q=O;G&&O.getTimezoneOffset()!=Y.getTimezoneOffset()&&(O=new Date(O.getTime()+(O.getTimezoneOffset()-Y.getTimezoneOffset())*6E4),Q=new Date(Y.getTime()+(u+(u>0?-864E5:864E5))));u=[];for(var M=0;M<this.patternParts_.length;++M){var t=this.patternParts_[M].text;1==this.patternParts_[M].type?u.push(d54(this,t,Y,O,Q,G)):u.push(t)}return u.join("")};
var ZzM=function(Y,G){if(G<4)var u=Y.JSC$11737_dateTimeSymbols_.DATEFORMATS[G];else if(G<8)u=Y.JSC$11737_dateTimeSymbols_.TIMEFORMATS[G-4];else if(G<12)u=Y.JSC$11737_dateTimeSymbols_.DATETIMEFORMATS[G-8],u=u.replace("{1}",Y.JSC$11737_dateTimeSymbols_.DATEFORMATS[G-8]),u=u.replace("{0}",Y.JSC$11737_dateTimeSymbols_.TIMEFORMATS[G-8]);else if(G===12)u=Y.JSC$11737_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(G===13)u=Y.JSC$11737_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{ZzM(Y,10);return}D5R(Y,u)},W0=function(Y,G){G=String(G);
Y=Y.JSC$11737_dateTimeSymbols_||u6;if(Y.ZERODIGIT!==void 0&&!$iy){for(var u=[],O=0;O<G.length;O++){var Q=G.charCodeAt(O);u.push(48<=Q&&Q<=57?String.fromCharCode(Y.ZERODIGIT+Q-48):G.charAt(O))}G=u.join("")}return G},$iy=!1,qaT=!1,SjR=function(Y,G,u,O){u=u.getFullYear();
u<=0&&O&&(u=1-u);return W0(Y,bzT(u,G))},bzT=function(Y,G){G==2&&(Y%=100);
Y<0&&G++;return _.OS(Y,G)},rk=function(Y){if(!(Y.getHours&&Y.getSeconds&&Y.getMinutes))throw Error("de");
},NER=function(Y,G){rk(G);
G=m3(G);return Y.JSC$11737_dateTimeSymbols_.AMPMS[G>=12&&G<24?1:0]},d54=function(Y,G,u,O,Q,M){var t=G.length;
switch(G.charAt(0)){case "G":return u=O.getFullYear()>0?1:0,t>=4?Y.JSC$11737_dateTimeSymbols_.ERANAMES[u]:Y.JSC$11737_dateTimeSymbols_.ERAS[u];case "y":return SjR(Y,t,O,!0);case "Y":return u=(new Date(U4_(O.getFullYear(),O.getMonth(),O.getDate(),Y.JSC$11737_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,Y.JSC$11737_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),t==2&&(u%=100),W0(Y,bzT(u,t));case "u":return SjR(Y,t,O,!1);case "M":a:switch(u=O.getMonth(),t){case 5:t=Y.JSC$11737_dateTimeSymbols_.NARROWMONTHS[u];
break a;case 4:t=Y.JSC$11737_dateTimeSymbols_.MONTHS[u];break a;case 3:t=Y.JSC$11737_dateTimeSymbols_.SHORTMONTHS[u];break a;default:t=W0(Y,_.OS(u+1,t))}return t;case "k":return rk(Q),W0(Y,_.OS(m3(Q)||24,t));case "S":return W0(Y,(Q.getMilliseconds()/1E3).toFixed(Math.min(3,t)).slice(2)+(t>3?_.OS(0,t-3):""));case "E":return u=O.getDay(),t>=4?Y.JSC$11737_dateTimeSymbols_.WEEKDAYS[u]:Y.JSC$11737_dateTimeSymbols_.SHORTWEEKDAYS[u];case "a":return NER(Y,Q);case "b":return NER(Y,Q);case "B":return NER(Y,
Q);case "h":return rk(Q),W0(Y,_.OS(m3(Q)%12||12,t));case "K":return rk(Q),W0(Y,_.OS(m3(Q)%12,t));case "H":return rk(Q),W0(Y,_.OS(m3(Q),t));case "c":a:switch(u=O.getDay(),t){case 5:t=Y.JSC$11737_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[u];break a;case 4:t=Y.JSC$11737_dateTimeSymbols_.STANDALONEWEEKDAYS[u];break a;case 3:t=Y.JSC$11737_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[u];break a;default:t=W0(Y,_.OS(u,1))}return t;case "L":a:switch(u=O.getMonth(),t){case 5:t=Y.JSC$11737_dateTimeSymbols_.STANDALONENARROWMONTHS[u];
break a;case 4:t=Y.JSC$11737_dateTimeSymbols_.STANDALONEMONTHS[u];break a;case 3:t=Y.JSC$11737_dateTimeSymbols_.STANDALONESHORTMONTHS[u];break a;default:t=W0(Y,_.OS(u+1,t))}return t;case "Q":return u=Math.floor(O.getMonth()/3),t<4?Y.JSC$11737_dateTimeSymbols_.SHORTQUARTERS[u]:Y.JSC$11737_dateTimeSymbols_.QUARTERS[u];case "d":return W0(Y,_.OS(O.getDate(),t));case "m":return rk(Q),W0(Y,_.OS(Q.getMinutes?Q.getMinutes():0,t));case "s":return rk(Q),W0(Y,_.OS(Q.getSeconds(),t));case "v":return(M||AH(u.getTimezoneOffset())).timeZoneId_;
case "V":return Y=M||AH(u.getTimezoneOffset()),t<=2?Y.timeZoneId_:Rs_(Y,u)>0?Y.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?Y.tzNamesExt_.DST_GENERIC_LOCATION:Y.tzNamesExt_.DST_GENERIC_LOCATION:Y.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?Y.tzNamesExt_.STD_GENERIC_LOCATION:Y.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return u=U4_(Q.getFullYear(),Q.getMonth(),Q.getDate(),Y.JSC$11737_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,Y.JSC$11737_dateTimeSymbols_.FIRSTDAYOFWEEK),W0(Y,_.OS(Math.floor(Math.round((u-(new Date((new Date(u)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,t));case "z":return Y=M||AH(u.getTimezoneOffset()),t<4?Y.tzNames_[Rs_(Y,u)>0?2:0]:Y.tzNames_[Rs_(Y,u)>0?3:1];case "Z":return G=M||AH(u.getTimezoneOffset()),t<4?(t=-wx1(G,u),Y=[t<0?"-":"+"],t=Math.abs(t),Y.push(_.OS(Math.floor(t/60)%100,2),_.OS(t%60,2)),t=Y.join("")):t=W0(Y,izE(wx1(G,u))),t;default:return""}};var jS1=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,VrE=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,ByY=function(Y){this.patternParts_=[];this.JSC$11746_dateTimeSymbols_=u6;if(typeof Y=="number"){Y>11&&(Y=10);if(Y<4)var G=this.JSC$11746_dateTimeSymbols_.DATEFORMATS[Y];else Y<8?G=this.JSC$11746_dateTimeSymbols_.TIMEFORMATS[Y-4]:(G=this.JSC$11746_dateTimeSymbols_.DATETIMEFORMATS[Y-8],G=G.replace("{1}",this.JSC$11746_dateTimeSymbols_.DATEFORMATS[Y-8]),G=G.replace("{0}",this.JSC$11746_dateTimeSymbols_.TIMEFORMATS[Y-
8]));lv4(this,G)}else lv4(this,Y)},lv4=function(Y,G){for(var u=!1,O="",Q=0;Q<G.length;Q++){var M=G.charAt(Q);
if(jS1.test(M))for(O.length>0&&(Y.patternParts_.push({text:O,count:0,abutStart:!1,numeric:!1}),O=""),Y.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});Q<G.length-1&&G.charAt(Q+1)==" ";)Q++;else if(u)M=="'"?Q+1<G.length&&G.charAt(Q+1)=="'"?(O+="'",Q++):u=!1:O+=M;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(M)>=0){O.length>0&&(Y.patternParts_.push({text:O,count:0,abutStart:!1,numeric:!1}),O="");for(var t=G.charAt(Q),K=Q+1;K<G.length&&G.charAt(K)==t;)K++;t=K-Q;t<=0?K=!1:(K="MydhHmsSDkK".indexOf(M),
K=K>0||K==0&&t<3);Y.patternParts_.push({text:M,count:t,abutStart:!1,numeric:K});Q+=t-1}else M=="'"?Q+1<G.length&&G.charAt(Q+1)=="'"?(O+="'",Q++):u=!0:O+=M}O.length>0&&Y.patternParts_.push({text:O,count:0,abutStart:!1,numeric:!1});G=!1;for(u=0;u<Y.patternParts_.length;u++)Y.patternParts_[u].numeric?!G&&u+1<Y.patternParts_.length&&Y.patternParts_[u+1].numeric&&(G=!0,Y.patternParts_[u].abutStart=!0):G=!1};
ByY.prototype.parse=function(Y,G,u){var O=!1,Q=!1;u&&(O=u.predictive||!1,Q=u.validate||!1);if(O)for(u=0;u<this.patternParts_.length;u++){var M=this.patternParts_[u];if(M.count>0&&("abBhHkKm".indexOf(M.text.charAt(0))<0||M.count>2||M.abutStart))throw Error("ee`"+M.text.charAt(0));}M=new BE2;u=[0];M.dayPeriodIndex=-1;for(var t=0;t<this.patternParts_.length&&!(O&&u[0]>=Y.length);t++){if(this.patternParts_[t].count==0){a:{var K=Y;var L=u,g=this.patternParts_[t],P=O;if(g.text.match(jS1)!=null){if(g=L[0],
$5R(K,L),L[0]>g){K=!0;break a}}else{if(K.indexOf(g.text,L[0])==L[0]){L[0]+=g.text.length;K=!0;break a}if(P&&g.text.indexOf(K.substring(L[0]))==0){L[0]+=K.length-L[0];K=!0;break a}}K=!1}if(K)continue;return 0}if(this.patternParts_[t].abutStart){a:{L=Y;g=u;P=t;var I=g[0],k=0;for(K=P;K<this.patternParts_.length;K++){var n=this.patternParts_[K],p=n.count;if(p===0)break;if(K==P&&(p-=k,k++,p==0)){K=0;break a}var W=K>P&&n.numeric,C=g[0];if(!qje(this,L,g,n,p,M,!1)||W&&g[0]-C<p)K=P-1,g[0]=I}K-=P}if(K<=0)return 0;
t+=K-1}else if(!qje(this,Y,u,this.patternParts_[t],0,M,O))return 0}a:{Y=Q;if(G==null)throw Error("fe");M.era!=void 0&&M.year!=void 0&&M.era==0&&M.year>0&&(M.year=-(M.year-1));M.year!=void 0&&G.setFullYear(M.year);O=G.getDate();G.setDate(1);M.month!=void 0&&G.setMonth(M.month);M.day!=void 0?G.setDate(M.day):(Q=pR1(G.getFullYear(),G.getMonth()),G.setDate(O>Q?Q:O));typeof G.setHours==="function"&&(M.hours==void 0&&(M.hours=G.getHours()),M.hours<12&&(M.ampm!=void 0&&M.ampm>0?M.hours+=12:M.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(M.dayPeriodName)||["night1","night2"].includes(M.dayPeriodName)&&M.hours>=6)&&(M.hours+=12)),G.setHours(M.hours));typeof G.setMinutes==="function"&&M.minutes!=void 0&&G.setMinutes(M.minutes);typeof G.setSeconds==="function"&&M.seconds!=void 0&&G.setSeconds(M.seconds);typeof G.setMilliseconds==="function"&&M.milliseconds!=void 0&&G.setMilliseconds(M.milliseconds);if(Y&&(M.year&&M.year!=G.getFullYear()||M.month&&M.month!=
G.getMonth()||M.day&&M.day!=G.getDate()||M.hours&&M.hours>=24||M.minutes&&M.minutes>=60||M.seconds&&M.seconds>=60||M.milliseconds&&M.milliseconds>=1E3))G=!1;else{M.tzOffset!=void 0&&G.setTime(G.getTime()+(M.tzOffset-G.getTimezoneOffset())*60*1E3);M.ambiguousYear&&(Y=new Date,Y.setFullYear(Y.getFullYear()-80),G.getTime()<Y.getTime()&&G.setFullYear(Y.getFullYear()+100));if(M.dayOfWeek!=void 0)if(M.day==void 0)M=(7+M.dayOfWeek-G.getDay())%7,M>3&&(M-=7),Y=G.getMonth(),G.setDate(G.getDate()+M),G.getMonth()!=
Y&&G.setDate(G.getDate()+(M>0?-7:7));else if(M.dayOfWeek!=G.getDay()){G=!1;break a}G=!0}}return G?u[0]:0};
var qje=function(Y,G,u,O,Q,M,t){$5R(G,u);if(O.numeric&&Q>0&&u[0]+Q>G.length)return!1;switch(O.text.charAt(0)){case "G":return C3(G,u,[Y.JSC$11746_dateTimeSymbols_.ERAS],function(K){return M.era=K}),!0;
case "M":case "L":return sS4(Y,G,u,Q,O,M);case "E":return C3(G,u,[Y.JSC$11746_dateTimeSymbols_.WEEKDAYS,Y.JSC$11746_dateTimeSymbols_.SHORTWEEKDAYS],function(K){return M.dayOfWeek=K});
case "B":case "b":return Q=[],Y=[[].concat(Y.JSC$11746_dateTimeSymbols_.AMPMS)],Q.push("isAm"),Q.push("isPm"),G=C3(G,u,Y,function(K){return M.dayPeriodIndex=K},t),M.dayPeriodName=Q[M.dayPeriodIndex],t?G:!0;
case "a":return G=C3(G,u,[Y.JSC$11746_dateTimeSymbols_.AMPMS],function(K){return M.ampm=K},t),t?G:!0;
case "y":return cfX(Y,G,u,O,Q,M);case "Q":return C3(G,u,[Y.JSC$11746_dateTimeSymbols_.QUARTERS,Y.JSC$11746_dateTimeSymbols_.SHORTQUARTERS],function(K){M.month=K*3;M.day=1});
case "d":return y2(Y,G,u,O,Q,function(K){M.day=K}),!0;
case "S":return U51(Y,G,u,Q,M);case "h":case "K":case "H":case "k":return G=y2(Y,G,u,O,Q,function(K){M.hours=O.text.charAt(0)==="h"&&K===12?0:K},t),t?G:!0;
case "m":return G=y2(Y,G,u,O,Q,function(K){M.minutes=K},t),t?G:!0;
case "s":return y2(Y,G,u,O,Q,function(K){M.seconds=K}),!0;
case "z":case "Z":case "v":return vh2(Y,G,u,M);default:return!1}},cfX=function(Y,G,u,O,Q,M){var t=u[0];
Q=eX(Y,G,u,Q);Q===null&&(Q=eX(Y,G,u,0,!0));if(Q===null)return!1;Q>=0&&u[0]-t==2&&O.count==2?(Y=Q,G=(new Date).getFullYear()-80,u=G%100,M.ambiguousYear=Y==u,Y+=Math.floor(G/100)*100+(Y<u?100:0),M.year=Y):M.year=Q;return!0},sS4=function(Y,G,u,O,Q,M){return Q.numeric&&y2(Y,G,u,Q,O,function(t){M.month=t-1})?!0:C3(G,u,[Y.JSC$11746_dateTimeSymbols_.MONTHS,
Y.JSC$11746_dateTimeSymbols_.STANDALONEMONTHS,Y.JSC$11746_dateTimeSymbols_.SHORTMONTHS,Y.JSC$11746_dateTimeSymbols_.STANDALONESHORTMONTHS],function(t){M.month=t})},U51=function(Y,G,u,O,Q){var M=u[0];
Y=eX(Y,G,u,O);if(Y===null)return!1;u=u[0]-M;Q.milliseconds=u<3?Y*Math.pow(10,3-u):Math.round(Y/Math.pow(10,u-3));return!0},vh2=function(Y,G,u,O){G.indexOf("GMT",u[0])==u[0]&&(u[0]+=3);
if(u[0]>=G.length)return O.tzOffset=0,!0;var Q=u[0],M=eX(Y,G,u,0,!0);if(M===null)return!1;if(u[0]<G.length&&G.charAt(u[0])==":"){var t=M*60;u[0]++;M=eX(Y,G,u,0);if(M===null)return!1;t+=M}else t=M,t=t<24&&u[0]-Q<=3?t*60:t%100+t/100*60;O.tzOffset=-t;return!0},y2=function(Y,G,u,O,Q,M,t){t=t||!1;
var K=u[0];Y=eX(Y,G,u,Q);if(Y===null)return!1;if(t&&u[0]-K<O.count){if(u[0]<G.length)return!1;Y*=Math.pow(10,O.count-(u[0]-K))}M(Y);return!0},C3=function(Y,G,u,O,Q){Q=Q||!1;
for(var M,t=0;t<u.length;t++){M=G;for(var K=u[t],L=Q,g=0,P=null,I=Y.substring(M[0]).toLowerCase(),k=0;k<K.length;k++){var n=K[k].toLowerCase();if(L&&n.indexOf(I)==0){g=I.length;P=k;break}K[k].length>g&&I.indexOf(n)==0&&(g=K[k].length,P=k)}P!==null&&(M[0]+=g);M=P;if(M!==null)return O(M),!0}return!1},$5R=function(Y,G){(Y=Y.substring(G[0]).match(VrE))&&(G[0]+=Y[0].length)},eX=function(Y,G,u,O,Q){G=O>0?G.substring(0,u[0]+O):G;
Q=Q||!1;if(Y.JSC$11746_dateTimeSymbols_.ZERODIGIT){O=[];for(var M=u[0];M<G.length;M++){var t=G.charCodeAt(M)-Y.JSC$11746_dateTimeSymbols_.ZERODIGIT;O.push(0<=t&&t<=9?String.fromCharCode(t+48):G.charAt(M))}G=O.join("")}else G=G.substring(u[0]);Y=G.match(new RegExp("^"+(Q?"[+-]?":"")+"\\d+"));if(!Y)return null;u[0]+=Y[0].length;return parseInt(Y[0],10)},BE2=function(){};
BE2.prototype.ambiguousYear=!1;var Jf2;
Jf2={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 YeU={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}"]};
YeU={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 Gil=function(){var Y={type:"unit",style:"narrow"};this.listType_=Y&&Y.type?Y.type:"conjunction";this.listStyle_=Y&&Y.style?Y.style:"long";this.listSymbols_=YeU;Y=0;switch(this.listStyle_){case "short":Y=1;break;case "narrow":Y=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[Y];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[Y];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[Y];this.listEndPattern_=
this.listSymbols_.AND_END[Y];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[Y];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[Y];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[Y];this.listEndPattern_=this.listSymbols_.OR_END[Y];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[Y],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[Y],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[Y],this.listEndPattern_=this.listSymbols_.UNIT_END[Y]}};
Gil.prototype.format=function(Y){return u9R(this,Y)};
var u9R=function(Y,G){var u=G.length;switch(u){case 0:return"";case 1:return String(G[0]);case 2:return Y.listTwoPattern_.replace("{0}",String(G[0])).replace("{1}",String(G[1]))}for(var O=Y.listStartPattern_.replace("{0}",String(G[0])).replace("{1}",String(G[1])),Q=2;Q<u-1;++Q)O=Y.listMiddlePattern_.replace("{0}",O).replace("{1}",String(G[Q]));return Y.listEndPattern_.replace("{0}",O).replace("{1}",String(G[u-1]))};var OKT={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"},QdE=OKT,M0V=OKT;M0V=QdE=OKT;var EC_,Ag,Rs,wBy,iD,HKU;
_.CU=function(Y,G,u,O){var Q;if(Q=G){a:if(G&&G.length===3){for(Q=0;Q<3;Q++){var M=G[Q];if(M<"A"||M>"Z"&&M<"a"||M>"z"){Q=!1;break a}}Q=!0}else Q=!1;Q=!Q}if(Q)throw new TypeError("ge");this.intlCurrencyCode_=G?G.toUpperCase():null;this.currencyStyle_=u||0;this.overrideNumberFormatSymbols_=O||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_=Ag(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof Y==="number")switch(Y){case 1:iD(this,Ag(this).DECIMAL_PATTERN);break;case 2:iD(this,Ag(this).SCIENTIFIC_PATTERN);break;case 3:iD(this,Ag(this).PERCENT_PATTERN);break;case 4:Y=Ag(this).CURRENCY_PATTERN;G=["0"];if(u=
zl[Rs(this)]){u=u[0]&7;if(u>0)for(G.push("."),O=0;O<u;O++)G.push("0");Y=Y.replace(/0.00/g,G.join(""))}iD(this,Y);break;case 5:HKU(this,1);break;case 6:HKU(this,2);break;default:throw Error("je");}else iD(this,Y)};
EC_=!1;Ag=function(Y){return Y.overrideNumberFormatSymbols_||(EC_?M0V:QdE)};
Rs=function(Y){return Y.intlCurrencyCode_||Ag(Y).DEF_CURRENCY_CODE};
wBy=function(Y,G){if(G>308)throw Error("ie`"+G);Y.maximumFractionDigits_=G;return Y};
iD=function(Y,G){var u=[0];Y.positivePrefix_=t0E(Y,G,u);for(var O=u[0],Q=-1,M=0,t=0,K=0,L=-1,g=G.length,P=!0;u[0]<g&&P;u[0]++)switch(G.charAt(u[0])){case "#":t>0?K++:M++;L>=0&&Q<0&&L++;break;case "0":if(K>0)throw Error("pe`"+G);t++;L>=0&&Q<0&&L++;break;case ",":L>0&&Y.groupingArray_.push(L);L=0;break;case ".":if(Q>=0)throw Error("qe`"+G);Q=M+t+K;break;case "E":if(Y.useExponentialNotation_)throw Error("re`"+G);Y.useExponentialNotation_=!0;Y.minExponentDigits_=0;u[0]+1<g&&G.charAt(u[0]+1)=="+"&&(u[0]++,
Y.useSignForPositiveExponent_=!0);for(;u[0]+1<g&&G.charAt(u[0]+1)=="0";)u[0]++,Y.minExponentDigits_++;if(M+t<1||Y.minExponentDigits_<1)throw Error("se`"+G);P=!1;break;default:u[0]--,P=!1}t==0&&M>0&&Q>=0&&(t=Q,t==0&&t++,K=M-t,M=t-1,t=1);if(Q<0&&K>0||Q>=0&&(Q<M||Q>M+t)||L==0)throw Error("te`"+G);K=M+t+K;Y.maximumFractionDigits_=Q>=0?K-Q:0;Q>=0&&(Y.minimumFractionDigits_=M+t-Q,Y.minimumFractionDigits_<0&&(Y.minimumFractionDigits_=0));Y.minimumIntegerDigits_=(Q>=0?Q:K)-M;Y.useExponentialNotation_&&(Y.maximumIntegerDigits_=
M+Y.minimumIntegerDigits_,Y.maximumFractionDigits_==0&&Y.minimumIntegerDigits_==0&&(Y.minimumIntegerDigits_=1));Y.groupingArray_.push(Math.max(0,L));Y.decimalSeparatorAlwaysShown_=Q==0||Q==K;O=u[0]-O;Y.positiveSuffix_=t0E(Y,G,u);u[0]<G.length&&G.charAt(u[0])==";"?(u[0]++,Y.multiplier_!=1&&(Y.negativePercentSignExpected_=!0),Y.negativePrefix_=t0E(Y,G,u),u[0]+=O,Y.negativeSuffix_=t0E(Y,G,u)):(Y.negativePrefix_+=Y.positivePrefix_,Y.negativeSuffix_+=Y.positiveSuffix_)};
HKU=function(Y,G){Y.compactStyle_=G;iD(Y,Ag(Y).DECIMAL_PATTERN);Y.minimumFractionDigits_=0;wBy(Y,2);if(Y.minimumFractionDigits_>0)throw Error("he");Y.significantDigits_=2};
_.CU.prototype.parse=function(Y,G){G=G||[0];if(this.compactStyle_!==0)throw Error("ke");Y=Y.replace(/ |\u202f/g,"\u00a0");var u=Y.indexOf(this.positivePrefix_,G[0])==G[0],O=Y.indexOf(this.negativePrefix_,G[0])==G[0];u&&O&&(this.positivePrefix_.length>this.negativePrefix_.length?O=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(u=!1));u?G[0]+=this.positivePrefix_.length:O&&(G[0]+=this.negativePrefix_.length);if(Y.indexOf(Ag(this).INFINITY,G[0])==G[0]){G[0]+=Ag(this).INFINITY.length;var Q=
Infinity}else{Q=Y;var M=!1,t=!1,K=!1,L=-1,g=1,P=Ag(this).DECIMAL_SEP,I=Ag(this).GROUP_SEP,k=Ag(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("le");I=I.replace(/\u202f/g,"\u00a0");for(var n="";G[0]<Q.length;G[0]++){var p=Q.charAt(G[0]),W=KiI(this,p);if(W>=0&&W<=9)n+=W,K=!0;else if(p==P.charAt(0)){if(M||t)break;n+=".";M=!0}else if(p==I.charAt(0)&&("\u00a0"!=I.charAt(0)||G[0]+1<Q.length&&KiI(this,Q.charAt(G[0]+1))>=0)){if(M||t)break}else if(p==k.charAt(0)){if(t)break;n+="E";t=!0;L=G[0]}else if(p==
"+"||p=="-"){if(K&&L!=G[0]-1)break;n+=p}else if(this.multiplier_==1&&p==Ag(this).PERCENT.charAt(0)){if(g!=1)break;g=100;if(K){G[0]++;break}}else if(this.multiplier_==1&&p==Ag(this).PERMILL.charAt(0)){if(g!=1)break;g=1E3;if(K){G[0]++;break}}else break}this.multiplier_!=1&&(g=this.multiplier_);Q=parseFloat(n)/g}if(u){if(Y.indexOf(this.positiveSuffix_,G[0])!=G[0])return NaN;G[0]+=this.positiveSuffix_.length}else if(O){if(Y.indexOf(this.negativeSuffix_,G[0])!=G[0])return NaN;G[0]+=this.negativeSuffix_.length}return O?
-Q:Q};
_.CU.prototype.format=function(Y){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("me");if(isNaN(Y))return Ag(this).NAN;var G=[];var u=Y;if(this.compactStyle_==0)u=wk;else{u=Math.abs(u);var O=ajl(this,u<=1?0:TwM(u)).divisorBase;u=ajl(this,O+TwM(LiR(this,Zc(u,-O)).intValue))}Y=Zc(Y,-u.divisorBase);(O=Y<0||Y==0&&1/Y<0)?u.negative_prefix?G.push(u.negative_prefix):(G.push(u.prefix),G.push(this.negativePrefix_)):(G.push(u.prefix),G.push(this.positivePrefix_));if(isFinite(Y))if(Y*=
O?-1:1,Y*=this.multiplier_,this.useExponentialNotation_){var Q=Y;if(Q==0)gCU(this,Q,this.minimumIntegerDigits_,G),XE2(this,0,G);else{var M=Math.floor(Math.log(Q)/Math.log(10)+2E-15);Q=Zc(Q,-M);var t=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(t=M%this.maximumIntegerDigits_,t<0&&(t=this.maximumIntegerDigits_+t),Q=Zc(Q,t),M-=t,t=1):this.minimumIntegerDigits_<1?(M++,Q=Zc(Q,-1)):(M-=this.minimumIntegerDigits_-1,Q=Zc(Q,this.minimumIntegerDigits_-
1));gCU(this,Q,t,G);XE2(this,M,G)}}else gCU(this,Y,this.minimumIntegerDigits_,G);else G.push(Ag(this).INFINITY);O?u.negative_suffix?G.push(u.negative_suffix):(isFinite(Y)&&G.push(u.suffix),G.push(this.negativeSuffix_)):(isFinite(Y)&&G.push(u.suffix),G.push(this.positiveSuffix_));return G.join("")};
var LiR=function(Y,G){var u=Zc(G,Y.maximumFractionDigits_);Y.significantDigits_>0&&(u=P5_(u,Y.significantDigits_,Y.maximumFractionDigits_));u=Math.round(u);if(isFinite(u)){var O=Math.floor(Zc(u,-Y.maximumFractionDigits_));u=Math.floor(u-Zc(O,Y.maximumFractionDigits_));if(u<0||u>=Zc(1,Y.maximumFractionDigits_))O=Math.round(G),u=0}else O=G,u=0;return{intValue:O,fracValue:u}},gCU=function(Y,G,u,O){if(Y.minimumFractionDigits_>Y.maximumFractionDigits_)throw Error("me");
O||(O=[]);G=LiR(Y,G);var Q=G.intValue,M=G.fracValue,t=Y.minimumFractionDigits_>0||M>0||!1;G=Y.minimumFractionDigits_;t&&(G=Y.minimumFractionDigits_);for(var K="",L=Q;L>1E20;)K="0"+K,L=Math.round(Zc(L,-1));K=L+K;var g=Ag(Y).DECIMAL_SEP;L=Ag(Y).ZERO_DIGIT.codePointAt(0);var P=K.length,I=0;if(Q>0||u>0){for(Q=P;Q<u;Q++)O.push(String.fromCodePoint(L));if(Y.groupingArray_.length>=2)for(u=1;u<Y.groupingArray_.length;u++)I+=Y.groupingArray_[u];u=P-I;if(u>0){Q=Y.groupingArray_;I=P=0;for(var k,n=Ag(Y).GROUP_SEP,
p=K.length,W=0;W<p;W++)if(O.push(String.fromCodePoint(L+Number(K.charAt(W)))),p-W>1)if(k=Q[I],W<u){var C=u-W;(k===1||k>0&&C%k===1)&&O.push(n)}else I<Q.length&&(W===u?I+=1:k===W-u-P+1&&(O.push(n),P+=k,I+=1))}else{u=K;K=Y.groupingArray_;Q=Ag(Y).GROUP_SEP;k=u.length;n=[];for(P=K.length-1;P>=0&&k>0;P--){I=K[P];for(p=0;p<I&&k-p-1>=0;p++)n.push(String.fromCodePoint(L+Number(u.charAt(k-p-1))));k-=I;k>0&&n.push(Q)}O.push.apply(O,n.reverse())}}else t||O.push(String.fromCodePoint(L));(Y.decimalSeparatorAlwaysShown_||
t)&&O.push(g);M=String(M);t=M.split("e+");t.length==2&&(M=String(P5_(parseFloat(t[0]),Y.significantDigits_,1)),M=M.replace(".",""),M+=(0,_.sB_)("0",parseInt(t[1],10)-M.length+1));Y.maximumFractionDigits_+1>M.length&&(M="1"+(0,_.sB_)("0",Y.maximumFractionDigits_-M.length)+M);for(Y=M.length;M.charAt(Y-1)=="0"&&Y>G+1;)Y--;for(G=1;G<Y;G++)O.push(String.fromCodePoint(L+Number(M.charAt(G))))},XE2=function(Y,G,u){u.push(Ag(Y).EXP_SYMBOL);
G<0?(G=-G,u.push(Ag(Y).MINUS_SIGN)):Y.useSignForPositiveExponent_&&u.push(Ag(Y).PLUS_SIGN);G=""+G;for(var O=Ag(Y).ZERO_DIGIT,Q=G.length;Q<Y.minExponentDigits_;Q++)u.push(O);Y=O.codePointAt(0)-IjU;for(O=0;O<G.length;O++)u.push(String.fromCodePoint(Y+G.codePointAt(O)))},KiI=function(Y,G){G=G.codePointAt(0);
if(48<=G&&G<58)return G-48;Y=Ag(Y).ZERO_DIGIT.codePointAt(0);return Y<=G&&G<Y+10?G-Y:-1},IjU="0".codePointAt(0),t0E=function(Y,G,u){for(var O="",Q=!1,M=G.length;u[0]<M;u[0]++){var t=G.charAt(u[0]);
if(t=="'")u[0]+1<M&&G.charAt(u[0]+1)=="'"?(u[0]++,O+="'"):Q=!Q;else if(Q)O+=t;else switch(t){case "#":case "0":case ",":case ".":case ";":return O;case "\u00a4":if(u[0]+1<M&&G.charAt(u[0]+1)=="\u00a4")u[0]++,O+=Rs(Y);else switch(Y.currencyStyle_){case 0:t=Rs(Y);O+=t in zl?zl[t][1]:t;break;case 2:t=Rs(Y);var K=zl[t];O+=K?t==K[1]?t:t+" "+K[1]:t;break;case 1:t=Rs(Y),O+=t in zl?zl[t][2]:t}break;case "%":if(!Y.negativePercentSignExpected_&&Y.multiplier_!=1)throw Error("ne");if(Y.negativePercentSignExpected_&&
Y.multiplier_!=100)throw Error("oe");Y.multiplier_=100;Y.negativePercentSignExpected_=!1;O+=Ag(Y).PERCENT;break;case "\u2030":if(!Y.negativePercentSignExpected_&&Y.multiplier_!=1)throw Error("ne");if(Y.negativePercentSignExpected_&&Y.multiplier_!=1E3)throw Error("oe");Y.multiplier_=1E3;Y.negativePercentSignExpected_=!1;O+=Ag(Y).PERMILL;break;default:O+=t}}return O},wk={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},ajl=function(Y,G){Y=Y.compactStyle_==1?p3.COMPACT_DECIMAL_SHORT_PATTERN:p3.COMPACT_DECIMAL_LONG_PATTERN;Y==null&&(Y=p3.COMPACT_DECIMAL_SHORT_PATTERN);if(G<3)return wk;G=Math.min(14,G);var u=Y[Zc(1,G)];for(--G;!u&&G>=3;)u=Y[Zc(1,G)],G--;if(!u)return wk;u=u.other;var O=Y="",Q=u.indexOf(";");Q>=0&&(u=u.substring(0,Q),Q=u.substring(Q+1))&&(O=/([^0]*)(0+)(.*)/.exec(Q),Y=O[1],O=O[3]);return u&&u!="0"?(u=/([^0]*)(0+)(.*)/.exec(u))?{divisorBase:G+
1-(u[2].length-1),negative_prefix:Y,negative_suffix:O,prefix:u[1],suffix:u[3]}:wk:wk},TwM=function(Y){if(!isFinite(Y))return Y>0?Y:0;
for(var G=0;(Y/=10)>=1;)G++;return G},Zc=function(Y,G){if(!Y||!isFinite(Y)||G==0)return Y;
Y=String(Y).split("e");return parseFloat(Y[0]+"e"+(parseInt(Y[1]||0,10)+G))},ki4=function(Y,G){return Y&&isFinite(Y)?Zc(Math.round(Zc(Y,G)),-G):Y},P5_=function(Y,G,u){if(!Y)return Y;
G=G-TwM(Y)-1;return G<-u?ki4(Y,-u):ki4(Y,G)};var nC4,FiI=nC4=nC4=auT;var pEX,iRu=pEX=pEX=TfU;var r$_=function(Y){this.JSC$11787_pattern_=Y;this.parsedPattern_=this.literals_=this.initialLiterals_=null;Y=QdE;var G=p3;if(z_T!==Y||mvI!==G)z_T=Y,mvI=G,Wi1=new _.CU(1);this.numberFormatter_=Wi1},z_T=null,mvI=null,Wi1=null,xvR=RegExp("'([{}#].*?)'","g"),fje=RegExp("''","g");
r$_.prototype.format=function(Y){if(this.JSC$11787_pattern_){this.initialLiterals_=[];var G=C5R(this,this.JSC$11787_pattern_);this.parsedPattern_=y$I(this,G);this.JSC$11787_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Vj(this.initialLiterals_),G=[],e_4(this,this.parsedPattern_,Y,!1,G),Y=G.join("");this.literals_.length>0;)Y=Y.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else Y="";return Y};
var e_4=function(Y,G,u,O,Q){for(var M=0;M<G.length;M++)switch(G[M].type){case 4:Q.push(G[M].value);break;case 3:var t=G[M].value;var K=Y,L=Q,g=u[t];g===void 0?L.push("Undefined parameter - "+t):(K.literals_.push(g),L.push(K.buildPlaceholder_(K.literals_)));break;case 2:t=G[M].value;K=Y;L=u;g=O;var P=Q,I=t.argumentIndex;L[I]===void 0?P.push("Undefined parameter - "+I):(I=t[L[I]],I===void 0&&(I=t.other),e_4(K,I,L,g,P));break;case 0:t=G[M].value;A$M(Y,t,u,iRu,O,Q);break;case 1:t=G[M].value,A$M(Y,t,u,
FiI,O,Q)}},A$M=function(Y,G,u,O,Q,M){var t=G.argumentIndex,K=G.argumentOffset,L=+u[t];
isNaN(L)?M.push("Undefined or invalid parameter - "+t):(K=L-K,t=G[u[t]],t===void 0&&(O=O(Math.abs(K)),t=G[O],t===void 0&&(t=G.other)),G=[],e_4(Y,t,u,Q,G),u=G.join(""),Q?M.push(u):(Y=Y.numberFormatter_.format(K),M.push(u.replace(/#/g,Y))))},C5R=function(Y,G){var u=Y.initialLiterals_,O=Y.buildPlaceholder_.bind(Y);
G=G.replace(fje,function(){u.push("'");return O(u)});
return G=G.replace(xvR,function(Q,M){u.push(M);return O(u)})},oCk=function(Y){var G=0,u=[],O=[],Q=/[{}]/g;
Q.lastIndex=0;for(var M;M=Q.exec(Y);){var t=M.index;M[0]=="}"?(u.pop(),u.length==0&&(M={type:1},M.value=Y.substring(G,t),O.push(M),G=t+1)):(u.length==0&&(G=Y.substring(G,t),G!=""&&O.push({type:0,value:G}),G=t+1),u.push("{"))}Y=Y.substring(G);Y!=""&&O.push({type:0,value:Y});return O},iKR=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,R_l=/^\s*(\w+)\s*,\s*selectordinal\s*,/,wEl=/^\s*(\w+)\s*,\s*select\s*,/,y$I=function(Y,G){var u=[];
G=oCk(G);for(var O=0;O<G.length;O++){var Q={};if(0==G[O].type)Q.type=4,Q.value=G[O].value;else if(1==G[O].type){var M=G[O].value;switch(iKR.test(M)?0:R_l.test(M)?1:wEl.test(M)?2:/^\s*\w+\s*/.test(M)?3:5){case 2:Q.type=2;Q.value=ZK1(Y,G[O].value);break;case 0:Q.type=0;Q.value=DvU(Y,G[O].value);break;case 1:Q.type=1;Q.value=h__(Y,G[O].value);break;case 3:Q.type=3,Q.value=G[O].value}}u.push(Q)}return u},ZK1=function(Y,G){var u="";
G=G.replace(wEl,function(K,L){u=L;return""});
var O={};O.argumentIndex=u;G=oCk(G);for(var Q=0;Q<G.length;){var M=G[Q].value;Q++;var t=void 0;1==G[Q].type&&(t=y$I(Y,G[Q].value));O[M.replace(/\s/g,"")]=t;Q++}return O},DvU=function(Y,G){var u="",O=0;
G=G.replace(iKR,function(L,g,P){u=g;P&&(O=parseInt(P,10));return""});
var Q={};Q.argumentIndex=u;Q.argumentOffset=O;G=oCk(G);for(var M=0;M<G.length;){var t=G[M].value;M++;var K=void 0;1==G[M].type&&(K=y$I(Y,G[M].value));Q[t.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=K;M++}return Q},h__=function(Y,G){var u="";
G=G.replace(R_l,function(K,L){u=L;return""});
var O={};O.argumentIndex=u;O.argumentOffset=0;G=oCk(G);for(var Q=0;Q<G.length;){var M=G[Q].value;Q++;var t=void 0;1==G[Q].type&&(t=y$I(Y,G[Q].value));O[M.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=t;Q++}return O};
r$_.prototype.buildPlaceholder_=function(Y){return"\ufddf_"+(Y.length-1).toString(10)+"_"};var w7A=function(){var Y={style:1},G=dvM;this.style_=(Y==null?void 0:Y.style)||0;this.durationSymbols_=G||Jf2},bK1=function(Y,G){switch(G){default:case "years":return Y.durationSymbols_.YEAR;
case "months":return Y.durationSymbols_.MONTH;case "weeks":return Y.durationSymbols_.WEEK;case "days":return Y.durationSymbols_.DAY;case "hours":return Y.durationSymbols_.HOUR;case "minutes":return Y.durationSymbols_.MINUTE;case "seconds":return Y.durationSymbols_.SECOND}},Dc=function(Y,G,u){a:{u=bK1(Y,u);
switch(Y.style_){case 1:if(u.LONG!=void 0){Y=u.LONG;break a}case 2:if(u.NARROW!=void 0){Y=u.NARROW;break a}default:Y=u.SHORT;break a}Y=void 0}return Y?(new r$_("{DURATION_VALUE,plural,"+Y+"}")).format({DURATION_VALUE:G}):""};
w7A.prototype.format=function(Y){var G=[],u=Y.years,O=Y.months,Q=Y.weeks,M=Y.days,t=Y.hours,K=Y.minutes;Y=Y.seconds;u!=null&&G.push(Dc(this,u,"years"));O!=null&&G.push(Dc(this,O,"months"));Q!=null&&G.push(Dc(this,Q,"weeks"));M!=null&&G.push(Dc(this,M,"days"));t!=null&&G.push(Dc(this,t,"hours"));K!=null&&G.push(Dc(this,K,"minutes"));Y!=null&&G.push(Dc(this,Y,"seconds"));return(new Gil).format(G)};var SeV;
SeV={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 clj=function(){this.rdtfSymbols_=NwI||SeV;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
clj.prototype.format=function(Y,G){a:{G=jd_(this,G);switch(this.style_){case 2:if(G.NARROW!=void 0){G=G.NARROW;break a}case 1:if(G.SHORT!=void 0){G=G.SHORT;break a}default:G=G.LONG;break a}G=void 0}if(!this.alwaysNumeric_&&G&&G.R&&G.R[""+Y])Y=G.R[""+Y];else if(G){var u=Math.abs(Y);Y=(new r$_("{N,plural,"+(Y>0||Y==0&&1/Y==Infinity?G.F:G.P)+"}")).format({N:u})}else Y="";return Y};
var jd_=function(Y,G){switch(G){default:case 0:return Y.rdtfSymbols_.YEAR;case 1:return Y.rdtfSymbols_.QUARTER;case 2:return Y.rdtfSymbols_.MONTH;case 3:return Y.rdtfSymbols_.WEEK;case 4:return Y.rdtfSymbols_.DAY;case 5:return Y.rdtfSymbols_.HOUR;case 6:return Y.rdtfSymbols_.MINUTE;case 7:return Y.rdtfSymbols_.SECOND}};LVt.prototype.clone=function(){return new LVt(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
LVt.prototype.equals=function(Y){return this.x0==Y.x0&&this.y0==Y.y0&&this.x1==Y.x1&&this.y1==Y.y1&&this.x2==Y.x2&&this.y2==Y.y2&&this.x3==Y.x3&&this.y3==Y.y3};
var V0R=function(Y,G){if(G==0)return Y.x0;if(G==1)return Y.x3;var u=eL(Y.x0,Y.x1,G),O=eL(Y.x1,Y.x2,G);Y=eL(Y.x2,Y.x3,G);u=eL(u,O,G);O=eL(O,Y,G);return eL(u,O,G)},lje=function(Y,G){var u=(G-Y.x0)/(Y.x3-Y.x0);
if(u<=0)return 0;if(u>=1)return 1;for(var O=0,Q=1,M=0,t=0;t<8;t++){M=V0R(Y,u);var K=(V0R(Y,u+1E-6)-M)/1E-6;if(Math.abs(M-G)<1E-6)return u;if(Math.abs(K)<1E-6)break;else M<G?O=u:Q=u,u-=(M-G)/K}for(t=0;Math.abs(M-G)>1E-6&&t<8;t++)M<G?(O=u,u=(u+Q)/2):(Q=u,u=(u+O)/2),M=V0R(Y,u);return u};var hg;_.qz(X1,_.C7);var Xpt={},g5t=0,BwX=function(Y,G){var u=HF(Y);efU(G,function(O,Q){Array.isArray(O)||(O=[O]);_.jo(O,function(M){M=u.JSC$9649_createDom("INPUT",{type:"hidden",name:Q,value:M});Y.appendChild(M)})})};
_.H=X1.prototype;_.H.JSC$11809_form_=null;_.H.JSC$11809_iframe_=null;_.H.iframeName_=null;_.H.nextIframeId_=0;_.H.JSC$11809_active_=!1;_.H.complete_=!1;_.H.success_=!1;_.H.lastContent_=null;_.H.JSC$11809_lastErrorCode_=0;_.H.iframeDisposalTimer_=null;
_.H.send=function(Y,G,u,O){if(this.JSC$11809_active_)throw Error("ue");Y=new _.Rx(Y);G=G?G.toUpperCase():"GET";u&&_.GM(Y);hg||(hg=_.fu("FORM"),hg.acceptCharset="utf-8",u=hg.style,u.position="absolute",u.visibility="hidden",u.top=u.left="-10px",u.width=u.height="10px",u.overflow="hidden",document.body.appendChild(hg));this.JSC$11809_form_=hg;G=="GET"&&BwX(this.JSC$11809_form_,Y.JSC$10357_queryData_);O&&BwX(this.JSC$11809_form_,O);u=Y.toString();u=ydg(u);O=this.JSC$11809_form_;u=_.Jz(VG(u));u!==void 0&&
(O.action=u);this.JSC$11809_form_.method=G;$vV(this);qeM(this)};
_.H.abort=function(Y){if(this.JSC$11809_active_){var G=dk(this);if(G)if(k5(G))G.removeAllListeners(void 0);else if(G=nV(G)){var u=0,O;for(O in G.listeners)for(var Q=G.listeners[O].concat(),M=0;M<Q.length;++M)tR(Q[M])&&++u}this.success_=this.JSC$11809_active_=this.complete_=!1;this.JSC$11809_lastErrorCode_=Y||7;this.dispatchEvent("abort");sdU(this)}};
_.H.disposeInternal=function(){this.JSC$11809_active_&&this.abort();X1.superClass_.disposeInternal.call(this);this.JSC$11809_iframe_&&c$T(this);qeM(this);this.JSC$11809_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11809_form_=null;this.JSC$11809_lastErrorCode_=0;delete Xpt[this.JSC$11807_name_]};
_.H.isComplete=function(){return this.complete_};
_.H.isSuccess=function(){return this.success_};
_.H.isActive=function(){return this.JSC$11809_active_};
_.H.getResponseText=function(){return this.lastContent_};
_.H.getLastError=function(){return _.K_k(this.JSC$11809_lastErrorCode_)};
var $vV=function(Y){Y.JSC$11809_active_=!0;Y.complete_=!1;Y.JSC$11809_lastErrorCode_=0;Y.iframeName_=Y.JSC$11807_name_+"_"+(Y.nextIframeId_++).toString(36);Y.JSC$11809_iframe_=HF(Y.JSC$11809_form_).JSC$9649_createDom("IFRAME",{name:Y.iframeName_,id:Y.iframeName_});var G=Y.JSC$11809_iframe_.style;G.visibility="hidden";G.width=G.height="10px";G.display="none";_.Mt?G.marginTop=G.marginLeft="-10px":(G.position="absolute",G.top=G.left="-10px");HF(Y.JSC$11809_form_).JSC$9647_document_.body.appendChild(Y.JSC$11809_iframe_);
G=Y.iframeName_+"_inner";var u=a4I(Y.JSC$11809_iframe_);if(document.baseURI){var O=cx(G);O='<head><base href="'+cx(document.baseURI)+'"></head><body><iframe id="'+O+'" name="'+O+'"></iframe>';O=Or(O)}else O=cx(G),O=Or('<body><iframe id="'+O+'" name="'+O+'"></iframe>');u.write(QK(O));_.yn(u.getElementById(G),"load",Y.onIframeLoaded_,!1,Y);O=Qn("TEXTAREA",Y.JSC$11809_form_);for(var Q=0,M=O.length;Q<M;Q++){var t=O[Q].value;I4E(O[Q])!=t&&(_.R9(O[Q],t),O[Q].value=t)}O=u.importNode(Y.JSC$11809_form_,!0);
O.target=G;O.action=Y.JSC$11809_form_.action;u.body.appendChild(O);Q=Qn("SELECT",Y.JSC$11809_form_);M=Qn("SELECT",O);t=0;for(var K=Q.length;t<K;t++)for(var L=Qn("OPTION",Q[t]),g=Qn("OPTION",M[t]),P=0,I=L.length;P<I;P++)g[P].selected=L[P].selected;Q=Qn("INPUT",Y.JSC$11809_form_);M=Qn("INPUT",O);t=0;for(K=Q.length;t<K;t++)if(Q[t].type=="file"&&Q[t].value!=M[t].value){Y.JSC$11809_form_.target=G;O=Y.JSC$11809_form_;break}try{Y.errorHandled_=!1,O.submit(),u.close(),_.Hc&&setTimeout(Y.testForFirefoxSilentError_.bind(Y),
250)}catch(k){_.F_(u.getElementById(G),"load",Y.onIframeLoaded_,!1,Y),u.close(),bD(Y,2)}};
X1.prototype.onIframeLoaded_=function(){_.F_(dk(this),"load",this.onIframeLoaded_,!1,this);try{var Y=this.JSC$11809_iframe_?a4I(dk(this)):null;this.complete_=!0;this.JSC$11809_active_=!1;try{var G=Y.body;this.lastContent_=G.textContent||G.innerText}catch(Q){var u=1}var O;u||typeof this.errorChecker_!="function"||(O=this.errorChecker_(Y))&&(u=4);u?bD(this,u):(this.success_=!0,this.JSC$11809_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),sdU(this))}catch(Q){bD(this,1)}};
var bD=function(Y,G){Y.errorHandled_||(Y.success_=!1,Y.JSC$11809_active_=!1,Y.complete_=!0,Y.JSC$11809_lastErrorCode_=G,Y.dispatchEvent("complete"),Y.dispatchEvent("error"),sdU(Y),Y.errorHandled_=!0)},sdU=function(Y){c$T(Y);
qeM(Y);Y.JSC$11809_form_=null;Y.dispatchEvent("ready")},c$T=function(Y){var G=Y.JSC$11809_iframe_;
G&&(G.onreadystatechange=null,G.onload=null,G.onerror=null,Y.iframesForDisposal_.push(G));Y.iframeDisposalTimer_&&(clearTimeout(Y.iframeDisposalTimer_),Y.iframeDisposalTimer_=null);_.Hc?Y.iframeDisposalTimer_=setTimeout(Y.disposeIframes_.bind(Y),2E3):Y.disposeIframes_();Y.JSC$11809_iframe_=null;Y.iframeName_=null};
X1.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var Y=this.iframesForDisposal_.pop();_.Oy(Y)}};
var qeM=function(Y){Y.JSC$11809_form_&&Y.JSC$11809_form_==hg&&_.eq(Y.JSC$11809_form_)},dk=function(Y){return Y.JSC$11809_iframe_?a4I(Y.JSC$11809_iframe_).getElementById(Y.iframeName_+"_inner"):null};
X1.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11809_active_){var Y=this.JSC$11809_iframe_?a4I(dk(this)):null;Y&&!vxy(Y,"documentUri")?(_.F_(dk(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?bD(this,3):bD(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.SX=function(Y){return Y=="\r"||Y=="\n"||Y==" "||Y=="\t"};_.Pc.prototype.isInputValid=function(){return this.streamState_!=3};
_.Pc.prototype.done=function(){return this.streamState_===2};
var No=function(Y,G,u){Y.streamState_=3;Y.errorMessage_="The stream is broken @"+Y.JSC$11811_pos_+"/"+u+". With input:\n"+G;throw Error(Y.errorMessage_);};
_.Pc.prototype.acceptsBinaryInput=function(){return!1};
_.Pc.prototype.parse=function(Y){function G(){for(;I<Y.length;)if(_.SX(Y[I]))I++,M.JSC$11811_pos_++;else break;return I<L}
function u(){for(var n;;){n=Y[I++];if(!n)break;M.JSC$11811_pos_++;switch(M.state_){case 0:n==="{"?M.state_=2:n==="["?M.state_=4:_.SX(n)||No(M,Y,I);continue;case 7:case 2:if(_.SX(n))continue;if(M.state_===7)t.push(8);else if(n==="}"){Q("{}");M.state_=O();continue}else t.push(3);n==='"'?M.state_=6:No(M,Y,I);continue;case 8:case 3:if(_.SX(n))continue;n===":"?(M.state_===3&&(t.push(3),M.depth_++),M.state_=1):n==="}"?(M.depth_--,Q(),M.state_=O()):n===","?(M.state_===3&&t.push(3),M.state_=7):No(M,Y,I);
continue;case 4:case 1:if(_.SX(n))continue;if(M.state_===4)if(M.depth_++,M.state_=1,n==="]"){M.depth_--;if(M.depth_===0){M.state_=5;return}Q("[]");M.state_=O();continue}else t.push(5);n==='"'?M.state_=6:n==="{"?M.state_=2:n==="["?M.state_=4:n==="t"?M.state_=9:n==="f"?M.state_=12:n==="n"?M.state_=16:n!=="-"&&("0123456789".indexOf(n)!==-1?M.state_=20:No(M,Y,I));continue;case 5:if(n===",")t.push(5),M.state_=1,M.depth_===1&&(P=I);else if(n==="]"){M.depth_--;if(M.depth_===0)return;Q();M.state_=O()}else if(_.SX(n))continue;
else No(M,Y,I);continue;case 6:var p=I;a:for(;;){for(;M.unicodeCount_>0;)if(n=Y[I++],M.unicodeCount_===4?M.unicodeCount_=0:M.unicodeCount_++,!n)break a;if(n==='"'&&!M.slashed_){M.state_=O();break}if(n==="\\"&&!M.slashed_&&(M.slashed_=!0,n=Y[I++],!n))break;if(M.slashed_)if(M.slashed_=!1,n==="u"&&(M.unicodeCount_=1),n=Y[I++])continue;else break;K.lastIndex=I;n=K.exec(Y);if(!n){I=Y.length+1;break}I=n.index+1;n=Y[n.index];if(!n)break}M.JSC$11811_pos_+=I-p;continue;case 9:if(!n)continue;n==="r"?M.state_=
10:No(M,Y,I);continue;case 10:if(!n)continue;n==="u"?M.state_=11:No(M,Y,I);continue;case 11:if(!n)continue;n==="e"?M.state_=O():No(M,Y,I);continue;case 12:if(!n)continue;n==="a"?M.state_=13:No(M,Y,I);continue;case 13:if(!n)continue;n==="l"?M.state_=14:No(M,Y,I);continue;case 14:if(!n)continue;n==="s"?M.state_=15:No(M,Y,I);continue;case 15:if(!n)continue;n==="e"?M.state_=O():No(M,Y,I);continue;case 16:if(!n)continue;n==="u"?M.state_=17:No(M,Y,I);continue;case 17:if(!n)continue;n==="l"?M.state_=18:
No(M,Y,I);continue;case 18:if(!n)continue;n==="l"?M.state_=O():No(M,Y,I);continue;case 19:n==="."?M.state_=20:No(M,Y,I);continue;case 20:if("0123456789.eE+-".indexOf(n)!==-1)continue;else I--,M.JSC$11811_pos_--,M.state_=O();continue;default:No(M,Y,I)}}}
function O(){var n=t.pop();return n!=null?n:1}
function Q(n){M.depth_>1||(n||(n=P===-1?M.JSC$11811_buffer_+Y.substring(g,I):Y.substring(P,I)),M.deliverMessageAsRawString_?M.result_.push(n):M.result_.push(JSON.parse(n)),P=I)}
for(var M=this,t=M.stack_,K=M.stringInputPattern_,L=Y.length,g=0,P=-1,I=0;I<L;)switch(M.streamState_){case 3:return No(M,Y,I),null;case 2:return G()&&No(M,Y,I),null;case 0:if(G()){var k=Y[I++];M.JSC$11811_pos_++;if(k==="["){M.streamState_=1;g=I;M.state_=4;continue}else No(M,Y,I)}return null;case 1:return u(),M.depth_===0&&M.state_==5?(M.streamState_=2,M.JSC$11811_buffer_=Y.substring(I)):M.JSC$11811_buffer_=P===-1?M.JSC$11811_buffer_+Y.substring(g):Y.substring(P),M.result_.length>0?(k=M.result_,M.result_=
[],k):null}return null};_.qz(_.In,Fw);kT.prototype.getValue=function(){return this.JSC$11818_value_};
kT.prototype.clone=function(){return new kT(this.JSC$11818_key_,this.JSC$11818_value_)};var jX=function(Y){this.nodes_=[];if(Y)a:{if(Y instanceof jX){var G=Y.getKeys();Y=Y.getValues();if(this.getCount()<=0){for(var u=this.nodes_,O=0;O<G.length;O++)u.push(new kT(G[O],Y[O]));break a}}else G=_.gX.getKeys(Y),Y=_.gX.getValues(Y);for(u=0;u<G.length;u++)this.insert(G[u],Y[u])}};
_.H=jX.prototype;_.H.insert=function(Y,G){var u=this.nodes_;u.push(new kT(Y,G));Y=u.length-1;G=this.nodes_;for(u=G[Y];Y>0;){var O=Y-1>>1;if(G[O].JSC$11818_key_>u.JSC$11818_key_)G[Y]=G[O],Y=O;else break}G[Y]=u};
_.H.remove=function(){var Y=this.nodes_,G=Y.length,u=Y[0];if(!(G<=0)){if(G==1)Y.length=0;else{Y[0]=Y.pop();Y=0;G=this.nodes_;for(var O=G.length,Q=G[Y];Y<O>>1;){var M=Y*2+1,t=Y*2+2;M=t<O&&G[t].JSC$11818_key_<G[M].JSC$11818_key_?t:M;if(G[M].JSC$11818_key_>Q.JSC$11818_key_)break;G[Y]=G[M];Y=M}G[Y]=Q}return u.getValue()}};
_.H.peek=function(){var Y=this.nodes_;if(Y.length!=0)return Y[0].getValue()};
_.H.getValues=function(){for(var Y=this.nodes_,G=[],u=Y.length,O=0;O<u;O++)G.push(Y[O].getValue());return G};
_.H.getKeys=function(){for(var Y=this.nodes_,G=[],u=Y.length,O=0;O<u;O++)G.push(Y[O].JSC$11818_key_);return G};
_.H.containsValue=function(Y){return this.nodes_.some(function(G){return G.getValue()==Y})};
_.H.containsKey=function(Y){return this.nodes_.some(function(G){return G.JSC$11818_key_==Y})};
_.H.clone=function(){return new jX(this)};
_.H.getCount=function(){return this.nodes_.length};
_.H.isEmpty=function(){return this.nodes_.length===0};
_.H.clear=function(){this.nodes_.length=0};_.H=_.nA.prototype;_.H.getCount=function(){return this.size};
_.H.getValues=function(){V2(this);for(var Y=[],G=0;G<this.JSC$11824_keys_.length;G++)Y.push(this.JSC$11824_map_[this.JSC$11824_keys_[G]]);return Y};
_.H.getKeys=function(){V2(this);return this.JSC$11824_keys_.concat()};
_.H.containsKey=function(Y){return this.has(Y)};
_.H.has=function(Y){return lD(this.JSC$11824_map_,Y)};
_.H.containsValue=function(Y){for(var G=0;G<this.JSC$11824_keys_.length;G++){var u=this.JSC$11824_keys_[G];if(lD(this.JSC$11824_map_,u)&&this.JSC$11824_map_[u]==Y)return!0}return!1};
_.H.equals=function(Y,G){if(this===Y)return!0;if(this.size!=Y.getCount())return!1;G=G||Uvk;V2(this);for(var u,O=0;u=this.JSC$11824_keys_[O];O++)if(!G(this.get(u),Y.get(u)))return!1;return!0};
var Uvk=function(Y,G){return Y===G};
_.nA.prototype.isEmpty=function(){return this.size==0};
_.nA.prototype.clear=function(){this.JSC$11824_map_={};this.version_=this.size=this.JSC$11824_keys_.length=0};
_.nA.prototype.remove=function(Y){return this.delete(Y)};
_.nA.prototype.delete=function(Y){return lD(this.JSC$11824_map_,Y)?(delete this.JSC$11824_map_[Y],--this.size,this.version_++,this.JSC$11824_keys_.length>2*this.size&&V2(this),!0):!1};
var V2=function(Y){if(Y.size!=Y.JSC$11824_keys_.length){for(var G=0,u=0;G<Y.JSC$11824_keys_.length;){var O=Y.JSC$11824_keys_[G];lD(Y.JSC$11824_map_,O)&&(Y.JSC$11824_keys_[u++]=O);G++}Y.JSC$11824_keys_.length=u}if(Y.size!=Y.JSC$11824_keys_.length){G={};for(O=u=0;u<Y.JSC$11824_keys_.length;){var Q=Y.JSC$11824_keys_[u];lD(G,Q)||(Y.JSC$11824_keys_[O++]=Q,G[Q]=1);u++}Y.JSC$11824_keys_.length=O}};
_.H=_.nA.prototype;_.H.get=function(Y,G){return lD(this.JSC$11824_map_,Y)?this.JSC$11824_map_[Y]:G};
_.H.set=function(Y,G){lD(this.JSC$11824_map_,Y)||(this.size+=1,this.JSC$11824_keys_.push(Y),this.version_++);this.JSC$11824_map_[Y]=G};
_.H.addAll=function(Y){if(Y instanceof _.nA)for(var G=Y.getKeys(),u=0;u<G.length;u++)this.set(G[u],Y.get(G[u]));else for(G in Y)this.set(G,Y[G])};
_.H.forEach=function(Y,G){for(var u=this.getKeys(),O=0;O<u.length;O++){var Q=u[O],M=this.get(Q);Y.call(G,M,Q,this)}};
_.H.clone=function(){return new _.nA(this)};
_.H.transpose=function(){for(var Y=new _.nA,G=0;G<this.JSC$11824_keys_.length;G++){var u=this.JSC$11824_keys_[G];Y.set(this.JSC$11824_map_[u],u)}return Y};
_.H.keys=function(){return oNM(this.__iterator__(!0)).toEs6()};
_.H.values=function(){return oNM(this.__iterator__(!1)).toEs6()};
_.H.entries=function(){var Y=this;return sDU(this.keys(),function(G){return[G,Y.get(G)]})};
_.H.__iterator__=function(Y){V2(this);var G=0,u=this.version_,O=this,Q=new pG;Q.next=function(){if(u!=O.version_)throw Error("ve");if(G>=O.JSC$11824_keys_.length)return m_;var M=O.JSC$11824_keys_[G++];return zR(Y?M:O.JSC$11824_map_[M])};
return Q};
var lD=function(Y,G){return Object.prototype.hasOwnProperty.call(Y,G)};var vCE=function(Y,G){if(G=Y.JSC$11827_map_.get(G))G.remove(),Y.insert_(G);return G};
_.H=IuU.prototype;_.H.get=function(Y,G){return(Y=vCE(this,Y))?Y.value:G};
_.H.set=function(Y,G){var u=vCE(this,Y);u?u.value=G:(u=new PJA(Y,G),this.JSC$11827_map_.set(Y,u),this.insert_(u))};
_.H.peek=function(){return this.JSC$11827_head_.next.value};
_.H.shift=function(){return J$R(this,this.JSC$11827_head_.next)};
_.H.pop=function(){return J$R(this,this.JSC$11827_head_.prev)};
_.H.remove=function(Y){return(Y=this.JSC$11827_map_.get(Y))?(this.removeNode(Y),!0):!1};
_.H.removeNode=function(Y){Y.remove();this.JSC$11827_map_.remove(Y.key)};
_.H.getCount=function(){return this.JSC$11827_map_.getCount()};
_.H.isEmpty=function(){return this.JSC$11827_map_.isEmpty()};
_.H.getKeys=function(){return this.map(function(Y,G){return G})};
_.H.getValues=function(){return this.map(function(Y){return Y})};
_.H.contains=function(Y){return this.some(function(G){return G==Y})};
_.H.containsKey=function(Y){return this.JSC$11827_map_.containsKey(Y)};
_.H.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11827_head_.prev)};
_.H.forEach=function(Y,G){for(var u=this.JSC$11827_head_.next;u!=this.JSC$11827_head_;u=u.next)Y.call(G,u.value,u.key,this)};
_.H.map=function(Y,G){for(var u=[],O=this.JSC$11827_head_.next;O!=this.JSC$11827_head_;O=O.next)u.push(Y.call(G,O.value,O.key,this));return u};
_.H.some=function(Y,G){for(var u=this.JSC$11827_head_.next;u!=this.JSC$11827_head_;u=u.next)if(Y.call(G,u.value,u.key,this))return!0;return!1};
_.H.every=function(Y,G){for(var u=this.JSC$11827_head_.next;u!=this.JSC$11827_head_;u=u.next)if(!Y.call(G,u.value,u.key,this))return!1;return!0};
_.H.insert_=function(Y){Y.next=this.JSC$11827_head_.next;Y.prev=this.JSC$11827_head_;this.JSC$11827_head_.next=Y;for(Y.next.prev=Y;this.getCount()>100;)this.removeNode(this.JSC$11827_head_.prev)};
var J$R=function(Y,G){Y.JSC$11827_head_!=G&&Y.removeNode(G);return G.value},PJA=function(Y,G){this.key=Y;
this.value=G};
PJA.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Ynl=function(){jX.apply(this,arguments)};
_.m(Ynl,jX);Ynl.prototype.enqueue=function(Y,G){this.insert(Y,G)};var GPl=function(){var Y=Error();Y.name="SecurityError";throw Y;},q$a=function(){return{get opener(){return null},
get closed(){return!0},get location(){GPl()},get document(){GPl()},postMessage:function(){},
close:function(){},
focus:function(){}}};var kjA={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 pp4={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 u21={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(pp4).join("|");var O$M=function(){function Y(K){K.substr(-1)!==";"&&(K+=";");return t(K)}
for(var G=Object.keys(u21).sort(FVT),u=Object.keys(pp4).sort(FVT),O=0,Q=0;O<u.length;O++)G[Q]===u[O]?(u[O]+=";?",Q++):u[O]+=";";var M=new RegExp("&(?:"+u.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),t=zbA();return function(K){return String(K).replace(M,Y)}}();/*

 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 QzV={};var M84=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"),H$e=/[\\&]/,E2R=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),t8e=RegExp('[&<>"]',"g"),KzX=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),aLE=function(Y){return Y.charCodeAt(0)===92?Y.charAt(1):O$M(Y)},T4k=function(Y){return H$e.test(Y)?Y.replace(E2R,aLE):Y},LzM=function(Y){try{var G,u="";
if(typeof Q!=="string"){var O=Q;var Q=";/?:@&=+$,-_.!~*'()#"}typeof O==="undefined"&&(O=!0);var M,t=QzV[Q];if(t)var K=t;else{t=QzV[Q]=[];for(M=0;M<128;M++){var L=String.fromCharCode(M);/^[0-9a-z]$/i.test(L)?t.push(L):t.push("%"+("0"+M.toString(16).toUpperCase()).slice(-2))}for(M=0;M<Q.length;M++)t[Q.charCodeAt(M)]=Q[M];K=t}var g=0;for(G=Y.length;g<G;g++){var P=Y.charCodeAt(g);if(O&&P===37&&g+2<G&&/^[0-9a-f]{2}$/i.test(Y.slice(g+1,g+3)))u+=Y.slice(g,g+3),g+=2;else if(P<128)u+=K[P];else if(P>=55296&&
P<=57343){if(P>=55296&&P<=56319&&g+1<G){var I=Y.charCodeAt(g+1);if(I>=56320&&I<=57343){u+=encodeURIComponent(Y[g]+Y[g+1]);g++;continue}}u+="%EF%BF%BD"}else u+=encodeURIComponent(Y[g])}return u}catch(k){return Y}},g2I=function(Y){switch(Y){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return Y}},B0=function(Y,G){return t8e.test(Y)?G?Y.replace(KzX,g2I):Y.replace(t8e,g2I):Y};/*

 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 $p;if(String.fromCodePoint)$p=function(Y){try{return String.fromCodePoint(Y)}catch(G){if(G instanceof RangeError)return String.fromCharCode(65533);throw G;}};
else{var XUE=String.fromCharCode,P6E=Math.floor;$p=function(){var Y=[],G=-1,u=arguments.length;if(!u)return"";for(var O="";++G<u;){var Q=Number(arguments[G]);if(!isFinite(Q)||Q<0||Q>1114111||P6E(Q)!==Q)return String.fromCharCode(65533);if(Q<=65535)Y.push(Q);else{Q-=65536;var M=(Q>>10)+55296;Q=Q%1024+56320;Y.push(M,Q)}if(G+1===u||Y.length>16384)O+=XUE.apply(null,Y),Y.length=0}return O}};var ILM=function(Y){this.root=this.current=Y;this.entering=!0};
ILM.prototype.next=function(){var Y=this.current,G=this.entering;if(Y===null)return null;a:switch(Y._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 u=!0;break a;default:u=!1}G&&u?Y._firstChild?(this.current=Y._firstChild,this.entering=!0):this.entering=!1:Y===this.root?this.current=null:Y._next===null?(this.current=
Y._parent,this.entering=!1):(this.current=Y._next,this.entering=!0);return{entering:G,node:Y}};
var Wc=function(Y,G){this._type=Y;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=G;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};
Wc.prototype.appendChild=function(Y){Y.unlink();Y._parent=this;this._lastChild?(this._lastChild._next=Y,Y._prev=this._lastChild):this._firstChild=Y;this._lastChild=Y};
Wc.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 kPR=function(Y,G){G.unlink();G._next=Y._next;G._next&&(G._next._prev=G);G._prev=Y;Y._next=G;G._parent=Y._parent;G._next||(G._parent._lastChild=G)};
Wc.prototype.insertBefore=function(Y){Y.unlink();Y._prev=this._prev;Y._prev&&(Y._prev._next=Y);Y._next=this;this._prev=Y;Y._parent=this._parent;Y._prev||(Y._parent._firstChild=Y)};
_.Uk.Object.defineProperties(Wc.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(Y){this._literal=Y}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(Y){this._destination=Y}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(Y){this._title=Y}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(Y){this._info=Y}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(Y){this._level=Y}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(Y){this._listData.type=Y}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(Y){this._listData.tight=Y}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(Y){this._listData.start=Y}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(Y){this._onEnter=Y}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(Y){this._onExit=Y}}});var mO1=/[ \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,
WVA={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 n24=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]/),
FzR=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),pUI=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),z8k=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),mFR=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),Wz2=/`+/,rL4=/^`+/,xF_=/\.\.\./g,fLl=/--+/g,C6R=/^<([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])?)*)>/,
yLV=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,e84=/^ *(?:\n *)?/,ALX=/^[ \t\n\x0b\x0c\x0d]/,o2I=/[ \t\n\x0b\x0c\x0d]+/g,i$E=/^\s/,R8X=/ *$/,wUl=/^ */,Z$U=/^ *(?:\n|$)/,DF_=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),h8l=/^[^\n`\[\]\\!<&*_'"]+/m,qo=function(Y){var G=new Wc("text");G._literal=Y;return G},sq=function(Y){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=Y||{}};
sq.prototype.match=function(Y){Y=Y.exec(this.subject.slice(this.pos));if(Y===null)return null;this.pos+=Y.index+Y[0].length;return Y[0]};
sq.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var c0=function(Y){Y.match(e84);return!0},dFI=function(Y,G,u){var O=0;
var Q=Y.pos;if(G===39||G===34)O++,Y.pos++;else for(;Y.peek()===G;)O++,Y.pos++;if(O===0)O=null;else{var M=Q===0?"\n":Y.subject.charAt(Q-1);var t=Y.peek();t=t===-1?"\n":$p(t);var K=i$E.test(t);t=n24.test(t);var L=i$E.test(M);var g=n24.test(M);M=!K&&!(t&&!L&&!g);K=!L&&!(g&&!K&&!t);G===95?(L=M&&(!K||g),t=K&&(!M||t)):(L=G===39||G===34?M&&!K:M,t=K);Y.pos=Q;O={numdelims:O,can_open:L,can_close:t}}if(!O)return!1;Q=O.numdelims;t=Y.pos;Y.pos+=Q;t=G===39?"\u2019":G===34?"\u201c":Y.subject.slice(t,Y.pos);t=qo(t);
u.appendChild(t);Y.delimiters={cc:G,numdelims:Q,origdelims:Q,node:t,previous:Y.delimiters,next:null,can_open:O.can_open,can_close:O.can_close};Y.delimiters.previous!==null&&(Y.delimiters.previous.next=Y.delimiters);return!0},b$X=function(Y,G){G.previous!==null&&(G.previous.next=G.next);
G.next===null?Y.delimiters=G.previous:G.next.previous=G.previous},SnI=function(Y,G){var u,O,Q=[],M=!1;
Q[95]=G;Q[42]=G;Q[39]=G;Q[34]=G;for(u=Y.delimiters;u!==null&&u.previous!==G;)u=u.previous;for(;u!==null;){var t=u.cc;if(u.can_close){var K=u.previous;for(O=!1;K!==null&&K!==G&&K!==Q[t];){M=(u.can_open||K.can_close)&&(K.origdelims+u.origdelims)%3===0;if(K.cc===u.cc&&K.can_open&&!M){O=!0;break}K=K.previous}var L=u;if(t===42||t===95)if(O){var g=u.numdelims>=2&&K.numdelims>=2?2:1;var P=K.node;var I=u.node;K.numdelims-=g;u.numdelims-=g;P._literal=P._literal.slice(0,P._literal.length-g);I._literal=I._literal.slice(0,
I._literal.length-g);var k=new Wc(g===1?"emph":"strong");for(g=P._next;g&&g!==I;){var n=g._next;g.unlink();k.appendChild(g);g=n}kPR(P,k);g=K;n=u;g.next!==n&&(g.next=n,n.previous=g);K.numdelims===0&&(P.unlink(),b$X(Y,K));u.numdelims===0&&(I.unlink(),K=u.next,b$X(Y,u),u=K)}else u=u.next;else t===39?(u.node._literal="\u2019",O&&(K.node._literal="\u2018"),u=u.next):t===34&&(u.node._literal="\u201d",O&&(K.node.literal="\u201c"),u=u.next);O||M||(Q[t]=L.previous,L.can_open||b$X(Y,L))}else u=u.next}for(;Y.delimiters!==
null&&Y.delimiters!==G;)b$X(Y,Y.delimiters)},N4e=function(Y){Y=Y.match(FzR);
return Y===null?null:T4k(Y.substr(1,Y.length-2))},jz1=function(Y){var G=Y.match(pUI);
if(G===null){G=Y.pos;for(var u=0,O;(O=Y.peek())!==-1;)if(O===92)Y.pos+=1,Y.peek()!==-1&&(Y.pos+=1);else if(O===40)Y.pos+=1,u+=1;else if(O===41)if(u<1)break;else Y.pos+=1,--u;else if(ALX.exec($p(O))!==null)break;else Y.pos+=1;G=Y.subject.substr(G,Y.pos-G);return LzM(T4k(G))}return LzM(T4k(G.substr(1,G.length-2)))},V8E=function(Y){Y=Y.match(DF_);
return Y===null||Y.length>1001?0:Y.length},lLe=function(Y,G,u,O){Y.brackets!==null&&(Y.brackets.bracketAfter=!0);
Y.brackets={node:G,previous:Y.brackets,previousDelimiter:Y.delimiters,index:u,image:O,active:!0}},B4R=function(Y,G){var u;
return(u=Y.match(h8l))?(Y.options.smart?G.appendChild(qo(u.replace(xF_,"\u2026").replace(fLl,function(O){var Q=0,M=0;O.length%3===0?M=O.length/3:O.length%2===0?Q=O.length/2:O.length%3===2?(Q=1,M=(O.length-2)/3):(Q=2,M=(O.length-4)/3);O="";var t;for(t=0;t<M;t++)O+="\u2014";for(t=0;t<Q;t++)O+="\u2013";return O}))):G.appendChild(qo(u)),!0):!1},$Fk=function(Y,G,u){Y.subject=G;
Y.pos=0;G=Y.pos;var O=V8E(Y);if(O===0)return 0;var Q=Y.subject.substr(0,O);if(Y.peek()===58)Y.pos++;else return Y.pos=G,0;c0(Y);O=jz1(Y);if(O===null||O.length===0)return Y.pos=G,0;var M=Y.pos;c0(Y);var t=N4e(Y);t===null&&(t="",Y.pos=M);var K=!0;Y.match(Z$U)===null&&(t===""?K=!1:(t="",Y.pos=M,K=Y.match(Z$U)!==null));if(!K)return Y.pos=G,0;Q=rE4(Q);if(Q==="")return Y.pos=G,0;u[Q]||(u[Q]={destination:O,title:t});return Y.pos-G},qnU=function(Y,G){var u,O=Y.peek();
if(O===-1)return!1;switch(O){case 10:Y.pos+=1;if((u=G._lastChild)&&u.type==="text"&&u._literal[u._literal.length-1]===" "){var Q=u._literal[u._literal.length-2]===" ";u._literal=u._literal.replace(R8X,"");G.appendChild(new Wc(Q?"linebreak":"softbreak"))}else G.appendChild(new Wc("softbreak"));Y.match(wUl);u=!0;break;case 92:u=Y.subject;Y.pos+=1;Y.peek()===10?(Y.pos+=1,u=new Wc("linebreak"),G.appendChild(u)):z8k.test(u.charAt(Y.pos))?(G.appendChild(qo(u.charAt(Y.pos))),Y.pos+=1):G.appendChild(qo("\\"));
u=!0;break;case 96:a:if(u=Y.match(rL4),u===null)u=!1;else{Q=Y.pos;for(var M;(M=Y.match(Wz2))!==null;)if(M===u){M=new Wc("code");M._literal=Y.subject.slice(Q,Y.pos-u.length).trim().replace(o2I," ");G.appendChild(M);u=!0;break a}Y.pos=Q;G.appendChild(qo(u));u=!0}break;case 42:case 95:u=dFI(Y,O,G);break;case 39:case 34:u=Y.options.smart&&dFI(Y,O,G);break;case 91:u=Y.pos;Y.pos+=1;Q=qo("[");G.appendChild(Q);lLe(Y,Q,u,!1);u=!0;break;case 33:u=Y.pos;Y.pos+=1;Y.peek()===91?(Y.pos+=1,Q=qo("!["),G.appendChild(Q),
lLe(Y,Q,u+1,!0)):G.appendChild(qo("!"));u=!0;break;case 93:var t,K=!1,L;Y.pos+=1;var g=Y.pos;Q=Y.brackets;if(Q===null)G.appendChild(qo("]"));else if(Q.active){u=Q.image;var P=Y.pos;Y.peek()===40&&(Y.pos++,c0(Y)&&(M=jz1(Y))!==null&&c0(Y)&&(ALX.test(Y.subject.charAt(Y.pos-1))&&(t=N4e(Y)),1)&&c0(Y)&&Y.peek()===41?(Y.pos+=1,K=!0):Y.pos=P);if(!K){var I=Y.pos,k=V8E(Y);k>2?L=Y.subject.slice(I,I+k):Q.bracketAfter||(L=Y.subject.slice(Q.index,g));k===0&&(Y.pos=P);L&&(L=Y.refmap[rE4(L)])&&(M=L.destination,t=
L.title,K=!0)}if(K){g=new Wc(u?"image":"link");g._destination=M;g._title=t||"";for(M=Q.node._next;M;)t=M._next,M.unlink(),g.appendChild(M),M=t;G.appendChild(g);SnI(Y,Q.previousDelimiter);Y.brackets=Y.brackets.previous;Q.node.unlink();if(!u)for(Q=Y.brackets;Q!==null;)Q.image||(Q.active=!1),Q=Q.previous}else Y.brackets=Y.brackets.previous,Y.pos=g,G.appendChild(qo("]"))}else G.appendChild(qo("]")),Y.brackets=Y.brackets.previous;u=!0;break;case 60:(u=Y.match(C6R))?(u=u.slice(1,u.length-1),Q=new Wc("link"),
Q._destination=LzM("mailto:"+u),Q._title="",Q.appendChild(qo(u)),G.appendChild(Q),u=!0):(u=Y.match(yLV))?(u=u.slice(1,u.length-1),Q=new Wc("link"),Q._destination=LzM(u),Q._title="",Q.appendChild(qo(u)),G.appendChild(Q),u=!0):u=!1;u||(u=Y.match(M84),u===null?u=!1:(Q=new Wc("html_inline"),Q._literal=u,G.appendChild(Q),u=!0));break;case 38:(u=Y.match(mFR))?(G.appendChild(qo(O$M(u))),u=!0):u=!1;break;default:u=B4R(Y,G)}u||(Y.pos+=1,G.appendChild(qo($p(O))));return!0};
sq.prototype.parseInlines=function(Y){this.subject=Y._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;qnU(this,Y););Y._string_content=null;SnI(this,null)};
sq.prototype.parse=sq.prototype.parseInlines;var szE=[/./,/^<(?: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")],cLM=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],UFe=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,v2X=/^[#`~*+_=<>0-9-\|]|\|/,JL4=/[^ \t\f\v\r\n]/,YAV=/^[*+-]/,G0I=/^(\d{1,9})([.)])/,uOk=/^#{1,6}(?:[ \t]+|$)/,Oy1=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,QfV=/^(?:`{3,}|~{3,})(?= *$)/,M6R=/^(?:=+|-+)[ \t]*$/,HyR=/\r\n|\n|\r/,fua=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,CJY=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,EMl={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(Y){return Y!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(Y,G){for(Y=G._firstChild;Y;){if(xOY(Y)&&Y._next){G._listData.tight=!1;break}for(var u=Y._firstChild;u;){if(xOY(u)&&(Y._next||u._next)){G._listData.tight=!1;break}u=u._next}Y=Y._next}},
canContain:function(Y){return Y==="item"},
acceptsLines:!1},block_quote:{continue:function(Y){var G=Y.currentLine;if(Y.indented||pA(G,Y.nextNonspace)!==62)return 1;Uq(Y);v0(Y,1,!1);F1(pA(G,Y.offset))&&v0(Y,1,!0);return 0},
finalize:function(){},
canContain:function(Y){return Y!=="item"},
acceptsLines:!1},item:{continue:function(Y,G){if(Y.blank){if(G._firstChild==null)return 1;Uq(Y)}else if(Y.indent>=G._listData.markerOffset+G._listData.padding)v0(Y,G._listData.markerOffset+G._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(Y){return Y!=="item"&&!yEa(Y)},
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(Y,G){var u=Y.currentLine,O=Y.indent;if(G._isFenced){if((O=O<=3&&u.charAt(Y.nextNonspace)===G._fenceChar&&u.slice(Y.nextNonspace).match(QfV))&&O[0].length>=G._fenceLength)return Y.finalize(G,Y.lineNumber),2;for(G=G._fenceOffset;G>0&&F1(pA(u,Y.offset));)v0(Y,1,!0),G--}else if(O>=4)v0(Y,4,!0);else if(Y.blank)Uq(Y);else return 1;return 0},
finalize:function(Y,G){if(G._isFenced){var u=G._string_content,O=u.indexOf("\n");Y=u.slice(0,O);u=u.slice(O+1);G.info=T4k(Y.trim());G._literal=u}else G._literal=G._string_content.replace(/(\n *)+$/,"\n");G._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(Y,G){return!Y.blank||G._htmlBlockType!==6&&G._htmlBlockType!==7?0:1},
finalize:function(Y,G){G._literal=G._string_content.replace(/(\n *)+$/,"");G._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(Y){return Y.blank?1:0},
finalize:function(Y,G){for(var u,O=!1;pA(G._string_content,0)===91&&(u=$Fk(Y.inlineParser,G._string_content,Y.refmap));)G._string_content=G._string_content.slice(u),O=!0;O&&!JL4.test(G._string_content)&&G.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(Y){return zN(Y.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(Y){return Y=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(Y,G){if(!G._rowIsDelimiter){Y=G._isHeader?"th":"td";for(var u=G._parent._tableColumns,O=G._string_content,Q=0,M="",t,K=G._sourcepos[0][0];Q<O.length;){switch(O[Q]){case "|":t&&(t._string_content=M.trim(),M="",t=null,u--,u<=0&&(Q=O.length));break;default:if(!t){t=new Wc(Y,[[K,Q],[K,Q]]);var L=G._parent._columnAlignment,g=G._parent._tableColumns-u;L&&g<=L.length&&g>=0&&(t._alignment=L[g]);G.appendChild(t)}M+=O[Q];t._sourcepos[1][1]=Q}Q++}t&&(t._string_content=M.trim());G._string_content=
""}},
canContain:function(Y){return Y!=="row"},
acceptsLines:!1}},t6X=[function(Y){if(Y.indented||pA(Y.currentLine,Y.nextNonspace)!==62)return 0;Uq(Y);v0(Y,1,!1);F1(pA(Y.currentLine,Y.offset))&&v0(Y,1,!0);Jg(Y);Y.addChild("block_quote",Y.nextNonspace);return 1},
function(Y){var G;if(!Y.indented&&(G=Y.currentLine.slice(Y.nextNonspace).match(uOk))){Uq(Y);v0(Y,G[0].length,!1);Jg(Y);var u=Y.addChild("heading",Y.nextNonspace);u.level=G[0].trim().length;u._string_content=Y.currentLine.slice(Y.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");v0(Y,Y.currentLine.length-Y.offset);return 2}return 0},
function(Y){var G;if(!Y.indented&&(G=Y.currentLine.slice(Y.nextNonspace).match(Oy1))){var u=G[0].length;Jg(Y);var O=Y.addChild("code_block",Y.nextNonspace);O._isFenced=!0;O._fenceLength=u;O._fenceChar=G[0][0];O._fenceOffset=Y.indent;Uq(Y);v0(Y,u,!1);return 2}return 0},
function(Y,G){if(!Y.indented&&pA(Y.currentLine,Y.nextNonspace)===60){var u=Y.currentLine.slice(Y.nextNonspace),O;for(O=1;O<=7;O++)if(szE[O].test(u)&&(O<7||G.type!=="paragraph"))return Jg(Y),Y.addChild("html_block",Y.offset)._htmlBlockType=O,2}return 0},
function(Y,G){var u;if(!Y.indented&&G.type==="paragraph"&&(u=Y.currentLine.slice(Y.nextNonspace).match(M6R))){Jg(Y);var O=new Wc("heading",G.sourcepos);O.level=u[0][0]==="="?1:2;O._string_content=G._string_content;kPR(G,O);G.unlink();Y.tip=O;v0(Y,Y.currentLine.length-Y.offset,!1);return 2}return 0},
function(Y){return!Y.indented&&UFe.test(Y.currentLine.slice(Y.nextNonspace))?(Jg(Y),Y.addChild("thematic_break",Y.nextNonspace),v0(Y,Y.currentLine.length-Y.offset,!1),2):0},
function(Y,G){var u,O;if(!(O=Y.indented&&G.type!=="list")){a:{var Q=G,M=Y.currentLine.slice(Y.nextNonspace);O={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:Y.indent};if(u=M.match(YAV))O.type="bullet",O.bulletChar=u[0][0];else{if(!(u=M.match(G0I))||Q.type==="paragraph"&&u[1]!=="1"){u=null;break a}O.type="ordered";O.start=parseInt(u[1],10);O.delimiter=u[2]}var t=pA(Y.currentLine,Y.nextNonspace+u[0].length);if(t!==-1&&t!==9&&t!==32||Q.type==="paragraph"&&!Y.currentLine.slice(Y.nextNonspace+
u[0].length).match(JL4))u=null;else{Uq(Y);v0(Y,u[0].length,!0);Q=Y.column;M=Y.offset;do v0(Y,1,!0),t=pA(Y.currentLine,Y.offset);while(Y.column-Q<5&&F1(t));t=pA(Y.currentLine,Y.offset)===-1;var K=Y.column-Q;K>=5||K<1||t?(O.padding=u[0].length+1,Y.column=Q,Y.offset=M,F1(pA(Y.currentLine,Y.offset))&&v0(Y,1,!0)):O.padding=u[0].length+K;u=O}}O=!u}if(O)return 0;Jg(Y);(O=Y.tip.type!=="list")||(G=G._listData,O=!(G.type===u.type&&G.delimiter===u.delimiter&&G.bulletChar===u.bulletChar));O&&(G=Y.addChild("list",
Y.nextNonspace),G._listData=u);G=Y.addChild("item",Y.nextNonspace);G._listData=u;return 1},
function(Y){var G;return((G=Y.options.shouldParseIndentAsCodeBlock)!=null?G:1)&&Y.indented&&Y.tip.type!=="paragraph"&&!Y.blank?(v0(Y,4,!0),Jg(Y),Y.addChild("code_block",Y.offset),2):0},
function(Y,G){var u=zN(Y.currentLine),O=zN(Y.lookahead);if(u!==0&&O<0&&Math.abs(u)==Math.abs(O)&&!yEa(G.type)){Jg(Y);G=Y.addChild("table",Y.nextNonspace);G._tableRows=1;G._tableColumns=Math.abs(u);u=Y.lookahead;if(CJY.test(u)){O=[];for(var Q=0,M=!1,t=0,K=void 0;Q<u.length;){var L=t>=3;switch(u[Q]){case "-":t++;break;case "|":M&&(O.push(K),K=void 0,t=0);M=!0;break;case ":":K||L||(K="left"),!K&&L&&(K="right"),K==="left"&&L&&(K="center")}Q++}u=O}else u=void 0;G._columnAlignment=u;G=Y.addChild("row",
Y.nextNonspace);G._isHeader=!0;v0(Y,Y.currentLine.length-Y.offset,!1);G._string_content=Y.currentLine;return 1}return 0},
function(Y,G){if(G.type=="table"&&zN(Y.currentLine)!==0){Jg(Y);var u=G;G=Y.addChild("row",Y.nextNonspace);zN(Y.currentLine)<0?G._rowIsDelimiter=!0:u._tableRows+=1;v0(Y,Y.currentLine.length-Y.offset,!1);G._string_content=Y.currentLine;return 2}return 0}],saY=function(){var Y={shouldParseIndentAsCodeBlock:!1};
Y=Y===void 0?{}:Y;this.lastMatchedContainer=this.doc=ebA();this.refmap={};this.lastLineLength=0;this.inlineParser=new sq(Y);this.options=Y;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=EMl;this.blockStarts=t6X},KJ_=function(Y){Y.partiallyConsumedTab&&(Y.offset+=1,Y.tip._string_content+=" ".repeat(4-Y.column%
4));
Y.tip._string_content+=Y.currentLine.slice(Y.offset)+"\n"};
saY.prototype.addChild=function(Y,G){for(;!this.blocks[this.tip.type].canContain(Y);)this.finalize(this.tip,this.lineNumber-1);Y=new Wc(Y,[[this.lineNumber,G+1],[0,0]]);Y._string_content="";this.tip.appendChild(Y);return this.tip=Y};
var Jg=function(Y){if(!Y.allClosed){for(;Y.oldtip!==Y.lastMatchedContainer;){var G=Y.oldtip._parent;Y.finalize(Y.oldtip,Y.lineNumber-1);Y.oldtip=G}Y.allClosed=!0}},v0=function(Y,G,u){for(var O=Y.currentLine,Q,M;G>0&&(M=O[Y.offset]);)M==="\t"?(Q=4-Y.column%4,u?(Y.partiallyConsumedTab=Q>G,Q=Q>G?G:Q,Y.column+=Q,Y.offset+=Y.partiallyConsumedTab?0:1,G-=Q):(Y.partiallyConsumedTab=!1,Y.column+=Q,Y.offset+=1,--G)):(Y.partiallyConsumedTab=!1,Y.offset+=1,Y.column+=1,--G)},Uq=function(Y){Y.offset=Y.nextNonspace;
Y.column=Y.nextNonspaceColumn;Y.partiallyConsumedTab=!1},aKR=function(Y){for(var G=Y.currentLine,u=Y.offset,O=Y.column,Q;(Q=G.charAt(u))!=="";)if(Q===" ")u++,O++;
else if(Q==="\t")u++,O+=4-O%4;else break;Y.blank=Q==="\n"||Q==="\r"||Q==="";Y.nextNonspace=u;Y.nextNonspaceColumn=O;Y.indent=Y.nextNonspaceColumn-Y.column;Y.indented=Y.indent>=4};
saY.prototype.finalize=function(Y,G){var u=Y._parent;Y._open=!1;Y.sourcepos[1]=[G,this.lastLineLength];this.blocks[Y.type].finalize(this,Y);this.tip=u};
saY.prototype.parse=function(Y){this.tip=this.doc=ebA();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!Y)return this.doc;this.options.time&&console.time("preparing input");var G=Y.split(HyR),u=G.length;Y.charCodeAt(Y.length-1)===10&&--u;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(Y=0;Y<u;Y++)a:{var O=void 0,Q=G[Y],M=G[Y+1],t=!0,K=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;Q.indexOf("\x00")!==-1&&(Q=Q.replace(/\0/g,"\ufffd"));this.currentLine=Q;for(this.lookahead=M;(O=K._lastChild)&&O._open;){K=O;aKR(this);switch(this.blocks[K.type].continue(this,K)){case 0:break;case 1:t=!1;break;case 2:this.lastLineLength=Q.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!t){K=K._parent;break}}this.allClosed=K===this.oldtip;this.lastMatchedContainer=
K;O=K.type!=="paragraph"&&EMl[K.type].acceptsLines;M=this.blockStarts;for(t=M.length;!O;){aKR(this);if(!this.indented&&!v2X.test(Q.slice(this.nextNonspace))){Uq(this);break}for(var L=0;L<t;){var g=M[L](this,K);if(g===1){K=this.tip;break}else if(g===2){K=this.tip;O=!0;break}else L++}if(L===t){Uq(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){Jg(this);this.blank&&K.lastChild&&(K.lastChild._lastLineBlank=!0);O=K.type;M=this.blank&&!(O==="block_quote"||O==="code_block"&&K._isFenced||
O==="item"&&!K._firstChild&&K.sourcepos[0][0]===this.lineNumber);for(t=K;t;)t._lastLineBlank=M,t=t._parent;this.blocks[O].acceptsLines?(KJ_(this),O==="html_block"&&K._htmlBlockType>=1&&K._htmlBlockType<=5&&cLM[K._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(K,this.lineNumber)):this.offset<Q.length&&!this.blank&&(this.addChild("paragraph",this.offset),Uq(this),KJ_(this))}else KJ_(this);this.lastLineLength=Q.length}for(;this.tip;)this.finalize(this.tip,u);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");Q=new ILM(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;u=Q.next();)G=u.node,Y=G.type,u.entering||Y!=="paragraph"&&Y!=="heading"&&Y!=="th"&&Y!="td"||this.inlineParser.parse(G);this.options.time&&console.timeEnd("inline parsing");return this.doc};AEj.prototype.render=function(Y){Y=new ILM(Y);var G;this.buffer="";for(this.lastOut="\n";G=Y.next();){var u=G.node.type;if(this[u])this[u](G.node,G.entering)}return this.buffer};
AEj.prototype.out=function(Y){Yc(this,Y)};
var Yc=function(Y,G){Y.buffer+=G;Y.lastOut=G};
AEj.prototype.cr=function(){this.lastOut!=="\n"&&Yc(this,"\n")};var TVe=/^javascript:|vbscript:|file:|data:/i,LJl=/^data:image\/(?:png|gif|jpeg|webp)/i,gM_=function(Y){return TVe.test(Y)&&!LJl.test(Y)};
ra.prototype=Object.create(AEj.prototype);_.H=ra.prototype;_.H.text=function(Y){this.out(Y.literal)};
_.H.html_inline=function(Y){this.options.safe?Yc(this,"\x3c!-- raw HTML omitted --\x3e"):Yc(this,Y.literal)};
_.H.html_block=function(Y){this.cr();this.options.safe?Yc(this,"\x3c!-- raw HTML omitted --\x3e"):Yc(this,Y.literal);this.cr()};
_.H.softbreak=function(){Yc(this,this.options.softbreak)};
_.H.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.H.link=function(Y,G){var u=this.attrs(Y);G?(this.options.safe&&gM_(Y.destination)||u.push(["href",B0(Y.destination,!0)]),Y.title&&u.push(["title",B0(Y.title,!0)]),this.tag("a",u)):this.tag("/a")};
_.H.image=function(Y,G){G?(this.disableTags===0&&(this.options.safe&&gM_(Y.destination)?Yc(this,'<img src="" alt="'):Yc(this,'<img src="'+B0(Y.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(Y.title&&Yc(this,'" title="'+B0(Y.title,!0)),Yc(this,'" />')))};
_.H.emph=function(Y,G){this.tag(G?"em":"/em")};
_.H.strong=function(Y,G){this.tag(G?"strong":"/strong")};
_.H.paragraph=function(Y,G){var u=Y.parent.parent;Y=this.attrs(Y);u!==null&&u.type==="list"&&u.listTight||(G?(this.cr(),this.tag("p",Y)):(this.tag("/p"),this.cr()))};
_.H.heading=function(Y,G){var u="h"+Y.level;Y=this.attrs(Y);G?(this.cr(),this.tag(u,Y)):(this.tag("/"+u),this.cr())};
_.H.code=function(Y){this.tag("code");this.out(Y.literal);this.tag("/code")};
_.H.code_block=function(Y){var G=Y.info?Y.info.split(/\s+/):[],u=this.attrs(Y);G.length>0&&G[0].length>0&&u.push(["class","language-"+B0(G[0],!0)]);this.cr();this.tag("pre");this.tag("code",u);this.out(Y.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.H.thematic_break=function(Y){Y=this.attrs(Y);this.cr();this.tag("hr",Y,!0);this.cr()};
_.H.block_quote=function(Y,G){Y=this.attrs(Y);G?(this.cr(),this.tag("blockquote",Y)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.H.list=function(Y,G){var u=Y.listType==="bullet"?"ul":"ol",O=this.attrs(Y);G?(Y=Y.listStart,Y!==null&&Y!==1&&O.push(["start",Y.toString()]),this.cr(),this.tag(u,O)):(this.cr(),this.tag("/"+u));this.cr()};
_.H.item=function(Y,G){Y=this.attrs(Y);G?this.tag("li",Y):(this.tag("/li"),this.cr())};
_.H.custom_inline=function(Y,G){G&&Y.onEnter?Yc(this,Y.onEnter):!G&&Y.onExit&&Yc(this,Y.onExit)};
_.H.custom_block=function(Y,G){this.cr();G&&Y.onEnter?Yc(this,Y.onEnter):!G&&Y.onExit&&Yc(this,Y.onExit);this.cr()};
_.H.table=function(Y,G){Y=this.attrs(Y);G?(this.cr(),this.tag("table",Y)):(this.tag("/table"),this.cr())};
_.H.row=function(Y,G){Y._rowIsDelimiter||(Y=this.attrs(Y),G?this.tag("tr",Y):this.tag("/tr"))};
_.H.td=function(Y,G){var u=this.attrs(Y);Y._alignment&&u.push(["align",Y._alignment]);G?this.tag("td",u):this.tag("/td")};
_.H.th=function(Y,G){var u=this.attrs(Y);Y._alignment&&u.push(["align",Y._alignment]);G?this.tag("th",u):this.tag("/th")};
_.H.out=function(Y){Yc(this,B0(Y,!1))};
_.H.tag=function(Y,G,u){if(!(this.disableTags>0)){this.buffer+="<"+Y;if(G&&G.length>0){Y=0;for(var O;(O=G[Y])!==void 0;)this.buffer+=" "+O[0]+'="'+O[1]+'"',Y++}u&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.H.attrs=function(Y){var G=[];this.options.sourcepos&&(Y=Y.sourcepos)&&G.push(["data-sourcepos",String(Y[0][0])+":"+String(Y[0][1])+"-"+String(Y[1][0])+":"+String(Y[1][1])]);return G};
ra.prototype.text=ra.prototype.text;ra.prototype.html_inline=ra.prototype.html_inline;ra.prototype.html_block=ra.prototype.html_block;ra.prototype.softbreak=ra.prototype.softbreak;ra.prototype.linebreak=ra.prototype.linebreak;ra.prototype.link=ra.prototype.link;ra.prototype.image=ra.prototype.image;ra.prototype.emph=ra.prototype.emph;ra.prototype.strong=ra.prototype.strong;ra.prototype.paragraph=ra.prototype.paragraph;ra.prototype.heading=ra.prototype.heading;ra.prototype.code=ra.prototype.code;
ra.prototype.code_block=ra.prototype.code_block;ra.prototype.thematic_break=ra.prototype.thematic_break;ra.prototype.block_quote=ra.prototype.block_quote;ra.prototype.list=ra.prototype.list;ra.prototype.item=ra.prototype.item;ra.prototype.custom_inline=ra.prototype.custom_inline;ra.prototype.custom_block=ra.prototype.custom_block;ra.prototype.table=ra.prototype.table;ra.prototype.row=ra.prototype.row;ra.prototype.td=ra.prototype.td;ra.prototype.th=ra.prototype.th;ra.prototype.out=ra.prototype.out;
ra.prototype.tag=ra.prototype.tag;ra.prototype.attrs=ra.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 XH4,P$X,uMu;(function(){function Y(A,y){return A<y?-1:A>y?1:A>=y?0:NaN}
function G(A){return function(y,b){return Y(A(y),b)}}
function u(){for(var A=0,y=arguments.length,b={},uy;A<y;++A){if(!(uy=arguments[A]+"")||uy in b)throw Error("xe`"+uy);b[uy]=[]}return new O(b)}
function O(A){this._=A}
function Q(A,y){return A.trim().split(/^|\s+/).map(function(b){var uy="",L1=b.indexOf(".");L1>=0&&(uy=b.slice(L1+1),b=b.slice(0,L1));if(b&&!y.hasOwnProperty(b))throw Error("ye`"+b);return{type:b,name:uy}})}
function M(A,y,b){for(var uy=0,L1=A.length;uy<L1;++uy)if(A[uy].name===y){A[uy]=H0B;A=A.slice(0,uy).concat(A.slice(uy+1));break}b!=null&&A.push({name:y,value:b});return A}
function t(A){var y=A,b=y.indexOf(":");b>=0&&(y=A.slice(0,b))!=="xmlns"&&(A=A.slice(b+1));return WU.hasOwnProperty(y)?{space:WU[y],local:A}:A}
function K(A){return function(){var y=this.ownerDocument,b=this.namespaceURI;return b==="http://www.w3.org/1999/xhtml"&&y.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?y.createElement(A):y.createElementNS(b,A)}}
function L(A){return function(){return this.ownerDocument.createElementNS(A.space,A.local)}}
function g(A){A=t(A);return(A.local?L:K)(A)}
function P(){}
function I(A){return A==null?P:function(){return this.querySelector(A)}}
function k(A){return Array(A.length)}
function n(A,y){this.ownerDocument=A.ownerDocument;this.namespaceURI=A.namespaceURI;this._next=null;this._parent=A;this.__data__=y}
function p(A){return function(){return A}}
function W(A,y,b,uy,L1,p1){for(var f1=0,wA,aX=y.length,MM=p1.length;f1<MM;++f1)(wA=y[f1])?(wA.__data__=p1[f1],uy[f1]=wA):b[f1]=new n(A,p1[f1]);for(;f1<aX;++f1)if(wA=y[f1])L1[f1]=wA}
function C(A,y,b,uy,L1,p1,f1){var wA,aX,MM={},LT=y.length,z2=p1.length,U4=Array(LT),ZN;for(wA=0;wA<LT;++wA)if(aX=y[wA])U4[wA]=ZN="$"+f1.call(aX,aX.__data__,wA,y),ZN in MM?L1[wA]=aX:MM[ZN]=aX;for(wA=0;wA<z2;++wA)ZN="$"+f1.call(A,p1[wA],wA,p1),(aX=MM[ZN])?(uy[wA]=aX,aX.__data__=p1[wA],MM[ZN]=null):b[wA]=new n(A,p1[wA]);for(wA=0;wA<LT;++wA)(aX=y[wA])&&MM[U4[wA]]===aX&&(L1[wA]=aX)}
function e(A,y){return A<y?-1:A>y?1:A>=y?0:NaN}
function w(A){return function(){this.removeAttribute(A)}}
function B(A){return function(){this.removeAttributeNS(A.space,A.local)}}
function N(A,y){return function(){this.setAttribute(A,y)}}
function h(A,y){return function(){this.setAttributeNS(A.space,A.local,y)}}
function q(A,y){return function(){var b=y.apply(this,arguments);b==null?this.removeAttribute(A):this.setAttribute(A,b)}}
function U(A,y){return function(){var b=y.apply(this,arguments);b==null?this.removeAttributeNS(A.space,A.local):this.setAttributeNS(A.space,A.local,b)}}
function Mj(A){return function(){this.style.removeProperty(A)}}
function Xt(A,y,b){return function(){this.style.setProperty(A,y,b)}}
function ka(A,y,b){return function(){var uy=y.apply(this,arguments);uy==null?this.style.removeProperty(A):this.style.setProperty(A,uy,b)}}
function aU(A,y){return A.style.getPropertyValue(y)||(A.ownerDocument&&A.ownerDocument.defaultView||A.document&&A||A.defaultView).getComputedStyle(A,null).getPropertyValue(y)}
function Tg(A){return function(){delete this[A]}}
function iy(A,y){return function(){this[A]=y}}
function hY(A,y){return function(){var b=y.apply(this,arguments);b==null?delete this[A]:this[A]=b}}
function dA(){this.textContent=""}
function nT(A){return function(){this.textContent=A}}
function u_(A){return function(){var y=A.apply(this,arguments);this.textContent=y==null?"":y}}
function jT(){this.innerHTML=""}
function P1(A){return function(){this.innerHTML=A}}
function kk(A){return function(){var y=A.apply(this,arguments);this.innerHTML=y==null?"":y}}
function Fe(){return null}
function Xg(){var A=this.parentNode;A&&A.removeChild(this)}
function Hb(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function n1(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function Yk(A,y,b){A=qj(A,y,b);return function(uy){var L1=uy.relatedTarget;L1&&(L1===this||L1.compareDocumentPosition(this)&8)||A.call(this,uy)}}
function qj(A,y,b){return function(){A.call(this,this.__data__,y,b)}}
function Gx(A){return A.trim().split(/^|\s+/).map(function(y){var b="",uy=y.indexOf(".");uy>=0&&(b=y.slice(uy+1),y=y.slice(0,uy));return{type:y,name:b}})}
function fT(A){return function(){var y=this.__on;if(y){for(var b=0,uy=-1,L1=y.length,p1;b<L1;++b)(p1=y[b],A.type&&p1.type!==A.type||p1.name!==A.name)?y[++uy]=p1:this.removeEventListener(p1.type,p1.listener,p1.capture);++uy?y.length=uy:delete this.__on}}}
function b_(A,y,b){var uy=Kb4.hasOwnProperty(A.type)?Yk:qj;return function(L1,p1,f1){L1=this.__on;var wA;p1=uy(y,p1,f1);if(L1){f1=0;for(var aX=L1.length;f1<aX;++f1)if((wA=L1[f1]).type===A.type&&wA.name===A.name){this.removeEventListener(wA.type,wA.listener,wA.capture);this.addEventListener(wA.type,wA.listener=p1,wA.capture=b);wA.value=y;return}}this.addEventListener(A.type,p1,b);wA={type:A.type,name:A.name,value:y,listener:p1,capture:b};L1?L1.push(wA):this.__on=[wA]}}
function MK(A,y,b){var uy=A.ownerDocument&&A.ownerDocument.defaultView||A.document&&A||A.defaultView,L1=uy.CustomEvent;typeof L1==="function"?L1=new L1(y,b):(L1=uy.document.createEvent("Event"),b?(L1.initEvent(y,b.bubbles,b.cancelable),L1.detail=b.detail):L1.initEvent(y,!1,!1));A.dispatchEvent(L1)}
function v1(A,y){return function(){return MK(this,A,y)}}
function Ew(A,y){return function(){return MK(this,A,y.apply(this,arguments))}}
function l_(A,y){this._groups=A;this._parents=y}
function $V(){return new l_([[document.documentElement]],EQj)}
function T2(){this._="@"+(++tPS).toString(36)}
function Pb(A,y,b){A.prototype=y.prototype=b;b.constructor=A}
function IX(A,y){A=Object.create(A.prototype);for(var b in y)A[b]=y[b];return A}
function $k(){}
function NM(A){var y;A=(A+"").trim().toLowerCase();return(y=KoS.exec(A))?(y=parseInt(y[1],16),new vb(y>>8&15|y>>4&240,y>>4&15|y&240,(y&15)<<4|y&15,1)):(y=alN.exec(A))?fx(parseInt(y[1],16)):(y=T7x.exec(A))?new vb(y[1],y[2],y[3],1):(y=Loy.exec(A))?new vb(y[1]*255/100,y[2]*255/100,y[3]*255/100,1):(y=gQw.exec(A))?H8(y[1],y[2],y[3],y[4]):(y=XAj.exec(A))?H8(y[1]*255/100,y[2]*255/100,y[3]*255/100,y[4]):(y=PYS.exec(A))?s_(y[1],y[2]/100,y[3]/100,1):(y=Il9.exec(A))?s_(y[1],y[2]/100,y[3]/100,y[4]):aF2.hasOwnProperty(A)?
fx(aF2[A]):A==="transparent"?new vb(NaN,NaN,NaN,0):null}
function fx(A){return new vb(A>>16&255,A>>8&255,A&255,1)}
function H8(A,y,b,uy){uy<=0&&(A=y=b=NaN);return new vb(A,y,b,uy)}
function jR(A){A instanceof $k||(A=NM(A));if(!A)return new vb;A=A.rgb();return new vb(A.r,A.g,A.b,A.opacity)}
function Io(A,y,b,uy){return arguments.length===1?jR(A):new vb(A,y,b,uy==null?1:uy)}
function vb(A,y,b,uy){this.r=+A;this.g=+y;this.b=+b;this.opacity=+uy}
function K5(A){A=Math.max(0,Math.min(255,Math.round(A)||0));return(A<16?"0":"")+A.toString(16)}
function s_(A,y,b,uy){uy<=0?A=y=b=NaN:b<=0||b>=1?A=y=NaN:y<=0&&(A=NaN);return new PF(A,y,b,uy)}
function jd(A){if(A instanceof PF)return new PF(A.h,A.s,A.l,A.opacity);A instanceof $k||(A=NM(A));if(!A)return new PF;if(A instanceof PF)return A;A=A.rgb();var y=A.r/255,b=A.g/255,uy=A.b/255,L1=Math.min(y,b,uy),p1=Math.max(y,b,uy),f1=NaN,wA=p1-L1,aX=(p1+L1)/2;wA?(f1=y===p1?(b-uy)/wA+(b<uy)*6:b===p1?(uy-y)/wA+2:(y-b)/wA+4,wA/=aX<.5?p1+L1:2-p1-L1,f1*=60):wA=aX>0&&aX<1?0:f1;return new PF(f1,wA,aX,A.opacity)}
function eE(A,y,b,uy){return arguments.length===1?jd(A):new PF(A,y,b,uy==null?1:uy)}
function PF(A,y,b,uy){this.h=+A;this.s=+y;this.l=+b;this.opacity=+uy}
function Zx(A,y,b){return(A<60?y+(b-y)*A/60:A<180?b:A<240?y+(b-y)*(240-A)/60:y)*255}
function Ad(A){if(A instanceof yj)return new yj(A.l,A.a,A.b,A.opacity);if(A instanceof CT){if(isNaN(A.h))return new yj(A.l,0,0,A.opacity);var y=A.h*TYU;return new yj(A.l,Math.cos(y)*A.c,Math.sin(y)*A.c,A.opacity)}A instanceof vb||(A=jR(A));var b=rb(A.r),uy=rb(A.g),L1=rb(A.b);y=by(.2225045*b+.7168786*uy+.0606169*L1);if(b===uy&&uy===L1)var p1=b=y;else p1=by((.4360747*b+.3850649*uy+.1430804*L1)/.96422),b=by((.0139322*b+.0971045*uy+.7141733*L1)/.82521);return new yj(116*y-16,500*(p1-y),200*(y-b),A.opacity)}
function yj(A,y,b,uy){this.l=+A;this.a=+y;this.b=+b;this.opacity=+uy}
function by(A){return A>kTx?Math.pow(A,1/3):A/Lb4+g8R}
function sI(A){return A>Bl?A*A*A:Lb4*(A-g8R)}
function rR(A){return 255*(A<=.0031308?12.92*A:1.055*Math.pow(A,1/2.4)-.055)}
function rb(A){return(A/=255)<=.04045?A/12.92:Math.pow((A+.055)/1.055,2.4)}
function C5(A){if(A instanceof CT)return new CT(A.h,A.c,A.l,A.opacity);A instanceof yj||(A=Ad(A));if(A.a===0&&A.b===0)return new CT(NaN,0,A.l,A.opacity);var y=Math.atan2(A.b,A.a)*X9R;return new CT(y<0?y+360:y,Math.sqrt(A.a*A.a+A.b*A.b),A.l,A.opacity)}
function y9(A,y,b,uy){return arguments.length===1?C5(A):new CT(A,y,b,uy==null?1:uy)}
function CT(A,y,b,uy){this.h=+A;this.c=+y;this.l=+b;this.opacity=+uy}
function xk(A,y,b,uy){if(arguments.length===1){var L1=A;if(L1 instanceof jS)L1=new jS(L1.h,L1.s,L1.l,L1.opacity);else{L1 instanceof vb||(L1=jR(L1));var p1=L1.g/255,f1=L1.b/255,wA=(P2T*f1+L1.r/255*-1.7884503806-3.5172982438*p1)/(P2T+-1.7884503806-3.5172982438);f1-=wA;var aX=(1.97294*(p1-wA)- -.29227*f1)/-.90649;f1=(p1=Math.sqrt(aX*aX+f1*f1)/(1.97294*wA*(1-wA)))?Math.atan2(aX,f1)*X9R-120:NaN;L1=new jS(f1<0?f1+360:f1,p1,wA,L1.opacity)}}else L1=new jS(A,y,b,uy==null?1:uy);return L1}
function jS(A,y,b,uy){this.h=+A;this.s=+y;this.l=+b;this.opacity=+uy}
function Mp(A,y,b,uy,L1){var p1=A*A,f1=p1*A;return((1-3*A+3*p1-f1)*y+(4-6*p1+3*f1)*b+(1+3*A+3*p1-3*f1)*uy+f1*L1)/6}
function pT(A){return function(){return A}}
function wg(A,y){return function(b){return A+b*y}}
function OW(A,y,b){return A=Math.pow(A,b),y=Math.pow(y,b)-A,b=1/b,function(uy){return Math.pow(A+uy*y,b)}}
function Np(A,y){var b=y-A;return b?wg(A,b>180||b<-180?b-360*Math.round(b/360):b):pT(isNaN(A)?y:A)}
function Iy(A){return(A=+A)===1?GR:function(y,b){return b-y?OW(y,b,A):pT(isNaN(y)?b:y)}}
function GR(A,y){var b=y-A;return b?wg(A,b):pT(isNaN(A)?y:A)}
function u9(A){return function(y){var b=y.length,uy=Array(b),L1=Array(b),p1=Array(b),f1;for(f1=0;f1<b;++f1){var wA=Io(y[f1]);uy[f1]=wA.r||0;L1[f1]=wA.g||0;p1[f1]=wA.b||0}uy=A(uy);L1=A(L1);p1=A(p1);wA.opacity=1;return function(aX){wA.r=uy(aX);wA.g=L1(aX);wA.b=p1(aX);return wA+""}}}
function cF(A,y){return A=+A,y-=A,function(b){return A+y*b}}
function mU(A){return function(){return A}}
function g8(A){return function(y){return A(y)+""}}
function Yq(A,y){var b=Jsj.lastIndex=YaT.lastIndex=0,uy,L1,p1,f1=-1,wA=[],aX=[];A+="";for(y+="";(uy=Jsj.exec(A))&&(L1=YaT.exec(y));)(p1=L1.index)>b&&(p1=y.slice(b,p1),wA[f1]?wA[f1]+=p1:wA[++f1]=p1),(uy=uy[0])===(L1=L1[0])?wA[f1]?wA[f1]+=L1:wA[++f1]=L1:(wA[++f1]=null,aX.push({i:f1,x:cF(uy,L1)})),b=YaT.lastIndex;b<y.length&&(p1=y.slice(b),wA[f1]?wA[f1]+=p1:wA[++f1]=p1);return wA.length<2?aX[0]?g8(aX[0].x):mU(y):(y=aX.length,function(MM){for(var LT=0,z2;LT<y;++LT)wA[(z2=aX[LT]).i]=z2.x(MM);return wA.join("")})}
function xp(A,y,b,uy,L1,p1){var f1,wA,aX;if(f1=Math.sqrt(A*A+y*y))A/=f1,y/=f1;if(aX=A*b+y*uy)b-=A*aX,uy-=y*aX;if(wA=Math.sqrt(b*b+uy*uy))b/=wA,uy/=wA,aX/=wA;A*uy<y*b&&(A=-A,y=-y,aX=-aX,f1=-f1);return{translateX:L1,translateY:p1,rotate:Math.atan2(y,A)*IF4,skewX:Math.atan(aX)*IF4,scaleX:f1,scaleY:wA}}
function eN(A,y,b,uy){function L1(MM){return MM.length?MM.pop()+" ":""}
function p1(MM,LT,z2,U4,ZN,ep){MM!==z2||LT!==U4?(ZN=ZN.push("translate(",null,y,null,b),ep.push({i:ZN-4,x:cF(MM,z2)},{i:ZN-2,x:cF(LT,U4)})):(z2||U4)&&ZN.push("translate("+z2+y+U4+b)}
function f1(MM,LT,z2,U4){MM!==LT?(MM-LT>180?LT+=360:LT-MM>180&&(MM+=360),U4.push({i:z2.push(L1(z2)+"rotate(",null,uy)-2,x:cF(MM,LT)})):LT&&z2.push(L1(z2)+"rotate("+LT+uy)}
function wA(MM,LT,z2,U4){MM!==LT?U4.push({i:z2.push(L1(z2)+"skewX(",null,uy)-2,x:cF(MM,LT)}):LT&&z2.push(L1(z2)+"skewX("+LT+uy)}
function aX(MM,LT,z2,U4,ZN,ep){MM!==z2||LT!==U4?(ZN=ZN.push(L1(ZN)+"scale(",null,",",null,")"),ep.push({i:ZN-4,x:cF(MM,z2)},{i:ZN-2,x:cF(LT,U4)})):z2===1&&U4===1||ZN.push(L1(ZN)+"scale("+z2+","+U4+")")}
return function(MM,LT){var z2=[],U4=[];MM=A(MM);LT=A(LT);p1(MM.translateX,MM.translateY,LT.translateX,LT.translateY,z2,U4);f1(MM.rotate,LT.rotate,z2,U4);wA(MM.skewX,LT.skewX,z2,U4);aX(MM.scaleX,MM.scaleY,LT.scaleX,LT.scaleY,z2,U4);MM=LT=null;return function(ZN){for(var ep=-1,J0=U4.length,Dx;++ep<J0;)z2[(Dx=U4[ep]).i]=Dx.x(ZN);return z2.join("")}}}
function zo(A){return function(y,b){var uy=A((y=eE(y)).h,(b=eE(b)).h),L1=GR(y.s,b.s),p1=GR(y.l,b.l),f1=GR(y.opacity,b.opacity);return function(wA){y.h=uy(wA);y.s=L1(wA);y.l=p1(wA);y.opacity=f1(wA);return y+""}}}
function tE(A){return function(y,b){var uy=A((y=y9(y)).h,(b=y9(b)).h),L1=GR(y.c,b.c),p1=GR(y.l,b.l),f1=GR(y.opacity,b.opacity);return function(wA){y.h=uy(wA);y.c=L1(wA);y.l=p1(wA);y.opacity=f1(wA);return y+""}}}
function Aj(A){return function uy(b){function L1(p1,f1){var wA=A((p1=xk(p1)).h,(f1=xk(f1)).h),aX=GR(p1.s,f1.s),MM=GR(p1.l,f1.l),LT=GR(p1.opacity,f1.opacity);return function(z2){p1.h=wA(z2);p1.s=aX(z2);p1.l=MM(Math.pow(z2,b));p1.opacity=LT(z2);return p1+""}}
b=+b;L1.gamma=uy;return L1}(1)}
function o4(){return xQ||(k$2(Oj),xQ=BB.now()+D6y)}
function Oj(){xQ=0}
function OD(){this._call=this._time=this._next=null}
function KV(A,y,b){var uy=new OD;uy.restart(A,y,b);return uy}
function f3(){xQ=(hfU=BB.now())+D6y;$e=$_=0;try{o4();++$e;for(var A=d6A,y;A;)(y=xQ-A._time)>=0&&A._call.call(null,y),A=A._next;--$e}finally{$e=0;A=d6A;for(var b=Infinity;A;)if(A._call){b>A._time&&(b=A._time);var uy=A;A=A._next}else y=A._next,A._next=null,A=uy?uy._next=y:d6A=y;qG=uy;Qd(b);xQ=0}}
function J1(){var A=BB.now(),y=A-hfU;y>1E3&&(D6y-=y,hfU=A)}
function Qd(A){$e||($_&&($_=clearTimeout($_)),A-xQ>24?(A<Infinity&&($_=setTimeout(f3,A-BB.now()-D6y)),sf&&(sf=clearInterval(sf))):(sf||(hfU=BB.now(),sf=setInterval(J1,1E3)),$e=1,k$2(f3)))}
function It(A,y,b){var uy=new OD;y=y==null?0:+y;uy.restart(function(L1){uy.stop();A(L1+y)},y,b);
return uy}
function G2(A,y,b,uy,L1,p1){var f1=A.__transition;if(!f1)A.__transition={};else if(b in f1)return;Cb(A,b,{name:y,index:uy,group:L1,on:nQw,tween:FoN,time:p1.time,delay:p1.delay,duration:p1.duration,ease:p1.ease,timer:null,state:0})}
function kV(A,y){A=sw(A,y);if(A.state>0)throw Error("ze");return A}
function oo(A,y){A=sw(A,y);if(A.state>2)throw Error("Ae");return A}
function sw(A,y){A=A.__transition;if(!A||!(A=A[y]))throw Error("Be");return A}
function Cb(A,y,b){function uy(aX){var MM,LT;if(b.state!==1)return p1();for(U4 in f1){var z2=f1[U4];if(z2.name===b.name){if(z2.state===3)return It(uy);z2.state===4?(z2.state=6,z2.timer.stop(),z2.on.call("interrupt",A,A.__data__,z2.index,z2.group),delete f1[U4]):+U4<y&&(z2.state=6,z2.timer.stop(),delete f1[U4])}}It(function(){b.state===3&&(b.state=4,b.timer.restart(L1,b.delay,b.time),L1(aX))});
b.state=2;b.on.call("start",A,A.__data__,b.index,b.group);if(b.state===2){b.state=3;wA=Array(LT=b.tween.length);var U4=0;for(MM=-1;U4<LT;++U4)if(z2=b.tween[U4].value.call(A,A.__data__,b.index,b.group))wA[++MM]=z2;wA.length=MM+1}}
function L1(aX){aX=aX<b.duration?b.ease.call(null,aX/b.duration):(b.timer.restart(p1),b.state=5,1);for(var MM=-1,LT=wA.length;++MM<LT;)wA[MM].call(null,aX);b.state===5&&(b.on.call("end",A,A.__data__,b.index,b.group),p1())}
function p1(){b.state=6;b.timer.stop();delete f1[y];for(var aX in f1)return;delete A.__transition}
var f1=A.__transition,wA;f1[y]=b;b.timer=KV(function(aX){b.state=1;b.timer.restart(uy,b.delay,b.time);b.delay<=aX&&uy(aX-b.delay)},0,b.time)}
function NI(A,y){var b,uy;return function(){var L1=oo(this,A),p1=L1.tween;if(p1!==b){uy=b=p1;p1=0;for(var f1=uy.length;p1<f1;++p1)if(uy[p1].name===y){uy=uy.slice();uy.splice(p1,1);break}}L1.tween=uy}}
function BM(A,y,b){var uy,L1;if(typeof b!=="function")throw Error();return function(){var p1=oo(this,A),f1=p1.tween;if(f1!==uy){L1=(uy=f1).slice();f1={name:y,value:b};for(var wA=0,aX=L1.length;wA<aX;++wA)if(L1[wA].name===y){L1[wA]=f1;break}wA===aX&&L1.push(f1)}p1.tween=L1}}
function $N(A,y,b){var uy=A._id;A.each(function(){var L1=oo(this,uy);(L1.value||(L1.value={}))[y]=b.apply(this,arguments)});
return function(L1){return sw(L1,uy).value[y]}}
function r4(A,y){var b;return(typeof y==="number"?cF:y instanceof NM?n8k:(b=NM(y))?(y=b,n8k):Yq)(A,y)}
function f0(A){return function(){this.removeAttribute(A)}}
function bJj(A){return function(){this.removeAttributeNS(A.space,A.local)}}
function SVt(A,y,b){var uy,L1;return function(){var p1=this.getAttribute(A);return p1===b?null:p1===uy?L1:L1=y(uy=p1,b)}}
function cB(A,y,b){var uy,L1;return function(){var p1=this.getAttributeNS(A.space,A.local);return p1===b?null:p1===uy?L1:L1=y(uy=p1,b)}}
function NNI(A,y,b){var uy,L1,p1;return function(){var f1=b(this);if(f1==null)return void this.removeAttribute(A);var wA=this.getAttribute(A);return wA===f1?null:wA===uy&&f1===L1?p1:p1=y(uy=wA,L1=f1)}}
function Uf(A,y,b){var uy,L1,p1;return function(){var f1=b(this);if(f1==null)return void this.removeAttributeNS(A.space,A.local);var wA=this.getAttributeNS(A.space,A.local);return wA===f1?null:wA===uy&&f1===L1?p1:p1=y(uy=wA,L1=f1)}}
function vB(A,y){function b(){var uy=this,L1=y.apply(uy,arguments);return L1&&function(p1){uy.setAttributeNS(A.space,A.local,L1(p1))}}
b._value=y;return b}
function j0y(A,y){function b(){var uy=this,L1=y.apply(uy,arguments);return L1&&function(p1){uy.setAttribute(A,L1(p1))}}
b._value=y;return b}
function pAx(A,y){return function(){kV(this,A).delay=+y.apply(this,arguments)}}
function zdS(A,y){return y=+y,function(){kV(this,A).delay=y}}
function mwb(A,y){return function(){oo(this,A).duration=+y.apply(this,arguments)}}
function Wog(A,y){return y=+y,function(){oo(this,A).duration=y}}
function rSg(A,y){if(typeof y!=="function")throw Error();return function(){oo(this,A).ease=y}}
function xwV(A){return(A+"").trim().split(/^|\s+/).every(function(y){var b=y.indexOf(".");b>=0&&(y=y.slice(0,b));return!y||y==="start"})}
function fl9(A,y,b){var uy,L1,p1=xwV(y)?kV:oo;return function(){var f1=p1(this,A),wA=f1.on;if(wA!==uy)(L1=(uy=wA).copy()).on(y,b);f1.on=L1}}
function CYB(A){return function(){var y=this.parentNode,b;for(b in this.__transition)if(+b!==A)return;y&&y.removeChild(this)}}
function ySg(A,y){var b,uy,L1;return function(){var p1=aU(this,A),f1=(this.style.removeProperty(A),aU(this,A));return p1===f1?null:p1===b&&f1===uy?L1:L1=y(b=p1,uy=f1)}}
function edy(A){return function(){this.style.removeProperty(A)}}
function ASN(A,y,b){var uy,L1;return function(){var p1=aU(this,A);return p1===b?null:p1===uy?L1:L1=y(uy=p1,b)}}
function oQV(A,y,b){var uy,L1,p1;return function(){var f1=aU(this,A),wA=b(this);wA==null&&(wA=(this.style.removeProperty(A),aU(this,A)));return f1===wA?null:f1===uy&&wA===L1?p1:p1=y(uy=f1,L1=wA)}}
function i0x(A,y,b){function uy(){var L1=this,p1=y.apply(L1,arguments);return p1&&function(f1){L1.style.setProperty(A,p1(f1),b)}}
uy._value=y;return uy}
function Rdx(A){return function(){this.textContent=A}}
function wA9(A){return function(){var y=A(this);this.textContent=y==null?"":y}}
function kf(A,y,b,uy){this._groups=A;this._parents=y;this._name=b;this._id=uy}
function GvT(A){return{type:A}}
function uvA(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function VKA(){}
function Fb2(A,y){var b=new VKA;if(A instanceof VKA)A.each(function(f1,wA){b.set(wA,f1)});
else if(Array.isArray(A)){var uy=-1,L1=A.length,p1;if(y==null)for(;++uy<L1;)b.set(uy,A[uy]);else for(;++uy<L1;)b.set(y(p1=A[uy],uy,A),p1)}else if(A)for(uy in A)b.set(uy,A[uy]);return b}
function lCT(){}
function p9_(A){return function(y){for(var b={},uy=0;uy<A.length;uy++)b[A[uy]]=y[uy]||"";return b}}
function Z0w(A,y){var b=p9_(A);return function(uy,L1){return y(b(uy),L1,A)}}
function DwS(A){var y=Object.create(null),b=[];A.forEach(function(uy){for(var L1 in uy)L1 in y||b.push(y[L1]=L1)});
return b}
function zgk(A){function y(f1,wA){function aX(){if(ep)return ORT;if(J0)return J0=!1,m8T;var pJ,tT=z2,wJ;if(f1.charCodeAt(tT)===34){for(;z2++<LT&&f1.charCodeAt(z2)!==34||f1.charCodeAt(++z2)===34;);(pJ=z2)>=LT?ep=!0:(wJ=f1.charCodeAt(z2++))===10?J0=!0:wJ===13&&(J0=!0,f1.charCodeAt(z2)===10&&++z2);return f1.slice(tT+1,pJ-1).replace(/""/g,'"')}for(;z2<LT;){if((wJ=f1.charCodeAt(pJ=z2++))===10)J0=!0;else if(wJ===13)J0=!0,f1.charCodeAt(z2)===10&&++z2;else if(wJ!==p1)continue;return f1.slice(tT,pJ)}return ep=
!0,f1.slice(tT,LT)}
var MM=[],LT=f1.length,z2=0,U4=0,ZN,ep=LT<=0,J0=!1;f1.charCodeAt(LT-1)===10&&--LT;for(f1.charCodeAt(LT-1)===13&&--LT;(ZN=aX())!==ORT;){for(var Dx=[];ZN!==m8T&&ZN!==ORT;)Dx.push(ZN),ZN=aX();wA&&(Dx=wA(Dx,U4++))==null||MM.push(Dx)}return MM}
function b(f1){return f1.map(uy).join(A)}
function uy(f1){return f1==null?"":L1.test(f1)?'"'+f1.replace(/"/g,'""')+'"':f1}
var L1=new RegExp('["'+A+"\n\r]"),p1=A.charCodeAt(0);return{parse:function(f1,wA){var aX,MM;f1=y(f1,function(LT,z2){if(aX)return aX(LT,z2-1);MM=LT;aX=wA?Z0w(LT,wA):p9_(LT)});
f1.columns=MM||[];return f1},
parseRows:y,format:function(f1,wA){wA==null&&(wA=DwS(f1));return[wA.map(uy).join(A)].concat(f1.map(function(aX){return wA.map(function(MM){return uy(aX[MM])}).join(A)})).join("\n")},
formatRows:function(f1){return f1.map(b).join("\n")}}}
function hdN(A){if(!A.ok)throw Error("Ce`"+A.status+"`"+A.statusText);return A.text()}
function Wbl(A){return function(y,b,uy){arguments.length===2&&typeof b==="function"&&(uy=b,b=void 0);return fetch(y,b).then(hdN).then(function(L1){return A(L1,uy)})}}
function rZe(A,y,b,uy){if(isNaN(y)||isNaN(b))return A;var L1,p1=A._root;uy={data:uy};var f1=A._x0,wA=A._y0,aX=A._x1,MM=A._y1,LT,z2,U4,ZN,ep;if(!p1)return A._root=uy,A;for(;p1.length;)if((U4=y>=(LT=(f1+aX)/2))?f1=LT:aX=LT,(ZN=b>=(z2=(wA+MM)/2))?wA=z2:MM=z2,L1=p1,!(p1=p1[ep=ZN<<1|U4]))return L1[ep]=uy,A;var J0=+A._x.call(null,p1.data);var Dx=+A._y.call(null,p1.data);if(y===J0&&b===Dx)return uy.next=p1,L1?L1[ep]=uy:A._root=uy,A;do L1=L1?L1[ep]=Array(4):A._root=Array(4),(U4=y>=(LT=(f1+aX)/2))?f1=LT:aX=
LT,(ZN=b>=(z2=(wA+MM)/2))?wA=z2:MM=z2;while((ep=ZN<<1|U4)===(U4=(Dx>=z2)<<1|J0>=LT));return L1[U4]=p1,L1[ep]=uy,A}
function Eb(A,y,b,uy,L1){this.node=A;this.x0=y;this.y0=b;this.x1=uy;this.y1=L1}
function dwx(A){return A[0]}
function b0N(A){return A[1]}
function QHt(A,y,b,uy,L1,p1){this._x=A;this._y=y;this._x0=b;this._y0=uy;this._x1=L1;this._y1=p1;this._root=void 0}
function x8I(A){for(var y={data:A.data},b=y;A=A.next;)b=b.next={data:A.data};return y}
function BNg(A,y){if((y=(A=y?A.toExponential(y-1):A.toExponential()).indexOf("e"))<0)return null;var b=A.slice(0,y);return[b.length>1?b[0]+b.slice(2):b,+A.slice(y+1)]}
function Sig(A){return A=BNg(Math.abs(A)),A?A[1]:NaN}
function N7y(A,y){return function(b,uy){for(var L1=b.length,p1=[],f1=0,wA=A[0],aX=0;L1>0&&wA>0;){aX+wA+1>uy&&(wA=Math.max(1,uy-aX));p1.push(b.substring(L1-=wA,L1+wA));if((aX+=wA+1)>uy)break;wA=A[f1=(f1+1)%A.length]}return p1.reverse().join(y)}}
function jYN(A){return function(y){return y.replace(/[0-9]/g,function(b){return A[+b]})}}
function MJj(A){return new HRA(A)}
function HRA(A){if(!(y=VPS.exec(A)))throw Error("De`"+A);var y;this.fill=y[1]||" ";this.align=y[2]||">";this.sign=y[3]||"-";this.symbol=y[4]||"";this.zero=!!y[5];this.width=y[6]&&+y[6];this.comma=!!y[7];this.precision=y[8]&&+y[8].slice(1);this.trim=!!y[9];this.type=y[10]||""}
function fFM(A,y){y=BNg(A,y);if(!y)return A+"";A=y[0];y=y[1];return y<0?"0."+Array(-y).join("0")+A:A.length>y+1?A.slice(0,y+1)+"."+A.slice(y+1):A+Array(y-A.length+2).join("0")}
function C2V(A){return A}
function llb(A){function y(wA){function aX(u3){var wo=wJ,JB=m2,Ws,Xo;if(tT==="c")JB=K2(u3)+JB,u3="";else{u3=+u3;var DN=u3<0;u3=K2(Math.abs(u3),Dx);if(pJ){var KH=u3.length,M2=1,z5=-1;a:for(;M2<KH;++M2)switch(u3[M2]){case ".":z5=Ws=M2;break;case "0":z5===0&&(z5=M2);Ws=M2;break;default:if(!+u3[M2])break a;z5>0&&(z5=0)}u3=z5>0?u3.slice(0,z5)+u3.slice(Ws+1):u3}DN&&+u3===0&&(DN=!1);wo=(DN?z2==="("?z2:"-":z2==="-"||z2==="("?"":z2)+wo;JB=(tT==="s"?yZe[8+egV/3]:"")+JB+(DN&&z2==="("?")":"");if(eh)for(DN=-1,
Ws=u3.length;++DN<Ws;)if(Xo=u3.charCodeAt(DN),48>Xo||Xo>57){JB=(Xo===46?L1+u3.slice(DN+1):u3.slice(DN))+JB;u3=u3.slice(0,DN);break}}J0&&!ZN&&(u3=b(u3,Infinity));Xo=wo.length+u3.length+JB.length;DN=Xo<ep?Array(ep-Xo+1).join(MM):"";J0&&ZN&&(u3=b(DN+u3,DN.length?ep-JB.length:Infinity),DN="");switch(LT){case "<":u3=wo+u3+JB+DN;break;case "=":u3=wo+DN+u3+JB;break;case "^":u3=DN.slice(0,Xo=DN.length>>1)+wo+u3+JB+DN.slice(Xo);break;default:u3=DN+wo+u3+JB}return p1(u3)}
wA=MJj(wA);var MM=wA.fill,LT=wA.align,z2=wA.sign,U4=wA.symbol,ZN=wA.zero,ep=wA.width,J0=wA.comma,Dx=wA.precision,pJ=wA.trim,tT=wA.type;tT==="n"?(J0=!0,tT="g"):AZ1[tT]||(Dx==null&&(Dx=12),pJ=!0,tT="g");if(ZN||MM==="0"&&LT==="=")ZN=!0,MM="0",LT="=";var wJ=U4==="$"?uy[0]:U4==="#"&&/[boxX]/.test(tT)?"0"+tT.toLowerCase():"",m2=U4==="$"?uy[1]:/[%p]/.test(tT)?f1:"",K2=AZ1[tT],eh=/[defgprs%]/.test(tT);Dx=Dx==null?6:/[gprs]/.test(tT)?Math.max(1,Math.min(21,Dx)):Math.max(0,Math.min(20,Dx));aX.toString=function(){return wA+
""};
return aX}
var b=A.grouping&&A.thousands?N7y(A.grouping,A.thousands):C2V,uy=A.currency,L1=A.decimal,p1=A.numerals?jYN(A.numerals):C2V,f1=A.percent||"%";return{format:y,formatPrefix:function(wA,aX){var MM=y((wA=MJj(wA),wA.type="f",wA));wA=Math.max(-8,Math.min(8,Math.floor(Sig(aX)/3)))*3;var LT=Math.pow(10,-wA),z2=yZe[8+wA/3];return function(U4){return MM(LT*U4)+z2}}}}
function xU(){this.reset()}
function o8_(A,y,b){var uy=A.s=y+b,L1=uy-y;A.t=y-(uy-L1)+(b-L1)}
function $6t(A){return A>1?x2:A<-1?-x2:Math.asin(A)}
function B7x(){}
function irR(A){var y=A[0];A=A[1];var b=f$(A);return[b*f$(y),b*qu(y),qu(A)]}
function RgR(A,y){return[A[1]*y[2]-A[2]*y[1],A[2]*y[0]-A[0]*y[2],A[0]*y[1]-A[1]*y[0]]}
function w9I(A){var y=qVu(A[0]*A[0]+A[1]*A[1]+A[2]*A[2]);A[0]/=y;A[1]/=y;A[2]/=y}
function $w9(){var A=[],y;return{point:function(b,uy){y.push([b,uy])},
lineStart:function(){A.push(y=[])},
lineEnd:B7x,rejoin:function(){A.length>1&&A.push(A.pop().concat(A.shift()))},
result:function(){var b=A;A=[];y=null;return b}}}
function s0A(A,y,b,uy){this.x=A;this.z=y;this.o=b;this.e=uy;this.v=!1;this.n=this.p=null}
function qiN(A,y,b,uy,L1){var p1=[],f1=[];A.forEach(function(z2){if(!((U4=z2.length-1)<=0)){var U4,ZN=z2[0],ep=z2[U4],J0=ZN;if(nZ(J0[0]-ep[0])<1E-6&&nZ(J0[1]-ep[1])<1E-6){L1.lineStart();for(wA=0;wA<U4;++wA)L1.point((ZN=z2[wA])[0],ZN[1]);L1.lineEnd()}else p1.push(U4=new s0A(ZN,z2,null,!0)),f1.push(U4.o=new s0A(ZN,null,U4,!1)),p1.push(U4=new s0A(ep,z2,null,!1)),f1.push(U4.o=new s0A(ep,null,U4,!0))}});
if(p1.length){f1.sort(y);ZrE(p1);ZrE(f1);var wA=0;for(A=f1.length;wA<A;++wA)f1[wA].e=b=!b;b=p1[0];for(var aX;;){for(var MM=b,LT=!0;MM.v;)if((MM=MM.n)===b)return;y=MM.z;L1.lineStart();do{MM.v=MM.o.v=!0;if(MM.e){if(LT)for(wA=0,A=y.length;wA<A;++wA)L1.point((aX=y[wA])[0],aX[1]);else uy(MM.x,MM.n.x,1,L1);MM=MM.n}else{if(LT)for(y=MM.p.z,wA=y.length-1;wA>=0;--wA)L1.point((aX=y[wA])[0],aX[1]);else uy(MM.x,MM.p.x,-1,L1);MM=MM.p}MM=MM.o;y=MM.z;LT=!LT}while(!MM.v);L1.lineEnd()}}}
function ZrE(A){if(y=A.length){for(var y,b=0,uy=A[0],L1;++b<y;)uy.n=L1=A[b],L1.p=uy,uy=L1;uy.n=L1=A[0];L1.p=uy}}
function sYS(A){return A.length>1}
function cSV(A,y){return((A=A.x)[0]<0?A[1]-x2-1E-6:x2-A[1])-((y=y.x)[0]<0?y[1]-x2-1E-6:x2-y[1])}
function Eba(){}
function D8k(A){return function(y,b){var uy=f$(y),L1=f$(b);uy=A(uy*L1);return[uy*L1*qu(y),uy*qu(b)]}}
function J8(A){return function(y,b){var uy=qVu(y*y+b*b),L1=A(uy),p1=qu(L1);L1=f$(L1);return[hgE(y*p1,uy*L1),$6t(uy&&b*p1/uy)]}}
function Uwx(A){var y=0,b=A.children,uy=b&&b.length;if(uy)for(;--uy>=0;)y+=b[uy].value;else y=1;A.value=y}
function d8U(A,y){var b=new YL(A);A=+A.value&&(b.value=A.value);var uy,L1=[b],p1,f1,wA,aX;for(y==null&&(y=vQo);uy=L1.pop();)if(A&&(uy.value=+uy.data.value),(f1=y(uy.data))&&(aX=f1.length))for(uy.children=Array(aX),wA=aX-1;wA>=0;--wA)L1.push(p1=uy.children[wA]=new YL(f1[wA])),p1.parent=uy,p1.depth=uy.depth+1;return b.eachBefore(JSb)}
function vQo(A){return A.children}
function YPj(A){A.data=A.data.data}
function JSb(A){var y=0;do A.height=y;while((A=A.parent)&&A.height<++y)}
function YL(A){this.data=A;this.depth=this.height=0;this.parent=null}
function ZU(A,y,b,uy){function L1(p1){return A(p1=new Date(+p1)),p1}
L1.floor=L1;L1.ceil=function(p1){return A(p1=new Date(p1-1)),y(p1,1),A(p1),p1};
L1.round=function(p1){var f1=L1(p1),wA=L1.ceil(p1);return p1-f1<wA-p1?f1:wA};
L1.offset=function(p1,f1){return y(p1=new Date(+p1),f1==null?1:Math.floor(f1)),p1};
L1.range=function(p1,f1,wA){var aX=[],MM;p1=L1.ceil(p1);wA=wA==null?1:Math.floor(wA);if(!(p1<f1&&wA>0))return aX;do aX.push(MM=new Date(+p1)),y(p1,wA),A(p1);while(MM<p1&&p1<f1);return aX};
L1.filter=function(p1){return ZU(function(f1){if(f1>=f1)for(;A(f1),!p1(f1);)f1.setTime(f1-1)},function(f1,wA){if(f1>=f1)if(wA<0)for(;++wA<=0;)for(;y(f1,-1),!p1(f1););
else for(;--wA>=0;)for(;y(f1,1),!p1(f1););})};
b&&(L1.count=function(p1,f1){tJ4.setTime(+p1);Kuj.setTime(+f1);A(tJ4);A(Kuj);return Math.floor(b(tJ4,Kuj))},L1.every=function(p1){p1=Math.floor(p1);
return isFinite(p1)&&p1>0?p1>1?L1.filter(uy?function(f1){return uy(f1)%p1===0}:function(f1){return L1.count(0,f1)%p1===0}):L1:null});
return L1}
function C0(A){return ZU(function(y){y.setDate(y.getDate()-(y.getDay()+7-A)%7);y.setHours(0,0,0,0)},function(y,b){y.setDate(y.getDate()+b*7)},function(y,b){return(b-y-(b.getTimezoneOffset()-y.getTimezoneOffset())*6E4)/6048E5})}
function yz(A){return ZU(function(y){y.setUTCDate(y.getUTCDate()-(y.getUTCDay()+7-A)%7);y.setUTCHours(0,0,0,0)},function(y,b){y.setUTCDate(y.getUTCDate()+b*7)},function(y,b){return(b-y)/6048E5})}
function GsS(A){if(0<=A.y&&A.y<100){var y=new Date(-1,A.m,A.d,A.H,A.M,A.S,A.L);y.setFullYear(A.y);return y}return new Date(A.y,A.m,A.d,A.H,A.M,A.S,A.L)}
function c1U(A){if(0<=A.y&&A.y<100){var y=new Date(Date.UTC(-1,A.m,A.d,A.H,A.M,A.S,A.L));y.setUTCFullYear(A.y);return y}return new Date(Date.UTC(A.y,A.m,A.d,A.H,A.M,A.S,A.L))}
function Gu(A){return{y:A,m:0,d:1,H:0,M:0,S:0,L:0}}
function uTB(A){function y(JB,Ws){return function(Xo){var DN=[],KH=-1,M2=0,z5=JB.length,eo,Xs;for(Xo instanceof Date||(Xo=new Date(+Xo));++KH<z5;)if(JB.charCodeAt(KH)===37){DN.push(JB.slice(M2,KH));(M2=brl[eo=JB.charAt(++KH)])!=null?eo=JB.charAt(++KH):M2=eo==="e"?" ":"0";if(Xs=Ws[eo])eo=Xs(Xo,M2);DN.push(eo);M2=KH+1}DN.push(JB.slice(M2,KH));return DN.join("")}}
function b(JB,Ws){return function(Xo){var DN=Gu(1900);if(uy(DN,JB,Xo,0)!=Xo.length)return null;if("Q"in DN)return new Date(DN.Q);"p"in DN&&(DN.H=DN.H%12+DN.p*12);if("V"in DN){if(DN.V<1||DN.V>53)return null;"w"in DN||(DN.w=1);if("Z"in DN){Xo=c1U(Gu(DN.y));var KH=Xo.getUTCDay();Xo=KH>4||KH===0?aR4.ceil(Xo):aR4(Xo);Xo=SME.offset(Xo,(DN.V-1)*7);DN.y=Xo.getUTCFullYear();DN.m=Xo.getUTCMonth();DN.d=Xo.getUTCDate()+(DN.w+6)%7}else Xo=Ws(Gu(DN.y)),KH=Xo.getDay(),Xo=KH>4||KH===0?TzA.ceil(Xo):TzA(Xo),Xo=NYk.offset(Xo,
(DN.V-1)*7),DN.y=Xo.getFullYear(),DN.m=Xo.getMonth(),DN.d=Xo.getDate()+(DN.w+6)%7}else if("W"in DN||"U"in DN)"w"in DN||(DN.w="u"in DN?DN.u%7:"W"in DN?1:0),KH="Z"in DN?c1U(Gu(DN.y)).getUTCDay():Ws(Gu(DN.y)).getDay(),DN.m=0,DN.d="W"in DN?(DN.w+6)%7+DN.W*7-(KH+5)%7:DN.w+DN.U*7-(KH+6)%7;return"Z"in DN?(DN.H+=DN.Z/100|0,DN.M+=DN.Z%100,c1U(DN)):Ws(DN)}}
function uy(JB,Ws,Xo,DN){for(var KH=0,M2=Ws.length,z5=Xo.length,eo;KH<M2;){if(DN>=z5)return-1;eo=Ws.charCodeAt(KH++);if(eo===37){if(eo=Ws.charAt(KH++),eo=wo[eo in brl?Ws.charAt(KH++):eo],!eo||(DN=eo(JB,Xo,DN))<0)return-1}else if(eo!=Xo.charCodeAt(DN++))return-1}return DN}
var L1=A.dateTime,p1=A.date,f1=A.time,wA=A.periods,aX=A.days,MM=A.shortDays,LT=A.months,z2=A.shortMonths,U4=uZ(wA),ZN=OX(wA),ep=uZ(aX),J0=OX(aX),Dx=uZ(MM),pJ=OX(MM),tT=uZ(LT),wJ=OX(LT),m2=uZ(z2),K2=OX(z2),eh={a:function(JB){return MM[JB.getDay()]},
A:function(JB){return aX[JB.getDay()]},
b:function(JB){return z2[JB.getMonth()]},
B:function(JB){return LT[JB.getMonth()]},
c:null,d:jWE,e:jWE,f:Op9,H:Qbw,I:M4y,j:HpB,L:VY_,m:EJj,M:t4j,p:function(JB){return wA[+(JB.getHours()>=12)]},
Q:lFI,s:BYM,S:KpB,u:a5b,U:T9w,V:Lp9,w:gJN,W:Xzg,x:null,X:null,y:PRx,Y:I5V,Z:ks9,"%":$8_},u3={a:function(JB){return MM[JB.getUTCDay()]},
A:function(JB){return aX[JB.getUTCDay()]},
b:function(JB){return z2[JB.getUTCMonth()]},
B:function(JB){return LT[JB.getUTCMonth()]},
c:null,d:qMl,e:qMl,f:nJB,H:Fpg,I:pzg,j:zOw,L:sW2,m:mXx,M:WpN,p:function(JB){return wA[+(JB.getUTCHours()>=12)]},
Q:lFI,s:BYM,S:rpx,u:xXo,U:f5N,V:CRB,w:ypx,W:eOb,x:null,X:null,y:Ap9,Y:oJS,Z:ipb,"%":$8_},wo={a:function(JB,Ws,Xo){return(Ws=Dx.exec(Ws.slice(Xo)))?(JB.w=pJ[Ws[0].toLowerCase()],Xo+Ws[0].length):-1},
A:function(JB,Ws,Xo){return(Ws=ep.exec(Ws.slice(Xo)))?(JB.w=J0[Ws[0].toLowerCase()],Xo+Ws[0].length):-1},
b:function(JB,Ws,Xo){return(Ws=m2.exec(Ws.slice(Xo)))?(JB.m=K2[Ws[0].toLowerCase()],Xo+Ws[0].length):-1},
B:function(JB,Ws,Xo){return(Ws=tT.exec(Ws.slice(Xo)))?(JB.m=wJ[Ws[0].toLowerCase()],Xo+Ws[0].length):-1},
c:function(JB,Ws,Xo){return uy(JB,L1,Ws,Xo)},
d:cZE,e:cZE,f:RON,H:U81,I:U81,j:wzb,L:Zpx,m:DXV,M:hOx,p:function(JB,Ws,Xo){return(Ws=U4.exec(Ws.slice(Xo)))?(JB.p=ZN[Ws[0].toLowerCase()],Xo+Ws[0].length):-1},
Q:dXj,s:bpj,S:SPj,u:N9o,U:jbV,V:V49,w:l5S,W:B9x,x:function(JB,Ws,Xo){return uy(JB,p1,Ws,Xo)},
X:function(JB,Ws,Xo){return uy(JB,f1,Ws,Xo)},
y:$XN,Y:qP9,Z:sbb,"%":cpx};eh.x=y(p1,eh);eh.X=y(f1,eh);eh.c=y(L1,eh);u3.x=y(p1,u3);u3.X=y(f1,u3);u3.c=y(L1,u3);return{format:function(JB){var Ws=y(JB,eh);Ws.toString=function(){return JB};
return Ws},
parse:function(JB){var Ws=b(JB,GsS);Ws.toString=function(){return JB};
return Ws},
utcFormat:function(JB){var Ws=y(JB,u3);Ws.toString=function(){return JB};
return Ws},
utcParse:function(JB){var Ws=b(JB,c1U);Ws.toString=function(){return JB};
return Ws}}}
function Z1(A,y,b){var uy=A<0?"-":"";A=(uy?-A:A)+"";var L1=A.length;return uy+(L1<b?Array(b-L1+1).join(y)+A:A)}
function UXb(A){return A.replace(vJo,"\\$&")}
function uZ(A){return new RegExp("^(?:"+A.map(UXb).join("|")+")","i")}
function OX(A){for(var y={},b=-1,uy=A.length;++b<uy;)y[A[b].toLowerCase()]=b;return y}
function l5S(A,y,b){return(y=ZZ.exec(y.slice(b,b+1)))?(A.w=+y[0],b+y[0].length):-1}
function N9o(A,y,b){return(y=ZZ.exec(y.slice(b,b+1)))?(A.u=+y[0],b+y[0].length):-1}
function jbV(A,y,b){return(y=ZZ.exec(y.slice(b,b+2)))?(A.U=+y[0],b+y[0].length):-1}
function V49(A,y,b){return(y=ZZ.exec(y.slice(b,b+2)))?(A.V=+y[0],b+y[0].length):-1}
function B9x(A,y,b){return(y=ZZ.exec(y.slice(b,b+2)))?(A.W=+y[0],b+y[0].length):-1}
function qP9(A,y,b){return(y=ZZ.exec(y.slice(b,b+4)))?(A.y=+y[0],b+y[0].length):-1}
function $XN(A,y,b){return(y=ZZ.exec(y.slice(b,b+2)))?(A.y=+y[0]+(+y[0]>68?1900:2E3),b+y[0].length):-1}
function sbb(A,y,b){return(y=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(y.slice(b,b+6)))?(A.Z=y[1]?0:-(y[2]+(y[3]||"00")),b+y[0].length):-1}
function DXV(A,y,b){return(y=ZZ.exec(y.slice(b,b+2)))?(A.m=y[0]-1,b+y[0].length):-1}
function cZE(A,y,b){return(y=ZZ.exec(y.slice(b,b+2)))?(A.d=+y[0],b+y[0].length):-1}
function wzb(A,y,b){return(y=ZZ.exec(y.slice(b,b+3)))?(A.m=0,A.d=+y[0],b+y[0].length):-1}
function U81(A,y,b){return(y=ZZ.exec(y.slice(b,b+2)))?(A.H=+y[0],b+y[0].length):-1}
function hOx(A,y,b){return(y=ZZ.exec(y.slice(b,b+2)))?(A.M=+y[0],b+y[0].length):-1}
function SPj(A,y,b){return(y=ZZ.exec(y.slice(b,b+2)))?(A.S=+y[0],b+y[0].length):-1}
function Zpx(A,y,b){return(y=ZZ.exec(y.slice(b,b+3)))?(A.L=+y[0],b+y[0].length):-1}
function RON(A,y,b){return(y=ZZ.exec(y.slice(b,b+6)))?(A.L=Math.floor(y[0]/1E3),b+y[0].length):-1}
function cpx(A,y,b){return(A=JpS.exec(y.slice(b,b+1)))?b+A[0].length:-1}
function dXj(A,y,b){return(y=ZZ.exec(y.slice(b)))?(A.Q=+y[0],b+y[0].length):-1}
function bpj(A,y,b){return(y=ZZ.exec(y.slice(b)))?(A.Q=+y[0]*1E3,b+y[0].length):-1}
function jWE(A,y){return Z1(A.getDate(),y,2)}
function Qbw(A,y){return Z1(A.getHours(),y,2)}
function M4y(A,y){return Z1(A.getHours()%12||12,y,2)}
function HpB(A,y){return Z1(1+NYk.count(qk(A),A),y,3)}
function VY_(A,y){return Z1(A.getMilliseconds(),y,3)}
function Op9(A,y){return VY_(A,y)+"000"}
function EJj(A,y){return Z1(A.getMonth()+1,y,2)}
function t4j(A,y){return Z1(A.getMinutes(),y,2)}
function KpB(A,y){return Z1(A.getSeconds(),y,2)}
function a5b(A){A=A.getDay();return A===0?7:A}
function T9w(A,y){return Z1(Ypw.count(qk(A),A),y,2)}
function Lp9(A,y){var b=A.getDay();A=b>=4||b===0?Lut(A):Lut.ceil(A);return Z1(Lut.count(qk(A),A)+(qk(A).getDay()===4),y,2)}
function gJN(A){return A.getDay()}
function Xzg(A,y){return Z1(TzA.count(qk(A),A),y,2)}
function PRx(A,y){return Z1(A.getFullYear()%100,y,2)}
function I5V(A,y){return Z1(A.getFullYear()%1E4,y,4)}
function ks9(A){A=A.getTimezoneOffset();return(A>0?"-":(A*=-1,"+"))+Z1(A/60|0,"0",2)+Z1(A%60,"0",2)}
function qMl(A,y){return Z1(A.getUTCDate(),y,2)}
function Fpg(A,y){return Z1(A.getUTCHours(),y,2)}
function pzg(A,y){return Z1(A.getUTCHours()%12||12,y,2)}
function zOw(A,y){return Z1(1+SME.count(s7(A),A),y,3)}
function sW2(A,y){return Z1(A.getUTCMilliseconds(),y,3)}
function nJB(A,y){return sW2(A,y)+"000"}
function mXx(A,y){return Z1(A.getUTCMonth()+1,y,2)}
function WpN(A,y){return Z1(A.getUTCMinutes(),y,2)}
function rpx(A,y){return Z1(A.getUTCSeconds(),y,2)}
function xXo(A){A=A.getUTCDay();return A===0?7:A}
function f5N(A,y){return Z1(G7S.count(s7(A),A),y,2)}
function CRB(A,y){var b=A.getUTCDay();A=b>=4||b===0?gbT(A):gbT.ceil(A);return Z1(gbT.count(s7(A),A)+(s7(A).getUTCDay()===4),y,2)}
function ypx(A){return A.getUTCDay()}
function eOb(A,y){return Z1(aR4.count(s7(A),A),y,2)}
function Ap9(A,y){return Z1(A.getUTCFullYear()%100,y,2)}
function oJS(A,y){return Z1(A.getUTCFullYear()%1E4,y,4)}
function ipb(){return"+0000"}
function $8_(){return"%"}
function lFI(A){return+A}
function BYM(A){return Math.floor(+A/1E3)}
function WI(A){for(var y=A.length/6|0,b=Array(y),uy=0;uy<y;)b[uy]="#"+A.slice(uy*6,++uy*6);return b}
function a1(A){return ur9(A[A.length-1])}
function U6U(A){var y=A.length;return function(b){return A[Math.max(0,Math.min(y-1,Math.floor(b*y)))]}}
function v81(A){this._context=A}
function JZR(A){this._curve=A}
function Yue(A,y,b){var uy=A._x1-A._x0;y-=A._x1;var L1=(A._y1-A._y0)/(uy||y<0&&-0);A=(b-A._y1)/(y||uy<0&&-0);return((L1<0?-1:1)+(A<0?-1:1))*Math.min(Math.abs(L1),Math.abs(A),.5*Math.abs((L1*y+A*uy)/(uy+y)))||0}
function G94(A,y){var b=A._x1-A._x0;return b?(3*(A._y1-A._y0)/b-y)/2:y}
function X74(A,y,b){var uy=A._x0,L1=A._x1,p1=A._y1,f1=(L1-uy)/3;A._context.bezierCurveTo(uy+f1,A._y0+f1*y,L1-f1,p1-f1*b,L1,p1)}
function Ppt(A){this._context=A}
function u7T(A){this._context=A}
function QC(A,y,b){this.k=A;this.x=y;this.y=b}
(function(A){A.length===1&&(A=G(A));return{left:function(y,b,uy,L1){uy==null&&(uy=0);L1==null&&(L1=y.length);for(;uy<L1;){var p1=uy+L1>>>1;A(y[p1],b)<0?uy=p1+1:L1=p1}return uy},
right:function(y,b,uy,L1){uy==null&&(uy=0);L1==null&&(L1=y.length);for(;uy<L1;){var p1=uy+L1>>>1;A(y[p1],b)>0?L1=p1:uy=p1+1}return uy}}})(Y);
var H0B={value:function(){}};
O.prototype=u.prototype={constructor:O,on:function(A,y){var b=this._,uy=Q(A+"",b),L1,p1=-1,f1=uy.length;if(arguments.length<2)for(;++p1<f1;){var wA;if(wA=L1=(A=uy[p1]).type){a:{wA=b[L1];for(var aX=0,MM=wA.length;aX<MM;++aX)if((L1=wA[aX]).name===A.name){L1=L1.value;break a}L1=void 0}wA=L1}if(wA)return L1}else{if(y!=null&&typeof y!=="function")throw Error("Ee`"+y);for(;++p1<f1;)if(L1=(A=uy[p1]).type)b[L1]=M(b[L1],A.name,y);else if(y==null)for(L1 in b)b[L1]=M(b[L1],A.name,null);return this}},
copy:function(){var A={},y=this._,b;for(b in y)A[b]=y[b].slice();return new O(A)},
call:function(A,y){if((L1=arguments.length-2)>0)for(var b=Array(L1),uy=0,L1,p1;uy<L1;++uy)b[uy]=arguments[uy+2];if(!this._.hasOwnProperty(A))throw Error("ye`"+A);p1=this._[A];uy=0;for(L1=p1.length;uy<L1;++uy)p1[uy].value.apply(y,b)},
apply:function(A,y,b){if(!this._.hasOwnProperty(A))throw Error("ye`"+A);A=this._[A];for(var uy=0,L1=A.length;uy<L1;++uy)A[uy].value.apply(y,b)}};
var WU={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/"},ONR=function(A){return function(){return this.matches(A)}};
if(typeof document!=="undefined"){var M_=document.documentElement;if(!M_.matches){var Ooo=M_.webkitMatchesSelector||M_.msMatchesSelector||M_.mozMatchesSelector||M_.oMatchesSelector;ONR=function(A){return function(){return Ooo.call(this,A)}}}}var QNX=ONR;
n.prototype={constructor:n,appendChild:function(A){return this._parent.insertBefore(A,this._next)},
insertBefore:function(A,y){return this._parent.insertBefore(A,y)},
querySelector:function(A){return this._parent.querySelector(A)},
querySelectorAll:function(A){return this._parent.querySelectorAll(A)}};
var Kb4={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(Kb4={mouseenter:"mouseover",mouseleave:"mouseout"}));var EQj=[null];l_.prototype=$V.prototype={constructor:l_,select:function(A){typeof A!=="function"&&(A=I(A));for(var y=this._groups,b=y.length,uy=Array(b),L1=0;L1<b;++L1)for(var p1=y[L1],f1=p1.length,wA=uy[L1]=Array(f1),aX,MM,LT=0;LT<f1;++LT)(aX=p1[LT])&&(MM=A.call(aX,aX.__data__,LT,p1))&&("__data__"in aX&&(MM.__data__=aX.__data__),wA[LT]=MM);return new l_(uy,
this._parents)},
filter:function(A){typeof A!=="function"&&(A=QNX(A));for(var y=this._groups,b=y.length,uy=Array(b),L1=0;L1<b;++L1)for(var p1=y[L1],f1=p1.length,wA=uy[L1]=[],aX,MM=0;MM<f1;++MM)(aX=p1[MM])&&A.call(aX,aX.__data__,MM,p1)&&wA.push(aX);return new l_(uy,this._parents)},
data:function(A,y){if(!A)return ZN=Array(this.size()),MM=-1,this.each(function(tT){ZN[++MM]=tT}),ZN;
var b=y?C:W,uy=this._parents,L1=this._groups;typeof A!=="function"&&(A=p(A));for(var p1=L1.length,f1=Array(p1),wA=Array(p1),aX=Array(p1),MM=0;MM<p1;++MM){var LT=uy[MM],z2=L1[MM],U4=z2.length,ZN=A.call(LT,LT&&LT.__data__,MM,uy),ep=ZN.length,J0=wA[MM]=Array(ep),Dx=f1[MM]=Array(ep);U4=aX[MM]=Array(U4);b(LT,z2,J0,Dx,U4,ZN,y);z2=LT=0;for(var pJ;LT<ep;++LT)if(U4=J0[LT]){for(LT>=z2&&(z2=LT+1);!(pJ=Dx[z2])&&++z2<ep;);U4._next=pJ||null}}f1=new l_(f1,uy);f1._enter=wA;f1._exit=aX;return f1},
enter:function(){return new l_(this._enter||this._groups.map(k),this._parents)},
exit:function(){return new l_(this._exit||this._groups.map(k),this._parents)},
merge:function(A){var y=this._groups;A=A._groups;for(var b=y.length,uy=Math.min(b,A.length),L1=Array(b),p1=0;p1<uy;++p1)for(var f1=y[p1],wA=A[p1],aX=f1.length,MM=L1[p1]=Array(aX),LT,z2=0;z2<aX;++z2)if(LT=f1[z2]||wA[z2])MM[z2]=LT;for(;p1<b;++p1)L1[p1]=y[p1];return new l_(L1,this._parents)},
order:function(){for(var A=this._groups,y=-1,b=A.length;++y<b;)for(var uy=A[y],L1=uy.length-1,p1=uy[L1],f1;--L1>=0;)if(f1=uy[L1])p1&&p1!==f1.nextSibling&&p1.parentNode.insertBefore(f1,p1),p1=f1;return this},
sort:function(A){function y(z2,U4){return z2&&U4?A(z2.__data__,U4.__data__):!z2-!U4}
A||(A=e);for(var b=this._groups,uy=b.length,L1=Array(uy),p1=0;p1<uy;++p1){for(var f1=b[p1],wA=f1.length,aX=L1[p1]=Array(wA),MM,LT=0;LT<wA;++LT)if(MM=f1[LT])aX[LT]=MM;aX.sort(y)}return(new l_(L1,this._parents)).order()},
call:function(){var A=arguments[0];arguments[0]=this;A.apply(null,arguments);return this},
nodes:function(){var A=Array(this.size()),y=-1;this.each(function(){A[++y]=this});
return A},
node:function(){for(var A=this._groups,y=0,b=A.length;y<b;++y)for(var uy=A[y],L1=0,p1=uy.length;L1<p1;++L1){var f1=uy[L1];if(f1)return f1}return null},
size:function(){var A=0;this.each(function(){++A});
return A},
empty:function(){return!this.node()},
each:function(A){for(var y=this._groups,b=0,uy=y.length;b<uy;++b)for(var L1=y[b],p1=0,f1=L1.length,wA;p1<f1;++p1)(wA=L1[p1])&&A.call(wA,wA.__data__,p1,L1);return this},
attr:function(A,y){var b=t(A);if(arguments.length<2){var uy=this.node();return b.local?uy.getAttributeNS(b.space,b.local):uy.getAttribute(b)}return this.each((y==null?b.local?B:w:typeof y==="function"?b.local?U:q:b.local?h:N)(b,y))},
style:function(A,y,b){return arguments.length>1?this.each((y==null?Mj:typeof y==="function"?ka:Xt)(A,y,b==null?"":b)):aU(this.node(),A)},
property:function(A,y){return arguments.length>1?this.each((y==null?Tg:typeof y==="function"?hY:iy)(A,y)):this.node()[A]},
text:function(A){return arguments.length?this.each(A==null?dA:(typeof A==="function"?u_:nT)(A)):this.node().textContent},
html:function(A){return arguments.length?this.each(A==null?jT:(typeof A==="function"?kk:P1)(A)):this.node().innerHTML},
append:function(A){var y=typeof A==="function"?A:g(A);return this.select(function(){return this.appendChild(y.apply(this,arguments))})},
insert:function(A,y){var b=typeof A==="function"?A:g(A),uy=y==null?Fe:typeof y==="function"?y:I(y);return this.select(function(){return this.insertBefore(b.apply(this,arguments),uy.apply(this,arguments)||null)})},
remove:function(){return this.each(Xg)},
clone:function(A){return this.select(A?n1:Hb)},
datum:function(A){return arguments.length?this.property("__data__",A):this.node().__data__},
on:function(A,y,b){var uy=Gx(A+""),L1=uy.length,p1;if(arguments.length<2){var f1=this.node().__on;if(f1)for(var wA=0,aX=f1.length,MM;wA<aX;++wA){var LT=0;for(MM=f1[wA];LT<L1;++LT)if((p1=uy[LT]).type===MM.type&&p1.name===MM.name)return MM.value}}else{f1=y?b_:fT;b==null&&(b=!1);for(LT=0;LT<L1;++LT)this.each(f1(uy[LT],y,b));return this}},
dispatch:function(A,y){return this.each((typeof y==="function"?Ew:v1)(A,y))}};
var tPS=0;T2.prototype=function(){return new T2}.prototype={constructor:T2,
get:function(A){for(var y=this._;!(y in A);)if(!(A=A.parentNode))return;return A[y]},
set:function(A,y){return A[this._]=y},
remove:function(A){return this._ in A&&delete A[this._]},
toString:function(){return this._}};
var cl=1/.7,KoS=/^#([0-9a-f]{3})$/,alN=/^#([0-9a-f]{6})$/,T7x=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),Loy=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),gQw=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),XAj=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*\\)$"),
PYS=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Il9=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*\\)$"),aF2={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};
Pb($k,NM,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Pb(vb,Io,IX($k,{brighter:function(A){A=A==null?cl:Math.pow(cl,A);return new vb(this.r*A,this.g*A,this.b*A,this.opacity)},
darker:function(A){A=A==null?.7:Math.pow(.7,A);return new vb(this.r*A,this.g*A,this.b*A,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"#"+K5(this.r)+K5(this.g)+K5(this.b)},
toString:function(){var A=this.opacity;A=isNaN(A)?1:Math.max(0,Math.min(1,A));return(A===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))+(A===1?")":", "+A+")")}}));
Pb(PF,eE,IX($k,{brighter:function(A){A=A==null?cl:Math.pow(cl,A);return new PF(this.h,this.s,this.l*A,this.opacity)},
darker:function(A){A=A==null?.7:Math.pow(.7,A);return new PF(this.h,this.s,this.l*A,this.opacity)},
rgb:function(){var A=this.h%360+(this.h<0)*360,y=this.l,b=y+(y<.5?y:1-y)*(isNaN(A)||isNaN(this.s)?0:this.s);y=2*y-b;return new vb(Zx(A>=240?A-240:A+120,y,b),Zx(A,y,b),Zx(A<120?A+240:A-120,y,b),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 TYU=Math.PI/180,X9R=180/Math.PI,g8R=4/29,Bl=6/29,Lb4=3*Bl*Bl,kTx=Bl*Bl*Bl;Pb(yj,function(A,y,b,uy){return arguments.length===1?Ad(A):new yj(A,y,b,uy==null?1:uy)},IX($k,{brighter:function(A){return new yj(this.l+18*(A==null?1:A),this.a,this.b,this.opacity)},
darker:function(A){return new yj(this.l-18*(A==null?1:A),this.a,this.b,this.opacity)},
rgb:function(){var A=(this.l+16)/116,y=isNaN(this.a)?A:A+this.a/500,b=isNaN(this.b)?A:A-this.b/200;y=.96422*sI(y);A=1*sI(A);b=.82521*sI(b);return new vb(rR(3.1338561*y-1.6168667*A-.4906146*b),rR(-.9787684*y+1.9161415*A+.033454*b),rR(.0719453*y-.2289914*A+1.4052427*b),this.opacity)}}));
Pb(CT,y9,IX($k,{brighter:function(A){return new CT(this.h,this.c,this.l+18*(A==null?1:A),this.opacity)},
darker:function(A){return new CT(this.h,this.c,this.l-18*(A==null?1:A),this.opacity)},
rgb:function(){return Ad(this).rgb()}}));
var P2T=1.78277*-.29227-.1347134789;Pb(jS,xk,IX($k,{brighter:function(A){A=A==null?cl:Math.pow(cl,A);return new jS(this.h,this.s,this.l*A,this.opacity)},
darker:function(A){A=A==null?.7:Math.pow(.7,A);return new jS(this.h,this.s,this.l*A,this.opacity)},
rgb:function(){var A=isNaN(this.h)?0:(this.h+120)*TYU,y=+this.l,b=isNaN(this.s)?0:this.s*y*(1-y),uy=Math.cos(A);A=Math.sin(A);return new vb(255*(y+b*(-.14861*uy+1.78277*A)),255*(y+b*(-.29227*uy+-.90649*A)),255*(y+1.97294*uy*b),this.opacity)}}));
var n8k=function b(y){function uy(p1,f1){var wA=L1((p1=Io(p1)).r,(f1=Io(f1)).r),aX=L1(p1.g,f1.g),MM=L1(p1.b,f1.b),LT=GR(p1.opacity,f1.opacity);return function(z2){p1.r=wA(z2);p1.g=aX(z2);p1.b=MM(z2);p1.opacity=LT(z2);return p1+""}}
var L1=Iy(y);uy.gamma=b;return uy}(1),ur9=u9(function(y){var b=y.length-1;
return function(uy){var L1=uy<=0?uy=0:uy>=1?(uy=1,b-1):Math.floor(uy*b),p1=y[L1],f1=y[L1+1];return Mp((uy-L1/b)*b,L1>0?y[L1-1]:2*p1-f1,p1,f1,L1<b-1?y[L1+2]:2*f1-p1)}});
u9(function(y){var b=y.length;return function(uy){var L1=Math.floor(((uy%=1)<0?++uy:uy)*b);return Mp((uy-L1/b)*b,y[(L1+b-1)%b],y[L1%b],y[(L1+1)%b],y[(L1+2)%b])}});
var Jsj=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,YaT=new RegExp(Jsj.source,"g"),IF4=180/Math.PI,IRt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Ho,kvA,MQ4,v7T,Qkx=eN(function(y){if(y==="none")return IRt;Ho||(Ho=document.createElement("DIV"),kvA=document.documentElement,MQ4=document.defaultView);Ho.style.transform=y;y=MQ4.getComputedStyle(kvA.appendChild(Ho),null).getPropertyValue("transform");kvA.removeChild(Ho);y=y.slice(7,-1).split(",");return xp(+y[0],+y[1],+y[2],+y[3],
+y[4],+y[5])},"px, ","px)","deg)"),Mf9=eN(function(y){if(y==null)return IRt;
v7T||(v7T=document.createElementNS("http://www.w3.org/2000/svg","g"));v7T.setAttribute("transform",y);if(!(y=v7T.transform.baseVal.consolidate()))return IRt;y=y.matrix;return xp(y.a,y.b,y.c,y.d,y.e,y.f)},", ",")",")");
zo(Np);zo(GR);tE(Np);tE(GR);Aj(Np);var nby=Aj(GR),$e=0,$_=0,sf=0,d6A,qG,hfU=0,xQ=0,D6y=0,BB=typeof performance==="object"&&performance.now?performance:Date,k$2=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(y){setTimeout(y,17)};
OD.prototype=KV.prototype={constructor:OD,restart:function(y,b,uy){if(typeof y!=="function")throw new TypeError("Fe");uy=(uy==null?o4():+uy)+(b==null?0:+b);this._next||qG===this||(qG?qG._next=this:d6A=this,qG=this);this._call=y;this._time=uy;Qd()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Qd())}};
var nQw=u("start","end","interrupt"),FoN=[],Hoy=$V.prototype.constructor,HN1=0,U7=$V.prototype;kf.prototype=function(y){return $V().transition(y)}.prototype={constructor:kf,
select:function(y){var b=this._name,uy=this._id;typeof y!=="function"&&(y=I(y));for(var L1=this._groups,p1=L1.length,f1=Array(p1),wA=0;wA<p1;++wA)for(var aX=L1[wA],MM=aX.length,LT=f1[wA]=Array(MM),z2,U4,ZN=0;ZN<MM;++ZN)(z2=aX[ZN])&&(U4=y.call(z2,z2.__data__,ZN,aX))&&("__data__"in z2&&(U4.__data__=z2.__data__),LT[ZN]=U4,G2(LT[ZN],b,uy,ZN,LT,sw(z2,uy)));return new kf(f1,this._parents,b,uy)},
filter:function(y){typeof y!=="function"&&(y=QNX(y));for(var b=this._groups,uy=b.length,L1=Array(uy),p1=0;p1<uy;++p1)for(var f1=b[p1],wA=f1.length,aX=L1[p1]=[],MM,LT=0;LT<wA;++LT)(MM=f1[LT])&&y.call(MM,MM.__data__,LT,f1)&&aX.push(MM);return new kf(L1,this._parents,this._name,this._id)},
merge:function(y){if(y._id!==this._id)throw Error();var b=this._groups;y=y._groups;for(var uy=b.length,L1=Math.min(uy,y.length),p1=Array(uy),f1=0;f1<L1;++f1)for(var wA=b[f1],aX=y[f1],MM=wA.length,LT=p1[f1]=Array(MM),z2,U4=0;U4<MM;++U4)if(z2=wA[U4]||aX[U4])LT[U4]=z2;for(;f1<uy;++f1)p1[f1]=b[f1];return new kf(p1,this._parents,this._name,this._id)},
selection:function(){return new Hoy(this._groups,this._parents)},
transition:function(){for(var y=this._name,b=this._id,uy=++HN1,L1=this._groups,p1=L1.length,f1=0;f1<p1;++f1)for(var wA=L1[f1],aX=wA.length,MM,LT=0;LT<aX;++LT)if(MM=wA[LT]){var z2=sw(MM,b);G2(MM,y,uy,LT,wA,{time:z2.time+z2.delay+z2.duration,delay:0,duration:z2.duration,ease:z2.ease})}return new kf(L1,this._parents,y,uy)},
call:U7.call,nodes:U7.nodes,node:U7.node,size:U7.size,empty:U7.empty,each:U7.each,on:function(y,b){var uy=this._id;return arguments.length<2?sw(this.node(),uy).on.on(y):this.each(fl9(uy,y,b))},
attr:function(y,b){var uy=t(y),L1=uy==="transform"?Mf9:r4;return this.attrTween(y,typeof b==="function"?(uy.local?Uf:NNI)(uy,L1,$N(this,"attr."+y,b)):b==null?(uy.local?bJj:f0)(uy):(uy.local?cB:SVt)(uy,L1,b+""))},
attrTween:function(y,b){var uy="attr."+y;if(arguments.length<2)return(uy=this.tween(uy))&&uy._value;if(b==null)return this.tween(uy,null);if(typeof b!=="function")throw Error();var L1=t(y);return this.tween(uy,(L1.local?vB:j0y)(L1,b))},
style:function(y,b,uy){var L1=y==="transform"?Qkx:r4;return b==null?this.styleTween(y,ySg(y,L1)).on("end.style."+y,edy(y)):this.styleTween(y,typeof b==="function"?oQV(y,L1,$N(this,"style."+y,b)):ASN(y,L1,b+""),uy)},
styleTween:function(y,b,uy){var L1="style."+y;if(arguments.length<2)return(L1=this.tween(L1))&&L1._value;if(b==null)return this.tween(L1,null);if(typeof b!=="function")throw Error();return this.tween(L1,i0x(y,b,uy==null?"":uy))},
text:function(y){return this.tween("text",typeof y==="function"?wA9($N(this,"text",y)):Rdx(y==null?"":y+""))},
remove:function(){return this.on("end.remove",CYB(this._id))},
tween:function(y,b){var uy=this._id;if(arguments.length<2){uy=sw(this.node(),uy).tween;for(var L1=0,p1=uy.length,f1;L1<p1;++L1)if((f1=uy[L1]).name===y)return f1.value;return null}return this.each((b==null?NI:BM)(uy,y,b))},
delay:function(y){var b=this._id;return arguments.length?this.each((typeof y==="function"?pAx:zdS)(b,y)):sw(this.node(),b).delay},
duration:function(y){var b=this._id;return arguments.length?this.each((typeof y==="function"?mwb:Wog)(b,y)):sw(this.node(),b).duration},
ease:function(y){var b=this._id;return arguments.length?this.each(rSg(b,y)):sw(this.node(),b).ease}};
var FuA={time:null,delay:0,duration:250,ease:function(y){return((y*=2)<=1?y*y*y:(y-=2)*y*y+2)/2}};
$V.prototype.transition=function(y){var b;if(y instanceof kf){var uy=y._id;y=y._name}else uy=++HN1,(b=FuA).time=o4(),y=y==null?null:y+"";for(var L1=this._groups,p1=L1.length,f1=0;f1<p1;++f1)for(var wA=L1[f1],aX=wA.length,MM,LT=0;LT<aX;++LT)if(MM=wA[LT]){var z2=MM,U4=y,ZN=uy,ep=LT,J0=wA,Dx;if(!(Dx=b))a:{Dx=void 0;for(var pJ=uy;!(Dx=MM.__transition)||!(Dx=Dx[pJ]);)if(!(MM=MM.parentNode)){Dx=(FuA.time=o4(),FuA);break a}}G2(z2,U4,ZN,ep,J0,Dx)}return new kf(L1,this._parents,y,uy)};
["e","w"].map(GvT);["n","s"].map(GvT);"n e s w nw ne se sw".split(" ").map(GvT);uvA.prototype=function(){return new uvA}.prototype={constructor:uvA,
moveTo:function(y,b){this._+="M"+(this._x0=this._x1=+y)+","+(this._y0=this._y1=+b)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(y,b){this._+="L"+(this._x1=+y)+","+(this._y1=+b)},
bezierCurveTo:function(y,b,uy,L1,p1,f1){this._+="C"+ +y+","+ +b+","+ +uy+","+ +L1+","+(this._x1=+p1)+","+(this._y1=+f1)},
rect:function(y,b,uy,L1){this._+="M"+(this._x0=this._x1=+y)+","+(this._y0=this._y1=+b)+"h"+ +uy+"v"+ +L1+"h"+-uy+"Z"},
toString:function(){return this._}};
VKA.prototype=Fb2.prototype={constructor:VKA,has:function(y){return" "+y in this},
get:function(y){return this[" "+y]},
set:function(y,b){this[" "+y]=b;return this},
remove:function(y){y=" "+y;return y in this&&delete this[y]},
clear:function(){for(var y in this)y[0]===" "&&delete this[y]},
keys:function(){var y=[],b;for(b in this)b[0]===" "&&y.push(b.slice(1));return y},
values:function(){var y=[],b;for(b in this)b[0]===" "&&y.push(this[b]);return y},
entries:function(){var y=[],b;for(b in this)b[0]===" "&&y.push({key:b.slice(1),value:this[b]});return y},
size:function(){var y=0,b;for(b in this)b[0]===" "&&++y;return y},
empty:function(){for(var y in this)if(y[0]===" ")return!1;return!0},
each:function(y){for(var b in this)b[0]===" "&&y(this[b],b.slice(1),this)}};
var eP=Fb2.prototype;lCT.prototype=function(y,b){var uy=new lCT;if(y instanceof lCT)y.each(function(f1){uy.add(f1)});
else if(y){var L1=-1,p1=y.length;if(b==null)for(;++L1<p1;)uy.add(y[L1]);else for(;++L1<p1;)uy.add(b(y[L1],L1,y))}return uy}.prototype={constructor:lCT,
has:eP.has,add:function(y){this[" "+y]=y;return this},
remove:eP.remove,clear:eP.clear,values:eP.keys,size:eP.size,empty:eP.empty,each:eP.each};var m8T={},ORT={},EzB=zgk(",").parse,tf9=zgk("\t").parse;Wbl(EzB);Wbl(tf9);var th=function(y,b,uy){b=new QHt(b==null?dwx:b,uy==null?b0N:uy,NaN,NaN,NaN,NaN);return y==null?b:b.addAll(y)}.prototype=QHt.prototype;
th.copy=function(){var y=new QHt(this._x,this._y,this._x0,this._y0,this._x1,this._y1),b=this._root,uy,L1;if(!b)return y;if(!b.length)return y._root=x8I(b),y;for(uy=[{source:b,target:y._root=Array(4)}];b=uy.pop();)for(var p1=0;p1<4;++p1)if(L1=b.source[p1])L1.length?uy.push({source:L1,target:b.target[p1]=Array(4)}):b.target[p1]=x8I(L1);return y};
th.add=function(y){var b=+this._x.call(null,y),uy=+this._y.call(null,y);return rZe(this.cover(b,uy),b,uy,y)};
th.addAll=function(y){var b,uy,L1=y.length,p1,f1,wA=Array(L1),aX=Array(L1),MM=Infinity,LT=Infinity,z2=-Infinity,U4=-Infinity;for(uy=0;uy<L1;++uy)isNaN(p1=+this._x.call(null,b=y[uy]))||isNaN(f1=+this._y.call(null,b))||(wA[uy]=p1,aX[uy]=f1,p1<MM&&(MM=p1),p1>z2&&(z2=p1),f1<LT&&(LT=f1),f1>U4&&(U4=f1));z2<MM&&(MM=this._x0,z2=this._x1);U4<LT&&(LT=this._y0,U4=this._y1);this.cover(MM,LT).cover(z2,U4);for(uy=0;uy<L1;++uy)rZe(this,wA[uy],aX[uy],y[uy]);return this};
th.cover=function(y,b){if(isNaN(y=+y)||isNaN(b=+b))return this;var uy=this._x0,L1=this._y0,p1=this._x1,f1=this._y1;if(isNaN(uy))p1=(uy=Math.floor(y))+1,f1=(L1=Math.floor(b))+1;else if(uy>y||y>p1||L1>b||b>f1){var wA=p1-uy,aX=this._root,MM;switch(MM=(b<(L1+f1)/2)<<1|y<(uy+p1)/2){case 0:do{var LT=Array(4);LT[MM]=aX;aX=LT}while(wA*=2,p1=uy+wA,f1=L1+wA,y>p1||b>f1);break;case 1:do LT=Array(4),LT[MM]=aX,aX=LT;while(wA*=2,uy=p1-wA,f1=L1+wA,uy>y||b>f1);break;case 2:do LT=Array(4),LT[MM]=aX,aX=LT;while(wA*=
2,p1=uy+wA,L1=f1-wA,y>p1||L1>b);break;case 3:do LT=Array(4),LT[MM]=aX,aX=LT;while(wA*=2,uy=p1-wA,L1=f1-wA,uy>y||L1>b)}this._root&&this._root.length&&(this._root=aX)}else return this;this._x0=uy;this._y0=L1;this._x1=p1;this._y1=f1;return this};
th.data=function(){var y=[];this.visit(function(b){if(!b.length){do y.push(b.data);while(b=b.next)}});
return y};
th.extent=function(y){return arguments.length?this.cover(+y[0][0],+y[0][1]).cover(+y[1][0],+y[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
th.find=function(y,b,uy){var L1=this._x0,p1=this._y0,f1,wA,aX,MM,LT=this._x1,z2=this._y1,U4=[],ZN=this._root,ep;ZN&&U4.push(new Eb(ZN,L1,p1,LT,z2));uy==null?uy=Infinity:(L1=y-uy,p1=b-uy,LT=y+uy,z2=b+uy,uy*=uy);for(;ep=U4.pop();)if(!(!(ZN=ep.node)||(f1=ep.x0)>LT||(wA=ep.y0)>z2||(aX=ep.x1)<L1||(MM=ep.y1)<p1))if(ZN.length){ep=(f1+aX)/2;var J0=(wA+MM)/2;U4.push(new Eb(ZN[3],ep,J0,aX,MM),new Eb(ZN[2],f1,J0,ep,MM),new Eb(ZN[1],ep,wA,aX,J0),new Eb(ZN[0],f1,wA,ep,J0));if(ZN=(b>=J0)<<1|y>=ep)ep=U4[U4.length-
1],U4[U4.length-1]=U4[U4.length-1-ZN],U4[U4.length-1-ZN]=ep}else if(ep=y-+this._x.call(null,ZN.data),J0=b-+this._y.call(null,ZN.data),ep=ep*ep+J0*J0,ep<uy){var Dx=Math.sqrt(uy=ep);L1=y-Dx;p1=b-Dx;LT=y+Dx;z2=b+Dx;Dx=ZN.data}return Dx};
th.remove=function(y){if(isNaN(MM=+this._x.call(null,y))||isNaN(LT=+this._y.call(null,y)))return this;var b,uy=this._root,L1,p1=this._x0,f1=this._y0,wA=this._x1,aX=this._y1,MM,LT,z2,U4,ZN,ep,J0;if(!uy)return this;if(uy.length)for(;;){(ZN=MM>=(z2=(p1+wA)/2))?p1=z2:wA=z2;(ep=LT>=(U4=(f1+aX)/2))?f1=U4:aX=U4;if(!(b=uy,uy=uy[J0=ep<<1|ZN]))return this;if(!uy.length)break;if(b[J0+1&3]||b[J0+2&3]||b[J0+3&3]){var Dx=b;var pJ=J0}}for(;uy.data!==y;)if(!(L1=uy,uy=uy.next))return this;(y=uy.next)&&delete uy.next;
if(L1)return y?L1.next=y:delete L1.next,this;if(!b)return this._root=y,this;y?b[J0]=y:delete b[J0];(uy=b[0]||b[1]||b[2]||b[3])&&uy===(b[3]||b[2]||b[1]||b[0])&&!uy.length&&(Dx?Dx[pJ]=uy:this._root=uy);return this};
th.removeAll=function(y){for(var b=0,uy=y.length;b<uy;++b)this.remove(y[b]);return this};
th.root=function(){return this._root};
th.size=function(){var y=0;this.visit(function(b){if(!b.length){do++y;while(b=b.next)}});
return y};
th.visit=function(y){var b=[],uy,L1=this._root,p1,f1,wA,aX,MM;for(L1&&b.push(new Eb(L1,this._x0,this._y0,this._x1,this._y1));uy=b.pop();)if(!y(L1=uy.node,f1=uy.x0,wA=uy.y0,aX=uy.x1,MM=uy.y1)&&L1.length){uy=(f1+aX)/2;var LT=(wA+MM)/2;(p1=L1[3])&&b.push(new Eb(p1,uy,LT,aX,MM));(p1=L1[2])&&b.push(new Eb(p1,f1,LT,uy,MM));(p1=L1[1])&&b.push(new Eb(p1,uy,wA,aX,LT));(p1=L1[0])&&b.push(new Eb(p1,f1,wA,uy,LT))}};
th.visitAfter=function(y){var b=[],uy=[],L1;for(this._root&&b.push(new Eb(this._root,this._x0,this._y0,this._x1,this._y1));L1=b.pop();){var p1=L1.node;if(p1.length){var f1,wA=L1.x0,aX=L1.y0,MM=L1.x1,LT=L1.y1,z2=(wA+MM)/2,U4=(aX+LT)/2;(f1=p1[0])&&b.push(new Eb(f1,wA,aX,z2,U4));(f1=p1[1])&&b.push(new Eb(f1,z2,aX,MM,U4));(f1=p1[2])&&b.push(new Eb(f1,wA,U4,z2,LT));(f1=p1[3])&&b.push(new Eb(f1,z2,U4,MM,LT))}uy.push(L1)}for(;L1=uy.pop();)y(L1.node,L1.x0,L1.y0,L1.x1,L1.y1);return this};
th.x=function(y){return arguments.length?(this._x=y,this):this._x};
th.y=function(y){return arguments.length?(this._y=y,this):this._y};
var VPS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;MJj.prototype=HRA.prototype;HRA.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 egV,AZ1={"%":function(y,b){return(y*100).toFixed(b)},
b:function(y){return Math.round(y).toString(2)},
c:function(y){return y+""},
d:function(y){return Math.round(y).toString(10)},
e:function(y,b){return y.toExponential(b)},
f:function(y,b){return y.toFixed(b)},
g:function(y,b){return y.toPrecision(b)},
o:function(y){return Math.round(y).toString(8)},
p:function(y,b){return fFM(y*100,b)},
r:fFM,s:function(y,b){var uy=BNg(y,b);if(!uy)return y+"";var L1=uy[0];uy=uy[1];uy=uy-(egV=Math.max(-8,Math.min(8,Math.floor(uy/3)))*3)+1;var p1=L1.length;return uy===p1?L1:uy>p1?L1+Array(uy-p1+1).join("0"):uy>0?L1.slice(0,uy)+"."+L1.slice(uy):"0."+Array(1-uy).join("0")+BNg(y,Math.max(0,b+uy-1))[0]},
X:function(y){return Math.round(y).toString(16).toUpperCase()},
x:function(y){return Math.round(y).toString(16)}},yZe="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),K8w;
(function(y){return K8w=llb(y)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});xU.prototype={constructor:xU,reset:function(){this.s=this.t=0},
add:function(y){o8_(J1u,y,this.t);o8_(this,J1u.s,this.s);this.s?this.t+=J1u.t:this.s=J1u.t},
valueOf:function(){return this.s}};
var J1u=new xU,HD=Math.PI,x2=HD/2,EBX=HD/4,adN=HD*2,p7a=HD/180,nZ=Math.abs,z5a=Math.atan,hgE=Math.atan2,f$=Math.cos,qu=Math.sin,qVu=Math.sqrt;new xU;new xU;new xU;var mit=new xU;(function(y,b,uy,L1){return function(p1){function f1(K2,eh){y(K2,eh)&&p1.point(K2,eh)}
function wA(K2,eh){ZN.point(K2,eh)}
function aX(){m2.point=wA;ZN.lineStart()}
function MM(){m2.point=f1;ZN.lineEnd()}
function LT(K2,eh){wJ.push([K2,eh]);J0.point(K2,eh)}
function z2(){J0.lineStart();wJ=[]}
function U4(){LT(wJ[0][0],wJ[0][1]);J0.lineEnd();var K2=J0.clean(),eh=ep.result(),u3=eh.length,wo;wJ.pop();pJ.push(wJ);wJ=null;if(u3)if(K2&1){if(u3=eh[0],(eh=u3.length-1)>0){Dx||(p1.polygonStart(),Dx=!0);p1.lineStart();for(K2=0;K2<eh;++K2)p1.point((wo=u3[K2])[0],wo[1]);p1.lineEnd()}}else u3>1&&K2&2&&eh.push(eh.pop().concat(eh.shift())),tT.push(eh.filter(sYS))}
var ZN=b(p1),ep=$w9(),J0=b(ep),Dx=!1,pJ,tT,wJ,m2={point:f1,lineStart:aX,lineEnd:MM,polygonStart:function(){m2.point=LT;m2.lineStart=z2;m2.lineEnd=U4;tT=[];pJ=[]},
polygonEnd:function(){m2.point=f1;m2.lineStart=aX;m2.lineEnd=MM;var K2=tT,eh=K2.length;var u3=-1;for(var wo=0,JB,Ws;++u3<eh;)wo+=K2[u3].length;for(JB=Array(wo);--eh>=0;)for(Ws=K2[eh],u3=Ws.length;--u3>=0;)JB[--wo]=Ws[u3];tT=JB;K2=pJ;eh=L1[0];wo=L1[1];var Xo=qu(wo);u3=[qu(eh),-f$(eh),0];Ws=JB=0;mit.reset();Xo===1?wo=x2+1E-6:Xo===-1&&(wo=-x2-1E-6);Xo=0;for(var DN=K2.length;Xo<DN;++Xo)if(M2=(KH=K2[Xo]).length){var KH,M2,z5=KH[M2-1],eo=z5[0],Xs=z5[1]/2+EBX,Yk4=qu(Xs),tQU=f$(Xs);for(Xs=0;Xs<M2;++Xs,eo=
Wuu,Yk4=Ks2,tQU=EX,z5=GBg){var GBg=KH[Xs],Wuu=GBg[0];EX=GBg[1]/2+EBX;var Ks2=qu(EX),EX=f$(EX),vl=Wuu-eo,rla=vl>=0?1:-1,xiA=rla*vl,uPA=xiA>HD;Yk4*=Ks2;mit.add(hgE(Yk4*rla*qu(xiA),tQU*EX+Yk4*f$(xiA)));JB+=uPA?vl+rla*adN:vl;uPA^eo>=eh^Wuu>=eh&&(z5=RgR(irR(z5),irR(GBg)),w9I(z5),eo=RgR(u3,z5),w9I(eo),eo=(uPA^vl>=0?-1:1)*$6t(eo[2]),wo>eo||wo===eo&&(z5[0]||z5[1]))&&(Ws+=uPA^vl>=0?1:-1)}}K2=(JB<-1E-6||JB<1E-6&&mit<-1E-6)^Ws&1;tT.length?(Dx||(p1.polygonStart(),Dx=!0),qiN(tT,cSV,K2,uy,p1)):K2&&(Dx||(p1.polygonStart(),
Dx=!0),p1.lineStart(),uy(null,null,1,p1),p1.lineEnd());Dx&&(p1.polygonEnd(),Dx=!1);tT=pJ=null},
sphere:function(){p1.polygonStart();p1.lineStart();uy(null,null,1,p1);p1.lineEnd();p1.polygonEnd()}};
return m2}})(function(){return!0},function(y){var b=NaN,uy=NaN,L1=NaN,p1;
return{lineStart:function(){y.lineStart();p1=1},
point:function(f1,wA){var aX=f1>0?HD:-HD,MM=nZ(f1-b);if(nZ(MM-HD)<1E-6)y.point(b,uy=(uy+wA)/2>0?x2:-x2),y.point(L1,uy),y.lineEnd(),y.lineStart(),y.point(aX,uy),y.point(f1,uy),p1=0;else if(L1!==aX&&MM>=HD){nZ(b-L1)<1E-6&&(b-=L1*1E-6);nZ(f1-aX)<1E-6&&(f1-=aX*1E-6);MM=b;var LT=uy,z2=f1,U4,ZN,ep=qu(MM-z2);uy=nZ(ep)>1E-6?z5a((qu(LT)*(ZN=f$(wA))*qu(z2)-qu(wA)*(U4=f$(LT))*qu(MM))/(U4*ZN*ep)):(LT+wA)/2;y.point(L1,uy);y.lineEnd();y.lineStart();y.point(aX,uy);p1=0}y.point(b=f1,uy=wA);L1=aX},
lineEnd:function(){y.lineEnd();b=uy=NaN},
clean:function(){return 2-p1}}},function(y,b,uy,L1){y==null?(uy*=x2,L1.point(-HD,uy),L1.point(0,uy),L1.point(HD,uy),L1.point(HD,0),L1.point(HD,-uy),L1.point(0,-uy),L1.point(-HD,-uy),L1.point(-HD,0),L1.point(-HD,uy)):nZ(y[0]-b[0])>1E-6?(y=y[0]<b[0]?HD:-HD,uy=uy*y/2,L1.point(-y,uy),L1.point(0,uy),L1.point(y,uy)):L1.point(b[0],b[1])},[-HD,
-x2]);new xU;new xU;new xU;new xU;Eba.prototype={constructor:Eba,point:function(y,b){this.stream.point(y,b)},
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()}};
f$(30*p7a);(function(y){return function(b){var uy=new Eba,L1;for(L1 in y)uy[L1]=y[L1];uy.stream=b;return uy}})({point:function(y,b){this.stream.point(y*p7a,b*p7a)}});
D8k(function(y){return qVu(2/(1+y))}).invert=J8(function(y){return 2*$6t(y/2)});
D8k(function(y){return(y=y>1?0:y<-1?HD:Math.acos(y))&&y/qu(y)}).invert=J8(function(y){return y});
qVu(3);J8(z5a);J8($6t);J8(function(y){return 2*z5a(y)});
YL.prototype=d8U.prototype={constructor:YL,count:function(){return this.eachAfter(Uwx)},
each:function(y){var b,uy=[this],L1;do{var p1=uy.reverse();for(uy=[];b=p1.pop();)if(y(b),b=b.children){var f1=0;for(L1=b.length;f1<L1;++f1)uy.push(b[f1])}}while(uy.length);return this},
eachAfter:function(y){for(var b,uy=[this],L1=[],p1,f1;b=uy.pop();)if(L1.push(b),b=b.children)for(p1=0,f1=b.length;p1<f1;++p1)uy.push(b[p1]);for(;b=L1.pop();)y(b);return this},
eachBefore:function(y){for(var b,uy=[this],L1;b=uy.pop();)if(y(b),b=b.children)for(L1=b.length-1;L1>=0;--L1)uy.push(b[L1]);return this},
sum:function(y){return this.eachAfter(function(b){for(var uy=+y(b.data)||0,L1=b.children,p1=L1&&L1.length;--p1>=0;)uy+=L1[p1].value;b.value=uy})},
sort:function(y){return this.eachBefore(function(b){b.children&&b.children.sort(y)})},
path:function(y){var b=this;var uy=b;var L1=y;if(uy!==L1){var p1=uy.ancestors(),f1=L1.ancestors(),wA=null;uy=p1.pop();for(L1=f1.pop();uy===L1;)wA=uy,uy=p1.pop(),L1=f1.pop();uy=wA}for(L1=[b];b!==uy;)b=b.parent,L1.push(b);for(b=L1.length;y!==uy;)L1.splice(b,0,y),y=y.parent;return L1},
ancestors:function(){for(var y=this,b=[y];y=y.parent;)b.push(y);return b},
links:function(){var y=this,b=[];y.each(function(uy){uy!==y&&b.push({source:uy.parent,target:uy})});
return b},
copy:function(){return d8U(this).eachBefore(YPj)}};
(function(y,b){this._=y;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=b}).prototype=Object.create(YL.prototype);
var tJ4=new Date,Kuj=new Date,aDR=ZU(function(){},function(y,b){y.setTime(+y+b)},function(y,b){return b-y});
aDR.every=function(y){y=Math.floor(y);return isFinite(y)&&y>0?y>1?ZU(function(b){b.setTime(Math.floor(b/y)*y)},function(b,uy){b.setTime(+b+uy*y)},function(b,uy){return(uy-b)/y}):aDR:null};
ZU(function(y){y.setTime(Math.floor(y/1E3)*1E3)},function(y,b){y.setTime(+y+b*1E3)},function(y,b){return(b-y)/1E3},function(y){return y.getUTCSeconds()});
ZU(function(y){y.setTime(Math.floor(y/6E4)*6E4)},function(y,b){y.setTime(+y+b*6E4)},function(y,b){return(b-y)/6E4},function(y){return y.getMinutes()});
ZU(function(y){var b=y.getTimezoneOffset()*6E4%36E5;b<0&&(b+=36E5);y.setTime(Math.floor((+y-b)/36E5)*36E5+b)},function(y,b){y.setTime(+y+b*36E5)},function(y,b){return(b-y)/36E5},function(y){return y.getHours()});
var NYk=ZU(function(y){y.setHours(0,0,0,0)},function(y,b){y.setDate(y.getDate()+b)},function(y,b){return(b-y-(b.getTimezoneOffset()-y.getTimezoneOffset())*6E4)/864E5},function(y){return y.getDate()-1}),Ypw=C0(0),TzA=C0(1);
C0(2);C0(3);var Lut=C0(4);C0(5);C0(6);ZU(function(y){y.setDate(1);y.setHours(0,0,0,0)},function(y,b){y.setMonth(y.getMonth()+b)},function(y,b){return b.getMonth()-y.getMonth()+(b.getFullYear()-y.getFullYear())*12},function(y){return y.getMonth()});
var qk=ZU(function(y){y.setMonth(0,1);y.setHours(0,0,0,0)},function(y,b){y.setFullYear(y.getFullYear()+b)},function(y,b){return b.getFullYear()-y.getFullYear()},function(y){return y.getFullYear()});
qk.every=function(y){return isFinite(y=Math.floor(y))&&y>0?ZU(function(b){b.setFullYear(Math.floor(b.getFullYear()/y)*y);b.setMonth(0,1);b.setHours(0,0,0,0)},function(b,uy){b.setFullYear(b.getFullYear()+uy*y)}):null};
ZU(function(y){y.setUTCSeconds(0,0)},function(y,b){y.setTime(+y+b*6E4)},function(y,b){return(b-y)/6E4},function(y){return y.getUTCMinutes()});
ZU(function(y){y.setUTCMinutes(0,0,0)},function(y,b){y.setTime(+y+b*36E5)},function(y,b){return(b-y)/36E5},function(y){return y.getUTCHours()});
var SME=ZU(function(y){y.setUTCHours(0,0,0,0)},function(y,b){y.setUTCDate(y.getUTCDate()+b)},function(y,b){return(b-y)/864E5},function(y){return y.getUTCDate()-1}),G7S=yz(0),aR4=yz(1);
yz(2);yz(3);var gbT=yz(4);yz(5);yz(6);ZU(function(y){y.setUTCDate(1);y.setUTCHours(0,0,0,0)},function(y,b){y.setUTCMonth(y.getUTCMonth()+b)},function(y,b){return b.getUTCMonth()-y.getUTCMonth()+(b.getUTCFullYear()-y.getUTCFullYear())*12},function(y){return y.getUTCMonth()});
var s7=ZU(function(y){y.setUTCMonth(0,1);y.setUTCHours(0,0,0,0)},function(y,b){y.setUTCFullYear(y.getUTCFullYear()+b)},function(y,b){return b.getUTCFullYear()-y.getUTCFullYear()},function(y){return y.getUTCFullYear()});
s7.every=function(y){return isFinite(y=Math.floor(y))&&y>0?ZU(function(b){b.setUTCFullYear(Math.floor(b.getUTCFullYear()/y)*y);b.setUTCMonth(0,1);b.setUTCHours(0,0,0,0)},function(b,uy){b.setUTCFullYear(b.getUTCFullYear()+uy*y)}):null};
var brl={"-":"",_:" ",0:"0"},ZZ=/^\s*\d+/,JpS=/^%/,vJo=/[\\^$*+?|[\]().{}]/g,OjY;(function(y){OjY=uTB(y);XH4=OjY.utcFormat;P$X=OjY.utcParse;return OjY})({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||XH4("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||P$X("%Y-%m-%dT%H:%M:%S.%LZ");WI("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
WI("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");WI("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");WI("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");WI("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");WI("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");WI("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
WI("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");WI("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");WI("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");WI("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");WI("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var TOw=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(WI);a1(TOw);var L8V=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(WI);a1(L8V);var gzj=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(WI);a1(gzj);var XW9=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(WI);
a1(XW9);var PSV=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(WI);a1(PSV);var IdV=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(WI);a1(IdV);var k7b=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(WI);a1(k7b);var nzx=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(WI);a1(nzx);var F8S=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(WI);a1(F8S);var pWj=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(WI);a1(pWj);var zCw=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(WI);a1(zCw);var mJx=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(WI);a1(mJx);var W8b=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(WI);a1(W8b);var rQS=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(WI);a1(rQS);var xJx=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(WI);a1(xJx);var fdx=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(WI);a1(fdx);var CS9=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(WI);a1(CS9);var yQN=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(WI);a1(yQN);var eCS=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(WI);a1(eCS);var AQB=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(WI);a1(AQB);var ozj=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(WI);a1(ozj);var ioj=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(WI);a1(ioj);var RCS=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(WI);a1(RCS);var wW9=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(WI);a1(wW9);var Zog=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(WI);a1(Zog);var DJw=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(WI);a1(DJw);var hCN=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(WI);a1(hCN);nby(xk(300,.5,0),xk(-240,.5,1));nby(xk(-100,.75,.35),xk(80,1.5,.8));nby(xk(260,.75,.35),xk(80,1.5,.8));xk();Io();U6U(WI("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
U6U(WI("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
U6U(WI("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
U6U(WI("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
v81.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(y,b){y=+y;b=+b;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(y,b):this._context.moveTo(y,b);break;case 1:this._point=2;default:this._context.lineTo(y,b)}}};
(function(y){function b(uy){return new JZR(y(uy))}
b._curve=y;return b})(function(y){return new v81(y)});
JZR.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(y,b){this._curve.point(b*Math.sin(y),b*-Math.cos(y))}};
Ppt.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:X74(this,this._t0,G94(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(y,b){var uy=NaN;y=+y;b=+b;if(y!==this._x1||b!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(y,b):this._context.moveTo(y,b);break;case 1:this._point=2;break;case 2:this._point=3;X74(this,G94(this,uy=Yue(this,y,b)),uy);break;default:X74(this,this._t0,uy=Yue(this,y,b))}this._x0=this._x1;this._x1=y;this._y0=this._y1;this._y1=b;this._t0=uy}}};
(function(y){this._context=new u7T(y)}.prototype=Object.create(Ppt.prototype)).point=function(y,b){Ppt.prototype.point.call(this,b,y)};
u7T.prototype={moveTo:function(y,b){this._context.moveTo(b,y)},
closePath:function(){this._context.closePath()},
lineTo:function(y,b){this._context.lineTo(b,y)},
bezierCurveTo:function(y,b,uy,L1,p1,f1){this._context.bezierCurveTo(b,y,L1,uy,f1,p1)}};
QC.prototype={constructor:QC,scale:function(y){return y===1?this:new QC(this.k*y,this.x,this.y)},
translate:function(y,b){return y===0&b===0?this:new QC(this.k,this.x+this.k*y,this.y+this.k*b)},
apply:function(y){return[y[0]*this.k+this.x,y[1]*this.k+this.y]},
invert:function(y){return[(y[0]-this.x)/this.k,(y[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new QC(1,0,0);uMu=NM;WU.svg=WU.svg;WU.xhtml=WU.xhtml;WU.xlink=WU.xlink;WU.xml=WU.xml;WU.xmlns=WU.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 IKk="hammer_"+(Math.random()*1E6|0),k0I=function(){var Y=document||document;if(!Y[IKk]){var G=function(){(function(u,O,Q,M){function t(yj,by,sI){return setTimeout(k(yj,sI),by)}
function K(yj,by,sI){return Array.isArray(yj)?(L(yj,sI[by],sI),!0):!1}
function L(yj,by,sI){var rR;if(yj)if(yj.forEach)yj.forEach(by,sI);else if(yj.length!==M){var rb=0;for(rR=yj.length;rb<rR;rb++)by.call(sI,yj[rb],rb,yj)}else for(rb in yj)yj.hasOwnProperty(rb)&&by.call(sI,yj[rb],rb,yj)}
function g(yj,by,sI){for(var rR=Object.keys(by),rb=0,C5=rR.length;rb<C5;rb++)if(!sI||sI&&yj[rR[rb]]===M)yj[rR[rb]]=by[rR[rb]];return yj}
function P(yj,by){return g(yj,by,!0)}
function I(yj,by,sI){by=by.prototype;var rR=yj.prototype=Object.create(by);rR.constructor=yj;rR._super=by;sI&&g(rR,sI)}
function k(yj,by){return function(){return yj.apply(by,arguments)}}
function n(yj,by){return typeof yj=="function"?yj.apply(by?by[0]||M:M,by):yj}
function p(yj,by,sI){L(C(by),function(rR){yj.addEventListener(rR,sI,!1)})}
function W(yj,by,sI){L(C(by),function(rR){yj.removeEventListener(rR,sI,!1)})}
function C(yj){return yj.trim().split(/\s+/g)}
function e(yj,by,sI){if(yj.indexOf&&!sI)return yj.indexOf(by);for(var rR=0,rb=yj.length;rR<rb;rR++)if(sI&&yj[rR][sI]==by||!sI&&yj[rR]===by)return rR;return-1}
function w(yj,by,sI){for(var rR=[],rb=[],C5=0,y9=yj.length;C5<y9;C5++){var CT=by?yj[C5][by]:yj[C5];e(rb,CT)<0&&rR.push(yj[C5]);rb[C5]=CT}sI&&(rR=by?rR.sort(function(xk,jS){return xk[by]>jS[by]}):rR.sort());
return rR}
function B(yj,by){for(var sI,rR=by[0].toUpperCase()+by.slice(1),rb=0,C5=Ew.length;rb<C5;rb++)if(sI=(sI=Ew[rb])?sI+rR:by,sI in yj)return sI;return M}
function N(yj,by){var sI=this;this.manager=yj;this.callback=by;this.element=yj.element;this.target=yj.options.inputTarget;this.domHandler=function(rR){n(yj.options.enable,[yj])&&sI.handler(rR)};
this.evEl&&p(this.element,this.evEl,this.domHandler);this.evTarget&&p(this.target,this.evTarget,this.domHandler);this.evWin&&p(u,this.evWin,this.domHandler)}
function h(yj){var by;fx?by=iy:H8?by=hY:NM?by=dA:by=Tg;return new by(yj,q)}
function q(yj,by,sI){var rR=sI.pointers.length,rb=sI.changedPointers.length,C5=by&1&&rR-rb===0;sI.isFirst=!!C5;sI.isFinal=!!(by&12&&rR-rb===0);C5&&(yj.session={});sI.eventType=by;by=yj.session;rR=sI.pointers;rb=rR.length;by.firstInput||(by.firstInput=U(sI));rb>1&&!by.firstMultiple?by.firstMultiple=U(sI):rb===1&&(by.firstMultiple=!1);C5=by.firstInput;var y9=(rb=by.firstMultiple)?rb.center:C5.center,CT=sI.center=Mj(rR);sI.timeStamp=Pb();sI.deltaTime=sI.timeStamp-C5.timeStamp;sI.angle=aU(y9,CT);sI.distance=
ka(y9,CT);C5=sI.center;y9=by.offsetDelta||{};CT=by.prevDelta||{};var xk=by.prevInput||{};if(sI.eventType===1||xk.eventType===4)CT=by.prevDelta={x:xk.deltaX||0,y:xk.deltaY||0},y9=by.offsetDelta={x:C5.x,y:C5.y};sI.deltaX=CT.x+(C5.x-y9.x);sI.deltaY=CT.y+(C5.y-y9.y);sI.offsetDirection=Xt(sI.deltaX,sI.deltaY);rb?(C5=rb.pointers,C5=ka(rR[0],rR[1],Io)/ka(C5[0],C5[1],Io)):C5=1;sI.scale=C5;rb?(rb=rb.pointers,rR=aU(rR[1],rR[0],Io)-aU(rb[1],rb[0],Io)):rR=0;sI.rotation=rR;y9=by.lastInterval||sI;rR=sI.timeStamp-
y9.timeStamp;sI.eventType!=8&&(rR>25||y9.velocity===M)?(C5=y9.deltaX-sI.deltaX,y9=y9.deltaY-sI.deltaY,CT=C5/rR||0,xk=y9/rR||0,rR=CT,rb=xk,CT=T2(CT)>T2(xk)?CT:xk,C5=Xt(C5,y9),by.lastInterval=sI):(CT=y9.velocity,rR=y9.velocityX,rb=y9.velocityY,C5=y9.direction);sI.velocity=CT;sI.velocityX=rR;sI.velocityY=rb;sI.direction=C5;by=yj.element;a:{for(rR=sI.srcEvent.target;rR;){if(rR==by){rR=!0;break a}rR=rR.parentNode}rR=!1}rR&&(by=sI.srcEvent.target);sI.target=by;yj.emit("hammer.input",sI);yj.recognize(sI);
yj.session.prevInput=sI}
function U(yj){for(var by=[],sI=0;sI<yj.pointers.length;sI++)by[sI]={clientX:$V(yj.pointers[sI].clientX),clientY:$V(yj.pointers[sI].clientY)};return{timeStamp:Pb(),pointers:by,center:Mj(by),deltaX:yj.deltaX,deltaY:yj.deltaY}}
function Mj(yj){var by=yj.length;if(by===1)return{x:$V(yj[0].clientX),y:$V(yj[0].clientY)};for(var sI=0,rR=0,rb=0;rb<by;rb++)sI+=yj[rb].clientX,rR+=yj[rb].clientY;return{x:$V(sI/by),y:$V(rR/by)}}
function Xt(yj,by){return yj===by?1:T2(yj)>=T2(by)?yj>0?2:4:by>0?8:16}
function ka(yj,by,sI){sI||(sI=jR);var rR=by[sI[0]]-yj[sI[0]];yj=by[sI[1]]-yj[sI[1]];return Math.sqrt(rR*rR+yj*yj)}
function aU(yj,by,sI){sI||(sI=jR);return Math.atan2(by[sI[1]]-yj[sI[1]],by[sI[0]]-yj[sI[0]])*180/Math.PI}
function Tg(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;N.apply(this,arguments)}
function iy(){this.evEl=jd;this.evWin=eE;N.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function hY(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};N.apply(this,arguments)}
function dA(){N.apply(this,arguments);var yj=k(this.handler,this);this.touch=new hY(this.manager,yj);this.mouse=new Tg(this.manager,yj)}
function nT(yj,by){this.manager=yj;this.set(by)}
function u_(yj){if(yj.indexOf("none")>-1)return"none";var by=yj.indexOf("pan-x")>-1,sI=yj.indexOf("pan-y")>-1;return by&&sI?"pan-x pan-y":by||sI?by?"pan-x":"pan-y":yj.indexOf("manipulation")>-1?"manipulation":"auto"}
function jT(yj){this.id=IX++;this.manager=null;this.options=P(yj||{},this.defaults);yj=this.options.enable;this.options.enable=yj===M?!0:yj;this.state=1;this.simultaneous={};this.requireFail=[]}
function P1(yj){return yj==16?"down":yj==8?"up":yj==2?"left":yj==4?"right":""}
function kk(yj,by){return(by=by.manager)?by.get(yj):yj}
function Fe(){jT.apply(this,arguments)}
function Xg(){Fe.apply(this,arguments);this.pY=this.pX=null}
function Hb(){Fe.apply(this,arguments)}
function n1(){jT.apply(this,arguments);this._input=this._timer=null}
function Yk(){Fe.apply(this,arguments)}
function qj(){Fe.apply(this,arguments)}
function Gx(){jT.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function fT(yj,by){by=by||{};var sI=by.recognizers;by.recognizers=sI===M?fT.defaults.preset:sI;return new b_(yj,by)}
function b_(yj,by){by=by||{};this.options=P(by,fT.defaults);this.options.inputTarget=this.options.inputTarget||yj;this.handlers={};this.session={};this.recognizers=[];this.element=yj;this.input=h(this);this.touchAction=new nT(this,this.options.touchAction);MK(this,!0);L(by.recognizers,function(sI){var rR=this.add(new sI[0](sI[1]));sI[2]&&rR.recognizeWith(sI[2]);sI[3]&&rR.requireFailure(sI[2])},this)}
function MK(yj,by){var sI=yj.element;L(yj.options.cssProps,function(rR,rb){sI.style[B(sI.style,rb)]=by?rR:""})}
function v1(yj,by){var sI=O.createEvent("Event");sI.initEvent(yj,!0,!0);sI.gesture=by;by.target.dispatchEvent(sI)}
var Ew=" webkit moz MS ms o".split(" "),l_=O.createElement("div"),$V=Math.round,T2=Math.abs,Pb=Date.now,IX=1,$k=/mobile|tablet|ip(ad|hone|od)|android/i,NM="ontouchstart"in u,fx=B(u,"PointerEvent")!==M,H8=NM&&$k.test(navigator.userAgent),jR=["x","y"],Io=["clientX","clientY"];N.prototype={handler:function(){},
destroy:function(){this.evEl&&W(this.element,this.evEl,this.domHandler);this.evTarget&&W(this.target,this.evTarget,this.domHandler);this.evWin&&W(u,this.evWin,this.domHandler)}};
var vb={mousedown:1,mousemove:2,mouseup:4};I(Tg,N,{handler:function(yj){var by=vb[yj.type];by&1&&yj.button===0&&(this.pressed=!0);by&2&&yj.which!==1&&(by=4);this.pressed&&this.allow&&(by&4&&(this.pressed=!1),this.callback(this.manager,by,{pointers:[yj],changedPointers:[yj],pointerType:"mouse",srcEvent:yj}))}});
var K5={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},s_={2:"touch",3:"pen",4:"mouse",5:"kinect"},jd="pointerdown",eE="pointermove pointerup pointercancel";u.MSPointerEvent&&(jd="MSPointerDown",eE="MSPointerMove MSPointerUp MSPointerCancel");I(iy,N,{handler:function(yj){var by=this.store,sI=!1,rR=yj.type.toLowerCase().replace("ms","");rR=K5[rR];var rb=s_[yj.pointerType]||yj.pointerType;rR&1&&(yj.button===0||rb=="touch")?by.push(yj):rR&12&&(sI=!0);var C5=e(by,yj.pointerId,"pointerId");
C5<0||(by[C5]=yj,this.callback(this.manager,rR,{pointers:by,changedPointers:[yj],pointerType:rb,srcEvent:yj}),sI&&by.splice(C5,1))}});
var PF={touchstart:1,touchmove:2,touchend:4,touchcancel:8};I(hY,N,{handler:function(yj){var by=PF[yj.type];var sI=Array.prototype.slice.call(yj.touches,0);var rR=this.targetIds;if(by&3&&sI.length===1)rR[sI[0].identifier]=!0,rR=[sI,sI];else{var rb,C5=Array.prototype.slice.call(yj.targetTouches,0),y9=Array.prototype.slice.call(yj.changedTouches,0),CT=[];if(by===1)for(sI=0,rb=C5.length;sI<rb;sI++)rR[C5[sI].identifier]=!0;sI=0;for(rb=y9.length;sI<rb;sI++)rR[y9[sI].identifier]&&CT.push(y9[sI]),by&12&&
delete rR[y9[sI].identifier];rR=CT.length?[w(C5.concat(CT),"identifier",!0),CT]:void 0}rR&&this.callback(this.manager,by,{pointers:rR[0],changedPointers:rR[1],pointerType:"touch",srcEvent:yj})}});
I(dA,N,{handler:function(yj,by,sI){var rR=sI.pointerType=="mouse";if(sI.pointerType=="touch")this.mouse.allow=!1;else if(rR&&!this.mouse.allow)return;by&12&&(this.mouse.allow=!0);this.callback(yj,by,sI)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Zx=B(l_.style,"touchAction"),Ad=Zx!==M;nT.prototype={set:function(yj){yj=="compute"&&(yj=this.compute());Ad&&(this.manager.element.style[Zx]=yj);this.actions=yj.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var yj=[];L(this.manager.recognizers,function(by){n(by.options.enable,[by])&&(yj=yj.concat(by.getTouchAction()))});
return u_(yj.join(" "))},
preventDefaults:function(yj){if(!Ad){var by=yj.srcEvent;yj=yj.offsetDirection;if(this.manager.session.prevented)by.preventDefault();else{var sI=this.actions,rR=sI.indexOf("none")>-1,rb=sI.indexOf("pan-y")>-1;sI=sI.indexOf("pan-x")>-1;if(rR||rb&&sI||rb&&yj&6||sI&&yj&24)return this.preventSrc(by)}}},
preventSrc:function(yj){this.manager.session.prevented=!0;yj.preventDefault()}};
jT.prototype={defaults:{},set:function(yj){g(this.options,yj);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(yj){if(K(yj,"recognizeWith",this))return this;var by=this.simultaneous;yj=kk(yj,this);by[yj.id]||(by[yj.id]=yj,yj.recognizeWith(this));return this},
dropRecognizeWith:function(yj){if(K(yj,"dropRecognizeWith",this))return this;yj=kk(yj,this);delete this.simultaneous[yj.id];return this},
requireFailure:function(yj){if(K(yj,"requireFailure",this))return this;var by=this.requireFail;yj=kk(yj,this);e(by,yj)===-1&&(by.push(yj),yj.requireFailure(this));return this},
dropRequireFailure:function(yj){if(K(yj,"dropRequireFailure",this))return this;yj=kk(yj,this);yj=e(this.requireFail,yj);yj>-1&&this.requireFail.splice(yj,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(yj){return!!this.simultaneous[yj.id]},
emit:function(yj){function by(rb){sI.manager.emit(sI.options.event+(rb?rR&16?"cancel":rR&8?"end":rR&4?"move":rR&2?"start":"":""),yj)}
var sI=this,rR=this.state;rR<8&&by(!0);by();rR>=8&&by(!0)},
tryEmit:function(yj){if(this.canEmit())return this.emit(yj);this.state=32},
canEmit:function(){for(var yj=0;yj<this.requireFail.length;yj++)if(!(this.requireFail[yj].state&33))return!1;return!0},
recognize:function(yj){yj=g({},yj);n(this.options.enable,[this,yj])?(this.state&56&&(this.state=1),this.state=this.process(yj),this.state&30&&this.tryEmit(yj)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
I(Fe,jT,{defaults:{pointers:1},attrTest:function(yj){var by=this.options.pointers;return by===0||yj.pointers.length===by},
process:function(yj){var by=this.state,sI=yj.eventType,rR=by&6;yj=this.attrTest(yj);return rR&&(sI&8||!yj)?by|16:rR||yj?sI&4?by|8:by&2?by|4:2:32}});
I(Xg,Fe,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var yj=this.options.direction;if(yj===30)return["none"];var by=[];yj&6&&by.push("pan-y");yj&24&&by.push("pan-x");return by},
directionTest:function(yj){var by=this.options,sI=!0,rR=yj.distance,rb=yj.direction,C5=yj.deltaX,y9=yj.deltaY;rb&by.direction||(by.direction&6?(rb=C5===0?1:C5<0?2:4,sI=C5!=this.pX,rR=Math.abs(yj.deltaX)):(rb=y9===0?1:y9<0?8:16,sI=y9!=this.pY,rR=Math.abs(yj.deltaY)));yj.direction=rb;return sI&&rR>by.threshold&&rb&by.direction},
attrTest:function(yj){return Fe.prototype.attrTest.call(this,yj)&&(this.state&2||!(this.state&2)&&this.directionTest(yj))},
emit:function(yj){this.pX=yj.deltaX;this.pY=yj.deltaY;var by=P1(yj.direction);by&&this.manager.emit(this.options.event+by,yj);this._super.emit.call(this,yj)}});
I(Hb,Fe,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(yj){return this._super.attrTest.call(this,yj)&&(Math.abs(yj.scale-1)>this.options.threshold||this.state&2)},
emit:function(yj){this._super.emit.call(this,yj);yj.scale!==1&&this.manager.emit(this.options.event+(yj.scale<1?"in":"out"),yj)}});
I(n1,jT,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(yj){var by=this.options,sI=yj.pointers.length===by.pointers,rR=yj.distance<by.threshold,rb=yj.deltaTime>by.time;this._input=yj;if(!rR||!sI||yj.eventType&12&&!rb)this.reset();else if(yj.eventType&1)this.reset(),this._timer=t(function(){this.state=8;this.tryEmit()},by.time,this);
else if(yj.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(yj){this.state===8&&(yj&&yj.eventType&4?this.manager.emit(this.options.event+"up",yj):(this._input.timeStamp=Pb(),this.manager.emit(this.options.event,this._input)))}});
I(Yk,Fe,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(yj){return this._super.attrTest.call(this,yj)&&(Math.abs(yj.rotation)>this.options.threshold||this.state&2)}});
I(qj,Fe,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Xg.prototype.getTouchAction.call(this)},
attrTest:function(yj){var by=this.options.direction;if(by&30)var sI=yj.velocity;else by&6?sI=yj.velocityX:by&24&&(sI=yj.velocityY);return this._super.attrTest.call(this,yj)&&by&yj.direction&&T2(sI)>this.options.velocity&&yj.eventType&4},
emit:function(yj){var by=P1(yj.direction);by&&this.manager.emit(this.options.event+by,yj);this.manager.emit(this.options.event,yj)}});
I(Gx,jT,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(yj){var by=this.options,sI=yj.pointers.length===by.pointers,rR=yj.distance<by.threshold,rb=yj.deltaTime<by.time;this.reset();if(yj.eventType&1&&this.count===0)return this.failTimeout();if(rR&&rb&&sI){if(yj.eventType!=4)return this.failTimeout();sI=this.pTime?yj.timeStamp-this.pTime<by.interval:!0;rR=!this.pCenter||ka(this.pCenter,yj.center)<by.posThreshold;this.pTime=yj.timeStamp;this.pCenter=yj.center;rR&&sI?this.count+=1:this.count=1;this._input=yj;if(this.count%by.taps===0)return this.hasRequireFailures()?
(this._timer=t(function(){this.state=8;this.tryEmit()},by.interval,this),2):8}return 32},
failTimeout:function(){this._timer=t(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))}});
fT.VERSION="2.0.2";fT.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[Yk,{enable:!1}],[Hb,{enable:!1},["rotate"]],[qj,{direction:6}],[Xg,{direction:6},["swipe"]],[Gx],[Gx,{event:"doubletap",taps:2},["tap"]],[n1]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};b_.prototype={set:function(yj){g(this.options,yj);return this},
stop:function(yj){this.session.stopped=yj?2:1},
recognize:function(yj){var by=this.session;if(!by.stopped){this.touchAction.preventDefaults(yj);var sI=this.recognizers,rR=by.curRecognizer;if(!rR||rR&&rR.state&8)rR=by.curRecognizer=null;for(var rb=0,C5=sI.length;rb<C5;rb++){var y9=sI[rb];by.stopped===2||rR&&y9!=rR&&!y9.canRecognizeWith(rR)?y9.reset():y9.recognize(yj);!rR&&y9.state&14&&(rR=by.curRecognizer=y9)}}},
get:function(yj){if(yj instanceof jT)return yj;for(var by=this.recognizers,sI=0;sI<by.length;sI++)if(by[sI].options.event==yj)return by[sI];return null},
add:function(yj){if(K(yj,"add",this))return this;var by=this.get(yj.options.event);by&&this.remove(by);this.recognizers.push(yj);yj.manager=this;this.touchAction.update();return yj},
remove:function(yj){if(K(yj,"remove",this))return this;var by=this.recognizers;yj=this.get(yj);by.splice(e(by,yj),1);this.touchAction.update();return this},
on:function(yj,by){var sI=this.handlers;L(C(yj),function(rR){sI[rR]=sI[rR]||[];sI[rR].push(by)});
return this},
off:function(yj,by){var sI=this.handlers;L(C(yj),function(rR){by?sI[rR].splice(e(sI[rR],by),1):delete sI[rR]});
return this},
emit:function(yj,by){this.options.domEvents&&v1(yj,by);var sI=this.handlers[yj]&&this.handlers[yj].slice();if(sI&&sI.length){by.type=yj;by.preventDefault=function(){by.srcEvent.preventDefault()};
yj=0;for(var rR=sI.length;yj<rR;yj++)sI[yj](by)}},
destroy:function(){this.element&&MK(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
g(fT,{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:b_,Input:N,TouchAction:nT,Recognizer:jT,AttrRecognizer:Fe,Tap:Gx,Pan:Xg,Swipe:qj,Pinch:Hb,Rotate:Yk,Press:n1,on:p,off:W,each:L,merge:P,extend:g,inherit:I,bindFn:k,prefixed:B});
u[Q]=fT})(window,document,"Hammer");
return window.Hammer}.call({});
G.DOCUMENT=Y;Y[IKk]=G}return Y[IKk]};/*

 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 nM4=function(Y,G){if(Y.length!==G.length)return!1;for(var u=0;u<Y.length;++u)if(Y[u]!==G[u])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var FJ4=_.E(["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"]),pHR=FJ4.next();!pHR.done;pHR=FJ4.next()){var z3T=pHR.value,mz2=document.createElement("link");mz2.rel="stylesheet";mz2.href=z3T;document.head.appendChild(mz2)};var DOj,dOj,SR1,Rby,hbj,wpt,o5I,iVa;DOj={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};dOj={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:"*"};SR1={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};Rby=/[a-z0-9*]/;hbj=/U\+/;wpt=/^arrow/;o5I=/^space(bar)?/;iVa=/^escape$/;_.Gp={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(Y,G){this._imperativeKeyBindings[Y]=G;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(Y,G){G=jOY(G);for(var u=0;u<G.length;++u)if(bVj(G[u],Y))return!0;return!1},
_collectKeyBindings:function(){var Y=this.behaviors.map(function(G){return G.keyBindings});
Y.indexOf(this.keyBindings)===-1&&Y.push(this.keyBindings);return Y},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(u){for(var O in u)this._addKeyBinding(O,u[O])},this);
for(var Y in this._imperativeKeyBindings)this._addKeyBinding(Y,this._imperativeKeyBindings[Y]);for(var G in this._keyBindings)this._keyBindings[G].sort(function(u,O){u=u[0].hasModifiers;return u===O[0].hasModifiers?0:u?-1:1})},
_addKeyBinding:function(Y,G){jOY(Y).forEach(function(u){this._keyBindings[u.event]=this._keyBindings[u.event]||[];this._keyBindings[u.event].push([u,G])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(Y){var G=this._onKeyBindingEvent.bind(this,this._keyBindings[Y]);this._boundKeyHandlers.push([this.keyEventTarget,Y,G]);this.keyEventTarget.addEventListener(Y,G)},this)},
_unlistenKeyEventListeners:function(){for(var Y,G,u;this._boundKeyHandlers.length;)Y=this._boundKeyHandlers.pop(),G=Y[0],u=Y[1],Y=Y[2],G.removeEventListener(u,Y)},
_onKeyBindingEvent:function(Y,G){this.stopKeyboardEventPropagation&&G.stopPropagation();if(!G.defaultPrevented)for(var u=0;u<Y.length;u++){var O=Y[u][0],Q=Y[u][1];if(bVj(O,G)&&(this._triggerKeyHandler(O,Q,G),G.defaultPrevented))break}},
_triggerKeyHandler:function(Y,G,u){var O=Object.create(Y);O.keyboardEvent=u;Y=new CustomEvent(Y.event,{detail:O,cancelable:!0});this[G].call(this,Y);Y.defaultPrevented&&u.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
*/
_.Xf({is:"iron-a11y-keys",_template:null,behaviors:[_.Gp],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(Y){this.keyEventTarget=Y},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(Y){this.fire("keys-pressed",Y.detail,{})}});_.uh={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(Y){this._setFocused(Y.type==="focus")},
_disabledChanged:function(Y){this.setAttribute("aria-disabled",Y?"true":"false");this.style.pointerEvents=Y?"none":"";Y?(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 OE={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(Y){this._detectKeyboardFocus(Y);Y||this._setPressed(!1)},
_detectKeyboardFocus:function(Y){this._setReceivedFocusFromKeyboard(!this.pointerDown&&Y)},
_userActivate:function(Y){this.active!==Y&&(this.active=Y,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(Y){Y=Y.detail.keyboardEvent;var G=_.ax(Y).localTarget;this.isLightDescendant(G)||(Y.preventDefault(),Y.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(Y){Y=_.ax(Y.detail.keyboardEvent).localTarget;this.isLightDescendant(Y)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(Y,G){G&&G!=Y&&this.hasAttribute(G)&&this.removeAttribute(G)},
_activeChanged:function(Y){this.toggles?this.setAttribute(this.ariaActiveAttribute,Y?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},WJE=[_.Gp,
OE];_.Q5={IronButtonState:WJE,IronButtonStateImpl:OE};_.MR={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.HT=function(Y){_.HT[" "](Y);this.type=Y&&Y.type||"default";this.key=Y&&Y.key;Y&&"value"in Y&&(this.value=Y.value)};
_.HT.prototype.byKey=function(Y){this.key=Y;return this.value};
_.Uk.Object.defineProperties(_.HT.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var Y=this.type,G=this.key;if(Y&&G)return EE[Y]&&EE[Y][G]},
set:function(Y){var G=this.type,u=this.key;G&&u&&(G=EE[G]=EE[G]||{},Y==null?delete G[u]:G[u]=Y)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var Y=EE[this.type];return Y?Object.keys(Y).map(function(G){return EE[this.type][G]},this):[]}}});
_.HT[" "]=function(){};
var EE={};_.Xf({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(Y,G,u){Y=new _.HT({type:Y,key:G});u!==void 0&&u!==Y.value?Y.value=u:this.value!==Y.value&&(this.value=Y.value);return Y},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(Y){Y&&(this.value=this)},
byKey:function(Y){return(new _.HT({type:this.type,key:Y})).value}});var rV4;rV4=null;_.tK={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){rV4=new _.HT({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return rV4&&rV4.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(Y){this.invalid=Y===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(Y);return!this.invalid},
_getValidity:function(Y){return this.hasValidator()?this._validator.validate(Y):!0}};var xzR={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"}},fKM=[_.MR,
_.tK,xzR];_.Xf({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 _.HT({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(Y){return this.name+":"+Y},this)},
applyIcon:function(Y,G){this.removeIcon(Y);if(G=this._cloneIcon(G,this.rtlMirroring&&this._targetIsRTL(Y))){var u=_.ax(Y.root||Y);u.insertBefore(G,u.childNodes[0]);return Y._svgIcon=G}return null},
removeIcon:function(Y){Y._svgIcon&&(_.ax(Y.root||Y).removeChild(Y._svgIcon),Y._svgIcon=null)},
_targetIsRTL:function(Y){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(Y&&Y.nodeType!==Node.ELEMENT_NODE&&(Y=Y.host),this.__targetIsRTL=Y&&window.getComputedStyle(Y).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 Y=Object.create(null);_.ax(this).querySelectorAll("[id]").forEach(function(G){Y[G.id]=G});
return Y},
_cloneIcon:function(Y,G){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[Y],this.size,G)},
_prepareSvgClone:function(Y,G,u){if(Y){Y=Y.cloneNode(!0);var O=document.createElementNS("http://www.w3.org/2000/svg","svg");G=Y.getAttribute("viewBox")||"0 0 "+G+" "+G;var Q="pointer-events: none; display: block; width: 100%; height: 100%;";u&&Y.hasAttribute("mirror-in-rtl")&&(Q+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");O.setAttribute("viewBox",G);O.setAttribute("preserveAspectRatio","xMidYMid meet");O.setAttribute("focusable","false");O.style&&(O.style.cssText=
Q);O.appendChild(Y).removeAttribute("id");return O}return null}});var C$4=function(Y){this.multi=!1;this.selection=[];this.selectCallback=Y};
_.H=C$4.prototype;_.H.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.H.clear=function(Y){this.selection.slice().forEach(function(G){(!Y||Y.indexOf(G)<0)&&this.setItemSelected(G,!1)},this)};
_.H.isSelected=function(Y){return this.selection.indexOf(Y)>=0};
_.H.setItemSelected=function(Y,G){if(Y!=null&&G!==this.isSelected(Y)){if(G)this.selection.push(Y);else{var u=this.selection.indexOf(Y);u>=0&&this.selection.splice(u,1)}this.selectCallback&&this.selectCallback(Y,G)}};
_.H.select=function(Y){this.multi?this.toggle(Y):this.get()!==Y&&(this.setItemSelected(this.get(),!1),this.setItemSelected(Y,!0))};
_.H.toggle=function(Y){this.setItemSelected(Y,!this.isSelected(Y))};_.R4={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 C$4(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.ax(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(Y){return this.items?this.items.indexOf(Y):-1},
select:function(Y){this.selected=Y},
selectPrevious:function(){var Y=this.items.length,G=Y-1;this.selected!==void 0&&(G=(Number(this._valueToIndex(this.selected))-1+Y)%Y);this.selected=this._indexToValue(G)},
selectNext:function(){var Y=0;this.selected!==void 0&&(Y=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(Y)},
selectIndex:function(Y){this.select(this._indexToValue(Y))},
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(Y){this.listen(this,Y,"_activateHandler")},
_removeListener:function(Y){this.unlisten(this,Y,"_activateHandler")},
_activateEventChanged:function(Y,G){this._removeListener(G);this._addListener(Y)},
_updateItems:function(){var Y=_.ax(this).queryDistributedElements(this.selectable||"*");Y=Array.prototype.filter.call(Y,this._bindFilterItem);this._setItems(Y)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var Y=this._valueToItem(this.selected);Y?this._selection.select(Y):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(Y){return!this._excludedLocalNames[Y.localName]},
_valueToItem:function(Y){return Y==null?null:this.items[this._valueToIndex(Y)]},
_valueToIndex:function(Y){if(this.attrForSelected)for(var G=0,u;u=this.items[G];G++){if(this._valueForItem(u)==Y)return G}else return Number(Y)},
_indexToValue:function(Y){if(this.attrForSelected){if(Y=this.items[Y])return this._valueForItem(Y)}else return Y},
_valueForItem:function(Y){if(!Y)return null;if(!this.attrForSelected)return Y=this.indexOf(Y),Y===-1?null:Y;var G=Y[Kj(this.attrForSelected)];return G!=void 0?G:Y.getAttribute(this.attrForSelected)},
_applySelection:function(Y,G){this.selectedClass&&this.toggleClass(this.selectedClass,G,Y);this.selectedAttribute&&this.toggleAttribute.call(Y,this.selectedAttribute,G);this._selectionChange();this.fire("iron-"+(G?"select":"deselect"),{item:Y})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(Y){return _.ax(Y).observeNodes(function(G){this._updateItems();this._updateSelected();this.fire("iron-items-changed",G,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(Y){Y=Y.target;for(var G=this.items;Y&&Y!=this;){var u=G.indexOf(Y);if(u>=0){G=this._indexToValue(u);this._itemActivate(G,Y);break}Y=Y.parentNode}},
_itemActivate:function(Y,G){this.fire("iron-activate",{selected:Y,item:G},{cancelable:!0}).defaultPrevented||this.select(Y)}};var yVT={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(Y){this.multi?this._toggleSelected(Y):this.selected=Y},
multiChanged:function(Y){this._selection.multi=Y;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(Y){return this._indexToValue(this.indexOf(Y))},this).filter(function(Y){return Y!=null},this)):_.R4._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(Y){Y=Y||[];Y=(this._valuesToItems(Y)||[]).filter(function(u){return u!==null&&u!==void 0});
this._selection.clear(Y);for(var G=0;G<Y.length;G++)this._selection.setItemSelected(Y[G],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var Y=this._selection.get();this.multi?(this._setSelectedItems(Y),this._setSelectedItem(Y.length?Y[0]:null)):Y!==null&&Y!==void 0?(this._setSelectedItems([Y]),this._setSelectedItem(Y)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(Y){var G=this.selectedValues.indexOf(Y);G<0?this.push("selectedValues",Y):this.splice("selectedValues",G,1)},
_valuesToItems:function(Y){return Y==null?null:Y.map(function(G){return this._valueToItem(G)},this)}},e3R=[_.R4,
yVT];var AV2;
_.KM={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(Y){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var G=this._valueToItem(Y);G&&G.hasAttribute("disabled")||(this._setFocusedItem(G),yVT.select.apply(this,arguments))},
_resetTabindices:function(){var Y=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(G){G.setAttribute("tabindex",G===Y?"0":"-1");G.setAttribute("aria-selected",this._selection.isSelected(G))},this)},
_updateMultiselectable:function(Y){Y?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(Y){if(this._MODIFIER_KEYS.indexOf(Y.key)===-1){this.cancelDebouncer("_clearSearchText");var G=this._searchText||"";G+=(Y.key&&Y.key.length==1?Y.key:String.fromCharCode(Y.keyCode)).toLocaleLowerCase();Y=G.length;for(var u=0,O;O=this.items[u];u++)if(!O.hasAttribute("disabled")){var Q=this.attrForItemTitle||"textContent";Q=(O[Q]||O.getAttribute(Q)||"").trim();if(!(Q.length<Y)&&Q.slice(0,Y).toLocaleLowerCase()==G){this._setFocusedItem(O);break}}this._searchText=G;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var Y=this.items.length,G=Number(this.indexOf(this.focusedItem)),u=1;u<Y+1;u++){var O=this.items[(G-u+Y)%Y];if(!O.hasAttribute("disabled")){var Q=_.ax(O).getOwnerRoot()||document;this._setFocusedItem(O);if(_.ax(Q).activeElement==O)break}}},
_focusNext:function(){for(var Y=this.items.length,G=Number(this.indexOf(this.focusedItem)),u=1;u<Y+1;u++){var O=this.items[(G+u)%Y];if(!O.hasAttribute("disabled")){var Q=_.ax(O).getOwnerRoot()||document;this._setFocusedItem(O);if(_.ax(Q).activeElement==O)break}}},
_applySelection:function(Y,G){G?Y.setAttribute("aria-selected","true"):Y.setAttribute("aria-selected","false");_.R4._applySelection.apply(this,arguments)},
_focusedItemChanged:function(Y,G){G&&G.setAttribute("tabindex","-1");!Y||Y.hasAttribute("disabled")||this.disabled||(Y.setAttribute("tabindex","0"),Y.focus())},
_onIronItemsChanged:function(Y){Y.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var Y=this.getAttribute("tabindex");_.KM._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",Y);_.KM._shiftTabPressed=!1},1)},
_onFocus:function(Y){!_.KM._shiftTabPressed&&(Y=_.ax(Y).rootTarget,Y===this||typeof Y.tabIndex==="undefined"||this.isLightDescendant(Y))&&(this._defaultFocusAsync=this.async(function(){var G=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);G?this._setFocusedItem(G):this.items[0]&&this._focusNext()}))},
_onUpKey:function(Y){this._focusPrevious();Y.detail.keyboardEvent.preventDefault()},
_onDownKey:function(Y){this._focusNext();Y.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var Y=this.focusedItem;Y&&Y.blur()},
_onKeydown:function(Y){this.keyboardEventMatchesKeys(Y,"up down esc")||this._focusWithKeyboardEvent(Y);Y.stopPropagation()},
_activateHandler:function(Y){_.R4._activateHandler.call(this,Y);Y.stopPropagation()},
_disabledChanged:function(Y){Y?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};AV2=[e3R,_.Gp,_.KM];_.oMe={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(Y){this.focusedItem&&(this.focusedItem.click(),Y.detail.keyboardEvent.preventDefault())},
_onDownKey:function(Y){this.focusedItem&&(this.focusedItem.click(),Y.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(Y){return Y.ctrlKey||Y.shiftKey||Y.altKey||Y.metaKey},
_onLeftKey:function(Y){this._isSpecialKey(Y.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),Y.detail.keyboardEvent.preventDefault())},
_onRightKey:function(Y){this._isSpecialKey(Y.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),Y.detail.keyboardEvent.preventDefault())},
_onKeydown:function(Y){this.keyboardEventMatchesKeys(Y,"up down left right esc")||this._focusWithKeyboardEvent(Y)}};
_.iyM=[AV2,_.oMe];var R32;R32=new Set;_.aZ={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):(R32.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(Y){this.resizerShouldNotify(Y)&&this._notifyDescendant(Y)},this),this._fireResize())},
assignParentResizable:function(Y){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=Y)&&Y._interestedResizables.indexOf(this)===-1&&(Y._interestedResizables.push(this),Y._subscribeIronResize(this))},
stopResizeNotificationsFor:function(Y){var G=this._interestedResizables.indexOf(Y);G>-1&&(this._interestedResizables.splice(G,1),this._unsubscribeIronResize(Y))},
_subscribeIronResize:function(Y){Y.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(Y){Y.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(Y){this._notifyingDescendant?Y.stopPropagation():hG||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(Y){var G=_.ax(Y).rootTarget;G!==this&&(G.assignParentResizable(this),this._notifyDescendant(G),Y.stopPropagation())},
_parentResizableChanged:function(Y){Y&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(Y){this.isAttached&&(this._notifyingDescendant=!0,Y.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var Y=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function u(){document.removeEventListener("readystatechange",u);Y()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(G){G!==this&&G._findParent()},this):(R32.forEach(function(G){G!==this&&G._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?R32.delete(this):R32.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
*/
_.wHX={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(Y,G){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);G&&(Y==="document"?this.scrollTarget=this._doc:typeof Y==="string"?this.scrollTarget=(G=this.domHost)&&G.$?G.$[Y]:_.ax(this.ownerDocument).querySelector("#"+Y):this._isValidScrollTarget()&&(this._oldScrollTarget=Y,this._toggleScrollListener(this._shouldHaveListener,Y)))},
_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(Y){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,Y):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
Y)},set _scrollLeft(Y){this.scrollTarget===this._doc?window.scrollTo(Y,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=Y)},scroll:function(Y,G){if(typeof Y==="object"){var u=Y.left;G=Y.top}else u=Y;u=u||0;G=G||0;this.scrollTarget===this._doc?window.scrollTo(u,G):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=u,this.scrollTarget.scrollTop=G)},
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(Y,G){G=G===this._doc?window:G;Y?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),G.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(G.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(Y){this._shouldHaveListener=Y;this._toggleScrollListener(Y,this.scrollTarget)}};_.Xf({is:"iron-selector",_template:null,behaviors:[e3R]});var Tp={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(Y){if(Y.timing)for(var G in Y.timing)this.animationTiming[G]=Y.timing[G];return this.animationTiming},
setPrefixedProperty:function(Y,G,u){for(var O={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[G],Q,M=0;Q=O[M];M++)Y.style[Q]=u;Y.style[G]=u},
complete:function(){}};_.Xf({is:"fade-in-animation",_template:null,behaviors:[Tp],configure:function(Y){return this._effect=new KeyframeEffect(Y.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(Y))}});_.Xf({is:"fade-out-animation",_template:null,behaviors:[Tp],configure:function(Y){return this._effect=new KeyframeEffect(Y.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(Y))}});var ZyE=[{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(Y,G){for(var u in G)Y[u]=G[u]},
_cloneConfig:function(Y){var G={isClone:!0};this._copyProperties(G,Y);return G},
_getAnimationConfigRecursive:function(Y,G,u){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 O=Y?this.animationConfig[Y]:this.animationConfig;Array.isArray(O)||(O=[O]);if(O)for(var Q,M=0;Q=O[M];M++)if(Q.animatable)Q.animatable._getAnimationConfigRecursive(Q.type||Y,G,u);else if(Q.id){var t=G[Q.id];
t?(t.isClone||(G[Q.id]=this._cloneConfig(t),t=G[Q.id]),this._copyProperties(t,Q)):G[Q.id]=Q}else u.push(Q)}},
getAnimationConfig:function(Y){var G={},u=[];this._getAnimationConfigRecursive(Y,G,u);for(var O in G)u.push(G[O]);return u}},
{_configureAnimations:function(Y){var G=[],u=[];if(Y.length>0)for(var O,Q=0;O=Y[Q];Q++){var M=document.createElement(O.name);if(M.isNeonAnimation){var t=null;M.configure||(M.configure=function(){return null});
t=M.configure(O);u.push({result:t,config:O})}else console.warn(this.is+":",O.name,"not found!")}for(Y=0;Y<u.length;Y++){t=u[Y].result;O=u[Y].config;try{typeof t.cancel!="function"&&(t=document.timeline.play(t))}catch(K){t=null,console.warn("Couldnt play","(",O.name,").",K)}t&&G.push({neonAnimation:M,config:O,animation:t})}return G},
_shouldComplete:function(Y){for(var G=!0,u=0;u<Y.length;u++)if(Y[u].animation.playState!="finished"){G=!1;break}return G},
_complete:function(Y){for(var G=0;G<Y.length;G++)Y[G].neonAnimation.complete(Y[G].config);for(G=0;G<Y.length;G++)Y[G].animation.cancel()},
playAnimation:function(Y,G){var u=this.getAnimationConfig(Y);if(u){this._active=this._active||{};this._active[Y]&&(this._complete(this._active[Y]),delete this._active[Y]);var O=this._configureAnimations(u);if(O.length==0)this.fire("neon-animation-finish",G,{bubbles:!1});else for(this._active[Y]=O,u=0;u<O.length;u++)O[u].animation.onfinish=function(){this._shouldComplete(O)&&(this._complete(O),delete this._active[Y],this.fire("neon-animation-finish",G,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var Y in this._active){var G=this._active[Y],u;for(u in G)G[u].animation&&G[u].animation.cancel&&G[u].animation.cancel()}this._active={}}}];var xT=function(Y,G){Y=Error.call(this,Y);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.arg=G;this.name=this.constructor.name;this.constructor=xT;this.__proto__=xT.prototype};
_.m(xT,Error);var DzV=w1(function(Y){var G=function(){return Y.apply(this,arguments)||this};
_.m(G,Y);G.prototype._marshalArgs=function(u,O,Q){O=Y.prototype._marshalArgs.call(this,u,O,Q);if(this._legacyUndefinedCheck&&O.length>1)for(Q=0;Q<O.length;Q++)if(O[Q]===void 0||u[Q].wildcard&&O[Q].base===void 0)throw u=u[Q].name,new xT("Argument '"+u+"' is undefined.",u);return O};
G.prototype._addPropertyEffect=function(u,O,Q){return Y.prototype._addPropertyEffect.call(this,u,O,VIj(Q,Q&&Q.info&&Q.info.methodName))};
G._addTemplatePropertyEffect=function(u,O,Q){return Y._addTemplatePropertyEffect.call(this,u,O,VIj(Q))};
return G}),h3I=_.Xf.Class;
_.Xf.Class=function(Y,G){return h3I(Y,function(u){return G?G(DzV(u)):DzV(u)})};
var dzU=w1(function(Y){var G=DzV(Y);Y=function(){return G.apply(this,arguments)||this};
_.m(Y,G);_.Uk.Object.defineProperties(Y.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return Y}),by1=bo.mixin;
bo.mixin=by1?function(Y){return dzU(by1(Y))}:dzU;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.LM=_.Q5.IronButtonState;var bot=DH;_.lut="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var cEA=function(){return Math.random().toString(36).substring(7).split("").join(".")},sOA="@@redux/INIT"+cEA(),JEg="@@redux/REPLACE"+cEA();var Y94=typeof Symbol==="function"&&Symbol.observable||"@@observable";var SAV=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var NVV="top right bottom left width height size weight".split(" "),jf4=typeof MutationObserver!=="undefined",V6R=SAV&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,lKR=function(){this.mutationEventsAdded_=this.JSC$12083_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=GM1(this.refresh.bind(this))},BVR=function(Y,
G){var u=Y.observers_;
G=u.indexOf(G);~G&&u.splice(G,1);!u.length&&Y.JSC$12083_connected_&&SAV&&Y.JSC$12083_connected_&&(document.removeEventListener("transitionend",Y.onTransitionEnd_),window.removeEventListener("resize",Y.refresh),Y.mutationsObserver_&&(Y.mutationsObserver_.disconnect(),V6R&&(HTMLElement.prototype.attachShadow=V6R)),Y.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",Y.refresh),Y.mutationsObserver_=null,Y.mutationEventsAdded_=!1,Y.JSC$12083_connected_=!1)};
lKR.prototype.refresh=function(){$zk(this)&&this.refresh()};
var $zk=function(Y){Y=Y.observers_.filter(function(G){return qAT(G),G.activeObservations_.length>0});
Y.forEach(function(G){return sfk(G)});
return Y.length>0},cVR=function(Y){if(SAV&&!Y.JSC$12083_connected_){document.addEventListener("transitionend",Y.onTransitionEnd_);
window.addEventListener("resize",Y.refresh);if(jf4){Y.mutationsObserver_=new MutationObserver(Y.refresh);var G={attributes:!0,childList:!0,characterData:!0,subtree:!0};Y.mutationsObserver_.observe(document,G);V6R&&(function Q(O){var M=O.shadowRoot;M&&(Y.mutationsObserver_.observe(M,G),Q(M));for(O=O.firstElementChild;O;)Q(O),O=O.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var O=V6R.apply(this,_.vs.apply(0,arguments));
Y.mutationsObserver_.observe(O,G);return O})}else document.addEventListener("DOMSubtreeModified",Y.refresh),Y.mutationEventsAdded_=!0;
Y.JSC$12083_connected_=!0}};
lKR.prototype.onTransitionEnd_=function(Y){var G=Y.propertyName===void 0?"":Y.propertyName;NVV.some(function(u){return!!~G.indexOf(u)})&&this.refresh()};
var Uz_=null;var vME=function(Y,G){for(var u=_.E(Object.keys(G)),O=u.next();!O.done;O=u.next())O=O.value,Object.defineProperty(Y,O,{value:G[O],enumerable:!1,writable:!1,configurable:!0})};var gx=function(Y){var G;return(Y==null?void 0:(G=Y.ownerDocument)==null?void 0:G.defaultView)||globalThis};var JV4={x:0,y:0,width:0,height:0},YD1=typeof SVGGraphicsElement!=="undefined"?function(Y){return Y instanceof gx(Y).SVGGraphicsElement}:function(Y){return Y instanceof gx(Y).SVGElement&&typeof Y.getBBox==="function"};var GyT=function(Y){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=Y};
GyT.prototype.isActive=function(){var Y=this.target;if(SAV)if(YD1(Y)){var G=Y.getBBox();G={x:0,y:0,width:G.width,height:G.height}}else{var u=Y.clientWidth,O=Y.clientHeight;if(u||O){var Q=gx(Y).getComputedStyle(Y);G=CA(Q["padding-top"]);var M=CA(Q["padding-left"]),t=M+CA(Q["padding-right"]),K=G+CA(Q["padding-bottom"]),L=CA(Q.width),g=CA(Q.height);Q.boxSizing==="border-box"&&(Math.round(L+t)!==u&&(L-=udu(Q,"left","right")+t),Math.round(g+K)!==O&&(g-=udu(Q,"top","bottom")+K));Y!==gx(Y).document.documentElement&&
(Y=Math.round(L+t)-u,O=Math.round(g+K)-O,Math.abs(Y)!==1&&(L-=Y),Math.abs(O)!==1&&(g-=O));G={x:M,y:G,width:L,height:g}}else G=JV4}else G=JV4;this.contentRect_=G;return G.width!==this.broadcastWidth||G.height!==this.broadcastHeight};var uUM=function(Y,G){var u=G.x;var O=G.y;var Q=G.width;G=G.height;var M=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);vME(M,{x:u,y:O,width:Q,height:G,top:O,right:u+Q,bottom:G+O,left:u});vME(this,{target:Y,contentRect:M})};var Oc2=function(Y,G){var u=Uz_;this.activeObservations_=[];this.observations_=new Map;if(typeof Y!=="function")throw new TypeError("We");this.callback_=Y;this.controller_=u;this.callbackCtx_=G};
Oc2.prototype.observe=function(Y){if(Y===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(Y instanceof gx(Y).Element))throw new TypeError("Ye");var G=this.observations_;G.has(Y)||(G.set(Y,new GyT(Y)),Y=this.controller_,~Y.observers_.indexOf(this)||Y.observers_.push(this),Y.JSC$12083_connected_||cVR(Y),this.controller_.refresh())}};
Oc2.prototype.unobserve=function(Y){if(Y===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(Y instanceof gx(Y).Element))throw new TypeError("Ye");var G=this.observations_;G.has(Y)&&(G.delete(Y),G.size||BVR(this.controller_,this))}};
Oc2.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();BVR(this.controller_,this)};
var qAT=function(Y){Y.activeObservations_.splice(0);Y.observations_.forEach(function(G){G.isActive()&&Y.activeObservations_.push(G)})},sfk=function(Y){if(Y.activeObservations_.length>0){var G=Y.callbackCtx_,u=Y.activeObservations_.map(function(O){var Q=O.target,M=O.contentRect_;
O.broadcastWidth=M.width;O.broadcastHeight=M.height;return new uUM(Q,M)});
Y.callback_.call(G,u,G);Y.activeObservations_.splice(0)}};var PT=function(Y){if(!(this instanceof PT))throw new TypeError("Ze");if(!arguments.length)throw new TypeError("Xe");Uz_||(Uz_=new lKR);this.observer_=new Oc2(Y,this)};
PT.prototype.observe=function(Y){this.observer_.observe(Y)};
PT.prototype.unobserve=function(Y){this.observer_.unobserve(Y)};
PT.prototype.disconnect=function(){this.observer_.disconnect()};var BqA=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:PT;var st={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchMove_Departed:8,TouchEnd:9,TouchCancel:10,0:"MouseUp",1:"MouseDown",2:"Click",3:"ContextMenu",4:"DblClick",5:"Focus",6:"Blur",7:"TouchStart",8:"TouchMove_Departed",9:"TouchEnd",10:"TouchCancel"},vc={"2D":0,WebGL:1,WebGL2:2};vc[vc["2D"]]="2D";vc[1]="WebGL";vc[2]="WebGL2";var QP4={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},MbT={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Oa1={},EDj={},tbu={},DU=function(Y){return yv("Node",Y,"childNodes")},wa=function(Y){return yv("Node",Y,"parentNode")},ho=function(Y){return yv("Node",Y,"parentElement")},jPU=function(Y){return yv("Node",Y,
"textContent")},OL1=function(Y){return Kjj(Y,"getRootNode")()},Ao=function(Y){return Y&&"host"in Y?yv("ShadowRoot",Y,"host"):null},on=function(Y){return Y&&"shadowRoot"in Y?yv("Element",Y,"shadowRoot"):null};var Nt=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
Nt.prototype.getId=function(Y){if(!Y)return-1;var G,u;return(u=(G=this.nodeMetaMap.get(Y)||null)==null?void 0:G.id)!=null?u:-1};
Nt.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var QG1=function(Y,G){var u=Y.getId(G);Y.idNodeMap.delete(u);G.childNodes&&G.childNodes.forEach(function(O){return QG1(Y,O)})};
Nt.prototype.has=function(Y){return this.idNodeMap.has(Y)};
Nt.prototype.add=function(Y,G){this.idNodeMap.set(G.id,Y);this.nodeMetaMap.set(Y,G)};
Nt.prototype.replace=function(Y,G){var u=this.idNodeMap.get(Y)||null;u&&(u=this.nodeMetaMap.get(u))&&this.nodeMetaMap.set(G,u);this.idNodeMap.set(Y,G)};
Nt.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var nDj=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Fjj=/^(?:[a-z+]+:)?\/\//i,pvj=/^www\..*/i,zWt=/^(data:)([^,]*),(.*)/i;var rtT=1,fJT=RegExp("[^a-z0-9-_:]"),da,lJa,eWI=/^[^ \t\n\r\u000c]+/,ytt=/^[, \t\n\r\u000c]+/,RWA=new WeakMap;var Jo,qt=function(Y){return Jo?function(){var G=_.vs.apply(0,arguments);try{return Y.apply(null,_.c8(G))}catch(u){if(!Jo||Jo(u)!==!0)throw u;}}:Y};var IZ=function(Y){this.generateIdFn=Y;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
IZ.prototype.getId=function(Y,G,u,O){u=u||M5M(this,Y);Y=O||HcT(this,Y);O=u.get(G);O||(O=this.generateIdFn(),u.set(G,O),Y.set(O,G));return O};
IZ.prototype.getIds=function(Y,G){var u=this,O=M5M(this,Y),Q=HcT(this,Y);return G.map(function(M){return u.getId(Y,M,O,Q)})};
IZ.prototype.reset=function(Y){Y?(this.iframeIdToRemoteIdMap.delete(Y),this.iframeRemoteIdToIdMap.delete(Y)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var M5M=function(Y,G){var u=Y.iframeIdToRemoteIdMap.get(G);u||(u=new Map,Y.iframeIdToRemoteIdMap.set(G,u));return u},HcT=function(Y,G){var u=Y.iframeRemoteIdToIdMap.get(G);
u||(u=new Map,Y.iframeRemoteIdToIdMap.set(G,u));return u};var B1a=function(Y){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new IZ(x$u);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=Y.mutationCb;this.wrappedEmit=Y.wrappedEmit;this.stylesheetManager=Y.stylesheetManager;this.recordCrossOriginIframes=Y.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new IZ(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=Y.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$12147_handleMessage.bind(this))},Uat=function(Y,G){Y.iframes.set(G,!0);
G.contentWindow&&Y.crossOriginIframeMap.set(G.contentWindow,G)},O3A=function(Y,G){Y.loadListener=G},Yqj=function(Y,G,u){Y.mutationCb({adds:[{parentId:Y.mirror.getId(G),
nextId:null,node:u}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(Y.recordCrossOriginIframes){var O;(O=G.contentWindow)==null||O.addEventListener("message",Y.JSC$12147_handleMessage.bind(Y))}var Q;(Q=Y.loadListener)==null||Q.call(Y,G);G.contentDocument&&G.contentDocument.adoptedStyleSheets&&G.contentDocument.adoptedStyleSheets.length>0&&xaY(Y.stylesheetManager,G.contentDocument.adoptedStyleSheets,Y.mirror.getId(G.contentDocument))};
B1a.prototype.JSC$12147_handleMessage=function(Y){if(Y.data.type==="rrweb"&&Y.origin===Y.data.origin&&Y.source){var G=this.crossOriginIframeMap.get(Y.source);G&&(G=EUE(this,G,Y.data.event))&&this.wrappedEmit(G,Y.data.isCheckout)}};
var EUE=function(Y,G,u){switch(u.type){case 2:Y.crossOriginIframeMirror.reset(G);Y.crossOriginIframeStyleMirror.reset(G);t5M(Y,u.data.node,G);var O=u.data.node.id;Y.crossOriginIframeRootIdMap.set(G,O);KKT(Y,u.data.node,O);return{timestamp:u.timestamp,type:3,data:{source:0,adds:[{parentId:Y.mirror.getId(G),nextId:null,node:u.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return u;case 5:return kc(Y,u.data.payload,G,["id","parentId","previousId","nextId"]),u;case 3:switch(u.data.source){case 0:return u.data.adds.forEach(function(Q){kc(Y,
Q,G,["parentId","nextId","previousId"]);t5M(Y,Q.node,G);var M=Y.crossOriginIframeRootIdMap.get(G);M&&KKT(Y,Q.node,M)}),u.data.removes.forEach(function(Q){kc(Y,Q,G,["parentId",
"id"])}),u.data.attributes.forEach(function(Q){kc(Y,Q,G,["id"])}),u.data.texts.forEach(function(Q){kc(Y,Q,G,["id"])}),u;
case 12:case 6:case 1:return u.data.positions.forEach(function(Q){kc(Y,Q,G,["id"])}),u;
case 7:case 2:case 3:case 9:case 5:return kc(Y,u.data,G,["id"]),u;case 8:case 13:return kc(Y,u.data,G,["id"]),aBE(Y,u.data,G,["styleId"]),u;case 10:return u;case 14:return u.data.ranges.forEach(function(Q){kc(Y,Q,G,["start","end"])}),u;
case 15:return kc(Y,u.data,G,["id"]),aBE(Y,u.data,G,["styleIds"]),(O=u.data.styles)==null||O.forEach(function(Q){aBE(Y,Q,G,["styleId"])}),u}}return!1};
B1a.prototype.replace=function(Y,G,u,O){O=_.E(O);for(var Q=O.next();!Q.done;Q=O.next())if(Q=Q.value,Array.isArray(G[Q])||typeof G[Q]==="number")Array.isArray(G[Q])?G[Q]=Y.getIds(u,G[Q]):G[Q]=Y.getId(u,G[Q]);return G};
var kc=function(Y,G,u,O){Y.replace(Y.crossOriginIframeMirror,G,u,O)},aBE=function(Y,G,u,O){Y.replace(Y.crossOriginIframeStyleMirror,G,u,O)},t5M=function(Y,G,u){kc(Y,G,u,["id",
"rootId"]);"childNodes"in G&&G.childNodes.forEach(function(O){t5M(Y,O,u)})},KKT=function(Y,G,u){G.type===0||G.rootId||(G.rootId=u);
"childNodes"in G&&G.childNodes.forEach(function(O){KKT(Y,O,u)})};var gtj=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},TQl=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.H=TQl.prototype;_.H.getId=function(Y){var G;return(G=this.styleIDMap.get(Y))!=null?G:-1};
_.H.has=function(Y){return this.styleIDMap.has(Y)};
_.H.add=function(Y,G){if(this.has(Y))return this.getId(Y);G=G===void 0?this.id++:G;this.styleIDMap.set(Y,G);this.idStyleMap.set(G,Y);return G};
_.H.getStyle=function(Y){return this.idStyleMap.get(Y)||null};
_.H.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.H.generateId=function(){return this.id++};var LKR=function(){this.length=0;this.tail=this.head=null};
LKR.prototype.get=function(Y){if(Y>=this.length)throw Error("$e");for(var G=this.head,u=0;u<Y;u++){var O=void 0;G=((O=G)==null?void 0:O.next)||null}return G};
var gUR=function(Y,G){var u={value:G,previous:null,next:null};G.__ln=u;if(G.previousSibling&&"__ln"in G.previousSibling){var O=G.previousSibling.__ln.next;u.next=O;u.previous=G.previousSibling.__ln;G.previousSibling.__ln.next=u;O&&(O.previous=u)}else G.nextSibling&&"__ln"in G.nextSibling&&G.nextSibling.__ln.previous?(O=G.nextSibling.__ln.previous,u.previous=O,u.next=G.nextSibling.__ln,G.nextSibling.__ln.previous=u,O&&(O.next=u)):(Y.head&&(Y.head.previous=u),u.next=Y.head,Y.head=u);u.next===null&&
(Y.tail=u);Y.length++};
LKR.prototype.removeNode=function(Y){var G=Y.__ln;this.head&&(G.previous?(G.previous.next=G.next)?G.next.previous=G.previous:this.tail=G.previous:(this.head=G.next)?this.head.previous=null:this.tail=null,Y.__ln&&delete Y.__ln,this.length--)};
var XaE=function(Y,G){return Y+"@"+G},T1u=function(){var Y=this;
this.locked=this.JSC$12178_frozen=!1;this.texts=[];this.attributes=[];this.attributeMap=new WeakMap;this.removes=[];this.mapRemoves=[];this.movedMap={};this.addedSet=new Set;this.movedSet=new Set;this.droppedSet=new Set;this.removesSubTreeCache=new Set;this.processMutations=function(G){G.forEach(Y.JSC$12178_processMutation);Y.emit()};
this.emit=function(){if(!Y.JSC$12178_frozen&&!Y.locked){for(var G=[],u=new Set,O=new LKR,Q=function(I){for(var k=-2;k===-2;)k=(I=I&&I.nextSibling)&&Y.mirror.getId(I);return k},M=function(I){var k=wa(I);
if(k&&MmU(I)){var n=!1;if(I.nodeType===Node.TEXT_NODE){var p=k.tagName;if(p==="TEXTAREA")return;p==="STYLE"&&Y.addedSet.has(k)&&(n=!0)}k=il(k)?Y.mirror.getId(Quj(I)):Y.mirror.getId(k);p=Q(I);if(k===-1||p===-1)return gUR(O,I);if(n=S9(I,{doc:Y.doc,mirror:Y.mirror,blockClass:Y.blockClass,blockSelector:Y.blockSelector,maskTextClass:Y.maskTextClass,maskTextSelector:Y.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:Y.inlineStylesheet,maskInputOptions:Y.maskInputOptions,maskTextFn:Y.maskTextFn,
maskInputFn:Y.maskInputFn,slimDOMOptions:Y.slimDOMOptions,dataURLOptions:Y.dataURLOptions,recordCanvas:Y.recordCanvas,inlineImages:Y.inlineImages,onSerialize:function(W){W.nodeName==="IFRAME"&&Y.mirror.nodeMetaMap.get(W)&&Uat(Y.iframeManager,W);u01(W,Y.mirror)&&vtU(Y.stylesheetManager,W);I&&on(I)&&J7j(Y.shadowDomManager,on(I),Y.doc)},
onIframeLoad:function(W,C){Yqj(Y.iframeManager,W,C);W.contentWindow&&W.contentDocument&&Gl1(Y.shadowDomManager,W.contentWindow.Element,W.contentDocument)},
onStylesheetLoad:function(W,C){uaT(Y.stylesheetManager,W,C)},
cssCaptured:n}))G.push({parentId:k,nextId:p,node:n}),u.add(n.id)}};Y.mapRemoves.length;)QG1(Y.mirror,Y.mapRemoves.shift());
for(var t=_.E(Y.movedSet),K=t.next();!K.done;K=t.next())K=K.value,tmA(Y.removesSubTreeCache,K)&&!Y.movedSet.has(wa(K))||M(K);t=_.E(Y.addedSet);for(K=t.next();!K.done;K=t.next())K=K.value,aIu(Y.droppedSet,K)||tmA(Y.removesSubTreeCache,K)?aIu(Y.movedSet,K)?M(K):Y.droppedSet.add(K):M(K);for(K=null;O.length;){t=null;if(K){var L=Y.mirror.getId(wa(K.value)),g=Q(K.value);L!==-1&&g!==-1&&(t=K)}if(!t)for(K=O.tail;K;){var P=K;K=K.previous;if(P&&(L=Y.mirror.getId(wa(P.value)),Q(P.value)!==-1))if(L!==-1){t=P;
break}else if((L=wa(P.value))&&L.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(L=Ao(L),Y.mirror.getId(L)!==-1)){t=P;break}}if(!t){for(;O.head;)O.removeNode(O.head.value);break}K=t.previous;O.removeNode(t.value);M(t.value)}M={texts:Y.texts.map(function(I){var k=I.node,n=wa(k);n&&n.tagName==="TEXTAREA"&&Y.genTextAreaValueMutation(n);return{id:Y.mirror.getId(k),value:I.value}}).filter(function(I){return!u.has(I.id)}).filter(function(I){return Y.mirror.has(I.id)}),
attributes:Y.attributes.map(function(I){var k=I.attributes;if(typeof k.style==="string"){var n=JSON.stringify(I.styleDiff),p=JSON.stringify(I._unchangedStyles);n.length<k.style.length&&(n+p).split("var(").length===k.style.split("var(").length&&(k.style=I.styleDiff)}return{id:Y.mirror.getId(I.node),attributes:k}}).filter(function(I){return!u.has(I.id)}).filter(function(I){return Y.mirror.has(I.id)}),
removes:Y.removes,adds:G};if(M.texts.length||M.attributes.length||M.removes.length||M.adds.length)Y.texts=[],Y.attributes=[],Y.attributeMap=new WeakMap,Y.removes=[],Y.addedSet=new Set,Y.movedSet=new Set,Y.droppedSet=new Set,Y.removesSubTreeCache=new Set,Y.movedMap={},Y.mutationCb(M)}};
this.genTextAreaValueMutation=function(G){var u=Y.attributeMap.get(G);u||(u={node:G,attributes:{},styleDiff:{},_unchangedStyles:{}},Y.attributes.push(u),Y.attributeMap.set(G,u));var O=Array.from(DU(G),function(Q){return jPU(Q)||""}).join("");
u.attributes.value=XvA({element:G,maskInputOptions:Y.maskInputOptions,tagName:G.tagName,type:IJT(G),value:O,maskInputFn:Y.maskInputFn})};
this.JSC$12178_processMutation=function(G){if(!Jtj(G.target,Y.mirror,Y.slimDOMOptions))switch(G.type){case "characterData":var u=jPU(G.target);ll(G.target,Y.blockClass,Y.blockSelector,!1)||u===G.oldValue||Y.texts.push({value:d$4(G.target,Y.maskTextClass,Y.maskTextSelector,!0)&&u?Y.maskTextFn?Y.maskTextFn(u,vDt(G.target)):u.replace(/[\S]/g,"*"):u,node:G.target});break;case "attributes":u=G.target;var O=G.attributeName,Q=G.target.getAttribute(O);if(O==="value"){var M=IJT(u);Q=XvA({element:u,maskInputOptions:Y.maskInputOptions,
tagName:u.tagName,type:M,value:Q,maskInputFn:Y.maskInputFn})}if(ll(G.target,Y.blockClass,Y.blockSelector,!1)||Q===G.oldValue)break;M=Y.attributeMap.get(G.target);if(u.tagName==="IFRAME"&&O==="src"&&!Y.keepIframeSrcFn(Q))if(u.contentDocument)break;else O="rr_src";M||(M={node:G.target,attributes:{},styleDiff:{},_unchangedStyles:{}},Y.attributes.push(M),Y.attributeMap.set(G.target,M));O==="type"&&u.tagName==="INPUT"&&(G.oldValue||"").toLowerCase()==="password"&&u.setAttribute("data-rr-is-password","true");
if(!ZaA(u.tagName,O))if(M.attributes[O]=wvt(Y.doc,u.tagName.toLowerCase(),O.toLowerCase(),Q),O==="style"){if(!Y.unattachedDoc)try{Y.unattachedDoc=document.implementation.createHTMLDocument()}catch(g){Y.unattachedDoc=Y.doc}O=Y.unattachedDoc.createElement("span");G.oldValue&&O.setAttribute("style",G.oldValue);Q=_.E(Array.from(u.style));for(var t=Q.next();!t.done;t=Q.next()){t=t.value;var K=u.style.getPropertyValue(t),L=u.style.getPropertyPriority(t);K!==O.style.getPropertyValue(t)||L!==O.style.getPropertyPriority(t)?
M.styleDiff[t]=L===""?K:[K,L]:M._unchangedStyles[t]=[K,L]}O=_.E(Array.from(O.style));for(Q=O.next();!Q.done;Q=O.next())Q=Q.value,u.style.getPropertyValue(Q)===""&&(M.styleDiff[Q]=!1)}else O==="open"&&u.tagName==="DIALOG"&&(u.matches("dialog:modal")?M.attributes.rr_open_mode="modal":M.attributes.rr_open_mode="non-modal");break;case "childList":ll(G.target,Y.blockClass,Y.blockSelector,!0)||(G.target.tagName==="TEXTAREA"?Y.genTextAreaValueMutation(G.target):(G.addedNodes.forEach(function(g){return Y.genAdds(g,
G.target)}),G.removedNodes.forEach(function(g){var P=Y.mirror.getId(g),I=il(G.target)?Y.mirror.getId(Ao(G.target)):Y.mirror.getId(G.target);
ll(G.target,Y.blockClass,Y.blockSelector,!1)||Jtj(g,Y.mirror,Y.slimDOMOptions)||Y.mirror.getId(g)===-1||(Y.addedSet.has(g)?(HLI(Y.addedSet,g),Y.droppedSet.add(g)):Y.addedSet.has(G.target)&&P===-1||Yzj(G.target,Y.mirror)||(Y.movedSet.has(g)&&Y.movedMap[P+"@"+I]?HLI(Y.movedSet,g):(Y.removes.push({parentId:I,id:P,isShadow:il(G.target)&&Rn(G.target)?!0:void 0}),Etj(g,Y.removesSubTreeCache))),Y.mapRemoves.push(g))})))}};
this.genAdds=function(G,u){if(!POT(Y.processedNodeManager,G,Y)&&!Y.addedSet.has(G)&&!Y.movedSet.has(G)){if(Y.mirror.nodeMetaMap.has(G)){if(Jtj(G,Y.mirror,Y.slimDOMOptions))return;Y.movedSet.add(G);var O=null;u&&Y.mirror.nodeMetaMap.has(u)&&(O=Y.mirror.getId(u));O&&O!==-1&&(Y.movedMap[XaE(Y.mirror.getId(G),O)]=!0)}else Y.addedSet.add(G),Y.droppedSet.delete(G);ll(G,Y.blockClass,Y.blockSelector,!1)||(DU(G).forEach(function(Q){return Y.genAdds(Q)}),G&&on(G)&&DU(on(G)).forEach(function(Q){Y.processedNodeManager.add(Q,
Y);
Y.genAdds(Q,G)}))}}};
_.H=T1u.prototype;_.H.init=function(Y){var G=this;"mutationCb blockClass blockSelector maskTextClass maskTextSelector inlineStylesheet maskInputOptions maskTextFn maskInputFn keepIframeSrcFn recordCanvas inlineImages slimDOMOptions dataURLOptions doc mirror iframeManager stylesheetManager shadowDomManager canvasManager processedNodeManager".split(" ").forEach(function(u){G[u]=Y[u]})};
_.H.freeze=function(){this.JSC$12178_frozen=!0;this.canvasManager.freeze()};
_.H.unfreeze=function(){this.JSC$12178_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.H.isFrozen=function(){return this.JSC$12178_frozen};
_.H.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.H.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.H.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var $T=[],Ut=window.Proxy,nta=["INPUT","TEXTAREA","SELECT"],Fly=new WeakMap;var IBM=new Map,htY=function(Y,G,u){if(Y&&(DaA(Y,G)||typeof Y==="object")){G=Y.constructor.name;var O=IBM.get(u);O||(O=new Map,IBM.set(u,O));O.has(G)||O.set(G,[]);u=O.get(G);G=u.indexOf(Y);G===-1&&(G=u.length,u.push(Y));return G}},da1=function(Y,G,u){return Y.map(function(O){return ZLA(O,G,u)})},DaA=function(Y,G){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(u){return typeof G[u]===
"function"}).find(function(u){return Y instanceof G[u]})};var kyR=DK(["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = `${width}-${height}`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for `converToBlobs`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// `as any` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"],
["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = \\`\\${width}-\\${height}\\`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for \\`converToBlobs\\`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// \\`as any\\` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"]),
Kha=_.Lb(kyR.join(""));var suU=function(Y){var G=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$12220_frozen=!1;this.JSC$12220_processMutation=function(L,g){if(G.rafStamps.invokeId&&G.rafStamps.latestId!==G.rafStamps.invokeId||!G.rafStamps.invokeId)G.rafStamps.invokeId=G.rafStamps.latestId;G.pendingCanvasMutations.has(L)||G.pendingCanvasMutations.set(L,[]);G.pendingCanvasMutations.get(L).push(g)};
var u=Y.sampling===void 0?"all":Y.sampling,O=Y.win,Q=Y.blockClass,M=Y.blockSelector,t=Y.recordCanvas,K=Y.dataURLOptions;this.mutationCb=Y.mutationCb;this.mirror=Y.mirror;t&&u==="all"&&nU4(this,O,Q,M);t&&typeof u==="number"&&FKX(this,u,O,Q,M,{dataURLOptions:K})};
_.H=suU.prototype;_.H.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.H.freeze=function(){this.JSC$12220_frozen=!0};
_.H.unfreeze=function(){this.JSC$12220_frozen=!1};
_.H.lock=function(){this.locked=!0};
_.H.unlock=function(){this.locked=!1};
var FKX=function(Y,G,u,O,Q,M){var t=SzA(u,O,Q,!0),K=new Map,L=Zbt(aMT());L.onmessage=function(p){var W=p.data.id;K.set(W,!1);"base64"in p.data&&(p=p.data,Y.mutationCb({id:W,type:vc["2D"],commands:[{property:"clearRect",args:[0,0,p.width,p.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:p.base64}],type:p.type}]},0,0]}]}))};
var g=1E3/G,P=0,I=function(){var p=[];u.document.querySelectorAll("canvas").forEach(function(W){ll(W,O,Q,!0)||p.push(W)});
return p},k=function(p){P&&p-P<g||(P=p,I().forEach(function(W){var C,e,w,B,N;
return _.a(function(h){if(h.nextAddress==1){C=Y.mirror.getId(W);if(K.get(C)||W.width===0||W.height===0)return h.return();K.set(C,!0);["webgl","webgl2"].includes(W.__context)&&(e=W.getContext(W.__context),((w=e)==null?void 0:(B=w.getContextAttributes())==null?void 0:B.preserveDrawingBuffer)===!1&&e.clear(e.COLOR_BUFFER_BIT));return h.yield(createImageBitmap(W),2)}N=h.yieldResult;L.postMessage({id:C,bitmap:N,width:W.width,height:W.height,dataURLOptions:M.dataURLOptions},[N]);_.Sd(h)})}));
n=requestAnimationFrame(k)};
var n=requestAnimationFrame(k);Y.resetObservers=function(){t();cancelAnimationFrame(n)}},nU4=function(Y,G,u,O){pal(Y);
z44(Y);var Q=SzA(G,u,O,!1),M=bL4(Y.JSC$12220_processMutation.bind(Y),G,u,O),t=ju4(Y.JSC$12220_processMutation.bind(Y),G,u,O);Y.resetObservers=function(){Q();M();t()}},z44=function(Y){requestAnimationFrame(function(){return mPk(Y)})},pal=function(Y){var G=function(u){Y.rafStamps.latestId=u;
requestAnimationFrame(G)};
requestAnimationFrame(G)},mPk=function(Y){Y.pendingCanvasMutations.forEach(function(G,u){var O=Y.mirror.getId(u);
WK4(Y,u,O)});
requestAnimationFrame(function(){return mPk(Y)})},WK4=function(Y,G,u){if(!Y.JSC$12220_frozen&&!Y.locked){var O=Y.pendingCanvasMutations.get(G);
if(O&&u!==-1){var Q=O.map(function(M){M=Object.assign({},M);return delete M.type,M});
Y.mutationCb({id:u,type:O[0].type,commands:Q});Y.pendingCanvasMutations.delete(G)}}};var $aA=function(){this.nodeMap=new WeakMap;this.active=!1},POT=function(Y,G,u){return(Y=Y.nodeMap.get(G))&&Array.from(Y).some(function(O){return O!==u})};
$aA.prototype.add=function(Y,G){var u=this;this.active||(this.active=!0,requestAnimationFrame(function(){u.nodeMap=new WeakMap;u.active=!1}));
this.nodeMap.set(Y,(this.nodeMap.get(Y)||new Set).add(G))};
$aA.prototype.destroy=function(){};var c7A=function(Y){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=Y.mutationCb;this.scrollCb=Y.scrollCb;this.bypassOptions=Y.bypassOptions;this.mirror=Y.mirror;this.init()};
c7A.prototype.init=function(){this.reset();Gl1(this,Element,document)};
var J7j=function(Y,G,u){if(Rn(G)&&!Y.shadowDoms.has(G)){Y.shadowDoms.add(G);var O=Lla(Object.assign({},Y.bypassOptions,{doc:u,mutationCb:Y.mutationCb,mirror:Y.mirror,shadowDomManager:Y}),G);Y.restoreHandlers.push(function(){return O.disconnect()});
Y.restoreHandlers.push(IIg(Object.assign({},Y.bypassOptions,{scrollCb:Y.scrollCb,doc:G,mirror:Y.mirror})));setTimeout(function(){G.adoptedStyleSheets&&G.adoptedStyleSheets.length>0&&xaY(Y.bypassOptions.stylesheetManager,G.adoptedStyleSheets,Y.mirror.getId(Ao(G)));Y.restoreHandlers.push(fI1({mirror:Y.mirror,stylesheetManager:Y.bypassOptions.stylesheetManager},G))},0)}},Gl1=function(Y,G,u){Y.restoreHandlers.push(e9(G.prototype,"attachShadow",function(O){return function(Q){Q=O.call(this,Q);
var M=on(this);M&&MmU(this)&&J7j(Y,M,u);return Q}}))};
c7A.prototype.reset=function(){this.restoreHandlers.forEach(function(Y){try{Y()}catch(G){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var lIg=function(Y){this.trackedLinkElements=new WeakSet;this.styleMirror=new TQl;this.mutationCb=Y.mutationCb;this.adoptedStyleSheetCb=Y.adoptedStyleSheetCb},uaT=function(Y,G,u){"_cssText"in u.attributes&&Y.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:u.id,attributes:u.attributes}]});vtU(Y,G)},vtU=function(Y,G){Y.trackedLinkElements.has(G)||Y.trackedLinkElements.add(G)},xaY=function(Y,G,u){if(G.length!==0){u={id:u,
styleIds:[]};var O=[];G=_.E(G);for(var Q=G.next(),M={};!Q.done;M={sheet$jscomp$3:void 0},Q=G.next())M.sheet$jscomp$3=Q.value,Q=void 0,Y.styleMirror.has(M.sheet$jscomp$3)?Q=Y.styleMirror.getId(M.sheet$jscomp$3):(Q=Y.styleMirror.add(M.sheet$jscomp$3),O.push({styleId:Q,rules:Array.from(M.sheet$jscomp$3.rules||CSSRule,function(t){return function(K,L){return{rule:Tdj(K,t.sheet$jscomp$3.href),index:L}}}(M))})),u.styleIds.push(Q);
O.length>0&&(u.styles=O);Y.adoptedStyleSheetCb(u)}};
lIg.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var G1,Vm1,qzt;try{if(Array.from([1],function(Y){return Y*2})[0]!==2){var rr1=document.createElement("iframe");
document.body.appendChild(rr1);var xPk;Array.from=((xPk=rr1.contentWindow)==null?void 0:xPk.Array.from)||Array.from;document.body.removeChild(rr1)}}catch(Y){console.debug("Unable to override Array.from",Y)}var Ys=new Nt;var L3y="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(" "),TkI={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},acU=null,MX4=null;var gpI={},X01=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 zcA={text:1},klg={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var fBR=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,COI={CONSTANT:{isUnwrappable:function(Y){return Y instanceof ZC},
unwrap:$Ul},JAVASCRIPT:{isUnwrappable:function(Y){return Y instanceof _.To},
unwrap:gt},HTML:{isUnwrappable:function(Y){return Y instanceof Go},
unwrap:function(Y){return QK(Y)}},
RESOURCE_URL:{isUnwrappable:function(Y){return Y instanceof hz},
unwrap:_.bs},STRING:{isUnwrappable:function(Y){return Y instanceof Object},
unwrap:function(Y){return String(Y)}},
STYLE:{isUnwrappable:function(Y){return typeof Y==="string"},
unwrap:function(Y){return Y}},
URL:{isUnwrappable:function(Y){return ls(Y)},
unwrap:_.Bs}},yre={CONSTANT:moU,JAVASCRIPT:moU,HTML:function(Y){Y=Y instanceof Go?Y:Or(String(Y).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return QK(Y)},
RESOURCE_URL:moU,STRING:String,STYLE:moU,URL:function(Y,G){Y=fBR.test(Y)?Y:void 0;return Y===void 0?G:Y}};var RcY=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,W3u=/[\t\n\f\r ]+/,xo4=/[\t\n\f\r ,]+/g,CDA=function(Y,G,u){return u},MZ={},e44=function(){var Y=function(){var O={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",O):O}(),G=Y.createHTML(""),u=Y.createScript("");
Y=Y.createScriptURL("");return{INNOCUOUS_STRING:G,INNOCUOUS_SCRIPT:u,INNOCUOUS_URL:Y}}(),QA=e44.INNOCUOUS_STRING,i3u=e44.INNOCUOUS_SCRIPT,opT=e44.INNOCUOUS_URL;var Ar2=function(Y){var G=w0g(Y);return function(u,O,Q,M){return M?G(M,O,Q,u):QA}}({reportHandler:function(Y,G){if(Y)try{throw Error(G);
}catch(u){_.o0(u)}},
safeTypesBridge:function(Y,G,u){var O=COI[G];return O.isUnwrappable(Y)&&(O=O.unwrap(Y,u),O!==u)?O:(0,yre[G])(String(Y),u)},
allowedIdentifierPrefixes:[""]});if(pj!==void 0)throw Error("bf");pj=Ar2;if(pj!==Ar2)throw Error("cf");H$("Injectable",[]);var EcA=H$("Inject",[["token",void 0]]),KAj=H$("Optional",[]);H$("Injectable",[]);var aha=H$("Self",[]),Tx1=H$("SkipSelf",[]);H$("Host",[]);var oUI={},icR=function(){};
icR.prototype.resolve=function(){throw Error("ef");};
icR.prototype.addProvider=function(){throw Error("ef");};var Mtt=Function;var R4M=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,waE=function(){this._reflect=window.Reflect};
_.H=waE.prototype;_.H.factory=function(Y){return function(){return new (Function.prototype.bind.apply(Y,[null].concat(_.c8(_.vs.apply(0,arguments)))))}};
_.H._zipTypesAndAnnotations=function(Y,G){var u=typeof Y==="undefined"?Array(G.length):Array(Y.length);for(var O=0;O<u.length;O++)u[O]=typeof Y==="undefined"?[]:Y[O]!=Object?[Y[O]]:[],G&&Doa(G[O])&&(u[O]=u[O].concat(G[O]));return u};
_.H._ownParameters=function(Y,G){if(R4M.exec(Y.toString()))return null;if(Y.parameters&&Y.parameters!==G.parameters)return Y.parameters;var u=Y.ctorParameters;return u&&u!==G.ctorParameters?(G=typeof u==="function"?u():u,Y=G.map(function(O){return O&&O.type}),G=G.map(function(O){return O&&dog(O.decorators)}),this._zipTypesAndAnnotations(Y,G)):Doa(this._reflect)&&Doa(this._reflect.getOwnMetadata)&&(G=this._reflect.getOwnMetadata("parameters",Y),(u=this._reflect.getOwnMetadata("design:paramtypes",Y))||
G)?this._zipTypesAndAnnotations(u,G):Array(Y.length).fill(void 0)};
_.H.parameters=function(Y){if(!Y.prototype)return[];var G=Object.getPrototypeOf(Y.prototype).constructor;(Y=this._ownParameters(Y,G))||G===Object||(Y=this.parameters(G));return Y||[]};
_.H._ownAnnotations=function(Y,G){if(Y.annotations&&Y.annotations!==G.annotations)return Y=Y.annotations,typeof Y==="function"&&Y.annotations&&(Y=Y.annotations),Y;if(Y.decorators&&Y.decorators!==G.decorators)return dog(Y.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",Y)};
_.H.annotations=function(Y){var G=Object.getPrototypeOf(Y.prototype).constructor;Y=this._ownAnnotations(Y,G)||[];return(G!==Object?this.annotations(G):[]).concat(Y)};
_.H._ownPropMetadata=function(Y,G){if(Y.propMetadata&&Y.propMetadata!==G.propMetadata)return Y=Y.propMetadata,typeof Y==="function"&&Y.propMetadata&&(Y=Y.propMetadata),Y;if(Y.propDecorators&&Y.propDecorators!==G.propDecorators){var u=Y.propDecorators,O={};Object.keys(u).forEach(function(Q){O[Q]=dog(u[Q])});
return O}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",Y)};
_.H.propMetadata=function(Y){var G=Object.getPrototypeOf(Y.prototype).constructor,u={};if(G!==Object){var O=this.propMetadata(G);Object.keys(O).forEach(function(M){u[M]=O[M]})}var Q=this._ownPropMetadata(Y,G);
Q&&Object.keys(Q).forEach(function(M){var t=[];u.hasOwnProperty(M)&&t.push.apply(t,_.c8(u[M]));t.push.apply(t,_.c8(Q[M]));u[M]=t});
return u};
_.H.getter=function(Y){return function(G){return G[Y]}};
_.H.setter=function(Y){return function(G,u){return G[Y]=u}};
_.H.method=function(Y){return function(G,u){if(!G[Y])throw Error("ff`"+Y);return G[Y].apply(G,u)}};var ZcR=function(){};var DPV=function(Y){this.reflectionCapabilities=Y};
_.m(DPV,ZcR);_.H=DPV.prototype;_.H.factory=function(Y){return this.reflectionCapabilities.factory(Y)};
_.H.parameters=function(Y){return this.reflectionCapabilities.parameters(Y)};
_.H.annotations=function(Y){return this.reflectionCapabilities.annotations(Y)};
_.H.propMetadata=function(Y){return this.reflectionCapabilities.propMetadata(Y)};
_.H.getter=function(Y){return this.reflectionCapabilities.getter(Y)};
_.H.setter=function(Y){return this.reflectionCapabilities.setter(Y)};
_.H.method=function(Y){return this.reflectionCapabilities.method(Y)};var qqu=new DPV(new waE);var nM=function(Y,G){this.token=Y;this.id=G;if(Y===void 0||Y===null)throw Error("lf");};
_.Uk.Object.defineProperties(nM.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return EK(this.token)}}});
_.Uk.Object.defineProperties(nM,{JSC$12276_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return KX.JSC$12280_numberOfKeys}}});
var h4I=function(){this._allKeys=new Map};
h4I.prototype.get=function(Y){if(Y instanceof nM)return Y;if(this._allKeys.has(Y))return this._allKeys.get(Y);var G=new nM(Y,nM.JSC$12276_numberOfKeys);this._allKeys.set(Y,G);return G};
_.Uk.Object.defineProperties(h4I.prototype,{JSC$12280_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var KX=new h4I;var LAu=function(Y,G,u){this.key=Y;this.optional=G;this.visibility=u},cgt=function(Y){return new LAu(Y,!1,null)},vpj=[],Gpg=function(Y,G,u){this.key=Y;
this.resolvedFactories=G;this.multiProvider=u},JgI=function(Y,G,u,O){this.factory=Y;
this.dependencies=G;this.providerClass=u;this.providerValue=O};var Fs={},pM=function(Y,G){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=G===void 0?null:G;Y=_.E(Y);for(G=Y.next();!G.done;G=Y.next())this.addProvider(G.value)};
_.H=pM.prototype;_.H.addProvider=function(Y){this.keyIdToIndex.set(Y.key.id,this.keyIds.length);this.providers.push(Y);this.keyIds.push(Y.key.id);this.objs.push(Fs)};
_.H.resolve=function(Y,G){G=G===void 0?oUI:G;return this._getByKey(KX.get(tv(Y)),null,G)};
_.H._new=function(Y){if(this.constructedKeyIds[Y.key.id])throw lcA(this,Y.key);this.constructedKeyIds[Y.key.id]=!0;return this._instantiateProvider(Y)};
_.H._instantiateProvider=function(Y){if(Y.multiProvider){for(var G=Array(Y.resolvedFactories.length),u=0;u<Y.resolvedFactories.length;++u)G[u]=this._instantiate(Y,Y.resolvedFactories[u]);return G}return this._instantiate(Y,Y.resolvedFactories[0])};
_.H._instantiate=function(Y,G){var u=this,O=G.factory;try{var Q=G.dependencies.map(function(t){return u._getByReflectiveDependency(t)})}catch(t){throw t.addKey&&t.addKey(this,Y.key),t;
}try{var M=O.apply(null,_.c8(Q))}catch(t){throw BkI(this,t,Y.key);}return M};
_.H._getByReflectiveDependency=function(Y){return this._getByKey(Y.key,Y.visibility,Y.optional?null:oUI)};
_.H._getByKey=function(Y,G,u){return Y===dP_?this:G instanceof aha?this._getByKeySelf(Y,u):this._getByKeyDefault(Y,u,G)};
_.H._getObjByKeyId=function(Y){for(var G=0;G<this.keyIds.length;G++)if(this.keyIds[G]===Y)return this.objs[G]===Fs&&(this.objs[G]=this._new(this.providers[G])),this.objs[G];return Fs};
_.H._throwOrNull=function(Y,G){if(G!==oUI)return G;throw VXa(this,Y);};
_.H._getByKeySelf=function(Y,G){var u=this._getObjByKeyId(Y.id);return u!==Fs?u:this._throwOrNull(Y,G)};
_.H._getByKeyDefault=function(Y,G,u){for(var O=u=u instanceof Tx1?this.parent:this;u instanceof pM;){var Q=u._getObjByKeyId(Y.id);if(Q!==Fs)return Q;u=u.parent}Q=void 0;if(u!==null)try{var M=u.resolve(Y.token,G);if(M!==Fs)return M}catch(t){Q=t}if(!(O instanceof pM&&XTa(Y.token))){if(Q)throw Q;return this._throwOrNull(Y,G)}for(M=O;M.parent instanceof pM;)M=M.parent;M.addProvider(us4({provide:Y.token,useClass:Y.token}));return M.resolve(Y.token,G)};
_.H.toString=function(){return this.displayName};
_.Uk.Object.defineProperties(pM.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+gc1(this,function(Y){return' "'+Y.key.displayName+'" '}).join(", ")+"])"}}});
var dP_=KX.get(tv(icR));(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,m,n){if(e==Array.prototype||e==Object.prototype)return e;e[m]=n.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 m=0;m<e.length;++m){var n=e[m];if(n&&n.Math==Math)return n}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$";var JSCompiler_inline_result$jscomp$0,classes$jscomp$inline_5="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");$jscomp.global.BigInt64Array&&(classes$jscomp$inline_5.push("BigInt64"),
classes$jscomp$inline_5.push("BigUint64"));JSCompiler_inline_result$jscomp$0=classes$jscomp$inline_5;$jscomp.TYPED_ARRAY_CLASSES=JSCompiler_inline_result$jscomp$0;$jscomp.polyfillTypedArrayMethod=function(e,m,n,b){if(m)for(var q=0;q<$jscomp.TYPED_ARRAY_CLASSES.length;q++){var t=$jscomp.TYPED_ARRAY_CLASSES[q]+"Array.prototype."+e;$jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,m,n,b):$jscomp.polyfillUnisolated(t,m,n,b)}};
$jscomp.polyfill=function(e,m,n,b){m&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,m,n,b):$jscomp.polyfillUnisolated(e,m,n,b))};
$jscomp.polyfillUnisolated=function(e,m){var n=$jscomp.global;e=e.split(".");for(var b=0;b<e.length-1;b++){var q=e[b];if(!(q in n))return;n=n[q]}e=e[e.length-1];b=n[e];m=m(b);m!=b&&m!=null&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:m})};
$jscomp.polyfillIsolated=function(e,m,n){var b=e.split("."),q=b.length===1;e=b[0];e=!q&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var t=0;t<b.length-1;t++){var u=b[t];if(!(u in e))return;e=e[u]}b=b[b.length-1];n=$jscomp.IS_SYMBOL_NATIVE&&n==="es6"?e[b]:null;m=m(n);m!=null&&(q?$jscomp.defineProperty($jscomp.polyfills,b,{configurable:!0,writable:!0,value:m}):m!==n&&($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:m})))};
$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},m=Object.create(new $jscomp.global.Proxy(e,{get:function(n,b,q){return n==e&&b=="q"&&q==m}}));
return m.q===!0}catch(n){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 m=0;return function(){return m<e.length?{done:!1,value:e[m++]}:{done:!0}}};
$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};
$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var m=function(t,u){this.$jscomp$symbol$id_=t;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:u})};
m.prototype.toString=function(){return this.$jscomp$symbol$id_};
e=Math.random()*1E9>>>0;var n="jscomp_symbol_"+e+"_",b=0,q=function(t){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new m(n+(t||"")+"_"+b++,t)};
return q},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");$jscomp.defineProperty(Array.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 m=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(m)return m.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,m){return Object.prototype.hasOwnProperty.call(e,m)};
$jscomp.polyfill("WeakMap",function(e){function m(){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 n(){}
function b(f){var h=typeof f;return h==="object"&&f!==null||h==="function"}
function q(f){if(!$jscomp.owns(f,u)){var h=new n;$jscomp.defineProperty(f,u,{value:h})}}
function t(f){if(!$jscomp.ISOLATE_POLYFILLS){var h=Object[f];h&&(Object[f]=function(k){if(k instanceof n)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(m())return e;var u="$jscomp_hidden_"+Math.random();t("freeze");t("preventExtensions");t("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,u))throw Error("WeakMap key fail: "+f);f[u][this.id_]=h;return this};
d.prototype.get=function(f){return b(f)&&$jscomp.owns(f,u)?f[u][this.id_]:void 0};
d.prototype.has=function(f){return b(f)&&$jscomp.owns(f,u)&&$jscomp.owns(f[u],this.id_)};
d.prototype.delete=function(f){return b(f)&&$jscomp.owns(f,u)&&$jscomp.owns(f[u],this.id_)?delete f[u][this.id_]:!1};
return d},"es6","es3");
$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(e){function m(){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(m())return e;var n=new WeakMap,b=function(d){this[0]={};this[1]=u();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=u();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 t(this,function(d){return[d.key,d.value]})};
b.prototype.keys=function(){return t(this,function(d){return d.key})};
b.prototype.values=function(){return t(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"?n.has(h)?h=n.get(h):(k=""+ ++A,n.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}},t=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}})},u=function(){var d={};
return d.previous=d.next=d.head=d},A=0;
return b},"es6","es3");
$jscomp.polyfill("Set",function(e){function m(){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 t=q.entries(),u=t.next();if(u.done||u.value[0]!=b||u.value[1]!=b)return!1;u=t.next();return u.done||u.value[0]==b||u.value[0].x!=4||u.value[1]!=u.value[0]?!1:t.next().done}catch(A){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(m())return e;var n=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};
n.prototype.add=function(b){b=b===0?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};
n.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};
n.prototype.clear=function(){this.map_.clear();this.size=0};
n.prototype.has=function(b){return this.map_.has(b)};
n.prototype.entries=function(){return this.map_.entries()};
n.prototype.values=function(){return this.map_.values()};
n.prototype.keys=n.prototype.values;n.prototype[Symbol.iterator]=n.prototype.values;n.prototype.forEach=function(b,q){var t=this;this.map_.forEach(function(u){return b.call(q,u,u,t)})};
return n},"es6","es3");
$jscomp.polyfill("Set.prototype.union",function(e){function m(n){$jscomp.checkIsSetInstance(this);$jscomp.checkIsSetLike(n);var b=new Set(this);n=$jscomp.checkIsValidIterator(n.keys());for(var q=n.next();!q.done;)b.add(q.value),q=n.next();return b}
return e?e:m},"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,m){return e.size<=m.size?{smallerSetIterator:e.keys(),largerSet:m}:{smallerSetIterator:$jscomp.checkIsValidIterator(m.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 m=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;m.XRegExp=e()}})(function(){return function q(m,n,b){function t(d,f){if(!n[d]){if(!m[d]){var h=typeof require=="function"&&require;
if(!f&&h)return h(d,!0);if(u)return u(d,!0);f=Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f;}f=n[d]={exports:{}};m[d][0].call(f.exports,function(k){var r=m[d][1][k];return t(r?r:k)},f,f.exports,q,m,n,b)}return n[d].exports}
for(var u=typeof require=="function"&&require,A=0;A<b.length;A++)t(b[A]);return t}({1:[function(m,n){n.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 t(d,f){f=f?"x":"";return b.isRegExp(d)?d.xregexp&&d.xregexp.captureNames?d:b(d.source,f):b(d,f)}
var u=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,A=b.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,u],"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 v={},B;for(B in f)f.hasOwnProperty(B)&&(r=t(f[B],k),v[B]={pattern:q(r.source),names:r.xregexp.captureNames||[]});d=t(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(!v.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+v[L].pattern.replace(u,function(T,U,O){if(U){if(M=v[L].names[C-D],++C,M)return"(?<"+M+">"}else if(O)return P=+O-1,v[L].names[P]?"\\k<"+v[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(m,n){n.exports=function(b){function q(t,u,A,d){return{name:t,value:u,start:A,end:d}}
b.matchRecursive=function(t,u,A,d,f){d=d||"";f=f||{};var h=d.indexOf("g")>-1,k=d.indexOf("y")>-1,r=d.replace(/y/g,""),v=f.escapeChar;f=f.valueNames;var B=[],C=0,D=0,p=0,I=0;u=b(u,r);A=b(A,r);if(v){if(v.length>1)throw Error("Cannot use more than one escape character");v=b.escape(v);var E=new RegExp("(?:"+v+"[\\S\\s]|(?:(?!"+b.union([u,A],"",{conjunction:"or"}).source+")[^"+v+"])+)+",d.replace(/[^imu]+/g,""))}for(;;){v&&(p+=(b.exec(t,E,p,"sticky")||[""])[0].length);d=b.exec(t,u,p);r=b.exec(t,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],t.slice(I,F),I,F)),f[1]&&B.push(q(f[1],t.slice(F,J),F,J)),f[2]&&B.push(q(f[2],t.slice(J,D),J,D)),f[3]&&B.push(q(f[3],t.slice(D,p),D,p))):B.push(t.slice(J,D)),I=p,!h))break}else throw Error("Unbalanced delimiter found in string");D===p&&++p}h&&!k&&f&&f[0]&&t.length>I&&B.push(q(f[0],t.slice(I),I,t.length));
return B}}},
{}],3:[function(m,n){n.exports=function(b){function q(k){return k.replace(/[- _]+/g,"").toLowerCase()}
function t(k){var r=/^\\[xu](.+)/.exec(k);return r?d(r[1]):k.charCodeAt(k.charAt(0)==="\\"?1:0)}
function u(k){var r="",v=-1;b.forEach(k,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(B){var C=t(B[1]);C>v+1&&(r+="\\u"+h(f(v+1)),C>v+2&&(r+="-\\u"+h(f(C-1))));v=t(B[2]||B[1])});
v<65535&&(r+="\\u"+h(f(v+1)),v<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,v){var B=k[1]==="P"||!!k[2],C=v.indexOf("A")>-1;v=q(k[4]||k[3]);var D=A[v];if(k[1]==="P"&&k[2])throw new SyntaxError("Invalid double negation "+k[0]);if(!A.hasOwnProperty(v))throw new SyntaxError("Unknown Unicode token "+k[0]);if(D.inverseOf){v=q(D.inverseOf);if(!A.hasOwnProperty(v))throw new ReferenceError("Unicode token missing data "+k[0]+" -> "+D.inverseOf);D=A[v];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[v][k])||(r=A[v],v=A[v],C="",v.bmp&&!v.isBmpLast&&(C="["+v.bmp+"]"+(v.astral?"|":"")),v.astral&&(C+=v.astral),v.isBmpLast&&v.bmp&&(C+=(v.astral?"|":"")+"["+v.bmp+"]"),B=B?"(?:(?!"+C+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+C+")",r=r[k]=B);return B=r}return B=r==="class"?B?A[v]["b!"]||(A[v]["b!"]=u(A[v].bmp)):D.bmp:(B?"[^":"[")+D.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});b.addUnicodeData=function(k){for(var r,v=0;v<k.length;++v){r=k[v];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(m,n){n.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(m,n){n.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(m,n){n.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(m,n){n.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(m,n){var b=m("./xregexp");m("./addons/build")(b);m("./addons/matchrecursive")(b);m("./addons/unicode-base")(b);m("./addons/unicode-blocks")(b);m("./addons/unicode-categories")(b);m("./addons/unicode-properties")(b);m("./addons/unicode-scripts")(b);n.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(m,n){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 t(a){return E.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function u(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=t(l+x));c.isInternalOnly||(g.source!==void 0&&(w=g.source),g.flags!=null&&(y=x?t(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 v(a,c){var g;if(t(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=t(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 u(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=v(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=t;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:u(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]=u(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]=u(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]=u(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=u(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:"("});n.exports=p},
{}]},{},[8])(8)})}).call(globalThis);var bcE=globalThis.XRegExp;var SDE=-1,NQU=function(Y){addEventListener("pageshow",function(G){G.persisted&&(SDE=G.timeStamp,Y(G))},!0)};var V5e=function(Y,G,u){var O=jG1,Q,M;return function(t){if(G.value>=0&&(t||u)){var K;if((M=G.value-((K=Q)!=null?K:0))||Q===void 0)Q=G.value,G.delta=M,t=G.value,G.rating=t>O[1]?"poor":t>O[0]?"needs-improvement":"good",Y(G)}}};var lBR=function(Y){requestAnimationFrame(function(){return requestAnimationFrame(function(){return Y()})})};var BQ4=function(){var Y=performance.getEntriesByType("navigation")[0];if(Y&&Y.responseStart>0&&Y.responseStart<performance.now())return Y};var $PR=function(){var Y,G;return(G=(Y=BQ4())==null?void 0:Y.activationStart)!=null?G:0};var zp=-1,qDE=new Set,sGU=function(Y){if(document.visibilityState==="hidden"){if(Y.type==="visibilitychange")for(var G=_.E(qDE),u=G.next();!u.done;u=G.next())u=u.value,u();isFinite(zp)||(zp=Y.type==="visibilitychange"?Y.timeStamp:0,removeEventListener("prerenderingchange",sGU,!0))}},cre=function(){if(zp<0){var Y=$PR(),G,u;
zp=(u=document.prerendering?void 0:(G=globalThis.performance.getEntriesByType("visibility-state").filter(function(O){return O.name==="hidden"&&O.startTime>Y})[0])==null?void 0:G.startTime)!=null?u:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",sGU,!0);addEventListener("prerenderingchange",sGU,!0);NQU(function(){setTimeout(function(){zp=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return zp},
onHidden:function(O){qDE.add(O)}}};var UP1=function(){var Y=Y===void 0?-1:Y;var G=BQ4(),u="navigate";SDE>=0?u="back-forward-cache":G&&(document.prerendering||$PR()>0?u="prerender":document.wasDiscarded?u="restore":G.type&&(u=G.type.replace(/_/g,"-")));return{name:"LCP",value:Y,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:u}};var Ih4=new WeakMap;var vUV=function(Y){var G=G===void 0?{}:G;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var u=new PerformanceObserver(function(O){Promise.resolve().then(function(){Y(O.getEntries())})});
u.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},G));return u}}catch(O){}};var Jr4=function(Y){var G=!1;return function(){G||(Y(),G=!0)}};var YS2=function(Y){document.prerendering?addEventListener("prerenderingchange",function(){return Y()},!0):Y()};var GwR=function(Y){var G=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?Y():(Y=Jr4(Y),addEventListener("visibilitychange",Y,{once:!0,capture:!0}),G(function(){Y();removeEventListener("visibilitychange",Y,{capture:!0})}))};var Phj=function(){};
Phj.prototype._processEntry=function(Y){var G;(G=this._onBeforeProcessingEntry)==null||G.call(this,Y)};var jG1=[2500,4E3],sMa=function(Y){var G=G===void 0?{}:G;YS2(function(){var u=cre(),O=UP1(),Q=kpj(G),M=function(k){G.reportAllChanges||(k=k.slice(-1));k=_.E(k);for(var n=k.next();!n.done;n=k.next())n=n.value,Q._processEntry(n),n.startTime<u.firstHiddenTime&&(O.value=Math.max(n.startTime-$PR(),0),O.entries=[n],K())},t=vUV(M);
if(t){var K=V5e(Y,O,G.reportAllChanges);for(var L=Jr4(function(){M(t.takeRecords());t.disconnect();K(!0)}),g=function(k){k.isTrusted&&(GwR(L),removeEventListener(k.type,g,{capture:!0}))},P=_.E(["keydown",
"click","visibilitychange"]),I=P.next();!I.done;I=P.next())addEventListener(I.value,g,{capture:!0});NQU(function(k){O=UP1();K=V5e(Y,O,G.reportAllChanges);lBR(function(){O.value=performance.now()-k.timeStamp;K(!0)})})}})};var u82;var OuR;_.l=function(){return OuR!==void 0?OuR:OuR=document.createElement("template")};
document.head.appendChild(_.l().content);var Q92;_.Xf({_template:function(){if(Q92!==void 0)return Q92;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
var G=Y.content,u=G.insertBefore;u82===void 0&&(u82=document.createElement("template"));var O=u82;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return Q92=Y},
is:"tp-yt-app-toolbar"});var Mql;var Hu2;_.mA=function(){};
_.mA=_.Xf({_template:function(){if(Hu2!==void 0)return Hu2;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Mql===void 0&&(Mql=document.createElement("template"));var O=Mql;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return Hu2=Y},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.mA.instance||(_.mA.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(Y){this._text===Y&&(Y+="\u00a0");this._text="";this.async(function(){this._text=Y},this.timeout)},
_onIronAnnounce:function(Y){Y.detail&&Y.detail.text&&this.announce(Y.detail.text)}});
_.mA.instance=null;_.mA.requestAvailability=function(){_.mA.instance||(_.mA.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.mA.instance):document.addEventListener("load",function(){document.body.appendChild(_.mA.instance)})};var ESI;var tqT;/*

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

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 WT,PT_,I0R;WT=Element.prototype;PT_=WT.matches||WT.matchesSelector||WT.mozMatchesSelector||WT.msMatchesSelector||WT.oMatchesSelector||WT.webkitMatchesSelector;I0R=function(){};
_.nSR=function(Y){var G=kw4,u=[];return G._collectTabbableNodes(Y,u)?G._sortByTabIndex(u):u};
_.H=I0R.prototype;_.H.isFocusable=function(Y){return PT_.call(Y,"input, select, textarea, button, object")?PT_.call(Y,":not([disabled])"):PT_.call(Y,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.H._normalizedTabIndex=function(Y){return this.isFocusable(Y)?(Y=Y.getAttribute("tabindex")||0,Number(Y)):-1};
_.H._collectTabbableNodes=function(Y,G){if(Y.nodeType!==Node.ELEMENT_NODE||!this._isVisible(Y))return!1;var u=this._normalizedTabIndex(Y),O=u>0;u>=0&&G.push(Y);if(Y.localName==="content"||Y.localName==="slot")u=_.ax(Y).getDistributedNodes();else{var Q;u=((Q=_.ax(Y).shadowRoot)!=null?Q:_.ax(Y.root||Y)).children}for(Y=0;Y<u.length;Y++)O=this._collectTabbableNodes(u[Y],G)||O;return O};
_.H._isVisible=function(Y){var G=Y.style;return G.visibility!=="hidden"&&G.display!=="none"?(G=window.getComputedStyle(Y),G.visibility!=="hidden"&&G.display!=="none"):!1};
_.H._sortByTabIndex=function(Y){var G=Y.length;if(G<2)return Y;var u=Math.ceil(G/2);G=this._sortByTabIndex(Y.slice(0,u));Y=this._sortByTabIndex(Y.slice(u));return this._mergeSortByTabIndex(G,Y)};
_.H._mergeSortByTabIndex=function(Y,G){for(var u=[];Y.length>0&&G.length>0;)this._hasLowerTabOrder(Y[0],G[0])?u.push(G.shift()):u.push(Y.shift());return u.concat(Y,G)};
_.H._hasLowerTabOrder=function(Y,G){Y=Math.max(Y.tabIndex,0);G=Math.max(G.tabIndex,0);return Y===0||G===0?G>Y:Y>G};
var kw4=new I0R;var FG_;var pGV;_.Xf({_template:function(){if(pGV!==void 0)return pGV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;FG_===void 0&&(FG_=document.createElement("template"));var O=FG_;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return pGV=Y},
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&&_.ax(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.ax(this.parentNode).removeChild(this)},
_onTransitionend:function(Y){Y&&Y.target===this&&this.complete()},
_openedChanged:function(Y){Y?this.prepare():(Y=window.getComputedStyle(this),Y.transitionDuration!=="0s"&&Y.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 rx=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;o3(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)};
rx.prototype._bringOverlayAtIndexToFront=function(Y){var G=this._overlays[Y];if(G){var u=this._overlays.length-1,O=this._overlays[u];O&&this._shouldBeBehindOverlay(G,O)&&u--;if(!(Y>=u)){O=Math.max(this._getZ(_.z$E(this)),this._minimumZ);for(this._getZ(G)<=O&&this._applyOverlayZ(G,O);Y<u;)this._overlays[Y]=this._overlays[Y+1],Y++;this._overlays[u]=G}}};
rx.prototype.addOverlay=function(Y){var G=this._overlays.indexOf(Y);if(G>=0)this._bringOverlayAtIndexToFront(G);else{G=this._overlays.length;var u=this._overlays[G-1],O=Math.max(this._getZ(u),this._minimumZ),Q=this._getZ(Y);u&&this._shouldBeBehindOverlay(Y,u)&&(this._applyOverlayZ(u,O),G--,O=Math.max(this._getZ(this._overlays[G-1]),this._minimumZ));Q<=O&&this._applyOverlayZ(Y,O);this._overlays.splice(G,0,Y)}this.trackBackdrop()};
rx.prototype.removeOverlay=function(Y){Y=this._overlays.indexOf(Y);Y!==-1&&(this._overlays.splice(Y,1),this.trackBackdrop())};
_.z$E=function(Y){return Y._overlays[Y._overlays.length-1]};
_.H=rx.prototype;_.H.trackBackdrop=function(){var Y=this._overlayWithBackdrop();if(Y||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(Y)-1,this.backdropElement.opened=!!Y,this.backdropElement.prepare()};
_.H._overlayWithBackdrop=function(){for(var Y=this._overlays.length-1;Y>=0;Y--)if(this._overlays[Y].withBackdrop)return this._overlays[Y]};
_.H._getZ=function(Y){var G=this._minimumZ;if(Y){var u,O,Q=Number(((u=Y.hostElement)!=null?u:Y).style.zIndex||window.getComputedStyle((O=Y.hostElement)!=null?O:Y).zIndex);Q===Q&&(G=Q)}return G};
_.H._setZ=function(Y,G){var u;((u=Y.hostElement)!=null?u:Y).style.zIndex=G};
_.H._applyOverlayZ=function(Y,G){this._setZ(Y,G+2)};
_.H._overlayInPath=function(Y){Y=Y||[];for(var G=0;G<Y.length;G++){var u=void 0;if(((u=Y[G].polymerController)!=null?u:Y[G])._manager===this)return Y[G]}};
_.H._onCaptureClick=function(Y){var G=this._overlays.length-1;if(G!==-1)for(var u=_.ax(Y).path,O,Q;(O=this._overlays[G])&&this._overlayInPath(u)!==((Q=O.hostElement)!=null?Q:O);)if(O._onCaptureClick(Y),O.allowClickThrough)G--;else break};
_.H._onCaptureFocus=function(Y){var G=_.z$E(this);G&&G._onCaptureFocus(Y)};
_.H._onCaptureKeyDown=function(Y){var G=_.z$E(this);G&&(_.Gp.keyboardEventMatchesKeys(Y,"esc")?G._onCaptureEsc(Y):_.Gp.keyboardEventMatchesKeys(Y,"tab")&&G._onCaptureTab(Y))};
_.H._shouldBeBehindOverlay=function(Y,G){return!Y.alwaysOnTop&&G.alwaysOnTop&&!G.contains(Y)};
_.Uk.Object.defineProperties(rx.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 Y=document.activeElement;Y&&Y instanceof Element!==!1||(Y=document.body);for(;Y.root&&_.ax(Y.root).activeElement;)Y=_.ax(Y.root).activeElement;return Y}}});
_.xc=new rx;var ncj=0,FAI=0,pTt=null,zhY=[],T1=["wheel","mousewheel","DOMMouseScroll"],mRA;_.F("web_no_lock_on_touchstart_killswitch")&&(T1.push("touchstart"),T1.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;_.fM={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:_.xc},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var Y;return this._focusedChild||_.ax((Y=this.hostElement)!=null?Y:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var Y;return _.nSR((Y=this.hostElement)!=null?Y: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 Y;this._observer=_.ax((Y=this.hostElement)!=null?Y:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var Y;_.ax((Y=this.hostElement)!=null?Y:this).unobserveNodes(this._observer)}this._observer=null;for(var G in this.__rafs)this.__rafs[G]!==null&&cancelAnimationFrame(this.__rafs[G]);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(Y){this.fire("iron-overlay-canceled",Y,{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 Y;((Y=this.hostElement)!=null?Y:this).style.outline="none";var G;((G=this.hostElement)!=null?G:this).style.display="none"}},
_openedChanged:function(Y){if(Y){var G;((G=this.hostElement)!=null?G:this).removeAttribute("aria-hidden")}else{var u;((u=this.hostElement)!=null?u: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 Y;if(this.withBackdrop&&!((Y=this.hostElement)!=null?Y:this).hasAttribute("tabindex")){var G;((G=this.hostElement)!=null?G:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var u;((u=this.hostElement)!=null?u: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 Y;((Y=this.hostElement)!=null?Y:this).style.display="none";var G;((G=this.hostElement)!=null?G:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var Y,G;((Y=this.hostElement)!=null?Y:this).style.transition=((G=this.hostElement)!=null?G:this).style.webkitTransition="none";var u,O;((u=this.hostElement)!=null?u:this).style.transform=((O=this.hostElement)!=null?O:this).style.webkitTransform="none";var Q;((Q=this.hostElement)!=null?Q:this).style.display=""},
_finishPositioning:function(){var Y;((Y=this.hostElement)!=null?Y:this).style.display="none";this.scrollTop=this.scrollTop;var G,u;((G=this.hostElement)!=null?G:this).style.transition=((u=this.hostElement)!=null?u:this).style.webkitTransition="";var O,Q;((O=this.hostElement)!=null?O:this).style.transform=((Q=this.hostElement)!=null?Q:this).style.webkitTransform="";var M;((M=this.hostElement)!=null?M:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var Y=this._manager.deepActiveElement,G;if(!(G=Y===document.body))a:{for(;Y;Y=Y.assignedSlot||Y.parentNode||Y.host)if(Y===this){G=!0;break a}G=!1}G&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(Y){this.noCancelOnOutsideClick||this.cancel(Y)},
_onCaptureFocus:function(Y){if(this.withBackdrop){var G=_.ax(Y).path;G.indexOf(this)===-1?(Y.stopPropagation(),this._applyFocus()):this._focusedChild=G[0]}},
_onCaptureEsc:function(Y){this.noCancelOnEscKey||this.cancel(Y)},
_onCaptureTab:function(Y){if(this.withBackdrop){this.__ensureFirstLastFocusables();var G=Y.shiftKey,u=G?this.__firstFocusableNode:this.__lastFocusableNode;G=G?this.__lastFocusableNode:this.__firstFocusableNode;if(u===G)u=!0;else{var O=this._manager.deepActiveElement;u=O===u||O===this}u&&(Y.preventDefault(),this._focusedChild=G,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 Y=this._focusableNodes;this.__firstFocusableNode=Y[0];this.__lastFocusableNode=Y[Y.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(Y,G){var u=this.__rafs;u[Y]!==null&&cancelAnimationFrame(u[Y]);u[Y]=requestAnimationFrame(function(){u[Y]=null;G.call(this)}.bind(this))},
__updateScrollObservers:function(Y,G,u){Y&&G&&this.__isValidScrollAction(u)?(u==="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),mRA=_._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()):(Y=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),Y!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(Y,1),mRA=_._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(hG)for(var Y=this;Y;)Y.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Y.host&&this.__rootNodes.push(Y),Y=Y.host||Y.assignedSlot||Y.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(G){G.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(Y){Y.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(Y){return Y==="lock"||Y==="refit"||Y==="cancel"},
__onCaptureScroll:function(Y){if(!(this.__isAnimating||_.ax(Y).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(Y)}},
__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)}};
_.CM=[XGR,_.aZ,_.fM];_.Xf({_template:function(){if(LGV!==void 0)return LGV;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;T0R===void 0&&(T0R=document.createElement("template"));var O=T0R;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return LGV=Y},
is:"tp-yt-iron-dropdown",behaviors:[_.uh,_.Gp,_.CM,ZyE],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 Y=_.ax(this.$.content).getDistributedNodes(),G=0,u=Y.length;G<u;G++)if(Y[G].nodeType===Node.ELEMENT_NODE)return Y[G]},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(),_.fM._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.fM._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.fM._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var Y=this.containedElement,G=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),u=0;u<G.length;u++)G[u].node=Y;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(Y){this._readied&&(Y?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var Y=this.focusTarget||this.containedElement;Y&&this.opened&&!this.noAutoFocus?Y.focus():_.fM._applyFocus.apply(this,arguments)}});var m1R;var WGU;/*

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 rml=new _.HT({type:"iconset"});
_.Xf({_template:function(){if(WGU!==void 0)return WGU;var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;m1R===void 0&&(m1R=document.createElement("template"));
var O=m1R;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return WGU=Y},
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(Y){Y=(Y||"").split(":");this._iconName=Y.pop();this._iconsetName=Y.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&&_.ax(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=rml.byKey(this._iconsetName)){var Y=this._iconset.applyIcon(this,this._iconName,this.theme);Y&&Y.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,_.ax(this.root).appendChild(this._img)}});var x1R;var f0l;_.Xf({_template:function(){if(f0l!==void 0)return f0l;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
var G=Y.content,u=G.insertBefore;x1R===void 0&&(x1R=document.createElement("template"));var O=x1R;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return f0l=Y},
is:"tp-yt-iron-input",behaviors:[_.tK],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(){_.mA.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.ax(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.ax(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 Y=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":Y=/[0-9.,e-]/}return Y},_bindValueChanged:function(Y,G){G&&(Y===void 0?G.value=null:Y!==G.value&&(this.inputElement.value=Y),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:Y}))},
_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(Y){var G=Y.keyCode==19||Y.keyCode==20||Y.keyCode==45||Y.keyCode==46||Y.keyCode==144||Y.keyCode==145||Y.keyCode>32&&Y.keyCode<41||Y.keyCode>111&&Y.keyCode<124;return!(Y.keyCode==8||Y.keyCode==9||Y.keyCode==13||Y.keyCode==27)&&!(Y.charCode==0&&G)},
_onKeypress:function(Y){if(this.allowedPattern||this.inputElement.type==="number"){var G=this._patternRegExp;if(G&&!(Y.metaKey||Y.ctrlKey||Y.altKey)){this._patternAlreadyChecked=!0;var u=String.fromCharCode(Y.charCode);this._isPrintable(Y)&&!G.test(u)&&(Y.preventDefault(),this._announceInvalidCharacter("Invalid character "+u+" not entered."))}}},
_checkPatternValidity:function(){var Y=this._patternRegExp;if(!Y)return!0;for(var G=0;G<this.inputElement.value.length;G++)if(!Y.test(this.inputElement.value[G]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var Y=this.inputElement.checkValidity();Y&&(this.required&&this.bindValue===""?Y=!1:this.hasValidator()&&(Y=_.tK.validate.call(this,this.bindValue)));this.invalid=!Y;this.fire("iron-input-validate");return Y},
_announceInvalidCharacter:function(Y){this.fire("iron-announce",{text:Y})},
_computeValue:function(Y){return Y}});var CT4;var ymM;var e$_=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),AmT=e$_&&e$_[1]>=8;
_.Xf({_template:function(){if(ymM!==void 0)return ymM;var Y=document.createElement("template");_.r(Y,'\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 aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;CT4===void 0&&(CT4=document.createElement("template"));var O=CT4;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return ymM=Y},
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},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[Spj,_.aZ,_.wHX,w3M],_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 _.ax(_.ax(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var Y=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,Y-this._physicalCount)},set _virtualStart(Y){Y=this._clamp(Y,0,this._maxVirtualStart);this.grid&&(Y-=Y%this._itemsPerRow);this._virtualStartVal=Y},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(Y){Y%=this._physicalCount;Y<0&&(Y=this._physicalCount+Y);this.grid&&(Y-=Y%this._itemsPerRow);this._physicalStartVal=Y},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(Y){this._physicalCountVal=Y},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 Y=this._firstVisibleIndexVal;if(Y==null){var G=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
Y=this._iterateItems(function(u,O){G+=this._getPhysicalSizeIncrement(u);if(G>this._scrollPosition)return this.grid?O-O%this._itemsPerRow:O;if(this.grid&&this._virtualCount-1===O)return O-O%this._itemsPerRow})||0}return Y},
get lastVisibleIndex(){var Y=this._lastVisibleIndexVal;if(Y==null){if(this.grid)Y=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var G=this._physicalTop+this._scrollOffset;this._iterateItems(function(u,O){G<this._scrollBottom&&(Y=O);G+=this._getPhysicalSizeIncrement(u)})}this._lastVisibleIndexVal=Y}return Y},
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,_.TU);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(Y){this.style.webkitOverflowScrolling=Y===this?"touch":"";this.style.overflowY=Y===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.TU)},
updateViewportBoundaries:function(){var Y=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(Y["padding-top"],10);this._isRTL=Y.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var Y=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),G=Y-this._scrollPosition,u=G>=0;this._scrollPosition=Y;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(G)>this._physicalSize&&this._physicalSize>0?(G-=this._scrollOffset,u=Math.round(G/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=u,this._physicalStart+=u,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(Y=this._getReusables(u),u?(this._physicalTop=Y.physicalTop,this._virtualStart+=Y.indexes.length,this._physicalStart+=Y.indexes.length):(this._virtualStart=this._virtualStart-Y.indexes.length,this._physicalStart=this._physicalStart-Y.indexes.length),this._update(Y.indexes,u?null:Y.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),wj))},
_getReusables:function(Y){var G=[],u=this._hiddenContentSize*this._ratio,O=this._virtualStart,Q=this._virtualEnd,M=this._physicalCount,t=this._physicalTop+this._scrollOffset;var K=this._physicalBottom+this._scrollOffset;var L=this._scrollPosition,g=this._scrollBottom;if(Y){var P=this._physicalStart;K=L-t}else P=this._physicalEnd,K-=g;for(;;){var I=this._getPhysicalSizeIncrement(P);K-=I;if(G.length>=M||K<=u)break;if(Y){if(Q+G.length+1>=this._virtualCount)break;if(t+I>=L-this._scrollOffset)break;G.push(P);
t+=I;P=(P+1)%M}else{if(O-G.length<=0)break;if(t+this._physicalSize-I<=g)break;G.push(P);t-=I;P=P===0?M-1:P-1}}return{indexes:G,physicalTop:t-this._scrollOffset}},
_update:function(Y,G){if(!(Y&&Y.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(Y);this._updateMetrics(Y);if(G)for(;G.length;)Y=G.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(Y);this._positionItems();this._updateScrollerSize()}},
_createPool:function(Y){this._ensureTemplatized();var G,u=Array(Y);for(G=0;G<Y;G++){var O=this.stamp(null);u[G]=O.root.querySelector("*");this._itemsParent.appendChild(O.root)}return u},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(Y){Y=this._clamp(this._physicalCount+Y,3,this._virtualCount-this._virtualStart);Y=this._convertIndexToCompleteRow(Y);if(this.grid){var G=Y%this._itemsPerRow;G&&Y-G<=this._physicalCount&&(Y+=this._itemsPerRow);Y-=G}Y-=this._physicalCount;G=Math.round(this._physicalCount*.5);if(!(Y<0)){if(Y>0){G=window.performance.now();[].push.apply(this._physicalItems,this._createPool(Y));for(var u=0;u<Y;u++)this._physicalSizes.push(0);this._physicalCount+=Y;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=Y);this._update();this._templateCost=(window.performance.now()-G)/Y;G=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||G===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,G)),ISk):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,G),wj))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var Y=this._getReusables(!0);this._physicalTop=Y.physicalTop;this._virtualStart+=Y.indexes.length;this._physicalStart+=Y.indexes.length;this._update(Y.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 Y={__key__:!0};Y[this.as]=!0;Y[this.indexAs]=!0;Y[this.selectedAs]=!0;Y.tabIndex=!0;this._instanceProps=Y;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(Y,G){typeof G!=="undefined"&&(this.notifyResize(),_.Uz(),Y&&this._updateGridMetrics())},
_itemsChanged:function(Y){if(Y.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,
_.TU);else if(Y.path==="items.splices"){this._adjustVirtualIndex(Y.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(Y.value.indexSplices.some(function(u){return u.addedCount>0||u.removed.length>0})){var G=this._getActiveElement();
this.contains(G)&&G.blur()}Y=Y.value.indexSplices.some(function(u){return u.index+u.addedCount>=this._virtualStart&&u.index<=this._virtualEnd},this);
this._isClientFull()&&!Y||this._debounce("_render",this._render,_.TU)}else Y.path!=="items.length"&&this._forwardItemPath(Y.path,Y.value)},
_forwardItemPath:function(Y,G){Y=Y.slice(6);var u=Y.indexOf(".");u===-1&&(u=Y.length);var O,Q=this.modelForElement(this._offscreenFocusedItem),M=parseInt(Y.substring(0,u),10);if(O=this._isIndexRendered(M)){var t=this._getPhysicalIndex(M);var K=this.modelForElement(this._physicalItems[t])}else Q&&(K=Q);K&&K[this.indexAs]===M&&(Y=Y.substring(u+1),Y=this.as+(Y?"."+Y:""),K._setPendingPropertyOrPath(Y,G,!1,!0),K._flushProperties&&K._flushProperties(),O&&(this._updateMetrics([t]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(Y){Y.forEach(function(G){G.removed.forEach(this._removeItem,this);G.index<this._virtualStart&&(G=Math.max(G.addedCount-G.removed.length,G.index-this._virtualStart),this._virtualStart+=G,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=G))},this)},
_removeItem:function(Y){this.$.selector.deselect(Y);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===Y&&this._removeFocusedItem()},
_iterateItems:function(Y,G){var u,O;if(arguments.length===2&&G)for(O=0;O<G.length;O++){var Q=G[O];var M=this._computeVidx(Q);if((u=Y.call(this,Q,M))!=null)return u}else{Q=this._physicalStart;for(M=this._virtualStart;Q<this._physicalCount;Q++,M++)if((u=Y.call(this,Q,M))!=null)return u;for(Q=0;Q<this._physicalStart;Q++,M++)if((u=Y.call(this,Q,M))!=null)return u}},
_computeVidx:function(Y){return Y>=this._physicalStart?this._virtualStart+(Y-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+Y},
_assignModels:function(Y){this._iterateItems(function(G,u){var O=this._physicalItems[G],Q=this.items&&this.items[u];if(Q!=null){var M=this.modelForElement(O);M.__key__=null;this._forwardProperty(M,this.as,Q);this._forwardProperty(M,this.selectedAs,this.$.selector.isSelected(Q));this._forwardProperty(M,this.indexAs,u);this._forwardProperty(M,"tabIndex",this._focusedVirtualIndex===u?0:-1);this._physicalIndexForKey[M.__key__]=G;M._flushProperties&&M._flushProperties(!0);O.removeAttribute("hidden")}else O.setAttribute("hidden",
"")},Y)},
_updateMetrics:function(Y){_.Uz();var G=0,u=0,O=this._physicalAverageCount,Q=this._physicalAverage;this._iterateItems(function(M){u+=this._physicalSizes[M];this._physicalSizes[M]=this._physicalItems[M].offsetHeight;G+=this._physicalSizes[M];this._physicalAverageCount+=this._physicalSizes[M]?1:0},Y);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(u=this._itemsPerRow===1?u:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+G-u,this._itemsPerRow=1);this._physicalAverageCount!==O&&(this._physicalAverage=Math.round((Q*O+G)/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 Y=this._physicalTop;if(this.grid){var G=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(u,O){var Q=Math.floor(O%this._itemsPerRow*this._itemWidth+G);this._isRTL&&(Q*=-1);this.translate3d(Q+"px",Y+"px",0,this._physicalItems[u]);this._shouldRenderNextRow(O)&&(Y+=this._rowHeight)})}else this._iterateItems(function(u){this.translate3d(0,Y+"px",0,this._physicalItems[u]);
Y+=this._physicalSizes[u]})},
_getPhysicalSizeIncrement:function(Y){return this.grid?this._computeVidx(Y)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[Y]},
_shouldRenderNextRow:function(Y){return Y%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var Y=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(Y!==0){this._physicalTop=this._physicalTop-Y;var G=this._scrollPosition;!AmT&&G>0&&this._resetScrollPosition(G-Y)}},
_resetScrollPosition:function(Y){this.scrollTarget&&Y>=0&&(this._scrollPosition=this._scrollTop=Y)},
_updateScrollerSize:function(Y){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((Y=(Y=(Y=Y||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(Y){return this.scrollToIndex(this.items.indexOf(Y))},
scrollToIndex:function(Y){if(!(typeof Y!=="number"||Y<0||Y>this.items.length-1)&&(_.Uz(),this._physicalCount!==0)){Y=this._clamp(Y,0,this._virtualCount-1);if(!this._isIndexRendered(Y)||Y>=this._maxVirtualStart)this._virtualStart=this.grid?Y-this._itemsPerRow*2:Y-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var G=this._physicalStart,u=this._virtualStart,O=0,Q=this._hiddenContentSize;u<Y&&
O<=Q;)O+=this._getPhysicalSizeIncrement(G),G=(G+1)%this._physicalCount,u++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+O);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)},_.TU)},
selectItem:function(Y){return this.selectIndex(this.items.indexOf(Y))},
selectIndex:function(Y){if(!(Y<0||Y>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(Y)){var G=this.modelForElement(this._physicalItems[this._getPhysicalIndex(Y)]);G&&(G[this.selectedAs]=!0);this.updateSizeForIndex(Y)}this.$.selector.selectIndex(Y)}},
deselectItem:function(Y){return this.deselectIndex(this.items.indexOf(Y))},
deselectIndex:function(Y){Y<0||Y>=this._virtualCount||(this._isIndexRendered(Y)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(Y)])[this.selectedAs]=!1,this.updateSizeForIndex(Y)),this.$.selector.deselectIndex(Y))},
toggleSelectionForItem:function(Y){return this.toggleSelectionForIndex(this.items.indexOf(Y))},
toggleSelectionForIndex:function(Y){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(Y):this.$.selector.isSelected(this.items[Y]))?this.deselectIndex(Y):this.selectIndex(Y)},
clearSelection:function(){this._iterateItems(function(Y){this.modelForElement(this._physicalItems[Y])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(Y){(Y?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(Y){var G=this.modelForElement(Y.target);if(G){var u=_.ax(Y).path[0];Y=this._getActiveElement();var O=this._physicalItems[this._getPhysicalIndex(G[this.indexAs])];if(u.localName!=="input"&&u.localName!=="button"&&u.localName!=="select"){u=G.tabIndex;G.tabIndex=-100;var Q=Y?Y.tabIndex:-1;G.tabIndex=u;Y&&O!==Y&&O.contains(Y)&&Q!==-100||this.toggleSelectionForItem(G[this.as])}}},
_multiSelectionChanged:function(Y){this.clearSelection();this.$.selector.multi=Y},
updateSizeForItem:function(Y){return this.updateSizeForIndex(this.items.indexOf(Y))},
updateSizeForIndex:function(Y){if(!this._isIndexRendered(Y))return null;this._updateMetrics([this._getPhysicalIndex(Y)]);this._positionItems();return null},
_manageFocus:function(){var Y=this._focusedVirtualIndex;Y>=0&&Y<this._virtualCount?this._isIndexRendered(Y)?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(Y){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(Y/this._itemsPerRow)*this._itemsPerRow:Y},
_isIndexRendered:function(Y){return Y>=this._virtualStart&&Y<=this._virtualEnd},
_isIndexVisible:function(Y){return Y>=this.firstVisibleIndex&&Y<=this.lastVisibleIndex},
_getPhysicalIndex:function(Y){return(this._physicalStart+(Y-this._virtualStart))%this._physicalCount},
focusItem:function(Y){this._focusPhysicalItem(Y)},
_focusPhysicalItem:function(Y){if(!(Y<0||Y>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(Y)||this.scrollToIndex(Y);var G=this._physicalItems[this._getPhysicalIndex(Y)],u=this.modelForElement(G),O;u.tabIndex=-100;G.tabIndex===-100&&(O=G);O||(O=_.ax(G).querySelector('[tabindex="-100"]'));u.tabIndex=0;this._focusedVirtualIndex=Y;O&&O.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 Y=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var G=this.stamp(null);this._focusBackfillItem=G.root.querySelector("*");this._itemsParent.appendChild(G.root)}this._offscreenFocusedItem=this._physicalItems[Y];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[Y]=this._focusBackfillItem;this._focusedPhysicalIndex=Y;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var Y=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),G=this._physicalItems[Y];if(G){var u=this.modelForElement(G),O=this.modelForElement(this._offscreenFocusedItem);u[this.as]===O[this.as]?(this._focusBackfillItem=G,u.tabIndex=-1,this._physicalItems[Y]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(Y){Y=this.modelForElement(Y.target);var G=this.modelForElement(this._focusedItem),u=this._offscreenFocusedItem!==null,O=this._focusedVirtualIndex;Y&&(G===Y?this._isIndexVisible(O)||this.scrollToIndex(O):(this._restoreFocusedItem(),G&&(G.tabIndex=-1),Y.tabIndex=0,this._focusedVirtualIndex=O=Y[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(O),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],u&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(Y){switch(Y.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&Y.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&&Y.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(Y)}},
_clamp:function(Y,G,u){return Math.min(u,Math.max(G,Y))},
_debounce:function(Y,G,u){this._debouncers=this._debouncers||{};this._debouncers[Y]=_.By(this._debouncers[Y],u,G.bind(this));_.$t(this._debouncers[Y])},
_forwardProperty:function(Y,G,u){Y._setPendingProperty(G,u)},
_forwardHostPropV2:function(Y,G){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(u){u&&this.modelForElement(u).forwardHostProp(Y,G)},this)},
_notifyInstancePropV2:function(Y,G,u){G0j(this.as,G)&&(Y=Y[this.indexAs],G==this.as&&(this.items[Y]=u),this.notifyPath(XP(this.as,"items."+Y,G),u))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(Y,G,u){G.indexOf(this.as+".")===0&&this.notifyPath("items."+Y.__key__+"."+G.slice(this.as.length+1),u)},
_forwardParentPath:function(Y,G){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(u){u&&this.modelForElement(u).notifyPath(Y,G)},this)},
_forwardParentProp:function(Y,G){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(u){u&&(this.modelForElement(u)[Y]=G)},this)},
_getActiveElement:function(){var Y=this._itemsParent.node.domHost;return _.ax(Y?Y.root:document).activeElement},
_scrollTargetChanged:function(Y,G){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(G)if(Y==="document")this.scrollTarget=this._doc;else if(typeof Y==="string"){var u,O;this.scrollTarget=(G=(O=(u=this.domHost)==null?void 0:u.polymerController)!=null?O:this.domHost)&&G.$?G.$[Y]:_.ax(this.ownerDocument).querySelector("#"+Y)}else this._isValidScrollTarget()&&(this._oldScrollTarget=Y,this._toggleScrollListener(this._shouldHaveListener,Y))}});var oSe;var iu2;var R$X=function(Y,G,u,O){Y-=u;G-=O;return Math.sqrt(Y*Y+G*G)},wGV=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
WAg.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var rKA=function(Y){Y.maxRadius=0;Y.mouseDownStart=0;Y.mouseUpStart=0;Y.xStart=0;Y.yStart=0;Y.xEnd=0;Y.yEnd=0;Y.containerMetrics=new WAg(Y.element)};
xR4.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var Y=wGV()-this.mouseDownStart;this.mouseUpStart&&(Y-=this.mouseUpElapsed);return Y},get mouseUpElapsed(){return this.mouseUpStart?wGV()-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 Y=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(Y*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-Y/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var Y=this.radius/(this.containerMetrics.size/2);var G=this.xNow-this.containerMetrics.width/2;var u=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+G+"px, "+u+"px)";this.waveContainer.style.transform="translate3d("+G+"px, "+u+"px, 0)";this.wave.style.webkitTransform="scale("+Y+","+Y+")";this.wave.style.transform="scale3d("+Y+","+Y+",1)"},
downAction:function(Y){var G=this.containerMetrics.width/2,u=this.containerMetrics.height/2;rKA(this);this.mouseDownStart=wGV();this.center?(this.xStart=G,this.yStart=u):(this.xStart=Y?Y.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=Y?Y.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=G,this.yEnd=u);Y=this.containerMetrics;G=this.xStart;u=this.yStart;this.maxRadius=Math.max(R$X(G,u,0,0),R$X(G,u,
Y.width,0),R$X(G,u,0,Y.height),R$X(G,u,Y.width,Y.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=wGV())},
remove:function(){_.ax(_.ax(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.Xf({_template:function(){if(iu2!==void 0)return iu2;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;oSe===void 0&&(oSe=document.createElement("template"));var O=oSe;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return iu2=Y},
is:"tp-yt-paper-ripple",behaviors:[_.Gp],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(){_.ax(this).parentNode.nodeType==11?this.keyEventTarget=_.ax(this).getOwnerRoot().host:this.keyEventTarget=_.ax(this).parentNode;var Y=this.keyEventTarget;this.listen(Y,"up","uiUpAction");this.listen(Y,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(Y){Y.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var Y=0;Y<this.ripples.length;++Y)if(!this.ripples[Y].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(Y){this.noink||this.downAction(Y)},
downAction:function(Y){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(Y),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(Y){this.noink||this.upAction(Y)},
upAction:function(Y){this.holdDown||(this.ripples.forEach(function(G){G.upAction(Y)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var Y=0;Y<this.ripples.length;++Y){var G=this.ripples[Y];G.isOpacityFullyDecayed&&!G.isRestingAtMaxRadius&&this.removeRipple(G)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var Y=new xR4(this);_.ax(this.$.waves).appendChild(Y.waveContainer);this.$.background.style.backgroundColor=Y.color;this.ripples.push(Y);this._setAnimating(!0);return Y},
removeRipple:function(Y){var G=this.ripples.indexOf(Y);G<0||(this.ripples.splice(G,1),Y.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var Y;for(Y=0;Y<this.ripples.length;++Y){var G=this.ripples[Y];G.draw();this.$.background.style.opacity=G.outerOpacity;G.isOpacityFullyDecayed&&!G.isRestingAtMaxRadius&&this.removeRipple(G)}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(Y,G){G!==void 0&&(Y?this.downAction():this.upAction())}});var y5={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(Y){OE._downHandler.call(this,Y);this.pressed&&this.ensureRipple(Y)},
ensureRipple:function(Y){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var G=this._rippleContainer||this.root;G&&_.ax(G).appendChild(this._ripple);if(Y){G=_.ax(this._rippleContainer||this);var u=_.ax(Y).rootTarget;G.deepContains(u)&&this._ripple.uiDownAction(Y)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(Y){this.hasRipple()&&(this._ripple.noink=Y)}};var ZuT={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 Y=1;this.disabled?Y=0:this.active||this.pressed?Y=4:this.receivedFocusFromKeyboard&&(Y=3);this._setElevation(Y)},
_computeKeyboardClass:function(Y){this.toggleClass("keyboard-focus",Y)},
_spaceKeyDownHandler:function(Y){OE._spaceKeyDownHandler.call(this,Y);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(Y){OE._spaceKeyUpHandler.call(this,Y);this.hasRipple()&&this._ripple.uiUpAction()}},D1T=[WJE,
_.uh,y5,ZuT];_.h$E={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(Y){Y&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=Y)},
_createRipple:function(){var Y=y5._createRipple();Y.id="ink";Y.setAttribute("center","");Y.classList.add("circle");return Y}};
_.d1k=[WJE,_.uh,y5,_.h$E];_.buI=[_.d1k,fKM,{_checkedChanged:function(){xzR._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){y5._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var SSe;var N0E;var j9X=function(){};
_.H=j9X.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(){};
j9X=_.Xf({_template:function(){if(N0E!==void 0)return N0E;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
var G=Y.content,u=G.insertBefore;SSe===void 0&&(SSe=document.createElement("template"));var O=SSe;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return N0E=Y},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[D1T],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?ZuT._calculateElevation.apply(this):this._setElevation(0)}});var Vql;var l0e;var B0I={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(Y){_.F("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(Y)},
_onDialogClickWrapped:function(Y){_.F("dialog_behavior_no_tap_killswitch")||this._onDialogClick(Y)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(Y,G){G&&(Y?(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(Y){if(Y){var G;((G=this.hostElement)!=null?G:this).setAttribute("aria-modal","true")}else{var u;((u=this.hostElement)!=null?u:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(Y){this.closingReason=this.closingReason||{};this.closingReason.confirmed=Y},
_onDialogClick:function(Y){for(var G=_.ax(Y).path,u=0,O,Q=G.indexOf((O=this.hostElement)!=null?O:this);u<Q;u++)if(O=G[u],O.hasAttribute&&(O.hasAttribute("dialog-dismiss")||O.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(O.hasAttribute("dialog-confirm"));this.close();Y.stopPropagation();break}}},$1X=[_.CM,
B0I];var qS4=document.createElement("template");_.r(qS4,'<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(qS4.content);var s9X=document.createElement("template");_.r(s9X,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(s9X.content);_.Xf({_template:function(){if(l0e!==void 0)return l0e;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
var G=Y.content,u=G.insertBefore;Vql===void 0&&(Vql=document.createElement("template"));var O=Vql;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return l0e=Y},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[$1X,ZyE],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 cm2;var U1M;_.Xf({_template:function(){if(U1M!==void 0)return U1M;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;cm2===void 0&&(cm2=document.createElement("template"));var O=cm2;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return U1M=Y},
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 Y,G,u;if(((Y=window.ShadyDOM)==null?void 0:Y.noPatch)!==!0&&((G=window.ShadyDOM)==null?void 0:G.noPatch)!=="on-demand"||((u=this.__shady_parentNode)==null?void 0:u.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(B0I)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var vST=_.hV(['<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>']),Jm_=_.bDX(vST);Jm_.setAttribute("style","display: none;");document.head.appendChild(Jm_.content);var YR4;var GjV;var u_T;var OV_;_.Xf({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[Tp],configure:function(Y){var G=Y.node,u=G.getBoundingClientRect().height;return this._effect=new KeyframeEffect(G,[{height:u/2+"px"},{height:u+"px"}],this.timingFromConfig(Y))}});
_.Xf({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[Tp],configure:function(Y){var G=Y.node,u=G.getBoundingClientRect().width;return this._effect=new KeyframeEffect(G,[{width:u/2+"px"},{width:u+"px"}],this.timingFromConfig(Y))}});
_.Xf({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[Tp],configure:function(Y){var G=Y.node,u=G.getBoundingClientRect().width;return this._effect=new KeyframeEffect(G,[{width:u+"px"},{width:u-u/20+"px"}],this.timingFromConfig(Y))}});
_.Xf({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[Tp],configure:function(Y){var G=Y.node,u=G.getBoundingClientRect().height;this.setPrefixedProperty(G,"transformOrigin","0 0");return this._effect=new KeyframeEffect(G,[{height:u+"px",transform:"translateY(0)"},{height:u/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(Y))}});var et={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},QO_=function(){};
_.H=QO_.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(){};
QO_=_.Xf({_template:function(){if(OV_!==void 0)return OV_;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;u_T===void 0&&(u_T=document.createElement("template"));var O=u_T;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return OV_=Y},
is:"tp-yt-paper-menu-button",behaviors:[_.Gp,_.uh],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:et.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:et.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:et.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 Y=_.ax(this.$.content).getDistributedNodes(),G=0,u=Y.length;G<u;G++)if(Y[G].nodeType===Node.ELEMENT_NODE)return Y[G]},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(Y,G){Y?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):G!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(Y){_.uh._disabledChanged.apply(this,arguments);Y&&this.opened&&this.close()},
__onIronOverlayCanceled:function(Y){var G=this.$.trigger;_.ax(Y.detail).path.indexOf(G)>-1&&Y.preventDefault()}});
Object.keys(et).forEach(function(Y){QO_[Y]=et[Y]});var MI_=_.Q5.IronButtonState,HV_=(0,_.H0)(HTMLElement);
_.Xf({_template:function(){if(GjV!==void 0)return GjV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;YR4===void 0&&(YR4=document.createElement("template"));var O=YR4;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return GjV=Y},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[MI_,_.uh,y5,_.MR,_.tK],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(Y){var G=(0,_.FP)(this);G.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:Y});G.shadowRoot.appendChild(Y);return HV_.prototype._attachDom.call(this,Y)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var Y=this.contentElement;Y&&Y.selectedItem&&this._setSelectedItem(Y.selectedItem)},
get contentElement(){for(var Y=_.ax(this.$.content).getDistributedNodes(),G=0,u=Y.length;G<u;G++)if(Y[G].nodeType===Node.ELEMENT_NODE)return Y[G]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(Y){this._setSelectedItem(Y.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(Y){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y)===this&&this.open()},
_selectedItemChanged:function(Y){var G="";Y?G=Y.label||Y.getAttribute("label")||Y.textContent.trim():G="";this.value=G;this._setSelectedItemLabel(G)},
_computeMenuVerticalOffset:function(Y,G){return G?G:Y?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var Y=this.opened?"true":"false",G=this.contentElement;G&&G.setAttribute("aria-expanded",Y)},
_computeLabelClass:function(Y,G,u){var O="label";if(Y)u&&(O+=" label-is-hidden");else if(u||G)O+=" label-is-floating";return O},
_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 E5R;var tIT;_.Xf({is:"tp-yt-paper-icon-button",_template:function(){if(tIT!==void 0)return tIT;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;E5R===void 0&&(E5R=document.createElement("template"));var O=E5R;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return tIT=Y},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.d1k],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(Y,G){var u=this.getAttribute("aria-label");u&&G!=u||this.setAttribute("aria-label",Y)}});var KVI;var auR;_.AK=[WJE,_.uh,{hostAttributes:{role:"option",tabindex:"0"}}];_.Xf({_template:function(){if(auR!==void 0)return auR;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;KVI===void 0&&(KVI=document.createElement("template"));var O=KVI;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return auR=Y},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.AK]});var TfX;var LVe;var g5e={attached:function(){this.fire("addon-attached")},
update:function(){}};var Xpe=1,PJl=1,IuX=1,kjl=[_.uh,_.Gp,{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();!d1&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(Y,G){Y?Y=Y+" "+G:Y=G;return Y},
_onAddonAttached:function(Y){Y=_.ax(Y).rootTarget;if(Y.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,Y.id);else{var G="paper-input-add-on-"+PJl++;Y.id=G;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,G)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(Y){_.uh._focusBlurHandler.call(this,Y);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var Y=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",Y);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(Y){try{var G=this.inputElement.selectionStart;this.value=Y;this.inputElement.selectionStart=G;this.inputElement.selectionEnd=G}catch(u){this.value=Y}},
_computeAlwaysFloatLabel:function(Y,G){return G||Y},
_updateAriaLabelledBy:function(){var Y=_.ax(this.root).querySelector("label");if(Y){if(Y.id)var G=Y.id;else G="paper-input-label-"+Xpe++,Y.id=G;this._ariaLabelledBy=G}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+IuX++)},
_onChange:function(Y){this.shadowRoot&&this.fire(Y.type,{sourceEvent:Y},{node:this,bubbles:Y.bubbles,cancelable:Y.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var Y=document.activeElement;Y instanceof HTMLElement&&Y!==document.body&&Y!==document.documentElement||this._focusableElement.focus()}}}];var n5I;var FVR;_.Xf({_template:function(){if(FVR!==void 0)return FVR;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;n5I===void 0&&(n5I=document.createElement("template"));var O=n5I;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return FVR=Y},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[g5e],properties:{_charCounterStr:{type:String,value:"0"}},update:function(Y){if(Y.inputElement){Y.value=Y.value||"";var G=Y.value.toString().length.toString();Y.inputElement.hasAttribute("maxlength")&&(G+="/"+Y.inputElement.getAttribute("maxlength"));this._charCounterStr=G}}});var ppE;var zbR;_.Xf({_template:function(){if(zbR!==void 0)return zbR;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;ppE===void 0&&(ppE=document.createElement("template"));var O=ppE;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return zbR=Y},
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 Kj(this.attrForValue)},get _inputElement(){return _.ax(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(Y){this._addons||(this._addons=[]);Y=Y.target;this._addons.indexOf(Y)===-1&&(this._addons.push(Y),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(Y){this._handleValueAndAutoValidate(Y.target)},
_onValueChanged:function(Y){var G=Y.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,G.value===void 0||G.value===""))return;this._handleValueAndAutoValidate(Y.target)},
_handleValue:function(Y){var G=this._inputElementValue;G||G===0||Y.type==="number"&&!Y.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:Y,value:G,invalid:this.invalid})},
_handleValueAndAutoValidate:function(Y){this.autoValidate&&Y&&(this.invalid=!(Y.validate?Y.validate(this._inputElementValue):Y.checkValidity()));this._handleValue(Y)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(Y){if(this._addons)for(var G,u=0;G=this._addons[u];u++)G.update(Y)},
_computeInputContentClass:function(Y,G,u,O,Q){var M="input-content";Y?(Q&&(M+=" label-is-hidden"),O&&!this.noUnfloatedLabelError&&(M+=" is-invalid")):(Y=this.querySelector("label"),G||Q?(M+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",O?M+=" is-invalid":u&&(M+=" label-is-highlighted")):(Y&&(this.$.labelAndInputContainer.style.position="relative"),O&&!this.noUnfloatedLabelError&&(M+=" is-invalid")));u&&(M+=" focused");return M},
_computeUnderlineClass:function(Y,G){var u="underline";G?u+=" is-invalid":Y&&(u+=" is-highlighted");return u},
_computeAddOnContentClass:function(Y,G){var u="add-on-content";G?u+=" is-invalid":Y&&(u+=" is-highlighted");return u}});var mOT;var WVR;_.Xf({_template:function(){if(WVR!==void 0)return WVR;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;mOT===void 0&&(mOT=document.createElement("template"));var O=mOT;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return WVR=Y},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[g5e],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(Y){this._setInvalid(Y.invalid)}});_.Xf({is:"tp-yt-paper-input",_template:function(){if(LVe!==void 0)return LVe;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;TfX===void 0&&(TfX=document.createElement("template"));var O=TfX;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return LVe=Y},
behaviors:[kjl,_.MR],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 rEE;var xOU;_.Xf({_template:function(){if(xOU!==void 0)return xOU;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=
Y.content,u=G.insertBefore;rEE===void 0&&(rEE=document.createElement("template"));var O=rEE;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return xOU=Y},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.AK]});var fuk;var CJU;_.Xf({_template:function(){if(CJU!==void 0)return CJU;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
var G=Y.content,u=G.insertBefore;fuk===void 0&&(fuk=document.createElement("template"));var O=fuk;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return CJU=Y},
is:"tp-yt-paper-item-body"});var yEk;var ebR;var AEM=function(){};
_.H=AEM.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(){};
AEM=_.Xf({_template:function(){if(ebR!==void 0)return ebR;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
var G=Y.content,u=G.insertBefore;yEk===void 0&&(yEk=document.createElement("template"));var O=yEk;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return ebR=Y},
is:"tp-yt-paper-listbox",behaviors:[AV2],hostAttributes:{role:"listbox"}});var o54;var iVk;var Rb_={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(Y,G){return[Y||G?"active":"",G?"cooldown":""].join(" ")},
__activeChanged:function(Y,G){this.__setAriaHidden(!Y);this.__coolingDown=!Y&&G},
__altChanged:function(Y){this.setAttribute("aria-label",Y||"loading")},
__setAriaHidden:function(Y){Y?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.Xf({_template:function(){if(iVk!==void 0)return iVk;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;o54===void 0&&(o54=document.createElement("template"));var O=o54;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return iVk=Y},
is:"tp-yt-paper-spinner",behaviors:[Rb_]});var wpV;var ZVU;_.Xf({_template:function(){if(ZVU!==void 0)return ZVU;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;wpV===void 0&&(wpV=document.createElement("template"));var O=wpV;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return ZVU=Y},
is:"tp-yt-paper-spinner-lite",behaviors:[Rb_]});var DOM;var hbI;_.Xf({_template:function(){if(hbI!==void 0)return hbI;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;DOM===void 0&&(DOM=document.createElement("template"));var O=DOM;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return hbI=Y},
is:"tp-yt-paper-tab",behaviors:[_.uh,_.Q5.IronButtonState,y5],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 Y=_.ax(this).parentNode;return!!Y&&!!Y.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(Y){if(this.link){var G=this.queryEffectiveChildren("a");G&&Y.target!==G&&G.click()}}});var dOI;var bVM;var SRT=_.hV(['<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>']),NfU=_.bDX(SRT);document.head.appendChild(NfU.content);_.Xf({_template:function(){if(bVM!==void 0)return bVM;var Y=document.createElement("template");_.r(Y,'\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<template is="dom-if" if="[[!slottedScrollButtons]]" class="style-scope tp-yt-paper-tabs">\n  <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</template>\n<template is="dom-if" if="[[slottedScrollButtons]]" class="style-scope tp-yt-paper-tabs">\n  <div class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown">\n    <slot name="left-scroll-button" class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</template>\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<template is="dom-if" if="[[!slottedScrollButtons]]" class="style-scope tp-yt-paper-tabs">\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</template>\n<template is="dom-if" if="[[slottedScrollButtons]]" class="style-scope tp-yt-paper-tabs">\n  <div class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown">\n    <slot name="right-scroll-button" class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</template>\n');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;dOI===void 0&&(dOI=document.createElement("template"));var O=dOI;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return bVM=Y},
is:"tp-yt-paper-tabs",behaviors:[_.aZ,_.iyM],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},slottedScrollButtons:{type:Boolean,value:!1}},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(Y){_.ax(this).querySelectorAll("tp-yt-paper-tab").forEach(Y?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(Y){Y.setAttribute("noink","")},
_removeNoinkAttribute:function(Y){Y.removeAttribute("noink")},
_computeScrollButtonClass:function(Y,G,u,O){return!G||u?"hidden":Y?O?"hidden":"not-visible":""},
_computeTabsContentClass:function(Y,G){var u="tabs-content";Y&&(u+=" scrollable");if(!Y||G)u+=" fit-container";return u},
_computeSelectionBarClass:function(Y,G){var u="selection-bar";Y?u+=" hidden":G&&(u+=" align-bottom");return u},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(Y){return""+Y},
_onIronSelect:function(Y){this._tabChanged(Y.detail.item,this._previousTab);this._previousTab=Y.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();_.KM._activateHandler.apply(this,arguments)},
_scheduleActivation:function(Y,G){this._pendingActivationItem=Y;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,G)},
_delayedActivationHandler:function(){var Y=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;Y.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(Y){Y.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(Y,G){this.scrollable&&this._affectScroll(G&&-G.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(Y){this.$.tabsContainer.scrollLeft+=Y;Y=this.$.tabsContainer.scrollLeft;this._leftHidden=Y===0||this.hideScrollButtons;this._rightHidden=Y===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(Y,G){if(Y){var u=this.$.tabsContent.getBoundingClientRect(),O=u.width,Q=Y.getBoundingClientRect();u=Q.left-u.left;this._pos={width:this._calcPercent(Q.width,O),left:this._calcPercent(u,O)};if(this.noSlide||G==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var M=G.getBoundingClientRect();G=this.items.indexOf(G);Y=this.items.indexOf(Y);this.$.selectionBar.classList.add("expand");
Y=G<Y;this._isRTL&&(Y=!Y);Y?this._positionBar(this._calcPercent(Q.left+Q.width-M.left,O)-5,this._left):this._positionBar(this._calcPercent(M.left+M.width-Q.left,O)-5,this._calcPercent(u,O)+5);this.scrollable&&this._scrollToSelectedIfNeeded(Q.width,u)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(Y,G){G-=this.$.tabsContainer.scrollLeft;G<0?this.$.tabsContainer.scrollLeft+=G:(G+=Y-this.$.tabsContainer.offsetWidth,G>0&&(this.$.tabsContainer.scrollLeft+=G))},
_calcPercent:function(Y,G){return 100*Y/G},
_positionBar:function(Y,G){Y=Y||0;G=G||0;this._width=Y;this._left=G;this.transform("translateX("+G+"%) scaleX("+Y/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var Y=this.$.selectionBar.classList;Y.contains("expand")?(Y.remove("expand"),Y.add("contract"),this._positionBar(this._pos.width,this._pos.left)):Y.contains("contract")&&Y.remove("contract")}});var jOU;var VII;_.Xf({_template:function(){if(VII!==void 0)return VII;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;jOU===void 0&&(jOU=document.createElement("template"));var O=jOU;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return VII=Y},
is:"tp-yt-paper-textarea",behaviors:[kjl,_.MR],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(Y){this.$.input.textarea.selectionStart=Y},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(Y){this.$.input.textarea.selectionEnd=Y},_ariaLabelledByChanged:function(Y){this._focusableElement.setAttribute("aria-labelledby",Y)},
_ariaDescribedByChanged:function(Y){this._focusableElement.setAttribute("aria-describedby",Y)},
get _focusableElement(){return this.inputElement.textarea}});var luV;var Bfk;/*

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 $O1=function(){};
_.H=$O1.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(){};
$O1=_.Xf({is:"tp-yt-paper-toggle-button",_template:function(){if(Bfk!==void 0)return Bfk;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;luV===void 0&&(luV=document.createElement("template"));var O=luV;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return Bfk=Y},
behaviors:[_.buI],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");_.sk(this,function(){_.R3(this,"pan-y")})},
_ontrack:function(Y){Y=Y.detail;Y.state==="start"?this._trackStart(Y):Y.state==="track"?this._trackMove(Y):Y.state==="end"&&this._trackEnd(Y)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(Y){Y=Y.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+Y:Y)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+Y:Y));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 Y=y5._createRipple();Y.id="ink";Y.setAttribute("recenters","");Y.classList.add("circle","toggle-ink");return Y}});var qRR;var sOl;_.Xf({_template:function(){if(sOl!==void 0)return sOl;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;qRR===void 0&&(qRR=document.createElement("template"));var O=qRR;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return sOl=Y},
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 Y=_.ax(this).parentNode,G=_.ax(this).getOwnerRoot(),u;this.for?u=_.ax(G).querySelector("#"+this.for):u=Y.nodeType==Node.DOCUMENT_FRAGMENT_NODE?G.host:Y;return u},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(Y){Y==="entry"?this.show():Y==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.ax(this).textContent.trim()===""){for(var Y=!0,G=_.ax(this).getEffectiveChildNodes(),u=0;u<G.length;u++)if(G[u].textContent.trim()!==""){Y=!1;break}if(Y)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 Y=this.offset;this.marginTop!=14&&this.offset==14&&(Y=this.marginTop);var G=this.offsetParent.getBoundingClientRect(),u=this._target.getBoundingClientRect(),O=this.getBoundingClientRect(),Q=(u.width-O.width)/2,M=(u.height-O.height)/2,t=u.left-G.left,K=u.top-G.top;switch(this.position){case "top":var L=t+Q;var g=K-O.height-Y;break;case "bottom":L=t+Q;g=K+u.height+Y;break;case "left":L=t-O.width-Y;g=K+M;break;case "right":L=t+u.width+
Y,g=K+M}this.fitToVisibleBounds?(G.left+L+O.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,L)+"px",this.style.right="auto"),G.top+g+O.height>window.innerHeight?(this.style.bottom=G.height+"px",this.style.top="auto"):(this.style.top=Math.max(-G.top,g)+"px",this.style.bottom="auto")):(this.style.left=L+"px",this.style.top=g+"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(Y){Y!==500&&this.updateStyles({"--paper-tooltip-delay-in":Y+"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(Y){if(Y==="entry"&&this.animationEntry!=="")return this.animationEntry;if(Y==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[Y]&&typeof this.animationConfig[Y][0].name==="string"){if(this.animationConfig[Y][0].timing&&this.animationConfig[Y][0].timing.delay&&this.animationConfig[Y][0].timing.delay!==0){var G=this.animationConfig[Y][0].timing.delay;Y==="entry"?this.updateStyles({"--paper-tooltip-delay-in":G+"ms"}):Y==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":G+
"ms"})}return this.animationConfig[Y][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 cER=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(cER,_.Ps);var UOU=_.yG(cER,[0,_.ca]);var oZ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(oZ,_.Ps);var v5M=[3,4],JE2=[5,6];var Y9E=[0,v5M,JE2,_.US,-1,_.$U,_.vG,-1,X8k,P3V];var GMT=_.yG(oZ,Y9E),ud1=_.Az(Y9E);var OaT=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(OaT,_.Ps);var QPE=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(QPE,_.Ps);var MbR=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(MbR,_.Ps);var Ha_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Ha_,_.Ps);var EDI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(EDI,_.Ps);var ih=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(ih,_.Ps);ih.prototype.getSource=function(){return _.mK(this,1)};
ih.prototype.getMessage=function(){return _.zy(this,4)};
ih.prototype.getData=function(){return _.QH(this,EDI,8)};var tb1=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(tb1,_.Ps);var RZ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(RZ,_.Ps);var wx=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(wx,_.Ps);var Zh=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Zh,_.Ps);Zh.prototype.getUrl=function(){return _.zy(this,1)};
Zh.prototype.setUrl=function(Y){return _.E_(this,1,Y)};
Zh.prototype.hasUrl=function(){return _.AB(_.Kc(this,1))!=null};var KjM=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(KjM,_.Ps);var aJ4=[3];var TdI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(TdI,_.Ps);var Dh=function(Y){var G=new TdI;return _.MC(G,2,Y)};
TdI.prototype.getLanguage=function(){return rQ(this,4,hK)};
var LjR=function(Y){var G=Dh(1);return _.wT(G,6,hK,Y)},hK=[3,
4,5,6];var gD_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(gD_,_.Ps);var dx=function(Y){var G=new gD_;return _.MC(G,1,Y)},bh=function(Y,G){return _.wT(Y,2,Xvl,G)},Xvl=[2,
3,4,5];var PuX=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(PuX,_.Ps);var St=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(St,_.Ps);var IJR=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(IJR,_.Ps);var kMl=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(kMl,_.Ps);var nDI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(nDI,_.Ps);var FjI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(FjI,_.Ps);var pvM=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(pvM,_.Ps);var zWV=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(zWV,_.Ps);var NR=function(Y){return _.QH(Y,wx,5)};var m$E=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(m$E,_.Ps);m$E.prototype.getValue=function(){return FU(this,1)};var Wj1=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Wj1,_.Ps);var jt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(jt,_.Ps);jt.prototype.getMetadata=function(){return _.fc(this,FjI,7,V5)};
jt.prototype.hasMetadata=function(){return _.Ty(this,FjI,7,V5)};
var rtR=_.axj(jt),V5=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];var lh=function(Y){this.JSC$12502_name_=Y;this.files_=[];this.directories_=[];this.directoryMap_={}};
lh.prototype.getName=function(){return this.JSC$12502_name_};var $c=function(Y,G){this.callback_=G;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new lh("");x$1(this,Y,this.rootDirectory_);BT(this)},x$1=function(Y,G,u){for(var O=0;O<G.length;O++){var Q=G[O];
Q.isFile?(Y.fileOps_++,Q.file((0,_.tP)(Y.handleFileSuccess_,Y,u),(0,_.tP)(Y.handleFileError_,Y))):Y.unscannedDirectories_.push(new fJR(Q,u))}},BT=function(Y){if(Y.unscannedDirectories_.length>0&&Y.directoryOps_<5&&!Y.hasError_){Y.directoryOps_++;
var G=Y.unscannedDirectories_.shift(),u=G.entry,O=new lh(u.name);G=G.parent;G.directoryMap_[O.getName()]=O;G.directories_.push(O);u=u.createReader();u.readEntries((0,_.tP)(Y.handleDirectorySuccess_,Y,u,O),(0,_.tP)(Y.handleDirectoryError_,Y))}Y.directoryOps_!=0||Y.fileOps_!=0||Y.unscannedDirectories_.length!=0&&!Y.hasError_||Y.callback_(Y.rootDirectory_.files_,Y.rootDirectory_.directories_,Y.hasError_)};
$c.prototype.handleDirectorySuccess_=function(Y,G,u){x$1(this,u,G);u.length==0?(this.directoryOps_--,BT(this)):Y.readEntries((0,_.tP)(this.handleDirectorySuccess_,this,Y,G),(0,_.tP)(this.handleDirectoryError_,this))};
$c.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;BT(this)};
$c.prototype.handleFileSuccess_=function(Y,G){Y.files_.push(G);this.fileOps_--;BT(this)};
$c.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;BT(this)};
var fJR=function(Y,G){this.entry=Y;this.parent=G};var qR=function(Y){_.C7.call(this);_.yn(Y,"drop",this.onObjectsDropped_,!1,this);_.yn(Y,"dragenter",this.onFilesDragged_,!1,this);_.yn(Y,"dragover",this.onFilesDragged_,!1,this);_.yn(Y,"dragleave",this.onDragLeave_,!1,this);_.yn(Y,"dragend",this.onDragLeave_,!1,this)};
_.qz(qR,_.C7);var Cu4=function(Y,G){_.lI.call(this,"f");this.files=Y;this.directories=G};
_.qz(Cu4,_.lI);var yte=function(){_.lI.call(this,"h")};
_.qz(yte,_.lI);var eW4=function(){_.lI.call(this,"i")};
_.qz(eW4,_.lI);var Atl=function(){_.lI.call(this,"g")};
_.qz(Atl,_.lI);qR.prototype.onObjectsDropped_=function(Y){var G=this;Y.preventDefault();var u=Y.event_.dataTransfer;if((Y=u&&u.items)&&Y.length>0&&Y[0].webkitGetAsEntry){u=[];for(var O=[],Q=0;Q<Y.length;Q++){var M=Y[Q].webkitGetAsEntry();M?u.push(M):O.push(Y[Q])}new $c(u,function(t,K,L){L?G.dispatchEvent(new Atl("Error occurred while reading from the file system.")):G.dispatchEvent(new Cu4(t,K,O))})}else(Y=u&&u.files)&&this.dispatchEvent(new Cu4(Array.from(Y),[]))};
qR.prototype.onFilesDragged_=function(Y){Y.type==="dragenter"&&this.dispatchEvent(new yte);Y.preventDefault()};
qR.prototype.onDragLeave_=function(){this.dispatchEvent(new eW4)};var oD2=function(Y,G){this.JSC$12525_name_=Y;this.inputElement_=G};
oD2.prototype.getName=function(){return this.JSC$12525_name_};
oD2.prototype.getInputElement=function(){return this.inputElement_};var sE=function(Y,G,u){G=G===void 0?"single_file":G;u=u===void 0?[]:u;_.C7.call(this);this.overlayTarget_=Y;this.parentOverlay_=Y!=null?Y.parentNode:_.uI("scotty-overlay-parent");this.selectorType_=G;this.acceptTypes_=u;this.overlay_=iaR(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.m(sE,_.C7);
var iaR=function(Y,G,u,O){var Q=document.createElement("input");Q.setAttribute("type","file");Q.setAttribute("name","Filedata");_.yn(Q,"change",Y.onFilesSelected_,!1,Y);u==="multiple_file"&&(Q.multiple="true");u==="single_directory"&&(Q.webkitdirectory="true");O.length>0&&Q.setAttribute("accept",O.join(","));Q.style.position="absolute";Q.style.overflow="hidden";Q.style.height="0px";Q.style.width="0px";Q.style.opacity="0";Q.setAttribute("aria-hidden","true");Q.setAttribute("tabIndex",-1);if(Y.overlayTarget_!=
null)return Q.style.height=G.offsetHeight+"px",Q.style.width=G.offsetWidth+"px",Y.parentOverlay_&&(Y.parentOverlay_.style.position="relative"),_.o9(Q,G),D0(Q,new _.AD(G.offsetLeft,G.offsetTop)),Q;Y.parentOverlay_.appendChild(Q);return Q};
sE.prototype.click=function(){this.overlay_.click()};
sE.prototype.onFilesSelected_=function(Y){a:{try{var G=(new XMLHttpRequest).upload!==void 0;break a}catch(g){}G=!1}if(G){var u;Y=Array.from((u=Y.target.files)!=null?u:[]);u=[];if(this.selectorType_==="single_directory"&&(_.Mt||s5||_.Hc)){u=new lh("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(G=0;G<Y.length;G++)for(var O=Y[G],Q=O.webkitRelativePath.split("/"),M=u,t=0;t<Q.length;t++){var K=Q[t];if(t==Q.length-1){K!="."&&M.files_.push(O);break}var L=M.directoryMap_[K];L==void 0&&(K=
L=new lh(K),M.directoryMap_[K.getName()]=K,M.directories_.push(K));M=L}u=u.directories_}this.dispatchEvent(new RWR(Y,u,null))}else Y=Y.target.value,Y.match(/^c:\\fakepath\\/i)&&(Y=Y.substring(12)),this.dispatchEvent(new RWR([],[],new oD2(Y,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=iaR(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var RWR=function(Y,G){_.lI.call(this,"j");this.files=Y;this.directories=G};
_.m(RWR,_.lI);var wve=function(Y){this.uploadUrl_=Y};var ZaR=function(){_.C7.call(this)};
_.qz(ZaR,_.C7);var cT=function(Y){_.lI.call(this,Y)};
_.qz(cT,_.lI);var UE=function(Y){_.lI.call(this,Y)};
_.qz(UE,_.lI);var D$R=function(Y,G,u,O,Q){_.C7.call(this);u=document.createElement("form");u.setAttribute("method",G);u.setAttribute("enctype","multipart/form-data");u.setAttribute("encoding","multipart/form-data");G=document.createElement("input");G.setAttribute("type","hidden");G.setAttribute("name","metadata");G.setAttribute("value",Q);u.appendChild(G);u.appendChild(O);this.JSC$12542_form_=u;Y=new _.Rx(Y);_.NA(Y,"upload_protocol","multipart");this.JSC$12542_url_=Y.toString();this.JSC$12542_request_=new X1;this.state_=
"Ready";this.JSC$12542_errorDescription_=null;this.JSC$12542_eventHandler_=new _.ae(this);_.vF(this,this.JSC$12542_eventHandler_);this.JSC$12542_eventHandler_.listen(this.JSC$12542_request_,"success",this.onTransferSuccess_);this.JSC$12542_eventHandler_.listen(this.JSC$12542_request_,"error",this.onTransferError_)};
_.m(D$R,ZaR);_.H=D$R.prototype;_.H.run=function(){this.state_="Transferring";var Y=this.JSC$12542_request_,G=this.JSC$12542_form_;if(Y.JSC$11809_active_)throw Error("ue");var u=new _.Rx(this.JSC$12542_url_||G.action);Y.JSC$11809_form_=G;G=Y.JSC$11809_form_;u=_.Jz(u.toString());u!==void 0&&(G.action=u);$vV(Y)};
_.H.getResponseCode=function(){return null};
_.H.getResponseText=function(){return this.JSC$12542_request_&&this.JSC$12542_request_.getResponseText()||null};
_.H.JSC$30611_getErrorDescription=function(){return this.JSC$12542_errorDescription_};
_.H.cancel=function(){this.JSC$12542_request_&&this.JSC$12542_request_.abort();this.state_="Cancelled";this.dispatchEvent(new cT("o"))};
_.H.pause=function(){};
_.H.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new cT("l"))};
_.H.onTransferError_=function(){this.JSC$12542_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new cT("n"))};var vT=function(){_.CV.call(this)};
_.m(vT,_.CV);vT.prototype.createXhr=function(){var Y=_.CV.prototype.createXhr.call(this);Y.upload&&(Y.upload.onprogress=(0,_.tP)(this.onProgress_,this));return Y};
vT.prototype.onProgress_=function(Y){this.dispatchEvent(Y)};var hW2=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},baE=function(Y,G){var u=Y.attempt_+1;
if(Y.maxAttempts_>0&&u>Y.maxAttempts_)return!1;u==0?G():Y.delayCallId_=rf(function(){Y.delayCallId_=null;G()},d$E(Y),Y);
Y.attempt_=u;return!0};
hW2.prototype.reset=function(){this.delayCallId_&&_.OI.clearTimeout(this.delayCallId_);this.attempt_=-1};
var d$E=function(Y){var G=250*Math.pow(2,Y.attempt_);Y.maxDelayMs_>=0&&(G=Math.min(G,Y.maxDelayMs_));return G};var Cht=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var JK=function(){_.C7.call(this);this.JSC$12552_request_=this.state_=null;this.JSC$12552_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12552_bytesTransferred_=0;this.retryIterator_=new hW2;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12552_errorDescription_=null;this.JSC$12552_eventHandler_=new _.ae(this);_.vF(this,this.JSC$12552_eventHandler_);this.JSC$12552_url_=this.blob_=null;this.JSC$12552_method_=void 0;this.chunkSize_=this.JSC$12552_metadata_=
this.JSC$12552_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12552_responseText_=this.JSC$12552_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.qz(JK,ZaR);_.H=JK.prototype;_.H.run=function(){Yw(this)};
_.H.getResponseCode=function(){return this.JSC$12552_responseCode_};
_.H.getResponseText=function(){return this.JSC$12552_responseText_};
_.H.JSC$30611_getErrorDescription=function(){return this.JSC$12552_errorDescription_};
_.H.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12552_eventHandler_.removeAll();this.JSC$12552_request_&&this.JSC$12552_request_.abort();this.retryIterator_.reset();var Y=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(Y==="Upload"||Y==="Query")Y=new vT,Y.JSC$10117_withCredentials_=this.JSC$12552_withCredentials_,Y.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12552_bytesTransferred_=
0;this.dispatchEvent(new cT("o"))}};
_.H.pause=function(){this.pauseRequested_=!0};
var Yw=function(Y){var G=Y.state_;Y.pauseRequested_?(Y.pauseRequested_=!1,Y.stateAfterUnpausing_=G,Y.state_="Paused"):baE(Y.retryIterator_,function(){switch(Y.state_){case "Start":Y.JSC$12552_request_=new vT;var u=_.gX.clone(Y.JSC$12552_headers_);Y.blob_.size!=null&&(u["Content-Length"]=Y.blob_.size);u=yKU(u);u["X-Goog-Upload-Protocol"]="resumable";u["X-Goog-Upload-Command"]="start";Y.JSC$12552_eventHandler_.removeAll();Y.JSC$12552_eventHandler_.listen(Y.JSC$12552_request_,"complete",Y.onStartComplete_);
Y.JSC$12552_request_.JSC$10117_withCredentials_=Y.JSC$12552_withCredentials_;Y.JSC$12552_request_.send(Y.JSC$12552_url_,Y.JSC$12552_method_,Y.JSC$12552_metadata_,u);Y.lastCommandResponseCode_=null;Y.dispatchEvent(new UE("q"));break;case "Upload":u=Y.transferHandle_.uploadUrl_;var O=Y.blob_.size;if(hI_()){var Q=Y.chunkSize_;var M=Y.offset_+Q>=O;O=DZX(Y.blob_,Y.offset_,M?O:Y.offset_+Q)}else Y.offset_=0,O=Y.blob_,M=!0;Y.JSC$12552_request_=new vT;Y.JSC$12552_request_.JSC$10117_withCredentials_=Y.JSC$12552_withCredentials_;
Y.JSC$12552_eventHandler_.removeAll();Y.JSC$12552_eventHandler_.listen(Y.JSC$12552_request_,"progress",Y.onUploadProgress_);Q=(0,_.tP)(Y.JSC$12554_onUploadComplete_,Y,Y.offset_+O.size,M);Y.JSC$12552_eventHandler_.listen(Y.JSC$12552_request_,"complete",Q);Y.lastCommandResponseCode_=null;Y.dispatchEvent(new UE("q"));M=Object.assign({},Y.JSC$12552_headers_||{},{"X-Goog-Upload-Command":"upload"+(M?", finalize":""),"X-Goog-Upload-Offset":Y.offset_});Y.JSC$12552_request_.send(u,"POST",O,M);break;case "Query":Y.JSC$12552_request_=
new vT;Y.JSC$12552_eventHandler_.removeAll();Y.JSC$12552_eventHandler_.listen(Y.JSC$12552_request_,"complete",Y.onQueryComplete_);u=Object.assign({},Y.JSC$12552_headers_||{},{"X-Goog-Upload-Command":"query"});Y.JSC$12552_request_.send(Y.transferHandle_.uploadUrl_,"POST","",u);Y.lastCommandResponseCode_=null;Y.dispatchEvent(new UE("q"));break;default:throw Error("mf");}})||GG(Y,"Transfer encountered too many consecutive failures.")},GG=function(Y,G){Y.state_="Error";
Y.JSC$12552_errorDescription_=G;Y.dispatchEvent(new cT("n"))};
JK.prototype.onStartComplete_=function(Y){var G=Y.target;this.lastCommandResponseCode_=G.getStatus();this.dispatchEvent(new UE("r"));if(S92(G))NdE(this,G);else if(jPX(G)){Y=qA(Y.target.getAllResponseHeaders());for(var u in Y)_.EI(u.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new cT("m"));u=LX(Y,"X-Goog-Upload-URL");Y=(Y=LX(Y,"X-Goog-Upload-Chunk-Granularity"))?parseInt(Y,10):1;u===void 0||isNaN(Y)||Y<=0?GG(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
Y)*Y,this.transferHandle_=new wve(u),this.dispatchEvent(new cT("p")),this.state_="Upload",this.retryIterator_.reset(),Yw(this))}else Yw(this)};
JK.prototype.onUploadProgress_=function(Y){this.JSC$12552_bytesTransferred_=this.offset_+Y.loaded;this.dispatchEvent(new cT("k"))};
JK.prototype.JSC$12554_onUploadComplete_=function(Y,G,u){var O=this,Q,M;return _.a(function(t){switch(t.nextAddress){case 1:Q=u.target;O.lastCommandResponseCode_=Q.getStatus();O.dispatchEvent(new UE("r"));if(Vbe(Q)||Q.getStatus()==404)return O.JSC$12552_bytesTransferred_=Y,NdE(O,Q),t.return();if(jPX(Q)){t.jumpTo(2);break}if(!(M=O.detectCorruptedBlobEnabled_)){t.jumpTo(3);break}return t.yield(lJk(O),4);case 4:M=t.yieldResult;case 3:if(M)return GG(O,"Blob has been modified or corrupted."),t.return();
O.requireUploadRequestModification_=Q.getStatus()==400;O.state_="Query";Yw(O);return t.return();case 2:if(G)return GG(O,"Got a non-final success response after issuing a finalize command."),t.return();O.JSC$12552_bytesTransferred_=Y;O.offset_=Y;O.retryIterator_.reset();Yw(O);return t.return()}})};
JK.prototype.onQueryComplete_=function(Y){var G=Y.target;this.lastCommandResponseCode_=G.getStatus();this.dispatchEvent(new UE("r"));S92(G)?(G.getStatus()===200&&(this.JSC$12552_bytesTransferred_=this.blob_.size),NdE(this,G)):jPX(G)?(Y=qA(Y.target.getAllResponseHeaders()),Y=parseInt(LX(Y,"X-Goog-Upload-Size-Received"),10),isNaN(Y)?GG(this,"Server did not respond with current offset."):Y<this.offset_?GG(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
Y+"."):this.requireUploadRequestModification_&&this.offset_===Y?GG(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<Y&&this.retryIterator_.reset(),this.offset_=this.JSC$12552_bytesTransferred_=Y,this.state_="Upload",Yw(this))):Yw(this)};
var NdE=function(Y,G){Y.JSC$12552_responseCode_=G.getStatus();var u=qA(G.getAllResponseHeaders());ehj(u);Y.JSC$12552_responseText_=G.getResponseText();Y.state_="Response received";Y.dispatchEvent(new cT("l"))},jPX=function(Y){var G=Y.getStatus();
Y=qA(Y.getAllResponseHeaders());Y=LX(Y,"X-Goog-Upload-Status");return G===200&&Y==="active"},Vbe=function(Y){Y=qA(Y.getAllResponseHeaders());
return LX(Y,"X-Goog-Upload-Status")==="final"},S92=function(Y){if(Vbe(Y))return!0;
Y=Y.getStatus();return Y>=400&&Y<500},lJk=function(Y){var G;
return _.a(function(u){if(u.nextAddress==1){if(!Y.blob_||Y.originalBlobSize_<=0)return u.return(!1);if(Y.blob_.size!==Y.originalBlobSize_)return u.return(!0);_.i3(u,2);if(G=DZX(Y.blob_,0,1)){var O=u.yield,Q=new kp,M=trX(Q);Q.reader_.readAsBinaryString(G);u=O.call(u,M,4)}else u=u.return(!0);return u}if(u.nextAddress!=2)return u.return(Y.blob_.size!==Y.originalBlobSize_);_.b3(u);return u.return(!0)})};var BdT=function(Y,G,u,O,Q,M){_.C7.call(this);this.payload_=O;this.JSC$12555_url_=Y;this.JSC$12555_method_=G;this.JSC$12555_headers_=u;this.JSC$12555_metadata_=Q;this.encoding_=M||"binary";Y=new _.tg;this.boundary_="uploader-"+dU()+"-"+Y.JSC$11661_toIsoString();this.JSC$12555_responseText_=this.JSC$12555_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12555_errorDescription_=null;this.JSC$12555_eventHandler_=new _.ae(this);_.vF(this,this.JSC$12555_eventHandler_)};
_.m(BdT,ZaR);_.H=BdT.prototype;
_.H.run=function(){var Y=_.gX.clone(this.JSC$12555_headers_);this.payload_.length!=null&&(Y["Content-Length"]=this.payload_.length);Y=yKU(Y);Y["X-Goog-Upload-Protocol"]="multipart";Y["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new vT;this.JSC$12555_eventHandler_.removeAll();this.JSC$12555_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12555_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12555_url_,this.JSC$12555_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12555_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",Y)};
_.H.getResponseCode=function(){return this.JSC$12555_responseCode_};
_.H.getResponseText=function(){return this.JSC$12555_responseText_};
_.H.JSC$30611_getErrorDescription=function(){return this.JSC$12555_errorDescription_};
_.H.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12555_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new cT("o")))};
_.H.pause=function(){};
_.H.onTransferProgress_=function(){this.dispatchEvent(new cT("k"))};
_.H.onTransferComplete_=function(Y){var G=Y.target.getStatus();G===void 0||G===-1?(this.JSC$12555_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new cT("n"))):(this.JSC$12555_responseCode_=G,Y=Y.target,G=qA(Y.getAllResponseHeaders()),ehj(G),this.JSC$12555_responseText_=Y.getResponseText(),this.state_="Complete",this.dispatchEvent(new cT("l")))};_.$$k=function(Y,G,u,O){O=O===void 0?!1:O;if(u instanceof oD2)return new D$R(Y,"POST",G,u.getInputElement(),"");if(typeof u==="string"||u instanceof String)return new BdT(Y,"POST",G,u,"");var Q=new JK(void 0);Q.JSC$12552_url_=Y;Q.JSC$12552_method_="POST";Q.JSC$12552_headers_=G;Q.blob_=u;Q.originalBlobSize_=u.size;Q.JSC$12552_metadata_="";O&&(Q.JSC$12552_withCredentials_=O);Q.state_="Start";return Q};var ua=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(ua,_.Ps);_.H=ua.prototype;_.H.getEnableSsEngine=function(){return _.nc(this,2)};
_.H.getEnableAwr=function(){return _.nc(this,3)};
_.H.getAlohaAutoGaRollout=function(){return _.nc(this,5)};
_.H.getEnableConfigurator=function(){return _.nc(this,6)};
_.H.getEnableMweb=function(){return _.nc(this,7)};
var sPk=function(){var Y=q9V();return _.P$(Y,7,!0)};
ua.prototype.getEnableCtlConsentCheckbox=function(){return _.nc(this,8)};
ua.prototype.getEnableIframe=function(){return _.nc(this,9)};
var q9V=function(){var Y=new ua;Y=_.P$(Y,5,!0);Y=_.P$(Y,2,!0);Y=_.P$(Y,4,!1);Y=_.P$(Y,8,!0);return _.P$(Y,9,!0)};
ua.prototype.getEnableScreenshotNudge=function(){return _.nc(this,10)};
var ct1=function(){var Y=sPk();return _.P$(Y,10,!0)};
ua.prototype.getEnableWebStartupConfigEndpoint=function(){return _.nc(this,11)};
ua.prototype.getEnableJunkNudge=function(){return _.nc(this,12)};
var sZy=function(){var Y=ct1();return _.P$(Y,12,!0)};
_.H=ua.prototype;_.H.getEnableConfiguratorLocale=function(){return _.nc(this,13)};
_.H.getEnableTinyNoPointer=function(){return _.nc(this,14)};
_.H.getEnableSupportSessionLogging=function(){return _.nc(this,15)};
_.H.getEnableFileUploadForScreenshot=function(){return _.nc(this,16)};
_.H.getEnableDirectDeflectionForSingleCategory=function(){return _.nc(this,17)};
_.H.getEnableImageSanitization=function(){return _.nc(this,18)};
_.H.getEnableAlohaBinarySplit=function(){return _.nc(this,19)};
_.H.getEnableDbFeedbackIntents=function(){return _.nc(this,20)};
_.H.getEnableMarkMandatoryFieldsWithRequired=function(){return _.nc(this,21)};
_.H.getEnableFeedbackCategoryCustomUi=function(){return _.nc(this,22)};
_.H.getEnableRealtimeCtl=function(){return _.nc(this,23)};var qEy=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(qEy,_.Ps);var AKA=[/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 iMy="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 RhA=_.hV(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),wTy=_.hV(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var gJ=function(){var Y=Error.call(this,"Form is either loading or already opened");this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.name="DuplicateFormError"};
_.m(gJ,Error);var DRu,bMA,hhg,SEI;var OL,U$R;
OL=function(Y,G,u){Y.timeOfStartCall=(new Date).getTime();var O=u||_.OI,Q=O.document,M=Y.nonce||_.aA(O.document);M&&!Y.nonce&&(Y.nonce=M);if(Y.flow=="help"){var t=_.So("document.location.href",O);!Y.helpCenterContext&&t&&(Y.helpCenterContext=t.substring(0,1200));t=!0;if(G&&JSON&&JSON.stringify){var K=JSON.stringify(G);(t=K.length<=1200)&&(Y.psdJson=K)}t||(G={invalidPsd:!0})}G=[Y,G,u];O.GOOGLE_FEEDBACK_START_ARGUMENTS=G;u=Y.feedbackServerUri||"//www.google.com/tools/feedback";if(t=O.GOOGLE_FEEDBACK_START)t.apply(O,G);
else{O=u+"/load.js?";for(var L in Y)G=Y[L],G==null||_.$a(G)||(O+=encodeURIComponent(L)+"="+encodeURIComponent(G)+"&");Y=HF(Q).createElement("SCRIPT");M&&Y.setAttribute("nonce",M);_.P8(Y,_.dT(O));Q.body.appendChild(Y)}};
U$R=function(Y,G,u,O){var Q,M;return _.a(function(t){Q=u||_.OI;var K=Y.serverEnvironment==="DEV",L=u||_.OI;L=Y.nonce||_.aA(L.document);K={integrationKeys:{productId:Y.productId,feedbackBucket:Y.bucket,triggerId:Y.triggerId},callbacks:{onClose:Y.callback,onLoad:Y.onLoadCallback},formContent:{locale:Y.locale,disableScreenshot:Y.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:Y.abuseLink,additionalDataConsent:Y.additionalDataConsent},initializationData:{isLocalServer:K,nonce:L,useNightlyRelease:K,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:Y.feedbackServerUri,colorScheme:Y.colorScheme},extraData:{productVersion:Y.productVersion,authUser:Y.authuser,configuratorId:Y.configuratorId,customZIndex:Y.customZIndex,tinyNoPointer:Y.tinyNoPointer,
allowNonLoggedInFeedback:Y.allowNonLoggedInFeedback,enableAnonymousFeedback:Y.enableAnonymousFeedback}};G&&(L=new Map(Object.entries(G)),K.extraData.productSpecificData=L);M=K;return t.yield(lhA(M,O,Q),0)})};
_.vDV=function(Y,G,u){try{if(Y.flow==="help"){var O=Y.helpCenterPath.replace(/^\//,"");_.Kb(u||window,"https://support.google.com/"+O)}else Y.flow==="submit"?OL(Y,G,u):cKA(Y.productId,Y.feedbackServerUri).then(function(Q){Q=_.QH(Q,ua,1);var M=!ixR||(Q==null?void 0:Q.getEnableMweb()),t=!Y.tinyNoPointer||(Q==null?void 0:Q.getEnableTinyNoPointer());!Q||Q.getAlohaAutoGaRollout()&&M&&t?U$R(Y,G,u,Q).catch(function(K){!K||K instanceof gJ||OL(Y,G,u)}):OL(Y,G,u)},function(Q){!Q||Q instanceof gJ||OL(Y,G,u)})}catch(Q){U$R(Y,
G,u,null).catch(function(M){!M||M instanceof gJ||OL(Y,G,u)})}};
_.U5("userfeedback.api.startFeedback",_.vDV);var URu=/https?:\/\/\S+\.\S+/,vc4=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],JKj=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var ELt=function(Y){var G=Y.split(""),u=[-263237435,15,G,function(O,Q,M){var t=Q.length;M.forEach(function(K,L,g){this.push(g[L]=Q[(Q.indexOf(K)-Q.indexOf(this[L])+L+t--)%Q.length])},O.split(""))},
function(O,Q){O=(O%Q.length+Q.length)%Q.length;Q.splice(-O).reverse().forEach(function(M){Q.unshift(M)})},
"response",function(){for(var O=64,Q=[];++O-Q.length-32;){switch(O){case 58:O-=14;case 91:case 92:case 93:continue;case 123:O=47;case 94:case 95:case 96:continue;case 46:O=95}Q.push(String.fromCharCode(O))}return Q},
null,12,1540023973,65941107,null,G,function(O,Q){for(O=(O%Q.length+Q.length)%Q.length;O--;)Q.unshift(Q.pop())},
695603893,function(O){for(var Q=O.length;Q;)O.push(O.splice(--Q,1)[0])},
"'[;'[(",function(O,Q){O.push(Q)},
null,function(O,Q,M,t,K){return Q(M,t,K)},
"continuation",G,function(O,Q){if(O.length!=0){Q=(Q%O.length+O.length)%O.length;var M=O[0];O[0]=O[Q];O[Q]=M}},
function(){for(var O=64,Q=[];++O-Q.length-32;){switch(O){case 91:O=44;continue;case 123:O=65;break;case 65:O-=18;continue;case 58:O=96;continue;case 46:O=95}Q.push(String.fromCharCode(O))}return Q},
'"),/]];'];u[7]=u;u[11]=u;u[18]=u;try{(((0,u[15])(u[21]),u[22])(u[11],u[9]),u[22])(u[new Date("1970-01-01T04:30:12.000+04:30")/1E3],u[1]),((0,u[22])(u[11],u[23]),u[4])(u[10],u[18]),(0,u[20])(u[21],u[14])<<(0,u[17])(u[18],u[1]),(0,u[4])(u[8],u[21]),(0,u[19])((0,u[19])((0,u[17])(u[7],u[9]),u[3],u[20],(0,u[6])(),u[2]),u[3],u[5],(0,u[15])(),u[2])}catch(O){return"aTlOUOubTO4AP____8P_"+Y}return G.join("")};_.JtI=new _.bu("runAttestationCommand");var YzM=new _.bu("verifyCommand");_.L$=new _.bu("accessibilityContext");var GW2=new _.bu("accessibilityData");var u0T=new _.bu("profileCardCommand");var vjI=new _.bu("signInEndpoint");var Uga=new _.bu("signOutEndpoint");var QuI;_.OLT=new _.bu("accountItemSectionRenderer");QuI=new _.bu("accountItemRenderer");_.MmX=new _.bu("saveCommandToSessionStorageAction");var HL4=new _.bu("crossAccountChannelTransferEndpoint");var lka=new _.bu("getAccountMenuEndpoint");_.Bs1=new _.bu("getAccountSwitcherEndpoint");var VA4=new _.bu("getAccountsListEndpoint");var EtI=new _.bu("getAccountsListInnertubeEndpoint");_.tml=new _.bu("addToToastAction");var KlU=new _.bu("hideEnclosingAction");_.Qy=new _.bu("replaceEnclosingAction");var aI1=new _.bu("buttonRefreshAction");var T11=new _.bu("adsControlFlowOpportunityReceivedCommand");var Llk=new _.bu("openAdAllowlistInstructionCommand");var gtI=new _.bu("videoMastheadAdPrimaryVideoRenderer");var XyR=new _.bu("displayAdRenderer");_.PPV=new _.bu("inFeedAdLayoutRenderer");var II2=new _.bu("sequenceItemInPlayerAdLayoutRenderer");_.kWV=new _.bu("adSlotRenderer");var ntk=new _.bu("adAvatarViewModel");var Fl_=new _.bu("adBadgeViewModel");var pyT=new _.bu("adButtonViewModel");var zt_=new _.bu("adImageViewModel");var Lnj=new _.bu("reelsAdCardButtonedViewModel");var maR=new _.bu("reelsPlayerOverlayLayoutViewModel");var WlT=new _.bu("formDataDecoratorCommand");var r7e=new _.bu("updateConversationIdCommand");var xaU=new _.bu("showSchedulingPanelCommand");var fIT=new _.bu("backstageCommentsRenderer");var CP4=new _.bu("backstageImageRenderer");var y7U=new _.bu("backstagePostRenderer");var etk=new _.bu("backstageZeroStateRenderer");var A7_=new _.bu("postRenderer");var otT=new _.bu("sharedPostRenderer");var iL_=new _.bu("createBackstagePostEndpoint");var Rte=new _.bu("getPostVideoPreviewEndpoint");var wye=new _.bu("updateBackstagePostEndpoint");var ZLR=new _.bu("filterChipTransformCommand");var DaR=new _.bu("insertRichSectionCommand");var Jet=new _.bu("talkToRecsDeselectCommand");var htU=new _.bu("talkToRecsNextCommand");var vmY=new _.bu("talkToRecsSelectCommand");var daT=new _.bu("talkToRecsUpdateTextCommand");_.Y3=new _.bu("browseEndpoint");_.bLE=new _.bu("confirmDialogEndpoint");var Szl=new _.bu("expandOnHoverCardRenderer");var N12=new _.bu("lumiereShelfDetailsRenderer");var juE=new _.bu("revealBusinessEmailCommand");var VmT=new _.bu("validateChannelHandleCommand");var lI2=new _.bu("channelCreationFormEndpoint");var B1k=new _.bu("aboutChannelViewModel");var $aR=new _.bu("channelThumbnailWithLinkRenderer");var qze=new _.bu("channelCreationServiceEndpoint");var suX=new _.bu("updateChannelPageSettingsEndpoint");var MQ=function(Y){this.delegate=Y},HJ=function(){MQ.apply(this,arguments)};
_.m(HJ,MQ);_.Uk.Object.defineProperties(HJ.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(Y){this.delegate.entityMetadata=Y}}});var c7R=function(){HJ.apply(this,arguments)};
_.m(c7R,HJ);c7R.prototype.getAssociations=function(){return[]};
c7R.prototype.getTypeName=function(){return"channelHandle"};var Uae=new _.bu("webResponseContextExtensionData");var sva=new _.bu("webThumbnailDetailsExtensionData");_.mi=new _.bu("commandContext");var vtX=new _.bu("addVideoLinkAction");var J7M=new _.bu("banAuthorAction");var YqI=new _.bu("createCommentAction");var GlT=new _.bu("createCommentReplyAction");var uaR=new _.bu("createPollAction");var O3l=new _.bu("hideIdentityChipAction");var QsE=new _.bu("openUpdateCommentDialogAction");var MXE=new _.bu("pinCommentAction");var H3X=new _.bu("removeCommentAction");var Epl=new _.bu("unpinCommentAction");var EL=new _.bu("updateBackstagePollAction");var tXR=new _.bu("updateCommentVoteAction");var K3R=new _.bu("commentThreadRenderer");var acX=function(){HJ.apply(this,arguments)};
_.m(acX,HJ);acX.prototype.getAssociations=function(){return[]};
acX.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var Tk4=function(){HJ.apply(this,arguments)};
_.m(Tk4,HJ);Tk4.prototype.getAssociations=function(){return[]};
Tk4.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.L3_=new _.bu("commentDialogRenderer");var gp4=new _.bu("reloadCommentsCommand");var X0T=new _.bu("updateCommentsSettingsEndpoint");var PDM=new _.bu("commentViewModel");var IcU=new _.bu("triStateButtonViewModel");var kl2=new _.bu("voiceReplyContainerViewModel");_.Jv=new _.bu("commandExecutorCommand");var ID=new _.bu("emoji");var npk=new _.bu("updateCreatorChannelInnertubeCommand");_.F32=new _.bu("appendContinuationItemsAction");_.p02=new _.bu("changeEngagementPanelVisibilityAction");_.rE=new _.bu("continuationCommand");var zcl=new _.bu("hideReportedCommentAction");var moX=new _.bu("listMutationCommand");_.tw=new _.bu("openPopupAction");var W31=new _.bu("persistSubscriptionsDisplayPreferencesCommand");var opR;_.rgR=new _.bu("playlistRemoveVideosAction");_.xoE=new _.bu("updatePlaylistAction");_.fcT=new _.bu("addToPlaylistCommand");_.CDR=new _.bu("endPlaylistCommand");_.yg4=new _.bu("recoverPlaylistCommand");_.ecI=new _.bu("refreshPlaylistCommand");_.AgX=new _.bu("refreshFormCommand");opR=new _.bu("openOnePickAddVideoModalCommand");var Jcg=new _.bu("reloadContinuationItemsCommand");var i31=new _.bu("restoreCachedContinuableDataCommand");_.RcU=new _.bu("scrollToEngagementPanelCommand");var w02=new _.bu("selectCountryCommand");var Z3U=new _.bu("showReloadUiCommand");var Dok=new _.bu("undoFeedbackAction");var hc2=new _.bu("updateButtonAction");var do2=new _.bu("updateSubscribeButtonAction");var b3l=new _.bu("updateToggleAction");var Sql=new _.bu("webNativeShareCommand");_.ug=new _.bu("webCommandMetadata");_.Kk=new _.bu("webHandleServiceEndpointExtension");var QvY=new _.bu("webNavigationEndpointData");var NkE=new _.bu("backgroundAudioPlaybackCommand");var js1=new _.bu("copyLinkCommand");var VXk=new _.bu("playlistVotingRefreshPopupCommand");var lcR=new _.bu("selectChipCommand");var Bk4=new _.bu("setCookieCommand");var $oT=new _.bu("setLocalStorageCommand");var qq1=new _.bu("setPrefStorageEntryCommand");var vpI;_.ssX=new _.bu("settingsUpdateCheckboxCommand");_.cge=new _.bu("settingsUpdateTextCommand");_.UoM=new _.bu("settingsUpdateOptionsCommand");vpI=new _.bu("settingsUpdateSwitchCommand");_.Jg4=new _.bu("settingsUpdateConnectedAppRendererCommand");var YEI=new _.bu("showCreatorChatbotEngagementPanelCommand");var Gp2=new _.bu("updateTextInputFormFieldRendererCommand");var usE=new _.bu("updateToggleButtonStateCommand");var OMI=new _.bu("updateUrlParamCommand");var QZe=new _.bu("webSubmitFormCommand");var MtV=new _.bu("channelSwitcherPageRenderer"),HMT=new _.bu("updateChannelSwitcherPageAction");_.l6=new _.bu("continuationItemRenderer");_.a_=new _.bu("richItemRenderer");var Ecl=new _.bu("richSectionRenderer");_.tt4=new _.bu("richShelfRenderer");_.KAM=new _.bu("metadataBadgeRenderer");_.ahk=new _.bu("multiPageMenuNotificationSectionRenderer");_.TxT=new _.bu("playlistLoopButtonStateRenderer");var LA1=new _.bu("claimLegacyYoutubeChannelEndpoint");var gcT=new _.bu("getNotificationMenuEndpoint");var XTk=new _.bu("getSearchInVideoCommand");_.PhI=new _.bu("getTranscriptEndpoint");_.Gb=new _.bu("signalServiceEndpoint");var IhE=new _.bu("verifyAgeEndpoint");var KXu=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(KXu,_.Ps);KXu.prototype.getPath=function(){return _.zy(this,1)};
KXu.prototype.getValue=function(){return _.zy(this,2)};var kpM=[0,_.j5,-1];var ncI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(ncI,_.Ps);var tjT=_.yG(ncI,[0,_.Ba,kpM]);var FA4=new _.bu("dismissalEndpoint");var pTe=new _.bu("elementsCommand");_.nd=new _.bu("innertubeCommand");var D_I=new _.bu("multipleInlinePlaybackCommand");var N6I=new _.bu("loggingDirectives");var zhU=new _.bu("acknowledgeChannelTouStrikeCommand");var mRR=function(){HJ.apply(this,arguments)};
_.m(mRR,HJ);mRR.prototype.getAssociations=function(){return[]};
mRR.prototype.getTypeName=function(){return"booleanEntity"};var WA2=function(){HJ.apply(this,arguments)};
_.m(WA2,HJ);WA2.prototype.getAssociations=function(){return[]};
WA2.prototype.getTypeName=function(){return"stringEntity"};var wE=new _.bu("entityBatchUpdate");_.rKR=new _.bu("entityUpdateCommand");var xRE=function(){HJ.apply(this,arguments)};
_.m(xRE,HJ);xRE.prototype.getAssociations=function(){var Y=[];this.delegate.alternateChannel&&Y.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&Y.push.apply(Y,_.c8(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&Y.push(this.delegate.oneofChannelEntity);return[].concat(_.c8(new Set(Y)))};
xRE.prototype.getTypeName=function(){return"fakeChannel"};var fh1=function(){HJ.apply(this,arguments)};
_.m(fh1,HJ);fh1.prototype.getAssociations=function(){var Y=[];this.delegate.entryCollection&&Y.push(this.delegate.entryCollection);return[].concat(_.c8(new Set(Y)))};
fh1.prototype.getTypeName=function(){return"fakePlaylist"};
var ChV=function(){HJ.apply(this,arguments)};
_.m(ChV,HJ);ChV.prototype.getAssociations=function(){var Y=[];this.delegate.parentPlaylist&&Y.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var G=_.E(this.delegate.entries),u=G.next();!u.done;u=G.next())Y.push.apply(Y,_.c8((new yKX(u.value)).getAssociations()));return[].concat(_.c8(new Set(Y)))};
ChV.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var yKX=function(){MQ.apply(this,arguments)};
_.m(yKX,MQ);yKX.prototype.getAssociations=function(){var Y=[];this.delegate.video&&Y.push(this.delegate.video);return[].concat(_.c8(new Set(Y)))};var ehM=function(){HJ.apply(this,arguments)};
_.m(ehM,HJ);ehM.prototype.getAssociations=function(){var Y=[];this.delegate.descriptionEntity&&Y.push(this.delegate.descriptionEntity);this.delegate.creators&&Y.push.apply(Y,_.c8(this.delegate.creators));this.delegate.theBiggestFan&&Y.push(this.delegate.theBiggestFan);return[].concat(_.c8(new Set(Y)))};
ehM.prototype.getTypeName=function(){return"fakeVideo"};
var AKR=function(){HJ.apply(this,arguments)};
_.m(AKR,HJ);AKR.prototype.getAssociations=function(){return[]};
AKR.prototype.getTypeName=function(){return"fakeVideoDescription"};var ocR=new _.bu("fantasyRosterViewModel");var iM_=new _.bu("addFollowUpSurveyCommand");var Rhl=new _.bu("getSurveyCommand");var wT_=new _.bu("ratingSurveyOptionRenderer");_.WH=new _.bu("feedbackEndpoint");var ZMI=new _.bu("reportHistoryTableCellRenderer"),DR1=new _.bu("reportHistoryTableTextCellRenderer"),hh2=new _.bu("reportHistoryTableReasonCellRenderer");_.dRI=new _.bu("flagEndpoint");var bMR=new _.bu("deleteFlowStepsCommand");_.SE4=new _.bu("flowNextStepCommand");_.Nx_=new _.bu("flowPrevStepCommand");var jZI=new _.bu("getFlowCommand");var VtM=new _.bu("submitFormWithValidationFlowCommand");_.lhR=new _.bu("updateFlowCommand");var BxR=function(){HJ.apply(this,arguments)};
_.m(BxR,HJ);BxR.prototype.getAssociations=function(){return[]};
BxR.prototype.getTypeName=function(){return"flowStateEntity"};var $RU=new _.bu("flowFormState");_.TG=new _.bu("flowStepRenderer");var qE_=new _.bu("gameCardRenderer");var sZ_=new _.bu("accountLinkingStateChangedCommand");var cKl=function(){HJ.apply(this,arguments)};
_.m(cKl,HJ);cKl.prototype.getAssociations=function(){return[]};
cKl.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var UR1=new _.bu("changeMiniAppPlayStateCommand");var vcE=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(vcE,_.Ps);var Lk=[1,2,3];var JKI=[0,Lk,TtU,_.lO,ObV];var YLI=_.yG(vcE,JKI),GG_=_.Az(JKI);var uVR=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(uVR,_.Ps);var OkR=[0,_.DB,_.j5];var Q_V=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Q_V,_.Ps);var MDI=[0,_.j5,_.DB,-1];var gu=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(gu,_.Ps);var HkX=_.Az([0,1,OkR,_.ca,MDI,_.j5,-1]);var Ew2=new _.bu("miniAppScoreChallengeViewModel");var tDl=new _.bu("miniGameCardViewModel");var KP4=new _.bu("teaserCardViewModel");var afT=function(){HJ.apply(this,arguments)};
_.m(afT,HJ);afT.prototype.getAssociations=function(){return[]};
afT.prototype.getTypeName=function(){return"logoEntity"};var TuV=new _.bu("feedbackItemRenderer");var LP1=function(){HJ.apply(this,arguments)};
_.m(LP1,HJ);LP1.prototype.getAssociations=function(){return[]};
LP1.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.gwR=new _.bu("playerInterstitialRenderer");var XJU=new _.bu("getKidsBlocklistPickerCommand");_.Pa_=new _.bu("updateKidsBlacklistEndpoint");_.XV=new _.bu("likeEndpoint");var IfR,kGe,nwR;IfR=new _.bu("addChatItemAction");kGe=new _.bu("removeChatItemAction");nwR=new _.bu("markChatItemAsDeletedAction");_.FP1=new _.bu("setLiveChatCollapsedStateAction");var pJ2=function(){HJ.apply(this,arguments)};
_.m(pJ2,HJ);pJ2.prototype.getAssociations=function(){return[]};
pJ2.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var zzU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(zzU,_.Ps);zzU.prototype.getPayloadCase=function(){return _.gQ(this,mQE)};
var mQE=[3,4];var WPX=[0,_.Ba,[0,[1,2],_.lO,_.$U,[0,_.Vd,1,_.Vd]]];var rwX=[0,_.j5,-1];var xQ4=[0,[1],_.lO];var PJ=[0,[1,2],_.lO,_.$U,[0,_.ca]];var I_=[0,_.j5];var ffR=[0,[0,_.S5,_.bO,[0,_.Vd,_.UD,_.Vd]],1,[0,_.S5]];var CaR=[0,hr];var ywE=[0,hr];var ez4=[0,ywE,CaR];var AwR=[0,_.Ba,[0,[1,2],_.lO,-1],_.S5];var owI=[0,[2],1,_.$U,[0,_.Vd,-1,AwR]];var ik1=[0,[1],_.$U,[0,_.Vd,_.j5,_.UD,1,AwR]];var Rz4=[0,_.bO,-1,uHl,_.ca];var wJ_=[0,[0,ZB,-3],-4];var kw=[0,_.S5,-3,_.j5,_.S5,_.US,_.S5,WPX,_.S5,-2];var nk=[0,_.Ba,[0,[1,2],_.lO,-1],_.S5,_.j5];var Zk2=[0,[3],PJ,[0,[2,3,4],Ixk,_.lO,-2],_.$U,[0,_.j5],_.DB];var DQl=[0,[3,5],_.j5,_.dQ,_.$U,[0,1,_.DB,_.ca],_.ca,_.$U,[0,_.ca,_.DB]];var hzI=[0,2,_.dQ,_.j5,-1];var dQ1=[0,K0R];var bkU=[0,[3,4],2,MdI,_.lO,_.j5];var SLI=[0,_.ca,-2,1,_.j5];var NuX=[0,_.j5,-1,_.ca];var j_R=[0,I_,function(){return FV},
I_,_.j5],VDl=[0,_.ca,I_,PJ,function(){return FV},
_.j5],FV=[-161,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160],I_,_.dQ,[0,_.S5,1,_.S5,1,_.S5,1,_.ca,-1,I_],[0,1,_.S5,2,_.S5,_.ca,_.S5],1,_.dQ,-1,_.j5,_.dQ,2,ZB,[0,ZB,_.dQ],_.j5,1,ffR,1,PJ,_.US,1,[0,[0,_.Ba,[0,_.j5,_.S5,_.ca]]],[0,_.S5,[0,_.DB,[0,_.UD]],_.DB,1,[0,E6U,-1]],_.j5,[0,1,_.j5],76,_.$U,[0,PJ,nk,ffR,1,[0,_.Ba,nk]],1,_.$U,[0,PJ,_.j5,
_.S5],_.$U,[0,PJ,xQ4],_.$U,[0,PJ,xQ4,_.dQ],_.$U,[0,PJ,xQ4],_.$U,[0,PJ,_.Ba,I_,PJ,L0U],_.$U,[0,PJ,I_,_.j5],_.$U,[0,PJ,_.S5,kw,-1,_.S5],4,_.$U,[0,PJ,_.S5,_.dQ,kw,_.S5],_.$U,[0,[4,9],PJ,_.ca,_.dQ,_.lO,nk,1,ffR,_.j5,_.lO,SLI],_.$U,[0,PJ,I_,PJ,_.ca,_.j5],_.$U,[0,_.S5,PJ,kw,_.S5,_.j5],_.$U,[0,PJ,I_,PJ,_.ca,_.j5],1,_.$U,[0,PJ,_.ca,_.j5,kw],_.$U,[0,PJ,_.ca,[0,_.j5,_.dQ],_.j5,_.dQ,_.j5,_.sD,-2,3,NuX,_.Ba,NuX,NuX,SLI],_.$U,[0,PJ,_.ca,ik1,_.Ba,[0,ywE,owI],I_,_.Ba,ez4,_.j5,1,_.ca,Rz4,wJ_,Gol,-1],_.$U,[0,PJ,[0,
_.UD,-1,ik1,_.Ba,[0,ywE,owI,CaR],[0,_.vG],1,_.Vd],I_,_.j5],_.$U,[0,PJ,nk,_.j5,[0,_.bO]],_.$U,function(){return VDl},
_.$U,[0,PJ,_.dQ,_.j5,-1,_.S5],_.$U,[0,[6,7],PJ,_.Ba,hzI,_.ca,nk,1,_.$U,bkU,_.$U,dQ1],_.$U,[0,_.Ba,hzI,_.ca,_.S5],_.$U,[0,_.j5,q02,-1],_.$U,[0,I_,_.Ba,ez4,_.j5],_.$U,[0,PJ,I_,_.j5],_.$U,[0,_.sD,_.j5],_.$U,[0,rwX],_.$U,[0,rwX],_.$U,[0,nk],_.$U,[0,I_,nk],_.$U,function(){return j_R},
_.$U,[0,I_,_.j5],_.$U,[0,I_,_.j5],1,_.$U,[0,_.S5,PJ,kw,_.S5,kw],_.$U,[0,_.vG],1,_.$U,[0],1,_.$U,[0,I_,_.ca,PJ,_.ca],_.$U,[0,[1,2],_.$U,bkU,_.$U,dQ1,_.dQ],_.$U,[0,_.vG,nk,DQl,_.j5,_.dQ],_.$U,[0,DQl,_.j5,_.dQ],_.$U,[0,Rz4,nk,_.S5,wJ_],_.$U,Zk2,_.$U,[0],_.$U,[0,_.j5,-1,_.DB],_.$U,[0,I_,_.j5],_.$U,[0,Zk2,_.DB,_.j5],_.$U,[0,PJ,kw,_.S5],_.$U,[0,PJ,kw,_.S5],_.$U,[0,Rz4,wJ_,nk,_.US,_.S5,Gol,-1],_.$U,[0,PJ,kw,_.S5],_.$U,[0,_.dQ]];var lfk=[0,_.Ba,FV];var BuI=_.yG(zzU,[0,mQE,1,_.DB,_.$U,[0,[18,22,24],lfk,3,[0,lfk],1,_.DB,[0,_.Ba,[0,_.dQ,ZB],_.dQ],1,FV,-1,[0,_.NP,-2,_.US,_.NP,-1,_.US,_.NP,WPX,_.NP,-2],JzX,[!0,_.j5,[0,xQ4,2,_.j5,_.dQ,_.S5,2,_.j5,_.sD]],[0,[1,2,3],[5,6],_.$U,[0,_.Vd],_.$U,[0,_.Vd,-1],_.$U,[0,_.Vd],1,_.$U,rwX,_.$U,[0,_.j5]],[0,FV,-1],_.vG,FV,_.$U,FV,[0,lfk],_.DB,FV,_.$U,FV,_.j5,_.$U,FV,FV],_.$U,jDk,_.DB]);var $Q_=new _.bu("liveChatEndpoint");var qL4=new _.bu("liveChatItemContextMenuEndpoint");var s_k=new _.bu("liveChatReplayEndpoint");_.cw1=new _.bu("emojiPickerRenderer");var UQM=new _.bu("liveChatAuthorBadgeViewModel");var vwl=new _.bu("deleteLiveChatMessageCommand");var JwM=new _.bu("liveChatActionEndpoint");var YhM=new _.bu("createLiveChatPollEndpoint");var GcX=new _.bu("manageLiveChatUserEndpoint");var uu2=new _.bu("moderateLiveChatEndpoint");_.Oll=new _.bu("sendLiveChatMessageEndpoint");var Qre=new _.bu("sendLiveChatVoteEndpoint");var MC2=new _.bu("clearLocationCommand");var HlX=new _.bu("resolveLocationCommand");var ERE=new _.bu("interactionLoggingCommandMetadata");var tCe=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(tCe,_.Ps);var KDV=function(Y,G){return _.BF(Y,1,G)};var a_I=[0,_.S5];var Tp2=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Tp2,_.Ps);var LD1=function(Y,G){return PY(Y,1,tCe,G)};Tp2.prototype.JSC$12651_serializeBinary=K0A([0,_.Ba,a_I]);var zzY={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 gR2={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"},
Xqk={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 KEt={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SINGLE_COLUMN_GRID_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SINGLE_COLUMN_GRID_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_CONNECTION_TIMEOUT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_CONNECTION_TIMEOUT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_GHOST_LOADING_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_GHOST_LOADING_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_STREAMED_GET_WATCH_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_STREAMED_GET_WATCH_SUPPORTED"};_.Ab4=new _.bu("logFlowLoggingEventCommand");_.H3=new _.bu("loggingContext");var Pfk=new _.bu("audioTrackSelectActionCommand");var I_4=new _.bu("captionLanguageSelectActionCommand");var kce=new _.bu("showAudioTrackPickerActionCommand");var nRT=new _.bu("showCaptionLanguageSelectActionCommand");var FD2=new _.bu("dismissDialogEndpoint");var pqT=new _.bu("dismissPlayerOverlayCommand");var zkR=new _.bu("hideItemSectionVideosByIdCommand");var mE4=new _.bu("showMiniplayerCommand");var WDX=function(){HJ.apply(this,arguments)};
_.m(WDX,HJ);WDX.prototype.getAssociations=function(){return[]};
WDX.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var rMV=function(){HJ.apply(this,arguments)};
_.m(rMV,HJ);rMV.prototype.getAssociations=function(){return[]};
rMV.prototype.getTypeName=function(){return"downloadStatusEntity"};var xE4=function(){HJ.apply(this,arguments)};
_.m(xE4,HJ);xE4.prototype.getAssociations=function(){return[]};
xE4.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var f__=function(){HJ.apply(this,arguments)};
_.m(f__,HJ);f__.prototype.getAssociations=function(){var Y=[];this.delegate.downloadsList&&Y.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&Y.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&Y.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&Y.push(this.delegate.refresh);return[].concat(_.c8(new Set(Y)))};
f__.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var CfV=function(){HJ.apply(this,arguments)};
_.m(CfV,HJ);CfV.prototype.getAssociations=function(){var Y=[];this.delegate.refresh&&Y.push(this.delegate.refresh);if(this.delegate.downloads)for(var G=_.E(this.delegate.downloads),u=G.next();!u.done;u=G.next())Y.push.apply(Y,_.c8((new yME(u.value)).getAssociations()));return[].concat(_.c8(new Set(Y)))};
CfV.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var yME=function(){MQ.apply(this,arguments)};
_.m(yME,MQ);yME.prototype.getAssociations=function(){var Y=[];this.delegate.video&&Y.push(this.delegate.video);this.delegate.playlist&&Y.push(this.delegate.playlist);this.delegate.videoItem&&Y.push(this.delegate.videoItem);this.delegate.playlistItem&&Y.push(this.delegate.playlistItem);return[].concat(_.c8(new Set(Y)))};var ekT=function(){HJ.apply(this,arguments)};
_.m(ekT,HJ);ekT.prototype.getAssociations=function(){var Y=[];this.delegate.localImageEntities&&Y.push.apply(Y,_.c8(this.delegate.localImageEntities));return[].concat(_.c8(new Set(Y)))};
ekT.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var AM_=function(){HJ.apply(this,arguments)};
_.m(AM_,HJ);AM_.prototype.getAssociations=function(){var Y=[];this.delegate.playbackData&&Y.push(this.delegate.playbackData);this.delegate.localImageEntities&&Y.push.apply(Y,_.c8(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&Y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.c8(new Set(Y)))};
AM_.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var oRT=function(){HJ.apply(this,arguments)};
_.m(oRT,HJ);oRT.prototype.getAssociations=function(){return[]};
oRT.prototype.getTypeName=function(){return"offlineabilityEntity"};var ilU=function(){HJ.apply(this,arguments)};
_.m(ilU,HJ);ilU.prototype.getAssociations=function(){var Y=[];this.delegate.fakeChildren&&Y.push.apply(Y,_.c8(this.delegate.fakeChildren));return[].concat(_.c8(new Set(Y)))};
ilU.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var Rk1=function(){HJ.apply(this,arguments)};
_.m(Rk1,HJ);Rk1.prototype.getAssociations=function(){var Y=[];this.delegate.video&&Y.push(this.delegate.video);this.delegate.playbackData&&Y.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&Y.push(this.delegate.offlineVideoPolicy);return[].concat(_.c8(new Set(Y)))};
Rk1.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var wq_=function(){HJ.apply(this,arguments)};
_.m(wq_,HJ);wq_.prototype.getAssociations=function(){return[]};
wq_.prototype.getTypeName=function(){return"continuationTokenEntity"};var ZlU=function(){HJ.apply(this,arguments)};
_.m(ZlU,HJ);ZlU.prototype.getAssociations=function(){var Y=[];this.delegate.channelOwner&&Y.push(this.delegate.channelOwner);this.delegate.videos&&Y.push.apply(Y,_.c8(this.delegate.videos));this.delegate.collaboratorChannels&&Y.push.apply(Y,_.c8(this.delegate.collaboratorChannels));this.delegate.downloadState&&Y.push(this.delegate.downloadState);this.delegate.refresh&&Y.push(this.delegate.refresh);return[].concat(_.c8(new Set(Y)))};
ZlU.prototype.getTypeName=function(){return"mainPlaylistEntity"};var DE_=function(){HJ.apply(this,arguments)};
_.m(DE_,HJ);DE_.prototype.getAssociations=function(){var Y=[];this.delegate.video&&Y.push(this.delegate.video);this.delegate.channelContributor&&Y.push(this.delegate.channelContributor);return[].concat(_.c8(new Set(Y)))};
DE_.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var hkk=function(){MQ.apply(this,arguments)};
_.m(hkk,MQ);hkk.prototype.getAssociations=function(){var Y=[];this.delegate.recommendedVideoMetadata&&Y.push.apply(Y,_.c8((new dEk(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.c8(new Set(Y)))};
var dEk=function(){MQ.apply(this,arguments)};
_.m(dEk,MQ);dEk.prototype.getAssociations=function(){var Y=[];this.delegate.localImageEntities&&Y.push.apply(Y,_.c8(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&Y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.c8(new Set(Y)))};var bl1=function(){MQ.apply(this,arguments)};
_.m(bl1,MQ);bl1.prototype.getAssociations=function(){var Y=[];this.delegate.playbackPosition&&Y.push(this.delegate.playbackPosition);return[].concat(_.c8(new Set(Y)))};var ShR=function(){HJ.apply(this,arguments)};
_.m(ShR,HJ);ShR.prototype.getAssociations=function(){var Y=[];this.delegate.owner&&Y.push(this.delegate.owner);this.delegate.downloadState&&Y.push(this.delegate.downloadState);this.delegate.userState&&Y.push.apply(Y,_.c8((new bl1(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&Y.push.apply(Y,_.c8((new hkk(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.c8(new Set(Y)))};
ShR.prototype.getTypeName=function(){return"mainVideoEntity"};var NpI=function(){HJ.apply(this,arguments)};
_.m(NpI,HJ);NpI.prototype.getAssociations=function(){var Y=[];this.delegate.userChannelDetails&&Y.push(this.delegate.userChannelDetails);return[].concat(_.c8(new Set(Y)))};
NpI.prototype.getTypeName=function(){return"ytMainChannelEntity"};var jrk=function(){HJ.apply(this,arguments)};
_.m(jrk,HJ);jrk.prototype.getAssociations=function(){var Y=[];this.delegate.channelOwner&&Y.push(this.delegate.channelOwner);this.delegate.playbackPosition&&Y.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&Y.push.apply(Y,_.c8(this.delegate.localImageEntities));this.delegate.downloadStatus&&Y.push(this.delegate.downloadStatus);return[].concat(_.c8(new Set(Y)))};
jrk.prototype.getTypeName=function(){return"ytMainVideoEntity"};var Imj=new _.bu("downloadsPageSmartDownloadsOptInBannerParams");var pfU=new _.bu("downloadsPageUpsellBannerParams");var VCk=function(){HJ.apply(this,arguments)};
_.m(VCk,HJ);VCk.prototype.getAssociations=function(){return[]};
VCk.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var l_1=function(){HJ.apply(this,arguments)};
_.m(l_1,HJ);l_1.prototype.getAssociations=function(){return[]};
l_1.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var BpT=function(){HJ.apply(this,arguments)};
_.m(BpT,HJ);BpT.prototype.getAssociations=function(){return[]};
BpT.prototype.getTypeName=function(){return"macroMarkerEntity"};var $ET=function(){HJ.apply(this,arguments)};
_.m($ET,HJ);$ET.prototype.getAssociations=function(){return[]};
$ET.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var qhE=function(){HJ.apply(this,arguments)};
_.m(qhE,HJ);qhE.prototype.getAssociations=function(){return[]};
qhE.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var srk=function(){HJ.apply(this,arguments)};
_.m(srk,HJ);srk.prototype.getAssociations=function(){return[]};
srk.prototype.getTypeName=function(){return"playerStateEntity"};var cMV=function(){HJ.apply(this,arguments)};
_.m(cMV,HJ);cMV.prototype.getAssociations=function(){return[]};
cMV.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var UE4=function(){HJ.apply(this,arguments)};
_.m(UE4,HJ);UE4.prototype.getAssociations=function(){return[]};
UE4.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var vR4=function(){HJ.apply(this,arguments)};
_.m(vR4,HJ);vR4.prototype.getAssociations=function(){return[]};
vR4.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.AV=new _.bu("dislikeButtonViewModel");_.e6=new _.bu("likeButtonViewModel");var JMk=new _.bu("videoSummaryContentViewModel");var Y2E=new _.bu("videoSummaryParagraphViewModel");var GkM=new _.bu("changeTimelyActionVisibilityCommand");var uke=new _.bu("hideEngagementPanelEndpoint");var OII=new _.bu("refreshPanelEndpoint");var Q8_=new _.bu("scrollToSectionEndpoint");var MOM=new _.bu("seekToVideoTimestampCommand");_.mJ=new _.bu("showEngagementPanelEndpoint");var HIE=new _.bu("showTransientPlayerScrimOverlayCommand");var EYV=new _.bu("toggleEngagementPanelCommand");_.tO1=new _.bu("createBroadcastCommand");var K9R=new _.bu("metadataUpdateCommand");var aA4=function(){HJ.apply(this,arguments)};
_.m(aA4,HJ);aA4.prototype.getAssociations=function(){return[]};
aA4.prototype.getTypeName=function(){return"featuredProductsEntity"};var T8e=function(){HJ.apply(this,arguments)};
_.m(T8e,HJ);T8e.prototype.getAssociations=function(){return[]};
T8e.prototype.getTypeName=function(){return"pinnedProductEntity"};var L9_=function(){HJ.apply(this,arguments)};
_.m(L9_,HJ);L9_.prototype.getAssociations=function(){return[]};
L9_.prototype.getTypeName=function(){return"trendingOfferEntity"};_.gY1=new _.bu("merchandiseShelfRenderer");var XZ_=new _.bu("shoppingContentLineItemViewModel");var PET=new _.bu("shoppingDescriptionItemViewModel");var IAe=new _.bu("gridMovieRenderer");_.kk4=new _.bu("movieRenderer");var nYX=function(){HJ.apply(this,arguments)};
_.m(nYX,HJ);nYX.prototype.getAssociations=function(){return[]};
nYX.prototype.getTypeName=function(){return"compositeSourceEntity"};var F9R=function(){HJ.apply(this,arguments)};
_.m(F9R,HJ);F9R.prototype.getAssociations=function(){var Y=[];this.delegate.compositeSourceKeys&&Y.push.apply(Y,_.c8(this.delegate.compositeSourceKeys));return[].concat(_.c8(new Set(Y)))};
F9R.prototype.getTypeName=function(){return"multiviewStagingEntity"};var pZ4=function(){HJ.apply(this,arguments)};
_.m(pZ4,HJ);pZ4.prototype.getAssociations=function(){var Y=[];this.delegate.trackDownloadMetadatas&&Y.push.apply(Y,_.c8(this.delegate.trackDownloadMetadatas));return[].concat(_.c8(new Set(Y)))};
pZ4.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var z9e=function(){HJ.apply(this,arguments)};
_.m(z9e,HJ);
z9e.prototype.getAssociations=function(){var Y=[];this.delegate.downloadedTracks&&Y.push.apply(Y,_.c8(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&Y.push.apply(Y,_.c8(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&Y.push.apply(Y,_.c8(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&Y.push.apply(Y,_.c8(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&Y.push.apply(Y,_.c8(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
Y.push.apply(Y,_.c8(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&Y.push.apply(Y,_.c8(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&Y.push.apply(Y,_.c8(this.delegate.metadataOnlyTracks));return[].concat(_.c8(new Set(Y)))};
z9e.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var myl=function(){HJ.apply(this,arguments)};
_.m(myl,HJ);myl.prototype.getAssociations=function(){var Y=[];this.delegate.trackDownloadMetadatas&&Y.push.apply(Y,_.c8(this.delegate.trackDownloadMetadatas));return[].concat(_.c8(new Set(Y)))};
myl.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var W91=function(){HJ.apply(this,arguments)};
_.m(W91,HJ);W91.prototype.getAssociations=function(){var Y=[];this.delegate.playbackData&&Y.push(this.delegate.playbackData);this.delegate.localImageEntities&&Y.push.apply(Y,_.c8(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&Y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.c8(new Set(Y)))};
W91.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var rCE=function(){HJ.apply(this,arguments)};
_.m(rCE,HJ);
rCE.prototype.getAssociations=function(){var Y=[];this.delegate.musicLibraryStatusEntity&&Y.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&Y.push.apply(Y,_.c8(this.delegate.primaryArtists));this.delegate.details&&Y.push(this.delegate.details);this.delegate.userDetails&&Y.push(this.delegate.userDetails);this.delegate.tracks&&Y.push.apply(Y,_.c8(this.delegate.tracks));this.delegate.share&&Y.push(this.delegate.share);this.delegate.downloadMetadata&&Y.push(this.delegate.downloadMetadata);this.delegate.refresh&&
Y.push(this.delegate.refresh);return[].concat(_.c8(new Set(Y)))};
rCE.prototype.getTypeName=function(){return"musicAlbumRelease"};
var xyX=function(){HJ.apply(this,arguments)};
_.m(xyX,HJ);xyX.prototype.getAssociations=function(){var Y=[];this.delegate.albumRelease&&Y.push(this.delegate.albumRelease);this.delegate.tracks&&Y.push.apply(Y,_.c8(this.delegate.tracks));return[].concat(_.c8(new Set(Y)))};
xyX.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var fAT=function(){HJ.apply(this,arguments)};
_.m(fAT,HJ);fAT.prototype.getAssociations=function(){var Y=[];this.delegate.albumRelease&&Y.push(this.delegate.albumRelease);return[].concat(_.c8(new Set(Y)))};
fAT.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var CEl=function(){HJ.apply(this,arguments)};
_.m(CEl,HJ);CEl.prototype.getAssociations=function(){var Y=[];this.delegate.details&&Y.push(this.delegate.details);this.delegate.userDetails&&Y.push(this.delegate.userDetails);return[].concat(_.c8(new Set(Y)))};
CEl.prototype.getTypeName=function(){return"musicArtist"};
var yCe=function(){HJ.apply(this,arguments)};
_.m(yCe,HJ);yCe.prototype.getAssociations=function(){var Y=[];this.delegate.parentArtist&&Y.push(this.delegate.parentArtist);return[].concat(_.c8(new Set(Y)))};
yCe.prototype.getTypeName=function(){return"musicArtistDetail"};
var e9T=function(){HJ.apply(this,arguments)};
_.m(e9T,HJ);e9T.prototype.getAssociations=function(){var Y=[];this.delegate.parentArtist&&Y.push(this.delegate.parentArtist);return[].concat(_.c8(new Set(Y)))};
e9T.prototype.getTypeName=function(){return"musicArtistUserDetail"};var ACR=function(){HJ.apply(this,arguments)};
_.m(ACR,HJ);ACR.prototype.getAssociations=function(){return[]};
ACR.prototype.getTypeName=function(){return"musicLibraryEdit"};var oYl=function(){HJ.apply(this,arguments)};
_.m(oYl,HJ);oYl.prototype.getAssociations=function(){return[]};
oYl.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var iIT=function(){HJ.apply(this,arguments)};
_.m(iIT,HJ);
iIT.prototype.getAssociations=function(){var Y=[];this.delegate.tracks&&Y.push.apply(Y,_.c8(this.delegate.tracks));this.delegate.refresh&&Y.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&Y.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&Y.push(this.delegate.details);this.delegate.downloadMetadata&&Y.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&Y.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&Y.push(this.delegate.userDetails);this.delegate.entryCollection&&
Y.push(this.delegate.entryCollection);this.delegate.share&&Y.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&Y.push.apply(Y,_.c8((new R9T(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.c8(new Set(Y)))};
iIT.prototype.getTypeName=function(){return"musicPlaylist"};
var R9T=function(){MQ.apply(this,arguments)};
_.m(R9T,MQ);R9T.prototype.getAssociations=function(){var Y=[];this.delegate.creatorEntity&&Y.push(this.delegate.creatorEntity);return[].concat(_.c8(new Set(Y)))};var wZX=function(){HJ.apply(this,arguments)};
_.m(wZX,HJ);wZX.prototype.getAssociations=function(){return[]};
wZX.prototype.getTypeName=function(){return"musicShare"};var ZI1=function(){HJ.apply(this,arguments)};
_.m(ZI1,HJ);
ZI1.prototype.getAssociations=function(){var Y=[];this.delegate.musicLibraryStatusEntity&&Y.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&Y.push.apply(Y,_.c8(this.delegate.artists));this.delegate.audioModeVersion&&Y.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&Y.push(this.delegate.videoModeVersion);this.delegate.userDetails&&Y.push(this.delegate.userDetails);this.delegate.details&&Y.push(this.delegate.details);this.delegate.albumRelease&&Y.push(this.delegate.albumRelease);this.delegate.share&&
Y.push(this.delegate.share);this.delegate.libraryEdit&&Y.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&Y.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&Y.push(this.delegate.playbackPosition);this.delegate.lyrics&&Y.push(this.delegate.lyrics);return[].concat(_.c8(new Set(Y)))};
ZI1.prototype.getTypeName=function(){return"musicTrack"};
var DyU=function(){HJ.apply(this,arguments)};
_.m(DyU,HJ);DyU.prototype.getAssociations=function(){var Y=[];this.delegate.parentTrack&&Y.push(this.delegate.parentTrack);return[].concat(_.c8(new Set(Y)))};
DyU.prototype.getTypeName=function(){return"musicTrackDetail"};
var h9k=function(){HJ.apply(this,arguments)};
_.m(h9k,HJ);h9k.prototype.getAssociations=function(){var Y=[];this.delegate.parentTrack&&Y.push(this.delegate.parentTrack);return[].concat(_.c8(new Set(Y)))};
h9k.prototype.getTypeName=function(){return"musicTrackUserDetail"};var NF=new _.bu("musicResponsiveListItemRenderer");var upa=new _.bu("addToPlaylistEndpoint");var dyM=new _.bu("captionPickerEndpoint");var bIR=new _.bu("suggestStats");var S22=new _.bu("backstageImageUploadEndpoint");var N81=new _.bu("createBackstagePostDialogEndpoint");_.j8k=new _.bu("createCommentReplyDialogEndpoint");_.VOR=new _.bu("updateCommentDialogEndpoint");_.lAT=new _.bu("updateCommentReplyDialogEndpoint");var B8M=new _.bu("menuEndpoint");var GZy=new _.bu("modalEndpoint");var $yE=new _.bu("playlistEditorEndpoint");var q2X=new _.bu("copyTextEndpoint");var s8R,cCE;s8R=new _.bu("shareEndpoint");cCE=new _.bu("shareEntityEndpoint");_.Uy2=new _.bu("shareEntityServiceEndpoint");_.$LU=new _.bu("userFeedbackEndpoint");_.ic=new _.bu("watchEndpoint");var uFa=new _.bu("watchPlaylistEndpoint");var vYI=new _.bu("addUpcomingEventReminderEndpoint");_.pk=new _.bu("getCommentsFromInboxCommand");var JCe=new _.bu("notificationOptOutEndpoint");var Y6k=new _.bu("recordNotificationInteractionsEndpoint");var GrV=new _.bu("removeUpcomingEventReminderEndpoint");_.Dv=new _.bu("getDownloadActionCommand");_.uRR=new _.bu("offlineOrchestrationActionCommand");var OZI=function(){HJ.apply(this,arguments)};
_.m(OZI,HJ);OZI.prototype.getAssociations=function(){return[]};
OZI.prototype.getTypeName=function(){return"captionTrack"};var Qt2=function(){HJ.apply(this,arguments)};
_.m(Qt2,HJ);Qt2.prototype.getAssociations=function(){return[]};
Qt2.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var MZV=function(){HJ.apply(this,arguments)};
_.m(MZV,HJ);MZV.prototype.getAssociations=function(){return[]};
MZV.prototype.getTypeName=function(){return"offlineVideoPolicy"};var HZe=function(){HJ.apply(this,arguments)};
_.m(HZe,HJ);HZe.prototype.getAssociations=function(){return[]};
HZe.prototype.getTypeName=function(){return"offlineVideoStreams"};var Ef4=function(){HJ.apply(this,arguments)};
_.m(Ef4,HJ);Ef4.prototype.getAssociations=function(){var Y=[];this.delegate.transfer&&Y.push(this.delegate.transfer);this.delegate.adsPlaybackData&&Y.push.apply(Y,_.c8(this.delegate.adsPlaybackData));this.delegate.drmLicense&&Y.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&Y.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&Y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.c8(new Set(Y)))};
Ef4.prototype.getTypeName=function(){return"playbackData"};var tZl=function(){HJ.apply(this,arguments)};
_.m(tZl,HJ);tZl.prototype.getAssociations=function(){return[]};
tZl.prototype.getTypeName=function(){return"refresh"};var KBl=function(){HJ.apply(this,arguments)};
_.m(KBl,HJ);KBl.prototype.getAssociations=function(){var Y=[];this.delegate.offlineVideoStreams&&Y.push.apply(Y,_.c8(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&Y.push.apply(Y,_.c8(this.delegate.captionTrack));return[].concat(_.c8(new Set(Y)))};
KBl.prototype.getTypeName=function(){return"transfer"};var aY_=function(){HJ.apply(this,arguments)};
_.m(aY_,HJ);aY_.prototype.getAssociations=function(){return[]};
aY_.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var TMX=new _.bu("showMoreDrawerCommand");var LBR=new _.bu("updateEngagementPanelContentCommand");var gf1=new _.bu("getPdgBuyFlowCommand");var XO2=new _.bu("liveChatPurchaseMessageEndpoint");var Pw_=new _.bu("openSuperStickerBuyFlowCommand");var IYU=new _.bu("updatePdgFeatureEnablementCommand");var kr1=function(){HJ.apply(this,arguments)};
_.m(kr1,HJ);kr1.prototype.getAssociations=function(){return[]};
kr1.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var nf_=function(){HJ.apply(this,arguments)};
_.m(nf_,HJ);nf_.prototype.getAssociations=function(){return[]};
nf_.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.FBR=new _.bu("pdgCommentChipRenderer");_.pOM=new _.bu("permissionRoleBottomBarRenderer");_.zFU=new _.bu("updatePermissionRoleCommand");var mHV=new _.bu("prefetchWatchCommand");var WBI=new _.bu("updatePlayerErrorMessageCommand");var $mt=new _.bu("toggleCaptionsVisibilityCommand");var ri2=new _.bu("playerDisclosureViewModel");_.xHl=new _.bu("quickActionsViewModel");var fYe=new _.bu("playerResponse");var CwR=new _.bu("playlistRenderer");_.yiT=new _.bu("playlistVideoListRenderer");_.zG=new _.bu("playlistEditEndpoint");var eFR=new _.bu("createImagePollCommand");var AiR=new _.bu("createQuizCommand");var ofE=new _.bu("quizRenderer");var iZ_=new _.bu("uploadedVideoRenderer");var RFl=new _.bu("decorateMessageEndpoint");var wO1=new _.bu("lpOfferCardOptionViewModel");var ZZR=new _.bu("lpOfferTableRowViewModel");var DHT=new _.bu("sfvAudioItemPlaybackCommand");var hFI=function(){HJ.apply(this,arguments)};
_.m(hFI,HJ);hFI.prototype.getAssociations=function(){return[]};
hFI.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.mP=new _.bu("reelNonVideoContentEndpoint");_.Qa=new _.bu("reelWatchEndpoint");var dHI=new _.bu("reelActionBarViewModel");_.WJ=new _.bu("reelItemRenderer");var bZ4=new _.bu("reelMetapanelViewModel");_.S6R=new _.bu("reelNonVideoContentRenderer");var NMR=new _.bu("shortsLockupViewModel");var jtM=new _.bu("sponsorButtonViewModel");var VZU=new _.bu("reelItemWatchResponse");var lYe=new _.bu("textBadgeRenderer");_.ru=new _.bu("buttonRenderer");_.xw=new _.bu("toggleButtonRenderer");var HPg=new _.bu("switchButtonViewModel");_.BM1=new _.bu("confirmDialogRenderer");var $HT;$HT=new _.bu("menuRenderer");_.q6_=new _.bu("menuFlexibleItemRenderer");var st_=new _.bu("pollRenderer");_.ciR=new _.bu("backgroundPromoRenderer");var vfT;_.UHl=new _.bu("chipCloudRenderer");vfT=new _.bu("chipCloudChipRenderer");var Ji1=new _.bu("dropdownRenderer");var YoX=new _.bu("gridVideoRenderer");_.Gek=new _.bu("itemSectionRenderer");_.uG2=new _.bu("messageRenderer");var O8l=new _.bu("sortFilterHeaderRenderer");_.QVe=new _.bu("videoRenderer");var MxE=new _.bu("resolveUrlCommandMetadata");var H8R=function(){HJ.apply(this,arguments)};
_.m(H8R,HJ);H8R.prototype.getAssociations=function(){return[]};
H8R.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.EKX=new _.bu("getAnswerCommand");_.GA=new _.bu("searchEndpoint");var txI=new _.bu("genAiRichTextViewModel");var Y$U=new _.bu("overviewAnswerViewModel");var KeX=new _.bu("videoOverviewViewModel");var amR=new _.bu("addToPlaylistServiceEndpoint");var TWk=new _.bu("clearSearchHistoryEndpoint");var LeR=new _.bu("clearWatchHistoryEndpoint");var gKT=new _.bu("webSerializedServiceEndpointExtension");_.XfE=new _.bu("createCommentEndpoint");var PAl=new _.bu("createCommentReplyEndpoint");var ImM=new _.bu("performCommentActionEndpoint");var ke_=new _.bu("updateCommentEndpoint");var nKM=new _.bu("updateCommentReplyEndpoint");_.fk=new _.bu("createPlaylistServiceEndpoint");var Fe_=new _.bu("deletePlaylistEndpoint");var pfX=new _.bu("deleteVideoEndpoint");var GIU=new _.bu("getReportFormEndpoint");var z64=new _.bu("modifyChannelNotificationPreferenceEndpoint");var T$g;_.u5=new _.bu("offlinePlaylistEndpoint");T$g={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 L$a;_.Gi=new _.bu("offlineVideoEndpoint");L$a={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 meR=new _.bu("pingingEndpoint");_.WeV=new _.bu("selectActiveIdentityEndpoint");var rs4=new _.bu("setSettingEndpoint");var YIV=new _.bu("undoFeedbackEndpoint");var xeR=new _.bu("unsubscribeEndpoint");_.fm_=new _.bu("updatedMetadataEndpoint");var CA2=function(){HJ.apply(this,arguments)};
_.m(CA2,HJ);CA2.prototype.getAssociations=function(){return[]};
CA2.prototype.getTypeName=function(){return"settingEntity"};_.ys_=new _.bu("updateLocalAppSettingCommand");var e6M=new _.bu("saveImageToDeviceEndpoint");var AsR=new _.bu("shareImageCommand");var oKM=new _.bu("sharingProviderDataCommand");var i8R=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(i8R,_.Ps);var R6_=[0,_.j5,-1];i8R.prototype.JSC$12858_serializeBinary=K0A(R6_);var wfk=_.Az(R6_);var Z8V=new _.bu("userMentionSuggestionRenderer");var De2=new _.bu("liveChatTunnelCommand");var h6_=new _.bu("showSponsorshipsGiftOfferDialogCommand");var de_=new _.bu("sponsorshipsScrollableShelfViewModel");var b82=new _.bu("updateUpcomingEventReminderButtonStateCommand");var SoE=new _.bu("upcomingEventReminderButtonStateRenderer");var NWe=new _.bu("subscribeEndpoint");var jVV=new _.bu("registerTasksCommand");var Vx2=new _.bu("hideSheetCommand");var lmR=new _.bu("hideSnackbarCommand");var BWI=new _.bu("showDialogCommand");_.KK=new _.bu("showSheetCommand");var $eR=new _.bu("showSnackbarCommand");var qok=function(){HJ.apply(this,arguments)};
_.m(qok,HJ);qok.prototype.getAssociations=function(){return[]};
qok.prototype.getTypeName=function(){return"chipEntity"};var sV1=function(){HJ.apply(this,arguments)};
_.m(sV1,HJ);sV1.prototype.getAssociations=function(){return[]};
sV1.prototype.getTypeName=function(){return"dismissState"};_.WE=new _.bu("avatarViewModel");var csR=new _.bu("badgeViewModel");_.Ck=new _.bu("buttonViewModel");_.yy=new _.bu("chipViewModel");var UeI=new _.bu("contentPreviewImageViewModel");var vK2=new _.bu("decoratedAvatarViewModel");_.x_U=new _.bu("engagementBarViewModel");_.JsI=new _.bu("imageBannerViewModel");var YaR=new _.bu("lockupContentMetadataRowExtension");_.GvR=new _.bu("lockupMetadataViewModel");var uvl=new _.bu("lockupViewModel");var ORR=new _.bu("avatarStackViewModel");_.QHe=new _.bu("contentMetadataViewModel");var MJM=function(){HJ.apply(this,arguments)};
_.m(MJM,HJ);MJM.prototype.getAssociations=function(){return[]};
MJM.prototype.getTypeName=function(){return"pageHeaderEntity"};_.HRR=new _.bu("pageHeaderViewModel");var Ebk=new _.bu("snackbarViewModel");var tJE=new _.bu("thumbnailHoverOverlayToggleActionsViewModel");_.eD=new _.bu("toggleButtonViewModel");var KuI=function(){HJ.apply(this,arguments)};
_.m(KuI,HJ);KuI.prototype.getAssociations=function(){return[]};
KuI.prototype.getTypeName=function(){return"votingEntity"};_.fzU=new _.bu("votingViewModel");var aRE=new _.bu("sectionHeaderViewModel");var TzR=new _.bu("notifyDropdownOptionSelectedCommand");var Zh1=new _.bu("listViewModel");_.ad=new _.bu("listItemViewModel");var LuV=new _.bu("dialogHeaderViewModel");var gbR=function(){HJ.apply(this,arguments)};
_.m(gbR,HJ);gbR.prototype.getAssociations=function(){return[]};
gbR.prototype.getTypeName=function(){return"dataFreshnessEntity"};var NIj=new _.bu("suspenseViewModel");var X7E=new _.bu("tooltipViewModel");var PpV=function(){HJ.apply(this,arguments)};
_.m(PpV,HJ);PpV.prototype.getAssociations=function(){return[]};
PpV.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var IRV=function(){HJ.apply(this,arguments)};
_.m(IRV,HJ);IRV.prototype.getAssociations=function(){return[]};
IRV.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var kvl=function(){HJ.apply(this,arguments)};
_.m(kvl,HJ);kvl.prototype.getAssociations=function(){return[]};
kvl.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.nb_=new _.bu("transcriptSubmitCaptionCorrectionCommand");var Ful=function(){HJ.apply(this,arguments)};
_.m(Ful,HJ);Ful.prototype.getAssociations=function(){return[]};
Ful.prototype.getTypeName=function(){return"buttonEntity"};var jjy=new _.bu("unpluggedStringRunImage");var p7k=new _.bu("tabViewModel");var z5k=new _.bu("tabbedViewModel");var miV=function(){HJ.apply(this,arguments)};
_.m(miV,HJ);miV.prototype.getAssociations=function(){return[]};
miV.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.Wu1=new _.bu("updateDescriptionAction");var rlk=new _.bu("updateToggleButtonTextAction");var xil=new _.bu("showFullscreenPlayerControlsCommand");var fRk=new _.bu("updateVideoMetadataCommand");_.Cpl=new _.bu("autoplaySwitchButtonRenderer");var rV;_.ylU=new _.bu("multiMarkersPlayerBarRenderer");rV=new _.bu("chapterRenderer");var e5X=new _.bu("heatMarkerRenderer");var L41=new _.bu("heatmapRenderer");var Al1=new _.bu("smartSkipPlayerScrimOverlayRenderer");var ob_=new _.bu("timedMarkerDecorationRenderer");var g_t=new _.bu("postWebToNativeMessageCommand");var C$=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(C$,_.Ps);C$.prototype.getMethodName=function(){return _.zy(this,1)};var iR1=[0,_.j5,-2];C$.prototype.JSC$12880_serializeBinary=K0A(iR1);var R5I=_.yG(C$,iR1);var w7R=new _.bu("whitelistEditEndpoint");var ZR_=new _.bu("clearUrlParamCommand");var Di_=new _.bu("commerceActionCommand");_.h5I=new _.bu("getPaymentInstrumentsParamsCommand");var diR=new _.bu("getPaymentsClientTokenCommand");var bR4=new _.bu("googlePaymentBillingCommand");var Sal=new _.bu("googlePaymentPurchaseManagerCommand");_.NzR=new _.bu("logGtmCommand");var jHU=new _.bu("updateCardItemOnClickCommand");_.VJM=new _.bu("ypcPauseSubscriptionCommand");_.lRX=new _.bu("ypcResumeSubscriptionCommand");var BzU=function(){HJ.apply(this,arguments)};
_.m(BzU,HJ);BzU.prototype.getAssociations=function(){return[]};
BzU.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var $i_=function(){HJ.apply(this,arguments)};
_.m($i_,HJ);$i_.prototype.getAssociations=function(){return[]};
$i_.prototype.getTypeName=function(){return"commerceCartListEntity"};var qaR=function(){HJ.apply(this,arguments)};
_.m(qaR,HJ);qaR.prototype.getAssociations=function(){return[]};
qaR.prototype.getTypeName=function(){return"iconBadgeEntity"};var sHe=function(){HJ.apply(this,arguments)};
_.m(sHe,HJ);sHe.prototype.getAssociations=function(){return[]};
sHe.prototype.getTypeName=function(){return"pdpStateEntity"};var clI=function(){HJ.apply(this,arguments)};
_.m(clI,HJ);clI.prototype.getAssociations=function(){return[]};
clI.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var SdA=new _.bu("ypcOffersEndpoint");var Ui4=new _.bu("cardItemRenderer"),vbU=new _.bu("cardItemTextRenderer");var JlX=new _.bu("commerceCartItemQuantityPickerRenderer");var YM_=new _.bu("linkCardRenderer");var Hwg=new _.bu("quantityIncrementerButtonViewModel");var G$I=new _.bu("quantityIncrementerViewModel");var uyM=new _.bu("themedImageViewModel");_.Or_=new _.bu("ypcCancelRecurrenceEndpoint");var QWl=new _.bu("ypcCompleteTransactionEndpoint");_.MYl=new _.bu("ypcGetCartEndpoint");_.Dj=new _.bu("ypcGetOffersEndpoint");_.Aw=new _.bu("ypcHandleTransactionEndpoint");var HrI=new _.bu("ypcLogWalletAnalyticDataEndpoint");_.E82=new _.bu("ypcRedeemCodeEndpoint");var tYU=new _.bu("ypcUpdateFopEndpoint");bh(dx(1),Dh(4));lxI((new MessageChannel).port2);var TDV=function(){this.register=new Map},WPU=function(Y,G,u){Y=Y+"_"+G;
o_.register.has(Y)?u=o_.register.get(Y):(u=u(),o_.register.set(Y,u));return u},Lse=function(Y){Y=_.E(Y.register.values());
for(var G=Y.next();!G.done;G=Y.next())_.Mz(G.value,"ABORTED")};
TDV.prototype.clear=function(){Lse(this);this.register.clear()};
var o_=new TDV;var OkT=Date.now().toString();var HkU=MDj();var XJY={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 gBR;gBR=1;_.ks=function(Y){this.veData=Y};
_.Kd=function(Y){return new _.ks({trackingParams:Y})};
_.VZ=function(Y,G,u,O,Q,M){var t=gBR++;return new _.ks({veType:Y,veCounter:t,elementIndex:u,dataElement:G,youtubeData:O,jspbYoutubeData:Q,loggingDirectives:M})};
_.H=_.ks.prototype;
_.H.getAsJson=function(){var Y={};this.veData.trackingParams!==void 0?Y.trackingParams=this.veData.trackingParams:(Y.veType=this.veData.veType,this.veData.veCounter!==void 0&&(Y.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(Y.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(Y.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(Y.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(Y.isCounterfactual=!0);
return Y};
_.H.getAsJspb=function(){var Y=new zSk;this.veData.trackingParams!==void 0?Y.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.Cc(Y,2,this.veData.veType),this.veData.veCounter!==void 0&&_.Cc(Y,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.Cc(Y,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.BF(Y,5,!0));if(this.veData.dataElement!==void 0){var G=this.veData.dataElement.getAsJspb();_.Rh(Y,7,G)}this.veData.youtubeData!==void 0&&_.Rh(Y,8,this.veData.jspbYoutubeData);
return Y};
_.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};_.U5("yt_logging_screen.getRootVeType",Tut);_.U5("yt_logging_screen.getCurrentCsn",_.FA);_.U5("yt_logging_screen.getCttAuthInfo",pX);_.U5("yt_logging_screen.setCurrentScreen",_.z1);var Xdk=function(){this.events=new Map},PLR=function(Y){var G=[];
Y=_.E(Y.events.values());for(var u=Y.next();!u.done;u=Y.next())G.push(u.value);return G};
Xdk.prototype.clear=function(){this.events.clear()};var k9U=function(){this.logTransport=new IDe;this.loggedEventRegister=new Xdk;this.unloggedEventRegister=new Xdk;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12917_flushTimer=new _.gU(this.flushInterval);this.JSC$12917_flushTimer.listen("tick",this.flush,!1,this)};
k9U.prototype.flush=function(){if(this.eventsCount){var Y={loggedEvents:PLR(this.loggedEventRegister),unloggedEvents:PLR(this.unloggedEventRegister)};if(_.F("export_player_version_to_ytconfig")){var G;(G=_.DE("PLAYER_CLIENT_VERSION"))?(G=G.split("-")[0].replace(/\./g,""),G=isNaN(Number(G))?"0":G):G="";var u=_.DE("PLAYER_CLIENT_VERSION");if(u){u=u.split("-");var O="";u.length>1&&(O=u[u.length-1]);u=uVA(O.startsWith("canary_experiment")?"canary":O.startsWith("canary_control")?"control":"none")}else u=
"CLIENT_CANARY_STATE_UNKNOWN";Y.dimensions={playerClientVersion:G,playerCanaryState:u}}this.logTransport.flush(Y);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12917_flushTimer.enabled&&this.JSC$12917_flushTimer.stop()}};
var nBX=function(Y){ia==null&&(ia=new k9U);var G=ia;var u=G.loggedEventRegister;Y.dimensions=Y.dimensions||{};Y.dimensions.csn=_.FA()||"";var O=kGt(Y.dimensions).join(";");if(Y.records!=null)if(u.events.has(O)){var Q;(Q=u.events.get(O).records)==null||Q.push.apply(Q,_.c8(Y.records))}else u.events.set(O,Y);G.JSC$12917_flushTimer.enabled||G.JSC$12917_flushTimer.start();G.eventsCount++;G.eventsCount>=100&&G.flush()};var IDe=function(){};
IDe.prototype.flush=function(Y,G){_.F("enable_client_sli_logging")&&_.eK("sliEventBatch",Y,{sendIsolatedPayload:!!G})};var ia;var pd4;pd4=function(Y){var G=Fse;Y=Y===void 0?{}:Y;G=G.name;var u=mQ4("SUCCESS");nBX({dimensions:Y,records:[{name:G,state:"SLI_STATE_END",status:u}]})};
_.rwU=function(Y,G,u,O){this.name=Y;this.sliId=G;this.timeoutMs=u;this.statusOnTimeout=O;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.rwU.prototype.getId=function(){return this.sliId};
_.Qo=function(Y,G){G=G===void 0?{}:G;Y.ongoing||(Y.ongoing=!0,Y.dimensions=G,Y.logSliId=Bfa(),nBX({dimensions:Y.dimensions,records:[{name:Y.name,state:"SLI_STATE_START",sliId:Y.logSliId}]}),Y.timeoutMs>0&&(Y.timeoutHandle=setTimeout(function(){_.Mz(Y,Y.statusOnTimeout)},Y.timeoutMs)))};
_.Mz=function(Y,G){Y.ongoing&&(Y.timeoutMs>0&&clearTimeout(Y.timeoutHandle),Y.ongoing=!1,G={dimensions:Y.dimensions,records:[{name:Y.name,status:mQ4(G),state:"SLI_STATE_END",sliId:Y.logSliId}]},o_.register.delete(Y.name+"_"+Y.sliId),nBX(G))};var Fse=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var z7R=function(){HJ.apply(this,arguments)};
_.m(z7R,HJ);z7R.prototype.getAssociations=function(){return[]};
z7R.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var mh4=new _.bu("highlightTextDecoratorColorMapExtension");var WsE=new _.bu("styleRunColorMapExtension");var owj=_.hV(["data-"]),wJy={};var DQA={};var R_=function(Y){this.wrappedPromise_=Y===void 0?null:Y;this.state_=0;this.JSC$12948_value_=null};
R_.prototype.then=function(Y,G,u){return this.wrappedPromise_?this.wrappedPromise_.then(Y,G,u):this.state_===1&&Y?(Y=Y.call(u,this.JSC$12948_value_))&&typeof Y.then==="function"?Y:_.wu(Y):this.state_===2&&G?(Y=G.call(u,this.JSC$12948_value_))&&typeof Y.then==="function"?Y:_.rq1(Y):this};
R_.prototype.getValue=function(){return this.JSC$12948_value_};
R_.prototype.isRejected=function(){return this.state_==2};
hPI(R_);_.rq1=function(Y){var G=new R_;Y=Y===void 0?null:Y;G.state_=2;G.JSC$12948_value_=Y===void 0?null:Y;return G};
_.wu=function(Y){var G=new R_;Y=Y===void 0?null:Y;G.state_=1;G.JSC$12948_value_=Y===void 0?null:Y;return G};var vwA="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var xh2=["load","abort","error"],Zf=function(Y,G,u){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12968_maxAspectRatio_=Y;this.disableAnimation_=G===void 0?!1:G;this.disableExifRotation_=u===void 0?!1:u;this.JSC$12968_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12968_reject_=this.resolve_=null};
Zf.prototype.transform=function(Y){var G=this;this.mime_=Y.type;VB(av1(Y),this.dataUrlRead_,this.readError_,this);VB(K2R(Y.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(u,O){G.resolve_=u;G.JSC$12968_reject_=O})};
Zf.prototype.dataUrlRead_=function(Y){this.dataUrl_=Y;this.angle_!=null&&fD4(this)};
Zf.prototype.exifRead_=function(Y){if(this.disableExifRotation_)this.angle_=0;else{a:if(Y=new DataView(Y),Y.byteLength<2||Y.getUint16(0)!==65496)Y=-2;else{for(var G=2,u=Y.byteLength;G<u;){var O=Y.getUint16(G),Q=Y.getUint16(G+2);if(O===65505){G+=4;O=Y.getUint32(G);Q=Y.getUint16(G+4);if(O!==1165519206||Q!==0)break;G+=6;O=Y.getUint16(G)===18761;G+=Y.getUint32(G+4,O);Q=Y.getUint16(G,O);G+=2;for(var M=0;M<Q;M++){if(Y.getUint16(G,O)===274){G+=8;Y=Y.getUint16(G,O);break a}G+=12}}else if(O>>8!==255)break;
else G+=Q+2}Y=-1}switch(Y){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&&fD4(this)};
Zf.prototype.readError_=function(){this.JSC$12968_reject_()};
var fD4=function(Y){n7(Y.JSC$12968_image_,xh2,Y.completeTransform_,!1,Y);Y.JSC$12968_image_.src=_.cs(Y.dataUrl_).toString();Y.JSC$12968_image_.src!=sT.toString()&&Y.JSC$12968_image_.src.substr(0,11)==="data:image/"||Y.JSC$12968_reject_()};
Zf.prototype.completeTransform_=function(){if(this.JSC$12968_image_.src!=sT.toString()){var Y=_.cs(this.dataUrl_),G=this.JSC$12968_image_.naturalHeight?this.JSC$12968_image_.naturalWidth/this.JSC$12968_image_.naturalHeight:null;this.invalidAspectRatio=G>this.JSC$12968_maxAspectRatio_||G<1/this.JSC$12968_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var u=this.JSC$12968_image_.naturalWidth,O=this.JSC$12968_image_.naturalHeight,Q=G=0,M=this.JSC$12968_image_.naturalHeight?this.JSC$12968_image_.naturalWidth/
this.JSC$12968_image_.naturalHeight:null;M>this.JSC$12968_maxAspectRatio_?(u=this.JSC$12968_maxAspectRatio_*O,G=(u-this.JSC$12968_image_.naturalWidth)/2,this.cropped=!0):M<1/this.JSC$12968_maxAspectRatio_?(O=this.JSC$12968_maxAspectRatio_*u,Q=(O-this.JSC$12968_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)M=u,u=O,O=M,M=G,G=Q,Q=M;switch(this.angle_){case 90:Q-=u;break;case 180:G-=u;Q-=O;break;case 270:G-=
O}this.cropped||this.angle_%360!==0?(Y=document.createElement("canvas"),Y.width=u||1,Y.height=O||1,this.JSC$12968_image_.naturalWidth&&this.JSC$12968_image_.naturalHeight&&(u=Y.getContext("2d"),u.rotate(Math.PI/180*this.angle_),u.drawImage(this.JSC$12968_image_,G,Q,this.JSC$12968_image_.naturalWidth,this.JSC$12968_image_.naturalHeight)),this.transformedData=_.cs(Y.toDataURL(this.mime_))):this.transformedData=Y}else this.transformedData=Y;this.resolve_(this)}};var Df=function(Y,G){_.lI.call(this,Y);this.value=G};
_.m(Df,_.lI);
var hw=function(Y,G,u,O,Q,M,t){t=t===void 0?!1:t;_.C7.call(this);var K=this;this.JSC$12973_url_=Y;this.channelId_=G;this.maxFileSizeMb_=u;this.JSC$12973_maxAspectRatio_=O;this.dropZoneEl_=Q;this.rejectInvalidAspectRatio_=t;this.selectButtonEl_=M;this.JSC$12973_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new qR(this.dropZoneEl_);this.selectOverlay_=new sE(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12973_image_=this.transfer_=null;this.handler_=new _.ae(this);_.vF(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(M,"click",function(){K.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.m(hw,_.C7);hw.prototype.disposeInternal=function(){for(var Y=this.selectButtonEl_.nextSibling;Y&&Y.parentNode&&Y.tagName=="INPUT";)Y.parentNode.removeChild(Y),Y=this.selectButtonEl_.nextSibling;this.cancel();_.C7.prototype.disposeInternal.call(this)};
hw.prototype.uploadPromise=function(){if(this.JSC$12973_image_==null)return null;this.uploadPromise_||CLM(this);return this.uploadPromise_};
hw.prototype.cancel=function(){yqV(this);this.JSC$12973_image_=null};
var yqV=function(Y){Y.transfer_&&Y.transfer_.cancel();Y.transfer_=null;Y.uploadPromise_=null;Y.resolve_=null;Y.JSC$12973_reject_=null},CLM=function(Y){yqV(Y);
Y.transfer_=_.$$k(Y.JSC$12973_url_,{"X-YouTube-ChannelId":Y.channelId_},Y.JSC$12973_image_);Y.handler_.listenOnce(Y.transfer_,"l",Y.JSC$12975_onUploadComplete_);Y.handler_.listenOnce(Y.transfer_,"n",Y.onUploadError_);Y.transfer_.run();Y.uploadPromise_=new Promise(function(G,u){Y.resolve_=G;Y.JSC$12973_reject_=u})};
_.H=hw.prototype;_.H.onChange_=function(Y){Y.files.length&&(this.JSC$12973_image_=Y.files[0],this.JSC$12973_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12973_image_=null,this.dispatchEvent(new Df("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(CLM(this),(new Zf(this.JSC$12973_maxAspectRatio_)).transform(this.JSC$12973_image_).then((0,_.tP)(this.onPreview_,this),(0,_.tP)(this.onPreviewError_,this))))};
_.H.onPreview_=function(Y){if(Y.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12973_image_=null),this.dispatchEvent(new Df("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;Y.cropped&&this.dispatchEvent(new Df("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Df("yt.comments.ImageUploadOverlay.CHANGE_EVENT",Y.transformedData))};
_.H.onPreviewError_=function(){this.JSC$12973_image_=null;this.dispatchEvent(new Df("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.H.onHover_=function(Y){Y.stopPropagation();Y.preventDefault();if(Y.type==="dragover")Y=!0;else if(Y.type==="dragleave")Y=!1;else return;this.dispatchEvent(new Df("yt.comments.ImageUploadOverlay.HOVER_EVENT",Y))};
_.H.JSC$12975_onUploadComplete_=function(){var Y=(0,_.t1R)(this.transfer_.getResponseText());this.resolve_(Y.encryptedBlobId)};
_.H.onUploadError_=function(){this.JSC$12973_reject_();yqV(this)};var e72=function(Y){Y=Y||{};var G={},u={};this.url=Y.url||"";this.args=Y.args||_.gX.clone(G);this.assets=Y.assets||{};this.attrs=Y.attrs||_.gX.clone(u);this.fallback=Y.fallback||null;this.fallbackMessage=Y.fallbackMessage||null;this.html5=!!Y.html5;this.disable=Y.disable||{};this.loaded=!!Y.loaded;this.messages=Y.messages||{}};
e72.prototype.clone=function(){var Y=new e72,G;for(G in this)if(this.hasOwnProperty(G)){var u=this[G];_.Q9(u)=="object"?Y[G]=_.gX.clone(u):Y[G]=u}return Y};var MCg=function(Y,G,u){u=u===void 0?{}:u;this.name=Y;this.id=jc.nextSpanId++;this.sessionId=jc.sessionId;this.attributes=G;this.status="SPAN_STATUS_UNSET";var O;this.startTime=(O=u.startTime)!=null?O:(0,_.GC)();this.isActiveSpan=u.active;if(Y=jc.stack[jc.stack.length-1])this.parentId=Y.id,Y.children||(Y.children=[]),Y.children.push(this);Y=_.E(jc.processors);for(G=Y.next();!G.done;G=Y.next()){G=G.value;try{var Q=O=void 0;(Q=(O=G).onSpanStart)==null||Q.call(O,this)}catch(M){_.R0(M)}}u.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",u.endTime))};
MCg.prototype.end=function(Y,G){Y=Y===void 0?"SPAN_STATUS_OK":Y;this.endTime=G=G===void 0?(0,_.GC)():G;this.duration=this.endTime-this.startTime;this.status=Y;this.isActiveSpan!==!1&&(jc.stack[jc.stack.length-1]===this?jc.stack.pop():_.R0(Error("Cf`"+String(this.name))));Y=_.E(jc.processors);for(G=Y.next();!G.done;G=Y.next()){G=G.value;try{var u=void 0,O=void 0;(O=(u=G).onSpanEnd)==null||O.call(u,this)}catch(Q){_.R0(Q)}}};
MCg.prototype.addAttributes=function(Y){Object.assign(this.attributes,Y)};
var HlU={end:function(){},
addAttributes:function(){}},jc={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},Qrt={rootSpan:function(){return jc.stack[0]}};var B$={};var CQU=function(Y){this.observers=[];this.value=Y};
_.H=CQU.prototype;_.H.subscribe=function(Y){var G=this;if(Y.idx!=null)throw Error("Ef");Y.idx=this.observers.length;this.observers.push(Y);try{Y(this.value)}catch(u){}return function(){var u=G.observers[G.observers.length-1];G.observers[Y.idx]=u;u.idx=Y.idx;G.observers.pop()}};
_.H.update=function(Y){this.value=Y(this.value);this.notify()};
_.H.mutate=function(Y){Y(this.value);this.notify()};
_.H.set=function(Y){this.value=Y;this.notify()};
_.H.notify=function(){for(var Y=_.E(this.observers),G=Y.next();!G.done;G=Y.next()){G=G.value;try{G(this.value)}catch(u){}}};var AqV,oBR,iN_,S8,wdV,ZNR,Dh_,h7k,dh1,bNR,Su_,NDE,jNI,VQ1,lD_,BDI,$he,quI,sN1,cq_,UhI,vBk,Jq1,YiI,GTE,uFk,O0U,QYl,MP4,zyt,H0U,EQl,tPR,KoR,al_,T72,LoE,gQ4,XAl,PYR,poj,IlI,kT2,nQ4,Fo_,pAT,zdR,mwR,Woe,rSe,xwk,flI,CYU,ySe,edE,AS_,du,oQk,i02,Rd2,wAM,Z04,DwR,hdV,dwT,b0_,Sie,N7E,jYV,VPR,llR,B72,$wI,qi_,sYR,cSk,nLY,Uw2,vQX,JSR,YPl,GsR,uTU,OpM,Qb4,M4E,HpU,EJl,t4l,KpU,a5R,T94,LpI,gJV,Xze,PR2,I5k,ksM,nJU,Fpe,pze,zO4;AqV=["account/accounts_list"];oBR=["acknowledge_channel_tou_strike"];iN_=["notification/add_upcoming_event_reminder"];
_.R7R=["att/get"];S8=["browse","music/browse","streaming_browse","unplugged/browse"];wdV=["channel/claim_legacy_youtube_channel"];ZNR=["history/clear_search_history"];Dh_=["history/clear_watch_history"];h7k=["comment/perform_comment_action"];dh1=["comment/get_comment_replies"];bNR=["ypc/commerce_action"];Su_=["backstage/create_post"];NDE=["live/create_broadcast"];jNI=["channel/create_channel"];VQ1=["comment/create_comment_reply"];lD_=["comment/create_comment"];BDI=["live_chat/create_poll"];$he=["playlist/create"];
quI=["decorate_message"];sN1=["live_chat/delete_message"];cq_=["playlist/delete"];UhI=["video/delete"];vBk=["like/dislike"];Jq1=["dismissal/dismiss"];YiI=["flag/flag"];GTE=["flow"];uFk=["account/account_menu"];O0U=["playlist/get_add_to_playlist"];QYl=["get_answer"];MP4=["channel/get_channel_creation_form"];zyt=["offline/get_download_action"];H0U=["kids/get_kids_blocklist_picker"];EQl=["live_chat/get_item_context_menu"];tPR=["live_chat/get_live_chat_message_buy_flow"];KoR=["live_chat/get_live_chat_replay"];
al_=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];T72=["live_chat/get_live_chat_super_sticker_buy_flow"];LoE=["notification/get_notification_menu"];gQ4=["playlist/get_settings_editor"];XAl=["backstage/get_post_video_preview"];PYR=["account/get_profile_card"];poj=["share/get_share_panel"];IlI=["share/get_sharing_provider_data"];kT2=["get_survey"];nQ4=["notification/get_unseen_count"];Fo_=["get_user_mention_suggestions"];pAT=["get_watch"];zdR=["guide"];
mwR=["feedback"];Woe=["kids/update_blacklist"];rSe=["like/like"];xwk=["live_chat/live_chat_action"];flI=["live_chat/manage_user"];CYU=["video_manager/metadata_update"];ySe=["live_chat/moderate"];edE=["notification/modify_channel_preference"];AS_=["notification/opt_out"];du=["get_panel","streaming_panel","get_posts_by_host_panel"];oQk=["player"];i02=["browse/edit_playlist"];Rd2=["notification/record_interactions"];wAM=["reel/reel_item_watch"];Z04=["reel/reel_watch_sequence"];DwR=["like/removelike"];
hdV=["notification/remove_upcoming_event_reminder"];dwT=["flag/get_form"];b0_=["miniapp/report_value"];Sie=["navigation/resolve_url"];N7E=["channel/reveal_business_email"];jYV=["in_video/search"];VPR=["search","sfv/search","unplugged/search"];llR=["live_chat/send_message"];B72=["live_chat/send_live_chat_vote"];$wI=["account/set_setting"];qi_=["submit_caption_correction"];sYR=["submit_form"];cSk=["subscription/subscribe"];nLY=["get_transcript"];Uw2=["resolve_location","unplugged/resolve_location"];
vQX=["subscription/unsubscribe"];JSR=["backstage/update_post"];YPl=["channel_edit/update_channel_page_settings"];GsR=["comment/update_comment_reply"];uTU=["comment/update_comment"];OpM=["comment/update_comments_settings"];Qb4=["creator/update_creator_channel"];M4E=["pdg/update_enablement"];HpU=["updated_metadata"];EJl=["channel_edit/validate_channel_handle"];t4l=["verify_age"];KpU=["next","unplugged/watch_next"];a5R=["whitelist/edit"];T94=["ypc/cancel_recurrence"];LpI=["ypc/complete_transaction"];
gJV=["ypc/get_cart"];Xze=["ypc/get_fix_instrument_params"];PR2=["ypc/get_offers"];I5k=["ypc/get_payment_instruments_params"];ksM=["ypc/handle_transaction"];nJU=["ypc/log_payment_server_analytics"];Fpe=["ypc/pause_subscription"];pze=["ypc/redeem_code"];zO4=["ypc/resume_subscription"];var mX2=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,
180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,
162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,
297752,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,282159,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,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,293324,32633,74858,297045,275198,271884,222932,279119,271886,213915,275199,225216,251244,258251,218674,251266,258250,251265,251245,271885,
156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,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,283898,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,279531,50663,36387,
14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,298157,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,293041,293042,293043,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,297672,160598,57929,226736,
74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,294119,257268,63349,281127,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,282218,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,295069,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,294089,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,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,296316,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,
127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,296813,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,275782,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,281302,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,279755,
267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var OU=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.U5("yt.msgs_",OU);var ba=new _.Sb("ACTION_ROUTER_TOKEN");_.SD=function(){this.autonavState_=_.F("kevlar_is_pupi_enabled")?2:FDg()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.SD.prototype.getState=function(){return this.autonavState_};
_.SD.prototype.pause=function(Y){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=Y):this.autonavState_==1&&(this.disabledAutonavPauseReason_=Y)};
_.SD.prototype.setState=function(Y,G,u){G&&(this.autoplayChangedByUser=!0);G=this.autonavState_===3||Y===3;this.autonavState_!=Y&&(this.autonavState_=Y,Y!=3&&_.pq1(Y==2),Y=_.F("kevlar_is_pupi_enabled")?u||G:!0,_.N6.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,Y,u))};
_.SD.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.BH(_.SD);var NQ=function(){this.ku=!1};var jD={},oR1=(jD.auto_search="LATENCY_ACTION_AUTO_SEARCH",jD.ad_to_ad="LATENCY_ACTION_AD_TO_AD",jD.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",jD.app_startup="LATENCY_ACTION_APP_STARTUP",jD.browse="LATENCY_ACTION_BROWSE",jD.cast_splash="LATENCY_ACTION_CAST_SPLASH",jD.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",jD.channels="LATENCY_ACTION_CHANNELS",jD.chips="LATENCY_ACTION_CHIPS",jD.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",jD.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
jD.editor="LATENCY_ACTION_EDITOR",jD.embed="LATENCY_ACTION_EMBED",jD.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",jD.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",jD.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",jD.explore="LATENCY_ACTION_EXPLORE",jD.favorites="LATENCY_ACTION_FAVORITES",jD.home="LATENCY_ACTION_HOME",jD.inboarding="LATENCY_ACTION_INBOARDING",jD.landing="LATENCY_ACTION_LANDING",jD.learning="LATENCY_ACTION_LEARNING",
jD.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",jD.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",jD.library="LATENCY_ACTION_LIBRARY",jD.live="LATENCY_ACTION_LIVE",jD.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",jD.management="LATENCY_ACTION_MANAGEMENT",jD.mini_app="LATENCY_ACTION_MINI_APP_PLAY",jD.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",jD.onboarding="LATENCY_ACTION_ONBOARDING",jD.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
jD.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",jD.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",jD.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",jD.prebuffer="LATENCY_ACTION_PREBUFFER",jD.prefetch="LATENCY_ACTION_PREFETCH",jD.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",jD.profile_switcher="LATENCY_ACTION_LOGIN",jD.projects="LATENCY_ACTION_PROJECTS",jD.reel_watch="LATENCY_ACTION_REEL_WATCH",jD.results="LATENCY_ACTION_RESULTS",jD.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
jD.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",jD.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",jD.review="LATENCY_ACTION_REVIEW",jD.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",jD.search_ui="LATENCY_ACTION_SEARCH_UI",jD.search_suggest="LATENCY_ACTION_SUGGEST",jD.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",jD.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",jD.seek="LATENCY_ACTION_PLAYER_SEEK",jD.settings="LATENCY_ACTION_SETTINGS",jD.store="LATENCY_ACTION_STORE",
jD.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",jD.tenx="LATENCY_ACTION_TENX",jD.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",jD.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",jD.watch="LATENCY_ACTION_WATCH",jD.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",jD["watch,watch7"]="LATENCY_ACTION_WATCH",jD["watch,watch7_html5"]="LATENCY_ACTION_WATCH",jD["watch,watch7ad"]="LATENCY_ACTION_WATCH",jD["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",jD.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
jD.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",jD.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",jD.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",jD.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",jD.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",jD.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",jD.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",jD),Wp_=0;var cMt=function(Y,G){t7.call(this,1,arguments);this.timer=G};
_.m(cMt,t7);var sra=new ISa("aft-recorded",cMt);var ZlY=_.OI.ytLoggingGelSequenceIdObj_||{};_.U5("ytLoggingGelSequenceIdObj_",ZlY);var Vy=_.OI.ytLoggingLatencyUsageStats_||{};_.U5("ytLoggingLatencyUsageStats_",Vy);var la=function(){this.cleanupJob=0},dEa=function(){la.instance||(la.instance=new la);
return la.instance};
_.H=la.prototype;_.H.baseline=function(Y,G,u){BJ(this,"baseline_"+Y)||_.eK("latencyActionBaselined",{clientActionNonce:Y},{timestamp:G,cttAuthInfo:u})};
_.H.tick=function(Y,G,u,O){BJ(this,"tick_"+Y+"_"+G)||_.eK("latencyActionTicked",{tickName:Y,clientActionNonce:G},{timestamp:u,cttAuthInfo:O})};
_.H.info=function(Y,G,u){var O=Object.keys(Y).join("");BJ(this,"info_"+O+"_"+G)||(Y=Object.assign({},Y),Y.clientActionNonce=G,_.eK("latencyActionInfo",Y,{cttAuthInfo:u}))};
_.H.jspbInfo=function(Y,G,u){for(var O="",Q=0;Q<bN(Y).length;Q++)bN(Y)[Q]!==void 0&&(O=Q===0?O.concat(""+Q):O.concat("_"+Q));BJ(this,"info_"+O+"_"+G)||(_.E_(Y,2,G),G={cttAuthInfo:u},u=_.F("jspb_sparse_encoded_pivot")?new mm([{}]):new mm,_.wT(u,7,DW2,Y),DEy("latencyActionInfo",u,G))};
_.H.span=function(Y,G,u){var O=Object.keys(Y).join("");BJ(this,"span_"+O+"_"+G)||(Y.clientActionNonce=G,_.eK("latencyActionSpan",Y,{cttAuthInfo:u}))};
var BJ=function(Y,G){Vy[G]=Vy[G]||{count:0};var u=Vy[G];u.count++;u.time=(0,_.GC)();Y.cleanupJob||(Y.cleanupJob=_.WY(_.AN,function(){var O=(0,_.GC)(),Q;for(Q in Vy)Vy[Q]&&O-Vy[Q].time>6E4&&delete Vy[Q];Y&&(Y.cleanupJob=0)},5E3));
return u.count>5?(u.count===6&&Math.random()*1E5<1&&(u=new _.I2("CSI data exceeded logging limit with key",G.split("_")),G.indexOf("plev")>=0||_.R0(u)),!0):!1};var rpT,xXX;rpT=window;xXX=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Xh=rpT.performance||rpT.mozPerformance||rpT.msPerformance||rpT.webkitPerformance||new xXX;var qh4=!1,ShT=!1,UEI=(0,_.tP)(_.Xh.clearResourceTimings||_.Xh.webkitClearResourceTimings||_.Xh.mozClearResourceTimings||_.Xh.msClearResourceTimings||_.Xh.oClearResourceTimings||_.nu,_.Xh);var mSj=_.bi(function(Y,G,u,O,Q,M,t){if(!_.F("web_csi_action_sampling_enabled")||!_.KQ(M).actionDisabled){var K=t==null?void 0:t.spanStatus;t=t==null?void 0:t.rootSpanNonce;var L=_.aK(M);if(L.gelSpans)L.gelSpans[Y]=!0;else{var g={};L.gelSpans=(g[Y]=!0,g)}Wp_++;Y={spanName:Y,spanLengthUsec:String(Math.round(G*1E3)),spanNonce:Wp_,rootSpanNonce:t||Wp_};K&&(Y.spanStatus=K);O&&(Y.spanInfo=O);Q&&(Y.parentSpanNonce=Q);u&&(Y.spanStartTimeUsec=String(Math.round(u*1E3)));_.Tb(M||"").span[String(Y.spanName)]=
Y;u=_.aK(M);u.gelSpans||(u.gelSpans={});_.W$(u.gelSpans,Y);u=Cft(M);M=_.KQ(M).cttAuthInfo;dEa().span(Y,u,M);return Y.spanNonce}}),f5_=window;
f5_.ytcsi&&(f5_.ytcsi.infoGel=_.kN,f5_.ytcsi.tick=_.pQ);var tOu=function(Y){t7.call(this,1,arguments);this.csn=Y};
_.m(tOu,t7);var zYY=new ISa("screen-created",tOu),rC4=[],EYt=W9u,xyU=0,xN=new Map,K9A=new Map,aAI=new Map;var omA=Symbol("Gf"),Dy=new WeakMap;var $w=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},E3=function(){$w.instance||($w.instance=new $w);
return $w.instance};
_.H=$w.prototype;_.H.setClient=function(Y){this.client=Y};
_.H.JSC$13072_newScreen=function(){this.clear();this.csn=_.FA()};
_.H.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.H.reportShown=function(Y,G,u,O){var Q=this.JSC$13072_getTrackingParams(Y),M=Y.visualElement?Y.visualElement:Q;G=this.shownElements.has(M);var t=this.visibleState.get(M);this.shownElements.add(M);this.visibleState.set(M,!0);Y.impressionLog&&!G&&Y.impressionLog();if(Q||Y.visualElement)if(u=CRU(this,Y,u))if(M=yp2(this,Y),qQ(this,Y)||M){Q=Y.visualElement?Y.visualElement:_.Kd(Q);var K=Y.interactionLoggingClientData;M||G?qQ(this,Y)&4?t||nYU(this.client,u,Q,K):qQ(this,Y)&1&&!G&&PE1(this.client,u,Q,K,O):
PE1(this.client,u,Q,K,O)}};
_.H.reportHidden=function(Y,G,u,O){var Q=this.JSC$13072_getTrackingParams(Y),M=Y.visualElement?Y.visualElement:Q;G=this.hiddenElements.has(M);var t=this.visibleState.get(M);this.hiddenElements.add(M);this.visibleState.set(M,!1);if(t===!1)return!0;if(!Q&&!Y.visualElement)return!1;u=CRU(this,Y,u);if(!u||!qQ(this,Y)&&yp2(this,Y))return!1;Q=Y.visualElement?Y.visualElement:_.Kd(Q);qQ(this,Y)&8?F9T(this.client,u,Q,void 0,void 0,O):qQ(this,Y)&2&&!G&&(Y=this.client,O=rS({cttAuthInfo:pX(u)||void 0,automatedLogEventSource:O},
u),G={csn:u,ve:Q.getAsJson(),eventType:2},u==="UNDEFINED_CSN"?CQ("visualElementHidden",O,G):Y?CJ("visualElementHidden",G,Y,O):_.eK("visualElementHidden",G,O));return!0};
_.H.JSC$13072_getTrackingParams=function(Y){var G=this.getData(Y),u,O;if(_.F("il_use_view_model_logging_context")&&(G==null?0:(u=G.context)==null?0:(O=u.loggingContext)==null?0:O.loggingDirectives))return G.context.loggingContext.loggingDirectives.trackingParams||"";var Q,M;if(G==null?0:(Q=G.rendererContext)==null?0:(M=Q.loggingContext)==null?0:M.loggingDirectives)return G.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(G==null?0:G.loggingDirectives)return G.loggingDirectives.trackingParams||
"";var t;return((t=Y.veContainer)==null?0:t.trackingParams)?Y.veContainer.trackingParams:(G==null?void 0:G.trackingParams)||""};
_.H.JSC$13072_elementShouldLogGesture=function(Y,G){Y=this.getData(Y);return!!((Math.floor(Number(Y&&Y.loggingDirectives&&Y.loggingDirectives.gestures&&Y.loggingDirectives.gestures.types||""))||0)&G)};
_.H.JSC$13072_getNearestParentVe=function(Y){var G=this.JSC$13072_getTrackingParams(Y);return Y.visualElement?Y.visualElement:G?_.Kd(G):Y.parentElement?this.JSC$13072_getNearestParentVe(Y.parentElement):null};
var CRU=function(Y,G,u){var O=_.FA(u);return Y.csn===null||O===Y.csn||u?O:(Y=new _.I2("VisibilityLogger called before newScreen",{caller:G.tagName,previous_csn:Y.csn,current_csn:O}),_.R0(Y),null)};
$w.prototype.getData=function(Y){var G,u=Y.data||((G=Y.props)==null?void 0:G.data);if(!u||Y.isWebComponentWrapper){var O;u=(O=Dy.get(Y))==null?void 0:O[omA]}return u};
var yp2=function(Y,G){var u;return!((u=Y.getData(G))==null||!u.loggingDirectives)},qQ=function(Y,G){Y=Y.getData(G);
return Math.floor(Number(Y&&Y.loggingDirectives&&Y.loggingDirectives.visibility&&Y.loggingDirectives.visibility.types||""))||1};var sL;sL=function(){};
_.O3=function(){sL.instance||(sL.instance=new sL);return sL.instance};
sL.prototype.setClient=function(Y){_.bi(E3().setClient).bind(E3())(Y)};
_.eOR=function(){_.O3();_.bi(E3().JSC$13072_newScreen).bind(E3())()};
sL.prototype.clear=function(){_.bi(E3().clear).bind(E3())()};
sL.prototype.reportShown=function(Y,G,u,O){_.bi(E3().reportShown).bind(E3())(Y,G,u,O)};
sL.prototype.reportHidden=function(Y,G,u,O){return _.bi(E3().reportHidden).bind(E3())(Y,G,u,O)};
var fOa=function(Y,G){return _.bi(E3().JSC$13072_getTrackingParams).bind(E3())(G)},iej=function(Y,G){return _.bi(E3().JSC$13072_getNearestParentVe).bind(E3())(G)};var cJ,ApI;cJ=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};
_.M4=function(){cJ.instance||(cJ.instance=new cJ);return cJ.instance};
cJ.prototype.setClient=function(Y){this.client=Y};
ApI=function(Y,G,u){u=u===void 0?{}:u;_.bi(function(){var O,Q,M,t=((O=_.z(G==null?void 0:G.commandMetadata,_.ug))==null?void 0:O.rootVe)||((Q=_.z(G==null?void 0:G.commandMetadata,ERE))==null?void 0:(M=Q.screenVisualElement)==null?void 0:M.uiType);if(t){O=_.z(G==null?void 0:G.commandMetadata,MxE);if(O==null?0:O.parentTrackingParams){var K=_.Kd(O.parentTrackingParams);if(O.parentCsn)var L=O.parentCsn}else u.clickedVisualElement?K=u.clickedVisualElement:G.clickTrackingParams&&(K=_.Kd(G.clickTrackingParams));
a:{O=_.z(G,_.ic);Q=_.z(G,uFa);if(O){if(Q=zkT(O,"VIDEO")){O={token:Q,videoId:O.videoId};break a}}else if(Q&&(O=zkT(Q,"PLAYLIST"))){O={token:O,playlistId:Q.playlistId};break a}O=void 0}u=Object.assign({},{cttAuthInfo:O,parentCsn:L},u);if(_.F("expectation_logging")){var g;u.loggingExpectations=((g=_.z(G==null?void 0:G.commandMetadata,ERE))==null?void 0:g.loggingExpectations)||void 0}_.UL(Y,t,K,u)}else _.R0(new _.I2("Error: Trying to create a new screen without a rootVeType",G))})()};
_.UL=function(Y,G,u,O){O=O===void 0?{}:O;_.bi(function(){mX2.includes(G)||(_.R0(new _.I2("createClientScreen() called with a non-page VE",G)),G=83769);O.isHistoryNavigation||(Y.forwardHistoryStack=[],Y.backHistoryStack.push({rootVe:G,key:O.key||""}));Y.graftQueue=[];Y.stateChangedQueue=[];O.dataPromises?oJR(Y,G,u,O):ipR(Y,G,u,O)})()};
_.ROV=function(Y,G,u){u=u===void 0?0:u;_.bi(function(){G.then(function(O){Y.pendingScreenCreation.has(u)&&Y.pendingScreenFn&&Y.pendingScreenFn();var Q=_.FA(u),M=_.nX(u);if(Q&&M){var t={automatedLogEventSource:3},K;(O==null?0:(K=O.response)==null?0:K.trackingParams)&&fQ(Y.client,Q,M,_.Kd(O.response.trackingParams),!1,t);var L;(O==null?0:(L=O.playerResponse)==null?0:L.trackingParams)&&fQ(Y.client,Q,M,_.Kd(O.playerResponse.trackingParams),!1,t)}})})()};
cJ.prototype.graftServerVe=function(Y,G,u){var O=this;return _.bi(function(){var Q=_.Kd(Y);_.lq(O,Q,G,u);return Q})()};
_.Rvu=function(Y,G,u,O){return _.F("enable_client_ve_spec")&&G.clientVeSpec?(G=_.VZ(G.clientVeSpec.uiType,void 0,G.clientVeSpec.elementIndex,G.clientVeSpec.clientYoutubeData,void 0,G),_.lq(Y,G,u,O)?G:null):G.trackingParams?Y.graftServerVe(G.trackingParams,u,O):null};
_.QZ=function(Y,G,u,O){return _.bi(function(){if(!G.veType)return _.ij(new _.I2("Error: Trying to graft a client VE without a veType.")),null;if(G.visibilityTypes){var Q=G.visibilityTypes.reduce(function(M,t){return M|t});
Q={visibility:{types:String(Q)}}}Q=_.VZ(G.veType,G.visualElement,G.elementIndex,G.clientYouTubeData,void 0,Q);return _.lq(Y,Q,u,O)?Q:null})()};
_.lq=function(Y,G,u,O){O=O===void 0?0:O;return _.bi(function(){if(Y.pendingScreenCreation.has(O))return Y.graftQueue.push([G,u]),!0;var Q=_.FA(O),M=u||_.nX(O);if(Q&&M){if(_.F("combine_ve_grafts")){var t=Y.cachedVisualElements.get(M.toString());t?t.push(G):(Y.cachedRootVisualElements.set(M.toString(),M),Y.cachedVisualElements.set(M.toString(),[G]));Y.attachTimeout||(Y.attachTimeout=_.WY(_.AN,function(){wzR(Y,Q)},1200))}else fQ(Y.client,Q,M,G);
return!0}return!1})()};
_.vJ=function(Y,G,u){u=u===void 0?0:u;var O=Y.recurringGrafts.get(u)||new Map;if(_.F("smarter_ve_dedupping"))for(var Q=Array.from(O.keys()),M=0;M<Q.length;M++){var t=void 0,K=void 0;var L=G;var g=Q[M];g.isClientVe()&&L.isClientVe()?(t=L.getAsJson(),K=g.getAsJson(),L=t.veType!==K.veType||t.elementIndex!==K.elementIndex||t.dataElement!==K.dataElement||L.getLoggingDirectives()!==g.getLoggingDirectives()?!1:!0):L=g.veData.trackingParams!==void 0&&L.veData.trackingParams!==void 0?((K=L.veData)==null?void 0:
K.trackingParams)===((t=g.veData)==null?void 0:t.trackingParams):!1;if(L)return}else if(O.has(G))return;O.set(G,void 0);Y.recurringGrafts.set(u,O);_.FA(u)==="UNDEFINED_CSN"||Y.pendingScreenCreation.has(u)||_.lq(Y,G,void 0,u)};
_.Jw=function(Y,G,u,O){O=_.FA(O===void 0?0:O);if(!O)return!1;z9t(Y.client,O,G,u);return!0};
_.YR=function(Y,G,u,O){if(!G)return!1;O=_.FA(O===void 0?0:O);if(!O)return!1;z9t(Y.client,O,_.Kd(G),u);return!0};
_.er=function(Y,G){var u=G.getScreenLayer&&G.getScreenLayer();if(G.visualElement)return _.Jw(Y,G.visualElement,void 0,u);G=fOa(_.O3(),G);return _.YR(Y,G,void 0,u)};
cJ.prototype.clickCommand=function(Y,G,u){return _.YR(this,Y.clickTrackingParams,G,u===void 0?0:u)};
cJ.prototype.stateChanged=function(Y,G,u){this.visualElementStateChanged(_.Kd(Y),G,u===void 0?0:u)};
cJ.prototype.visualElementStateChanged=function(Y,G,u){u=u===void 0?0:u;u===0&&this.pendingScreenCreation.has(u)?this.stateChangedQueue.push([Y,G]):this.logStateChanged(Y,G,u)};
cJ.prototype.logStateChanged=function(Y,G,u){u=u===void 0?0:u;var O=_.FA(u);Y=Y||_.nX(u);return O&&Y?(myA(this.client,O,Y,G),!0):!1};
var oJR=function(Y,G,u,O){O=O===void 0?{}:O;Y.pendingScreenCreation.add(O.layer||0);Y.pendingScreenFn=function(){ipR(Y,G,u,O);var t=_.nX(O.layer);if(t){for(var K=_.E(Y.graftQueue),L=K.next();!L.done;L=K.next())L=L.value,_.lq(Y,L[0],L[1]||t,O.layer);t=_.E(Y.stateChangedQueue);for(K=t.next();!K.done;K=t.next())K=K.value,Y.logStateChanged(K[0],K[1])}};
u||_.FA(O.layer)||Y.pendingScreenFn();if(O.dataPromises)for(var Q=_.E(O.dataPromises),M=Q.next();!M.done;M=Q.next())_.ROV(Y,M.value,O.layer);else _.o0(Error("Hf"))},ipR=function(Y,G,u,O){O=O===void 0?{}:O;
var Q=void 0;O.layer||(O.layer=0);Q=O.parentLayer!==void 0?O.parentLayer:O.layer;var M=_.FA(Q);Q=_.nX(Q);var t=u||Q,K;t&&(O.parentCsn!==void 0?K={clientScreenNonce:O.parentCsn,visualElement:t}:M&&M!=="UNDEFINED_CSN"&&(K={clientScreenNonce:M,visualElement:t}));var L,g=_.DE("EVENT_ID");M==="UNDEFINED_CSN"&&g&&(L={servletData:{serializedServletEventId:g}});_.F("combine_ve_grafts")&&M&&wzR(Y,M);_.F("no_client_ve_attach_unless_shown")&&t&&M&&XZy(t,M);try{var P=_.T8t(Y.client,G,K,O.csnToClone,O.cttAuthInfo,
L,O.implicitGestureType,void 0,O.loggingExpectations,O.automatedLogEventSource)}catch(n){_.wN(n,{rootVeType:G,rootVe:Q,parentVisualElement:u,currentCsn:M,parentEl:K,csnToClone:O.csnToClone});_.o0(n);return}_.z1(P,G,O.layer,O.cttAuthInfo);M&&M!=="UNDEFINED_CSN"&&Q&&!Pay(M)&&F9T(Y.client,M,Q,!0);Y.backHistoryStack[Y.backHistoryStack.length-1]&&!Y.backHistoryStack[Y.backHistoryStack.length-1].csn&&(Y.backHistoryStack[Y.backHistoryStack.length-1].csn=P||"");_.kN({clientScreenNonce:P});_.eOR();var I=_.nX(O.layer);
M&&M!=="UNDEFINED_CSN"&&I&&_.F("music_web_mark_root_visible")&&_.AW(P,I);Y.pendingScreenCreation.delete(O.layer||0);Y.pendingScreenFn=void 0;var k;(k=Y.recurringGrafts.get(O.layer))==null||k.forEach(function(n,p){n?_.lq(Y,p,n,O.layer):I&&_.lq(Y,p,I,O.layer)});
ZpT(Y)},ZpT=function(Y){for(var G=0;G<Y.afterNewScreenOneOffJobs.length;G++){var u=Y.afterNewScreenOneOffJobs[G];
try{u()}catch(O){_.o0(O)}}for(G=Y.afterNewScreenOneOffJobs.length=0;G<Y.afterNewScreenRecurringJobs.length;G++){u=Y.afterNewScreenRecurringJobs[G];try{u()}catch(O){_.o0(O)}}},wzR=function(Y,G){if(G===void 0)for(var u=gwT(),O=0;O<u.length;O++)u[O]!==void 0&&wzR(Y,u[O]);
else Y.cachedVisualElements.forEach(function(Q,M){(M=Y.cachedRootVisualElements.get(M))&&L9y(Y.client,G,M,Q)}),Y.cachedVisualElements.clear(),Y.cachedRootVisualElements.clear(),Y.attachTimeout=void 0};var Gc=function(Y){Y=Y===void 0?{layer:0}:Y;this.ku=!1;this.createScreenConfig=Y;Y={};this.pCH=(Y.response=!1,Y.playerResponse=!1,Y)};
_.m(Gc,NQ);Gc.prototype.validate=function(Y){return!(!Y.data||!Y.data.response&&!Y.data.playerResponse)};
Gc.prototype.handle=function(Y){var G=_.M4(),u=this.createScreenConfig.layer;Y.data.response&&Y.data.response.trackingParams&&!this.pCH.response&&(G.graftServerVe(Y.data.response.trackingParams,void 0,u),this.pCH.response=!0);Y.data.playerResponse&&Y.data.playerResponse.trackingParams&&!this.pCH.playerResponse&&(G.graftServerVe(Y.data.playerResponse.trackingParams,void 0,u),this.pCH.playerResponse=!0)};var uf=function(){this.gI=_.RS();this.tZ=[];this.c2u=0};
uf.prototype.processChunk=function(Y){if(Y){for(var G=_.E(this.tZ),u=G.next();!u.done;u=G.next())u=u.value,u.validate(Y)&&(u.handle(Y),u.ku=!0);_.pQ("np"+this.c2u);this.c2u++}};var Ggl,DXk,bpl;_.Jj=function(Y,G,u,O,Q,M,t,K){t=t===void 0?[]:t;K=K===void 0?[]:K;this.buildCommandPayload=Y;this.navigate=G;this.handleServiceRequest=u;this.sendAction=O;this.JSC$13107_screenManager=Q;this.commandResolverMap=M;this.autoLogResolverAllowlist=t;this.metaCommandClickLoggingDenylist=K;this.pendingCommands=new Set;this.isTracingEnabled=!1;DXk(this)};
Ggl=function(Y,G,u){var O=[_.rKR,htU],Q=SOa,M=Nvt,t=_.M4(),K=hOT;u=u===void 0?[]:u;O=O===void 0?[]:O;_.Jj.instance=new _.Jj(Y,G,Q,M,t,K,u,O)};
DXk=function(Y){if(!Y.isTracingEnabled&&VA("command")){var G=Y.resolveCommand;Y.resolveCommand=function(u,O){a:{for(Q in u)if(Object.prototype.hasOwnProperty.call(u,Q)){var Q={commandType:Q};break a}Q={}}return _.lc("command",Q,G.bind(this,u,O))};
Y.isTracingEnabled=!0}};
bpl=function(Y,G,u){if(!Y.commandResolverMap)return!1;var O=ACT(G,Y.commandResolverMap);return O?((Y.autoLogResolverAllowlist.some(function(Q){return!!_.z(G,Q)})||(u==null?0:u.forceClickLogging))&&dXl(Y,G,u),O instanceof Promise?O.then(function(Q){Q.resolve(G,u)}):O.resolve(G,u),!0):!1};
_.Jj.prototype.resolveCommand=function(Y,G){var u=this,O=SPl(Y);if((G==null||!G.skipCommandResolverMap)&&bpl(this,Y,G))return!0;if(O)return N9X(this,Y,G);if(!this.buildCommandPayload)return CEA(Y,"Unhandled command by buildCommandPayload"),!1;var Q=this.buildCommandPayload(Y,G);if(G==null?0:G.commandController)Q.commandController=G.commandController;if(Q.type===0){if(!this.navigate)return yCt(Y,"navigate"),!1;if(!jbk(Q.command))return CEA(Y,"Page requests need to specify a url"),!1;_.F("logging_avoid_blocking_during_navigation")&&
_.u9T().transition("application_navigating");Y=this.navigate(Q)||[];lE2(Y).then(function(){u.pendingCommands.delete(Q.command)});
return!0}if(Q.type===1){if(!this.handleServiceRequest)return yCt(Y,"handleServiceRequest"),!1;(G==null?0:G.forceClickLogging)&&dXl(this,Q.command,G);Y=this.handleServiceRequest(Q);lE2(Y).then(function(){u.pendingCommands.delete(Q.command)});
return!0}if(Q.type===2){if(!this.sendAction)return yCt(Y,"sendAction"),!1;dXl(this,Q.command,G);this.sendAction(Q);return!0}return!1};
var dXl=function(Y,G,u){if((u==null||!u.disableClickTracking)&&Y.JSC$13107_screenManager)if(G.clickTrackingParams&&_.F("log_click_with_layer_from_element_in_command_handler")){var O;u=u==null?void 0:(O=u.form)==null?void 0:O.element;Y.JSC$13107_screenManager.clickCommand(G,null,u&&u.getScreenLayer&&u.getScreenLayer())}else G.clickTrackingParams?Y.JSC$13107_screenManager.clickCommand(G):!_.F("disable_clicked_visual_element_in_command_handler")&&(u==null?0:u.clickedVisualElement)&&_.Jw(Y.JSC$13107_screenManager,
u.clickedVisualElement)},SPl=function(Y){var G=!!_.z(Y,_.Jv),u;
Y=((u=_.z(Y,_.Gb))==null?void 0:u.signal)==="CLIENT_SIGNAL";return G||Y},N9X=function(Y,G,u){var O=_.z(G,_.Jv);
if(O)var Q=(O==null?void 0:O.commands)||[];else{var M;if(((M=_.z(G,_.Gb))==null?void 0:M.signal)==="CLIENT_SIGNAL"){var t;Q=((t=_.z(G,_.Gb))==null?void 0:t.actions)||[]}}if(Q){(O=V4M(Y,Q))&&dXl(Y,G,u);G=_.E(Q);for(Q=G.next();!Q.done;Q=G.next()){Q=Q.value;try{var K=Object.assign({},u);O&&(K.disableClickTracking=!0);Y.resolveCommand(Q,K)}catch(L){L instanceof Error&&_.o0(L)}}return!0}CEA(G,"Could not handle the meta command");return!1},V4M=function(Y,G){return G.every(function(u){return Y.metaCommandClickLoggingDenylist.some(function(O){return!!_.z(u,
O)})})},jbk=function(Y){var G;
return!((G=_.z(Y==null?void 0:Y.commandMetadata,_.ug))==null||!G.url)};var Oh=function(){NQ.apply(this,arguments)};
_.m(Oh,NQ);Oh.prototype.validate=function(Y){var G,u;return!this.ku&&!!((G=Y.data.response)==null?0:(u=G.onResponseReceivedEndpoints)==null?0:u.length)};
Oh.prototype.handle=function(Y){var G=_.Jj.instance;Y=_.E(Y.data.response.onResponseReceivedEndpoints);for(var u=Y.next();!u.done;u=Y.next())G.resolveCommand(u.value)};var l5R,B92,ME;
l5R=function(){this.channelPageActivation=this.companionCanvasActivation=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=_.v$();this.navigatingAwayFromWatchDeletedVideo=
!1;this.currentEndpoint=null;this.isVideoPlaying=!1};
_.Qq=function(){B92||(B92=new l5R);return B92};
ME=function(){var Y=_.Qq();Y.miniplayerButtonActivation=!1;Y.userActivation=!1;Y.playlistWatchPageActivation=!1;Y.productDetailsPageActivation=!1;Y.miniAppPageActivation=!1;Y.playablesDestPageActivation=!1;Y.lockupActivation=!1;Y.showMiniplayerCommandActivation=!1;Y.playlistSuggestionsShelfActivation=!1;Y.mediaSessionPipActivation=!1;Y.watchPipActivation=!1;Y.watchWhileActivation=!1;Y.shortsPipActivation=!1;Y.companionCanvasActivation=!1;Y.channelPageActivation=!1};
_.$XV=function(){var Y=_.Qq(),G=Y.mediaSessionPipActivation,u=Y.watchPipActivation,O=Y.watchWhileActivation,Q=Y.playlistWatchPageActivation,M=Y.lockupActivation,t=Y.showMiniplayerCommandActivation,K=Y.navigatingAwayFromWatchDeletedVideo,L=Y.shortsPipActivation,g=Y.playlistSuggestionsShelfActivation,P=Y.productDetailsPageActivation,I=Y.miniAppPageActivation,k=Y.playablesDestPageActivation,n=Y.companionCanvasActivation,p=Y.channelPageActivation;return!Y.miniplayerButtonActivation&&!Q&&!g&&!P&&!I&&!k&&
!M&&!t&&!G&&!u&&!O&&!L&&!n&&!p||K};var grU;_.Hq=_.dS("FEwhat_to_watch","/",3854);_.X_4=_.dS("FEdownloads","/feed/downloads",42352);grU=_.dS("FEmusic_offline","browse/FEmusic_offline",42352);var wK=function(Y,G){G=G===void 0?[]:G;var u=u===void 0?[]:u;G=$Ou.apply(null,[qRA.apply(null,_.c8(G))].concat(_.c8(u)));this.store=v5j(Y,void 0,G)};
wK.prototype.getState=function(){return this.store.getState()};
wK.prototype.dispatch=function(Y){return this.store.dispatch(Y)};
wK.prototype.subscribe=function(Y){return this.store.subscribe(Y)};
wK.prototype.replaceReducer=function(Y){return this.store.replaceReducer(Y)};
wK.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Eh=function(Y,G,u){var O=G(Y.getState());return Y.subscribe(function(){var Q=G(Y.getState());if(Q!==O){var M=O;O=Q;u(Q,M)}})};var zFY;_.t$=function(Y,G,u){return _.V6({type:"REPLACE_ENTITY",payload:{entityPayload:u,entityType:Y,key:G}})};
zFY=function(Y){return _.V6({type:"REPLACE_ENTITIES",payload:Y})};
_.zP=function(Y,G,u,O){return _.V6({type:"UPDATE_ENTITY",payload:{entityPayload:u,entityType:Y,key:G,mergeOption:O}})};var VOA=function(Y){var G=this;Y=Y===void 0?[]:Y;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;Y.forEach(function(u){G.append(u)})};
_.H=VOA.prototype;_.H.getLength=function(){return this.totalLength};
_.H.append=function(Y){var G=this.arrays.length===0?!1:(G=this.arrays[this.arrays.length-1])&&G.buffer===Y.buffer&&G.byteOffset+G.length===Y.byteOffset;G?(G=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(G.buffer,G.byteOffset,G.length+Y.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(Y);this.totalLength+=Y.length};
_.H.split=function(Y){for(var G=new VOA,u=new VOA,O=_.E(this.arrays),Q=O.next();!Q.done;Q=O.next())Q=Q.value,Y>=Q.length?(G.append(Q),Y-=Q.length):Y?(G.append(new Uint8Array(Q.buffer,Q.byteOffset,Y)),u.append(new Uint8Array(Q.buffer,Q.byteOffset+Y,Q.length-Y)),Y=0):u.append(Q);return{headView:G,tailView:u}};
_.H.isFocused=function(Y){return Y>=this.arrayPos&&Y<this.arrayPos+this.arrays[this.arrayIdx].length};
_.H.focus=function(Y){if(!this.isFocused(Y))for(Y<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=Y&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var qPM=function(Y,G){Y.focus(G);return Y.arrays[Y.arrayIdx][G-Y.arrayPos]};(function(){var Y=function(O){return new Uint8Array(O)},G=function(O){for(var Q=new Uint8Array(O.length),M=0;M<O.length;M++)Q[M]=O[M];
return Q},u=new Uint8Array([1]);
return u.length===1&&u[0]===1?Y:G})();
var h9a=Array(1024),DyY=window.TextDecoder?new TextDecoder:void 0,bIT=window.TextEncoder?new TextEncoder:void 0;var j8a=function(Y){this.arrayView=Y;this.pos=0;this.pendingTagAndType=-1},lg=function(Y){var G=qPM(Y.arrayView,Y.pos);
++Y.pos;if(G<128)return G;for(var u=G&127,O=1;G>=128;)G=qPM(Y.arrayView,Y.pos),++Y.pos,O*=128,u+=(G&127)*O;return u},lA1=function(Y,G){var u=Y.pendingTagAndType;
for(Y.pendingTagAndType=-1;Y.pos+1<=Y.arrayView.totalLength;){u<0&&(u=lg(Y));var O=u>>3,Q=u&7;if(O===G)return!0;if(O>G){Y.pendingTagAndType=u;break}u=-1;switch(Q){case 0:lg(Y);break;case 1:Y.pos+=8;break;case 2:O=lg(Y);Y.pos+=O;break;case 5:Y.pos+=4}}return!1};var $y4=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=N8u(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},c2=function(Y,G){G=Y.pos+G;
if(!(Y.buf.length>=G)){for(var u=Y.buf.length*2;u<G;)u*=2;Y.buf=N8u(u,Y.wasm,Y.buf.subarray(0,Y.pos));Y.view=new DataView(Y.buf.buffer,Y.buf.byteOffset,Y.buf.byteLength)}},sU=function(Y,G){if(G>268435455){c2(Y,4);
for(var u=G&1073741823,O=0;O<4;O++)Y.view.setUint8(Y.pos,u&127|128),u>>=7,Y.pos+=1;G=Math.floor(G/268435456)}for(c2(Y,4);G>127;)Y.view.setUint8(Y.pos,G&127|128),G>>=7,Y.pos+=1;Y.view.setUint8(Y.pos,G);Y.pos+=1};for(var q2U={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},B8j={},sbR=_.E(Object.entries(q2U)),cpT=sbR.next();!cpT.done;cpT=sbR.next()){var UX1=_.E(cpT.value),vJX=UX1.next().value,JpR=UX1.next().value,Yp4=vJX,G7R=JpR;G7R&&(B8j[G7R]=Yp4)};var cC4=function(Y,G){Y=Y===void 0?{}:Y;switch(G.type){case "ENTITY_LOADED":return G.payload.reduce(function(O,Q){var M,t=(M=Q.options)==null?void 0:M.persistenceOption;if(t&&t!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&t!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return O;if(!Q.entityKey)return _.o0(Error("Jf")),O;if(Q.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Q.payload)return Q=new _.I2("REPLACE entity mutation is missing a payload",{entityKey:Q.entityKey}),_.o0(Q),O;var K=(0,_.gX.getAnyKey)(Q.payload);
return vYj(O,K,Q.entityKey,Q.payload[K])}if(Q.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Q=Q.entityKey;try{var L=_.B2(Q).entityType;K=vYj(O,L,Q);break a}catch(I){if(I instanceof Error){Q=new _.I2("Failed to deserialize entity key",{entityKey:Q,originalMessage:I.message});_.o0(Q);K=O;break a}throw I;}K=void 0}return K}if(Q.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Q.payload)return Q=new _.I2("UPDATE entity mutation is missing a payload",{entityKey:Q.entityKey}),_.o0(Q),O;K=(0,_.gX.getAnyKey)(Q.payload);
var g,P;return JCt(O,K,Q.entityKey,Q.payload[K],(g=Q.fieldMask)==null?void 0:(P=g.mergeOptions)==null?void 0:P.repeatedFieldsMergeOption)}return O},Y);
case "REPLACE_ENTITY":var u=G.payload;return vYj(Y,u.entityType,u.key,u.entityPayload);case "REPLACE_ENTITIES":return Object.keys(G.payload).reduce(function(O,Q){var M=G.payload[Q];return Object.keys(M).reduce(function(t,K){return vYj(t,Q,K,M[K])},O)},Y);
case "UPDATE_ENTITY":return u=G.payload,JCt(Y,u.entityType,u.key,u.entityPayload,u.mergeOption);default:return Y}};var Y6a;var urI=!1,tM,Kl,ar,Tc,Ll,OoX=function(Y){_.Ey.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!urI){var G,u=new Uint8Array(256),O=new Uint8Array(256);var Q=1;for(G=0;G<256;G++)u[Q]=G,O[G]=Q,Q^=Q<<1^(Q>>7&&283);tM=new Uint8Array(256);Kl=JW(256);ar=JW(256);Tc=JW(256);Ll=JW(256);for(var M=0;M<256;M++){Q=M?O[255^u[M]]:0;Q^=Q<<1^Q<<2^Q<<3^Q<<4;Q=Q&255^Q>>>8^99;tM[M]=Q;G=Q<<1^(Q>>7&&283);var t=G^Q;Kl[M]=G<<24|Q<<16|Q<<8|t;ar[M]=t<<24|Kl[M]>>>8;Tc[M]=Q<<24|ar[M]>>>
8;Ll[M]=Q<<24|Tc[M]>>>8}urI=!0}Q=JW(44);for(u=0;u<4;u++)Q[u]=Y[4*u]<<24|Y[4*u+1]<<16|Y[4*u+2]<<8|Y[4*u+3];for(O=1;u<44;u++)Y=Q[u-1],u%4||(Y=(tM[Y>>16&255]^O)<<24|tM[Y>>8&255]<<16|tM[Y&255]<<8|tM[Y>>>24],O=O<<1^(O>>7&&283)),Q[u]=Q[u-4]^Y;this.key=Q};
_.m(OoX,_.Ey);
OoX.prototype.encrypt=function(Y){var G=Y.length;Y=new Uint8Array(Y.buffer.slice(Y.byteOffset,Y.byteOffset+G));for(var u=this.cipherBlock,O=0;O<G&&this.blockOffset<16;)Y[O++]^=u[this.blockOffset++];for(var Q=G-(G-O)%16;O<Q;)Qk2(this),Y[O++]^=u[0],Y[O++]^=u[1],Y[O++]^=u[2],Y[O++]^=u[3],Y[O++]^=u[4],Y[O++]^=u[5],Y[O++]^=u[6],Y[O++]^=u[7],Y[O++]^=u[8],Y[O++]^=u[9],Y[O++]^=u[10],Y[O++]^=u[11],Y[O++]^=u[12],Y[O++]^=u[13],Y[O++]^=u[14],Y[O++]^=u[15];if(O<G)for(Qk2(this),this.blockOffset=0;O<G;)Y[O++]^=
u[this.blockOffset++];return Y};
var Qk2=function(Y){for(var G=Y.key,u=Y.counter[0]^G[0],O=Y.counter[1]^G[1],Q=Y.counter[2]^G[2],M=Y.counter[3]^G[3],t=3;t>=0&&!(Y.counter[t]=-~Y.counter[t]);t--);for(var K,L,g=4;g<40;)t=Kl[u>>>24]^ar[O>>16&255]^Tc[Q>>8&255]^Ll[M&255]^G[g++],K=Kl[O>>>24]^ar[Q>>16&255]^Tc[M>>8&255]^Ll[u&255]^G[g++],L=Kl[Q>>>24]^ar[M>>16&255]^Tc[u>>8&255]^Ll[O&255]^G[g++],M=Kl[M>>>24]^ar[u>>16&255]^Tc[O>>8&255]^Ll[Q&255]^G[g++],u=t,O=K,Q=L;Y=Y.cipherBlock;t=G[40];Y[0]=tM[u>>>24]^t>>>24;Y[1]=tM[O>>16&255]^t>>16&255;Y[2]=
tM[Q>>8&255]^t>>8&255;Y[3]=tM[M&255]^t&255;t=G[41];Y[4]=tM[O>>>24]^t>>>24;Y[5]=tM[Q>>16&255]^t>>16&255;Y[6]=tM[M>>8&255]^t>>8&255;Y[7]=tM[u&255]^t&255;t=G[42];Y[8]=tM[Q>>>24]^t>>>24;Y[9]=tM[M>>16&255]^t>>16&255;Y[10]=tM[u>>8&255]^t>>8&255;Y[11]=tM[O&255]^t&255;t=G[43];Y[12]=tM[M>>>24]^t>>>24;Y[13]=tM[u>>16&255]^t>>16&255;Y[14]=tM[O>>8&255]^t>>8&255;Y[15]=tM[Q&255]^t&255};var MfM=!1;(function(){var Y=function(O){return new Uint8Array(O)},G=function(O){for(var Q=new Uint8Array(O.length),M=0;M<O.length;M++)Q[M]=O[M];
return Q},u=new Uint8Array([1]);
return u.length===1&&u[0]===1?Y:G})();
var gp;var tfM=function(Y){a:{if(!MfM&&!s5){if(gp){var G=gp;break a}gp=(G=window.crypto)==null?void 0:G.subtle;var u,O,Q;if(((u=gp)==null?0:u.importKey)&&((O=gp)==null?0:O.sign)&&((Q=gp)==null?0:Q.encrypt)){G=gp;break a}gp=void 0}G=void 0}G&&(this.nativeEncryptor=new HoE(Y,G));this.encryptorPolyfill=new EzU(Y)};
tfM.prototype.encrypt=function(Y,G){var u=this,O;return _.a(function(Q){switch(Q.nextAddress){case 1:if(!u.nativeEncryptor){Q.jumpTo(2);break}_.i3(Q,3);return Q.yield(u.nativeEncryptor.encrypt(Y,G),5);case 5:return Q.return(Q.yieldResult);case 3:O=_.b3(Q),_.R0(O),MfM=!0,u.nativeEncryptor=void 0;case 2:return Q.return(u.encryptorPolyfill.encrypt(Y,G))}})};
tfM.prototype.decrypt=function(Y,G){return this.encrypt(Y,G)};
var HoE=function(Y,G){this.JSC$13180_aesKey=Y;this.subtleCrypto=G};
HoE.prototype.encrypt=function(Y,G){var u=this,O;return _.a(function(Q){if(Q.nextAddress==1)return _.i3(Q,2),Q.yield(K84(u,Y,G),4);if(Q.nextAddress!=2)return Q.return(Q.yieldResult);O=_.b3(Q);_.R0(O);MfM=!0;throw O;})};
var K84=function(Y,G,u){var O,Q;return _.a(function(M){switch(M.nextAddress){case 1:if(Y.cryptoKey){M.jumpTo(2);break}return M.yield(Y.subtleCrypto.importKey("raw",Y.JSC$13180_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:Y.cryptoKey=M.yieldResult;case 2:return O={name:"AES-CTR",counter:u,length:128},M.yield(Y.subtleCrypto.encrypt(O,Y.cryptoKey,G),4);case 4:return Q=M.yieldResult,M.return(new Uint8Array(Q))}})},EzU=function(Y){this.JSC$13183_aesKey=Y};
EzU.prototype.encrypt=function(Y,G){this.encryptor||(this.encryptor=new OoX(this.JSC$13183_aesKey));for(var u=this.encryptor,O=0;O<4;O++)u.counter[O]=G[O*4]<<24|G[O*4+1]<<16|G[O*4+2]<<8|G[O*4+3];u.blockOffset=16;return this.encryptor.encrypt(Y)};
EzU.prototype.decrypt=function(Y,G){return this.encrypt(Y,G)};var adV={},OZj=Jd("yt-idb-pref-storage",{objectStores:(adV.prefs={addedAtVersion:1},adV),shared:!1,upgrade:function(Y,G){G(1)&&SV(bB(Y,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Xu=function(Y){this.token=Y};
_.Xu.getInstance=function(){return _.a(function(Y){return Y.return(new Promise(function(G){_.vK().then(function(u){u?(_.Xu.instance||(_.Xu.instance=new _.Xu(u)),G(_.Xu.instance)):G(void 0)})}))})};
_.Xu.prototype.get=function(Y){var G=this,u,O,Q;return _.a(function(M){if(M.nextAddress==1)return M.yield(Qtg(G.token),2);if(M.nextAddress!=3)return u=M.yieldResult,M.yield(u.get("prefs",Y),3);O=M.yieldResult;if(!O)return M.return();Q=(0,_.GC)();return O.expirationTimestampMs<=Q?M.return():M.return(O.value)})};
_.Xu.prototype.set=function(Y,G,u){u=u===void 0?31536E3:u;var O=this,Q,M,t;return _.a(function(K){if(K.nextAddress==1)return Q=(0,_.GC)(),M={key:Y,value:G,expirationTimestampMs:Q+u*1E3},K.yield(Qtg(O.token),2);t=K.yieldResult;return K.yield(t.put("prefs",M),0)})};
_.Xu.prototype.remove=function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(Qtg(G.token),2);u=O.yieldResult;return O.yield(u.delete("prefs",Y),0)})};var Pq={},TO4=(Pq.INVALID_ENCODER_VERSION="Invalid encoder version",Pq.KEY_CREATION_FAILED="Failed to create encoder key",Pq.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Pq.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Pq.WRONG_DATA_TYPE="Encoder cannot process the data type",Pq),YG=function(Y,G){G=G===void 0?{}:G;_.I2.call(this,TO4[Y],Object.assign({},{name:"PESEncoderError",type:Y},G));this.type=Y;this.level="WARNING";Object.setPrototypeOf(this,YG.prototype)};
_.m(YG,_.I2);var Ir=function(){};
Ir.prototype.encode=function(Y,G){try{return this.encodeImpl(Y,G)}catch(u){tZA(u,HZt)}};
Ir.prototype.decode=function(Y,G){try{return this.decodeImpl(Y,G)}catch(u){tZA(u,EfI)}};
var L8k=function(Y,G,u){var O;return _.a(function(Q){if(Q.nextAddress==1)return _.i3(Q,2),Q.yield(Y.decodeAsyncImpl(G,u),4);if(Q.nextAddress!=2)return Q.return(Q.yieldResult);O=_.b3(Q);tZA(O,EfI);_.Sd(Q)})};
Ir.prototype.decodeAsyncImpl=function(Y,G){return Promise.resolve(this.decodeImpl(Y,G))};var kR=function(Y,G){this.aesEncryptor=Y;this.aesEncryptorAsync=G};
_.m(kR,Ir);kR.prototype.encodeImpl=function(Y,G){G=KBA(G);Y=(new TextEncoder).encode(JSON.stringify(Y));return this.aesEncryptor.encrypt(Y,G)};
kR.prototype.decodeImpl=function(Y,G){if(!(Y instanceof Uint8Array))throw MZt(1);var u=new TextDecoder;G=KBA(G);Y=this.aesEncryptor.decrypt(Y,G);return JSON.parse(u.decode(Y))};
kR.prototype.decodeAsyncImpl=function(Y,G){var u=this,O,Q,M;return _.a(function(t){if(t.nextAddress==1){if(!(Y instanceof Uint8Array))throw MZt(1);O=new TextDecoder;Q=KBA(G);return t.yield(u.aesEncryptorAsync.decrypt(Y,Q),2)}M=t.yieldResult;return t.return(JSON.parse(O.decode(M)))})};var aYy={accountLinkStatusEntity:cKl,booleanEntity:mRR,buttonEntity:Ful,captionTrack:OZI,channelHandle:c7R,chipEntity:qok,commerceAcquisitionClientPayloadEntity:BzU,commerceCartListEntity:$i_,compositeSourceEntity:nYX,multiviewStagingEntity:F9R,contextNoteFeedEntityPayload:acX,contextNoteUserRatingEntityPayload:Tk4,continuationTokenEntity:wq_,downloadQualityPickerEntity:WDX,downloadsPageRefreshTokenEntity:xE4,downloadsPageViewConfigurationEntity:VCk,downloadStatusEntity:rMV,dismissState:sV1,sfvAudioItemCurrentlyPlayingEntity:hFI,
emojiFountainDataEntity:IRV,emojiCustomizationSetEntity:PpV,fakeChannel:xRE,fakePlaylist:fh1,fakePlaylistEntryCollection:ChV,fakeVideo:ehM,fakeVideoDescription:AKR,featuredProductsEntity:aA4,flowStateEntity:BxR,iconBadgeEntity:qaR,interstitialInteractionStateEntity:LP1,likeButtonAnimationEntity:l_1,liveChatPollStateEntity:pJ2,dataFreshnessEntity:gbR,liveViewerLeaderboardChatEntryPointStateEntity:kr1,liveViewerLeaderboardPointsEntity:nf_,liveReactionsDataEntity:kvl,logoEntity:afT,macroMarkerEntity:BpT,
mainDownloadsLibraryEntity:f__,mainDownloadsListEntity:CfV,mainPlaylistDownloadStateEntity:ekT,mainPlaylistEntity:ZlU,mainPlaylistVideoEntity:DE_,mainVideoDownloadStateEntity:AM_,mainVideoEntity:ShR,markersEngagementPanelSyncEntity:$ET,markersVisibilityOverrideEntity:qhE,musicAlbumReleaseDetail:xyX,musicAlbumReleaseDownloadMetadataEntity:pZ4,musicAlbumRelease:rCE,musicAlbumReleaseUserDetail:fAT,musicArtistDetail:yCe,musicArtist:CEl,musicArtistUserDetail:e9T,musicDownloadsLibraryEntity:z9e,musicLibraryEdit:ACR,
musicLibraryStatusEntity:oYl,musicPlaylist:iIT,musicPlaylistDownloadMetadataEntity:myl,musicShare:wZX,musicTrackDetail:DyU,musicTrackDownloadMetadataEntity:W91,musicTrack:ZI1,musicTrackUserDetail:h9k,offlineOrchestrationActionWrapperEntity:Qt2,offlineVideoPolicy:MZV,offlineVideoStreams:HZe,offlineabilityEntity:oRT,orchestrationWebSamplingEntity:ilU,pageHeaderEntity:MJM,pdpStateEntity:sHe,pinnedProductEntity:T8e,playbackData:Ef4,playerStateEntity:srk,quantityIncrementerEntity:clI,refresh:tZl,saveToPlaylistListEntity:H8R,
selectedChipIndexEntityPayload:cMV,settingEntity:CA2,stringEntity:WA2,suggestedFeedbackChipStateEntity:UE4,transfer:KBl,trendingOfferEntity:L9_,videoDownloadContextEntity:aY_,videoOverviewAsyncDataEntity:z7R,videoPlaybackPositionEntity:miV,votingEntity:KuI,ytMainChannelEntity:NpI,youchatPendingResponseEntity:vR4,ytMainDownloadedVideoEntity:Rk1,ytMainVideoEntity:jrk};var gzl,PSk,MW,nfy,FBT,nz2,pWl,F8R,k7R;gzl=function(Y,G){this.JSC$13202_wrapped=Y;this.JSC$13202_encoderRegistry=G;this.changedKeys={}};
PSk=function(Y,G){return XWI(Y.JSC$13202_encoderRegistry,G.version).decode(G.data,G.key)};
_.Idk=function(Y,G,u){return Y.JSC$13202_wrapped.objectStore("EntityStore").get(G).then(function(O){if(O){if(u&&O.entityType!==u)throw Error("Kf");return PSk(Y,O)}})};
MW=function(Y,G,u){return u?(u=u.map(function(O){return _.Idk(Y,O,G)}),hd.all(u)):Y.JSC$13202_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(G)).then(function(O){return O.map(function(Q){return PSk(Y,Q)})})};
_.kru=function(Y,G,u){var O=s8A(G),Q=XWI(Y.JSC$13202_encoderRegistry,1),M=Object.assign({},G);return Y.JSC$13202_wrapped.objectStore("EntityStore").get(O).then(function(t){if(t){if(t.entityType!==u)throw Error("Kf");M.entityMetadata||(t=PSk(Y,t),M.entityMetadata=t.entityMetadata)}}).then(function(){var t={key:O,
entityType:u,data:Q.encode(M,O),version:1};return hd.all([Y.JSC$13202_wrapped.objectStore("EntityStore").put(t),k7R(Y,M,u)])}).then(function(){nz2(Y,O,u);
return O})};
nfy=function(Y,G){var u=_.B2(G).entityType;return hd.all([Y.JSC$13202_wrapped.objectStore("EntityStore").delete(G),F8R(Y,G)]).then(function(){nz2(Y,G,u)})};
FBT=function(Y,G,u,O){var Q=XWI(Y.JSC$13202_encoderRegistry,1);return _.Idk(Y,G,O).then(function(M){if(M){M=ZIu(M,u);var t={key:G,entityType:O,data:Q.encode(M,G),version:1};return hd.all([Y.JSC$13202_wrapped.objectStore("EntityStore").put(t),k7R(Y,M,O)])}}).then(function(){nz2(Y,G,O);
return G})};
nz2=function(Y,G,u){var O=Y.changedKeys[u];O||(O=new Set,Y.changedKeys[u]=O);O.add(G)};
pWl=function(Y,G,u){var O=s8A(G);u=TMU(u);if(!u)return hd.resolve([]);u=new u(G);Y=Y.JSC$13202_wrapped.objectStore("EntityAssociationStore");G=[];u=_.E(u.getAssociations());for(var Q=u.next();!Q.done;Q=u.next())G.push(Y.put({parentEntityKey:O,childEntityKey:Q.value}));return hd.all(G).then(function(M){return M.map(function(t){return t[1]})})};
F8R=function(Y,G){return Y.JSC$13202_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(G))};
k7R=function(Y,G,u){var O=s8A(G);return F8R(Y,O).then(function(){return pWl(Y,G,u)})};var zC4=function(){};
_.m(zC4,Ir);zC4.prototype.encodeImpl=function(Y){return Y};
zC4.prototype.decodeImpl=function(Y){if(Y instanceof Uint8Array)throw MZt(0);return Y};var XOg=function(){this.cacheMap={};this.cacheMap[0]=new zC4;if(!_.F("aes_pes_encoder_killswitch")){var Y=this.cacheMap;try{var G=_.Xw();var u=KBA(G);var O=new kR(new EzU(u),new tfM(u))}catch(Q){throw Y=Q instanceof Error?new YG("KEY_CREATION_FAILED",{originalMessage:Q.message}):new YG("KEY_CREATION_FAILED"),_.o0(Y),Y;}Y[1]=O}},XWI=function(Y,G){G=G===void 0?0:G;
Y=Y.cacheMap[G];if(!Y)throw G=new YG("INVALID_ENCODER_VERSION",{encoderVersion:G}),_.o0(G),G;return Y};var u8=function(Y,G){_.Ey.call(this);this.token=Y;this.JSC$13216_encoderRegistry=G;this.observers=[];Y=new _.OI.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Xw());Y.onmessage=this.JSC$13216_handleMessage.bind(this);this.channel=Y};
_.m(u8,_.Ey);_.Qc=function(Y,G,u){var O,Q,M,t;return _.a(function(K){if(K.nextAddress==1)return K.yield(uRA(Y.token),2);if(K.nextAddress!=3)return O=K.yieldResult,K.yield(_.BK(O,["EntityStore","EntityAssociationStore"],G,function(L){Q=new gzl(L,Y.JSC$13216_encoderRegistry);return u(Q)}),3);
M=K.yieldResult;Q&&(t=Q.changedKeys,Object.keys(t).length>0&&(Y.channel.postMessage(t),mJ2(Y,t)));return K.return(M)})};
u8.prototype.observe=function(Y){var G=this;this.observers.push(Y);return function(){var u=G.observers.indexOf(Y);u>=0&&G.observers.splice(u,1)}};
var SZI=function(Y){var G;return _.a(function(u){if(u.nextAddress==1)return u.yield(_.Qc(Y,{mode:"readonly",enableRetries:!0},function(O){return O.JSC$13202_wrapped.objectStore("EntityStore").getAll()}),2);
G=u.yieldResult;return u.return(Promise.all(G.filter(function(O){return!!O}).map(function(O){var Q,M;
return _.a(function(t){if(t.nextAddress==1){Q=O.key;M=O.entityType;var K=t.yield;var L=L8k(XWI(Y.JSC$13216_encoderRegistry,O.version),O.data,O.key);return K.call(t,L,2)}return t.return({key:Q,entityType:M,data:t.yieldResult})})})))})};
u8.prototype.JSC$13216_handleMessage=function(Y){mJ2(this,Y.data)};
var mJ2=function(Y,G){Y=_.E(Y.observers);for(var u=Y.next();!u.done;u=Y.next())u=u.value,u(G)};
u8.prototype.disposeInternal=function(){this.channel.close()};
var LBT;var nl,rQR,dHj;nl={};_.W8R=(nl.mainVideoEntity="mainVideoEntityActionMetadata",nl.mainPlaylistEntity="mainPlaylistEntityActionMetadata",nl.musicTrack="musicTrackEntityActionMetadata",nl.musicPlaylist="musicPlaylistEntityActionMetadata",nl);rQR=new _.Sb("DOWNLOADS_ENTITY_TYPE_MAP");_.gK=_.UU("","downloadsPageViewConfigurationEntity");dHj=_.UU("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.nKj=_.UU("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.UU("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.UU("SMART_DOWNLOADS_ENABLED","settingEntity");_.UU("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var rig=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var of4=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var xJ2={isLeaderTab:!0};var H8A={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var Fu=window,fU=Fu.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",R5j=Fu.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||iRu,diT=Fu.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||u6,NwI=Fu.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||SeV,dvM=Fu.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||Jf2,Zwg=Fu.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||M0V;var oby;AH({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 vbY=bRI(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(Y){return Y}}}),YmU=bRI(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(Y){return Y}}}),VJj=new Map;var YMy=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],sHt;var fd2=function(Y){return _.V6({type:"SET_EPHEMERAL_ACTION",payload:Y})};var CSI={ephemeralAction:null};var yQV=fA({ephemeralAction:function(Y,G){Y=Y===void 0?CSI.ephemeralAction:Y;switch(G.type){case "SET_EPHEMERAL_ACTION":return G.payload;default:return Y}}});var eCR=function(Y){return _.V6({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:Y})};var AQU={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var ozl={sharedUi:AQU,a11y:CSI,entities:{}},x8j={sharedUi:function(Y,G){Y=Y===void 0?AQU:Y;switch(G.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},Y,{animatedThumbnailEnabled:G.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},Y,{inlinePreviewEnabled:G.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},Y,{currentPageType:G.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},Y,{currentPageSubType:G.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},Y,{persistentPanelVisible:G.payload});default:return Y}},
a11y:yQV,entities:Uyg};var Hrj={playlistId:"",inviteLinkURL:""};var iol={continuationCommand:{}};var k$g=fA({continuationCommand:function(Y,G){Y=Y===void 0?iol.continuationCommand:Y;switch(G.type){case "SET_CONTINUATION_COMMAND":return G.payload.continuationCommand;default:return Y}}});var tYY={currentFormId:"",commandsMap:{}};var n8a=fA({isLeaderTab:function(Y,G){Y=Y===void 0?xJ2.isLeaderTab:Y;switch(G.type){case "SET_IS_LEADER_TAB":var u,O;return(O=G==null?void 0:(u=G.payload)==null?void 0:u.isLeaderTab)!=null?O:Y;default:return Y}}});var wWI;_.RCR=function(Y){return _.V6({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:Y}})};
wWI=function(Y){return _.V6({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:Y}})};var pl={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var rZt=fA({isDesktopSmallWidth:function(Y,G){Y=Y===void 0?pl.isDesktopSmallWidth:Y;switch(G.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return G.payload.isDesktopSmallWidth;default:return Y}},
isShortsActive:function(Y,G){Y=Y===void 0?pl.isShortsActive:Y;switch(G.type){case "SET_IS_SHORTS_ACTIVE":return G.payload.isShortsActive;default:return Y}},
isWatchWhileMode:function(Y,G){Y=Y===void 0?pl.isWatchWhileMode:Y;switch(G.type){case "SET_IS_WATCH_WHILE_MODE":return G.payload.isWatchWhileMode;default:return Y}},
playerState:function(Y,G){Y=Y===void 0?pl.playerState:Y;switch(G.type){case "SET_PLAYER_STATE":return G.payload.playerState;default:return Y}},
isFullscreen:function(Y,G){Y=Y===void 0?pl.isFullscreen:Y;switch(G.type){case "SET_IS_FULLSCREEN":return G.payload.isFullscreen;default:return Y}},
isSmallScreenSqueezeback:function(Y,G){Y=Y===void 0?pl.isSmallScreenSqueezeback:Y;switch(G.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return G.payload.isSmallScreenSqueezeback;default:return Y}},
isShortsPipActive:function(Y,G){Y=Y===void 0?pl.isShortsPipActive:Y;switch(G.type){case "SET_IS_SHORTS_PIP_ACTIVE":return G.payload.isShortsPipActive;default:return Y}},
isPlaybackStarted:function(Y,G){Y=Y===void 0?pl.isPlaybackStarted:Y;switch(G.type){case "SET_IS_PLAYBACK_STARTED":return G.payload.isPlaybackStarted;default:return Y}}});var aFg={currentMode:"canvas-hidden"};var C2t=function(){return function(Y){return function(G){var u=Y(G);_.qZ(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[G],!0);return u}}};var Zoe,Oiy;Zoe=new _.sG;_.$h=new _.Sb("WATCH_PLAYER_PROMISE_TOKEN");_.DJ4=new _.sG;_.hC_=new _.Sb("SHORTS_PLAYER_PROMISE_TOKEN");Oiy=new _.Sb("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var yZt=function(){return function(Y){return function(G){G.type==="ENTITY_LOADED"&&_.sH().resolve(_.$h).then(function(u){var O;(O=u.dispatchReduxAction)==null||O.call(u,G)});
return Y(G)}}};var dJR={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var Fbg=fA({additionalContext:function(Y,G){Y=Y===void 0?dJR.additionalContext:Y;switch(G.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var u;return(u=G.payload)!=null?u:"";default:return Y}},
impersonatedChannelUrl:function(Y,G){Y=Y===void 0?dJR.impersonatedChannelUrl:Y;switch(G.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var u;return(u=G.payload)!=null?u:"";default:return Y}},
selectedVideoIds:function(Y,G){Y=Y===void 0?dJR.selectedVideoIds:Y;switch(G.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var u={};return Object.assign({},Y,(u[G.payload]=!0,u));case "VIDEO_UNSELECTED":return G=G.payload,Y=Object.assign({},Y),delete Y[G],Y;default:return Y}}});var boe={parentClickTrackingParams:""};var p9y=fA({parentClickTrackingParams:function(Y,G){Y=Y===void 0?boe.parentClickTrackingParams:Y;switch(G.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return G.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return Y}}});var SpI=function(Y){return _.V6({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:Y})},NOk=function(Y){return _.V6({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:Y})};var jke={stepStates:{}};var zga=fA({stepStates:function(Y,G){Y=Y===void 0?jke.stepStates:Y;switch(G.type){case "TALK_TO_RECS_RESET_STEP_STATE":var u=G.payload,O=Object.assign({},Y);delete O[u.stepId];return O;case "TALK_TO_RECS_UPDATE_SELECTION":var Q=Y,M=G.payload,t;Y={};G={selectionStates:Object.assign({},(t=(u=Q[M.stepId])==null?void 0:u.selectionStates)!=null?t:{},(Y[M.token]={isSelected:M.isSelected},Y)),userQuery:(O=Q[M.stepId])==null?void 0:O.userQuery};u={};return Object.assign({},Q,(u[M.stepId]=G,u));case "TALK_TO_RECS_UPDATE_USER_QUERY":return u=
Y,O=G.payload,t={selectionStates:Object.assign({},(M=(Q=u[O.stepId])==null?void 0:Q.selectionStates)!=null?M:{}),userQuery:{userQuery:O.userQuery,token:O.userQueryToken}},Q={},Object.assign({},u,(Q[O.stepId]=t,Q));default:return Y}}});var VfU,ld2,$JU;VfU=function(Y){return _.V6({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:Y})};
ld2=function(Y){return _.V6({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:Y})};
_.py=function(Y){return _.V6({type:"SET_CURRENT_PAGE_TYPE",payload:Y})};
_.BOR=function(Y){return _.V6({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:Y})};
$JU=function(Y){return _.V6({type:"SET_CHIP_BAR_IS_STICKY",payload:Y})};var LbI={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"};_.zc=function(Y){return _.V6({type:"SET_PLAYER_STATE",payload:{playerState:Y}})};var mD={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:X9T(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var m81=fA({isTheaterMode:function(Y,G){Y=Y===void 0?X9T():Y;switch(G.type){case "SET_IS_THEATER_MODE":return G.payload.isTheaterMode;default:return Y}},
isWatchActive:function(Y,G){Y=Y===void 0?mD.isWatchActive:Y;switch(G.type){case "SET_IS_WATCH_ACTIVE":return G.payload.isWatchActive;default:return Y}},
isLearningJourneyActive:function(Y,G){Y=Y===void 0?mD.isLearningJourneyActive:Y;switch(G.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return G.payload.isLearningJourneyActive;default:return Y}},
isWatchFullscreen:function(Y,G){Y=Y===void 0?mD.isWatchFullscreen:Y;switch(G.type){case "SET_IS_WATCH_FULLSCREEN":return G.payload.isWatchFullscreen;default:return Y}},
isWatchNarrowWidth:function(Y,G){Y=Y===void 0?mD.isWatchNarrowWidth:Y;switch(G.type){case "SET_IS_WATCH_NARROW_WIDTH":return G.payload.isWatchNarrowWidth;default:return Y}},
isSwatcherooActive:function(Y,G){Y=Y===void 0?mD.isSwatcherooActive:Y;switch(G.type){case "SET_IS_SWATCHEROO_ACTIVE":return G.payload.isSwatcherooActive;default:return Y}},
isWatchRetroMode:function(Y,G){Y=Y===void 0?mD.isWatchRetroMode:Y;switch(G.type){case "SET_IS_WATCH_RETRO_MODE":return G.payload.isWatchRetroMode;default:return Y}},
isLiveChatCollapsed:function(Y,G){Y=Y===void 0?mD.isLiveChatCollapsed:Y;switch(G.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return G.payload.isLiveChatCollapsed;default:return Y}},
openEngagementPanels:function(Y,G){Y=Y===void 0?mD.openEngagementPanels:Y;var u=[].concat(_.c8(Y));switch(G.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return u.push(G.payload.panelToAdd),u;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return u.splice(u.indexOf(G.payload.panelToRemove),1),u;default:return Y}},
playerState:function(Y,G){Y=Y===void 0?mD.playerState:Y;switch(G.type){case "SET_PLAYER_STATE":return G.payload.playerState;default:return Y}},
watchScrollTop:function(Y,G){Y=Y===void 0?mD.watchScrollTop:Y;switch(G.type){case "SET_WATCH_SCROLL_TOP":return G.payload.watchScrollTop;default:return Y}},
watchWindowSize:function(Y,G){Y=Y===void 0?mD.watchWindowSize:Y;switch(G.type){case "SET_WATCH_WINDOW_SIZE":return G.payload.watchWindowSize;default:return Y}}});var qpX={surveyFeedbackData:{feedbackTokens:[]}};var WbA=fA({surveyFeedbackData:function(Y,G){Y=Y===void 0?qpX.surveyFeedbackData:Y;switch(G.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return G.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},Y,G.payload);default:return Y}}});var P21={};var AZu=void 0;_.F("web_enable_redux_store_on_demand")||(AZu=egt());var sk4=function(Y,G,u){var O=this;this.listId=Y;this.JSC$13361_updateCallback=G;this.isOfflineVideoCallback=u;_.Zs().subscribe(function(){O.handleUpdate()})};
sk4.prototype.getPlaylistData=function(){var Y=_.Zs().getState().entities;if(this.listId&&this.listId!=="PPSV"){var G=sty(Y,this.listId,!0),u=_.UU(this.listId,"mainPlaylistEntity"),O,Q;Y=Y==null?void 0:(O=Y.mainPlaylistEntity)==null?void 0:(Q=O[u])==null?void 0:Q.title;return o8y(G,Y,this.listId)}G=_.iZy(rsI(Y));Y=_.iZy(_.XX(Y));Y=G.concat(Y);return o8y(Y)};
sk4.prototype.getPlaylistId=function(){return this.listId};
sk4.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13361_updateCallback(this.listId,this.getPlaylistData(),{})};var Wq=function(Y,G,u,O){O=O===void 0?[]:O;this.JSC$13364_playlistNetworkManager=Y;this.listId=G;this.JSC$13364_updateCallback=u;this.videoIds=O;this.pendingUpdates=[];this.currentIndex=0};
Wq.prototype.JSC$13364_setCurrentIndex=function(Y){this.currentIndex=Y};
Wq.prototype.setListId=function(Y){this.listId=Y};
var cQe=function(Y,G){Y.currentCreateRequest&&Y.currentCreateRequest.cancel(G);Y.currentUpdateRequest&&Y.currentUpdateRequest.cancel(G);Y.currentRefreshRequest&&Y.currentRefreshRequest.cancel(G)};
Wq.prototype.delete=function(){cQe(this,"PROXY DELETED")};
Wq.prototype.addVideos=function(Y,G,u){var O=this;u!==void 0?this.videoIds.splice.apply(this.videoIds,[u,0].concat(_.c8(Y))):this.videoIds.push.apply(this.videoIds,_.c8(Y));this.listId||this.currentCreateRequest?(Y.forEach(function(Q,M){Q={addedVideoId:Q,action:"ACTION_ADD_VIDEO"};u&&(Q.addedVideoPosition=u+M);O.pendingUpdates.push(Q)}),rp(this)):UJM(this,G.onCreateListCommand)};
var vz_=function(Y,G,u,O,Q){djA(Y.videoIds,G,u);G>Y.currentIndex&&u<=Y.currentIndex?Y.JSC$13364_setCurrentIndex(Y.currentIndex+1):G===Y.currentIndex?Y.JSC$13364_setCurrentIndex(u):G<Y.currentIndex&&u>=Y.currentIndex&&Y.JSC$13364_setCurrentIndex(Y.currentIndex-1);Y.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:O,movedSetVideoIdPredecessor:Q});rp(Y)},UJM=function(Y,G){cQe(Y,"OBSOLETE");
Y.currentCreateRequest=JQV(Y.JSC$13364_playlistNetworkManager,G,Y.videoIds);_.Wp(Y.currentCreateRequest,function(){Y.currentCreateRequest=void 0}).then(function(u){Y.setListId(u.playlistId);
Y.pendingUpdates.length>0?rp(Y):YvT(Y)})},rp=function(Y){if(Y.pendingUpdates.length!==0&&(Y.currentRefreshRequest&&Y.currentRefreshRequest.cancel("OBSOLETE"),!Y.currentUpdateRequest&&!Y.currentCreateRequest)){var G=Y.pendingUpdates.splice(0,Y.pendingUpdates.length);
Y.currentUpdateRequest=Y.JSC$13364_playlistNetworkManager.updatePlaylist(Y.listId,G);_.Wp(Y.currentUpdateRequest,function(){Y.currentUpdateRequest=void 0}).then(function(){Y.pendingUpdates.length>0?rp(Y):YvT(Y)}).thenCatch(function(){Y.pendingUpdates.unshift.apply(Y.pendingUpdates,_.c8(G))})}},YvT=function(Y){Y.currentRefreshRequest=_.G_R(Y.JSC$13364_playlistNetworkManager,Y.listId,Y.currentIndex,Y.videoIds[Y.currentIndex]);
_.Wp(Y.currentRefreshRequest,function(){Y.currentRefreshRequest=void 0}).then(function(G){Y.JSC$13364_updateCallback(G.playlistId,G.playlistPanelRenderer,G.autoplayRenderer)})};
Wq.prototype.size=function(){return this.videoIds.length};var ubU=function(Y,G,u,O){O=O===void 0?[]:O;Wq.call(this,Y,G,u,O);this.JSC$13364_playlistNetworkManager=Y;this.listId=G;this.JSC$13364_updateCallback=u;this.videoIds=O};
_.m(ubU,Wq);_.xR=function(Y,G,u,O,Q,M,t){Q=Q===void 0?[]:Q;t=t===void 0?ld:t;Wq.call(this,Y,G,u,Q);this.JSC$13364_playlistNetworkManager=Y;this.listId=G;this.JSC$13364_updateCallback=u;this.onAuthChange=O;this.videoIds=Q;this.storage=M;this.cookieReader=t;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.jk(_.AN,this.checkLoggedInStatusChange.bind(this),1E3)};
_.m(_.xR,Wq);_.H=_.xR.prototype;_.H.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.jk(_.AN,this.checkLoggedInStatusChange.bind(this),1E3)};
_.H.JSC$13364_setCurrentIndex=function(Y){Wq.prototype.JSC$13364_setCurrentIndex.call(this,Y);this.store()};
_.H.delete=function(){_.AN.cancelJob(this.queueSapisIdJob);Wq.prototype.delete.call(this)};
_.H.setListId=function(Y){Wq.prototype.setListId.call(this,Y);this.store()};
_.H.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var OS4=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],QgM=["playerResponse","videoDetails"],MiM=["response","currentVideoEndpoint","watchEndpoint","videoId"],HSX=["response","currentVideoEndpoint","watchEndpoint","playlistId"],Ei1=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],tiE=["response","contents","twoColumnWatchNextResults","playlist","playlist"],Kdk=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
aTk=["response","contents","twoColumnWatchNextResults"];var fl={},D8a=(fl.WEB_UNPLUGGED="^unplugged/",fl.WEB_UNPLUGGED_ONBOARDING="^unplugged/",fl.WEB_UNPLUGGED_OPS="^unplugged/",fl.WEB_UNPLUGGED_PUBLIC="^unplugged/",fl.WEB_CREATOR="^creator/",fl.WEB_KIDS="^kids/",fl.WEB_EXPERIMENTS="^experiments/",fl.WEB_MUSIC="^music/",fl.WEB_REMIX="^music/",fl.WEB_MUSIC_EMBEDDED_PLAYER="^music/",fl.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",fl);var EQA,JQV;EQA=function(Y,G){this.networkManager=Y;this.innertubeTransportService=G};
JQV=function(Y,G,u){if(!_.z(G,_.fk))return _.Ld(Error("Of"));_.z(G,_.fk).videoIds=u;u={create_playlist_title:_.Q6("QUEUE",void 0,"Queue")};return w9j(_.iv(Y.innertubeTransportService,G,u),irT)};
_.G_R=function(Y,G,u,O){G={videoId:O,playlistId:G,playlistIndex:u};u=_.Ds(KpU);return w9j(_.Cl(Y.innertubeTransportService,G,u),Zr4)};
EQA.prototype.updatePlaylist=function(Y,G){return w9j(_.iv(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:Y,actions:G}}),RgT)};var TmR=function(Y){this.storage=Y},Ld_;
TmR.prototype.store=function(Y,G){G=G===void 0?0:G;if(this.storage&&Y.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",Y),this.storage.set("TLPQindex",String(G)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(u){}};
TmR.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
TmR.prototype.getPlaylistId=function(){if(!this.storage)return null;var Y=null;try{Y=this.storage.get("TLPQplaylist")}catch(G){}return Y};var SM4=["navigationEndpoint","watchEndpoint","videoId"],brA=["nextButtonVideo","watchEndpoint","videoId"];_.Hm=new _.Sb("NETWORK_TOKEN");_.bv=new _.Sb("PAGE_TOKEN");_.yq=new _.Sb("PLAYLIST_TOKEN");var giT;giT=new _.Sb("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.KB=new _.Sb("INNERTUBE_TRANSPORT_TOKEN");var XiU,eC,ITT,k_U,Fd1,pi1;XiU=new Set(["ci","cr","carml"]);eC=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13411_parkedJobs=new Map;this.parkedProcessors=new Map};
_.AM=function(){eC.instance||(eC.instance=new eC);return eC.instance};
eC.prototype.onAny=function(Y){return _.PkX(this,Y,2)};
eC.prototype.parkOrScheduleJob=function(Y,G,u,O,Q){_.or(this,u)?_.FO().addJob(Y,G,O):(Q&&(Y=ITT(Y),k_U(this,Y,G,u,Q)),Q=this.JSC$13411_parkedJobs.get(u),Q||(this.JSC$13411_parkedJobs.set(u,[]),Q=this.JSC$13411_parkedJobs.get(u)),Q.push({job:Y,priority:G,delay:O}))};
eC.prototype.addListener=function(Y,G,u){u&&(G=ITT(G),k_U(this,G,0,Y,u));u=this.parkedProcessors.get(Y);u||(this.parkedProcessors.set(Y,[]),u=this.parkedProcessors.get(Y));u.push(G)};
eC.prototype.processSignal=function(Y){if(!_.or(this,Y)){this.inProgressSignals.add(Y);var G=this.JSC$13411_parkedJobs.get(Y);if(G){G=_.E(G);for(var u=G.next();!u.done;u=G.next())u=u.value,_.FO().addJob(u.job,u.priority,u.delay);this.JSC$13411_parkedJobs.delete(Y)}if(G=this.parkedProcessors.get(Y)){G=_.E(G);for(u=G.next();!u.done;u=G.next())u=u.value,u();this.parkedProcessors.delete(Y)}this.signals.push(Y);this.inProgressSignals.delete(Y)}};
_.or=function(Y,G){return XiU.has(G)||_.hy("IS_HOMEPAGE_COLD")||_.hy("IS_RESULTS_PAGE_COLD")||_.hy("IS_WATCH_PAGE_COLD")?Y.signals.indexOf(G)>=0:!0};
ITT=function(Y){var G=!1;return function(){G||(G=!0,Y())}};
k_U=function(Y,G,u,O,Q){if(niT.has(O))_.FO().addJob(G,u,Q);else{var M=Y.compoundSignals.get(O);M&&_.FO().addJob(function(){_.or(Y,O)||(M.isTimeoutConditionSatisfied?_.FO().addJob(G,u):M.timeoutConditionObservers.push(function(){_.FO().addJob(G,u)}))},u,Q)}};
_.PkX=function(Y,G,u){if(G.length>1){var O=[],Q=Object.create(null);G=_.E(G);for(var M=G.next();!M.done;M=G.next())M=M.value,Q[M]||(O.push(M),Q[M]=!0);G=O}if(G.length===1)return G[0];M=G;O="";Q=u===2?"|":"&";M.sort();M=_.E(M);for(var t=M.next();!t.done;t=M.next())O+=t.value+Q;if(!Y.compoundSignals.get(O)){Q=0;M=[];t=_.E(G);for(var K=t.next();!K.done;K=t.next())K=K.value,Q++,_.or(Y,K)||M.push(K);(u=u===2)&&Q>M.length||!u&&!M.length?Y.signals.push(O):Fd1(Y,O,u,G,M)}return O};
Fd1=function(Y,G,u,O,Q){var M=Q.length,t=function(){u||--M===0?Y.processSignal(G):pi1(Y,G)};
Q=_.E(Q);for(var K=Q.next();!K.done;K=Q.next())Y.addListener(K.value,t);Y.compoundSignals.set(G,{signals:O,isOnAny:u,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});pi1(Y,G)};
pi1=function(Y,G){if(!_.or(Y,G)){var u=Y.compoundSignals.get(G);if(u&&!u.isTimeoutConditionSatisfied){for(var O=!1,Q=0,M=0,t=_.E(u.signals),K=t.next();!K.done;K=t.next()){var L=K.value;K=!_.or(Y,L);niT.has(L)?O=!0:(L=Y.compoundSignals.get(L))?K&&!L.isTimeoutConditionSatisfied&&(M++,u.isInitialized||L.timeoutConditionObservers.push(function(){pi1(Y,G)})):K&&Q++}u.isInitialized=!0;
u.isOnAny?O&&(u.isTimeoutConditionSatisfied=!0):Q===0&&M===0&&(u.isTimeoutConditionSatisfied=!0);if(u.isTimeoutConditionSatisfied)for(u=_.E(u.timeoutConditionObservers),O=u.next();!O.done;O=u.next())O=O.value,O()}}};
eC.prototype.processSignal=eC.prototype.processSignal;eC.prototype.parkOrScheduleJob=eC.prototype.parkOrScheduleJob;eC.prototype.onAny=eC.prototype.onAny;_.U5("ytsignals.getInstance",_.AM);eC.prototype.onAny=eC.prototype.onAny;eC.prototype.parkOrScheduleJob=eC.prototype.parkOrScheduleJob;eC.prototype.processSignal=eC.prototype.processSignal;var niT=new Set(["eop","eocs","dl","pcl"]);_.yo=new _.Sb("MINIPLAYER_SERVICE");var Rr,zK2,mlM;Rr=function(Y,G,u){var O=_.N6.getInstance();if(!Ld_){var Q=new mWj;var M=void 0,t=_.DE("ID_TOKEN");t&&Q.isAvailable()&&(M=new rC(Q,"yt-queue"+t));Ld_=new TmR(M)}Q=Ld_;M=_.AM();this.JSC$13418_actionRouter=O;this.JSC$13418_pageManager=Y;this.playlistManager=G;this.JSC$13418_playlistNetworkManager=u;this.storage=Q;this.signals=M;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.wp=function(){if(!zK2){var Y=_.sH(),G=Y.resolve(_.q3(_.bv)),u=Y.resolve(_.q3(_.Hm)),O=Y.resolve(_.q3(_.yq));Y=Y.resolve(_.KB);zK2=new Rr(G,O,new EQA(u,Y))}return zK2};
mlM=function(Y,G,u){if(u){var O;if(((O=Y.responsePlaylistData)==null?void 0:O.playlistId)!==u)return}Y.responsePlaylistData&&(u=$8y(G,Y.responsePlaylistData),Y.responsePlaylistData=(0,_.gX.unsafeClone)(Y.responsePlaylistData),sWg(Y.responsePlaylistData,u));u=Y.temporaryItems.findIndex(function(Q){return Q.videoId===G});
u>-1&&Y.temporaryItems.splice(u,1);_.Z_(Y,_.D_(Y,Y.response?Y.response.autoplayRenderer:void 0))};
_.WdU=function(Y,G){if(Y.responsePlaylistData){var u=qMA(G,Y.responsePlaylistData);sWg(Y.responsePlaylistData,u);if(Y.queueProxy){var O=Y.queueProxy;u<0||(O.videoIds.splice(u,1),u<O.currentIndex&&O.JSC$13364_setCurrentIndex(O.currentIndex-1),O.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:G}),rp(O))}}_.Z_(Y,_.D_(Y,Y.response?Y.response.autoplayRenderer:void 0))};
Rr.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Z_(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
Rr.prototype.setPlaylistData=function(Y,G,u){this.temporaryItems=[];this.listId=Y;this.responsePlaylistData=G;_.Z_(this,_.D_(this,u))};
var r4k=function(Y){return(Y==null?0:Y.playlistId)?Y.playlistId:"PPSV"},xll=function(Y){return Y&&Y.playlistId?Y.playlistId==="PPSV"?!0:$H1(_.Zs().getState().entities,Y.playlistId):!1};
Rr.prototype.isPlayingOfflineVideo=function(){return this.response?xll(this.response):!1};
Rr.prototype.closeMiniplayer=function(Y){var G=this.queueProxy&&this.queueProxy.size()<=1,u=_.sH().resolve(_.yo);if(!this.queueProxy||G)this.queueProxy&&this.clearQueue(),u.close(!0);else{u.pipController.getWindow()&&window.focus();G=this.responsePlaylistData;var O=this.temporaryItems.length+(G&&G.contents?G.contents.length:0);G=_.Q6("QUEUE_CLEARED_UNPLURALIZED")||_.Mu("QUEUE_CLEARED",O);G=_.dK(G);u=_.Q6("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");O=_.Q6("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Mu("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",O);var Q=_.Q6("MINIPLAYER_CLOSE",void 0,"Close"),M=_.Q6("CANCEL",void 0,"Cancel");_.nL(this.JSC$13418_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.i8(u),dialogMessages:[_.i8(O)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.i8(Q),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
G]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.i8(M)}}}}}}],Y)}};
_.D_=function(Y,G){var u={},O=Y.response;u.autoplayRenderer=G;if(!Y.responsePlaylistData&&!Y.temporaryItems.length)return!O||!O.hasRelatedVideoData&&_.F("kevlar_prefetch_data_augments_network_data")||(u.playerData={rvs:O.relatedVideoArgs,endScreenRenderer:O.endScreenRenderer}),u;u.playerData={};if(Y.index===void 0)return _.o0(Error("Qf")),u;u.panel=Y.responsePlaylistData?(0,_.gX.unsafeClone)(Y.responsePlaylistData):{titleText:_.i8(_.Q6("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
G=u.panel;if(G.contents)for(var Q=_.E(Y.temporaryItems),M=Q.next();!M.done;M=Q.next())G.contents.push({playlistPanelVideoRenderer:M.value});Y.queueProxy&&O&&O.playingVideo&&O.playingVideoId&&!BYj(O.playingVideoId,u.panel)&&(G=O.playingVideo,Q=u.panel,M=Y.index,Q.contents&&Q.contents.splice(M===void 0?0:M,0,{playlistPanelVideoRenderer:G}));O&&O.playingVideoId&&(G=Y.index,Q=u.panel,G=!Q.contents||G>=Q.contents.length?void 0:Q.contents[G].playlistPanelVideoRenderer,G&&G.videoId===O.playingVideoId||(G=
$8y(O.playingVideoId,u.panel),Y.index=G!==-1?G:Y.index?Y.index-1:0));G=lFj(Y.index+1,u.panel);Q=void 0;Y.index>0&&(Q=lFj(Y.index-1,u.panel));if(Q||G)u.autoplayRenderer=NYa(G,Q,u.autoplayRenderer);!G&&(O==null?0:O.relatedVideoArgs)&&(u.playerData.rvs=O.relatedVideoArgs);O=O?O.playlistIndexOffset:0;Y.queueProxy?v8u(u.panel,Y.index,O,VYy,!0,!0,!0):v8u(u.panel,Y.index,O);u.playerData.playlistPanelRenderer=u.panel;return u};
Rr.prototype.isMiniplayerActive=function(){return _.sH().resolve(_.yo).isMiniplayerActive()};
_.Z_=function(Y,G){Y.playlistManager.setAutoplayRenderer(G.autoplayRenderer||null);Y.playlistManager.setPlaylistData(G.panel||null);G.playerData&&Y.playlistManager.setPlayerPlaybackControlData(G.playerData)};var JZA="#";var fTT={},Ck_={},y4k={},eKl={},A4_={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:(fTT.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",fTT),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:(Ck_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",Ck_),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:(y4k.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",y4k),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:(eKl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",eKl),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 ZNT=[{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:A4_},{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:A4_}}];var xhg;_.qW=[[["Z29meGtpbmQjMnd2MndjbWI=","dmFsdWUjZ3RnYzE0anF4dGcy"],"QURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjdzVwd2R4azNuanN3"]];
xhg=[[["dHZ4NXplc29nN2xtcHJpbWFyeSM=",null,null],[null,["cmVuZGVyZXIjOHczdHowYXY0a2dleXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMt","ZGs4c3R5bGUtc2NvcGUjbWVhbXEybWs="],null],["bWFzdGhlYWQtYWQjZTV4aWh5YzBodGEx",["a2R5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2pvNndtMDNybnY="],null],[null,["a3h5dGQtcmljaC1ncmlkLXJlbmRlcmVyIzN6OHdiejN0cGk=","c3R5bGUtc2NvcGUjemFub3dzc2RpaDV5"],null],[null,["YmFubmVyLXByb21vLXJlbmRlcmVyIzZpMWF1eHkzcnd3c3l0ZC0=","c3R5bGUtc2NvcGUjeTJ2azdmMW4wa3pz"],null],[null,["eXVvaGdheXRkLWFkLXNsb3QtcmVuZGVyZXIjdnRyMzlh"],
null]],[["dGRkcGxheWVyLWFkcyM2NXZuejV4aTY=",null,null]]];_.$G=["Y2tzIzV4bzg1M2tzMnpzeWdsb2JhbENhbGxiYQ==","eW91c29uQWJub3JtYWxpdHlEZXRlY3RlZCNubnhpY3dlbA==","cXJwaGhhancyb25BZFNraXAjNHY5","enoxODNoazVyYXdfcGxheWVyX3Jlc3BvbnNlI3R1dnU=","azAycTA3Z2Vzd2p5YWRTbG90cyM="];_.hM="Y2tzIzV4bzg1M2tzMnpzeWdsb2JhbENhbGxiYQ== eW91c29uQWJub3JtYWxpdHlEZXRlY3RlZCNubnhpY3dlbA== cXJwaGhhancyb25BZFNraXAjNHY5 enoxODNoazVyYXdfcGxheWVyX3Jlc3BvbnNlI3R1dnU= ZV9za2lwc19rcyM1NDg1aTZvd3lra2J3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbA== cHFtNmc2a2gxYWJfc2FfZWYjcTRq azAycTA3Z2Vzd2p5YWRTbG90cyM=".split(" ");var dp;dp=function(Y,G,u){this.kyu=Y;this.rLV=G;this.u7u=u};
_.quj=[new dp("b.f_",!1,0),new dp("j.s_",!1,2),new dp("r.s_",!1,4),new dp("e.h_",!1,6),new dp("i.s_",!0,8),new dp("s.t_",!1,10),new dp("p.h_",!1,12),new dp("s.i_",!1,14),new dp("f.i_",!1,16),new dp("a.b_",!1,18),new dp("a.o_",!1),new dp("g.o_",!1,22),new dp("p.i_",!1,24),new dp("p.m_",!1),new dp("n.k_",!0,20),new dp("i.f_",!1),new dp("a.s_",!0),new dp("m.c_",!1),new dp("n.h_",!1,26),new dp("o.p_",!1),new dp("m.p_",!0,28),new dp("o.a_",!1),new dp("d.p_",!1),new dp("e.i_",!1)].reduce(function(Y,G){Y[G.kyu]=
G;return Y},{});var oi_=function(){};
oi_.prototype.flush=function(Y,G){Y=Y===void 0?[]:Y;G=G===void 0?!1:G;if(_.F("enable_client_streamz_web")){Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())u=hNT(u.value),this.rootSpec&&_.Rh(u,2,this.rootSpec),u={serializedIncrementBatch:_.vu(u.JSC$9928_serializeBinary())},_.eK("streamzIncremented",u,{sendIsolatedPayload:G})}};
var QNU=function(){};
_.m(QNU,oi_);var iSU=function(Y){var G=new AT1;var u=new CF1;u=_.E_(u,1,"botguard");Y=_.E_(u,2,Y);this.rootSpec=_.wT(G,1,ol4,Y)};
_.m(iSU,oi_);var Vc,RK4=new Map;var e7g,HNu,PLA,Ksg,Lst,Ws4,oBA,z7T;e7g=2;HNu=2;PLA=2;Ksg=2;Lst=2;Ws4=2;oBA=2;z7T=new ANX;var ZS2,DlR;ZS2=function(){this.ongoingFlowNonces=new Map};
_.UG=function(){DlR||(DlR=new ZS2);return DlR};
_.cC=function(Y,G,u){return{eventType:{flowEventNamespace:Y,flowEventType:G},metadata:u,statusCode:void 0,csn:void 0,can:void 0}};
_.cqy=function(Y,G){var u=_.UG(),O=hKR(u,G,!0);u.logFlowEvent(Y,G,O,void 0)};
ZS2.prototype.logFlowEvent=function(Y,G,u,O){G={flowNonce:u||hKR(this,G),flowType:G,flowEventType:Y.eventType};Y.metadata&&(G.flowMetadata=Y.metadata);Y.statusCode!==void 0&&(G.flowEventStatus=Y.statusCode);Y.csn&&(G.csn=Y.csn);Y.can&&(G.can=Y.can);_.eK("flowEvent",G,O)};
var hKR=function(Y,G,u){u=u===void 0?!1:u;var O=Y.ongoingFlowNonces.get(G);if(!O||u)O=Ix(16),Y.ongoingFlowNonces.set(G,O);return O};_.dl1=new eZT;var GT4={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var bf=function(Y,G,u,O,Q,M,t){u=u===void 0?!1:u;O=O===void 0?!1:O;M=M===void 0?_.wp():M;this.ku=!1;this.yc2=Y;this.sEt=G;this.xTY=u;this.fromHistory=O;this.previousVideoId=Q;this.veq=M;this.tempData=t;this.qnE=new _.oqV};
_.m(bf,NQ);bf.prototype.validate=function(Y){return!(!Y.data.playerResponse||Y.data.page!=="watch"&&Y.data.page!=="learning_journey_watch"&&Y.data.page!=="shorts"||this.ku)};
bf.prototype.handle=function(Y){var G=this,u=_.z(Y.endpoint,_.ic),O=_.z(Y.endpoint,_.Qa);if(_.F("kevlar_continue_playback_without_player_response")&&(u==null?0:u.videoId)&&this.previousVideoId&&(u==null?void 0:u.videoId)===this.previousVideoId&&(u==null?0:u.continuePlayback)&&!this.fromHistory)this.yc2.resolve();else{var Q={};u?Q.watch_endpoint=u:O&&(Q.watch_endpoint=O,O.endTimeSeconds&&(Q.end=O.endTimeSeconds));Y.data.page==="watch"?(Y.data.filler||this.xTY||_.N6.getInstance().triggerAction("yt-start-loading-watch"),
Object.assign(Q,bSE(this,Y.endpoint)),_.F("enable_masthead_quartile_ping_fix")&&Object.assign(Q,Sv1(this)),Object.assign(Q,void 0),Y.data.forceExternalPlaylist&&(Q.external_list=!0)):Y.data.page==="shorts"?_.N6.getInstance().triggerAction("yt-start-loading-shorts"):Y.data.page==="learning_journey_watch"&&_.N6.getInstance().triggerAction("yt-start-loading-learning-journey");if(u=this.sEt()){try{_.zb("cfg"),u.loadVideoWithPlayerResponse(Y.data.playerResponse,Q),u.getPlayerPromise().then(this.yc2.resolve)}catch(M){_.o0(M),
this.yc2.resolve()}this.ku=!0;u.getPlayerPromise().then(function(M){M.addEventListener("onAbnormalityDetected",function(){var t=Y.data.playerResponse,K=M.getVideoData().cpn;oBA=0;_.wik=K;if(K=$ht(t))G.qnE.increment("IN_PLAYER"),_.vC(5),_.F("ab_st_vid_ks")?M.pauseVideo(!0):M.stopVideo(),t.playabilityStatus=Object.assign({},t.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:K}}),t.videoDetails=void 0,_.N6.getInstance().triggerOptionalAction("yt-updated-playability-status",
t.playabilityStatus)})})}else _.R0(Error("Tf"))}};
var bSE=function(Y,G){var u=_.z(G,_.ic);if(G&&u&&u.playlistId&&u.videoId&&(Y=Y.veq,Y.queueProxy?(Y=Y.queueProxy,u=Y.listId===u.playlistId?Y.attributionData.get(u.videoId):void 0):u=void 0,u))return{queue_info:u}},Sv1=function(Y){var G;
if((G=Y.tempData)==null?0:G.adpings)return{adpings:Y.tempData.adpings}};var SC=function(Y,G,u){this.ku=!1;this.dTS=Y;this.nNt=G;this.ikp=u};
_.m(SC,NQ);SC.prototype.validate=function(Y){return!!_.gX.getValueByKeys.apply(null,[Y.data].concat(_.c8(aTk)))};
SC.prototype.handle=function(Y){var G=this;this.dTS.promise.then(function(){var u=Y.data;var O=_.gX.getValueByKeys.apply(null,[u].concat(_.c8(OS4))),Q=_.gX.getValueByKeys.apply(null,[u].concat(_.c8(tiE))),M=_.gX.getValueByKeys.apply(null,[u].concat(_.c8(MiM)));var t=(t=_.gX.getValueByKeys.apply(null,[u].concat(_.c8(QgM))))?{videoId:t.videoId,thumbnail:t.thumbnail,title:t.title?_.i8(t.title):void 0,shortBylineText:t.author?_.i8(t.author):void 0}:void 0;var K=void 0;_.F("web_get_playlist_id_from_current_endpoint_ks")||
(K=_.gX.getValueByKeys.apply(null,[u].concat(_.c8(HSX))));var L=_.gX.getValueByKeys.apply(null,[u].concat(_.c8(Kdk))),g=_.gX.getValueByKeys.apply(null,[u].concat(_.c8(Ei1))),P=!!L||!!g&&!!g.results&&g.results.length>0,I=0;Q&&Q.currentIndex&&Q.localCurrentIndex&&(I=Q.currentIndex-Q.localCurrentIndex);Q&&Q.playlistId&&(K=Q.playlistId);u={rawResponse:u,autoplayRenderer:O,hasRelatedVideoData:P,playingVideo:t,playingVideoId:M,playlistPanelRenderer:Q,playlistId:K,playlistIndex:Q&&Q.currentIndex,relatedVideoArgs:L,
endScreenRenderer:g,playlistIndexOffset:I};a:{O=G.ikp;Q=G.nNt;O.response=u;if(xll(u))O.downloadPlaylistProxy&&O.downloadPlaylistProxy.getPlaylistId()===r4k(u)||(O.downloadPlaylistProxy=new sk4(r4k(u),O.setPlaylistData.bind(O),O.isPlayingOfflineVideo.bind(O))),O.responsePlaylistData=O.downloadPlaylistProxy.getPlaylistData(),O.listId=r4k(u),O.index=0;else if(u.playlistPanelRenderer&&u.playlistId&&u.autoplayRenderer)u.playlistId.startsWith("TLPQ")?O.queueProxy?O.listId===u.playlistId?(O.index=u.playlistIndex,
O.responsePlaylistData=u.playlistPanelRenderer,O.queueProxy.JSC$13364_setCurrentIndex(O.index)):u.playingVideoId&&O.index!==void 0&&Q.clientParams.autoSaveToQueue&&(O.index+=1,O.queueProxy.JSC$13364_setCurrentIndex(O.index),O.queueProxy.addVideos([u.playingVideoId],{},O.index)):(O.queueProxy=new _.xR(O.JSC$13418_playlistNetworkManager,u.playlistId,O.setPlaylistData.bind(O),O.clearQueue.bind(O),_.cZ4(u.playlistPanelRenderer),O.storage),O.responsePlaylistData=u.playlistPanelRenderer,O.listId=u.playlistId,
O.index=u.playlistIndex):(O.index=u.playlistIndex,O.listId!==u.playlistId&&O.clearQueue(),O.responsePlaylistData=u.playlistPanelRenderer,O.listId=u.playlistId,O.playlistProxy=new ubU(O.JSC$13418_playlistNetworkManager,u.playlistId,O.setPlaylistData.bind(O),_.cZ4(u.playlistPanelRenderer)));else if(!O.queueProxy)O.responsePlaylistData=void 0;else if(u.playingVideoId&&Q.clientParams.autoSaveToQueue){if(O.index===void 0){_.o0(Error("Pf"));O.clearQueue();break a}O.queueProxy.videoIds.includes(u.playingVideoId)||
(O.index+=1,O.queueProxy.JSC$13364_setCurrentIndex(O.index),O.queueProxy.addVideos([u.playingVideoId],{},O.index))}_.Z_(O,_.D_(O,O.response.autoplayRenderer))}})};var NmT=function(Y,G){G=G===void 0?_.wp():G;uf.call(this);this.tZ.push(new SC(this.gI,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},G));this.tZ.push(new bf(this.gI,Y,!1,!1));_.F("web_response_commands_chunk_processor")&&this.tZ.push(new Oh)};
_.m(NmT,uf);NmT.prototype.processChunk=function(Y){Y&&Y.data.player===void 0&&this.gI.resolve();uf.prototype.processChunk.call(this,Y)};var NE=function(Y,G){Y=Y===void 0?{layer:0}:Y;this.ku=!1;this.createScreenConfig=Y;this.dA3=G;this.createScreenConfig.automatedLogEventSource=9};
_.m(NE,NQ);NE.prototype.validate=function(Y){return!(this.ku||!Y.endpoint)};
NE.prototype.handle=function(Y){var G=_.M4(),u,O,Q=(O=_.z((u=Y.endpoint)==null?void 0:u.commandMetadata,_.ug))==null?void 0:O.rootVe;this.dA3&&Q?_.UL(G,Q,this.dA3,this.createScreenConfig):ApI(G,Y.endpoint,this.createScreenConfig);this.ku=!0};var jC=function(Y,G){this.ku=!1;this.rxw=Y;this.previousVideoId=G};
_.m(jC,NQ);jC.prototype.validate=function(Y){return _.F("kevlar_continue_playback_without_player_response")&&(Y=_.z(Y.endpoint,_.ic),(Y==null?0:Y.videoId)&&this.previousVideoId&&(Y==null?void 0:Y.videoId)===this.previousVideoId&&(Y==null?0:Y.continuePlayback))?!1:this.rxw.c2u===0};
jC.prototype.handle=function(Y){_.N6.getInstance().triggerAction("yt-stop-old-player",Y.data,!0)};var jge=function(Y){Y=Y===void 0?{layer:0}:Y;uf.call(this);this.tZ.push(new jC(this));this.tZ.push(new NE(Y));this.tZ.push(new Gc(Y))};
_.m(jge,uf);var Vq=function(){NQ.apply(this,arguments)};
_.m(Vq,NQ);Vq.prototype.validate=function(Y){return!!Y.data.preconnect};
Vq.prototype.handle=function(Y){_.pQ("bc");Y=_.E(Y.data.preconnect);for(var G=Y.next();!G.done;G=Y.next())G=G.value,(new Image).src=G};var Vi2=function(Y,G,u,O,Q,M,t){u=u===void 0?{layer:0}:u;M=M===void 0?_.wp():M;uf.call(this);if(O)if(Q){Q=M;this.tZ.push(new SC(this.gI,G,Q));this.tZ.push(new Vq);var K,L;this.tZ.push(new bf(this.gI,Y,!1,!((K=G.clientParams)==null||!K.fromHistory),(L=G.clientParams)==null?void 0:L.previousVideoId,Q,G.tempData));var g;this.tZ.push(new jC(this,(g=G.clientParams)==null?void 0:g.previousVideoId));var P;(P=G.clientParams)!=null&&P.fromHistory||(u.layer||(u=Object.assign({},u,{layer:0})),this.tZ.push(new NE(u,
t)),this.tZ.push(new Gc(u)))}else this.tZ.push(new SC(this.gI,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},M)),this.tZ.push(new bf(this.gI,Y,!1,!1));else this.tZ.push(new jC(this)),this.tZ.push(new NE(u)),this.tZ.push(new Gc(u));_.F("web_response_commands_chunk_processor")&&O&&this.tZ.push(new Oh)};
_.m(Vi2,uf);Vi2.prototype.processChunk=function(Y){Y&&Y.data.player===void 0&&this.gI.resolve();uf.prototype.processChunk.call(this,Y)};var lTI=function(){this.ku=this.ku=!1};
_.m(lTI,NQ);lTI.prototype.validate=function(Y){return!this.ku&&!(!Y.data.csn||!Y.data.rootVe)};
lTI.prototype.handle=function(Y){this.ku=!0;_.z1(Y.data.csn,Y.data.rootVe,3)};var BmI=function(Y,G,u){u=u===void 0?{layer:0}:u;uf.call(this);this.tZ.push(new bf(this.gI,Y));this.tZ.push(new NE(u));this.tZ.push(new Gc(u))};
_.m(BmI,uf);var $lI=function(Y,G,u,O,Q){u=u===void 0?{layer:0}:u;O=O===void 0?_.wp():O;uf.call(this);var M=!!G&&!!G.clientParams&&!!G.clientParams.miniplayer;M&&this.tZ.push(new lTI);this.tZ.push(new SC(this.gI,G,O));this.tZ.push(new Vq);var t,K;this.tZ.push(new bf(this.gI,Y,M,!((t=G.clientParams)==null||!t.fromHistory),(K=G.clientParams)==null?void 0:K.previousVideoId,O,G.tempData));var L;this.tZ.push(new jC(this,(L=G.clientParams)==null?void 0:L.previousVideoId));var g;(g=G.clientParams)!=null&&g.fromHistory||
(u.layer||(u=Object.assign({},u,{layer:M?3:0})),this.tZ.push(new NE(u,Q)),this.tZ.push(new Gc(u)));_.F("web_response_commands_chunk_processor")&&this.tZ.push(new Oh)};
_.m($lI,uf);var lf,c4R;lf={};
_.qvX=(lf["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},lf["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},lf["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},lf["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},lf["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},lf["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},lf["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},lf);_.Bq=new _.Da("yt-edu");_.sg4=function(){this.JSC$13516_eduDisplayedThisLoad_={}};
c4R=function(Y){var G=_.sg4.getInstance();var u=_.Jy("kevlar_tooltip_impression_cap");G=u&&parseInt(_.Bq.get(Y+"-impression")||0,10)>=u||_.Bq.get(Y+"-dismissed")?!1:(u=_.qvX[Y])&&!G.JSC$13516_eduDisplayedThisLoad_[u.setKey||Y]&&(u.titleText&&_.Q6(u.titleText)||u.bodyText&&_.Q6(u.bodyText))?!0:!1;if(!G)return null;G=_.qvX[Y];if(!G)return null;u=G.bodyText?_.Q6(G.bodyText):void 0;var O=G.titleText?_.Q6(G.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:G.position,popup:{bubbleHintRenderer:{text:O?
_.i8(O):void 0,detailsText:u?_.i8(u):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.i8(_.Q6("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:Y}}]}}}}}}}},{eduImpressionAction:{key:Y}}]};
_.BH(_.sg4);var Uhj=!1;for(var UlX="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),viR=[],$R=6;$R>=1;$R--)viR.push({columnCount:$R,query:$R==1?0:$R*2*107-4+32,className:"grid-"+$R+"-columns",width:$R*2*107+"px"});_.qE=function(Y){this.actionRouter_=Y=Y===void 0?_.N6.getInstance():Y;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.J4R(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.J4R=function(Y){var G=Y.documentWidth_-(Y.miniGuideVisible_?72:0)-(Y.guidePersistentAndVisible_?240:0)-(Y.persistentPanelVisible_?400:0);return viR.find(function(u){return G>u.query})};
_.BH(_.qE);var YBM=function(){var Y=this;this.JSC$13528_keyboardInUse=!1;document.addEventListener("keydown",function(){Y.onKeydown()});
document.addEventListener("mousedown",function(){Y.JSC$13528_keyboardInUse=!1})},GQ2;
YBM.prototype.isKeyBoardInUse=function(){return this.JSC$13528_keyboardInUse};
YBM.prototype.onKeydown=function(){this.JSC$13528_keyboardInUse=!0};var uBU,Uh;_.sh=new _.Da("yt-mentions");_.cq=function(){};
uBU=function(Y,G){return Uh(G,"drag-to-reorder-edu-displayed")};
Uh=function(Y,G,u,O,Q,M){u=u===void 0?"OPEN_POPUP_POSITION_TOP":u;if(G){if(_.sh.get(G))return;_.sh.set(G,!0,O)}if(Q&&M!==void 0){G=Number(_.sh.get(Q)||0);if(G>=M)return;_.sh.set(Q,G+1)}return[{openPopupAction:{popupType:"HINT",position:u,popup:{bubbleHintRenderer:{detailsText:Y,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.BH(_.cq);var O9I,QLU,M_4;O9I=function(Y,G,u,O){this.JSC$13538_taskManager_=Y;this.onFulfilled_=typeof G==="function"?G:null;this.onRejected_=typeof u==="function"?u:null;this.JSC$13538_context_=O};
QLU=function(Y,G){Y.onFulfilled_&&_.Ti(Y.JSC$13538_taskManager_,function(){Y.onFulfilled_.call(Y.JSC$13538_context_,G)})};
M_4=function(Y,G){Y.onRejected_&&_.Ti(Y.JSC$13538_taskManager_,function(){Y.onRejected_.call(Y.JSC$13538_context_,G)})};
_.vq=function(Y){this.JSC$13541_taskManager_=Y;this.callbacks_=[]};
_.vq.prototype.then=function(Y,G,u){this.callbacks_.push(new O9I(this.JSC$13541_taskManager_,Y,G,u));return this};
_.vq.prototype.onSuccess=function(Y){this.callbacks_.forEach(function(G){QLU(G,Y)})};
_.vq.prototype.onFailure=function(Y){this.callbacks_.forEach(function(G){M_4(G,Y)})};
_.vq.prototype.cancel=function(){this.callbacks_.length=0};
hPI(_.vq);_.O0Y=null;_.tf=new _.Sb("ACTIVITY_TOKEN");var H9X;_.kM=new _.Sb("PAGE_REQUEST_TOKEN");H9X=new _.Sb("FETCH_PBJ_TOKEN");_.E$l=function(Y){if(Y.validatedFragments_.length==0)return null;if(!Y.mergedPrefetchedData_){for(var G=[],u=_.E(Y.validatedFragments_),O=u.next();!O.done;O=u.next()){O=_.E(Y.fragmentConfiguration_[O.value].graftedKeys);for(var Q=O.next();!Q.done;Q=O.next())(Q=Y.prefetchedData_[Q.value].trackingParams)&&G.push(Q)}Y.mergedPrefetchedData_={};Object.assign(Y.mergedPrefetchedData_,Y.prefetchedData_,{clientSideGrafts:G})}return Y.mergedPrefetchedData_};var t_e;_.JM=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
t_e=function(Y,G,u){if(_.QYA(G))return Y.prefetchCache_.get(_.MPI(G,u))};_.YY=new _.Sb("NAVIGATION_TOKEN");var KxR=function(Y){var G=this;var u=u===void 0?tPT():u;var O=O===void 0?_.sH().resolve(_.YY):O;this.onePickCommand=Y;this.JSC$13613_playlistNetworkManager=u;this.navigationManager=O;this.videoPickerBuilder=_.H0Y("yt-addtoplaylist");_.YtR(w$2(ZXe(RIl(this.videoPickerBuilder.setTitle(Y.modalTitle).setSize(1E3).addView(cGl()).addView(s3T())).addView("youtube"),Y.selectButtonLabel)),function(Q){G.handleAction(Q)})};
KxR.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
KxR.prototype.handleAction=function(Y){var G=this;if(Y&&this.onePickCommand.listId&&Y.action==="picked"&&Y.docs){var u=[];Y.docs.forEach(function(O){u.push({addedVideoId:O.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13613_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,u).then(function(){_.F("playlist_add_video_hard_reload_killswitch")?G.navigationManager.reload():ap_(G.navigationManager)})}};var Te2=function(){if(this.constructor===Te2)throw new TypeError("Vf");};
_.H=Te2.prototype;_.H.dispose=function(){};
_.H.disconnect=function(){};
_.H.reconnect=function(){};
_.H.observe=function(Y,G,u){return{element:Y,option:u}};
_.H.unobserveByKey=function(){};var KoT=function(Y,G){G=G===void 0?0:G;Te2.call(this);this.viewroot=Y;this.defaultPrescanHeight=G;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),Y?{root:Y,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.m(KoT,Te2);_.H=KoT.prototype;_.H.dispose=function(){this.disconnect();this.handlers.clear()};
_.H.disconnect=function(Y){this.isConnected=!1;this.pauseObservingUntilReconnect=Y===void 0?!1:Y;this.observer.disconnect();Y=_.E(this.prescanObservers.values());for(var G=Y.next();!G.done;G=Y.next())G.value.disconnect()};
_.H.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var Y=_.E(this.handlers),G=Y.next();!G.done;G=Y.next()){var u=_.E(G.value);G=u.next().value;var O=u.next().value;u=!1;O=_.E(O.keys());for(var Q=O.next();!Q.done;Q=O.next())if((Q=Q.value)&&Q.state==="prescan"){u=!0;break}u&&LxM(this,G).observe(G);this.observer.observe(G)}}};
_.H.handleObserveEvent=function(Y){Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next()){G=G.value;var u=this.handlers.get(G.target);if(u){var O=G.isIntersecting;u=_.E(u);for(var Q=u.next();!Q.done;Q=u.next()){var M=_.E(Q.value);Q=M.next().value;M=M.next().value;Q&&(Q.state==="visible"&&O||Q.state==="hidden"&&!O)&&(M(G.target,Q.state),Q.calledOnce&&this.unobserveByKey({element:G.target,option:Q}))}}}};
_.H.handlePrescanEvent=function(Y){Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next()){G=G.value;var u=this.handlers.get(G.target);if(u&&G.isIntersecting){u=_.E(u);for(var O=u.next();!O.done;O=u.next()){var Q=_.E(O.value);O=Q.next().value;Q=Q.next().value;O&&O.state==="prescan"&&(Q(G.target,O.state),O.calledOnce&&this.unobserveByKey({element:G.target,option:O}))}}}};
_.H.observe=function(Y,G,u){var O=(O=this.handlers.get(Y))&&O.has(u)?{element:Y,option:u}:void 0;if(O)return O;O={element:Y,option:u};this.handlers.has(Y)||this.handlers.set(Y,new Map);var Q=this.handlers.get(Y);Q&&!Q.has(u)&&Q.set(u,G);this.pauseObservingUntilReconnect||(u.state==="prescan"&&LxM(this,Y).observe(Y),this.observer.observe(Y));return O};
_.H.unobserveByKey=function(Y){var G=this.handlers.get(Y.element);if(G&&G.has(Y.option)){G.delete(Y.option);if(Y&&Y.option.state==="prescan")for(var u=_.E(this.prescanObservers.values()),O=u.next();!O.done;O=u.next())O.value.unobserve(Y.element);G.size===0&&(this.handlers.delete(Y.element),this.observer.unobserve(Y.element))}};
var LxM=function(Y,G){var u=Y.defaultPrescanHeight;G.hasAttribute("prescan-height")&&(G=Number(G.getAttribute("prescan-height")),isNaN(G)||(u=G));if(Y.prescanObservers.has(u))return Y.prescanObservers.get(u);G="-0.1px -0.1px "+u+"px -0.1px";G=new IntersectionObserver(Y.handlePrescanEvent.bind(Y),Y.viewroot?{root:Y.viewroot,rootMargin:G}:{rootMargin:G});Y.prescanObservers.set(u,G);return G};var g$E=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],XeI=function(){var Y,G=this;this.JSC$13630_actionRouter=Y=Y===void 0?_.N6.getInstance():Y;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return G.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return G.visibilityObservedElementHandlerKeys}}},PmR,Gk,n$l;
XeI.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.F("kevlar_use_vimio_behavior")&&_.DE("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=aly())};
XeI.prototype.dispose=function(){this.visibilityMonitor&&_.F_(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
XeI.prototype.handleVisibilityRefreshed=function(){for(var Y=_.E(this.targetMap.entries()),G=Y.next();!G.done;G=Y.next()){var u=_.E(G.value);G=u.next().value;u=u.next().value;_.IpX(this,G,u)}};
_.uE=function(Y,G,u){Gk(Y,u);var O=_.kQ4(Y,G);O.element=u;Y.targetedElements.set(u,G);_.IpX(Y,G,O)};
Gk=function(Y,G){var u=Y.targetedElements.get(G);if(u){var O=Y.targetMap.get(u);O&&(delete O.element,Y.targetMap.set(u,O));Y.targetedElements.delete(G);Y.visibilityObserver&&Y.visibilityObservedElementHandlerKeys&&(u=Y.visibilityObservedElementHandlerKeys.get(G))&&(Y.visibilityObserver.unobserveByKey(u),Y.visibilityObservedElementHandlerKeys.delete(G))}};
_.IpX=function(Y,G,u){var O=u.action,Q=u.element;Q&&O&&(g$E.includes(G)||_.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||Y.visibilityMonitor&&Y.visibilityMonitor.isNodeVisible(Q)?n$l(Y,G,u):Y.visibilityObserver&&(Y.visibilityObservedElementHandlerKeys||(Y.visibilityObservedElementHandlerKeys=new WeakMap),O=Y.visibilityObserver.observe(Q,function(){n$l(Y,G,u);Y.visibilityObservedElementHandlerKeys.delete(Q)},{calledOnce:!0,
state:"visible"}),Y.visibilityObservedElementHandlerKeys.set(Q,O)))};
n$l=function(Y,G,u){var O=u.action;(u=u.element)&&O&&(_.nL(Y.JSC$13630_actionRouter,[O],u),Y.targetMap.delete(G),Y.targetedElements.delete(u),Y.triggeredTargets.add(G))};
_.kQ4=function(Y,G){var u=Y.targetMap.get(G);u||(u={},Y.targetMap.set(G,u));return u};
_.O2=function(){PmR||(PmR=new XeI);return PmR};var FxV=document.createElement("div");FxV.style.touchAction="pan-down";var T7g=FxV.style.touchAction==="pan-down";var peR,z0M;peR=function(){this.hammerFn=k0I();this.JSC$13638_screenManager=_.M4();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.VZ(83615);_.vJ(this.JSC$13638_screenManager,this.ve);Lo4()};
_.Q_=function(){z0M||(z0M=new peR);return z0M};
peR.prototype.registerTouchEvents=function(Y,G,u){var O=_.vs.apply(3,arguments),Q=this.hammerFn(Y,{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}]]});u&&Q.set({touchAction:u});this.nodeManagerMapping.set(Y,Q);var M=
gQI(G);O=_.E(O);for(var t=O.next();!t.done;t=O.next()){t=t.value;if(t.includes("swipe")||t.includes("pinch")||t.includes("pan"))t.includes("swipe")?Q.get("swipe").set({enable:!0,direction:M,velocity:.2}):t.includes("pinch")?Q.get("pinch").set({enable:!0}):t.includes("pan")&&(Q.get("pan").set({enable:!0,direction:M}),Q.get("swipe").set({enable:!0,direction:M,velocity:.2}),Q.get("swipe").recognizeWith("pan"));mfE(this,Y,Q,t)}};
var mfE=function(Y,G,u,O){u.on(O,function(Q){if(O.includes("pinch"))Y.lastPinchTime=Date.now();else if(O.includes("swipe")&&Date.now()-Y.lastPinchTime<400)return;Q.pointerType!=="mouse"&&(Q=O==="doubletap"?{coordinates:Q.center}:O.includes("pan")?Q:O.includes("swipe")?{target:Q.target}:{},G.dispatchEvent(new CustomEvent(O,{bubbles:!0,composed:!0,detail:Q})))})};
peR.prototype.unregisterTouchEvents=function(Y){var G=_.vs.apply(1,arguments),u=this.nodeManagerMapping.get(Y);if(u){G=_.E(G);for(var O=G.next();!O.done;O=G.next())u.off(O.value);this.nodeManagerMapping.delete(Y);Y.style.touchAction="unset"}};var Wxe=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;_.a$={getLocalStorage:_.F8(function(){try{var Y=new zUt;var G=Y.isAvailable()?Y:null}catch(u){return null}return G?new _.In(G):null}),
getSessionStorage:_.F8(function(){var Y=new mWj;return Y.isAvailable()?new _.In(Y):null})};var r31=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},ed4=function(){r31.instance||(r31.instance=new r31);
return r31.instance},ASy=function(Y){var G=Y.networkEvents;
Y.networkEvents=[];return G};var xfE;xfE={};_.fpU=Jd("yt-serviceworker-metadata",{objectStores:(xfE.auth={addedAtVersion:1},xfE["resource-manifest-assets"]={addedAtVersion:2},xfE),shared:!0,upgrade:function(Y,G){G(1)&&bB(Y,"resource-manifest-assets");G(2)&&bB(Y,"auth")},
version:2});var kTg=self.location.origin+"/";nQI([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);nQI([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);nQI([/\.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\//]);nQI([/purge_shell=1/]);var CmM=void 0;CmM=CmM===void 0?[]:CmM;
for(var y3R=[],e0X=_.E(Pg_),A3I=e0X.next();!A3I.done;A3I=e0X.next())y3R.push({key:A3I.value});for(var o$R=_.E(CmM),i9_=o$R.next();!i9_.done;i9_=o$R.next())y3R.push(i9_.value);var R0M,XE=_.OI==null?void 0:(R0M=_.OI.performance)==null?void 0:R0M.memory,zdT=!1,oQa={},rSt={},Pm={},I$=navigator;var My=function(Y){this.JSC$13683_expiringStorage=new Fw(Y)};
My.prototype.set=function(Y,G,u){u=u!==void 0?Date.now()+u:void 0;this.JSC$13683_expiringStorage.set(Y,G,u)};
My.prototype.get=function(Y){return this.JSC$13683_expiringStorage.get(Y)};
My.prototype.remove=function(Y){this.JSC$13683_expiringStorage.remove(Y)};var dw1=_.hV(["https://www.youtube.com/",""]),b0y=_.hV(["https://studio.youtube.com/",""]),llA="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",N74=null,cSa;var weR=_.hV(["https://www.youtube.com/iframe_api"]),HZ=function(){this.playerResolver_=_.RS();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.nu;this.playbackDurationSeconds_=0},Z9E=function(Y){var G=function(){return window.YT&&typeof window.YT.ready==="function"};
if(G())return _.v$(window.YT);var u=_.RS(),O=_.uI("SCRIPT");O.onload=O.onreadystatechange=function(){O.readyState&&O.readyState!="loaded"&&O.readyState!="complete"||(O.onload=_.nu,O.onreadystatechange=_.nu,O.onerror=_.nu,G()?u.resolve(window.YT):u.reject(new _.I2("Failed to load the iframe player library","script.onload",O.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
O.onerror=function(Q){O.onload=_.nu;O.onreadystatechange=_.nu;O.onerror=_.nu;u.reject(new _.I2("Failed to load the iframe player library","script.onerror",Q&&Q.target&&Q.target.src))};
_.P8(O,_.fO(weR));Y.insertBefore(O,Y.firstChild);return u.promise},DfE=function(Y,G,u){var O,Q;
_.a(function(M){switch(M.nextAddress){case 1:return Y.playbackEndedCallback_=u,_.i3(M,2),M.yield(Z9E(G.parentElement||null),4);case 4:O=M.yieldResult;_.j1(M,3);break;case 2:return Q=_.b3(M),Q instanceof _.I2&&Q.args&&Q.args[0]=="script.onerror"?_.R0(Q):_.o0(Q),M.return();case 3:O.ready(function(){return new O.Player(G,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:Y.onPlayerReady_.bind(Y),onStateChange:Y.onPlayerStateChange_.bind(Y),
onCueRangeExit:Y.onCueRangeExit_.bind(Y)}})}),_.Sd(M)}})};
_.H=HZ.prototype;_.H.getPlayerPromise=function(){return this.playerPromise_};
_.H.onPlayerReady_=function(Y){this.playerResolver_.resolve(Y.target)};
_.H.onPlayerStateChange_=function(Y){if(Y.data==YT.PlayerState.PLAYING){Y=Y.target;var G=Y.getCurrentTime();Y.addCueRange("playback",G,G+this.playbackDurationSeconds_)}};
_.H.onCueRangeExit_=function(Y){Y.data=="playback"&&(Y.target.stopVideo(),this.playbackEndedCallback_())};
_.H.stopVideo=function(){this.playerPromise_.then(function(Y){Y.stopVideo()})};
var h01=function(Y){Y.playerVars_&&Y.playerPromise_.then(function(G){typeof G.cueVideoByPlayerVars!="function"?_.R0(new _.I2("vmh: player API not ready","cueVideoByPlayerVars",typeof G.cueVideoByPlayerVars)):G.cueVideoByPlayerVars(Y.playerVars_)})};
HZ.prototype.playVideo=function(){var Y=this;this.playerVars_&&this.playerPromise_.then(function(G){typeof G.loadVideoByPlayerVars!="function"?(G=new _.I2("vmh: player API not ready","loadVideoByPlayerVars",typeof G.loadVideoByPlayerVars),_.o0(G)):G.loadVideoByPlayerVars(Y.playerVars_)})};
var dfk=function(Y,G,u,O,Q){G&&(u===void 0&&(u=0),O===void 0&&(O=0),Y.playbackDurationSeconds_=O/1E3,Y.playerVars_={adformat:"17_8",videoId:G,suggestedQuality:"hd720",startSeconds:u/1E3,player_params:Q})};
HZ.prototype.mute=function(){this.playerPromise_.then(function(Y){Y.mute()})};
HZ.prototype.unMute=function(){this.playerPromise_.then(function(Y){Y.unMute()})};var Opj=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var E2;E2=function(){this.tokenJars={};if(this.cookiesEnabled=_.gC()){var Y=_.TR.get("CONSISTENCY",void 0);Y&&b9k(this,{encryptedTokenJarContents:Y})}};
_.M44=function(){E2.instance||(E2.instance=new E2);return E2.instance};
E2.prototype.handleResponse=function(Y,G){if(!G)throw Error("$f");var u,O;G=((u=G.innerTubeRequest.context)==null?void 0:(O=u.request)==null?void 0:O.consistencyTokenJars)||[];var Q;(Y=(Q=Y.responseContext)==null?void 0:Q.consistencyTokenJar)&&this.replace(G,Y)};
E2.prototype.replace=function(Y,G){Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())delete this.tokenJars[u.value.encryptedTokenJarContents];b9k(this,G)};
var b9k=function(Y,G){if(G.encryptedTokenJarContents&&(Y.tokenJars[G.encryptedTokenJarContents]=G,typeof G.expirationSeconds==="string")){var u=Number(G.expirationSeconds);setTimeout(function(){delete Y.tokenJars[G.encryptedTokenJarContents]},u*1E3);
Y.cookiesEnabled&&_.LG("CONSISTENCY",G.encryptedTokenJarContents,u,void 0,!0)}};var SBk,tC;SBk=window.location.hostname.split(".").slice(-2).join(".");_.ya=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var Y=_.DE("LOCATION_PLAYABILITY_TOKEN");_.DE("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Nek(this))&&(Y=this.localStorage.get("yt-location-playability-token"));Y&&(this.locationPlayabilityToken=Y,this.mostRecentPosition=void 0)};
_.ya.getInstance=function(){tC=_.So("yt.clientLocationService.instance");tC||(tC=new _.ya,_.U5("yt.clientLocationService.instance",tC));return tC};
_.ya.prototype.setLocationOnInnerTubeContext=function(Y){Y.client||(Y.client={});if(this.mostRecentPosition)Y.client.locationInfo||(Y.client.locationInfo={}),Y.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),Y.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),Y.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),Y.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)Y.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.ya.prototype.handleResponse=function(Y){var G;Y=(G=Y.responseContext)==null?void 0:G.locationPlayabilityToken;Y!==void 0&&(this.locationPlayabilityToken=Y,this.mostRecentPosition=void 0,_.DE("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Nek(this))&&this.localStorage.set("yt-location-playability-token",Y,15552E3):_.LG("YT_CL",JSON.stringify({loctok:Y}),15552E3,SBk,!0))};
var Nek=function(Y){return Y.localStorage===void 0?new _.Da("yt-client-location"):Y.localStorage};
_.ya.prototype.clearLocationPlayabilityToken=function(Y){Y==="TVHTML5"?(this.localStorage=Nek(this))&&this.localStorage.remove("yt-location-playability-token"):_.LZg("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.ya.prototype.getCurrentPositionFromGeolocation=function(){var Y=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var G=!1,u=1E4;_.DE("INNERTUBE_CLIENT_NAME")==="MWEB"&&(G=!0,u=15E3);return new Promise(function(O,Q){navigator.geolocation.getCurrentPosition(function(M){Y.mostRecentPosition=M;O(M)},function(M){Q(M)},{enableHighAccuracy:G,
maximumAge:0,timeout:u})})};
_.ya.prototype.createUnpluggedLocationInfo=function(Y){var G={};Y=Y.coords;if(Y==null?0:Y.latitude)G.latitudeE7=Math.floor(Y.latitude*1E7);if(Y==null?0:Y.longitude)G.longitudeE7=Math.floor(Y.longitude*1E7);if(Y==null?0:Y.accuracy)G.locationRadiusMeters=Math.round(Y.accuracy);return G};
_.ya.prototype.createLocationInfo=function(Y){var G={};Y=Y.coords;if(Y==null?0:Y.latitude)G.latitudeE7=Math.floor(Y.latitude*1E7);if(Y==null?0:Y.longitude)G.longitudeE7=Math.floor(Y.longitude*1E7);return G};var jLI=function(Y,G){var u=xs();Y||(Y="unknown");G||(G="unknown");Y="MAIN_APP_WEB_PAGE_TYPE_"+Y.toUpperCase();Y in gR2||(Y="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");G="MAIN_APP_WEB_REQUEST_TYPE_"+G.toUpperCase();G in Xqk||(G="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Qo(u,{mainAppWeb:{pageType:Y,requestType:G,isShellLoad:_.hy("IS_SHELL_LOAD",!1)}})},V_k={start:function(){_.Qo(ffT(),{mainAppWeb:_.Ah()})},
success:function(){_.Mz(ffT(),"SUCCESS")},
failure:function(){_.Mz(ffT(),"FAILURE")},
cancelled:function(){_.Mz(ffT(),"CANCELLED")}};var lpk,BeE,KpY;lpk=_.hV(["/sw.js"]);BeE=_.hV(["/sw.js?0"]);_.$fU=_.fO(lpk);KpY=_.fO(BeE);var qBU=function(){var Y=Error.apply(this,arguments);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack)};
_.m(qBU,Error);_.R$.prototype.load=function(Y){this.megabloxUrl_=_.DE("YPC_MB_URL");_.fX(this.megabloxUrl_,(0,_.tP)(function(){Y&&Y()},this))};
_.Tia=function(Y,G,u,O,Q,M,t,K,L,g,P){_.T9I(L);Y.load((0,_.tP)(function(){try{var I=M?M:_.DE("HL"),k=_.DE("SESSION_INDEX");_.Xqa("client",function(){laE("59",{helpCenterPath:"/youtube",locale:I,window:window}).JSC$10300_loadChatSupport({authuser:String(k)})})}catch(n){throw o$(10,P,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),Q&&Q(n),_.o0(n),n;
}sL2(this,G,u,O,Q,M,t,K,L,g,P)},Y))};
_.R$.prototype.openFixFlowDialog=function(Y,G,u,O){this.load((0,_.tP)(function(){try{c3e(this,_.So("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(Y).withIntegratorCallback(G).load(u,O)}catch(Q){throw _.o0(Q),Q;}},this))};
var c3e=function(Y,G,u,O){var Q=G.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.F("enable_window_constrained_buy_flow_dialog")&&(Q=Q.usingPopupStyle(_.So("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));O&&(Q=Q.usingCloseCallback(O));G.bootstrap.fromPaymentsUrl(Y.megabloxUrl_);Y=G.bootstrap.asMashupMode(Q);u=u?u:_.DE("HL");Y.usingGaiaIndex(_.DE("SESSION_INDEX")).usingLocale(u).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.F("enable_google_payments_buyflow_material2_style_web")?
Y.usingStyle(":m2;pc=#444;ac=#065fd4"):Y.usingStyle(":md;pc=#444;ac=#065fd4");return Y},sL2=function(Y,G,u,O,Q,M,t,K,L,g,P){try{var I=_.So("payments.business.integration");
if(!I)throw new qBU("payments.business.integration is undefined");var k=I.standaloneContextAuthId.forUserId(),n=c3e(Y,I,M,function(){gJt(!1);K&&K()});
t&&n.usingServerAnalyticsEventHandler(t);var p=n.inStandaloneContext(k).buyFlow(function(W){if(W&&(!W.integratorData||W.integratorData===""||W.error))if(W.error!=null)if(String(W.error)==="-1")_.Lpj(L);else{var C=String(W.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";o$(10,P,C,W.debugCode);_.i0(C,L,W.debugCode);C=new _.I2("PAYMENT_ERROR_MESSAGE::"+W.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+W.internalErrorDetails);
_.o0(C)}else o$(10,P,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.i0("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",L,"EMPTY_INTEGRATOR_DATA"),_.o0(Error("cg"));u&&(gJt(!1),u(W))}).withEncryptedParameters(G);
g&&p.withClientParameters(gaa(_.VTU(g)));p.load(function(){o$(24,P);_.m7("ttc",void 0,"commerce_transaction");nQ("commerce_transaction");O&&(O(),gJt(!0))},function(W){if(W==null?0:W.debugCode)var C=W==null?void 0:W.debugCode;
else if(!W||(W==null?0:W.debugCode))C="EMPTY_LOAD_FAILURE_ERROR",_.o0(Error(C));else{C="EMPTY_LOAD_FAILURE_DEBUG_CODE";var e=new _.I2("LOAD_FAILURE:"+W.message," DEBUG_CODE:"+C);_.o0(e)}o$(10,P,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",C);_.i0("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",L,C);_.o0(W);Q&&Q(W)})}catch(W){throw W instanceof qBU&&(o$(10,P,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),Q&&Q(W)),_.o0(W),W;
}};var Uf1;Uf1=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.tWI=function(Y,G){G=G===void 0?!1:G;Y=Uf1.test(Y)?_.dT(Y):null;!G&&window.payments||!Y?(Y=_.RS(),G=Y.promise,Y.resolve()):G=_.roR(Y,{attributes:{"data-payments-main":"",id:"payment-lib"}});return G};var v$e;v$e=_.hV(["//www.googletagmanager.com/gtm.js?id=",""]);_.KI=function(Y,G){_.Vx(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:G}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.DE("GL")}),G=_.uI("SCRIPT"),G.async=!0,_.P8(G,_.fO(v$e,Y)),G.id="gtm",Y=document.getElementsByTagName("script"),Y.length==0?document.head.appendChild(G):(Y=Y[0],Y.parentNode.insertBefore(G,Y)))};
_.a8=function(Y){if(Y=JSON.parse(Y))window.dataLayer=window.dataLayer||[],window.dataLayer.push(Y)};var J3U,YFR;J3U=_.hV(["https://clients2.google.com/gr/gr_sync.js"]);_.HnA=function(){};
_.HnA.prototype.init=function(){if(YFR()){var Y=_.RS();Y.resolve();return Y.promise}return _.roR(_.fO(J3U)).then(function(){if(!YFR())throw Error("dg");},function(){throw Error("eg");
})};
_.EXt=function(){if(!YFR())return"";var Y=window.google.gr;Y.init({async:{schedule:"sync"},merchantId:"youtube"});Y.start();Y=Y.finish();return Y==null?"":Y};
YFR=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.Z=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.m(_.Z,PolymerFakeBaseClassWithoutHtml);_.Mb=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.m(_.Mb,PolymerFakeBaseClassWithoutHtml);var Xzt=window.ShadyDOM;var vJU,cp1,YpI,G7T,OoU,Qkg,Tk,Va;vJU=_.F("enable_shadydom_free_scoped_query_methods");cp1=_.F("enable_shadydom_free_scoped_node_methods");YpI=_.F("enable_shadydom_free_scoped_readonly_properties_batch_one");G7T=_.F("enable_shadydom_free_parent_node");OoU=_.F("enable_shadydom_free_children");Qkg=_.F("enable_shadydom_free_last_child");Tk=window.ShadyDOM;_.sb=Tk&&Tk.noPatch&&Tk.wrap?Tk.wrap:Tk?function(Y){return Tk.patch(Y)}:function(Y){return Y};
Va=function(Y){if(Y instanceof ShadowRoot)this.host=(0,_.sb)(Y.host),this.root=Y;else if(Y.$$){this.host=(0,_.sb)(Y);var G;this.root=(G=Y.root)!=null?G:this.host}else if(Y.polymerController){this.host=(0,_.sb)(Y);var u;this.root=(u=this.host.shadowRoot)!=null?u:this.host}else this.root=this.host=(0,_.sb)(Y)};
UXu();JpT();Mfj();Ho4();urj();var GFX={querySelector:function(Y,G){G=CRY(G,dG(Y));return _.F("sunnydom_native_scoped_query_selectors")?I5a(Y,G):I5a(_.b0(Y),G)},
querySelectorAll:function(Y,G){G=CRY(G,dG(Y));return _.F("sunnydom_native_scoped_query_selectors")?Array.from(ksj(Y,G)):ksj(_.b0(Y),G)}},uJR={appendChild:function(Y,G){var u=dG(Y),O=_.hh(G);
return _.qPj(_.b0(Y),u?_.N7(G,u,O):G)},
cloneNode:function(Y,G){var u=_.hh(Y);Y=_.b0(Y);G=Db(Y).prototype.cloneNode.call(Y,G);return u?jl(G,u):G},
contains:function(Y,G){var u=dG(Y),O=_.hh(G);return u!==O?!1:sbA(Y,G)},
insertBefore:function(Y,G,u){var O=dG(Y),Q=_.hh(G);Y=_.b0(Y);G=O?_.N7(G,O,Q):G;return Db(Y).prototype.insertBefore.call(Y,G,u)},
removeChild:function(Y,G){var u=dG(Y);Y=_.b0(Y);G=u?jl(G,u):G;return Db(Y).prototype.removeChild.call(Y,G)},
replaceChild:function(Y,G,u){var O=dG(Y),Q=_.hh(G);G=O?_.N7(G,O,Q):Q?jl(G,Q):G;u=O?jl(u,O):u;Y=_.b0(Y);return Db(Y).prototype.replaceChild.call(Y,G,u)},
getRootNode:function(Y,G){G=G===void 0?{composed:!0}:G;var u;if(((u=G)!=null?u:{}).composed)Y=$Xt(Y);else{G=Y;for(Y=Fpt(Y);Y;)G=Y,Y=eOA(Y);Y=G}return Y}},tfj=YpI?{firstChild:SPA,
nextSibling:hO1,previousSibling:bpA,firstElementChild:N9U,lastElementChild:V4j,nextElementSibling:DXa,previousElementSibling:dXA,childNodes:l5T}:{};G7T&&(tfj.parentNode=Zp1);OoU&&(tfj.children=B9g);Qkg&&(tfj.lastChild=jba);vJU&&EzY(GFX);cp1&&EzY(uJR);K8I();var adt=function(Y){this.node=Y instanceof ShadowRoot?Y.host:Y};
TOI();L8a();var PSa=new WeakMap;var k7A=Symbol("Cd");var mJg=new Set(["tap","track","down","up"]),W8A=_.F("pbcm_fi_query_decorators");var LI=function(){return _.Mb.apply(this,arguments)||this};
_.m(LI,_.Mb);_.H=LI.prototype;_.H.getState=function(){return this.store.getState()};
_.H.dispatch=function(Y){this.store.dispatch(Y)};
_.H.beforeRegister=function(){if(this&&typeof this==="object"){var Y;var G=!!this.useSignals||!((Y=this.polymerController)==null||!Y.useSignals)}else G=!1;if(!G&&this.properties)for(G=_.E(Object.keys(this.properties)),Y=G.next();!Y.done;Y=G.next()){var u=Y.value;Y=this.properties[u];if(Y.selector){if(Y.computed)throw Error("lg");u=["reduxPropertiesRecomputeTrigger",'"'+u+'"'].concat(_.c8(Y.selectorArgs||[])).join(",");Y.computed="recomputeReduxSelector("+u+")"}}};
_.H.attached=function(){var Y=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){Y.reduxPropertiesRecomputeTrigger++}));
_.F("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.H.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.H.recomputeReduxSelector=function(Y,G){var u=_.vs.apply(2,arguments),O=this.properties[G].selector;if(!O)throw Error("jg`"+G);return O.apply(null,[this.store.getState()].concat(_.c8(u)))};
_.H.select=function(Y){var G=_.vs.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return Y.apply(null,[this.store.getState()].concat(_.c8(G)))};
_.Uk.Object.defineProperties(LI.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
LI.prototype.recomputeReduxSelector=LI.prototype.recomputeReduxSelector;_.S([_.R(),_.V("design:type",Number)],LI.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.S([_.Hn()],LI);var Xk=[],CSj={},nD=function(){return JG.apply(this,arguments)||this};
_.m(nD,JG);nD.prototype._addPropertyEffect=function(Y,G,u){if(G==="__observeEffects"&&u){var O,Q=(O=u.info.method)!=null?O:u.info.methodName;if(Q){var M=this[Q];this[Q]=function(){Xk.push(Q);try{M==null||M.apply(this,arguments)}finally{Xk.pop()}}}}_.Eq._addPropertyEffect.apply(this,[Y,
G,u])};
nD.prototype._setPendingProperty=function(Y,G,u){if(Xk.length){var O=Xk[Xk.length-1],Q;(Q=CSj[this.is])!=null&&Q.has(O)||(yQt(this.is,O),_.eK("polymerPropertyChangedInObserver",{componentName:this.is,observerName:O}))}return _.Eq._setPendingProperty.apply(this,[Y,G,u])};
_.S([iug()],nD);var eCT=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),ozA,KD={};_.F("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=KD);var LD=function(){return _.Mb.apply(this,arguments)||this};
_.m(LD,_.Mb);LD.prototype._setUnmanagedPropertyToNode=function(Y,G,u){Y.loggingStatus&&(Y.loggingStatus.isDeclarativeExternal=!0);if(u!==Y[G]||typeof u==="object")Y[G]=u;Y.is&&Y.polymerController&&Y.polymerController!==Y&&a4(Y.is,G,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");Y.loggingStatus&&(Y.loggingStatus.isDeclarativeExternal=!1)};
_.S([_.Hn()],LD);AQY()&&(dj.prototype._setUnmanagedPropertyToNode=(new LD)._setUnmanagedPropertyToNode);_.BOA={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(Y){},set polymerController(Y){}}]};var ko=function(){var Y=JG.apply(this,arguments)||this;Y.json=function(){};
return Y};
_.m(ko,JG);ko.prototype.equals=function(Y,G){return Y===G};
ko.prototype.isEmpty=function(Y){var G;(G=!Y)||(G=_.ly(Y)&&Y.length===0);return G};
_.S([iug()],ko);var Ogk=function(Y){Y=QZt(Y);pM.call(this,Y)};
_.m(Ogk,pM);Ogk.prototype.addProvider=function(Y){Y=Y.key?Y:QZt([Y])[0];var G=this.keyIdToIndex.get(Y.key.id);if(G){if(DJI(Y,this.providers[G]))throw Error("mg`"+Y.key.displayName);}else pM.prototype.addProvider.call(this,Y)};
var QJ4=new Ogk([]);var MzU=!1;var jkt={};MzU||(NOa(),MzU=!0);
jkt.InjectBehavior={initializeInjection:function(){var Y=this.provide;try{if((Y=Y!=null?Y:[])&&Y.length>0)for(var G=QZt(Y),u=_.E(G),O=u.next();!O.done;O=u.next())QJ4.addProvider(O.value);var Q=new Set;hCy(this.behaviors||[],Q);G={};for(var M=_.E(Q),t=M.next();!t.done;t=M.next()){var K=t.value;K.inject&&Object.assign(G,K.inject)}this.inject&&Object.assign(G,this.inject);for(var L=_.E(Object.keys(G)),g=L.next();!g.done;g=L.next()){var P=g.value,I=G[P];try{this[P]=QJ4.resolve(I)}catch(k){throw k;}}}catch(k){throw Error(k.message);
}}};var ldg;var $JY=/\bclass\b/.test(function(){}.toString()),cQt=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var Hg1=function(Y){this.wasDefined=!0;Array.isArray(Y)||Y instanceof Array?(this.JSC$13841_getImpl=Y[0],this.JSC$13841_setImpl=Y[1]):this.JSC$13841_getImpl=Y};
_.H=Hg1.prototype;_.H.getWithPath=function(Y){return JQt(this.JSC$13841_getImpl(),Y)};
_.H.setWithPath=function(Y,G){var u=this;if(Y.length)throw Error("ng");if(!this.JSC$13841_setImpl)throw Error("og");zX(function(){u.JSC$13841_setImpl(G)})};
_.H.notifyPath=function(){throw Error("pg");};
_.H.notifySplices=function(){throw Error("qg");};
_.H.getChangeRecordSignal=function(Y,G){var u=this;if(Y.length)throw Error("rg");return function(){var O=u.getWithPath(Y);return{path:G!=null?G:"",base:O,value:O}}};
_.H.getSplicesSignal=function(){throw Error("sg");};
_.H.getPathMutationSignal=function(){throw Error("tg");};
_.H.pop=function(){throw Error("ug");};
_.H.push=function(){throw Error("vg");};
_.H.splice=function(){throw Error("wg");};
_.H.unshift=function(){throw Error("xg");};var PZ=function(Y){var G=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(Y)||Y instanceof Array?(this.JSC$13846_getImpl=Y[0],this.JSC$13846_setImpl=Y[1]):this.JSC$13846_getImpl=Y;this.wasDefined=!1;_.Pw(function(){G.wasDefined=G.JSC$13846_getImpl()!==void 0})};
PZ.prototype.getWithPath=function(Y){return JQt(this.JSC$13846_getImpl(),Y)};
PZ.prototype.setWithPath=function(Y,G){var u=this;if(Y[Y.length-1]!=="*"&&Y[Y.length-1]!=="splices"){var O=_.Pw(function(){return u.getWithPath([])});
if(Y.length===0){if(!this.JSC$13846_setImpl)throw Error("yg");if(O===G)return;this.wasDefined||(this.wasDefined=G!==void 0);zX(function(){u.JSC$13846_setImpl(G)})}else{for(var Q=0;Q<Y.length-1;Q++){if(!O)return;
O=O[Y[Q]]}Q=Y[Y.length-1];O&&(O[Q]=G);this.wasDefined||(this.wasDefined=Y.length>1||G!==void 0)}E1I(this,Y,{pathComponents:Y,value:G})}};
PZ.prototype.notifyPath=function(Y,G){Y.length===0?G&&this.setWithPath(Y,G.value):E1I(this,Y,{pathComponents:Y,value:G==null?void 0:G.value,fallbackWhenUndefined:G==null?void 0:G.value})};
var E1I=function(Y,G,u,O){if(Y.setMutationSignal){var Q=++Y.mutationIndex,M=[Y.observedPath],t=Y.observedPath,K;G.length===0&&(K=t);for(var L=0;L<G.length;L++){var g=t.subPaths[G[L]];if(!g)break;M.push(g);t=g;L===G.length-1&&(K=g)}for(G=!1;M.length;)t=M.shift(),t.data={index:Q,mutation:u,spliceMutationIndex:O},G||(G=t===K),G&&M.push.apply(M,_.c8(Object.values(t.subPaths)));zX(function(){Y.setMutationSignal(Q)})}};
PZ.prototype.notifySplices=function(Y,G){var u=this,O=_.Pw(function(){return u.getWithPath(Y)}),Q=[].concat(_.c8(Y),["splices"]);
E1I(this,Q,{pathComponents:Q,value:{indexSplices:G}});if(O==null?0:O.length)G=this.mutationIndex,Q=[].concat(_.c8(Y),["length"]),E1I(this,Q,{pathComponents:Q,value:O.length},G)};
var tzT=function(Y,G,u,O,Q,M){Y.notifySplices(u,[{index:O,addedCount:Q,removed:M,object:G,type:"splice"}])},Kt_=function(Y,G){Y=Y.observedPath;
for(var u=0;u<G.length;u++){var O=G[u],Q=Y.subPaths[O];Q||(Q={pathComponents:G.slice(0,u+1),subPaths:{}},Y.subPaths[O]=Q);Y=Q}},TlU=function(Y,G,u){Kt_(Y,G);
if(!Y.getMutationSignal){var O=_.E(_.IE(Y.mutationIndex,void 0,"sNBMCd"));Y.getMutationSignal=O.next().value;Y.setMutationSignal=O.next().value}var Q=Y.getMutationSignal;return _.p2(function(){Q();return u(aXX(Y,G))},void 0,"zvsXEd")};
PZ.prototype.getChangeRecordSignal=function(Y,G){var u=this,O=this.mutationIndex,Q;return TlU(this,Y,function(M){if(M&&M.index>O){var t=M.mutation;O=M.index;Q=void 0}M=_.Pw(function(){return u.getWithPath(Y)});
if(t){var K=t.pathComponents[t.pathComponents.length-1],L=[].concat(_.c8(t.pathComponents));if(K==="splices"||K==="length")return{base:M,path:(G?[G].concat(_.c8(L)):L).join("."),value:t.value};var g=Y.length>L.length?Y:L,P;return{base:M!=null?M:t.fallbackWhenUndefined,path:(G?[G].concat(_.c8(g)):g).join("."),value:(P=_.Pw(function(){return u.getWithPath(g)}))!=null?P:t.fallbackWhenUndefined}}Q||(Q={base:M,
path:(G?[G].concat(_.c8(Y)):Y).join("."),value:M});return Q})};
PZ.prototype.getSplicesSignal=function(Y){var G=this.mutationIndex,u;return TlU(this,Y,function(O){if(O&&O.index>G&&O.spliceMutationIndex!==G){var Q=O.mutation;G=O.index;u=void 0}return Q&&Q.pathComponents[Q.pathComponents.length-1]==="splices"?u=O=Q.value:u})};
PZ.prototype.getPathMutationSignal=function(Y){var G=this;Kt_(this,Y);if(!this.getMutationSignal){var u=_.E(_.IE(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=u.next().value;this.setMutationSignal=u.next().value}var O=this.getMutationSignal,Q=this.mutationIndex,M;return _.p2(function(){O();var t=aXX(G,Y);if(t&&t.index>Q&&t.mutation&&Yv1(t.mutation.pathComponents,Y)){var K=t.mutation;Q=t.index}if(!M||Q!==M.index){var L,g;t=(g=_.Pw(function(){return G.getWithPath(Y)}))!=null?g:(L=K)==null?
void 0:L.fallbackWhenUndefined;
M={index:Q,value:t}}return M},void 0,"RXYC9b")};
var aXX=function(Y,G){Y=Y.observedPath;G=_.E(G);for(var u=G.next();!u.done;u=G.next())Y=Y.subPaths[u.value];return Y.data};
PZ.prototype.pop=function(Y){var G=this,u=_.Pw(function(){return G.getWithPath(Y)});
if(!(u instanceof Array))throw Error("zg");var O=u.length>0,Q=u.pop();O&&tzT(this,u,Y,u.length,0,[Q]);return Q};
PZ.prototype.push=function(Y){var G=_.vs.apply(1,arguments),u=this,O=_.Pw(function(){return u.getWithPath(Y)});
if(!(O instanceof Array))throw Error("Ag");var Q=O.length,M=O.push.apply(O,_.c8(G));G.length&&tzT(this,O,Y,Q,G.length,[]);return M};
PZ.prototype.splice=function(Y,G,u){var O=_.vs.apply(3,arguments),Q=this,M=_.Pw(function(){return Q.getWithPath(Y)});
if(!(M instanceof Array))throw Error("Bg");G<0?G=M.length-Math.floor(-G):G&&(G=Math.floor(G));var t=M.splice.apply(M,[G,u].concat(_.c8(O)));(O.length||t.length)&&tzT(this,M,Y,G,O.length,t);return t};
PZ.prototype.unshift=function(Y){var G=_.vs.apply(1,arguments),u=this,O=_.Pw(function(){return u.getWithPath(Y)});
if(!(O instanceof Array))throw Error("Cg");var Q=O.unshift.apply(O,_.c8(G));G.length&&tzT(this,O,Y,0,G.length,[]);return Q};var I8=function(Y,G,u){this.model=Y;this.unknownSignalResolver=G;this.options=u;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];G=_.E(Kda());Y=G.next().value;G=G.next().value;this.owner=Y;this.disposeImpl=G};
I8.prototype.dispose=function(){if(!this.isDisposed){for(var Y=_.E(this.childSignalProxies),G=Y.next();!G.done;G=Y.next())G.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Lt4=function(Y,G){Y=Uy(Y.owner);try{G()}finally{Uy(Y)}};
I8.prototype.effect=function(Y){Lt4(this,function(){_.iF(Y,"j")})};
var g1V=function(Y,G){Y.options!=null||(Y.options={});var u;(u=Y.options).immutableProps!=null||(u.immutableProps=new Set);Y.options.immutableProps.add(G)},wia=function(Y,G){G=""+G;
XQ_(Y,G);var u,O;if((u=Y.options)==null?0:(O=u.immutableProps)==null?0:O.has(G))return!0;var Q;if((Q=Y.model.__signalCache)==null?0:Q.has(G))u=Y.model.__signalCache.get(G),Array.isArray(u)&&g1V(Y,G);var M,t,K;return(K=(M=Y.options)==null?void 0:(t=M.immutableProps)==null?void 0:t.has(G))!=null?K:!1},PtE=function(Y,G){var u;
Y.unknownSignalResolver&&(u=Y.unknownSignalResolver(G));var O,Q;((O=Y.options)==null?0:(Q=O.immutableProps)==null?0:Q.has(G))?u!=null||(u=new Hg1(_.IE(Y.model[G],void 0,"By5iP"))):u!=null||(u=new PZ(_.IE(Y.model[G],void 0,"CXghNc")));var M=Y.model.hostElement;Object.defineProperty(Y.model,G,{get:function(){RCT(M,G);return u.getWithPath([])},
set:function(t){TO(M,G);Y.setWithPath([G],t)},
configurable:!0});return u},XQ_=function(Y,G){var u,O,Q;
((u=Y.model.__signalCache)==null||!u.has(G))&&((O=Y.options)==null?0:(Q=O.externalSignalProps)==null?0:Q.has(G))&&Y.model[G]},Wn=function(Y,G){G=""+G;
var u=Y.signalCache[G];if(u!==void 0)return u;u=!1;XQ_(Y,G);var O;if((O=Y.model.__signalCache)==null?0:O.has(G))if(u=Y.model.__signalCache.get(G),Array.isArray(u))u=!0,g1V(Y,G);else return Y.signalCache[G]=Y.model.__signalCache.get(G).signal,Y.signalCache[G];var Q,M;O=(M=(Q=Y.options)==null?void 0:Q.reactivityMode)!=null?M:0;var t,K;if(!((t=Y.options)==null?0:(K=t.reactiveProps)==null?0:K.has(G))&&!u&&O===1)throw Error("Dg`"+G);Q=u?IXV(Y,G):PtE(Y,G);return Y.signalCache[G]=Q},IXV=function(Y,G){var u=
Object.getOwnPropertyDescriptor(Y.model.constructor.prototype,G),O=function(){return Y.model[G]};
return new Hg1(u&&u.get&&!u.set?O:[O,function(Q){Y.model[G]=Q}])};
I8.prototype.getWithPath=function(Y){var G=_.E(Y);Y=G.next().value;G=$H(G);RCT(this.model.hostElement,""+Y);return Wn(this,Y).getWithPath(G)};
I8.prototype.setWithPath=function(Y,G){if(Y.length){TO(this.model.hostElement,Y.join("."));var u=_.E(Y);Y=u.next().value;u=$H(u);Wn(this,Y).setWithPath(u,G)}};
I8.prototype.getPathMutationSignal=function(Y){var G=_.E(Y);Y=G.next().value;G=$H(G);return Wn(this,Y).getPathMutationSignal(G)};
I8.prototype.notifyPath=function(Y,G){var u=_.E(Y);Y=u.next().value;u=$H(u);Wn(this,Y).notifyPath(u,G)};
var kF4=function(Y,G){if(G.type==="literal")return function(){return{rootWasDefined:!0,value:G.value}};
var u=zO(G.path),O=_.E(u),Q=O.next().value;O=$H(O);var M,t;if(G.type==="path"&&(u.length===1||((M=Y.options)==null?0:(t=M.immutableProps)==null?0:t.has(Q))))return function(){var I=Y.getWithPath(u.slice(0,1));I=JQt(I,u.slice(1));return{rootWasDefined:Wn(Y,u[0]).wasDefined,value:I}};
var K=Wn(Y,Q);if(G.type==="path"){var L=K.getPathMutationSignal(O);return function(){var I,k=(I=L())==null?void 0:I.value;return{rootWasDefined:K.wasDefined,value:k}}}if(G.type==="splices"){var g=K.getSplicesSignal(O);
return function(){var I=g();return{rootWasDefined:K.wasDefined,value:I}}}var P=K.getChangeRecordSignal(O,""+Q);
return function(){var I=P();return{rootWasDefined:K.wasDefined,value:I}}},HSU=function(Y,G,u){var O=u.map(function(K){return kF4(Y,K)}),Q=u.length===0,M=[],t=u.length!==1||u[0].type!=="path"?!1:!0;
Y.effect(function(){for(var K=O.length,L=[],g=!!M.length,P=0;P<K;P++){var I=O[P](),k=I.rootWasDefined;I=I.value;Q||(Q=k);L[P]=I;t&&(L[P+K]=g?M[P]:L[P],M[P]=I)}Q&&d_(Y.owner,function(){return void G.apply(null,_.c8(L))})})},G_A=function(Y,G,u,O,Q){var M=Wn(Y,G);
Q!==void 0&&M.setWithPath([],Q);HSU(Y,function(){var t=_.vs.apply(0,arguments);TO(Y.model.hostElement,G,!0);M.setWithPath([],u.apply(null,_.c8(t)))},O)};
I8.prototype.arrayPush=function(Y){var G=_.vs.apply(1,arguments),u=_.E(Y),O=u.next().value;u=$H(u);O=Wn(this,O);return O.push.apply(O,[u].concat(_.c8(G)))};
I8.prototype.arraySplice=function(Y,G,u){var O=_.vs.apply(3,arguments),Q=_.E(Y),M=Q.next().value;Q=$H(Q);M=Wn(this,M);return M.splice.apply(M,[Q,G,u].concat(_.c8(O)))};
I8.prototype.arrayUnshift=function(Y){var G=_.vs.apply(1,arguments),u=_.E(Y),O=u.next().value;u=$H(u);O=Wn(this,O);return O.unshift.apply(O,[u].concat(_.c8(G)))};
I8.prototype.notifySplices=function(Y,G){var u=_.E(Y);Y=u.next().value;u=$H(u);Wn(this,Y).notifySplices(u,G)};var n11=!0,Fte=!1,weT=!1,pQI=!1,zRk=0;pQI=!1;zRk=0;n11=!0;Fte=weT=!1;var PkU=/([^\s]+?)\(([\s\S]*)\)/,Ldy=/\.([^.]+)$/,k_Y=/\\,/g,aTa=/&comma;/g,TmA=/\\(.)/g,IT1=[],gi1={"*":"wildcard",splices:"splices"};var Cky=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"),WdY=/[A-Z]/,mrI=["class","hidden","id","on-dom-change"],eKA=new Set([].concat(_.c8(mrI),
["if","notify-dom-change","restamp"])),A4y=new Set([].concat(_.c8(mrI),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),oiy=new Set(["restamp"]);var ykA=new Set(["className","id"]);var DlT=Symbol(),Vig=window;var viA=window;var M_I=0,GQg=0,rB=[],QLY=0,YBj=!1,O9j=document.createTextNode("");(new window.MutationObserver(uBY)).observe(O9j,{characterData:!0});var fD=new Map,xo=0,WtR=function(Y){this.mappedHandleId=Y},E$A=function(Y,G,u,O){this.mappedHandleId=Y;
var Q=this;this.mappedHandleId=Y;this.callback=G;this.waitTime=u;this.schedulerPriority=O;this.handleId=_.AN.addJob(function(){Q.callback();fD.delete(Q.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.m(E$A,WtR);E$A.prototype.cancel=function(){_.AN.cancelJob(this.handleId);fD.delete(this.mappedHandleId)};
var t_t=function(Y,G){this.mappedHandleId=Y;var u=this;this.mappedHandleId=Y;this.callback=G;this.handleId=H9U(function(){u.callback();fD.delete(u.mappedHandleId)})};
_.m(t_t,WtR);t_t.prototype.cancel=function(){var Y=this.handleId-GQg;Y<0||rB.length<=Y||(rB[Y]=null);fD.delete(this.mappedHandleId)};var Lxj=function(){};
Lxj.prototype.cancel=function(){this.jobHandle!==void 0&&(KxT(this.jobHandle),this.jobHandle=void 0)};
Lxj.prototype.run=function(Y,G,u){var O=this;this.cancel();this.callback=Y;this.jobHandle=_.CD(function(){Y();O.callback=void 0},G,u)};
Lxj.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var apy=new WeakMap;var rkI=w1(function(Y){for(var G=Y,u=0;u<3;u++)G=Object.getPrototypeOf(G);delete G.prototype.connectedCallback;var O=function(){return Y.apply(this,arguments)||this};
_.m(O,Y);O.prototype._attachDom=function(Q){if(!Q)return null;var M=(0,_.sb)(this.hostElement);M.attachShadow({mode:"open",shadyUpgradeFragment:Q});M.shadowRoot.appendChild(Q);return M.shadowRoot};
O.prototype._takeAttributes=function(){for(var Q=this.hostElement.attributes,M=0;M<Q.length;M++){var t=Q[M],K=void 0,L=void 0;(L=(K=this).__attributeReaction)==null||L.call(K,t.name,null,t.value)}};
O.prototype._readyClients=function(){Y.prototype._readyClients.call(this);this.root=this};
O.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);Y.prototype.connectedCallback.call(this)};
_.Uk.Object.defineProperties(O,{template:{configurable:!0,enumerable:!0,get:function(){return O.prototype._template}}});
return O}),xrT=w1(function(Y){var G=function(){return Y.apply(this,arguments)||this};
_.m(G,Y);G.prototype.created=function(){if(this.__notifyEffects)for(var u=_.E(Object.values(this.__notifyEffects)),O=u.next();!O.done;O=u.next()){O=_.E(O.value);for(var Q=O.next();!Q.done;Q=O.next())Q.value.fn=PmT}if(this.__reflectEffects)for(u=_.E(Object.values(this.__reflectEffects)),O=u.next();!O.done;O=u.next())for(O=_.E(O.value),Q=O.next();!Q.done;Q=O.next())Q.value.fn=IpU};
G.prototype._addEventListenerToNode=function(u,O,Q){u=iM(u);o3(u,O,Q)||Y.prototype._addEventListenerToNode.call(this,u,O,Q)};
G.prototype._removeEventListenerFromNode=function(u,O,Q){u=iM(u);io(u,O,Q)||Y.prototype._removeEventListenerFromNode.call(this,u,O,Q)};
G.prototype._propertiesChanged=function(u,O,Q){if(this.__dataToNotify&&this.__notifyEffects)for(var M=_.E(Object.keys(this.__dataToNotify)),t=M.next();!t.done;t=M.next()){t=t.value;var K=Xej(t);this.__notifyEffects[K]||delete this.__dataToNotify[t]}else this.__dataToNotify=null;Y.prototype._propertiesChanged.call(this,u,O,Q)};
G.prototype.fire=function(u,O,Q){O=O===void 0?{}:O;var M;return _.$s(iM((M=Q==null?void 0:Q.node)!=null?M:this),u,O,Q)};
G.prototype._ensureAttribute=function(u,O){var Q=iM(this);Q.hasAttribute(u)||mO(Q,O,u)};
G.prototype.isLightDescendant=function(u){var O=iM(this);return iM(O)!==u&&_.l0(O).contains(u)&&_.l0(O).getRootNode()===_.l0(u).getRootNode()};
return G});
_.uh.ready=function(){var Y;((Y=this.hostElement)!=null?Y:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var G;((G=this.hostElement)!=null?G:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.aZ._subscribeIronResize=function(Y){var G;((G=Y.hostElement)!=null?G:Y).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.aZ._unsubscribeIronResize=function(Y){var G;((G=Y.hostElement)!=null?G:Y).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Fxt=[Array,Boolean,Date,Number,Object,String],wB=function(Y,G,u,O){this.polySiInfo=Y;this.polySiParams=G;this.polySiContext=u;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;O||this instanceof HTMLElement&&(O=this);if(!O)throw Error("Kg");this.allowedProps=G.allowedProps;this.hostElement=O;this.is=Y.is;this.upgradeDisabled=!!G.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");Y=new Set(G.reactiveSchemas.filter(function(Q){return Q.type!==
"observe"}).map(function(Q){return Q.propertyKey}));
this.signalProxy=new I8(this,void 0,{reactiveProps:Y,reactivityMode:G.reactivityMode});this.__dataHasAccessor={};G=_.E(G.reactiveSchemas);for(Y=G.next();!Y.done;Y=G.next())Y=Y.value,Y.type==="signal"&&(this.__dataHasAccessor[Y.propertyKey]=!0);this.upgradeDisabled||fXk(this)};
wB.prototype.getExtraMethodsToForward=function(){return[]};
var fXk=function(Y){Y.polySiContext.didRegister||(Y.registered(),Y.polySiContext.didRegister=!0);Y.polySiContext.finalizedTemplate||(Y.polySiContext.finalizedTemplate={},Y.polySiParams.templateGetter&&(Y.polySiContext.finalizedTemplate.processedTemplate=J4A(Y.polySiParams.templateGetter,Y.polySiParams.is)));CtI(Y);var G=Y.hostElement;G.loggingStatus!=null||(G.loggingStatus={});G.loggingStatus.isInitializing=!0;_.Pw(function(){return void Y.created()});
G.loggingStatus.isInitializing=!1;Y.isPolySiElementConnected&&ykR(Y)},ykR=function(Y){Y.didCallReady||(_.Pw(function(){return void Y.ready()}),Y.didCallReady=!0);
Y.isAttached=!0;Y.attached()};
_.H=wB.prototype;_.H.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||ykR(this)};
_.H.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.H.attributeChangedCallback=function(Y,G,u){if(this.upgradeDisabled)Y==="disable-upgrade"&&u===null&&(this.upgradeDisabled=!1,fXk(this));else if(G!==u){var O=_.OK(Y),Q=this.polySiContext.typesForSignals[O];if(Q&&(!this.reflecting||_.F("polysi_attribute_changed_serializing_killswitch"))){switch(Q){case Object:try{var M=JSON.parse(u)}catch(K){M=u}break;case Array:try{M=JSON.parse(u)}catch(K){M=null}break;case Date:M=isNaN(u)?String(u):Number(u);M=new Date(M);break;case Boolean:M=u!==null;break;case Number:M=
Number(u);break;default:M=u}this[O]=M}O=_.E(this.polySiParams.behaviors);for(Q=O.next();!Q.done;Q=O.next())M=void 0,(M=Q.value.attributeChanged)==null||M.call(this,Y,G,u);var t;(t=this.attributeChanged)==null||t.call(this,Y,G,u)}};
_.H.attributeChangedCallbackWrapper=function(Y,G,u){this.attributeChangedCallback(Y,G,u)};
_.H.setPropertiesFromInitialAttributeValues=function(){for(var Y=0;Y<this.hostElement.attributes.length;Y++){var G=this.hostElement.attributes[Y];(G.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(G.name))&&this.attributeChangedCallback(G.name,null,G.value)}};
_.H.created=function(){this.provide=this.polySiParams.provide;var Y;(Y=this.initializeInjection)==null||Y.call(this);Y=_.E(this.polySiParams.reactiveSchemas);for(var G=Y.next();!G.done;G=Y.next())G=G.value,G.type==="signal"&&(this.mutablePropNames.add(G.propertyKey),Wn(this.signalProxy,G.propertyKey));n$A(this,this.polySiInfo,this.polySiParams.behaviors);Y=_.E(this.polySiParams.reactiveSchemas);for(G=Y.next();!G.done;G=Y.next())G=G.value,G.type==="signal"&&G.value!==void 0&&(this.signalProxy.model[G.propertyKey]=
typeof G.value==="function"?G.value.call(this):G.value);if(this.polySiParams.signalProperties)for(Y=_.E(this.polySiParams.signalProperties),G=Y.next();!G.done;G=Y.next()){G=G.value;var u=void 0;((u=this.__signalCache)==null?0:u.has(G))||(this.signalProxy.model[G]=void 0)}pQI||eR1(this);kQI(this);Y=_.E(this.polySiParams.behaviors);for(G=Y.next();!G.done;G=Y.next())u=void 0,(u=G.value.created)==null||u.call(this);var O;(O=this.polySiInfo.created)==null||O.call(this)};
_.H.registered=function(){var Y=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var G=Object.getPrototypeOf(this);G.addReactiveSchema=function(K){Y.polySiParams.reactiveSchemas.push(K)};
for(var u=_.E(this.polySiParams.behaviors),O=u.next();!O.done;O=u.next()){var Q=void 0;(Q=O.value.beforeRegister)==null||Q.call(G)}var M;(M=this.polySiInfo.beforeRegister)==null||M.call(G);G.addReactiveSchema=z0j;u=_.E(this.polySiParams.behaviors);for(O=u.next();!O.done;O=u.next())Q=void 0,(Q=O.value.registered)==null||Q.call(G);var t;(t=this.polySiInfo.registered)==null||t.call(G)};
_.H.ready=function(){var Y;(Y=this.beforeReady)==null||Y.call(this);pQI&&eR1(this);var G;if(Y=(G=this.polySiContext.finalizedTemplate)==null?void 0:G.processedTemplate){Y=UlU(Y.template,Y.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:Y.hasInsertionPoint,thisCtx:this});G=Y.nodesById;Y=Y.root;var u=this.hostElement;var O=O===void 0?!1:O;u=(0,_.sb)(u);if(!u.attachShadow)throw Error("Id");if(!u.shadowRoot||O)u.attachShadow({mode:"open",shadyUpgradeFragment:Y}),u.shadowRoot.appendChild(Y);
this.root=u.shadowRoot;this.$=G}Akl(this);O=_.E(this.polySiParams.behaviors);for(G=O.next();!G.done;G=O.next())Y=void 0,(Y=G.value.ready)==null||Y.call(this);var Q;(Q=this.polySiInfo.ready)==null||Q.call(this)};
_.H.attached=function(){for(var Y=_.E(this.polySiParams.behaviors),G=Y.next();!G.done;G=Y.next()){var u=void 0;(u=G.value.attached)==null||u.call(this)}var O;(O=this.polySiInfo.attached)==null||O.call(this)};
_.H.detached=function(){for(var Y=_.E(this.polySiParams.behaviors),G=Y.next();!G.done;G=Y.next()){var u=void 0;(u=G.value.detached)==null||u.call(this)}var O;(O=this.polySiInfo.detached)==null||O.call(this)};
var CtI=function(Y){for(var G=_.E(Y.polySiParams.behaviors),u=G.next();!u.done;u=G.next())if(u=u.value,u.listeners)for(var O in u.listeners)c4T(Y,Y.hostElement,O,u.listeners[O]);if(Y.polySiInfo.listeners)for(var Q in Y.polySiInfo.listeners)c4T(Y,Y.hostElement,Q,Y.polySiInfo.listeners[Q])},c4T=function(Y,G,u,O,Q){Y=vzy(Y,O,Q);
o3(G,u,Y)||G.addEventListener(u,Y);return Y},eR1=function(Y){for(var G=_.E(Y.polySiParams.reactiveSchemas),u=G.next();!u.done;u=G.next())u=u.value,u.type==="compute"||u.type==="computeWithMethod"?ubY(Y.signalProxy,u,Y):u.type==="redux"?Mij(Y.signalProxy,u,Y.store):u.type==="signal"&&u.readOnly&&Qgj(Y.signalProxy,u)},Akl=function(Y){for(var G=_.E(Y.polySiParams.reactiveSchemas),u=G.next(),O={};!u.done;O={schema$jscomp$12:void 0},u=G.next())O.schema$jscomp$12=u.value,O.schema$jscomp$12.type==="notify"?
Eiu(Y.signalProxy,O.schema$jscomp$12,Y.hostElement):O.schema$jscomp$12.type==="observe"?ti4(Y.signalProxy,O.schema$jscomp$12,Y):O.schema$jscomp$12.type==="reflect"&&Y.signalProxy.effect(function(M){return function(){var t=Y.signalProxy.getWithPath([M.schema$jscomp$12.propertyKey]);
Y.reflecting=!0;Fdu(Y.hostElement,M.schema$jscomp$12.propertyKey,t,!0);Y.reflecting=!1}}(O));
if(Y.reflectedAttributes)for(G=_.E(Object.entries(Y.reflectedAttributes)),O=G.next(),u={};!O.done;u={key$jscomp$940:void 0,value$jscomp$10375:void 0},O=G.next()){var Q=_.E(O.value);O=Q.next().value;Q=Q.next().value;u.key$jscomp$940=O;u.value$jscomp$10375=Q;Y.signalProxy.effect(function(M){return function(){Y.reflecting=!0;Fdu(Y.hostElement,M.key$jscomp$940,(0,M.value$jscomp$10375)(),!0);Y.reflecting=!1}}(u))}};
_.H=wB.prototype;_.H._setPendingProperty=function(Y,G){this.set(Y,G);return!1};
_.H._enableProperties=function(){};
_.H._setPendingPropertyOrPath=function(Y,G){this.notifyPath(Y,G);return!1};
_.H._addPropertyEffect=function(){};
_.H._stampTemplate=function(){throw Error("Lg");};
_.H.fire=function(Y,G,u){G=G===void 0?{}:G;u=u===void 0?{}:u;var O,Q,M={bubbles:(O=u.bubbles)!=null?O:!0,cancelable:!!u.cancelable,composed:(Q=u.composed)!=null?Q:!0},t;return _.$s(mf4((t=u.node)!=null?t:this.hostElement),Y,G,M)};
_.H.isLightDescendant=function(Y){return this.hostElement!==Y&&_.l0(this.hostElement).contains(Y)&&_.l0(this.hostElement).getRootNode()===_.l0(Y).getRootNode()};
_.H.get=function(Y,G){var u=zO(Y);return G?JQt(G,u):Y==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(u)};
_.H.linkPaths=function(){};
_.H.listen=function(Y,G,u){Y=mf4(Y);this.boundListeners!=null||(this.boundListeners=new WeakMap);var O=this.boundListeners.get(Y);O||(O={},this.boundListeners.set(Y,O));var Q=G+u;O[Q]||(O[Q]=c4T(this,Y,G,u))};
_.H.notifyPath=function(Y,G){this.signalProxy.notifyPath(zO(Y),arguments.length===2?{value:G}:void 0)};
_.H.canNotifyPath=function(Y){return this.mutablePropNames.has(Y)&&!wia(this.signalProxy,Y)};
_.H.notifySplices=function(Y,G){this.signalProxy.notifySplices(zO(Y),G)};
_.H.pop=function(Y){var G=this.signalProxy;Y=zO(Y);var u=_.E(Y);Y=u.next().value;u=$H(u);return Wn(G,Y).pop(u)};
_.H.push=function(Y){var G=_.vs.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[zO(Y)].concat(_.c8(G)))};
_.H.set=function(Y,G,u){if(u)throw Error("Mg");Y==="hidden"?this.hostElement.hidden=!!G:this.signalProxy.setWithPath(zO(Y),G)};
_.H.setProperties=function(Y){Y=_.E(Object.entries(Y));for(var G=Y.next();!G.done;G=Y.next()){var u=_.E(G.value);G=u.next().value;u=u.next().value;this[G]=u}};
_.H.splice=function(Y,G,u){var O=_.vs.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[zO(Y),G,u].concat(_.c8(O)))};
_.H.unlinkPaths=function(){};
_.H.unlisten=function(Y,G,u){Y=mf4(Y);if(this.boundListeners){var O=this.boundListeners.get(Y);if(O){u=G+u;var Q=O[u];Q&&(io(Y,G,Q)||Y.removeEventListener(G,Q),delete O[u])}}};
_.H.unshift=function(Y){var G=_.vs.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[zO(Y)].concat(_.c8(G)))};
_.Uk.Object.defineProperties(wB.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 R0j=[Array,Boolean,Date,Number,Object,String];var Df4=!1;var kY=function(){var Y=HTMLElement.apply(this,arguments)||this;Y.restamp=!1;Y.notifyDomChange=!1;Y.JSC$13954_didCallConnected=!1;Y.JSC$13954_renderDebouncer=null;Y.disableTemplateUpdateSignalImpl=ZS()?void 0:_.IE(!1,void 0,"kCcqO");var G;Y.getDisableTemplateUpdate=(G=Y.disableTemplateUpdateSignalImpl)==null?void 0:G[0];var u;Y.setDisableTemplateUpdate=(u=Y.disableTemplateUpdateSignalImpl)==null?void 0:u[1];return Y};
_.m(kY,HTMLElement);var o1I=function(Y){Y.conditionSignalImpl!=null||(Y.conditionSignalImpl=new PZ(_.IE(!1,void 0,"ahkyAc")));return Y.conditionSignalImpl};
_.H=kY.prototype;_.H.showHideChildren=function(Y){igT(this,Y,this.if)};
_.H.attributeChangedCallback=function(Y,G,u){if(this.JSC$13954_didCallConnected)throw Error("Qg`"+Y);Y==="notify-dom-change"?this.notifyDomChange=u!==null:Y==="restamp"&&(this.restamp=u!==null)};
_.H.debounceRender=function(){this.JSC$13954_renderDebouncer=_.By(this.JSC$13954_renderDebouncer,wj,this.JSC$13954_renderImpl.bind(this));_.$t(this.JSC$13954_renderDebouncer)};
_.H.disconnectedCallback=function(){var Y=(0,_.sb)(this).parentNode;(!Y||Y.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in Y&&!Y.host)&&RRR(this)};
_.H.connectedCallback=function(){var Y=this;if(_.F("ps_dom_if_require_parent_signal_proxy_killswitch")||this.parentSignalProxy)this.JSC$13954_didCallConnected=!0,n11?h0u():this.style.display="none",this.parentSignalProxy.isDisposed&&!_.F("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){o1I(Y).getWithPath([]);Y.debounceRender()});
else{var G=(0,_.sb)(this).parentNode,u={parentNode:G==null?void 0:G.nodeName};G instanceof Element&&(u.parentClassName=G.className);_.R0(new _.I2("PsDomIf connected with undefined parentSignalProxy",u))}};
_.H.render=function(){_.Uz()};
_.H.JSC$13954_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var Y=this.if,G=!1;if(Y){this.hasInstance()||(wQR(this),G=!0);a:{var u=(0,_.sb)(this).parentNode;if(this.hasInstance()){var O=this.instance.children;if((O==null?0:O.length)&&(0,_.sb)(this).previousSibling!==O[O.length-1])for(var Q=0;Q<O.length;Q++)(0,_.sb)(u).insertBefore(O[Q],this)}else{if(!u){u=!1;break a}Zgl(this,u)}u=!0}if(!u)return}else this.restamp&&RRR(this);igT(this,!1,Y);Y&&!G&&wQR(this);Fte&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.H.hasInstance=function(){return!!this.instance};
var Zgl=function(Y,G){var u=Y.parentSignalProxy;if(ZS()){var O=_.E(_.IE(!0,void 0,"QNXUce"));var Q=O.next().value;O=O.next().value;u=Y.parentSignalProxy}else{var M;var t=new I8((M=Dr1(Y))!=null?M:{},function(L){var g=Wn(Y.parentSignalProxy,L).getChangeRecordSignal([]);L=_.IE(void 0,void 0,"mIYvwe");var P=new PZ(L);t.effect(function(){if(Y.getDisableTemplateUpdate&&!Y.getDisableTemplateUpdate()){var I=g();P.notifyPath(zO(I.path),{value:I.value})}});
return P});
Y.parentSignalProxy.childSignalProxies.push(t);var K=u=t}u=UlU(Y.templateInfo,Y.templateInfo.nodeInfoList,u,{eventListenerHost:Y.eventListenerHost,hasInsertionPoint:Y.templateInfo.hasInsertionPoint,thisCtx:Y.eventListenerHost,enabledSignal:ZS()?Q:void 0,getModel:function(){return Dr1(Y)}}).root;
Y.instance={root:u,children:[],hidden:!1,signalProxy:K,getTemplateUpdatesEnabled:Q,setTemplateUpdatesEnabled:O};K=_.E(u.childNodes);for(Q=K.next();!Q.done;Q=K.next())Y.instance.children.push(Q.value);(0,_.sb)(G).insertBefore(Y.instance.root,Y)},Dr1=function(Y){if((Y=Y.parentSignalProxy.model)&&!Y.hostElement){var G={},u;
for(u in Y)Y.hasOwnProperty(u)&&(G[u]=Y[u]);return G}},RRR=function(Y){if(Y.instance){var G=Y.instance.children;
if(G.length){var u=(0,_.sb)(G[0]).parentNode;if(u){u=(0,_.sb)(u);for(var O=0;O<G.length;O++)u.removeChild(G[O])}}ZS()?Y.instance.setTemplateUpdatesEnabled(!1):Y.instance.signalProxy.dispose();Y.instance=void 0}},igT=function(Y,G,u){G=G||!u;
Y.instance&&Y.instance.hidden!==G&&(Y.instance.hidden=G,Z94(G,Y.instance.children))},wQR=function(Y){if(ZS()){var G=Y.instance;
G&&d_(Y.parentSignalProxy.owner,function(){return!G.getTemplateUpdatesEnabled()})&&G.setTemplateUpdatesEnabled(!0)}else Y.setDisableTemplateUpdate(!1)};
_.Uk.Object.defineProperties(kY.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var Y=this;return d_(this.parentSignalProxy.owner,function(){return o1I(Y).getWithPath([])})},
set:function(Y){Y||(ZS()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));o1I(this).setWithPath([],!!Y)}}});
_.Uk.Object.defineProperties(kY,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",kY);var hRI=[],nI=function(){var Y=HTMLElement.apply(this,arguments)||this;Y.as="item";Y.indexAs="index";Y.itemsIndexAs="itemsIndex";Y.targetFramerate=20;Y.notifyDomChange=!1;Y.isDetached=!1;Y.JSC$13961_renderDebouncer=null;Y.instances=[];Y.chunkingId=null;Y.chunkCount=null;Y.shouldMeasureChunk=!1;Y.shouldContinueChunking=!1;Y.renderStartTime=null;Y.JSC$13961_didCallConnected=!1;return Y};
_.m(nI,HTMLElement);var drl=function(Y){Y.itemSignalImpl!=null||(Y.itemSignalImpl=new PZ(_.IE(hRI,void 0,"fBC3h")));return Y.itemSignalImpl},bgM=function(Y,G){Array.isArray(G)||(G=hRI);
drl(Y).setWithPath([],G)};
_.H=nI.prototype;_.H.showHideChildren=function(Y){for(var G=_.E(this.instances),u=G.next();!u.done;u=G.next())Z94(Y,u.value.children)};
_.H.notifyPath=function(Y,G){Y=zO(Y);Y[0]==="items"&&(Y.length===1?bgM(this,G):drl(this).setWithPath(Y.slice(1),G))};
_.H.canNotifyPath=function(Y){return Y==="items"};
_.H.attributeChangedCallback=function(Y,G,u){if(this.JSC$13961_didCallConnected)throw Error("Rg`"+Y);Y==="as"?this.as=u:Y==="index-as"?this.indexAs=u:Y==="items-index-as"?this.itemsIndexAs=u:Y==="initial-count"?this.initialCount=Number(u):Y==="notify-dom-change"?this.notifyDomChange=u!==null:Y==="target-framerate"&&(this.targetFramerate=Number(u))};
_.H.disconnectedCallback=function(){this.isDetached=!0;for(var Y=0;Y<this.instances.length;Y++)SFV(this,Y);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.H.connectedCallback=function(){var Y=this;if(_.F("ps_dom_repeat_require_parent_signal_proxy_killswitch")||this.parentSignalProxy){var G=drl(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var Q=G(),M=zO(Q.path);if(M[0]===void 0||M[0]==="splices"||M[0]==="length")Y.debounceRender();else{var t=M[0];if(t=Y.instances[typeof t==="string"?Math.floor(Number(t)):t])M=[Y.as].concat(_.c8(M.slice(1))),t.signalProxy.notifyPath(M,Q)}});
this.JSC$13961_didCallConnected=!0;n11?h0u():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var u=(0,_.sb)((0,_.sb)(this).parentNode),O=0;O<this.instances.length;O++)u.insertBefore(this.instances[O].root,this);this.chunkingId&&this.render()}}else u=(0,_.sb)(this).parentNode,O={parentNode:u==null?void 0:u.nodeName},u instanceof Element&&(O.parentClassName=u.className),_.R0(new _.I2("PsDomRepeat connected with undefined parentSignalProxy",O))};
_.H.debounceRender=function(){this.JSC$13961_renderDebouncer=_.By(this.JSC$13961_renderDebouncer,wj,this.JSC$13961_renderImpl.bind(this));_.$t(this.JSC$13961_renderDebouncer)};
_.H.render=function(){this.debounceRender();_.Uz()};
_.H.JSC$13961_renderImpl=function(){var Y=this;if(!this.parentSignalProxy.isDisposed){var G=this.items,u=Nle(this,G.length);jJ1(this,G,u);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){Y.chunkingId=null;if(Y.shouldMeasureChunk){var O=performance.now()-Y.renderStartTime;Y.chunkCount=Math.round(Math.ceil(1E3/Y.targetFramerate)/O*Y.chunkCount)||1}Y.shouldContinueChunking&&Y.debounceRender()}));
Fte&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var Nle=function(Y,G){var u=G,O=Y.instances.length;if(Y.initialCount){if(Y.chunkCount){var Q=Math.min(Math.max(G-O,0),Y.chunkCount);u=Math.min(O+Q,G)}else u=Math.min(G,Y.initialCount),Q=Math.max(u-O,0),Y.chunkCount=Q||1;Y.shouldMeasureChunk=Q===Y.chunkCount;Y.shouldContinueChunking=u<G;Y.renderStartTime=performance.now()}return u},jJ1=function(Y,G,u){for(var O=0;O<u;O++){var Q=Y.instances[O],M=G[O];
Q?(Q.signalProxy.setWithPath([Y.as],M),Q.signalProxy.setWithPath([Y.indexAs],O)):VzE(Y,M,O)}for(G=Y.instances.length-1;G>=O;G--)u=Y,Q=G,SFV(u,Q),_.E(u.instances.splice(Q,1)).next().value.signalProxy.dispose()},SFV=function(Y,G){Y=Y.instances[G];
G=(0,_.sb)(Y.root);for(var u=0;u<Y.children.length;u++)G.appendChild(Y.children[u])},VzE=function(Y,G,u){var O={};
G=Object.assign({},lXR(Y),(O[Y.as]=G,O[Y.indexAs]=u,O[Y.itemsIndexAs]=u,O));var Q=new I8(G,function(t){if(t!==Y.as&&t!==Y.indexAs){if(t===Y.itemsIndexAs)return Wn(Q,Y.indexAs);var K=Wn(Y.parentSignalProxy,t).getChangeRecordSignal([]);t=_.IE(void 0,void 0,"Y7rQEe");var L=new PZ(t);Q.effect(function(){var g=K();L.notifyPath(zO(g.path),{value:g.value})});
return L}});
Y.parentSignalProxy.childSignalProxies.push(Q);O=UlU(Y.templateInfo,Y.templateInfo.nodeInfoList,Q,{eventListenerHost:Y.eventListenerHost,getModel:function(){var t={};return Object.assign({},lXR(Y),(t[Y.as]=Q.model[Y.as],t[Y.indexAs]=Q.model[Y.indexAs],t[Y.itemsIndexAs]=Q.model[Y.indexAs],t))},
hasInsertionPoint:Y.templateInfo.hasInsertionPoint,thisCtx:Y.eventListenerHost,methodInvocationRequirement:zRk,enabledSignal:Y.stampingEnabled}).root;G={root:O,children:[],signalProxy:Q};O=_.E(O.childNodes);for(var M=O.next();!M.done;M=O.next())G.children.push(M.value);O=(O=Y.instances[u+1])?O.children[0]:Y;(0,_.sb)((0,_.sb)(Y).parentNode).insertBefore(G.root,O);Y.instances[u]=G},lXR=function(Y){if((Y=Y.parentSignalProxy.model)&&!Y.hostElement){var G={},u;
for(u in Y)Y.hasOwnProperty(u)&&(G[u]=Y[u]);return G}};
nI.prototype.itemForElement=function(Y){var G=this,u=this.instances.find(function(O){return O.children.includes(Y)});
if(u)return d_(this.parentSignalProxy.owner,function(){return u.signalProxy.getWithPath([G.as])})};
nI.prototype.indexForElement=function(Y){var G=this.instances.findIndex(function(u){return u.children.includes(Y)});
return G>=0?G:void 0};
_.Uk.Object.defineProperties(nI.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var Y=this;return d_(this.parentSignalProxy.owner,function(){return drl(Y).getWithPath([])})},
set:function(Y){bgM(this,Y)}},
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}}});
_.Uk.Object.defineProperties(nI,{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",nI);var BlV,$rl;_.Fk=new _.Sb("STATE_STORE_TOKEN");BlV=new _.Sb("SELECT_TOKEN");$rl=new _.Sb("DISPATCH_TOKEN");var V_a={getSelectFn:function(){var Y;return(Y=_.sH().resolve(_.q3(BlV)))!=null?Y:dfa},
getDispatchFn:function(){var Y;return(Y=_.sH().resolve(_.q3($rl)))!=null?Y:_.DS().dispatch.bind(_.DS())},
getAppStore:function(){return _.sH().resolve(_.Fk)}},b9a,jLj=!1;var Ufu=function(){};var qBY=void 0;var qFM=function(){};
qFM.prototype.hasAttribute=function(Y){if(Y==="dir")return!1;if(Y==="disable-upgrade"){var G,u;return(u=(G=this.hostElement)==null?void 0:G.hasAttribute("disable-upgrade"))!=null?u:!1}throw Error("Sg`"+Y);};
qFM.prototype.attributeChangedCallbackWrapper=function(Y,G,u){if(Y==="disable-upgrade"&&this.__isUpgradeDisabled&&u===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var O;((O=this.hostElement)!=null?O:this).isConnected&&this.connectedCallback()}else G===u||this.__isReflecting||this.attributeChangedCallback(Y,G,u)};
qFM.prototype.getExtraMethodsToForward=function(){for(var Y=this,G=[],u=_.E(sJe),O=u.next(),Q={};!O.done;Q={tagName$jscomp$67:void 0,name$jscomp$631:void 0},O=u.next())Q.name$jscomp$631=O.value,O=void 0,Q.name$jscomp$631==="_setPendingProperty"?(Q.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),O=function(M){return function(t,K,L){a4(M.tagName$jscomp$67,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return Y._setPendingProperty(t,K,L)}}(Q)):O=function(M){return function(){return Y[M.name$jscomp$631].apply(Y,
_.c8(_.vs.apply(0,arguments)))}}(Q),G.push([Q.name$jscomp$631,
O]);return G};
for(var YFT=xrT(rkI((0,_.H0)(qFM))),QJI=["disabled","disable-upgrade"],ckI=(0,_.H0)(function(){}),Ur4=new Set(Object.getOwnPropertyNames(ckI.prototype)),Kty=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.c8(Ur4))),Hgu=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),sJe=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),v1E=new Set([].concat(_.c8(Hgu),_.c8(sJe),_.c8(Ur4))),JkX=_.E(v1E),YC4=JkX.next();!YC4.done;YC4=JkX.next())eCT.add(YC4.value);var tz1={created:function(){kQI(this);this.initializeInjection()}};var n1u=!1,lM=window.ShadyDOM,fXa=["appendChild","insertBefore","removeChild","replaceChild"],xr1=[Node];lM&&xr1.push(lM.Wrapper);var RRA,wQA,hRj={};var Bn,jJu=new WeakMap,bgj=new Set;var qFj=new Set("context didCallReady is info params signalProxy".split(" ")),ckj="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),UrI="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Gze=fA({entities:Uyg}),uM1=new wK(Gze);var OFX=function(){return _.Mb.apply(this,arguments)||this};
_.m(OFX,_.Mb);_.Uk.Object.defineProperties(OFX.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return uM1}}});
_.S([_.Hn()],OFX);_.pI=[LI.prototype,OFX.prototype];_.zk={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var Y=this,G={};setTimeout(function(){var u;return _.$s((u=Y.hostElement)!=null?u:Y,"yt-live-chat-add-tooltip-target",G)},0);
this.handler_=G.handler},
detached:function(){if(this.handler_){var Y;this.handler_.removeElementFromSupportingTooltips((Y=this.hostElement)!=null?Y:this)}this.handler_=null}}};_.vn=new _.Sb("ICON_MANAGER_TOKEN");var Qj1=[48,20,18,16,15,13,12],XPY=new Map,aOt=new Set,EPU=new Set,KYy=new Set,HFu=new Set,tBA=new Set,LYa=new Promise(function(Y){var G=!1,u=!1,O=!1,Q=[],M=function(t){if("detail"in t)if(t=t.detail,t.name==="yt-icons")T6t(t),G=!0;else if(t.name==="yt-sys-icons")T6t(t),u=!0;else{var K;((K=t.name)==null?0:K.includes("yt-sys-icons"))&&t.size!==24&&(T6t(t,!0),Q.push(t.size),Q.length===Qj1.length&&(O=!0))}G&&u&&O&&(window.removeEventListener("iron-iconset-added",M),Y())};
window.addEventListener("iron-iconset-added",M)}),MB4=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"]]);_.m9={};_.m9.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Ri,computeHref_:function(Y,G){G=G===void 0?!1:G;if(!Y||Y.commandExecutorCommand)return null;var u=V0T(Y,G);return G||u!==null?u?_.F("enable_polymer_resin")?_.cs(u).toString():u:null:(_.R0(new _.I2("computeHref was null",this.is,Y)),null)},
computeOptionalHref_:function(Y){return this.computeHref_(Y,!0)},
computeNofollow_:function(Y){return Y?R_A(Y)?"nofollow":null:null},
computeIcon_:function(Y){return Y&&Y.iconType?_.Ux(Y.iconType):""},
resolveCommand:function(Y,G,u){G=G===void 0?{}:G;return _.Yy(Y,this.hostElement,G,u===void 0?!1:u)}};var EPX,WZ;_.HF1={};EPX=null;
WZ={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_=aly(this.viewroot));_.CD(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var Y=this;this.unobserve_();if(_.F("kevlar_vimio_use_shared_monitor"))uq(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 G=[];this.visibilityOptionVisible_&&G.push(this.visibilityObserver.observe(this.hostElement,function(){return Y.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&G.push(this.visibilityObserver.observe(this.hostElement,function(){return Y.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&G.push(this.visibilityObserver.observe(this.hostElement,function(){return Y.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=G}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){PUY(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 Y=_.pm(this.parentNode,function(u){var O,Q=(O=u.polymerController)!=null?O:u;return!!Q.getVisibilityObserverForChild&&Q.getVisibilityObserverForChild()},!0);
if(Y){var G;this.localVisibilityObserver_=((G=Y.polymerController)!=null?G:Y).getVisibilityObserverForChild()}else EPX||(EPX=aly()),this.localVisibilityObserver_=EPX;return this.localVisibilityObserver_},visibilityCallback:function(Y){Y?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.F("kevlar_use_vimio_behavior")||(WZ={});WZ&&!_.F("kevlar_use_vimio_behavior")&&(delete WZ.attached,delete WZ.detached);_.HF1.YtVisibilityObserverBehavior=[WZ];var tBR={};tBR.YtVisualElementBehavior=[_.HF1.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.F("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.F("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var Y=this.getScreenLayer&&this.getScreenLayer(),G=this.getVisibilityLogger();G&&G.reportShown(this,void 0,Y)}},
onHidden:function(){if(_.F("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.F("kevlar_vimio_use_shared_monitor")){var Y=this.getScreenLayer&&this.getScreenLayer(),G=this.getVisibilityLogger();G&&G.reportHidden(this,void 0,Y)}},
getVisibilityLogger:function(){return _.F("kevlar_use_vimio_behavior")?_.O3():null},
shouldSkipLogging:function(){if(_.DE("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var Y=this.getParentRenderer&&this.getParentRenderer();if(!Y)return!1;var G,u=(G=Y.polymerController)!=null?G:Y;if(!u.data)return!1;Y=this.data.trackingParams;Y=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:Y;var O;G=(O=u.data)==null?void 0:O.trackingParams;var Q,M;G=((Q=u.data)==null?0:Q.loggingDirectives)?(M=u.data)==null?void 0:M.loggingDirectives.trackingParams:G;return Y&&G&&Y===
G}}];var zGu=new Map,aD;var Ae1=function(Y){this.layer=Y},HH=function(Y){return Y.layer!==void 0?Y.layer:Y.parent?HH(Y.parent):Y.layer=0};var CUa;_.c={};CUa=0;_.c.YtRendererBehavior=[_.m9.YtComponentBehavior,tBR.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_:_.F("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var Y,G;(G=(Y=this.monitorScrollElement)!=null?Y:this.hostElement)==null||G.removeEventListener("scroll",_.Jh(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();FYU(this.hostElement);Gk(_.O2(),this.hostElement);Dy.delete(this.hostElement)},
registerRenderer:function(Y){var G;((G=Y.polymerController)!=null?G:Y).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(Y),this.markDirty())},
unregisterRenderer_:function(Y){this.useVimio_||(this.childCache_.delete(Y),this.markDirty())},
attached:function(){var Y=this,G=this.getParentRenderer();if(G){var u,O,Q;(O=(u=(Q=G.polymerController)!=null?Q:G).registerRenderer)==null||O.call(u,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var M,t;(t=(M=this.monitorScrollElement)!=null?M:this.hostElement)==null||t.addEventListener("scroll",_.Jh(this,this.onScroll))}_.AN.addJob(function(){mV4(Y.hostElement)},8);
u=new Ae1(this.screenLayer||void 0);(G=Dy.get(G))&&G.layerNode&&(u.parent=G.layerNode);G={};fA1(this.hostElement,(G.isRenderer=!0,G.layerNode=u,G[omA]=this.data,G))},
getParentRenderer:function(){for(var Y=this.hostElement.parentNode,G,u;Y&&((G=Dy.get(Y))==null||!G.isRenderer)&&!((u=Y.polymerController)!=null?u:Y).isRenderer_;)Y=Y.parentNode||Y.host;return Y},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.F("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.hy("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.F("debug_web_ve_data")&&this.data.trackingParams){var Y="";try{Y=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(u){_.o0(u)}if(Y){var G=t74(Y,1);G!==void 0&&(this.hostElement.dataset.veIndex=String(G));Y=t74(Y,2);
Y!==void 0&&(this.hostElement.dataset.ve=String(Y))}}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,_.F("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Kd(this.data.loggingDirectives.trackingParams)),this.visualElement=_.QZ(_.M4(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var Y=this.data.targetId;_.uE(_.O2(),Y,this.hostElement)}else Gk(_.O2(),this.hostElement)},
onScroll:function(){var Y=Date.now();Y-this.lastHandledScroll_<50||(this.lastHandledScroll_=Y,this.markDirty())},
markDirty:function(){_.F("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():ybI(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var Y=this.getParentRenderer();if(Y&&(Y=Dy.get(Y))&&Y.layerNode)return HH(Y.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.c8(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var Y=0;Y<this.data.impressionEndpoints.length;Y++)this.sendImpression(this.data.impressionEndpoints[Y]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(Y){Y.clickTrackingParams&&delete Y.clickTrackingParams;var G,u;(Y==null?0:(G=Y.commandMetadata)==null?0:(u=G.webCommandMetadata)==null?0:u.sendPost)?_.c$(this.hostElement,[Y,{impression:!0}]):_.UK(this.hostElement,[Y],this.hostElement)},
logExplicitClick:function(Y){var G=_.FA(this.getScreenLayer());if(G){var u,O=(u=Y.polymerController)!=null?u:Y;Y=O.visualElement;O=O.trackingParams||O.clickTrackingParams;!Y&&O&&(Y=_.Kd(O));Y&&_.RK(G,Y)}}}];var KY_={},r8=function(){return _.Mb.apply(this,arguments)||this};
_.m(r8,_.Mb);r8.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
r8.prototype.onPdgItemBehaviorClick=r8.prototype.onPdgItemBehaviorClick;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],r8.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],r8.prototype,"data",void 0);_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],r8.prototype,"onPdgItemBehaviorClick",null);_.S([_.Hn()],r8);KY_.YtPdgLiveChatItemBehavior=[r8.prototype,_.c.YtRendererBehavior];var aOV;var T6V;_.xY={};_.xY.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var fI=function(){var Y=JG.apply(this,arguments)||this;Y.switchTemplateAtRegistration=!1;return Y};
_.m(fI,JG);fI.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||iFT(this),_.g$4(this,"doRender"),this.doRender())};
fI.prototype.debounceRender=function(){this.templatingFn&&_.y4(this,"doRender",this.doRender)};
fI.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.o0(Error("bh"))};
fI.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.S([iug()],fI);var LYk=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,CI={},DVj=(CI[1]={filterString:null,isUnwrappable:null,unwrap:null},CI[2]={filterString:function(Y,G,u){return cx(u)},
isUnwrappable:function(Y){return Y instanceof Go},
unwrap:function(Y){return QK(Y)}},CI[3]={filterString:function(Y,G,u){return LYk.test(u)?u:sT.toString()},
isUnwrappable:function(Y){return ls(Y)},
unwrap:function(Y){return _.Bs(Y)}},CI[4]={filterString:function(){return sT.toString()},
isUnwrappable:function(Y){return Y instanceof hz},
unwrap:function(Y){return _.bs(Y).toString()}},CI[5]={filterString:function(Y,G,u){return u},
isUnwrappable:function(Y){return typeof Y==="string"},
unwrap:function(Y){return Y.toString()}},CI[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(Y){return Y instanceof _.To},
unwrap:function(Y){return gt(Y)}},CI[8]={filterString:function(Y,G,u){u=String(u).toLowerCase();
return YtA(Y,G,u)?u:"zClosurez"},
isUnwrappable:null,unwrap:null},CI[10]={filterString:null,isUnwrappable:null,unwrap:null},CI);$7[Nc["default"]]=dV4;var bFj=[];(function(){var Y=cw;cw=function(G){Y==null||Y(G);gH(function(){for(var u=0;u<G.length;u++)SCT(G[u])})}})();var gP_=function(){var Y=_.Mb.apply(this,arguments)||this;Y.hasUnmounted=!1;return Y};
_.m(gP_,_.Mb);_.H=gP_.prototype;_.H.beforeRegister=function(){var Y=this.doIdomRender;this.templatingFn?_.o0(Error("ah")):(this.templatingFn=Y,this.switchTemplateAtRegistration=!0,ZF1(this))};
_.H.attached=function(){};
_.H.detached=function(){SCT(this.hostElement)};
_.H.renderIdom=function(){throw Error("dh");};
_.H.doIdomRender=function(){var Y=this;YnA(this.hostElement,function(){Y.renderIdom()})};
_.S([_.Hn()],gP_);var XPU=[fI.prototype,gP_.prototype];var PUU,IO4=function(){return PUU!==void 0?PUU:PUU=document.createElement("template")};
document.head.appendChild(IO4().content);var kzU;var nPR,FYX=function(){return nPR!==void 0?nPR:nPR=document.createElement("template")};
document.head.appendChild(FYX().content);var pPI;var zG1=document.head,mVE=zG1.appendChild,WYe;if(pPI===void 0){var rbM=document.createElement("template");_.r(rbM,"\x3c!--css-build:shady--\x3e");rbM.content.insertBefore(FYX().content.cloneNode(!0),rbM.content.firstChild);pPI=rbM}WYe=pPI;mVE.call(zG1,WYe.content);var xVU,fOk=function(){return xVU!==void 0?xVU:xVU=document.createElement("template")};
document.head.appendChild(fOk().content);var CUk;var yb4=document.head,eG_=yb4.appendChild,AbE;if(CUk===void 0){var oPI=document.createElement("template");_.r(oPI,"\x3c!--css-build:shady--\x3e");oPI.content.insertBefore(fOk().content.cloneNode(!0),oPI.content.firstChild);CUk=oPI}AbE=CUk;eG_.call(yb4,AbE.content);var iFR=document.head,RGR=iFR.appendChild,wPV;if(kzU===void 0){var ZFT=document.createElement("template");_.r(ZFT,"\x3c!--css-build:shady--\x3e");ZFT.content.insertBefore(IO4().content.cloneNode(!0),ZFT.content.firstChild);kzU=ZFT}wPV=kzU;RGR.call(iFR,wPV.content);var DVM,hG4=function(){return DVM!==void 0?DVM:DVM=document.createElement("template")};
document.head.appendChild(hG4().content);var dVE;_.Ee=new _.Sb("DARK_THEME_TOKEN");var bFI=new _.bu("accessibilityProperties");var SCR=new _.bu("layoutProperties");var N64=new _.bu("imageType");var jj_={};if("ytAttributedStringLinkHoverColor"in jj_)throw Error("gh`ytAttributedStringLinkHoverColor");(function(Y,G){jj_[Y]="value"in G&&"unit"in G?lOA(Y,G):function(u){try{return G(u)}catch(O){throw Error("eh`"+Y+"`"+O.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var VBI=function(Y){var G=this;this.holdTime=Y===void 0?500:Y;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(u){var O=new CustomEvent("LONG_PRESS"),Q;(Q=u.changedTouches[0].target)==null||Q.dispatchEvent(O)};
this.ontouchstart=function(u){G.longPressTimeout=_.EA(_.AN,function(){G.onlongpress(u);G.longPressOccurred=!0},G.holdTime)};
this.ontouchmove=function(){_.AN.cancelJob(G.longPressTimeout);G.longPressTimeout=NaN;G.longPressOccurred=!1;G.moveOccurred=!0};
this.ontouchend=function(u){if(G.longPressTimeout&&!G.longPressOccurred&&!G.moveOccurred){var O;(O=u.changedTouches[0].target)==null||O.dispatchEvent(new Event("click"))}_.AN.cancelJob(G.longPressTimeout);G.longPressTimeout=NaN;G.longPressOccurred=!1;G.moveOccurred=!1}};var KCt=function(Y,G){VBI.call(this,G);var u=this;this.callback=Y;this.onlongpress=function(O){var Q;(Q=u.callback)==null||Q.call(u,O)}};
_.m(KCt,VBI);var ary=function(Y,G){var u=Object.assign({},G);Y=_.E(new Map([["ontouchstart",Y.ontouchstart],["ontouchend",Y.ontouchend],["ontouchmove",Y.ontouchmove]]));for(var O=Y.next(),Q={};!O.done;Q={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},O=Y.next()){var M=_.E(O.value);O=M.next().value;M=M.next().value;Q.eventName$jscomp$103=O;Q.eventHandler$jscomp$2=M;G[Q.eventName$jscomp$103]=function(t){return function(K){var L;(L=u[t.eventName$jscomp$103])==null||L.call(u,K);(0,t.eventHandler$jscomp$2)(K)}}(Q)}};_.rH=new _.Sb("COMMAND_HANDLER_TOKEN");var $VA=new _.bu("parallelCommand");var cbu=new _.bu("performOnceCommand");var sj4=new _.bu("serialCommand");var UVU=void 0;var lOl=function(){this.data=[];this.consumer=null};
lOl.prototype.push=function(Y){this.consumer?this.consumer(Y):this.data.push(Y)};var Zj={};_.IE(Zj,void 0,"sgPmTd");_.IE(null,void 0,"jypsq");_.IE(null,void 0,"mWiOof");var a2a=new lOl;var MsU=[RoE,wIV,ZOV,ho2,DIV,iOV,dI_,bOX];var B6e=new _.bu("bracketTextDecorator");var Cd=new _.bu("highlightTextDecorator");_.od=new _.Sb("APP_DIRECTION_TOKEN");var FCj={calledOnce:!1,state:"visible"},ne4={calledOnce:!1,state:"hidden"};var $Vl=new _.Sb("ICON_WIZ_COMPONENT_TOKEN");_.GS=_.D(function(Y){var G=Y.icon;var u=Y.active;var O=Y.className;var Q=Y.style;var M=Y.dataSelected;var t=Y.dataDisabled;var K=Y.role;var L=Y.animateIcon;var g=Y.themeOverride;var P=Y.ariaHidden;var I=Y.ariaExpanded;var k=Y.ariaLabel;var n=Y.tabindex;var p=Y.id;var W=Y.size;var C=Y.iconFilter;var e=Y.gradientColor;var w=Y.onKeydown;var B=Y.title;return _.T(_.X,{cond:G,then:function(){var N=_.sH().resolve($Vl);return _.T(N,{icon:G,dataSelected:M,dataDisabled:t,animateIcon:L,themeOverride:g,ariaExpanded:I,
tabindex:n,id:p,active:u,size:W,role:K,className:O,ariaHidden:P,ariaLabel:k,style:function(){return Q!=null&&Q()||W==null||!W()?Q==null?void 0:Q():"width: "+(W==null?void 0:W())+"px;height: "+((W==null?void 0:W())+"px;")},
title:B,iconFilter:C,gradientColor:e,onKeydown:w})}})},"p");
_.GS.idomCompat={callbacks:{onKeydown:!0}};var eJt=new _.bu("borderImageProcessor");var i_g=window.devicePixelRatio||1;var Dku=new Map([["yt_outline_bag_black_24","bag"]]);var y_=function(Y){var G=this;this.margin=.1;this.whenInViewportWithMargin=Y;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){G.requestScan()});
window.addEventListener("touchend",function(){G.requestScan()});
window.addEventListener("updateui",function(){G.requestScan()});
var u=new _.JR((0,_.tP)(this.requestScan,this),100);window.addEventListener("scroll",function(){u.fire()},!0);
window.addEventListener("resize",(0,_.tP)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){G.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.tP)(this.requestScan,this))};
y_.prototype.observe=function(Y){this.observationTargets.includes(Y)||this.observationTargets.push(Y)};
y_.prototype.unobserve=function(Y){this.observationTargets=this.observationTargets.filter(function(G){return G!==Y})};
y_.prototype.requestScan=function(){var Y=this;this.scanRequested||(gH(function(){qCR(Y)}),this.scanRequested=!0)};
var qCR=function(Y){var G=(1+Y.margin)*(document.documentElement.clientHeight||window.innerHeight);Y.observationTargets=Y.observationTargets.filter(function(u){var O=u.getBoundingClientRect();(O=G>O.top&&!!O.height)&&Y.whenInViewportWithMargin(u);return!O&&u.parentNode});
Y.scanRequested=!1};
y_.prototype.disconnect=function(){this.observationTargets=[]};var sjE,UVX;sjE=_.E(_.IE(NnY(),void 0,"O3X2wd"));_.cb1=sjE.next().value;UVX=sjE.next().value;window.addEventListener("resize",function(){UVX(NnY())});var vPI={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},Jb_=void 0,Y7M=window.innerWidth,GZ_=window.innerHeight;window.addEventListener("resize",function(){Jb_=void 0});var u$R;if("IntersectionObserver"in window)u$R=lra();else{if(Jb_===void 0){var O_R;O_R="matchMedia"in window?window.matchMedia(vPI.landscape+","+vPI.portrait).matches:void 0;Jb_=O_R!==void 0?O_R:Y7M>=930&&GZ_>=550||Y7M>=550&&GZ_>=930}u$R=Jb_?{observe:function(Y){gH(function(){var G;(G=Y.onViewportEntered)==null||G.call(Y)})},
unobserve:function(){}}:new y_(function(Y){gH(function(){var G;
(G=Y.onViewportEntered)==null||G.call(Y)})})}var jvA=u$R;var QvU=_.D(function(Y){var G=!1,u=_.CH("img",function(O){_.w_(function(){G=!0;O.onload=null})});
_.RE(function(){var O,Q=(O=Y.data)==null?void 0:O.call(Y),M,t=(M=Y.getSrc)==null?void 0:M.call(Y).cb,K;O=(K=Y.config)==null?void 0:K.call(Y);if(K=u.value)if(M=function(g,P){if(!G)return t?t(g,P):g},q7g(K,O),_.F("web_image_dont_reload_same_src")&&$kg(K,Q,M))_.F("web_image_dont_reload_same_src_simulate_load")&&K.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var L;Bna(K,Q||null,M,O,(L=Y.lazy)==null?void 0:L.call(Y))}},"zS0jKb");
return _.T("img",{el:u})},"r");
QvU.idomCompat=!0;_.RD=_.D(function(Y){var G=function(){var u,O=Y.data(),Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N,h,q,U,Mj,Xt,ka,aU,Tg,iy,hY,dA,nT;var u_={contentMode:(Q=Y.contentMode)==null?void 0:Q.call(Y),loadedClass:(M=Y.loadedClass)==null?void 0:M.call(Y),isPreloaded:(t=Y.isPreloaded)==null?void 0:t.call(Y),notifyOnLoaded:(K=Y.notifyOnLoaded)==null?void 0:K.call(Y),notifyOnUnloaded:(L=Y.notifyOnUnloaded)==null?void 0:L.call(Y),preferredThumbnail:(g=Y.preferredThumbnail)==null?void 0:g.call(Y),preserveHeight:(P=Y.preserveHeight)==
null?void 0:P.call(Y),preserveWidth:(I=Y.preserveWidth)==null?void 0:I.call(Y),objectPosition:(k=Y.objectPosition)==null?void 0:k.call(Y),targetWidth:(n=Y.targetWidth)==null?void 0:n.call(Y),targetHeight:(p=Y.targetHeight)==null?void 0:p.call(Y),shouldShowPlaceholder:(W=Y.shouldShowPlaceholder)==null?void 0:W.call(Y),useWidth:(C=Y.useWidth)==null?void 0:C.call(Y),isToggled:(e=Y.isToggled)==null?void 0:e.call(Y),alt:(w=Y.alt)==null?void 0:w.call(Y),className:(B=Y.className)==null?void 0:B.call(Y),
onerror:Y.onerror,onload:Y.onload,style$:((N=Y.style$)==null?void 0:N.call(Y))||((h=Y.style)==null?void 0:h.call(Y)),color:(q=Y.color)==null?void 0:q.call(Y),width:(U=Y.width)==null?void 0:U.call(Y),height:(Mj=Y.height)==null?void 0:Mj.call(Y),"aria-hidden$":(dA=(Xt=Y["aria-hidden$"])==null?void 0:Xt.call(Y))!=null?dA:(ka=Y.ariaHidden)==null?void 0:ka.call(Y),draggable:(aU=Y.draggable)==null?void 0:aU.call(Y),"data-disabled$":(nT=(Tg=Y["data-disabled$"])==null?void 0:Tg.call(Y))!=null?nT:(iy=Y.dataDisabled)==
null?void 0:iy.call(Y),size:(hY=Y.size)==null?void 0:hY.call(Y)};return cAT(O,u_,(u=Y.hideOn404)==null?void 0:u.call(Y))};
return _.T(_.x4,null,_.T(_.m1,{when:function(){var u;return((u=G())==null?void 0:u.type)==="image"}},function(){return _.T(QvU,{data:function(){return G().image},
getSrc:{cb:function(u,O){var Q=G().image.sources,M=G().config.isPreloaded,t=G().config.useWidth,K=G().config.targetWidth,L=G().config.targetHeight,g=G().config.preferredThumbnail;return _.RJU(O,Q,M,t,K,L,g)||""}},
config:function(){var u=G().config,O;for(O in u)u[O]===void 0&&delete u[O];return u},
lazy:Y.renderLazy})}),_.T(_.m1,{when:function(){var u;
return((u=G())==null?void 0:u.type)==="icon"}},function(){return _.T(_.GS,{icon:function(){return G().iconName},
role:function(){return G().config.role},
className:function(){return G().config.className},
style:function(){return G().config.style$+";width: "+(G().config.width+"px;height: ")+(G().config.height+"px;color: ")+(G().config.color+";")},
ariaLabel:function(){return G().config["aria-label$"]},
ariaHidden:function(){return G().config["aria-hidden$"]},
dataDisabled:function(){return G().config["data-disabled$"]},
active:function(){return G().config.isToggled},
size:function(){return G().config.size}})}))},"s");
_.RD.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var MsX=_.D(function(Y){var G=function(Q){var M,t,K=_.iq(function(n){M=Q();t=D1(function(){for(var p=_.E(I()),W=p.next();!W.done;W=p.next()){W=Ygj(W.value);W=typeof W==="string"?document.createTextNode(W):W;if(!(W instanceof Node)){p=new _.I2("Part is not a node",W,typeof W);_.o0(p);break}n.appendChild(W)}})}),L=_.dB(Y.config),g=function(){var n,p=Q();
return!((n=L())==null||!n.ariaLabel)||!(p.commandRuns&&p.commandRuns.length!==0||p.paragraphStyleRuns&&p.paragraphStyleRuns.length!==0)},P=vej(L,{isEqual:uDy}),I=function(){var n=Q(),p=P(),W=[],C=n.content.length,e,w=(e=_.sH().resolve(_.q3(_.Ee)))==null?void 0:e();
if(n.paragraphStyleRuns)for(var B=_.E(n.paragraphStyleRuns),N=B.next();!N.done;N=B.next()){var h=W.push,q=h.apply;var U=void 0,Mj=N.value;if((U=Mj.listGroup)!=null&&U.listItems){var Xt=[];b:switch(Mj.listGroup.listType){case "LIST_TYPE_BULLET":var ka="ul";break b;default:ka="span"}Xt.push(xy({run:Mj,textLength:C,tag:ka,config:{className:"yt-core-attributed-string__list-group"},startIndex:Mj.startIndex,length:Mj.length}));for(var aU=_.E(Mj.listGroup.listItems),Tg=aU.next();!Tg.done;Tg=aU.next()){var iy=
Tg.value;b:switch(Mj.listGroup.listType){case "LIST_TYPE_BULLET":var hY="li";break b;default:hY="span"}Xt.push(xy({run:Mj,textLength:C,tag:hY,startIndex:iy.startIndex,length:iy.length}))}var dA=Xt}else dA=[];q.call(h,W,_.c8(dA))}if(n.styleRuns&&(p==null||!p.noStyleRuns))for(var nT=_.E(n.styleRuns),u_=nT.next();!u_.done;u_=nT.next()){var jT=u_.value,P1=jT,kk=w,Fe=p,Xg=get({extension:_.z(P1.styleRunExtensions,WsE),isDarkTheme:kk===void 0?!1:kk,runColor:P1.fontColor}),Hb=void 0,n1=P1,Yk=[];Xg&&Yk.push("yt-core-attributed-string--link-inherit-color");
n1.italic&&Yk.push("yt-core-attributed-string--italicized");n1.underline&&n1.strikethrough?Yk.push("yt-core-attributed-string--underline-strikethrough",PHj(n1.underline)):n1.underline?Yk.push("yt-core-attributed-string--underlined",PHj(n1.underline)):n1.strikethrough&&Yk.push("yt-core-attributed-string--strikethrough",PHj(n1.strikethrough));if(n1.baselineOffset){a:switch(n1.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Hb="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":Hb=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:Hb="yt-core-attributed-string--baseline-offset-unknown"}Yk.push(Hb)}var qj=Yk.join(" ");var Gx=P1,fT=Xg,b_={};if(Gx.weight||Gx.weightLabel)b_.fontWeight=XlI(Gx,Fe==null?void 0:Fe.isHeadline).toString();fT&&(b_.color=fT);W.push(xy({run:jT,textLength:C,tag:"span",config:{className:qj,style:b_},startIndex:jT.startIndex,length:jT.length}))}if(n.decorationRuns)for(var MK=_.E(n.decorationRuns),v1=MK.next();!v1.done;v1=MK.next()){var Ew=
v1.value,l_={};if(Ew.textDecorator){var $V=Ew.textDecorator,T2=w===void 0?!1:w,Pb=[],IX=_.z($V,Cd),$k=_.z($V,B6e);if(IX){var NM=Pb,fx=NM.concat,H8=[],jR=get({extension:_.z(IX.highlightTextDecoratorExtensions,mh4),isDarkTheme:T2,runColor:IX.backgroundColor});jR&&H8.push("background-color: "+jR+";");IX.backgroundCornerRadius!==void 0&&H8.push("border-radius: "+IX.backgroundCornerRadius+"px;");IX.leftPadding!==void 0&&H8.push("padding-left: "+IX.leftPadding+"px;");IX.rightPadding!==void 0&&H8.push("padding-right: "+
IX.rightPadding+"px;");IX.topPadding!==void 0&&H8.push("padding-top: "+IX.topPadding+"px;");IX.bottomPadding!==void 0&&H8.push("padding-bottom: "+IX.bottomPadding+"px;");Pb=fx.call(NM,H8)}else if($k){var Io=Pb,vb=Io.concat,K5=T2?"#2ba640":"#107516",s_=$k.color?LCI($k.color):K5;Pb=vb.call(Io,["padding: 2px;","border-top: solid "+s_+" 2px;","border-bottom: solid "+s_+" 2px;","background: linear-gradient(135deg, "+s_+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+s_+" 3px, rgba(0, 0, 0, 0) 3px);"])}var jd=
Pb.join(" ");l_.style$=jd;var eE=Ew.textDecorator,PF=[],Zx=_.z(eE,B6e);_.z(eE,Cd)?PF.push("yt-core-attributed-string--highlight-text-decorator"):Zx&&PF.push("yt-core-attributed-string--bracket-text-decorator");var Ad=PF.join(" ");l_.className=Ad;l_.dir="auto"}var yj=_.z(Ew.textDecorator,Cd),by=_.z(Ew.textDecorator,B6e),sI=_.z(Ew.textDecorator,Cd),rR=_.z(Ew.textDecorator,B6e);W.push(xy({run:Ew,textLength:C,tag:"span",config:l_,startIndex:(yj==null?void 0:yj.startIndex)||(by==null?void 0:by.startIndex)||
0,length:(sI==null?void 0:sI.length)||(rR==null?void 0:rR.length)||0}))}if(n.commandRuns&&(p==null||!p.noEndpoints))for(var rb=_.E(n.commandRuns),C5=rb.next();!C5.done;C5=rb.next()){var y9=C5.value,CT=Tnj(y9,p);W.push(xy({run:y9,textLength:C,tag:"a",config:CT,startIndex:y9.startIndex,length:y9.length}))}if(n.attachmentRuns)for(var xk=_.E(n.attachmentRuns),jS=xk.next();!jS.done;jS=xk.next()){var Mp=jS.value,pT=void 0,wg=void 0,OW={className:"yt-core-attributed-string--inline-block-mod"};if((wg=Mp.element)==
null?0:wg.properties){var Np=(pT=Mp.element)==null?void 0:pT.properties,Iy=[],GR=_.z(Np,SCR);if(GR==null?0:GR.margin){var u9=GR.margin,cF=_.DE("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",mU=cF?u9.end||u9.right:u9.start||u9.left,g8=cF?u9.start||u9.left:u9.end||u9.right;mU&&Iy.push("margin-left: "+ky(mU)+";");g8&&Iy.push("margin-right: "+ky(g8)+";");u9.top&&Iy.push("margin-top: "+ky(u9.top)+";");u9.bottom&&Iy.push("margin-bottom: "+ky(u9.bottom)+";")}var Yq=Iy.length!==0?Iy.join(" "):
void 0;OW.style$=Yq}var xp=OW,eN=void 0,zo={alt:"",preserveHeight:!0,preserveWidth:!0},tE=["yt-core-attributed-string__image-element"];if(Mp.alignment){a:switch(Mp.alignment){case "ALIGNMENT_BASELINE":var Aj="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":Aj="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:Aj="yt-core-attributed-string__image-element--image-alignment-bottom"}tE.push(Aj)}if((eN=
Mp.element)==null?0:eN.properties){var o4=[],Oj=_.z(Mp.element.properties,SCR);(Oj==null?0:Oj.height)&&o4.push("height: "+ky(Oj.height)+";");(Oj==null?0:Oj.width)&&o4.push("width: "+ky(Oj.width)+";");var OD=o4.length!==0?o4.join(" "):void 0;zo.style$=OD;var KV=void 0;var f3=((KV=_.z(Mp.element.properties,bFI))==null?void 0:KV.label)||"";zo.alt=f3}zo.className=tE.join(" ");var J1=zo,Qd=void 0;var It=void 0,G2=void 0;var kV=((G2=Mp.element)==null?0:G2.type)?(It=_.z(Mp.element.type,N64))==null?void 0:
It.image:void 0;W.push(xy({run:Mp,textLength:C,tag:"img",image:kV,imageConfig:J1,imageWrapperConfig:xp,startIndex:Mp.startIndex,length:(Qd=Mp.length)!=null?Qd:0}))}if(p==null?0:p.headerRuns)for(var oo=_.E(p.headerRuns),sw=oo.next();!sw.done;sw=oo.next()){var Cb=sw.value;if(Cb.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(Cb.headerMapping)){a:{switch(Cb.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":var NI=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":NI="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":NI="yt-core-attributed-string--heading-3";break a}NI=void 0}W.push(xy({run:Cb,textLength:C,tag:"span",config:NI?{className:NI}:void 0,startIndex:Cb.startIndex,length:Cb.length}))}}var BM=P();if(BM==null?0:BM.userInput)for(var $N=_.E(W),r4=$N.next();!r4.done;r4=$N.next()){var f0=r4.value;if(f0.tag!=="a"&&
f0.tag!=="li"){var bJj=void 0;(bJj=f0).config||(bJj.config={});f0.config.dir=f0.tag==="ul"?_.sH().resolve(_.od):"auto"}}if(Q().content){var SVt=Q().content;rAg(W);for(var cB={data:null,start:0,end:SVt.length,parts:[]},NNI=_.E(W),Uf=NNI.next();!Uf.done;Uf=NNI.next()){var vB=Uf.value;mkt(cB,vB.startIndex,vB.endIndex,vB)}WCt(SVt,cB);var j0y=cB.parts}else j0y=[];return j0y},k=!0;
_.RE(function(){Q();P();if(k&&(k=!1,JAI(Q(),M)))return;var n=I();Promise.resolve().then(function(){var p=K.value;if(p){p.innerText="";var W;(W=t)==null||W();t=_.Ay(p,function(){return _.T(GqA,{parts:n})},"t")}})},"Dfzccf");
return _.T("span",{el:K,class:function(){var n;if(n=Q()){n=Q();var p=L(),W=[];W.push("yt-core-attributed-string");(p==null?0:p.className)&&W.push(p==null?void 0:p.className);(p==null?0:p.ellipsisTruncate)?W.push("yt-core-attributed-string--ellipsis-truncate"):(p==null?0:p.noWrap)?W.push("yt-core-attributed-string--white-space-no-wrap"):(p==null?0:p.noPreWrap)||W.push("yt-core-attributed-string--white-space-pre-wrap");(p==null?0:p.linkInheritColor)&&W.push("yt-core-attributed-string--link-inherit-color");
n.alignment&&W.push(Irg(n.alignment));n.lineBreakMode&&W.push("yt-core-attributed-string--word-wrapping");n=W.join(" ")}return n},
dir:function(){var n;return((n=L())==null?0:n.userInput)?"auto":void 0},
"aria-label":function(){var n;return g()?(n=L())==null?void 0:n.ariaLabel:void 0},
role:function(){return g()?"text":void 0}})},u=vej(function(){var Q,M=(Q=Y.text)==null?void 0:Q.call(Y);
if(M)return Q=_.ek(M)?M:_.P3(M),(Q==null?0:Q.content)?Q:void 0},{isEqual:JAI}),O;
return((O=Y.config)==null?0:O.contentAsserted)?G(u):_.T(_.X,{cond:u,then:G})},"v");
MsX.idomCompat=!0;_.eO=_.D(function(Y){var G=_.dB(Y.text),u=O6y(Y);Y.contentAsserted!==void 0&&(u.contentAsserted=!0);return _.T(MsX,{text:G,config:u})},"w");
_.eO.idomCompat=!0;var QpT=function(Y,G,u){G=G===void 0?"unknown":G;u=u===void 0?{}:u;_.I2.call(this,Y+" ("+G+")",Object.assign({},{name:"YtWcwError",tagName:G},u));Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(QpT,_.I2);_.D9=new WeakMap;_.Z9=!1;var K6t,a$j,tnA;_.AC=Symbol("ih");_.wH=Symbol("jh");K6t=Symbol("kh");a$j=new Set(Object.getOwnPropertyNames(Element.prototype));tnA=Symbol("lh");var H_R=_.D(function(Y){return _.T("yt-attributed-string",{"aria-label":Y.ariaLabel,hidden:Y.hidden,id:Y.id,class:Y.className,"force-default-style":Y.forceDefaultStyle},_.T(_.eO,{text:Y.data,ariaLabel:Y.ariaLabel,ellipsisTruncate:Y.ellipsisTruncate,isOverlay:Y.isOverlay,linkInheritColor:Y.linkInheritColor,noPreWrap:Y.noPreWrap,noWrap:Y.noWrap,userInput:Y.userInput,noEndpoints:Y.noEndpoints,headerRuns:Y.headerRuns,isHeadline:Y.isHeadline}))},"x");
_.F("web_wiz_attributed_string")&&_.hR(H_R,"yt-attributed-string",{props:{ariaHidden:_.AC,ariaLabel:_.AC,className:_.AC,ellipsisTruncate:_.AC,isOverlay:_.AC,linkInheritColor:_.AC,noEndpoints:_.AC,noStyleRuns:_.AC,noLinkColor:_.AC,noPreWrap:_.AC,noWrap:_.AC,skipOnClick:_.AC,userInput:_.AC,headerRuns:_.AC,isHeadline:_.AC,id:_.AC,data:_.AC,hidden:_.AC,forceDefaultStyle:_.AC,text:_.wH,disableUpgrade:_.wH,disable:_.wH,slot:_.wH}});var o8=function(){return _.Z.apply(this,arguments)||this};
_.m(o8,_.Z);o8.prototype.renderIdom=function(){if(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};var Y=this.data,G=this.config;Y&&(Y=_.ek(Y)?Y:_.P3(Y),Y!=null&&Y.content&&(G=G||{},G.contentAsserted=!0,S7j(MsX)({text:Y,config:G})))}};
_.S([_.x(XPU),_.V("design:type",Object)],o8.prototype,"ytIdomTemplatingBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],o8.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],o8.prototype,"ariaLabel",void 0);_.S([_.R(),_.V("design:type",Boolean)],o8.prototype,"disable",void 0);_.S([_.R(),_.V("design:type",Boolean)],o8.prototype,"ellipsisTruncate",void 0);_.S([_.R(),_.V("design:type",Boolean)],o8.prototype,"isOverlay",void 0);
_.S([_.R(),_.V("design:type",Boolean)],o8.prototype,"linkInheritColor",void 0);_.S([_.R(),_.V("design:type",Boolean)],o8.prototype,"noPreWrap",void 0);_.S([_.R(),_.V("design:type",Boolean)],o8.prototype,"noWrap",void 0);_.S([_.R(),_.V("design:type",Boolean)],o8.prototype,"userInput",void 0);_.S([_.R(),_.V("design:type",Boolean)],o8.prototype,"noEndpoints",void 0);_.S([_.R(),_.V("design:type",Array)],o8.prototype,"headerRuns",void 0);
_.S([_.Ff({is:"yt-attributed-string",disableElementRegistration:!0})],o8);
_.F("web_wiz_attributed_string")||_.d(o8,"yt-attributed-string",function(){if(dVE===void 0){var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
Y.content.insertBefore(hG4().content.cloneNode(!0),Y.content.firstChild);dVE=Y}Y=dVE;return Y},{mode:2});var EeU,tsl,kqA;EeU=function(){this.firstThumbnailLoaded=!1};
_.KCV=function(){tsl||(tsl=new EeU);return tsl};
kqA=function(Y){var G=_.KCV();G.firstThumbnailLoaded||(G.firstThumbnailLoaded=!0,_.pQ("ftl",Y))};
EeU.prototype.reset=function(){this.firstThumbnailLoaded=!1};var L6A=0,I$I=new WeakMap,Xgt=0,Sk=new Set;var ar_,TnM=function(){return ar_!==void 0?ar_:ar_=document.createElement("template")};
document.head.appendChild(TnM().content);var LC4;var W61,xnj,iE;_.B3=_.OI.caches;iE=function(){};
iE.prototype.open=function(Y){return _.B3.open(gee(Y))};
iE.prototype.has=function(Y){return _.B3.has(gee(Y))};
iE.prototype.delete=function(Y){return _.B3.delete(gee(Y))};
iE.prototype.match=function(Y,G){var u=this,O,Q,M,t,K,L;return _.a(function(g){switch(g.nextAddress){case 1:return g.yield(u.keys(),2);case 2:O=g.yieldResult,Q=_.E(O),M=Q.next();case 3:if(M.done){g.jumpTo(5);break}t=M.value;return g.yield(u.open(t),6);case 6:return K=g.yieldResult,g.yield(K.match(Y,G),7);case 7:if(L=g.yieldResult)return g.return(L);M=Q.next();g.jumpTo(3);break;case 5:return g.return()}})};
var f$A=function(){};
_.m(f$A,iE);var gee=function(Y){if(Y.includes(":"))throw Error("oh`"+Y);return Y+":"+_.Xw("CacheStorage get")};
f$A.prototype.keys=function(){var Y,G,u,O,Q,M,t,K,L;return _.a(function(g){if(g.nextAddress==1)return Y=[],G=_.Xw("CacheStorage keys"),g.yield(_.B3.keys(),2);u=g.yieldResult;O=_.E(u);for(Q=O.next();!Q.done;Q=O.next())M=Q.value,t=_.mnt(M),K=t.originalName,L=t.datasyncId,L===G&&Y.push(K);return g.return(Y)})};var Xl4=_.D(function(Y){function G(N){var h=N.target;_.F("web_use_cache_for_image_fallback")?h&&$y(h.src).then(function(q){if(C=_.UT(q).toString())h.src=C}).catch(function(){_.F("kevlar_woffle_log_thumbnail_failure_ve")&&zpY();
_.F("kevlar_woffle_fallback_image")&&(h.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")}):e()}
var u=_.bM(Y,{alt:"",ftlEligible:void 0,height:void 0,notifyOnLoaded:!1,notifyOnUnloaded:!1,objectFit:void 0,objectPosition:void 0,preferredThumbnail:void 0,preserveHeight:!1,preserveWidth:!1,shouldRenderLazy:!_.hy("DISABLE_YT_IMG_DELAY_LOADING",!1),width:void 0}),O=u.data,Q=u.alt,M=u.ariaHidden,t=u.ftlEligible,K=u.height,L=u.notifyOnLoaded,g=u.notifyOnUnloaded,P=u.objectFit,I=u.objectPosition,k=u.preferredThumbnail,n=u.preserveHeight,p=u.preserveWidth,W=u.shouldRenderLazy;u=u.width;var C=null;_.o1(function(){});
_.w_(function(){e()});
var e=function(){C&&(URL.revokeObjectURL(C),C=null)},w=_.iq(),B=function(N){var h=N.target;
(h==null?0:h.src)&&$y(h.src).then(function(q){if(C=_.UT(q).toString())h.src=C}).catch(function(){})};
return _.T("yt-image",{class:Y.className,"aria-hidden":M,"prop:ftlEligible":t,"prop:loadTime":Infinity,el:w},_.T(_.RD,{data:O,renderLazy:W,alt:Q,contentMode:function(){return pgU(P())},
notifyOnLoaded:L,notifyOnUnloaded:g,preferredThumbnail:k,preserveHeight:n,preserveWidth:p,objectPosition:I,onload:function(N){B(N);e();w.value&&n0y(w.value)},
onerror:function(N){G(N)},
targetHeight:K,targetWidth:u,shouldShowPlaceholder:_.F("kevlar_thumbnail_bg"),useWidth:!0}))},"z"),PHI=_.F("web_c3po_yt_image");PHI&&_.hR(Xl4,"yt-image",{props:{data:_.AC,alt:_.AC,ftlEligible:_.AC,height:_.AC,notifyOnLoaded:_.AC,notifyOnUnloaded:_.AC,objectFit:_.AC,objectPosition:_.AC,preferredThumbnail:_.AC,preserveHeight:_.AC,preserveWidth:_.AC,shouldRenderLazy:_.AC,width:_.AC,ariaHidden:_.AC,className:_.AC}});var R8=function(){var Y=_.Z.apply(this,arguments)||this;Y.objectURL=null;Y.loadTime=Infinity;return Y};
_.m(R8,_.Z);_.H=R8.prototype;
_.H.renderIdom=function(){F6t(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();if(this.config){var Y=this.config,G=this.shouldRenderLazy;S7j(_.RD)({contentMode:Y.contentMode,loadedClass:Y.loadedClass,isPreloaded:Y.isPreloaded,notifyOnLoaded:Y.notifyOnLoaded,notifyOnUnloaded:Y.notifyOnUnloaded,preferredThumbnail:Y.preferredThumbnail,preserveHeight:Y.preserveHeight,preserveWidth:Y.preserveWidth,objectPosition:Y.objectPosition,targetWidth:Y.targetWidth,
targetHeight:Y.targetHeight,shouldShowPlaceholder:Y.shouldShowPlaceholder,useWidth:Y.useWidth,isToggled:Y.isToggled,alt:Y.alt,className:Y.className,onerror:Y.onerror,onload:Y.onload,style$:Y.style$,color:Y.color,width:Y.width,height:Y.height,"aria-hidden$":Y["aria-hidden$"],draggable:Y.draggable,"data-disabled$":Y["data-disabled$"],data:this.data,callback:void 0,renderLazy:G===void 0?!0:G,hideOn404:!1})}}};
_.H.loadImageFromCacheIfExists=function(Y){var G=this,u=Y.target;(u==null?0:u.src)&&$y(u.src).then(function(O){G.objectURL=_.UT(O).toString();if(O=G.objectURL)u.src=O}).catch(function(){})};
_.H.onError=function(Y){var G=this;if(_.F("web_use_cache_for_image_fallback")){var u=Y.target;u&&$y(u.src).then(function(O){G.objectURL=_.UT(O).toString();if(O=G.objectURL)u.src=O}).catch(function(){_.F("kevlar_woffle_log_thumbnail_failure_ve")&&zpY();
_.F("kevlar_woffle_fallback_image")&&(u.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.H.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.H.setConfig=function(){var Y=this;this.config={alt:this.alt||"",contentMode:pgU(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(G){Y.loadImageFromCacheIfExists(G);Y.revokeObjectURL();n0y(Y.hostElement)},
onerror:function(G){Y.onError(G)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.F("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],R8.prototype,"ariaHidden",void 0);_.S([_.x(XPU),_.V("design:type",Object)],R8.prototype,"ytIdomTemplatingBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],R8.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],R8.prototype,"alt",void 0);_.S([_.R(),_.V("design:type",Boolean)],R8.prototype,"ftlEligible",void 0);_.S([_.R(),_.V("design:type",Number)],R8.prototype,"height",void 0);
_.S([_.R(),_.V("design:type",Boolean)],R8.prototype,"notifyOnLoaded",void 0);_.S([_.R(),_.V("design:type",Boolean)],R8.prototype,"notifyOnUnloaded",void 0);_.S([_.R(),_.V("design:type",String)],R8.prototype,"objectFit",void 0);_.S([_.R(),_.V("design:type",String)],R8.prototype,"objectPosition",void 0);_.S([_.R(),_.V("design:type",String)],R8.prototype,"preferredThumbnail",void 0);_.S([_.R(),_.V("design:type",Boolean)],R8.prototype,"preserveHeight",void 0);
_.S([_.R(),_.V("design:type",Boolean)],R8.prototype,"preserveWidth",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],R8.prototype,"useWidth",void 0);_.S([_.R({value:function(){return!_.hy("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.V("design:type",Boolean)],R8.prototype,"shouldRenderLazy",void 0);_.S([_.R(),_.V("design:type",Number)],R8.prototype,"width",void 0);_.S([_.Ff({is:"yt-image",disableElementRegistration:!0})],R8);var Ir2="alt ariaHidden data ftlEligible height notifyOnLoaded notifyOnUnloaded objectFit objectPosition preserveHeight preserveWidth shouldRenderLazy width".split(" ");
PHI||_.$o()(R8,"yt-image",function(){if(LC4===void 0){var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);Y.content.insertBefore(TnM().content.cloneNode(!0),Y.content.firstChild);
LC4=Y}Y=LC4;return Y},{allowedProps:Ir2,
mode:2});var w8=function(){return _.Z.apply(this,arguments)||this};
_.m(w8,_.Z);w8.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var Y=_.FS(this.data.onVisibleCommand);Y&&this.ytComponentBehavior.resolveCommand(Y)}};
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],w8.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.xY.YtVisibilityBehavior),_.V("design:type",Object)],w8.prototype,"ytVisibilityBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],w8.prototype,"data",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],w8);
_.d(w8,"yt-bumper-user-edu-content-view-model",function(){if(T6V===void 0){var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;aOV===void 0&&(aOV=document.createElement("template"));var O=aOV;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);T6V=Y}Y=T6V;return Y},{mode:0});var kZI;var neE,FCM=function(){if(neE!==void 0)return neE;var Y=document.createElement("template");_.r(Y,'\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="countdown style-scope yt-creator-goal-progress-flow-view-model" target-timestamp="[[endTimestamp]]"></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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;kZI===void 0&&(kZI=document.createElement("template"));var O=kZI;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return neE=Y};var plM;_.ZA={};plM=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"]);_.ZA.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var Y=this.getContext_();return Y?Y.getTaskManager():_.AN},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var Y=_.$s(this.hostElement,"yt-get-context-provider",{});Y.detail&&Y.detail.contextProvider?this.cachedProviderNode_=Y.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return plM.has(this.hostElement.localName)},
getNetworkManager:function(){var Y=this.getContext_();if(Y)return Y.getNetworkManager()}};var RpT,zJ2,WCV,mke;_.DA=function(Y){var G=zJ2.get(Y);if(G&&(G=G.pop()))return mke++,G;WCV++;try{var u=document.createElement(Y)}catch(O){throw new _.I2("ElementPool failed to create element",Y,O.message);}return u};
RpT=function(Y){var G=Y.is;if(G){var u=zJ2.get(G);u||(u=[],zJ2.set(G,u));var O=_.DE("ELEMENT_POOL_CONFIG")||{};u.length>=(O[G]!==void 0?O[G]:_.DE("ELEMENT_POOL_DEFAULT_CAP",0))||u.push(Y)}else _.R0(new _.I2("Element pool should only handle custom elements:",Y.nodeName))};
zJ2=new Map;WCV=0;mke=0;var q4=new WeakMap,i6t=new WeakMap;var xkT;_.hC=function(Y,G,u){u=u===void 0?_.FO():u;this.JSC$14232_defaultPriority=Y;this.signal=G;this.scheduler=u;this.nextJobDescriptor=0;this.JSC$14232_parkedJobs=[];this.scheduledJobs=new Map};
_.d8=function(Y,G){if(G){var u=_.AM();Y.signal&&!_.or(u,Y.signal)?(u.addListener(Y.signal,function(){Y.processSignal()}),Y.JSC$14232_parkedJobs.push({job:G,
priority:void 0})):rA2(Y,G)}};
xkT=function(Y,G){if(G!==Y.JSC$14232_defaultPriority){Y.JSC$14232_defaultPriority=G;for(var u=_.E(Y.scheduledJobs.values()),O=u.next();!O.done;O=u.next())O=O.value,Y.scheduler.cancelJob(O.jobId),O.jobId=Y.scheduler.addJob(O.jobWrapper,G)}};
_.hC.prototype.flushJobs=function(){xkT(this,10);this.processSignal()};
_.hC.prototype.cancel=function(){for(var Y=_.E(this.scheduledJobs),G=Y.next();!G.done;G=Y.next()){var u=_.E(G.value);G=u.next().value;u=u.next().value;this.scheduler.cancelJob(u.jobId);this.scheduledJobs.delete(G)}this.JSC$14232_parkedJobs=[]};
_.hC.prototype.processSignal=function(){for(var Y=_.E(this.JSC$14232_parkedJobs),G=Y.next();!G.done;G=Y.next())G=G.value,rA2(this,G.job,G.priority);this.JSC$14232_parkedJobs=[]};
var rA2=function(Y,G,u){u=u||Y.JSC$14232_defaultPriority;if(u===10)N4(G);else{var O=Y.nextJobDescriptor++,Q=function(){G();Y.scheduledJobs.delete(O)},M=Y.scheduler.addJob(Q,u);
Y.scheduledJobs.set(O,{jobWrapper:Q,jobId:M,priority:u})}};var frX;_.bE={};frX={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.bE.YtRendererstamperBehavior=[_.ZA.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 Y in this.stampDom){var G=this.stampDom[Y];G&&G.id&&this.addReactiveSchema({type:"observe",method:{methodName:epu(G.id),args:[{type:"wildcard",path:Y}]}})}else{(Y=(this.constructor.generatedFrom||this).observers)||(Y=[]);for(G in this.stampDom){var u=this.stampDom[G];u&&u.id&&Y.push(epu(u.id)+"("+G+".*)")}this.constructor.generatedFrom.observers=Y}},
addStampDomObserverFns_:function(){for(var Y in this.stampDom){var G=this.stampDom[Y];G.id?(this[epu(G.id)]=this.rendererStamperObserver_.bind(this,Y,G.id),this.hasDataPath_[Y]=!1):(G=new _.I2("Bad rendererstamper config",this.is+":"+Y),_.o0(G))}},
rendererStamperObserver_:function(Y,G,u){if(u.path==Y){if(u.value===void 0&&!this.hasDataPath_[Y])return;this.hasDataPath_[Y]=u.value!==void 0}this.rendererStamperApplyChangeRecord_(Y,G,u)},
rendererStamperApplyChangeRecord_:function(Y,G,u){var O=this.renderJobsMap_[G],Q=null;Y==u.path?(u=u.value,_.ly(u)||(u=u===void 0||u===null?[]:[u]),Y=this.stampDom[Y],Y.mapping&&(Q=this.stampDomArray_.bind(this,u,G,Y.mapping,Y.reuseComponents,Y.events,Y.stamperStableList)),O&&O.cancel(),u=Y.usePageScheduler?this.getTaskManager():void 0,O||Y.initialRenderPriority==void 0)?Y.renderPriority==void 0||O||(O=new _.hC(Y.renderPriority,Y.waitForSignal,u),this.renderJobsMap_[G]=O):(O=new _.hC(Y.initialRenderPriority,
Y.waitForSignal,u),this.renderJobsMap_[G]=O,Q=function(M,t){M();xkT(t,10)}.bind(this,Q,O)):Q=Y+".splices"==u.path?this.stampDomArraySplices_.bind(this,Y,G,u.value):this.forwardRendererStamperChanges_.bind(this,Y,G,u);
O?_.d8(O,Q):Q()},
forwardRendererStamperChanges_:function(Y,G,u){var O=u.path.slice(Y.length+1),Q=this.getStampContainer_(G),M=O.indexOf("."),t=O.substring(0,M),K=!1,L=0,g=parseInt(t,0);if(t[0]=="#"){K=parseInt(t.substring(1),0);g=this.get(Y);var P=this.get([Y,t]);g[K]==P?L=K:L=g.indexOf(P);K=!0}else isNaN(g)||(L=g,K=!0);K&&(O=O.substring(t.length+1),M=O.indexOf("."));t=this.polymerDom(Q).children[L];var I;if(Q=(I=t==null?void 0:t.polymerController)!=null?I:t)O="data"+O.slice(M),typeof Q.notifyPath!=="function"?_.R0(new _.I2("notifyPath missing",
this.is+": "+Y+", "+G)):u.value?Q.notifyPath(O,u.value):Q.notifyPath(O)},
stampDomArraySplices_:function(Y,G,u){if(u&&u.indexSplices){var O=this.getStampContainer_(G);if(O){for(var Q=this.polymerDom(O),M=o0Y(this.stampDom[Y].reuseComponents),t=u.indexSplices.length,K=0;K<t;K++){for(var L=u.indexSplices[K],g=Q.children[L.index],P=L.removed.length;P>0;P--)g&&g.parentElement&&(this.polymerDom(g.parentElement).removeChild(g),M&&RpT(g),g=Q.children[L.index]);P=this.stampDom[Y].mapping;for(var I=L.index+L.addedCount,k=document.createDocumentFragment(),n=M,p=L.index;p<I;p++){var W=
L.object[p],C=y51(P,W);if(C){var e=P[C];W=W[C];C=this.getComponentName_(e,W);var w=g?q4.has(g):!1;n&&g&&g.is==C&&w?(C=g,this.telemetry_.reuse++,g=g.nextElementSibling):n&&g&&w?(C=this.createComponent_(e,W,M),w=this.polymerDom(g).nextElementSibling,Q.insertBefore(C,w),Z6j(this.is,Q,g,M),g=w):(n=!1,C=this.createComponent_(e,W,M),k.appendChild(C));this.deferRenderStamperBinding_(C,e,W)}else e=new _.I2("Unimplemented type",Y,G,O.tagName,Object.keys(W)[0]),_.o0(e)}Q.insertBefore(k,g)}this.flushRenderStamperComponentBindings_();
this.stampDom[Y].events&&_.$s(this.hostElement,"yt-rendererstamper-finished",{container:O})}else Y=new _.I2("Container object not found",G,this.hostElement?this.hostElement.is:""),_.o0(Y)}},
stampDomArray_:function(Y,G,u,O,Q,M){var t=this.getStampContainer_(G);if(t)if(G=this.polymerDom(t),O=o0Y(O),Y){var K=0,L=0,g;if(M=M===void 0?_.hy("STAMPER_STABLE_LIST",!1):M||!1)for(g=G.firstElementChild;g&&!q4.has(g)&&Y.length>L;){M=Y[L];var P=y51(u,M);if(P){if(this.getComponentName_(u[P],M[P])!=g.is){var I=this.createComponent_(u[P],M[P],O),k=this.polymerDom(g).nextElementSibling;k?G.insertBefore(I,k):G.appendChild(I);Z6j(this.is,G,g,O);g=I}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(g,
u[P],M[P]);K++;L++;g=this.polymerDom(g).nextElementSibling}else L++}hp4(this.is,G,K,O);K=g;if(Y.length>L){M=document.createDocumentFragment();for(P=Y.length;L<P;L++)if(I=Y[L],k=y51(u,I))g=this.createComponent_(u[k],I[k],O),this.deferRenderStamperBinding_(g,u[k],I[k]),M.appendChild(g);K&&this.polymerDom(K).parentNode&&g&&!q4.has(g)?G.insertBefore(M,K):G.appendChild(M)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();Q&&_.$s(this.hostElement,"yt-rendererstamper-finished",
{container:t})}else hp4(this.is,G,0,O);else Y=new _.I2("Container object not found",G,this.hostElement?this.hostElement.is:""),_.o0(Y)},
polymerDom:function(Y){return this.minimizePipBreakages?Y:_.ax(Y)},
getStampContainer_:function(Y){return this.$&&this.$[Y]||_.l0(this.hostElement).querySelector("#"+Y)},
getComponentName_:function(Y,G){return typeof Y==="string"?Y:Y.matcher?Y.matcher.call(this,G):Y.component},
createComponent_:function(Y,G,u){Y=this.getComponentName_(Y,G);try{var O=bgj.has(Y);if(u&&!O){var Q=_.DA(Y);try{_.cm(Q)}catch(M){u="Failed to clear styles for "+Y+".",M.message&&(u+=" Original error: "+M.message),_.R0(new _.I2(u))}}else Q=document.createElement(Y)}catch(M){return Q="YtRendererStamperBehavior failed to create "+Y+".",M.message&&(Q+=" Original description: "+M.message),M.message="YtRendererStamperBehavior failed to create element",_.wN(M,Q),frX.hasOwnProperty(Y)?_.R0(M):_.o0(M),document.createElement("SPAN")}this.telemetry_.create++;
return Q},
deferRenderStamperBinding_:function(Y,G,u){this.deferredBindingTasks_.push({component:Y,typeOrConfig:G,data:u})},
flushRenderStamperComponentBindings_:function(){for(var Y=0,G=this.deferredBindingTasks_.length;Y<G;Y++){var u=this.deferredBindingTasks_[Y];if(!u)break;DnA(this,u.component,u.typeOrConfig,u.data)}this.deferredBindingTasks_.length=0}}];_.hR(_.D(function(Y){function G(){u().seconds&&M(ylY({seconds:Number(u().seconds)-Date.now()/1E3}))}
var u=Y.targetTimestamp;Y=Y.className;var O=_.E(_.IE("",void 0,"U1Q8Ae")),Q=O.next().value,M=O.next().value;_.o1(function(){G();var t=setInterval(function(){G()},1E3);
_.w_(function(){clearInterval(t)})});
return _.T("yt-countdown",{class:_.s3("ytCountDownHost",Y)},_.T("div",null,Q))},"B"),"yt-countdown",{props:{targetTimestamp:_.AC,
className:_.wH}});_.SO=new _.Sb("KEY_MANAGER_TOKEN");var B2j={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"};_.Ny=_.D(function(Y){var G=_.CH("a",Y.ref),u=Y.aTagConfig?Y.aTagConfig:_.p2(function(){var O,Q,M,t,K;var L=(K=_.FS((M=Y.command)==null?void 0:M.call(Y)))!=null?K:(t=Y.command)==null?void 0:t.call(Y);return _.zU({innertubeCommand:L,skipOnClick:(O=Y.skipOnClick)==null?void 0:O.call(Y),defaultTarget:(Q=Y.target)==null?void 0:Q.call(Y)})||{}},void 0,"I5WLmc");
_.RE(function(){_.F("mweb_get_endpoint_from_atag_command")||(G.value._data=u()._data,G.value.params=u().params)},"STb8Se");
return _.T("a",{el:G,href:function(){return u().href$},
rel:function(){return u().rel$},
class:function(){var O,Q;return(Q=u().className)!=null?Q:(O=Y.className)==null?void 0:O.call(Y)},
style:function(){var O;if((O=Y.style)==null?0:O.call(Y))return Y.style();var Q;return((Q=Y.disabled)==null?0:Q.call(Y))?"pointer-events:none":""},
"aria-haspopup":function(){return!!u()["aria-haspopup$"]},
"force-new-state":v3(function(){return u()["force-new-state$"]}),
title:v3(function(){var O,Q;return(Q=u().title$)!=null?Q:(O=Y.title)==null?void 0:O.call(Y)}),
role:v3(function(){var O;return((O=Y.role)==null?void 0:O.call(Y))||u().role$}),
target:v3(function(){return u().target$}),
dir:v3(function(){var O;return((O=Y.dir)==null?void 0:O.call(Y))||u().dir}),
tabindex:function(){var O;return u().tabindex$?Number(u().tabindex$):(O=Y.tabIndex)==null?void 0:O.call(Y)},
"aria-hidden":function(){var O,Q;return(Q=u()["aria-hidden$"])!=null?Q:(O=Y.ariaHidden)==null?void 0:O.call(Y)},
"aria-label":function(){var O,Q;return(Q=u()["aria-label$"])!=null?Q:(O=Y.ariaLabel)==null?void 0:O.call(Y)},
"aria-current":Y.ariaCurrent,"aria-disabled":Y.disabled,"aria-expanded":Y.ariaExpanded,"aria-labelledby":Y.ariaLabelledby,"aria-describedby":Y.ariaDescribedby,"aria-selected":Y.ariaSelected,"tab-identifier":Y.tabIdentifier,"on:pointerdown":_.U3(function(O){var Q,M;return void((M=(Q=u()).onpointerdown)==null?void 0:M.call(Q,O))}),
"on:click":_.U3(function(O){var Q,M;(M=(Q=u()).onclick)==null||M.call(Q,O);var t;(t=Y.onClick)==null||t.call(Y,O)}),
"on:focusin":_.U3(function(O){var Q;(Q=Y.onFocusin)==null||Q.call(Y,O)}),
"on:focusout":_.U3(function(O){var Q;(Q=Y.onFocusout)==null||Q.call(Y,O)})},Y.children)},"D");var J5g={duration:1E3,easing:"ease",fill:"forwards"};v0t.componentType=Ww;var u64={duration:1E3,easing:"ease",fill:"forwards"},eJe=_.D(function(Y){var G=_.CH("animated-rolling-character"),u=void 0,O=function(){var K,L;return DZ((K=Y.character)==null?void 0:K.call(Y))||DZ((L=Y.previousCharacter)==null?void 0:L.call(Y))},Q=_.E(_.IE(0,void 0,"CYT8Ob")),M=Q.next().value,t=Q.next().value;
_.o1(function(){if(window.ResizeObserver&&_.F("web_fix_rolling_numbers_zoom_safari")){var K=new _.JR(function(){var g,P,I=Math.round(((P=(g=G.value.querySelector("div"))==null?void 0:g.getBoundingClientRect().height)!=null?P:0)*100)/100;I&&t(I)},500),L=new ResizeObserver(function(){K.fire()});
L.observe(G.value);_.w_(function(){L.disconnect();K.dispose()})}});
_.RE(function(){var K=_.F("web_fix_rolling_numbers_zoom_safari")?M:Y.marginMultiplier;if(K()){var L;(L=u)==null||L.cancel();if(O()){var g;L=((g=Y.previousCharacter)==null?0:g.call(Y))?Number(Y.previousCharacter())+10:Y.rollUp()?0:30;var P;if((P=Y.shouldAnimate)==null||!P.call(Y)){var I,k;L-=GVj((I=Y.character)==null?void 0:I.call(Y),(k=Y.previousCharacter)==null?void 0:k.call(Y),Y.rollUp(),L)}}else{L=Y.rollUp()?0:2;var n;(n=Y.shouldAnimate)!=null&&n.call(Y)||(g=L,P=Y.rollUp()?-1:1,L=g-P)}G.value.style.marginTop=
"-"+L*K()+"px";var p;if((p=Y.shouldAnimate)==null?0:p.call(Y)){var W,C;u=OEA(G.value,(W=Y.character)==null?void 0:W.call(Y),(C=Y.previousCharacter)==null?void 0:C.call(Y),Y.rollUp(),L,O(),K())}else{var e;G.value.style.display=((e=Y.character)==null?0:e.call(Y))?"":"none"}}},"CA6Pmf");
return _.T("animated-rolling-character",{el:G,class:"animatedRollingCharacterHost"},_.T(_.X,{cond:O,then:function(){return _.T(CHe,null)},
else:function(){return _.T(yAV,{character:Y.character})}}))},"G");
eJe.idomCompat=!0;var QlI=_.F("web_enable_sink_animated_rolling_character_and_number")?eJe:v0t,AAE=_.F("web_enable_sink_animated_rolling_character_and_number")?eJe:YJg(v0t),CHe=_.D(function(){for(var Y=[],G=1;G<30;G++)Y.push(_.T("div",null,G%10));return _.T(_.GY,null,_.T("div",null,"\u00a0"),Y,_.T("div",null,"\u00a0"))},"H"),yAV=_.D(function(Y){var G=Y.character;
return _.T(_.GY,null,_.T("div",null,"\u00a0"),_.T(_.X,{cond:function(){return!(G==null?0:G())||_.K1(G==null?void 0:G())},
then:function(){return _.T("div",null,"\u00a0")},
else:function(){return _.T("div",null,G)}}),_.T("div",null,"\u00a0"))},"I");MeT.componentType=Ww;var oeT=_.D(function(Y){var G=void 0,u=void 0,O=function(){var M;return((M=Y.fontSizeMultiplier)==null?0:M.call(Y))?Y.heightPx()*Y.fontSizeMultiplier():Y.heightPx()},Q=_.p2(function(){if(!Y.numberText())return[];
var M,t,K=((M=Y.forceRollUp)==null?void 0:M.call(Y))||!u||!((t=Y.numberValue)==null?0:t.call(Y))||u<Y.numberValue(),L,g=Y.numberText();M=O();t=!((L=Y.shouldAnimate)==null||!L.call(Y));L=[];var P=0,I=0,k=(G?G.replace(/\D/g,"").length:0)-(g?g.replace(/\D/g,"").length:0),n=G?G.split(/(\d)/).filter(Boolean):[];for(g=g.split(/(\d)/).filter(Boolean);k<0;){var p=g[I];L.push({character:p,rollUp:K,marginMultiplier:M,shouldAnimate:t});I++;DZ(p)&&k++}for(;P<k;)p=n[P],L.push({previousCharacter:p,rollUp:K,marginMultiplier:M,
shouldAnimate:t}),P++,DZ(p)||k++;for(;I<g.length;)k=g[I],p=n[P],DZ(k)===DZ(p)?(I++,P++):DZ(k)?(P++,k=void 0):DZ(p)&&(I++,p=void 0),L.push({character:k,previousCharacter:p,rollUp:K,marginMultiplier:M,shouldAnimate:t});G=Y.numberText();var W;u=(W=Y.numberValue)==null?void 0:W.call(Y);return L},void 0,"kWiBv");
return _.T("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return Y.numberText()?["height: "+O()+"px;","line-height: "+Y.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.T(_.rc,{each:Q,keyBy:"INDEX"},function(M){return _.T(AAE,{character:function(){return M().character},
previousCharacter:function(){return M().previousCharacter},
marginMultiplier:function(){return M().marginMultiplier},
rollUp:function(){return M().rollUp},
shouldAnimate:function(){return M().shouldAnimate}})}))},"J");
oeT.idomCompat=!0;_.i_2=_.F("web_enable_sink_animated_rolling_character_and_number")?oeT:YJg(MeT);var RJX=function(Y,G){this.fillAnimation=new Animation(KH4(Y),document.timeline);this.strokeAnimation=new Animation(aet(G),document.timeline)};
RJX.prototype.play=function(){var Y,G;(G=(Y=this.fillAnimation).play)==null||G.call(Y);var u,O;(O=(u=this.strokeAnimation).play)==null||O.call(u)};
RJX.prototype.cancel=function(){var Y,G;(G=(Y=this.fillAnimation).cancel)==null||G.call(Y);var u,O;(O=(u=this.strokeAnimation).cancel)==null||O.call(u)};_.jO=_.D(function(Y){var G=Y.model;var u=Y.pointerDownEvent;var O=Y.pointerUpEvent;var Q=Y.pointerLeaveEvent;var M=Y.hovered;Y=_.CH("yt-touch-feedback-shape");var t=_.CH("div"),K=_.CH("div"),L=_.E(_.SN(function(){return(O==null?0:O())||(Q==null?0:Q())?!1:!(u==null||!u())||!1})),g=L.next().value,P=L.next().value,I=void 0,k=function(){!I&&K.value&&t.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(I=new RJX(K.value,t.value));
var w;(w=I)==null||w.play()},n=function(){var w;
(w=I)==null||w.cancel()},p=function(){var w;
(w=I)==null||w.cancel()};
_.RE(function(){(O==null?0:O())&&k()},"bg756c");
_.RE(function(){(u==null?0:u())&&n()},"QAes8c");
_.RE(function(){(Q==null?0:Q())&&p()},"YaFbrc");
L=_.U3(function(){k();P(!1)});
var W=_.U3(function(){n();P(!0)}),C=_.U3(function(){p();
P(!1)});
_.w_(function(){if(I){var w;(w=I)==null||w.cancel();I=void 0}});
var e={};g=_.s3("yt-spec-touch-feedback-shape",function(){return TFA(G().color)},function(){return LHA(G().thumbnailSize,!!G().isExtended)},(e["yt-spec-touch-feedback-shape--focused"]=function(){return!!G().focused&&!G().disabled},e["yt-spec-touch-feedback-shape--circular"]=function(){return!!G().circular},e["yt-spec-touch-feedback-shape--down"]=g,e["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!G().triggerEvents},e["yt-spec-touch-feedback-shape--hovered"]=function(){return M==
null?void 0:M()},e));
return _.T("yt-touch-feedback-shape",{el:Y,class:g,style:_.Yh({"margin-top":function(){return G().customTopExtend?"-"+G().customTopExtend+"px":void 0}}),
"on:mousedown":W,"on:mouseup":L,"on:pointerleave":C,"on:touchstart":W,"on:touchend":L,"aria-hidden":!0},_.T(_.X,{cond:function(){return!!G().hoverEffect},
then:function(){return _.T("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.Yh({"border-radius":function(){return G().borderRadius},
background:function(){var w;if(w=G().hoverEffect){for(var B=[],N=_.E((w==null?void 0:w.lightingTechniques)||[]),h=N.next();!h.done;h=N.next())switch(h.value){case 2:var q=h=void 0,U=void 0,Mj=void 0;B.push("linear-gradient(180deg, "+((h=w)==null?void 0:(q=h.palette)==null?void 0:q.keyLight)+", "+((U=w)==null?void 0:(Mj=U.palette)==null?void 0:Mj.background)+")")}var Xt,ka;B.push((Xt=G().hoverEffect)==null?void 0:(ka=Xt.palette)==null?void 0:ka.background);w=B.join(", ")}else w=void 0;return w}})})}}),
_.T("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.Yh({"border-radius":function(){return G().borderRadius},
"border-color":function(){var w,B;return(w=G().touchEffect)==null?void 0:(B=w.palette)==null?void 0:B.background}}),
el:t}),_.T("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.Yh({"border-radius":function(){return G().borderRadius},
"background-color":function(){var w,B;return(w=G().touchEffect)==null?void 0:(B=w.palette)==null?void 0:B.background}}),
el:K}))},"N");
_.jO.idomCompat=!0;var wll={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 V_=_.zg();V_=V_.toLowerCase();if(_.gA(V_,"android")){var Z_X=V_.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);Z_X&&parseFloat(Z_X[1])<100||V_.match("("+Object.keys(wll).join("|")+")")};var Dk1=_.D(function(Y){return _.T(_.X,{cond:Y.aTagConfig,then:function(G){return _.T(_.Ny,{aTagConfig:G,disabled:Y.disabled,className:Y.className,style:Y.style,title:Y.title,ariaLabel:Y.ariaLabel,ariaDescribedby:Y.ariaDescribedby,ariaCurrent:function(){var u,O;return((u=Y.toggleable)==null?void 0:u.call(Y))&&((O=Y.toggled)==null?void 0:O.call(Y))},
ariaExpanded:Y.ariaExpanded,ref:Y.ref},Y.children)},
else:function(){return _.T("button",{el:_.iq(Y.ref),"on:click":_.U3(function(G){var u;return(u=Y.onClick)==null?void 0:u.call(Y,G)}),
class:Y.className,title:Y.title,style:Y.style,disabled:Y.disabled,"aria-pressed":function(){var G,u;return((G=Y.toggleable)==null?0:G.call(Y))?!((u=Y.toggled)==null||!u.call(Y)):void 0},
"aria-label":Y.ariaLabel,"aria-describedby":Y.ariaDescribedby,"aria-disabled":Y.visiblyDisabled,"aria-hidden":Y.ariaHidden,"aria-expanded":Y.ariaExpanded,tabindex:Y.tabIndex},Y.children)}})},"O"),dkT=_.D(function(Y){var G=Y.data;
var u=Y.hasIconLeading;var O=Y.hasIconLeadingTrailing;var Q=Y.hasIconTrailing;var M=Y.iconButton;var t=Y.iconClassName;var K=Y.secondaryIconClassName;var L=Y.icon;var g=Y.secondaryIcon;var P=Y.textContentClassName;return _.T(lE,{className:"",style:"display: inherit; justify-content: center"},_.T(_.X,{debugInstance:"V4z1Uc",cond:function(){return L&&(u()||O()||(M==null?void 0:M()))},
then:function(){return _.T(lE,null,_.T("div",{class:t,"aria-hidden":"true"},L==null?void 0:L()))}}),_.T(_.X,{debugInstance:"ok3btb",
cond:function(){return(G().buttonText||G().animatedTextProps||G().formattedButtonText)&&!(M==null?0:M())},
then:function(){return _.T(lE,null,_.T(hJT,{className:P,iconPosition:function(){return G().iconPosition},
text:function(){return G().buttonText},
oneOffCustomTextWrap:function(){return G().oneOffCustomTextWrap},
formattedButtonText:function(){return G().formattedButtonText},
animatedTextProps:function(){return G().animatedTextProps}}))}}),_.T(_.X,{debugInstance:"DO5Rz",
cond:Q,then:function(){return _.T(lE,null,_.T("div",{class:t},L==null?void 0:L()))}}),_.T(_.X,{debugInstance:"bnojSc",
cond:O,then:function(){return _.T(lE,null,_.T("div",{class:K},g==null?void 0:g()))}}),_.T(_.X,{debugInstance:"HN3kad",
cond:function(){return!G().disabled&&!0},
then:function(){return _.T(_.jO,{model:function(){var I=G();return{color:I.style==="overlay-dark"?4:I.style==="overlay"?I.type==="filled"?4:3:I.type==="filled"||I.style==="call-to-action-inverse"||I.style==="mono-inverse"?2:1}}})}}))},"P"),hJT=_.D(function(Y){var G=function(){var u,O;
return((u=Y.iconPosition)==null?void 0:u.call(Y))==="icon-with-label"||((O=Y.oneOffCustomTextWrap)==null?void 0:O.call(Y))};
return _.T("div",{class:Y.className,"aria-hidden":function(){var u,O,Q;return((u=Y.ariaHidden)==null?void 0:u.call(Y))&&(!((O=Y.animatedTextProps)==null||!O.call(Y))||!((Q=Y.formattedButtonText)==null||!Q.call(Y)))}},_.T(_.x4,null,_.T(_.m1,{when:function(){var u;
return(u=Y.animatedTextProps)==null?void 0:u.call(Y)}},function(){return _.T(_.i_2,{numberText:function(){return Y.animatedTextProps().numberText},
numberValue:function(){return Y.animatedTextProps().numberValue},
heightPx:function(){return Y.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return Y.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return Y.animatedTextProps().shouldAnimate},
forceRollUp:function(){return Y.animatedTextProps().forceRollUp}})}),_.T(_.m1,{when:function(){var u;
return(u=Y.formattedButtonText)==null?void 0:u.call(Y)}},function(){return _.T(_.eO,{text:function(){return Object.assign({},Y.formattedButtonText(),{lineBreakMode:G()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":Y.formattedButtonText().lineBreakMode,
alignment:G()?"TEXT_ALIGNMENT_CENTER":Y.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!G()}})}),_.T(_.m1,{when:function(){var u,O;
return((u=Y.iconPosition)==null?void 0:u.call(Y))==="icon-with-label"&&((O=Y.text)==null?void 0:O.call(Y))}},function(){return _.T(_.eO,{text:function(){return{content:Y.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.T(_.W4,null,function(){return Y.text})))},"Q"),b_X=_.D(function(Y){return _.T(_.X,{debugInstance:"kM7Sgc",
cond:Y.hasLabel,then:function(){var G;return _.T("label",{class:Y.className},Y.children,(G=Y.textContent)==null?void 0:G.call(Y))},
else:function(){return Y.children}})},"R"),lE=_.D(function(Y){return Y.children},"S");var S7I=_.D(function(Y){function G(){M(void 0);K(void 0);g(void 0)}
var u=_.iq(),O=_.E(_.IE(void 0,void 0,"Ug77pc")),Q=O.next().value,M=O.next().value;O=_.E(_.IE(void 0,void 0,"XGf7Zb"));var t=O.next().value,K=O.next().value,L=_.E(_.IE(void 0,void 0,"w55oqd"));O=L.next().value;var g=L.next().value;L=_.E(_.IE(0,void 0,"rBgpzc"));var P=L.next().value,I=L.next().value;L=_.U3(function(){switch(P()){case 1:I(2);break;case 3:var n,p;(p=(n=u.value).hidePopover)==null||p.call(n);I(0);G()}});
_.RE(function(){if(Y.show()){var n;M((n=Y.children)==null?void 0:n.call(Y));var p;K((p=Y.location)==null?void 0:p.call(Y));var W;g((W=Y.classNames)==null?void 0:W.call(Y));switch(P()){case 0:var C,e;(e=(C=u.value).showPopover)==null||e.call(C);I(1);break;case 3:I(1);var w,B;(B=(w=u.value).hidePopover)==null||B.call(w);var N,h;(h=(N=u.value).showPopover)==null||h.call(N)}}else switch(P()){case 2:I(3);break;case 1:var q,U;(U=(q=u.value).hidePopover)==null||U.call(q);G();I(0)}},"Z8V4Qb");
_.ii(function(){});
var k={};return _.T("yt-popover",{popover:"manual",el:u,style:_.Yh({left:function(){var n;return(n=t())==null?void 0:n.left},
top:function(){var n;return(n=t())==null?void 0:n.top},
bottom:function(){var n;return(n=t())==null?void 0:n.bottom},
right:function(){var n;return(n=t())==null?void 0:n.right}}),
class:_.s3("ytPopoverComponentHost",O,(k.ytPopoverComponentHostClosing=function(){return P()===3},k.ytPopoverComponentHostSeeThrough=function(){var n;
return((n=Y.seeThrough)==null?void 0:n.call(Y))===!0},k)),
"on:animationend":L},Q)},"U");var NnU={left:"0px",right:"auto",top:"0px",bottom:"auto"},jvl=function(){var Y=this;this.registerTooltipElement=function(u){var O;Y.tooltipElement=(O=u.querySelector("yt-popover"))!=null?O:void 0};
var G=_.E(_.IE(void 0,void 0,"EIh5sc"));this.state=G.next().value;this.setState=G.next().value;G=_.E(_.IE(void 0,void 0,"PC1M0b"));this.schedulerJobID=G.next().value;this.setSchedulerJobID=G.next().value},zx4=function(Y,G){var u=Qx,O=_.AN.addJob(function(){var Q=VsX(u,Y,G);
u.currentConfig=G;u.setState({text:G.text,location:_.F("web_tooltip_location_fix")?void 0:Q,anchor:Y,offset:G.offset,style:G.style})},4,G.delay);
u.setSchedulerJobID(O)},mLa=function(){var Y=Qx,G=Y.schedulerJobID();
G&&(_.AN.cancelJob(G),Y.setSchedulerJobID(void 0));Y.setState(void 0);Y.currentConfig=void 0};
jvl.prototype.notify=function(Y,G){var u;((u=this.state())==null?void 0:u.anchor)===Y&&(u=VsX(this,Y,G),this.currentConfig=G,this.setState({text:G.text,location:_.F("web_tooltip_location_fix")?void 0:u,anchor:Y,offset:G.offset,style:G.style}))};
var VsX=function(Y,G,u){var O=G.getBoundingClientRect();G=window.innerWidth;var Q=window.innerHeight,M=u.location,t=u.offset;u=u.text;if(Y=Y.tooltipElement){var K=getComputedStyle(Y);Y=K.font;var L=uv(K.lineHeight),g=uv(K.paddingLeft),P=uv(K.paddingRight),I=uv(K.paddingTop);K=uv(K.paddingBottom);var k=document.createElement("canvas").getContext("2d");k.font=Y;u={width:k.measureText(u).width+g+P,height:L+I+K}}else u=void 0;Y=u;if(!Y)return NnU;u=Y.width;Y=Y.height;g=t+Y;I=t+u;L=O.top>=g;g=Q-O.bottom>=
g;P=O.left>=I;I=G-O.right>=I;K=M;switch(M){case "top":!L&&g&&(K="bottom");break;case "bottom":!g&&L&&(K="top");break;case "left":!P&&I&&(K="right");break;case "right":!I&&P&&(K="left")}switch(K){case "top":M=O.left+O.width/2-u/2;O=O.top-Y-t;break;case "bottom":M=O.left+O.width/2-u/2;O=O.bottom+t;break;case "left":M=O.left-u-t;O=O.top+O.height/2-Y/2;break;case "right":M=O.right+t;O=O.top+O.height/2-Y/2;break;default:M=O.left+O.width/2-u/2,O=O.bottom+t}t=Object.assign({},NnU);M+u>G?(t.right="0px",t.left=
"auto"):(t.left=Math.round(Math.max(0,M)+window.scrollX)+"px",t.right="auto");O+Y>Q?(t.bottom="0px",t.top="auto"):(t.top=Math.round(Math.max(0,O)+window.scrollY)+"px",t.bottom="auto");return t};var Qx;Qx=new jvl;_.lrk=_.D(function(){var Y=_.p2(function(){var Q;return(Q=Qx.state())==null?void 0:Q.anchor},void 0,"tiGUn"),G=_.p2(function(){var Q;
return(Q=Qx.state())==null?void 0:Q.text},void 0,"TA2GQe"),u=_.p2(function(){var Q;
return(Q=Qx.state())==null?void 0:Q.style},void 0,"ucvFsf"),O=_.F("web_tooltip_location_fix")?_.p2(function(){var Q=Y();
var M=Qx.currentConfig;if(Q&&M)return VsX(Qx,Q,M)},void 0,"EpDz6"):_.p2(function(){var Q;
return(Q=Qx.state())==null?void 0:Q.location},void 0,"aRJtfd");
return _.T("yt-tooltip",{class:"ytTooltipContainerHost",el:_.iq(Qx.registerTooltipElement),"aria-hidden":"true"},_.T(S7I,{classNames:function(){switch(u()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:O,show:function(){return!!G()&&!!O()},
seeThrough:!0},G))},"V");var g2j=JP("stamper-context");_.BZ=_.D(function(Y){var G=Y.data;var u=Y.icon;var O=Y.iconName;var Q=Y.animateIcon;var M=Y.secondaryIcon;var t=Y.secondaryIconName;var K=Y.focusedOverride;var L=Y.clientOnlyWizTooltipsEnabled;rF1();var g=g9Y(G),P=g.size,I=g.style;Y=g.disabled;var k=g.onTap,n=g.alignByText,p=g.aTagConfig,W=g.customColors,C=g.segmentedPosition,e=g.toggled,w=g.toggleable,B=g.accessibilityLabel,N=g.onToggle,h=g.iconPosition,q=g.oneOffCustomTextWrap,U=g.disableTextEllipsis,Mj=g.disableBackdropFilter,Xt=g.tooltipText,
ka=g.ariaHidden,aU=g.ariaExpanded,Tg=g.tabIndex,iy=g.buttonText,hY=g.formattedButtonText,dA=g.animatedTextProps,nT=g.onClickRateLimitMs,u_=kVt(G,u,M,O,t,K,Q),jT=u_.type;u=u_.shouldFocus;O=u_.hasIconLeading;Q=u_.hasIconTrailing;var P1=u_.hasIconLeadingTrailing,kk=u_.hasIconOnly;M=u_.hasIconOnly40;var Fe=u_.hasIconWithLabel;t=u_.iconButton;var Xg=u_.visiblyDisabled;K=u_.overrideSmallSizeIcon;var Hb=u_.iconToRender;u_=u_.secondaryIconToRender;var n1=_.E(WH4(Xt,g.tooltipShape)).next().value,Yk=function(b_){k==
null||k(b_);w()&&(N==null||N(b_))},qj=_.p2(function(){return nT==null?void 0:nT()},void 0,"Cfx0Hf"),Gx=_.p2(function(){return qj()?fMV(Yk,qj()):Yk},void 0,"QKj6Ic");
g={};var fT={};return _.T(b_X,{className:_.s3("yt-spec-button-shape-with-label",(g["yt-spec-button-shape-with-label--is-overlay"]=function(){return I()==="overlay"||I()==="overlay-dark"},g)),
hasLabel:Fe,textContent:function(){return _.T(hJT,{text:iy,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:q,iconPosition:h,formattedButtonText:hY,animatedTextProps:dA})}},_.T(Dk1,{aTagConfig:p,
className:_.s3("yt-spec-button-shape-next",function(){return n9I(jT())},function(){return Xg()?void 0:FHI(I())},function(){return pS4(P())},(fT["yt-spec-button-shape-next--disabled"]=Xg,fT["yt-spec-button-shape-next--focused"]=u,fT["yt-spec-button-shape-next--icon-trailing"]=Q,fT["yt-spec-button-shape-next--icon-leading"]=O,fT["yt-spec-button-shape-next--icon-leading-trailing"]=P1,fT["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return P1()&&!(iy()||hY())},fT["yt-spec-button-shape-next--icon-button"]=
function(){return kk()||Fe()},fT["yt-spec-button-shape-next--icon-only-default"]=M,fT["yt-spec-button-shape-next--align-by-text"]=n,fT["yt-spec-button-shape-next--segmented-start"]=function(){return C()==="start"},fT["yt-spec-button-shape-next--segmented-end"]=function(){return C()==="end"},fT["yt-spec-button-shape-next--override-small-size-icon"]=K,fT["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=q,fT["yt-spec-button-shape-next--disable-text-ellipsis"]=U,fT["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Mj()&&!_.F("web_disable_backdrop_filter")},fT)),
style:function(){var b_=W();if(b_){var MK=b_.color;var v1=b_.backgroundColor;b_=b_.borderColor;var Ew="";MK&&(Ew+="color: "+MK+";");v1&&(Ew+="background-color: "+v1+";");b_&&(Ew+="border-color: "+b_+";");MK={style:Ew}}else MK={};return MK.style},
onClick:function(b_){Gx()(b_)},
disabled:Y,ariaLabel:B,toggleable:w,toggled:e,title:function(){return(L==null?0:L())||!Xt()?"":Xt()},
visiblyDisabled:Xg,ariaHidden:ka,ariaExpanded:aU,tabIndex:Tg,ref:function(b_){(L==null?0:L())&&n1(b_)}},_.T(dkT,{data:G,
hasIconLeading:O,hasIconLeadingTrailing:P1,hasIconTrailing:Q,iconButton:t,icon:Hb,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:u_})))},"X");
_.BZ.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.$Y=_.D(function(Y){var G=Y.data;var u=Y.className;var O=Y.style;var Q=Y.useOutlinedIcon;var M=Y.buttonOverrides;var t=Y.animatedTextProps;var K=Y.onClick;var L=Y.target;var g=_.CH("button-view-model",function(h){h.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var q=G().targetId;q&&_.uE(_.O2(),q,h);return function(){Gk(_.O2(),h)}}),P=function(){return G().iconName},I=function(){var h;
return(h=G())==null?void 0:h.entityKey},k=_.Hx(function(h){a:{var q=I(),U=G().buttonEntitySelectorType;
if(U&&q)switch(U){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":h=(h=_.c3(h,q))?{isHidden:h.adsState==="ADS_STATE_NONE"||h.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:h={isHidden:!1};break a}h=void 0}return h}),n,p=(n=_.sH().resolve(_.q3(_.Ee)))==null?void 0:n(),W=function(){var h=G();
var q=M==null?void 0:M(),U=t==null?void 0:t(),Mj=L==null?void 0:L();if(h){var Xt=iEU(h.type);var ka=!!h.title||!!h.titleFormatted;var aU=!(!h.iconName&&!h.iconImage);ka=aU&&!ka?"icon-only":aU?h.iconTrailing||h.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;ka==="icon-only-40"&&(Xt="text");var Tg;aU=(Tg=q==null?void 0:q.state)!=null?Tg:Rxj(h.state);var iy,hY=(iy=q==null?void 0:q.disabled)!=null?iy:h.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||h.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.F("web_button_vm_refactor_disabled")){var dA;hY=(dA=q==null?void 0:q.disabled)!=null?dA:aU==="disabled"}U=U&&U.numberText&&!isNaN(Number(U.numberValue))?U:void 0;iy=Object;dA=iy.assign;Tg=h.title;var nT=h.titleFormatted,u_=h.accessibilityText,jT=o9j(h.style),P1=wST(h.buttonSize);Mj=AFu(h,g,hY,K,Mj);hY=hY&&!h.onDisabledTap;var kk=yFu(h,g),Fe=h.customFontColor,Xg=h.customBackgroundColor;var Hb=h.customBorderColor;var n1=h.customDarkThemeFontColor,Yk=h.customDarkThemeBackgroundColor,qj=h.customDarkThemeBorderColor;
Fe=p&&n1?n1:Fe;Xg=p&&Yk?Yk:Xg;Hb=p&&qj?qj:Hb;Hb={color:Fe?_.nB(Fe):void 0,backgroundColor:Xg?_.nB(Xg):void 0,borderColor:Hb?_.nB(Hb):void 0};if(qj=_.z(h.tooltipData,X7E)){var Gx;Xg={text:(Gx=qj.tooltipText)!=null?Gx:"",location:feg(qj.placement),style:qj.style}}else Xg=void 0;h=dA.call(iy,{},{buttonText:Tg,formattedButtonText:nT,animatedTextProps:U,accessibilityLabel:u_,style:jT,type:Xt,state:aU,size:P1,iconPosition:ka,onTap:Mj,disabled:hY,aTagConfig:kk,customColors:Hb,tooltipText:h.tooltip,tooltipShape:Xg},
q)}else h={style:"mono",type:"text",state:"active",size:"M"};h.focused=w();return h},C=function(){return PVI(W(),!!G().iconName)};
Y=_.E(_.IE(!1,void 0,"yZ8hab"));n=Y.next().value;var e=Y.next().value,w=n;Y=_.U3(function(){var h=_.sH().resolve(_.q3(_.SO));h&&e(h.isKeyBoardInUse());return!0});
n=_.U3(function(){e(!1);return!0});
_.RE(function(){var h,q=_.z(G==null?void 0:(h=G())==null?void 0:h.onVisible,_.nd);q&&_.pd(q,{disableClickTracking:!0})},"G9MlKd");
var B=function(){var h;return(G==null?0:(h=G())==null?0:h.iconImage)?{sources:[G().iconImage]}:void 0},N=_.F("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.T("button-view-model",{el:g,class:_.s3("ytSpecButtonViewModelHost",u),"on:focusin":Y,"on:focusout":n},_.T(_.X,{cond:function(){var h,q;return!((q=I()&&G().buttonEntitySelectorType&&((h=k())==null?void 0:h.isHidden))!=null&&q)},
then:function(){return _.T(_.X,{cond:B,then:function(h){return _.T(_.BZ,{data:W,icon:function(){return _.T(_.RD,{data:h,alt:"",targetWidth:C,targetHeight:C,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:N})},
else:function(){return _.T(_.BZ,{data:W,icon:function(){return _.T(_.GS,{icon:P,active:function(){return(Q==null?0:Q())?!1:W().toggled},
animateIcon:function(){var h;return!!(O==null?0:(h=O())==null?0:h.animateIcon)},
size:C})},
clientOnlyWizTooltipsEnabled:N})}})}}))},"Z");
_.$Y.idomCompat={callbacks:{onClick:!0}};_.hR(_.D(function(Y){return _.T("yt-button-view-model",{id:Y.id,class:_.s3(Y.scopingClassName,Y.classes),icon:function(){var G;return(G=Y.icon)==null?void 0:G.call(Y)},
"dialog-dismiss":function(){var G;return((G=Y.dialogDismiss)==null?0:G.call(Y))?"":void 0}},_.T(_.$Y,{data:function(){var G;
return(G=Y.data)==null?void 0:G.call(Y)},
className:function(){var G;return(G=Y.className)==null?void 0:G.call(Y)},
style:function(){var G;return(G=Y.style)==null?void 0:G.call(Y)},
useOutlinedIcon:function(){var G;return(G=Y.useOutlinedIcon)==null?void 0:G.call(Y)},
buttonOverrides:function(){var G;return(G=Y.buttonOverrides)==null?void 0:G.call(Y)},
animatedTextProps:function(){var G;return(G=Y.animatedTextProps)==null?void 0:G.call(Y)},
onClick:function(G){var u;return(u=Y.onClick)==null?void 0:u.call(Y,G)}}))},"$"),"yt-button-view-model",{props:{data:_.AC,
className:_.AC,style:_.AC,useOutlinedIcon:_.AC,buttonOverrides:_.AC,animatedTextProps:_.AC,onClick:_.wH,scopingClassName:_.AC,id:_.AC,icon:_.AC,dialogDismiss:_.AC,classes:_.AC,target:_.wH}});_.hR(_.D(function(Y){var G=Y.data;var u=Y.id;var O=Y.className;var Q=Y.iconName;var M=Y.animateIcon;var t=Y.secondaryIconName;Y=_.E(_.IE(!1,void 0,"xPqod"));var K=Y.next().value,L=Y.next().value,g=function(){var I=_.sH().resolve(_.q3(_.SO));I&&L(I.isKeyBoardInUse())},P=function(){L(!1)};
Y=_.CH("yt-button-shape",function(I){if(_.sH().resolve(_.q3(_.SO)))return I.addEventListener("focusin",g),I.addEventListener("focusout",P),function(){I.removeEventListener("focusin",g);I.removeEventListener("focusout",P)}});
return _.T("yt-button-shape",{el:Y,id:u,class:O},_.T(_.X,{cond:G,then:function(){return _.T(_.BZ,{data:G,iconName:Q,secondaryIconName:t,focusedOverride:K,animateIcon:M})}}))},"aa"),"yt-button-shape",{props:{data:_.AC,
id:_.AC,className:_.AC,iconName:_.AC,animateIcon:_.AC,secondaryIconName:_.AC,clientOnlyWizTooltipsEnabled:_.AC},unsafeExternallySettableAttributes:new Set(["hidden"])});var qy=function(){var Y=_.Z.apply(this,arguments)||this;Y.isGoalActive=!0;return Y};
_.m(qy,_.Z);qy.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
qy.prototype.progressBarChanged=function(){var Y=_.l0(this.hostElement).querySelector("#progress-bar-progress"),G,u,O,Q=(O=Number((G=this.creatorGoalState)==null?void 0:G.currentGoalCount)/Number((u=this.creatorGoalState)==null?void 0:u.totalGoalCount)*100)!=null?O:0,M;Y.style.width=((M=Math.min(Q,100))!=null?M:0)+"%"};
qy.prototype.goalStateChanged=function(){var Y;this.isGoalActive=((Y=this.creatorGoalState)==null?void 0:Y.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var G;Y={"--yt-progress-bar-color":eGy((G=this.creatorGoalState)==null?void 0:G.progressBarColor)};_.cm(this.hostElement,Y)};
qy.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Uk.Object.defineProperties(qy.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var Y;return this.isGoalActive&&!((Y=this.creatorGoalState)==null||!Y.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.creatorGoalState)==null?0:Y.endTimestampMs){var G;Y=Number((G=this.creatorGoalState)==null?void 0:G.endTimestampMs)/1E3;return{seconds:String(Y)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.creatorGoalState)==null?0:Y.themedTargetImage){var G;Y=_.z((G=this.creatorGoalState)==null?void 0:G.themedTargetImage,uyM);return this.isAppDarkTheme()?Y==null?void 0:Y.imageDark:Y==null?void 0:Y.imageLight}}}});
_.Uk.Object.defineProperties(qy,{template:{configurable:!0,enumerable:!0,get:function(){return FCM()}}});
qy.prototype.goalStateChanged=qy.prototype.goalStateChanged;qy.prototype.progressBarChanged=qy.prototype.progressBarChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],qy.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.pI),_.V("design:type",Object)],qy.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);
_.S([_.R({selectorArgs:["data.creatorGoalEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"creatorGoalEntity",G)}}),
_.V("design:type",Object)],qy.prototype,"creatorGoalState",void 0);_.S([_.R(),_.V("design:type",Object)],qy.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],qy.prototype,"isGoalActive",void 0);_.S([_.f("creatorGoalState","isGoalActive"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],qy.prototype,"shouldShowCountdown",null);_.S([_.f("creatorGoalState"),_.V("design:type",Object),_.V("design:paramtypes",[])],qy.prototype,"endTimestamp",null);
_.S([_.f("creatorGoalState"),_.V("design:type",Object),_.V("design:paramtypes",[])],qy.prototype,"targetIconThemedImage",null);_.S([_.GO("creatorGoalState.currentGoalCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qy.prototype,"progressBarChanged",null);_.S([_.GO("creatorGoalState.creatorGoalState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qy.prototype,"goalStateChanged",null);
_.S([_.Ff({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],qy);_.d(qy,"yt-creator-goal-progress-flow-view-model",function(){return FCM()},{mode:0});var Bnk;var $k2;var s2=function(){return _.Z.apply(this,arguments)||this};
_.m(s2,_.Z);s2.prototype.attached=function(){var Y,G,u;if(this==null?0:(Y=this.data)==null?0:(G=Y.pdgPurchasedBumperLoggingDirectives)==null?0:(u=G.loggingDirectives)==null?0:u.trackingParams){var O,Q,M;hxI(this==null?void 0:(O=this.data)==null?void 0:(Q=O.pdgPurchasedBumperLoggingDirectives)==null?void 0:(M=Q.loggingDirectives)==null?void 0:M.trackingParams)}};
s2.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],s2.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],s2.prototype,"data",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],s2);
_.d(s2,"yt-live-chat-item-bumper-view-model",function(){if($k2===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Bnk===void 0&&(Bnk=document.createElement("template"));var O=Bnk;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);$k2=Y}Y=$k2;return Y},{mode:0});var q72;var svk;_.Zv=function(Y,G){this.data=Y;this.actions=G;this.data=Y;this.actions=G};
_.yx=function(){};_.cZ={};_.cZ.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(Y,G){dLY(this.hostElement,Y,G)},
getNavigationEndpointPopupAction:function(Y){return bEt(Y,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(Y,G){SJu(this.hostElement,Y,G,this.openPopupConfig)}};var ULa=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.U2={};
_.U2.YtEndpointBehavior=[_.cZ.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.DE("openPopupConfig");(this.useClickHandler=_.hy("useClickHandler",!1))?this.hostElement.addEventListener("click",Ub(this,this.onEndpointClick_)):(o3(this.hostElement,"tap",Ub(this,this.onEndpointTap_)),o3(this.hostElement,"touchend",Ub(this,this.onEndpointTouchEnd_)));o3(this.hostElement,"touchstart",Ub(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Ub(this,this.onEndpointTapStart_))},
onEndpointClick_:function(Y){VeI(this.hostElement,Y,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(Y){var G=this.hostElement,u=this.openPopupConfig,O=this.disableCommandHandlerOverride;O=O===void 0?!1:O;var Q=NFT(Y);if(Q){Q.href&&mw(Q.href);var M=Y.detail;var t=M.sourceEvent;M=M.preventer;t=t.button!==void 0?t.button===0&&!Ej(t):M?!Ej(M):!0;Q.data&&t&&jl1(G,Q,Y,u,O)}},
onEndpointTouchEnd_:function(Y){Ej(Y)||NFT(Y)&&Y.preventDefault()},
onEndpointTapStart_:function(Y){sla(Y)}}];_.vZ={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(Y){for(var G=_.N6.getInstance(),u=_.E(Object.keys(Y)),O=u.next();!O.done;O=u.next()){var Q=O.value;O=Y[Q];if(this&&this[O]){var M=G.actionRoutingMap.get(Q);M||(M=new Map,G.actionRoutingMap.set(Q,M));G.registerActionHandler(this,Q,this[O].bind(this),M)}else Q=Error("nd"),Q.params=O,_.dc(Q)}},
unregisterActionMap:function(Y){_.VO(_.N6.getInstance(),Y,this)}}]};var aS=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_"+(_.F("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.F("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.F("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.F("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:_.F("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:_.F("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var Kz;var TS=new Map;var OW1=window.matchMedia("(forced-colors: active)").matches;var cAR;var UkR;var veM=new _.Sb("LOTTIE_LOADER_TOKEN");_.JC=_.D(function(Y){var G=Y.data;var u=Y.className;var O=Y.animationName;var Q=Y.animationRef;var M=Y.elRefForInterop;var t=_.yg("lottie-component"),K;_.w_(function(){var g;return void((g=K)==null?void 0:g.destroy())});
var L;_.RE(function(){var g=_.hT(O);if(g!==L){L=g;var P=Object.assign({},{animationName:g,animationRef:_.hT(Q)},_.hT(G));try{_.sH().resolve(veM)().then(function(n){var p;(p=K)==null||p.destroy();var W,C;p=(C=M==null?void 0:(W=M())==null?void 0:W.value)!=null?C:t.value;W=P.animationRef;C=P.listeners;n=n.loadAnimation(Object.assign({},{container:p},P.animationConfig));W&&(W.lottieEl=n);if(C)for(p=_.E(Object.entries(C)),W=p.next();!W.done;W=p.next())C=_.E(W.value),W=C.next().value,(C=C.next().value)&&
n.addEventListener(W,C);K=n})}catch(n){g=n;
var I="LottieComponent error.";g.message&&(I+=" Original description: "+g.message);_.wN(g,I);_.R0(g);var k;((k=P.listeners)==null?0:k.error)&&P.listeners.error(g)}}},"nrJISd");
return _.T(w$g,{cond:function(){return!(M==null?0:M())},
then:function(){return _.T("lottie-component",{class:_.s3("ytLottieComponentHost",u),el:t})}})},"ca");_.hR(_.D(function(Y){return _.T("ytd-lottie-player",{id:Y.id,hidden:Y.hidden,class:Y.className,"aria-label":Y.ariaLabel,style:"display: block;"},_.T(_.JC,{data:Y.data,animationName:function(){var G;return((G=Y.data().animationConfig)==null?void 0:G.name)||""},
animationRef:function(){return Y.data().animationRef}}))},"da"),"ytd-lottie-player",{props:{data:_.AC,
id:_.AC,hidden:_.AC,className:_.AC,ariaLabel:_.AC}});var Yf=function(){var Y=_.Z.apply(this,arguments)||this;Y.animationRef={};Y.delhiIconsEnabled=_.F("enable_web_delhi_icons");return Y};
_.m(Yf,_.Z);_.H=Yf.prototype;
_.H.handlePropertyChange=function(){var Y=this.animatedIcon,G=this.active,u=this.isDarkTheme;if(Y){var O=this.previousActive!==G;this.previousActive=G;this.animationRef.lottieEl?O?this.toggleAnimation(G,Y.totalFrames):_.F("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(G,Y.totalFrames):G?this.initializeAnimationAsToggled(Y.lottiePlayerProps,Y.totalFrames):this.initializeAnimationAsUntoggled(Y.lottiePlayerProps);Y.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
Y.type;this.lottiePlayerProps=this.computeLottiePlayerProps(Y,u)}};
_.H.computeLottiePlayerProps=function(Y,G){var u=this.deepCloneLottiePlayerProps(Y);G?(G=Y.nameDarkTheme,Y=Y.pathDarkTheme):(G=Y.name,Y=Y.path);u.animationConfig.name=G;(G=TS.get(Y))?u.animationConfig.animationData=G:u.animationConfig.path=Y;return u};
_.H.initializeAnimationAsToggled=function(Y,G){Y.animationConfig.initialSegment=[G-1,G]};
_.H.initializeAnimationAsUntoggled=function(Y){Y.animationConfig.initialSegment=void 0};
_.H.toggleAnimation=function(Y,G){if(Y){var u;(u=this.animationRef.lottieEl)==null||u.playSegments([0,G],!0)}else{var O;(O=this.animationRef.lottieEl)==null||O.playSegments([0,1],!0)}};
_.H.setAnimationState=function(Y,G){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(Y?G-1:0,!0)};
_.H.deepCloneLottiePlayerProps=function(Y){var G=Object.assign({},Y.lottiePlayerProps.animationConfig);Y=Object.assign({},Y.lottiePlayerProps);Y.animationConfig=G;return Y};
Yf.prototype.handlePropertyChange=Yf.prototype.handlePropertyChange;_.S([_.R(),_.V("design:type",Object)],Yf.prototype,"animatedIcon",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],Yf.prototype,"active",void 0);_.S([_.R(),_.V("design:type",Boolean)],Yf.prototype,"isDarkTheme",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],Yf.prototype,"animatedIconType",void 0);_.S([_.R(),_.V("design:type",Boolean)],Yf.prototype,"previousActive",void 0);
_.S([_.R(),_.V("design:type",Object)],Yf.prototype,"lottiePlayerProps",void 0);_.S([_.R(),_.V("design:type",Object)],Yf.prototype,"animationRef",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Yf.prototype,"delhiIconsEnabled",void 0);_.S([_.GO("animatedIcon","active","isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yf.prototype,"handlePropertyChange",null);_.S([_.Ff({is:"yt-animated-icon",disableElementRegistration:!0})],Yf);
_.d(Yf,"yt-animated-icon",function(){if(UkR===void 0){var Y=document.createElement("template");_.r(Y,'\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="lottie-player style-scope yt-animated-icon" data="[[lottiePlayerProps]]"></ytd-lottie-player>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;cAR===void 0&&(cAR=document.createElement("template"));var O=cAR;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);UkR=Y}Y=UkR;return Y},{mode:2});var JA4;var YgI;_.Lz=_.D(function(Y){var G={value:null,cancelled:!1};_.w_(function(){G.cancelled=!0});
var u=_.p2(Y.data,{equals:function(O,Q){return O.iconName===Q.iconName&&O.iconStyle===Q.iconStyle&&O.iconSize===Q.iconSize&&O.iconSetName===Q.iconSetName&&O.iconSelected===Q.iconSelected}},"ck24jb");
return _.T("span",{class:"yt-icon-shape",el:_.iq(function(O){_.RE(function(){var Q,M=(Q=Y.options)==null?void 0:Q.call(Y);Q=u();tAU(O,G,Q,M)},"v878Je")})})},"fa");
_.Lz.idomCompat=!0;var eyj=["youtube_fill","youtube_outline"];var Gql=new _.HT({type:"iconset",value:void 0}),Gr=function(){var Y=_.Z.apply(this,arguments)||this;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.iconName="";Y.iconsetName="yt-icons";Y.iconset=null;Y.missingIconSet=!1;Y.iconType=null;Y.iconShapeDataSignal=_.IE(void 0,void 0,"TaEgXd");Y.renderingOptionsSignal=_.IE({iconWidth:"100%",iconHeight:"100%",iconFilter:Y.iconFilter,iconColor:Y.gradientColor},void 0,"a1vqYe");Y.wizHasRendered=!1;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return Y};
_.m(Gr,_.Z);Gr.prototype.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.isDarkTheme=Y)};
Gr.prototype.handlePropertyChange=function(){var Y=this,G,u,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e;return _.a(function(w){switch(w.nextAddress){case 1:if(G=!Y.icon&&!Y.iconName||!Y.isAttached)return w.return();u=Y;O=u.icon;Q=u.size;M=u.defaultToFilled;t=u.active;K=u.targetContainer;Y.toggleContainerClass(K);_.F("kevlar_use_wil_icons")&&O&&(L=MBI(O),Y.iconType=L.length?L[1]:null);if(O){w.jumpTo(2);break}Y.iconsetName="";Y.iconName="";return w.yield(Y.renderIcon(K,O),3);case 3:return w.return();case 2:g=uD_(O);
P=MBI(g);P.length&&(Y.iconsetName=P[0],Y.iconName=P[1]);if(!_.F("kevlar_use_wil_icons")){w.jumpTo(4);break}I=Gr;k=O6_;n=Y.iconType;p=Y.active;W=Y.defaultToFilled;C=Y.size;e=Y.iconsetName;return w.yield(QpR(),6);case 6:return w.yield(k.call(I,n,p,W,C,e,w.yieldResult),5);case 5:Y.iconShapeData=w.yieldResult;case 4:if(Y.shouldRenderIconShape(K)){w.jumpTo(7);break}return w.yield(Y.determineIconSet(g,t,M,Q,K),7);case 7:return w.yield(Y.renderIcon(K,O),0)}})};
Gr.prototype.toggleContainerClass=function(Y){Y?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var uD_=function(Y){return!_.F("default_to_innertube_icon")||Y.indexOf(":")>0?Y:_.Ux(Y)};
_.H=Gr.prototype;_.H.determineIconSet=function(Y,G,u,O){var Q=this;return _.a(function(M){return M.nextAddress==1?_.F("kevlar_system_icons")||_.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.DE("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?M.yield(Q.switchToYtSysIconset(Y,G,u,O),3):M.jumpTo(2):M.nextAddress!=2?M.return():M.yield(Q.useYtSysIconsetForMissingIcons(Y,G,u,O),0)})};
_.H.switchToYtSysIconset=function(Y,G,u,O){var Q=this,M,t,K,L,g,P,I;return _.a(function(k){switch(k.nextAddress){case 1:if(!Y||Q.iconsetName!=="yt-icons"&&Q.iconsetName!=="yt-sys-icons"){k.jumpTo(0);break}M=MBI(Y);t=M[1];var n=t;if(gPy(n))t=n;else{var p=n=n.toLowerCase();(n=MB4.get(n))&&(p=n);t=p}_.F("enable_polymer_icons_replace_underscores_dash")&&t.includes("_filled")&&(t=t.replace(/_filled/g,"-filled"));return k.yield(cn(t,!0),3);case 3:return K=k.yieldResult,k.yield(cn(t,!1),4);case 4:if((L=
k.yieldResult)||G&&K)Q.iconsetName="yt-sys-icons";Q.iconName=Q.getIconName(t,G,u,L,K);if(O===24){k.jumpTo(0);break}g="yt-sys-icons"+O+":"+Q.iconName;return k.yield(cn(g,!1,!0),6);case 6:return P=k.yieldResult,k.yield(cn(g,!0,!0),7);case 7:I=k.yieldResult;Q.iconName=Q.getIconName(t,G,u,P,I);if(!G&&P||G&&I)Q.iconsetName="yt-sys-icons"+O;_.Sd(k)}})};
_.H.getIconName=function(Y,G,u,O,Q){Y.includes("-filled")&&(Y=Y.replace("-filled",""));return Q&&(G||u)?Y+"-filled":Y};
_.H.useYtSysIconsetForMissingIcons=function(Y,G,u,O){var Q=this,M,t;return _.a(function(K){if(K.nextAddress==1)return Q.iconsetName!=="yt-icons"?K.jumpTo(0):K.yield(cn(Q.iconName,!1,!1,!0),3);if(K.nextAddress!=4)return M=K.yieldResult,K.yield(cn(Q.iconName,!1),4);t=K.yieldResult;if(M||!t)return K.jumpTo(0);Q.iconsetName="yt-sys-icons";return K.yield(Q.switchToYtSysIconset(Y,G,u,O),0)})};
_.H.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var QpR=function(){return _.a(function(Y){try{return Y.return(_.sH().resolve(_.vn))}catch(G){return Y.return(new Promise(function(u){_.AM().parkOrScheduleJob(function(){u(_.sH().resolve(_.vn))},2,"ci")}))}})},O6_=function(Y,G,u,O,Q,M){O=O===void 0?24:O;
if(Y){Y=Y.toLowerCase();var t=Y.endsWith("_filled")||Y.endsWith("-filled");G={iconName:Y,iconStyle:(G===void 0?0:G)||(u===void 0?0:u)||t?"youtube_fill":"youtube_outline",iconSize:O,iconSetName:Q===void 0?"yt-icons":Q};u=!!M.resolveIcon(G);u||(G.iconSize=void 0,u=!!M.resolveIcon(G));!u&&t&&(G.iconName=Y.substring(0,Y.length-7),G.iconSize=O,u=!!M.resolveIcon(G),u||(G.iconSize=void 0,u=!!M.resolveIcon(G)));u||(G.iconStyle=void 0,u=!!M.resolveIcon(G));u||_.R0(new _.I2("Icon not supported",{iconName:G.iconName,
iconStyle:G.iconStyle,iconSize:G.iconSize,iconType:Y}));return u?G:void 0}};
_.H=Gr.prototype;_.H.shouldRenderIconShape=function(Y){if(!_.F("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;Y=this.getContainer(Y);return!Q64(Y,this.icon)};
_.H.renderIcon=function(Y,G){var u=this,O,Q,M,t,K,L,g,P;return _.a(function(I){switch(I.nextAddress){case 1:if(G&&u.icon!==G)return I.return();O=u.getContainer(Y);Q=Q64(O,u.icon);if(u.shouldRenderIconShape(Y)&&u.iconType)return u.applyIconShape(Q,O),I.return();u.removeIconShape();if(!O)return I.return();u.iconName===""&&u.iconset&&O&&(u.removeStaticIcon(u.iconset,O),Q&&u.removeAnimatedIcon(O));if(u.iconName===""&&u.iconset||!u.iconsetName||!Gql)return I.return();u.iconset=Gql.byKey(u.iconsetName);
if(!u.iconset)return u.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Jh(u,u.onIconsetAdded)),I.return();u.missingIconSet&&(u.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Jh(u,u.onIconsetAdded)));t=(M=Q||u.isAnimatedIcon?GaT(u.icon):void 0)&&!M.lazyLoad;L=M&&((K=M)==null?void 0:K.lazyLoad)&&(M.lottiePlayerProps.animationConfig.animationData?!0:TS.get(u.isDarkTheme?M.pathDarkTheme:M.path)?!0:!1);if(t||L)return u.applyAnimatedIcon(O,M,u.iconset),I.return();if(L||
(g=M)==null||!g.lazyLoad){I.jumpTo(2);break}P=HW1(M,u.isDarkTheme);u.applyStaticIcon(u.iconset,O,u.iconName,Y,Q);return I.yield(P,3);case 3:return I.yield(u.renderIcon(u.targetContainer,u.icon),4);case 4:return I.return();case 2:u.applyStaticIcon(u.iconset,O,u.iconName,Y,Q),_.Sd(I)}})};
_.H.getContainer=function(Y){var G,u=(G=$Xt(this.hostElement))==null?void 0:G.host;G=!!u&&!!u.polymerController;if(!Y||G)return Y?this.getTargetContainer(Y,u):this.hostElement};
_.H.getTargetContainer=function(Y,G){var u=_.l0(G).querySelector("#"+Y);u||(Y=new _.I2("yt-icon container missing",G.is,Y),_.o0(Y));return u};
_.H.applyStaticIcon=function(Y,G,u,O,Q){Q&&this.removeAnimatedIcon(G);this.removeIconShape();Q=Q&&!!this.iconType&&!!this.iconShapeData&&_.F("kevlar_use_wil_icons");try{Q?this.applyIconShape(!1,G):Y.applyIcon(G,u)}catch(M){this.handleError(M,O,G)}};
_.H.applyIconShape=function(Y,G){this.iconset&&G&&(this.removeStaticIcon(this.iconset,G),Y&&this.removeAnimatedIcon(G));Y={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var u=_.E(this.iconShapeDataSignal);G=u.next().value;u=u.next().value;var O=_.E(this.renderingOptionsSignal),Q=O.next().value;O=O.next().value;u(this.iconShapeData);O(Y);if(!this.wizHasRendered)for(this.wizHasRendered=!0,Y=_.E(K5T(G,Q)).next().value;Y.firstChild;)_.l0(this.hostElement).appendChild(Y.firstChild)};
_.H.removeIconShape=function(){if(_.F("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.H.removeStaticIcon=function(Y,G){Y.removeIcon(G)};
_.H.applyAnimatedIcon=function(Y,G,u){this.removeStaticIcon(u,Y);this.removeIconShape();var O;u=this.animatedIconElement&&((O=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:O.type)===G.type;if(this.animatedIconElement&&u){this.animatedIconElement.polymerController.animatedIcon=G;var Q;((Q=this.animatedIconElement)==null?void 0:Q.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(Y),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=G,this.animatedIconElement.polymerController.active=this.active,_.F("delhi_modern_web_player_icons")?(G=uzy(Y,this.icon)&&Y.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=G?G.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.F("kevlar_use_wil_icons")?
Y.insertBefore(this.animatedIconElement,Y.childNodes[0]):(Y=_.l0(Y),Y.insertBefore(this.animatedIconElement,Y.childNodes[0]))};
_.H.removeAnimatedIcon=function(Y){_.F("kevlar_use_wil_icons")?this.animatedIconElement&&Y.contains(this.animatedIconElement)&&Y.removeChild(this.animatedIconElement):(Y=_.l0(Y),this.animatedIconElement&&Y.contains(this.animatedIconElement)&&Y.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.H.handleError=function(Y,G,u){_.wN(Y,this.iconName,G,u);G=Q64(u,this.icon);var O=!1;window.location.href.includes("JpymaW6Lh2w")?O=!0:u._svgIcon&&(u=(u=u._svgIcon.parentNode)?u.tagName:"unknown",_.wN(Y,u),u==="YT-ICON"&&Y.name==="NotFoundError"?O=!0:Y.name==="NotFoundError"&&G&&(O=!0));O?_.R0(Y):_.o0(Y)};
_.Uk.Object.defineProperties(Gr,{template:{configurable:!0,enumerable:!0,get:function(){if(YgI===void 0){var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;
JA4===void 0&&(JA4=document.createElement("template"));var O=JA4;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);YgI=Y}Y=YgI;return Y}}});
Gr.prototype.handlePropertyChange=Gr.prototype.handlePropertyChange;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Gr.prototype,"actionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",String)],Gr.prototype,"icon",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],Gr.prototype,"active",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],Gr.prototype,"defaultToFilled",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],Gr.prototype,"isAnimatedIcon",void 0);
_.S([_.R({value:24}),_.V("design:type",Number)],Gr.prototype,"size",void 0);_.S([_.R({value:""}),_.V("design:type",String)],Gr.prototype,"targetContainer",void 0);_.S([_.R(),_.V("design:type",Object)],Gr.prototype,"animatedIconElement",void 0);_.S([_.R(),_.V("design:type",Object)],Gr.prototype,"isDarkTheme",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Gr.prototype,"ariaHidden",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],Gr.prototype,"ariaLabel",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],Gr.prototype,"role",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],Gr.prototype,"tabindex",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],Gr.prototype,"title",void 0);_.S([_.R(),_.V("design:type",String)],Gr.prototype,"style",void 0);_.S([_.R(),_.V("design:type",String)],Gr.prototype,"iconFilter",void 0);_.S([_.R(),_.V("design:type",String)],Gr.prototype,"gradientColor",void 0);
_.S([_.GO("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],Gr.prototype,"handlePropertyChange",null);_.S([_.Ff({is:"yt-icon",noInjection:!0})],Gr);var akA="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),L54=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var Mne={};Mne.YtPlaintextBehavior=[_.Gp,{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(Y){Y.preventDefault();Y=Y.clipboardData.getData("text/plain");document.execCommand("insertText",!1,Y)},
preventRichTextFormatting_:function(Y){_.MP&&(Y=Y.detail.keyboardEvent,Y.stopImmediatePropagation(),Y.preventDefault())}}];var H6T;var E0e;var uw=function(){var Y=_.Z.apply(this,arguments)||this;Y.ignoreShadyDom=!1;Y.hasChange_=!1;Y.hasSetTitle_=!1;Y.useIOObserverForVisibilityLogging_=_.F("kevlar_use_vimio_behavior")&&_.DE("INNERTUBE_CLIENT_NAME")==="WEB";Y.ytFormattedStringObserverHandlerKeys_=void 0;return Y};
_.m(uw,_.Z);_.H=uw.prototype;_.H.created=function(){this.useIOObserverForVisibilityLogging_=_.F("kevlar_use_vimio_behavior")&&_.DE("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.H.ready=function(){_.DE("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 Y=this.getRoot(),G=Y.lastChild;G&&G.tagName!=="STYLE";){try{Y.removeChild(G)}catch(u){break}G=Y.lastChild}};
_.H.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var Y=_.E(this.ytFormattedStringObserverHandlerKeys_),G=Y.next();!G.done;G=Y.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(G.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.H.resetForAttributedString=function(){var Y=this.getRoot();!Y.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),Y.appendChild(this.ytAttributedStringElementRef))};
_.H.resetForFormattedString=function(){var Y=this.getRoot(),G=Y.querySelector("yt-attributed-string");G&&(this.ytAttributedStringElementRef=Y.removeChild(G))};
_.H.textChanged=function(){this.textChanged_(this.text)};
_.H.textChanged_=function(Y){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!Y||!Y.runs&&!Y.simpleText;if(_.F("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var G=this.hostElement.firstChild;G&&G.nodeName==="FONT";){var u=G;G=G.nextSibling;this.hostElement.removeChild(u)}G=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
u=Y.simpleText;var O;!u&&((O=Y.runs)==null?void 0:O.length)===1&&this.isSimpleString_(Y.runs[0])&&(u=Y.runs[0].text);u!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.DE("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(u!==void 0){try{G.textContent=u}catch(Q){}G.textContent||(this.isEmpty=!0)}else Y=Y.runs,u!==void 0&&(Y=[{text:u}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),Y&&this.updateText_(Y),
G.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(Y){return Y};
_.H.computeEllipsisTruncateStyling=function(Y,G){return Y&&!G};
_.H.computeUseAttributedString=function(Y){return _.F("web_replace_formatted_with_attributed_string")&&VBj(Y)&&!this.disableAttributedString&&!this.enableContentEditable};
_.H.setNodeStyle_=function(Y,G){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.F("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?G.removeAttribute("dir"):G.setAttribute("dir","auto");G.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");G.style.color="";var u=null;this.noStyles||(Y.bold&&(G.classList.add("bold"),u="bold"),Y.deemphasize&&(G.classList.add("deemphasize"),u="deemphasize"),Y.italics&&G.classList.add("italic"),
Y.strikethrough&&G.classList.add("strikethrough"),Y.errorUnderline&&(G.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),Y.bracket&&G.classList.add("bracket"),Y.textColor&&(G.style.color=_.k3(Y.textColor)));u!==G.getAttribute("style-target")&&(u?G.setAttribute("style-target",u):G.removeAttribute("style-target"))};
_.H.setUpVisibilityLogging_=function(Y,G){var u=this;this.setNodeTrackingParams_(Y,G);var O;((O=G.data)==null?0:O.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(Y=this.ytRendererBehavior.visibilityObserver.observe(G,function(Q){var M=u.ytRendererBehavior.getVisibilityLogger();M&&M.reportShown(Q)},this.ytRendererBehavior.visibilityOptionVisible_),G=this.ytRendererBehavior.visibilityObserver.observe(G,function(Q){var M=u.ytRendererBehavior.getVisibilityLogger();
M&&M.reportHidden(Q)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(Y),this.ytFormattedStringObserverHandlerKeys_.push(G))};
_.H.setNodeTrackingParams_=function(Y,G){G.data||(G.data={});if((Y=Y.loggingDirectives?Y.loggingDirectives.trackingParams:null)||G.data.trackingParams)G.data.trackingParams=Y};
_.H.computeHasLinkOnly_=function(Y){return!(!Y||Y.length!==1||this.noEndpoints||!Y[0].navigationEndpoint)};
_.H.getRoot=function(){var Y=this.buildScopeDomOptions();return this.enableContentEditable?_.l0(_.l0(this.hostElement,Y).querySelector("[contenteditable]")):_.l0(this.hostElement,Y)};
_.H.fixContenteditableScope=function(){var Y=function(G){G&&(G.nodeType===1&&G.classList&&(G.classList.add("style-scope"),G.classList.add("yt-formatted-string")),G.childNodes&&G.childNodes.forEach(function(u){Y(u)}))};
Y(this.getRoot())};
_.H.updateText_=function(Y){for(var G=Y.length,u=this.getRoot(),O=u.firstChild;O&&O.nodeName==="STYLE";)O=O.nextSibling;for(var Q=0;Q<G&&O;){var M=Y[Q],t=_.F("remove_cr_char")&&M.text?M.text.replace("\r",""):M.text;if(this.isSimpleString_(M)&&!this.useMixedDirectionFormattedStrings)if(O.nodeName==="#text"){O.textContent!=t&&(O.textContent=t);Q++;O=O.nextSibling;continue}else break;if(_.z(M,ID))break;else if(!this.noEndpoints&&M.navigationEndpoint){if(O.nodeName!=="A")break;this.setDataOnAnchor_(O,
M.navigationEndpoint)}else if(O.nodeName!=="SPAN")break;this.setNodeStyle_(M,O);this.setUpVisibilityLogging_(M,O);O.textContent!=t&&(O.textContent=t);Q++;O=O.nextSibling}if(O)for(M=u.lastChild,O=Q?O.previousSibling:null;M&&M!=O;){try{u.removeChild(M)}catch(K){break}M=u.lastChild}Q!==G&&this.addTextNodes_(Y,Q)};
_.H.addTextNodes_=function(Y,G){for(var u=document.createDocumentFragment(),O=Y.length;G<O;G++){var Q=Y[G],M=_.F("remove_cr_char")&&Q.text?Q.text.replace("\r",""):Q.text;if(this.isSimpleString_(Q)&&!this.useMixedDirectionFormattedStrings)u.appendChild(document.createTextNode(M));else{var t=_.z(Q,ID);if(t){if(t.image){var K=document.createElement("img");t.isCustomEmoji||K.classList.add("small-emoji");K.classList.add("emoji");t.isCustomEmoji&&(K.dataset.emojiId=t.emojiId);K.src=_.dH(t.image.thumbnails,
this.emojiSize);(Q=this.get("image.accessibility.accessibilityData.label",t))?K.alt=Q:t.shortcuts&&t.shortcuts.length>0?K.alt=t.shortcuts[0]:t.emojiId&&(K.alt=t.emojiId);u.appendChild(K);this.hasEmoji=!0}}else!this.noEndpoints&&Q.navigationEndpoint?(K=document.createElement("a"),K.classList.add("yt-simple-endpoint"),K.setAttribute("spellcheck","false"),this.setDataOnAnchor_(K,Q.navigationEndpoint)):K=document.createElement("span"),this.setNodeStyle_(Q,K),this.setUpVisibilityLogging_(Q,K),K.appendChild(document.createTextNode(M)),
u.appendChild(K)}}this.getRoot().appendChild(u)};
_.H.isSimpleString_=function(Y){return(this.noEndpoints||!Y.navigationEndpoint)&&!_.z(Y,ID)&&(this.noStyles||!(Y.bold||Y.deemphasize||Y.italics||Y.strikethrough||Y.errorUnderline||Y.bracket||Y.textColor))&&!Y.loggingDirectives};
_.H.getRawText=function(){return _.Ri(this.text)};
_.H.getFirstRunText=function(){var Y;if(((Y=this.text)==null?0:Y.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.H.setFirstRunText=function(Y){var G;((G=this.text)==null?0:G.runs)&&this.text.runs[0]&&(this.text.runs[0].text=Y,this.textChanged_(this.text))};
_.H.setDataOnAnchor_=function(Y,G){var u=this;!_.F("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(G)||this.isSignalServiceEndpoint_(G)?(Y.onclick=this.serviceEndpointHandler_(G),Y6(Y,"#")):oCa({text:this.text,command:G},function(){ljt(Y,G,u.target)})};
_.H.isServiceEndpoint_=function(Y){var G;return!((G=_.z(Y==null?void 0:Y.commandMetadata,_.ug))==null||!G.sendPost)};
_.H.isSignalServiceEndpoint_=function(Y){return!!_.z(Y,_.Gb)};
_.H.serviceEndpointHandler_=function(Y){var G=this;return function(u){_.c$(G.hostElement,[Y]);u.preventDefault()}};
_.H.overrideAriaLabelChanged_=function(){var Y=this.getRoot();this.enableContentEditable&&Y&&Y.setAttribute("aria-label",this.overrideAriaLabel)};
_.H.enableContentEditableChanged_=function(){var Y=this,G=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),G=_.l0(this.hostElement,G),!G.lastChild||G.lastChild instanceof HTMLElement&&G.lastChild.id!=="contenteditable-root"){var u=document.createElement("div");u.id="contenteditable-root";u.setAttribute("contenteditable","true");u.setAttribute("dir","auto");u.onfocus=function(){Y.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
G.appendChild(u);this.overrideAriaLabel&&u.setAttribute("aria-label",this.overrideAriaLabel)}}else u=_.Bm(this.hostElement).firstChild,u instanceof HTMLElement&&u.id==="contenteditable-root"&&_.l0(this.hostElement,G).removeChild(u)};
_.H.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.H.getNodesForVisibilityLogging_=function(){return _.vH(this.getRoot().childNodes,function(Y){var G;return!((G=Y.data)==null||!G.trackingParams)})};
_.H.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.H.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var Y=this.ytRendererBehavior.getVisibilityLogger();Y&&this.getNodesForVisibilityLogging_().forEach(function(G){Y.reportShown(G)})}};
_.H.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var Y=this.ytRendererBehavior.getVisibilityLogger();Y&&this.getNodesForVisibilityLogging_().forEach(function(G){Y.reportHidden(G)})}};
_.Uk.Object.defineProperties(uw.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.F("enable_mixed_direction_formatted_strings")}}});
uw.prototype.enableContentEditableChanged_=uw.prototype.enableContentEditableChanged_;uw.prototype.overrideAriaLabelChanged_=uw.prototype.overrideAriaLabelChanged_;uw.prototype.ellipsisTruncateChanged_=uw.prototype.ellipsisTruncateChanged_;uw.prototype.textChanged=uw.prototype.textChanged;_.S([_.x(Mne.YtPlaintextBehavior),_.V("design:type",Object)],uw.prototype,"ytPlaintextBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],uw.prototype,"ytComponentBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],uw.prototype,"text",void 0);_.S([_.R(),_.V("design:type",Boolean)],uw.prototype,"noEndpoints",void 0);_.S([_.R(),_.V("design:type",Boolean)],uw.prototype,"noStyles",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],uw.prototype,"isDarkTheme",void 0);
_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],uw.prototype,"splitLines",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],uw.prototype,"forceDefaultStyle",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],uw.prototype,"ellipsisTruncate",void 0);_.S([_.R(),_.V("design:type",Object)],uw.prototype,"ignoreShadyDom",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.V("design:type",Boolean)],uw.prototype,"ellipsisTruncateStyling",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.V("design:type",String)],uw.prototype,"ariaLabel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],uw.prototype,"isEmpty",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.V("design:type",Boolean)],uw.prototype,"hasLinkOnly_",void 0);_.S([_.R(),_.V("design:type",Boolean)],uw.prototype,"hasEmoji",void 0);_.S([_.R(),_.V("design:type",Boolean)],uw.prototype,"disableAttributedString",void 0);_.S([_.R(),_.V("design:type",Boolean)],uw.prototype,"isOverlay",void 0);_.S([_.R(),_.V("design:type",Boolean)],uw.prototype,"linkInheritColor",void 0);
_.S([_.R(),_.V("design:type",Boolean)],uw.prototype,"noPreWrap",void 0);_.S([_.R(),_.V("design:type",Boolean)],uw.prototype,"userInput",void 0);_.S([_.R({value:16}),_.V("design:type",Number)],uw.prototype,"emojiSize",void 0);_.S([_.R(),_.V("design:type",String)],uw.prototype,"target",void 0);_.S([_.R(),_.V("design:type",Boolean)],uw.prototype,"enableContentEditable",void 0);_.S([_.R(),_.V("design:type",String)],uw.prototype,"overrideAriaLabel",void 0);
_.S([_.R(),_.V("design:type",Boolean)],uw.prototype,"respectHtmlDir",void 0);_.S([_.R(),_.V("design:type",Boolean)],uw.prototype,"respectLangDir",void 0);_.S([_.f("plaintextOnly"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],uw.prototype,"useMixedDirectionFormattedStrings",null);_.S([_.R({computed:"computeUseAttributedString(text)"}),_.V("design:type",Boolean)],uw.prototype,"useYtAttributedString",void 0);
_.S([_.GO("text"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uw.prototype,"textChanged",null);_.S([_.GO("ellipsisTruncate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uw.prototype,"ellipsisTruncateChanged_",null);_.S([_.GO("overrideAriaLabel"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uw.prototype,"overrideAriaLabelChanged_",null);
_.S([_.GO("enableContentEditable"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uw.prototype,"enableContentEditableChanged_",null);_.S([_.Ff({is:"yt-formatted-string",disableElementRegistration:!0})],uw);
_.d(uw,"yt-formatted-string",function(){if(E0e===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;H6T===void 0&&(H6T=document.createElement("template"));var O=H6T;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);E0e=Y}Y=E0e;return Y});var tnR;var K6e;var a$M;var T2R;var O6=function(){var Y=_.Z.apply(this,arguments)||this;Y.focused=!1;Y.disabled=!1;Y.isOverlay=!1;return Y};
_.m(O6,_.Z);O6.prototype.triggerDown=function(){if(!this.disabled){_.$3(this.hostElement,"down",!0);var Y;(Y=this.currentAnimation)==null||Y.cancel()}};
O6.prototype.triggerUp=function(){if(!this.disabled){_.$3(this.hostElement,"down",!1);var Y=this.fillElement;var G=this.strokeElement;typeof GroupEffect==="function"?(Y=new GroupEffect([KH4(Y),aet(G)]),Y=new Animation(Y,document.timeline)):Y=new RJX(Y,G);this.currentAnimation=Y;var u;(u=this.currentAnimation)==null||u.play()}};
_.S([_.Ox(".stroke"),_.V("design:type",HTMLElement)],O6.prototype,"strokeElement",void 0);_.S([_.Ox(".fill"),_.V("design:type",HTMLElement)],O6.prototype,"fillElement",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],O6.prototype,"focused",void 0);_.S([_.R(),_.V("design:type",Object)],O6.prototype,"disabled",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],O6.prototype,"isOverlay",void 0);_.S([_.Ff({is:"yt-interaction",disableElementRegistration:!0})],O6);
_.d(O6,"yt-interaction",function(){if(T2R===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;a$M===void 0&&(a$M=document.createElement("template"));var O=a$M;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);T2R=Y}Y=T2R;return Y},{mode:2});var Qt=function(){return _.Z.apply(this,arguments)||this};
_.m(Qt,_.Z);_.H=Qt.prototype;_.H.ready=function(){var Y=this,G=_.l0(this.hostElement).querySelector("#button");G.addEventListener("focus",function(){GQ2||(GQ2=new YBM);Y.keyboardFocused=GQ2.isKeyBoardInUse()});
G.addEventListener("blur",function(){Y.keyboardFocused=!1;Y.rippleUp_()})};
_.H.computeTabIndex_=function(Y){return Y?-1:0};
_.H.computeButtonAriaPressed_=function(Y){if(this.toggleable)return Y?"true":"false"};
_.H.rippleDown_=function(){_.l0(this.hostElement).querySelector("#interaction").triggerDown()};
_.H.rippleUp_=function(){_.l0(this.hostElement).querySelector("#interaction").triggerUp()};
_.H.onPressedChanged_=function(){var Y=_.Bm(_.l0(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Bm(_.l0(this.hostElement).querySelector("#button")).children[0];Y&&(Y.active=this.pressed)};
Qt.prototype.onPressedChanged_=Qt.prototype.onPressedChanged_;Qt.prototype.rippleUp_=Qt.prototype.rippleUp_;Qt.prototype.rippleDown_=Qt.prototype.rippleDown_;_.S([_.R(),_.V("design:type",String)],Qt.prototype,"label",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Qt.prototype,"disabled",void 0);_.S([_.R(),_.V("design:type",Boolean)],Qt.prototype,"pressed",void 0);_.S([_.R(),_.V("design:type",Object)],Qt.prototype,"toggleable",void 0);
_.S([_.R(),_.V("design:type",Boolean)],Qt.prototype,"untabbable",void 0);_.S([_.R(),_.V("design:type",Boolean)],Qt.prototype,"keyboardFocused",void 0);_.S([_.Yo("down"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qt.prototype,"rippleDown_",null);_.S([_.Yo("up"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qt.prototype,"rippleUp_",null);
_.S([_.GO("pressed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qt.prototype,"onPressedChanged_",null);_.S([_.Ff({is:"yt-icon-button",disableElementRegistration:!0})],Qt);
_.d(Qt,"yt-icon-button",function(){if(K6e===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;tnR===void 0&&(tnR=document.createElement("template"));var O=tnR;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);K6e=Y}Y=K6e;return Y},{mode:2});var L6l;var g0e=function(){var Y=document.body,G=Y.appendChild;if(L6l===void 0){var u=document.createElement("template");_.r(u,'\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>');
L6l=u}u=L6l;G.call(Y,u.content)};
document.body?g0e():window.addEventListener("DOMContentLoaded",g0e);var Xge=_.hV(["aria-"]),MH={};MH.YtRenderButtonBehavior=[_.c.YtRendererBehavior,_.U2.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!!_.sH().resolve(_.q3(_.SO))&&_.F("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 Y=this.computeHref_(this.endpoint,!0);Y?Y6(this.elements_.endpoint,Y):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){Y=this.buttonClass.split(" ");Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next())G=G.value,_.$3(this.hostElement,G,!0),this.elements_.button&&_.$3(this.elements_.button,G,!0),this.elements_.text&&_.$3(this.elements_.text,G,!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&&(Y=null,this.buttonAccessibility&&(Y=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=Y:Y?_.k6([_.rg(Xge)],this.elements_.button,"aria-label",Y):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var Y=_.sH().resolve(_.q3(_.SO));Y&&(this.keyboardFocused=Y.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.DA("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,_.ax(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.ax(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(Y,G){if(G)for(Y=G.split(" "),Y=_.E(Y),G=Y.next();!G.done;G=Y.next())G=G.value,_.$3(this.hostElement,G,!1),this.elements_.button&&_.$3(this.elements_.button,G,!1),this.elements_.text&&_.$3(this.elements_.text,G,!1)},
buttonIconChanged_:function(Y){this.elements_.icon?Y?(this.elements_.icon.icon=Y,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.ax(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.q7(this.hostElement,"is-paper-button-with-icon",!1)):Y&&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"&&_.ax(this.elements_.button).appendChild(this.elements_.icon):_.ax(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.q7(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(Y){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,Y){var G=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(Y){case "yt_icon_button_with_label":G=!0;_.$3(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();Y=_.ax(this.elements_.button).firstElementChild;
this.elements_.icon=Y;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.ax(this.elements_.endpoint).appendChild(this.elements_.button);_.ax(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.DA("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;_.ax(this.elements_.button).appendChild(this.elements_.text);_.ax(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":G=!0,this.elements_.button=this.getYtIconButton_(),Y=_.ax(this.elements_.button).firstElementChild,this.elements_.icon=Y,this.setIconActive_(this.elements_.icon),
_.ax(this.elements_.endpoint).appendChild(this.elements_.button)}_.q7(this.hostElement,"is-icon-button",G);_.q7(this.hostElement,"is-paper-button",!G);_.q7(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 u;_.l0((u=this.container.hostElement)!=null?u:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.ax(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(Y){if(Y!=void 0||this.disabled)this.disabled=Y,this.elements_.button&&(this.elements_.button.disabled=Y)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(Y){_.F("kevlar_system_icons")&&Y&&this.data&&(this.data.isSelected!==void 0?Y.active=this.data.isSelected:this.data.isToggled!==void 0&&(Y.active=this.data.isToggled))},
observeBasicPalette_:function(Y){_.gE(this.hostElement,Y)},
disabledChanged_:function(Y){this.data&&this.set("data.isDisabled",Y)},
onYtButtonTap_:function(Y){if(this.disabled)Y.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.c$(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(Y=this.disableCommandHandlerOverride,!this.data||!this.data.command||Y||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.F("handle_service_request_actions")||_.c$(this.hostElement,[this.serviceEndpoint]),
_.$s(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.F("handle_service_request_actions")?(Y=[],this.serviceEndpoint&&Y.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&Y.push(this.data.command),Y.length&&_.UK(this.hostElement,Y,this.hostElement)):this.data&&this.data.command&&(Y=this.data.command,Y.accountUnlinkCommand||Y.accountLinkCommand||Y.insertAdCommand||Y.insertHighlightMarkerCommand||
Y.createLivestreamHighlightClipCommand||Y.getVideoUploadFeedbackCommand||Y.musicDeletePrivatelyOwnedEntityCommand||Y.ypcCancelRecurrenceEndpoint||Y.getMultiSelectCommandEndpoint?_.c$(this.hostElement,[Y]):_.UK(this.hostElement,[Y],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 Y,G=_.l0((Y=this.container.hostElement)!=null?Y:this.container);G.lastChild&&G.lastChild.tagName!="STYLE";)try{G.removeChild(G.lastChild)}catch(u){break}},
getYtIconButton_:function(){var Y=this.reuseEnabled_()?_.DA("yt-icon-button"):document.createElement("yt-icon-button"),G=_.ax(Y).firstElementChild;if(G&&G.is!="yt-icon"){for(G=_.ax(Y);G.lastChild;)G.removeChild(G.lastChild);G=null}G||(G=this.getIcon_(),this.setIconActive_(G),_.ax(Y).appendChild(G));return Y},
reuseEnabled_:function(){return _.F("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.DA("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.DA("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.PxE={};
_.PxE.YtButtonBehavior=[MH.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var Y=this.data;Y&&(this._setEndpoint(this.computeEndpoint_(Y)),this._setServiceEndpoint(this.computeServiceEndpoint_(Y)),this._setCommand(this.computeCommand_(Y)),this._setButtonIcon(this.computeButtonIcon_(Y)),this._setButtonText(this.computeButtonText_(Y,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(Y)),this._setButtonTooltip(this.computeTooltip_(Y)),this._setButtonClass(this.computeButtonClass_(Y)),this._setIconPositionType(this.computeIconPositionType_(Y)),this.updateRenderedElements())},
setPressedState:function(Y){var G;if((G=this.elements_)==null?0:G.button)this.elements_.button.pressed=!!Y},
computeIconPositionType_:function(Y){return Y&&Y.iconPosition||null},
computeEndpoint_:function(Y){var G=Y&&Y.navigationEndpoint,u=this.get("data.command.commandMetadata.webCommandMetadata.url"),O=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return G?G:Y&&Y.command&&Y.command.modalEndpoint?Y.command:u&&!O&&Y.command?Y.command:null},
computeServiceEndpoint_:function(Y){var G=Y&&Y.serviceEndpoint,u=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return G?G:u&&Y.command?Y.command:null},
computeCommand_:function(Y){return Y&&Y.command||null},
computeButtonIcon_:function(Y){return Y&&Y.icon&&Y.icon.iconType?_.Ux(Y.icon.iconType):null},
computeButtonText_:function(Y,G){return!G&&Y&&Y.text||null},
computeAccessibility_:function(Y){return this.get("accessibilityData.accessibilityData",Y)||Y&&Y.accessibility||(Y&&Y.text?{label:this.getSimpleString(Y.text)}:null)},
computeTooltip_:function(Y){return Y?Y.isDisabled&&Y.disabledTooltip||Y.tooltip||null:null},
computeButtonClass_:function(Y){var G=Y&&Y.style?Y.style.toLowerCase().replace(/_/g,"-")+" ":"";G+=Y&&Y.size?Y.size.toLowerCase().replace(/_/g,"-")+" ":"";Y.colorData&&Y.colorData.basicColorPaletteData&&Y.colorData.basicColorPaletteData.borderColor&&(G+="palette-with-border");return G.trim()}}];var Xm={};var I$4;var kql;var n0_,F6e=function(){return n0_!==void 0?n0_:n0_=document.createElement("template")};
document.head.appendChild(F6e().content);var pgX;var zpU,mne=function(){return zpU!==void 0?zpU:zpU=document.createElement("template")};
document.head.appendChild(mne().content);var W6T;var r5_,xnI=function(){return r5_!==void 0?r5_:r5_=document.createElement("template")};
document.head.appendChild(xnI().content);var f$R;var Cxl=document.head,y5T=Cxl.appendChild,ep1;if(f$R===void 0){var A5_=document.createElement("template");_.r(A5_,"\x3c!--css-build:shady--\x3e");A5_.content.insertBefore(xnI().content.cloneNode(!0),A5_.content.firstChild);f$R=A5_}ep1=f$R;y5T.call(Cxl,ep1.content);var o0U=document.head,i6e=o0U.appendChild,RpR;if(W6T===void 0){var wgl=document.createElement("template");_.r(wgl,"\x3c!--css-build:shady--\x3e");wgl.content.insertBefore(mne().content.cloneNode(!0),wgl.content.firstChild);W6T=wgl}RpR=W6T;i6e.call(o0U,RpR.content);var Z6I=document.head,Dnl=Z6I.appendChild,hpE;if(pgX===void 0){var dnE=document.createElement("template");_.r(dnE,"\x3c!--css-build:shady--\x3e");dnE.content.insertBefore(F6e().content.cloneNode(!0),dnE.content.firstChild);pgX=dnE}hpE=pgX;Dnl.call(Z6I,hpE.content);var b61;_.Px("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");b61=_.F("web_button_rework")&&_.hy("BUTTON_REWORK")||_.F("web_button_rework_with_live");_.HO=function(){return _.Z.apply(this,arguments)||this};
_.m(_.HO,_.Z);_.HO.prototype.created=function(){this.openPopupConfig=_.DE("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.HO.prototype.onYtNavigate_=function(Y){var G=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(Y.detail.endpoint);G&&(this.ytOpenPopupBehavior.openPopup(G),Y.stopPropagation(),Y.preventDefault())};
_.Uk.Object.defineProperties(_.HO,{template:{configurable:!0,enumerable:!0,get:function(){if(kql===void 0){var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
var G=Y.content,u=G.insertBefore;I$4===void 0&&(I$4=document.createElement("template"));var O=I$4;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);kql=Y}Y=kql;return Y}}});
_.HO.prototype.onYtNavigate_=_.HO.prototype.onYtNavigate_;_.S([_.x(_.cZ.YtOpenPopupBehavior),_.V("design:type",Object)],_.HO.prototype,"ytOpenPopupBehavior",void 0);_.S([_.x(_.PxE.YtButtonBehavior),_.V("design:type",Object)],_.HO.prototype,"ytButtonBehavior",void 0);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],_.HO.prototype,"onYtNavigate_",null);
_.S([_.Ff({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:b61})],_.HO);var Sgk;var N2E=_.F("web_button_rework")&&_.hy("BUTTON_REWORK")||_.F("web_button_rework_with_live"),E6=function(){var Y=_.Z.apply(this,arguments)||this;Y.isPressed=!1;Y.forceIconButton=!1;Y.forceIconOnly=!1;Y.forceModernIconButton=!1;Y.skipCommandHandling=!1;Y.alignByText=!1;Y.fitToVisibleBounds=!0;Y.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};Y.onTap=function(G){_.$s(Y.hostElement,"yt-service-request-sent-button-renderer",G)};
return Y};
_.m(E6,_.Z);_.H=E6.prototype;_.H.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.H.onClick=function(Y){var G,u=this.disabled||((G=this.data)==null?void 0:G.isDisabled);G=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");u&&G&&Y.stopPropagation()};
_.H.computeIcon=function(){var Y,G,u=(Y=this.data)==null?void 0:(G=Y.icon)==null?void 0:G.iconType;if(u)return _.Ux(u)};
_.H.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.H.handleUpdateButtonAction=function(Y){Y=_.z(Y,hc2);var G=_.z(Y==null?void 0:Y.updatedButton,_.ru);if(this.data&&Y&&G){var u=this.data;u.targetId&&Y.targetId&&u.targetId===Y.targetId&&(this.data=G)}};
_.Uk.Object.defineProperties(E6.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var Y=this;if(this.data){var G=nut({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.$s(Y.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.$s(Y.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});G.alignByText=this.alignByText;return G}}}});
_.Uk.Object.defineProperties(E6,{template:{configurable:!0,enumerable:!0,get:function(){if(Sgk===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Sgk=Y}Y=Sgk;return Y}}});
E6.prototype.onClick=E6.prototype.onClick;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],E6.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],E6.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],E6.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],E6.prototype,"isPressed",void 0);
_.S([_.R(),_.V("design:type",Object)],E6.prototype,"forceIconButton",void 0);_.S([_.R(),_.V("design:type",Object)],E6.prototype,"forceIconOnly",void 0);_.S([_.R(),_.V("design:type",Object)],E6.prototype,"forceModernIconButton",void 0);_.S([_.R(),_.V("design:type",Object)],E6.prototype,"skipCommandHandling",void 0);_.S([_.R(),_.V("design:type",Object)],E6.prototype,"alignByText",void 0);_.S([_.R(),_.V("design:type",Object)],E6.prototype,"buttonTooltipPosition",void 0);
_.S([_.R(),_.V("design:type",Object)],E6.prototype,"fitToVisibleBounds",void 0);_.S([_.R({computed:"computeTooltip(data)"}),_.V("design:type",Object)],E6.prototype,"tooltip",void 0);_.S([_.R(),_.V("design:type",Object)],E6.prototype,"overrides",void 0);_.S([_.R(),_.V("design:type",Boolean)],E6.prototype,"disabled",void 0);_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],E6.prototype,"onClick",null);
_.S([_.f("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.V("design:type",Object),_.V("design:paramtypes",[])],E6.prototype,"computedButtonShape",null);_.S([_.Ff({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!N2E,cssBuildOptOut:!0}),_.Ff({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!N2E,cssBuildOptOut:!0})],E6);var jpU;var VnM;var ti=function(){var Y=_.Z.apply(this,arguments)||this;Y.empty_=!0;Y.loadTime=Infinity;Y.pendingPaint=!1;Y.hasChange_=!1;Y.oldThumbnail_=null;Y.oldDelayedSrc_="";Y.objectURL_=null;return Y};
_.m(ti,_.Z);_.H=ti.prototype;_.H.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.H.ready=function(){var Y=this.shouldShowPlaceholder_();_.$3(this.hostElement,"no-transition",!0);Y&&this.hostElement.classList.add("with-placeholder")};
_.H.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.H.isThumbPreloaded_=function(Y){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",Y)};
_.H.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||l$R};
_.H.computeThumbnailSrc_=function(Y){return Y&&Y.thumbnails?_.dH(Y.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.H.computeAlt_=function(){var Y=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&Y||""};
_.H.thumbnailChanged_=function(){var Y=_.E([this.thumbnail,this.oldThumbnail_]),G=Y.next().value;Y=Y.next().value;this.oldThumbnail_=G;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(Y=this.computeThumbnailSrc_(Y),this.computeThumbnailSrc_(G)===Y))return;_.F("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(G)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):G&&_.hy("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.sk(this,this.onReload_):_.sk(this,this.onShow_):this.resetImage_();G&&(this.hostElement.style.opacity=""+G.opacity)}};
_.H.delayedSrcChanged_=function(){var Y=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===Y||this.resetImage_()};
_.H.setSrc_=function(Y){Y?(_.l0(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.l0(this.hostElement).querySelector("#img").src=Y):(_.l0(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.H.resetImage_=function(){F6t(this.hostElement);this.empty_=!0;this.setSrc_(l$R);this.ytRendererBehavior.invalidate(!1)};
_.H.observePlaceholderColor_=function(){var Y=this.thumbnail&&this.thumbnail.placeholderColor;Y?this.hostElement.style.backgroundColor=_.k3(Y):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.H.onLoad_=function(){_.l0(this.hostElement).querySelector("#img").src&&_.l0(this.hostElement).querySelector("#img").src!==l$R&&(n0y(this.hostElement),this.notifyOnLoaded&&_.$s(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.H.onError_=function(){var Y=this;if(_.F("web_use_cache_for_image_fallback"))$y(_.l0(this.hostElement).querySelector("#img").src).then(function(G){Y.objectURL_=_.UT(G).toString();Y.setSrc_(Y.objectURL_)}).catch(function(){_.F("kevlar_woffle_fallback_image")&&Y.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.H.onPrescanVisible=function(){this.onShow_()};
_.H.onVisible=function(){if(_.F("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.H.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var Y=this.computeSrc_();Y!==_.l0(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(Y))}};
_.H.onReload_=function(){this.empty_=!1;var Y=this.computeSrc_();Y!==_.l0(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(Y))};
_.H.shouldShowPlaceholder_=function(){return _.F("kevlar_thumbnail_bg")};
ti.prototype.observePlaceholderColor_=ti.prototype.observePlaceholderColor_;ti.prototype.delayedSrcChanged_=ti.prototype.delayedSrcChanged_;ti.prototype.thumbnailChanged_=ti.prototype.thumbnailChanged_;_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],ti.prototype,"alt",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ti.prototype,"ariaHidden",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],ti.prototype,"ariaLabel",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],ti.prototype,"hidden",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],ti.prototype,"id",void 0);_.S([_.x(_.xY.YtVisibilityBehavior),_.V("design:type",Object)],ti.prototype,"ytVisibilityBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",String)],ti.prototype,"delayedSrc",void 0);
_.S([_.R(),_.V("design:type",Object)],ti.prototype,"thumbnail",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],ti.prototype,"loaded",void 0);_.S([_.R(),_.V("design:type",Boolean)],ti.prototype,"notifyOnLoaded",void 0);_.S([_.R(),_.V("design:type",Number)],ti.prototype,"height",void 0);_.S([_.R(),_.V("design:type",Number)],ti.prototype,"width",void 0);_.S([_.R({value:function(){return"width"}}),
_.V("design:type",String)],ti.prototype,"dimension",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],ti.prototype,"fit",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],ti.prototype,"fitHeight",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],ti.prototype,"fitWidth",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],ti.prototype,"objectFit",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],ti.prototype,"objectPosition",void 0);_.S([_.R(),_.V("design:type",String)],ti.prototype,"preferredThumbnail",void 0);_.S([_.R({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.V("design:type",String)],ti.prototype,"alt_",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],ti.prototype,"sharedTooltipText",void 0);
_.S([_.R(),_.V("design:type",Boolean)],ti.prototype,"ftlEligible",void 0);_.S([_.R({value:void 0}),_.V("design:type",String)],ti.prototype,"observeHiddenOption",void 0);_.S([_.R({value:"observe_once"}),_.V("design:type",String)],ti.prototype,"observePrescanOption",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],ti.prototype,"roundedContainer",void 0);
_.S([_.Ex("thumbnail"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ti.prototype,"thumbnailChanged_",null);_.S([_.Ex("delayedSrc"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ti.prototype,"delayedSrcChanged_",null);_.S([_.GO("thumbnail.placeholderColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ti.prototype,"observePlaceholderColor_",null);
_.S([_.Ff({is:"yt-img-shadow",disableElementRegistration:!0})],ti);var l$R=_.hy("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.$o()(ti,"yt-img-shadow",function(){if(VnM===void 0){var Y=document.createElement("template");_.r(Y,'\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">');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;jpU===void 0&&(jpU=document.createElement("template"));var O=jpU;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);VnM=Y}Y=VnM;return Y},{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 $da;_.KZ=new _.Sb("SCREEN_MANAGER_TOKEN");$da=new _.Sb("LOG_INITIAL_SCREEN_TOKEN");var B2I=kh({entities:{}});_.at=nz(B2I)(B2I.entities,{selectSfvAudioItemPlaybackState:function(Y,G){var u,O;Y=(O=_.v2(Y,"sfvAudioItemCurrentlyPlayingEntity",G))!=null?O:void 0;return(u=Y==null?void 0:Y.sfvAudioItemPlaybackState)!=null?u:void 0},
playlistLoopStateEntitySelector:zwA,toggleMenuServiceItemEntitySelector:mmT});_.Tr=_.D(function(Y){function G(U){return _.z(U,_.Ck)}
function u(){var U=O().isTogglingDisabled||W()&&O().toggledIsTogglingDisabled,Mj=U||k()?W():!W();C(Mj);w(!1);if(!U){var Xt;(Xt=t)==null||Xt(!!Mj)}var ka;((ka=M)==null?0:ka())||_.YR(_.sH().resolve(_.KZ),O().trackingParams);var aU;if(!Mj||!G(O().defaultButtonViewModel)||(aU=M)!=null&&aU()){var Tg;!G(O().toggledButtonViewModel)||((Tg=M)==null?0:Tg())||_.YR(_.sH().resolve(_.KZ),G(O().toggledButtonViewModel).trackingParams)}else _.YR(_.sH().resolve(_.KZ),G(O().defaultButtonViewModel).trackingParams)}
var O=Y.data,Q=Y.buttonShapeOverrides,M=Y.disableExplicitClickLogging,t=Y.onToggle,K=Y.style,L=Y.useOutlinedIcon,g=Y.className,P=function(){var U,Mj;return W()?(U=Y.animatedTextPropsToggled)==null?void 0:U.call(Y):(Mj=Y.animatedTextPropsDefault)==null?void 0:Mj.call(Y)},I=_.p2(function(){return P()?Object.assign({},P(),{shouldAnimate:e()}):void 0},void 0,"Zp4uoe"),k=function(){var U;
return((U=h())==null?void 0:U.isToggled)!==void 0},n=_.E(_.SN(function(){var U,Mj,Xt;
return k()?(U=h())==null?void 0:U.isToggled:(Xt=Q==null?void 0:(Mj=Q())==null?void 0:Mj.toggled)!=null?Xt:O().isToggled})),p=n.next().value;
n=n.next().value;var W=p,C=n;n=_.E(_.SN(function(){var U,Mj;return(U=Y.animatedTextPropsToggled)==null?void 0:(Mj=U.call(Y))==null?void 0:Mj.shouldAnimate}));
p=n.next().value;n=n.next().value;var e=p,w=n;p=_.E(_.IE(!1,void 0,"mq3Zfe"));var B=p.next().value,N=p.next().value,h=_.Hx(function(U){a:{var Mj=O().entityKey,Xt=O().toggledStateEntitySelectorType;if(Xt)switch(Xt){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Mj)break;U=_.at.selectSfvAudioItemPlaybackState(U,Mj);if(U==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){U={isToggled:!0};break a}if(U){U={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":U={isToggled:_.fkI(U).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":U={isToggled:_.fkI(U).includes("engagement-panel-live-chat-item-section")};break a;default:_.R0(new _.I2("Error: entitySelectorType defined but not matched in selector.",U,Xt))}U=void 0}return U}),q=function(){return Object.assign({},Q==null?void 0:Q(),{onToggle:u,
toggleable:!0,toggled:W(),focused:B()})};
return _.T("toggle-button-view-model",{"on:focusin":_.U3(function(){var U=_.sH().resolve(_.q3(_.SO));U&&N(U.isKeyBoardInUse());return!1}),
"on:focusout":_.U3(function(){N(!1);return!1})},_.T(_.X,{cond:function(){return W()?G(O().toggledButtonViewModel):G(O().defaultButtonViewModel)},
then:function(U){return _.T(_.$Y,{data:U,className:g,style:K,useOutlinedIcon:L,buttonOverrides:q,animatedTextProps:I})}}))},"ha");
_.Tr.idomCompat={callbacks:{onToggle:!0}};_.hR(_.D(function(Y){return _.T("yt-toggle-button-view-model",{class:function(){var G;return(G=Y.scopingClassName)==null?void 0:G.call(Y)}},_.T(_.Tr,{data:function(){var G;
return(G=Y.data)==null?void 0:G.call(Y)},
buttonShapeOverrides:function(){var G;return(G=Y.overrides)==null?void 0:G.call(Y)},
animatedTextPropsDefault:function(){var G;return(G=Y.animatedTextPropsDefault)==null?void 0:G.call(Y)},
animatedTextPropsToggled:function(){var G;return(G=Y.animatedTextPropsToggled)==null?void 0:G.call(Y)},
disableExplicitClickLogging:function(){var G;return(G=Y.disableExplicitClickLogging)==null?void 0:G.call(Y)},
onToggle:function(G){var u;return(u=Y.onToggle)==null?void 0:u.call(Y,G)},
style:function(){var G;return(G=Y.style)==null?void 0:G.call(Y)},
useOutlinedIcon:function(){var G;return(G=Y.useOutlinedIcon)==null?void 0:G.call(Y)},
className:function(){var G;return(G=Y.className)==null?void 0:G.call(Y)}}))},"ia"),"yt-toggle-button-view-model",{props:{data:_.AC,
buttonShapeOverrides:_.AC,overrides:_.AC,animatedTextPropsDefault:_.AC,animatedTextPropsToggled:_.AC,disableExplicitClickLogging:_.AC,onToggle:_.wH,style:_.AC,useOutlinedIcon:_.AC,className:_.AC,scopingClassName:_.AC}});var LZ=function(){return _.Z.apply(this,arguments)||this};
_.m(LZ,_.Z);LZ.prototype.onTap=function(Y){Y.stopPropagation();Y=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.zP("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:Y})):this.ytLiveChatReduxBehavior.dispatch(_.t$("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:Y}))};
_.Uk.Object.defineProperties(LZ.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.engagementState)==null?void 0:Y.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y=_.z(this.data.toggleButton,_.eD),G;if(Number(((G=this.likeCountState)==null?void 0:G.likeCountIfIndifferentNumber)||"0")===0){var u;G=((u=this.data.likeCountPlaceholder)==null?void 0:u.content)||""}else{var O,Q,M;G=((O=this.likeCountState)==null?void 0:(Q=O.likeCountIfIndifferent)==null?void 0:Q.content)||((M=this.data.likeCountPlaceholder)==null?void 0:M.content)||""}var t,K;u=((t=this.likeCountState)==null?void 0:(K=
t.likeCountIfLiked)==null?void 0:K.content)||"1";t=_.z(Y.toggledButtonViewModel,_.Ck);return Object.assign({},Y,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.z(Y.defaultButtonViewModel,_.Ck),{title:G})},toggledButtonViewModel:{buttonViewModel:Object.assign({},t,{title:u})}})}}}});
LZ.prototype.onTap=LZ.prototype.onTap;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],LZ.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.pI),_.V("design:type",Object)],LZ.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],LZ.prototype,"data",void 0);
_.S([_.R({selectorArgs:["data.likeCountEntityKey"],selector:CGg}),_.V("design:type",Object)],LZ.prototype,"likeCountState",void 0);_.S([_.R({selectorArgs:["data.engagementStateKey"],selector:ZEt}),_.V("design:type",Object)],LZ.prototype,"engagementState",void 0);_.S([_.f("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],LZ.prototype,"isLiked",null);
_.S([_.f("data","likeCountState","isLiked"),_.V("design:type",Object),_.V("design:paramtypes",[])],LZ.prototype,"toggleButton",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],LZ.prototype,"onTap",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],LZ);
_.d(LZ,"yt-live-chat-like-button-view-model",function(){if(svk===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;q72===void 0&&(q72=document.createElement("template"));var O=q72;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);svk=Y}Y=svk;return Y},{mode:0});var $n2;var qg4;var gM=function(){return _.Z.apply(this,arguments)||this};
_.m(gM,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],gM.prototype,"data",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],gM);
_.d(gM,"yt-live-chat-paid-message-footer-renderer",function(){if(qg4===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;$n2===void 0&&($n2=document.createElement("template"));var O=$n2;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);qg4=Y}Y=qg4;return Y},{mode:0});var spR;var c51;var Une;var v0V,J52=function(){if(v0V!==void 0)return v0V;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Une===void 0&&(Une=document.createElement("template"));var O=Une;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return v0V=Y};var PO=function(){return _.Z.apply(this,arguments)||this};
_.m(PO,_.Z);PO.prototype.onTap=function(Y){Y.stopPropagation()};
_.Uk.Object.defineProperties(PO.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y=_.z(this.data.replyButton,_.Ck),G,u,O,Q,M,t,K,L=Number(((G=this.replyCountState)==null?void 0:G.replyCountNumber)||"0")===0?(u=this.data)==null?void 0:(O=u.replyCountPlaceholder)==null?void 0:O.content:((Q=this.replyCountState)==null?void 0:(M=Q.replyCount)==null?void 0:M.content)||((t=this.data)==null?void 0:(K=t.replyCountPlaceholder)==null?void 0:K.content)||"",g;return Object.assign({},
Y,{title:L,accessibilityText:(g=this.replyCountState)==null?void 0:g.replyButtonAccessibilityText})}}}});
_.Uk.Object.defineProperties(PO,{template:{configurable:!0,enumerable:!0,get:function(){return J52()}}});
PO.prototype.onTap=PO.prototype.onTap;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],PO.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.pI),_.V("design:type",Object)],PO.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],PO.prototype,"data",void 0);
_.S([_.R({selectorArgs:["data.replyCountEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"replyCountEntity",G)}}),
_.V("design:type",Object)],PO.prototype,"replyCountState",void 0);_.S([_.f("data","replyCountState"),_.V("design:type",Object),_.V("design:paramtypes",[])],PO.prototype,"buttonViewModel",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],PO.prototype,"onTap",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],PO);_.d(PO,"yt-live-chat-reply-button-view-model",function(){return J52()},{mode:0});var YJ2;var GVM;var FR=function(){var Y=_.Z.apply(this,arguments)||this;Y.ariaLabel="";return Y};
_.m(FR,_.Z);
FR.prototype.dataChanged=function(){for(var Y=(0,_.sb)(_.l0(this.hostElement).querySelector("#image"));Y.firstChild;)Y.removeChild(Y.firstChild);if(this.data)if(this.data.icon){var G=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(G.polymerController.icon="yt-sys-icons:shield_empty",G.polymerController.defaultToFilled=!0):G.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();Y.appendChild(G)}else if(this.data.customThumbnail){G=document.createElement("img");
var u=_.T2A(this.data.customThumbnail.thumbnails,16);u?(G.src=u,Y.appendChild(G),G.setAttribute("alt",this.hostElement.ariaLabel||"")):_.R0(new _.I2("Could not compute URL for thumbnail",this.data.customThumbnail))}};
FR.prototype.identity=function(Y){return Y};
FR.prototype.computeType=function(Y){return qb(Y||void 0)};
FR.prototype.dataChanged=FR.prototype.dataChanged;_.S([_.R(),_.V("design:type",Object)],FR.prototype,"data",void 0);_.S([_.R({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.V("design:type",Object)],FR.prototype,"ariaLabel",void 0);_.S([_.R({computed:"computeType(data)",reflectToAttribute:!0}),_.V("design:type",String)],FR.prototype,"type",void 0);
_.S([_.R({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.V("design:type",String)],FR.prototype,"sharedTooltipText",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("enable_new_shield_moderator_badge")}}),
_.V("design:type",Boolean)],FR.prototype,"enableNewModeratorBadge",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],FR.prototype,"dataChanged",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],FR);
_.d(FR,"yt-live-chat-author-badge-renderer",function(){if(GVM===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;YJ2===void 0&&(YJ2=document.createElement("template"));var O=YJ2;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);GVM=Y}Y=GVM;return Y},{mode:0});var u6E;var OER;var pZ=function(){return _.Z.apply(this,arguments)||this};
_.m(pZ,_.Z);_.H=pZ.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(Y){return Y?Y.filter(function(G){return qb(G.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.H.computeBadgesOutsideChip=function(Y){return this.prependChatBadges||!Y?[]:Y.filter(function(G){G=qb(G.liveChatAuthorBadgeRenderer);return G!=="verified"&&G!=="owner"})};
_.H.computeBadgesBeforeChip=function(Y){return this.prependChatBadges&&Y?Y.filter(function(G){G=qb(G.liveChatAuthorBadgeRenderer);return G!=="verified"&&G!=="owner"}):[]};
_.H.computeIsHighlighted=function(Y,G){var u=!!YCI(Y,"owner"),O=!!YCI(Y,"verified");Y=!!YCI(Y,"moderator");return(u||O&&!Y)&&!G};
_.H.computeAuthorType=function(Y){return JkU(Y)};
_.H.computeAuthorClass=function(Y,G){return G?(Y?Y+" ":"")+"single-line":Y};
_.H.onSeedColorChanged=function(){_.F("live_chat_author_name_color_usernames")||_.F("live_chat_seed_color_usernames")||_.F("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):_.F("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
pZ.prototype.onSeedColorChanged=pZ.prototype.onSeedColorChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],pZ.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],pZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],pZ.prototype,"authorName",void 0);_.S([_.R(),_.V("design:type",Array)],pZ.prototype,"authorBadges",void 0);
_.S([_.R({computed:"computeAuthorType(authorBadges)"}),_.V("design:type",String)],pZ.prototype,"authorType",void 0);_.S([_.R({computed:"computeAuthorClass(authorType, singleLine)"}),_.V("design:type",String)],pZ.prototype,"authorClass",void 0);_.S([_.R({computed:"computeBadgesInsideChip(authorBadges)"}),_.V("design:type",Array)],pZ.prototype,"badgesInsideChip",void 0);_.S([_.R({computed:"computeBadgesOutsideChip(authorBadges)"}),_.V("design:type",Array)],pZ.prototype,"badgesOutsideChip",void 0);
_.S([_.R({computed:"computeBadgesBeforeChip(authorBadges)"}),_.V("design:type",Array)],pZ.prototype,"badgesBeforeChip",void 0);_.S([_.R({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.V("design:type",Boolean)],pZ.prototype,"isHighlighted",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("enable_new_shield_moderator_badge")}}),
_.V("design:type",Boolean)],pZ.prototype,"enableNewModeratorTextColor",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],pZ.prototype,"singleLine",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],pZ.prototype,"disableHighlighting",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],pZ.prototype,"dashboardMoneyFeed",void 0);_.S([_.R({value:_.F("live_chat_prepend_badges"),reflectToAttribute:!0}),_.V("design:type",Boolean)],pZ.prototype,"prependChatBadges",void 0);
_.S([_.R(),_.V("design:type",String)],pZ.prototype,"authorNameColor",void 0);_.S([_.Ox("#author-name"),_.V("design:type",HTMLDivElement)],pZ.prototype,"username",void 0);_.S([_.GO("authorNameColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pZ.prototype,"onSeedColorChanged",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],pZ);
_.d(pZ,"yt-live-chat-author-chip",function(){if(OER===void 0){var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;u6E===void 0&&(u6E=document.createElement("template"));var O=u6E;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);OER=Y}Y=OER;return Y},{mode:0});var Ql4;var MeR;var zr=function(){var Y=_.Z.apply(this,arguments)||this;Y.debounceCommand=_.pu(function(G){Y.ytComponentBehavior.resolveCommand(G)},1500);
return Y};
_.m(zr,_.Z);zr.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var Y=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",G,u,O=this.isHearted?(G=this.data)==null?void 0:G.unheartCommand:(u=this.data)==null?void 0:u.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.zP("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:Y}));(Y=_.FS(O))&&this.debounceCommand(Y)}};
_.Uk.Object.defineProperties(zr.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var Y,G;if(!((Y=this.data)==null?0:(G=Y.creatorThumbnail)==null?0:G.sources))return{};Y={thumbnails:[]};G={};G.url=this.data.creatorThumbnail.sources[0].url;Y.thumbnails.push(G);return Y}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((u=this.engagementState)==null?void 0:u.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}}});
zr.prototype.onTap=zr.prototype.onTap;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],zr.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],zr.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.pI),_.V("design:type",Object)],zr.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],zr.prototype,"data",void 0);
_.S([_.R({selectorArgs:["data.engagementStateKey"],selector:ZEt}),_.V("design:type",Object)],zr.prototype,"engagementState",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],zr.prototype,"thumbnailDetails",null);_.S([_.f("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],zr.prototype,"isHearted",null);_.S([_.f("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],zr.prototype,"isEditable",null);
_.S([_.f("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],zr.prototype,"showCreatorView",null);_.S([_.f("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],zr.prototype,"showButton",null);_.S([_.f("data","isHearted"),_.V("design:type",String),_.V("design:paramtypes",[])],zr.prototype,"label",null);_.S([_.f("data","isHearted"),_.V("design:type",Object),_.V("design:paramtypes",[])],zr.prototype,"heartHoverText",null);
_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zr.prototype,"onTap",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],zr);
_.d(zr,"yt-live-chat-creator-heart-view-model",function(){if(MeR===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Ql4===void 0&&(Ql4=document.createElement("template"));var O=Ql4;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);MeR=Y}Y=MeR;return Y},{mode:0});var HEI=function(){this.internalMap={}};
_.H=HEI.prototype;_.H.contains=function(Y){return Object.prototype.hasOwnProperty.call(this.internalMap,Y)};
_.H.get=function(Y){if(this.contains(Y))return this.internalMap[Y]};
_.H.set=function(Y,G){this.internalMap[Y]=G};
_.H.getKeys=function(){return Object.keys(this.internalMap)};
_.H.remove=function(Y){delete this.internalMap[Y]};var mB=function(){this.mappings=new HEI;this.errorCallbacks=new Set};
mB.prototype.getModuleId=function(Y){return Y.serviceId.getModuleId()};
mB.prototype.get=function(Y){a:{var G=this.mappings.get(Y.toString());switch(G.type){case "mapping":Y=G.value;break a;case "factory":G=G.value();this.mappings.set(Y.toString(),{type:"mapping",value:G});Y=G;break a;default:Y=_.YV(G)}}return Y};
mB.prototype.registerService=function(Y,G){this.mappings.set(Y.toString(),{type:"mapping",value:G});return Y};
mB.prototype.onLoadError=function(Y){var G=this;this.errorCallbacks.add(Y);return function(){G.errorCallbacks.delete(Y)}};
new mB;var E92=function(){};
_.H=E92.prototype;
_.H.JSC$14506_getRequest=function(Y,G,u){G=G===void 0?{}:G;u=u===void 0?muX:u;var O=G;if(this.isNavigationCommand()){var Q,M=(Q=_.z(Y==null?void 0:Y.commandMetadata,_.ug))==null?void 0:Q.url;O=_.el(Y.clickTrackingParams,!0,!1,M,this.JSC$14506_getClientScreen(O))}else O=_.el(Y.clickTrackingParams,!1,this.includeCsn);O={context:O};if(Q=this.getExtension(Y))return this.JSC$14506_buildRequest(O,Q,G),Q=this.getApiUrl(Y),M=Object.assign({},{command:Y},this.getRequestConfig(Y,G)),O={input:Q,requestShell:Av(Q),
innerTubeRequest:O,config:M},O.config.authStrategy?O.config.authStrategy.identity=u:O.config.authStrategy={identity:u},(Y=this.JSC$14506_getRequestKey(Y,G))&&!O.config.requestKey&&(O.config.requestKey=Y),O;Y=new _.I2("Error: Failed to create Request from Command.",Y);_.o0(Y)};
_.H.getApiUrl=function(Y){var G=_.Ds(this.getApiPaths(Y)),u;(Y=(u=_.z(Y.commandMetadata,_.ug))==null?void 0:u.apiUrl)&&(G=Y);return NuU(SLj(G))};
_.H.isNavigationCommand=function(){return!1};
_.H.JSC$14506_getClientScreen=function(){};
_.H.JSC$14506_getRequestKey=function(){};
_.H.getRequestConfig=function(){};
_.Uk.Object.defineProperties(E92.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var WO=function(){};
_.m(WO,E92);WO.prototype.JSC$14513_getStoreKey=function(){};
WO.prototype.JSC$14506_getRequestKey=function(Y,G){G=G===void 0?{}:G;return this.JSC$14513_getStoreKey(Y,G)};var rM=function(){};
_.m(rM,WO);rM.prototype.JSC$14506_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:Av("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
rM.prototype.getApiPaths=function(){return[]};
rM.prototype.getExtension=function(){};
rM.prototype.JSC$14506_buildRequest=function(){};var te1={},KHE=(te1.GET_DATASYNC_IDS=xh(rM),te1);var aee,TFR,LHR,FH4,kVe,xf,Ie4,g9U,PV4,XSe;aee="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store manifest player_preload shorts_prefetch".split(" ");TFR=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.Af=function(Y,G,u,O,Q,M,t,K,L){this.endpointMap=Y;this.networkManager=G;this.authService=u;this.responseProcessorMap=O;this.innertubeResponseStore=Q;this.contextProcessors=M;this.asyncContextProcessors=t;this.localInnertubeRouter=K;this.requestSequencer=L;this.inflightRequests=new Map;Y.signalEndpointMap||(Y.signalEndpointMap={});Y.signalEndpointMap=Object.assign({},KHE,Y.signalEndpointMap)};
LHR=function(Y,G,u,O,Q,M,t,K,L){if(_.Af.instance!==void 0){if(O=_.Af.instance,Y=[Y!==O.endpointMap,G!==O.networkManager,u!==O.authService,Q!==O.innertubeResponseStore,M!==O.contextProcessors,t!==O.asyncContextProcessors,K!==O.localInnertubeRouter],Y.some(function(g){return g}))throw new _.I2("InnerTubeTransportService is already initialized",Y);
}else _.Af.instance=new _.Af(Y,G,u,O,Q,M,t,K,L)};
_.iv=function(Y,G,u){var O=O===void 0?muX:O;var Q=g9U(Y,G);return Q?new _.a0(function(M,t){var K,L,g,P,I;return _.a(function(k){switch(k.nextAddress){case 1:return k.yield(Q,2);case 2:K=k.yieldResult;L=K.JSC$14506_getRequest(G,u,O);if(!L){t(new _.I2("Error: Failed to build request for command.",G));k.jumpTo(0);break}mw(L.input);P=((g=L.requestShell)==null?void 0:g.mode)==="cors"?"cors":void 0;if(Y.authService.syncHeaders){I=XSe(L.config,P);k.jumpTo(4);break}return k.yield(PV4(L.config,P),5);case 5:I=
k.yieldResult;case 4:M(Ie4(Y,L,I)),_.Sd(k)}})}):_.Ld(new _.I2("Error: No request builder found for command.",G))};
FH4=function(Y,G,u,O){var Q=Q===void 0?muX:Q;var M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N,h,q;return _.a(function(U){switch(U.nextAddress){case 1:M=oua(G,Y.endpointMap);if(!M)throw new _.I2("Error: No streaming request builder found for command",G);t=M.JSC$14506_getRequest(G,u,Q);if(!t)throw new _.I2("Failed to build YtRequest for streaming Command",G);if((K=Y.localInnertubeRouter)==null||!K.shouldPreferLocalResponse(t.input,t.innerTubeRequest)){U.jumpTo(2);break}return U.yield(Y.localInnertubeRouter.localInnertubeResponse(t.input,
t.innerTubeRequest),3);case 3:return L=U.yieldResult,g={},L.playerResponse&&(xf(Y,L.playerResponse,t),g.player=L.playerResponse,(P=O)==null||P(g,L)),L.watchNextResponse&&(xf(Y,L.watchNextResponse,t),g.content=L.watchNextResponse,(I=O)==null||I(g,L)),U.return(g);case 2:return U.yield(kVe(Y,t),4);case 4:n=((k=t.requestShell)==null?void 0:k.mode)==="cors"?"cors":void 0;if(Y.authService.syncHeaders){p=XSe(t.config,n);U.jumpTo(5);break}return U.yield(PV4(t.config,n),6);case 6:p=U.yieldResult;case 5:return e=
(C=(W=t.requestShell)==null?void 0:W.headers)!=null?C:{},t.requestShell=Object.assign({},t.requestShell,{headers:Object.assign({},e,p)}),w=Object.assign({},t.requestShell),B=JSON.stringify(t.innerTubeRequest),t.requestShell.method==="POST"&&(w=Object.assign({},w,{body:B})),N=function(Mj,Xt){xf(Y,Xt.playerResponse||Xt.watchNextResponse||Xt.reelItemWatchResponse||Xt.reelWatchSequenceResponse,t);O==null||O(Mj,Xt);Xt.playerResponse&&CgT()},h={},U.yield(n94(Y.networkManager,t.input,w,N),7);
case 7:return h=U.yieldResult,((q=t.config)==null?0:q.responseTick)&&_.pQ(t.config.responseTick),U.return(h)}})};
_.Cl=function(Y,G,u,O,Q){Q=Q===void 0?{authStrategy:{identity:muX}}:Q;var M=M===void 0?!0:M;var t=function(){};
t=HI4(Q8y(u));G.context||(G.context=_.el(O,M));return new _.a0(function(K){var L,g,P,I,k;return _.a(function(n){if(n.nextAddress==1)return L=SLj(u),g=_.ec(L),Y.authService.syncHeaders?(P=XSe(Q,g),n.jumpTo(2)):n.yield(PV4(Q,g),3);n.nextAddress!=2&&(P=n.yieldResult);I=NuU(SLj(u));k={input:I,requestShell:Av(I),innerTubeRequest:G,config:Q};K(Ie4(Y,k,P,t));_.Sd(n)})})};
kVe=function(Y,G){var u,O,Q,M,t,K,L,g,P,I,k;return _.a(function(n){switch(n.nextAddress){case 1:if(!((u=G)==null?0:(O=u.innerTubeRequest)==null?0:O.context)){n.jumpTo(0);break}Q=G.innerTubeRequest.context;if(!(Y.asyncContextProcessors&&Y.asyncContextProcessors.length>0)){n.jumpTo(3);break}M=[];t=_.E(Y.asyncContextProcessors);for(K=t.next();!K.done;K=t.next())L=K.value,g=L.processContext(G),g.wrappedPromise_&&M.push(g.wrappedPromise_);if(!(M.length>0)){n.jumpTo(3);break}return n.yield(Promise.all(M),
3);case 3:P=_.E(Y.contextProcessors||[]),I=P.next();case 6:if(I.done){n.jumpTo(0);break}k=I.value;return n.yield(k.processContext(Q),7);case 7:I=P.next(),n.jumpTo(6)}})};
xf=function(Y,G,u){var O;if(G&&!(G==null?0:(O=G.sequenceMetaData)==null?0:O.skipProcessing)&&Y.responseProcessorMap){O=_.E(aee);for(var Q=O.next();!Q.done;Q=O.next())Q=Q.value,Y.responseProcessorMap[Q]&&Y.responseProcessorMap[Q].handleResponse(G,u)}};
Ie4=function(Y,G,u,O){O=O===void 0?function(){}:O;
var Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N,h,q,U,Mj,Xt,ka,aU,Tg,iy,hY,dA,nT,u_;return _.a(function(jT){switch(jT.nextAddress){case 1:t=(Q=G.config)==null?void 0:(M=Q.storeStrategy)==null?void 0:M.storeKey;if(!(t&&Y.innertubeResponseStore&&Y.innertubeResponseStore.has(t))||((K=G.config)==null?0:(L=K.storeStrategy)==null?0:L.disableCache)){jT.jumpTo(2);break}return jT.yield(Y.innertubeResponseStore.get(t),3);case 3:g=jT.yieldResult;if(!g||g.isExpired()){jT.jumpTo(2);break}P=_.sn(g);if(!_.F("web_process_response_store_responses")||
g.isProcessed()){jT.jumpTo(5);break}xf(Y,P,G);return jT.yield(Y.innertubeResponseStore.markAsProcessed(t),5);case 5:return jT.return(Promise.resolve(P));case 2:if((I=Y.localInnertubeRouter)==null||!I.shouldPreferLocalResponse(G.input,G.innerTubeRequest)){jT.jumpTo(7);break}return jT.yield(Y.localInnertubeRouter.localInnertubeResponse(G.input,G.innerTubeRequest),8);case 8:return k=jT.yieldResult,xf(Y,k,G),jT.return(k);case 7:return jT.yield(kVe(Y,G),9);case 9:return(W=(p=G.config)==null?void 0:p.requestKey)&&
Y.inflightRequests.has(W)?n=Y.inflightRequests.get(W):(C=JSON.stringify(G.innerTubeRequest),B=(w=(e=G.requestShell)==null?void 0:e.headers)!=null?w:{},G.requestShell=Object.assign({},G.requestShell,{headers:Object.assign({},B,u)}),N=Object.assign({},G.requestShell),G.requestShell.method==="POST"&&(N=Object.assign({},N,{body:C})),((h=G.config)==null?0:h.requestTick)&&_.pQ(G.config.requestTick),q=function(){return Y.networkManager.fetch(G.input,N,G.config)},n=Y.requestSequencer?pSE(Y.requestSequencer,
G,q):q(),W&&Y.inflightRequests.set(W,n)),jT.yield(n,10);
case 10:(U=jT.yieldResult)&&_.F("web_streaming_player")&&Array.isArray(U)&&(U=U[0].playerResponse);if(U&&"error"in U&&((Mj=U)==null?0:(Xt=Mj.error)==null?0:Xt.details))for(ka=U.error.details,aU=_.E(ka),Tg=aU.next();!Tg.done;Tg=aU.next())iy=Tg.value,(hY=iy["@type"])&&TFR.indexOf(hY)>-1&&(delete iy["@type"],U=iy);W&&Y.inflightRequests.has(W)&&Y.inflightRequests.delete(W);((dA=G.config)==null?0:dA.responseTick)&&_.pQ(G.config.responseTick);if(U||(nT=Y.localInnertubeRouter)==null||!nT.canProvideFallbackResponse(G.input,
G.innerTubeRequest)){jT.jumpTo(11);break}return jT.yield(Y.localInnertubeRouter.localFallbackInnertubeResponse(G.input,G.innerTubeRequest),12);case 12:U=jT.yieldResult;case 11:return xf(Y,U,G),((u_=G.config)==null?0:u_.processorTick)&&_.pQ(G.config.processorTick),O(),jT.return(U||void 0)}})};
_.oS=function(Y,G){return Acu(G,Y.endpointMap)};
g9U=function(Y,G){Y=iW4(G,Y.endpointMap);if(Y!==void 0)return Promise.resolve(Y)};
PV4=function(Y,G){var u,O,Q,M;return _.a(function(t){if(t.nextAddress==1){Q=(u=Y)==null?void 0:(O=u.authStrategy)==null?void 0:O.sessionIndex;var K=t.yield;var L=_.v$(C0y({sessionIndex:Q}));return K.call(t,L,2)}M=t.yieldResult;return t.return(Promise.resolve(Object.assign({},Rwj(G),M)))})};
XSe=function(Y,G){var u;Y=Y==null?void 0:(u=Y.authStrategy)==null?void 0:u.sessionIndex;u=C0y({sessionIndex:Y});return Object.assign({},Rwj(G),u)};var zxE,mLk,WHE,rFT,xLT,fe2,ex_,AF1,eZ,o9I,iEX,yF1,RxI;zxE=0;mLk=/tone[1-5]/;WHE=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");rFT="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
xLT=Number.MAX_SAFE_INTEGER;fe2=RegExp("\ufe0f","g");_.fZ=function(Y){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;Y&&_.CV1(this,Y)};
_.CV1=function(Y,G){try{_.td(G,{context:Y,onSuccess:function(O,Q){Array.isArray(Q)?Y.load(Q):(O=new _.I2("Emoji manager JSON response was not an array!",{response:Q}),_.o0(O))},
onError:function(O){O=new _.I2("Failed to retrieve emoji manager initial JSON data!",{url:G,statusCode:_.Ql(O).toString()});_.R0(O)}})}catch(O){var u=new _.I2("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:G});
_.R0(u)}};
_.fZ.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.fZ.prototype.load=function(Y,G){if(G)if(Y.length)Y=Y.concat(G.emojis);else{this.emojis=G.emojis;this.emojiMap=G.emojiMap;this.emojiShortcutMap=G.emojiShortcutMap;this.emojiShortcutCharMap=yF1(G);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=G.emojiRegex;return}this.emojis=[].concat(_.c8(new Set(this.emojis.concat(Y))));this.hasInitializedShortcutCharMap=!1;Y=Array(this.emojis.length);for(G=0;G<this.emojis.length;G++){var u=this.emojis[G];if(u.emojiId){this.emojiMap[u.emojiId]=u;this.emojiMap[u.emojiId].index=
G;for(var O=0;u.shortcuts&&O<u.shortcuts.length;O++)this.emojiShortcutMap[u.shortcuts[O].toLocaleLowerCase()]=u;Y[G]=u.isCustomEmoji&&u.shortcuts?u.shortcuts[0]:u.emojiId}}Y.sort(function(Q,M){return M.length-Q.length});
if(Y.length)try{this.emojiRegex=new RegExp(Y.join("|").replace("*","\\*"),"gi")}catch(Q){this.emojiRegex=/$./}else this.emojiRegex=/$./};
ex_=function(Y,G){G=_.E(G);for(var u=G.next();!u.done;u=G.next()){var O=u.value;if(O.emojiId&&Y.emojiMap[O.emojiId]){u=Object.assign({},Y.emojiMap[O.emojiId],O);Y.emojiMap[O.emojiId]=u;var Q=void 0;u.index&&((Q=Y.emojis[u.index])==null?void 0:Q.emojiId)===O.emojiId&&(Y.emojis[u.index]=u);O=void 0;if((O=u.shortcuts)==null?0:O.length)for(Y.hasInitializedShortcutCharMap=!1,O=_.E(u.shortcuts),Q=O.next();!Q.done;Q=O.next())Y.emojiShortcutMap[Q.value.toLocaleLowerCase()]=u}}};
AF1=function(Y){var G,u;_.a(function(O){if(O.nextAddress==1)return O.yield(_.Xu.getInstance(),2);if(O.nextAddress!=3)return(G=O.yieldResult)?O.yield(G.get("ytlc-emoji-pref"),3):O.return();(u=O.yieldResult)&&ex_(Y,Object.keys(u).map(function(Q){return{emojiId:Q,stickyPrefId:u[Q]}}).filter(function(Q){return!!Q.emojiId&&!!Q.stickyPrefId}));
_.Sd(O)})};
_.CZ=function(Y,G,u){return(Y=Y.emojiMap[G])&&(!Y.isLocked||u!==void 0&&u)?Y:void 0};
eZ=function(Y,G,u){u=_.CZ(Y,G,u===void 0?!1:u);var O=G.match("\u200d");u&&Y.skinTone!==0&&(Y=(O==null?void 0:O.length)===1?_.CZ(Y,G.replace("\u200d",WHE[Y.skinTone]+"\u200d")):_.CZ(Y,G+WHE[Y.skinTone]))&&(u=Y);return u};
o9I=function(Y,G){var u=Y.emojiMap[G];return(u==null?0:u.stickyPrefId)?Y.emojiMap[u.stickyPrefId]:eZ(Y,G)};
_.cE=function(Y,G){Y=Y.emojiShortcutMap[G.toLocaleLowerCase()];return!Y||Y.isLocked?null:Y};
iEX=function(Y,G,u){return yF1(Y,u===void 0?!1:u)[G]||{}};
yF1=function(Y,G){G=G===void 0?!1:G;if(!Y.hasInitializedShortcutCharMap){Y.hasInitializedShortcutCharMap=!0;for(var u=0;u<Y.emojis.length;u++){var O=Y.emojis[u];if(!(O.isLocked||G&&O.isCustomEmoji&&O.emojiId&&!Y.pickerCustomEmojiIds.includes(O.emojiId)))for(var Q=0;O.shortcuts&&Q<O.shortcuts.length;Q++){var M=O.shortcuts[Q];M.startsWith(":_")&&O.isCustomEmoji&&(Y.emojiShortcutCharMap[":_"]==null&&(Y.emojiShortcutCharMap[":_"]=Object.create(null)),Y.emojiShortcutCharMap[":_"][M]=O);if(!(M.length<3||
!O.isCustomEmoji&&mLk.test(M))){var t=M.substr(0,3).toLocaleLowerCase();Y.emojiShortcutCharMap[t]==null&&(Y.emojiShortcutCharMap[t]=Object.create(null));Y.emojiShortcutCharMap[t][M]=O}}}}return Y.emojiShortcutCharMap};
_.fZ.prototype.createEmoji=function(Y,G){G=G===void 0?!0:G;var u=document.createElement("img");Y.isCustomEmoji||u.classList.add("small-emoji");u.classList.add("emoji");u.classList.add("yt-formatted-string");u.src=Y.image?_.dH(Y.image.thumbnails,this.emojiSize)||"":"";var O=void 0;Y.image&&Y.image.accessibility&&Y.image.accessibility.accessibilityData&&(O=Y.image.accessibility.accessibilityData.label);u.alt=O?O:(Y.isCustomEmoji&&Y.shortcuts?Y.shortcuts[0]:Y.emojiId)||"";Y.isCustomEmoji&&(u.dataset.emojiId=
Y.emojiId);_.YU&&(u.setAttribute("contenteditable","false"),u.setAttribute("unselectable","on"));G&&(Y.shortcuts&&Y.shortcuts.length&&u.setAttribute("shared-tooltip-text",Y.shortcuts[0]),u.id="emoji-"+zxE++);return u};
_.fZ.prototype.createDocumentFragment=function(Y,G,u,O){G=G===void 0?!1:G;u=u===void 0?!0:u;O=O===void 0?!1:O;Y=Y.replace(fe2,"");for(var Q=document.createDocumentFragment(),M=0,t,K=0;(t=this.emojiRegex.exec(Y))!=null;){var L=_.CZ(this,t[0])||_.cE(this,t[0]);!L||L.isCustomEmoji&&!G||(L=this.createEmoji(L,u),M!==t.index&&Q.appendChild(document.createTextNode(Y.substring(M,t.index))),Q.appendChild(L),M=t.index+t[0].length,K++)}if(!O||K)return Q.appendChild(document.createTextNode(Y.substr(M))),Q};
RxI=function(Y,G,u){var O,Q,M,t,K,L,g,P,I;return _.a(function(k){if(k.nextAddress==1){if(!G.emojiId||!Y.emojiMap[G.emojiId])return k.return();O=Object.assign({},Y.emojiMap[G.emojiId],{stickyPrefId:u});Y.emojiMap[G.emojiId]=O;G.index&&((Q=Y.emojis[G.index])==null?void 0:Q.emojiId)===G.emojiId&&(Y.emojis[G.index]=O);if((M=G.shortcuts)==null?0:M.length)for(Y.hasInitializedShortcutCharMap=!1,t=_.E(G.shortcuts),K=t.next();!K.done;K=t.next())L=K.value,Y.emojiShortcutMap[L.toLocaleLowerCase()]=O;return k.yield(_.Xu.getInstance(),
2)}if(k.nextAddress!=4)return(g=k.yieldResult)?k.yield(g.get("ytlc-emoji-pref"),4):k.jumpTo(0);I=(P=k.yieldResult)!=null?P:{};I[G.emojiId]=u;return k.yield(g.set("ytlc-emoji-pref",I,xLT),0)})};
_.Ai=new _.fZ;var DL2;_.ot={};
DL2={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.F("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:_.F("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 oi(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 Y=_.l0(this.hostElement||this).querySelector("#inline-action-button-container");Y&&Y.setAttribute("aria-hidden","true");this.menuButton=_.l0(this.hostElement).querySelector("#menu-button")},
attached:function(){var Y=this.menuButton;Y&&(Y.addEventListener("focusin",_.Jh(this,this.onMenuButtonFocus_)),Y.addEventListener("focusout",_.Jh(this,this.onMenuButtonBlur_)))},
detached:function(){var Y=this.menuButton;Y&&(Y.removeEventListener("focusin",_.Jh(this,this.onMenuButtonFocus_)),Y.removeEventListener("focusout",_.Jh(this,this.onMenuButtonBlur_)))},
identity:_.Zt,truthy:function(Y){return!!Y},
computeTimestampString:function(Y){return Y?Y.timestampText?this.getSimpleString(Y.timestampText):this.TIME_FORMATTER.format(new Date(Y.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(Y){return Y},
computeMenuVisible_:function(Y,G){return Y||G},
computeHasInlineActionButtons:function(Y){if(!Y)return!1;var G,u;return!((G=Y.inlineActionButtons)==null||!G.length)||!((u=Y.additionalInlineActionButtons)==null||!u.length)},
createDocumentFragmentFromString:function(Y){var G=_.Ai.createDocumentFragment.bind(_.Ai),u;if((u=this.participantsManager)==null||!u.viewerRegex)return G(Y);u=document.createDocumentFragment();for(var O=0,Q;(Q=this.participantsManager.viewerRegex.exec(Y))!=null;){if(Q.index>0){var M=":"+Q[0]+":";if((_.CZ(_.Ai,M)||_.cE(_.Ai,M))&&Y.indexOf(M)===Q.index-1)continue}u.appendChild(G(Y.substring(O,Q.index)));O=document.createElement("span");O.appendChild(G(Q[0]));O.classList.add("mention");u.appendChild(O);
O=Q.index+Q[0].length}u.appendChild(G(Y.substring(O)));return u},
createDocumentFragment:function(Y){var G=document.createDocumentFragment();if(Y.simpleText)return G.appendChild(this.createDocumentFragmentFromString(Y.simpleText)),G;if(!Y.runs)return G;for(var u=0;u<Y.runs.length;u++){var O=Y.runs[u];if(O.emoji)G.appendChild(_.Ai.createEmoji(O.emoji));else if(O.text)if(O.navigationEndpoint){var Q=document.createElement("a");Q.classList.add("yt-simple-endpoint");ljt(Q,O.navigationEndpoint);_.l0(Q).appendChild(this.createDocumentFragmentFromString(O.text));G.appendChild(Q)}else G.appendChild(this.createDocumentFragmentFromString(O.text))}return G},
hasModerationOverlayVisible:function(){var Y;return((Y=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:Y.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(Y){Y.composedPath().some(function(G){return(G=G instanceof Element?G:null)?G.tagName&&(G.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||G.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.F("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(Y)},
colorFromDecimal:function(Y){return eGy(Y)},
markAsDeleted:function(Y,G){this.set("data.deletedStateMessage",Y);this.set("data.showOriginalContentMessage",G)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(Y){if(this.data.contextMenuEndpoint){var G=_.sH().resolve(_.Hm),u=this.data.contextMenuEndpoint,O;(O=_.Af.instance)&&_.oS(O,u)?(G=wSR(G,u),O=_.Cl(O,{},G)):O=_.ZEV(G,u);O.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);Y&&Y.stopPropagation()}},
handleGetContextMenuResponse_:function(Y){var G=_.Af.instance;G&&_.oS(G,{liveChatEndpoint:{}})||(Y=Y.response);Y.liveChatItemContextMenuSupportedRenderers&&Y.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(Y.liveChatItemContextMenuSupportedRenderers.menuRenderer);Y.actions&&_.qZ(this.hostElement,"yt-live-chat-actions",[Y.actions])},
handleGetContextMenuError:function(Y){if(Y instanceof Error||Y instanceof Object||Y instanceof String)var G=Y;_.o0(new _.I2("Error encountered calling GetLiveChatItemContextMenu",G))},
showContextMenu_:function(Y){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:Y}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.$s(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.$s(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.ot.YtLiveChatItemBehavior=[DL2,_.m9.YtComponentBehavior,_.cZ.YtOpenPopupBehavior];_.iw=function(){};var hx4;var dLU;var bEV;var SJ1;var Rt=function(){var Y=_.Z.apply(this,arguments)||this;Y.active=!1;Y.identity=_.Zt;return Y};
_.m(Rt,_.Z);Rt.prototype.dataChanged=function(){this.active=!1};
Rt.prototype.onClick=function(){_.$s(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Rt.prototype.dataChanged=Rt.prototype.dataChanged;_.S([_.R(),_.V("design:type",Object)],Rt.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Rt.prototype,"active",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rt.prototype,"dataChanged",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Rt);
_.d(Rt,"yt-live-chat-text-input-field-suggestion",function(){if(SJ1===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;bEV===void 0&&(bEV=document.createElement("template"));var O=bEV;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);SJ1=Y}Y=SJ1;return Y},{mode:0});_.wM=function(Y,G,u){return CustomEvent.call(this,Y,{detail:{value:G,path:u}})||this};
_.m(_.wM,CustomEvent);_.ZY=function(){var Y=_.Z.apply(this,arguments)||this;Y.viewerName=null;Y.actionMap={"yt-live-chat-actions":"onChatMessage_"};Y.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];Y.PARTICIPANT_TIME_USEC_=3E8;return Y};
_.m(_.ZY,_.Z);_.H=_.ZY.prototype;_.H.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.H.addParticipant=function(Y){var G=_.Dja(this.participants,Y,function(O,Q){O=O[Object.keys(O)[0]];Q=Q[Object.keys(Q)[0]];O=String(_.Ri(O.authorName)).toLowerCase();Q=String(_.Ri(Q.authorName)).toLowerCase();return O<Q?-1:O==Q?0:1}.bind(this));
if(G>=0){var u=this.participants[G];u[Object.keys(u)[0]].timestampUsec&&this.splice("participants",G,1,Y)}else this.splice("participants",-G-1,0,Y);Y=Y[Object.keys(Y)[0]];G=_.Ri(Y.authorName).toLocaleLowerCase();u=G.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(u)||(this.allParticipantsCharMap_[u]={});this.allParticipantsCharMap_[u][G]=Y};
_.H.getAuthorsFromPrefix=function(Y){return this.allParticipantsCharMap_.hasOwnProperty(Y)?this.allParticipantsCharMap_[Y]:null};
_.H.computeViewerRegex_=function(Y){if(!Y)return null;Y=Y.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var G=Y.indexOf("@")===0&&_.F("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(G+Y.replace(/ /g,"\\s*")+"|^"+Y.replace(/ /g,"\\s*")+"$|^"+Y.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+Y.replace(/ /g,"\\s*")+"$|(?<=\\s)"+Y.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.H.checkForStaleParticipants_=function(){var Y=this;this.trimOldParticipants_();this.asyncHandle_&&KxT(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.CD(function(){Y.checkForStaleParticipants_()},3E4))};
_.H.onChatMessage_=function(Y){var G=this,u=Date.now()*1E3;Y.forEach(function(O){if(O=_.z(O,IfR)){O=O.item;var Q=Object.keys(O)[0];G.SUPPORTED_ITEM_TYPES_.indexOf(Q)!=-1&&O[Q].timestampUsec>=u-G.PARTICIPANT_TIME_USEC_&&G.addParticipant(O)}},this);
this.checkForStaleParticipants_()};
_.H.trimOldParticipants_=function(){for(var Y=Date.now()*1E3,G=this.participants.length-1;G>=0;G--){var u=this.participants[G];u=u[Object.keys(u)[0]];u.timestampUsec&&u.timestampUsec<Y-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",G,1)}};
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],_.ZY.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],_.ZY.prototype,"viewerName",void 0);_.S([_.R({computed:"computeViewerRegex_(viewerName)"}),_.V("design:type",Object)],_.ZY.prototype,"viewerRegex",void 0);_.S([_.R({value:function(){return[]},
notify:!0}),_.V("design:type",Array)],_.ZY.prototype,"participants",void 0);_.S([_.Ff({is:"yt-live-chat-participants-manager",noInjection:!0})],_.ZY);var NFR=/.*([:@#].*?)$/,DY=/\u00a0/g,jlT=String.fromCharCode(160),Ve4={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"},hi=function(){var Y=_.Z.apply(this,arguments)||this;Y.disabled=!1;Y.liveChatRichMessageInput=null;Y.messageInput=null;Y.isValidWithNoInputText=!1;Y.suggestions=[];Y.emojiManager=_.Ai;Y.inputMethodEditorActive=
!1;Y.suggestionIndex=-1;Y.JSC$14564_lastSuggestionRange=null;return Y};
_.m(hi,_.Z);_.H=hi.prototype;_.H.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.H.attached=function(){_.Hc&&(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 Y=!1,G={},u;for(u in Ve4)this.data&&this.data.hasOwnProperty(u)&&(G[Ve4[u]]=this.colorFromDecimal(this.data[u]),Y=!0);Y&&_.cm(this.hostElement,G)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.H.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.H.colorFromDecimal=function(Y){Y=Math.floor(Number(Y));return"rgba("+[Y>>16&255,Y>>8&255,Y&255,(Y>>24&255)/255].join()+")"};
_.H.preventDrag=function(Y){Y.dataTransfer&&(Y.dataTransfer.dropEffect="none");Y.preventDefault()};
_.H.preventResize=function(Y){Y.returnValue=!1};
_.H.onInputChange=function(){var Y=this.characterCount,G=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&G&&G.remove();if(!G&&this.characterCount>this.maxCharacterLimit){var u=window.getSelection();if(u){var O=u.getRangeAt(0);u.removeAllRanges();u.addRange(O)}}if(u=this.getCurrentRange())O=this.calculateTextBeforeRange(u),this.completeEmojisInRange(u,O,!0)||this.updateSuggestions(u,O);O=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(O);
_.$s(this.hostElement,"yt-live-chat-message-input-change",O);G&&this.characterCount===0&&G.remove();u&&u.commonAncestorContainer.parentElement.id==="input"&&u.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>Y):u&&!u.collapsed&&u.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(Y=this.input.childNodes.length-1;Y>=0;Y--)this.input.childNodes[Y].nodeName==="BR"&&this.input.childNodes[Y].remove()};
_.H.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.H.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var Y=this.getCurrentRange();Y&&Y.commonAncestorContainer.parentElement.id==="input"&&Y.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.H.mergeOverflowText=function(Y){if(Y){var G=document.createRange();G.selectNodeContents(Y);G=G.extractContents();this.input.insertBefore(G,Y)}};
_.H.checkRangeAtEndOfInput=function(){var Y=this.getCurrentRange();if(Y){var G=_.l0(this.hostElement).querySelector("#overflow-text"),u=document.createRange();G&&G.previousSibling?G.previousSibling instanceof HTMLImageElement?u.selectNode(G.previousSibling):u.selectNodeContents(G.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?u.selectNode(this.input.lastChild):u.selectNodeContents(this.input.lastChild));u.collapse(!1);return u.isPointInRange(Y.startContainer,
Y.startOffset)}return!1};
_.H.handleOverflowText=function(Y){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var G=_.l0(this.hostElement).querySelector("#overflow-text"),u=this.getCurrentRange();this.input.normalize();Y=this.checkRangeAtEndOfInput()&&Y;this.mergeOverflowText(G);for(var O,Q=0,M=0,t,K=this.input.childNodes,L=0;L<K.length;L++){var g=K[L];g instanceof Text?(M+=g.textContent.length,M>this.maxCharacterLimit&&(O=g,Q=this.maxCharacterLimit+g.textContent.length-M)):g instanceof HTMLImageElement&&
(O=void 0,M=g.dataset.emojiId&&((O=this.data)==null?0:O.emojiCharacterCount)?M+this.data.emojiCharacterCount:M+g.alt.length,O=this.input,Q=L);if(M>this.maxCharacterLimit&&O){t=document.createRange();t.collapse(!1);G?(M=this.input.lastChild.previousSibling,M instanceof Text?t.setEnd(this.input.lastChild.previousSibling,M.textContent.length):M instanceof HTMLImageElement&&t.setEnd(this.input,this.input.childNodes.length-1)):t.selectNodeContents(this.input);t.setStart(O,Q);break}}t&&(O=!1,u&&(Y=t.isPointInRange(u.startContainer,
u.startOffset-1)),G||(G=document.createElement("span"),G.id="overflow-text",G.textContent="",G.setAttribute("contenteditable","true"),_.l0(_.l0(this.hostElement).querySelector("#input")).appendChild(G),O=!0),G&&(u=t.extractContents(),G.insertBefore(u,G.firstChild),Y&&G.firstChild&&(u=document.createRange(),O?u.setStartAfter(G.lastChild):u.setStartAfter(G.firstChild),u.collapse(!0),G=window.getSelection(),G.removeAllRanges(),G.addRange(u))))}};
_.H.checkForDuplicateSpans=function(){for(var Y=0;Y<this.input.childNodes.length;Y++){var G=this.input.childNodes[Y];if(G.nodeName==="SPAN"){var u=document.createRange();u.selectNodeContents(G);u=u.extractContents();this.input.insertBefore(u,G);G.remove()}}this.handleOverflowText(!0)};
_.H.getCurrentRange=function(){var Y=window.getSelection();return Y&&Y.rangeCount?Y.getRangeAt(0).cloneRange():null};
_.H.getInputRange=function(){var Y=this.getCurrentRange();if(Y){for(var G=Y.commonAncestorContainer,u=!1,O=_.l0(this.hostElement).querySelector("#input");G;){if(G===O){u=!0;break}G=G.parentNode}u||(Y=null)}Y||(Y=this.getRangeAtEnd());return Y};
_.H.getRangeAtEnd=function(){var Y=document.createRange(),G=_.l0(this.hostElement).querySelector("#input").lastChild;!G||G.nodeName!=="#text"&&G.nodeName!=="SPAN"?(Y.selectNodeContents(_.l0(this.hostElement).querySelector("#input")),Y.collapse(!1)):G.nodeName==="#text"?Y.setStart(G,G.textContent.length):Y.setStart(G,G.childNodes.length);return Y};
_.H.getChatParticipantSuggestions=function(Y,G,u,O){var Q=_.F("live_chat_enable_handles_web_text_input_update");if(G)for(var M in G)if(M.indexOf(Y)===0||Q&&M.indexOf(u+Y)===0){var t=G[M],K=_.Ri(t.authorName);O.push({suggestion:{author:!0,authorType:u,image:t.authorPhoto,alt:K,text:K}});if(O.length>=64)break}};
_.H.getSuggestions=function(Y){var G=[],u=Y.substring(0,3),O=iEX(_.Ai,u,!0);if(O)for(var Q in O)if(Q.toLocaleLowerCase().indexOf(Y)===0){var M=O[Q];if(M&&M.emojiId){if(M=o9I(_.Ai,M.emojiId)){var t=void 0,K=void 0,L=void 0,g=void 0,P=((t=M.image)==null?0:(K=t.accessibility)==null?0:(L=K.accessibilityData)==null?0:L.label)||M.isCustomEmoji?(g=M.shortcuts)==null?void 0:g[0]:M.emojiId;G.push({suggestion:{emoji:!0,image:M.image,alt:P,text:Q,textToInsertWhenSelected:M.isCustomEmoji?Q:P}})}if(G.length>=
64)break}}if(!this.participantsManager)return null;if(u.indexOf("@")===0||u.indexOf("#")===0)O=u.charAt(0),Y=Y.substring(1),Q=_.F("live_chat_enable_handles_web_text_input_update"),u.indexOf("@")===0&&Q&&(Q=this.participantsManager.getAuthorsFromPrefix(u.substring(0,2)),this.getChatParticipantSuggestions(Y,Q,O,G)),u=u.substring(1),u=this.participantsManager.getAuthorsFromPrefix(u),this.getChatParticipantSuggestions(Y,u,O,G);return G?G.sort(function(I,k){return k.suggestion.text<I.suggestion.text?-1:
k.suggestion.text===I.suggestion.text?0:1}):null};
_.H.insertSuggestion=function(Y){var G=_.F("live_chat_enable_handles_web_text_input_update"),u=Y.authorType;G=Y.text.indexOf(u)===0&&G?Y.text+jlT:u+Y.text+jlT;Y.emoji?this.insertTextAtRange(this.JSC$14564_lastSuggestionRange,Y.textToInsertWhenSelected||""):Y.author&&this.insertTextAtRange(this.JSC$14564_lastSuggestionRange,G)};
_.H.updateSuggestionsAtCaret=function(){var Y=this.getCurrentRange();Y&&this.updateSuggestions(Y,this.calculateTextBeforeRange(Y))};
_.H.offsetStartOfRangeBy=function(Y,G){for(;G>0;)if(Y.startOffset-G>=0){Y.setStart(Y.startContainer,Y.startOffset-G);break}else{G=Y.startContainer instanceof HTMLImageElement?G-Y.startContainer.alt.length:G-Y.startOffset;var u=Y.startContainer.previousSibling;if(!u){Y.setStart(Y.startContainer,0);break}if(_.F("live_chat_require_space_for_autocomplete_emoji")){var O=void 0,Q=void 0;Y.setStart(u,((O=u)==null?void 0:(Q=O.textContent)==null?void 0:Q.length)||0)}else Y.setStart(u,u.childNodes.length||
0)}};
_.H.updateSuggestions=function(Y,G){var u=this;this.JSC$14564_lastSuggestionRange&&(this.JSC$14564_lastSuggestionRange.detach(),this.JSC$14564_lastSuggestionRange=null);if((G=NFR.exec(G))&&G.length&&(G=G[G.length-1].toLocaleLowerCase(),G.length>2&&(this.offsetStartOfRangeBy(Y,G.length),this.JSC$14564_lastSuggestionRange=Y,(Y=this.getSuggestions(G))&&Y.length))){this.suggestions=Y;_.sk(this,function(){_.l0(u.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(Y.length-1);return}this.dropdown.opened=!1};
_.H.completeEmojisInRange=function(Y,G,u){var O=G.replace(/[\s\xa0]+$/,"");G=G.length-O.length;O=O.split(" ");O=O[O.length-1].trim().toLocaleLowerCase();var Q=O.lastIndexOf(":");if(u&&!G&&Q!==O.length-1)return!1;Q!==-1&&(u=O.lastIndexOf(":",Q-1),u!==-1&&(O=O.substring(u)));if((u=_.cE(_.Ai,O))&&u.emojiId){u=o9I(_.Ai,u.emojiId)||null;this.offsetStartOfRangeBy(Y,O.length+G);var M,t,K,L;O=(((M=u)==null?0:M.isCustomEmoji)?(t=u)==null?void 0:(K=t.shortcuts)==null?void 0:K[0]:(L=u)==null?void 0:L.emojiId)||
"";G&&(O+=jlT);this.insertTextAtRange(Y,O);this.dropdown.opened=!1;return!0}return!1};
_.H.onSuggestion=function(Y){this.insertSuggestion(Y.detail);this.dropdown.opened=!1};
_.H.onKeyPress=function(Y){Y.keyCode===13&&(Y.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.$s(this.hostElement,"yt-live-chat-send-message"))};
_.H.completeEmojis=function(){var Y=document.createRange(),G=_.l0(this.hostElement).querySelector("#input").lastChild;G?Y.setStart(G,G.childNodes.length):(Y.selectNodeContents(_.l0(this.hostElement).querySelector("#input")),Y.collapse(!1));this.completeEmojisInRange(Y,this.calculateTextBeforeRange(Y),_.F("live_chat_require_space_for_autocomplete_emoji"))};
_.H.maybePreventTextFormatting=function(Y){!_.MP||!Y.ctrlKey&&!Y.metaKey||Y.keyCode!==66&&Y.keyCode!==73||(Y.stopImmediatePropagation(),Y.preventDefault())};
_.H.onKeyDown=function(Y){this.maybePreventTextFormatting(Y);if(this.dropdown.opened)switch(Y.keyCode){case 27:this.dropdown.opened=!1;Y.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;Y.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);Y.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),Y.preventDefault()}};
_.H.onKeyUp=function(Y){switch(Y.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.YU)this.onInputChange()};
_.H.changeSuggestionIndex=function(Y){if(this.dropdown.opened){var G=_.l0(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<G.children.length&&(G.children[this.suggestionIndex].active=!1);var u=this.suggestions.length;this.suggestionIndex=(Y+u)%u;Y=G.children[this.suggestionIndex];Y.active=!0;G.scrollTop=Y.offsetTop}};
_.H.onInputPaste=function(Y){Y.preventDefault();(Y=Y.clipboardData)&&Y.types&&(Y=Y.getData("text/plain")||"",Y=Y.replace(/\n/g,""),this.insertText(Y));(Y=this.getCurrentRange())&&Y.commonAncestorContainer.parentElement.id==="input"&&Y.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.H.onFocus=function(){this._setFocused(!0)};
_.H.onBlur=function(){this._setFocused(!1)};
_.H.insertText=function(Y){this.insertTextAtRange(this.getInputRange(),Y)};
_.H.insertTextAtRange=function(Y,G){if(Y&&(Y.collapsed||Y.deleteContents(),G=_.Ai.createDocumentFragment(G,!0,!1))){for(var u=_.E((G==null?void 0:G.childNodes)||[]),O=u.next();!O.done;O=u.next()){O=O.value;var Q=void 0,M=void 0,t=void 0,K=void 0,L=void 0;(t=(Q=window)==null?void 0:(M=Q.ShadyCSS)==null?void 0:M.ScopingShim)==null||(L=(K=t).scopeNode)==null||L.call(K,O,this.hostElement.localName)}u=G.lastChild;Y.insertNode(G);this.focused||this.input.focus();if(this.focused){Y=Y.cloneRange();Y.selectNodeContents(u);
Y.collapse(!1);if(G=window.getSelection())G.removeAllRanges(),G.addRange(Y);Y.commonAncestorContainer.parentElement.id==="input"&&Y.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}Y=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(Y);_.$s(this.hostElement,"yt-live-chat-message-input-change",Y)}};
_.H.setLiveChatRichMessageInput=function(Y){_.l0(_.l0(this.hostElement).querySelector("#input")).textContent="";if(Y&&Y.textSegments){for(var G=0;G<Y.textSegments.length;G++){var u=Y.textSegments[G];u.text?_.l0(_.l0(this.hostElement).querySelector("#input")).appendChild(_.Ai.createDocumentFragment(u.text,!0,!1)):u.emojiId&&(u=_.CZ(_.Ai,u.emojiId))&&_.l0(_.l0(this.hostElement).querySelector("#input")).appendChild(_.Ai.createEmoji(u,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.H.setText=function(Y){this.setLiveChatRichMessageInput(Y?{textSegments:[{text:Y}]}:null)};
_.H.calculateTextBeforeRange=function(Y){var G="",u=Y.startContainer;if(u&&u instanceof Text){var O;G=((O=u.textContent)==null?void 0:O.substring(0,Y.startOffset))||"";u=u.previousSibling}for(;u&&u instanceof Text;)G=u.textContent+G,u=u.previousSibling;return G.replace(DY," ")};
_.H.calculateLiveChatRichMessageInput=function(){for(var Y=[],G="",u=_.l0(_.l0(this.hostElement).querySelector("#input")).childNodes,O=0;O<u.length;O++){var Q=u[O];Q instanceof Text?G+=Q.textContent:Q instanceof HTMLImageElement&&(Q.dataset.emojiId?(G&&(Y.push({text:G.replace(DY," ")}),G=""),Y.push({emojiId:Q.dataset.emojiId})):G+=Q.alt)}G&&Y.push({text:G.replace(DY," ")});if(u=_.l0(this.hostElement).querySelector("#overflow-text")){G="";u=u.childNodes;for(O=0;O<u.length;O++)Q=u[O],Q instanceof Text?
G+=Q.textContent:Q instanceof HTMLImageElement&&(Q.dataset.emojiId?(G&&(Y.push({text:G.replace(DY," ")}),G=""),Y.push({emojiId:Q.dataset.emojiId})):G+=Q.alt);G&&Y.push({text:G.replace(DY," ")})}return{textSegments:Y}};
_.H.computeCharacterCount=function(Y){if(!Y||!Y.textSegments)return 0;for(var G=0,u=0;u<Y.textSegments.length;u++){var O=Y.textSegments[u];if(O.text)G+=O.text.length;else if(O.emojiId){var Q=void 0;if((Q=this.data)==null?0:Q.emojiCharacterCount)G+=this.data.emojiCharacterCount;else{var M=Q=void 0,t=void 0;G+=((M=_.CZ(_.Ai,(Q=O)==null?void 0:Q.emojiId))==null?void 0:(t=M.shortcuts)==null?void 0:t[0].length)||0}}}return G};
_.H.characterCountChanged=function(){_.$s(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.H.focusedChanged=function(){this.hostElement.dispatchEvent(new _.wM("focused-changed",this.focused))};
_.H.focus=function(){this.setFocus(!1)};
_.H.focusAtEnd=function(){this.setFocus(!0)};
_.H.setFocus=function(Y){Y=Y?this.getRangeAtEnd():this.getInputRange();_.l0(this.hostElement).querySelector("#input").focus();var G=window.getSelection();G&&(G.removeAllRanges(),G.addRange(Y))};
_.H.insertEmoji=function(Y){var G,u=((Y==null?0:Y.isCustomEmoji)?(G=Y.shortcuts)==null?void 0:G[0]:Y==null?void 0:Y.emojiId)||"";this.insertText(u)};
_.H.computeText=function(Y){if(!Y||!Y.textSegments)return"";for(var G="",u=0;u<Y.textSegments.length;u++){var O=Y.textSegments[u];if(O.text)G+=O.text;else if(O.emojiId){var Q=void 0,M=void 0,t=void 0;G+=((M=_.CZ(_.Ai,(Q=O)==null?void 0:Q.emojiId))==null?void 0:(t=M.shortcuts)==null?void 0:t[0])||""}}return G};
_.H.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Uk.Object.defineProperties(hi.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.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}}});
hi.prototype.focusedChanged=hi.prototype.focusedChanged;hi.prototype.characterCountChanged=hi.prototype.characterCountChanged;hi.prototype.onSuggestion=hi.prototype.onSuggestion;hi.prototype.onMessageSet=hi.prototype.onMessageSet;hi.prototype.dataChanged=hi.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],hi.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],hi.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],hi.prototype,"disabled",void 0);_.S([_.f("disabled"),_.V("design:type",Number),_.V("design:paramtypes",[])],hi.prototype,"inputTabIndex",null);_.S([_.f("data.maxCharacterLimit"),_.R({readOnly:!0,notify:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],hi.prototype,"maxCharacterLimit",null);
_.S([_.f("liveChatRichMessageInput"),_.R({readOnly:!0,notify:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],hi.prototype,"characterCount",null);_.S([_.f("maxCharacterLimit, characterCount"),_.R({readOnly:!0,notify:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],hi.prototype,"remainingCharacterCount",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],hi.prototype,"isChatMessageInput",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],hi.prototype,"inputExpanded",void 0);_.S([_.R({readOnly:!0,notify:!0}),_.V("design:type",Object)],hi.prototype,"liveChatRichMessageInput",void 0);_.S([_.R(),_.V("design:type",Object)],hi.prototype,"messageInput",void 0);_.S([_.R(),_.V("design:type",Boolean)],hi.prototype,"ignoreColorMapping",void 0);_.S([_.f("characterCount"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],hi.prototype,"hasText",null);
_.S([_.R(),_.V("design:type",Object)],hi.prototype,"isValidWithNoInputText",void 0);_.S([_.f("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.R(),_.V("design:type",Boolean),_.V("design:paramtypes",[])],hi.prototype,"isInputValid",null);_.S([_.R({readOnly:!0,value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],hi.prototype,"focused",void 0);_.S([_.R(),_.V("design:type",Array)],hi.prototype,"suggestions",void 0);
_.S([_.R(),_.V("design:type",_.fZ)],hi.prototype,"emojiManager",void 0);_.S([_.R(),_.V("design:type",_.ZY)],hi.prototype,"participantsManager",void 0);_.S([_.R(),_.V("design:type",Boolean)],hi.prototype,"noUnderline",void 0);_.S([_.R(),_.V("design:type",Object)],hi.prototype,"inputMethodEditorActive",void 0);_.S([_.Ox("#dropdown"),_.V("design:type",Object)],hi.prototype,"dropdown",void 0);_.S([_.Ox("#input"),_.V("design:type",HTMLElement)],hi.prototype,"input",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hi.prototype,"dataChanged",null);_.S([_.GO("messageInput"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hi.prototype,"onMessageSet",null);_.S([_.Yo("yt-live-chat-select-suggestion"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],hi.prototype,"onSuggestion",null);
_.S([_.GO("characterCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hi.prototype,"characterCountChanged",null);_.S([_.GO("focused"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hi.prototype,"focusedChanged",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],hi);
_.leE=_.d(hi,"yt-live-chat-text-input-field-renderer",function(){if(dLU===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;hx4===void 0&&(hx4=document.createElement("template"));var O=hx4;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);dLU=Y}Y=dLU;return Y},{mode:0});var dM=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonOverrides={style:"overlay",type:"filled"};Y.allowAnimations=!1;Y.modern=_.F("web_button_rework_with_live");Y.noPadding=!1;return Y};
_.m(dM,_.Z);_.H=dM.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 Y=document.querySelector("yt-live-chat-app");Y&&Y.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.H.attached=function(){this.allowAnimations=!1};
_.H.dataChanged=function(){if(this.data){var Y={"--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)};_.cm(this.hostElement,Y);this.allowAnimations=!0}};
_.H.messageChanged=function(){var Y,G=(Y=this.data)==null?void 0:Y.message;Y=_.l0(_.l0(this.hostElement).querySelector("#message"));Y.textContent="";G&&Y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G))};
_.H.computeShowOnlyHeader=function(Y,G){return!Y||Y.pdgLikeButton||Y.replyButton||Y.buyFlowButton?!1:this.isEmpty(Y,G)&&!Y.footer};
_.H.computeShowFooterDivider=function(Y,G,u){return Y?!!Y.footer&&!this.isEmpty(Y,G)&&!u:!1};
_.H.computeIsUserEditable=function(Y){return!!Y.inputField};
_.H.computeHasHeartButton=function(Y){return(Y==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(Y==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(Y==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.H.computeNoveltyImage=function(Y){if(Y.headerOverlayImage&&Y.headerOverlayImage.thumbnails.length){var G=Y.headerOverlayImage.thumbnails[0],u,O;if((u=Y.pdgPurchasedNoveltyLoggingDirectives)==null?0:(O=u.loggingDirectives)==null?0:O.trackingParams){var Q,M;hxI((Q=Y.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(M=Q.loggingDirectives)==null?void 0:M.trackingParams)}return G.width||0}return 0};
_.H.computeAuthorPhotoSize=function(Y){return(Y==null?0:Y.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.H.inputFocus=function(){var Y=_.l0(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");Y&&Y.focus()};
_.H.inputInsertEmoji=function(Y){var G=_.l0(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");G&&G.insertEmoji(Y)};
_.H.inputMessage=function(){var Y=_.l0(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),G;return Y&&((G=this.data)==null?0:G.inputField)?(Y.completeEmojis(),_.Cz(Y.liveChatRichMessageInput)):null};
_.H.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.H.isEmpty=function(Y,G){return Y?Y.empty||!(Y.message||Y.inputField||G):!0};
_.H.onLowerBuyButtonClick=function(){var Y,G=_.z((Y=this.data)==null?void 0:Y.buyButton,_.ru);G&&G.trackingParams&&!oPj(G.command)&&(Y=_.Kd(G.trackingParams))&&(G=_.FA())&&_.RK(G,Y)};
_.H.shouldSupportWholeItemClick=function(){return!0};
_.Uk.Object.defineProperties(dM.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
dM.prototype.isDeletedChanged=dM.prototype.isDeletedChanged;dM.prototype.messageChanged=dM.prototype.messageChanged;dM.prototype.dataChanged=dM.prototype.dataChanged;_.S([_.x(KY_.YtPdgLiveChatItemBehavior),_.V("design:type",Object)],dM.prototype,"ytPdgLiveChatItemBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.pI),_.V("design:type",Object)],dM.prototype,"ytLiveChatReduxBehavior",void 0);
_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],dM.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],dM.prototype,"data",void 0);_.S([_.R({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:ZEt}),_.V("design:type",Object)],dM.prototype,"engagementState",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.V("design:type",Boolean)],dM.prototype,"isUserEditable",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.V("design:type",Boolean)],dM.prototype,"hasHeartButton",void 0);_.S([_.R({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.V("design:type",Boolean)],dM.prototype,"showOnlyHeader",void 0);
_.S([_.R({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.V("design:type",Boolean)],dM.prototype,"showFooterDivider",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Object)],dM.prototype,"allowAnimations",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],dM.prototype,"dashboardMoneyFeed",void 0);_.S([_.R({computed:"computeNoveltyImage(data)"}),_.V("design:type",Number)],dM.prototype,"noveltyWidth",void 0);
_.S([_.R({computed:"computeAuthorPhotoSize(data)"}),_.V("design:type",Number)],dM.prototype,"authorPhotoSize",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],dM.prototype,"modern",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],dM.prototype,"noPadding",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dM.prototype,"dataChanged",null);
_.S([_.GO("data.message"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dM.prototype,"messageChanged",null);_.S([_.f("data","dashboardMoneyFeed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dM.prototype,"hideLowerBumper",null);_.S([_.GO("isDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dM.prototype,"isDeletedChanged",null);
_.S([_.pD({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],dM);
_.d(dM,"yt-live-chat-paid-message-renderer",function(){if(c51===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;spR===void 0&&(spR=document.createElement("template"));var O=spR;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);c51=Y}Y=c51;return Y},{mode:0});var BFT;var $LX;var bw=function(){var Y=_.Mb.apply(this,arguments)||this;Y._noAccessors=!0;return Y};
_.m(bw,_.Mb);bw.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.DE("openPopupConfig")};
_.S([_.x(_.cZ.YtOpenPopupBehavior),_.V("design:type",Object)],bw.prototype,"ytOpenPopupBehavior",void 0);_.S([_.Hn()],bw);_.SZ=[_.cZ.YtOpenPopupBehavior,bw.prototype];var qJk;var Umy=[_.Y3,lI2,_.WH,_.EKX,_.Dv,_.PhI,_.zG,_.Qa,_.GA,_.fm_,_.ic];_.F("web_show_ep_endpoint_response_received")&&Umy.push(_.mJ);var aVl=new _.Sb("RESPONSE_RECEIVED_COMMANDS"),ccu=new _.Sb("RESPONSE_RECEIVED_COMMANDS");var j6y="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Nsg=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],SlA=["GET_UNSEEN_NOTIFICATION_COUNT"];var NH=function(){var Y=_.Mb.apply(this,arguments)||this;Y._noAccessors=!0;Y.serviceEndpointHandlers=[];return Y};
_.m(NH,_.Mb);NH.prototype.created=function(){var Y=this;this.endpointHandlerActionMap={"yt-service-request":function(G,u,O,Q){var M;return bWu(Y.hostElement,G,u,O,Q,Y.serviceEndpointHandlers,(M=Y.onEntitiesUpdated)==null?void 0:M.bind(Y))}}};
NH.prototype.attached=function(){_.jK(_.N6.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
NH.prototype.detached=function(){_.VO(_.N6.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.S([_.Hn()],NH);_.slk=[NH.prototype];var cF1,ULk=function(){return cF1!==void 0?cF1:cF1=document.createElement("template")};
document.head.appendChild(ULk().content);var v9k;var JF1=document.head,Yl4=JF1.appendChild,GaR;if(v9k===void 0){var uz_=document.createElement("template");_.r(uz_,"\x3c!--css-build:shady--\x3e");uz_.content.insertBefore(ULk().content.cloneNode(!0),uz_.content.firstChild);v9k=uz_}GaR=v9k;Yl4.call(JF1,GaR.content);var OWT,Q6E=function(){return OWT!==void 0?OWT:OWT=document.createElement("template")};
document.head.appendChild(Q6E().content);var MAl;var HWT=document.head,EuT=HWT.appendChild,tAX;if(MAl===void 0){var K5R=document.createElement("template");_.r(K5R,"\x3c!--css-build:shady--\x3e");K5R.content.insertBefore(Q6E().content.cloneNode(!0),K5R.content.firstChild);MAl=K5R}tAX=MAl;EuT.call(HWT,tAX.content);var akR;_.Px("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Px("sharingRendererButtons","buttonRenderer","ytd-button-renderer");akR=_.F("web_button_rework")&&_.hy("BUTTON_REWORK")||_.F("web_button_rework_with_live");_.jZ=function(){var Y=_.Z.apply(this,arguments)||this;Y.isPressed=!1;Y.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return Y};
_.m(_.jZ,_.Z);_.H=_.jZ.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 Y=this,G,u,O=(G=this.ytButtonBehavior.data)==null?void 0:(u=G.hint)==null?void 0:u.hintRenderer;if(O&&O.hintId){G=_.sK(this.hostElement,"yt-get-opened-popups-action");G=(G&&G.length===1?G[0]:[]).length>0;var Q=null;O.hintId!=="sponsor-pre-purchase"||G?O.hintId.startsWith("sponsor-post-purchase")&&!G?Q=c4R("membership-manage"):O.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!G&&(Q=c4R("membership-freebie-join")):Q=c4R("membership-join");Q&&_.AN.addLowPriorityJob(function(){for(var M=
_.E(Q),t=M.next();!t.done;t=M.next())Y.ytComponentBehavior.resolveCommand(t.value)})}};
_.H.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.H.onYtNavigate=function(Y){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(Y.detail.endpoint);G&&(Y.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(G))};
_.H.onYtServiceRequestSent=function(Y,G){this.handleServiceRequestActions(G);_.$s(this.hostElement,"yt-service-request-sent-button-renderer")};
_.H.onServiceRequestCompleted=function(Y,G){this.handleServiceRequestActions(G);_.$s(this.hostElement,"yt-service-request-completed-button-renderer")};
_.H.updateButton=function(Y){var G;if(Y=(G=_.z(Y,hc2))==null?void 0:G.updatedButton)this.ytButtonBehavior.data=_.z(Y,_.ru)};
_.H.handleUpdateButtonAction=function(Y){var G=this.ytButtonBehavior.data;G.targetId&&Y.updateButtonAction.targetId&&G.targetId===Y.updateButtonAction.targetId&&this.updateButton(Y)};
_.H.handleServiceRequestActions=function(Y){if(Y=Y.actions)for(var G=0;G<Y.length;G++)this.updateButton(Y[G])};
_.Uk.Object.defineProperties(_.jZ,{template:{configurable:!0,enumerable:!0,get:function(){if(qJk===void 0){var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);qJk=Y}Y=qJk;return Y}}});
_.jZ.prototype.onServiceRequestCompleted=_.jZ.prototype.onServiceRequestCompleted;_.jZ.prototype.onYtServiceRequestSent=_.jZ.prototype.onYtServiceRequestSent;_.jZ.prototype.onYtNavigate=_.jZ.prototype.onYtNavigate;_.jZ.prototype.onPressedStateChanged=_.jZ.prototype.onPressedStateChanged;_.jZ.prototype.onHintIdChanged=_.jZ.prototype.onHintIdChanged;_.S([_.R(),_.V("design:type",Object)],_.jZ.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],_.jZ.prototype,"isPressed",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],_.jZ.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.PxE.YtButtonBehavior),_.V("design:type",Object)],_.jZ.prototype,"ytButtonBehavior",void 0);_.S([_.x(_.SZ),_.V("design:type",Object)],_.jZ.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],_.jZ.prototype,"ytComponentBehavior",void 0);
_.S([_.x(MH.YtRenderButtonBehavior),_.V("design:type",Object)],_.jZ.prototype,"ytRenderButtonBehavior",void 0);_.S([_.GO("data.hint.hintRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],_.jZ.prototype,"onHintIdChanged",null);_.S([_.GO("isPressed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],_.jZ.prototype,"onPressedStateChanged",null);
_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],_.jZ.prototype,"onYtNavigate",null);_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],_.jZ.prototype,"onYtServiceRequestSent",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],_.jZ.prototype,"onServiceRequestCompleted",null);_.S([_.pD({is:"ytd-button-renderer",disableElementRegistration:akR})],_.jZ);var Vt=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.F("web_button_rework_with_live");Y.buttonOverrides={style:"overlay",type:"filled"};return Y};
_.m(Vt,_.Z);_.H=Vt.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 Y=document.querySelector("yt-live-chat-app");Y&&Y.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.H.dataChanged=function(){if(this.data&&this.data.sticker){var Y=_.dH(this.data.sticker.thumbnails,this.stickerWidth);Y||_.OCA(Y).thenCatch(function(){_.R0(new _.I2("Failed to load Super Sticker with url",Y))})}};
_.H.computeAuthorPhotoSize=function(Y){return(Y==null?0:Y.isV2Style)?32:40};
_.H.computeIsV2Style=function(Y){return(Y==null?0:Y.isV2Style)?!0:!1};
_.H.onStickerLoaded=function(Y){var G,u,O;(G=_.Zb(Y))==null||(u=G.parentNode)==null||(O=u.classList)==null||O.add("sticker-loaded")};
_.H.computeNoveltyImageWidth=function(Y){var G,u;if(Y==null?0:(G=Y.headerOverlayImage)==null?0:(u=G.thumbnails)==null?0:u.length){G=Y.headerOverlayImage.thumbnails[0];var O,Q;if((O=Y.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Q=O.loggingDirectives)==null?0:Q.trackingParams){var M,t;hxI((M=Y.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(t=M.loggingDirectives)==null?void 0:t.trackingParams)}return G.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 Y=this.data;Y&&(Y={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(Y.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(Y.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(Y.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(Y.authorNameTextColor)},
_.cm(this.hostElement,Y))};
_.H.onBuyButtonClick=function(){var Y,G=_.z((Y=this.data)==null?void 0:Y.buyButton,_.ru);G&&!oPj(G.command)&&this.ytRendererBehavior.logExplicitClick(G)};
_.H.shouldSupportWholeItemClick=function(){return!0};
_.Uk.Object.defineProperties(Vt.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 Y;return((Y=this.data)==null?0:Y.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Vt.prototype.updateStickerStyles=Vt.prototype.updateStickerStyles;Vt.prototype.isDeletedChanged=Vt.prototype.isDeletedChanged;Vt.prototype.onStickerLoaded=Vt.prototype.onStickerLoaded;Vt.prototype.dataChanged=Vt.prototype.dataChanged;_.S([_.x(KY_.YtPdgLiveChatItemBehavior),_.V("design:type",Object)],Vt.prototype,"ytPdgLiveChatItemBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Vt.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],Vt.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Vt.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Vt.prototype,"data",void 0);
_.S([_.R({computed:"computeAuthorPhotoSize(data)"}),_.V("design:type",Number)],Vt.prototype,"authorPhotoSize",void 0);_.S([_.R(),_.V("design:type",Boolean)],Vt.prototype,"isDeleted",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Vt.prototype,"dashboardMoneyFeed",void 0);_.S([_.R({computed:"computeNoveltyImageWidth(data)"}),_.V("design:type",Number)],Vt.prototype,"noveltyWidth",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Vt.prototype,"modern",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.V("design:type",Boolean)],Vt.prototype,"isV2Style",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vt.prototype,"dataChanged",null);_.S([_.Yo("yt-img-shadow-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Vt.prototype,"onStickerLoaded",null);
_.S([_.f("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],Vt.prototype,"stickerWidth",null);_.S([_.f("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],Vt.prototype,"stickerHeight",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Vt.prototype,"hasHeartButton",null);_.S([_.f("data","dashboardMoneyFeed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Vt.prototype,"hideLowerBumper",null);
_.S([_.GO("isDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vt.prototype,"isDeletedChanged",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vt.prototype,"updateStickerStyles",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Vt);
_.d(Vt,"yt-live-chat-paid-sticker-renderer",function(){if($LX===void 0){var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;BFT===void 0&&(BFT=document.createElement("template"));var O=BFT;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);$LX=Y}Y=$LX;return Y},{mode:0});var TsT;var L5E;var guX,Xk2=function(){return guX!==void 0?guX:guX=document.createElement("template")};
document.head.appendChild(Xk2().content);var PG_,Ikk=function(){return PG_!==void 0?PG_:PG_=document.createElement("template")};
document.head.appendChild(Ikk().content);var kaU;var nuV,F5U=function(){return nuV!==void 0?nuV:nuV=document.createElement("template")};
document.head.appendChild(F5U().content);var pke;var zwl=document.head,mmR=zwl.appendChild,W5V;if(pke===void 0){var rck=document.createElement("template");_.r(rck,"\x3c!--css-build:shady--\x3e");rck.content.insertBefore(F5U().content.cloneNode(!0),rck.content.firstChild);pke=rck}W5V=pke;mmR.call(zwl,W5V.content);var xmk=document.head,fk4=xmk.appendChild,CG2;if(kaU===void 0){var lw=document.createElement("template");_.r(lw,"\x3c!--css-build:shady--\x3e");lw.content.insertBefore(Ikk().content.cloneNode(!0),lw.content.firstChild);lw.content.insertBefore(Xk2().content.cloneNode(!0),lw.content.firstChild);kaU=lw}CG2=kaU;fk4.call(xmk,CG2.content);var BO=function(){var Y=_.Mb.apply(this,arguments)||this;Y.focusedIndex=0;Y.verticalOffset=0;Y.verticalAlign="top";Y.dynamicAlign=!0;return Y};
_.m(BO,_.Mb);BO.prototype.emojiUrl=function(Y){Y=_.CZ(this.emojiManager,Y);if(!Y)return"";var G;Y=(G=Y.image)==null?void 0:G.thumbnails;return _.dH(Y,24)||""};
var yck=function(Y){var G;Y.emojiVariants&&(G=Y.data)!=null&&G.target&&_.sk(Y,function(){Y.set("verticalOffset",-1*Y.hostElement.clientHeight);var u=_.l0(Y.hostElement).querySelector("img");u&&u.focus()})};
_.H=BO.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(Y){switch(Y.keyCode){case 13:this.onKeyboardEnter();Y.preventDefault();break;case 40:this.changeFocus(1);Y.preventDefault();break;case 38:this.changeFocus(-1);Y.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.H.onYtEmojiSelect=function(Y){var G=this,u,O,Q,M,t,K,L,g;return _.a(function(P){if(P.nextAddress==1)return O=(u=G.data)==null?void 0:u.emoji,t=((Q=O)==null?void 0:Q.stickyPrefId)||((M=O)==null?void 0:M.emojiId),L=(K=Y.detail)==null?void 0:K.emojiId,t&&L&&t!==L?P.yield((g=G.emojiManager)==null?void 0:RxI(g,O,L),2):P.return();_.qZ(G.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[O,L]);_.Sd(P)})};
_.H.changeFocus=function(Y){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+Y+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(Y=_.l0(this.hostElement).querySelector("#variants"))&&Y.children[this.focusedIndex].focus())};
_.Uk.Object.defineProperties(BO.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
BO.prototype.onYtEmojiSelect=BO.prototype.onYtEmojiSelect;BO.prototype.onKeyDown=BO.prototype.onKeyDown;BO.prototype.onEmojiVariantsChanged=BO.prototype.onEmojiVariantsChanged;BO.prototype.onVerticalOffsetOrPositionTargetChanged=BO.prototype.onVerticalOffsetOrPositionTargetChanged;_.S([_.x(_.CM),_.V("design:type",Object)],BO.prototype,"ironOverlayBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],BO.prototype,"data",void 0);_.S([_.R(),_.V("design:type",_.fZ)],BO.prototype,"emojiManager",void 0);
_.S([_.R(),_.V("design:type",Object)],BO.prototype,"emojiVariants",void 0);_.S([_.R(),_.V("design:type",Object)],BO.prototype,"focusedIndex",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],BO.prototype,"positionTarget",null);_.S([_.R({reflectToAttribute:!0}),_.f("verticalOffset","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],BO.prototype,"isPositioned",null);_.S([_.R(),_.V("design:type",Object)],BO.prototype,"verticalOffset",void 0);
_.S([_.R(),_.V("design:type",Object)],BO.prototype,"verticalAlign",void 0);_.S([_.R(),_.V("design:type",Object)],BO.prototype,"dynamicAlign",void 0);_.S([_.GO("verticalOffset","positionTarget"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BO.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.S([_.GO("emojiVariants"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BO.prototype,"onEmojiVariantsChanged",null);
_.S([_.Yo("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],BO.prototype,"onKeyDown",null);_.S([_.Yo("yt-emoji-select"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype",Promise)],BO.prototype,"onYtEmojiSelect",null);_.S([_.Hn()],BO);var ewT=[BO.prototype];var Ac1;var ouk;var iWE=/medium-light|medium-dark|light|medium|dark/,RwM=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,wkT=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),$f=function(){var Y=_.Z.apply(this,arguments)||this;Y.userSelection={left:null,right:null};Y.scrollAction="lock";Y.isEmojiDraftInProgress=!1;return Y};
_.m($f,_.Z);_.H=$f.prototype;_.H.onClick=function(Y){Y=_.Zb(Y);Y instanceof HTMLImageElement&&this.selectOrUpdateEmoji(Y)};
_.H.selectOrUpdateEmoji=function(Y){var G=Y.getAttribute("selection");G&&(G==="default"?_.$s(this.hostElement,"yt-emoji-select",_.CZ(this.emojiManager,Y.id)):G==="left"?this.userSelection=Object.assign({},this.userSelection,{left:Y.src}):G==="right"?this.userSelection=Object.assign({},this.userSelection,{right:Y.src}):G==="user"&&this.userSelection.left&&this.userSelection.right&&_.$s(this.hostElement,"yt-emoji-select",_.CZ(this.emojiManager,Y.id)))};
_.H.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.H.onMultiSelectorThumbnailRowChanged=function(){var Y,G,u;((Y=this.data)==null?0:(G=Y.emoji)==null?0:(u=G.multiSelectorThumbnailRow)==null?0:u.length)&&this.openSelector()};
_.H.getThumbnailFromEmojiRow=function(Y){var G,u;return(Y==null?void 0:(G=Y.thumbnails)==null?void 0:(u=G[0])==null?void 0:u.url)||""};
_.H.getEmojiAltTextForPartialSelector=function(Y){var G;return((G=this.getThumbnailFromEmojiRow(Y).match(RwM))==null?void 0:G[0])||""};
_.H.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.H.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.H.getRowSelection=function(Y){return["left","right"][Y]};
_.H.getIdFromComposedEmoji=function(Y){return(Y==null?void 0:Y.emojiId)||""};
_.H.getEmojiFromPartialSelections=function(Y,G){if(!Y&&!G)return null;var u,O,Q=(u=this.data)==null?void 0:(O=u.emoji)==null?void 0:O.variantIds;if(!Q||!Q.length)return null;var M;Y=(M=Y.match(iWE))==null?void 0:M[0];var t;G=(t=G.match(iWE))==null?void 0:t[0];if(!Y||!G)return null;var K=wkT.get(Y);t=wkT.get(G);if(K===t){t=Array.from(wkT.values()).filter(function(g){return g!==K}).join("|");
var L=new RegExp("^((?!("+t+")).)*"+K+"$")}else L=new RegExp(K+".*"+t);return(Q=Q.find(function(g){return L.test(g)}))&&_.CZ(this.emojiManager,Q)||null};
_.H.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var Y,G=this.ytEmojiSelectorBehavior.emojiUrl(((Y=this.data.emoji)==null?void 0:Y.emojiId)||"");_.l0(this.hostElement).querySelector('[selection="user"]').src.includes(G)||(this.isEmojiDraftInProgress=!0)}};
_.H.onDomChange=function(){yck(this.ytEmojiSelectorBehavior)};
_.H.getFocusableElements=function(){return _.l0(this.hostElement).querySelectorAll("img").filter(function(Y){return Y.getAttribute("role")==="option"})};
_.H.changeFocus=function(Y){var G=this.getFocusableElements();G!=null&&G.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+Y+G.length)%G.length,this.ytEmojiSelectorBehavior.focusedIndex<G.length&&(Y=G[this.ytEmojiSelectorBehavior.focusedIndex])&&Y.focus())};
_.H.onKeyboardEnter=function(){var Y=this.getFocusableElements();Y!=null&&Y.length&&(Y=Y[this.ytEmojiSelectorBehavior.focusedIndex])&&Y instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(Y),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Uk.Object.defineProperties($f.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var Y=this,G,u,O;return this.emojiManager&&((G=this.data)==null?0:(u=G.emoji)==null?0:(O=u.variantIds)==null?0:O.length)?this.data.emoji.variantIds.map(function(Q){return!!Q&&_.CZ(Y.emojiManager,Q)}).filter(function(Q){return!!Q}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var Y,G=(Y=this.userSelection)==null?void 0:Y.left,u;Y=(u=this.userSelection)==null?void 0:u.right;return G&&Y?this.getEmojiFromPartialSelections(G,Y):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.composedEmojiSelection)==null?0:Y.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var G;Y=(G=this.userSelection)==null?void 0:G.left;var u;G=(u=this.userSelection)==null?void 0:u.right;if(!Y&&!G){var O;return this.ytEmojiSelectorBehavior.emojiUrl(((O=this.data.emoji)==null?void 0:O.emojiId)||"")}return Y&&!G?Y:!Y&&G?G:""}}});
$f.prototype.onMultiSelectorThumbnailRowChanged=$f.prototype.onMultiSelectorThumbnailRowChanged;$f.prototype.onClick=$f.prototype.onClick;_.S([_.x(_.CM),_.V("design:type",Object)],$f.prototype,"ironOverlayBehavior",void 0);_.S([_.x(ewT),_.V("design:type",Object)],$f.prototype,"ytEmojiSelectorBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],$f.prototype,"data",void 0);_.S([_.R(),_.V("design:type",_.fZ)],$f.prototype,"emojiManager",void 0);
_.S([_.R(),_.V("design:type",Object)],$f.prototype,"userSelection",void 0);_.S([_.R(),_.V("design:type",Object)],$f.prototype,"scrollAction",void 0);_.S([_.R(),_.V("design:type",Object)],$f.prototype,"isEmojiDraftInProgress",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],$f.prototype,"emojiVariants",null);_.S([_.f("data","userSelection"),_.V("design:type",Object),_.V("design:paramtypes",[])],$f.prototype,"composedEmojiSelection",null);
_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[MouseEvent]),_.V("design:returntype")],$f.prototype,"onClick",null);_.S([_.GO("data.emoji.multiSelectorThumbnailRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$f.prototype,"onMultiSelectorThumbnailRowChanged",null);_.S([_.f("data","userSelection","composedEmojiSelection"),_.V("design:type",String),_.V("design:paramtypes",[])],$f.prototype,"draftEmojiUrl",null);
_.S([_.Ff({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],$f);
_.d($f,"yt-emoji-multi-person-selector",function(){if(ouk===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Ac1===void 0&&(Ac1=document.createElement("template"));var O=Ac1;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);ouk=Y}Y=ouk;return Y},{mode:2});var ZWE;var DmX;var qH=function(){var Y=_.Z.apply(this,arguments)||this;Y.tooltip_=null;return Y};
_.m(qH,_.Z);_.H=qH.prototype;_.H.dataChanged_=function(){var Y;if((Y=this.data)==null?0:Y.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.l0(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.sb)(this.tooltip_).textContent=this.data.tooltip};
_.H.computeTargetId=function(){var Y;return((Y=this.data)==null?void 0:Y.targetId)||""};
_.H.computeId_=function(Y){return Y};
_.H.computeIcon_=function(Y){return _.Ux(Y)};
_.H.onTap_=function(){this.active=!this.active;_.$s(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.H.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("active-changed",this.active))};
_.Uk.Object.defineProperties(qH.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var Y,G;if((Y=this.data)==null?0:(G=Y.icon)==null?0:G.iconType)return this.data.icon.iconType==="SUPER_STICKER";var u,O;return((u=this.data)==null?void 0:(O=u.icon)==null?void 0:O.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
qH.prototype.activeChangedForBinding=qH.prototype.activeChangedForBinding;qH.prototype.dataChanged_=qH.prototype.dataChanged_;_.S([_.x(_.zk.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],qH.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],qH.prototype,"data",void 0);_.S([_.R({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.V("design:type",String)],qH.prototype,"id",void 0);
_.S([_.R({computed:"computeTargetId(data.targetId)"}),_.V("design:type",String)],qH.prototype,"targetId",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],qH.prototype,"active",void 0);_.S([_.R({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.V("design:type",String)],qH.prototype,"icon",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qH.prototype,"dataChanged_",null);
_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],qH.prototype,"iconFilled",null);_.S([_.GO("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qH.prototype,"activeChangedForBinding",null);_.S([_.Ff({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],qH);
_.d(qH,"yt-emoji-picker-category-button-renderer",function(){if(DmX===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;ZWE===void 0&&(ZWE=document.createElement("template"));var O=ZWE;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);DmX=Y}Y=DmX;return Y},{mode:2});var hw4;var dme;var s6=function(){var Y=_.Z.apply(this,arguments)||this;Y.ariaLabel=null;Y.ariaActivedescendant=null;Y.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};Y.JSC$14629_ignoreNextFocus_=!1;Y.longPressTimeoutId=-1;return Y};
_.m(s6,_.Z);_.H=s6.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 Y=_.M4(),G=0;G<this.emoji.length;G++){var u={veType:88013,elementIndex:G},O=this.emoji[G];O.isCustomEmoji&&(O=document.querySelector(("#"+O.emojiId).replace("/","\\/")))&&(u=_.QZ(Y,u))&&(O.visualElement=u)}};
_.H.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.H.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.H.emojiSkinToneChanged_=function(Y){this.skinTone=Y};
_.H.dataChanged=function(){this.data&&this.data.emojiData&&ex_(this.emojiManager,this.data.emojiData)};
_.H.emojiUrl=function(Y){Y=this.getEmoji(Y);if(!Y)return"";var G;Y=(G=Y.image)==null?void 0:G.thumbnails;return _.dH(Y,24)||""};
_.H.emojiAlt=function(Y){var G=this.get("image.accessibility.accessibilityData.label",Y);return G?G:Y.isCustomEmoji?Y.shortcuts[0]:Y.emojiId};
_.H.emojiAriaLabel=function(Y){return Y.shortcuts?Y.shortcuts[0]:""};
_.H.emojiAriaSelected=function(Y,G,u){return Y&&u==G?"true":"false"};
_.H.getEmoji=function(Y){if(this.emojiManager)return this.shouldUseStickyPreferences?o9I(this.emojiManager,Y):eZ(this.emojiManager,Y)};
_.H.computeId_=function(Y){return Y.categoryId||""};
_.H.computeEmoji=function(Y){var G=this;return this.emojiManager?Y.emojiIds?Y.emojiIds.map(function(u){return u?_.CZ(G.emojiManager,u):null}).filter(Q7a):Y.emojiData?Y.emojiData.map(function(u){var O=!!u.emojiId&&_.CZ(G.emojiManager,u.emojiId);
return O?Object.assign({},O,u):null}).filter(Q7a):[]:[]};
_.H.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.H.computeAriaLabel_=function(Y){return _.Ri(Y)};
_.H.computeAriaActivedescendant_=function(Y,G){return Y&&Y[G]?Y[G].emojiId||"":""};
_.H.handleLongPressEmojiWithVariants=function(Y,G){this.changeFocusToEmoji(Y.emojiId,!1);this.openVariantSelector(Y,G)};
_.H.onMouseDown=function(Y){var G=this;this.hostElement!==document.activeElement&&(this.JSC$14629_ignoreNextFocus_=!0);if(Y.button===0){var u=_.Zb(Y);if(u instanceof HTMLImageElement){var O=_.l0(this.hostElement).querySelector("#repeat").itemForElement(u);this.emojiContainsVariants(O)&&(this.longPressTimeoutId=setTimeout(function(){G.handleLongPressEmojiWithVariants(O,u)},500))}}};
_.H.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.H.onFocus=function(){this.JSC$14629_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14629_ignoreNextFocus_=!1};
_.H.onBlur_=function(){this.showFocus=!1};
_.H.emojiContainsVariants=function(Y){return!!(Y&&Y.variantIds&&Y.variantIds.length)};
_.H.onClick=function(Y){clearTimeout(this.longPressTimeoutId);Y=_.Zb(Y);if(Y instanceof HTMLImageElement){var G=Y.id;this.changeFocusToEmoji(G,!1);var u=this.getEmoji(G),O;if(O=this.shouldUseStickyPreferences&&this.emojiContainsVariants(u)){var Q;O=!((Q=this.emojiManager.emojiMap[G])!=null&&Q.stickyPrefId)}O?(Q=_.l0(this.hostElement).querySelector("#repeat").itemForElement(Y),this.openVariantSelector(Q,Y)):_.$s(this.hostElement,"yt-emoji-select",u)}};
_.H.isActiveEmojiWithVariants=function(Y,G){return Y&&G?G.stickyPrefId?Y===G.stickyPrefId:Y===G.emojiId:!1};
_.H.onCloseEmojiVariantSelector=function(Y){this.activeEmojiWithVariantsId===Y&&(this.activeEmojiWithVariantsId="")};
_.H.onMouseOver_=function(Y){Y=_.Zb(Y);Y instanceof HTMLImageElement&&_.$s(this.hostElement,"yt-emoji-hover",_.CZ(this.emojiManager,Y.id))};
_.H.changeFocus_=function(Y,G){this.focusedIndex=(this.focusedIndex+Y+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(Y=this.emoji[this.focusedIndex],G&&(this.showFocus=!0,_.l0(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.$s(this.hostElement,"yt-emoji-hover",Y)))};
_.H.changeFocusToEmoji=function(Y,G){if(Y){var u=this.emoji.findIndex(function(O){return O.emojiId===Y});
u!==-1&&this.changeFocus_(u-this.focusedIndex,G)}};
_.H.onKeyDown_=function(Y){switch(Y.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var G=this.emoji[this.focusedIndex];if(G&&G.emojiId){if(this.emojiContainsVariants(G)){var u=_.l0(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(G,u)}else _.$s(this.hostElement,"yt-emoji-select",eZ(this.emojiManager,G.emojiId)),this.hostElement.focus();Y.preventDefault()}}break;case 40:this.changeFocus_(1,!0);Y.preventDefault();break;case 38:this.changeFocus_(-1,!0),
Y.preventDefault()}};
_.H.onEmojiStickyPreferenceChanged=function(Y,G){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&Y.emojiId&&Y.variantIds&&Y.variantIds.includes(G)&&this.activeEmojiWithVariantsId!==G&&this.setStickyEmojiPreference(Y.emojiId,G)};
_.H.openVariantSelector=function(Y,G){this.activeEmojiWithVariantsId=Y.stickyPrefId||Y.emojiId||"";_.$s(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:Y,target:G})};
_.H.setStickyEmojiPreference=function(Y,G){if(this.data){var u=this.emoji.findIndex(function(Q){return Q.emojiId===Y});
if(u!==-1){var O=this.emoji[u];O.stickyPrefId=G;this.set("emoji."+u,Object.assign({},O));this.activeEmojiWithVariantsId=G}}};
s6.prototype.onKeyDown_=s6.prototype.onKeyDown_;s6.prototype.onMouseOver_=s6.prototype.onMouseOver_;s6.prototype.onClick=s6.prototype.onClick;s6.prototype.onBlur_=s6.prototype.onBlur_;s6.prototype.onFocus=s6.prototype.onFocus;s6.prototype.onMouseUp=s6.prototype.onMouseUp;s6.prototype.onMouseDown=s6.prototype.onMouseDown;s6.prototype.dataChanged=s6.prototype.dataChanged;s6.prototype.disableIncrementalLoadingChanged_=s6.prototype.disableIncrementalLoadingChanged_;s6.prototype.emojiManagerChanged_=s6.prototype.emojiManagerChanged_;
s6.prototype.emojiChanged_=s6.prototype.emojiChanged_;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],s6.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],s6.prototype,"data",void 0);_.S([_.R({computed:"computeId_(data)"}),_.V("design:type",String)],s6.prototype,"id",void 0);_.S([_.R({computed:"computeEmoji(data)"}),_.V("design:type",Array)],s6.prototype,"emoji",void 0);_.S([_.R(),_.V("design:type",Number)],s6.prototype,"skinTone",void 0);
_.S([_.R(),_.V("design:type",_.fZ)],s6.prototype,"emojiManager",void 0);_.S([_.R(),_.V("design:type",Boolean)],s6.prototype,"disableIncrementalLoading",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],s6.prototype,"focusedIndex",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],s6.prototype,"showFocus",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.V("design:type",Object)],s6.prototype,"ariaLabel",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.V("design:type",Object)],s6.prototype,"ariaActivedescendant",void 0);_.S([_.R({value:60}),_.V("design:type",Number)],s6.prototype,"domRepeatTargetFramerate",void 0);_.S([_.R({value:1}),_.V("design:type",Number)],s6.prototype,"domRepeatInitialCount",void 0);_.S([_.R({value:""}),_.V("design:type",String)],s6.prototype,"activeEmojiWithVariantsId",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],s6.prototype,"shouldUseStickyPreferences",void 0);_.S([_.GO("emoji"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],s6.prototype,"emojiChanged_",null);_.S([_.GO("emojiManager"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],s6.prototype,"emojiManagerChanged_",null);
_.S([_.GO("disableIncrementalLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],s6.prototype,"disableIncrementalLoadingChanged_",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],s6.prototype,"dataChanged",null);_.S([_.Yo("mousedown"),_.V("design:type",Function),_.V("design:paramtypes",[Object]),_.V("design:returntype")],s6.prototype,"onMouseDown",null);
_.S([_.Yo("mouseup"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],s6.prototype,"onMouseUp",null);_.S([_.Yo("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],s6.prototype,"onFocus",null);_.S([_.Yo("blur"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],s6.prototype,"onBlur_",null);
_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],s6.prototype,"onClick",null);_.S([_.Yo("mouseover"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],s6.prototype,"onMouseOver_",null);_.S([_.Yo("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],s6.prototype,"onKeyDown_",null);
_.S([_.Ff({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],s6);
_.d(s6,"yt-emoji-picker-category-renderer",function(){if(dme===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;hw4===void 0&&(hw4=document.createElement("template"));var O=hw4;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);dme=Y}Y=dme;return Y},{mode:2});var bW1;var Sll;var Ns2;var j6_;var cO=function(){var Y=_.Z.apply(this,arguments)||this;Y.ariaLabel=null;Y.ariaActivedescendant=null;Y.getFormattedStringRawText=_.Ri;Y.JSC$14635_ignoreNextFocus_=!1;return Y};
_.m(cO,_.Z);_.H=cO.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(Y){var G,u;Y=(G=eZ(this.emojiManager,Y,!0))==null?void 0:(u=G.image)==null?void 0:u.thumbnails;return _.dH(Y,24)||""};
_.H.emojiAlt=function(Y){var G=this.get("image.accessibility.accessibilityData.label",Y);return G?G:Y.isCustomEmoji?Y.shortcuts[0]:Y.emojiId};
_.H.emojiId=function(Y){return"emoji"+Y};
_.H.computeId_=function(Y){return Y.categoryId||""};
_.H.computeAriaActivedescendant_=function(Y){return this.emoji&&Y<this.emoji.length?this.emojiId(Y):""};
_.H.emojiChanged_=function(){this.changeFocus_(0,!1);for(var Y=_.M4(),G=0;G<this.emoji.length;G++){var u={veType:88013,elementIndex:G},O=this.emoji[G];O.isCustomEmoji&&(O=document.querySelector(("#"+O.emojiId).replace("/","\\/")))&&(u=_.QZ(Y,u))&&(O.visualElement=u)}};
_.H.computeEmoji_=function(Y){var G=this;return this.emojiManager?Y.emojiIds.map(function(u){return _.CZ(G.emojiManager,u,!0)}).filter(MUj):[]};
_.H.titleOffsetChanged_=function(){var Y=this.hostElement.getBoundingClientRect(),G=_.l0(this.hostElement).querySelector("#title").getBoundingClientRect();Y=Math.max(0,Math.min(this.titleOffset,Y.height-G.height));_.l0(this.hostElement).querySelector("#title").style.top=Y+"px"};
_.H.onEmojiMouseOver_=function(Y){_.$s(this.hostElement,"yt-emoji-hover",Y.model.item)};
_.H.onEmojiTap_=function(Y){this.data.command&&(Y=BF1(_.sH().resolve(_.q3(bj)),this.data.command,Y),_.$s(this.hostElement,"yt-navigate",Y))};
_.H.emojiAriaLabel=function(Y){return Y.shortcuts[0]};
_.H.emojiAriaSelected=function(Y,G,u){return Y&&u==G?"true":"false"};
_.H.changeFocus_=function(Y,G){var u=this.emoji.length;this.focusedIndex=(this.focusedIndex+Y+u)%u;Y=this.emoji[this.focusedIndex];if(G){var O;(O=_.l0(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||O.scrollIntoView(!1);_.$s(this.hostElement,"yt-emoji-hover",Y)}};
_.H.onMouseDown_=function(){this.JSC$14635_ignoreNextFocus_=!0};
_.H.onFocus_=function(){this.JSC$14635_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14635_ignoreNextFocus_=!1};
_.H.onBlur_=function(){this.showFocus=!1};
_.H.onKeyDown_=function(Y){switch(Y.keyCode){case 13:this.onEmojiTap_(Y);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);Y.preventDefault();break;case 38:this.changeFocus_(-1,!0),Y.preventDefault()}};
cO.prototype.onKeyDown_=cO.prototype.onKeyDown_;cO.prototype.onBlur_=cO.prototype.onBlur_;cO.prototype.onFocus_=cO.prototype.onFocus_;cO.prototype.onMouseDown_=cO.prototype.onMouseDown_;cO.prototype.onEmojiTap_=cO.prototype.onEmojiTap_;cO.prototype.titleOffsetChanged_=cO.prototype.titleOffsetChanged_;cO.prototype.emojiChanged_=cO.prototype.emojiChanged_;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],cO.prototype,"ytComponentBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],cO.prototype,"data",void 0);_.S([_.R({computed:"computeId_(data)"}),_.V("design:type",String)],cO.prototype,"id",void 0);_.S([_.R({computed:"computeEmoji_(data)"}),_.V("design:type",Array)],cO.prototype,"emoji",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],cO.prototype,"titleOffset",void 0);_.S([_.R({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.V("design:type",Object)],cO.prototype,"ariaLabel",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.V("design:type",Object)],cO.prototype,"ariaActivedescendant",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],cO.prototype,"showFocus",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],cO.prototype,"focusedIndex",void 0);_.S([_.R(),_.V("design:type",_.fZ)],cO.prototype,"emojiManager",void 0);
_.S([_.GO("emoji"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cO.prototype,"emojiChanged_",null);_.S([_.GO("titleOffset"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cO.prototype,"titleOffsetChanged_",null);_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],cO.prototype,"onEmojiTap_",null);
_.S([_.Yo("mousedown"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cO.prototype,"onMouseDown_",null);_.S([_.Yo("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cO.prototype,"onFocus_",null);_.S([_.Yo("blur"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cO.prototype,"onBlur_",null);
_.S([_.Yo("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],cO.prototype,"onKeyDown_",null);_.S([_.Ff({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],cO);
_.d(cO,"yt-emoji-picker-upsell-category-renderer",function(){if(j6_===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Ns2===void 0&&(Ns2=document.createElement("template"));var O=Ns2;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);j6_=Y}Y=j6_;return Y},{mode:2});var VAE;var lkk;var U6=function(){var Y=_.Z.apply(this,arguments)||this;Y.scrollAction="lock";Y.verticalAlign="top";return Y};
_.m(U6,_.Z);_.H=U6.prototype;_.H.onClick=function(Y){Y=_.Zb(Y);Y instanceof HTMLImageElement&&_.$s(this.hostElement,"yt-emoji-select",_.CZ(this.emojiManager,Y.id))};
_.H.openSelector=function(){this.ironOverlayBehavior.open()};
_.H.onDomChange=function(){yck(this.ytEmojiSelectorBehavior)};
_.H.computeIsFamilySelector=function(Y){var G;return(Y==null?void 0:(G=Y.emoji)==null?void 0:G.emojiId)==="\ud83d\udc6a"};
_.H.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var Y=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];Y&&Y.emojiId&&(_.$s(this.hostElement,"yt-emoji-select",_.CZ(this.emojiManager,Y.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Uk.Object.defineProperties(U6.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var Y=this,G,u,O;return this.emojiManager&&((G=this.data)==null?0:(u=G.emoji)==null?0:(O=u.variantIds)==null?0:O.length)?this.data.emoji.variantIds.map(function(Q){return!!Q&&_.CZ(Y.emojiManager,Q)}).filter(function(Q){return!!Q}):[]}}});
U6.prototype.onClick=U6.prototype.onClick;_.S([_.x(_.CM),_.V("design:type",Object)],U6.prototype,"ironOverlayBehavior",void 0);_.S([_.x(ewT),_.V("design:type",Object)],U6.prototype,"ytEmojiSelectorBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],U6.prototype,"data",void 0);_.S([_.R(),_.V("design:type",_.fZ)],U6.prototype,"emojiManager",void 0);_.S([_.R(),_.V("design:type",Object)],U6.prototype,"scrollAction",void 0);_.S([_.R(),_.V("design:type",Object)],U6.prototype,"verticalAlign",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.V("design:type",Boolean)],U6.prototype,"isFamilySelector",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],U6.prototype,"emojiVariants",null);_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[MouseEvent]),_.V("design:returntype")],U6.prototype,"onClick",null);_.S([_.Ff({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],U6);
_.d(U6,"yt-emoji-variant-selector",function(){if(lkk===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;VAE===void 0&&(VAE=document.createElement("template"));var O=VAE;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);lkk=Y}Y=lkk;return Y},{mode:2});var BsT=/:/g,$mV=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],vO=function(){var Y=_.Z.apply(this,arguments)||this;Y.emojiVariantSelector=null;Y.emojiMultiPersonSelector=null;Y.identity=_.Zt;Y.lastAnimationTime_=0;Y.animationStart_=null;Y.animationEnd_=null;return Y};
_.m(vO,_.Z);_.H=vO.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=_.Ai)};
_.H.attached=function(){_.YU&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&AF1(this.emojiManager)};
_.H.dataChanged=function(){var Y;if((Y=this.data)==null?0:Y.categories){Y=this.emojiManager;var G=this.getCustomEmojiIds();Y.pickerCustomEmojiIds=[].concat(_.c8(rFT),_.c8(G))}};
_.H.getCustomEmojiIds=function(){var Y,G=(Y=this.data.categories)==null?void 0:Y.find(function(M){var t;return((t=M.emojiPickerCategoryRenderer)==null?void 0:t.categoryId)&&$mV.includes(M.emojiPickerCategoryRenderer.categoryId)}),u;
Y=(u=this.data.categories)==null?void 0:u.find(function(M){return M.emojiPickerUpsellCategoryRenderer});
var O,Q;return[G==null?void 0:(O=G.emojiPickerCategoryRenderer)==null?void 0:O.emojiIds,Y==null?void 0:(Q=Y.emojiPickerUpsellCategoryRenderer)==null?void 0:Q.emojiIds].flat().filter(function(M){return!!M})};
_.H.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.H.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.H.updateCategoriesAndPlaceholderInternal=function(Y,G){var u=this;Y&&G&&(this.categories=Y.categories||[],this.categoryButtons=Y.categoryButtons||[],this.resetPlaceholder(),this.search="",_.CD(function(){u.updateButtons_()}))};
_.H.computeId_=function(Y){return Y.id||""};
_.H.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(Y){return Y.emojiPickerCategoryRenderer&&Y.emojiPickerCategoryRenderer.emojiData}):!1};
_.H.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.H.onShowEmojiVariantSelector=function(Y){var G=Y.detail.emojiData;G.variantIds&&G.variantIds.length&&(G.multiSelectorThumbnailRow&&G.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:G,target:Y.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:G,target:Y.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.H.onIronOverlayClosed=function(Y){var G=o9I(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");G&&Y.composedPath&&(Y.composedPath().includes(_.l0(this.hostElement).querySelector("#emoji-variant-selector"))||Y.composedPath().includes(_.l0(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.qZ(this.hostElement,"yt-close-emoji-variant-selector",[G.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.H.onEmojiVariantSelectorMouseup=function(Y){var G=Y.target.firstChild;this.variantSelectorOpened&&G&&_.CD(function(){G.noCancelOnOutsideClick=!1},100)};
_.H.onEmojiVariantSelectorMousedown=function(Y){Y=Y.target.firstChild;this.variantSelectorOpened&&Y&&(Y.noCancelOnOutsideClick=!1)};
_.H.onSelectCategory_=function(Y){var G=this.search!="";this.search="";for(var u=_.l0(this.hostElement).querySelector("#categories").children,O=0;O<u.length;O++){var Q=u[O];if(Q.id==Y.detail.categoryId){G?(_.l0(this.hostElement).querySelector("#categories").scrollTop=Q.offsetTop,this.updateButtons_()):(this.animationStart_=_.l0(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=Q.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.H.onEmojiHover_=function(Y){this.placeholder=Y.detail.shortcuts?Y.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(Y){Y=Y.replace(BsT,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();Y=Y.split(" ");for(var G=[],u=this.emojiManager.emojis,O=0;O<u.length;O++){var Q=u[O];if(Q.searchTerms)for(var M=0;M<Q.searchTerms.length;M++){for(var t=Q.searchTerms[M].toLocaleLowerCase(),K=!1,L=0;L<Y.length;L++)if(t.indexOf(Y[L])!=-1){K=!0;break}if(K&&(!Q.isCustomEmoji||!Q.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(Q.emojiId))){G.push(Q.emojiId);
break}}}return{categoryId:-1,emojiIds:G}};
_.H.computeSearchEmptyMessage_=function(Y,G){return Y&&G&&G.emojiIds&&G.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.H.computeSearching_=function(Y){return this.emojiManager&&Y.replace(BsT,"").length>1};
_.H.computeSkinToneHidden=function(){var Y;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((Y=this.data)==null||!Y.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(Y){Y=Number(Y.target.getAttribute("tone"));this.set("emojiManager.skinTone",Y);_.qZ(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[Y]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.H.skinToneChanged_=function(){_.l0(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var Y=_.l0(this.hostElement).querySelector("#dropdown-content").children,G=0;G<Y.length;G++)G===this.skinTone?Y[G].setAttribute("selected",""):Y[G].removeAttribute("selected")};
_.H.animateScroll_=function(Y){this.lastAnimationTime_||(this.lastAnimationTime_=Y);Y-=this.lastAnimationTime_;Y<200?(_.l0(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*Y/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.l0(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 Y=null;if(!this.search)for(var G=_.l0(this.hostElement).querySelector("#categories").scrollTop,u=_.l0(this.hostElement).querySelector("#categories").children,O=0;O<u.length;O++){var Q=u[O];Q.offsetTop<=G&&(Y=Q.id)}G=_.l0(this.hostElement).querySelector("#category-buttons").children;for(u=0;u<G.length;u++)O=G[u],O.active=O.id===Y};
vO.prototype.searchChanged_=vO.prototype.searchChanged_;vO.prototype.skinToneChanged_=vO.prototype.skinToneChanged_;vO.prototype.onEmojiHover_=vO.prototype.onEmojiHover_;vO.prototype.onSelectCategory_=vO.prototype.onSelectCategory_;vO.prototype.onShowEmojiVariantSelector=vO.prototype.onShowEmojiVariantSelector;vO.prototype.updateCategoriesAndPlaceholder_=vO.prototype.updateCategoriesAndPlaceholder_;vO.prototype.dataChanged=vO.prototype.dataChanged;
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],vO.prototype,"data",void 0);_.S([_.R({value:function(){return[]}}),
_.V("design:type",Array)],vO.prototype,"categories",void 0);_.S([_.R({value:function(){return[]}}),
_.V("design:type",Array)],vO.prototype,"categoryButtons",void 0);_.S([_.R({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.V("design:type",Boolean)],vO.prototype,"disableScroll",void 0);_.S([_.R({computed:"computeId_(data)",reflectToAttribute:!0}),_.V("design:type",String)],vO.prototype,"id",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],vO.prototype,"selected",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],vO.prototype,"disableIncrementalLoading",void 0);_.S([_.R(),_.V("design:type",String)],vO.prototype,"placeholder",void 0);_.S([_.R({value:""}),_.V("design:type",String)],vO.prototype,"search",void 0);_.S([_.R({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.V("design:type",Boolean)],vO.prototype,"searching",void 0);_.S([_.R({computed:"computeSearchCategory_(search)"}),_.V("design:type",Object)],vO.prototype,"searchCategory",void 0);
_.S([_.R({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.V("design:type",Object)],vO.prototype,"searchEmptyMessage",void 0);_.S([_.R({computed:"identity(emojiManager.skinTone)"}),_.V("design:type",Number)],vO.prototype,"skinTone",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],vO.prototype,"skinToneOpened",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],vO.prototype,"variantSelectorOpened",void 0);
_.S([_.R({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.V("design:type",Boolean)],vO.prototype,"skinToneHidden",void 0);_.S([_.R(),_.V("design:type",_.fZ)],vO.prototype,"emojiManager",void 0);_.S([_.R(),_.V("design:type",Object)],vO.prototype,"emojiVariantSelector",void 0);_.S([_.R(),_.V("design:type",Object)],vO.prototype,"emojiMultiPersonSelector",void 0);
_.S([_.R({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.V("design:type",Boolean)],vO.prototype,"shouldUseStickyPreferences",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vO.prototype,"dataChanged",null);_.S([_.GO("data","selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vO.prototype,"updateCategoriesAndPlaceholder_",null);
_.S([_.Yo("yt-show-emoji-variant-selector"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],vO.prototype,"onShowEmojiVariantSelector",null);_.S([_.Yo("yt-emoji-picker-select-category"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],vO.prototype,"onSelectCategory_",null);_.S([_.Yo("yt-emoji-hover"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],vO.prototype,"onEmojiHover_",null);
_.S([_.GO("skinTone"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vO.prototype,"skinToneChanged_",null);_.S([_.GO("search"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vO.prototype,"searchChanged_",null);_.S([_.Ff({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],vO);
_.d(vO,"yt-emoji-picker-renderer",function(){if(Sll===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;bW1===void 0&&(bW1=document.createElement("template"));var O=bW1;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Sll=Y}Y=Sll;return Y},{mode:2});var Ji=function(){var Y=_.Z.apply(this,arguments)||this;Y.emojiManager=_.Ai;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.selectedIndex=1;Y.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return Y};
_.m(Ji,_.Z);_.H=Ji.prototype;_.H.handleEmojiCustomizationVisible=function(Y){this.emojiPickerRenderer.selected=Y;this.selectedIndex=1;Y?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.H.emojiCustomizationSetChanged=function(){var Y;(Y=this.data)!=null&&Y.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.UI(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.H.updateSaveButtonState=function(Y){var G;(G=this.data)!=null&&G.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.t$("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:Y}))};
_.H.emojiUrl=function(Y){Y=_.CZ(this.emojiManager,Y);if(!Y)return"";var G;Y=(G=Y.image)==null?void 0:G.thumbnails;return _.dH(Y,24)||""};
_.H.emojiAlt=function(Y){var G=_.CZ(this.emojiManager,Y);if(!G)return Y;var u,O,Q,M=(G==null?void 0:(u=G.image)==null?void 0:(O=u.accessibility)==null?void 0:(Q=O.accessibilityData)==null?void 0:Q.label)||"";return M?M:G.isCustomEmoji?G.shortcuts[0]:G.emojiId||Y};
_.H.emojiAriaLabel=function(Y){var G,u;return((G=_.CZ(this.emojiManager,Y))==null?void 0:(u=G.shortcuts)==null?void 0:u[0])||Y};
_.H.onEmojiClick=function(Y){Y.model.index!==0&&(this.selectedIndex=Y.model.index)};
_.H.onEmojiSelect=function(Y){Y=Y.detail;var G,u;((G=this.data)==null?0:G.emojiCustomizationSetEntityKey)&&((u=this.emojiCustomizationSet)==null?0:u.emojiId)&&Y.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,Y.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.t$("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,Y.emojiId,this.selectedIndex)}))};
_.H.canEditEmoji=function(Y,G,u){Y=Y.indexOf(G);return Y===u||Y===0||u===0?!1:!0};
_.H.getUpdatedEmojiIdList=function(Y,G,u){var O=Y.indexOf(G);Y=[].concat(_.c8(Y));O>=0&&(Y[O]=Y[u]);Y[u]=G;return Y};
_.Uk.Object.defineProperties(Ji,{template:{configurable:!0,enumerable:!0,get:function(){if(L5E===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;TsT===void 0&&(TsT=document.createElement("template"));var O=TsT;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);L5E=Y}Y=L5E;return Y}}});
Ji.prototype.onEmojiSelect=Ji.prototype.onEmojiSelect;_.S([_.x(_.pI),_.V("design:type",Object)],Ji.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Ji.prototype,"ytActionHandlerBehavior",void 0);_.S([_.Ox("yt-emoji-picker-renderer"),_.V("design:type",Object)],Ji.prototype,"emojiPickerRenderer",void 0);
_.S([_.R({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"emojiCustomizationSetEntity",G)},
observer:"emojiCustomizationSetChanged"}),_.V("design:type",Object)],Ji.prototype,"emojiCustomizationSet",void 0);_.S([_.R(),_.V("design:type",Object)],Ji.prototype,"originalEmojiSet",void 0);_.S([_.R(),_.V("design:type",_.fZ)],Ji.prototype,"emojiManager",void 0);_.S([_.R(),_.V("design:type",Object)],Ji.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ji.prototype,"isDarkTheme",void 0);_.S([_.R(),_.V("design:type",Object)],Ji.prototype,"selectedIndex",void 0);
_.S([_.Yo("yt-emoji-select"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Ji.prototype,"onEmojiSelect",null);_.S([_.Ff({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],Ji);var qle;var s6k;var cc1;var Um_;var YK=function(){var Y=_.Z.apply(this,arguments)||this;Y.authorBadges=[];return Y};
_.m(YK,_.Z);_.H=YK.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 Y=JkU(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",Y)};
_.H.updateMessage=function(){var Y=this.data.message,G=_.l0(_.l0(this.hostElement).querySelector("#message"));G.textContent="";Y&&G.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(Y))};
_.H.shouldSupportWholeItemClick=function(){return!0};
_.H.onShowOriginalClick=function(Y){Y.preventDefault();this.showOriginal=!0};
_.H.computeShowBar=function(Y,G,u){return Y&&G||u};
_.H.computeAuthorBadges=function(Y){return Y.authorBadges||[]};
_.H.computeAuthorIsOwner=function(Y){return!!YCI(Y.authorBadges,"owner")};
_.H.computeAuthorNameColor=function(Y){var G;if(_.F("live_chat_author_name_color_usernames")&&(Y==null?0:(G=Y.authorName)==null?0:G.simpleText))return _.OFU(_.Qju(Y.authorName.simpleText));if(_.F("live_chat_seed_color_usernames")&&(Y==null?0:Y.authorSeedColorArgb))return _.OFU(_.sx(Y.authorSeedColorArgb));if(_.F("live_chat_colored_usernames"))return"#cc0000";var u;return _.F("live_chat_simple_color_usernames")&&(Y==null?0:(u=Y.authorName)==null?0:u.simpleText)&&(Y==null?0:Y.authorUsernameColorLight)&&
(Y==null?0:Y.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.sx(Y.authorUsernameColorDark):_.sx(Y.authorUsernameColorLight):""};
YK.prototype.updateMessage=YK.prototype.updateMessage;YK.prototype.dataChanged=YK.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],YK.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],YK.prototype,"data",void 0);
_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],YK.prototype,"showOriginal",void 0);_.S([_.R({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.V("design:type",Boolean)],YK.prototype,"isDimmed",void 0);_.S([_.R({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.V("design:type",Boolean)],YK.prototype,"showBar",void 0);
_.S([_.R({computed:"computeAuthorBadges(data)"}),_.V("design:type",Array)],YK.prototype,"authorBadges",void 0);_.S([_.R({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],YK.prototype,"authorIsOwner",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],YK.prototype,"inCollapsedBanner",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],YK.prototype,"inBanner",void 0);
_.S([_.R({value:_.F("live_chat_hide_avatars"),reflectToAttribute:!0}),_.V("design:type",Boolean)],YK.prototype,"avatarHidden",void 0);_.S([_.R({computed:"computeAuthorNameColor(data)"}),_.V("design:type",String)],YK.prototype,"authorNameColor",void 0);_.S([_.R(),_.V("design:type",_.ZY)],YK.prototype,"participantsManager",void 0);_.S([_.R({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.V("design:type",Object)],YK.prototype,"filledButtonOverrides",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],YK.prototype,"dataChanged",null);_.S([_.GO("data.message"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],YK.prototype,"updateMessage",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],YK);
_.d(YK,"yt-live-chat-text-message-renderer",function(){if(Um_===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;cc1===void 0&&(cc1=document.createElement("template"));var O=cc1;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Um_=Y}Y=Um_;return Y},{mode:0});var Ge=function(){var Y=_.Z.apply(this,arguments)||this;Y.tonalButtonOverrides={type:"tonal",style:"overlay"};return Y};
_.m(Ge,_.Z);
Ge.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]]"}}}}}};
Ge.prototype.shouldSupportInlineActionButtons=function(){return!0};
Ge.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Uk.Object.defineProperties(Ge.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],Ge.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ge.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ge.prototype,"data",void 0);_.S([_.R(),_.V("design:type",_.ZY)],Ge.prototype,"participantsManager",void 0);
_.S([_.R(),_.V("design:type",Object)],Ge.prototype,"tonalButtonOverrides",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data.infoDialogButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ge.prototype,"hasInfoDialogButton",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Ge);
_.d(Ge,"yt-live-chat-auto-mod-message-renderer",function(){if(s6k===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;qle===void 0&&(qle=document.createElement("template"));var O=qle;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);s6k=Y}Y=s6k;return Y},{mode:0});var vul;var Jc2;var Y$X;var GIX=function(){return _.Z.apply(this,arguments)||this};
_.m(GIX,_.Z);_.S([_.R(),_.V("design:type",Object)],GIX.prototype,"data",void 0);_.S([_.pD({is:"ytd-factoid-renderer",disableElementRegistration:!0})],GIX);
_.d(GIX,"ytd-factoid-renderer",function(){if(Y$X!==void 0)return Y$X;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Y$X=Y},{mode:1});var uA=function(){return _.Z.apply(this,arguments)||this};
_.m(uA,_.Z);uA.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.S([_.R(),_.V("design:type",Object)],uA.prototype,"data",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],uA.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],uA);
_.d(uA,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Jc2===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;vul===void 0&&(vul=document.createElement("template"));var O=vul;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Jc2=Y}Y=Jc2;return Y},{mode:0});var upk;var OCl;var Oo=function(){return _.Z.apply(this,arguments)||this};
_.m(Oo,_.Z);Oo.prototype.ready=function(){var Y=document.querySelector("yt-live-chat-app");Y&&Y.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Boolean)],Oo.prototype,"menuFocused",void 0);_.S([_.R(),_.V("design:type",Object)],Oo.prototype,"data",void 0);_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],Oo.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Oo);
_.d(Oo,"yt-live-chat-donation-announcement-renderer",function(){if(OCl===void 0){var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;upk===void 0&&(upk=document.createElement("template"));var O=upk;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);OCl=Y}Y=OCl;return Y},{mode:0});var Q7k;var MUM,HCk=function(){if(MUM!==void 0)return MUM;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Q7k===void 0&&(Q7k=document.createElement("template"));var O=Q7k;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return MUM=Y};var Q8=function(){return _.Z.apply(this,arguments)||this};
_.m(Q8,_.Z);_.Uk.Object.defineProperties(Q8,{template:{configurable:!0,enumerable:!0,get:function(){return HCk()}}});
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Q8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Q8.prototype,"data",void 0);_.S([_.Ff({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],Q8);_.d(Q8,"yt-live-chat-empty-feed-view-model",function(){return HCk()},{mode:0});var Ej1;var tUe;var Me=function(){return _.Z.apply(this,arguments)||this};
_.m(Me,_.Z);Me.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"}}}}}};
_.Uk.Object.defineProperties(Me.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var Y,G;return{runs:[{text:(Y=this.data)==null?void 0:(G=Y.channelName)==null?void 0:G.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var Y=[],G;if((G=this.data)==null||!G.channelBadges)return Y;var u;G=_.E((u=this.data)==null?void 0:u.channelBadges);for(u=G.next();!u.done;u=G.next()){u=_.z(u.value,UQM);var O=void 0,Q=void 0;if((O=u)==null?0:(Q=O.badgeImage)==null?0:Q.sources)O=void 0,Q={liveChatAuthorBadgeRenderer:{tooltip:u.tooltip,accessibility:{accessibilityData:{label:(O=_.z(u.rendererContext,_.L$))==null?void 0:O.label}}}},u.badgeImage.sources[0].clientResource?Q.liveChatAuthorBadgeRenderer.icon=
{iconType:u.badgeImage.sources[0].clientResource.imageName}:Q.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:u.badgeImage.sources},Y.push(Q)}return Y}}});
_.S([_.R(),_.V("design:type",Object)],Me.prototype,"data",void 0);_.S([_.f("data.channelName"),_.V("design:type",Object),_.V("design:paramtypes",[])],Me.prototype,"channelName",null);_.S([_.f("data.channelBadges"),_.V("design:type",Array),_.V("design:paramtypes",[])],Me.prototype,"channelBadges",null);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Me.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Me);
_.d(Me,"yt-live-chat-identity-view-model",function(){if(tUe===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Ej1===void 0&&(Ej1=document.createElement("template"));var O=Ej1;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);tUe=Y}Y=tUe;return Y},{mode:0});var Kce;var aoR;var Tr4;var LcT;var Hf=function(){var Y=_.Z.apply(this,arguments)||this;Y.hidden=!1;Y.supportsInlineActionButtons=!0;return Y};
_.m(Hf,_.Z);Hf.prototype.ready=function(){var Y;((Y=document.querySelector("yt-live-chat-app"))==null?0:Y.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Hf.prototype.dataChanged=function(Y){var G=(0,_.sb)(_.l0(this.hostElement).querySelector("#detail-text"));G.textContent="";(Y==null?0:Y.detailText)&&G.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(Y.detailText))};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],Hf.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R({observer:"dataChanged"}),_.V("design:type",Object)],Hf.prototype,"data",void 0);
_.S([_.R({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.V("design:type",Object)],Hf.prototype,"hidden",void 0);_.S([_.pD({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Hf);
_.d(Hf,"yt-live-chat-legacy-paid-message-renderer",function(){if(LcT===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Tr4===void 0&&(Tr4=document.createElement("template"));var O=Tr4;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);LcT=Y}Y=LcT;return Y},{mode:0});var gjV;var XLE;var PX4={},Eo=function(){return _.Mb.apply(this,arguments)||this};
_.m(Eo,_.Mb);Eo.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Eo.prototype.onLiveChatMembershipItemBehaviorClick=Eo.prototype.onLiveChatMembershipItemBehaviorClick;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Eo.prototype,"data",void 0);_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Eo.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.S([_.Hn()],Eo);
PX4.YtLiveChatMembershipItemBehavior=[Eo.prototype,_.c.YtRendererBehavior];var ts=function(){var Y=_.Z.apply(this,arguments)||this;Y.supportsInlineActionButtons=!0;Y.hasPrimaryHeaderText=!1;Y.showOnlyHeader=!1;Y.authorBadges=[];Y.modern=_.F("web_button_rework_with_live");Y.buttonOverrides={style:"overlay",type:"filled"};return Y};
_.m(ts,_.Z);_.H=ts.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 Y=document.querySelector("yt-live-chat-app");Y&&Y.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.H.messageChanged=function(){var Y=this.data.message,G=(0,_.sb)(_.l0(this.hostElement).querySelector("#message"));G.textContent="";Y&&G.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(Y))};
_.H.computeHasPrimaryHeaderText=function(Y){return!(!Y||!Y.headerPrimaryText)};
_.H.computeShowOnlyHeader=function(Y,G){return this.isMessageEmpty(Y,G)};
_.H.computeAuthorBadges=function(Y){return Y.authorBadges||[]};
_.H.isMessageEmpty=function(Y,G){return!Y||Y.empty?!0:!Y.message&&!Y.inputField&&!G};
_.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 _.l0(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.H.inputFocus=function(){var Y=this.getInputElement();Y&&Y.focus()};
_.H.inputInsertEmoji=function(Y){var G=this.getInputElement();G&&G.insertEmoji(Y)};
_.H.inputMessage=function(){var Y=this.getInputElement();return Y&&this.data.inputField?(Y.completeEmojis(),_.Cz(Y.liveChatRichMessageInput)):null};
_.H.onFooterButtonClick=function(){this.data.footerButton&&_.$s(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.H.shouldSupportWholeItemClick=function(){return!0};
ts.prototype.isDeletedChanged=ts.prototype.isDeletedChanged;ts.prototype.messageChanged=ts.prototype.messageChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ts.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],ts.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.x(PX4.YtLiveChatMembershipItemBehavior),_.V("design:type",Object)],ts.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ts.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ts.prototype,"data",void 0);_.S([_.R({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.V("design:type",Object)],ts.prototype,"hasPrimaryHeaderText",void 0);_.S([_.R({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.V("design:type",Object)],ts.prototype,"showOnlyHeader",void 0);
_.S([_.R({computed:"computeAuthorBadges(data)"}),_.V("design:type",Array)],ts.prototype,"authorBadges",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ts.prototype,"modern",void 0);_.S([_.GO("data.message"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ts.prototype,"messageChanged",null);_.S([_.GO("isDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ts.prototype,"isDeletedChanged",null);
_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],ts);
_.d(ts,"yt-live-chat-membership-item-renderer",function(){if(XLE===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;gjV===void 0&&(gjV=document.createElement("template"));var O=gjV;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);XLE=Y}Y=XLE;return Y},{mode:0});var Io2;var kIT;var K8=function(){return _.Z.apply(this,arguments)||this};
_.m(K8,_.Z);K8.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],K8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],K8.prototype,"data",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],K8);
_.d(K8,"yt-live-chat-mode-change-message-renderer",function(){if(kIT===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Io2===void 0&&(Io2=document.createElement("template"));var O=Io2;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);kIT=Y}Y=kIT;return Y},{mode:0});var njV;var Fc2;var aV=function(){return _.Z.apply(this,arguments)||this};
_.m(aV,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],aV.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],aV.prototype,"data",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],aV);
_.d(aV,"yt-live-chat-moderation-message-renderer",function(){if(Fc2===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;njV===void 0&&(njV=document.createElement("template"));var O=njV;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Fc2=Y}Y=Fc2;return Y},{mode:0});var pLI;var ze_;var Te=function(){return _.Z.apply(this,arguments)||this};
_.m(Te,_.Z);Te.prototype.onClick=function(){var Y;if((Y=this.data)!=null&&Y.onClickCommand){var G;_.Jj.instance.resolveCommand((G=this.data)==null?void 0:G.onClickCommand)}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.pI),_.V("design:type",Object)],Te.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],Te.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Te.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Te.prototype,"data",void 0);
_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Te);
_.d(Te,"yt-live-chat-offer-click-count-message-renderer",function(){if(ze_===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;pLI===void 0&&(pLI=document.createElement("template"));var O=pLI;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);ze_=Y}Y=ze_;return Y},{mode:0});var mge;var WcR=function(){return _.Z.apply(this,arguments)||this};
_.m(WcR,_.Z);_.S([_.R(),_.V("design:type",Object)],WcR.prototype,"data",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],WcR);
_.d(WcR,"yt-live-chat-placeholder-item-renderer",function(){if(mge===void 0){var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);mge=Y}Y=mge;return Y},{mode:0});var ruM;var xg1;var foU=new oi(7),L8=function(){var Y=_.Z.apply(this,arguments)||this;Y.data={};return Y};
_.m(L8,_.Z);L8.prototype.dataChanged=function(){var Y;((Y=this.data)==null?0:Y.class)&&_.$3(this.hostElement,this.data.class,!0);var G;((G=this.oldData)==null?0:G.class)&&_.$3(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
L8.prototype.computeTimestampString=function(Y){return foU.format(new Date(Y/1E3))};
L8.prototype.dataChanged=L8.prototype.dataChanged;_.S([_.R(),_.V("design:type",Object)],L8.prototype,"data",void 0);_.S([_.R({computed:"computeTimestampString(data.timestampUsec)"}),_.V("design:type",String)],L8.prototype,"timestampString",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],L8.prototype,"dataChanged",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],L8);
_.d(L8,"yt-live-chat-server-error-message",function(){if(xg1===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;ruM===void 0&&(ruM=document.createElement("template"));var O=ruM;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);xg1=Y}Y=xg1;return Y},{mode:0});var CXe;var yuU;var gW=function(){var Y=_.Z.apply(this,arguments)||this;Y.defaultToFilledIcon=!1;return Y};
_.m(gW,_.Z);gW.prototype.computeHasPrimaryColorIcon=function(Y){return Y==="SPARK"||Y==="SPONSORSHIP_STAR"};
gW.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],gW.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],gW.prototype,"defaultToFilledIcon",void 0);_.S([_.R(),_.V("design:type",Object)],gW.prototype,"data",void 0);
_.S([_.R({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.V("design:type",Boolean)],gW.prototype,"hasPrimaryColorIcon",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],gW);
_.d(gW,"yt-live-chat-viewer-engagement-message-renderer",function(){if(yuU===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;CXe===void 0&&(CXe=document.createElement("template"));var O=CXe;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);yuU=Y}Y=yuU;return Y},{mode:0});var eeX;var XG=function(){var Y=_.Z.apply(this,arguments)||this;Y.modernUpdate=!1;Y.buttonStyle="overlay";Y.buttonType="filled";return Y};
_.m(XG,_.Z);XG.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
XG.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],XG.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],XG.prototype,"modernUpdate",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],XG.prototype,"buttonStyle",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],XG.prototype,"buttonType",void 0);
_.S([_.pD({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],XG);
_.d(XG,"ytd-ad-hover-text-button-renderer",function(){if(eeX!==void 0)return eeX;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return eeX=Y},{mode:1});var AuE;var Pf=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonOverrides={size:"XS"};return Y};
_.m(Pf,_.Z);Pf.prototype.onHelpTap=function(Y){this.data&&this.data.informationDialog&&(_.$s(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),Y.preventDefault(),Y.stopPropagation())};
_.S([_.R(),_.V("design:type",Object)],Pf.prototype,"buttonOverrides",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Pf.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Pf);
_.d(Pf,"ytd-live-chat-purchased-product-message-renderer",function(){if(AuE!==void 0)return AuE;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return AuE=Y},{mode:1});var oj4;var iCR;var IV=function(){var Y=_.Z.apply(this,arguments)||this;Y.isContainerDeleted=!1;return Y};
_.m(IV,_.Z);IV.prototype.onContextMenuClick=function(Y){this.ytLiveChatItemBehavior.showContextMenu(Y)};
IV.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))};
IV.prototype.isContainerDeletedChanged=IV.prototype.isContainerDeletedChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],IV.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],IV.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],IV.prototype,"isContainerDeleted",void 0);
_.S([_.R(),_.V("design:type",String)],IV.prototype,"deletedStateMessage",void 0);_.S([_.GO("isContainerDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IV.prototype,"isContainerDeletedChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],IV);
_.d(IV,"ytd-sponsorships-live-chat-header-renderer",function(){if(iCR!==void 0)return iCR;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return iCR=Y},{mode:1});var kK=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.F("web_button_rework_with_live");Y.buttonOverrides={style:"overlay",type:"filled"};return Y};
_.m(kK,_.Z);kK.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]]"}}}}}};
kK.prototype.onCtaButtonClick=function(){var Y,G=_.z((Y=this.data)==null?void 0:Y.optInPrompt,_.ru);if(Y=this.maybeGetButtonCommand(G)){var u;(u=_.M4())==null||u.clickCommand(Y)}};
kK.prototype.maybeGetButtonCommand=function(Y){return!Y||!Y.command||_.z(Y.command,h6_)===void 0&&_.z(Y.command,De2)===void 0?null:Y.command};
kK.prototype.shouldHideOptinPrompt=function(Y,G){return!Y||G};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],kK.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],kK.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],kK.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],kK.prototype,"modern",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],kK);
_.d(kK,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(oj4!==void 0)return oj4;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return oj4=Y},{mode:1});var Ree;var n8=function(){return _.Z.apply(this,arguments)||this};
_.m(n8,_.Z);n8.prototype.onContextMenuClick=function(Y){this.ytLiveChatItemBehavior.showContextMenu(Y)};
n8.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))};
n8.prototype.isDeletedChanged=n8.prototype.isDeletedChanged;_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],n8.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],n8.prototype,"data",void 0);_.S([_.GO("isDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n8.prototype,"isDeletedChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],n8);
_.d(n8,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Ree!==void 0)return Ree;var Y=document.createElement("template");_.r(Y,'\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="star_circle_ribbon" 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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Ree=Y},{mode:1});var FG=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return Y};
_.m(FG,_.Z);_.H=FG.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(Y){_.z(Y,nwR)?this.handleMarkChatItemAsDeletedAction(_.z(Y,nwR)):_.z(Y,kGe)&&this.handleRemoveChatItemAction(_.z(Y,kGe))};
_.H.handleLiveChatActions=function(Y){Y.forEach(this.handleLiveChatAction,this)};
_.H.handleMarkChatItemAsDeletedAction=function(Y){var G=this,u;((u=this.data)==null?0:u.items)&&this.data.items.forEach(function(O,Q){var M=Object.keys(O)[0];Object.values(O)[0].id===Y.targetItemId&&G.markAsDeleted("data.items",Q,M,Y.deletedStateMessage,Y.showOriginalContentMessage)})};
_.H.handleRemoveChatItemAction=function(Y){var G=this,u;((u=this.data)==null?0:u.items)&&this.data.items.forEach(function(O,Q){Object.values(O)[0].id===Y.targetItemId&&G.splice("data.items",Q,1)})};
_.H.markAsDeleted=function(Y,G,u,O,Q){Y=[Y,G,u].join(".");this.set(Y+".deletedStateMessage",O);this.set(Y+".showOriginalContentMessage",Q)};
_.S([_.R(),_.V("design:type",Object)],FG.prototype,"data",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],FG.prototype,"ytActionHandlerBehavior",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],FG);
_.d(FG,"yt-live-chat-item-display-list-renderer",function(){if(aoR===void 0){var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Kce===void 0&&(Kce=document.createElement("template"));var O=Kce;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);aoR=Y}Y=aoR;return Y},{mode:0});var wLR;var ZC4,DgX=function(){if(ZC4!==void 0)return ZC4;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;wLR===void 0&&(wLR=document.createElement("template"));var O=wLR;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return ZC4=Y};var p8=function(){var Y=_.Z.apply(this,arguments)||this;Y.isHeader=!1;return Y};
_.m(p8,_.Z);p8.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Uk.Object.defineProperties(p8,{template:{configurable:!0,enumerable:!0,get:function(){return DgX()}}});
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],p8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],p8.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],p8.prototype,"isHeader",void 0);_.S([_.Ff({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],p8);_.d(p8,"yt-live-chat-item-display-renderer",function(){return DgX()},{mode:0});var heX,dg4,VUE,j7I;
heX={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}};dg4={home:"eohps",search:"eosps",watch:"eowps"};_.bCM=["watch","search","home"];
_.ze=function(){this.JSC$14746_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14746_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.DE("PRECONSTRUCTION_DELAY",0);this.signals_=_.AM();this.targetPage_=""};
_.ze.prototype.init=function(Y,G){Y=Y===void 0?"":Y;G=G===void 0?null:G;if(this.JSC$14746_isInitialized_)this.abort();else if(this.JSC$14746_isInitialized_=!0,Y&&_.S$e(this,Y),G){var u=_.or(this.signals_,"pcl")?0:10,O=function(){for(var Q=0,M;M=_.bCM[Q++];)M!=Y&&M!=G&&this.pendingPages_.push(M);_.Nre(this)}.bind(this);
this.signals_.parkOrScheduleJob(O,u,"pcl")}};
_.ze.prototype.abort=function(){this.fragmentJobId_&&(_.AN.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);j7I(this)};
_.S$e=function(Y,G){Y.JSC$14746_isInitialized_&&!Y.targetPage_&&(Y.targetPage_=G,VUE(Y,G),Y.isInitialPass_=!1,VUE(Y,G),Y.signals_.processSignal(dg4[Y.targetPage_]),j7I(Y),_.Nre(Y))};
_.Nre=function(Y){Y.pendingPages_.length&&!Y.pagePreparerJobId_&&(Y.pagePreparerJobId_=_.WY(_.AN,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.S$e(this,this.pendingPages_.shift())}.bind(Y),Y.DEFAULT_DELAY_))};
VUE=function(Y,G){if(G=heX[G])for(var u in G){var O=!1,Q=u;u.charAt(0)=="~"&&(O=!0,Q=u.substring(1));var M=G[u];M=typeof M=="object"?M:{count:M};G[u]=M;M.componentName=Q;M.count>0&&(Y.isInitialPass_?O||Y.isSeenDuringInitialPass_[Q]||(Y.JSC$14746_queue_.push({componentName:Q,count:1,signals:M.signals}),Y.isSeenDuringInitialPass_[Q]=!0,M.count--):Y.JSC$14746_queue_.push(M))}};
j7I=function(Y){Y.JSC$14746_queue_.length=0;Y.targetPage_="";Y.isInitialPass_=!0;Y.signals_.processSignal("eop")};
_.ze.getInstance=function(){return _.$2(_.ze)};var loI=function(){this.signals=_.AM();this.init()};
loI.prototype.startPreconstruction=function(){_.ze.getInstance().init(_.hy("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
loI.prototype.init=function(){Bre(this);window.Polymer&&EN_&&vBa();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var Y=_.OI.ytcsi;if(Y&&Y.gt&&(Y=Y.gt())&&Y.tick&&(Y.tick.aft>0||Y.tick.pbs>0)&&(_.hy("IS_HOMEPAGE_COLD")||_.hy("IS_RESULTS_PAGE_COLD")||_.hy("IS_WATCH_PAGE_COLD"))){$gX(this);break a}FO1(sra,this.onNotifications,this)}};
var Bre=function(Y){var G=function(){Y.signals.processSignal("dl")};
document.readyState==="complete"?(_.N3(Error("uh"),"WARNING"),G()):_.$4j(window,"load",G)};
loI.prototype.onNotifications=function(Y){Y.timer||(_.hy("IS_HOMEPAGE_COLD")||_.hy("IS_RESULTS_PAGE_COLD")||_.hy("IS_WATCH_PAGE_COLD"))&&$gX(this)};
var $gX=function(Y){Y.signals.parkOrScheduleJob(function(){Y.signals.processSignal("eocs")},10,"eor")};
new loI;var q$k=function(){return _.Mb.apply(this,arguments)||this};
_.m(q$k,_.Mb);_.Uk.Object.defineProperties(q$k.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_entity_store_from_dependency_injection")?_.DS():_.Zs()}}});
_.S([_.Hn()],q$k);_.me=[LI.prototype,q$k.prototype];var s7R=["ytd-rich-shelf-renderer"],Wf=function(){var Y=_.Mb.apply(this,arguments)||this;Y._noAccessors=!0;Y.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";Y.followUpDialogPromise=null;Y.followUpDialogPromiseResolve=null;Y.followUpDialogPromiseReject=null;return Y};
_.m(Wf,_.Mb);_.H=Wf.prototype;_.H.dismissibleItemIsDismissedChanged_=function(Y){_.F("kevlar_fluid_dismiss")&&(Y?_.$s(this.hostElement,"yt-dismissible-item-dismissed"):_.$s(this.hostElement,"yt-dismissible-item-undismissed"))};
_.H.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.H.dismissibleItemReset_=function(){var Y=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 _.a0(function(G,u){Y.followUpDialogPromiseResolve=G;Y.followUpDialogPromiseReject=u});
_.$s(this.hostElement,"yt-enable-lockup-interaction")};
_.H.dismissibleItemOnYtServiceRequestSent_=function(Y,G){G.actions&&this.dismissibleItemProcessActions(G.actions,Y)};
_.H.dismissibleItemOnRequestSent=function(Y){for(var G=_.E(Y.detail),u=G.next();!u.done;u=G.next()){var O=void 0;(u=(O=_.z(u.value,_.Gb))==null?void 0:O.actions)&&this.dismissibleItemProcessActions(u,Y)}};
_.H.dismissibleItemOnCommandSent=function(Y,G){G&&this.dismissibleItemProcessActions(G,Y)};
_.H.setAndGetDismissedContentId=function(Y){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+Y};
_.H.replayDismissAction=function(Y){this.dismissibleItemProcessActions([Y])};
_.H.dismissibleItemProcessActions=function(Y,G){for(var u=0;u<Y.length;u++){var O=Y[u],Q=void 0;((Q=_.z(O,_.Jv))==null?0:Q.commands)&&this.dismissibleItemProcessActions(_.z(O,_.Jv).commands,G);if(_.z(O,_.Qy)){if(Q=_.z(O,_.Qy),!Q.replaceParentSection||s7R.includes(this.hostElement.nodeName.toLowerCase()))Q.groupDismissal&&HCa(this,Q.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(Q),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.t$("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:O})),O=void 0,(O=G)==null||O.stopPropagation()}else if(_.z(O,KlU))this.dismissibleItemHandleHideEnclosingAction_(),O=void 0,(O=G)==null||O.stopPropagation();else if(_.z(O,Dok))O=_.z(O,Dok),Q=void 0,((Q=O)==null?0:Q.targetGroupId)&&HCa(this,{targetGroupId:O.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.t$("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
O=void 0,(O=G)==null||O.stopPropagation();else if(_.z(O,_.Gb))(O=_.z(O,_.Gb).actions)&&_.UK(this.hostElement,O,this.hostElement),O=void 0,(O=G)==null||O.stopPropagation();else{var M=Q=void 0;((Q=_.z(O,_.dN))==null?void 0:Q.signal)!=="TELL_US_WHY"||((M=_.z(O,_.dN))==null?0:M.targetId)&&_.F("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),O=void 0,(O=G)==null||O.stopPropagation())}}};
_.H.dismissibleItemOnYtServiceRequestCompleted_=function(Y,G){var u=this.get("feedbackResponses.0.followUpDialog",G.data);u?this.followUpDialogPromiseResolve(u):G.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(G.actions,Y)};
_.H.dismissibleItemHandleReplaceEnclosingAction_=function(Y){this.dismissedRenderer=Y.item;this.isDismissed=!0;var G=null;(G=_.l0(this.hostElement).querySelector("#dismissed"))&&_.sk(this,function(){_.qC(G)});
_.$s(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.H.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.H.dismissibleItemHandleUndoFeedbackAction_=function(){_.$s(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.H.dismissibleItemHandleTellUsWhySignalAction_=function(){var Y=this;this.followUpDialogPromise.then(function(G){Y.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:G}})})};
Wf.prototype.dismissibleItemOnYtServiceRequestCompleted_=Wf.prototype.dismissibleItemOnYtServiceRequestCompleted_;Wf.prototype.dismissibleItemOnCommandSent=Wf.prototype.dismissibleItemOnCommandSent;Wf.prototype.dismissibleItemOnRequestSent=Wf.prototype.dismissibleItemOnRequestSent;Wf.prototype.dismissibleItemOnYtServiceRequestSent_=Wf.prototype.dismissibleItemOnYtServiceRequestSent_;Wf.prototype.dismissibleItemDataChanged_=Wf.prototype.dismissibleItemDataChanged_;
Wf.prototype.dismissibleItemIsDismissedChanged_=Wf.prototype.dismissibleItemIsDismissedChanged_;_.S([_.x(_.SZ),_.V("design:type",Object)],Wf.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Wf.prototype,"ytdReduxBehavior",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Wf.prototype,"isDismissed",void 0);_.S([_.R(),_.V("design:type",Object)],Wf.prototype,"dismissedRenderer",void 0);
_.S([_.GO("isDismissed"),_.V("design:type",Function),_.V("design:paramtypes",[Boolean]),_.V("design:returntype")],Wf.prototype,"dismissibleItemIsDismissedChanged_",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Wf.prototype,"dismissibleItemDataChanged_",null);
_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],Wf.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.S([_.Yo("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Wf.prototype,"dismissibleItemOnRequestSent",null);
_.S([_.Yo("yt-dismissible-item-action"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Array]),_.V("design:returntype")],Wf.prototype,"dismissibleItemOnCommandSent",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],Wf.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.S([_.Hn()],Wf);_.rW=[_.SZ,_.me,Wf.prototype];var xK=function(){var Y=_.Mb.apply(this,arguments)||this;Y.disableGridStateAware=!1;Y.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};Y.currentGridClass="";return Y};
_.m(xK,_.Mb);xK.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.sk(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var Y=this.gridStateAwareGetElement();_.$3(Y,"grid",!0)}};
xK.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
xK.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.l0(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
xK.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var Y="grid-disabled";else{Y=_.qE.getInstance();var G=this.get("pageSubtype");Y=G&&UlX.includes(G)?"grid-disabled":Y.currentSnapState_?Y.currentSnapState_.className:null}(G=this.gridStateAwareGetElement())&&Y!==this.currentGridClass&&(Y&&_.$3(G,Y,!0),this.currentGridClass&&_.$3(G,this.currentGridClass,!1),this.currentGridClass=Y)};
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],xK.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",String)],xK.prototype,"gridStateAwareSizingElementSelector",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xK.prototype,"disableGridStateAware",void 0);_.S([_.Hn()],xK);_.f8=[xK.prototype,_.vZ.YtActionHandlerBehavior];_.C8=new _.Sb("GUIDE_TOKEN");var ex;_.y8={};ex=function(){var Y=_.Mb.apply(this,arguments)||this;Y.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 Y};
_.m(ex,_.Mb);_.H=ex.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 Y=_.sH().resolve(_.q3(_.C8));Y&&(this.guidePersistentAndVisible=Y.getGuidePersistentAndVisible(),this.activeEndpoint=Y.getActiveEndpoint(),this.guideOpened=Y.getGuideOpened(),this.miniGuideVisible=Y.getMiniGuideVisible())};
_.H.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.H.handleGuideStateAction=function(Y){this.guidePersistentAndVisible=Y};
_.H.handleMiniGuideStateAction=function(Y){this.miniGuideVisible=Y};
_.H.handleGuideOpenedAction=function(Y){this.guideOpened=Y};
_.H.handleActiveEndpointAction=function(Y){this.activeEndpoint=Y};
ex.prototype.onActiveEndpointChange=ex.prototype.onActiveEndpointChange;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],ex.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],ex.prototype,"guidePersistentAndVisible",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],ex.prototype,"miniGuideVisible",void 0);_.S([_.R(),_.V("design:type",Object)],ex.prototype,"activeEndpoint",void 0);
_.S([_.GO("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ex.prototype,"onActiveEndpointChange",null);_.S([_.R(),_.V("design:type",Boolean)],ex.prototype,"guideOpened",void 0);_.S([_.Hn()],ex);_.y8.YtdGuideStateAwareBehavior=[];_.y8.YtdGuideStateAwareBehavior.push(ex.prototype,_.vZ.YtActionHandlerBehavior);var cu_=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],As=function(){var Y=_.Mb.apply(this,arguments)||this;Y.hoverJobId=0;Y.JSC$14773_touched=!1;return Y};
_.m(As,_.Mb);_.H=As.prototype;_.H.created=function(){this.useExpandableTooltip=!cu_.includes(this.is)};
_.H.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.H.detached=function(){this.useExpandableTooltip=!1};
_.H.lockupOnDown=function(Y){this.interactionElement&&!_.hf(_.wG(Y),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.H.lockupOnUp=function(Y){this.interactionElement&&!_.hf(_.wG(Y),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.H.onTouchStart=function(){this.JSC$14773_touched=!0};
_.H.lockupOnMouseEnter=function(){var Y=this,G=_.Jy("kevlar_lockup_hover_delay",-1);this.JSC$14773_touched&&G>=0?(_.AN.cancelJob(this.hoverJobId),this.hoverJobId=_.AN.addJob(function(){Y.lockupIsHovered=!0},8,G),this.JSC$14773_touched=!1):this.lockupIsHovered=!0};
_.H.lockupOnMouseLeave=function(){this.hoverJobId&&(_.AN.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.H.lockupOnPopupClosed=function(Y,G){var u;((u=G.popupRenderer)==null?void 0:u.is)==="ytd-menu-popup-renderer"&&(Y=G.popupRenderer.veData,G=_.FA(),Y&&G&&_.ig(G,[Y]))};
_.H.lockupOnLockupRequested=function(Y){var G=Y.detail.videoIds[0],u;Y.detail&&G===((u=this.data)==null?void 0:u.videoId)&&(Y.detail.returnValue=[this.data])};
_.H.lockupOnYtServiceRequestSent=function(Y,G){if(Y=G.actions)for(var u=0;u<Y.length;u++){var O=Y[u];if(O.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&G.ajaxPromise){var Q=void 0,M=(Q=_.z(G.endpoint,_.zG))==null?void 0:Q.playlistId;Q=void 0;O=(Q=O.removedVideoId)!=null?Q:"";mlM(_.wp(),O,M)}else O.action==="ACTION_REMOVE_VIDEO"&&G.ajaxPromise&&(M=void 0,O=(M=O.setVideoId)!=null?M:"",_.WdU(_.wp(),O))}};
_.H.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.H.lockupOnLockupEnabled=function(){if(!this.$){var Y=_.sH().resolve(_.bv).getCurrentPage(),G=this.getParentRenderer?this.getParentRenderer():void 0;_.R0(new _.I2("component not ready",this.is,this.isAttached,Y==null?void 0:Y.is,G==null?void 0:G.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
As.prototype.lockupOnLockupEnabled=As.prototype.lockupOnLockupEnabled;As.prototype.lockupOnLockupDisabled=As.prototype.lockupOnLockupDisabled;As.prototype.lockupOnYtServiceRequestSent=As.prototype.lockupOnYtServiceRequestSent;As.prototype.lockupOnLockupRequested=As.prototype.lockupOnLockupRequested;As.prototype.lockupOnPopupClosed=As.prototype.lockupOnPopupClosed;As.prototype.lockupOnMouseLeave=As.prototype.lockupOnMouseLeave;As.prototype.lockupOnMouseEnter=As.prototype.lockupOnMouseEnter;
As.prototype.onTouchStart=As.prototype.onTouchStart;As.prototype.lockupOnUp=As.prototype.lockupOnUp;As.prototype.lockupOnDown=As.prototype.lockupOnDown;_.S([_.R(),_.V("design:type",Object)],As.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],As.prototype,"lockupIsHovered",void 0);_.S([_.R(),_.V("design:type",Boolean)],As.prototype,"lockupTouchTriggered",void 0);_.S([_.R(),_.V("design:type",Boolean)],As.prototype,"useExpandableTooltip",void 0);
_.S([_.Ox("#interaction"),_.V("design:type",Object)],As.prototype,"interactionElement",void 0);_.S([_.Yo("down"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],As.prototype,"lockupOnDown",null);_.S([_.Yo("up"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],As.prototype,"lockupOnUp",null);
_.S([_.Yo("touchstart"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],As.prototype,"onTouchStart",null);_.S([_.Yo("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],As.prototype,"lockupOnMouseEnter",null);_.S([_.Yo("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],As.prototype,"lockupOnMouseLeave",null);
_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],As.prototype,"lockupOnPopupClosed",null);_.S([_.Yo("yt-lockup-requested"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],As.prototype,"lockupOnLockupRequested",null);
_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],As.prototype,"lockupOnYtServiceRequestSent",null);_.S([_.Yo("yt-disable-lockup-interaction"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],As.prototype,"lockupOnLockupDisabled",null);
_.S([_.Yo("yt-enable-lockup-interaction"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],As.prototype,"lockupOnLockupEnabled",null);_.S([_.Hn()],As);_.oV=[As.prototype];_.Ugk={YtdReduxBehavior:[]};_.Ugk.YtdReduxBehavior.push.apply(_.Ugk.YtdReduxBehavior,_.me);var iA=function(){var Y=_.Mb.apply(this,arguments)||this;Y._noAccessors=!0;Y.disableNowPlaying=!1;Y.disableTooltips=!1;Y.useHoveredProperty=!1;Y.hovered=!1;Y.isThumbnailHovered_=!1;Y.addBackground=_.F("kevlar_thumbnail_bg");Y.nowPlaying=!1;Y.disableRounding=!1;Y.size="small";return Y};
_.m(iA,_.Mb);_.H=iA.prototype;_.H.computeThumbnailOverlaySidePanelWidth_=function(Y,G){return Y-G};
_.H.computeSize=function(Y,G){if(!this.disableRounding){if(!Y&&!G)return"small";Y=Math.max(Y||0,G||0);return Y>=256?"large":Y>=96?"medium":"small"}};
_.H.computeFinalHoveredState_=function(Y,G,u){return this.nowPlaying?!1:_.F("kevlar_thumbnail_fluid")&&Y?G:u};
_.H.computeHoverOverlays_=function(Y,G){return Y&&G?G:void 0};
_.H.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.H.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.H.checkMiniplayer_=function(){var Y;if(((Y=this.data)==null?0:Y.playlistSetVideoId)&&_.F("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{Y=_.Qq();var G=Y.currentEndpoint;!this.disableNowPlaying&&G&&_.z(G,_.ic)&&this.data?(G=_.z(G,_.ic),this.nowPlaying=this.data.playlistId?G.playlistId===this.data.playlistId:G.videoId===this.data.videoId,this.isVideoPlaying=Y==null?void 0:Y.isVideoPlaying):this.nowPlaying=!1}};
iA.prototype.checkMiniplayer_=iA.prototype.checkMiniplayer_;iA.prototype.onMouseLeave_=iA.prototype.onMouseLeave_;iA.prototype.onMouseEnter_=iA.prototype.onMouseEnter_;iA.prototype.computeHoverOverlays_=iA.prototype.computeHoverOverlays_;iA.prototype.computeFinalHoveredState_=iA.prototype.computeFinalHoveredState_;iA.prototype.computeSize=iA.prototype.computeSize;iA.prototype.computeThumbnailOverlaySidePanelWidth_=iA.prototype.computeThumbnailOverlaySidePanelWidth_;
_.S([_.x(_.me),_.V("design:type",Object)],iA.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],iA.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Number)],iA.prototype,"height",void 0);_.S([_.R(),_.V("design:type",Boolean)],iA.prototype,"bottomSidePanel",void 0);_.S([_.R(),_.V("design:type",Number)],iA.prototype,"width",void 0);_.S([_.R(),_.V("design:type",Object)],iA.prototype,"disableNowPlaying",void 0);
_.S([_.R({selector:_.FX}),_.V("design:type",Boolean)],iA.prototype,"miniplayerIsActive",void 0);_.S([_.R(),_.V("design:type",Object)],iA.prototype,"disableTooltips",void 0);_.S([_.R(),_.V("design:type",Object)],iA.prototype,"useHoveredProperty",void 0);_.S([_.R(),_.V("design:type",Object)],iA.prototype,"hovered",void 0);_.S([_.R(),_.V("design:type",Object)],iA.prototype,"isThumbnailHovered_",void 0);
_.S([_.R({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.V("design:type",Boolean)],iA.prototype,"finalHoveredState_",void 0);_.S([_.R({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.V("design:type",Number)],iA.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],iA.prototype,"addBackground",void 0);
_.S([_.R({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.V("design:type",Object)],iA.prototype,"hoverOverlays_",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],iA.prototype,"nowPlaying",void 0);_.S([_.R(),_.V("design:type",Boolean)],iA.prototype,"isVideoPlaying",void 0);_.S([_.R(),_.V("design:type",Object)],iA.prototype,"disableRounding",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.V("design:type",Object)],iA.prototype,"size",void 0);_.S([_.Yo("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iA.prototype,"onMouseEnter_",null);_.S([_.Yo("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iA.prototype,"onMouseLeave_",null);
_.S([_.GO("data","disableNowPlaying","miniplayerIsActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iA.prototype,"checkMiniplayer_",null);_.S([_.Hn()],iA);var vj4=[iA.prototype];_.RV={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(Y,G){return Y+":"+_.cu(G)},
getPlayerListener_:function(Y,G,u){Y=this.getPlayerListenerKey_(Y,G);G=this.playerListeners_.get(Y);u&&this.playerListeners_.delete(Y);return G},
savePlayerListener_:function(Y,G){var u=G.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(Y,G),u);return u},
listenToPlayerEvent:function(Y,G,u){u=this.savePlayerListener_(G,u);Y.addEventListener(G,u)},
listenToPlayerEvents:function(Y,G){G.forEach(function(u,O){this.listenToPlayerEvent(Y,O,u)}.bind(this))},
unlistenFromPlayerEvent:function(Y,G,u){u=this.getPlayerListener_(G,u,!0);Y.removeEventListener(G,u)},
unlistenFromPlayerEvents:function(Y,G){G.forEach(function(u,O){this.unlistenFromPlayerEvent(Y,O,u)}.bind(this))}}};
_.wW=function(){};_.Ju_=new _.Sb("PLAYER_API_TOKEN");var aoT=!1,XL4,Lc1=!1,Iog;var lv=function(Y,G,u,O,Q){_.Ey.call(this);var M=this;this.playerId=G;this.webPlayerContextConfig=O;this.zcD=Q;this.oYS=!1;this.api={};this.n32=this.lUt=null;this.v92=new _.KG;this.zd={};this.cj7=this.ah2=this.elementId=this.peu=this.config=null;this.dxP=!1;this.wB=this.pKt=null;this.zh2={};this.g4g=["onReady"];this.lastError=null;this.mvg=NaN;this.h67={};this.xRl=0;this.nz=this.targetElement=Y;_.vF(this,this.v92);YQI(this);u?this.xRl=setTimeout(function(){M.loadNewVideoConfig(u)},0):O&&(GHT(this),
uN2(this))};
_.m(lv,_.Ey);lv.prototype.getId=function(){return this.playerId};
lv.prototype.loadNewVideoConfig=function(Y){if(!this.isDisposed()){this.xRl&&(clearTimeout(this.xRl),this.xRl=0);var G=Y||{};G instanceof e72||(G=new e72(G));this.config=G;this.setConfig(Y);uN2(this);this.isReady()&&Oi_(this)}};
var GHT=function(Y){var G;Y.webPlayerContextConfig?G=Y.webPlayerContextConfig.rootElementId:G=Y.config.attrs.id;Y.elementId=G||Y.elementId;Y.elementId==="video-player"&&(Y.elementId=Y.playerId,Y.webPlayerContextConfig?Y.webPlayerContextConfig.rootElementId=Y.playerId:Y.config.attrs.id=Y.playerId);var u;((u=Y.nz)==null?void 0:u.id)===Y.elementId&&(Y.elementId+="-player",Y.webPlayerContextConfig?Y.webPlayerContextConfig.rootElementId=Y.elementId:Y.config.attrs.id=Y.elementId)};
lv.prototype.setConfig=function(Y){this.peu=Y;this.config=Qql(Y);GHT(this);if(!this.ah2){var G;this.ah2=M3_(this,((G=this.config.args)==null?void 0:G.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var u;if((u=this.config)==null?0:u.attrs)Y=this.config.attrs,(G=Y.width)&&this.nz&&(this.nz.style.width=Z0(Number(G)||G,!0)),(Y=Y.height)&&this.nz&&(this.nz.style.height=Z0(Number(Y)||Y,!0))};
lv.prototype.getConfig=function(){return this.peu};
var Oi_=function(Y){if(Y.config&&Y.config.loaded!==!0)if(Y.config.loaded=!0,!Y.config.args||Y.config.args.autoplay!=="0"&&Y.config.args.autoplay!==0&&Y.config.args.autoplay!==!1){var G;Y.api.loadVideoByPlayerVars((G=Y.config.args)!=null?G:null)}else Y.api.cueVideoByPlayerVars(Y.config.args)},EAX=function(Y){var G=!0,u=Y.getPlayerElement();
u&&Y.config&&(G=u.dataset.version===Hi4(Y));return G&&!!_.So("yt.player.Application.create")},uN2=function(Y){if(!Y.isDisposed()&&!Y.dxP){var G=EAX(Y);
if(G&&(Y.getPlayerElement()?"html5":null)==="html5")Y.cj7="html5",Y.isReady()||t3X(Y);else if(K$I(Y),Y.cj7="html5",G&&Y.wB&&Y.targetElement)Y.targetElement.appendChild(Y.wB),t3X(Y);else{Y.config&&(Y.config.loaded=!0);var u=!1;Y.pKt=function(){u=!0;var O=ail(Y,"player_bootstrap_method")?_.So("yt.player.Application.createAlternate")||_.So("yt.player.Application.create"):_.So("yt.player.Application.create");var Q=Y.config?Qql(Y.config):void 0;O&&O(Y.targetElement,Q,Y.webPlayerContextConfig,Y.zcD);t3X(Y)};
Y.dxP=!0;G?Y.pKt():(_.fX(Hi4(Y),Y.pKt),(G=T$2(Y))&&nR1(G||""),L$k(Y)&&!u&&_.U5("yt.player.Application.create",null))}}};
lv.prototype.getPlayerElement=function(){var Y=_.Vx(document,this.elementId);!Y&&this.nz&&this.nz.querySelector&&(Y=this.nz.querySelector("#"+this.elementId));return Y};
var t3X=function(Y){if(!Y.isDisposed()){var G=Y.getPlayerElement(),u=!1;G&&G.getApiInterface&&G.getApiInterface()&&(u=!0);if(u){Y.dxP=!1;if(!ail(Y,"html5_remove_not_servable_check_killswitch")){var O;if((G==null?0:G.isNotServable)&&Y.config&&(G==null?0:G.isNotServable((O=Y.config.args)==null?void 0:O.video_id)))return}gAM(Y)}else Y.mvg=setTimeout(function(){t3X(Y)},50)}},gAM=function(Y){YQI(Y);
Y.oYS=!0;var G=Y.getPlayerElement();if(G){Y.lUt=XrX(Y,G,"addEventListener");Y.n32=XrX(Y,G,"removeEventListener");var u=G.getApiInterface();u=u.concat(G.getInternalApiInterface());for(var O=Y.api,Q=0;Q<u.length;Q++){var M=u[Q];O[M]||(O[M]=XrX(Y,G,M))}}for(var t in Y.zd)Y.zd.hasOwnProperty(t)&&Y.lUt&&Y.lUt(t,Y.zd[t]);Oi_(Y);Y.ah2&&Y.ah2(Y.api);Y.v92.publish("onReady",Y.api)},XrX=function(Y,G,u){var O=G[u];
return function(){var Q=_.vs.apply(0,arguments);try{return Y.lastError=null,O.apply(G,Q)}catch(M){if(u!=="sendAbandonmentPing")throw M.params=u,Y.lastError=M,Q=new _.I2("PlayerProxy error in method call",{error:M,method:u,playerId:Y.playerId}),Q.level="WARNING",Q;}}},YQI=function(Y){Y.oYS=!1;
if(Y.n32)for(var G in Y.zd)Y.zd.hasOwnProperty(G)&&Y.n32(G,Y.zd[G]);for(var u in Y.h67)Y.h67.hasOwnProperty(u)&&clearTimeout(Number(u));Y.h67={};Y.lUt=null;Y.n32=null;G=Y.api;for(var O in G)G.hasOwnProperty(O)&&(G[O]=null);G.addEventListener=function(Q,M){Y.addEventListener(Q,M)};
G.removeEventListener=function(Q,M){Y.removeEventListener(Q,M)};
G.destroy=function(){Y.dispose()};
G.getLastError=function(){return Y.getLastError()};
G.getPlayerType=function(){return Y.getPlayerType()};
G.getCurrentVideoConfig=function(){return Y.getConfig()};
G.loadNewVideoConfig=function(Q){Y.loadNewVideoConfig(Q)};
G.isReady=function(){return Y.isReady()}};
lv.prototype.isReady=function(){return this.oYS};
lv.prototype.addEventListener=function(Y,G){var u=this;this.isDisposed();var O=M3_(this,G);O&&(_.ST(this.g4g,Y)||this.zd[Y]||(G=PCk(this,Y),this.lUt&&this.lUt(Y,G)),this.v92.subscribe(Y,O),Y==="onReady"&&this.isReady()&&setTimeout(function(){O(u.api)},0))};
lv.prototype.removeEventListener=function(Y,G){this.isDisposed()||(G=M3_(this,G))&&this.v92.unsubscribe(Y,G)};
var M3_=function(Y,G){var u=G;if(typeof G==="string"){if(Y.zh2[G])return Y.zh2[G];u=function(){var O=_.vs.apply(0,arguments),Q=_.So(G);if(Q)try{Q.apply(_.OI,O)}catch(M){throw O=new _.I2("PlayerProxy error when executing callback",{error:M}),O.level="ERROR",O;}};
Y.zh2[G]=u}return u?u:null},PCk=function(Y,G){var u=function(O){var Q=function(){Y.isDisposed();
if(!Y.isDisposed())try{Y.v92.publish(G,O!=null?O:void 0)}catch(K){var t=new _.I2("PlayerProxy error when creating global callback",{error:K.message,event:G,playerId:Y.playerId,data:O,originalStack:K.stack,componentStack:K.componentStack});t.level="WARNING";throw t;}};
if(ail(Y,"web_player_publish_events_immediately"))Q();else{var M=setTimeout(function(){Q();_.gX.remove(Y.h67,String(M))},0);
_.gX.add(Y.h67,String(M),!0)}};
return Y.zd[G]=u};
lv.prototype.getPlayerType=function(){return this.cj7||(this.getPlayerElement()?"html5":null)};
lv.prototype.getLastError=function(){return this.lastError};
var K$I=function(Y){Y.cancel();YQI(Y);Y.cj7=null;Y.config&&(Y.config.loaded=!1);var G=Y.getPlayerElement();G&&(EAX(Y)||!L$k(Y)?Y.wB=G:(G&&G.destroy&&G.destroy(),Y.wB=null));Y.targetElement&&_.eq(Y.targetElement)};
lv.prototype.cancel=function(){this.pKt&&_.hzj(Hi4(this),this.pKt);clearTimeout(this.mvg);this.dxP=!1};
lv.prototype.disposeInternal=function(){K$I(this);if(this.wB&&this.config&&this.wB.destroy)try{this.wB.destroy()}catch(G){var Y=new _.I2("PlayerProxy error during disposal",{error:G});Y.level="ERROR";throw Y;}this.zh2=null;for(Y in this.zd)this.zd.hasOwnProperty(Y)&&delete this.zd[Y];this.peu=this.config=this.api=null;delete this.targetElement;delete this.nz;_.Ey.prototype.disposeInternal.call(this)};
var L$k=function(Y){var G,u;Y=(G=Y.config)==null?void 0:(u=G.args)==null?void 0:u.fflags;return!!Y&&Y.indexOf("player_destroy_old_version=true")!==-1},Hi4=function(Y){return Y.webPlayerContextConfig?Y.webPlayerContextConfig.jsUrl:(Y=Y.config.assets)?Y.js:""},T$2=function(Y){return Y.webPlayerContextConfig?Y.webPlayerContextConfig.cssUrl:(Y=Y.config.assets)?Y.css:""},ail=function(Y,G){if(Y.webPlayerContextConfig)var u=Y.webPlayerContextConfig.serializedExperimentFlags;
else{var O;if((O=Y.config)==null?0:O.args)u=Y.config.args.fflags}return(u||"").split("&").includes(G+"=true")},Qql=function(Y){for(var G={},u=_.E(Object.keys(Y)),O=u.next();!O.done;O=u.next()){O=O.value;
var Q=Y[O];G[O]=typeof Q==="object"?_.gX.clone(Q):Q}return G};var zey={},pLj="player_uid_"+(Math.random()*1E9>>>0);var Zm=function(Y,G,u,O,Q,M){G=G===void 0?document.createElement("div"):G;this.webPlayerContextConfig=Y;this.container=G;this.commandResolver=u;this.apiResolver=ruj();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.sG;O||M?Ii2(this):kHR(this);this.pendingPlayerResponse=O;this.pendingWatchNextResponse=Q;this.pendingPlayerVars=M;nA_(this)};
Zm.prototype.loadVideoWithPlayerResponse=function(Y,G,u){this.loadVideo(Y,G,u)};
Zm.prototype.loadVideoWithPlayerVars=function(Y){return this.loadVideo(void 0,void 0,Y)};
Zm.prototype.destroy=function(Y){if(Y=_.Vx(document,Y))Y=pLj+"_"+_.cu(Y),(Y=zey[Y])&&Y.dispose()};
var prR=function(Y,G){var u;_.a(function(O){if(O.nextAddress==1)return Y.pendingWatchNextResponse=G,Y.synchronousApi?(u=Y.synchronousApi,O.jumpTo(2)):O.yield(Y.api,3);O.nextAddress!=2&&(u=O.yieldResult);if(!F$_(Y,u))return O.return();Y.pendingWatchNextResponse&&(u.updateVideoData({raw_watch_next_response:Y.pendingWatchNextResponse}),Y.pendingWatchNextResponse=void 0);_.Sd(O)})},F$_=function(Y,G){var u;
if(!(G==null?0:(u=G.isReady)==null?0:u.call(G))){var O;_.R0(new _.I2("playerApi is falsey",{synchronousApi:Y.synchronousApi,apiResolved:Y.apiResolver.resolved,playerApiUndefined:G===void 0,playerApiNull:G===null,playerApiReady:(G==null?void 0:(O=G.isReady)==null?void 0:O.call(G))===!0,playerApiMethods:G?Object.keys(G):[]}));return!1}return!0},zVM=function(Y,G){if(typeof Y[G]==="function")return Y[G]()},mxI=function(Y){var G=window,u,O=(u=G.ytplayer)==null?void 0:u.bootstrapPlayerContainer;
if((u=O==null?void 0:O.firstElementChild)&&_.SI(u,"html5-video-player")){var Q,M,t=(Q=G.ytplayer)==null?void 0:(M=Q.bootstrapWebPlayerContextConfig)==null?void 0:M.contextId;Q=Y.webPlayerContextConfig.contextId;if(t&&t===Q){O!==Y.container&&(O=!1,zVM(u,"getPlayerState")===2&&(O=!0),Y.container.appendChild(u),O||zVM(u,"playVideo"));var K;if((K=G.ytplayer)==null?0:K.bootstrapPlayerResponse)Y.bootstrapPlayerResponse=G.ytplayer.bootstrapPlayerResponse}}},nA_=function(Y){var G,u,O,Q,M;
_.a(function(t){if(t.nextAddress==1)return Y.pageReadyOrDataAvailable?t.jumpTo(2):t.yield(Y.pageReadyOrDataAvailableResolver.promise,2);if(t.nextAddress!=4)return!_.F("kevlar_player_unified_player_loading")||TrI()&&gjt()?t.jumpTo(4):t.yield(njt(),4);mxI(Y);if(Y.pendingPlayerResponse||Y.pendingPlayerVars)G=Fcg(Y.pendingPlayerResponse,Y.pendingWatchNextResponse,Y.pendingPlayerVars),Y.pendingPlayerResponse&&Y.pendingPlayerResponse===Y.bootstrapPlayerResponse&&(G.loaded=!0),Y.bootstrapPlayerResponse=
void 0;u=WcA(Y.container,G,Y.webPlayerContextConfig);((O=G)==null?0:O.loaded)&&Y.pendingWatchNextResponse?(prR(Y,Y.pendingWatchNextResponse),Y.pendingPlayerResponse=void 0,Y.pendingPlayerVars=void 0):W$I(Y);Q=function(K){u.removeEventListener("onReady",Q);Y.synchronousApi=K;Y.apiResolver.resolve(K)};
u.addEventListener("onReady",Q);Y.commandResolver!==void 0&&(M=Y.commandResolver,u.addEventListener("innertubeCommand",function(K){M(K)}));
_.Sd(t)})};
Zm.prototype.loadVideo=function(Y,G,u){var O=this,Q,M,t,K,L,g,P,I,k;return _.a(function(n){if(n.nextAddress==1)return O.pendingPlayerResponse=Y,O.pendingWatchNextResponse=G,O.pendingPlayerVars=u,Ii2(O),O.synchronousApi?(Q=O.synchronousApi,n.jumpTo(2)):n.yield(O.api,3);n.nextAddress!=2&&(Q=n.yieldResult);if(!F$_(O,Q))return n.return(new Promise(function(){}));
t=new Promise(function(p){M=p});
K=function(){var p=Q.getPlayerResponse();p&&(Q.removeEventListener("onVideoDataChange",K),M(p))};
Q.addEventListener("onVideoDataChange",K);if(O.pendingPlayerResponse||O.pendingPlayerVars)O.pendingPlayerResponse&&O.pendingPlayerResponse===O.bootstrapPlayerResponse?(M(O.pendingPlayerResponse),O.pendingWatchNextResponse&&prR(O,O.pendingWatchNextResponse)):(L=Fcg(O.pendingPlayerResponse,O.pendingWatchNextResponse,O.pendingPlayerVars),(k=(g=O.pendingPlayerResponse)==null?void 0:(P=g.playerConfig)==null?void 0:(I=P.playbackStartConfig)==null?void 0:I.startPaused)?Q.cueVideoByPlayerVars(L.args):Q.loadVideoByPlayerVars(L.args)),
W$I(O),O.bootstrapPlayerResponse=void 0;return n.return(t)})};
var kHR=function(Y){if(document.readyState==="complete"||document.readyState==="interactive")Ii2(Y);else{var G=function(){document.removeEventListener("DOMContentLoaded",G);Ii2(Y)};
document.addEventListener("DOMContentLoaded",G)}},Ii2=function(Y){Y.pageReadyOrDataAvailable=!0;
Y.pageReadyOrDataAvailableResolver.resolve()},W$I=function(Y){Y.pendingPlayerResponse=void 0;
Y.pendingWatchNextResponse=void 0;Y.pendingPlayerVars=void 0};
_.Uk.Object.defineProperties(Zm.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Dm=function(Y){Iu.call(this,Y===void 0?"document_active":Y);var G=this;this.overridePriority=10;this.JSC$14806_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(u){G.transition("document_disposed",{event:u})});
window.addEventListener("beforeunload",function(u){G.transition("document_disposed_preventable",{event:u})});
window.addEventListener("unload",function(u){G.transition("document_disposed",{event:u});G.JSC$14806_hasRun=new Map})};
_.m(Dm,Iu);
Dm.prototype.runPreventableDispose=function(Y,G){if(!this.JSC$14806_hasRun.get("document_disposed_preventable")){Y(G==null?void 0:G.event);var u,O;if((G==null?0:(u=G.event)==null?0:u.defaultPrevented)||(G==null?0:(O=G.event)==null?0:O.returnValue)){G.event.returnValue||(G.event.returnValue=!0);G.event.defaultPrevented||G.event.preventDefault();this.JSC$14806_hasRun=new Map;this.transition("document_active");return}}this.JSC$14806_hasRun.set("document_disposed_preventable",!0);this.JSC$14806_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
Dm.prototype.runDispose=function(Y,G){this.JSC$14806_hasRun.get("document_disposed")?this.transition("document_active"):(Y(G==null?void 0:G.event),this.JSC$14806_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Dm.prototype.runFlush=function(Y,G){Y(G==null?void 0:G.event);this.transition("document_active")};
Dm.prototype.runActive=function(){};var hs=function(Y){Iu.call(this,Y===void 0?"document_visibility_unknown":Y);var G=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(u){document.visibilityState==="visible"?G.transition("document_visible",{event:u}):G.transition("document_hidden",
{event:u})});
_.F("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(u){G.transition("document_backgrounded",{event:u})}),window.addEventListener("focus",function(u){G.transition("document_foregrounded",{event:u})}))};
_.m(hs,Iu);hs.prototype.runVisible=function(Y,G){Y(G==null?void 0:G.event);_.F("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
hs.prototype.runHidden=function(Y,G){Y(G==null?void 0:G.event);_.F("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
hs.prototype.runBackgrounded=function(Y,G){Y(G==null?void 0:G.event)};
hs.prototype.runForegrounded=function(Y,G){Y(G==null?void 0:G.event)};var dW=function(){this.teardownLifecycle=new Dm;this.visibilityLifecycle=new hs};
dW.prototype.install=function(){var Y=_.vs.apply(0,arguments),G=this;Y.forEach(function(u){G.teardownLifecycle.install(u)});
Y.forEach(function(u){G.visibilityLifecycle.install(u)})};var bA=function(){dW.call(this);var Y={};this.install((Y.document_disposed={callback:this.abortSlisAndFlush},Y));_.F("combine_ve_grafts")&&(Y={},this.install((Y.document_disposed={callback:this.flushInteractionLoggingAttachVes},Y)));Y={};this.install((Y.flush_logs={callback:this.logFinalPayload},Y));_.F("web_log_cfg_cee_ks")||_.WY(_.AN,rn4)};
_.m(bA,dW);var xgu=function(){bA.loggingInstance||(bA.loggingInstance=new bA);return bA.loggingInstance};
bA.prototype.logFinalPayload=function(){if(_.F("web_fp_via_jspb")){var Y=new ZUR,G=_.FA();G&&_.E_(Y,1,G);G=_.F("jspb_sparse_encoded_pivot")?new mm([{}]):new mm;_.wT(G,380,DW2,Y);DEy("finalPayload",G);_.F("web_fp_via_jspb_and_json")&&_.eK("finalPayload",{csn:_.FA()})}else _.eK("finalPayload",{csn:_.FA()})};
bA.prototype.abortSlisAndFlush=function(){Lse(o_);ia!=null&&ia.flush()};
bA.prototype.flushInteractionLoggingAttachVes=function(){wzR(_.M4())};
var rn4=function(){var Y=_.DE("CLIENT_EXPERIMENT_EVENTS");if(Y){var G=aVA();Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())u=u.value,G(u)&&_.eK("genericClientExperimentEvent",{eventType:u});delete _.wc.CLIENT_EXPERIMENT_EVENTS}};var xxI={};
xxI.YtPlayerBehavior=[_.RV.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 Y=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.sG;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;foY(function(){Y.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.R3(this,"pan-down"),_.F("kevlar_pinch_fullscreen")&&_.Q_().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.F("kevlar_pinch_fullscreen")&&_.Q_().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(Y,G,u){var O=this;Bx(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Bx(!1,"MainAppPlayer already created.");else{var Q=_.F("kevlar_player_container_query_killswitch")?this.$.container:_.l0(this.hostElement).querySelector("#container");this.mainAppPlayer_=new Zm(this.getWebPlayerContextConfig_(),Q,function(M){return _.Yy(M,O.hostElement)},Y,G,u);
this.mainAppPlayer_.api.then(function(M){O.player_=M;O.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Zoe.resolve(M)})}},
loadVideoWithPlayerResponse:function(Y,G){var u=this;if(this.useUnifiedPlayer_()){var O=this.watchNextData,Q,M=(Q=Y.videoDetails)==null?void 0:Q.videoId,t,K,L;(Q=(t=this.watchNextData)==null?void 0:(K=t.currentVideoEndpoint)==null?void 0:(L=K.watchEndpoint)==null?void 0:L.videoId)&&M!=Q&&(O=void 0,_.F("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(Y,O,G):this.createMainAppPlayer_(Y,O,G);this.mainAppPlayer_.api.then(function(){_.$s(u.hostElement,
"yt-player-updated")})}else this.update(Eju(Y,G))},
loadVideoWithPlayerVars:function(Y){var G=this;this.useUnifiedPlayer_()?(_.F("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(Y):this.createMainAppPlayer_(void 0,void 0,Y),this.mainAppPlayer_.api.then(function(){_.$s(G.hostElement,"yt-player-updated")})):this.update({args:Y})},
update:function(Y){var G=this;if(this.useUnifiedPlayer_())Bx(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(Y);var u=$Qy(Y.args);u&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==u&&Object.assign(Y.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(Y).then(function(O){_.$s(G.hostElement,"yt-player-updated",_.F("kevlar_player_updated_obsolete_player_killswitch")?
O:void 0)})}_.ij(new _.I2("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(G.getPlayerPromise(),2);u=O.yieldResult;if(!u)throw Error("wh");Y&&G.updatePlayerPlaylist_(Y);_.Sd(O)})},
acquireApi_:function(Y){var G=this;if(this.useUnifiedPlayer_())Bx(!1,"Invalid method call in kevlar_unified_player.");else return _.AN.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Bx(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(u){G.shouldAutoplay_(Y)?u.loadVideoByPlayerVars(Y.args):u.cueVideoByPlayerVars(Y.args)})):this.initPlayerPromise_=this.initPlayerContainer_(Y),this.initPlayerPromise_},
initPlayerContainer_:function(Y){var G=this;if(this.useUnifiedPlayer_())Bx(!1,"Invalid method call in kevlar_unified_player.");else return Bx(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.R0(Error("xh")),Bx(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.F("kevlar_player_container_query_killswitch")?this.$.container:_.l0(this.hostElement).querySelector("#container"),njt().then(function(){var u=G.initPlayer_(Y);G.playerResolver_.resolve(u);
return u})},
onPlayerReady_:function(Y,G){this.useUnifiedPlayer_()?Bx(!1,"Invalid method call in kevlar_unified_player."):(Y.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Zoe.resolve(Y),G(Y))},
maybeCallApiMethodOnElement_:function(Y,G){if(typeof Y[G]==="function")return Y[G]()},
maybeAdoptBootstrapPlayer_:function(){var Y=window,G,u=(G=Y.ytplayer)==null?void 0:G.bootstrapPlayerContainer;if((G=u==null?void 0:u.firstElementChild)&&G.classList.contains("html5-video-player")){var O,Q,M=(O=Y.ytplayer)==null?void 0:(Q=O.bootstrapWebPlayerContextConfig)==null?void 0:Q.contextId;O=this.getWebPlayerContextConfig_().contextId;if(M&&M===O){u!==this.playerContainer_&&(u=!1,this.maybeCallApiMethodOnElement_(G,"getPlayerState")===2&&(u=!0),this.playerContainer_.appendChild(G),u||this.maybeCallApiMethodOnElement_(G,
"playVideo"));var t;if((t=Y.ytplayer)==null?0:t.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=Y.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(Y){var G=this;if(this.useUnifiedPlayer_())Bx(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(u){G.maybeAdoptBootstrapPlayer_();var O=Y?tUt(Y):void 0;O&&O==G.bootstrapPlayerResponse_&&(Y.loaded=!0);O=G.playerContainer_;var Q=G.getWebPlayerContextConfig_();O=WcA(O,Y,Q);G.player_=O;G.onPlayerReadyEvent_=G.onPlayerReady_.bind(G,G.player_,u);G.player_.addEventListener("onReady",G.onPlayerReadyEvent_);G.player_.addEventListener("innertubeCommand",
G.onPlayerInnerTubeCommand_.bind(G))})},
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(Y){Y.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(Y){Y.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var Y=_.sH().resolve(_.bv).getCurrentPage();Y&&Y.getScrollTop()<=0?_.R3(this,"pan-down"):_.R3(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(Y){Y.isFullscreen()||Y.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(Y){Y.isFullscreen()&&Y.toggleFullscreen()})},
updatePlayerPlaylist_:function(Y){var G=this,u,O,Q;return _.a(function(M){if(M.nextAddress==1)return u=_.sH().resolve(_.q3(_.yq)),O=!!(u&&u.playlistComponent&&u.playlistComponent.loopOn),M.yield(G.getPlayerPromise(),2);var t=Q=M.yieldResult,K=t.updatePlaylist,L=[];if(_.F("kevlar_player_playlist_use_local_index")){var g,P;var I=(P=(g=Y.localCurrentIndex)!=null?g:Y.currentIndex)!=null?P:0}else{var k;I=(k=Y.currentIndex)!=null?k:0}if(Y.contents)for(g=0;g<Y.contents.length;g++)if((P=Y.contents[g])&&P.playlistPanelVideoRenderer)if(jW4(P)){P=
P.playlistPanelVideoRenderer;k="";P.shortBylineText&&(k=_.Ri(P.shortBylineText));var n="";P.title?n=_.Ri(P.title):P.unplayableText&&(n=_.Ri(P.unplayableText));L.push({author:k,title:n,encrypted_id:P.videoId})}else g<I&&--I;K.call(t,{index:I,list:Y.playlistId?Y.playlistId:"",loop:O,playlist_title:Y.title,playlist_length:L.length,video:L,fetch:0,external_list:"1",title:Y.title?Y.title:"",playlist_author:Y.ownerName?_.Ri(Y.ownerName):void 0});_.Sd(M)})},
focusOnPlayer:function(){_.sk(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var Y=this.playerContainer_.querySelector(".html5-video-player");Y&&(_.Sx(_.sH().resolve(_.tf)),Y.focus())}})},
preparePlayer:function(){var Y=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(G){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")G();else{var u=function(){document.removeEventListener("DOMContentLoaded",u);G()};
document.addEventListener("DOMContentLoaded",u)}})).then(function(){return njt()}).then(function(){Y.initPlayerPromise_||Y.preparePlayerJobId_||(Y.preparePlayerJobId_=_.WY(_.AN,function(){Y.initPlayerPromise_||(Y.initPlayerPromise_=Y.initPlayerContainer_())}))}):_.ij(new _.I2("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(Y){this.useUnifiedPlayer_()?Bx(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(Y)||(Y.args.autoplay="0")},
shouldAutoplay_:function(Y){if(this.useUnifiedPlayer_())Bx(!1,"Invalid method call in kevlar_unified_player.");else{var G=this.get("args.el",Y);return G&&G!="detailpage"&&this.isMiniplayerActive_()||G&&(G=="sponsorshipsoffer"||G=="handlesclaiming")&&this.get("args.autoplay",Y)=="0"?!1:(Y=tUt(Y))&&this.get("playerConfig.playbackStartConfig.startPaused",Y)?!1:!0}},
isMiniplayerActive_:function(){return _.sH().resolve(_.yo).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var Y=this.getPlayer();if(Y){var G=Y.getPlayerState();_.F("kevlar_player_check_ad_state_on_stop")&&(G=Y.getPlayerState(Y.getPresentingPlayerType()));G!=5&&Y.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(Y,G,u){u=u===void 0?!1:u;var O=this,Q,M,t,K;return _.a(function(L){if(L.nextAddress==1)return G||(G=O.hostElement),Q=O.useUnifiedPlayer_()?!!O.mainAppPlayer_:!!O.initPlayerPromise_,Q?L.yield(O.getPlayerPromise(),2):(u?Y.insertBefore(G,Y.firstChild):Y.appendChild(G),L.return());M=L.yieldResult;t=M.getPlayerState(M.getPresentingPlayerType());K=!1;if(t==-1||t==1||t==3)K=!0;u?Y.insertBefore(G,Y.firstChild):Y.appendChild(G);K&&M.playVideo();M.setSize(NaN,NaN);_.Sd(L)})},
watchNextDataChanged_:function(Y){var G=this;Y&&(this.useUnifiedPlayer_()&&_.F("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&prR(this.mainAppPlayer_,Y):this.getPlayerPromise().then(function(u){u.updateVideoData(G.computeWatchNextPlayerVars_(Y))}))},
computeWatchNextPlayerVars_:function(Y){if(this.useUnifiedPlayer_()&&_.F("kevlar_unified_player_update_watch_next_killswitch"))Bx(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:Y}},
maybeSendAbandonmentPing_:function(){var Y=this.getPlayer();Y&&Y.getPlayerState()!=5&&Y.getPlayerState()!=0&&Y.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var Y=_.DE("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(Y=Object.assign({},Y),Y.rootElementId=this.playerId);Y.serializedExperimentIds&&Y.serializedExperimentFlags||_.R0(Error("yh"));return Y},
hasWebPlayerContextConfig_:function(){return!!_.DE("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(Y){this.useUnifiedPlayer_()?Bx(!1,"Invalid method call in kevlar_unified_player."):_.Yy(Y,this.hostElement)},
useUnifiedPlayer_:function(){var Y=_.F("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.F("kevlar_unified_player")||Y}}];var fi_={};fi_.YtPlaylistPanelBehavior=[_.c.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(Y){Y=Y.detail;if(Y.actions.loop!=void 0||Y.actions["yt-icons:loop"]!=void 0)this.loopOn=Y.actions.loop||Y.actions["yt-icons:loop"];if(Y.actions.shuffle!=void 0||Y.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=Y.actions.shuffle||Y.actions["yt-icons:shuffle"]},
setMenuData_:function(Y){if(!Y||!Y.playlistButtons||Y.isInfinite)return null;for(var G=Y.playlistButtons.menuRenderer.topLevelButtons,u=G.length,O=0;O<u;O++)if(G[O].toggleButtonRenderer){var Q=G[O].toggleButtonRenderer;Q.defaultIcon.iconType=="LOOP"&&this.loopOn?Q.isToggled=this.loopOn:Q.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(Q.isToggled=this.shuffleOn)}return Y.playlistButtons}}];_.Ne={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(Y,G,u){var O=this.getClickTarget_(G);if(O&&this.isClickAllowed_(O)){G.preventDefault();Y=(0,_.gX.unsafeClone)(Y);var Q=this.getContainerBoundingRect();G=this.getRelativeClickXy_(G,Q);this.expandEndpointUrlMacros_(Y,{NX:G[0],NY:G[1],NB:O.code});u&&this.truncateWebCommendMetadataUrl_(Y);_.$s(this.hostElement,"yt-navigate",{endpoint:Y})}},
getClickTarget_:function(Y){if(!this.clickTargetMap)return null;Y=_.wG(Y)||[];Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next()){G=G.value;if(G===_.l0(this.hostElement).querySelector("#menu"))break;if(G=this.clickTargetMap.get(G.id))return G}return null},
getRelativeClickXy_:function(Y,G){var u=Math.round(Y.detail.x-G.left);Y=Math.round(Y.detail.y-G.top);return u<0||Y<0?[null,null]:[u,Y]},
getContainerBoundingRect:function(){return _.l0(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(Y,G){for(var u=_.E(Y.loggingUrls||[]),O=u.next();!O.done;O=u.next())O=O.value,O.baseUrl&&(O.baseUrl=BUA(O.baseUrl,G));Y.urlEndpoint&&Y.urlEndpoint.url&&(Y.urlEndpoint.url=BUA(Y.urlEndpoint.url,G));Y.commandMetadata&&Y.commandMetadata.webCommandMetadata&&Y.commandMetadata.webCommandMetadata.url&&(Y.commandMetadata.webCommandMetadata.url=BUA(Y.commandMetadata.webCommandMetadata.url,G))},
truncateWebCommendMetadataUrl_:function(Y){if(Y.commandMetadata&&Y.commandMetadata.webCommandMetadata&&Y.commandMetadata.webCommandMetadata.url){var G=Y.commandMetadata.webCommandMetadata.url,u=G.indexOf("&pp=");if(u>0){var O=G.indexOf("&",u+1);Y.commandMetadata.webCommandMetadata.url=O>u&&O<G.length?G.slice(0,u)+G.slice(O):G.slice(0,u)}}},
configureClickTargets:function(Y,G,u){this.containerId=Y;this.clickTargetMap=new Map;Y=_.E(G);for(G=Y.next();!G.done;G=Y.next())if(G=G.value,G.location){var O=u.get(G.location);O&&(_.$3(_.l0(this.hostElement).querySelector("#"+O),"yt-simple-endpoint",this.isClickAllowed_(G)),this.clickTargetMap.set(O,G))}},
isClickAllowed_:function(Y){return Y.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||Y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||Y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||Y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.jx={};
_.jx.YtLazyListBehavior=[_.ZA.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 Y=(this.constructor.generatedFrom||this).observers;Y||(Y=[]);Y.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
Y}},
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 Y=this.renderElementsOutsideVisibleArea_;Y&&(xkT(Y,4),Y.processSignal())},
deepLazyListObserver_:function(Y){var G=this;if(Y){var u=Y.value||[];if(this.itemsPath==Y.path){var O=this.nonDeferredItemCount;Y=0;O>-1&&u.length>O&&(Y=_.DE("REMAINING_DOVA_DEFERRED_CHUNKS",-1));Y>0?(O>0&&(O=u.slice(0,O),this.setInitialItemsOnDataChanged(O)),(O=this.renderElementsOutsideVisibleArea_)?O.cancel():(O=this.renderElementsOutsideVisibleArea_=new _.hC(2,"eocs"),_.$4j(window,"scroll",function(){return G.renderDeferredElements()})),_.d8(O,function(){G.setInitialItemsOnDataChanged(u)}),_.ZE("REMAINING_DOVA_DEFERRED_CHUNKS",
Y-1)):this.setInitialItemsOnDataChanged(u)}else if(this.itemsPath+".splices"==Y.path)this.onItemsUpdated_(u);
else O="shownItems"+Y.path.substr(this.itemsPath.length),this.useSignals&&O==="shownItems.length"||this.notifyPath(O,Y.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(Y){Y&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(Y),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(Y){Y=Y.indexSplices;for(var G=0,u=Y.length;G<u;G++){var O=Y[G];if(O.index<this.shownCount&&(O.removed&&this.splice("shownItems",O.index,O.removed.length),O.addedCount)){var Q=O.object.slice(O.index,O.index+O.addedCount);O=["shownItems",O.index,0];O.push.apply(O,Q);this.splice.apply(this,O)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(Y){this.cancelPendingTasks_();Y||(Y=[]);this.items_=Y;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&&(_.hy("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.sk(this,this.tryRenderChunk_)))},
fillRange_:function(Y,G){this.canShowMore&&this.items_&&(Y=this.items_.slice(Y,G),Y.unshift("shownItems"),this.push.apply(this,Y),this.shownCount=G,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var Y=this;this.canShowMore&&_.y4(this,"renderChunk",function(){Y.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.hy("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.Ti(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var Y=this.renderElementsOutsideVisibleArea_;Y&&(Y.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var Y=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(Y-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=Y;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(Y){return Math.ceil(1E3/Y)},
onCanShowMoreUpdated_:function(Y){this.data&&this.items_!==null&&(Y?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(Y){!this.shouldUseTaskManager()&&this.data&&(!Y&&this.canShowMore?(_.g$4(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):Y&&this.partiallyRenderedItems_.has(this.items_)&&(_.F("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Bf;_.V8={};
Bf=function(){var Y=_.Mb.apply(this,arguments)||this;Y.atStart=!0;Y.atEnd=!0;Y.startIndex=0;Y.endIndex=0;Y.scrollCount=0;Y.initialStartIndex=0;Y.disableScrollEventListener=!1;Y.useFloorScrolling=!1;Y.isSearch=!1;Y.dragging=!1;Y.dragMouseStart=0;Y.dragOffsetStart=0;Y.disableWheelScroll=!1;Y.centerListItems=!1;Y.offset=0;Y.minComponentWidth=0;Y.marginWidthRight=0;Y.marginWidthLeft=0;Y.setButtonsStateRequested=!1;Y.itemsVisibilityObserver=null;Y.fullyVisibleItemsIndices=[];Y.JSC$14835_onWheelScroll=function(G){if(Y.isSearch&&
!Y.disableWheelScroll&&_.F("desktop_enable_dmpanel_wheel_scroll")){var u=G.shiftKey?Math.abs(G.deltaY)>Math.abs(G.deltaX)?G.deltaY:G.deltaX:G.deltaX;u!==0&&(G.preventDefault(),Y.ytLazyListBehavior.fillRemainingListItems(),Y.offset+=u,lA(Y),Y.reposition_())}};
Y.onPointerDown=function(G){CCl(Y)&&(Y.dragMouseStart=G.clientX,Y.dragOffsetStart=Y.offset,Y.dragging=!0)};
Y.onPointerMove=function(G){CCl(Y)&&Y.dragging&&(Y.ytLazyListBehavior.fillRemainingListItems(),Y.offset=Y.dragOffsetStart-(G.clientX-Y.dragMouseStart),lA(Y),Y.reposition_())};
Y.onPointerUp=function(){CCl(Y)&&(Y.dragging=!1)};
return Y};
_.m(Bf,_.Mb);var ynR=function(Y){var G=_.l0(Y.hostElement).querySelector("#items").children;if(!G)return 0;var u=0;Y=_.E(Y.fullyVisibleItemsIndices);for(var O=Y.next();!O.done;O=Y.next())u+=G[O.value].clientWidth;return u},CCl=function(Y){return Y.isSearch&&_.F("desktop_enable_dmpanel_click_drag_scroll")};
Bf.prototype.created=function(){this.cachedViewportWidth=_.DE("initialInnerWidth")||window.innerWidth;this.JSC$14835_cachedViewportHeight=_.DE("initialInnerHeight")||window.innerHeight;_.DE("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.ZE("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Bf.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.F("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();eVR(this)};
Bf.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.F("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var Y;(Y=this.itemsVisibilityObserver)==null||Y.disconnect();this.itemsVisibilityObserver=null;var G;(G=this.itemsObserver)==null||G.disconnect()};
var eVR=function(Y){var G=_.l0(Y.hostElement).querySelector("#scroll-container");if(G){if(!Y.itemsVisibilityObserver){var u=window.getComputedStyle(G).marginRight;Y.itemsVisibilityObserver=new IntersectionObserver(function(O){AnI(Y,O)},{root:G,
rootMargin:u,threshold:.98})}if(G=_.l0(Y.hostElement).querySelector("#items"))Y.itemsObserver=new Kak(G,function(O){oAT(Y,O)})}},oAT=function(Y,G){ii_(Y)&&(Array.from(G.addedNodes).filter(function(u){return u.nodeType===Node.ELEMENT_NODE}).forEach(function(u){Y.itemsVisibilityObserver&&Y.itemsVisibilityObserver.observe(u)}),Array.from(G.removedNodes).filter(function(u){return u.nodeType===Node.ELEMENT_NODE}).forEach(function(u){Y.itemsVisibilityObserver&&Y.itemsVisibilityObserver.unobserve(u)}))},
AnI=function(Y,G){var u=new Set(Y.fullyVisibleItemsIndices);
G=_.E(G);for(var O=G.next();!O.done;O=G.next()){O=O.value;var Q=O.target.parentElement;Q?(Q=Array.from(Q.children).indexOf(O.target),O.isIntersecting?u.add(Q):u.has(Q)&&u.delete(Q)):_.R0(new _.I2("Parent element not found",O.target.nodeName))}Y.fullyVisibleItemsIndices=Array.from(u).sort(function(M,t){return M-t});
u.size===0?_.R0(new _.I2("No visible entries in horizontal list")):(Y.startIndex=Y.fullyVisibleItemsIndices[0],Y.endIndex=Y.fullyVisibleItemsIndices[Y.fullyVisibleItemsIndices.length-1])},ii_=function(Y){Y.data?Y=(Y=Y.data)&&Y.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===Y.itemSizeConstraint:!1:Y=!1;
return Y};
_.H=Bf.prototype;_.H.addScrollEventListeners=function(){var Y=_.l0(this.hostElement).querySelector("#scroll-container");Y.style.touchAction="pan-y";Y.addEventListener("wheel",this.JSC$14835_onWheelScroll);Y.addEventListener("pointerdown",this.onPointerDown);Y.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.H.removeScrollEventListeners=function(){var Y=_.l0(this.hostElement).querySelector("#scroll-container");Y.removeEventListener("wheel",this.JSC$14835_onWheelScroll);Y.removeEventListener("pointerdown",this.onPointerDown);Y.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&&_.sk(this,this.setStartIndex,[this.initialStartIndex])};
_.H.reposition_=function(){var Y=_.DE("HTML_DIR")=="rtl"?"":"-",G=_.l0(this.hostElement).querySelector("#items");G&&(G.style.transform="translateX("+Y+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.H.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.sk(this,this.setButtonsState_))};
_.H.setButtonsState_=function(){this.setButtonsStateRequested=!1;var Y=_.l0(this.hostElement).querySelector("#items").firstElementChild;if(Y){this.minComponentWidth||(this.minComponentWidth=RVE(this,Y));Y=_.l0(this.hostElement).querySelector("#scroll-container").clientWidth;var G=_.l0(this.hostElement).querySelector("#items");G=_.F("kevlar_horizontal_list_scroll_width_killswitch")?G.clientWidth:G.scrollWidth;var u=this.get(this.ytLazyListBehavior.itemsPath,this);if(u){var O=Math.round(Y/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+O,u.length)-1)}this.ytLazyListBehavior.canShowMore?G+this.minComponentWidth>=this.offset+Y&&(this.atEnd=!1):this.atEnd=this.offset+Y>=G-20?!0:!1;this.atStart=this.offset<=20}};
_.H.setStartIndex=function(Y){if(!this.minComponentWidth){var G=_.l0(this.hostElement).querySelector("#items").firstElementChild;if(!G)return;this.minComponentWidth=RVE(this,G)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*Y;lA(this);this.reposition_()};
_.H.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Uz();var Y=_.l0(this.hostElement).querySelector("#scroll-container").clientWidth;_.F("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=RVE(this,_.l0(this.hostElement).querySelector("#items").firstElementChild));Y=this.useFloorScrolling?Math.floor(Y/this.minComponentWidth)||1:Math.round(Y/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&wrE(this);this.offset+=ii_(this)?
ynR(this):Y*this.minComponentWidth;lA(this);this.reposition_();this.scrollCount++};
_.H.prevClick_=function(){var Y=_.l0(this.hostElement).querySelector("#scroll-container").clientWidth;Y=this.useFloorScrolling?Math.floor(Y/this.minComponentWidth)||1:Math.round(Y/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=ii_(this)?ynR(this):this.minComponentWidth*this.scrollCount-1):this.offset-=ii_(this)?ynR(this):Y*this.minComponentWidth;this.centerListItems&&wrE(this);lA(this);this.reposition_()};
_.H.onIronResize_=function(){this.resizeSupportEnabled&&_.sk(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.H.onItemsTransitionEnd_=function(Y){_.Zb(Y)===_.l0(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.H.onChildElementFocus_=function(Y){Y=Y.target.closest("#items > *");var G=_.l0(this.hostElement).querySelector("#scroll-container");if(G.contains(Y)){if(_.F("web_horizontal_list_behavior_focus_killswitch"))if(Y.offsetLeft<this.offset)this.offset=Math.abs(Y.offsetLeft)<Y.clientWidth?0:Y.offsetLeft;else if(Y.offsetLeft+Y.clientWidth>this.offset+G.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Uz(),this.offset=Y.offsetLeft+Y.clientWidth-G.clientWidth;else return;else{var u=_.l0(this.hostElement).querySelector("#items"),
O=_.DE("HTML_DIR")==="rtl",Q=O?u.clientWidth-Y.offsetLeft:Y.offsetLeft;u=O?u.clientWidth-(Y.offsetLeft+Y.clientWidth):Y.offsetLeft+Y.clientWidth;var M=O?Q>this.offset+G.clientWidth:Q<this.offset,t=O?u<this.offset:u>this.offset+G.clientWidth,K=O?M:t;if(O?t:M)G=O?u:Q,this.offset=Math.abs(G)<Y.clientWidth?0:G;else if(K)this.ytLazyListBehavior.fillRemainingListItems(),_.Uz(),this.offset=(O?Q:u)-G.clientWidth;else return}lA(this);this.reposition_()}};
_.H.observeShownItems_=function(){this.reset()};
_.H.checkComponentWidthResize=function(){var Y=_.l0(this.hostElement).querySelector("#items").firstElementChild;Y&&(Y=RVE(this,Y),this.centerListItems||Y!==this.minComponentWidth)&&(this.minComponentWidth=Y,this.offset=Y*this.scrollCount,this.centerListItems&&wrE(this),lA(this),this.reposition_())};
var RVE=function(Y,G){var u=window.getComputedStyle(G).marginRight;u=Math.floor(Number(u.replace("px","")));var O=window.getComputedStyle(G).marginLeft;O=Math.floor(Number(O.replace("px","")));Y.centerListItems&&!Y.marginWidthRight&&(Y.marginWidthRight=u,Y.marginWidthLeft=O);return Y.resizeSupportEnabled?G.getBoundingClientRect().width+u:G.offsetWidth+u},lA=function(Y){var G=_.l0(Y.hostElement).querySelector("#scroll-container").clientWidth,u=_.l0(Y.hostElement).querySelector("#items").clientWidth;
Y.offset<0?Y.offset=0:Y.offset+G>=u&&(Y.offset=u-G)},wrE=function(Y){Y.offset-=(_.l0(Y.hostElement).querySelector("#scroll-container").clientWidth+Y.marginWidthRight-Y.minComponentWidth)/2-Y.marginWidthLeft};
_.Uk.Object.defineProperties(Bf.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var Y=_.DE("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(Y==-1)Y=this.JSC$14835_cachedViewportHeight,Y=Y>1320?5:Y>1020?4:Y>730?3:Y>430?2:1;else if(Y==0)return 0;_.ZE("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",Y-1);Y=_.DE("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(Y>-1)return Y;Y=this.cachedViewportWidth;Y=Y>1600?6:Y>1400?5:Y>1300?4:Y>1090?5:Y>870?4:Y>660?3:2;_.ZE("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
Y);return Y},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.F("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Bf.prototype.observeShownItems_=Bf.prototype.observeShownItems_;Bf.prototype.onChildElementFocus_=Bf.prototype.onChildElementFocus_;Bf.prototype.onItemsTransitionEnd_=Bf.prototype.onItemsTransitionEnd_;Bf.prototype.onIronResize_=Bf.prototype.onIronResize_;Bf.prototype.prevClick_=Bf.prototype.prevClick_;Bf.prototype.nextClick_=Bf.prototype.nextClick_;Bf.prototype.setButtonsState_=Bf.prototype.setButtonsState_;Bf.prototype.requestButtonsStateUpdate_=Bf.prototype.requestButtonsStateUpdate_;
Bf.prototype.reposition_=Bf.prototype.reposition_;Bf.prototype.reset=Bf.prototype.reset;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.jx.YtLazyListBehavior),_.V("design:type",Object)],Bf.prototype,"ytLazyListBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Bf.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Bf.prototype,"atStart",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Bf.prototype,"atEnd",void 0);_.S([_.R(),_.V("design:type",Object)],Bf.prototype,"startIndex",void 0);_.S([_.R(),_.V("design:type",Object)],Bf.prototype,"endIndex",void 0);_.S([_.R({value:6}),_.V("design:type",Number)],Bf.prototype,"initialCount",void 0);_.S([_.R(),_.V("design:type",Object)],Bf.prototype,"scrollCount",void 0);_.S([_.R(),_.V("design:type",Object)],Bf.prototype,"initialStartIndex",void 0);
_.S([_.R(),_.V("design:type",Object)],Bf.prototype,"disableScrollEventListener",void 0);_.S([_.R(),_.V("design:type",Object)],Bf.prototype,"supportComponentResize",void 0);_.S([_.R({value:function(){var Y=this;return function(){return Y.prevClick_()}}}),
_.V("design:type",Function)],Bf.prototype,"boundPrevClick",void 0);_.S([_.R({value:function(){var Y=this;return function(){return Y.nextClick_()}}}),
_.V("design:type",Function)],Bf.prototype,"boundNextClick",void 0);_.S([_.R(),_.V("design:type",Object)],Bf.prototype,"useFloorScrolling",void 0);_.S([_.R(),_.V("design:type",Object)],Bf.prototype,"isSearch",void 0);_.S([_.R(),_.V("design:type",Object)],Bf.prototype,"dragging",void 0);_.S([_.R(),_.V("design:type",Object)],Bf.prototype,"dragMouseStart",void 0);_.S([_.R(),_.V("design:type",Object)],Bf.prototype,"dragOffsetStart",void 0);
_.S([_.R(),_.V("design:type",Object)],Bf.prototype,"disableWheelScroll",void 0);_.S([_.R(),_.V("design:type",Object)],Bf.prototype,"centerListItems",void 0);_.S([_.Yo("iron-resize"),_.GO("guideOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Bf.prototype,"onIronResize_",null);_.S([_.Yo("transitionend"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Bf.prototype,"onItemsTransitionEnd_",null);
_.S([_.Yo("focusin"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Bf.prototype,"onChildElementFocus_",null);_.S([_.GO("shownItems"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Bf.prototype,"observeShownItems_",null);_.S([_.Hn()],Bf);_.V8.YtdHorizontalListBehavior=[];_.V8.YtdHorizontalListBehavior.push(_.aZ,_.c.YtRendererBehavior,_.jx.YtLazyListBehavior,_.y8.YtdGuideStateAwareBehavior,Bf.prototype);var yuY=["APP_STATE","PI"];var $K,qe=function(Y){this.hostElement=Y},so=function(Y,G){if(G&&(iCA(G.viewableCommands)||iCA(G.endOfSessionCommands))){var u=wLT(G.viewableCommands);
G=wLT(G.endOfSessionCommands);if(!$K){var O=_.Jy("custom_active_view_tos_timeout_ms");$K=O>0&&O!==36E5?new uKY(Ret(),O):new uKY(Ret())}Q5A($K,Y.hostElement);M$u($K,Y.hostElement,u,G)}},cf=function(Y){$K&&Q5A($K,Y.hostElement)};var Zi_=_.hV(["about:blank"]),DxE={pushState:window.history.pushState,replaceState:window.history.replaceState};var Uo=function(Y){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=Y;this.internalPushState=Y.pushState.bind(Y);this.internalReplaceState=Y.replaceState.bind(Y)};
Uo.prototype.init=function(){this.initialized=!0};
Uo.prototype.pushState=function(Y,G){this.initialized||this.init();this.internalPushState&&this.internalPushState(Y,"",G)};
Uo.prototype.replaceState=function(Y,G){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(Y,"",G)};
Uo.prototype.getState=function(){return this.history&&this.history.state};var hVX=function(Y){var G=function(){var u=Y.apply(this,arguments)||this;u.boundHistoryPushState=!1;u.boundHistoryReplaceState=!1;u.debugInfo={};return u};
_.m(G,Y);G.prototype.init=function(){var u=_.uI("IFRAME");_.Er(u,_.fO(Zi_));u.sandbox="allow-same-origin";u.style.display="none";this.iframe=u;document.body.appendChild(u);this.bindHistoryStateFunctions();Y.prototype.init.call(this)};
G.prototype.bindHistoryStateFunctions=function(){var u=this,O=[],Q;this.iframe&&((Q=this.iframe.contentWindow)==null?0:Q.history)&&(Q=this.iframe.contentWindow.history)&&(O.push(Q),Object.getPrototypeOf(Q)&&O.push(Object.getPrototypeOf(Q)));window.history&&O.push(window.history);Q=window.history;Object.getPrototypeOf(Q)&&O.push(Object.getPrototypeOf(Q));O.push(DxE);Q=function(t){for(var K=null,L=0;L<O.length;L++){var g=O[L][t];if(typeof g==="function"){K=g.bind(window.history);u.debugInfo[t]=L;break}}return K};
if(!this.boundHistoryReplaceState){var M=Q("replaceState");M&&(this.internalReplaceState=M,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(Q=Q("pushState"))&&(this.internalPushState=Q,this.boundHistoryPushState=!0)};
return G}(Uo),dxM=function(){return hVX.call(this,window.history)||this};
_.m(dxM,hVX);dxM.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var vf=function(Y){this.browserHistory=Y;this.initialized=!1};
vf.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
vf.prototype.pushState=function(Y,G){this.initialized||this.init();this.browserHistory.pushState(Y,G)};
vf.prototype.replaceState=function(Y,G){this.initialized||this.init();this.browserHistory.replaceState(Y,G)};
vf.prototype.handlePopstate=function(Y){return Y.state};_.biR=function(Y,G,u,O,Q){this.endpoint=Y;this.forward=G;this.historyEntry=u;this.JSC$31309_savedComponentState=O;this.legacyBorder=Q===void 0?!1:Q};var SQl=function(Y,G){this.rootData=Y;this.scrollTop=G};_.Js=new _.Sb("EPHEMERAL_STORE_TOKEN");_.Yb=function(Y){this.data=Object.assign({},Y);var G;(G=this.data.innertubeResponse)==null||delete G.frameworkUpdates};
_.Yb.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.GC)()};
_.Yb.prototype.isProcessed=function(){return!!this.data.isProcessed};
_.sn=function(Y){return Object.assign({},Y.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var N$4=function(){this.maxSize=100;this.timeToDataCache=new Map};
N$4.prototype.get=function(Y){var G=this.timeToDataCache.get(Y);G&&(this.timeToDataCache.delete(Y),this.timeToDataCache.set(Y,G));if(G&&G.rootData&&(_.F("web_use_response_store_for_history_cache")||_.F("mweb_use_new_history_manager"))){var u=_.sH().resolve(_.Js),O=jq1(G),Q=!!O;if(O){if(O.content){var M=Gv(u,O.content);Q&&M?G.rootData.response=_.sn(M):Q=!1}O.player&&(M=Gv(u,O.player),Q&&M?G.rootData.playerResponse=_.sn(M):Q=!1);O.reelSequence&&(u=Gv(u,O.reelSequence),Q&&u?G.rootData.reelWatchSequenceResponse=
_.sn(u):Q=!1)}Q||(this.timeToDataCache.delete(Y),G=void 0)}return G};
N$4.prototype.set=function(Y,G){if(G.rootData&&(_.F("web_use_response_store_for_history_cache")||_.F("mweb_use_new_history_manager"))){var u=jq1(G),O=Object.assign({},G.rootData);u&&(u.content&&G.rootData.response&&(V3I(this,u.content,G.rootData.response),O.response=null),u.player&&G.rootData.playerResponse&&(V3I(this,u.player,G.rootData.playerResponse),O.playerResponse=null),u.reelSequence&&G.rootData.reelWatchSequenceResponse&&(V3I(this,u.reelSequence,G.rootData.reelWatchSequenceResponse),O.reelWatchSequenceResponse=
null));G=new SQl(O,G.scrollTop)}this.timeToDataCache.has(Y)?this.timeToDataCache.delete(Y):this.timeToDataCache.size>=this.maxSize&&(u=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(u.value));this.maxSize!==0&&this.timeToDataCache.set(Y,G)};
N$4.prototype.clear=function(){this.timeToDataCache.clear()};
var jq1=function(Y){var G=_.sH().resolve(_.q3(_.kM)),u;if((u=Y.rootData)==null?0:u.endpoint)return G==null?void 0:OT2(G,Y.rootData.endpoint);var O;_.R0(new _.I2("History snapshot response data does not contain endpoint",(O=Y.rootData)==null?void 0:O.url));return null},V3I=function(Y,G,u){if(Y.maxSize>0){var O;
(Y=(O=u.responseContext)==null?void 0:O.maxAgeSeconds)&&Number(Y)>0&&(O=_.sH().resolve(_.Js),u=sj(u,Y),O.put(G,new _.Yb(u)))}};var li1=function(Y,G,u){this.endpoint=G;this.JSC$31315_savedComponentState=u===void 0?null:u;this.entryTime=Y};var DgU=1;var up=function(Y){var G=function(){var u=Y.apply(this,[].concat(_.c8(_.vs.apply(0,arguments))))||this;u.historyEntryTime=0;u.historySnapshotCache=u.createHistoryCache();return u};
_.m(G,Y);G.prototype.createHistoryCache=function(){return new N$4};
G.prototype.saveAndReplace=function(u,O,Q){var M=window.location.href;var t=t===void 0?{}:t;var K=(K=this.browserHistory.getState())&&K.entryTime?K.entryTime:heU();u=this.createNewHistoryEntry(u,t,K);this.saveSnapshot(K,O,Q);this.replaceState(u,M||window.location.href)};
G.prototype.saveAndPush=function(u,O,Q,M,t){t=t===void 0?{}:t;this.saveSnapshot(this.historyEntryTime,Q,M);Q=this.historySnapshotCache;M=this.historyEntryTime;var K=Q.timeToDataCache.keys();K=_.E(K);for(var L=K.next();!L.done;L=K.next())L=L.value,L>M&&Q.timeToDataCache.delete(L);O=this.createNewHistoryEntry(O,t);this.pushState(O,u)};
G.prototype.saveSnapshot=function(u,O,Q){this.historySnapshotCache.set(u,new SQl(O,Q))};
G.prototype.createNewHistoryEntry=function(u,O,Q){Q=Q===void 0?heU():Q;return new li1(Q,u,O)};
G.prototype.handlePopstate=function(u){var O=Y.prototype.handlePopstate.call(this,u),Q=null,M=null,t=!1,K=null;O&&O.entryTime&&(K=this.historySnapshotCache.get(O.entryTime)||null,t=O.entryTime>this.historyEntryTime,this.historyEntryTime=O.entryTime,Q=O.endpoint,M=O.JSC$31315_savedComponentState);this.handleHistoryCacheLoad(new _.biR(Q,t,K,M),u);return O};
G.prototype.pushState=function(u,O){Number(u==null?void 0:u.entryTime)>=0&&(this.historyEntryTime=u.entryTime);Y.prototype.pushState.call(this,u,O)};
G.prototype.replaceState=function(u,O){Number(u==null?void 0:u.entryTime)>=0&&(this.historyEntryTime=u.entryTime);Y.prototype.replaceState.call(this,u,O)};
G.prototype.handleHistoryCacheLoad=function(){};
return G}(vf),B$_=function(){var Y=up.call(this,new dxM)||this;
Y.dispatchElement=null;Y.entryIndex=0;return Y};
_.m(B$_,up);_.H=B$_.prototype;_.H.init=function(Y){Y=Y===void 0?!0:Y;up.prototype.init.call(this);this.initialized||(Y||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.H.handlePopstate=function(Y){var G=null;Y.state||(G="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return up.prototype.handlePopstate.call(this,Y);var u=new CustomEvent("yt-history-pop",{cancelable:!0});_.qZ(this.dispatchElement,"yt-history-pop",[u,{errorMsg:G}]);_.sK(this.dispatchElement,"yt-close-all-popups-action");if(!u.defaultPrevented){u=_.sH().resolve(_.bv);G=u.getCurrentData();var O=u.getCurrentPage();u=0;O?(O=_.qZ(this.dispatchElement,"yt-get-page-offset",
[O]),O.length>0&&(u=O[0])):_.R0(new _.I2("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:G?G.page:"undefined"}));G&&(G.csn=_.FA());this.saveSnapshot(this.historyEntryTime,G,u)}return up.prototype.handlePopstate.call(this,Y)};
_.H.handleHistoryCacheLoad=function(Y,G){Y.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.E(_.sK(this.dispatchElement,"yt-history-will-navigate",[G])).next().value||_.qZ(this.dispatchElement,"yt-history-load",[G,Y]))};
_.H.pushState=function(Y,G){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var u=new _.I2("history.pushState is not a function",this.getDebugString());_.o0(u)}up.prototype.pushState.call(this,Y,G)};
_.H.replaceState=function(Y,G){if(!this.browserHistory.boundHistoryReplaceState){var u=new _.I2("history.replaceState is not a function",this.getDebugString());_.o0(u)}up.prototype.replaceState.call(this,Y,G)};
_.H.saveAndPush=function(Y,G,u,O,Q){Q=Q===void 0?{}:Q;u&&(u.csn=_.FA());up.prototype.saveAndPush.call(this,Y,G,u,O,Q)};
_.H.getDebugString=function(){var Y=[];this.initialized&&Y.push("i");this.browserHistory.boundHistoryReplaceState&&Y.push("bhr");this.browserHistory.boundHistoryPushState&&Y.push("bhs");"replaceState"in this.browserHistory.debugInfo&&Y.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&Y.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&Y.push("ei:"+String(this.entryIndex));return Y.join(",")};
_.Oa=function(Y,G){Y.init(!0);var u=Y.browserHistory.getState();Y.replaceState(u,q5(G))};
B$_.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Q7=new _.Sb("DESKTOP_HISTORY_MANAGER_TOKEN");var $xe=[10,20,30,40,50,60],Mi=function(){this.currentPartitionIndex=0},qQI=function(Y){pd4({mainAppWeb:_.Ah(),
survivalSli:{partitionMinute:Y,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},sqR=function(Y){pd4({mainAppWeb:_.Ah(),
survivalSli:{partitionMinute:Y,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},cnk=function(Y){return Y.currentPartitionIndex>=0&&Y.currentPartitionIndex<$xe.length?$xe[Y.currentPartitionIndex]:-1},UxI=function(Y){return Y.currentPartitionIndex>0&&Y.currentPartitionIndex-1<$xe.length?$xe[Y.currentPartitionIndex-1]:-1};
Mi.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var Y=UxI(this);Y>0&&sqR(Y);Y=cnk(this);Y>0&&qQI(Y);vAI(this)}};
var vAI=function(Y){var G=cnk(Y);if(G>0){var u=UxI(Y);u<0&&(u=0);Y.intervalId=_.AN.addJob(function(){var O=UxI(Y);O>0&&sqR(O);O=cnk(Y);O>0&&qQI(O);vAI(Y)},3,(G-u)*6E4);
Y.currentPartitionIndex+=1}else Y.currentPartitionIndex=-1};var JnE=function(Y){LA.call(this,Y,132);this.isDocument=Y===document.documentElement};
_.m(JnE,LA);JnE.prototype.calculateScrollDelta=function(Y,G,u){var O=0;Y<G?O=Y<G-100?-48:-8:Y>G+u&&(O=Y>G+u+100?48:8);return O};
JnE.prototype.JSC$11726_onMouseMove=function(Y){this.isDocument||(Y.clientX=Y.event_.pageX,Y.clientY=Y.event_.pageY);LA.prototype.JSC$11726_onMouseMove.call(this,Y)};_.YcV=function(Y,G){var u=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14889_dragListGroup=null;this.onDraggerCreated=function(O){var Q=O.JSC$11722_dragger;Q.scrollTarget_=u.scrollElement;O=O.draggerEl;Q&&O.menuOpened&&Q.setEnabled(!1)};
this.onDragStart=function(O){var Q=O.draggerEl;O=O.currDragItem;var M=Object.assign({},O==null?void 0:O.data);M.trackingParams=void 0;Q.data=M;Q.style.position="absolute";Q.style.width=(O==null?void 0:O.clientWidth)+"px";Q.style.zIndex="2030";Q.onDrag&&Q.onDrag();O=_.nm(Q);(M=O.querySelector("ytd-app"))?_.l0(M).appendChild(Q):O.body.appendChild(Q);u.dragScrollSupport=new JnE(u.scrollElement);u.dragScrollSupport.horizontalScrolling_=!1;Q=u.dragScrollSupport;Q.constrainScroll_=!!Q.margin_&&!1};
this.onDrop=function(O){u.handleDrop(O);u.dragScrollSupport&&(_.ZM(u.dragScrollSupport),u.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(u.JSC$14889_dragListGroup){var O=u.JSC$14889_dragListGroup;m5I(O,O.currDragItem_)}};
this.handleDrop=G};
_.H7=function(Y){Y.JSC$14889_dragListGroup&&(_.F_(Y.JSC$14889_dragListGroup,gh1,Y.onDragStart),_.F_(Y.JSC$14889_dragListGroup,kSI,Y.onDragStart),Y.JSC$14889_dragListGroup.dispose(),Y.JSC$14889_dragListGroup=null);Y.dragScrollSupport&&(_.ZM(Y.dragScrollSupport),Y.dragScrollSupport=null);Y.scrollElement.removeEventListener("scroll",Y.onReorderableScroll)};
_.GtM=function(Y,G,u,O){O=O===void 0?"":O;_.H7(Y);u&&(Y.scrollElement=u);Y.JSC$14889_dragListGroup=new n3;Y.JSC$14889_dragListGroup.hysteresisDistance_=2;F21(Y.JSC$14889_dragListGroup,G);Y.JSC$14889_dragListGroup.draggerElClasses_=IU("dragging").split(" ");O&&pxM(Y.JSC$14889_dragListGroup,function(Q){var M=Q||document,t=null;M.getElementsByClassName?t=M.getElementsByClassName(O)[0]:t=q_k("*",O,Q);return t||Q});
_.yn(Y.JSC$14889_dragListGroup,TEk,Y.onDraggerCreated);_.yn(Y.JSC$14889_dragListGroup,gh1,Y.onDragStart);_.yn(Y.JSC$14889_dragListGroup,kSI,Y.onDrop);Y.JSC$14889_dragListGroup.init();Y.scrollElement.addEventListener("scroll",Y.onReorderableScroll,{passive:!0})};
_.Uk.Object.defineProperties(_.YcV.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var uqT=function(){this.skipNextNavigation=!1},OhR=function(Y,G,u){if(!G)return!1;
if(Y.skipNextNavigation)return Y.skipNextNavigation=!1;if(_.z(u,_.SK))return!1;var O,Q,M;if((O=_.z(u,_.Y3))==null?0:(Q=O.browseEndpointContextSupportedConfigs)==null?0:(M=Q.browseEndpointContextMainConfig)==null?0:M.skipConfirmation)return!1;var t;return((t=_.z(G.commandMetadata,_.ug))==null?void 0:t.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
uqT.prototype.showConfirmationDialog=function(Y,G){this.navigateParams=G;this.customConfirmationCommand?_.sH().resolve(_.rH).resolveCommand(this.customConfirmationCommand):(G={openPopupAction:{popup:{confirmDialogRenderer:{title:_.i8(_.Q6("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.i8(_.Q6("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.i8(_.Q6("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.i8(_.Q6("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.N6.getInstance().triggerAction("yt-open-popup-action",G,Y))};
uqT.prototype.cancelPendingNavigation=function(){var Y;((Y=this.navigateParams)==null?void 0:Y.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var QF4=function(){},Hh4=function(Y,G,u,O,Q,M,t){u=u===void 0?{}:u;
t=t===void 0?{}:t;var K=_.sH().resolve(_.kM),L,g=(L=_.z(G,_.SK))==null?void 0:L.url;return g?l7A(K,g,u,window.location.href,function(P,I){Ma4(Y,P,I,!1,!0,u,M,O)},function(){return!1}):of(K,G,u,window.location.href,u0(G),function(P,I){Ma4(Y,P,I,!1,!0,u,M,O)},Q,t)},Ma4=function(Y,G,u,O,Q,M,t,K){if(!Y.JSC$14904_chunkHandler)if(u.page==="learning_journey_watch"&&_.F("web_enable_canvas_on_learning_journey")){var L=!_.z(K,_.Y3);
Q=Q||O;if(L)if(Q){if(_.F("kevlar_continue_playback_without_player_response")){var g;var P=(g=_.z(K,_.ic))==null?void 0:g.videoId}O={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:O,previousVideoId:P},tempData:M}}else O={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else O={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};Y.JSC$14904_chunkHandler=new Vi2(_.N5,O,t,L,Q)}else if(u.page==="watch"||u.page==="learning_journey_watch")if(Q||O){if(_.F("kevlar_continue_playback_without_player_response")){var I;
L=(I=_.z(K,_.ic))==null?void 0:I.videoId}Y.JSC$14904_chunkHandler=new $lI(_.N5,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:O,previousVideoId:L},tempData:M},t)}else Y.JSC$14904_chunkHandler=new NmT(_.N5);else u.page==="shorts"&&Q&&!O?Y.JSC$14904_chunkHandler=new BmI(_.N5,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:M},t):Y.JSC$14904_chunkHandler=new jge(t);Y.JSC$14904_chunkHandler.processChunk({endpoint:G,data:u});return Y.JSC$14904_chunkHandler.gI.promise},
EvX=function(Y,G,u,O,Q){(u=_.E$l(u))&&Ma4(Y,G,u,!1,!0,O,void 0,Q)};_.taX=new _.Sb("NAVIGATION_SERVICE_TOKEN");var KWR=function(){this.pendingNavigationPromise=null};
_.H=KWR.prototype;_.H.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.H.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.H.addEventListener=function(){throw Error("zh");};
_.H.dispatchEvent=function(){throw Error("zh");};
_.H.removeEventListener=function(){throw Error("zh");};var aQE=new _.Sb("APP_ROOT");var bCj=null;var ThU=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],Ea=function(){_.C7.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];LWk(this)};
_.m(Ea,_.C7);Ea.prototype.verifyUser=function(){var Y=LWk(this),G=Y.logout;if(!Y.sessionChange)return!0;this.dispatchEvent("ytsessionchange");G&&this.dispatchEvent("ytuserinvalid");return!1};
var LWk=function(Y){var G=ThU.map(function(Q){var M;return(M=_.TR.get(Q))!=null?M:""}),u=G.some(function(Q,M){return Y.sessionCookies&&Y.sessionCookies[M]!==""&&Q===""}),O=G.some(function(Q,M){return Y.sessionCookies&&Y.sessionCookies[M]!==Q});
Y.sessionCookies=G;return{logout:u,sessionChange:O}};
Ea.prototype.clearTimeout=function(){this.scheduledJobId&&(_.AN.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var Brt=new _.Sb("POSTMESSAGE_TUNNEL_TOKEN");var j7j=["/parent_tools","/file_download","/artist_roster"],s7A=[RoE,wIV,ZOV,ho2,DIV,iOV,dI_,bOX];var tl=new _.Sb("NAVIGATION_CONFIRMATION_SERVICE");var gv4="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /recap /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),XVV=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],KR=function(Y,G){this.pendingNavigationPromise=null;this.JSC$14927_clientRoot=Y;this.historyManager=G;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 QF4;this.debugString=Y.is;Y={"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};_.jK(_.N6.getInstance(),Y,this.JSC$14927_clientRoot)},FW1,pVl,zL1,mY4,nvk;
_.m(KR,KWR);KR.prototype.reload=function(){_.Wm(window.location.href)};
var ap_=function(Y){Y.currentEndpoint&&_.z(Y.currentEndpoint,_.Qa)?Y.reload():Y.currentEndpoint&&Y.navigate(Y.currentEndpoint,!0,void 0,{disableCache:!0})};
KR.prototype.navigate=function(Y,G,u,O,Q,M,t,K){G=G===void 0?!1:G;u=u===void 0?{}:u;O=O===void 0?{}:O;var L=_.sH().resolve(tl),g;if(!t&&OhR(L,(g=this.currentEndpoint)!=null?g:void 0,Y))return L.showConfirmationDialog(this.JSC$14927_clientRoot.parentElement,{endpoint:Y,reload:G,params:u,tempData:O,requestType:Q,createScreenConfig:M}),!1;var P=_.AM();_.or(P,"eocs")||P.parkOrScheduleJob(function(){P.processSignal("eocs")},10,"eor");
S$t();t=u0(Y);L=O.autonav==="1";g=_.FA();Ea.instance||(Ea.instance=new Ea);var I=Ea.instance.verifyUser(),k;if(_.F("enable_dark_theme_only_on_shorts")){var n=document.documentElement.hasAttribute("dark"),p=_.x3(!0)==="USER_INTERFACE_THEME_DARK";if(t==="shorts"){if(!n)if(_.F("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var W;_.Wm((W=_.z(Y==null?void 0:Y.commandMetadata,_.ug))==null?void 0:W.url,void 0,void 0,window.top)}}else{var C;_.Wm(_.B4((C=_.z(Y==
null?void 0:Y.commandMetadata,_.ug))==null?void 0:C.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.F("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!n){var e;_.Wm(_.B4((e=_.z(Y==null?void 0:Y.commandMetadata,_.ug))==null?void 0:e.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(p!==n){var w;_.Wm(_.B4((w=_.z(Y==null?void 0:Y.commandMetadata,_.ug))==null?void 0:w.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(t==="watch"){if(Pel(_.sH().resolve(_.yo),
Y)&&(I||_.F("fix_miniplayer_navigation_killswitch")))return!1;_.F("block_all_player_prefetch_requests")||(k=t_e(_.$2(_.JM),Y,L))}else{var B,N=(B=_.z(this.currentEndpoint,_.ic))==null?void 0:B.videoId;N&&_.Xu.getInstance().then(function(iy){iy&&iy.set("yt-miniplayer-shown-video-id",N)})}k&&(u.frags=k.missingFragments_.join(","));
W=null;var h;C=(h=_.z(Y==null?void 0:Y.commandMetadata,_.ug))==null?void 0:h.ignoreNavigation;if(!C)if(_.F("kevlar_command_url")){var q;W=(q=_.z(Y==null?void 0:Y.commandMetadata,_.ug))==null?void 0:q.url}else W=_.iKT(Y,u);if(W&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&W==this.lastNavigationUrl)return _.kN({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Mz(xs(),"CANCELLED")}W&&(this.lastNavigationUrl=W);sNu();_.ZE("IS_HOMEPAGE_COLD",
!1);_.ZE("IS_RESULTS_PAGE_COLD",!1);_.ZE("IS_WATCH_PAGE_COLD",!1);Y.loggingUrls&&Y.loggingUrls.forEach(function(iy){iy.baseUrl&&_.jV(iy.baseUrl)});
_.Juy(Y,M?M.layer:0)&&_.F("kevlar_flush_logs_on_away_navigation")&&_.A1();if(cuy(Y))return!1;jLI(t,Q);if(!W)return C||_.R0(new _.I2("Can't construct url for endpoint",Y)),_.Mz(xs(),"FAILURE"),!1;_.Nrt();h=Y&&_.z(Y,_.Y3)&&_.z(Y,_.Y3).browseId.startsWith("UC");u=(q=_.F("enable_dark_theme_only_on_shorts")&&t==="shorts"?!1:_.fB()&&document.documentElement.hasAttribute("dark")!==_.rG())?{themeRefresh:1}:{};q&&!_.gC()&&_.x3()==="USER_INTERFACE_THEME_DARK"&&(u.theme="dark");h=q||IQV(W)&&!h&&!_.F("kevlar_disable_url_allowlist");
I||(h=!0);if(h||_.DE("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var U;var Mj=(U=window.top)==null?void 0:U.location.href}catch(iy){var Xt;Mj=(Xt=iy)==null?void 0:Xt.message}_.R0(new _.I2("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Mj}))}Y=_.F("kevlar_redirect_on_window_killswitch")?window.top:window;mw(W);_.Wm(_.B4(W,u),void 0,void 0,Y);_.Mz(xs(),"ABORTED");return!1}_.F("kevlar_early_popup_close")&&_.qZ(this.JSC$14927_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14904_chunkHandler=void 0;var ka;Mj=u0((ka=this.currentEndpoint)!=null?ka:void 0);(ka=t==="shorts"&&Mj==="shorts")||_.JMa();_.bi(Npj)("nr",void 0);L&&_.kN({webInfo:{navigationReason:"an"}});Y.clickTrackingParams&&(O.itct=Y.clickTrackingParams,O.csn=g);VPT(O);O.endpoint=JSON.stringify(Y);_.F("enable_unknown_lact_fix_on_html5")&&(_.sH().resolve(_.tf),O.lact=_.Y7());_.gX.isEmpty(O)||_.hv(W,O);!_.F("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(M=Object.assign({},{layer:0},M,{parentLayer:3}));this.pendingNavigationPromise=M=Hh4(this.pageFetcher,Y,O,this.currentEndpoint,this.JSC$14927_isNetworkPromiseStale.bind(this),M,K);M=M.then(this.handleNavigateSuccess.bind(this,M,Y,k,O),this.handleNavigateFail.bind(this,M,Y));_.Qq().navigationFinishPromise=M;G={endpoint:Y,pageType:t,url:q5(W),reload:!!G,noProgressBar:ka};Q&&(G.type=Q);var aU;Q=_.JH((aU=this.currentEndpoint)!=null?aU:null);aU=_.JH(Y!=null?Y:null);this.fireEvent("yt-navigate-start",
G);var Tg;(Tg=_.sH().resolve(_.q3(_.taX)))==null||Tg.publish("navigation-start",{sourcePageSubtype:Q,destinationPageSubtype:aU});k&&EvX(this.pageFetcher,Y,k,O,this.currentEndpoint);return!0};
KR.prototype.JSC$14927_isNetworkPromiseStale=function(Y){return Y!=this.pendingNavigationPromise};
var ktR=function(Y,G,u,O,Q){var M=u0(G);G={endpoint:G,pageType:M};Q&&(G.errorMessage=Q);_.R0(u);G.navigationDoneMs=_.pQ("nd");G.navigationErrorReason=O;Y.fireEvent("yt-navigate-error",G)};
KR.prototype.handleNavigateFail=function(Y,G,u){var O=void 0;u instanceof _.oz&&(O=u,A$j(u));if(this.JSC$14927_isNetworkPromiseStale(Y))return _.Ld(O);_.Mz(xs(),"FAILURE");ktR(this,G,u,"101");return _.Ld(u)};
KR.prototype.handleNavigateSuccess=function(Y,G,u,O,Q){if(this.JSC$14927_isNetworkPromiseStale(Y))return _.v$();this.pendingNavigationPromise=null;if(!Q)return G=new _.I2("Missing data in response for navigation endpoint",G),_.Ld(G);if(Q.reload)return window.location.reload(!0),_.v$();u&&(Y={},_.gX.extend(Y,_.E$l(u),Q),Q=Y);var M,t;u=(M=Q)==null?void 0:(t=M.timing)==null?void 0:t.responseStart;u!=null&&_.pQ("srt",u);_.pQ("pdc");var K,L;M=(K=Q)==null?void 0:(L=K.timing)==null?void 0:L.info;M!=null&&
(K=_.bi(_.l_u)(M),_.kN(K));_.Mz(xs(),"SUCCESS");nvk(this,G,Q,1,O);return _.v$()};
var IQV=function(Y){var G=Y;_.F("kevlar_no_redirect_to_classic_2_ks")||(G=(new _.Rx(Y)).getPath());if(G==="/"||G==="/red")return!1;var u=!0;gv4.forEach(function(O){Y.indexOf(O)===0&&(u=!1)});
XVV.forEach(function(O){var Q=O.url;_.F(O.expFlag)&&Y.indexOf(Q)===0&&(u=!1)});
return u};
KR.prototype.publishPageData=function(Y){this.fireEvent("yt-page-data-fetched",{pageData:Y})};
FW1=function(Y,G,u,O,Q,M){var t=null;G.page!=="watch"&&G.page!=="learning_journey_watch"||O?G.filler||_.qZ(Y.JSC$14927_clientRoot,"yt-stop-old-player",[G]):t=Ma4(Y.pageFetcher,Q,G,u,!1,M,void 0,Y.currentEndpoint);if(t)return t.then(Y.publishPageData.bind(Y,G));Y.publishPageData(G);return _.v$()};
pVl=function(Y,G,u){var O=null;if(!u)return O=new _.I2("Empty data",Y.debugString,G);var Q=u.response;if(!Q)return O;var M={endpointType:u0(G)||"unknown"};Q.responseContext?(Q=Q.responseContext.errors)&&(O=new _.I2("Errors in response context",Y.debugString,G,Q,M)):O=Q.error||Q.errorMetadata?new _.I2("Errors in response",Y.debugString,G,Q.error,Q.errorMetadata,M):new _.I2("responseContext missing",Y.debugString,G,Object.keys(Q).sort().join(","),M);var t,K,L,g;if(Y=u==null?void 0:(t=u.response)==null?
void 0:(K=t.responseContext)==null?void 0:(L=K.webResponseContextExtensionData)==null?void 0:(g=L.webResponseContextDebugData)==null?void 0:g.debugErrorMessages)for(t=0;t<Y.length;t++);return O};
zL1=function(Y){var G,u,O,Q;return Y==null?void 0:(G=Y.response)==null?void 0:(u=G.responseContext)==null?void 0:(O=u.errors)==null?void 0:(Q=O.error)==null?void 0:Q["0"]};
mY4=function(Y,G){var u;if(u=G.url&&!G.url.startsWith("/clip"))u=G.url,u=!_.F("webfe_parse_debug_param_in_resolveurl_service")&&Y.searchDebugUrlMatcher.test(u)||SUU(u)?!0:!1;if(u)SUU(G.url)&&_.li(window.location.href).themeRefresh?(G=_.ud(G.url,"themeRefresh"),_.Oa(Y.historyManager,G)):G.url&&!ZCI(G.url)&&_.Oa(Y.historyManager,G.url);else if(G.endpoint){var O,Q,M;(u=(O=G.endpoint)==null?void 0:(Q=O.commandMetadata)==null?void 0:(M=Q.webCommandMetadata)==null?void 0:M.url)&&!ZCI(u)&&_.Oa(Y.historyManager,
u);u&&G.url&&u!=G.url&&!G.url.match("playnext=1")&&new _.I2("Response url mismatch in response data",Y.debugString,u,G.url)}};
_.WWR=function(Y,G,u,O,Q,M,t,K){M=M===void 0?!1:M;var L=_.sH().resolve(tl),g;if(!K&&OhR(L,(g=Y.currentEndpoint)!=null?g:void 0,G))return L.showConfirmationDialog(Y.JSC$14927_clientRoot.parentElement,{endpoint:G,data:u,navigationType:O,tempData:Q,isMiniplayer:M,isForwardHistoryNavigation:t==null?void 0:t.forward}),_.v$();Y.pageFetcher.JSC$14904_chunkHandler=void 0;return nvk(Y,G,u,O,Q,M)};
nvk=function(Y,G,u,O,Q,M){M=M===void 0?!1:M;Y.isMiniplayerExpansion=M;var t=O===2;Y.currentEndpoint=G;Y.numNavigations++;Y.numNavigations&&(oQa.navigationCount=Y.numNavigations);_.ZE("NUM_NAV",Y.numNavigations);var K=pVl(Y,G,u);if(K)return ktR(Y,G,K,"102",zL1(u)),_.Ld(K);var L,g,P,I;K=u.rootVe||(u==null?void 0:(L=u.response)==null?void 0:(g=L.responseContext)==null?void 0:(P=g.webResponseContextExtensionData)==null?void 0:(I=P.ytConfigData)==null?void 0:I.rootVisualElementType);!t&&u&&mY4(Y,u);var k,
n;L=u==null?void 0:(k=u.response)==null?void 0:(n=k.responseContext)==null?void 0:n.maxAgeSeconds;if(!t&&!isNaN(L)){var p;_.F("kevlar_use_response_ttl_to_invalidate_cache")?p=(0,_.GC)()+1E3*L:_.F("kevlar_always_invalidate_cache")&&(p=0);isNaN(p)||(u.expirationTime=p)}_.$2(_.JM).prefetchCache_.clear();t||u.page!=="watch"||O!==1?O=FW1(Y,u,t,!!M,G,Q):(Y.publishPageData(u),O=_.v$());Q=O.then(function(){var W=u0(G);W={endpoint:G,pageType:W,fromHistory:t,response:u};W.navigationDoneMs=_.pQ("nd");Y.fireEvent("yt-navigate-finish",
W);var C;(C=_.sH().resolve(_.q3(_.taX)))==null||C.publish("navigation-end")});
u.csn&&K&&u.clientSideGrafts&&O.then(Y.attachClientSideGrafts.bind(Y,u,_.nX()));return Q};
_.H=KR.prototype;_.H.attachClientSideGrafts=function(Y,G){Y.clientSideGrafts&&G&&Y.clientSideGrafts.forEach(function(u){if(G&&u){var O=_.Kd(u);_.F("combine_ve_grafts")?_.M4().graftServerVe(u,G):_.y6(Y.csn,G,O)}})};
_.H.handleSignalActionHistoryBack=function(){window.history.back()};
_.H.handleSignalActionCloseWindow=function(){window.close()};
_.H.handleSignalActionReloadPage=function(){this.reload()};
_.H.handleSignalActionSoftReloadPage=function(){ap_(this)};
_.H.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.H.fireEvent=function(Y,G){Y=new CustomEvent(Y,{bubbles:!0,cancelable:!1,composed:!0,detail:G});this.dispatchEvent(Y)};
_.H.addEventListener=function(Y,G){this.JSC$14927_clientRoot.addEventListener(Y,G)};
_.H.dispatchEvent=function(Y){return this.JSC$14927_clientRoot.dispatchEvent(Y)};
_.H.removeEventListener=function(Y,G){this.JSC$14927_clientRoot.removeEventListener(Y,G)};
KR[c4]=[aQE,_.Q7];var rOe;var xY2=function(){return _.Z.apply(this,arguments)||this};
_.m(xY2,_.Z);_.Uk.Object.defineProperties(xY2,{template:{configurable:!0,enumerable:!0,get:function(){if(rOe===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);rOe=Y}Y=rOe;return Y}}});
_.S([_.x(xxI.YtPlayerBehavior),_.V("design:type",Object)],xY2.prototype,"ytPlayerBehavior",void 0);_.S([_.pD({is:"ytd-player"})],xY2);var fQe;var CeR;var yO1;var aH=function(){var Y=_.Z.apply(this,arguments)||this;Y.forceModernIconButton=!1;Y.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return Y};
_.m(aH,_.Z);aH.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]]"}}}}}};
aH.prototype.handleAccountLinkingStateChangedCommand=function(Y){if(Y=_.z(Y,sZ_)){var G,u=(G=this.data)==null?void 0:G.providerKey;G=Y.providerKey;u&&G&&u.id===G.id&&u.subject===G.subject&&(Y=Y.linked,Y!==void 0&&(this.set("data.linked",Y),this.notifyPath("data.linked"),_.F("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(Y)))}};
aH.prototype.setPlayerAccountLinkState=function(Y){var G=new Tp2;LD1(G,KDV(new tCe,Y));var u=_.N5();u&&u.getPlayerPromise().then(function(O){O.setAccountLinkState(_.vu(G.JSC$12651_serializeBinary(),4));O.updateAccountLinkingConfig(Y)})};
aH.prototype.handleShowAccountLinkDialog=function(){var Y=this.get("button.buttonRenderer.command");Y&&_.YN([Y],this.hostElement)};
_.Uk.Object.defineProperties(aH.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}}}});
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);_.S([_.x([_.vZ.YtActionHandlerBehavior]),_.V("design:type",Object)],aH.prototype,"actionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],aH.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],aH.prototype,"overrides",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],aH.prototype,"forceModernIconButton",void 0);_.S([_.R({value:"bottom"}),_.V("design:type",String)],aH.prototype,"buttonTooltipPosition",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],aH.prototype,"forceIconButton",void 0);_.S([_.R(),_.V("design:type",Boolean)],aH.prototype,"disableTextTransform",void 0);
_.S([_.f("data","data.linked","data.isWarning"),_.V("design:type",Object),_.V("design:paramtypes",[])],aH.prototype,"button",null);_.S([_.pD({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],aH);
_.d(aH,"ytd-account-link-button-renderer",function(){if(yO1!==void 0)return yO1;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return yO1=Y},{mode:1});var eLe;var AOl=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Tv=function(){return _.Z.apply(this,arguments)||this};
_.m(Tv,_.Z);Tv.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Tv.prototype.updateButtonActiveState=function(){var Y=this,G=!!AOl.find(function(u){return Y.currentState===u});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.F("enable_web_delhi_icons")&&(G=!1);this.button&&(this.button.isPressed=G)};
_.Uk.Object.defineProperties(Tv.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.playlistLoopStateEntity)==null?void 0:Y.state)||((G=this.data)==null?void 0:G.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var Y=void 0,G;if(this.currentState&&((G=this.data)==null?0:G.states)){G=_.E(this.data.states);for(var u=G.next();!u.done;u=G.next()){u=_.z(u.value,_.TxT);var O=void 0;if(((O=u)==null?void 0:O.state)===this.currentState){Y=u;break}}}return Y}}});
Tv.prototype.updateButtonActiveState=Tv.prototype.updateButtonActiveState;_.S([_.x(_.me),_.V("design:type",Object)],Tv.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.R({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.at.playlistLoopStateEntitySelector}),_.V("design:type",Object)],Tv.prototype,"playlistLoopStateEntity",void 0);_.S([_.R(),_.V("design:type",Object)],Tv.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],Tv.prototype,"forceIconOnly",void 0);_.S([_.Ox("ytd-button-renderer"),_.V("design:type",_.jZ)],Tv.prototype,"button",void 0);
_.S([_.f("data","playlistLoopStateEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tv.prototype,"currentState",null);_.S([_.GO("currentButtonStateRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tv.prototype,"updateButtonActiveState",null);_.S([_.f("currentState"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tv.prototype,"currentButtonStateRenderer",null);
_.S([_.pD({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Tv);
_.d(Tv,"ytd-playlist-loop-button-renderer",function(){if(eLe!==void 0)return eLe;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return eLe=Y},
{mode:1});var ovT;var ihX=_.Q6("DOWNLOAD",{},"Download"),RLT=_.Q6("DOWNLOADING",{},"Downloading"),wV1=_.Q6("DOWNLOADED",{},"Downloaded"),ZhT=_.Q6("RETRY",{},"Retry"),LR=function(){var Y=_.Z.apply(this,arguments)||this;Y.forceIconButton=!1;Y.forceIconOnly=!1;Y.overrides=!1;Y.buttonTooltipPosition=!1;Y.styleActionButton=!1;Y.disableTextTransform=!1;Y.downloadProgress=0;Y.isDownloadComplete=!1;Y.isHidden=!0;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.isVideoDeletedByUser=!1;Y.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return Y};
_.m(LR,_.Z);_.H=LR.prototype;_.H.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.H.dataChanged=function(){var Y;(Y=this.data)!=null&&Y.text||(Y=_.mZ(_.Zs().getState(),this.videoId),this.updateButtonState(Y))};
_.H.computeVideoId=function(Y){return Y};
_.H.computePlayerStateEntityKey=function(Y){return Y};
_.H.showHideButton=function(){this.updateButtonVisibility()};
_.H.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var Y;((Y=this.playerStateEntity)==null?void 0:Y.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0: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(Y){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==RLT||!_.EG(Y))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(Y){case "TRANSFER_STATE_UNKNOWN":Y=ihX;var G="OFFLINE_DOWNLOAD";var u="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":Y=ZhT;G="OFFLINE_DOWNLOAD";u="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":Y=wV1;G="OFFLINE_PIN";u="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Y=
RLT;G="OFFLINE_DOWNLOADING_ZERO";u="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Y=ZhT;G="OFFLINE_DOWNLOAD";u="ACTION_RETRY";break;default:Y=ihX,G="OFFLINE_DOWNLOAD",u="ACTION_ADD"}this.isVideoDeletedByUser&&(Y=ihX,G="OFFLINE_DOWNLOAD",u="ACTION_ADD");var O=Object.assign({},this.data);O.text=_.i8(Y);O.tooltip=Y;O.icon={iconType:G};O.size="SIZE_DEFAULT";O.style="STYLE_DEFAULT";_.z(O.command,_.Gi)&&(_.z(O.command,_.Gi).action=u);this.set("data",O)}};
_.H.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var Y="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?Y="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?Y="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?Y="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?Y="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?Y="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(Y="OFFLINE_PIN",this.isDownloadComplete=!0);var G;Y!==((G=this.data.icon)==null?void 0:G.iconType)&&(G=Object.assign({},this.data),G.text=_.i8(RLT),G.tooltip=RLT,G.icon={iconType:Y},_.z(G.command,_.Gi)&&(_.z(G.command,_.Gi).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",G))}};
LR.prototype.updateProgress=LR.prototype.updateProgress;LR.prototype.onTransferStateChanged=LR.prototype.onTransferStateChanged;LR.prototype.showHideButton=LR.prototype.showHideButton;LR.prototype.dataChanged=LR.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],LR.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],LR.prototype,"forceIconButton",void 0);
_.S([_.R(),_.V("design:type",Object)],LR.prototype,"forceIconOnly",void 0);_.S([_.R(),_.V("design:type",Object)],LR.prototype,"overrides",void 0);_.S([_.R(),_.V("design:type",Object)],LR.prototype,"buttonTooltipPosition",void 0);_.S([_.R(),_.V("design:type",Object)],LR.prototype,"styleActionButton",void 0);_.S([_.R(),_.V("design:type",Object)],LR.prototype,"disableTextTransform",void 0);
_.S([_.R({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.V("design:type",String)],LR.prototype,"videoId",void 0);_.S([_.R({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.V("design:type",String)],LR.prototype,"playerStateEntityKey",void 0);_.S([_.R(),_.V("design:type",Object)],LR.prototype,"data",void 0);_.S([_.R({selector:rK,selectorArgs:["videoId"]}),_.V("design:type",Object)],LR.prototype,"downloadProgress",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],LR.prototype,"isDownloadComplete",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],LR.prototype,"isHidden",void 0);_.S([_.R({selector:_.mZ,selectorArgs:["videoId"]}),_.V("design:type",String)],LR.prototype,"transferState",void 0);_.S([_.R({selector:_.csA,selectorArgs:["videoId"]}),_.V("design:type",Object)],LR.prototype,"isVideoDeletedByUser",void 0);
_.S([_.R({selector:Vxg,selectorArgs:["videoId"]}),_.V("design:type",Object)],LR.prototype,"offlineabilityState",void 0);_.S([_.R({selector:_.c3,selectorArgs:["playerStateEntityKey"]}),_.V("design:type",Object)],LR.prototype,"playerStateEntity",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],LR.prototype,"showTooltips",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],LR.prototype,"sendCommandWhenDisabled",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],LR.prototype,"disabled",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LR.prototype,"dataChanged",null);_.S([_.Ex("offlineabilityState","playerStateEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LR.prototype,"showHideButton",null);
_.S([_.Ex("transferState","isVideoDeletedByUser"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LR.prototype,"onTransferStateChanged",null);_.S([_.Ex("downloadProgress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LR.prototype,"updateProgress",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],LR);
_.d(LR,"ytd-download-button-renderer",function(){if(ovT!==void 0)return ovT;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return ovT=Y},{mode:2});var DYR;var hL1,dYl=function(){if(hL1!==void 0)return hL1;var Y=document.createElement("template");_.r(Y,'\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 hL1=Y};var bhV=_.F("web_button_rework")&&_.hy("BUTTON_REWORK")||_.F("web_button_rework_with_live"),ScT=_.Jy("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,gz=function(){var Y=_.Z.apply(this,arguments)||this;Y.isPressed=!1;Y.forceIconButton=!1;Y.forceIconOnly=!1;Y.forceModernIconButton=!1;Y.alignByText=!1;Y.isShorts=!1;Y.animatedText=!1;Y.shouldAnimate=!1;Y.JSC$14965_browserSupportsAnimation=_.F("web_supports_animations_api");Y.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};Y.onTap=function(){var G;if((G=Y.data)==null||!G.defaultNavigationEndpoint){var u;G=!((u=Y.data)==null?0:u.isToggled);var O;if((O=Y.data)==null||!O.preventAutoToggle){Y.shouldAnimate=!1;Y.disableTextUpdateJobId&&_.AN.cancelJob(Y.disableTextUpdateJobId);Y.disableTextUpdateJobId=_.AN.addLowPriorityJob(function(){Y.disableTextUpdateJobId=void 0},ScT);
var Q;Y.set("data.isToggled",!((Q=Y.data)==null?0:Q.isToggled));u=Y.getInnertubeIcon();O={toggled:G,actions:{}};u&&(O.actions[u.toLowerCase()]=G);_.$s(Y.hostElement,"yt-toggle-button",O)}}};
return Y};
_.m(gz,_.Z);_.H=gz.prototype;_.H.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.AN.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.H.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.H.toggle=function(Y){var G;this.set("data.isToggled",Y!==void 0?Y:!((G=this.data)==null?0:G.isToggled))};
_.H.handleUpdateToggleButtonStateCommand=function(Y){if(this.data){Y=_.z(Y,usE);var G,u,O,Q=(G=this.data)==null?void 0:(u=G.toggleButtonSupportedData)==null?void 0:(O=u.toggleButtonIdData)==null?void 0:O.id;Q&&Y&&Q===(Y==null?void 0:Y.buttonId)&&this.set("data.isToggled",Y.toggled)}};
_.H.handleUpdateToggleButtonTextAction=function(Y){if(this.data){Y=_.z(Y,rlk);var G,u,O,Q=(G=this.data)==null?void 0:(u=G.toggleButtonSupportedData)==null?void 0:(O=u.toggleButtonIdData)==null?void 0:O.id;Q&&Y&&Q===(Y==null?void 0:Y.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=Y.defaultNumericalValue,this.set("data.defaultText",Y.defaultText),this.set("data.toggledText",Y.toggledText),this.shouldAnimate=!1)}};
_.H.getInnertubeIcon=function(){var Y=this.data;if(Y){var G,u,O=((G=Y.defaultIcon)==null?0:G.iconType)?(u=Y.defaultIcon)==null?void 0:u.iconType:null,Q,M;G=((Q=Y.toggledIcon)==null?0:Q.iconType)?(M=Y.toggledIcon)==null?void 0:M.iconType:O;return Y.isToggled?G:O}};
_.H.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Uk.Object.defineProperties(gz.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y={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$14965_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var G=Y.renderer;var u=Y.element;var O=Y.toggled;var Q=Y.onTapCallback;var M=Y.commandClientArgs;var t=Y.overrides;var K=Y.forceIcon;var L=Y.forceModernIconButton;var g=Y.forceDisabled;var P=Y.useAnimatedText;var I=Y.animatedTextProps;Y=uNg(G,O);K=!G.defaultIcon||!K&&G.defaultText?G.defaultIcon?"leading":void 0:L?"icon-only":"icon-only-40";K==="icon-only-40"&&(Y.type="text");var k;L=Object;var n=L.assign,p;a:switch((p=
G.style)==null?void 0:p.styleType){case "STYLE_COMPACT_GRAY":p={size:"S"};break a;default:p={size:"M"}}var W=!!O;var C=(C=O&&G.toggledText||G.defaultText)?_.P3(C):void 0;P?(P=_.Ri(O&&G.toggledText||G.defaultText))&&I&&!isNaN(Number(I.numberValue))?(I.numberText=P,O&&(I.numberValue+=1),P=I):P=void 0:P=void 0;var e,w,B,N;var h=(I=((w=O?G.toggledAccessibilityData||((h=G.toggledText)==null?void 0:h.accessibility):G.accessibilityData||((e=G.defaultText)==null?void 0:e.accessibility))==null?void 0:(B=w.accessibilityData)==
null?void 0:B.label)||((N=G.accessibility)==null?void 0:N.label))?I:_.Ri(O&&G.toggledText||G.defaultText);g=g===void 0?G.isDisabled:g;u=GH1(G,O,Q,u,M);O=YQj(G,O);O!=null&&O.length?(O=_.zU({innertubeCommand:O_A(O),forceNewState:!0}),O=ma(O)?O:void 0):O=void 0;G=n.call(L,{},Y,p,{iconPosition:K},t,{focused:!1,toggled:W,toggleable:!0,formattedButtonText:C,animatedTextProps:P,accessibilityLabel:h,disabled:g,onTap:u,aTagConfig:O},guU((k=G.colorData)==null?void 0:k.basicColorPaletteData));G.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(G.type="filled");return G}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var Y=this.getInnertubeIcon();if(Y)return _.Ux(Y)}}});
gz.prototype.resetAnimation=gz.prototype.resetAnimation;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],gz.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],gz.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],gz.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],gz.prototype,"isPressed",void 0);_.S([_.R(),_.V("design:type",Object)],gz.prototype,"forceIconButton",void 0);_.S([_.R(),_.V("design:type",Object)],gz.prototype,"forceIconOnly",void 0);_.S([_.R(),_.V("design:type",Object)],gz.prototype,"forceModernIconButton",void 0);_.S([_.R(),_.V("design:type",Object)],gz.prototype,"alignByText",void 0);_.S([_.R(),_.V("design:type",Object)],gz.prototype,"overrides",void 0);
_.S([_.R(),_.V("design:type",Boolean)],gz.prototype,"disabled",void 0);_.S([_.R(),_.V("design:type",Object)],gz.prototype,"isShorts",void 0);_.S([_.R(),_.V("design:type",Object)],gz.prototype,"buttonTooltipPosition",void 0);_.S([_.R(),_.V("design:type",Object)],gz.prototype,"animatedText",void 0);_.S([_.R(),_.V("design:type",String)],gz.prototype,"textNumberValue",void 0);_.S([_.R({computed:"computeTooltip(data, data.isToggled)"}),_.V("design:type",Object)],gz.prototype,"tooltip",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gz.prototype,"resetAnimation",null);_.S([_.f("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.V("design:type",Object),_.V("design:paramtypes",[])],gz.prototype,"computedButtonShape",null);_.S([_.f("data.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],gz.prototype,"computedIcon",null);
_.S([_.pD({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],gz);bhV&&_.d(gz,"ytd-toggle-button-renderer",dYl,{mode:2});var NhV=_.D(function(Y){function G(g){var P;return _.a(function(I){if(I.nextAddress==1)return(P=!QqA(g,K())||!K().enabled)?I.jumpTo(2):I.yield(K$j(),3);I.nextAddress!=2&&(P=I.yieldResult);if(P)return I.return();u();setTimeout(function(){t(!1)},1500);
_.Sd(I)})}
function u(){setTimeout(function(){t(!0);var g;(g=O.lottieEl)==null||g.goToAndPlay(0)},150)}
var O=_.Jf(),Q=_.E(_.IE(!1,void 0,"UfUosc")),M=Q.next().value,t=Q.next().value,K=_.dB(Y.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.ii(function(){var g,P;((g=Y.settings)==null?void 0:(P=g.call(Y))==null?void 0:P.uniqueId)==="this is not intended behavior"&&_.R0(new _.I2("Smartimation Settings is undefined"))});
_.RE(function(){K().experimentEnabled&&(K().enabled?M3y(G):(t(!1),HiI(G)),_.w_(function(){HiI(G)}))},"IHhVmc");
_.RE(function(){K().timings.join("");K().experimentEnabled&&(EAU(K()),_.w_(function(){t3U(K())}))},"fsfhOe");
var L=_.p2(function(){var g=O,P=K().uniqueId+"-border",I,k;var n="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((k=(I=_.sH().resolve(_.q3(_.Ee)))==null?void 0:I())!=null&&k?"dark":"light")+"_v2.json";return{animationRef:g,animationConfig:{name:P,autoplay:!1,loop:!1,path:n}}},void 0,"UWvUGe");
Q={};return _.T("yt-smartimation",{class:_.s3(Y.className,"smartimation",(Q["smartimation--experiment-enabled"]=function(){return K().experimentEnabled},Q["smartimation--active-border"]=M,Q["smartimation--enable-masking"]=aiA(),Q))},_.T(_.X,{cond:function(){return K().experimentEnabled},
then:function(){return _.T("div",{class:"smartimation__border"},_.T(_.JC,{className:"smartimation__border-gradient",data:L,animationName:function(){return L().animationConfig.name}}))}}),_.T("div",{class:"smartimation__content"},Y.children))},"la");
NhV.idomCompat=!0;_.hR(NhV,"yt-smartimation",{props:{className:_.AC,settings:_.AC}});var Xv=function(){var Y=_.Z.apply(this,arguments)||this;Y.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};Y.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};Y.shouldEnableSmartimation=!1;return Y};
_.m(Xv,_.Z);Xv.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Xv.prototype.onDataChanged=function(){var Y,G;this.shouldEnableSmartimation=(((Y=this.data)==null?void 0:(G=Y.timedAnimationData)==null?void 0:G.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
Xv.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var Y=_.z(this.data.likeButton,_.xw),G=_.z(this.data.dislikeButton,_.xw);return!!((Y==null?0:Y.isToggled)||(G==null?0:G.isToggled))};
Xv.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]]"}}}}}};
_.Uk.Object.defineProperties(Xv.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=((Y=this.data)==null?void 0:(G=Y.timedAnimationData)==null?void 0:G.animationTiming)||[];return{uniqueId:"like-dislike",timings:u,enabled:this.shouldEnableSmartimation,experimentEnabled:u.length>0}}}});
Xv.prototype.onDataChanged=Xv.prototype.onDataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Xv.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Xv.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Xv.prototype,"likeButtonOverride",void 0);_.S([_.R(),_.V("design:type",Object)],Xv.prototype,"dislikeButtonOverride",void 0);
_.S([_.f("shouldEnableSmartimation"),_.V("design:type",Object),_.V("design:paramtypes",[])],Xv.prototype,"smartimationSettings",null);_.S([_.GO("data"),_.Yo("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xv.prototype,"onDataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Xv);
_.d(Xv,"ytd-segmented-like-dislike-button-renderer",function(){if(DYR!==void 0)return DYR;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return DYR=Y},{mode:1});var jFl;var Va_;(Va_=document.body)==null||Va_.setAttribute("rounded-container","");var lQe={};lQe.YtToggleButtonBehavior=[_.vZ.YtActionHandlerBehavior,MH.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 Y=this.data.isToggled;if(!this.isModal_(Y)){if(!this.data.preventAutoToggle){this.toggle();var G={toggled:this.data.isToggled,actions:{}};G.actions[this.buttonIcon]=this.data.isToggled;_.$s(this.hostElement,"yt-toggle-button",G)}G=this.data.defaultServiceEndpoint||null;var u=this.data.toggledServiceEndpoint||null;if(G&&u||G&&this.data.preventAutoToggle)Y=Y?u:G,G=this.disableCommandHandlerOverride,_.F("killswitch_toggle_button_behavior_resolve_command")||G?_.c$(this.hostElement,
[Y]):_.Yy(Y,this.hostElement),_.$s(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:Y})}},
stateChanged_:function(){var Y=this.data;if(Y){var G=Y.isToggled;this._setEndpoint(this.computeEndpoint_(Y));this._setServiceEndpoint(this.computeServiceEndpoint_(Y));this._setButtonIcon(this.computeButtonIcon_(Y,G));this._setButtonText(this.computeButtonText_(Y,G));this._setButtonAccessibility(this.computeAccessibility_(Y,G));this._setButtonTooltip(this.computeTooltip_(Y,G));this._setButtonClass(this.computeButtonClass_(Y,G));this._setIconPositionType(this.computeIconPositionType_(Y));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=G):this.elements_.button.setAttribute("aria-pressed",G));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=G)}},
shouldSetIconActiveState_:function(){return _.F("kevlar_system_icons")},
toggle:function(Y){this.set("data.isToggled",Y!==void 0?Y:!this.data.isToggled);_.F("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(Y){if(Y){var G,u;return!!((G=this.data)==null?0:(u=G.toggledServiceEndpoint)==null?0:u.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(Y){return Y&&Y.defaultNavigationEndpoint||null},
computeButtonIcon_:function(Y,G){var u=Y&&Y.defaultIcon?_.Ux(Y.defaultIcon.iconType):null;Y=Y&&Y.toggledIcon?_.Ux(Y.toggledIcon.iconType):u;return G?Y:u},
handleUpdateToggleButtonStateCommand_:function(Y){Y=Y.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==Y.buttonId&&this.toggle(Y.toggled)},
computeButtonText_:function(Y,G){return Y?G&&Y.toggledText||Y.defaultText||null:null},
computeAccessibility_:function(Y,G){return Y?(G?this.get("toggledAccessibilityData.accessibilityData",Y):this.get("accessibilityData.accessibilityData",Y))||Y.accessibility||null:null},
computeTooltip_:function(Y,G){return Y?G&&Y.toggledTooltip||Y.defaultTooltip||null:null},
computeButtonClass_:function(Y,G){if(!Y)return"";var u="",O=Y.toggledStyle||Y.style;if(G=G?O:Y.style){G.styleType&&(G=G.styleType);try{u+=G.toLowerCase().replace(/_/g,"-")+" "}catch(Q){_.wN(Q,G,typeof G),_.R0(Q)}}if(Y=Y.size){Y.sizeType&&(Y=Y.sizeType);try{u+=Y.toLowerCase().replace(/_/g,"-")+" "}catch(Q){_.wN(Q,Y,typeof Y),_.R0(Q)}}return u.trim()},
computeIconPositionType_:function(Y){return Y&&Y.iconPosition||null},
computeServiceEndpoint_:function(Y){var G=Y&&Y.serviceEndpoint,u=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return G?G:u&&Y.command?Y.command:null},
handleUpdateToggleButtonTextAction_:function(Y){Y=Y.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==Y.buttonId&&(this.set("data.defaultText",Y.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",Y.toggledText),this.notifyPath("data.toggledText"))}}];_.Px("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var Bhe=_.F("web_button_rework")&&_.hy("BUTTON_REWORK")||_.F("web_button_rework_with_live"),P7=function(){var Y=_.Z.apply(this,arguments)||this;Y.systemIcons=_.F("kevlar_system_icons");Y.roundedContainer=!0;return Y};
_.m(P7,_.Z);P7.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
P7.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var Y=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var G={toggled:!!this.data.isToggled,actions:{}};G.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var u,O;G.actions.playlistId=(u=this.data.defaultServiceEndpoint)==null?void 0:(O=u.playlistEditEndpoint)==null?void 0:O.playlistId;_.$s(this.hostElement,"yt-toggle-button",G)}(Y=Y?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(Y)}};
P7.prototype.onYtNavigate=function(Y){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(Y.detail.endpoint);G&&(Y.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(G))};
_.Uk.Object.defineProperties(P7,{template:{configurable:!0,enumerable:!0,get:function(){if(jFl===void 0){var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);jFl=Y}Y=jFl;return Y}}});
P7.prototype.onYtNavigate=P7.prototype.onYtNavigate;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],P7.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.SZ),_.V("design:type",Object)],P7.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.x(lQe.YtToggleButtonBehavior),_.V("design:type",Object)],P7.prototype,"ytToggleButtonBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],P7.prototype,"data",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],P7.prototype,"showTooltips",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],P7.prototype,"systemIcons",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],P7.prototype,"roundedContainer",void 0);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],P7.prototype,"onYtNavigate",null);
_.S([_.pD({is:"ytd-toggle-button-renderer",disableElementRegistration:Bhe})],P7);var $YI,qcR;_.IH=new _.Sb("PANEL_CONTROLLER_TOKEN");_.kb=new _.Sb("SHEET_CONTROLLER_TOKEN");_.nR=new _.Sb("DIALOG_CONTROLLER_TOKEN");$YI=new _.Sb("DIALOG_CONTAINER_TOKEN");qcR=new _.Sb("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.Fv=new _.Sb("PERSISTENT_PANEL_CONTROLLER_TOKEN");var F$y=_.Q6("DOWNLOAD",{},"Download"),prT=_.Q6("DOWNLOADING",{},"Downloading"),zVj=_.Q6("DOWNLOADED",{},"Downloaded"),mxj=_.Q6("RETRY",{},"Retry");var sFl=_.D(function(Y){var G=CCA,u=function(){return""},O=W$j(Y.data),Q=rnI(Y.data),M=xxj(Y.data),t=fiy(Y.data);
G=function(){var K=Y.data(),L=kHA(K,O(),Q(),M(),t()),g=!!K.videoId,P=L.text;return{title:g?P:void 0,tooltip:g?void 0:P,accessibilityText:P,onTap:L.onTap,iconName:L.iconType,style:K.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:L.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:K.buttonSize}};
u={};u=_.s3("ytDownloadButtonViewModelHost",(u.ytDownloadButtonViewModelIsHidden=function(){var K=Y.data(),L=t();return K.playlistId||L()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||L()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},u));
return _.T("download-button-view-model",{class:u},_.T(_.$Y,{data:G}))},"ma");
sFl.idomCompat=!0;var Dx4=new _.Sb("SUBMIT_API_SERVICE_TOKEN");var RV4,wr4,hVU={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var QFI=new _.Sb("RENDERER_LOGGER_TOKEN");var Yct=new _.Sb("RENDERER_STAMPER_OPTIONS_TOKEN");var biT;_.Mv=new IuU;biT=new Map;var Gtj="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),OhA=["notificationTextRenderer","notificationMultiActionRenderer"],
uq1="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),Jn4=SQA(function(Y){return _.hT(Y==null?void 0:Y.targetId)}).useUpdatableData;var liu=null;var vAj=0,cna=new Set;_.HE.debugName="EjJbCe";var cO4=_.D(function(Y){var G=Y.data;Y=Y.className;_.o1(function(){G().formId||_.o0(Error("Dh"))});
var u=_.iiy(function(){return G().formId},function(){return G().beforeSubmitCommand},function(){return G().afterSubmitCommand}),O=u.submitForm,Q=u.isValid,M=u.isSubmitting,t=function(){return{state:G().isDisabled||!Q()||M()?"disabled":"active"}};
return _.T("yt-submit-button-view-model",{class:_.s3("ytSubmitButtonViewModelHost",Y)},_.T(_.HE,{data:function(){return G().button}},{buttonViewModel:function(K){return _.T(_.$Y,{data:K.data,
buttonOverrides:t,onClick:O})}}))},"pa");var vvU=_.D(function(Y){var G=Y.backgroundLottieRef;var u=Y.foregroundLottieRef;var O=Y.children;var Q=Y.wrapperClass;var M=Y.disableAnimation;Y=function(){return(_.F("web_animated_actions")||_.F("web_animated_actions_v2"))&&!(M==null?0:M())};
return _.T("yt-animated-action",{class:_.s3("ytAnimatedActionHost",Q)},_.T("div",{class:"ytAnimatedActionContentWithBackground"},_.T(_.X,{cond:Y,then:function(){return _.T(UYe,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:G==null?void 0:G(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(MaI()?"dark":"light")+"_v5.json"}}}})}}),O),_.T(_.X,{cond:Y,
then:function(){return _.T(UYe,{lottiePlayerProps:function(){return{animationRef:u==null?void 0:u(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(MaI()?"dark":"light")+"_v4.json"}}}})}}))},"qa");
vvU.idomCompat=!0;var UYe=_.D(function(Y){var G=Y.wrapperClass;var u=Y.lottieClass;var O=Y.lottiePlayerProps;return _.T("div",{class:_.s3("ytAnimatedActionLottie",G),"aria-hidden":"true"},_.T(_.JC,{className:u,data:O,animationName:function(){return O().animationConfig.name}}))},"ra");var HhI={isOpen:!1};var taU={isAllowed:!1};var aQ4={errorMessage:"",title:"",privacy:"",isDisabled:!0};var LWa={isOpen:!1};var XVt={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var JO4={response:void 0};var IQt=function(Y,G){Y=Y===void 0?JO4:Y;switch(G.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},Y,{response:G.payload});default:return Y}};var YmX={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var ktT=function(Y,G){Y=Y===void 0?YmX:Y;switch(G.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},Y,{nextDisabled:G.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},Y,{nextCommand:G.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},Y,{footerSubmissionData:G.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},Y,{isImpersonationValid:G.payload});default:return Y}};var GEk={reportFormData:void 0,reportDetailsFormData:void 0};var nva=function(Y,G){Y=Y===void 0?GEk:Y;switch(G.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},Y,{reportFormData:G.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},Y,{reportDetailsFormData:G.payload});default:return Y}};var u5T=void 0;_.F("mweb_enable_redux_store_on_demand")||(u5T=new wK(FWu()));var pR=_.F("enable_web_delhi_icons");var OfT=_.D(function(Y){Y=_.bM(Y,{themeOverride:void 0,animationRef:{}});var G=Y.animatedIconType,u=Y.active,O=Y.themeOverride,Q=Y.animationRef;Y=Y.staticIconFn;var M=_.E(_.IE(void 0,void 0,"l48agc")),t=M.next().value,K=M.next().value,L=function(){a:{var C=G();var e=O==null?void 0:O();var w;e=(e==null?void 0:e.useDarkTheme)||((w=_.sH().resolve(_.q3(_.Ee)))==null?void 0:w());switch(C){case "LIKE":u5T||(u5T=new wK(FWu()));C=(C=l$T(u5T.getState()))&&C.animationLightUrl&&C.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:e?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:e?C.animationDarkUrl:C.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(C){e=C;break a}e="animated_like_icon_"+(e?"dark":"light")+"_"+(pR?"v5":"v4");e={lottiePlayerProps:{animationConfig:{name:e,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+e+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(pR?" animated-like-icon-delhi":"")}}},totalFrames:pR?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":e={lottiePlayerProps:{animationConfig:{name:e?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(e?"dark":"light")+(pR?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(pR?" animated-subscribe-icon-delhi":"")}}},totalFrames:pR?120:79,lazyLoad:!1};break a}e=
void 0}return e},g=function(){var C,e;
return(e=(C=L())==null?void 0:C.lottiePlayerProps.animationConfig.name)!=null?e:""},P=function(){if(L()){var C=L().lottiePlayerProps.animationConfig.path;
return TS.get(C)||t()}};
M=_.E(_.IE(!1,void 0,"sDrGId"));var I=M.next().value;M=M.next().value;var k=zLu(M),n=function(){var C=L(),e,w,B;return(B=C==null?void 0:(e=C.lottiePlayerProps.animationConfig)==null?void 0:(w=e.rendererSettings)==null?void 0:w.className)!=null?B:""},p=void 0,W=void 0;
_.RE(function(){var C=L(),e=g(),w=P(),B=I(),N=u();if(C&&(W!==e&&(W=e,p=N,e=Q(),k.animationConfig=C.lottiePlayerProps.animationConfig,k.animationRef=e,w&&(k.animationConfig.animationData=w,k.animationConfig.path=void 0),e=C.lottiePlayerProps.animationConfig.path,!TS.get(e)&&C.lazyLoad&&e&&pVA(e,K)),!(B||C.lazyLoad&&!w))){if(w=!Q().lottieEl)N?(B=C.totalFrames,k.animationConfig.initialSegment=[B-1,B]):k.animationConfig.initialSegment=void 0;if(p!==N&&!w)if(w=Q(),N){var h;(h=w.lottieEl)==null||h.playSegments([0,
C.totalFrames],!0)}else{var q;(q=w.lottieEl)==null||q.playSegments([0,1],!0)}p=N}},"RQVZ1d");
return _.T("animated-icon",{class:"ytAnimatedIconHost"},_.T(_.X,{cond:function(){var C,e;return!((C=L())==null||!C.lottiePlayerProps.animationConfig.path||((e=L())==null?0:e.lazyLoad)&&!P()||I())},
then:function(){return _.T(_.JC,{data:k,animationName:g,className:n,animationRef:Q})},
else:Y}))},"ta");_.zv=_.D(function(Y){var G=_.CH("yt-subscribe-button-view-model"),u=_.CH("div"),O=_.CH("div"),Q=_.Jf(),M=_.Jf(),t=_.Jf(),K=_.Oe(xYg,function(){return Y.data().stateEntityStoreKey}),L=_.Oe(fQt,function(){var jT,P1;
return(P1=(jT=Y.data().notificationStateEntityStoreKeys)==null?void 0:jT.subsNotificationStateKey)!=null?P1:""}),g=function(){return!Y.data().enableSubscribeButtonPostClickAnimation},P=_.E(_.IE(0,void 0,"YtsSKb")),I=P.next().value,k=P.next().value;
P=_.E(_.IE(0,void 0,"V6JxRe"));var n=P.next().value,p=P.next().value;P=_.E(_.IE(!1,void 0,"JUCSZ"));var W=P.next().value,C=P.next().value;P=_.E(_.IE(!1,void 0,"oV6jwf"));var e=P.next().value,w=P.next().value;P=_.E(_.IE(!1,void 0,"hK1Whe"));var B=P.next().value,N=P.next().value,h;P=_.E(_.IE(!1,void 0,"Asaolf"));var q=P.next().value,U=P.next().value,Mj=function(){w(!0);_.Ti(_.AN,function(){w(!1)},1500)};
_.RE(function(){var jT=e();_.Pw(function(){jT&&!g()&&K()&&bht(Q,M,t)})},"Qq6Hsf");
_.RE(function(){var jT=K();_.Pw(function(){if(!g()&&jT){var P1;((P1=Y.animateWidth)==null?0:P1.call(Y))&&dYA(G.value,!!jT.subscribed,I(),n());var kk,Fe;((kk=h)==null?0:kk.subscribed)||!jT.subscribed||jT.key!==((Fe=h)==null?void 0:Fe.key)||Mj();h=jT}})},"hog8te");
P=_.p2(function(){var jT,P1,kk,Fe=Y.data(),Xg=!((jT=K())==null||!jT.subscribed);jT=!((P1=Y.isOverlay)==null||!P1.call(Y));P1=W()?G:void 0;var Hb=(kk=L())==null?void 0:kk.state;kk=q();hLu(Fe,Hb);return rOt({model:Fe,subscribed:Xg,isOverlay:jT,element:P1,notificationState:Hb,disableTextEllipsis:!0,focused:kk})},void 0,"hc1PRd");
var Xt=function(){var jT;if(!g()&&((jT=Y.animateWidth)==null?0:jT.call(Y))&&(u==null?0:u.value)&&(O==null?0:O.value)&&!B()){jT=K();var P1=_.E((jT==null?0:jT.subscribed)?[u,O]:[O,u]),kk=P1.next().value;P1=P1.next().value;kk=Math.ceil(kk.value.getBoundingClientRect().width);P1=Math.ceil(P1.value.getBoundingClientRect().width);k(kk);p(P1);dYA(G.value,!(jT==null||!jT.subscribed),kk,P1);N(!0)}},ka=_.U3(function(jT){Xt();
var P1=K();P1&&(jT.detail.endpoint.subscribeEndpoint||jT.detail.endpoint.unsubscribeEndpoint)&&wVu(G.value,!P1.subscribed,P1)}),aU=function(){var jT=_.sH().resolve(_.q3(_.SO));
jT&&U(jT.isKeyBoardInUse())},Tg=function(){U(!1)};
_.lj("yt-player-subscribe",function(jT){var P1=K();P1&&jT===Y.data().channelId&&wVu(G.value,!0,P1)});
_.lj("yt-player-unsubscribe",function(jT){var P1=K();P1&&jT===Y.data().channelId&&wVu(G.value,!1,P1)});
_.lj("yt-update-subscribe-button-action",function(jT){jT=_.z(jT,do2);var P1=K();P1&&jT&&jT.channelId===Y.data().channelId&&wVu(G.value,!!jT.subscribed,P1)});
_.ii(function(){G.value&&(G.value.addEventListener("focusin",aU),G.value.addEventListener("focusout",Tg));var jT=_.WY(_.AN,function(){Xt()});
C(!0);_.w_(function(){_.AN.cancelJob(jT);G.value&&(G.value.removeEventListener("focusin",aU),G.value.removeEventListener("focusout",Tg))})});
var iy=function(){var jT,P1,kk;if(kk=!((jT=K())==null||!jT.subscribed))jT=!!Y.data().disableNotificationBell,kk=(P1=L())==null?void 0:P1.state,kk=!jT&&!!kk;return kk},hY=function(){var jT;
return!((jT=K())==null?0:jT.subscribed)},dA=function(){var jT,P1;
if(P1=hY()){P1=!!Y.data().disableNotificationBell;var kk=(jT=L())==null?void 0:jT.state;P1=!P1&&!!kk}return P1},nT={},u_={};
return _.T("yt-subscribe-button-view-model",{class:_.s3(Y.className,"ytSubscribeButtonViewModelHost",(nT.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var jT,P1;return!((jT=K())==null||!jT.subscribed)&&((P1=Y.animateWidth)==null?void 0:P1.call(Y))&&e()},nT.ytSubscribeButtonViewModelHostHidden=function(){var jT;
return!((jT=K())==null?0:jT.subscribed)&&Y.data().hideWhenUnsubscribed},nT)),
el:G,"on:yt-service-request-sent":ka},_.T(vvU,{backgroundLottieRef:Q,foregroundLottieRef:M,wrapperClass:_.s3("ytSubscribeButtonViewModelAnimatedActionWrapper",(u_.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var jT;return((jT=Y.animateWidth)==null?void 0:jT.call(Y))&&e()},u_.ytSubscribeButtonViewModelStaticWidth=function(){var jT;
return!((jT=Y.animateWidth)==null?0:jT.call(Y))},u_)),
disableAnimation:g},_.T("div",{el:u,class:"ytSubscribeButtonViewModelContainer"},_.T(_.BZ,{data:P,icon:function(){return _.T(_.X,{cond:iy,then:function(){var jT=function(){var P1;return RL1((P1=L())==null?void 0:P1.state)};
return _.T(_.X,{cond:function(){return g()||jT()!=="NOTIFICATIONS_NONE"},
then:function(){return _.T(_.GS,{icon:jT})},
else:function(){return _.T(OfT,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:t})}})}})},
secondaryIconName:function(){return iy()?"EXPAND":void 0}}))),_.T("div",{el:O,
class:"ytSubscribeButtonViewModelInvisible"},_.T(_.X,{cond:function(){var jT;return((jT=Y.animateWidth)==null?void 0:jT.call(Y))&&!g()&&!B()},
then:function(){return _.T(_.BZ,{data:_.p2(function(){var jT;return rOt({model:Y.data(),subscribed:hY(),isOverlay:!((jT=Y.isOverlay)==null||!jT.call(Y)),element:G,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var jT;return dA()?RL1((jT=L())==null?void 0:jT.state):void 0},
secondaryIconName:function(){return dA()?"EXPAND":void 0}})}})))},"wa");
_.zv.idomCompat=!0;var QTe=_.D(function(Y){var G=Y.data;var u=_.Oe(xYg,function(){return G().subscriptionStateEntityKey});
return _.T(_.X,{cond:function(){var O=G(),Q=u();return!O.hideWhenUnsubscribed||(Q==null?0:Q.subscribed)?_.z(G().button,_.Ck):void 0},
then:function(O){return _.T("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.T(_.$Y,{data:O,buttonOverrides:function(){return{toggled:!0}}}))}})},"xa");
QTe.idomCompat=!0;var MuX,mu;MuX=_.D(function(Y){return _.T(_.HE,{data:function(){return Y.actionRow().actions}},{buttonViewModel:function(G){var u=G.data;
return _.T(mu,{isRow:Y.isRow,isIconOnlyButton:function(){return Sc1(u())},
useIntrinsicWidth:Y.useIntrinsicWidth},_.T(_.$Y,{data:u}))},
subscribeButtonViewModel:function(G){return _.T(mu,{isRow:Y.isRow},_.T(_.zv,{data:G.data,isOverlay:!1,animateWidth:function(){return!Y.isRow()}}))},
downloadButtonViewModel:function(G){var u=G.data;return _.T(mu,{isRow:Y.isRow,isIconOnlyButton:function(){return!!u().playlistId}},_.T(sFl,{data:u}))},
submitButtonViewModel:function(G){var u=G.data;return _.T(mu,{isRow:Y.isRow,isIconOnlyButton:function(){var O=u();return Sc1(_.z(O==null?void 0:O.button,_.Ck))}},_.T(cO4,{data:u}))},
toggleButtonViewModel:function(G){var u=G.data;return _.T(mu,{isRow:Y.isRow,isIconOnlyButton:function(){var O=u();return Sc1(_.z(O.isToggled?O.toggledButtonViewModel:O.defaultButtonViewModel,_.Ck))}},_.T(_.Tr,{data:u}))},
subscribePlusButtonViewModel:function(G){return _.T(mu,{isRow:Y.isRow},_.T(QTe,{data:G.data}))}})},"ya");
mu=_.D(function(Y){var G={};return _.T("div",{class:_.s3("ytFlexibleActionsViewModelAction",(G.ytFlexibleActionsViewModelActionRowAction=Y.isRow,G.ytFlexibleActionsViewModelActionIntrinsicWidth=Y.useIntrinsicWidth,G.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,G.ytFlexibleActionsViewModelActionIconOnlyButton=Y.isIconOnlyButton,G))},Y.children)},"za");
_.W7=_.D(function(Y){var G=function(){var O;return((O=Y.layout)==null?void 0:O.call(Y))===1},u={};
return _.T("yt-flexible-actions-view-model",{class:_.s3("ytFlexibleActionsViewModelHost",Y.className,(u.ytFlexibleActionsViewModelInline=function(){return!G()},u.ytFlexibleActionsViewModelScrollable=function(){return Y.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},u))},_.T(_.rc,{each:function(){return Y.data().actionsRows||[]}},function(O){return _.T(_.X,{cond:G,
then:function(){return _.T("div",{class:"ytFlexibleActionsViewModelActionRow"},_.T(MuX,{actionRow:O,isRow:G,useIntrinsicWidth:function(){return!!Y.data().respectActionIntrinsicWidth}}))},
else:function(){return _.T(MuX,{actionRow:O,isRow:G})}})}))},"Aa");_.hR(_.W7,"yt-flexible-actions-view-model",{props:{data:_.AC,layout:_.AC,justifyContentOverride:_.AC,className:_.AC}});_.rz=_.D(function(Y){var G=_.Oe(_.Wx,function(){var Q;return(Q=Y.data().dislikeEntityKey)!=null?Q:""}),u=_.p2(function(){var Q=G();
return Q?Q.likeStatus==="DISLIKE":_.z(Y.data().toggleButtonViewModel,_.eD).isToggled},void 0,"fNr9he"),O=_.p2(function(){return Object.assign({},_.z(Y.data().toggleButtonViewModel,_.eD),{isToggled:u()})},void 0,"AezoCc");
return _.T("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.T(_.Tr,{data:O,buttonShapeOverrides:Y.buttonShapeOverrideables,onToggle:function(Q){var M=G();M&&Q!==(M.likeStatus==="DISLIKE")&&M.key&&_.hj(_.zP("likeStatusEntity",M.key,{likeStatus:Q?"DISLIKE":"INDIFFERENT",hadUserInteraction:Q}))}}))},"Ba");
_.rz.idomCompat=!0;_.xb=_.D(function(Y){var G=_.F("web_supports_animations_api"),u=vej(function(k){var n=g();if(!k){var p,W;return{numberText:(W=n==null?void 0:(p=n.likeCountIfIndifferent)==null?void 0:p.content)!=null?W:"",numberValue:Number(n==null?void 0:n.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var C;p=(n==null?void 0:(C=n.likeCountIfIndifferent)==null?void 0:C.content)!==k.numberText;if(K()||!p)return k;var e;return{numberText:(n==null?void 0:(e=n.likeCountIfIndifferent)==null?void 0:e.content)||
"",numberValue:Number(n==null?void 0:n.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!n}}),O=vej(function(k){var n=g();
if(!k){var p,W;return{numberText:(W=n==null?void 0:(p=n.likeCountIfLiked)==null?void 0:p.content)!=null?W:"",numberValue:Number(n==null?void 0:n.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var C;p=(n==null?void 0:(C=n.likeCountIfIndifferent)==null?void 0:C.content)!==k.numberText;if(K()||!p)return k;var e;return{numberText:(n==null?void 0:(e=n.likeCountIfLiked)==null?void 0:e.content)||"",numberValue:Number(n==null?void 0:n.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!n}}),Q=_.E(_.IE(void 0,
void 0,"xYSlUe")),M=Q.next().value,t=Q.next().value,K=M,L=_.Oe(_.Wx,function(){var k,n;
return(n=(k=Y.data())==null?void 0:k.likeStatusEntityKey)!=null?n:""}),g=_.Oe(CGg,function(){var k,n;
return((k=Y.likeCountEntity)==null?void 0:(n=k.call(Y))==null?void 0:n.key)||""}),P=_.p2(function(){var k;
return((k=L())==null?void 0:k.likeStatus)==="LIKE"},void 0,"DG5Osd"),I=function(){var k;
return G&&!((k=Y.likeCountEntity)==null||!k.call(Y))};
return _.T("like-button-view-model",{class:_.s3("ytLikeButtonViewModelHost",Y.className)},_.T(_.Tr,{data:function(){var k=Object,n=k.assign,p;var W=_.z((p=Y.data())==null?void 0:p.toggleButtonViewModel,_.eD);return n.call(k,{},W||{},{isToggled:P()})},
buttonShapeOverrides:Y.buttonShapeOverrideables,animatedTextPropsDefault:function(){return I()?u():void 0},
animatedTextPropsToggled:function(){return I()?O():void 0},
onToggle:function(k){Nht(k,L(),K(),t)},
style:function(){var k;return((k=Y.disableIconAnimation)==null?0:k.call(Y))?void 0:{animateIcon:"true"}}}))},"Ca");
_.xb.idomCompat=!0;var Hf_=_.D(function(Y){var G=function(){return _.z(Y.data().likeButtonViewModel,_.e6)},u=function(){var Q;
return((Q=G())==null?void 0:Q.likeStatusEntityKey)||""},O=_.p2(function(){var Q,M;
var t=(M=_.Oe(_.Wx,u)())!=null?M:(Q=G())==null?void 0:Q.likeStatusEntity;Q=Y.data();var K;Q=(Q==null?void 0:(K=Q.timedAnimationData)==null?void 0:K.animationTiming)||[];return{uniqueId:"like-dislike",timings:Q,enabled:(t==null?void 0:t.likeStatus)==="INDIFFERENT"&&Q.length>0,experimentEnabled:Q.length>0}},void 0,"wEl1fe");
return _.T("segmented-like-dislike-button-view-model",{class:_.s3("ytSegmentedLikeDislikeButtonViewModelHost",Y.className),"button-renderer":!0},_.T(NhV,{settings:O},_.T("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.T(_.X,{cond:G,then:function(Q){return _.T(_.xb,{data:Q,likeCountEntity:function(){return Y.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:500}})}}),_.T(_.X,{cond:function(){return _.z(Y.data().dislikeButtonViewModel,_.AV)},
then:function(Q){return _.T(_.rz,{data:Q,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"Da");
Hf_.idomCompat=!0;_.hR(Hf_,"segmented-like-dislike-button-view-model",{props:{data:_.AC,className:_.AC}});var EF2=_.D(function(Y){var G=Y.data;var u=Y.className;var O=Y.setMinWidth;var Q=Y.forceIconOnly;var M=_.CH("account-link-button-view-model"),t=_.Oe(_.jFA,function(){var k;return(k=G().accountLinkStatusEntityKey)!=null?k:""}),K=_.Oe(_.jFA,function(){var k;
return(k=G().accountLinkStatusSecondaryEntityKey)!=null?k:""}),L=function(){if(!_.F("web_account_link_secondary_killswitch")){var k,n;
return((k=t())==null?void 0:k.linked)||((n=K())==null?void 0:n.linked)}var p;return(p=t())==null?void 0:p.linked};
_.RE(function(){var k=t();if(k){var n=LD1(new Tp2,KDV(new tCe,!!k.linked));_.Uj().then(function(p){p&&(p.setAccountLinkState(_.vu(n.JSC$12651_serializeBinary(),4)),p.updateAccountLinkingConfig(!!k.linked))})}},"IvZF7");
var g=function(){return _.z(G().toggleButtonViewModel,_.eD)};
_.lj("yt-signal-action-show-account-link-dialog",function(){if(g()){var k=L()?g().toggledButtonViewModel:g().defaultButtonViewModel;k=_.z(k,_.Ck);var n;if((n=t())==null?0:n.isWarning){n=_.z(G().warningButtonViewModel,_.Ck);if(!n){_.N3(Error("Eh"));return}k=n}var p;(n=_.FS((p=k)==null?void 0:p.onTap))&&_.YN([n],M.value)}else _.N3(Error("Fh"))});
var P=function(){var k=g();return Object.assign({},k,{isToggled:L()})},I=function(){return(Q==null?0:Q())?{iconPosition:"icon-only"}:{}};
return _.T("account-link-button-view-model",{class:_.s3("ytwAccountLinkButtonViewModelHost",u,function(){return(O==null?0:O())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:M,"button-renderer":!0},_.T("div",null,_.T(_.X,{cond:function(){var k;if((k=t())==null?0:k.isWarning)return(k=_.z(G().warningButtonViewModel,_.Ck))||_.N3(Error("Eh")),k},
then:function(k){return _.T(_.$Y,{data:k,buttonOverrides:I})},
else:function(){return _.T(_.Tr,{data:P,buttonShapeOverrides:I})}})))},"Fa");_.hR(EF2,"account-link-button-view-model",{props:{data:_.AC,className:_.wH,setMinWidth:_.wH,forceIconOnly:_.wH}});_.Px("menuRenderer","menuRenderer","ytd-menu-renderer");
var tuV={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"}},
KM4=_.F("web_fix_missing_action_buttons")?100:200,fR=function(){var Y=_.Z.apply(this,arguments)||this;Y.safeArea=!_.F("kevlar_flex_menu_safe_area_killswitch");Y.tonalOverride=!1;Y.threeDotSize="M";Y.isOverlay=!1;Y.useOverlayDark=!1;Y.topLevelIconsOnly=!1;Y.JSC$15100_lastWidth=0;Y.maybeUpdateFlexibleMenu=function(){_.F("web_fix_missing_action_buttons")?requestAnimationFrame(Y.maybeUpdateFlexibleMenuImpl):Y.maybeUpdateFlexibleMenuImpl()};
Y.maybeUpdateFlexibleMenuImpl=function(){var G;if((G=Y.data)!=null&&G.flexibleItems){G=Y.hostElement.clientWidth;var u=G>Y.JSC$15100_lastWidth,O,Q=((O=Y.topLevelButtonsContainer)==null?void 0:O.scrollHeight)||0,M;O=((M=Y.flexibleItemButtonsContainer)==null?void 0:M.scrollHeight)||0;M=Y.hostElement.scrollHeight>Math.max(Q,O)+8;u?(Y.resetFlexibleItems(),Y.JSC$15100_lastWidth=Y.hostElement.clientWidth,Y.maybeUpdateFlexibleMenu()):M&&(Y.shrinkFlexibleMenu(),Y.JSC$15100_lastWidth=G)}};
Y.computeThreeDotButtonShape=function(){if(Y.tonalOverride)return Object.assign({},{onTap:function(){Y.onOverflowTap()},
iconPosition:"icon-only",style:Y.isOverlay?Y.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:Y.threeDotSize,state:"active",accessibilityLabel:Y.computeAccessibilityLabel(Y.data)},Y.threeDotButtonOverride)};
Y.onOverflowTap=function(){var G,u,O,Q,M,t,K,L,g,P,I;_.a(function(k){switch(k.nextAddress){case 1:if((G=Y.data)==null?0:G.fetchMenuCommand)return u=_.sH().resolve(_.rH),u.resolveCommand(Y.data.fetchMenuCommand,{form:{element:Y.hostElement}}),k.return();if(((O=Y.data)==null?0:O.isDisabled)&&((Q=Y.data)==null?0:Q.disabledCommand))return _.Yy(Y.data.disabledCommand,Y.hostElement),k.return();M=Y.createMenuRendererVe();t={items:Y.items};if((K=Y.data)==null?0:K.menuPopupAccessibility)t.menuPopupAccessibility=
Y.data.menuPopupAccessibility;if((L=Y.data)==null?0:L.footer)t.footer=Y.data.footer;g={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:t},veData:M}};P=_.sH().resolve(_.kb);if(!_.F("ytd-menu-singleton-sheet-killswitch")){k.jumpTo(2);break}return k.yield(P.openSheet({openPopupActionCommand:g},Y.hostElement),3);case 3:return k.return();case 2:return k.yield(P.isSheetOpen(),4);case 4:return(I=k.yieldResult)?k.yield(P.closeSheet(),0):k.yield(P.openSheet({openPopupActionCommand:g},Y.hostElement),
0)}})};
return Y};
_.m(fR,_.Z);_.H=fR.prototype;_.H.updateButtonOverrides=function(){if(!_.F("menu_renderer_label_update_upkillswitch")){var Y=_.l0(this.hostElement).querySelector("yt-button-view-model");Y&&(Y.buttonOverrides=this.buttonOverrides)}};
_.H.computeHasItems=function(){var Y;return((Y=this.topLevelButtonData)==null?void 0:Y.length)||this.hasFlexibleItems};
_.H.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.H.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.cm(this.hostElement,{"--ytd-menu-renderer-button-color":_.k3(this.data.iconColor)}))};
_.H.onStamperFinished=function(){this.JSC$15100_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.H.setupFlexibleMenu=function(){var Y=this,G;(G=this.data)!=null&&G.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.JR(this.maybeUpdateFlexibleMenu,KM4,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){Y.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.resetFlexibleItems=function(){var Y;if((Y=this.data)!=null&&Y.flexibleItems){_.F("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var G;this.flexAsTopLevelButtons=(G=this.data.flexibleItems)==null?void 0:G.map(function(u){return _.z(u,_.q6_).topLevelButton});
_.F("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 Y;(Y=this.flexAsTopLevelButtons)!=null&&Y.length&&(this.flexAsTopLevelButtons=[].concat(_.c8(this.flexAsTopLevelButtons.slice(0,-1))))};
_.H.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:tuV,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:tuV,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(Y){if(!Y)return[];var G;Y=(G=Y==null?void 0:Y.topLevelButtons)!=null?G:[];return _.gX.unsafeClone([].concat(_.c8(Y)))};
_.H.computeItems=function(Y,G){if(!Y)return[];var u=[];if(G){var O=(Y.flexibleItems||[]).map(function(t){return _.z(t,_.q6_)});
O=_.E(O);for(var Q=O.next();!Q.done;Q=O.next())Q=Q.value,G.includes(Q.topLevelButton)||(Q=Q.menuItem)&&u.push(Q)}var M;Y=(M=Y==null?void 0:Y.items)!=null?M:[];return[].concat(_.c8(u),_.c8(Y))};
_.H.computeMenuActive=function(Y,G){return Y||G};
_.H.onPopupOpened=function(){this.overlayOpen=!0;_.$s(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.H.onPopupClosed=function(){this.overlayOpen=!1;_.$s(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.H.onPopupCanceled=function(){this.overlayOpen=!1;_.$s(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.H.computeAccessibilityLabel=function(Y){return this.get("accessibility.accessibilityData.label",Y)};
_.H.isHidden=function(Y,G){return this.tonalOverride||!Y?!0:Y.fetchMenuCommand||Y.isDisabled&&Y.disabledCommand?!1:!(G==null?0:G.length)};
_.H.isModernOverflowHidden=function(Y,G){return this.tonalOverride&&Y?Y.fetchMenuCommand?!1:!(G==null?0:G.length):!0};
_.H.createMenuRendererVe=function(){var Y,G=(Y=this.data)==null?void 0:Y.trackingParams;Y=_.FA();var u=_.nX();return G&&Y&&u?(G=_.Kd(G),u=_.VZ(7591),_.F("combine_ve_grafts")?_.lq(_.M4(),u,G):_.y6(Y,G,u),u):null};
_.Uk.Object.defineProperties(fR.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.flexAsTopLevelButtons)==null||!Y.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
fR.prototype.onPopupCanceled=fR.prototype.onPopupCanceled;fR.prototype.onPopupClosed=fR.prototype.onPopupClosed;fR.prototype.onPopupOpened=fR.prototype.onPopupOpened;fR.prototype.tonalOverrideChanged=fR.prototype.tonalOverrideChanged;fR.prototype.resetFlexibleItems=fR.prototype.resetFlexibleItems;fR.prototype.setupFlexibleMenu=fR.prototype.setupFlexibleMenu;fR.prototype.iconButtonColorChanged=fR.prototype.iconButtonColorChanged;fR.prototype.updateButtonOverrides=fR.prototype.updateButtonOverrides;
_.S([_.x(_.SZ),_.V("design:type",Object)],fR.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Ox("#button-shape"),_.V("design:type",HTMLElement)],fR.prototype,"buttonShape",void 0);_.S([_.Ox("#button"),_.V("design:type",Object)],fR.prototype,"button",void 0);
_.S([_.R(),_.V("design:type",Object)],fR.prototype,"data",void 0);_.S([_.R({computed:"computeTopLevelButtonData(data)"}),_.V("design:type",Array)],fR.prototype,"topLevelButtonData",void 0);_.S([_.R(),_.V("design:type",Array)],fR.prototype,"flexAsTopLevelButtons",void 0);_.S([_.R({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.V("design:type",Array)],fR.prototype,"items",void 0);_.S([_.R({value:"MORE_VERT"}),_.V("design:type",String)],fR.prototype,"icon",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],fR.prototype,"safeArea",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.V("design:type",Boolean)],fR.prototype,"menuActive",void 0);_.S([_.R(),_.V("design:type",Boolean)],fR.prototype,"menuFocused",void 0);_.S([_.R({value:"bottom"}),_.V("design:type",String)],fR.prototype,"buttonTooltipPosition",void 0);_.S([_.R(),_.V("design:type",Boolean)],fR.prototype,"overlayOpen",void 0);
_.S([_.R({value:!0}),_.V("design:type",Boolean)],fR.prototype,"forceIconButton",void 0);_.S([_.R(),_.V("design:type",Boolean)],fR.prototype,"styleActionButton",void 0);_.S([_.R(),_.V("design:type",Boolean)],fR.prototype,"disableTextTransformOnButtons",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],fR.prototype,"tonalOverride",void 0);_.S([_.R(),_.V("design:type",Object)],fR.prototype,"threeDotSize",void 0);
_.S([_.R(),_.V("design:type",Object)],fR.prototype,"threeDotButtonOverride",void 0);_.S([_.R(),_.V("design:type",Object)],fR.prototype,"isOverlay",void 0);_.S([_.R(),_.V("design:type",Object)],fR.prototype,"useOverlayDark",void 0);_.S([_.R({computed:"computeButtonOverride(tonalOverride)"}),_.V("design:type",Object)],fR.prototype,"buttonOverride",void 0);_.S([_.R(),_.V("design:type",Boolean)],fR.prototype,"minimizePipBreakages",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],fR.prototype,"hasCustomIconColor",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("flexAsTopLevelButtons"),_.V("design:type",Object),_.V("design:paramtypes",[])],fR.prototype,"hasFlexibleItems",null);_.S([_.R({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.V("design:type",Boolean)],fR.prototype,"hasItems",void 0);_.S([_.R(),_.V("design:type",Object)],fR.prototype,"topLevelIconsOnly",void 0);
_.S([_.GO("topLevelIconsOnly"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fR.prototype,"updateButtonOverrides",null);_.S([_.f("topLevelIconsOnly"),_.V("design:type",Object),_.V("design:paramtypes",[])],fR.prototype,"buttonOverrides",null);_.S([_.Ox("#top-level-buttons-computed"),_.V("design:type",HTMLElement)],fR.prototype,"topLevelButtonsContainer",void 0);_.S([_.Q4(".top-level-buttons > *"),_.V("design:type",Array)],fR.prototype,"topLevelButtons",void 0);
_.S([_.Ox("#flexible-item-buttons"),_.V("design:type",HTMLElement)],fR.prototype,"flexibleItemButtonsContainer",void 0);_.S([_.Q4("#flexible-item-buttons > *"),_.V("design:type",Array)],fR.prototype,"flexibleItemButtons",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fR.prototype,"iconButtonColorChanged",null);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fR.prototype,"setupFlexibleMenu",null);_.S([_.Ex("topLevelIconsOnly"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fR.prototype,"resetFlexibleItems",null);_.S([_.GO("tonalOverride"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fR.prototype,"tonalOverrideChanged",null);
_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fR.prototype,"onPopupOpened",null);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fR.prototype,"onPopupClosed",null);_.S([_.Yo("yt-popup-canceled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fR.prototype,"onPopupCanceled",null);
_.d(fR,"ytd-menu-renderer",function(){if(CeR===void 0){var Y=document.createElement("template");_.r(Y,'\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)]]" hidden$="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);CeR=Y}Y=CeR;return Y},{mode:2});var a34;var T5I;_.CR=_.D(function(Y){var G=Y.data;var u=function(){if(G().icon)a:{var Q={iconName:G().icon};for(var M=_.sH().resolve(_.vn),t=_.E([12,24]),K=t.next();!K.done;K=t.next()){var L=K.value;K=Object.assign({},Q,{iconStyle:"youtube_fill",iconSize:L});L=Object.assign({},Q,{iconStyle:"youtube_outline",iconSize:L});if(M.resolveIcon(K)){Q=K;break a}if(M.resolveIcon(L)){Q=L;break a}}Q=void 0}else Q=void 0;return Q};
Y={};var O={};return _.T("badge-shape",{class:_.s3("yt-badge-shape",function(){return sFA(G().type)},(Y["yt-badge-shape--overlay"]=function(){return G().isOverlay},Y["yt-badge-shape--ads-include-dot"]=function(){return G().adsIncludeDot},Y["yt-badge-shape--thumbnail-badge"]=function(){a:switch(G().type){case 17:case 18:case 19:var Q=!0;
break a;default:Q=!1}return Q},Y["yt-badge-shape--status-badge"]=function(){a:switch(G().type){case 12:case 13:case 14:case 15:case 16:var Q=!0;
break a;default:Q=!1}return Q},Y["yt-badge-shape--no-text"]=function(){return!G().text},Y["yt-badge-shape--modern"]=function(){return G().modern||_.F("web_modern_badge_shape")},Y["yt-badge-shape--typography"]=function(){a:{var Q=G();
if(Q.shouldInheritTypography)switch(Q.type){case 0:case 1:case 9:Q=!0;break a;default:Q=!1}else Q=!1}return!Q},Y)),
style:_.Yh({"background-color":function(){var Q;return(Q=G().customColors)==null?void 0:Q.backgroundColor}}),
role:function(){return G().accessibilityText?"img":void 0},
"aria-label":function(){return G().accessibilityText}},_.T(_.X,{cond:function(){return G().animation},
then:function(Q){return _.T(_.JC,{className:"yt-badge-shape__icon",data:Q,animationName:function(){return Q().animationConfig.name||""}})}}),_.T(_.X,{cond:function(){var Q;
return u()&&!((Q=G())==null?0:Q.animation)},
then:function(){return _.T("div",{class:"yt-badge-shape__icon"},_.T(_.Lz,{data:function(){return u()}}))}}),_.T("div",{class:_.s3("yt-badge-shape__text",(O["yt-badge-shape__text--clip-text-overflow"]=function(){return G().clipTextOverflow},O["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(G().numBadgesInRow||0)>1},O))},function(){var Q;
return(Q=G())==null?void 0:Q.text}))},"Ga");
_.CR.idomCompat=!0;_.hR(_.CR,"badge-shape",{props:{data:_.AC}});var y7=function(){var Y=_.Z.apply(this,arguments)||this;Y.systemIcons=_.F("kevlar_system_icons");Y.animated=_.F("animated_live_badge_icon");Y.useBadgeShape=_.F("web_badge_shape_defrag");return Y};
_.m(y7,_.Z);_.H=y7.prototype;_.H.addTooltips=function(){for(var Y=_.l0(this.hostElement).querySelectorAll(".badge"),G=0,u;u=Y[G++];){var O=this.repeatElement.itemForElement(u);u=_.l0(u);u.lastChild&&u.lastChild.is==="tp-yt-paper-tooltip"&&u.removeChild(u.lastChild);if(O=O.metadataBadgeRenderer&&O.metadataBadgeRenderer.tooltip){var Q=_.DA("tp-yt-paper-tooltip");(0,_.sb)(Q).textContent=O;Q.setAttribute("position","top");Q.setAttribute("aria-hidden","true");u.appendChild(Q)}}};
_.H.badgesChanged=function(){var Y=this;_.AM().parkOrScheduleJob(function(){Y.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.H.standaloneRoundedBadgeChanged=function(){var Y=this.useRoundedBadge?this.useRoundedBadge:void 0;Y&&(this.useRoundedBadge=Y)};
_.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(Y){_.F("kevlar_ytb_live_badges")&&Y==="BADGE_STYLE_TYPE_LIVE_NOW"&&(Y="badge-style-type-live-now-alternate");return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.H.computeRole=function(Y){return this.computeAriaLabel(Y)?"img":"status"};
_.H.computeAriaLabel=function(Y){var G;return(Y==null?void 0:(G=Y.accessibilityData)==null?void 0:G.label)||(Y==null?void 0:Y.label)};
_.H.computeBadgeShape=function(Y){if(Y){var G,u,O=$Yj(Y.style),Q=qcT(Y.style),M=Y.label,t=((G=Y.accessibilityData)==null?void 0:G.label)||Y.label;a:switch(Y.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":G=!0;break a;default:G=!1}var K=(u=Y.icon)==null?void 0:u.iconType;a:switch(Y.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":u=!0;break a;default:u=!1}Y={type:O,brNzRatingBadgeType:Q,text:M,accessibilityText:t,isOverlay:G,
icon:K!=="PREMIUM"?K:void 0,modern:(Y==null?void 0:Y.style)==="BADGE_STYLE_TYPE_VERIFIED"||(Y==null?void 0:Y.style)==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||_.F("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:u}}else Y={};return Y};
_.H.updateComputedBadges=function(Y,G,u){var O=this;(G=G?[G]:u?[u]:void 0)?this.computedBadges=G:this.computedBadges=Y==null?void 0:Y.filter(function(Q){var M;if((M=Q.metadataBadgeRenderer)==null?0:M.groups){M=!1;Q=_.E(Q.metadataBadgeRenderer.groups);for(var t=Q.next();!t.done;t=Q.next()){t=t.value;var K=void 0;M=M||((K=O.hiddenBadgeGroups)==null?void 0:K.includes(t))}return!M}return!0})};
_.H.useFilledIcons=function(Y){return _.F("kevlar_system_icons")&&(Y==="AUDIO_BADGE"||Y==="CHECK_CIRCLE_THICK"||Y==="OFFICIAL_ARTIST_BADGE"||Y==="SPONSORSHIP_STAR"||Y==="PERSON_RADAR_FILLED"||Y==="PERSON_RADAR")};
_.H.computeBadgeShapeStyle=function(Y){return this.useBadgeShape?Y==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||Y==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":Y==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.H.computeIcon=function(Y){var G,u;Y=Y==null?void 0:(G=Y.metadataBadgeRenderer)==null?void 0:(u=G.icon)==null?void 0:u.iconType;if(Y!=="PREMIUM"&&Y)return _.Ux(Y)};
_.H.computeStandaloneBadge=function(Y){var G;Y=Y==null?void 0:(G=Y.icon)==null?void 0:G.iconType;return Y==="PREMIUM_STANDALONE"||Y==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
y7.prototype.hiddenBadgeGroupsChanged=y7.prototype.hiddenBadgeGroupsChanged;y7.prototype.standaloneBadgeChanged=y7.prototype.standaloneBadgeChanged;y7.prototype.standaloneRoundedBadgeChanged=y7.prototype.standaloneRoundedBadgeChanged;y7.prototype.badgesChanged=y7.prototype.badgesChanged;_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],y7.prototype,"hidden",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],y7.prototype,"componentBehavior",void 0);
_.S([_.R(),_.V("design:type",Array)],y7.prototype,"badges",void 0);_.S([_.R(),_.V("design:type",Object)],y7.prototype,"topStandaloneBadge",void 0);_.S([_.R(),_.V("design:type",Object)],y7.prototype,"bottomStandaloneBadge",void 0);_.S([_.R(),_.V("design:type",Object)],y7.prototype,"computedBadges",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],y7.prototype,"mediumFontAdBadge",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],y7.prototype,"useRoundedBadge",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],y7.prototype,"largeFontAdBadge",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],y7.prototype,"overlayAd",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],y7.prototype,"overlayPremium",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],y7.prototype,"noDotAdBadge",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],y7.prototype,"collectionTruncate",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],y7.prototype,"isThumbnailBadge",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],y7.prototype,"wrapBadges",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Number)],y7.prototype,"numBadgesInRow",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],y7.prototype,"systemIcons",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],y7.prototype,"animated",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],y7.prototype,"useBadgeShape",void 0);_.S([_.R({value:[]}),_.V("design:type",Array)],y7.prototype,"hiddenBadgeGroups",void 0);_.S([_.Ox("#repeat"),_.V("design:type",Pn)],y7.prototype,"repeatElement",void 0);_.S([_.Ex("badges"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],y7.prototype,"badgesChanged",null);
_.S([_.Ex("useRoundedBadge"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],y7.prototype,"standaloneRoundedBadgeChanged",null);_.S([_.Ex("topStandaloneBadge","bottomStandaloneBadge"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],y7.prototype,"standaloneBadgeChanged",null);_.S([_.Ex("hiddenBadgeGroups"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],y7.prototype,"hiddenBadgeGroupsChanged",null);
_.S([_.pD({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],y7);
var LM4=_.$o()(y7,"ytd-badge-supported-renderer",function(){if(T5I===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);T5I=Y}Y=T5I;return Y},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:2});var eJ=function(){var Y=_.Z.apply(this,arguments)||this;Y.iconType="STAR";Y.plaMedium=_.F("enable_pla_resizing_for_desktop_medium");Y.plaLarge=_.F("enable_pla_resizing_for_desktop_large");Y.plaExtraLarge=_.F("enable_pla_resizing_for_desktop_extra_large");Y.standardizeIconSize=_.F("kevlar_system_icons");Y.mediaHoverOverlayInitialVisibility=_.F("enable_top_landscape_image_button_command_web");Y.noBottomMargin=!1;Y.thumbnailObjectFit="CONTAIN";Y.thumbnailFitHeight=!0;Y.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return Y};
_.m(eJ,_.Z);_.H=eJ.prototype;_.H.created=function(){this.activeView=new qe(this.hostElement)};
_.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",eJ.JSC$15112_DEFAULT_CLICK_LOCATION_BEHAVIOR,eJ.JSC$15112_CLICK_LOCATION_ID_MAP))};
_.H.onTap=function(Y){this.onTapOrClick(Y)};
_.H.onTapOrClick=function(Y){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,Y,!1)};
_.H.updateMediaBackgroundImage=function(){var Y=this.get("data.image.thumbnail.thumbnails");Y&&(Y=_.dH(Y,0))&&_.cm(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+Y+")"})};
_.H.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var Y=0;Y<this.data.impressionEndpoints.length;Y++){var G=this.data.impressionEndpoints[Y];G.clickTrackingParams&&delete G.clickTrackingParams;_.sH().resolve(_.rH).resolveCommand(G,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var u;((u=this.data)==null?0:u.activeView)&&so(this.activeView,this.data.activeView)}};
_.H.handleMuteAd=function(){};
_.H.attached=function(){var Y=this;_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&cf(Y.activeView)})};
_.H.detached=function(){_.F("stop_av_measurement_on_detach")&&cf(this.activeView)};
_.Uk.Object.defineProperties(eJ.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.titleText)return"";var G;return _.Q6("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((G=this.data)==null?void 0:G.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.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 Y;return!((Y=this.data)==null||!Y.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"}}});
eJ.prototype.onTap=eJ.prototype.onTap;eJ.prototype.dataChanged=eJ.prototype.dataChanged;
eJ.JSC$15112_CLICK_LOCATION_ID_MAP=_.F("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"]]);
eJ.JSC$15112_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.F("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"}];_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],eJ.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.rW),_.V("design:type",Object)],eJ.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],eJ.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.Ne.YtSparklesClickLocationBehavior),_.V("design:type",Object)],eJ.prototype,"ytSparklesClickLocationBehavior",void 0);_.S([_.x([_.vZ.YtActionHandlerBehavior]),_.V("design:type",Object)],eJ.prototype,"actionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],eJ.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],eJ.prototype,"clickCommand",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.kG}),_.V("design:type",Boolean)],eJ.prototype,"miniMode",void 0);_.S([_.R(),_.V("design:type",String)],eJ.prototype,"iconType",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eJ.prototype,"plaMedium",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eJ.prototype,"plaLarge",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eJ.prototype,"plaExtraLarge",void 0);_.S([_.f("data.titleText"),_.V("design:type",String),_.V("design:paramtypes",[])],eJ.prototype,"titleAriaLabel",null);_.S([_.f("data.rating"),_.V("design:type",Object),_.V("design:paramtypes",[])],eJ.prototype,"getRating",null);_.S([_.f("data.price"),_.V("design:type",Object),_.V("design:paramtypes",[])],eJ.prototype,"getPrice",null);
_.S([_.f("data.thirdLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],eJ.prototype,"getThirdLine",null);_.S([_.f("data.fourthLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],eJ.prototype,"getFourthLine",null);_.S([_.f("data.fifthLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],eJ.prototype,"getFifthLine",null);_.S([_.f("getRating"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eJ.prototype,"computeRatingHidden",null);
_.S([_.f("getPrice"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eJ.prototype,"computePriceHidden",null);_.S([_.f("getThirdLine"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eJ.prototype,"computeThirdLineHidden",null);_.S([_.f("getFourthLine"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eJ.prototype,"computeFourthLineHidden",null);_.S([_.f("getFifthLine"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eJ.prototype,"computeFifthLineHidden",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data.energyIcon"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eJ.prototype,"hasEnergyIcon",null);_.S([_.f("computePriceHidden","computeRatingHidden"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eJ.prototype,"computeSecondaryTextHidden",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eJ.prototype,"standardizeIconSize",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eJ.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eJ.prototype,"noBottomMargin",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data.layout"),_.V("design:type",String),_.V("design:paramtypes",[])],eJ.prototype,"layout",null);_.S([_.f("data.layout"),_.V("design:type",Object),_.V("design:paramtypes",[])],eJ.prototype,"mediaThumbnailWidth",null);
_.S([_.f("layout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eJ.prototype,"useRoundedBadge",null);_.S([_.R(),_.V("design:type",String)],eJ.prototype,"thumbnailObjectFit",void 0);_.S([_.R(),_.V("design:type",Object)],eJ.prototype,"thumbnailFitHeight",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eJ.prototype,"dataChanged",null);
_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],eJ.prototype,"onTap",null);_.S([_.pD({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],eJ);
_.d(eJ,"ytd-display-ad-renderer",function(){if(a34!==void 0)return a34;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return a34=Y},{mode:1});var gFV;var XhE;var PrU;var cOI=new Map;var I3R=!1;var Al=function(){var Y=_.Z.apply(this,arguments)||this;Y.DEFAULT_TOOLTIP_OFFSET="10";Y.TOOLTIP_OFFSET_NO_BANNER="-8";Y.badges=null;Y.noEndpoints=!1;Y.wrapText=!1;Y.forceVerified=!1;Y.tooltipPosition="top";Y.compactStyle=!1;Y.height=0;Y.lineHeight=0;return Y};
_.m(Al,_.Z);_.H=Al.prototype;_.H.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.H.attached=function(){var Y=this;this.observer=new MutationObserver(function(G,u){Y.handleResized();u.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.H.detached=function(){this.observer&&this.observer.disconnect()};
_.H.logTooltipEvent=function(){_.F("kevlar_wiz_tooltip_event_killswitch")||I3R||(_.LK("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),I3R=!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 Y=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.DE("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=Y:this.textContainerEl.style.marginRight=Y}};
_.H.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.DE("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.H.handleResized=function(){var Y=this;this.verified&&_.AN.addLowPriorityJob(function(){Y.fitBackgroundToText();var G=getComputedStyle(Y.hostElement).lineHeight;G&&(G=G.match(/\d+/))&&G.length&&(Y.lineHeight=Number(G[0]));Y.height=Y.lineHeight&&!Y.wrapText?Y.lineHeight:Y.textEl.offsetHeight})};
_.H.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var Y=document.createRange(),G=_.l0(this.textEl).children;G.length>0?Y.selectNodeContents(G[0]):Y.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(Y.getBoundingClientRect().width)+"px"}};
_.H.computeChannelBadgeStyle=function(Y){var G;if((Y==null?0:(G=Y.runs)==null?0:G.length)&&Y.runs[0].textColor)return"--ytd-badge-icon-color:"+_.k3(Y.runs[0].textColor)+";"};
_.Uk.Object.defineProperties(Al.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"?_.i8(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var Y=this.get("badges.0.metadataBadgeRenderer.tooltip");if(Y)return Y}return _.Ri(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Al.prototype.onLineHeightChanged=Al.prototype.onLineHeightChanged;Al.prototype.onHeightChanged=Al.prototype.onHeightChanged;Al.prototype.onChannelNameChanged=Al.prototype.onChannelNameChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Al.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Al.prototype,"badges",void 0);_.S([_.R(),_.V("design:type",Object)],Al.prototype,"channelName",void 0);
_.S([_.R(),_.V("design:type",Object)],Al.prototype,"noEndpoints",void 0);_.S([_.R(),_.V("design:type",Object)],Al.prototype,"wrapText",void 0);_.S([_.R(),_.V("design:type",Object)],Al.prototype,"forceVerified",void 0);_.S([_.R(),_.V("design:type",Object)],Al.prototype,"tooltipPosition",void 0);_.S([_.R(),_.V("design:type",String)],Al.prototype,"tooltip",void 0);_.S([_.R(),_.V("design:type",Boolean)],Al.prototype,"hasChannelArt",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Al.prototype,"compactStyle",void 0);_.S([_.Ox("#text-container"),_.V("design:type",HTMLElement)],Al.prototype,"textContainerEl",void 0);_.S([_.Ox("#text"),_.V("design:type",Object)],Al.prototype,"textEl",void 0);_.S([_.Ox("#verified-tooltip"),_.V("design:type",HTMLElement)],Al.prototype,"verifiedTooltip",void 0);_.S([_.R(),_.V("design:type",Object)],Al.prototype,"height",void 0);
_.S([_.R(),_.V("design:type",Object)],Al.prototype,"lineHeight",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("badges","forceVerified"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Al.prototype,"verified",null);_.S([_.f("badges","verified"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Al.prototype,"hideBadges",null);_.S([_.f("channelName"),_.V("design:type",Object),_.V("design:paramtypes",[])],Al.prototype,"formattedName",null);
_.S([_.f("badges","verified","formattedName"),_.V("design:type",String),_.V("design:paramtypes",[])],Al.prototype,"tooltipText",null);_.S([_.f("hasChannelArt"),_.V("design:type",String),_.V("design:paramtypes",[])],Al.prototype,"tooltipOffset",null);_.S([_.GO("channelName"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Al.prototype,"onChannelNameChanged",null);
_.S([_.GO("height"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Al.prototype,"onHeightChanged",null);_.S([_.GO("lineHeight","height"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Al.prototype,"onLineHeightChanged",null);_.S([_.pD({is:"ytd-channel-name",disableElementRegistration:!0})],Al);
_.d(Al,"ytd-channel-name",function(){if(PrU!==void 0)return PrU;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return PrU=Y},{mode:2});var oH=function(){var Y=_.Z.apply(this,arguments)||this;Y.standardizeIconSize=_.F("kevlar_system_icons");return Y};
_.m(oH,_.Z);oH.prototype.basicPaletteChanged=function(){var Y;(Y=this.data.color)!=null&&Y.basicColorPaletteData&&_.gE(this.hostElement,this.data.color.basicColorPaletteData)};
oH.prototype.useFilledIcons=function(Y){return _.F("kevlar_system_icons")&&(Y==="CHECK_CIRCLE_THICK"||Y==="OFFICIAL_ARTIST_BADGE")};
_.Uk.Object.defineProperties(oH.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return this.data.authorCreator||((Y=this.data)==null?void 0:(G=Y.color)==null?void 0:(u=G.basicColorPaletteData)==null?void 0:u.backgroundColor)}}});
oH.prototype.basicPaletteChanged=oH.prototype.basicPaletteChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],oH.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],oH.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],oH.prototype,"standardizeIconSize",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data.authorUnifiedVerified"),_.V("design:type",Object),_.V("design:paramtypes",[])],oH.prototype,"verified",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],oH.prototype,"creator",null);_.S([_.GO("data.color.basicColorPaletteData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oH.prototype,"basicPaletteChanged",null);_.S([_.pD({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],oH);
_.d(oH,"ytd-author-comment-badge-renderer",function(){if(XhE!==void 0)return XhE;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return XhE=Y},{mode:1});var kEU;var ip=function(){return _.Z.apply(this,arguments)||this};
_.m(ip,_.Z);ip.prototype.computeThumbnailWidth=function(Y){if(Y==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ip.prototype,"data",void 0);_.S([_.R({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],ip.prototype,"icon",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],ip.prototype,"surface",void 0);
_.S([_.R({reflectToAttribute:!0,value:_.F("enable_shrink_image_size_on_web_posts_singleton")}),_.V("design:type",Boolean)],ip.prototype,"searchSxsUx",void 0);_.S([_.R({reflectToAttribute:!0,value:_.F("enable_community_page_on_desktop")}),_.V("design:type",Boolean)],ip.prototype,"useSmallerPostImageAttachments",void 0);_.S([_.pD({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],ip);
_.d(ip,"ytd-backstage-image-renderer",function(){if(kEU!==void 0)return kEU;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return kEU=Y},{mode:1});var nFE;var RH=function(){var Y=_.Z.apply(this,arguments)||this;Y.isLoading=!1;Y.selectedItemIndex=-1;return Y};
_.m(RH,_.Z);_.H=RH.prototype;_.H.computeIsChannelOwner=function(Y){if(!Y)return!0;Y=Y[0];return!(Y&&(Y.signinEndpoint||Y.selectServiceEndpoint))};
_.H.computeIsImagePoll=function(Y){return(Y==null?void 0:Y.type)==="POLL_TYPE_IMAGE"};
_.H.computeIsTotalVotesDisabled=function(Y){return!(Y==null?0:Y.totalVotes)};
_.H.thumbnailSrc=function(Y){var G,u,O,Q;return(Y==null?0:(G=Y.thumbnails)==null?0:(u=G[0])==null?0:u.url)?_.cs((O=Y.thumbnails)==null?void 0:(Q=O[0])==null?void 0:Q.url):void 0};
_.H.progressWidth=function(Y){return"width:"+(Y?Y*100:0)+"%;"};
_.H.textAreaWidth=function(Y){return this.isImagePoll?null:"width:"+(Y?Y*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 Y=this.data.choices,G=0;G<Y.length;G++)if(Y[G].selected){this.selectedItemIndex=G;break}};
_.H.onPopupClosed=function(Y,G){Y=Number(this.pollVotes.selected);G.confirmed&&(this.selectChoice(Y,!1),_.qZ(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(Y,G){G&&(this.selectChoice(G.selectedChoiceIndex,!0),this.set("data.totalVotes",G.totalVotes))};
_.H.onYtServiceRequestSent=function(Y,G){if(G.actions)for(Y=0;Y<G.actions.length;Y++){var u=G.actions[Y];_.z(u,EL)&&this.set("data.totalVotes",_.z(u,EL).totalVotes)}};
_.H.onYtServiceRequestCompleted=function(Y){var G=this.get("detail.data.actionResults.0.feedback",Y);Y=this.get("detail.data.actionResults.0.status",Y);if(G==="FEEDBACK_DESELECT"||G==="FEEDBACK_SELECT")this.isLoading=!1,Y==="STATUS_FAILED"?_.$s(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.H.getEndpoint=function(Y,G){return G===Y?this.data.choices[G].deselectServiceEndpoint||null:this.data.choices[Y].selectServiceEndpoint||null};
_.H.selectChoice=function(Y,G){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var u=0;u<this.data.choices.length;u++){var O;if(Y===this.selectedItemIndex){var Q=!1;var M=O=null}else O=(Q=u===Y)?this.data.choices[u].voteRatioIfSelected:this.data.choices[u].voteRatioIfNotSelected,M=Q?this.data.choices[u].votePercentageIfSelected:this.data.choices[u].votePercentageIfNotSelected;this.set("data.choices."+u+".voteRatio",O);
this.set("data.choices."+u+".votePercentage",M);this.set("data.choices."+u+".selected",Q)}G||(this.isLoading=!0,(G=this.getEndpoint(Y,this.selectedItemIndex))&&_.sH().resolve(_.rH).resolveCommand(G,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===Y?-1:Y};
_.Uk.Object.defineProperties(RH.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
RH.prototype.onYtServiceRequestCompleted=RH.prototype.onYtServiceRequestCompleted;RH.prototype.onYtServiceRequestSent=RH.prototype.onYtServiceRequestSent;RH.prototype.onYtCommentPollRevert=RH.prototype.onYtCommentPollRevert;RH.prototype.onPopupClosed=RH.prototype.onPopupClosed;RH.prototype.dataChanged=RH.prototype.dataChanged;_.S([_.x(_.AK),_.V("design:type",Object)],RH.prototype,"paperItemBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.SZ),_.V("design:type",Object)],RH.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],RH.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],RH.prototype,"isLoading",void 0);_.S([_.R({computed:"computeIsChannelOwner(data.choices)"}),_.V("design:type",Boolean)],RH.prototype,"isChannelOwner",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.V("design:type",Boolean)],RH.prototype,"isImagePoll",void 0);_.S([_.R({computed:"computeIsTotalVotesDisabled(data)"}),_.V("design:type",Boolean)],RH.prototype,"isTotalVotesDisabled",void 0);_.S([_.R(),_.V("design:type",Object)],RH.prototype,"previousPollInfo",void 0);_.S([_.R(),_.V("design:type",Object)],RH.prototype,"selectedItemIndex",void 0);_.S([_.Ox("#poll-votes"),_.V("design:type",Object)],RH.prototype,"pollVotes",void 0);
_.S([_.f("isChannelOwner"),_.V("design:type",Object),_.V("design:paramtypes",[])],RH.prototype,"endpointStyle",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RH.prototype,"dataChanged",null);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],RH.prototype,"onPopupClosed",null);
_.S([_.Yo("yt-comment-poll-revert"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],RH.prototype,"onYtCommentPollRevert",null);_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],RH.prototype,"onYtServiceRequestSent",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],RH.prototype,"onYtServiceRequestCompleted",null);_.S([_.pD({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],RH);
_.d(RH,"ytd-backstage-poll-renderer",function(){if(nFE!==void 0)return nFE;var Y=document.createElement("template");_.r(Y,'\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" aria-selected$="[[item.selected]]">\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return nFE=Y},{mode:2});var FM4;var phT={autoplay:!1,loop:!1},zXe={simpleText:""},wz=function(){var Y=_.Z.apply(this,arguments)||this;Y.isLoading=!1;Y.usesPanelLockup=!1;Y.selectedItemIndex=-1;Y.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},phT,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});Y.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},phT,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});Y.correctnessAnimationProps=[];Y.correctnessAnimationRefs=[];return Y};
_.m(wz,_.Z);_.H=wz.prototype;_.H.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.H.computeIsChannelOwner=function(Y){if(!Y)return!0;Y=Y[0];return!(Y&&(Y.signinEndpoint||Y.selectServiceEndpoint))};
_.H.computeIsTotalVotesDisabled=function(Y){return!(Y==null?0:Y.totalVotes)};
_.H.computeIsImageQuiz=function(Y){return(Y==null?void 0:Y.type)==="POLL_TYPE_IMAGE"};
_.H.onExplanationChanged=function(){this.expander.reset()};
_.H.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var Y=this.data.choices;if(Y){this.maybeInitializeQuizLotties(Y);for(var G=0;G<Y.length;G++)if(Y[G].isSelected||this.isChannelOwner&&Y[G].isCorrect){this.selectedItemIndex=G;return}this.selectedItemIndex=-1}}};
_.H.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var Y=this.selectedItemIndex,G=Number(this.quizVotes.selected);this.selectChoice(G);this.sendVoteAction(G,Y);this.quizVotes.selected=-1;var u;Y=!((u=this.data)==null?0:u.enableAnimation);this.maybePlayAnswerAnimations(Y)}};
_.H.onYtCommentPollRevert=function(Y,G){G&&(this.selectChoice(G.selectedChoiceIndex),this.set("data.totalVotes",G.totalVotes))};
_.H.onYtServiceRequestSent=function(Y,G){if(G.actions)for(Y=_.E(G.actions),G=Y.next();!G.done;G=Y.next())(G=_.z(G.value,EL))&&this.set("data.totalVotes",G.totalVotes)};
_.H.onYtServiceRequestCompleted=function(Y){var G=this.get("detail.data.actionResults.0.feedback",Y);Y=this.get("detail.data.actionResults.0.status",Y);if(G==="FEEDBACK_DESELECT"||G==="FEEDBACK_SELECT")this.isLoading=!1,Y==="STATUS_FAILED"?_.$s(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.H.getAnimationPropsForChoiceIndex=function(Y,G){return G[Y]};
_.H.maybePlayAnswerAnimations=function(Y){Y=Y===void 0?!1:Y;var G;if((G=this.data)!=null&&G.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){G=_.E(this.correctnessAnimationRefs);for(var u=G.next();!u.done;u=G.next()){var O=void 0,Q=void 0;(O=u.value)==null||(Q=O.lottieEl)==null||Q.stop()}if(!(this.selectedItemIndex<0)){G=0;Y&&(G=this.isCorrect?37:25);var M,t;(M=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(t=M.lottieEl)==null||t.goToAndPlay(Y?G:0,!0);if(!(this.isCorrect||
(M=this.data.choices.findIndex(function(P){return P.isCorrect}),M<0))){var K,L;
(L=(K=this.correctnessAnimationRefs[M])==null?void 0:K.lottieEl)==null||L.goToAndPlay(37,!0);var g;K=(g=this.fadeContainers)==null?void 0:g.item(M);!Y&&K&&this.fadeIn(K)}}}};
_.H.thumbnailSrc=function(Y){var G,u,O,Q;return(Y==null?0:(G=Y.thumbnails)==null?0:(u=G[0])==null?0:u.url)?_.cs((O=Y.thumbnails)==null?void 0:(Q=O[0])==null?void 0:Q.url):void 0};
_.H.a11yVotedText=function(Y,G){var u,O,Q=((u=this.data)==null?void 0:(O=u.correctVotedText)==null?void 0:O.simpleText)||"",M,t;u=((M=this.data)==null?void 0:(t=M.votedText)==null?void 0:t.simpleText)||"";if(!G)return"";var K,L;if((K=this.data)==null?0:(L=K.choices)==null?0:L[Y].isCorrect)return Q;var g,P;return((g=this.data)==null?0:(P=g.choices)==null?0:P[Y].isSelected)?u:""};
_.H.getEndpoint=function(Y,G){return G===Y?this.data.choices[Y].deselectServiceEndpoint||null:this.data.choices[Y].selectServiceEndpoint||null};
_.H.sendVoteAction=function(Y,G){if(Y=this.getEndpoint(Y,G))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(Y)};
_.H.selectChoice=function(Y){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var G=0;G<this.data.choices.length;G++)this.set("data.choices."+G+".isSelected",Y===this.selectedItemIndex?!1:G===Y);this.selectedItemIndex=this.selectedItemIndex===Y?-1:Y};
_.H.maybeInitializeQuizLotties=function(Y){var G=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=Y.map(function(u){return{animationConfig:u.isCorrect?G.baseCorrectLottiePlayerAnimationConfig:G.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){G.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(u){return u.animationRef||{}})};
_.H.fadeIn=function(Y){Y.classList.add("fade-in");_.jk(_.AN,function(){Y.classList.remove("fade-in")},900)};
_.Uk.Object.defineProperties(wz.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Ri(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 Y,G;return((Y=this.data)==null?void 0:(G=Y.choices)==null?void 0:G.some(function(u){return u.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null||!Y.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?zXe:this.data.choices[this.selectedItemIndex].explanation||zXe}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null||!Y.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
wz.prototype.onYtServiceRequestCompleted=wz.prototype.onYtServiceRequestCompleted;wz.prototype.onYtServiceRequestSent=wz.prototype.onYtServiceRequestSent;wz.prototype.onYtCommentPollRevert=wz.prototype.onYtCommentPollRevert;wz.prototype.dataChanged=wz.prototype.dataChanged;wz.prototype.onExplanationChanged=wz.prototype.onExplanationChanged;_.S([_.x(_.AK),_.V("design:type",Object)],wz.prototype,"paperItemBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],wz.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.ZA.YtTaskEmitterBehavior),_.V("design:type",Object)],wz.prototype,"ytTaskEmitterBehavior",void 0);_.S([_.x(_.SZ),_.V("design:type",Object)],wz.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],wz.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],wz.prototype,"isLoading",void 0);_.S([_.R(),_.V("design:type",Object)],wz.prototype,"usesPanelLockup",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.V("design:type",Boolean)],wz.prototype,"isChannelOwner",void 0);_.S([_.R({computed:"computeIsTotalVotesDisabled(data)"}),_.V("design:type",Boolean)],wz.prototype,"isTotalVotesDisabled",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.V("design:type",Boolean)],wz.prototype,"isImageQuiz",void 0);_.S([_.R(),_.V("design:type",Object)],wz.prototype,"previousQuizInfo",void 0);_.S([_.R(),_.V("design:type",Object)],wz.prototype,"selectedItemIndex",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data","usesPanelLockup"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wz.prototype,"shouldUseModernUi",null);
_.S([_.Q4(".fade-container"),_.V("design:type",Object)],wz.prototype,"fadeContainers",void 0);_.S([_.R(),_.V("design:type",Array)],wz.prototype,"correctnessAnimationProps",void 0);_.S([_.f("explanation","showCorrectAnswer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wz.prototype,"showExplanation",null);_.S([_.f("isChannelOwner","isAttempted"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wz.prototype,"showCorrectAnswer",null);
_.S([_.f("isChannelOwner","isAttempted","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wz.prototype,"isQuizAnsweringDisabled",null);_.S([_.f("isQuizAnsweringDisabled"),_.V("design:type",Object),_.V("design:paramtypes",[])],wz.prototype,"endpointStyle",null);_.S([_.f("data","selectedItemIndex"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wz.prototype,"isAttempted",null);
_.S([_.f("data","selectedItemIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],wz.prototype,"explanation",null);_.S([_.f("data","selectedItemIndex"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wz.prototype,"isCorrect",null);_.S([_.Ox("ytd-expander"),_.V("design:type",Object)],wz.prototype,"expander",void 0);_.S([_.Ox("#quiz-votes"),_.V("design:type",Object)],wz.prototype,"quizVotes",void 0);
_.S([_.GO("explanation"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wz.prototype,"onExplanationChanged",null);_.S([_.GO("data","isChannelOwner"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wz.prototype,"dataChanged",null);_.S([_.Yo("yt-comment-quiz-revert"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],wz.prototype,"onYtCommentPollRevert",null);
_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],wz.prototype,"onYtServiceRequestSent",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],wz.prototype,"onYtServiceRequestCompleted",null);_.S([_.pD({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],wz);
_.d(wz,"ytd-backstage-quiz-renderer",function(){if(FM4!==void 0)return FM4;var Y=document.createElement("template");_.r(Y,'\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="correctness-lottie style-scope ytd-backstage-quiz-renderer" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]">\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return FM4=Y},{mode:1});var m0l;var ZR=function(){return _.Z.apply(this,arguments)||this};
_.m(ZR,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ZR.prototype,"data",void 0);_.S([_.pD({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],ZR);
_.d(ZR,"ytd-post-uploaded-video-renderer",function(){if(m0l!==void 0)return m0l;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return m0l=Y},{mode:1});var WM1;var DR=function(){return _.Z.apply(this,arguments)||this};
_.m(DR,_.Z);DR.prototype.useFilledIcons=function(Y){return Y==="SPONSORSHIP_STAR"};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],DR.prototype,"data",void 0);_.S([_.pD({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],DR);
var r64=_.$o()(DR,"ytd-sponsors-only-badge-renderer",function(){if(WM1===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);WM1=Y}Y=WM1;return Y},{allowedProps:["data"],
mode:1});var x0X;var hl=function(){return _.Z.apply(this,arguments)||this};
_.m(hl,_.Z);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],hl.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],hl.prototype,"data",void 0);_.S([_.pD({is:"ytd-child-video-renderer",disableElementRegistration:!0})],hl);
_.d(hl,"ytd-child-video-renderer",function(){if(x0X!==void 0)return x0X;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return x0X=Y},{mode:1});var f34;var Cr2;var dz=function(){var Y=_.Z.apply(this,arguments)||this;Y.size=0;Y.fallbackImageSize={height:void 0,width:9999};Y.webModernCollections=!1;return Y};
_.m(dz,_.Z);_.H=dz.prototype;_.H.computeBlurredImageSize=function(Y){return Y?{height:Y*2,width:Y*2}:this.fallbackImageSize};
_.H.computeImageSize=function(Y){return Y?{height:Y,width:Y}:this.fallbackImageSize};
_.H.computeObjectFit=function(Y){return Y?"FILL":"CONTAIN"};
_.H.computePreserve=function(Y){return Y?!0:!1};
_.H.setBackground=function(){var Y,G;if((Y=this.data)==null?0:(G=Y.thumbnail)==null?0:G.sampledThumbnailColor)Y=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+Y.red+","+Y.green+","+Y.blue+",1)"};
dz.prototype.setBackground=dz.prototype.setBackground;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],dz.prototype,"watchFeedThumbnail",void 0);_.S([_.R(),_.V("design:type",Object)],dz.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],dz.prototype,"size",void 0);
_.S([_.R({computed:"computeBlurredImageSize(size)"}),_.V("design:type",Object)],dz.prototype,"blurredImageSize",void 0);_.S([_.R({computed:"computeImageSize(size)"}),_.V("design:type",Object)],dz.prototype,"imageSize",void 0);_.S([_.R({computed:"computePreserve(size)"}),_.V("design:type",String)],dz.prototype,"preserve",void 0);_.S([_.R({computed:"computeObjectFit(size)"}),_.V("design:type",String)],dz.prototype,"objectFit",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],dz.prototype,"webModernCollections",void 0);_.S([_.GO("data.thumbnail.sampledThumbnailColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dz.prototype,"setBackground",null);_.S([_.pD({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],dz);
_.d(dz,"ytd-playlist-custom-thumbnail-renderer",function(){if(Cr2!==void 0)return Cr2;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Cr2=Y},{mode:1});var y61;var bp=function(){return _.Z.apply(this,arguments)||this};
_.m(bp,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],bp.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Number)],bp.prototype,"width",void 0);_.S([_.pD({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],bp);
_.d(bp,"ytd-playlist-video-thumbnail-renderer",function(){if(y61!==void 0)return y61;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return y61=Y},{mode:1});var eX1;var SJ=function(){return _.Z.apply(this,arguments)||this};
_.m(SJ,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],SJ.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Number)],SJ.prototype,"width",void 0);_.S([_.pD({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],SJ);
_.d(SJ,"ytd-show-custom-thumbnail-renderer",function(){if(eX1!==void 0)return eX1;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return eX1=Y},{mode:1});var A6I;var Ni=function(){return _.Z.apply(this,arguments)||this};
_.m(Ni,_.Z);Ni.prototype.useFilledIcons=function(Y){return Y==="MUSIC"||Y==="COURSE"};
Ni.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=FE(this.overlayColor,"0.8");else if(this.overlayColor){var Y=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+Y.red+","+Y.green+","+Y.blue+",0.8)"}};
_.Uk.Object.defineProperties(Ni.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)}}});
Ni.prototype.overlayColorChanged=Ni.prototype.overlayColorChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ni.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Ni.prototype,"overlayColor",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data.icon","data.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ni.prototype,"overlayStyle",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data.icon","data.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ni.prototype,"overlayTextStyle",null);_.S([_.GO("overlayColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ni.prototype,"overlayColorChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Ni);
_.d(Ni,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(A6I!==void 0)return A6I;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return A6I=Y},{mode:1});var oF1;var jJ=function(){var Y=_.Z.apply(this,arguments)||this;Y.active=!1;return Y};
_.m(jJ,_.Z);jJ.prototype.computeIsSpinnerHidden=function(Y){return(Y==null?void 0:Y.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
jJ.prototype.computeOverlayIcon=function(Y){return(Y==null?void 0:Y.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(Y==null?void 0:Y.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],jJ.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],jJ.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],jJ.prototype,"active",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],jJ);
_.d(jJ,"ytd-thumbnail-overlay-downloading-renderer",function(){if(oF1!==void 0)return oF1;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return oF1=Y},{mode:1});var ifX;var V7=function(){return _.Z.apply(this,arguments)||this};
_.m(V7,_.Z);_.Uk.Object.defineProperties(V7.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],V7.prototype,"data",void 0);_.S([_.f("data.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],V7.prototype,"text",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],V7);
_.d(V7,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(ifX!==void 0)return ifX;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return ifX=Y},{mode:1});var RXR,whR=function(){if(RXR!==void 0)return RXR;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return RXR=Y};var lp=function(){return _.Z.apply(this,arguments)||this};
_.m(lp,_.Z);_.Uk.Object.defineProperties(lp,{template:{configurable:!0,enumerable:!0,get:function(){return whR()}}});
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],lp.prototype,"animateEqualizer",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],lp);_.$o()(lp,"ytd-thumbnail-overlay-equalizer",function(){return whR()},{allowedProps:["animateEqualizer"],
mode:1});var Zf4;var B7=function(){var Y=_.Z.apply(this,arguments)||this;Y.nowPlayingBadge=_.F("web_now_playing_badge");Y.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return Y};
_.m(B7,_.Z);B7.prototype.activeChanged=function(){var Y=this;_.F("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.sk(this,function(){_.$s(Y.hostElement,"yt-playlist-lockup-now-playing-active",Y)})};
B7.prototype.onMiniplayerPlayStateChanged=function(Y){var G,u=(G=_.z(_.Qq().currentEndpoint,_.ic))==null?void 0:G.videoId;this.isVideoPlaying=Y&&(_.F("web_limit_now_playing_animation_killswitch")||this.videoId===u)};
B7.prototype.activeChanged=B7.prototype.activeChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],B7.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],B7.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],B7.prototype,"isVideoPlaying",void 0);_.S([_.R(),_.V("design:type",String)],B7.prototype,"videoId",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],B7.prototype,"equalizerOnly",void 0);_.S([_.R(),_.V("design:type",Boolean)],B7.prototype,"isActive",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],B7.prototype,"nowPlayingBadge",void 0);_.S([_.GO("isActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B7.prototype,"activeChanged",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],B7);
_.d(B7,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(Zf4!==void 0)return Zf4;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Zf4=Y},{mode:1});var D0R;var $b=function(){return _.Z.apply(this,arguments)||this};
_.m($b,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],$b.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],$b);
_.d($b,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(D0R!==void 0)return D0R;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return D0R=Y},{mode:2});var hX4;var qi=function(){return _.Z.apply(this,arguments)||this};
_.m(qi,_.Z);qi.prototype.onDurationChanged=function(){var Y,G;_.l0(this.hostElement).querySelector("#progress").style.width=((G=(Y=this.data)==null?void 0:Y.percentDurationWatched)!=null?G:0)+"%"};
qi.prototype.onDurationChanged=qi.prototype.onDurationChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],qi.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],qi.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],qi.prototype,"isLive",void 0);_.S([_.GO("data.percentDurationWatched"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qi.prototype,"onDurationChanged",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],qi);
_.d(qi,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(hX4!==void 0)return hX4;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return hX4=Y},{mode:1});var d02;var sa=function(){var Y=_.Z.apply(this,arguments)||this;Y.bottomPanel=!1;Y.richGridOverlay=!1;Y.watchFeedOverlay=!1;Y.isCompact=!1;return Y};
_.m(sa,_.Z);sa.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Uk.Object.defineProperties(sa.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?void 0:(G=Y.icon)==null?void 0:G.iconType)==="PLAY_ALL"&&_.F("kevlar_system_icons")}}});
sa.prototype.widthChanged=sa.prototype.widthChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],sa.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Number)],sa.prototype,"width",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],sa.prototype,"bottomPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],sa.prototype,"richGridOverlay",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],sa.prototype,"watchFeedOverlay",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],sa.prototype,"isCompact",void 0);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],sa.prototype,"isIconFilled",null);_.S([_.GO("width","watchFeedOverlay"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sa.prototype,"widthChanged",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],sa);
_.d(sa,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(d02!==void 0)return d02;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return d02=Y},{mode:1});var bf_;var Sml=["CLIP","SHORTS"],c7=function(){var Y=_.Z.apply(this,arguments)||this;Y.animated=_.F("animated_live_badge_icon");Y.hasIcon=!1;Y.updateTimerIntervalId=0;Y.timeSinceLive=0;return Y};
_.m(c7,_.Z);_.H=c7.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 Y,G;return!!(((Y=this.data)==null?0:Y.icon)||((G=this.data)==null?0:G.text))};
_.H.initializeLiveBadgeTimer=function(){var Y=this,G,u=(G=this.liveBadgeData)==null?void 0:G.startTimestampSec;if(u&&this.canShowLiveBadgeTimer()){var O;G=Number((O=this.liveBadgeData)==null?void 0:O.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(u);this.updateTimerIntervalId=_.HK(function(){Y.canShowLiveBadgeTimer()?Y.timeSinceLive++:(Y.timeSinceLive=0,window.clearInterval(Y.updateTimerIntervalId))},G)}else this.timeSinceLive=0};
_.H.canShowLiveBadgeTimer=function(){var Y=Date.now(),G,u;return Y<(Number((G=this.liveBadgeData)==null?void 0:G.endTimestampSec)-1)*1E3&&Y>Number((u=this.liveBadgeData)==null?void 0:u.startTimestampSec)*1E3};
_.Uk.Object.defineProperties(c7.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.UYt(this.data,this.timeSinceLive):{}}},
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 Y;return(Y=this.data)==null?void 0:Y.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 Sml.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
c7.prototype.initializeLiveBadgeTimer=c7.prototype.initializeLiveBadgeTimer;c7.prototype.dataChanged=c7.prototype.dataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],c7.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],c7.prototype,"data",void 0);_.S([_.R({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],c7.prototype,"icon",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],c7.prototype,"animated",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.V("design:type",Boolean)],c7.prototype,"hideTimeStatus",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],c7.prototype,"hasIcon",void 0);_.S([_.R(),_.V("design:type",Object)],c7.prototype,"timeSinceLive",void 0);_.S([_.f("data","timeSinceLive"),_.V("design:type",Object),_.V("design:paramtypes",[])],c7.prototype,"badgeShapeData",null);
_.S([_.f("data","overlayType"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],c7.prototype,"hideBadgeShape",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],c7.prototype,"dataChanged",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.style"),_.V("design:type",Object),_.V("design:paramtypes",[])],c7.prototype,"overlayStyle",null);
_.S([_.f("data.liveBadgeData"),_.V("design:type",Object),_.V("design:paramtypes",[])],c7.prototype,"liveBadgeData",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.type"),_.V("design:type",Object),_.V("design:paramtypes",[])],c7.prototype,"overlayType",null);_.S([_.f("overlayType","overlayStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],c7.prototype,"useFilledIcon",null);
_.S([_.Ex("liveBadgeData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],c7.prototype,"initializeLiveBadgeTimer",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],c7);
_.d(c7,"ytd-thumbnail-overlay-time-status-renderer",function(){if(bf_!==void 0)return bf_;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return bf_=Y},{mode:2});var N5X;var Ua=function(){return _.Z.apply(this,arguments)||this};
_.m(Ua,_.Z);Ua.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"}}}}};
Ua.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(Y){if(this.hasPlaybackProgressBar)return{percentDurationWatched:Y.percentDurationWatched}};
Ua.prototype.computeHasPlaybackProgressBar=function(Y){return!!Y.percentDurationWatched&&Y.percentDurationWatched>0};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ua.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ua.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.V("design:type",Boolean)],Ua.prototype,"hasPlaybackProgressBar",void 0);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Ua);
_.d(Ua,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(N5X!==void 0)return N5X;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return N5X=Y},{mode:1});var jTE;var Vu2=_.D(function(Y){var G=Y.data;var u=Y.children;var O=function(){return!!G().doubleStack},Q=function(){return!!G().includeStackHeight};
return _.T("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!G().experimentEnabled}},_.T(_.X,{cond:G,
then:function(){var M={};return _.T(_.GY,null,_.T(_.X,{cond:Q,then:function(){var t={};return _.T("div",{class:_.s3("ytCollectionsStackSpacer",(t.ytCollectionsStackSpacerDoubleStack=O,t))})}}),_.T("div",{class:_.s3((M.ytCollectionsStackRelativeStack=Q,M))},_.T(_.X,{cond:O,
then:function(){var t={};return _.T("div",{class:_.s3("ytCollectionsStackCollectionStack2",function(){return G().customClassName2ndStack},(t.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return G().enableResponsiveMode},t)),
style:_.Yh({"background-color":function(){return JOI(G())}})})}}),_.T("div",{class:_.s3("ytCollectionsStackCollectionStack1",function(){return G().customClassName1stStack},function(){return vvY(G().thumbnailSize?G().thumbnailSize:"medium")}),
style:_.Yh({"background-color":function(){return JOI(G())}})}),u))}}))},"Ha");_.hR(Vu2,"yt-collections-stack",{props:{data:_.AC}});var v7=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};Y.webModernCollections=!1;Y.isSearch=!1;Y.isDoubleStack=!1;Y.thumbnailSize="medium";return Y};
_.m(v7,_.Z);_.H=v7.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(Y){if(Y!=null&&Y.thumbnailRenderer){var G=Y.thumbnailRenderer,u;if((u=G.playlistVideoThumbnailRenderer)==null?0:u.thumbnail)return G.playlistVideoThumbnailRenderer.thumbnail;var O;if((O=G.playlistCustomThumbnailRenderer)==null?0:O.thumbnail)return G.playlistCustomThumbnailRenderer.thumbnail;Y=Y.thumbnailRenderer;var Q;if((Q=Y.showCustomThumbnailRenderer)==null?0:Q.thumbnail)return Y.showCustomThumbnailRenderer.thumbnail}};
_.H.computeOverlayColor=function(Y){var G,u;if((G=this.getThumbnailDetails(Y))==null?0:(u=G.darkColorPalette)==null?0:u.section2Color)return this.getThumbnailDetails(Y).darkColorPalette.section2Color;var O;return(O=this.getThumbnailDetails(Y))==null?void 0:O.sampledThumbnailColor};
_.H.computeWebModernCollections=function(Y){if(Y==null||!Y.thumbnailOverlays)return!1;Y=_.E(Y.thumbnailOverlays);for(var G=Y.next();!G.done;G=Y.next()){var u=void 0;if((u=G.value)==null?0:u.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.H.computeNavigationEndpoint=function(Y){return R91(Y==null?void 0:Y.navigationEndpoint)};
_.Uk.Object.defineProperties(v7.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:Y==null?void 0:Y.sampledThumbnailColor,vibrantColorPalette:Y==null?void 0:Y.vibrantColorPalette,darkColorPalette:Y==null?void 0:Y.darkColorPalette,experimentEnabled:!0}}}});
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],v7.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(vj4),_.V("design:type",Object)],v7.prototype,"ytdThumbnailBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],v7.prototype,"componentBehavior",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],v7.prototype,"watchFeedThumbnail",void 0);_.S([_.R(),_.V("design:type",Number)],v7.prototype,"customThumbnailSize",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],v7.prototype,"hideAria",void 0);_.S([_.R(),_.V("design:type",Object)],v7.prototype,"data",void 0);_.S([_.R({computed:"computeOverlayColor(data)"}),_.V("design:type",Object)],v7.prototype,"overlayColor",void 0);
_.S([_.R({computed:"computeWebModernCollections(data)"}),_.V("design:type",Object)],v7.prototype,"webModernCollections",void 0);_.S([_.R({computed:"computeNavigationEndpoint(data)"}),_.V("design:type",Object)],v7.prototype,"computedNavigationEndpoint",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],v7.prototype,"isSearch",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],v7.prototype,"isDoubleStack",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],v7.prototype,"thumbnailSize",void 0);_.S([_.f("data","isDoubleStack","thumbnailSize"),_.V("design:type",Object),_.V("design:paramtypes",[])],v7.prototype,"collectionStack",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],v7);
_.d(v7,"ytd-playlist-thumbnail",function(){if(jTE!==void 0)return jTE;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return jTE=Y},{mode:2});var l3k;_.hR(_.D(function(Y){return _.T("yt-text-view-model",{class:_.s3("ytTextViewModelHost")},_.T(_.eO,{text:function(){return Y.data().text}}))},"Ia"),"yt-text-view-model",{props:{data:_.AC}});var Jl=function(){var Y=_.Z.apply(this,arguments)||this;Y.noEndpoints=!1;Y.amsterdamPostMvp=_.F("web_amsterdam_post_mvp_playlists");Y.badges=[];Y.transferState="TRANSFER_STATE_UNKNOWN";return Y};
_.m(Jl,_.Z);_.H=Jl.prototype;_.H.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.H.getMetadata=function(Y){if(!Y)return[];var G=[],u=Y.shortViewCountText||Y.viewCountText;u&&G.push(_.Ri(u));Y.publishedTimeText&&G.push(_.Ri(Y.publishedTimeText));Y.upcomingEventData&&Y.upcomingEventData.upcomingEventText&&G.push(_.gw(_.Ri(Y.upcomingEventData.upcomingEventText),Number(Y.upcomingEventData.startTime)));return G};
_.H.observeDataForBylineSeparator=function(){this.data&&_.$3(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=_.k3(this.metadataColor)};
_.H.getSimpleString=function(Y){return _.Ri(Y)};
_.H.isBylineHidden=function(Y){return this.noByline||!((Y==null?0:Y.longBylineText)||(Y==null?0:Y.shortBylineText))};
_.H.isMetadataHidden=function(Y){var G;return((G=this.getMetadata(Y))==null?void 0:G.length)===0};
_.H.isBylineMetadataSeparatorHidden=function(Y){return this.isMetadataHidden(Y)||!this.shouldShowVideoInfo};
_.H.isLongByline=function(Y,G){return G&&!(Y==null||!Y.longBylineText)};
_.Uk.Object.defineProperties(Jl.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var Y;return this.amsterdamPostMvp&&!((Y=this.data)==null||!Y.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}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.F("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Jl.prototype.metadataColorChanged=Jl.prototype.metadataColorChanged;Jl.prototype.observeDataForBylineSeparator=Jl.prototype.observeDataForBylineSeparator;_.S([_.x(_.me),_.V("design:type",Object)],Jl.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Jl.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Jl.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Jl.prototype,"noEndpoints",void 0);
_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Jl.prototype,"isSlimShort",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Jl.prototype,"radioMeta",void 0);_.S([_.R({selector:_.zS}),_.V("design:type",Object)],Jl.prototype,"isGridViewEnabled",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Jl.prototype,"richMeta",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Jl.prototype,"amsterdamPostMvp",void 0);
_.S([_.R(),_.V("design:type",Boolean)],Jl.prototype,"noByline",void 0);_.S([_.R({computed:"isLongByline(data, radioMeta)"}),_.V("design:type",Boolean)],Jl.prototype,"longByline",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Jl.prototype,"truncateMetadataLine",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Jl.prototype,"miniMode",void 0);_.S([_.R(),_.V("design:type",Number)],Jl.prototype,"metadataColor",void 0);
_.S([_.R(),_.V("design:type",Array)],Jl.prototype,"badges",void 0);_.S([_.R({selector:_.mZ,selectorArgs:["data.videoId"]}),_.V("design:type",String)],Jl.prototype,"transferState",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Jl.prototype,"isDownloading",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Jl.prototype,"typographyBump",void 0);_.S([_.Ox("#metadata-line"),_.V("design:type",HTMLElement)],Jl.prototype,"metadataLine",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jl.prototype,"observeDataForBylineSeparator",null);_.S([_.GO("metadataColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jl.prototype,"metadataColorChanged",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Jl.prototype,"shouldShowVideoInfo",null);
_.S([_.f("badges"),_.V("design:type",String),_.V("design:paramtypes",[])],Jl.prototype,"inlineBadgeClass",null);_.S([_.f("longByline"),_.V("design:type",String),_.V("design:paramtypes",[])],Jl.prototype,"longBylineClass",null);_.S([_.f("data","longByline"),_.V("design:type",Object),_.V("design:paramtypes",[])],Jl.prototype,"bylineText",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Jl.prototype,"hasAttributedBylineText",null);
_.S([_.f("isGridViewEnabled","data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Jl.prototype,"watchFeedBigThumbs",null);_.S([_.pD({is:"ytd-video-meta-block",disableElementRegistration:!0})],Jl);
_.d(Jl,"ytd-video-meta-block",function(){if(l3k!==void 0)return l3k;var Y=document.createElement("template");_.r(Y,'\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    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" 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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return l3k=Y},{mode:2});_.Px("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var Y8=function(){var Y=_.Z.apply(this,arguments)||this;Y.displayItemCount=2;Y.isBackstagePlaylist=!1;Y.isPostCompactPlaylist=!1;Y.shouldShowChannelThumbnail=!1;return Y};
_.m(Y8,_.Z);_.H=Y8.prototype;_.H.computeFirstVideos=function(Y,G){return Y===void 0||G===void 0?[]:Y.slice(0,G)};
_.H.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var Y=this.data.thumbnailRenderer;Y.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",Y.playlistVideoThumbnailRenderer.thumbnail);Y.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",Y.playlistCustomThumbnailRenderer.thumbnail)}};
_.H.computeThumbnailHeight=function(Y,G,u,O,Q){return O?Q==="BIG"?280:Q==="MASSIVE"?337:234:u?240:G?72:Y?118:138};
_.H.computeThumbnailWidth=function(Y,G,u,O,Q){return O?Q==="MEDIUM"?450:Q==="BIG"?500:Q==="MASSIVE"?600:420:u?360:G?128:Y?210:246};
_.H.computeUseBiggerThumbs=function(Y){return Y&&_.F("enable_desktop_search_bigger_thumbs")};
_.H.computeShouldShowChannelThumbnail=function(Y,G){return Y&&!(G==null||!G.channelThumbnail)};
_.Uk.Object.defineProperties(Y8.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
Y8.prototype.dataChanged=Y8.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],Y8.prototype,"ytdLockupBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Y8.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Y8.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Y8.prototype,"displayItemCount",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Y8.prototype,"isBackstagePlaylist",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Y8.prototype,"isPostCompactPlaylist",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Y8.prototype,"isSearch",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.V("design:type",Boolean)],Y8.prototype,"useBiggerThumbs",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.Yg("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],Y8.prototype,"biggerThumbsStyle",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Y8.prototype,"isDownloads",void 0);_.S([_.R({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.V("design:type",Object)],Y8.prototype,"shouldShowChannelThumbnail",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Y8.prototype,"dataChanged",null);
_.S([_.f("isSearch"),_.V("design:type",String),_.V("design:paramtypes",[])],Y8.prototype,"stackThumbnailSize",null);_.S([_.pD({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Y8);
_.d(Y8,"ytd-playlist-renderer",function(){if(f34===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);f34=Y}Y=f34;return Y},{mode:1});var B5E;var $02;var G$=function(){var Y=_.Z.apply(this,arguments)||this;Y.startX=0;return Y};
_.m(G$,_.Z);G$.prototype.onEndpointMouseDown=function(Y){this.startX=Y.clientX};
G$.prototype.onEndpointClick=function(Y){this.startX!==Y.clientX&&(Y.preventDefault(),Y.stopPropagation())};
G$.prototype.computeObjectFit=function(Y){return Y==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||Y==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||Y==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
G$.prototype.computeCardStyle=function(Y){return Y?Y.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Uk.Object.defineProperties(G$.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?void 0:(G=Y.searchRefinementCardRendererStyle)==null?void 0:G.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],G$.prototype,"data",void 0);_.S([_.R({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.V("design:type",Number)],G$.prototype,"objectFit",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.V("design:type",String)],G$.prototype,"cardStyle",void 0);
_.S([_.R({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],G$.prototype,"roundContainer",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],G$.prototype,"isAlbumCard",null);_.S([_.f("data","isAlbumCard"),_.V("design:type",Object),_.V("design:paramtypes",[])],G$.prototype,"collectionStack",null);_.S([_.pD({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],G$);
_.d(G$,"ytd-search-refinement-card-renderer",function(){if($02!==void 0)return $02;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return $02=Y},{mode:1});var qmI;var u2=function(){var Y=_.Z.apply(this,arguments)||this;Y.isRichGrid=!1;return Y};
_.m(u2,_.Z);_.S([_.R(),_.V("design:type",Object)],u2.prototype,"data",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],u2.prototype,"componentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],u2.prototype,"ytdReduxBehavior",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],u2.prototype,"isRichGrid",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.kG}),_.V("design:type",Boolean)],u2.prototype,"miniMode",void 0);
_.S([_.pD({is:"ytd-game-details-renderer",disableElementRegistration:!0})],u2);
_.d(u2,"ytd-game-details-renderer",function(){if(qmI!==void 0)return qmI;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return qmI=Y},{mode:1});var sT2;var c61;var OM=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return Y};
_.m(OM,_.Z);_.H=OM.prototype;_.H.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.H.currentStateData=function(Y){var G=Y||this.data;return G&&G.states&&G.currentStateId!=null?G.states.find(function(u){return u.stateId===G.currentStateId})||null:null};
_.H.currentStateRendererData=function(Y){return(Y=this.currentStateData(Y))&&Y.state&&Y.state.buttonRenderer?Y.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(Y){Y=this.currentStateRendererData(Y);var G;return(Y==null?0:(G=Y.icon)==null?0:G.iconType)?Y.icon.iconType.toLowerCase():null};
_.H.computeAccessibility=function(Y){return(Y=this.currentStateRendererData(Y))&&Y.accessibilityData?Y.accessibilityData.accessibilityData||null:null};
_.H.computeButtonClass=function(Y){var G=this.currentStateRendererData(Y);if(!G)return"";Y="";var u=G.style;u&&(Y+=u.toLowerCase().replace(/_/g,"-")+" ");(G=G.size)&&(Y+=G.toLowerCase().replace(/_/g,"-")+" ");return Y.trim()};
_.H.computeServiceEndpoint=function(Y){if(!Y)return null;var G=Y&&Y.serviceEndpoint,u=this.get("command.commandMetadata.webCommandMetadata.sendPost",Y);return G?G:u&&Y.command?Y.command:null};
_.H.computeBellMenuItemParams=function(Y){var G;Y=(G=_.z(Y==null?void 0:Y.command,_.Jv))==null?void 0:G.commands;if(!Y||Y.length===0)return null;G=_.z(Y[0],_.tw);var u,O;return(G==null?0:(u=G.popup)==null?0:(O=u.menuPopupRenderer)==null?0:O.items)?G.popup.menuPopupRenderer.items.map(function(Q){return Q.menuServiceItemRenderer.trackingParams}):null};
_.H.handleBellMenuOpenSelectedAction=function(Y){var G=Y.trackingParams,u=this.computeBellMenuItemParams(this.data);this.data&&G&&u&&u.includes(G)&&this.ytRenderButtonBehavior._setButtonIcon(Y.icon.iconType.toLowerCase())};
_.H.onYtServiceRequestCompleted=function(Y,G){(Y=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",G))&&this.set("data",Y)};
_.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 Y=this.currentStateRendererData(this.data);Y&&this.ytRendererBehavior.logExplicitClick(Y)}};
OM.prototype.onYtServiceRequestError=OM.prototype.onYtServiceRequestError;OM.prototype.onYtServiceRequestCompleted=OM.prototype.onYtServiceRequestCompleted;OM.prototype.stateChanged=OM.prototype.stateChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],OM.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.x(MH.YtRenderButtonBehavior),_.V("design:type",Object)],OM.prototype,"ytRenderButtonBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],OM.prototype,"data",void 0);_.S([_.Ex("data","data.currentStateId"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OM.prototype,"stateChanged",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],OM.prototype,"onYtServiceRequestCompleted",null);_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],OM.prototype,"onYtServiceRequestError",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],OM);
_.d(OM,"ytd-subscription-notification-toggle-button-renderer",function(){if(c61!==void 0)return c61;var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return c61=Y},{mode:1});var U01;var QP=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};Y.tapHandler=function(){if(Y.data){var G=Y.currentStateRendererData();G&&Y.ytRendererBehavior.logExplicitClick(G)}};
return Y};
_.m(QP,_.Z);_.H=QP.prototype;_.H.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.H.currentStateData=function(){var Y=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(G){return G.stateId===Y.data.currentStateId})||null:null};
_.H.currentStateRendererData=function(){var Y=this.currentStateData();return Y&&Y.state&&Y.state.buttonRenderer?Y.state.buttonRenderer:null};
_.H.computeAccessibilityLabel=function(){var Y,G,u;return(Y=this.currentStateRendererData())==null?void 0:(G=Y.accessibilityData)==null?void 0:(u=G.accessibilityData)==null?void 0:u.label};
_.H.computeBellMenuItemParams=function(){var Y,G,u=(G=_.z((Y=this.data)==null?void 0:Y.command,_.Jv))==null?void 0:G.commands;if(!u||u.length===0)return null;Y=_.z(u[0],_.tw);var O,Q;return(Y==null?0:(O=Y.popup)==null?0:(Q=O.menuPopupRenderer)==null?0:Q.items)?Y.popup.menuPopupRenderer.items.map(function(M){return M.menuServiceItemRenderer.trackingParams}):null};
_.H.handleBellMenuOpenSelectedAction=function(Y){var G=Y.trackingParams,u=this.computeBellMenuItemParams();if(this.data&&G&&u&&u.includes(G)&&(Y==null||!Y.isDisabled)){var O;((O=_.z(Y.serviceEndpoint,_.Gb))==null?void 0:O.signal)!=="CLIENT_SIGNAL"&&(this.icon=Y.icon.iconType)}};
_.H.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.H.onYtServiceRequestCompleted=function(Y,G){if(Y=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",G))this.icon=void 0,this.set("data",Y)};
_.H.onYtServiceRequestError=function(){this.icon=void 0};
_.Uk.Object.defineProperties(QP.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y=this.data,G=this.textLabel,u=this.hostElement,O=this.computeAccessibilityLabel(),Q=this.tapHandler,M=this.isOverlay?"overlay":"mono",t=(Y==null?0:Y.disableButton)?"disabled":"active";G=G?_.P3(G):void 0;return{style:M,type:"tonal",state:t,size:"M",focused:!1,formattedButtonText:G,iconPosition:"leading-trailing",onTap:GEa(Y,Q,u),accessibilityLabel:O}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var Y=this.currentStateRendererData(),G,u,O=(u=this.icon)!=null?u:Y==null?void 0:(G=Y.icon)==null?void 0:G.iconType;if(O)return _.Ux(O)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=(Y=this.data)==null?void 0:(G=Y.secondaryIcon)==null?void 0:G.iconType;if(u)return _.Ux(u)}}});
QP.prototype.onYtServiceRequestError=QP.prototype.onYtServiceRequestError;QP.prototype.onYtServiceRequestCompleted=QP.prototype.onYtServiceRequestCompleted;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],QP.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],QP.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],QP.prototype,"textLabel",void 0);
_.S([_.R(),_.V("design:type",String)],QP.prototype,"icon",void 0);_.S([_.R(),_.V("design:type",Boolean)],QP.prototype,"isOverlay",void 0);_.S([_.f("data.*","textLabel"),_.V("design:type",Object),_.V("design:paramtypes",[])],QP.prototype,"computedButtonShape",null);_.S([_.f("data.*","icon"),_.V("design:type",Object),_.V("design:paramtypes",[])],QP.prototype,"computedIcon",null);_.S([_.f("computedIcon"),_.V("design:type",Object),_.V("design:paramtypes",[])],QP.prototype,"computedAnimateIcon",null);
_.S([_.f("data.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],QP.prototype,"computedSecondaryIcon",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],QP.prototype,"onYtServiceRequestCompleted",null);_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],QP.prototype,"onYtServiceRequestError",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],QP);_.d(QP,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(U01!==void 0)return U01;var Y=document.createElement("template");_.r(Y,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return U01=Y},{mode:2});var vFl;_.hR(vvU,"yt-animated-action",{props:{backgroundLottieRef:_.AC,foregroundLottieRef:_.AC,wrapperClass:_.AC,disableAnimation:_.AC},unsafeExternallySettableAttributes:new Set(["key"])});var M8=function(){var Y=_.Z.apply(this,arguments)||this;Y.animatedActionEnabled=_.F("web_animated_actions");Y.foregroundLottieRef={};Y.backgroundLottieRef={};Y.forceIconOnly=!1;Y.showTextWhileAnimating=!1;Y.keyboardFocused=!1;Y.isAnimating=!1;Y.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return Y};
_.m(M8,_.Z);_.H=M8.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(Y,G){(this.get("endpoint.subscribeEndpoint",G)||this.get("endpoint.unsubscribeEndpoint",G))&&this.updateSubscriptionState(!this.subscribed)};
_.H.onYtServiceRequestCompleted=function(Y,G){(Y=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",G.data))&&this.bellButton&&(this.bellButton.data=Y)};
_.H.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.cm(this.hostElement)};
_.H.onPlayerSubscribe=function(Y){this.isCompactRed()||Y!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.H.onPlayerUnsubscribe=function(Y){this.isCompactRed()||Y!==this.data.channelId||this.updateSubscriptionState(!1)};
_.H.handleUpdateSubscribeButtonAction=function(Y){Y=_.z(Y,do2);var G;Y&&Y.channelId===((G=this.data)==null?void 0:G.channelId)&&this.updateSubscriptionState(!!Y.subscribed)};
_.H.computeButtonStyle=function(Y){return this.get("style.styleType",Y)||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(Y){if(Y!==this.subscribed){this.set("data.subscribed",Y);var G,u=(G=this.data)==null?void 0:G.subscribedEntityKey;u&&this.ytdReduxBehavior.dispatch(_.t$("subscriptionStateEntity",u,{key:u,subscribed:Y}));this.isCompactRed()||_.$s(this.hostElement,"yt-subscription-changed",Y);Y||(_.qZ(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!Y),Y&&this.hasBellButton&&this.startAnimation())}};
_.H.startAnimation=function(){var Y=this;if(!this.isAnimating){var G=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var u;(u=this.backgroundLottieRef.lottieEl)==null||u.goToAndPlay(0);var O;(O=this.foregroundLottieRef.lottieEl)==null||O.goToAndPlay(0);_.AN.addJob(function(){Y.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.AN.addJob(function(){Y.updateContainerToFitContent(!!Y.subscribed,!0)},2,1500);
_.AN.addJob(function(){Y.isAnimating=!1},2,G)}};
_.H.maybeAnimateBellIcon=function(){var Y=_.Bm(this.hostElement).querySelector("yt-animated-icon");if(Y){var G;(G=Y.animationRef.lottieEl)==null||G.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 Y;this.unsubscribedWidth=(Y=this.subscribeButtonShape)==null?void 0:Y.getBoundingClientRect().width}var G;this.subscribedWidth=(G=this.bellButton)==null?void 0:G.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.H.updateContainerToFitContent=function(Y,G){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(Y?(Y=this.subscribedWidth,G=this.isAnimating&&!G,this.subscribedIconOnlyWidth===void 0||G||(Y=this.subscribedIconOnlyWidth),this.hostElement.style.width=Y+"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 Y=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 G;Y.subscribedIconOnlyWidth=(G=Y.bellButton)==null?void 0:G.getBoundingClientRect().width;requestAnimationFrame(function(){if(Y.bellButton){var u;Y.bellButton.textLabel=
(u=Y.data)==null?void 0:u.subscribedButtonText}})})))};
_.Uk.Object.defineProperties(M8.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 Y;return(Y=this.data)==null?void 0:Y.subscribedButtonText}var G;return this.forceIconOnly?void 0:(G=this.data)==null?void 0:G.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=((Y=this.data)==null?void 0:(G=Y.timedAnimationData)==null?void 0:G.animationTiming)||[];return{uniqueId:"subscribe",timings:u,enabled:u.length>0&&!this.subscribed,experimentEnabled:u.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var Y;return!this.subscribed&&((Y=this.data)==null?void 0:Y.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 Y={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var G=Y.renderer;var u=Y.element;var O=Y.subscribed;var Q=Y.commandController;var M=Y.isOverlay;Y=Y.stopPropagation;var t=MuU(G,O);M&&(t.style="overlay");M=Object;var K=M.assign,L;a:switch((L=G.style)==null?void 0:L.styleType){case "COMPACT_GRAY":case "COMPACT_RED":L={size:"S"};break a;default:L={size:"M"}}var g=QTt(G,
O);var P=(P=O?G.subscribedButtonText:G.unsubscribedButtonText)?_.P3(P):void 0;return K.call(M,{},t,L,{focused:!1,toggled:O,accessibilityLabel:g,formattedButtonText:P,onTap:Of1(G,O,u,Q,Y)})}}}});
M8.prototype.onMouseDown=M8.prototype.onMouseDown;M8.prototype.onDataChanged=M8.prototype.onDataChanged;M8.prototype.observedSubscribed=M8.prototype.observedSubscribed;M8.prototype.onYtServiceRequestCompleted=M8.prototype.onYtServiceRequestCompleted;M8.prototype.onYtServiceRequestSent=M8.prototype.onYtServiceRequestSent;M8.prototype.maybeUpdateBellButtonText=M8.prototype.maybeUpdateBellButtonText;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],M8.prototype,"ytComponentBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],M8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],M8.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],M8.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],M8.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],M8.prototype,"data",void 0);
_.S([_.R({selectorArgs:["data.subscribedEntityKey"],selector:xYg}),_.V("design:type",Object)],M8.prototype,"subscriptionStateEntity",void 0);_.S([_.R({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.V("design:type",Boolean)],M8.prototype,"subscribed",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],M8.prototype,"branded",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],M8.prototype,"animatedActionEnabled",void 0);
_.S([_.R(),_.V("design:type",Object)],M8.prototype,"foregroundLottieRef",void 0);_.S([_.R(),_.V("design:type",Object)],M8.prototype,"backgroundLottieRef",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],M8.prototype,"overlayButton",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.V("design:type",Object)],M8.prototype,"buttonStyle",void 0);_.S([_.R(),_.V("design:type",Object)],M8.prototype,"forceIconOnly",void 0);
_.S([_.R(),_.V("design:type",Object)],M8.prototype,"showTextWhileAnimating",void 0);_.S([_.R({value:function(){return!!_.sH().resolve(_.q3(_.SO))&&_.F("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.V("design:type",Boolean)],M8.prototype,"useKeyboardFocused",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],M8.prototype,"keyboardFocused",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],M8.prototype,"isAnimating",void 0);_.S([_.f("data.notificationPreferenceButton.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],M8.prototype,"hasBellButton",null);
_.S([_.GO("subscribedButtonText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],M8.prototype,"maybeUpdateBellButtonText",null);_.S([_.f("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],M8.prototype,"subscribedButtonText",null);_.S([_.f("data.timedAnimationData.animationTiming","subscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],M8.prototype,"smartimationSettings",null);
_.S([_.R({reflectToAttribute:!0}),_.f("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],M8.prototype,"subscribeButtonHidden",null);_.S([_.R({reflectToAttribute:!0}),_.f("subscribed","hasBellButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],M8.prototype,"subscribeButtonInvisible",null);
_.S([_.R({reflectToAttribute:!0}),_.f("subscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],M8.prototype,"unsubscribeButtonHidden",null);_.S([_.Ox("ytd-subscription-notification-toggle-button-renderer-next"),_.V("design:type",Object)],M8.prototype,"bellButton",void 0);_.S([_.Ox("#subscribe-button-shape"),_.V("design:type",HTMLElement)],M8.prototype,"subscribeButtonShape",void 0);
_.S([_.f("overlayButton","subscribed","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],M8.prototype,"buttonShape",null);_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],M8.prototype,"onYtServiceRequestSent",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],M8.prototype,"onYtServiceRequestCompleted",null);
_.S([_.GO("subscribed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],M8.prototype,"observedSubscribed",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],M8.prototype,"onDataChanged",null);_.S([_.Yo("mousedown"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],M8.prototype,"onMouseDown",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],M8);
_.d(M8,"ytd-subscribe-button-renderer",function(){if(vFl!==void 0)return vFl;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return vFl=Y},{mode:1});var H9=function(){var Y=_.Z.apply(this,arguments)||this;Y.isRichGrid=!1;return Y};
_.m(H9,_.Z);H9.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"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],H9.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],H9.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],H9.prototype,"isRichGrid",void 0);_.S([_.pD({is:"ytd-game-card-renderer",disableElementRegistration:!0})],H9);
_.d(H9,"ytd-game-card-renderer",function(){if(sT2!==void 0)return sT2;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return sT2=Y},{mode:1});var EM={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.F("defer_menus")&&!Wxe?0:void 0,waitForSignal:"eocs"};var J6R;var Yd4;var tZ=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return Y};
_.m(tZ,_.Z);_.H=tZ.prototype;_.H.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.H.onSeriesReminderStateEntityChange=function(){var Y,G,u;((Y=this.eventReminderStateEntity)==null?0:Y.key)&&((G=this.seriesReminderStateEntity)==null?void 0:G.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((u=this.eventReminderStateEntity)==null?void 0:u.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.t$("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 Y;this.updateReminderStateEntitiesFromButtonState((Y=this.data)==null?void 0:Y.currentState)};
_.H.handleUpdateUpcomingEventReminderButtonStateCommand=function(Y){if(Y=_.z(Y,b82)){var G,u=(G=this.data)==null?void 0:G.targetId;u&&Y.targetId===u&&_.CD(this.updateReminderStateEntitiesFromButtonState.bind(this,Y.state))}};
_.H.getButtonStateFromReminderState=function(){var Y;if(((Y=this.seriesReminderStateEntity)==null?void 0:Y.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var G;if(((G=this.eventReminderStateEntity)==null?void 0:G.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var u,O;if(((u=this.seriesReminderStateEntity)==null?void 0:u.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((O=this.eventReminderStateEntity)==
null?void 0:O.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var Q;return(Q=this.data)==null?void 0:Q.currentState};
_.H.updateReminderStateEntitiesFromButtonState=function(Y){if(Y){switch(Y){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":Y="UPCOMING_EVENT_REMINDER_STATE_NONE";var G="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":Y="UPCOMING_EVENT_REMINDER_STATE_SINGLE";G="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":Y="UPCOMING_EVENT_REMINDER_STATE_NONE";G="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var u;
((u=this.eventReminderStateEntity)==null?0:u.key)&&this.ytdReduxBehavior.dispatch(_.t$("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:Y})));var O;((O=this.seriesReminderStateEntity)==null?0:O.key)&&this.ytdReduxBehavior.dispatch(_.t$("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:G})))}};
_.Uk.Object.defineProperties(tZ.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var Y=this.getButtonStateFromReminderState(),G,u;if(Y&&((G=this.data)==null?0:(u=G.states)==null?0:u.length))for(G=_.E(this.data.states),u=G.next();!u.done;u=G.next()){u=u.value;var O=void 0;if(((O=_.z(u,SoE))==null?void 0:O.state)===Y)return _.z(u,SoE)}}}});
tZ.prototype.onYtServiceRequestError=tZ.prototype.onYtServiceRequestError;tZ.prototype.onYtServiceRequestCompleted=tZ.prototype.onYtServiceRequestCompleted;tZ.prototype.onSeriesReminderStateEntityChange=tZ.prototype.onSeriesReminderStateEntityChange;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],tZ.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],tZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],tZ.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],tZ.prototype,"data",void 0);_.S([_.R({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:CeT}),_.V("design:type",Object)],tZ.prototype,"eventReminderStateEntity",void 0);
_.S([_.R({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(Y,G){return _.v2(Y.entities,"sportsSeriesReminderStateEntity",G)}}),
_.V("design:type",Object)],tZ.prototype,"seriesReminderStateEntity",void 0);_.S([_.f("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],tZ.prototype,"currentButtonStateRenderer",null);_.S([_.GO("seriesReminderStateEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tZ.prototype,"onSeriesReminderStateEntityChange",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tZ.prototype,"onYtServiceRequestCompleted",null);_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tZ.prototype,"onYtServiceRequestError",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],tZ);
_.d(tZ,"ytd-upcoming-event-reminder-button-renderer",function(){if(Yd4!==void 0)return Yd4;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
return Yd4=Y},{mode:1});var GfR;var Kr=function(){return _.Z.apply(this,arguments)||this};
_.m(Kr,_.Z);Kr.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Uk.Object.defineProperties(Kr.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(_.F("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Kr.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Kr.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Kr.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Kr.prototype,"shelfDismissal",void 0);_.S([_.f("data.responseText"),_.V("design:type",Object),_.V("design:paramtypes",[])],Kr.prototype,"text",null);
_.S([_.f("data.responseText"),_.V("design:type",Object),_.V("design:paramtypes",[])],Kr.prototype,"textAriaLabel",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Kr);
_.d(Kr,"ytd-notification-multi-action-renderer",function(){if(GfR!==void 0)return GfR;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return GfR=Y},{mode:1});var uCE;var aW=function(){return _.Z.apply(this,arguments)||this};
_.m(aW,_.Z);aW.prototype.ready=function(){var Y=this;_.l0(this.hostElement).querySelector("#undo").addEventListener("tap",function(){Y.onUndoTap()})};
aW.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.sH().resolve(_.rH).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],aW.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],aW);
_.d(aW,"ytd-notification-text-renderer",function(){if(uCE!==void 0)return uCE;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return uCE=Y},{mode:1});var OtM;var T$=function(){var Y=_.Z.apply(this,arguments)||this;Y.mouseOverDelayJobId=0;Y.fadeInImageDelayJobId=0;Y.startTimeMs=-1;Y.loadingStartTimeMs=-1;Y.loadingEndTimeMs=-1;Y.hasVideoPreview=!1;return Y};
_.m(T$,_.Z);_.H=T$.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 Y=this;this.csn=_.FA();_.zb("fmth");_.AN.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.jk(_.AN,function(){Y.loadingStartTimeMs=(0,_.GC)();var G=_.l0(Y.hostElement).querySelector("#thumbnail");G.complete?Y.displayMouseOverImage():G.addEventListener("load",_.Jh(Y,Y.displayMouseOverImage))},150):_.$3(_.l0(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 Y=this.videoId,G=this.csn,u=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,O=this.startTimeMs,Q=this.hasVideoPreview,M=_.Kd(this.trackingParams),t={isMovingThumbnail:Q};Q&&O>0&&(u>0&&(t.movingThumbnailLoadingDurationMs=Math.round(u)),t.durationHoveredMs=Math.round((0,_.GC)()-O));Y&&(t.videoId=Y);_.wS(G,M,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:t});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.H.removeVideoPreview=function(){_.AN.cancelJob(this.mouseOverDelayJobId);_.AN.cancelJob(this.fadeInImageDelayJobId);var Y=_.l0(this.hostElement).querySelector("#thumbnail");_.$3(Y,"fade-in",!1);Y.removeEventListener("load",_.Jh(this,this.displayMouseOverImage));Y=_.l0(this.hostElement).querySelector("#play");_.$3(Y,"fade-in",!1);_.$3(Y,"show",!1)};
_.H.displayMouseOverImage=function(){var Y=_.l0(this.hostElement).querySelector("#thumbnail"),G=_.l0(this.hostElement).querySelector("#play");this.isImageAvailable(Y)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.GC)(),this.startTimeMs=(0,_.GC)(),this.fadeInImageDelayJobId=_.jk(_.AN,function(){_.$3(Y,"fade-in",!0)},50)):_.$3(G,"fade-in",!0)};
_.H.computeThumbnail=function(Y,G){var u;Y&&Y.movingThumbnailDetails&&Y.movingThumbnailDetails.thumbnails&&G?u=_.dH(Y.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):u=G?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(u)return _.cs(u)};
_.H.isImageAvailable=function(Y){return!(!Y.src||Y.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||Y.naturalWidth===120)};
T$.prototype.onTap=T$.prototype.onTap;T$.prototype.dataChanged=T$.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],T$.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],T$.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],T$.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],T$.prototype,"csn",void 0);_.S([_.R(),_.V("design:type",Object)],T$.prototype,"trackingParams",void 0);
_.S([_.R(),_.V("design:type",String)],T$.prototype,"videoId",void 0);_.S([_.R(),_.V("design:type",Boolean)],T$.prototype,"isAttachedAndDataSet",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T$.prototype,"dataChanged",null);_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T$.prototype,"onTap",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],T$);
_.d(T$,"ytd-moving-thumbnail-renderer",function(){if(OtM!==void 0)return OtM;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return OtM=Y},{mode:1});var QQU;_.G0=function(Y){this.hostElement=Y;this.eventSink=null;this.eventList=[]};
_.G0.prototype.shouldForward=function(){var Y,G;return(G=(Y=this.eventSink)==null?void 0:Y.isConnected)!=null?G:document.body.contains(this.eventSink)};
_.G0.prototype.start=function(Y,G){this.eventSink&&this.stop();for(var u=0;u<Y.length;u++)this.hostElement.addEventListener(Y[u],_.Jh(this,this.forwardEvent));var O;this.eventSink=(O=G.hostElement)!=null?O:G;this.eventList=Y};
_.G0.prototype.stop=function(){for(var Y=0;Y<this.eventList.length;Y++)this.hostElement.removeEventListener(this.eventList[Y],_.Jh(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.G0.prototype.forwardEvent=function(Y,G){this.shouldForward()&&(Y.stopPropagation(),this.eventSink instanceof Element?_.$s(this.eventSink,Y.type,G):_.R0(new _.I2("eventSink is not an element")))};_.Lr={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.G0(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(Y,G){this.forwarder_.start(Y,G)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var gY=function(){return _.Z.apply(this,arguments)||this};
_.m(gY,_.Z);_.H=gY.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=_.DE("HTML_DIR")==="rtl"?"right":"left"};
_.H.dataChanged=function(){this.popupOpen=!1};
_.H.computeAriaLabel=function(Y){return _.z(Y,GW2).label};
_.H.onTap=function(Y){Y.stopPropagation();Y.preventDefault();this.data.command&&_.sH().resolve(_.rH).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()};
gY.prototype.onPopupClosed=gY.prototype.onPopupClosed;gY.prototype.onPopupOpened=gY.prototype.onPopupOpened;gY.prototype.onTap=gY.prototype.onTap;gY.prototype.dataChanged=gY.prototype.dataChanged;_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],gY.prototype,"eventForwardingBehavior",void 0);_.S([_.x(_.LM),_.V("design:type",Object)],gY.prototype,"ironButtonState",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],gY.prototype,"componentBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],gY.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:-1}),_.V("design:type",Number)],gY.prototype,"tabindex",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.V("design:type",Object)],gY.prototype,"ariaLabel",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],gY.prototype,"disableTooltips",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],gY.prototype,"popupOpen",void 0);
_.S([_.R(),_.V("design:type",Element)],gY.prototype,"eventSink",void 0);_.S([_.Ox("#tooltip"),_.V("design:type",Object)],gY.prototype,"tooltip",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gY.prototype,"dataChanged",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],gY.prototype,"onTap",null);
_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gY.prototype,"onPopupOpened",null);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gY.prototype,"onPopupClosed",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],gY);
_.d(gY,"ytd-thumbnail-overlay-button-renderer",function(){if(QQU!==void 0)return QQU;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return QQU=Y},{mode:1});var MMR;var Xy=function(){return _.Z.apply(this,arguments)||this};
_.m(Xy,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Xy.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Xy.prototype,"disableAnimation",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Xy.prototype,"rounded",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Xy.prototype,"transparentBackground",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Xy.prototype,"noPadding",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Xy);
_.d(Xy,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(MMR!==void 0)return MMR;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return MMR=Y},{mode:1});var HtR;var P9=function(){return _.Z.apply(this,arguments)||this};
_.m(P9,_.Z);P9.prototype.computeIconPosition=function(Y){return this.get("iconPosition",Y)||null};
P9.prototype.computeIconStyle=function(Y){return this.get("iconStyle",Y)||null};
P9.prototype.computeIsIconStyleFilled=function(Y){if(!Y)return!1;var G;return Y.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((G=Y.icon)==null?void 0:G.iconType)==="ERROR_BLACK"};
_.S([_.R(),_.V("design:type",Object)],P9.prototype,"data",void 0);_.S([_.R({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.V("design:type",Object)],P9.prototype,"iconPosition",void 0);_.S([_.R({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.V("design:type",Object)],P9.prototype,"iconStyle",void 0);_.S([_.R({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],P9.prototype,"iconStyleFilled",void 0);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],P9);
_.d(P9,"ytd-thumbnail-overlay-icon-renderer",function(){if(HtR!==void 0)return HtR;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return HtR=Y},{mode:1});var EE1;var IW=function(){return _.Z.apply(this,arguments)||this};
_.m(IW,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],IW.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],IW);
_.d(IW,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(EE1!==void 0)return EE1;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return EE1=Y},{mode:1});var tMe;var k8=function(){var Y=_.Z.apply(this,arguments)||this;Y.isPreviewLoading=!1;return Y};
_.m(k8,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],k8.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],k8.prototype,"isPreviewLoading",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],k8);
_.d(k8,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(tMe!==void 0)return tMe;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return tMe=Y},{mode:1});var KkU;var nr=function(){return _.Z.apply(this,arguments)||this};
_.m(nr,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],nr.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],nr);
_.d(nr,"ytd-thumbnail-overlay-pinking-renderer",function(){if(KkU!==void 0)return KkU;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return KkU=Y},{mode:1});var a8k;var Fy=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableTooltips=!1;Y.isLoading=!1;Y.useExpandableTooltip=!1;Y.toggled=!1;Y.hovered=!1;Y.mouseoverDelayJobId=0;Y.toggleDelayJobId=0;Y.expandAnimationDelayJobId=0;return Y};
_.m(Fy,_.Z);_.H=Fy.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");_.l0(this.hostElement).querySelector("#tooltip").position=_.DE("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&&_.AN.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.AN.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.AN.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.H.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.AN.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.AN.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.AN.cancelJob(this.expandAnimationDelayJobId)};
_.H.computeIcon=function(Y,G,u){return(Y=u?G:Y)&&Y.iconType?_.Ux(Y.iconType):void 0};
_.H.computeAriaLabel=function(Y,G,u){return _.z(u?G:Y,GW2).label};
_.H.computeTooltip=function(Y,G,u){return u?G:Y};
_.H.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.H.computeIconOnHover=function(Y,G){if((Y==null?0:Y.iconType)&&!G)return _.Ux(Y.iconType)};
_.H.onTap=function(Y){var G=this;Y.stopPropagation();Y.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(Y=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(Y),this.useExpandableTooltip&&(this.toggleDelayJobId=_.jk(_.AN,function(){G.hovered=!1;G.data&&!G.data.toggledServiceEndpoint&&(G.expandAnimationDelayJobId=_.jk(_.AN,function(){G.set("data.isToggled",
!1)},200))},2E3))};
_.H.onMouseenter=function(){var Y=this;this.mouseoverDelayJobId=_.jk(_.AN,function(){Y.hovered=!0},300)};
_.H.onMouseleave=function(){_.AN.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(Y,G){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(G)||this.set("data.isToggled",!this.data.isToggled)};
_.H.serviceRequestWasSuccessful=function(Y){return _.z(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.zG)?Y.data.status==="STATUS_SUCCEEDED":!0};
Fy.prototype.onServiceRequestCompleted=Fy.prototype.onServiceRequestCompleted;Fy.prototype.onPopupClosed=Fy.prototype.onPopupClosed;Fy.prototype.onPopupOpened=Fy.prototype.onPopupOpened;Fy.prototype.onMouseleave=Fy.prototype.onMouseleave;Fy.prototype.dataChanged=Fy.prototype.dataChanged;_.S([_.x(_.LM),_.V("design:type",Object)],Fy.prototype,"ironButtonState",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Fy.prototype,"ytComponentBehavior",void 0);
_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],Fy.prototype,"ytEventForwardingBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Fy.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.V("design:type",Object)],Fy.prototype,"ariaLabel",void 0);_.S([_.R(),_.V("design:type",Object)],Fy.prototype,"disableTooltips",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Fy.prototype,"popupOpen",void 0);_.S([_.R(),_.V("design:type",Object)],Fy.prototype,"isLoading",void 0);_.S([_.R(),_.V("design:type",Element)],Fy.prototype,"eventSink",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Fy.prototype,"useExpandableTooltip",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.V("design:type",Object)],Fy.prototype,"toggled",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Fy.prototype,"hovered",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.V("design:type",Object)],Fy.prototype,"iconOnHover",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fy.prototype,"dataChanged",null);
_.S([_.Yo("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fy.prototype,"onMouseleave",null);_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fy.prototype,"onPopupOpened",null);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fy.prototype,"onPopupClosed",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],Fy.prototype,"onServiceRequestCompleted",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],Fy);
_.d(Fy,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(a8k!==void 0)return a8k;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return a8k=Y},{mode:2});var TIe;var LkX=_.D(function(Y){var G=Y.data;var u=Y.thumbnailSize;var O=function(){return G().enableSegmentView};
return _.T("yt-thumbnail-overlay-progress-bar-view-model",{class:_.s3("ytThumbnailOverlayProgressBarHost",function(){return Hfy(u==null?void 0:u())})},_.T(_.X,{cond:O,
then:function(){return _.T("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.T("div",{class:_.PE("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+G().startPercent+"%"}}),_.T("div",{class:_.PE("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+G().segmentDurationPercent+"%"}},_.T("div",{class:_.PE("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.T("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.T("div",null," ",function(){return G().segmentLabel})),_.T("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.T("div",{class:_.PE("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.T(_.X,{cond:function(){return!O()&&G().startPercent},
then:function(){var Q={};return _.T("div",{class:_.PE("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(Q.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.F("web_enable_modern_progress_bar_overlay"),Q))},_.T("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+G().startPercent+"%"}}))}}))},"Ja");
LkX.idomCompat=!0;_.gE4=_.D(function(Y){var G=_.Jf(),u=_.Hx(function(Q){var M,t,K;a:{var L=(M=Y.data())==null?void 0:M.animationActivationTargetId;M=((t=Y.data())==null?void 0:t.animationActivationEntityKey)||"";t=(K=Y.data())==null?void 0:K.animationActivationEntitySelectorType;if(M&&L)switch(t){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":Q=_.c3(Q,M);K=_.sH().resolve(_.q3(_.yo));L=!!(Q&&Q.videoId===L&&(K==null?0:K.isMiniplayerActive()));L={activated:L,playAnimation:L&&Q.playerState==="PLAYER_STATE_PLAYING"};
break a}L=void 0}return L});
_.RE(function(){var Q;if((Q=u())==null?0:Q.activated){var M;if((M=u())==null?0:M.playAnimation){var t;(t=G.lottieEl)==null||t.goToAndPlay(0)}else{var K;(K=G.lottieEl)==null||K.goToAndStop(0)}}},"DbQiXd");
var O=function(){var Q,M=!((Q=u())==null||!Q.activated);if(Y.data()){Q=Y.data();var t=void 0;Q.icon&&(t=_.yAt(Q.icon),t=hJ1(t));var K=void 0,L;if((L=Q.backgroundColor)==null?0:L.lightTheme){var g;K={backgroundColor:FE((g=Q.backgroundColor)==null?void 0:g.lightTheme,"0.8")}}if(Q.text||t||M){if(M&&Q.lottieData&&G){g=Q.lottieData;var P,I,k;L={animationConfig:{name:g.url,path:g.url,autoplay:(P=g.settings)==null?void 0:P.autoplay,loop:(k=(I=g.settings)==null?void 0:I.loop)!=null?k:!0},animationRef:G}}else L=
void 0;if(M)P=17;else b:switch(Q.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":P=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":P=19;break b;default:P=17}M={type:P,text:M&&Q.animatedText?Q.animatedText:Q.text,icon:t,customColors:K,animation:L}}else M=void 0}else M=void 0;return M};
return _.T("yt-thumbnail-badge-view-model",{class:_.s3("ytThumbnailBadgeViewModelHost",Y.class)},_.T(_.X,{cond:O,then:function(){return _.T(_.CR,{data:function(){return O()}})}}))},"La");var X6l=_.D(function(Y){var G={},u={};return _.T("yt-thumbnail-bottom-overlay-view-model",{class:_.s3("ytThumbnailBottomOverlayViewModelHost",(G.ytThumbnailBottomOverlayViewModelHostBackground=function(){return Y.data().enableGradientBackground},G))},_.T(_.HE,{data:function(){return Y.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(O){return _.T(LkX,{data:O.data,
thumbnailSize:Y.thumbnailSize})}}),_.T("div",{class:_.s3("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var O;
return EFg((O=Y.thumbnailSize)==null?void 0:O.call(Y))},(u.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var O;
return(O=Y.isClip)==null?void 0:O.call(Y)},u.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var O;
return!_.F("web_enable_modern_progress_bar_overlay")&&((O=Y.thumbnailSize)==null?void 0:O.call(Y))==="small"},u))},_.T(_.HE,{data:function(){return Y.data().badge}},{thumbnailBadgeViewModel:function(O){return _.T(_.gE4,{data:O.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.T(_.HE,{data:function(){return Y.data().badges}},{thumbnailBadgeViewModel:function(O){return _.T(_.gE4,{data:O.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ma");
X6l.idomCompat=!0;_.hR(X6l,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.wH,thumbnailSize:_.wH,isClip:_.wH}});var pr=_.D(function(Y){var G=Y.data;var u=Y.className;Y=Y.alwaysShow;var O=_.KMI(),Q={};return _.T("thumbnail-hover-overlay-view-model",{el:_.iq(_.zi(function(){return G().rendererContext})),
class:_.s3("ytThumbnailHoverOverlayViewModelHost",u,(Q.ytThumbnailHoverOverlayViewModelHostForceHover=Y,Q)),"aria-label":function(){var M;return(M=_.z(G().rendererContext,_.L$))==null?void 0:M.label},
role:function(){return _.F9(G().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.F9(G().rendererContext)!==void 0?0:void 0},
"on:keypress":O},_.T("div",{class:_.s3("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(G().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var M="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:M="ytThumbnailHoverOverlayViewModelStyleCover"}return M})},_.T(_.X,{cond:function(){return G().icon},
then:function(M){return _.T(_.RD,{data:M,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.T(_.X,{cond:function(){return G().text},
then:function(M){return _.T(_.eO,{text:M,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Oa");
pr.idomCompat=!0;var PnV=_.D(function(Y){var G=Y.data;return _.T(_.HE,{data:function(){return G==null?void 0:G().overlays}},{thumbnailHoverOverlayViewModel:pr})},"Pa");
PnV.idomCompat=!0;var I8I={};var kf4=_.D(function(Y){var G=Y.data;var u=Y.image;var O=Y.state;var Q=Y.iconType;var M=Y.overlays;var t=Y.isOverlay;var K=_.yg("div");Y=_.E(_.IE(!0,void 0,"AA4e7b"));var L=Y.next().value,g=Y.next().value,P=function(){return!!G().onTap},I=_.dB(Q,"LIVE");
_.RE(function(){var n=G();requestAnimationFrame(function(){if(K.value===null)var p=!0;else{var W=K.value;p=n.badgeText;var C=kEY(n.size);p in I8I?W=I8I[p]:(W=W.clientWidth,I8I[p]=W);(p=W>C)?K.value.style.display="none":K.value.style.visibility="visible"}g(p)})},"vNdN8b");
var k=function(){var n={};return n["yt-spec-avatar-shape__image"]=!0,n["yt-spec-avatar-shape__image--ads-app"]=G().type===1,n["yt-spec-avatar-shape__image--inscribed-square"]=G().type===2,n};
return _.T("yt-avatar-shape",null,_.T("div",{el:_.iq(FMI(P,{keydown:function(n){if(n.key==="Enter"){var p;(p=n.currentTarget)==null||p.click()}},
click:function(n){var p,W;return void((W=(p=G()).onTap)==null?void 0:W.call(p,n))}})),
class:function(){var n={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},p=G();n=(n[p.clusterLayoutConfig?m0A(p.clusterLayoutConfig):WMu(p.size)]=!0,n["yt-spec-avatar-shape__button--tappable"]=P(),n);(p=G().avatarButtonCustomClassName)&&(n[p]=!0);return _.PE(n)},
"aria-label":function(){return P()?G().accessibilityText:""},
role:function(){return P()?"button":void 0},
tabindex:function(){return P()?0:void 0}},_.T("div",{class:function(){var n,p=G(),W=O==null?void 0:O(),C=t==null?void 0:t(),e=!((n=p.decorations)==null||!n.includes(2)||p.size!=="medium"&&p.size!=="large"),w=p.size==="tiny"||p.size==="extra-small",B,N,h,q,U={};
n=(U["yt-spec-avatar-shape--live-ring"]=!!(((B=p.decorations)==null?0:B.includes(0))&&x0U(p.size)),U["yt-spec-avatar-shape--stories-watched"]=e&&!(W==null||!W.storiesWatched),U["yt-spec-avatar-shape--stories-unwatched"]=e&&!(W==null?0:W.storiesWatched),U["yt-spec-avatar-shape--background-border"]=f3I(p.decorations)&&!w,U["yt-spec-avatar-shape--background-border-thin"]=f3I(p.decorations)&&w,U["yt-spec-avatar-shape__on-select-border"]=!((N=p.decorations)==null||!N.includes(4)),U["yt-spec-avatar-shape__white-border"]=
!((h=p.decorations)==null||!h.includes(5)),U["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((q=p.decorations)==null?0:q.includes(5))&&w),U["yt-spec-avatar-shape--is-overlay"]=!!C,U);return _.PE(n)},
style:function(){a:{var n=G().clusterLayoutConfig;if(n){b:{var p=n.numAvatarsInCluster;var W=n.avatarIndex;if(W!==p-1){switch(n.clusterSize){case "small":n="32";break;case "medium":n="36";break;case "40":n="40";break;default:p=void 0;break b}p="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+n+"x"+n+"_avatars_"+p+"_index_"+W+".svg"}else p=void 0}if(p){p=_.Yh({"-webkit-mask-image":"url("+p+")","mask-image":"url("+p+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}p=void 0}return p}},_.T("div",{class:function(){var n={};
var p=G();n=(n[p.clusterLayoutConfig?ph1(p.clusterLayoutConfig):zXt(p.size)]=!0,n["yt-spec-avatar-shape--no-margin"]=f3I(G().decorations),n["yt-spec-avatar-shape--square"]=G().type===2,n);return _.PE(n)}},_.T(_.RD,{data:u,
alt:function(){return!P()&&G().accessibilityText?G().accessibilityText:""},
targetWidth:function(){return r6I(G().size)},
targetHeight:function(){return r6I(G().size)},
className:function(){return _.PE(k())}}),_.T(_.X,{cond:function(){var n;
return((n=G().decorations)==null?void 0:n.includes(0))&&x0U(G().size)},
then:function(){return _.T("div",{class:function(){var n={};n=(n["yt-spec-avatar-shape__live-badge"]=!0,n["yt-spec-avatar-shape__live-badge--badge-small"]=G().size==="small",n["yt-spec-avatar-shape__live-badge--badge-medium"]=G().size==="medium"||G().size==="48",n["yt-spec-avatar-shape__live-badge--badge-large"]=G().size==="large",n["yt-spec-avatar-shape__live-badge--badge-extra-large"]=G().size==="extra-large"||G().size==="extra-extra-large"||G().size==="giant",n);return _.PE(n)}},_.T(_.X,{cond:function(){return G().badgeText},
then:function(n){return _.T("div",{class:"yt-spec-avatar-shape__badge-text",el:K},n)}}),_.T(_.X,{cond:L,
then:function(){return _.T("div",{class:"yt-spec-avatar-shape__badge-icon"},_.T(_.GS,{icon:I,size:function(){a:switch(G().size){case "extra-large":var n=16;break a;default:n=13}return n}}))}}))}}),_.T(_.X,{cond:function(){var n,p;
return((n=G().decorations)==null?void 0:n.includes(1))||((p=G().decorations)==null?void 0:p.includes(0))&&!x0U(G().size)},
then:function(){return _.T("div",{class:function(){var n=G(),p,W,C={};var e=(C["yt-spec-avatar-shape__live-dot"]=!((p=n.decorations)==null||!p.includes(0)||x0U(n.size)),C["yt-spec-avatar-shape__new-content"]=!((W=n.decorations)==null||!W.includes(1)),C);return _.PE(e)}})}}),_.T(_.X,{cond:function(){return!!M},
then:function(){return _.T("div",{class:function(){var n={};n=Object.assign((n["yt-spec-avatar-shape__image-overlays"]=!0,n),k());return _.PE(n)}},M==null?void 0:M())}})))))},"Sa");
kf4.idomCompat={callbacks:{overlays:!0}};_.z$=_.D(function(Y){function G(){u().endpoint&&_.W3(u().endpoint)}
var u=Y.data;var O=Y.decorations;var Q=Y.avatarButtonCustomClassName;var M=Y.isOverlay;var t=Y.clusterLayoutConfig;return _.T("avatar-view-model",null,_.T(_.X,{cond:function(){return u().image},
then:function(K){return _.T(kf4,{data:function(){return y6u({data:u(),onTap:u().endpoint?G:void 0,decorations:O==null?void 0:O(),badgeText:void 0,accessibilityText:u().accessibilityText,avatarButtonCustomClassName:Q==null?void 0:Q(),clusterLayoutConfig:t==null?void 0:t()})},
image:K,iconType:"RADAR_LIVE",overlays:function(){return _.T(PnV,{data:u})},
isOverlay:M})}}))},"Ta");
_.z$.idomCompat=!0;_.mb=_.D(function(Y){var G=Y.data;Y=Y.className;var u=_.yg("yt-decorated-avatar-view-model"),O=function(){return _.z(G().avatar,_.WE)},Q=_.p2(function(){var M,t=G(),K=O(),L=_.F9(G().rendererContext),g=(M=u.value)!=null?M:void 0,P;
if(K){g={data:t,avatar:K,onTap:L,element:g};M=g.data;t=g.avatar;K=g.onTap;L=g.element;g=g.commandController;K=K?ifU(K,L,g):void 0;L=[];M.liveData&&L.push(0);var I;g=(I=M.liveData)==null?void 0:I.liveBadgeText;I=(P=_.z(M.rendererContext,_.L$))==null?void 0:P.label;P=y6u({data:t,onTap:K,decorations:L,badgeText:g,accessibilityText:I?I:M.a11yLabel})}else P={size:"medium"};return P},void 0,"c00kWd");
return _.T("yt-decorated-avatar-view-model",{class:_.s3("ytDecoratedAvatarViewModelHost",Y),el:u},_.T(_.X,{cond:function(){var M;return(M=O())==null?void 0:M.image},
then:function(M){return _.T(kf4,{data:Q,image:M,iconType:"RADAR_LIVE",overlays:function(){return _.T(PnV,{data:O})}})}}))},"Ua");
_.mb.idomCompat=!0;_.W9=_.D(function(Y){var G=function(){var K;return Object.assign({},Y.data(),(K=Y.overrides)==null?void 0:K.call(Y))},u=function(){return _.pK(G().rendererContext)},O=function(){var K=G().avatars,L,g;
return(g=(L=(K==null?0:K[0])?_.z(K[0],_.WE):void 0)==null?void 0:L.avatarImageSize)!=null?g:"AVATAR_SIZE_UNKNOWN"},Q=function(){return oFu(G())},M=function(){if(G().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var K=void 0;
else if((K=Y.decorations)==null?0:K.call(Y))K=Y.decorations();else{K=G();var L=0;K.avatars&&(L+=K.avatars.length);K.decoratedText&&(L+=1);K=L>1?[3]:[]}return K},t={};
return _.T("yt-avatar-stack-view-model",{el:_.iq(_.zi(function(){return G().rendererContext})),
class:_.s3("yt-avatar-stack-view-model",Y.className,(t["yt-avatar-stack-view-model--tappable"]=u,t["yt-avatar-stack-view-model--is-overlay"]=Y.isOverlay,t["yt-avatar-stack-view-model--medium-text"]=Y.useMediumText,t)),tabindex:function(){return u()?0:void 0},
role:function(){return u()?"link":void 0},
"aria-label":function(){var K,L;return(L=(K=_.z(G().rendererContext,_.L$))==null?void 0:K.label)!=null?L:""}},_.T(_.X,{cond:function(){var K;
return G().avatars&&!((K=Y.hideAvatar)==null?0:K.call(Y))},
then:function(){return _.T("div",{class:"yt-avatar-stack-view-model__avatars"},_.T(_.X,{cond:function(){return G().decoratedText},
then:function(K){var L={};return _.T("div",{class:_.s3("yt-avatar-stack-view-model__text-container",(L["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return O()==="AVATAR_SIZE_XXS"||O()==="AVATAR_SIZE_XS"},L["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var g;
return((g=Y.isOverlay)==null?void 0:g.call(Y))&&(O()==="AVATAR_SIZE_XXS"||O()==="AVATAR_SIZE_XS")},L)),
style:_.Yh({width:function(){return Q().avatarSizeInPx+"px"},
height:function(){return Q().avatarSizeInPx+"px"}})},_.T(_.eO,{text:K,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.T("div",{style:function(){return _.Yh(Q().avatarStackStyle)()},
class:function(){return Q().avatarStackClass}},_.T(_.HE,{data:function(){return Q().avatars.reverse()}},{avatarViewModel:function(K,L){return _.T("div",{style:function(){var g,P;
return _.Yh((P=(g=Q()).avatarStyle)==null?void 0:P.call(g,L()))()},
class:function(){return Q().avatarClass}},_.T(_.z$,{data:K.data,
decorations:M,avatarButtonCustomClassName:function(){return Q().avatarButtonCustomClassName},
isOverlay:Y.isOverlay,clusterLayoutConfig:function(){var g,P;return(P=(g=Q()).clusterLayoutConfig)==null?void 0:P.call(g,L())}}))},
decoratedAvatarViewModel:function(K,L){return _.T("div",{style:function(){var g,P;return _.Yh((P=(g=Q()).avatarStyle)==null?void 0:P.call(g,L()))()},
class:function(){return Q().avatarClass}},_.T(_.mb,{data:K.data}))}})))}}),_.T(_.X,{cond:function(){return G().text},
then:function(K){return _.T(_.eO,{text:K,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Va");
_.W9.idomCompat=!0;_.hR(_.D(function(Y){var G=Y.data;var u=Y.thumbnailSize;return _.T("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.T("div",{class:_.s3("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return RXA(u==null?void 0:u())})},_.T(_.HE,{data:function(){return G().avatarStack}},{avatarStackViewModel:function(O){return _.T(_.W9,{data:O.data,
decorations:[5]})}})))},"Wa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.AC,
thumbnailSize:_.AC}});var nE4=_.D(function(Y){Y=_.bM(Y,{hidden:!1});var G=Y.data;Y=Y.hidden;return _.T("yt-thumbnail-overlay-title-view-model",{class:_.s3("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(G().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var u="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:u="ytThumbnailOverlayTitleViewModelPositionTop"}return u}),
hidden:Y},_.T(_.X,{cond:function(){return G().leadingContent},
then:function(u){return _.T("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.T(_.HE,{data:u},{decoratedAvatarViewModel:_.mb}))}}),_.T("div",null,_.T(_.eO,{text:function(){return G().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.T(_.X,{cond:function(){return G().subtitle},
then:function(){return _.T(_.eO,{text:function(){return G().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Xa");
nE4.idomCompat=!0;_.hR(nE4,"yt-thumbnail-overlay-title-view-model",{props:{data:_.AC,hidden:_.AC}});_.rY=_.D(function(Y){Y=_.bM(Y,{isClip:!1});var G=Y.data,u=Y.thumbnailSize,O={};return _.T("yt-thumbnail-overlay-badge-view-model",{class:_.s3("yt-thumbnail-overlay-badge-view-model",function(){a:switch(G().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var Q="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:Q="yt-thumbnail-overlay-badge-view-model--bottom-end"}return Q},function(){return whT(u==null?void 0:u())},(O["yt-thumbnail-overlay-badge-view-model--clip"]=Y.isClip,
O))},_.T(_.HE,{data:function(){return G().thumbnailBadges}},{thumbnailBadgeViewModel:function(Q){return _.T(_.gE4,{data:Q.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ya");
_.rY.idomCompat=!0;_.hR(_.rY,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.AC,thumbnailSize:_.AC,isClip:_.AC}});var FkI=_.D(function(Y){var G=Y.data;Y=Y.hidden;var u=_.p2(function(){return G().indicatorCount||0},void 0,"AbKnMc"),O={};
return _.T("yt-page-indicator-view-model",{class:_.s3("ytPageIndicatorViewModelHost",(O.ytPageIndicatorViewModelIndicatorHidden=function(){return!G().indicatorCount},O)),
hidden:Y},_.T(_.rc,{each:function(){return Array(u())}},function(Q,M){var t={};
return _.T("div",{class:_.s3("ytPageIndicatorViewModelIndicator",(t.ytPageIndicatorViewModelIndicatorSelected=function(){return G().selectedIndex===M()},t))})}))},"Za");
FkI.idomCompat=!0;_.hR(FkI,"yt-page-indicator-view-model",{props:{data:_.AC,hidden:_.AC}});var x8=function(){var Y=_.Z.apply(this,arguments)||this;Y.eventSink=function(){return Y};
Y.disableInteraction=!1;Y.noRoundedCorners=!1;Y.isPreviewLoading=!1;Y.isOriginalAspectRatio=!1;Y.computedObjectFit=!1;Y.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return Y};
_.m(x8,_.Z);_.H=x8.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:_.F("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(Y,G,u,O){if(Y&&G&&!O&&!_.F("disable_moving_thumbs_handling")&&!u)return G};
_.H.computeImageWidth=function(Y,G){return G||9999};
_.H.computeIsOriginalAspectRatio=function(Y){return Y};
_.H.computeIsLive=function(Y){if(Y==null?0:Y.badges)for(var G=0;G<Y.badges.length;G++){var u=Y.badges[G];if(u.metadataBadgeRenderer&&u.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(Y==null?0:Y.thumbnailOverlays)for(G=0;G<Y.thumbnailOverlays.length;G++)if(u=Y.thumbnailOverlays[G],u.thumbnailOverlayTimeStatusRenderer&&u.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.H.computeObjectFit=function(Y,G){return G||(Y?"CONTAIN":"")};
_.H.computeNavigationEndpoint=function(Y,G,u){return Y?G:u};
_.H.computeHasClip=function(Y){Y=_.E(Y||[]);for(var G=Y.next();!G.done;G=Y.next())if(G.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.H.computeOverlayColor=function(Y){var G;return(Y==null?0:(G=Y.darkColorPalette)==null?0:G.section2Color)?Y.darkColorPalette.section2Color:Y==null?void 0:Y.sampledThumbnailColor};
_.Uk.Object.defineProperties(x8.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.E9g(this.width)}}});
x8.prototype.onImageUnloaded=x8.prototype.onImageUnloaded;x8.prototype.onImageLoaded=x8.prototype.onImageLoaded;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],x8.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(vj4),_.V("design:type",Object)],x8.prototype,"ytdThumbnailBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],x8.prototype,"componentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],x8.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],x8.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],x8.prototype,"circular",void 0);
_.S([_.R({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.V("design:type",Object)],x8.prototype,"richThumbnail",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.V("design:type",Boolean)],x8.prototype,"hasClip",void 0);_.S([_.R(),_.V("design:type",Object)],x8.prototype,"eventSink",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],x8.prototype,"queued",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],x8.prototype,"richGridThumbnail",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],x8.prototype,"useExpandableTooltip",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],x8.prototype,"useUntranslatedNavigationEndpoint",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],x8.prototype,"disableInteraction",void 0);
_.S([_.R({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.V("design:type",Object)],x8.prototype,"computedNavigationEndpoint",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],x8.prototype,"nowPlayingEqualizerOnly",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],x8.prototype,"hidePlaybackStatus",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],x8.prototype,"objectFit",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],x8.prototype,"noRoundedCorners",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],x8.prototype,"watchFeedThumbnail",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],x8.prototype,"isPreviewLoading",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.V("design:type",Object)],x8.prototype,"isOriginalAspectRatio",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.V("design:type",Object)],x8.prototype,"computedObjectFit",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.V("design:type",Boolean)],x8.prototype,"isLiveVideo",void 0);
_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],x8.prototype,"loaded",void 0);_.S([_.R({computed:"computeOverlayColor(data.thumbnail)"}),_.V("design:type",Object)],x8.prototype,"overlayColor",void 0);_.S([_.R(),_.V("design:type",Boolean)],x8.prototype,"minimizePipBreakages",void 0);_.S([_.R({selector:_.i8T}),_.V("design:type",Boolean)],x8.prototype,"inlinePreviewIsEnabled",void 0);_.S([_.R(),_.V("design:type",Number)],x8.prototype,"width",void 0);
_.S([_.f("inlinePreviewIsEnabled"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],x8.prototype,"isPreviewDisabled",null);_.S([_.f("width"),_.V("design:type",String),_.V("design:paramtypes",[])],x8.prototype,"thumbnailSize",null);_.S([_.Yo("image-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],x8.prototype,"onImageLoaded",null);
_.S([_.Yo("image-unloaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],x8.prototype,"onImageUnloaded",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-thumbnail"})],x8);
_.$o()(x8,"ytd-thumbnail",function(){if(TIe===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);TIe=Y}Y=TIe;return Y},{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 minimizePipBreakages".split(" "),mode:2});var hXI=function(Y){var G=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15372_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15372_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(u){p6l(G,u)};
this.onLockupMouseLeaveFn=function(u){u=u.relatedTarget;var O,Q;((O=document.getElementsByTagName("ytd-video-preview"))==null?0:(Q=O.item(0))==null?0:Q.contains(u))||(G.terminateVideoPreview(),fr(G))};
this.onThumbnailMouseDownFn=function(){G.terminateVideoPreview();fr(G)};
this.onTouchStart=function(){G.JSC$15372_touched=!0};
this.mediaRenderer=Y.mediaRenderer;this.thumbnailElement=Y.thumbnailElement;this.lockupElement=Y.lockupElement;this.videoPreviewOptsInput=Y.videoPreviewOpts;zE2(this);Cr(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)):
_.R0(Error("Gh")):_.R0(Error("Hh")):mDe(this)},VN=function(Y){mDe(Y);
var G;(G=Y.lockupElement)==null||G.removeEventListener("mouseenter",Y.onMouseMoveFn);var u;(u=Y.lockupElement)==null||u.removeEventListener("mouseleave",Y.onLockupMouseLeaveFn);var O;(O=Y.lockupElement)==null||O.removeEventListener("touchstart",Y.onTouchStart);var Q;(Q=Y.thumbnailElement)==null||Q.removeEventListener("mousedown",Y.onThumbnailMouseDownFn);fr(Y)},zE2=function(Y){Y.inlinePreviewIsEnabledForUser=_.Zs().getState().ui.inlinePreviewIsEnabled;
Y.unsubscribeFromInlinePreviewIsEnabled=_.Eh(_.Zs(),_.i8T,function(G){(Y.inlinePreviewIsEnabledForUser=G)||fr(Y)});
Y.JSC$15372_unsubscribeFromInlinePreviewIsActive=_.Eh(_.Zs(),_.oKj,function(G){(Y.inlinePreviewIsActive=G)||fr(Y)})},mDe=function(Y){Y.unsubscribeFromInlinePreviewIsEnabled();
Y.unsubscribeFromInlinePreviewIsEnabled=function(){};
Y.JSC$15372_unsubscribeFromInlinePreviewIsActive();Y.JSC$15372_unsubscribeFromInlinePreviewIsActive=function(){}},p6l=function(Y,G){G.buttons>0||(G=_.Jy("kevlar_lockup_hover_delay",-1),Y.JSC$15372_touched&&G>=0?(_.AN.cancelJob(Y.videoPreviewJobId),Y.videoPreviewJobId=_.jk(_.AN,function(){WkT(Y)},G),Y.JSC$15372_touched=!1):WkT(Y))},hyY=function(Y){Y.videoPreviewJobId=_.jk(_.AN,function(){return _.a(function(G){return G.yield(raR(Y,{isAutoplay:!0}),0)})})},WkT=function(Y){!Y.previewTriggered&&Cr(Y)&&
(Y.inlinePreviewIsActive&&Y.terminateVideoPreview(),Y.previewTriggered=!0,Y.mediaRenderer.isInlinePreviewTriggered=!0,_.AN.cancelJob(Y.videoPreviewJobId),Y.videoPreviewJobId=_.jk(_.AN,function(){return _.a(function(G){return G.yield(raR(Y),0)})}))},raR=function(Y,G){G=G===void 0?{}:G;
var u=G.isAutoplay===void 0?!1:G.isAutoplay;var O,Q,M,t;return _.a(function(K){if(K.nextAddress==1){if(!Cr(Y))return K.return();O=Y.getVideoPreviewOpts();if(!O)return K.return();u&&(O.isAutoplay=!0);return(M=(Q=_.sK(Y.mediaRenderer.hostElement,"yt-open-video-preview-action",[O]))&&Q[0])?K.yield(Q[0],3):K.jumpTo(2)}K.nextAddress!=2&&(M=K.yieldResult===1);if(M){var L=(t=Y.mediaRenderer)==null?void 0:t.data;L&&(D0A(L)?delete L.inlinePlayerData:"inlinePlaybackEndpoint"in L&&delete L.inlinePlaybackEndpoint)}_.Sd(K)})};
hXI.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var Y,G;if((G=(Y=this.videoPreviewOptsInput)==null?void 0:Y.videoPreviewData)!=null)Y=G;else if(Y=this.mediaRenderer.data)if(D0A(Y))Y={inlinePlaybackEndpoint:_.FS(Y.inlinePlayerData.onVisible),navigationEndpoint:_.FS(Y.onTap),thumbnail:"image"in Y?Y.image:Y.thumbnail,thumbnailOverlays:void 0,accessibilityText:ZfI(Y)};else if("multipleInlinePlaybackEndpoint"in Y){var u=_.z(_.z(Y.multipleInlinePlaybackEndpoint,pTe),D_I);if(u!=
null&&u.playerDescriptors){G=[];u=_.E(u.playerDescriptors);for(var O=u.next();!O.done;O=u.next())O=O.value,G.push({inlinePlaybackEndpoint:O.inlinePlaybackEndpoint,navigationEndpoint:O.navigationEndpoint,thumbnail:O.thumbnail,thumbnailOverlays:O.thumbnailOverlays,accessibilityText:ZfI(Y)});Y=G}else Y=void 0}else Y={inlinePlaybackEndpoint:Y.inlinePlaybackEndpoint,navigationEndpoint:Y.navigationEndpoint,thumbnail:Y.thumbnail,thumbnailOverlays:Y.thumbnailOverlays,accessibilityText:ZfI(Y)};else Y=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:Y,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Cr=function(Y){var G;if(G=Y.inlinePreviewIsEnabledForUser)G=(Y=Y.mediaRenderer.data)?"inlinePlaybackEndpoint"in Y&&Y.inlinePlaybackEndpoint||D0A(Y)&&Y.inlinePlayerData||"multipleInlinePlaybackEndpoint"in Y&&Y.multipleInlinePlaybackEndpoint?!0:!1:!1;return G};
hXI.prototype.terminateVideoPreview=function(){_.qZ(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var fr=function(Y){_.AN.cancelJob(Y.videoPreviewJobId);Y.inlinePreviewIsActive=!1;Y.previewTriggered=!1;Y.mediaRenderer.isInlinePreviewTriggered=!1};var xD1=_.hV(["#"]),yP=function(){var Y=_.Z.apply(this,arguments)||this;Y.isDisabled=!1;return Y};
_.m(yP,_.Z);_.H=yP.prototype;
_.H.configureRendererStamper=function(){return{"data.menu":EM,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},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(Y){var G=[];if(Y.metadataText&&Object.keys(Y.metadataText).length>0){var u=this.ytRendererBehavior.getSimpleString(Y.metadataText);Y.upcomingEventData&&Y.upcomingEventData.upcomingEventText&&(u=_.gw(u,Number(Y.upcomingEventData.startTime)));G.push(u)}else Y.shortViewCountText&&G.push(this.ytRendererBehavior.getSimpleString(Y.shortViewCountText)),Y.publishedTimeText&&G.push(this.ytRendererBehavior.getSimpleString(Y.publishedTimeText)),Y.upcomingEventData&&Y.upcomingEventData.upcomingEventText&&
(u=this.ytRendererBehavior.getSimpleString(Y.upcomingEventData.upcomingEventText),G.push(_.gw(u,Number(Y.upcomingEventData.startTime))));return G};
_.H.calculateBylineText=function(Y){return Y.shortBylineText?Y.shortBylineText:Y.bylineText?Y.bylineText:null};
_.H.calculateIsDisabled=function(Y){return!!Y.isDisabled};
_.H.computeHrefWithDefault=function(Y){return this.ytComponentBehavior.computeHref_(Y)||_.r0a(xD1)};
_.H.onDetailsTap=function(Y){var G=this.data&&this.data.navigationEndpoint;G&&!_.hf(_.wG(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.F("kevlar_grid_video_renderer_killswitch")?_.$s(this.hostElement,"yt-navigate",{endpoint:G}):this.ytComponentBehavior.resolveCommand(G))};
_.H.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.H.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15379_inlinePreviewHoverListener=rw({mediaRenderer:this,lockupElement:_.l0(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.l0(this.hostElement).querySelector("ytd-thumbnail")})};
_.H.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$15379_inlinePreviewHoverListener)==null||VN(Y)};
_.H.computeThumbnailWidth=function(Y,G){return G&&G>0?G:Y?360:210};
_.H.computeNumBadgesInRow=function(Y){var G;return((G=Y.badges)==null?void 0:G.length)||0};
_.H.computeShowChannelThumbnail=function(Y,G){var u;return G&&!!(Y==null?0:(u=Y.channelThumbnailSupportedRenderers)==null?0:u.channelThumbnailWithLinkRenderer)};
_.Uk.Object.defineProperties(yP.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$15379_inlinePreviewHoverListener)==null?0:Cr(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
yP.prototype.dataChanged=yP.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],yP.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],yP.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.x(_.oV),_.V("design:type",Object)],yP.prototype,"ytdLockupBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],yP.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],yP.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],yP.prototype,"noEndpoints",void 0);_.S([_.R({computed:"calculateBylineText(data)"}),_.V("design:type",Object)],yP.prototype,"bylineText",void 0);
_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],yP.prototype,"isSearch",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],yP.prototype,"isDownloading",void 0);_.S([_.R({reflectToAttribute:!0,value:0}),_.V("design:type",Number)],yP.prototype,"width",void 0);_.S([_.R({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.V("design:type",Object)],yP.prototype,"isDisabled",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yP.prototype,"dataChanged",null);_.S([_.f("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yP.prototype,"isHovered",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yP.prototype,"hasAttributedBylineText",null);
_.S([_.f("bylineText","hasAttributedBylineText"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yP.prototype,"showBylineText",null);_.S([_.pD({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],yP);
_.d(yP,"ytd-grid-video-renderer",function(){if(J6R!==void 0)return J6R;var Y=document.createElement("template");_.r(Y,'\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" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" 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]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" 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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return J6R=Y},{mode:2});var f8X;var eY=function(){var Y=_.Z.apply(this,arguments)||this;Y.roundedContainer=!0;Y.skipRoundingTop=!1;Y.disableTopPadding=!1;Y.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");Y.extractOverlay=!1;return Y};
_.m(eY,_.Z);eY.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
eY.prototype.onClick=function(Y){var G,u=(G=this.data)==null?void 0:G.sourceEndpoint;!_.hf(_.wG(Y),this.hostElement,["A".toString()])&&u&&_.$s(this.hostElement,"yt-navigate",{endpoint:u})};
_.Uk.Object.defineProperties(eY.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 Y;return!((Y=this.data)==null||!Y.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(G=(Y=this.data)==null?void 0:Y.paragraphMaxLines)!=null?G:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],eY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],eY.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eY.prototype,"showVerticalDividers",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eY.prototype,"roundedContainer",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eY.prototype,"skipRoundingTop",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eY.prototype,"disableTopPadding",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],eY.prototype,"amsterdamEnabled",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eY.prototype,"extractOverlay",void 0);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],eY.prototype,"showMetadataAtTop",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],eY.prototype,"showMetadataBelowTitle",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.menu"),_.V("design:type",Object),_.V("design:paramtypes",[])],eY.prototype,"hasMenu",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data.truncateParagraphs"),_.V("design:type",Object),_.V("design:paramtypes",[])],eY.prototype,"truncateParagraphs",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.paragraphMaxLines"),_.V("design:type",Number),_.V("design:paramtypes",[])],eY.prototype,"paragraphMaxLines",null);
_.S([_.R({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.f("data.background"),_.V("design:type",Object),_.V("design:paramtypes",[])],eY.prototype,"background",null);_.S([_.pD({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],eY);
_.d(eY,"ytd-info-panel-content-renderer",function(){if(f8X!==void 0)return f8X;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return f8X=Y},{mode:2});var CnM;var yaI;var eEM;var Aak;var AZ=function(){return _.Z.apply(this,arguments)||this};
_.m(AZ,_.Z);AZ.prototype.computeStyle=function(Y){return Y};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],AZ.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],AZ.prototype,"style_",void 0);_.S([_.Ff({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],AZ);
_.d(AZ,"yt-channel-thumbnail-with-link-renderer",function(){if(Aak===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;eEM===void 0&&(eEM=document.createElement("template"));var O=eEM;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Aak=Y}Y=Aak;return Y},{mode:2});var oW=function(){return _.Z.apply(this,arguments)||this};
_.m(oW,_.Z);oW.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"}}}};
oW.prototype.computeTitleStyle=function(Y){return Y||null};
oW.prototype.computeAvatarStyle=function(Y){return Y||null};
oW.prototype.computeShowNavigationButton=function(Y,G){return!(Y==null||!Y.navigationButton||G)};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],oW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],oW.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.V("design:type",String)],oW.prototype,"titleStyle",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.V("design:type",String)],oW.prototype,"avatarStyle",void 0);_.S([_.R(),_.V("design:type",Boolean)],oW.prototype,"hideNavigationButton",void 0);_.S([_.pD({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],oW);
_.d(oW,"ytd-rich-list-header-renderer",function(){if(yaI!==void 0)return yaI;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return yaI=Y},{mode:2});var i2=function(){return _.Z.apply(this,arguments)||this};
_.m(i2,_.Z);i2.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]]"}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],i2.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],i2.prototype,"isSearch",void 0);_.S([_.pD({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],i2);
_.d(i2,"ytd-preview-card-renderer",function(){if(CnM!==void 0)return CnM;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return CnM=Y},{mode:1});var oEU;var RW=function(){return _.Z.apply(this,arguments)||this};
_.m(RW,_.Z);RW.prototype.configureRendererStamper=function(){return{"data.menu":EM}};
RW.prototype.dataChanged=function(){var Y=this.get("colorExtractionPalette.section1Color",this.data);Y=_.k3(Y);_.cm(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":Y})};
RW.prototype.computeCardStyle=function(Y){return this.get("style.value",Y)||null};
RW.prototype.dataChanged=RW.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],RW.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],RW.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.V("design:type",String)],RW.prototype,"cardStyle",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RW.prototype,"dataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],RW);
_.d(RW,"ytd-compact-channel-recommendation-card-renderer",function(){if(oEU!==void 0)return oEU;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return oEU=Y},{mode:1});var it_;var REU;var wY=function(){var Y=_.Z.apply(this,arguments)||this;Y.alignAuto=!1;Y.collapsed=!0;Y.isToggled=!1;Y.alwaysCollapsed=!1;Y.canToggle=!0;Y.collapsedHeight=80;Y.disableToggle=!1;Y.alwaysToggleable=!1;Y.reversed=!1;Y.shouldUseNumberOfLines=!1;Y.recomputeOnResize=!1;Y.canToggleJobId=0;Y.lastReversed=!1;return Y};
_.m(wY,_.Z);_.H=wY.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 Y=_.l0(this.hostElement),G=Y.childNodes,u=document.createDocumentFragment(),O=Y.childNodes.length-1;O>=0;O--)_.l0(u).appendChild(G[O]);_.F("enable_shadydom_free_scoped_node_methods")?_.Bm(this.hostElement).appendChild(u):Y.appendChild(u)}};
_.H.ready=function(){var Y=this;_.CD(function(){Y.initChildrenObserver()},1)};
_.H.attached=function(){var Y;(Y=this.resizeObserver)==null||Y.observe(this.content)};
_.H.detached=function(){this.detachObserver()};
_.H.toggle=function(Y,G){this.canToggle&&(this.isToggled=G,_.$s(this.hostElement,"yt-refit"),Y&&Y.stopPropagation())};
_.H.reset=function(){this.childrenChanged()};
_.H.onIronResize=function(){this.recomputeOnResize&&!_.F("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.H.computeIsMoreVisible=function(Y,G){return Y&&!G};
_.H.computeShouldUseNumberOfLines=function(Y){try{return!!Y&&window.CSS.supports("-webkit-line-clamp","1")}catch(G){}return!1};
_.H.computeIsLessVisible=function(Y,G){return Y&&G};
_.H.observeCollapsedHeightAndMaxLines=function(){var Y=this.collapsedHeight,G=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.cm(this.hostElement,{"--ytd-expander-max-lines":""+G,"--ytd-expander-collapsed-height":""}):_.cm(this.hostElement,{"--ytd-expander-collapsed-height":Y+"px","--ytd-expander-max-lines":""})};
_.H.handleMoreTap=function(Y){this.disableToggle||(_.$s(this.hostElement,"yt-expander-more-tapped"),this.toggle(Y,!0))};
_.H.handleLessTap=function(Y){_.$s(this.hostElement,"yt-expander-less-tapped");this.toggle(Y,!1)};
_.H.initChildrenObserver=function(){var Y=this;this.observer=new MutationObserver(function(){Y.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.F("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.JR(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var G;(G=Y.resizeThrottle)==null||G.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.H.childrenChanged=function(){var Y=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){N4(function(){Y.canToggleJobId=0;Y.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();this.resizeObserver&&this.resizeObserver.disconnect()};
_.H.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("collapsed-changed",this.collapsed))};
_.H.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("is-toggled-changed",this.isToggled))};
_.H.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("can-toggle-changed",this.canToggle))};
_.Uk.Object.defineProperties(wY.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
wY.prototype.canToggleChangedForBinding=wY.prototype.canToggleChangedForBinding;wY.prototype.isToggledChangedForBinding=wY.prototype.isToggledChangedForBinding;wY.prototype.collapsedChangedForBinding=wY.prototype.collapsedChangedForBinding;wY.prototype.observeCollapsedHeightAndMaxLines=wY.prototype.observeCollapsedHeightAndMaxLines;wY.prototype.onIronResize=wY.prototype.onIronResize;wY.prototype.reversedChanged=wY.prototype.reversedChanged;wY.prototype.toggledChanged=wY.prototype.toggledChanged;
wY.prototype.alwaysToggleableChanged=wY.prototype.alwaysToggleableChanged;_.S([_.x(_.aZ),_.V("design:type",Object)],wY.prototype,"ironResizableBehavior",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],wY.prototype,"alignAuto",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],wY.prototype,"collapsed",void 0);_.S([_.R(),_.V("design:type",Object)],wY.prototype,"isToggled",void 0);_.S([_.R(),_.V("design:type",Object)],wY.prototype,"alwaysCollapsed",void 0);
_.S([_.R(),_.V("design:type",Object)],wY.prototype,"canToggle",void 0);_.S([_.R(),_.V("design:type",Object)],wY.prototype,"collapsedHeight",void 0);_.S([_.R(),_.V("design:type",Object)],wY.prototype,"disableToggle",void 0);_.S([_.R(),_.V("design:type",Object)],wY.prototype,"alwaysToggleable",void 0);_.S([_.R(),_.V("design:type",Object)],wY.prototype,"reversed",void 0);_.S([_.R(),_.V("design:type",Number)],wY.prototype,"maxNumberOfLines",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.V("design:type",Object)],wY.prototype,"shouldUseNumberOfLines",void 0);_.S([_.R(),_.V("design:type",Object)],wY.prototype,"recomputeOnResize",void 0);_.S([_.Ox("#content"),_.V("design:type",HTMLDivElement)],wY.prototype,"content",void 0);_.S([_.Ex("alwaysToggleable"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wY.prototype,"alwaysToggleableChanged",null);
_.S([_.Ex("isToggled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wY.prototype,"toggledChanged",null);_.S([_.f("canToggleJobId"),_.V("design:type",Object),_.V("design:paramtypes",[])],wY.prototype,"isResetting",null);_.S([_.GO("reversed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wY.prototype,"reversedChanged",null);
_.S([_.Yo("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wY.prototype,"onIronResize",null);_.S([_.GO("maxNumberOfLines","collapsedHeight"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wY.prototype,"observeCollapsedHeightAndMaxLines",null);_.S([_.GO("collapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wY.prototype,"collapsedChangedForBinding",null);
_.S([_.GO("isToggled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wY.prototype,"isToggledChangedForBinding",null);_.S([_.GO("canToggle"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wY.prototype,"canToggleChangedForBinding",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-expander"})],wY);
_.d(wY,"ytd-expander",function(){if(REU!==void 0)return REU;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return REU=Y},{mode:1});var ZF=function(){return _.Z.apply(this,arguments)||this};
_.m(ZF,_.Z);ZF.prototype.computeIsCarousel=function(Y){return!!Y.isCarousel};
ZF.prototype.observeLightsourcePalette=function(){var Y,G=(Y=this.data)==null?void 0:Y.vibrantsourceColorPaletteData;G&&_.gE(this.hostElement,G)};
ZF.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
ZF.prototype.observeLightsourcePalette=ZF.prototype.observeLightsourcePalette;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ZF.prototype,"data",void 0);_.S([_.R({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],ZF.prototype,"isCarousel",void 0);
_.S([_.GO("data.vibrantsourceColorPaletteData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZF.prototype,"observeLightsourcePalette",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],ZF);
_.d(ZF,"ytd-media-upsell-renderer",function(){if(it_!==void 0)return it_;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return it_=Y},{mode:2});var w6T;var DF=function(){var Y=_.Z.apply(this,arguments)||this;Y.JSC$15406_playerEvents=new Map;Y.listeningToPlayer=!1;Y.startX=0;Y.active=!1;Y.shouldShowButtons=_.F("web_buttons_hidden_killswitch");Y.isHighlighted=!1;Y.useHighlightStyling=_.F("web_enable_deeper_metadata_highlight_styling");Y.enableProblemWalkthrough=_.F("problem_walkthrough_sd");return Y};
_.m(DF,_.Z);_.H=DF.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$15406_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.H.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Jh(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Jh(this,this.onActiveUpdate))};
_.H.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Jh(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Jh(this,this.onActiveUpdate))};
_.H.onDataChanged=function(){this.removePlayerListeners()};
_.H.onColorPaletteChange=function(){var Y={},G;if(_.x3()==="USER_INTERFACE_THEME_DARK"&&((G=this.data)==null?0:G.darkColorPalette)){var u=this.data.darkColorPalette;Y["--ytd-macro-markers-list-item-background-color"]=_.nB(this.get("section2Color",u))}else{var O;_.x3()==="USER_INTERFACE_THEME_LIGHT"&&((O=this.data)==null?0:O.lightColorPalette)&&(u=this.data.lightColorPalette,Y["--ytd-macro-markers-list-item-background-color"]=_.nB(this.get("section3Color",u)))}u?(Y["--ytd-macro-markers-list-item-title-color"]=
_.nB(this.get("primaryTitleColor",u)),Y["--ytd-macro-markers-list-item-secondary-color"]=_.nB(this.get("secondaryTitleColor",u)),Y["--ytd-macro-markers-list-item-timestamp-background-color"]=_.nB(this.get("section1Color",u)),this.customButtonProperties={customColors:{color:_.nB(this.get("primaryTitleColor",u))}},this.useColorSampling=!0):(Y["--ytd-macro-markers-list-item-background-color"]="initial",Y["--ytd-macro-markers-list-item-title-color"]="initial",Y["--ytd-macro-markers-list-item-secondary-color"]=
"initial",Y["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.cm(this.hostElement,Y)};
_.H.onEndpointMouseDown=function(Y){this.startX=Y.clientX};
_.H.onEndpointClick=function(Y){var G=this,u,O,Q;return _.a(function(M){if(M.nextAddress==1){if(G.startX!==Y.clientX)return Y.preventDefault(),M.return();G.data&&G.ytRendererBehavior.logExplicitClick(G.data);if(!G.seekWithAnimationOnClick)return M.jumpTo(0);if(Y.button!==0||Y.shiftKey||Y.altKey||Y.metaKey||Y.ctrlKey||_.hf(_.wG(Y),G.hostElement,["BUTTON".toString()]))return M.return();Y.stopPropagation();Y.preventDefault();return G.data?M.yield(_.jr().getPlayerPromise(),3):M.return()}u=M.yieldResult;
Q=(O=_.z(G.data.onTap,_.ic))==null?void 0:O.startTimeSeconds;Q!==void 0&&u.seekToTimeWithAnimation(Q*1E3,_.Ri(G.data.title));_.Sd(M)})};
_.H.computeLayout=function(Y){return Y};
_.H.computeIsHighlighted=function(Y){return!!Y};
_.H.computeCarouselType=function(Y){return Y};
_.H.hideCarousel=function(Y){return this.hideThumbnail(Y)};
_.H.hideThumbnail=function(Y){return this.enableProblemWalkthrough&&Y!==null&&Y==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.H.onRepeatButtonToggle=function(Y){var G=this;Y.detail.toggled&&_.jr().getPlayerPromise().then(function(u){G.ytPlayerListenerBehavior.listenToPlayerEvents(u,G.JSC$15406_playerEvents);G.listeningToPlayer=!0})};
_.H.onLoopRangeChange=function(Y){var G=_.l0(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(G){var u=G.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",G.polymerController.data);if(u){var O=Number(u.endTimeMs);if(Number(u.startTimeMs)!==(Y==null?void 0:Y.startTimeMs)||O!==(Y==null?void 0:Y.endTimeMs))G.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.H.removePlayerListeners=function(){var Y=this;this.listeningToPlayer&&_.jr().getPlayerPromise().then(function(G){Y.ytPlayerListenerBehavior.unlistenFromPlayerEvents(G,Y.JSC$15406_playerEvents);Y.listeningToPlayer=!1})};
_.H.onActiveUpdate=function(Y){this.active=Y.detail.active};
DF.prototype.onColorPaletteChange=DF.prototype.onColorPaletteChange;DF.prototype.onDataChanged=DF.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],DF.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],DF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",_.wW)],DF.prototype,"ytPlayerListenerBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],DF.prototype,"data",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],DF.prototype,"useCustomColors",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],DF.prototype,"active",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],DF.prototype,"shouldShowButtons",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.V("design:type",String)],DF.prototype,"layout",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.V("design:type",Object)],DF.prototype,"isHighlighted",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],DF.prototype,"useHighlightStyling",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],DF.prototype,"enableProblemWalkthrough",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.V("design:type",String)],DF.prototype,"carouselType",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],DF.prototype,"useColorSampling",void 0);_.S([_.R(),_.V("design:type",Boolean)],DF.prototype,"seekWithAnimationOnClick",void 0);_.S([_.R(),_.V("design:type",Object)],DF.prototype,"customButtonProperties",void 0);
_.S([_.Ox("#repeat-button"),_.V("design:type",HTMLElement)],DF.prototype,"repeatButton",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DF.prototype,"onDataChanged",null);_.S([_.GO("data.lightColorPalette","data.darkColorPalette"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DF.prototype,"onColorPaletteChange",null);
_.S([_.pD({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],DF);
_.d(DF,"ytd-macro-markers-list-item-renderer",function(){if(w6T!==void 0)return w6T;var Y=document.createElement("template");_.r(Y,'\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="[[hideCarousel(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="[[!hideCarousel(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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return w6T=Y},{mode:1});var Zt1;var DD1;var hZ=function(){return _.Z.apply(this,arguments)||this};
_.m(hZ,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],hZ.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],hZ);
_.d(hZ,"ytd-title-and-button-list-header-renderer",function(){if(DD1!==void 0)return DD1;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return DD1=Y},{mode:1});var hEE;var dD2=new _.Sb("BUTTON_RENDERER_TOKEN");_.dY=_.D(function(Y){var G=_.sH().resolve(dD2);return _.T(G,Object.assign({},Y,{overrides:Y.buttonOverrides}))},"$a");var btE=_.D(function(Y){var G=Y.data,u=_.dB(Y.useSquareAspectRatio,!1);return _.T("dismissed-mini-game-card-view-model",null,_.T(_.X,{cond:function(){var O,Q;return(O=G().responseText)==null?void 0:(Q=O.runs)==null?void 0:Q.length},
then:function(){var O={};return _.T("div",{class:_.s3("yt-mini-game-card-view-model__dismissed-card",(O["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!u()},O["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.F("web_game_card_force_2_by_3")},O["yt-mini-game-card-view-model--dismissed-square-card"]=u,O))},_.T("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.T(_.X,{cond:function(){return G().responseText.runs[0].text},
then:function(Q){return _.T("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:Q},Q)}}),_.T(_.HE,{data:function(){return G().buttons}},{buttonRenderer:_.dY,
buttonViewModel:_.$Y})))}}))},"ab");var SdR=_.D(function(Y){var G=Y.data;return _.T("br-nz-badge-shape",{class:_.s3(function(){return d0g(G().brNzRatingBadgeType)}),
role:function(){return G().accessibilityText?"img":void 0},
"aria-label":function(){return G().accessibilityText}},function(){var u;
return(u=G())==null?void 0:u.text})},"bb");_.b2=_.D(function(Y){var G=function(){var u=Y.data(),O,Q,M,t,K;if(u){var L=!((O=Y.workaroundShortsIsThumbnailBadge)==null||!O.call(Y));O=(Q=Y.modern)==null?void 0:Q.call(Y);Q=(M=Y.numBadgesInRow)==null?void 0:M.call(Y);M=(t=Y.clipTextOverflow)==null?void 0:t.call(Y);t=(K=Y.inheritTypography)==null?void 0:K.call(Y);var g;a:switch(u.badgeStyle){case "BADGE_OVERLAY":K=!0;break a;default:K=!1}u={type:L?17:bfy(u.badgeStyle),brNzRatingBadgeType:SmA(u.badgeStyle),text:u.badgeText,icon:u.iconName,isOverlay:K,
modern:O||_.F("web_modern_badge_view_model"),accessibilityText:u.accessibilityLabel||((g=_.z(u.rendererContext,_.L$))==null?void 0:g.label),numBadgesInRow:Q,clipTextOverflow:M,shouldInheritTypography:t}}else u=void 0;return u};
return _.T("yt-badge-view-model",{class:_.s3("ytBadgeViewModelHost",Y.class)},_.T(_.x4,null,_.T(_.m1,{when:function(){var u;return!((u=G())==null||!u.brNzRatingBadgeType)}},function(){return _.T(SdR,{data:function(){return G()}})}),_.T(_.m1,{when:function(){return!!G()&&!G().brNzRatingBadgeType}},function(){return _.T(_.CR,{data:function(){return G()}})})))},"cb");
_.b2.idomCompat=!0;var sQl=_.D(function(Y){Y=_.bM(Y,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var G=Y.data,u=Y.useFullWidth,O=Y.isDesktopWeb,Q=Y.addSearchResultTopMargin,M=function(){return G().layout},t=function(){return G().title},K=function(){return G().metadataText?G().metadataText:G().genre},L=function(){return G().channelName},g=function(){return G().image},P=function(){return G().colorPalette},I=function(){return G().actionButton},k=function(){return G().overflowButton},
n=function(){return G().avatar},p=function(){return G().ageRating},W=function(){return G().thumbnailOverlays},C=function(){var N={};
N=_.s3("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(N["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return O()},N));
return _.T("div",{class:N},_.T(NII,{imageData:g,colorPalette:P}),_.T(jQ2,{onTap:function(){return G().onTap},
imageData:g,accessibilityText:function(){return G().accessibilityText},
overlayBadgeText:function(){return G().overlayBadgeText},
iconName:function(){return G().iconName},
unplayableInlinePlaybackIconName:function(){return G().unplayableInlinePlaybackIconName},
thumbnailOverlays:W,isDesktopWeb:O}),_.T(_.X,{cond:function(){return!O()},
then:function(){return _.T(_.GY,null,_.T(VM_,{layout:M,colorPalette:P,isDesktopWeb:O,overflowButton:k,avatar:n,onTap:function(){return G().onTap},
genre:K,title:t,channelName:L}),_.T(l8T,{actionButton:I}))}}))},e=function(){var N={};
N=_.s3((N["yt-mini-game-card-view-model--search-result-desktop"]=function(){return O()},N["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!O()},N["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return Q()},N));
return _.T("div",{class:N},C(),_.T(BII,{description:function(){return G().description},
isDesktopWeb:O,title:t,genre:K,onTap:function(){return G().onTap},
actionButton:I,overflowButton:k,avatar:n,channelName:L}))},w=function(){var N={};
N=_.s3("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(N["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return O()},N["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return O()&&G().width===135},N["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return O()},N["yt-mini-game-card-view-model--big-metadata-font"]=function(){return G().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},N["yt-mini-game-card-view-model--use-full-width"]=
function(){return u()},N["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.F("web_game_card_force_2_by_3")},N));
return _.T("div",{class:N},_.T($DV,{colorPalette:P,isDesktopWeb:O,onTap:function(){return G().onTap},
accessibilityText:function(){return G().accessibilityText},
overlayBadgeText:function(){return G().overlayBadgeText},
iconName:function(){return G().iconName},
unplayableInlinePlaybackIconName:function(){return G().unplayableInlinePlaybackIconName},
actionButton:I,imageData:g,thumbnailOverlays:W}),_.T(VM_,{layout:M,colorPalette:P,isDesktopWeb:O,overflowButton:k,avatar:n,onTap:function(){return G().onTap},
genre:K,title:t,channelName:L}),_.T(_.X,{cond:p,then:function(h){return _.T(qdX,{ageRating:h})}}))},B=function(){var N={};
N=_.s3("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(N["yt-mini-game-card-view-model--square-card-desktop"]=function(){return O()},N["yt-mini-game-card-view-model--use-full-width"]=function(){return u()},N));
return _.T("div",{class:N},_.T(jQ2,{onTap:function(){return G().onTap},
imageData:g,accessibilityText:function(){return G().accessibilityText},
overlayBadgeText:function(){return G().overlayBadgeText},
iconName:function(){return G().iconName},
unplayableInlinePlaybackIconName:function(){return G().unplayableInlinePlaybackIconName},
thumbnailOverlays:W,isDesktopWeb:O}),_.T(VM_,{layout:M,colorPalette:P,isDesktopWeb:O,overflowButton:k,avatar:n,onTap:function(){return G().onTap},
genre:K,title:t,channelName:L}),_.T(_.X,{cond:p,then:function(h){return _.T(qdX,{ageRating:h})}}))};
return _.T("mini-game-card-view-model",{class:Y.className},_.T(_.x4,null,_.T(_.m1,{when:function(){return M()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return w()}),_.T(_.m1,{when:function(){return M()==="MINI_APP_LAYOUT_SQUARE"}},function(){return B()}),_.T(_.m1,{when:function(){return M()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return e()})))},"db");
sQl.idomCompat=!0;var l8T=_.D(function(Y){var G=_.dB(Y.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.T(_.HE,{data:Y.actionButton},{buttonViewModel:function(u){return _.T("div",{class:G},_.T(_.$Y,{data:u.data}))}})},"eb"),jQ2=_.D(function(Y){var G=Y.onTap;
var u=Y.imageData;var O=Y.accessibilityText;var Q=Y.overlayBadgeText;var M=Y.iconName;var t=Y.unplayableInlinePlaybackIconName;var K=Y.isDesktopWeb;Y=Y.thumbnailOverlays;return _.T(_.Ny,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:G},_.T(_.RD,{data:u,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(O==null?void 0:O())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.T(_.HE,{data:Y},{thumbnailOverlayBadgeViewModel:_.rY}),_.T(caT,{overlayBadgeText:Q,iconName:M,unplayableInlinePlaybackIconName:t,isDesktopWeb:K}))},"fb"),caT=_.D(function(Y){var G=Y.overlayBadgeText;
var u=Y.iconName;var O=Y.unplayableInlinePlaybackIconName;var Q=Y.isDesktopWeb;return _.T("div",{class:"yt-mini-game-card-view-model__badge-container"},_.T(_.X,{cond:u,then:function(M){return _.T("div",{class:"yt-mini-game-card-view-model__badge"},_.T("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.T(_.GS,{icon:M,className:"yt-mini-game-card-view-model__icon",size:12}),_.T("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},G)))}}),_.T(_.X,{cond:function(){return!u()&&
G()},
then:function(){return _.T("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},G)}}),_.T(_.X,{cond:function(){return O()&&Q()},
then:function(){return _.T("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.T(_.GS,{icon:O,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"gb"),NII=_.D(function(Y){var G=Y.colorPalette;
var u=Y.imageData;var O=function(){return G().vibrantColorPalette?G().vibrantColorPalette.section2Color:G().sectionTwoColor};
return _.T(_.GY,null,_.T("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Yh({"background-color":function(){return FE(O(),"1")}})}),_.T("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Yh({"background-image":function(){return"url("+u().sources[0].url+")"}})}),_.T("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Yh({background:function(){return"linear-gradient(180deg,\n    "+FE(O(),".8")+" 0%,\n    "+FE(O(),".4")+" 25%,\n    "+FE(G().vibrantColorPalette?G().vibrantColorPalette.section4Color:G().sectionFourColor,".8")+" 100%)"}})}))},"hb"),VM_=_.D(function(Y){var G=Y.layout;
var u=Y.colorPalette;var O=Y.overflowButton;var Q=Y.avatar;var M=Y.onTap;var t=Y.title;var K=Y.channelName;var L=Y.genre;var g=function(){var P;return G()!=="MINI_APP_LAYOUT_SQUARE"&&((P=u())==null?0:P.textPrimaryColor)?"color: "+FE(u().textPrimaryColor,".7"):""};
return _.T("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.T(_.X,{cond:Q,then:function(){return _.T("div",{class:"yt-mini-game-card-view-model__avatar"},_.T(_.HE,{data:Q},{avatarViewModel:_.z$}))}}),_.T(_.Ny,{command:M,
className:"yt-mini-game-card-view-model__metadata-details"},_.T("h3",{class:"yt-mini-game-card-view-model__title",title:t},t),_.T(_.X,{cond:Q,then:function(){return _.T("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.T("span",{class:"yt-mini-game-card-view-model__genre",title:K,style:g},K),_.T("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:g},L))},
else:function(){return _.T("span",{class:"yt-mini-game-card-view-model__genre",title:L},L)}})),_.T("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.T(_.HE,{data:O},{buttonViewModel:function(P){var I=P.data;
return _.T(_.$Y,{data:function(){return Object.assign({},I(),{customFontColor:G()==="MINI_APP_LAYOUT_SINGLETON"?I().customFontColor:void 0})}})}})))},"ib"),$DV=_.D(function(Y){var G=Y.colorPalette;
var u=Y.isDesktopWeb;var O=Y.onTap;var Q=Y.accessibilityText;var M=Y.overlayBadgeText;var t=Y.iconName;var K=Y.unplayableInlinePlaybackIconName;var L=Y.actionButton;var g=Y.imageData;Y=Y.thumbnailOverlays;return _.T("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.T(NII,{imageData:g,colorPalette:G}),_.T(jQ2,{onTap:O,imageData:g,accessibilityText:Q,overlayBadgeText:M,iconName:t,unplayableInlinePlaybackIconName:K,isDesktopWeb:u,thumbnailOverlays:Y}),_.T(_.X,{cond:function(){return L==
null?void 0:L()},
then:function(){return _.T(l8T,{actionButton:L})}}))},"jb"),BII=_.D(function(Y){var G=Y.description;
var u=Y.isDesktopWeb;var O=Y.title;var Q=Y.genre;var M=Y.onTap;var t=Y.actionButton;var K=Y.overflowButton;var L=Y.avatar;Y=Y.channelName;var g={};g=_.s3("yt-mini-game-card-view-model--search-result-metadata-wrapper",(g["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=u,g["yt-mini-game-card-view-model--show-unplayable-on-hover"]=u,g["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!u()},g));
var P={};P=_.s3("yt-mini-game-card-view-model__search-result-info-row",(P["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!u()},P));
return _.T("div",{class:g},_.T("div",{class:P},_.T(_.Ny,{command:M,className:"yt-mini-game-card-view-model__metadata-details"},_.T("h3",{class:"yt-mini-game-card-view-model__title",title:O},O),_.T("span",{class:"yt-mini-game-card-view-model__genre",title:Q},Q)),_.T(l8T,{actionButton:t,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.T("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.T(_.HE,{data:K},{buttonViewModel:_.$Y}))),_.T("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.T("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.T("div",{class:"yt-mini-game-card-view-model__avatar"},_.T(_.HE,{data:L},{avatarViewModel:function(I){var k=I.data;return _.T(_.z$,{data:function(){return Object.assign({},k(),{avatarImageSize:u()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.T(_.Ny,{command:M,
className:"yt-mini-game-card-view-model__description"},_.T("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},Y)),_.T(_.Ny,{command:M,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.T("div",null)))),_.T(_.X,{cond:u,then:function(){return _.T(_.Ny,{command:M,className:"yt-mini-game-card-view-model__description"},G)}}))},"kb"),qdX=_.D(function(Y){var G=Y.ageRating;
return _.T("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.T(_.RD,{data:function(){return{sources:[{url:G().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.T(_.b2,{data:function(){return{badgeText:G().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"lb");_.hR(sQl,"mini-game-card-view-model",{props:{data:_.AC,className:_.AC,useFullWidth:_.AC,isDesktopWeb:_.AC,addSearchResultTopMargin:_.AC}});_.hR(btE,"dismissed-mini-game-card-view-model",{props:{data:_.AC,useSquareAspectRatio:_.AC}});var SY=function(){var Y=_.Z.apply(this,arguments)||this;Y.isSearch=!1;Y.isRichGrid=!1;return Y};
_.m(SY,_.Z);_.H=SY.prototype;_.H.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.H.dismissibleItemOnYtServiceRequestSent=function(Y,G){G.actions&&this.dismissibleItemProcessActions(Y,G.actions)};
_.H.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.H.dataChanged=function(){this.dismissibleItemReset()};
_.H.dismissibleItemProcessActions=function(Y,G){for(var u=0;u<G.length;u++){var O=G[u];_.z(O,_.Qy)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.z(O,_.Qy)),Y.stopPropagation())}};
_.H.dismissibleItemHandleReplaceEnclosingAction=function(Y){this.dismissedRenderer=Y.item;this.isDismissed=!0};
_.Uk.Object.defineProperties(SY.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var Y;return!!this.data&&!((Y=this.dismissedRenderer)==null?0:Y.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.dismissedRenderer)==null||!Y.notificationMultiActionRenderer)}}});
SY.prototype.dataChanged=SY.prototype.dataChanged;SY.prototype.dismissibleItemOnRequestSent=SY.prototype.dismissibleItemOnRequestSent;SY.prototype.dismissibleItemOnYtServiceRequestSent=SY.prototype.dismissibleItemOnYtServiceRequestSent;_.S([_.R(),_.V("design:type",Object)],SY.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],SY.prototype,"isSearch",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],SY.prototype,"isDismissed",void 0);
_.S([_.R(),_.V("design:type",Object)],SY.prototype,"dismissedRenderer",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],SY.prototype,"isRichGrid",void 0);_.S([_.f("data.layout"),_.V("design:type",Object),_.V("design:paramtypes",[])],SY.prototype,"useSquareAspectRatio",null);_.S([_.f("data","dismissedRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],SY.prototype,"showCard",null);
_.S([_.f("data","dismissedRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],SY.prototype,"showDismissed",null);_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],SY.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.S([_.Yo("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],SY.prototype,"dismissibleItemOnRequestSent",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SY.prototype,"dataChanged",null);_.S([_.Ff({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],SY);
_.d(SY,"ytd-mini-game-card-view-model",function(){if(hEE!==void 0)return hEE;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return hEE=Y},{mode:2});var UDk;var vEe;var N8=function(){return _.vD.apply(this,arguments)||this};
_.m(N8,_.vD);N8.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
N8.prototype.getContinuationUrl=function(Y){var G={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(G.itct=this.data.clickTrackingParams);return _.JD(Y,G)};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],N8.prototype,"data",void 0);_.S([_.Ff({is:"yt-reload-continuation",noInjection:!0})],N8);var JaU;var YN1;var jY=function(){var Y=_.Z.apply(this,arguments)||this;Y.notificationData={};return Y};
_.m(jY,_.Z);_.H=jY.prototype;_.H.isMenuExpanded=function(Y){return Y&&Y.length<=1?"undefined":"false"};
_.H.dataChanged_=function(){this.selected=void 0;var Y=this.computeSelectedIndex_(this.data);Y>=0&&(this.selected=Y);Y=this.data&&this.data.length>1;_.$3(this.hostElement,"has-items",Y);_.l0(this.hostElement).querySelector("#label").tabIndex=Y?0:-1};
_.H.onDropdownOpen=function(){var Y=_.FA();if(this.parentTrackingParams&&this.data){var G=_.Kd(this.parentTrackingParams);this.data.forEach(function(u){Y&&G&&u.trackingParams&&(u=_.Kd(u.trackingParams),_.y6(Y,G,u),_.oK(Y,[u]))})}else this.parentTrackingParams||_.R0(new _.I2("No parent tracking params passed in for yt-dropdown-menu."))};
_.H.hasNotification=function(Y){var G;if(Y.targetId&&((G=this.notificationData)==null?0:G.targetId)){var u;return Y.targetId===((u=this.notificationData)==null?void 0:u.targetId)}};
_.H.computeSelectedIndex_=function(Y){if(Y)for(var G=0,u=Y.length;G<u;G++)if(Y[G].selected)return G;return-1};
_.H.computeLabel_=function(Y){return this.data&&Y!=void 0?this.data[Y].title:""};
_.H.computeShowIcon_=function(Y,G){return!G&&!!Y};
_.H.computeVerticalOffset_=function(Y){return Y?36:0};
_.H.computeEndpoint_=function(Y){return Y.endpoint||Y.navigationEndpoint};
_.H.onLabelClick_=function(Y){this.data&&this.data.length<=1?Y.stopPropagation():this.menuExpanded="true"};
_.H.onIronActivate_=function(Y){Y=Y.detail.item;var G=_.l0(this.hostElement).querySelector("#repeat").itemForElement(Y);if(G&&G.trackingParams){var u=_.FA(),O=_.Kd(G.trackingParams);u&&_.RK(u,O)}if(G&&G.serviceEndpoint)_.F("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(G.serviceEndpoint):_.c$(this.hostElement,[G.serviceEndpoint]),_.$s(this.hostElement,"yt-playlist-reloading");else a:{if((G=Y.querySelector("yt-supported-renderers"))&&
(G=G.rendererElement)&&G.is=="yt-reload-continuation"){G.trigger();break a}(Y=Y.querySelector("yt-reload-continuation"))&&Y.trigger()}};
_.H.onTap_=function(Y){Y.preventDefault()};
_.H.onItemTap_=function(Y){this.ytEndpointBehavior.onEndpointTap_(Y)};
_.H.onLinkFocus_=function(Y){try{var G=Y.target}catch(O){}if(G){var u=G.querySelector("tp-yt-paper-item");u&&_.y4(this,"focus",function(){u.focus()})}};
_.H.onMenuClose_=function(){this.menuExpanded="false"};
_.H.isLabelIconActive_=function(Y){return Y==="true"};
_.H.computeHasSubtitle_=function(Y){return!!Y};
_.H.computeHrefForItem_=function(Y){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(Y))};
_.H.updateSelectedFromBinding=function(Y){this.selected=Y.detail.value};
_.Uk.Object.defineProperties(jY.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
jY.prototype.onMenuClose_=jY.prototype.onMenuClose_;jY.prototype.onTap_=jY.prototype.onTap_;jY.prototype.onIronActivate_=jY.prototype.onIronActivate_;jY.prototype.onDropdownOpen=jY.prototype.onDropdownOpen;jY.prototype.dataChanged_=jY.prototype.dataChanged_;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],jY.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.U2.YtEndpointBehavior),_.V("design:type",Object)],jY.prototype,"ytEndpointBehavior",void 0);
_.S([_.R(),_.V("design:type",Array)],jY.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],jY.prototype,"parentTrackingParams",void 0);_.S([_.R(),_.V("design:type",Object)],jY.prototype,"selected",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],jY.prototype,"useLabel",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],jY.prototype,"useComputedAriaLabel",void 0);_.S([_.R(),_.V("design:type",String)],jY.prototype,"icon",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],jY.prototype,"iconLabel",void 0);_.S([_.R(),_.V("design:type",String)],jY.prototype,"ariaLabel",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],jY.prototype,"disabled",void 0);_.S([_.R({computed:"isMenuExpanded(data)"}),_.V("design:type",String)],jY.prototype,"menuExpanded",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],jY.prototype,"closeOnActivate",void 0);
_.S([_.R({reflectToAttribute:!0,value:_.F("web_modern_buttons")}),_.V("design:type",Boolean)],jY.prototype,"modernButtons",void 0);_.S([_.R(),_.V("design:type",Object)],jY.prototype,"notificationData",void 0);_.S([_.f("ariaLabel, selected"),_.R(),_.V("design:type",String),_.V("design:paramtypes",[])],jY.prototype,"computedAriaLabel",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jY.prototype,"dataChanged_",null);
_.S([_.Yo("paper-dropdown-open"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],jY.prototype,"onDropdownOpen",null);_.S([_.Yo("iron-activate"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],jY.prototype,"onIronActivate_",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],jY.prototype,"onTap_",null);
_.S([_.Yo("iron-overlay-closed"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],jY.prototype,"onMenuClose_",null);_.S([_.Ff({is:"yt-dropdown-menu",disableElementRegistration:!0})],jY);
_.d(jY,"yt-dropdown-menu",function(){if(YN1===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;JaU===void 0&&(JaU=document.createElement("template"));var O=JaU;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);YN1=Y}Y=YN1;return Y},{mode:2});var VP=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasNotification=!1;return Y};
_.m(VP,_.Z);VP.prototype.computeId=function(Y){return Y};
VP.prototype.computeHorizontalAlign=function(Y){return Y?"right":"left"};
VP.prototype.computeAccessibilityLabel=function(Y){var G,u;return((G=Y.accessibility)==null?void 0:(u=G.accessibilityData)==null?void 0:u.label)||null};
VP.prototype.notificationDataChanged=function(){var Y;this.hasNotification=!!this.notificationData&&!((Y=this.data)==null?0:Y.icon)};
VP.prototype.notificationDataChanged=VP.prototype.notificationDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.zk.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],VP.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],VP.prototype,"data",void 0);_.S([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.V("design:type",String)],VP.prototype,"id",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],VP.prototype,"isRightAligned",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],VP.prototype,"disabled",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],VP.prototype,"closeOnActivate",void 0);_.S([_.R(),_.V("design:type",Object)],VP.prototype,"notificationData",void 0);_.S([_.R(),_.V("design:type",Object)],VP.prototype,"hasNotification",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],VP.prototype,"useComputedAriaLabel",void 0);_.S([_.GO("notificationData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],VP.prototype,"notificationDataChanged",null);_.S([_.Ff({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],VP);
_.d(VP,"yt-sort-filter-sub-menu-renderer",function(){if(vEe===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;UDk===void 0&&(UDk=document.createElement("template"));var O=UDk;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);vEe=Y}Y=vEe;return Y},{mode:2});var G3X=_.D(function(Y){var G=Y.data;var u=_.U3(function(){var M=G().onTap;(M=_.z(M,_.nd))&&_.sH().resolve(_.rH).resolveCommand(M);return!1}),O=function(){return{sources:[{url:G().thumbnailUrl,
width:120,height:90}]}},Q=function(){return G().rating&&G().ratingA11yLabel&&G().reviewsCount&&G().reviewsCountA11yLabel};
return _.T("place-data-view-model",null,_.T(_.X,{cond:function(){return G().placeName&&G().placeCategory},
then:function(){return _.T("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":u},_.T(_.RD,{data:O,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.T(_.Ny,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return G().onTap}},_.T("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return G().placeName}},function(){return G().placeName})),_.T("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.T(_.X,{cond:Q,
then:function(){return _.T("div",{class:_.s3("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.T("span",{class:"score",title:function(){return G().ratingA11yLabel}},function(){return G().rating}),_.T("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.T(_.GS,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.T("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return G().reviewsCountA11yLabel}},function(){return G().reviewsCount}))},
else:function(){return _.T("div",{class:_.s3("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.T("div",{class:_.s3("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.T("span",{class:"category",
title:function(){return G().placeCategory}},function(){return G().placeCategory}))))}}))},"mb");
G3X.idomCompat=!0;_.hR(G3X,"place-data-view-model",{props:{data:_.AC}});var uKU=new _.Sb("INLINE_PLAYBACK_HOOK_TOKEN");var OvI=kh({sharedUi:AQU});_.A$=nz(OvI)(OvI.sharedUi,{animatedThumbnailEnabledSelector:function(Y){return Y.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(Y){return Y.inlinePreviewEnabled},
currentPageTypeSelector:function(Y){return Y.currentPageType},
currentPageSubTypeSelector:function(Y){return Y.currentPageSubType},
persistentPanelVisibleSelector:function(Y){return Y.persistentPanelVisible}});var Q5R=function(Y){this.setActiveSlideIndex=Y;this.jobIds=[];this.isSlideshowPlaying=!1},EZI=function(Y,G){Y.isSlideshowPlaying||(Y.isSlideshowPlaying=!0,M$1(Y),HvV(Y,G,0))},M$1=function(Y){_.jk(_.AN,function(){Y.setActiveSlideIndex(0)},1)},HvV=function(Y,G,u){Y.jobIds.push(_.jk(_.AN,function(){var O=u<G-1?u+1:0;
Y.setActiveSlideIndex(O);HvV(Y,G,O)},1800))};var t$2,agk;t$2=new _.Sb("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.KnT=new _.Sb("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");agk=new _.Sb("COMMON_MARK_VIEW_MODEL_TOKEN");var Ty4=new _.Sb("IMAGE_ON_LOAD_HANDLER_TOKEN");var LnM=_.D(function(Y){return _.T("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.T(_.X,{cond:function(){var G;return(G=Y.data())==null?void 0:G.thumbnail},
then:function(G){return _.T(_.RD,{data:G,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"nb");_.gZR=_.D(function(Y){var G=Y.data;var u=Y.lockupExperiments;Y={};return _.T("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.T("div",{class:_.s3("ytThumbnailOverlayButtonViewModelButton",(Y.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var O;return u&&((O=u())==null?void 0:O.useLegacySizedIconButton)},Y))},_.T(_.HE,{data:function(){return G().overlayButton}},{buttonViewModel:function(O){return _.T(_.$Y,{data:O.data,
buttonOverrides:function(){var Q;return u&&((Q=u())==null?0:Q.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"ob");
_.gZR.idomCompat=!0;var XRE=_.D(function(Y){return _.T("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.U3(function(G){G.preventDefault();return!1})},_.T(_.HE,{data:function(){return Y.data().buttons}},{toggleButtonViewModel:function(G){return _.T("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.T(_.Tr,{data:G.data}))}}))},"pb");
XRE.idomCompat=!0;var PzE=_.D(function(Y){var G=function(){var u;return((u=_.z(Y.data().rendererContext,_.L$))==null?void 0:u.label)||""};
return _.T("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.T(_.X,{cond:function(){return Y.data().image},
then:function(){return _.T("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.T(_.RD,{data:function(){return Y.data().image},
alt:G}))}}),_.T(_.X,{cond:function(){return Y.data().text},
then:function(){return _.T("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return Y.data().text})}}))},"qb");var IgV=_.A$.animatedThumbnailEnabledSelector,l2=_.D(function(Y){var G=[],u=function(){var n,p;return _.E9g((n=Y.width)==null?void 0:n.call(Y),(p=Y.height)==null?void 0:p.call(Y))},O=_.sH().resolve(_.q3(Ty4)),Q=_.CH("yt-thumbnail-view-model",function(){G.push("elRef.value set");
var n;(n=Y.playbackRef)==null||n.call(Y,{thumbnailElRef:Q,thumbnail:Y.data().image,thumbnailOverlays:Y.data().overlays,thumbnailSize:u()})});
_.ii(function(){G.push("onInit");_.w_(function(){G.push("onCleanup")})});
var M=_.Hx(IgV),t=function(){var n,p;return(p=(n=Y.aspectRatio)==null?void 0:n.call(Y))!=null?p:0},K=function(){return(Y.data().image?_.CHt(Y.data().image):t())<=1&&t()===0},L=function(){return K()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},g=function(){Q.value||_.R0(new _.I2("Thumbnail elRef.value is null",G.join("\n")));
O&&Q.value&&O(Q.value)},P=function(){var n,p;
return((n=Y.hovered)==null?void 0:n.call(Y))&&u()!=="large"&&((p=Y.data().overlays)==null?void 0:p.some(function(W){return _.z(W,tJE)}))},I={},k={};
return _.T("yt-thumbnail-view-model",{class:_.s3("ytThumbnailViewModelHost",Y.className,function(){return jT4(t())},function(){var n,p;
a:{var W=u(),C=(n=Y.disableRounding)==null?void 0:n.call(Y);n=(p=Y.isClip)==null?void 0:p.call(Y);if(!C&&!n)switch(W){case "large":p="ytThumbnailViewModelLarge";break a;case "small":p="ytThumbnailViewModelSmall";break a;default:p="ytThumbnailViewModelMedium";break a}p=void 0}return p},(I.ytThumbnailViewModelCinematic=K,I),(k.ytThumbnailViewModelHighlightEffect=function(){var n,p;
return(n=Y.lockupExperiments)==null?void 0:(p=n.call(Y))==null?void 0:p.showHighlightEffect},k)),
style:_.Yh({"background-color":function(){var n,p=K()?(n=Y.data().backgroundColor)==null?void 0:n.lightTheme:void 0;return p?FE(p,"1"):void 0}}),
el:Q},_.T(_.X,{cond:K,then:function(){return _.T("div",{class:"ytThumbnailViewModelBlurredImage"},_.T(_.RD,{data:function(){return Y.data().image},
alt:"",contentMode:L,targetWidth:Y.width,onload:g}))}}),_.T("div",{class:"ytThumbnailViewModelImage"},_.T(_.RD,{data:function(){return Y.data().image},
alt:"",contentMode:L,targetWidth:Y.width,onload:g}),null),_.T(_.HE,{data:function(){return P()?void 0:Y.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:nE4,thumbnailOverlayBadgeViewModel:function(n){return _.T(_.rY,{data:n.data,thumbnailSize:u,isClip:Y.isClip})},
thumbnailBottomOverlayViewModel:function(n){return _.T(X6l,{data:n.data,thumbnailSize:u,isClip:Y.isClip})},
thumbnailOverlayFullViewModel:PzE,thumbnailOverlayButtonViewModel:function(n){return _.T(_.gZR,{data:n.data,lockupExperiments:Y.lockupExperiments})},
channelDisclosureViewModel:function(n){n=n.data;var p;return _.T("div",null,(p=_.sH().resolve(_.q3(t$2)))==null?void 0:p({data:n}))}}),_.T(_.HE,{data:function(){var n;
return((n=Y.hovered)==null?0:n.call(Y))?Y.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(n){return _.T(pr,{data:n.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:XRE}),_.T(_.HE,{data:function(){var n;return((n=Y.hovered)==null?0:n.call(Y))&&M()?Y.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:LnM}),_.T(_.X,{cond:Y.isClip,then:function(){return _.T("div",{class:"ytPinkingNsHost"},_.T("svg",{class:"ytPinkingNsPinkingLeft"},_.T("defs",null,_.T("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.T("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.T("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.T("svg",{class:"ytPinkingNsPinkingRight"},_.T("defs",null,_.T("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.T("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.T("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"rb");
l2.idomCompat={callbacks:{playbackRef:!0}};var k3R=_.D(function(Y){var G=_.E(_.IE(-1,void 0,"RW2Ole")),u=G.next().value,O=G.next().value;_.ii(function(){var Q=new Q5R(O);EZI(Q,Y.data().thumbnails.length);_.w_(function(){if(Q.isSlideshowPlaying){Q.isSlideshowPlaying=!1;for(var M=Q.jobIds,t=0,K=M.length;t<K;t++)_.AN.cancelJob(M[t]);Q.jobIds.length=0}})});
return _.T("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.T(_.HE,{data:function(){return Y.data().thumbnails}},{thumbnailViewModel:function(Q,M){return _.T("div",{class:function(){var t=!Y.data().primaryThumbnail,K=M(),L=u(),g=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
t&&K===0&&g.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");K<=L&&g.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return g.join(" ")}},_.T(l2,{data:Q.data,
disableRounding:Y.disableRounding}))}}))},"sb");
k3R.idomCompat=!0;var Vug=new _.Sb("DWELL_DETECTOR_REGISTRY_TOKEN");var Fn1=_.D(function(Y){var G=l3a(Y.triggeringElement),u=function(){return!!Y.data().primaryThumbnail},O=function(){var M,t=(M=Y.data())==null?void 0:M.maxHeight,K;
M=(K=Y.maxHeight)==null?void 0:K.call(Y);return t!=null&&M!=null?Math.min(t,M):M!=null?M:t},Q=function(){var M=O();
if(M){var t;if(u()&&(t=Y.includeStackHeight)!=null&&t.call(Y)){var K;t=((K=Y.doubleStack)==null?0:K.call(Y))?8:4}else t=0;M=M-t-1;if(!(M<0)){K=Math;t=K.ceil;var L,g;var P=HEj((g=(L=Y.aspectRatio)==null?void 0:L.call(Y))!=null?g:0);return t.call(K,M*P)}}};
return _.T("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.Yh({height:function(){return O()?O()+"px":void 0},
width:function(){return Q()?Q()+"px":void 0}})},_.T(nZe,{stackEnabled:u,
thumbnailSize:function(){var M,t;return _.E9g((M=Y.width)==null?void 0:M.call(Y),(t=Y.height)==null?void 0:t.call(Y))},
doubleStack:Y.doubleStack,stackColor:function(){return Y.data().stackColor},
includeStackHeight:Y.includeStackHeight},_.T(_.HE,{data:function(){return Y.data().primaryThumbnail}},{thumbnailViewModel:function(M){var t={};
return _.T(l2,{data:M.data,width:Y.width,height:Y.height,aspectRatio:Y.aspectRatio,disableRounding:Y.disableRounding,className:_.s3((t.ytCollectionThumbnailViewModelHostHasStacks=u,t)),hovered:Y.hovered,playbackRef:Y.playbackRef})}}),_.T(_.X,{cond:function(){var M;
return G()&&((M=Y.data().thumbnails)==null?void 0:M.length)},
then:function(){return _.T("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.T(k3R,{data:Y.data,disableRounding:function(){return!u()}}))}})))},"tb");
Fn1.idomCompat={callbacks:{playbackRef:!0}};
var nZe=_.D(function(Y){var G=Y.children;var u=Y.stackEnabled;var O=Y.thumbnailSize;var Q=Y.doubleStack;var M=Y.stackColor;var t=Y.includeStackHeight;var K,L=(K=_.sH().resolve(_.q3(_.Ee)))==null?void 0:K();return _.T(_.X,{cond:u,then:function(){return _.T(Vu2,{data:function(){var g,P;return{experimentEnabled:!0,thumbnailSize:O(),doubleStack:Q==null?void 0:Q(),color:L?M==null?void 0:(g=M())==null?void 0:g.darkTheme:M==null?void 0:(P=M())==null?void 0:P.lightTheme,enableResponsiveMode:!1,includeStackHeight:t==
null?void 0:t()}}},G)},
else:function(){return G}})},"ub");var pRT=new _.Sb("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");_.z2l=_.D(function(Y){var G=Y.data;Y=_.CH("ad-card-badge-view-model");return _.T("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:Y},_.T(_.X,{cond:function(){return G().imageBadge},
then:function(u){return _.T(_.RD,{data:u,alt:""})}}))},"vb");var $8;_.B9={calledOnce:!0,state:"visible"};$8={calledOnce:!0,state:"hidden"};_.q8=_.D(function(Y){var G=_.bM(Y,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});Y=Object.assign({},G);var u=G.data;G=G.customCommandResolver;var O=(delete Y.data,delete Y.customCommandResolver,Y);Y=_.UV({visibilityCallback:function(K,L){var g,P=(g=u().interaction)==null?void 0:g.onFirstVisible;K&&(P&&_.W3(P),O.setOnErrorHandler()&&B54(L))},
showOption:_.B9});G=_.fK(function(){return u().interaction},G,function(){var K;
return(K=O.listenToTapEvent)==null?void 0:K.call(O)});
var Q=_.E(_.IE(!1,void 0,"wAC0Lc")),M=Q.next().value,t=Q.next().value;Q=_.U3(function(K){var L;((L=O.setTouchEndHandler)==null?0:L.call(O))&&!M()&&(K.currentTarget.click(),t(!0),setTimeout(function(){t(!1)},100));
return!1});
return _.T("ad-image-view-model",{class:function(){var K,L=[((K=u().interaction)==null?0:K.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],g;((g=O.isGridViewEnabled)==null?0:g.call(O))&&L.push("ytwAdImageViewModelHostInGridView");return L.join(" ")},
el:_.iq(Y,G),"on:touchend":Q},_.T("div",{class:"ytwAdImageViewModelHostImageContainer"},_.T(_.RD,{data:function(){var K;return{sources:u().imageSources,contentMode:(K=u().imageProperties)==null?void 0:K.contentMode}},
alt:function(){var K,L;return((K=u().interaction)==null?void 0:(L=K.accessibility)==null?void 0:L.label)||""},
targetHeight:O.targetHeight,targetWidth:O.targetWidth,preserveHeight:O.preserveHeight,preserveWidth:O.preserveWidth,useWidth:O.useWidth,style:function(){var K,L;return"vertical-align: bottom;"+(((K=u().background)==null?0:K.color)?"background-color:"+_.k3((L=u().background)==null?void 0:L.color)+";":"")},
className:function(){return O.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var K,L;return(L=(K=O.setDraggable)==null?void 0:K.call(O))!=null?L:void 0}})))},"xb");var mB2=_.D(function(Y){var G=Y.data;var u=Y.customCommandResolver;return _.T("carousel-ad-card-image-view-model",{class:function(){var O;return((O=G().interaction)==null?0:O.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.iq(_.UV({visibilityCallback:function(O){var Q,M=(Q=G().interaction)==null?void 0:Q.onFirstVisible;O&&M&&_.W3(M)},
showOption:_.B9}),_.fK(function(){return G().interaction},u)),
"aria-label":function(){var O,Q;return(O=G().interaction)==null?void 0:(Q=O.accessibility)==null?void 0:Q.label}},_.T(_.HE,{data:function(){return G().adImage}},{adImageViewModel:function(O){return _.T(_.q8,{data:O.data,
customCommandResolver:u})}}),_.T("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.T(_.HE,{data:function(){return G().badge}},{adCardBadgeViewModel:_.z2l})),_.T(_.jO,{model:{color:4}}))},"yb");var Wn4=_.D(function(Y){var G=_.E(_.IE(0,void 0,"JJ0QQc")),u=G.next().value;G.next();var O=G.next().value,Q=_.E(_.IE(!1,void 0,"f6YICe"));G=Q.next().value;var M=Q.next().value,t;_.w_(function(){clearTimeout(t)});
Q=_.U3(function(){var g;((g=Y.animate)==null?0:g.call(Y))?(M(!0),t=setTimeout(function(){M(!1);K()},200)):K();
return!1});
var K=function(){O(function(g){return(g+Y.numShownItems())%Y.data().length})},L={};
return _.T("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.T("div",{class:_.s3("ytwHorizontalCarouselCarouselWrapper")},_.T("div",{class:_.s3("ytwHorizontalCarouselCarouselInnerWrapper",(L.ytwHorizontalCarouselAnimating=G,L))},_.T(_.rc,{each:Y.data,keyBy:"INDEX"},function(g,P){return _.T("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Yh({"flex-basis":function(){return"calc((100% - (8px * "+(Y.numShownItems()-1)+")) / "+Y.numShownItems()+")"},
order:function(){var I=P-u();I<0&&(I+=Y.data().length);return I}})},Y.children(g,P))}))),_.T("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":Q},Y.nextButton()))},"zb");var fg1=_.D(function(Y){var G=Y.data;var u=Y.customCommandResolver;var O=Y.expansive;var Q=Y.isLockupAttachment;return _.T("carousel-ad-card-collection-view-model",{el:_.iq(_.UV({visibilityCallback:function(M){var t,K=(t=G().interaction)==null?void 0:t.onFirstVisible;M&&K&&_.W3(K)},
showOption:_.B9})),class:"ytwCarouselAdCardCollectionViewModelHost"},_.T(_.X,{cond:function(){return Q==null?void 0:Q()},
then:function(){return _.T(r9E,{data:G,customCommandResolver:u})},
else:function(){return _.T(xBe,{data:G,customCommandResolver:u,expansive:O})}}))},"Ab"),r9E=_.D(function(Y){var G=Y.data;
var u=Y.customCommandResolver;return _.T("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarousel",tabindex:0},_.T(_.HE,{data:function(){return G().carouselAdCards||[]}},{carouselAdCardImageViewModel:function(O){return _.T("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarouselItem"},_.T(mB2,{data:O.data,
customCommandResolver:u}))}}))},"Bb"),xBe=_.D(function(Y){var G=Y.data;
var u=Y.customCommandResolver;var O=Y.expansive;return _.T(Wn4,{data:function(){var Q;return((Q=G())==null?void 0:Q.carouselAdCards)||[]},
nextButton:function(){return _.T(_.HE,{data:function(){return G().nextButton}},{buttonViewModel:function(Q){var M=Q.data;
return _.T(_.$Y,{data:function(){return(O==null?0:O())?Object.assign({},M(),{style:"mono"}):M()},
className:_.F("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(Q){return _.T(_.HE,{data:Q},{carouselAdCardImageViewModel:function(M){return _.T(mB2,{data:M.data,customCommandResolver:u})}})})},"Cb");_.sM=_.D(function(Y){var G=Y.data;var u=Y.customCommandResolver;var O=Y.className;var Q=Y.delayedClassName;var M=Y.animationEntityKey;var t=Y.isCompactWidth;var K=Y.isContentWidth;Y=_.E(_.IE(!1,void 0,"B1koDf"));var L=Y.next().value,g=Y.next().value,P=_.dB(M,""),I=_.Oe(jpY,P),k=function(){var aU,Tg;return(Tg=(aU=I())==null?void 0:aU.value)!=null?Tg:!1},n=function(){_.hj(_.t$("booleanEntity",P(),{key:P(),
value:!0}));h=void 0};
M=_.E(_.SN(k));var p=M.next().value,W=M.next().value;M=_.E(_.SN(k));var C=M.next().value,e=M.next().value;M=_.E(_.SN(function(){var aU;return k()?(aU=G().styleTransitionConfig)==null?void 0:aU.destinationStyle:void 0}));
var w=M.next().value,B=M.next().value,N=function(){var aU=Object.assign({},G(),w()&&{style:w()});var Tg,iy,hY=aU.label,dA=(Tg=aU.interaction)==null?void 0:(iy=Tg.accessibility)==null?void 0:iy.label;Tg=aU.iconImage?aU.label&&aU.label.content?aU.iconLeading?"leading":"trailing":"icon-only":void 0;aU={formattedButtonText:hY,accessibilityLabel:dA,style:c6u(aU.style),type:U0u(aU.style),state:"active",size:sTg(aU.size),iconPosition:Tg,disabled:!1,aTagConfig:qmj(aU,u)};aU.focused=L();return aU},h;
M=_.UV({visibilityCallback:function(aU){var Tg,iy=(Tg=G().interaction)==null?void 0:Tg.onFirstVisible;aU&&iy&&_.W3(iy)},
showOption:_.B9});var q=function(){return PVI(N(),!!G().iconImage)};
Y={};var U={};O=_.s3(function(){return"ytwAdButtonViewModelHost"},function(){return G().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var aU=!!G().delayedAppearanceConfig,Tg=p();
return aU?Tg?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var aU=!!G().delayedAppearanceConfig,Tg=C();
return aU?Tg?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!G().delayedAppearanceConfig||p()?Q==null?void 0:Q():""},(Y.ytwAdButtonViewModelHostCompactWidth=function(){return t==null?void 0:t()},Y),(U.ytwAdButtonViewModelHostContentWidth=function(){return K==null?void 0:K()},U),O!=null?O:"");
var Mj=function(){var aU,Tg=(aU=G().delayedAppearanceConfig)==null?void 0:aU.delayedInvisibleSeconds;Tg&&(h=_.Ti(_.AN,function(){W(!0);Xt()},Tg*1E3))},Xt=function(){var aU,Tg=(aU=G().delayedAppearanceConfig)==null?void 0:aU.delayedVisibleSeconds;
Tg&&(h=_.Ti(_.AN,function(){e(!0);ka()},Tg*1E3))},ka=function(){var aU,Tg=(aU=G().styleTransitionConfig)==null?void 0:aU.styleTransitionSeconds,iy,hY=(iy=G().styleTransitionConfig)==null?void 0:iy.destinationStyle;
Tg&&hY?h=_.Ti(_.AN,function(){B(hY);n()},Tg*1E3):n()};
_.ii(function(){Mj()});
_.w_(function(){h&&_.AN.cancelJob(h)});
return _.T("ad-button-view-model",{"on:focusin":_.U3(function(){var aU=_.sH().resolve(_.q3(_.SO));aU&&g(aU.isKeyBoardInUse());return!1}),
"on:focusout":_.U3(function(){g(!1);return!1}),
class:O,el:_.iq(M),style:_.Yh({"transition-duration":"0.3s"})},_.T(_.X,{cond:N,then:function(){return _.T(_.BZ,{data:N,icon:function(){return _.T(_.X,{cond:function(){return G().iconImage},
then:function(aU){return _.T(_.RD,{data:aU,alt:"",targetWidth:q,targetHeight:q,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Db");var Cz1=_.D(function(Y){var G=Y.data;Y=function(){return G().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var u=_.UV({visibilityCallback:function(M){var t,K=(t=G().interaction)==null?void 0:t.onFirstVisible;M&&K&&_.W3(K)},
showOption:_.B9}),O={},Q={};return _.T("ad-button-group-view-model",{class:_.s3("ytwAdButtonGroupViewModelHost",(O.ytwAdButtonGroupViewModelHostCompactWidth=Y,O)),el:_.iq(u)},_.T("div",{class:_.s3("ytwAdButtonGroupViewModelHostSecondaryButton",(Q.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=Y,Q))},_.T(_.HE,{data:function(){return G().secondaryAdButton}},{adButtonViewModel:function(M){return _.T(_.sM,{data:M.data})}})),_.T("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.T(_.HE,
{data:function(){return G().primaryAdButton}},{adButtonViewModel:function(M){return _.T(_.sM,{data:M.data})}})))},"Eb");var y9T=_.D(function(Y){var G=function(){var u;return((u=Y.data())==null?void 0:u.answers)||[]};
return _.T("yt-survey-icons",{class:"ytSurveyIconsHost"},_.T("div",{class:"ytSurveyIconsHeader"},_.T("div",{class:"ytSurveyIconsTitle"},function(){var u;return(u=Y.data())==null?void 0:u.text}),_.T("div",null,_.T(_.BZ,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var u;(u=Y.onDismiss)==null||u.call(Y)}}},
iconName:"DISMISSAL"}))),_.T("div",null,_.T("div",{class:"ytSurveyIconsAnswers"},_.T(_.rc,{each:function(){return G()},
keyBy:"INDEX"},function(u,O){return _.T("div",null,_.T(_.BZ,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var Q;(Q=Y.onSelect)==null||Q.call(Y,u(),O)}}},
icon:function(){return _.T(_.GS,{icon:function(){var Q,M;return(Q=u())==null?void 0:(M=Q.icon)==null?void 0:M.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.T("div",{class:"ytSurveyIconsAnswersText"},_.T("div",null,function(){return G().length?G()[0].text:""}),_.T("div",null,function(){return G().length?G()[G().length-1].text:""}))))},"Fb");var e2_=_.D(function(Y){var G=_.iq(_.zi(function(){var L;return(L=Y.data())==null?void 0:L.rendererContext},void 0,void 0,void 0,!0)),u=_.E(_.IE(!1,void 0,"GW0yjf")),O=u.next().value,Q=u.next().value,M=_.Oe(Vay,function(){var L;
return(L=Y.data().keys)==null?void 0:L.surveyEntityKey}),t=_.Oe(lQt,function(){var L;
return(L=Y.data().keys)==null?void 0:L.surveyStateEntityKey});
_.lj("ytd-slimline-survey-show-action",function(){Q(!1)});
var K=function(){var L,g;var P=(L=t())==null?void 0:(g=L.questionStack)==null?void 0:g[0];if(P!==void 0){var I,k;return(I=M())==null?void 0:(k=I.questions)==null?void 0:k[P]}};
u={};return _.T("yt-slimline-survey-view-model",{el:G,class:_.s3("ytSlimlineSurveyViewModelHost",(u.ytSlimlineSurveyViewModelCollapsed=function(){return O()},u))},_.T("div",{class:"ytSlimlineSurveyViewModelContainer"},_.T(_.X,{cond:function(){var L;
return((L=K())==null?void 0:L.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.T(y9T,{data:function(){return K()},
onSelect:function(L,g){var P,I;return _.a(function(k){Q(!0);if(I=(P=Y.data())==null?void 0:P.onSelectRating)_.W3(I),_.hj(VfU(g));_.Sd(k)})},
onDismiss:function(){Q(!0);var L;var g=(L=M())==null?void 0:L.dismissalFeedbackToken;L=g?{feedbackEndpoint:{feedbackToken:g}}:void 0;L&&_.pd(L,{form:{element:G.value}})}})}})))},"Gb");var A9E=_.D(function(Y){return _.T("yt-table-view-model",{class:_.s3("ytTableViewModelHost",Y.className)},_.T(_.rc,{each:function(){return Y.data().rows||[]}},function(G){var u={};
return _.T("div",{class:_.s3("ytTableViewModelRow",(u.ytTableViewModelRowBottomBorder=function(){return Y.data().showSeparators},u))},_.T(_.rc,{each:function(){return(G==null?void 0:G.cells)||[]}},function(O,Q){var M,t={};
return _.T("span",{class:_.s3((t.ytTableViewModelRowLabel=function(){return Q()===0&&Y.data().showHorizontalHeaders},t.ytTableViewModelCell=function(){return!Y.data().showHorizontalHeaders||Q()>0},t))},(M=O.text)==null?void 0:M.content)}))}))},"Hb");var oZe=_.D(function(Y){return _.T("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.T(_.HE,{data:function(){var G;return(G=Y.data())==null?void 0:G.attachments}},{flexibleActionsViewModel:function(G){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(_.W7,{data:G.data,
layout:function(){var u;return((u=Y.lockupStyle())==null?void 0:u.arrangement)===1?0:1},
justifyContentOverride:function(){var u;return((u=Y.lockupStyle())==null?void 0:u.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(G){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(e2_,{data:G.data}))},
expandableMetadataViewModel:function(G){G=G.data;var u;return _.T("div",{class:_.s3("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(u=_.sH().resolve(_.q3(pRT)))==null?void 0:u({data:G}))},
adButtonGroupViewModel:function(G){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(Cz1,{data:G.data}))},
adButtonViewModel:function(G){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(_.sM,{data:G.data,isCompactWidth:!0}))},
tableViewModel:function(G){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(A9E,{data:G.data}))},
aiCompanionAttachmentViewModel:function(G){G=G.data;var u;return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},(u=_.sH().resolve(_.q3(_.KnT)))==null?void 0:u({data:G}))},
carouselAdCardCollectionViewModel:function(G){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(fg1,{data:G.data,isLockupAttachment:!0}))}}))},"Ib");var Otj=_.Jy("rich_grid_min_item_width",310),GfT=_.Jy("rich_grid_max_item_width",500);var LkU,TIt;LkU=16/9;TIt=2/3;_.c9=_.D(function(Y){var G=Y.data;var u=Y.className;var O=Y.imageSizeConfig;var Q=Y.notifyOnLoaded;var M=function(){return G().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},t=function(){var k;
return _.pK((k=G())==null?void 0:k.rendererContext)};
Y={};Y=(Y.ytContentPreviewImageViewModelHost=!0,Y.ytContentPreviewImageViewModelCircleImage=function(){return M()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},Y.ytContentPreviewImageViewModelTappable=function(){return t()},Y);
var K=function(){var k,n;return(n=(k=_.z(G().rendererContext,_.L$))==null?void 0:k.label)!=null?n:""},L=function(){return X6A(G())},g=function(){var k=gEI(M(),G().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",O==null?void 0:O(),Pnt(L()),G().layoutWidth,G().layoutHeight),n=Object.assign({},k);
k.width&&(n.width=Math.round(k.width));k.height&&(n.height=Math.round(k.height));k.maxWidth&&(n.maxWidth=Math.round(k.maxWidth));k.maxHeight&&(n.maxHeight=Math.round(k.maxHeight));return n},P=_.p2(function(){return g().height},void 0,"CxFlJb"),I=_.p2(function(){return g().width},void 0,"lb8Jhd");
return _.T("yt-content-preview-image-view-model",{el:_.iq(_.zi(function(){var k;return(k=G())==null?void 0:k.rendererContext})),
role:function(){return t()?"link":void 0},
tabindex:function(){return t()?0:void 0},
class:_.s3(u,Y,function(){var k=M();var n=O==null?void 0:O();k=k==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||k==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||k==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||k==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(n==null?void 0:n.size)!=null&&n.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(n==null?void 0:n.size)!=null&&n.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return k}),
style:function(){var k=g(),n=[];k.width&&n.push("width: "+k.width+"px");k.height&&n.push("height: "+k.height+"px");k.maxWidth&&n.push("max-width: "+k.maxWidth+"px");k.maxHeight&&n.push("max-height: "+k.maxHeight+"px");k.fullWidth&&n.push("width: 100%");return n.join(";")}},_.T(_.X,{cond:L,
then:function(k){return _.T(_.RD,{data:k,alt:K,"data-disabled$":function(){return!K()},
notifyOnLoaded:Q,targetWidth:I,targetHeight:P,preserveWidth:function(){return!!I()},
preserveHeight:function(){return!!P()}})}}),_.T(_.HE,{data:function(){var k;
return(k=G())==null?void 0:k.overlays}},{thumbnailHoverOverlayViewModel:pr,
thumbnailOverlayButtonViewModel:_.gZR}))},"Jb");
_.c9.idomCompat=!0;var UM=_.D(function(Y){var G=Y.data;var u=Y.className;var O=Y.useSmallLayout;var Q=Y.useMediumText;var M=Y.useHeavyText;var t=function(){return!(Q==null||!Q())||!(M==null||!M())};
Y={};return _.T("yt-attribution-view-model",{el:_.iq(_.zi(function(){var K;return(K=G())==null?void 0:K.rendererContext})),
class:_.s3(u,(Y.ytAttributionViewModelHost=!0,Y.ytAttributionViewModelMediumText=Q,Y.ytAttributionViewModelHeavyText=M,Y))},_.T(_.X,{cond:function(){return _.pK(G().rendererContext)},
then:function(){return _.T("button",{class:"ytAttributionViewModelTappable"},_.T(ivV,{data:G,useSmallLayout:O,badgesShouldInheritTypography:t}))},
else:function(){return _.T(ivV,{data:G,useSmallLayout:O,badgesShouldInheritTypography:t})}}))},"Kb"),ivV=_.D(function(Y){var G=Y.data;
var u=Y.useSmallLayout;var O=Y.badgesShouldInheritTypography;var Q=function(){return{size:(u==null?0:u())?16:24}};
return _.T(_.GY,null,_.T(_.HE,{data:function(){return G().contentPreviewImage}},{contentPreviewImageViewModel:function(M){return _.T(_.c9,{data:M.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:Q})}}),_.T(_.HE,{data:function(){return G().badge}},{badgeViewModel:function(M){return _.T(_.b2,{data:M.data,
class:"ytAttributionViewModelBadge",modern:!0,inheritTypography:O})}}),_.T(_.X,{cond:function(){return G().text},
then:function(){return _.T(_.eO,{text:function(){return G().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.T(_.X,{cond:function(){return G().suffix},
then:function(){return _.T(_.eO,{text:function(){return G().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Lb");
UM.idomCompat=!0;var R24,wRl,Zve,DBM,h2E;R24=_.D(function(Y){var G=Y.delimiter;var u=Y.max;var O=Y.index;var Q=Y.isStandalone;return _.T(_.X,{cond:function(){return u()-1>O()},
then:function(){var M={};return _.T("span",{class:_.s3("yt-content-metadata-view-model__delimiter",(M["yt-content-metadata-view-model__delimiter--standalone"]=Q,M)),"aria-hidden":!0},G)}})},"Mb");
wRl=_.D(function(Y){var G=Y.metadataPart;var u=Y.maxLines;return _.T(_.eO,{text:function(){return G().text},
linkInheritColor:!0,className:function(){return I8j(u())},
userInput:!0})},"Nb");
Zve=_.D(function(Y){var G=Y.metadataPart;var u=Y.maxLines;return _.T(_.X,{cond:function(){return G().tooltip},
then:function(O){return _.T("span",{title:O,role:"tooltip"},_.T(wRl,{metadataPart:G,maxLines:u}))},
else:function(){return _.T(wRl,{metadataPart:G,maxLines:u})}})},"Ob");
DBM=_.D(function(Y){var G=Y.metadataPart;var u=Y.isOverlay;var O=Y.useMediumText;var Q=Y.hideAvatar;var M=function(){return G().maxLines!==void 0?G().maxLines:1};
return _.T(_.GY,null,_.T(_.HE,{data:function(){return G().avatarStack}},{avatarStackViewModel:function(t){return _.T(_.W9,{data:t.data,
isOverlay:u,useMediumText:O,hideAvatar:Q})},
badgeViewModel:_.b2}),_.T(_.X,{cond:function(){return G().leadingIcon},
then:function(t){return _.T(_.GS,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return t().name},
size:function(){return t().width}})}}),_.T(_.X,{cond:function(){return G().text},
then:function(){return _.T(Zve,{metadataPart:G,maxLines:M})}}),_.T(_.X,{cond:function(){return G().icon},
then:function(t){return _.T(_.GS,{className:"yt-content-metadata-view-model__icon",icon:function(){return t().name},
size:function(){return t().width}})}}))},"Pb");
h2E=_.D(function(Y){var G=Y.metadataRow;var u=Y.isInline;var O=Y.delimiter;var Q=Y.isOverlay;var M=Y.useMediumText;var t=Y.extensions;var K=function(){var g,P=t==null?void 0:(g=t())==null?void 0:g.lockupMetadata;g=G();var I,k;return!!((P==null?0:(I=P.byline)==null?0:I.hideAvatar)&&((k=_.z(g,YaR))==null?void 0:k.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},L=function(){return G().metadataParts||[]};
Y={};return _.T("div",{class:_.s3("yt-content-metadata-view-model__metadata-row",(Y["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=u,Y["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var g,P=t==null?void 0:(g=t())==null?void 0:g.lockupMetadata;g=G();var I,k;return!!((P==null?0:(I=P.byline)==null?0:I.addPadding)&&((k=_.z(g,YaR))==null?void 0:k.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},Y["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var g;
return!!(t==null?0:(g=t())==null?0:g.lockupMetadata)&&G().badges&&!G().metadataParts},Y))},_.T(_.HE,{data:function(){return G().badges}},{badgeViewModel:function(g){return _.T("div",{class:"yt-content-metadata-view-model__badge"},_.T(_.b2,{data:g.data,
numBadgesInRow:function(){var P,I;return((P=G())==null?void 0:(I=P.badges)==null?void 0:I.length)||0}}))}}),_.T(_.rc,{each:L},function(g,P){return _.T(_.GY,null,_.T(DBM,{metadataPart:g,
isOverlay:Q,useMediumText:M,hideAvatar:K}),_.T(R24,{delimiter:O,max:function(){return L().length},
index:P,isStandalone:!1}))}),_.T(_.X,{cond:function(){return G().isSpacerRow&&!u()},
then:function(){return _.T("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Qb");
_.v9=_.D(function(Y){Y=_.bM(Y,{layout:0,isOverlay:!1});var G=Y.data,u=Y.layout,O=Y.isOverlay,Q=Y.useMediumText,M=Y.extensions,t=function(){return u()===0},K=function(){var g;
return((g=G().metadataRows)==null?void 0:g.filter(function(P){var I,k=M==null?void 0:(I=M())==null?void 0:I.lockupMetadata,n,p;I=!!((k==null?0:(n=k.description)==null?0:n.hideDescription)&&((p=_.z(P,YaR))==null?void 0:p.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var W,C;return!((k==null?0:(W=k.spacer)==null?0:W.hideSpacer)&&((C=_.z(P,YaR))==null?void 0:C.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||I)}))||[]},L={};
return _.T("yt-content-metadata-view-model",{class:_.s3(Y.className,"yt-content-metadata-view-model",(L["yt-content-metadata-view-model--inline"]=t,L["yt-content-metadata-view-model--tappable"]=function(){return _.pK(G().rendererContext)},L["yt-content-metadata-view-model--medium-text"]=Q,L)),
el:_.iq(_.zi(function(){return G().rendererContext}))},_.T(_.rc,{each:K},function(g,P){return _.T(_.GY,null,_.T(h2E,{metadataRow:g,
isInline:t,delimiter:function(){return G().delimiter},
isOverlay:O,useMediumText:Q,extensions:M}),_.T(_.X,{cond:function(){return t()&&!g.isSpacerRow},
then:function(){return _.T(R24,{delimiter:function(){return G().delimiter},
max:function(){return K().length},
index:P,isStandalone:!0})}}))}))},"Rb");
_.v9.idomCompat=!0;var dBe=_.D(function(Y){var G=_.sH().resolve(_.q3(_.Ee)),u={};return _.T("yt-lockup-metadata-view-model",{class:_.s3("yt-lockup-metadata-view-model",function(){a:{var O=Y.lockupStyle();if(O==null?0:O.isOverlay)O="yt-lockup-metadata-view-model--overlay";else switch(O==null?void 0:O.arrangement){case 1:O="yt-lockup-metadata-view-model--horizontal";break a;default:O="yt-lockup-metadata-view-model--vertical"}}return O},function(){a:{var O=Y.lockupStyle();
switch(O==null?void 0:O.titleMaxLines){case 1:O="yt-lockup-metadata-view-model--title-max-lines-1";break a}O=void 0}return O},function(){a:{var O=Y.lockupStyle();
if(O==null?0:O.isTiny)O="yt-lockup-metadata-view-model--tiny";else switch(O==null?void 0:O.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":O="yt-lockup-metadata-view-model--compact";break a;default:O="yt-lockup-metadata-view-model--standard"}}return O},(u["yt-lockup-metadata-view-model--overlay"]=function(){var O;
return(O=Y.lockupStyle())==null?void 0:O.isOverlay},u["yt-lockup-metadata-view-model--card"]=function(){var O;
return(O=Y.lockupStyle())==null?void 0:O.isCard},u["yt-lockup-metadata-view-model--centered"]=function(){var O;
return(O=Y.lockupStyle())==null?void 0:O.isCentered},u["yt-lockup-metadata-view-model--typography-bump"]=function(){var O;
return(O=Y.lockupStyle())==null?void 0:O.typographyBump},u["yt-lockup-metadata-view-model--legacy-typography"]=function(){var O;
return(O=Y.lockupStyle())==null?void 0:O.useLegacyTypography},u["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var O;
return(O=Y.lockupStyle())==null?void 0:O.useRichGridLegacyTypography},u))},_.T(_.HE,{data:function(){return Y.data().image}},{avatarStackViewModel:function(O){return _.T("div",{class:"yt-lockup-metadata-view-model__avatar"},_.T(_.W9,{data:O.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(O){return _.T("div",{class:"yt-lockup-metadata-view-model__avatar"},_.T(_.z$,{data:O.data}))},
decoratedAvatarViewModel:function(O){return _.T("div",{class:"yt-lockup-metadata-view-model__avatar"},_.T(_.mb,{data:O.data}))}}),_.T("div",{class:"yt-lockup-metadata-view-model__text-container"},_.T("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var O;return(O=Y.data().title)==null?void 0:O.content}},_.T(_.X,{cond:function(){return Y.data().title},
then:function(O){return _.T(_.Ny,{command:Y.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.Yh({color:function(){var Q;a:{var M=Y.lockupStyle();var t=(Q=Y.hovered)==null?void 0:Q.call(Y);Q=!(G==null||!G());var K;if((M==null?0:(K=M.onFocusEffect)==null?0:K.textPrimaryColor)&&t&&(M=Q?M.onFocusEffect.textPrimaryColor.darkTheme:M.onFocusEffect.textPrimaryColor.lightTheme)){M=pB(M);break a}M=void 0}return M}}),
ariaLabel:Y.lockupAccessibilityLabel},_.T(_.eO,{text:O,userInput:!0}))}})),_.T("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.Yh({color:function(){var O;a:{var Q=Y.lockupStyle();var M=(O=Y.hovered)==null?void 0:O.call(Y);O=!(G==null||!G());var t;if((Q==null?0:(t=Q.onFocusEffect)==null?0:t.textSecondaryColor)&&M&&(Q=O?Q.onFocusEffect.textSecondaryColor.darkTheme:Q.onFocusEffect.textSecondaryColor.lightTheme)){Q=pB(Q);break a}Q=void 0}return Q}})},_.T(_.HE,{data:function(){return Y.data().metadata}},{contentMetadataViewModel:function(O){return _.T(_.v9,{data:O.data,
layout:function(){var Q,M;return(M=(Q=Y.layout)==null?void 0:Q.call(Y))!=null?M:1},
useMediumText:function(){var Q,M;return((Q=Y.lockupStyle())==null?void 0:Q.typographyBump)||((M=Y.lockupStyle())==null?void 0:M.useRichGridLegacyTypography)},
extensions:function(){var Q,M,t,K;return{lockupMetadata:{byline:{hideAvatar:((Q=Y.lockupStyle())==null?void 0:Q.arrangement)===0,addPadding:((M=Y.lockupStyle())==null?void 0:M.arrangement)===1},description:{hideDescription:!((t=Y.lockupStyle())==null||!t.compactMetadata)},spacer:{hideSpacer:!((K=Y.lockupStyle())==null||!K.compactMetadata)}}}}})}})),_.T(_.HE,{data:function(){return Y.data().attribution}},{attributionViewModel:function(O){return _.T("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.T(UM,{data:O.data,
useSmallLayout:!0}))}})),_.T("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.T(_.HE,{data:function(){return Y.data().menuButton}},{buttonViewModel:function(O){return _.T(_.$Y,{data:O.data,
buttonOverrides:function(){var Q;return((Q=Y.lockupStyle())==null?0:Q.isOverlay)?{style:"overlay"}:void 0}})}})))},"Sb");
dBe.idomCompat=!0;var bvI=_.D(function(Y){var G=_.CH("notification-multi-action-renderer");_.o1(function(){requestAnimationFrame(function(){_.qC(G.value)})});
var u={},O={},Q={};return _.T("notification-multi-action-renderer",{class:_.s3("ytNotificationMultiActionRendererHost",(u.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var M;return(M=Y.useLegacyShelfStyle)==null?void 0:M.call(Y)},u)),
el:G},_.T("span",{"aria-live":"polite",class:_.s3("ytNotificationMultiActionRendererTextContainer",(O.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var M;return(M=Y.useLegacyShelfStyle)==null?void 0:M.call(Y)},O))},_.T(_.eO,{text:function(){return Y.data().responseText}})),_.T("div",{class:_.s3("ytNotificationMultiActionRendererButtonContainer",(Q.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var M;
return(M=Y.useLegacyShelfStyle)==null?void 0:M.call(Y)},Q))},_.T(_.HE,{data:function(){var M;
return(M=Y.data().buttons)==null?void 0:M.map(function(t){if(t=t.buttonRenderer){var K,L=Object,g=L.assign,P=(K=t.icon)==null?void 0:K.iconType;K=(K=t.command||t.serviceEndpoint||t.navigationEndpoint)?{innertubeCommand:K}:void 0;t={buttonViewModel:g.call(L,{},{iconName:P,onTap:K,trackingParams:t.trackingParams,titleFormatted:t.text?_.P3(t.text):void 0},nEI(t))}}else t=void 0;return t}).filter(function(t){return!!t})}},{buttonViewModel:function(M,t){return _.T("div",null,_.T(_.$Y,{data:M.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var K;return((K=Y.useModernStyles)==null?0:K.call(Y))?{type:t()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ub");var SN_=_.D(function(Y){var G=_.CH("notification-text-renderer");_.o1(function(){requestAnimationFrame(function(){_.qC(G.value)})});
return _.T("notification-text-renderer",{el:G,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.T(_.eO,{text:function(){return Y.data().successResponseText}}))},"Wb");_.JZ=_.D(function(Y){var G=_.Oe(ihU,function(){var O;return Fkj((O=Y.contentId)==null?void 0:O.call(Y))}),u=function(){var O;
return _.z((O=G())==null?void 0:O.command,_.Qy)};
return _.T(_.X,{cond:function(){var O;if(!(O=u())){var Q;O=_.z((Q=G())==null?void 0:Q.command,KlU)}return O},
then:function(){return _.T(_.X,{cond:u,then:function(){var O={};return _.T("div",{class:_.s3("ytDismissibleItemReplacedContent",function(){var Q;return p6A((Q=Y.aspectRatio)==null?void 0:Q.call(Y))})},_.T("div",{class:_.s3((O.ytDismissibleItemAspectRatioContainer=function(){var Q;
return((Q=Y.aspectRatio)==null?void 0:Q.call(Y))!==void 0},O))},_.T(_.HE,{data:function(){var Q;
return(Q=u())==null?void 0:Q.item}},{notificationMultiActionRenderer:function(Q){return _.T(bvI,{data:Q.data,
useModernStyles:Y.useModernStyle,useLegacyShelfStyle:Y.useLegacyShelfStyle})},
notificationTextRenderer:SN_})))}})},
else:Y.children})},"Xb");_.NyV=_.D(function(Y){var G=Y.data;var u=Y.customCommandResolver;Y=_.iq(_.UV({visibilityCallback:function(M){var t,K=(t=G().interaction)==null?void 0:t.onFirstVisible;M&&K&&_.W3(K)},
showOption:_.B9}));var O=function(){var M;return((M=G().interaction)==null?0:M.onTap)?function(t){var K;$0g(t,(K=G().interaction)==null?void 0:K.onTap,u)}:void 0},Q=function(){var M,t=G(),K=O(),L=(M=_.z(G().rendererContext,_.L$))==null?void 0:M.label;
a:switch(t.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":M=1;break a;default:M=0}return{size:Wk1(t.size),type:M,onTap:K,accessibilityText:L}};
return _.T("ad-avatar-view-model",{class:function(){var M;return((M=G().interaction)==null?0:M.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:Y},_.T(_.X,{cond:function(){return G().image},
then:function(M){return _.T(kf4,{data:Q,image:M})}}))},"Yb");_.YB=_.D(function(Y){var G=_.bM(Y,{hasDot:!1,usedInMasthead:!1}),u=Object.assign({},G),O=G.data,Q=G.hasDot;Y=G.customCommandResolver;var M=G.usedInMasthead,t=(delete u.data,delete u.hasDot,delete u.customCommandResolver,delete u.usedInMasthead,u);G=function(){return O().style};
G!==void 0&&G!==null||_.N3(Error("Ih"));Y=_.fK(function(){return O().interaction},Y);
return _.T("ad-badge-view-model",{class:_.s3(function(){var K;return((K=O().interaction)==null?0:K.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var K=t.adRenderingContextType(),L=M();
O();return K!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||L?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.iq(Y)},_.T(_.CR,{data:function(){var K;O();return{type:2,text:(K=O().label)==null?void 0:K.content,adsIncludeDot:Q(),isOverlay:O().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Zb");var j5M;_.G9=_.D(function(Y){var G=Y.data;var u=Y.customCommandResolver;var O=Y.adRenderingContextType;return _.T("ad-details-line-view-model",{class:function(){var Q;return((Q=G().interaction)==null?0:Q.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.iq(_.UV({visibilityCallback:function(Q){var M,t=(M=G().interaction)==null?void 0:M.onFirstVisible;Q&&t&&_.W3(t)},
showOption:_.B9}),_.fK(function(){return G().interaction},u))},_.T(_.X,{cond:function(){return G().style},
then:function(Q){return _.T(_.rc,{each:function(){var M;return((M=G())==null?void 0:M.attributes)||[]},
keyBy:"INDEX"},function(M){return _.T(j5M,{attribute:M,style:Q,adRenderingContextType:function(){return O()}})})}}))},"$b");
j5M=_.D(function(Y){var G=Y.attribute;var u=Y.style;var O=Y.adRenderingContextType;return _.T(_.X,{cond:function(){return G().text},
then:function(Q){return _.T(_.eO,{text:Q,className:function(){var M=O();u();return M==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"ac");var V$I=_.D(function(Y){var G=Y.data;var u=Y.typographyBump;var O=function(){return G().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},Q=function(){return{size:"M"}};
Y={};return _.T(_.GY,null,_.T("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.T(_.eO,{text:function(){return G().headline},
className:_.s3((Y.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineLegacy=function(){return!_.F("enable_desktop_vdc_components")},Y.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline=function(){return _.F("enable_desktop_vdc_components")},Y.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return O==null?void 0:O()},Y.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(u==null?void 0:u())&&!(O==null?0:O())},Y)),
linkInheritColor:!0}),_.T(_.X,{cond:function(){return G().description},
then:function(M){var t={};return _.T(_.eO,{text:M,className:_.s3("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(t.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return O==null?void 0:O()},t.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(u==null?void 0:u())&&!(O==null?0:O())},t)),
linkInheritColor:!0})}}),_.T(_.X,{cond:function(){return G().secondaryDescription},
then:function(M){var t={};return _.T(_.eO,{text:M,className:_.s3("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(t.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return u==null?void 0:u()},t)),
linkInheritColor:!0})}}),_.T("div",{class:function(){return O()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.T(_.X,{cond:function(){return G().adAvatar},
then:function(){return _.T("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.T(_.HE,{data:function(){return G().adAvatar}},{adAvatarViewModel:_.NyV}))}}),_.T(_.HE,{data:function(){return G().adBadge}},{adBadgeViewModel:function(M){return _.T(_.YB,{data:M.data,
hasDot:function(){return!!G().adDetailsLine},
adRenderingContextType:function(){return G().adRenderingContextType}})}}),_.T(_.HE,{data:function(){return G().adDetailsLine}},{adDetailsLineViewModel:function(M){return _.T(_.G9,{data:M.data,
adRenderingContextType:function(){return G().adRenderingContextType}})}}))),_.T("div",{class:function(){return _.F("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":O()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.T(_.HE,{data:function(){return G().menu}},{buttonViewModel:function(M){return _.T(_.$Y,{data:M.data,
buttonOverrides:_.F("enable_desktop_vdc_components")?Q:function(){a:switch(G().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var t="S";break a;default:t="M"}return{size:t}}})}})))},"bc"),lg2=_.D(function(Y){var G=Y.data;
var u=Y.noBottomMargin;var O=Y.useVideoLockupTopPadding;var Q=Y.typographyBump;Y={};Y=_.s3("ytwFeedAdMetadataViewModelHostMetadata",(Y.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return u==null?void 0:u()},Y.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return O==null?void 0:O()},Y));
var M=function(){return G().adBadge};
M!==void 0&&M!==null||_.N3(Error("Jh"));M={};var t={};return _.T(_.GY,null,_.T(_.X,{cond:function(){return G().adAvatar},
then:function(){return _.T("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.T(_.HE,{data:function(){return G().adAvatar}},{adAvatarViewModel:function(K){return _.T(_.NyV,{data:K.data})}}))}}),_.T("div",{class:Y},_.T("div",{class:_.s3("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(M.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return Q==null?void 0:Q()},M.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(Q==
null?void 0:Q())&&_.F("web_enable_typography_bump_v2")},M))},_.T(_.eO,{text:function(){return G().headline},
linkInheritColor:!0})),_.T(_.X,{cond:function(){return G().description},
then:function(K){return _.T(_.eO,{text:K,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.T("div",{class:function(){return G().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.F("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.T(_.HE,{data:function(){return G().adBadge}},
{adBadgeViewModel:function(K){return _.T(_.YB,{data:K.data,
hasDot:function(){return!!G().adDetailsLine},
adRenderingContextType:function(){return G().adRenderingContextType}})}}),_.T(_.HE,{data:function(){return G().adDetailsLine}},{adDetailsLineViewModel:function(K){return _.T(_.G9,{data:K.data,
adRenderingContextType:function(){return G().adRenderingContextType}})}})),_.T(_.X,{cond:function(){return G().secondaryDescription},
then:function(K){return _.T(_.eO,{text:K,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.T("div",{class:_.s3("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(t.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return O==null?void 0:O()},t))},_.T(_.HE,{data:function(){return G().menu}},{buttonViewModel:_.$Y})))},"cc"),uL=_.D(function(Y){var G=Y.data;
var u=Y.noBottomMargin;var O=Y.listenToTapEvent;var Q=Y.setTouchEndHandler;var M=Y.useVideoLockupTopPadding;var t=Y.typographyBump;Y=_.UV({visibilityCallback:function(I){var k,n=(k=G().interaction)==null?void 0:k.onFirstVisible;I&&n&&_.W3(n)},
showOption:_.B9});var K=_.fK(function(){return G().interaction},void 0,function(){return O==null?void 0:O()}),L=_.E(_.IE(!1,void 0,"KSFskc")),g=L.next().value,P=L.next().value;
L=_.U3(function(I){(Q==null?0:Q())&&!g()&&(I.currentTarget.click(),P(!0),setTimeout(function(){P(!1)},100));
return!1});
return _.T("feed-ad-metadata-view-model",{class:function(){var I;return((I=G().interaction)==null?0:I.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.iq(Y,K),"on:touchend":L},_.T(_.x4,null,_.T(_.m1,{when:function(){return G().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.T(V$I,{data:G,
typographyBump:t})}),_.T(_.m1,{when:function(){return G().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.T(lg2,{data:G,
noBottomMargin:u,useVideoLockupTopPadding:M,typographyBump:t})})))},"dc");var ByU,$BU;ByU=_.A$.inlinePreviewEnabledSelector;_.Ou=_.D(function(Y){return _.T("yt-lockup-view-model",{class:_.s3(Y.className,"yt-lockup-view-model--wrapper")},_.T(_.JZ,{contentId:function(){return Y.data().contentId},
useModernStyle:!0,aspectRatio:function(){var G,u;return((G=Y.containerType)==null?void 0:G.call(Y))!==3?KkY(Y.data().contentType,(u=Y.force16By9ThumbnailAspectRatio)==null?void 0:u.call(Y)):void 0}},function(){return _.T($BU,Object.assign({},Y))}))},"ec");
$BU=_.D(function(Y){Y=_.bM(Y,{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,useOverlayStyling:void 0});var G=Y.data,u=Y.containerLayoutConfig,O=Y.containerType,Q=Y.sizing,M=Y.protectBackground,t=Y.typographyBump,K=Y.force16By9ThumbnailAspectRatio,L=Y.thumbnailFixedWidth,g=Y.thumbnailTargetWidth,P=Y.lockupExperiments,
I=Y.elementsPerRow,k=Y.useOverlayStyling,n=_.sH().resolve(_.q3(_.Ee));Y=_.iq(_.zi(function(){var dA;return(dA=G())==null?void 0:dA.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","AD-BUTTON-VIEW-MODEL"],!0));var p=_.Hx(ByU),W=_.sH().resolve(_.q3(uKU)),C=W?{}:void 0,e=function(){var dA,nT,u_;return(u_=(nT=_.z((dA=G())==null?void 0:dA.rendererContext,_.L$))==null?void 0:nT.label)!=null?u_:void 0},w=function(){var dA;
return(dA=_.z(G().metadata,_.GvR))==null?void 0:dA.endorsement},B=function(){var dA=u==null?void 0:u(),nT;
if(dA==null?0:dA.containerType){var u_=(nT=G())==null?void 0:nT.contentType;nT=P();var jT=t(),P1=g(),kk=M();dA=Object.assign({},a8a(MMA(dA),yY(dA.responsiveSize),jT,u_,dA.force16By9ThumbnailAspectRatio,P1,kk,void 0,nT),{thumbnailFixedWidth:dA.contentPreviewWidth})}else dA=a8a(O(),Q(),t(),(u_=G())==null?void 0:u_.contentType,K(),g(),M(),k(),P());return dA};
W&&C&&W({enabled:function(){return p()},
itemPlaybackModel:function(){return G().itemPlayback},
thumbnailElRef:function(){return C.thumbnailElRef},
containerElRef:Y,options:function(){var dA=C.thumbnailOverlays||[],nT=w(),u_;!nT||((u_=P())==null?0:u_.onFocusEffect)||dA.push(nT);var jT,P1;return{thumbnail:C.thumbnail,thumbnailOverlays:dA,accessibilityText:e(),thumbnailSize:C.thumbnailSize,enableRounding:B().isCollection,containPlayerWithinThumbnail:B().isCollection,mouseleaveCallback:function(){q(!1)},
trackingParams:(jT=_.z(G().rendererContext,_.H3))==null?void 0:(P1=jT.loggingDirectives)==null?void 0:P1.trackingParams}}});
var N=0;W=_.E(_.IE(!1,void 0,"hPOYMe"));var h=W.next().value,q=W.next().value;W=_.E(_.IE(!1,void 0,"oGMpeb"));var U=W.next().value,Mj=W.next().value;W=_.U3(function(){U()?(_.AN.cancelJob(N),N=_.AN.addJob(function(){q(!0)},8,32)):q(!0);
return!0});
var Xt=_.U3(function(dA){dA=dA.relatedTarget;var nT=document.querySelector("ytd-video-preview");dA&&nT&&nT.contains(dA)||(N&&(_.AN.cancelJob(N),N=0),q(!1))});
_.w_(function(){N&&(_.AN.cancelJob(N),N=0)});
var ka=mDt(function(){Mj(!0)}),aU=ka.touchFeedbackEvents,Tg=ka.touchFeedbackOnPointerUp,iy=ka.touchFeedbackOnPointerDown;
ka=ka.touchFeedbackOnPointerLeave;var hY={};return _.T(_.GY,null,_.T("div",{el:Y,class:_.s3("yt-lockup-view-model",function(){a:{var dA=B();if(dA.metadataOnThumbnail)dA="yt-lockup-view-model--metadata-on-thumbnail";else switch(dA.arrangement){case 1:dA="yt-lockup-view-model--horizontal";break a;default:dA="yt-lockup-view-model--vertical"}}return dA},function(){a:{var dA=B();
if(dA.metadataOnThumbnail)dA="yt-lockup-view-model--metadata-on-thumbnail";else{switch(dA.collectionStackNumber){case 1:dA="yt-lockup-view-model--collection-stack-1";break a;case 2:dA="yt-lockup-view-model--collection-stack-2";break a}dA=void 0}}return dA},function(){var dA;
return _.kfI((dA=G())==null?void 0:dA.contentId)},(hY["yt-lockup-view-model--card"]=function(){return B().isCard},hY["yt-lockup-view-model--compact"]=function(){return B().isTiny||B().sizing!=="STANDARD"},hY["yt-lockup-view-model--protect-background"]=M,hY["yt-lockup-view-model--add-margins"]=function(){return B().addMarginForFullbleed},hY["yt-lockup-view-model--centered"]=function(){return B().isCentered},hY["yt-lockup-view-model--fullbleed"]=function(){return B().fullbleed},hY["yt-lockup-view-model--single-column-grid"]=
function(){return I()===1&&O()===2},hY["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var dA;
return(dA=P())==null?void 0:dA.useRichGridLegacyMargin},hY["yt-lockup-view-model--flex-none"]=function(){return!_.F("lockup_flex_none_killswitch")},hY)),
"on:mousedown":iy,"on:mouseleave":Xt,"on:mouseup":Tg,"on:mouseover":W,"on:touchstart":iy,"on:touchend":Tg,"on:pointerleave":ka},_.T(_.jO,{model:function(){var dA,nT,u_=Object,jT=u_.assign,P1=(C==null?void 0:C.thumbnailSize)||"small";a:{var kk=B();var Fe=!!(w()&&((dA=P())==null?0:dA.onFocusEffect));switch((C==null?void 0:C.thumbnailSize)||"small"){case "small":dA=4;break;case "large":dA=12;break;default:dA=8}if(Fe)kk=dA+12;else{switch(kk.collectionStackNumber){case 1:kk=dA+8;break a;case 2:kk=dA+12;
break a}kk=void 0}}P1={thumbnailSize:P1,triggerEvents:!0,customTopExtend:kk};var Xg;kk=(nT=P())==null?void 0:nT.onFocusEffect;Fe=!(n==null||!n());if(kk){var Hb,n1;nT=Fe?(Hb=kk.onFocusColor)==null?void 0:Hb.darkTheme:(n1=kk.onFocusColor)==null?void 0:n1.lightTheme;var Yk,qj;Hb=Fe?(Yk=kk.keyLightColor)==null?void 0:Yk.darkTheme:(qj=kk.keyLightColor)==null?void 0:qj.lightTheme;var Gx;Yk=Fe?(Xg=kk.touchResponseColor)==null?void 0:Xg.darkTheme:(Gx=kk.touchResponseColor)==null?void 0:Gx.lightTheme;Xg={background:nT!==
void 0?pB(nT):void 0,keyLight:Hb!==void 0?pB(Hb):void 0};Gx=[];qj=_.E(kk.lightingTechniques||[]);for(Hb=qj.next();!Hb.done;Hb=qj.next())switch(Hb.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":Gx.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":Gx.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":Gx.push(3)}Xg={hoverEffect:{palette:Xg,lightingTechniques:Gx},touchEffect:{palette:{background:Yk!==void 0?pB(Yk):void 0}}}}else Xg={};return jT.call(u_,{},P1,Xg)},
hovered:function(){return h()},
pointerDownEvent:aU.pointerDownEvent,pointerUpEvent:aU.pointerUpEvent,pointerLeaveEvent:aU.pointerLeaveEvent}),_.T(_.X,{cond:function(){var dA;return w()&&h()&&((dA=P())==null?void 0:dA.onFocusEffect)},
then:function(){return _.T("div",{class:"yt-lockup-view-model__endorsement"},_.T(_.HE,{data:function(){return w()}},{attributionViewModel:function(dA){return _.T(UM,{data:dA.data,
useHeavyText:!0})}}))}}),_.T(_.Ny,{command:function(){var dA;
return _.F9((dA=G())==null?void 0:dA.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(L()||B().thumbnailFixedWidth)&&B().arrangement===1?"width: "+(L()||B().thumbnailFixedWidth):""}},_.T(_.HE,{data:function(){var dA;
return(dA=G())==null?void 0:dA.contentImage}},{thumbnailViewModel:function(dA){return _.T(l2,{data:dA.data,
aspectRatio:function(){return B().aspectRatio},
disableRounding:function(){return B().disableRounding},
width:g,hovered:function(){return h()&&!(p()&&G().itemPlayback)},
isClip:function(){var nT;return((nT=G())==null?void 0:nT.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:N5U(C),lockupExperiments:function(){return P()}})},
collectionThumbnailViewModel:function(dA){return _.T(Fn1,{data:dA.data,aspectRatio:function(){return B().aspectRatio},
disableRounding:function(){return B().disableRounding},
width:g,doubleStack:function(){return B().collectionStackNumber===2},
hovered:function(){return h()&&!(p()&&G().itemPlayback)},
playbackRef:N5U(C)})},
decoratedAvatarViewModel:_.mb})),_.T("div",{class:"yt-lockup-view-model__metadata"},_.T(_.HE,{data:function(){var dA;return(dA=G())==null?void 0:dA.metadata}},{lockupMetadataViewModel:function(dA){return _.T(dBe,{data:dA.data,
hovered:h,lockupStyle:B,lockupCommand:function(){var nT;return _.F9((nT=G())==null?void 0:nT.rendererContext)},
lockupAccessibilityLabel:function(){return e()},
layout:function(){var nT;return((nT=P())==null?0:nT.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(dA){return _.T(uL,{data:dA.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:t})}}),_.T(_.HE,{data:function(){var dA;
return(dA=G())==null?void 0:dA.attachmentSlot}},{lockupAttachmentsViewModel:function(dA){return _.T(oZe,{data:dA.data,
lockupStyle:B})}}))),_.T(_.HE,{data:function(){var dA;
return(dA=G())==null?void 0:dA.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(dA){return _.T(oZe,{data:dA.data,
lockupStyle:B})}}))},"fc");
_.Ou.idomCompat=!0;_.hR(_.Ou,"yt-lockup-view-model",{props:{data:_.AC,containerLayoutConfig:_.AC,containerType:_.AC,sizing:_.AC,protectBackground:_.AC,typographyBump:_.AC,thumbnailFixedWidth:_.AC,thumbnailTargetWidth:_.AC,force16By9ThumbnailAspectRatio:_.AC,className:_.AC,lockupExperiments:_.AC,elementsPerRow:_.AC,useOverlayStyling:_.AC}});var Cnj,qN1=_.D(function(Y){var G=_.bM(Y,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),u=G.text,O=G.alwaysShowTruncationText;Y=G.truncationText;var Q=G.onTextClick,M=G.maxLines,t=G.disableTextMask,K=G.textStyle,L=G.accessibilityLabel,g=G.textSize,P=G.alwaysTruncateAtMaxLines,I=G.expandOnClick;G=_.E(_.IE(!1,void 0,"EzA1q"));var k=G.next().value,n=G.next().value;G=_.U3(function(){I()&&n(!k());Q==null||Q()});
var p=function(){a:switch(g()){case "medium":var U=2;break a;case "large":U=2.2;break a;default:U=1.8}return U},W=Aaa(u,function(){return k()?Infinity:M()},p,t,P,k),C=W.isTruncated;
u=W.displayText;P=W.contentRef;var e=W.hiddenRef,w=W.placeholderTruncationTextRef,B=W.hiddenTruncationTextRef;W=W.truncationTextRef;var N={},h={},q={};return _.T("truncated-text",{class:_.s3((N["yt-truncated-text"]=!0,N["yt-truncated-text--overlay"]=function(){return K()==="overlay"},N["yt-truncated-text--medium-text"]=function(){return g()==="medium"},N["yt-truncated-text--large-text"]=function(){return g()==="large"},N["yt-truncated-text--primary-text"]=function(){return K()==="primary-text"},N)),
"on:click":G,style:function(){return"line-height: "+p()+"rem;"}},_.T("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:P,style:function(){return k()?"":"max-height: "+M()*p()+"rem;"}},_.T(_.eO,{text:u}),_.T("button",{"aria-disabled":!0,
disabled:!0,class:_.s3((h["yt-truncated-text__inline-button"]=!0,h["yt-truncated-text--hidden"]=function(){return!(!k()&&(O!=null&&O()||C()))},h)),
el:w,style:function(){return"line-height: "+p()+"rem;"}},_.T(_.eO,{text:Y}))),_.T("truncated-text-content",{class:_.s3("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:e,style:function(){return k()?"":"max-height: "+M()*p()+"rem;"},
"aria-hidden":"true"},_.T(_.eO,{text:u}),_.T("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:B,style:function(){return"line-height: "+p()+"rem;"}},_.T(_.eO,{text:Y}))),_.T("button",{"aria-label":L,
class:_.s3((q["yt-truncated-text__absolute-button"]=function(){return!t()},q["yt-truncated-text__bottom-button"]=function(){return t()},q["yt-truncated-text--hidden"]=function(){return!(!k()&&(O!=null&&O()||C()))},q)),
el:W,style:function(){return"line-height: "+p()+"rem;"}},_.T(_.eO,{text:Y})))},"hc");
qN1.idomCompat={callbacks:{onTextClick:!0}};var UB2=_.D(function(Y){var G=Y.data;Y=Y.className;var u=_.p2(function(){return ity(G())},void 0,"uDhDke"),O=_.T(_.GY,null,_.T(_.X,{cond:function(){return G().heroText||G().image},
then:function(){return _.T(s5R,{data:G})}}),_.T(c9l,{data:G,
sizeSmall:function(){return G().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.T("yt-video-attribute-view-model",{class:Y},_.T("div",{class:function(){var Q=G();a:switch(Q.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var M="yt-video-attribute-view-model--vertical";break a;default:M="yt-video-attribute-view-model--horizontal"}a:switch(Q.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var t="yt-video-attribute-view-model--image-small";break a;default:t="yt-video-attribute-view-model--image-large"}a:switch(Q.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var K=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":K="yt-video-attribute-view-model--image-avatar";break a;default:K=""}a:switch(Q.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var L="yt-video-attribute-view-model--metadata-header";break a;default:L=""}a:switch(Q.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var g="yt-video-attribute-view-model--container-card";break a;default:g=""}return["yt-video-attribute-view-model",M,t,
K,L,g,ity(Q)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.Yh({"background-color":function(){var Q=G();if(Q.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var M="";else{M=Q.lightColorPalette;Q=Q.darkColorPalette;var t,K=((t=_.sH().resolve(_.q3(_.Ee)))==null?0:t())&&Q?Q:M;M=(M=K==null?void 0:K.section2Color)?_.nB(M):""}return M}})},_.T(_.X,{cond:u,
then:function(){return _.T(_.Ny,{className:"yt-video-attribute-view-model__content-container",command:u,role:"group",ariaLabel:function(){return G().title}},O)},
else:function(){return _.T("div",{class:"yt-video-attribute-view-model__content-container"},O)}})))},"ic");
UB2.idomCompat=!0;var s5R=_.D(function(Y){var G=Y.data;var u,O=(u=_.sH().resolve(_.q3(_.Ee)))==null?void 0:u(),Q=function(){return O&&G().darkThemeImage?G().darkThemeImage:G().image},M=_.p2(function(){return REY(G())},void 0,"UDqj0b");
return _.T("div",{class:"yt-video-attribute-view-model__hero-section"},_.T(_.x4,null,_.T(_.m1,{when:Q},function(){return _.T(_.RD,{data:function(){return Q()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.T(_.m1,{when:function(){return G().heroText}},function(){return _.T("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.T("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return G().heroText}))})),_.T(_.X,{cond:function(){return G().overflowMenuOnTap},
then:function(){return _.T("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.T(_.BZ,{data:M,iconName:"MORE_VERT"}))}}))},"jc");
s5R.idomCompat=!0;var c9l=_.D(function(Y){var G=Y.data;Y=Y.sizeSmall;var u=function(){return G().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},O=_.p2(function(){return ma(_.zU({innertubeCommand:ity(G())}))?"link":ity(G())?"button":"group"},void 0,"e2MmYe"),Q={};
return _.T("div",{class:_.s3("yt-video-attribute-view-model__metadata",(Q["yt-video-attribute-view-model--small-font"]=Y,Q)),role:O},_.T("h1",{class:"yt-video-attribute-view-model__title"},function(){return G().title}),_.T(_.X,{cond:function(){return G().subtitle},
then:function(){return _.T("h4",{class:"yt-video-attribute-view-model__subtitle"},_.T(_.X,{cond:u,then:function(){return _.T(qN1,{text:function(){return oEY(G().subtitle)},
truncationText:function(){return oEY(G().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.T("span",null,function(){return G().subtitle})}}))}}),_.T(_.X,{cond:function(){return G().secondarySubtitle},
then:function(M){return _.T("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.T(_.eO,{text:function(){var t=M();if(t!=null&&t.attachmentRuns){for(var K=[],L=_.E(t.attachmentRuns),g=L.next();!g.done;g=L.next())g=g.value,g.element&&K.push(Object.assign({},g,{element:Object.assign({},g.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));t=Object.assign({},t,{attachmentRuns:K})}return t}}))}}),_.T(_.HE,
{data:function(){return G().buttonViewModel}},{buttonViewModel:function(M){return _.T(_.$Y,{data:M.data,
className:"yt-video-attribute-view-model__button"})}}))},"kc");
c9l.idomCompat=!0;_.hR(UB2,"yt-video-attribute-view-model",{props:{data:_.AC,className:_.AC}});var Q0=function(){var Y=_.Z.apply(this,arguments)||this;Y.useHighlightStyling=_.F("web_enable_deeper_metadata_highlight_styling");Y.isSearch=!1;Y.JSC$15631_lastScrollContainerWidth=NaN;Y.pageLoadingFromNavigation=!1;Y.currentIndex=0;Y.supportComponentResize=!1;return Y};
_.m(Q0,_.Z);_.H=Q0.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",_.Jh(this,this.onPageChange))};
_.H.detached=function(){document.removeEventListener("yt-page-type-changed",_.Jh(this,this.onPageChange))};
_.H.getItemsPath=function(){return"data.cards"};
_.H.onIronResize=function(){this.updateListStyles()};
_.H.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var Y;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(Y=this.data)==null?void 0:Y.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.F("problem_walkthrough_sd")&&!!this.centerItems};
_.H.computeCardListStyle=function(Y){return Y||null};
_.H.computeEmpty=function(Y){return!this.get("cards.length",Y)};
_.H.computeThumbnailStyle=function(Y){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",Y)||null};
_.H.computeHasSubtitle=function(Y){return!!this.get("header.richListHeaderRenderer.subtitle",Y)};
_.H.computeInitialCountNumber=function(Y){return this.hasSquareMiniApp&&Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.H.computeUseFloorScrolling=function(Y){return Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.H.computeHasGameCard=function(Y){return(Y=this.get("cards",Y))?Y.some(function(G){return G.gameCardRenderer}):!1};
_.H.computeCenterHeaderTitle=function(Y){return!(Y==null||!Y.centerHeaderTitle)};
_.H.computeHasPortraitMiniApp=function(Y){return(Y=Y==null?void 0:Y.cards)?Y.some(function(G){return G.miniGameCardViewModel&&G.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.H.computeHasSquareMiniApp=function(Y){return(Y=Y==null?void 0:Y.cards)?Y.some(function(G){return G.miniGameCardViewModel&&G.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.H.computeHasSkinnyWidthPortraitMiniApp=function(Y){return(Y=Y==null?void 0:Y.cards)?Y.some(function(G){return G.miniGameCardViewModel&&G.miniGameCardViewModel.width===135}):!1};
_.H.computeCenterItems=function(Y){return!!Y};
_.H.computeHasInfoPanel=function(Y){var G;return Y==null?void 0:(G=Y.cards)==null?void 0:G.some(function(u){return u.infoPanelContentRenderer})};
_.H.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.H.getItemByIndex=function(Y){var G=this.items.children;return G&&G.length>Y?G[Y]:void 0};
_.H.onPageChange=function(){var Y=this;this.pageLoadingFromNavigation=!0;_.AN.addJob(function(){Y.pageLoadingFromNavigation=!1;_.sK(Y.hostElement,"yt-terminate-video-preview-action")},8)};
_.H.updateListStyles=function(){if(_.F("problem_walkthrough_sd")&&this.JSC$15631_scrollContainer!==void 0){var Y=this.JSC$15631_scrollContainer.clientWidth;Y!==this.JSC$15631_lastScrollContainerWidth&&(this.JSC$15631_lastScrollContainerWidth=Y,_.cm(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(Y*.8,415)+"px"}),_.$s(this.hostElement,"iron-resize"))}};
_.Uk.Object.defineProperties(Q0.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.F("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return!!((Y=this.data)==null?0:(G=Y.cards)==null?0:(u=G[0])==null?0:u.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return!!((Y=this.data)==null?0:(G=Y.cards)==null?0:(u=G[0])==null?0:u.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return _.F("enable_desktop_amsterdam_info_panels")&&!!((Y=this.data)==null?0:(G=Y.cards)==null?0:(u=G[0])==null?0:u.infoPanelContentRenderer)}}});
Q0.prototype.dataChanged=Q0.prototype.dataChanged;Q0.prototype.onIronResize=Q0.prototype.onIronResize;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Q0.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Q0.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.V8.YtdHorizontalListBehavior),_.V("design:type",Object)],Q0.prototype,"ytdHorizontalListBehavior",void 0);
_.S([_.x(_.rW),_.V("design:type",Object)],Q0.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Q0.prototype,"data",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Q0.prototype,"useCustomColors",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Q0.prototype,"useHighlightStyling",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.V("design:type",Object)],Q0.prototype,"cardListStyle",void 0);_.S([_.R({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.V("design:type",Boolean)],Q0.prototype,"empty",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.V("design:type",Boolean)],Q0.prototype,"hasSubtitle",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.V("design:type",Boolean)],Q0.prototype,"thumbnailStyle",void 0);_.S([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.V("design:type",Boolean)],Q0.prototype,"hasGameCard",void 0);_.S([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.V("design:type",Boolean)],Q0.prototype,"centerHeaderTitle",void 0);
_.S([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.V("design:type",Boolean)],Q0.prototype,"hasPortraitMiniApp",void 0);_.S([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.V("design:type",Boolean)],Q0.prototype,"hasSquareMiniApp",void 0);_.S([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.V("design:type",Boolean)],Q0.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.S([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.V("design:type",Boolean)],Q0.prototype,"hasInfoPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Q0.prototype,"isSearch",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Q0.prototype,"inlineStructuredDescription",void 0);_.S([_.Ox("#scroll-container"),_.V("design:type",HTMLDivElement)],Q0.prototype,"JSC$15631_scrollContainer",void 0);
_.S([_.R({computed:"computeInitialCountNumber(data.style.type)"}),_.V("design:type",Number)],Q0.prototype,"initialCount",void 0);_.S([_.R({computed:"computeUseFloorScrolling(data.style.type)"}),_.V("design:type",Boolean)],Q0.prototype,"useFloorScrolling",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.V("design:type",Boolean)],Q0.prototype,"centerItems",void 0);_.S([_.R(),_.V("design:type",Object)],Q0.prototype,"pageLoadingFromNavigation",void 0);
_.S([_.R(),_.V("design:type",Object)],Q0.prototype,"currentIndex",void 0);_.S([_.R(),_.V("design:type",Number)],Q0.prototype,"scrollCount",void 0);_.S([_.R(),_.V("design:type",Object)],Q0.prototype,"supportComponentResize",void 0);_.S([_.Ox("#items"),_.V("design:type",HTMLDivElement)],Q0.prototype,"items",void 0);_.S([_.Yo("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Q0.prototype,"onIronResize",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Q0.prototype,"dataChanged",null);_.S([_.R({reflectToAttribute:!0}),_.f("inlineStructuredDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Q0.prototype,"hideNavigationButton",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Q0.prototype,"modernChapters",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Q0.prototype,"hasVideoAttributeViewModels",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Q0.prototype,"modernInfoPanels",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],Q0);
_.d(Q0,"ytd-horizontal-card-list-renderer",function(){if(Zt1!==void 0)return Zt1;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Zt1=Y},{mode:2});var vZl=_.D(function(Y){var G=Y.data;var u={};return _.T("video-summary-content-view-model",{class:_.s3("videoSummaryContentViewModelHost",Y.className,(u.videoSummaryContentViewModelHostIsSearch=Y.isSearch,u))},_.T(_.rc,{each:function(){var O=[],Q=G().paragraphs;if(Q==null||!Q.length)return[];for(var M=0;M<Q.length;M++){var t=_.z(Q[M],Y2E),K=void 0;M>0&&(K=_.z(Q[M-1],Y2E));K&&!!K.marker===!!t.marker?O[O.length-1].paragraphs.push(t):O.push({isList:!!t.marker,paragraphs:[t]})}return O},
keyBy:"INDEX"},function(O){return _.T(_.X,{cond:function(){return O().isList},
then:function(){return _.T("ul",{class:"videoSummaryContentViewModelList"},_.T(_.rc,{each:function(){return O().paragraphs},
keyBy:"INDEX"},function(Q){return _.T("li",{class:"videoSummaryContentViewModelListItem"},_.T(_.eO,{text:function(){return Q().text}}))}))},
else:function(){return _.T("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.T(_.rc,{each:function(){return O().paragraphs},
keyBy:"INDEX"},function(Q){return _.T("p",{class:"videoSummaryContentViewModelParagraph"},_.T(_.eO,{text:function(){return Q().text}}))}))}})}),_.T(_.X,{cond:function(){return!!_.z(G().likeButtonViewModel,_.e6)&&!!_.z(G().dislikeButtonViewModel,_.AV)},
then:function(){return _.T("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.T("div",{class:"videoSummaryContentViewModelLikeButton"},_.T(_.xb,{data:function(){return _.z(G().likeButtonViewModel,_.e6)},
disableIconAnimation:!0})),_.T(_.rz,{data:function(){return _.z(G().dislikeButtonViewModel,_.AV)}}))}}))},"lc");
vZl.idomCompat=!0;_.hR(vZl,"video-summary-content-view-model",{props:{data:_.AC,isSearch:_.AC,className:_.AC}});var Mh=function(){var Y=_.Z.apply(this,arguments)||this;var G,u;Y.isExpanded=(u=(G=Y.data)==null?void 0:G.isExpanded)!=null?u:!1;Y.disableExpand=!1;Y.showProminentLabel=!1;Y.showRightSideLabel=!0;Y.toggleExpandableContent=function(O){Y.disableExpand||(O.stopPropagation(),_.dE(_.wG(O),Y.hostElement,["info","expanded-subtitle"])||(Y.isExpanded=!Y.isExpanded,Y.ytRendererBehavior.logExplicitClick(Y.data),Y.JSC$15642_cardList&&!_.F("expandable_metadata_a11y_fix_ks")&&_.sk(Y,function(){_.$q(Y.hostElement)})))};
Y.useSquareThumbnail=!1;Y.startX=0;return Y};
_.m(Mh,_.Z);_.H=Mh.prototype;_.H.computeUseSquareThumbnail=function(){var Y;return(Y=this.data)==null?void 0:Y.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 Y,G;this.isExpanded=(G=(Y=this.data)==null?void 0:Y.isExpanded)!=null?G:!1;var u,O,Q,M;if(Y=this.isDarkTheme()?(u=this.data)==null?void 0:(O=u.colorData)==null?void 0:O.darkColorPalette:(Q=this.data)==null?void 0:(M=Q.colorData)==null?void 0:M.lightColorPalette){var t,K;if((t=this.data)==null?0:(K=t.colorData)==null?0:K.vibrantColorPalette)Y.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.gE(this.hostElement,Y)}}};
_.H.isExpandedChanged=function(){this.isExpanded&&this.JSC$15642_cardList&&_.$s(this.JSC$15642_cardList,"iron-resize")};
_.H.computeIsExpanded=function(Y){return!!Y.isExpanded};
_.H.computeShowProminentLabel=function(Y,G){var u;return!!(Y==null?0:(u=Y.header)==null?0:u.showLeadingCollapsedLabel)&&!G};
_.H.computeShowRightSideLabel=function(Y,G){var u;return!(Y==null?0:(u=Y.header)==null?0:u.showLeadingCollapsedLabel)&&!G};
_.H.captureContentClick=function(Y){if(!this.disableExpand)if(_.F("expandable_metadata_fix_killswitch")){var G=Y.target;_.kmI(G,"ytd-macro-markers-list-item-renderer")||Y.stopPropagation();(G==null?void 0:G.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.dE(_.wG(Y),this.hostElement,["items"])||_.hf(_.wG(Y),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.H.timestampClick=function(Y){Y.stopPropagation();var G,u;(Y=(G=this.data)==null?void 0:(u=G.header)==null?void 0:u.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(Y)};
_.H.onDown=function(Y){Y.stopPropagation();this.startX=Y.detail?Y.detail.x:0};
_.H.onUp=function(Y){this.skipKeyInteraction(Y)&&Y.stopPropagation()};
_.H.skipKeyInteraction=function(Y){var G=Y.target;if((G==null?void 0:G.id)==="scroll-container"||(G==null?void 0:G.id)==="items"||Y.detail&&Y.detail.x!==this.startX)return!0;Y=_.wG(Y);Y=_.E(Y);for(G=Y.next();!G.done;G=Y.next()){G=G.value;if(G===this.hostElement)break;if(G.hasAttribute&&G.hasAttribute("skip-key-interaction"))return!0}return!1};
_.H.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Uk.Object.defineProperties(Mh.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.z((Y=this.data)==null?void 0:Y.expandedContent,JMk)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.z((Y=this.data)==null?void 0:Y.expandedContent,uvl)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!((Y=this.data)==null||!Y.useCustomColors)&&!((G=this.data)==null||!G.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!!((Y=this.data)==null?0:(G=Y.header)==null?0:G.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!!((Y=this.data)==null?0:(G=Y.header)==null?0:G.expandedSubtitle)&&this.isExpanded}},
expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=(Y=this.data)==null?void 0:(G=Y.header)==null?void 0:G.expandedSubtitleTapCommand;Y=u&&_.z(u,_.SK);return _.F("web_open_ai_support_links_external_window")&&(Y==null?void 0:Y.target)==="TARGET_NEW_WINDOW"?"_blank":null}},
expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=(Y=this.data)==null?void 0:(G=Y.header)==null?void 0:G.expandedSubtitleTapCommand;Y=u&&_.z(u,_.SK);return _.F("web_open_ai_support_links_external_window")&&(Y==null?void 0:Y.target)==="TARGET_NEW_WINDOW"?"noopener":null}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!!((Y=this.data)==null?0:(G=Y.header)==null?0:G.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
Mh.prototype.onUp=Mh.prototype.onUp;Mh.prototype.onDown=Mh.prototype.onDown;Mh.prototype.isExpandedChanged=Mh.prototype.isExpandedChanged;Mh.prototype.dataChanged=Mh.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Mh.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Mh.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Mh.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Mh.prototype,"isExpanded",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Mh.prototype,"disableExpand",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],Mh.prototype,"isSearch",void 0);
_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Mh.prototype,"isWatch",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.V("design:type",Object)],Mh.prototype,"showProminentLabel",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.V("design:type",Object)],Mh.prototype,"showRightSideLabel",void 0);
_.S([_.R({value:!1,reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Mh.prototype,"hasVideoSummary",null);_.S([_.R({value:!1,reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Mh.prototype,"hasLockupViewModel",null);_.S([_.R({reflectToAttribute:!0}),_.f("data","isWatch"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Mh.prototype,"useCustomColors",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Mh.prototype,"showInfoButton",null);_.S([_.f("data","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Mh.prototype,"showTimestamp",null);_.S([_.f("data","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Mh.prototype,"showExpandedSubtitle",null);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Mh.prototype,"expandedSubtitleTarget",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Mh.prototype,"expandedSubtitleRel",null);_.S([_.f("data","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Mh.prototype,"showThumbnail",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Mh.prototype,"useVppShoppingDestinationStyle",null);
_.S([_.R(),_.V("design:type",Object)],Mh.prototype,"toggleExpandableContent",void 0);_.S([_.Ox("ytd-horizontal-card-list-renderer"),_.V("design:type",Object)],Mh.prototype,"JSC$15642_cardList",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.V("design:type",Object)],Mh.prototype,"useSquareThumbnail",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Mh.prototype,"dataChanged",null);
_.S([_.GO("isExpanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Mh.prototype,"isExpandedChanged",null);_.S([_.Yo("down"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Mh.prototype,"onDown",null);_.S([_.Yo("up"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Mh.prototype,"onUp",null);
_.S([_.pD({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Mh);
_.d(Mh,"ytd-expandable-metadata-renderer",function(){if(B5E!==void 0)return B5E;var Y=document.createElement("template");_.r(Y,'\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]]" target$="[[expandedSubtitleTarget]]" rel$="[[expandedSubtitleRel]]">\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="[[!isExpanded]]" 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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return B5E=Y},{mode:1});var J92,YYR=function(){if(J92!==void 0)return J92;var Y=document.createElement("template");_.r(Y,'\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      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" 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]]" hidden="[[hasAttributedBylineText]]" 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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return J92=Y};_.hR(_.W9,"yt-avatar-stack-view-model",{props:{className:_.AC,data:_.AC,overrides:_.AC,isOverlay:_.AC,useMediumText:_.AC,decorations:_.AC,hideAvatar:_.AC}});_.Px("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Hd=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableExpand=!1;Y.shouldShowChannelInfo=!1;Y.hasAttributedBylineText=!1;Y.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return Y};
_.m(Hd,_.Z);_.H=Hd.prototype;_.H.computeUseSearchUi=function(){var Y,G;return this.isSearch||((Y=this.data)==null?void 0:(G=Y.style)==null?void 0:G.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.H.computeUseThreeLineTitle=function(){var Y;return((Y=this.data)==null?void 0:Y.maxTitleLines)===3};
_.H.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.F("polymer_video_renderer_defer_menu")&&!Wxe?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"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.H.attached=function(){_.$3(this.hostElement,"blue-links",_.F("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.H.detached=function(){this.clearInlinePreviewHoverListeners()};
_.H.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.q7(_.l0(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var Y=this.get("data.buttons.buttonRenderer.serviceEndpoint"),G;Y&&((G=_.z(Y.commandMetadata,_.Kk))==null?0:G.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(Y);this.updateInlinePreviewHoverListeners()};
_.H.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15647_inlinePreviewHoverListener=rw({mediaRenderer:this,lockupElement:this.JSC$15647_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.H.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$15647_inlinePreviewHoverListener)==null||VN(Y)};
_.H.onTextWrapperClick=function(Y){var G,u,O=this.hideTranslation?(G=this.data)==null?void 0:G.untranslatedNavigationEndpoint:(u=this.data)==null?void 0:u.navigationEndpoint;G=_.dE(_.wG(Y),this.hostElement,["expandable-metadata"]);!O||G&&!_.F("expandable_metadata_fix_killswitch")||_.hf(_.wG(Y),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.$s(this.hostElement,"yt-navigate",{endpoint:O})};
_.H.computeThumbnailWidth=function(Y,G,u,O,Q){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:O?Q==="MASSIVE"?600:Q==="BIG"?500:Q==="MEDIUM"?450:420:u?360:G?128:Y?210:246};
_.H.computeUseBiggerThumbs=function(Y){return Y&&_.F("enable_desktop_search_bigger_thumbs")};
_.H.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.H.computeHasAttributedBylineText=function(){var Y;return!((Y=this.data)==null||!Y.attributedBylineText)};
_.H.computeVideoStyle=function(){if(_.F("enable_video_style")){var Y,G;return(Y=this.data)==null?void 0:(G=Y.style)==null?void 0:G.value}};
_.H.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.H.handleHideItemSectionVideosByIdCommand=function(Y){var G;Y=(G=_.z(Y,zkR))==null?void 0:G.videoId;this.data&&this.data.videoId===Y&&(this.isHidden=!0)};
_.H.getMetadataSnippetContainerClass=function(Y){return Y?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.H.computeTitleText=function(Y,G,u){return Y?u:G};
_.H.computeDescriptionSnippet=function(Y,G,u){return Y?u:G};
_.H.computeSnippetText=function(Y,G,u){return Y?u:G};
_.H.computeNavigationEndpoint=function(Y,G){return Y?G==null?void 0:G.untranslatedNavigationEndpoint:G==null?void 0:G.navigationEndpoint};
_.H.hideInlineTitleIcon=function(Y,G){return Y||!G};
_.Uk.Object.defineProperties(Hd.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 Y;return(Y=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?Y:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return!!(this==null?0:(Y=this.data)==null?0:(G=Y.channelThumbnailSupportedRenderers)==null?0:(u=G.channelThumbnailWithLinkRenderer)==null?0:u.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.z((Y=this.data)==null?void 0:Y.avatar,ORR)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$15647_inlinePreviewHoverListener)==null?0:Cr(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Uk.Object.defineProperties(Hd,{template:{configurable:!0,enumerable:!0,get:function(){return YYR()}}});
Hd.prototype.dataChanged=Hd.prototype.dataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Hd.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Hd.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],Hd.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.x(_.oV),_.V("design:type",Object)],Hd.prototype,"ytdLockupBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Hd.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Hd.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Hd.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Hd.prototype,"isBackstageVideo",void 0);
_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Hd.prototype,"isPostCompactVideo",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Hd.prototype,"isHistory",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Hd.prototype,"isRichGridVideoPost",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Hd.prototype,"isHidden",void 0);
_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Hd.prototype,"isSearch",void 0);_.S([_.R({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.V("design:type",Boolean)],Hd.prototype,"useSearchUi",void 0);_.S([_.R({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.V("design:type",Boolean)],Hd.prototype,"useThreeLineTitle",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.V("design:type",Boolean)],Hd.prototype,"useBiggerThumbs",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.V("design:type",Object)],Hd.prototype,"videoStyle",void 0);_.S([_.R({computed:"computeDisableExpand(videoStyle)"}),_.V("design:type",Object)],Hd.prototype,"disableExpand",void 0);
_.S([_.R({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.V("design:type",Object)],Hd.prototype,"shouldShowChannelInfo",void 0);_.S([_.R({computed:"computeHasAttributedBylineText(data)"}),_.V("design:type",Object)],Hd.prototype,"hasAttributedBylineText",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.Yg("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],Hd.prototype,"biggerThumbsStyle",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.V("design:type",String)],Hd.prototype,"inlineTitleIcon",void 0);_.S([_.R({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.V("design:type",Object)],Hd.prototype,"computedNavigationEndpoint",void 0);_.S([_.R({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"searchVideoResultEntity",G)}}),
_.V("design:type",Object)],Hd.prototype,"searchVideoResultEntity",void 0);_.S([_.Ox("ytd-thumbnail"),_.V("design:type",HTMLElement)],Hd.prototype,"thumbnail",void 0);_.S([_.Ox("#dismissible"),_.V("design:type",HTMLElement)],Hd.prototype,"JSC$15647_dismissibleMedia",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Hd.prototype,"dataChanged",null);
_.S([_.f("searchVideoResultEntity"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Hd.prototype,"hideTranslation",null);_.S([_.f("searchVideoResultEntity"),_.V("design:type",Array),_.V("design:paramtypes",[])],Hd.prototype,"hiddenBadgeGroups",null);_.S([_.f("data","useAvatar"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Hd.prototype,"shouldShowChannelThumbnail",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Hd.prototype,"useAvatar",null);
_.S([_.f("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Hd.prototype,"isHovered",null);_.S([_.pD({is:"ytd-video-renderer",disableElementRegistration:!0})],Hd);_.d(Hd,"ytd-video-renderer",function(){return YYR()},{mode:2});var Eu=function(){var Y=_.Z.apply(this,arguments)||this;Y.editDialog=null;Y.roundedContainer=!0;Y.isLoading=!1;Y.isRichGrid=!1;Y.isRichGridRepost=!1;Y.reduceSidePaddings=_.F("reduce_side_paddings_in_shelf");Y.JSC$15654_spinnerEl=null;return Y};
_.m(Eu,_.Z);_.H=Eu.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 Y=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var G=0,u=this.data.actions&&this.data.actions.length;G<u;G++)this.openEditDialog(_.z(this.data.actions[G],QsE));if((G=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(G=this.get("buttonRenderer.hint.hintRenderer.hintId",G))&&G.startsWith("share-post-hint")){var O=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(O){_.cq.getInstance();var Q=Uh(_.i8(_.Q6("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.AN.addLowPriorityJob(function(){_.UK(Y.hostElement,Q,O)})}}}};
_.H.updatePoll=function(Y){Y>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.H.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15654_spinnerEl||(this.JSC$15654_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.l0(this.hostElement).appendChild(this.JSC$15654_spinnerEl));this.JSC$15654_spinnerEl&&(this.JSC$15654_spinnerEl.active=this.isLoading)};
_.H.onYtNavigate=function(Y){var G=this.get("updateCommentDialogEndpoint",Y.detail.endpoint);G&&(this.openEditDialog(G),Y.stopPropagation())};
_.H.onYtCommentboxDismiss=function(){this.editDialog=null};
_.H.onYtCommentPollRevert=function(Y,G){G&&this.updatePoll(G.selectedChoiceIndex)};
_.H.onYtServiceRequestSent=function(Y,G){var u;G.endpoint&&(_.z(G.endpoint,ke_)||_.z(G.endpoint,ImM)&&((u=_.z(G.endpoint,ImM))==null||!u.clientActions))&&(this.isLoading=!0);if(G.actions)for(Y=0;Y<G.actions.length;Y++)u=G.actions[Y],_.z(u,EL)&&(u=this.get("updateBackstagePollAction.selectedChoiceIndex",u),u==void 0&&(u=-1),this.updatePoll(u))};
_.H.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.H.openEditDialog=function(Y){Y&&Y.dialog&&(this.editDialog=Y.dialog,Y=this.editDialogEl.firstElementChild)&&(Y.focus(),Y.openDialog&&Y.openDialog())};
_.H.computeIsPostHidden=function(Y,G){return!!Y||G};
_.H.computeSurfaceType=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.H.computeUsesCompactLockup=function(Y){return Y==="BACKSTAGE_SURFACE_TYPE_HOME"||Y==="BACKSTAGE_SURFACE_TYPE_SEARCH"||Y==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||Y==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||Y==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||Y==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.H.computeShowWithoutToolbar=function(Y){return!Y.actionButtons&&!Y.actionMenu};
_.H.computePostAttachment=function(Y){if(Y.backstageAttachment){if(_.z(Y.backstageAttachment,st_))return"poll";if(_.z(Y.backstageAttachment,ofE))return"quiz";if(_.z(Y.backstageAttachment,_.QVe))return"video";if(_.z(Y.backstageAttachment,iZ_))return"uploaded-videos";if(_.z(Y.backstageAttachment,CP4))return Y.contentText?"image":"image-only";if(_.z(Y.backstageAttachment,CwR))return"playlist"}return"none"};
_.H.computePostTabIndex=function(Y){return Y?0:-1};
_.H.computeButtonTooltipPosition=function(Y){return this.computeUsesCompactLockup(Y)?"top":"bottom"};
_.H.computeHasText=function(Y){return!(Y==null||!Y.contentText)};
_.H.onTap=function(Y){var G,u;if(((G=this.data)==null?0:G.navigationEndpoint)&&((u=this.data)==null?void 0:u.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var O;((O=this.data)==null?0:O.navigationEndpoint)&&!_.hf(_.wG(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.$s(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Uk.Object.defineProperties(Eu.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.voteCount)||_.i8("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.z(this.data.backstageAttachment,st_))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.z(this.data.backstageAttachment,iZ_))}}});
Eu.prototype.onYtServiceRequestCompleted=Eu.prototype.onYtServiceRequestCompleted;Eu.prototype.onYtServiceRequestSent=Eu.prototype.onYtServiceRequestSent;Eu.prototype.onYtCommentPollRevert=Eu.prototype.onYtCommentPollRevert;Eu.prototype.onYtCommentboxDismiss=Eu.prototype.onYtCommentboxDismiss;Eu.prototype.onYtNavigate=Eu.prototype.onYtNavigate;Eu.prototype.isLoadingChanged=Eu.prototype.isLoadingChanged;Eu.prototype.dataChanged=Eu.prototype.dataChanged;Eu.prototype.contentTextChanged=Eu.prototype.contentTextChanged;
_.S([_.x(_.rW),_.V("design:type",Object)],Eu.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Eu.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Eu.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],Eu.prototype,"editDialog",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Eu.prototype,"roundedContainer",void 0);_.S([_.R(),_.V("design:type",Object)],Eu.prototype,"isLoading",void 0);_.S([_.R({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.V("design:type",String)],Eu.prototype,"surface",void 0);
_.S([_.R({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Eu.prototype,"usesCompactLockup",void 0);_.S([_.R({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Eu.prototype,"showWithoutToolbar",void 0);_.S([_.R({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.V("design:type",String)],Eu.prototype,"attachment",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Eu.prototype,"isRichGrid",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Eu.prototype,"isRichGridRepost",void 0);_.S([_.R({reflectToAttribute:!0,value:_.F("use_better_post_dismissals")}),_.V("design:type",Boolean)],Eu.prototype,"useBetterPostDismissals",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Eu.prototype,"reduceSidePaddings",void 0);
_.S([_.R({computed:"computeHasText(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Eu.prototype,"hasText",void 0);_.S([_.Ox("#expander"),_.V("design:type",Object)],Eu.prototype,"expander",void 0);_.S([_.Ox("#action-buttons"),_.V("design:type",Object)],Eu.prototype,"actionButtons",void 0);_.S([_.Ox("#edit-dialog"),_.V("design:type",HTMLElement)],Eu.prototype,"editDialogEl",void 0);
_.S([_.GO("data.contentText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Eu.prototype,"contentTextChanged",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Eu.prototype,"dataChanged",null);_.S([_.GO("isLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Eu.prototype,"isLoadingChanged",null);
_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Eu.prototype,"onYtNavigate",null);_.S([_.Yo("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Eu.prototype,"onYtCommentboxDismiss",null);_.S([_.Yo("yt-comment-poll-revert"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Eu.prototype,"onYtCommentPollRevert",null);
_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],Eu.prototype,"onYtServiceRequestSent",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],Eu.prototype,"onYtServiceRequestCompleted",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eu.prototype,"voteCount",null);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eu.prototype,"commentCount",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Eu.prototype,"hasPoll",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Eu.prototype,"hasUploadedVideo",null);_.S([_.pD({is:"ytd-post-renderer",disableElementRegistration:!0})],Eu);
_.d(Eu,"ytd-post-renderer",function(){if(gFV!==void 0)return gFV;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return gFV=Y},{mode:1});var GJM;var uWR;var tq=function(){return _.Z.apply(this,arguments)||this};
_.m(tq,_.Z);tq.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],tq.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.V8.YtdHorizontalListBehavior),_.V("design:type",Object)],tq.prototype,"ytdHorizontalListBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],tq.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],tq.prototype,"data",void 0);
_.S([_.R({value:"$.items.children"}),_.V("design:type",String)],tq.prototype,"itemsPath",void 0);_.S([_.R({value:1}),_.V("design:type",Number)],tq.prototype,"initialCount",void 0);_.S([_.R({reflectToAttribute:!0,value:_.F("enable_community_page_on_desktop")}),_.V("design:type",Boolean)],tq.prototype,"useSmallerPostImageAttachments",void 0);_.S([_.R(),_.V("design:type",String)],tq.prototype,"surface",void 0);_.S([_.pD({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],tq);
_.d(tq,"ytd-post-multi-image-renderer",function(){if(uWR!==void 0)return uWR;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return uWR=Y},{mode:2});var OYI={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"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"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
KN=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasInlineCommentSection=!1;Y.editDialog=null;Y.isLoading=!1;Y.shouldHideAuthor=!1;Y.shouldShowVideoTime=!1;Y.isInEngagementPanel=!1;Y.hideBorder=!1;Y.usesFullLockup=!1;Y.shouldShowMenuInCompactView=!1;Y.JSC$15669_spinnerEl=null;Y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return Y};
_.m(KN,_.Z);_.H=KN.prototype;_.H.configureRendererStamper=function(){return OYI};
_.H.computeIsPollHeaderEnabled=function(Y){return(Y==null?void 0:Y.pollMetadataIcon)!=null};
_.H.getPublishTimeStampString=function(Y,G){G=new Date((Number(G)-60*((new Date).getTimezoneOffset()-(new Date(Number(G)*1E3)).getTimezoneOffset()))*1E3);G=(new oi(10)).format(G);if(Y&&Y.runs&&Y.runs.length)for(var u=0;u<Y.runs.length;u++)Y.runs[u].text&&(Y.runs[u].text=Y.runs[u].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",G));return Y};
_.H.created=function(){this.JSC$15669_spinnerEl=null};
_.H.contentTextChanged=function(){this.expander.reset()};
_.H.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var Y;if((Y=this.data)==null?0:Y.actions){Y=_.E(this.data.actions);for(var G=Y.next();!G.done;G=Y.next())this.openEditDialog(_.z(G.value,QsE))}};
_.H.handleSignalActionOpenPostCommentDialogAction=function(){_.l0(this.hostElement).querySelector("#action-buttons").reply()};
_.H.updatePoll=function(Y,G){G&&this.set("data.pollMetadataVoteCountText",G);this.hasInlineCommentSection&&(Y=Y>=0,G=_.l0(this.hostElement).querySelector("#action-buttons"),Y?G.reply():G.hideReplyDialog())};
_.H.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15669_spinnerEl||(this.JSC$15669_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.l0(this.hostElement).appendChild(this.JSC$15669_spinnerEl));this.JSC$15669_spinnerEl&&(this.JSC$15669_spinnerEl.active=this.isLoading)};
_.H.onYtNavigate=function(Y){var G=this.get("updateCommentDialogEndpoint",Y.detail.endpoint);G&&(this.openEditDialog(G),Y.stopPropagation())};
_.H.onYtCommentboxDismiss=function(){this.editDialog=null};
_.H.onYtCommentPollRevert=function(Y,G){G&&this.updatePoll(G.selectedChoiceIndex,G.totalVotes)};
_.H.onYtServiceRequestSent=function(Y,G){Y.stopPropagation();Y=_.z(G.endpoint,ImM);if(_.z(G.endpoint,ke_)||Y&&!Y.clientActions)this.isLoading=!0;if(G.actions)for(Y=0;Y<G.actions.length;Y++){var u=G.actions[Y],O=_.z(u,EL);O&&(u=this.get("updateBackstagePollAction.selectedChoiceIndex",u),u===void 0&&(u=-1),this.updatePoll(u,O.totalVotes))}};
_.H.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.H.openEditDialog=function(Y){Y&&Y.dialog&&(this.editDialog=Y.dialog,Y=this.editDialogElement.firstElementChild)&&(Y.focus(),Y.openDialog&&Y.openDialog())};
_.H.computeIsBodyHidden=function(Y,G){return!!Y||G};
_.Uk.Object.defineProperties(KN.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var Y=this.data,G=Y.showPostAuthorBackgroundHighlight,u=Y.postAuthorBadgeType,O=Y.authorEndpoint;if(!G&&u!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&u!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var Q,M,t;Y=_.i8(((Q=Y.authorText)==null?void 0:(M=Q.runs)==null?void 0:(t=M[0])==null?void 0:t.text)||"");Q=void 0;switch(u){case "POST_AUTHOR_BADGE_TYPE_ARTIST":Q={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":Q={iconType:G?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:Y,authorEndpoint:O,authorCreator:G,icon:Q}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var Y,G;if((Y=this.data)==null?0:(G=Y.pollMetadataIcon)==null?0:G.iconType)return _.Ux(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.voteCount)||_.i8("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.z(this.data.backstageAttachment,st_))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.z(this.data.backstageAttachment,ofE))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.z(this.data.backstageAttachment,iZ_))}}});
KN.prototype.onYtServiceRequestCompleted=KN.prototype.onYtServiceRequestCompleted;KN.prototype.onYtServiceRequestSent=KN.prototype.onYtServiceRequestSent;KN.prototype.onYtCommentPollRevert=KN.prototype.onYtCommentPollRevert;KN.prototype.onYtCommentboxDismiss=KN.prototype.onYtCommentboxDismiss;KN.prototype.onYtNavigate=KN.prototype.onYtNavigate;KN.prototype.isLoadingChanged=KN.prototype.isLoadingChanged;KN.prototype.dataChanged=KN.prototype.dataChanged;KN.prototype.contentTextChanged=KN.prototype.contentTextChanged;
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],KN.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],KN.prototype,"rendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],KN.prototype,"rendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],KN.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.Ox("#contentTextExpander"),_.V("design:type",Object)],KN.prototype,"expander",void 0);_.S([_.Ox("#edit-dialog"),_.V("design:type",Element)],KN.prototype,"editDialogElement",void 0);_.S([_.R(),_.V("design:type",Object)],KN.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],KN.prototype,"hasInlineCommentSection",void 0);_.S([_.R(),_.V("design:type",Object)],KN.prototype,"editDialog",void 0);_.S([_.R(),_.V("design:type",Object)],KN.prototype,"isLoading",void 0);
_.S([_.R({computed:"computeIsPollHeaderEnabled(data)"}),_.V("design:type",Boolean)],KN.prototype,"isPollHeaderEnabled",void 0);_.S([_.R(),_.V("design:type",Object)],KN.prototype,"shouldHideAuthor",void 0);_.S([_.R(),_.V("design:type",Object)],KN.prototype,"shouldShowVideoTime",void 0);_.S([_.R(),_.V("design:type",Object)],KN.prototype,"isInEngagementPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],KN.prototype,"hideBorder",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],KN.prototype,"usesFullLockup",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],KN.prototype,"shouldShowMenuInCompactView",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],KN.prototype,"authorCommentBadge",null);_.S([_.f("isInEngagementPanel"),_.V("design:type",Number),_.V("design:paramtypes",[])],KN.prototype,"postTextMaxLines",null);
_.S([_.f("data.icon.iconType"),_.V("design:type",Object),_.V("design:paramtypes",[])],KN.prototype,"pollIcon",null);_.S([_.GO("data.contentText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],KN.prototype,"contentTextChanged",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],KN.prototype,"dataChanged",null);
_.S([_.GO("isLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],KN.prototype,"isLoadingChanged",null);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],KN.prototype,"onYtNavigate",null);_.S([_.Yo("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],KN.prototype,"onYtCommentboxDismiss",null);
_.S([_.Yo("yt-comment-poll-revert"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],KN.prototype,"onYtCommentPollRevert",null);_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],KN.prototype,"onYtServiceRequestSent",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],KN.prototype,"onYtServiceRequestCompleted",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],KN.prototype,"voteCount",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],KN.prototype,"commentCount",null);
_.S([_.f("data.backstageAttachment"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],KN.prototype,"hasPoll",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],KN.prototype,"hasQuiz",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],KN.prototype,"hasUploadedVideo",null);_.S([_.pD({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],KN);
_.d(KN,"ytd-backstage-post-renderer",function(){if(GJM!==void 0)return GJM;var Y=document.createElement("template");_.r(Y,'\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="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!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="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" 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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return GJM=Y},{mode:1});var Qml;var aN=function(){var Y=_.Z.apply(this,arguments)||this;Y.editDialog=null;Y.showExpandButton=!1;Y.isRichGrid=!1;Y.usesFullLockup=!1;return Y};
_.m(aN,_.Z);_.H=aN.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(Y){return this.usesCompactLockup||Y&&Y.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.H.computeUsesCompactLockup=function(Y){return!!Y.condensedContent};
_.H.computeShowFullContentText=function(Y){return!Y};
_.H.onYtNavigate=function(Y){Y=this.get("updateCommentDialogEndpoint",Y.detail.endpoint);this.openEditDialog(Y)};
_.H.onYtCommentboxDismiss=function(){this.editDialog=null};
_.H.openEditDialog=function(Y){Y&&Y.dialog&&(this.editDialog=Y.dialog,Y=this.repostEditDialogEl.firstElementChild)&&(Y.focus(),Y.openDialog&&Y.openDialog())};
_.H.onTap=function(Y){if(this.data){var G=null;this.usesCompactLockup&&!_.hf(_.wG(Y)||[],this.hostElement,["YT-IMG-SHADOW"])?G=this.get("navigationEndpoint",this.data):Y.target===this.moreButtonEl&&(G=this.get("navigationEndpoint",Y.target.data));G&&_.$s(this.hostElement,"yt-navigate",{endpoint:G})}};
aN.prototype.onYtCommentboxDismiss=aN.prototype.onYtCommentboxDismiss;aN.prototype.onYtNavigate=aN.prototype.onYtNavigate;aN.prototype.dataChanged=aN.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],aN.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],aN.prototype,"editDialog",void 0);_.S([_.R({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],aN.prototype,"usesCompactLockup",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],aN.prototype,"showExpandButton",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],aN.prototype,"isRichGrid",void 0);
_.S([_.R({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.V("design:type",Boolean)],aN.prototype,"showFullContentText",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],aN.prototype,"usesFullLockup",void 0);_.S([_.Ox("#more"),_.V("design:type",Object)],aN.prototype,"moreButtonEl",void 0);_.S([_.Ox("#repost-content-text"),_.V("design:type",HTMLElement)],aN.prototype,"repostContentTextEl",void 0);
_.S([_.Ox("#repost-edit-dialog"),_.V("design:type",HTMLElement)],aN.prototype,"repostEditDialogEl",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aN.prototype,"dataChanged",null);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],aN.prototype,"onYtNavigate",null);
_.S([_.Yo("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aN.prototype,"onYtCommentboxDismiss",null);_.S([_.pD({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],aN);
_.d(aN,"ytd-shared-post-renderer",function(){if(Qml!==void 0)return Qml;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Qml=Y},{mode:1});var Mwe;var HY_;var T9=function(){return _.Z.apply(this,arguments)||this};
_.m(T9,_.Z);T9.prototype.attached=function(){var Y=this;this.networkStatusManager||(this.networkStatusManager=new _.lB,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){Y.onlineHandler()}))};
T9.prototype.detached=function(){var Y=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){Y.onlineHandler()}),delete this.networkStatusManager)};
T9.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],T9.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],T9.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],T9);
_.d(T9,"ytd-reload-page-button-renderer",function(){if(HY_!==void 0)return HY_;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
return HY_=Y},{mode:1});var ErU={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"},LN=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.m(LN,_.Z);_.H=LN.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(Y){return!!Y.bodyText};
_.H.computeButtons=function(Y){var G=[];Y.ctaButton&&G.push(Y.ctaButton);Y.secondaryButton&&G.push(Y.secondaryButton);return G};
_.H.computeRendererStyle=function(Y){return Y.style?Y.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():Y.icon?"":"no-icon"};
_.H.getIconName=function(Y,G){G=G===void 0?!1:G;if(Y===void 0)return"";Y=this.get("icon.iconType",Y);var u;_.F("enable_hlp_client_icon_pick")?u=this.getThemedIcon(Y,G):u=Y;(G=ErU[u])||(G="yt-icons");return[G,u].join(":")};
_.H.getThemedIcon=function(Y,G){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(Y)?G?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(Y)?G?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":Y};
_.H.isThumbnail=function(Y){return!!Y.thumbnail};
_.H.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.H.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],LN.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],LN.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],LN.prototype,"data",void 0);
_.S([_.R({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.V("design:type",String)],LN.prototype,"rendererStyle",void 0);_.S([_.R({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.V("design:type",String)],LN.prototype,"iconName",void 0);_.S([_.R({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],LN.prototype,"thumbnail",void 0);_.S([_.R({computed:"computeButtons(data)"}),_.V("design:type",Array)],LN.prototype,"buttons",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],LN.prototype,"isDarkTheme",void 0);_.S([_.R({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],LN.prototype,"hasBodyText",void 0);_.S([_.pD({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],LN);
_.$o()(LN,"ytd-background-promo-renderer",function(){if(Mwe===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);Mwe=Y}Y=Mwe;return Y},{allowedProps:["data"],
mode:1});var twl;var gD=function(){return _.Z.apply(this,arguments)||this};
_.m(gD,_.Z);_.Uk.Object.defineProperties(gD.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O,Q,M;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(Y=this.data)==null?void 0:(G=Y.thumbnail)==null?void 0:G.sampledThumbnailColor,vibrantColorPalette:(u=this.data)==null?void 0:(O=u.thumbnail)==null?void 0:O.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(M=Q.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:!0}}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],gD.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],gD.prototype,"collectionStack",null);_.S([_.pD({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],gD);
_.d(gD,"ytd-compact-station-renderer",function(){if(twl!==void 0)return twl;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return twl=Y},{mode:1});var Kr2;var X7=function(){var Y=_.Z.apply(this,arguments)||this;Y.isRichGrid=!1;return Y};
_.m(X7,_.Z);X7.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]]"}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],X7.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],X7.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],X7.prototype,"isRichGrid",void 0);_.S([_.pD({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],X7);
_.d(X7,"ytd-grid-channel-renderer",function(){if(Kr2!==void 0)return Kr2;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Kr2=Y},{mode:1});var a64;var Pd=function(){return _.Z.apply(this,arguments)||this};
_.m(Pd,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Pd.prototype,"data",void 0);_.S([_.pD({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Pd);
_.d(Pd,"ytd-grid-movie-playlist-renderer",function(){if(a64!==void 0)return a64;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return a64=Y},{mode:1});var Tq1;var IN=function(){var Y=_.Z.apply(this,arguments)||this;Y.downloadProgress=0;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.modernButtons=_.F("web_modern_buttons");return Y};
_.m(IN,_.Z);IN.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
IN.prototype.configureRendererStamper=function(){return{"data.menu":EM}};
IN.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
IN.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.F("woffle_playlist_renderer_killswitch")){var Y,G=QWA(this.entityInfo,this.transferState,this.downloadProgress,(Y=this.data)==null?void 0:Y.playlistId,this.isOnline);Y=G.viewPlaylistText;var u=G.badges;G=G.thumbnailOverlays;this.isDownloads=!!Y||!!u;this.set("data.viewPlaylistText",Y);u&&u.length>0&&this.set("data.badges",u);G&&G.length>0&&this.set("data.thumbnailOverlays",
G)}};
_.Uk.Object.defineProperties(IN.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 Y;return!((Y=this.data)==null?0:Y.menu)}}});
IN.prototype.transferStateChanged=IN.prototype.transferStateChanged;IN.prototype.dataChanged=IN.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],IN.prototype,"ytdLockupBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],IN.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.R({selector:_.So4,selectorArgs:["data.playlistId"]}),_.V("design:type",Object)],IN.prototype,"downloadProgress",void 0);_.S([_.R({selector:_.WC,selectorArgs:["data.playlistId"]}),_.V("design:type",Object)],IN.prototype,"transferState",void 0);_.S([_.R({selector:b8g,selectorArgs:["data.playlistId"]}),_.V("design:type",Object)],IN.prototype,"entityInfo",void 0);_.S([_.R({selector:_.zL}),_.V("design:type",Boolean)],IN.prototype,"isOnline",void 0);
_.S([_.R(),_.V("design:type",Object)],IN.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],IN.prototype,"downloadRenderData",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],IN.prototype,"modernButtons",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],IN.prototype,"isDownloads",void 0);_.S([_.f("transferState"),_.R({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],IN.prototype,"downloadState",null);
_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],IN.prototype,"menuHidden",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IN.prototype,"dataChanged",null);_.S([_.Ex("transferState","downloadProgress","isOnline"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IN.prototype,"transferStateChanged",null);
_.S([_.pD({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],IN);
_.d(IN,"ytd-grid-playlist-renderer",function(){if(Tq1!==void 0)return Tq1;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Tq1=Y},{mode:1});var LrV;var kB=function(){return _.Z.apply(this,arguments)||this};
_.m(kB,_.Z);kB.prototype.configureRendererStamper=function(){return{"data.menu":EM,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Uk.Object.defineProperties(kB.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O,Q,M;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(Y=this.data)==null?void 0:(G=Y.thumbnail)==null?void 0:G.sampledThumbnailColor,vibrantColorPalette:(u=this.data)==null?void 0:(O=u.thumbnail)==null?void 0:O.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(M=Q.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:!0}}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],kB.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],kB.prototype,"ytdLockupBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],kB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],kB.prototype,"data",void 0);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],kB.prototype,"collectionStack",null);_.S([_.pD({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],kB);
_.d(kB,"ytd-grid-radio-renderer",function(){if(LrV!==void 0)return LrV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return LrV=Y},{mode:1});var grX;var nN=function(){return _.Z.apply(this,arguments)||this};
_.m(nN,_.Z);nN.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
nN.prototype.computeNavigationEndpoint=function(Y){return R91(Y==null?void 0:Y.navigationEndpoint)};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],nN.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],nN.prototype,"ytdLockupBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],nN.prototype,"data",void 0);_.S([_.R({computed:"computeNavigationEndpoint(data)"}),_.V("design:type",Object)],nN.prototype,"computedNavigationEndpoint",void 0);
_.S([_.pD({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],nN);
_.d(nN,"ytd-grid-show-renderer",function(){if(grX!==void 0)return grX;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return grX=Y},{mode:1});var X_E;_.F7=function(Y){this.playerClient=Y};
_.P1_=function(Y,G,u){u=u===void 0?{}:u;return Y.playerClient.setOption("ad",G,u)};
_.F7.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.F7.prototype.executeCommand=function(Y,G){this.getOptions().includes("executeCommand")?_.P1_(this,"executeCommand",{command:Y,layoutId:G}):_.i5("Calling executeCommand when adModule is not loaded")};var pN=function(){return _.Z.apply(this,arguments)||this};
_.m(pN,_.Z);pN.prototype.getLayoutId=function(){var Y=_.So("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.layoutId:null};
pN.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var Y=_.N5(),G=this.getLayoutId(),u=this.data.clickthroughEndpoint;Y&&G&&_.F("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?Y.getPlayerPromise().then(function(O){(new _.F7(O)).executeCommand(u,G)}):_.$s(this.hostElement,"yt-navigate",{endpoint:u})}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],pN.prototype,"data",void 0);_.S([_.pD({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],pN);
_.d(pN,"ytd-shopping-companion-item-renderer",function(){if(X_E!==void 0)return X_E;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return X_E=Y},{mode:1});var I61;var z9=function(){var Y=_.Z.apply(this,arguments)||this;Y.isExpandableContent=!1;return Y};
_.m(z9,_.Z);_.Uk.Object.defineProperties(z9.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return((Y=this.data)==null?void 0:Y.price)||((G=this.data)==null?void 0:(u=G.dealsData)==null?void 0:u.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var Y,G;if((Y=this.data)!=null&&Y.dealsData&&((G=this.data)==null||!G.priceReplacementText)){Y=this.data.dealsData;var u,O,Q;return((u=Y.salesData)==null?void 0:u.originalPrice)||((O=Y.priceDropData)==null?void 0:O.referencePrice)||((Q=Y.promotionData)==null?void 0:Q.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(Y=this.data)==null?void 0:(G=Y.dealsData)==null?void 0:G.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],z9.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],z9.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],z9.prototype,"isExpandableContent",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],z9.prototype,"showCta",null);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],z9.prototype,"ctaText",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],z9.prototype,"hasPriceTopPosition",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],z9.prototype,"hasPriceBottomPosition",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],z9.prototype,"useNewStyle",null);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],z9.prototype,"showPriceReplacementText",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],z9.prototype,"priceValue",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],z9.prototype,"showDeal",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],z9.prototype,"showAffiliateDisclaimer",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],z9.prototype,"useSaleStyle",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],z9.prototype,"useFromBrandCtaStyle",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],z9.prototype,"useFromVendorCtaStyle",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],z9.prototype,"useShoppingCollectionCtaStyle",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],z9);
_.d(z9,"ytd-vertical-product-card-renderer",function(){if(I61!==void 0)return I61;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return I61=Y},{mode:1});var kJM;var ms=function(){return _.Z.apply(this,arguments)||this};
_.m(ms,_.Z);ms.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],ms.prototype,"ytdLockupBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ms.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],ms);
_.d(ms,"ytd-grid-movie-renderer",function(){if(kJM!==void 0)return kJM;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return kJM=Y},{mode:1});var nrX;var Wd=function(){var Y=_.Z.apply(this,arguments)||this;Y.roundedFix=_.F("web_enable_merch_item_rounding_fix");Y.itemStyle="small-item";return Y};
_.m(Wd,_.Z);Wd.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var Y,G,u,O,Q=(G=_.z((Y=this.data)==null?void 0:Y.buttonCommand,_.tml))==null?void 0:(u=G.item)==null?void 0:(O=u.notificationTextRenderer)==null?void 0:O.successResponseText;Q&&_.w61(this.hostElement,Q)}};
_.Uk.Object.defineProperties(Wd.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?void 0:Y.isProductPlaceholder)!==void 0&&((G=this.data)==null?void 0:G.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.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}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Wd.prototype,"roundedFix",void 0);_.S([_.R(),_.V("design:type",Object)],Wd.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],Wd.prototype,"itemStyle",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Wd.prototype,"hasPrice",null);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Wd.prototype,"hasPriceReplacementText",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Wd.prototype,"hasAdditionalFeesText",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Wd.prototype,"hasAffiliateDisclaimer",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Wd.prototype,"isProductPlaceholder",null);
_.S([_.R(),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Wd.prototype,"hideOpenInNewIcon",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Wd.prototype,"ariaLabel",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],Wd);
_.d(Wd,"ytd-merch-shelf-item-renderer",function(){if(nrX!==void 0)return nrX;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return nrX=Y},{mode:1});_.hR(_.D(function(Y){return _.T("button-card-view-model",{el:_.iq(_.zi(function(){return Y.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return Y.data().title},
role:"button"},_.T(_.jO,{model:{}}),_.T("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.T("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.T(_.X,{cond:function(){return Y.data().image},
then:function(G){return _.T(_.RD,{data:G,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.T("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return Y.data().title})))},"mc"),"button-card-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){Y=_.bM(Y,{className:void 0});var G=Y.data;Y=Y.className;var u=_.p2(function(){return G().onTapCommand},void 0,"SXkP9e");
return _.T("ytd-shopping-item-card",{class:_.s3("ytdShoppingItemCardHost",Y)},_.T(_.Ny,{command:u,className:"ytdShoppingItemCardHostLink"},_.T("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.T(_.HE,{data:function(){return G().thumbnailViewModel}},{thumbnailViewModel:function(O){return _.T(l2,{data:O.data,
aspectRatio:3})}})),_.T("div",null,_.T("p",{class:"ytdShoppingItemCardHostItemTitle"},_.T(_.eO,{text:function(){return G().itemTitle}})),_.T("p",{class:"ytdShoppingItemCardHostPrice"},_.T(_.eO,{text:function(){return G().priceOrStatus}})))))},"nc"),"ytd-shopping-item-card",{props:{data:_.AC,
className:_.AC}});var Frl={isAdsVideo:!0},p_R={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},zD1={showPlayerControls:!1,videoPreviewDurationMs:15E3},ms1={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},Wre={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var ww=null,Ztu={};var dDg="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(" "),rD={},bt4=(rD.FEwhat_to_watch="home",rD.FEhashtag="hashtag",rD.FEtrending="trending",rD.FEhistory="history",rD.SPunlimited="premium",rD.FEmemberships_and_purchases="paid_memberships",rD.SPredeem_code="redeem",rD.SPverify_location="locate",rD.SPminor_moment="minor_moment",
rD.FEmini_app_container="mini_app",rD.FEnews_destination="news",rD.SPopen_in_app="open_in_app",rD.FEexplore="explore",rD.FEsubscriptions="subscriptions",rD.FEsfv_audio_pivot="sfv_audio_pivot",rD.FEplaylist_aggregation="playlist_aggregation",rD);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");_.v$("init");var rJ2,xse,C11,yJE,f6e;rJ2=function(){};
_.Y1T=_.D(function(Y){var G=Y.data;var u=Y.inlineMetadata;var O=Y.aspectRatio;var Q=Y.scrimStyle;var M=Y.className;var t=Y.useDefaultStyle;var K=Y.titleStyle;var L=new rJ2,g=_.F("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",P=_.p2(function(){return(t==null?0:t())?g==="SHORTS_LOCKUP_STYLE_SLIM":G().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"iLX4Re"),I=_.p2(function(){return _.hT(u)||P()||!1},void 0,"GaU7Ef"),k=function(){return(Q==null?void 0:
Q())!==void 0?Q==null?void 0:Q():1},n=_.p2(function(){return G().belowThumbnailMetadata||!I()},void 0,"vsyhaf");
Y=_.UV({visibilityCallback:function(Mj){var Xt=G().onFirstVisible;Mj&&Xt&&_.W3(Xt)},
showOption:{calledOnce:!0,state:"visible"}});var p=_.iq(),W={},C=_.s3(function(){return P(),"shortsLockupViewModelHostThumbnailContainer"},(W.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.hT(O)===1},W.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.hT(O)===2},W.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.F("web_shorts_2_by_3_lockups_study")&&!_.F("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
W)),e=_.p2(function(){if(_.hT(O)===1)return 1;
_.hT(O);return 2},void 0,"bBJLCd"),w,B=function(){if(L){var Mj;
(Mj=w)==null||VN(Mj);var Xt;if(L.hostElement&&((Xt=L.data)==null?0:Xt.inlinePlayerData)){var ka,aU;Mj=((ka=L.data)==null?0:(aU=ka.inlinePlayerData)==null?0:aU.enableAudioControl)?Object.assign({},Wre):Object.assign({},ms1);var Tg,iy;((Tg=L.data)==null?void 0:(iy=Tg.inlinePlayerData)==null?void 0:iy.maxPlaybackLengthSec)!==void 0&&(Mj.videoPreviewDurationMs=L.data.inlinePlayerData.maxPlaybackLengthSec*1E3);w=rw({mediaRenderer:L,lockupElement:L.hostElement,thumbnailElement:p.value,videoPreviewOpts:Mj})}}};
_.RE(function(){L&&(L.data=G(),B())},"r1zbOc");
var N=_.p2(function(){return G().thumbnail},void 0,"wZj8b");
W=_.p2(function(){return G().badge},void 0,"qOKyU");
var h=_.p2(function(){return G().onTap},void 0,"p3kB9e"),q={},U={};
return _.T("ytm-shorts-lockup-view-model",{el:_.iq(function(Mj){L&&(L.hostElement=Mj)},B,Y),
class:_.s3("shortsLockupViewModelHost",M)},_.T(_.GY,null,_.T(_.Ny,{command:h,className:_.s3("shortsLockupViewModelHostEndpoint",(q.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!n()},q),"reel-item-endpoint",""),
ariaHidden:function(){return!I()},
tabIndex:function(){return I()?0:-1}},_.T("div",{el:p,
class:_.s3("shortsLockupViewModelHostThumbnailParentContainer",(U.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!P()},U))},_.T(_.X,{cond:N,
then:function(){return _.T("div",{class:C},_.T(_.RD,{data:function(){var Mj;return(Mj=N==null?void 0:N())!=null?Mj:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.T(_.HE,{data:function(){return G().thumbnailViewModel}},{thumbnailViewModel:function(Mj){return _.T(l2,{data:Mj.data,
aspectRatio:function(){return e()},
disableRounding:function(){return P()}})}}),null),_.T(_.X,{cond:I,
then:function(){return _.T(xse,{data:G,scrimStyle:k,useDefaultStyle:t,titleStyle:K})}}),_.T(_.HE,{data:W},{badgeViewModel:function(Mj){return _.T(_.b2,{data:Mj.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.T(_.X,{cond:function(){return I()&&G().menuOnTap},
then:function(){return _.T(f6e,{data:G,inlineMetadata:!0})}}),_.T(_.X,{cond:n,
then:function(){return _.T(C11,{data:G,useDefaultStyle:t,inlineMetadata:I})}})))},"pc");
xse=_.D(function(Y){var G=Y.data;var u=Y.scrimStyle;var O=Y.useDefaultStyle;var Q=Y.titleStyle;var M=_.F("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",t=O&&_.F("web_hide_primary_text_for_pivot_panel"),K=_.p2(function(){return(O==null?0:O())?M==="SHORTS_LOCKUP_STYLE_SLIM":G().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ou5zO");
Y={};Y=_.s3("shortsLockupViewModelHostInlineMetadata",(Y.shortsLockupViewModelHostMetadataRounded=function(){return!K()},Y.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(u==null?void 0:u())===3&&!_.F("enable_shorts_lockup_new_scrim")},Y.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(u==null?void 0:u())===3&&_.F("enable_shorts_lockup_new_scrim")},Y.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(u==null?void 0:u())===2||(u==null?void 0:
u())===4},Y.shortsLockupViewModelHostShowOverPlayer=function(){return!0},Y),"image-overlay-text");
var L={};return _.T("div",{class:Y},_.T("h3",{class:_.s3("shortsLockupViewModelHostMetadataTitle",(L.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(u==null?void 0:u())===4},L.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return G().belowThumbnailMetadata},L.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(Q==null?void 0:Q())===1},L.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(Q==null?void 0:Q())===2},L)),
"aria-label":function(){return G().accessibilityText}},_.T(_.X,{cond:function(){var g;
return!((g=G().overlayMetadata)==null||!g.primaryText)&&!t},
then:function(){return _.T(_.eO,{text:function(){var g;return(g=G().overlayMetadata)==null?void 0:g.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.T(_.X,{cond:function(){var g;
return(g=G().overlayMetadata)==null?void 0:g.secondaryText},
then:function(){return _.T(yJE,{data:G,scrimStyle:u,className:void 0})}}))},"qc");
C11=_.D(function(Y){var G=Y.data;var u=Y.useDefaultStyle;var O=Y.inlineMetadata;var Q=_.F("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",M=_.p2(function(){return(u==null?0:u())?Q==="SHORTS_LOCKUP_STYLE_SLIM":G().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"WbzRH"),t=_.iq(),K;
Y=_.U3(function(n){if(_.nK(_.kC(n),t.value,["AVATAR-VIEW-MODEL"]))return!1;var p;(p=K)==null||p.click();return!1});
var L=_.p2(function(){return G().belowThumbnailMetadata||G().overlayMetadata},void 0,"nDfetf"),g=function(){return G().menuOnTap&&!O()},P=function(){var n;
return(n=L())==null?void 0:n.avatar},I={},k={};
return _.T("div",{class:_.s3(function(){return M()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(I.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!P()},I.shortsLockupViewModelHostOutsideMetadataHasMenu=g,I)),
"on:click":Y,el:t,role:"presentation"},_.T(_.HE,{data:P},{avatarViewModel:function(n){return _.T(_.z$,{data:n.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.T("div",null,_.T("h3",{class:_.s3("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(k.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var n,p;
return!((n=L())==null?0:(p=n.primaryText)==null?0:p.content)},k.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=O,k)),
role:"presentation"},_.T(_.Ny,{ref:function(n){return void(K=n)},
command:function(){return G().onTap},
className:_.s3("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var n,p;return(n=L())==null?void 0:(p=n.primaryText)==null?void 0:p.content},
"aria-label":function(){return G().accessibilityText}},_.T(_.X,{cond:function(){var n;
return(n=L())==null?void 0:n.primaryText},
then:function(n){return _.T(_.eO,{text:n,noEndpoints:!0,noStyleRuns:!0})}}))),_.T(_.X,{cond:function(){var n;
return(n=L())==null?void 0:n.secondaryText},
then:function(n){return _.T("div",{class:_.s3("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.T(_.eO,{text:n,noStyleRuns:!0}))}})),_.T(_.X,{cond:g,
then:function(){return _.T(f6e,{data:G,inlineMetadata:!1})}}))},"rc");
yJE=_.D(function(Y){var G=Y.data;var u=Y.scrimStyle;Y=Y.className;var O={};return _.T("div",{class:_.s3((O.shortsLockupViewModelHostMetadataSubhead=function(){return(u==null?void 0:u())!==4},O.shortsLockupViewModelHostMetadataSubheadNew=_.F("enable_shorts_lockup_new_scrim"),O.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(u==null?void 0:u())===4},O),Y),
"aria-hidden":"true"},_.T(_.eO,{text:function(){var Q;return(Q=G().overlayMetadata)==null?void 0:Q.secondaryText},
noStyleRuns:!0}))},"sc");
f6e=_.D(function(Y){var G=Y.data;var u=Y.inlineMetadata;Y={};Y=_.s3((Y.shortsLockupViewModelHostInlineMetadataMenu=function(){return u()},Y.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!u()},Y.shortsLockupViewModelHostShowOverPlayer=function(){return!0},Y),"image-overlay-text");
return _.T("div",{class:Y},_.T(_.BZ,{data:function(){return{style:u()?"overlay":"mono",accessibilityLabel:G().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(O){O.preventDefault();O.stopPropagation();var Q=_.zU({elementsCommand:G().menuOnTap,forceNewState:!0});if(Q==null?0:Q.onclick)Q.onclick(O)}}},
iconName:"MORE_VERT"}))},"tc");var ulU=_.D(function(Y){var G=Y.data;var u=Y.inlineMetadata;var O=Y.aspectRatio;var Q=Y.scrimStyle;var M=Y.className;var t=Y.useDefaultStyle;Y=_.p2(function(){var K=G().entityId;return K?K.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.T("ytm-shorts-lockup-view-model-v2",{class:_.s3("shortsLockupViewModelHost",M)},_.T(_.JZ,{contentId:Y,aspectRatio:function(){return(O==null?void 0:O())===1?1:(O==null?void 0:O())===2?2:4}},function(){return _.T(_.Y1T,{data:G,
inlineMetadata:u,aspectRatio:O,scrimStyle:Q,className:M,useDefaultStyle:t})}))},"uc");_.hR(ulU,"ytm-shorts-lockup-view-model-v2",{props:{data:_.wH,inlineMetadata:_.wH,aspectRatio:_.wH,scrimStyle:_.wH,className:_.wH,useDefaultStyle:_.wH,titleStyle:_.wH}});var eD2=16/9*210,xB=function(){var Y=_.Z.apply(this,arguments)||this;Y.isExpandableContent=!1;Y.hideShelfHeader=!1;Y.engagementPanel=!1;Y.buttonClasses=["arrow"];Y.isSearch=!1;Y.disableScrollEventListener=!1;Y.containsLockup=!1;Y.overrideArrowPositionForProductCard=!1;Y.overrideArrowPositionForShoppingItemCard=!1;Y.overrideArrowPositionForReelItems=!1;Y.overrideArrowPositionForGridMovie=!1;Y.overrideArrowPositionToCenter=!1;Y.isSearchPostShelf=!1;Y.overrideArrowPositionForMixedShelf=!1;Y.overrideArrowPositionForMixedShelfShortsOnly=
!1;Y.hasBigThumbsReelItems=!1;Y.shouldUseMixedListHeight=!1;Y.shouldUseShortsListHeight=!1;Y.gridVideoWidth=0;Y.isSearchVodShelf=!1;Y.disableWheelScroll=!1;Y.sizing="COMPACT";Y.shortsLockupAspectRatio=0;return Y};
_.m(xB,_.Z);_.H=xB.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(),_.F("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.H.computeInitialCountNumber=function(Y){if(!Y)return 6;var G=Y.items.some(function(M){return!!M.topicRecommendationsChipRenderer}),u=Y.items.some(function(M){return!!M.displayAdRenderer}),O=this.computeShouldListItemsHaveEqualHeight(Y),Q=Y.items.some(function(M){return!!M.gridPlaylistRenderer});
Y=Y.items.some(function(M){return!!M.shoppingItemCardViewModel});
return G?9:u?8:Q||O?10:Y?7:6};
_.H.computeContainsPost=function(Y){return!!Y&&!!Y.items&&Y.items.some(function(G){return!!G.postRenderer})};
_.H.computeContainsLockup=function(){if(_.F("web_horizontal_list_lockup_arrow_killswitch"))return!1;var Y,G;return(Y=this.data)==null?void 0:(G=Y.items)==null?void 0:G.some(function(u){return!!u.lockupViewModel})};
_.H.maybeUpdateLockupAspectRatio=function(){var Y,G;if(this.computeContainsLockup()&&((Y=this.data)==null?0:(G=Y.items)==null?0:G.length)){var u;Y=KkY((u=this.data.items[0].lockupViewModel)==null?void 0:u.contentType,this.data.force16By9ThumbnailAspectRatio);u=teu(Y);u=this.computeLockupWidth()/u;_.cm(this.hostElement,{"--yt-horizontal-list-content-height":u+"px"})}};
_.H.computeOverrideArrowPositionForProductCard=function(Y){if(this.isExpandableContent)return!1;var G;return!!(Y==null?0:(G=Y.items)==null?0:G.some(function(u){return!!u.verticalProductCardRenderer}))};
_.H.computeOverrideArrowPositionForShoppingItemCard=function(Y){var G;return!!(Y==null?0:(G=Y.items)==null?0:G.some(function(u){return!!u.shoppingItemCardViewModel}))};
_.H.computeOverrideArrowPositionForReelItemRenderer=function(Y){return this.containsReelItemRenderer(Y)};
_.H.computeHasBigThumbsReelItems=function(Y,G){return Y&&this.containsReelItemRenderer(G)};
_.H.computeShouldListItemsHaveEqualHeight=function(Y){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(Y==null?void 0:Y.itemSizeConstraint)};
_.H.computeShouldListItemsHaveShortsHeight=function(Y){return this.computeShouldListItemsHaveEqualHeight(Y)&&!this.containsGridVideoRenderer(Y)};
_.H.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.H.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.H.containsReelItemRenderer=function(Y){var G;return!!(Y==null?0:(G=Y.items)==null?0:G.some(function(u){return!(!u.reelItemRenderer&&!u.shortsLockupViewModel)}))};
_.H.containsGridVideoRenderer=function(Y){var G;return!!(Y==null?0:(G=Y.items)==null?0:G.some(function(u){return!!u.gridVideoRenderer||!!u.lockupViewModel}))};
_.H.computeContainsGridMovieRenderer=function(Y){var G;return!!(Y==null?0:(G=Y.items)==null?0:G.some(function(u){return!!u.gridMovieRenderer}))};
_.H.computeOverrideArrowPositionToCenter=function(Y){return this.computeIsSearchPostShelf(Y)};
_.H.computeIsSearchPostShelf=function(Y){var G;return!!(Y==null?0:(G=Y.items)==null?0:G.some(function(u){var O,Q;return((Q=(O=u.postRenderer)==null?void 0:O.surface)!=null?Q:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.H.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(Y){var G;return!!(Y==null?0:(G=Y.items)==null?0:G.some(function(u){var O,Q,M;return((M=(O=u.backgroundPromoRenderer)==null?void 0:(Q=O.style)==null?void 0:Q.value)!=null?M:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.H.computeIsSearchVodShelf=function(Y,G){return Y&&this.containsGridVideoRenderer(G)};
_.H.computeDisableWheelScroll=function(Y,G){return this.computeIsSearchVodShelf(Y,G)};
_.H.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.H.computeShortsLockupAspectRatio=function(){return 1};
_.H.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.cm(this.hostElement,{"--ytd-reel-item-thumbnail-height":eD2+"px"})};
xB.prototype.dataChanged=xB.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],xB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.V8.YtdHorizontalListBehavior),_.V("design:type",Object)],xB.prototype,"ytdHorizontalListBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],xB.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],xB.prototype,"isExpandableContent",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"hideShelfHeader",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"engagementPanel",void 0);_.S([_.R(),_.V("design:type",Array)],xB.prototype,"buttonClasses",void 0);_.S([_.R(),_.V("design:type",Object)],xB.prototype,"isSearch",void 0);
_.S([_.R(),_.V("design:type",Object)],xB.prototype,"disableScrollEventListener",void 0);_.S([_.R({computed:"computeInitialCountNumber(data)"}),_.V("design:type",Number)],xB.prototype,"initialCount",void 0);_.S([_.R({computed:"computeContainsPost(data)"}),_.V("design:type",Boolean)],xB.prototype,"supportComponentResize",void 0);_.S([_.R({computed:"computeContainsPost(data)"}),_.V("design:type",Boolean)],xB.prototype,"containsPost",void 0);
_.S([_.R({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"containsLockup",void 0);_.S([_.R({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],xB.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.S([_.R({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"overrideArrowPositionForProductCard",void 0);_.S([_.R({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.S([_.R({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"overrideArrowPositionForReelItems",void 0);_.S([_.R({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"overrideArrowPositionForGridMovie",void 0);
_.S([_.R({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"overrideArrowPositionToCenter",void 0);_.S([_.R({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"isSearchPostShelf",void 0);_.S([_.R({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.S([_.R({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.S([_.R({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"hasBigThumbsReelItems",void 0);
_.S([_.R({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"shouldUseMixedListHeight",void 0);_.S([_.R({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"shouldUseShortsListHeight",void 0);_.S([_.R({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"gridVideoWidth",void 0);
_.S([_.R({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"isSearchVodShelf",void 0);_.S([_.R({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.V("design:type",Object)],xB.prototype,"disableWheelScroll",void 0);_.S([_.R({computed:"computeSizing(isSearch)"}),_.V("design:type",Object)],xB.prototype,"sizing",void 0);
_.S([_.R({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.V("design:type",Object)],xB.prototype,"shortsLockupAspectRatio",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xB.prototype,"dataChanged",null);
_.d(xB,"yt-horizontal-list-renderer",function(){if(fQe===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);fQe=Y}Y=fQe;return Y},{mode:1});var AJU=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
AJU.prototype.subscribe=function(Y,G){var u=this.subscriptions.get(Y);if(!u)return function(){};
u.add(G);return function(){u.delete(G)}};
AJU.prototype.unsubscribe=function(Y,G){(Y=this.subscriptions.get(Y))&&Y.delete(G)};
AJU.prototype.publish=function(Y,G){G=G===void 0?{}:G;(Y=this.subscriptions.get(Y))&&Y.forEach(function(u){u(G)})};var orR;var iY1=[10,12,14,16,18,20,24,28,32,36],RDI=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],fN=function(){var Y=_.Z.apply(this,arguments)||this;Y.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";Y.hideOverflow=!1;Y.useRoboto=!1;Y.fontClass="";Y.overflown=!1;Y.actionMap={"yt-window-resized":"resize"};return Y};
_.m(fN,_.Z);_.H=fN.prototype;
_.H.attached=function(){var Y=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();_.sk(this,function(){Y.resize()});
if(!_.YU){var G,u,O;(G=document)==null||(u=G.fonts)==null||(O=u.ready)==null||O.then(function(){Y.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 Y=this.getMaxNumLines(),G=this.getMinFont(),u=this.getMaxFont(),O=this.useRoboto?iY1:RDI;for(O=O.filter(function(M){return M<=u&&M>=G});O.length>1;){var Q=Math.floor(O.length/2);
this.updateFontSize(O[Q]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=Y)O=O.slice(Q,O.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>Y)O=O.slice(0,Q);else break}this.updateFontSize(O[O.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(Y)}};
_.H.handleOverflow=function(Y){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>Y&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",Y.toString()))};
_.H.updateFontSize=function(Y){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+Y;this.textNode.classList.add(this.fontClass)};
_.H.getMaxFont=function(){var Y=this.useRoboto?iY1:RDI;Y=Y[Y.length-1];return this.maxFontSize&&this.maxFontSize<=Y?this.maxFontSize:Y};
_.H.getMinFont=function(){var Y=(this.useRoboto?iY1:RDI)[0];return this.minFontSize&&this.minFontSize>=Y?this.minFontSize:Y};
_.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+_.Ri(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("Kh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
fN.prototype.guideIsExpandedChanged=fN.prototype.guideIsExpandedChanged;fN.prototype.dataChanged=fN.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],fN.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],fN.prototype,"actionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],fN.prototype,"text",void 0);
_.S([_.R(),_.V("design:type",String)],fN.prototype,"fontFamily",void 0);_.S([_.R(),_.V("design:type",Number)],fN.prototype,"maxWidth",void 0);_.S([_.R(),_.V("design:type",Number)],fN.prototype,"maxHeight",void 0);_.S([_.R(),_.V("design:type",Number)],fN.prototype,"maxFontSize",void 0);_.S([_.R(),_.V("design:type",Number)],fN.prototype,"minFontSize",void 0);_.S([_.R(),_.V("design:type",Number)],fN.prototype,"maxLines",void 0);_.S([_.R(),_.V("design:type",Object)],fN.prototype,"hideOverflow",void 0);
_.S([_.R({selector:_.CAg}),_.V("design:type",Boolean)],fN.prototype,"guideIsExpanded",void 0);_.S([_.Ox("#container"),_.V("design:type",HTMLElement)],fN.prototype,"containerNode",void 0);_.S([_.Ox("#text"),_.V("design:type",HTMLElement)],fN.prototype,"textNode",void 0);_.S([_.Ex("text"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fN.prototype,"dataChanged",null);
_.S([_.Ex("guideIsExpanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fN.prototype,"guideIsExpandedChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],fN);
_.d(fN,"yt-dynamic-sizing-formatted-string",function(){if(orR!==void 0)return orR;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return orR=Y},{mode:1});var w_l;_.ZYX=function(Y){_.Ya.call(this,Y)};
_.m(_.ZYX,_.Ya);var DsI=function(Y){_.Ya.call(this,Y)};
_.m(DsI,_.ZYX);var CN=function(){return _.Z.apply(this,arguments)||this};
_.m(CN,_.Z);CN.prototype.onTapSuspendedChannel=function(){var Y;if((Y=this.data)!=null&&Y.serviceEndpoint){var G,u;(Y=(u=_.z((G=this.data)==null?void 0:G.serviceEndpoint,_.SK))==null?void 0:u.url)?_.Wm(Y,void 0,void 0,window.top):(G=new DsI("Did not handle suspended account tap. No appealUrl."),_.o0(G))}else G=new DsI("Did not handle suspended account tap. No serviceEndpoint."),_.o0(G)};
CN.prototype.onTap=function(){var Y=this,G=_.M4(),u,O=(u=_.QZ(G,{veType:7116}))!=null?u:void 0;_.er(G,{visualElement:O});_.zA();this.saveRoleText();var Q;if((Q=this.data)==null?0:Q.youtubeSuspended)this.onTapSuspendedChannel();else{var M=!1,t,K;(G=(K=_.z((t=this.data)==null?void 0:t.serviceEndpoint,_.WeV))==null?void 0:K.supportedTokens)&&G.forEach(function(L){if(L.accountSigninToken)if(M=!0,Y.onAccountItemTap)Y.onAccountItemTap(L.accountSigninToken.signinUrl);else _.Wm(L.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!M){if(t=this.get("serviceEndpoint",this.data))M=!0,this.ytComponentBehavior.resolveCommand(t);M||_.ij(new DsI("Did not handle account switch tap. No token."))}}};
CN.prototype.saveRoleText=function(){if(this.data){var Y=this.data,G=Y.channelDelegationRole;if(G){var u,O=(u=_.z(Y==null?void 0:Y.serviceEndpoint,_.WeV))==null?void 0:u.supportedTokens;if(!O){var Q,M,t,K;O=(Q=_.z(Y==null?void 0:Y.serviceEndpoint,_.tw))==null?void 0:(M=Q.popup)==null?void 0:(t=M.confirmDialogRenderer)==null?void 0:(K=t.confirmButton)==null?void 0:K.buttonRenderer;var L;O=(L=_.z(O==null?void 0:O.command,_.Jv))==null?void 0:L.commands;if(!O)return;var g;O=(g=_.z(O[1],_.WeV))==null?
void 0:g.supportedTokens}if(O){L=void 0;g=_.E(O);for(O=g.next();!O.done;O=g.next())if(O=O.value,O.datasyncIdToken){L=O.datasyncIdToken.datasyncIdToken;break}if(L){var P;a:{if(_.DwT()&&(g=_.xg(L+"::pom"))){g=new My(g);break a}g=void 0}(P=g)==null||P.set("role_text",G);if((cSa?cSa:window.location).href.indexOf("studio")!==-1&&(P=hdt())){g=P.src?(new URL(P.src)).origin:"*";var I;(I=P.contentWindow)==null||I.postMessage({action:"save_pom_role",datasyncId:L,roleText:G},g)}}}}}};
_.Uk.Object.defineProperties(CN.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=(Y=this.data)==null?void 0:(G=Y.accountPhoto)==null?void 0:G.thumbnails;return u&&u.length>0&&(u[0].height===36||u[0].height===48)?u[0].height:40}}});
CN.prototype.onTap=CN.prototype.onTap;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],CN.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],CN.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!1}),_.V("design:type",Function)],CN.prototype,"onAccountItemTap",void 0);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],CN.prototype,"enableRingForActiveAccount",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],CN.prototype,"thumbnailSize",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CN.prototype,"onTap",null);_.S([_.pD({is:"ytd-account-item-renderer",disableElementRegistration:!0})],CN);
_.d(CN,"ytd-account-item-renderer",function(){if(w_l!==void 0)return w_l;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return w_l=Y},{mode:1});var hDV;var y0=function(){return _.Z.apply(this,arguments)||this};
_.m(y0,_.Z);y0.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.sH().resolve(_.rH).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],y0.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],y0.prototype,"data",void 0);_.S([_.pD({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],y0);
_.d(y0,"ytd-identity-chip-renderer",function(){if(hDV!==void 0)return hDV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return hDV=Y},{mode:1});var dsI;var bYR;var SY4;var NqX;var eQ=function(){var Y=_.Z.apply(this,arguments)||this;Y.richItemMinWidth=_.Jy("wn_grid_min_item_width",310);Y.isShorts=!1;Y.isWatchNext=!1;Y.isExploreHub=!1;return Y};
_.m(eQ,_.Z);_.Uk.Object.defineProperties(eQ.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var Y=[],G=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.cm(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var u;if(((u=this.data)==null?0:u.rows)&&G)for(G*=this.data.rows,u=0;u<G;u++)Y.push({});return Y}}});
_.S([_.x(_.me),_.V("design:type",Object)],eQ.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],eQ.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.nU,value:3}),_.V("design:type",Number)],eQ.prototype,"itemsPerRow",void 0);_.S([_.R({selector:_.fmy,value:6}),_.V("design:type",Number)],eQ.prototype,"slimItemsPerRow",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Number)],eQ.prototype,"richItemMinWidth",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.kG}),_.V("design:type",Boolean)],eQ.prototype,"miniMode",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eQ.prototype,"isShorts",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eQ.prototype,"isWatchNext",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eQ.prototype,"isExploreHub",void 0);
_.S([_.f("isExploreHub"),_.R({reflectToAttribute:!0}),_.V("design:type",Object),_.V("design:paramtypes",[])],eQ.prototype,"shimmerAnimation",null);_.S([_.f("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.V("design:type",Array),_.V("design:paramtypes",[])],eQ.prototype,"cardItems",null);_.S([_.pD({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],eQ);
_.jme=_.$o()(eQ,"ytd-ghost-grid-renderer",function(){if(NqX===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);NqX=Y}Y=NqX;return Y},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.hR(_.D(function(Y){var G=_.bM(Y,{numberOfComments:3}).numberOfComments,u=_.bM(Y,{isInitialLoad:!1}).isInitialLoad,O=_.bM(Y,{engagementPanel:!1}).engagementPanel,Q=function(){return Math.min(Number(G==null?void 0:G())||20,20)};
return _.T("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.T(_.X,{cond:function(){return!(O==null?0:O())&&(u==null?void 0:u())},
then:function(){return _.T("div",{class:"ytGhostCommentsComments"},_.T("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.T("div",{class:_.s3("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.T("div",{class:_.s3("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.T("div",{class:"ytGhostCommentsGhostCard"},_.T("div",{class:"ytGhostCommentsAvatar"},_.T("div",{class:"ytGhostCommentsCircle"})),_.T("div",{class:"ytGhostCommentsComments"},_.T("div",{class:"ytGhostCommentsMeta"},
_.T("div",{class:_.s3("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.T("div",{class:_.s3("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.T("div",{class:"ytGhostCommentsComments"},_.T(_.rc,{each:function(){return Array((Q==null?void 0:Q())||3)}},function(){return _.T("div",{class:"ytGhostCommentsGhostCard"},_.T("div",{class:"ytGhostCommentsAvatar"},_.T("div",{class:"ytGhostCommentsCircle"})),_.T("div",{class:"ytGhostCommentsHost"},_.T("div",{class:"ytGhostCommentsMeta"},
_.T("div",{class:_.s3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.T("div",{class:_.s3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.T("div",{class:_.s3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.T("div",{class:"ytGhostCommentsGhostLikeDislike"},_.T("div",{class:_.s3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.T("div",{class:_.s3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"vc"),"yt-ghost-comments",{props:{numberOfComments:_.AC,
isInitialLoad:_.AC,engagementPanel:_.AC},unsafeExternallySettableAttributes:new Set(["hidden"])});_.Px("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Aq=function(){var Y=_.Z.apply(this,arguments)||this;Y.isOverridable=!1;Y.spinnerActive=!1;Y.showButton=!1;Y.isCommentsSection=!1;Y.engagementPanel=!0;Y.isShortsGrid=!1;Y.isShortsPage=!1;Y.isWatchPage=!1;Y.originalShowButton=!1;Y.endOfList=!1;return Y};
_.m(Aq,_.Z);_.H=Aq.prototype;_.H.resetIntersectionObserver=function(){var Y;(Y=this.observer)==null||Y.disconnect();this.observer=void 0};
_.H.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var Y,G;((Y=this.data)==null?void 0:Y.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((G=this.data)==null?0:G.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.H.initializeIntersectionObserver=function(){var Y=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(G){G=_.E(G);for(var u=G.next();!u.done;u=G.next())u.value.isIntersecting&&(Y.triggerContinuation(),Y.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]]"}}}},showGhostCardComments:{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 Y;((Y=this.data)==null?0:Y.continuationEndpoint)&&(Y=_.z(this.data.continuationEndpoint,_.rE))&&this.ytdReduxBehavior.dispatch(_.V6({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:Y}}))};
_.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(Y,G){if(!_.F("kevlar_hide_spinner_on_empty_continuation_killswitch")){var u;(u=G.actions)!=null&&u.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(){var Y=3;if(this.engagementPanel){var G,u,O;Y=Math.floor(((((G=this.hostElement)==null?void 0:(u=G.parentElement)==null?void 0:(O=u.parentElement)==null?void 0:O.scrollHeight)||108)-108)/108);Y=this.isInitialLoad?Math.max(Y,3):3}G=[].concat(_.c8(this.hostElement.querySelectorAll("yt-ghost-comments")));G=_.E(G);for(u=G.next();!u.done;u=G.next())u=u.value,u.numberOfComments=Y,u.isInitialLoad=this.isInitialLoad,u.engagementPanel=this.engagementPanel};
_.H.detached=function(){this.resetIntersectionObserver()};
_.Uk.Object.defineProperties(Aq.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
Aq.prototype.numberOfGhostCommentsChanged=Aq.prototype.numberOfGhostCommentsChanged;Aq.prototype.continuationTriggerOffsetChanged=Aq.prototype.continuationTriggerOffsetChanged;Aq.prototype.showButtonChanged=Aq.prototype.showButtonChanged;Aq.prototype.onYtServiceRequestCompletedForButtonRenderer=Aq.prototype.onYtServiceRequestCompletedForButtonRenderer;Aq.prototype.onServiceRequestCompleted=Aq.prototype.onServiceRequestCompleted;Aq.prototype.onYtServiceRequestSentForButtonRenderer=Aq.prototype.onYtServiceRequestSentForButtonRenderer;
Aq.prototype.observeData=Aq.prototype.observeData;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Aq.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.xY.YtVisibilityBehavior),_.V("design:type",Object)],Aq.prototype,"ytVisibilityBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Aq.prototype,"ytComponentBehavior",void 0);
_.S([_.x(_.me),_.V("design:type",Object)],Aq.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Aq.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Aq.prototype,"isOverridable",void 0);_.S([_.R(),_.V("design:type",Object)],Aq.prototype,"spinnerActive",void 0);_.S([_.R(),_.V("design:type",Object)],Aq.prototype,"showButton",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Aq.prototype,"isCommentsSection",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Aq.prototype,"engagementPanel",void 0);_.S([_.R(),_.V("design:type",Object)],Aq.prototype,"isShortsGrid",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.AsT}),_.V("design:type",Object)],Aq.prototype,"isShortsPage",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.e6j}),_.V("design:type",Object)],Aq.prototype,"isWatchPage",void 0);_.S([_.R(),_.V("design:type",Number)],Aq.prototype,"continuationTriggerOffset",void 0);
_.S([_.R(),_.V("design:type",Object)],Aq.prototype,"endOfList",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Aq.prototype,"isInitialLoad",void 0);_.S([_.Ox("ytd-button-renderer"),_.V("design:type",_.jZ)],Aq.prototype,"buttonRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],Aq.prototype,"buttonOverrides",void 0);
_.S([_.R(),_.f("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.V("design:type",Object),_.V("design:paramtypes",[])],Aq.prototype,"showGhostCardComments",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Aq.prototype,"observeData",null);
_.S([_.Yo("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Aq.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],Aq.prototype,"onServiceRequestCompleted",null);
_.S([_.Yo("yt-service-request-completed-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Aq.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.S([_.Ex("showButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Aq.prototype,"showButtonChanged",null);
_.S([_.Ex("continuationTriggerOffset"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Aq.prototype,"continuationTriggerOffsetChanged",null);_.S([_.GO("isInitialLoad","engagementPanel"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Aq.prototype,"numberOfGhostCommentsChanged",null);_.S([_.pD({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Aq);
_.d(Aq,"ytd-continuation-item-renderer",function(){if(SY4!==void 0)return SY4;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return SY4=Y},{mode:1});var Vwl;var oN=function(){var Y=_.Z.apply(this,arguments)||this;Y.downloadProgress=0;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.downloadState="DOWNLOAD_STATE_UNKNOWN";Y.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";Y.offlineVideoPolicyExpirationTimestamp=0;Y.downloadedVideoPlaybackPosition=0;return Y};
_.m(oN,_.Z);oN.prototype.dataChanged=function(){var Y;this.videoData=_.z((Y=this.data)==null?void 0:Y.renderer,YoX);this.transferStateChanged()};
oN.prototype.downloadProgressChanged=function(){if(this.entityInfo){var Y=Object.assign({},this.videoData),G=MYA(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),u=G.publishedTimeText,O=G.badges;Y.shortViewCountText=G.shortViewCountText;Y.publishedTimeText=u;Y.badges=O;this.set("videoData",Y)}};
oN.prototype.transferStateChanged=function(){if(this.entityInfo){var Y=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",G=_.EG(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!HC(this.entityInfo.policyEntity),u=Object.assign({},this.videoData),O=MYA(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Q=O.publishedTimeText,M=O.badges;u.shortViewCountText=
O.shortViewCountText;u.publishedTimeText=Q;u.badges=M;u.isDisabled=G;u.isWatched=this.downloadedVideoPlaybackPosition>0;u.navigationEndpoint=G?void 0:oYA(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var t;Y&&((t=this.videoData)==null?0:t.videoId)&&!_.F("dl_resume_click_killswitch")&&(u.isDisabled=!1,u.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});u.thumbnailOverlays=Ory(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",u)}};
oN.prototype.transferStateChanged=oN.prototype.transferStateChanged;oN.prototype.downloadProgressChanged=oN.prototype.downloadProgressChanged;oN.prototype.dataChanged=oN.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],oN.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],oN.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],oN.prototype,"videoData",void 0);_.S([_.R({selector:rK,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],oN.prototype,"downloadProgress",void 0);_.S([_.R(),_.V("design:type",Number)],oN.prototype,"relativeDateReference",void 0);_.S([_.R({selector:_.mZ,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],oN.prototype,"transferState",void 0);
_.S([_.R({selector:Uej,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],oN.prototype,"downloadState",void 0);_.S([_.R({selector:Z8t,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],oN.prototype,"offlinePolicyAction",void 0);_.S([_.R({selector:Deg,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],oN.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.S([_.R({selector:xG,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],oN.prototype,"downloadedVideoPlaybackPosition",void 0);_.S([_.R({selector:dey,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],oN.prototype,"entityInfo",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],oN.prototype,"isDownloading",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oN.prototype,"dataChanged",null);
_.S([_.Ex("downloadProgress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oN.prototype,"downloadProgressChanged",null);_.S([_.Ex("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oN.prototype,"transferStateChanged",null);
_.S([_.pD({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],oN);
_.d(oN,"ytd-downloaded-video-grid-video-renderer",function(){if(Vwl!==void 0)return Vwl;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Vwl=Y},{mode:2});var l6X;var iL=function(){};
iL.prototype.resolve=function(Y,G){var u=this;return _.a(function(O){return O.yield(u.resolveCommand(Y,G),0)})};var BqR,RN;BqR=SQA(function(Y){return Y.targetId},{shouldPersist:!1});
RN=BqR.updateData;_.$sX=BqR.useUpdatableData;var qYE,sm_;qYE=SQA(function(Y){return Y.targetId});
sm_=qYE.updateData;_.cJ1=qYE.useUpdatableData;var UsE=jQg.bind(null,RN),vrE=jQg.bind(null,sm_);(function(Y,G,u){var O=_.z(u==null?void 0:u.updatedRenderer,_.yiT);return O?Y({targetId:G},function(){return O}):!1}).bind(null,RN);var wD=function(){};
_.m(wD,iL);wD.prototype.resolveCommand=function(Y){var G;return _.a(function(u){G=_.z(Y,Jcg);if(!G)return u.return();UsE(G.targetId,G);_.Sd(u)})};var ZD=function(){var Y=_.Mb.apply(this,arguments)||this;Y.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-restore-cached-continuable-data-command":"handleRestoreCachedContinuableDataCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return Y};
_.m(ZD,_.Mb);_.H=ZD.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,this.reloadUiContent=void 0)};
_.H.handleAppendContinuationItemsAction=function(Y){var G=_.z(Y,_.F32);if(this.data&&this.data.targetId&&G&&this.continuationPathMap&&G.targetId===this.data.targetId){var u=DvY(Y),O=u&&this.continuationPathMap[u];if(O&&u)if(Y=this.get(O,this.data)){a:{for(u=0;u<Y.length;u++){var Q=Y[u],M=void 0,t=!!_.z((M=_.z(Q,Ecl))==null?void 0:M.content,_.ciR);if(_.z(Q,_.l6)||t)break a}u=Y.length}O="data."+O;G.continuationItems?u===Y.length-1?(this.pop(O),this.push.apply(this,[O].concat(_.c8(G.continuationItems)))):
u===Y.length?this.push.apply(this,[O].concat(_.c8(G.continuationItems))):this.splice.apply(this,[O,u,1].concat(_.c8(G.continuationItems))):this.splice(O,u,1);(_.F("web_enable_voting_animation")||_.F("enable_music_web_cairo_voting_animation"))&&_.$s(this.hostElement,"yt-append-continuation-items-action-finished");_.$s(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.R0(new _.I2("append continuation items does not exist",u));else _.R0(new _.I2("append continuation path does not exist",
u))}};
_.H.handleReloadContinuationItemsCommand=function(Y){var G=_.z(Y,Jcg);if(this.data&&G){if(!_.F("web_reload_continuation_items_command_resolver_killswitch")){var u=_.sH().resolve(_.q3(wD));u&&u.resolveCommand(Y)}if(this.data.targetId&&this.continuationPathMap&&G.targetId===this.data.targetId&&(!_.F("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||G.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var O;u=(O=G.slot)==null?void 0:O.replace("RELOAD_CONTINUATION_SLOT_",
"");O=(Y=DvY(Y)+"-"+(u==null?void 0:u.toLowerCase()))&&this.continuationPathMap[Y];if(!O||!Y||!u)_.R0(new _.I2("reload continuation path does not exist",Y));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(G)){if(G.replaceWithFirstItem){var Q;this.set("data."+O,((Q=G.continuationItems)==null?0:Q.length)?G.continuationItems[0]:{})}else this.set("data."+O,G.continuationItems?G.continuationItems:[]);JJV(this)}}}};
_.H.handleRestoreCachedContinuableDataCommand=function(Y){Y=_.z(Y,i31);var G;(G=this.data)!=null&&G.targetId&&(Y==null?void 0:Y.targetId)===this.data.targetId&&JJV(this)};
var JJV=function(Y){Y.continuationIsReloading=!1;Y.reloadUiContent=void 0;_.$s(Y.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})};
ZD.prototype.handleShowReloadUiCommand=function(Y){Y=_.z(Y,Z3U);var G;((G=this.data)==null?0:G.targetId)&&(Y==null?0:Y.targetId)&&Y.targetId===this.data.targetId&&(this.continuationIsReloading=!0,Y.content&&(this.reloadUiContent=Y.content))};
ZD.prototype.observeData=ZD.prototype.observeData;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],ZD.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ZD.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ZD.prototype,"data",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],ZD.prototype,"continuationIsReloading",void 0);
_.S([_.R(),_.V("design:type",Object)],ZD.prototype,"reloadUiContent",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZD.prototype,"observeData",null);_.S([_.Hn()],ZD);_.DD=[_.m9.YtComponentBehavior,_.vZ.YtActionHandlerBehavior,ZD.prototype];_.hq={};_.hq.YtNextContinuationBehavior=[_.ZA.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",_.Jh(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Jh(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(Y,G){Y.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,G,{}):(Y={locationRetrieved:function(u){this.makeNextContinuationRequest_(u,G,{})}.bind(this)},_.$s(this.hostElement,"yt-retrieve-location",Y))},
makeNextContinuationRequest_:function(Y,G,u){_.zb("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();Y=G(Y);var O;this.canUseContextualNetworkManager_()&&(O=this.getNetworkManager());O||(O=_.sH().resolve(_.Hm));G=_.Af.instance;if(_.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&G){O=_.Ds([Y.startsWith("/")?Y.substr(1):Y]);var Q,M;u=_.Cl(G,{},O,u==null?void 0:(Q=u.context)==null?void 0:(M=Q.clickTracking)==null?void 0:M.clickTrackingParams).then(function(t){return{response:t}})}else u=
this.nextContinuation.usePost?O.postData(Y,u):O.fetchData(Y);
u.then(this.updateNextContinuationData_.bind(this,Y));this.pendingContinuationRequest_=u;this.startListeningForNavigate_()},
updateNextContinuationData_:function(Y,G){var u=this;_.zb("ncl");this.pendingContinuationRequest_=void 0;if(G){var O={};this.nextContinuation&&(O=this.nextContinuation);if(G.response&&G.response.continuationContents&&G.response.continuationContents[O.continuationType]){Y=G.response.continuationContents[O.continuationType];var Q=O.header||"data.header",M=Y[O.responseHeaderKey||"header"];M&&this.set(Q,M);Q=O.contentsArray||"data.contents";M=this.getContents_(Y,O.responseContentsKey||"contents")||[];
this.pathExists_(Q)?(M.unshift(Q),this.push.apply(this,M)):this.set(Q,M);M&&(VMy(_.M4(),G.response,this.hostElement,function(t){_.qZ(u.hostElement,"yt-store-grafted-ve-action",[t])}),_.$s(this.hostElement,"yt-next-continuation-data-updated",{continuationData:G,
page:this,contentsArray:Q}));this.set(O.continuationsArray||"data.continuations",Y[O.responseContinuationsKey||"continuations"]||[])}else G.reload?_.R0(new _.I2("Reloading from continuation is unsupported")):G.responseContext&&G.responseContext.errors||(delete G.xsrf_token,delete G.timing,delete G.endpoint,delete G.csn,G.responseContext&&delete G.responseContext.serviceTrackingParams,Q={request:_.B4(Y,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(G).sort()},G.response&&(Q.responseContentKeys=
Object.keys(G.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(Q.continuationType=this.nextContinuation.continuationType.substr(0,256)),G=new _.I2("Malformed continuation",Q),Y.indexOf("/comment_service_ajax")==0?_.R0(G):_.o0(G)),this.set(O.continuationsArray||"data.continuations",[])}else _.ij(new _.I2("Missing continuation response",Y))},
getContents_:function(Y,G){G=G.split(".");return _.gX.getValueByKeys(Y,G)},
pathExists_:function(Y){var G=this;Y=Y.toString().split(".");for(var u=0;u<Y.length;u++)if(G=G[Y[u]],G===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var Y1R;var G6k;var dD=function(){var Y=_.Z.apply(this,arguments)||this;Y.triggered_=!1;return Y};
_.m(dD,_.Z);_.H=dD.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_||(_.$s(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(Y,G){return Y===void 0?null:Y.label||!G?Y.label:this.showMoreText_};
_.H.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.H.getContinuationUrl=function(Y){var G={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(G.itct=this.data.clickTrackingParams);return _.JD(Y,G)};
_.H.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
dD.prototype.showButtonChanged_=dD.prototype.showButtonChanged_;dD.prototype.observeData_=dD.prototype.observeData_;_.S([_.x(_.xY.YtVisibilityBehavior),_.V("design:type",Object)],dD.prototype,"ytVisibilityBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],dD.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],dD.prototype,"showButton",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],dD.prototype,"showIcon",void 0);_.S([_.R({computed:"computeLabel_(data, showButton)"}),_.V("design:type",Object)],dD.prototype,"label",void 0);_.S([_.R({value:_.i8(_.Q6("SHOW_MORE",void 0,"Show More"))}),_.V("design:type",Object)],dD.prototype,"showMoreText_",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],dD.prototype,"spinnerActive_",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],dD.prototype,"hasBeenTriggered_",void 0);
_.S([_.R({value:void 0}),_.V("design:type",String)],dD.prototype,"observeVisibleOption",void 0);_.S([_.R({value:void 0}),_.V("design:type",String)],dD.prototype,"observeHiddenOption",void 0);_.S([_.R({value:"observe_once"}),_.V("design:type",Object)],dD.prototype,"observePrescanOption",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dD.prototype,"observeData_",null);
_.S([_.GO("showButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dD.prototype,"showButtonChanged_",null);_.S([_.Ff({is:"yt-next-continuation",disableElementRegistration:!0})],dD);
_.d(dD,"yt-next-continuation",function(){if(G6k===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Y1R===void 0&&(Y1R=document.createElement("template"));var O=Y1R;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);G6k=Y}Y=G6k;return Y},{mode:2});var ulX;var OPk;var bL=function(){return _.Z.apply(this,arguments)||this};
_.m(bL,_.Z);bL.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],bL.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],bL.prototype,"data",void 0);_.S([_.Ff({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],bL);
_.d(bL,"yt-music-pass-small-feature-info-renderer",function(){if(OPk===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;ulX===void 0&&(ulX=document.createElement("template"));var O=ulX;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);OPk=Y}Y=OPk;return Y},{mode:2});_.Px("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var SQ=function(){var Y=_.Z.apply(this,arguments)||this;Y.isCollapsible=!1;Y.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return Y};
_.m(SQ,_.Z);_.H=SQ.prototype;_.H.computeIsCollapsible=function(Y){return!!(((Y==null?0:Y.showMoreText)||(Y==null?0:Y.visibleRowCount))&&(Y==null?0:Y.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 Y=this;_.y4(this,"updateGridInitItems",function(){Y.maybeUpdateInitialItemsDisplayed()})};
_.H.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var Y=this.getVisibleWidth();Y!==0&&(Y=Math.floor(Y/214)*(this.data.visibleRowCount||2),Y!==this.initialCount&&(this.initialCount=Y,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.H.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.H.computeExpandVisible=function(Y,G,u,O){return Y&&G&&u&&!!O&&!!O.showMoreText};
_.H.computeShowMoreButton=function(Y){return{text:Y,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.H.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.H.initCollapsed=function(){var Y=this;this.ytLazyListBehavior.canShowMore=!1;var G;(this.collapsed=!((G=this.data)==null||!G.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.sk(this,function(){_.sK(Y.hostElement,"yt-refit-popups-action")})};
_.H.fillRestIfNotCollapsible=function(){var Y=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!Y||this.ytLazyListBehavior.fillRemainingListItems()};
_.H.computeViewAllHidden=function(Y,G){return Y||!G.viewAllEndpoint};
SQ.prototype.fillRestIfNotCollapsible=SQ.prototype.fillRestIfNotCollapsible;SQ.prototype.initCollapsed=SQ.prototype.initCollapsed;SQ.prototype.onIronResize=SQ.prototype.onIronResize;SQ.prototype.persistentGuideChanged=SQ.prototype.persistentGuideChanged;_.S([_.x(_.aZ),_.V("design:type",Object)],SQ.prototype,"ironResizableBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],SQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.jx.YtLazyListBehavior),_.V("design:type",Object)],SQ.prototype,"ytLazyListBehavior",void 0);_.S([_.x(_.hq.YtNextContinuationBehavior),_.V("design:type",Object)],SQ.prototype,"ytNextContinuationBehavior",void 0);_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],SQ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.S([_.x(_.DD),_.V("design:type",Object)],SQ.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],SQ.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],SQ.prototype,"collapsed",void 0);_.S([_.R(),_.V("design:type",Number)],SQ.prototype,"initialCount",void 0);_.S([_.R({computed:"computeShowMoreButton(data.showMoreText)"}),_.V("design:type",Object)],SQ.prototype,"showMoreButton",void 0);
_.S([_.R({computed:"computeIsCollapsible(data)"}),_.V("design:type",Object)],SQ.prototype,"isCollapsible",void 0);_.S([_.Ox("#items"),_.V("design:type",HTMLElement)],SQ.prototype,"items",void 0);_.S([_.Ex("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SQ.prototype,"persistentGuideChanged",null);_.S([_.Yo("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SQ.prototype,"onIronResize",null);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SQ.prototype,"initCollapsed",null);_.S([_.Ex("canShowMore"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SQ.prototype,"fillRestIfNotCollapsible",null);_.S([_.pD({is:"ytd-grid-renderer",disableElementRegistration:!0})],SQ);
_.d(SQ,"ytd-grid-renderer",function(){if(l6X!==void 0)return l6X;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return l6X=Y},{mode:2});var Nh=function(){return _.Z.apply(this,arguments)||this};
_.m(Nh,_.Z);
Nh.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"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Nh.prototype,"data",void 0);_.S([_.pD({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Nh);
_.d(Nh,"ytd-carousel-ad-renderer",function(){if(bYR!==void 0)return bYR;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return bYR=Y},{mode:1});var Qa_;var jQ=function(){return _.Z.apply(this,arguments)||this};
_.m(jQ,_.Z);_.H=jQ.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,jQ.JSC$15854_CLICK_LOCATION_ID_MAP))};
_.H.onSitelinkTap=function(Y){Y.stopPropagation();var G,u,O=Y==null?void 0:(G=Y.model)==null?void 0:(u=G.item)==null?void 0:u.onTap;O&&this.ytSparklesClickLocationBehavior.handleClick(O,Y,!1)};
_.H.onTap=function(Y){var G=this.data&&this.data.content&&this.data.content.navigationEndpoint;G&&this.ytSparklesClickLocationBehavior.handleClick(G,Y,!1)};
_.H.sendImpression=function(){if(this.data&&this.data.content)for(var Y=_.E(this.data.content.impressionEndpoints||[]),G=Y.next();!G.done;G=Y.next()){G=_.E(G.value.loggingUrls||[]);for(var u=G.next();!u.done;u=G.next())u=u.value,u.baseUrl&&VH(u.baseUrl,u.attributionSrcMode)}};
jQ.prototype.onTap=jQ.prototype.onTap;jQ.prototype.dataChanged=jQ.prototype.dataChanged;jQ.JSC$15854_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"]]);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],jQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.Ne.YtSparklesClickLocationBehavior),_.V("design:type",Object)],jQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],jQ.prototype,"data",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jQ.prototype,"dataChanged",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],jQ.prototype,"onTap",null);_.S([_.pD({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],jQ);
_.d(jQ,"ytd-promoted-sparkles-text-search-renderer",function(){if(Qa_!==void 0)return Qa_;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Qa_=Y},{mode:1});var MH1;var V0=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-mute-ad-action":"handleMuteAd"};return Y};
_.m(V0,_.Z);_.H=V0.prototype;_.H.created=function(){this.activeView=new qe(this.hostElement)};
_.H.configureRendererStamper=function(){return{"data.menu":{id:_.F("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(Y){return!(Y==null||!Y.adBadge)};
_.H.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",V0.JSC$15863_DEFAULT_AD_BADGE_RENDERER),_.$3(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&so(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,V0.JSC$15863_CLICK_LOCATION_ID_MAP))};
_.H.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var Y;(((Y=this.data)==null?void 0:Y.impressionCommands)||[]).forEach(function(G){G=_.E(G.loggingUrls||[]);for(var u=G.next();!u.done;u=G.next())u=u.value,u.baseUrl&&VH(u.baseUrl,u.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.H.onTap=function(Y){var G,u=(G=this.data)==null?void 0:G.navigationEndpoint,O;(G=(O=this.data)==null?void 0:O.thumbnailNavigationEndpoint)&&_.dE(_.wG(Y),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(G,Y,!1):u&&this.ytSparklesClickLocationBehavior.handleClick(u,Y,!1)};
_.H.handleMuteAd=function(){this.collapsed=!0};
_.H.attached=function(){var Y=this;_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&cf(Y.activeView)})};
_.H.detached=function(){_.F("stop_av_measurement_on_detach")&&cf(this.activeView)};
_.Uk.Object.defineProperties(V0.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var Y;return!(((Y=this.data)==null?void 0:Y.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var Y;return!(((Y=this.data)==null?void 0:Y.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.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}}});
V0.prototype.dataChanged=V0.prototype.dataChanged;
V0.JSC$15863_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"]]);
V0.JSC$15863_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Q6("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],V0.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],V0.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],V0.prototype,"actionHandlerBehavior",void 0);
_.S([_.x(_.Ne.YtSparklesClickLocationBehavior),_.V("design:type",Object)],V0.prototype,"ytSparklesClickLocationBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],V0.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],V0.prototype,"collapsed",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],V0.prototype,"useBiggerThumbs",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.Yg("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],V0.prototype,"biggerThumbsStyle",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.V("design:type",Boolean)],V0.prototype,"fixAlignmentSmallScreens",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs_square")}}),
_.V("design:type",Boolean)],V0.prototype,"useBiggerThumbsSquare",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data.mediaHoverOverlay"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],V0.prototype,"hideHoverOverlay",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.promotedSparklesWebStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],V0.prototype,"webSearchLayout",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],V0.prototype,"webSearchLayoutLandscape",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],V0.prototype,"webSearchLayoutSquare",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data.promotedSparklesWebStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],V0.prototype,"sparklesCtaNoBackground",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.actionButton"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],V0.prototype,"hideActionButton",null);_.S([_.R({computed:"computeButtonOverride(uiUpdate)"}),_.V("design:type",Object)],V0.prototype,"buttonOverride",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.V("design:type",Boolean)],V0.prototype,"hasNewAdBadge",void 0);_.S([_.f("data.promotedSparklesWebStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],V0.prototype,"useRoundedBadge",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],V0.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],V0);
_.d(V0,"ytd-promoted-sparkles-web-renderer",function(){if(MH1!==void 0)return MH1;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return MH1=Y},{mode:1});var HP2;var lL=function(){var Y=_.Z.apply(this,arguments)||this;Y.isInlinePreviewTriggered=!1;Y.enableMonoStyle=_.F("enable_default_mono_cta_migration_web_client");return Y};
_.m(lL,_.Z);_.H=lL.prototype;_.H.created=function(){this.activeView=new qe(this.hostElement)};
_.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(Y){return!(Y==null||!Y.ctaRenderer)};
_.H.onCtaClick=function(){var Y,G,u,O=(Y=this.data)==null?void 0:(G=Y.ctaRenderer)==null?void 0:(u=G.buttonRenderer)==null?void 0:u.command;O&&this.ytComponentBehavior.resolveCommand(O)};
_.H.onWatchButtonClick=function(){var Y,G,u,O=(Y=this.data)==null?void 0:(G=Y.watchButtonRenderer)==null?void 0:(u=G.buttonRenderer)==null?void 0:u.command;O&&this.ytComponentBehavior.resolveCommand(O)};
_.H.onTap=function(){};
_.H.dataChanged=function(){if(this.data){var Y;_.F("enable_inline_muted_playback_on_web_search")&&((Y=this.data)==null?0:Y.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",lL.JSC$15867_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&so(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",lL.JSC$15867_DEFAULT_CLICK_LOCATION_BEHAVIOR,lL.JSC$15867_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(Y=this.thumbnail.getElementsByTagName("a"),Y.length>0&&(Y=Y.namedItem("thumbnail"))&&Y.removeAttribute("href"));var G;if(((G=this.data)==null?0:G.forceImpAutoplay)&&_.F("enable_force_imp_autoplay_on_desktop_search")){var u;(u=this.JSC$15868_inlinePreviewHoverListener)==null||hyY(u)}}};
_.H.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var Y=_.E(this.data.impressionUrls),G=Y.next();!G.done;G=Y.next())G=G.value,m4u(G,rRY(G));this.data.impressionsFired=!0}};
_.H.maybeComputeHref=function(){return null};
_.H.computeIsShortDR=function(Y){return!(Y==null||!Y.watchButtonRenderer)&&!(Y==null||!Y.ctaRenderer)&&!!this.enableShortDR};
_.H.computeIsNewUiOrShortDr=function(Y){return!!this.enableUiUpdate||this.computeIsShortDR(Y)};
_.H.computeIsNewUiAndNotShortDr=function(Y){return!!this.enableUiUpdate&&!this.computeIsShortDR(Y)};
_.H.computeHideAvatar=function(Y){return!((Y==null?0:Y.channelThumbnail)&&this.computeIsNewUiOrShortDr(Y))};
_.H.onClick=function(Y){var G,u=(G=this.data)==null?void 0:G.navigationEndpoint;if(this.enableShortDR&&u&&(_.z(u,_.ic)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(u,Y,!!_.z(u,_.ic)),Y.stopPropagation();else if(u&&_.z(u,_.ic))this.ytSparklesClickLocationBehavior.handleClick(u,Y,!0),Y.stopPropagation();else if(u){var O,Q;((O=this.data)==null?0:O.navigationEndpoint)&&((Q=this.data)==null?0:Q.adPlaybackContextParams)&&(G=this.data.navigationEndpoint,Y=this.data.adPlaybackContextParams,
G.commandMetadata&&_.z(G.commandMetadata,_.ug)&&_.z(G.commandMetadata,_.ug).url&&(G=_.li(_.z(G.commandMetadata,_.ug).url).adurl)&&_.xuj(G)&&_.hv(_.$x(G),{encoded_ad_playback_context:Y}));this.ytComponentBehavior.resolveCommand(u)}};
_.H.computeButtonOverride=function(Y){if(this.computeIsNewUiOrShortDr(Y))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(Y){this.onClick(Y)};
_.H.computeThumbnailWidth=function(Y,G){return Y?G==="MASSIVE"?600:G==="BIG"?500:G==="MEDIUM"?450:420:360};
_.H.attached=function(){var Y=this,G;_.F("enable_inline_muted_playback_on_web_search")&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&cf(Y.activeView)})};
_.H.detached=function(){var Y;_.F("enable_inline_muted_playback_on_web_search")&&((Y=this.data)==null?0:Y.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.F("stop_av_measurement_on_detach")&&cf(this.activeView)};
_.H.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15868_inlinePreviewHoverListener=rw({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:Frl})};
_.H.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$15868_inlinePreviewHoverListener)==null||VN(Y)};
lL.prototype.dataChanged=lL.prototype.dataChanged;lL.prototype.onTap=lL.prototype.onTap;lL.JSC$15867_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Q6("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};lL.JSC$15867_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
lL.JSC$15867_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"}];_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],lL.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],lL.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],lL.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.Ne.YtSparklesClickLocationBehavior),_.V("design:type",Object)],lL.prototype,"ytSparklesClickLocationBehavior",void 0);_.S([_.Ox("#main-container"),_.V("design:type",HTMLElement)],lL.prototype,"mainContainer",void 0);
_.S([_.R(),_.V("design:type",Object)],lL.prototype,"isInlinePreviewTriggered",void 0);_.S([_.R(),_.V("design:type",Object)],lL.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],lL.prototype,"useBiggerThumbs",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("enable_video_display_compact_button_group_for_desktop_search")}}),
_.V("design:type",Boolean)],lL.prototype,"enableShortDR",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("enable_vac_ui_update_for_desktop_search")}}),
_.V("design:type",Boolean)],lL.prototype,"enableUiUpdate",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.Yg("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],lL.prototype,"biggerThumbsStyle",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.V("design:type",Boolean)],lL.prototype,"showCta",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.V("design:type",Boolean)],lL.prototype,"isShortDr",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.V("design:type",Boolean)],lL.prototype,"isShortDrOrNewUi",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.V("design:type",Boolean)],lL.prototype,"isNewUiAndNotShortDr",void 0);_.S([_.R({computed:"computeButtonOverride(data)"}),_.V("design:type",Object)],lL.prototype,"buttonOverride",void 0);_.S([_.R({computed:"computeSecondaryButtonOverride(data)"}),_.V("design:type",Object)],lL.prototype,"secondaryButtonOverride",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],lL.prototype,"enableMonoStyle",void 0);
_.S([_.Ox("ytd-thumbnail"),_.V("design:type",HTMLElement)],lL.prototype,"thumbnail",void 0);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lL.prototype,"onTap",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lL.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],lL);
_.d(lL,"ytd-promoted-video-renderer",function(){if(HP2!==void 0)return HP2;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return HP2=Y},{mode:1});var EW1;var Bd=function(){var Y=_.Z.apply(this,arguments)||this;Y.useRoundedBadge=!0;Y.sitelinkIds=[];return Y};
_.m(Bd,_.Z);_.H=Bd.prototype;
_.H.configureRendererStamper=function(){return{"data.menu":{id:_.F("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 Y;(Y=this.data)!=null&&Y.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Bd.JSC$15873_CLICK_LOCATION_ID_MAP)};
_.H.onTap=function(Y){var G,u=(G=this.data)==null?void 0:G.navigationCommand;u&&!_.dE(_.wG(Y),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(u,Y,!1)};
_.H.onSitelinkTap=function(Y){var G,u,O=Y==null?void 0:(G=Y.model)==null?void 0:(u=G.item)==null?void 0:u.onTap;O&&this.ytSparklesClickLocationBehavior.handleClick(O,Y,!1)};
_.H.configureSitelinkClickTargets=function(){var Y=this,G,u,O=(G=this.data)==null?void 0:(u=G.clickLocationTargets)==null?void 0:u.find(function(Q){return Q.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
O&&_.l0(this.hostElement).querySelectorAll(".sitelink").forEach(function(Q){_.$3(Q,"yt-simple-endpoint",!0);Y.sitelinkIds.push(Q.id);var M,t;(M=Y.ytSparklesClickLocationBehavior)==null||(t=M.clickTargetMap)==null||t.set(Q.id,O)})};
_.H.sendImpression=function(){var Y,G,u=((Y=this.data)==null?void 0:(G=Y.impressionCommand)==null?void 0:G.loggingUrls)||[];Y=_.E(u);for(G=Y.next();!G.done;G=Y.next())G=G.value,G.baseUrl&&VH(G.baseUrl,G.attributionSrcMode)};
_.H.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Uk.Object.defineProperties(Bd.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Bd.prototype.onTap=Bd.prototype.onTap;Bd.prototype.dataChanged=Bd.prototype.dataChanged;Bd.JSC$15873_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"]]);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Bd.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.Ne.YtSparklesClickLocationBehavior),_.V("design:type",Object)],Bd.prototype,"ytSparklesClickLocationBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Bd.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Bd.prototype,"showFavicon",null);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],Bd.prototype,"useBiggerThumbs",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.Yg("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],Bd.prototype,"biggerThumbsStyle",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.V("design:type",Boolean)],Bd.prototype,"enableThumbnailScalingFix",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Bd.prototype,"dataChanged",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Bd.prototype,"onTap",null);_.S([_.pD({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Bd);
_.d(Bd,"ytd-text-image-no-button-layout-renderer",function(){if(EW1!==void 0)return EW1;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return EW1=Y},{mode:2});var tHe;var $B=function(){var Y=_.Z.apply(this,arguments)||this;Y.isInlinePlaybackState=!1;Y.uiUpdate=_.F("web_modern_buttons");Y.noBottomMargin=!1;Y.isHovered=!1;Y.enableMonoStyle=_.F("enable_default_mono_cta_migration_web_client");Y.player=null;Y.JSC$15880_playerEvents=new Map;Y.JSC$15880_preventProgressSaveTimer=null;Y.delayedCtaJobId=null;return Y};
_.m($B,_.Z);_.H=$B.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$15880_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);_.F("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.H.detached=function(){this.resetPreventProgressSaveTimer()};
_.H.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",$B.JSC$15879_DEFAULT_CLICK_LOCATION_BEHAVIOR,$B.JSC$15879_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&this.setPlayer())};
_.H.hoverChanged=function(){var Y=this;this.delayedCtaJobId&&(_.AN.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.F("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.Ti(_.AN,function(){Y.buttonContainer.classList.add("show-delayed-buttons")},_.Jy("delayed_cta_on_web_delay_milliseconds")))};
_.H.setPlayer=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1)return(G=_.sK(Y.hostElement,"yt-get-inline-preview-player-action"))&&G[0]?u.yield(G[0].getPlayerPromise(),3):u.jumpTo(0);Y.player=u.yieldResult;Y.ytPlayerListenerBehavior.listenToPlayerEvents(Y.player,Y.JSC$15880_playerEvents);_.Sd(u)})};
_.H.onPlaybackStart=function(){var Y=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15880_preventProgressSaveTimer=_.jk(_.AN,function(){Y.JSC$15880_preventProgressSaveTimer=null},1E4))};
_.H.resetPreventProgressSaveTimer=function(){_.AN.cancelJob(this.JSC$15880_preventProgressSaveTimer);this.JSC$15880_preventProgressSaveTimer=null};
_.H.getSimpleString=function(Y){return _.Ri(Y)};
_.H.onClick=function(Y){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var G,u=(G=this.data)==null?void 0:G.navigationEndpoint,O;G=(O=this.data)==null?void 0:O.channelEndpoint;var Q,M;((M=_.z((Q=this.data)==null?void 0:Q.adCtaButton,_.ru))==null?0:M.command)&&_.dE(_.wG(Y),this.hostElement,["call-to-action"])||(G&&_.dE(_.wG(Y),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(G,Y,!1):!_.dE(_.wG(Y),this.hostElement,
["secondary-button"])&&u&&(_.F("enable_short_dr_for_desktop_launchable")?(O=!!_.z(u,_.ic),this.isInlinePlaybackState&&O&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(u,Y,O)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(u,Y,!0))))}};
_.H.updateWatchEndpointStartTime=function(){var Y,G;this.player&&((Y=this.data)==null?0:Y.inlinePlaybackEndpoint)&&((G=this.data)==null?0:G.navigationEndpoint)&&!this.JSC$15880_preventProgressSaveTimer&&(Y=Math.floor(this.player.getCurrentTime()),_.z(this.data.navigationEndpoint,_.ic).startTimeSeconds=Y,_.z(this.data.inlinePlaybackEndpoint,_.ic).startTimeSeconds=Y)};
_.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"}};
_.Uk.Object.defineProperties($B.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.F("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!((Y=this.data)==null||!Y.watchButton)&&!((G=this.data)==null||!G.adCtaButton)}}});
$B.prototype.hoverChanged=$B.prototype.hoverChanged;$B.prototype.dataChanged=$B.prototype.dataChanged;
$B.JSC$15879_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"]]);
$B.JSC$15879_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"}];
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],$B.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],$B.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.Ne.YtSparklesClickLocationBehavior),_.V("design:type",Object)],$B.prototype,"ytSparklesClickLocationBehavior",void 0);
_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",_.wW)],$B.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],$B.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],$B.prototype,"isInlinePlaybackState",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],$B.prototype,"miniMode",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],$B.prototype,"uiUpdate",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],$B.prototype,"noBottomMargin",void 0);_.S([_.R({computed:"computeButtonOverride(uiUpdate)"}),_.V("design:type",Object)],$B.prototype,"buttonOverride",void 0);_.S([_.R({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.V("design:type",Object)],$B.prototype,"secondaryButtonOverride",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],$B.prototype,"isHovered",void 0);
_.S([_.Ox("#button-container"),_.V("design:type",HTMLElement)],$B.prototype,"buttonContainer",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],$B.prototype,"typographyBump",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("typographyBump"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$B.prototype,"typographyBumpV2",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],$B.prototype,"enableMonoStyle",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$B.prototype,"dataChanged",null);_.S([_.GO("isHovered"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$B.prototype,"hoverChanged",null);_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$B.prototype,"isButtonGroup",null);_.S([_.pD({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],$B);
_.d($B,"ytd-ad-inline-playback-meta-block",function(){if(tHe!==void 0)return tHe;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return tHe=Y},{mode:2});var KQk;var qh=function(){var Y=_.Z.apply(this,arguments)||this;Y.noBottomMargin=!1;Y.isInlinePreviewTriggered=!1;Y.JSC$15885_activeViewMeasurementDataResolver=_.RS();return Y};
_.m(qh,_.Z);_.H=qh.prototype;_.H.created=function(){this.activeView=new qe(this.hostElement)};
_.H.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.H.attached=function(){var Y=this;this.updateInlinePreviewHoverListeners();this.JSC$15885_activeViewMeasurementDataResolver.promise.then(function(G){so(Y.activeView,G)});
_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&cf(Y.activeView)})};
_.H.detached=function(){this.clearInlinePreviewHoverListeners();_.F("stop_av_measurement_on_detach")&&cf(this.activeView)};
_.H.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15885_inlinePreviewHoverListener=rw({mediaRenderer:this,lockupElement:this.JSC$15885_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Frl})};
_.H.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$15885_inlinePreviewHoverListener)==null||VN(Y)};
_.H.onDataChanged=function(){var Y;((Y=this.data)==null?0:Y.activeView)&&this.JSC$15885_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",qh.JSC$15884_DEFAULT_CLICK_LOCATION_BEHAVIOR,qh.JSC$15884_CLICK_LOCATION_ID_MAP);this.thumbnail&&(Y=this.thumbnail.getElementsByTagName("a"),Y.length>0&&(Y=Y.namedItem("thumbnail"))&&Y.removeAttribute("href"));var G;if((G=this.data)==
null?0:G.forceImpAutoplay){var u;(u=this.JSC$15885_inlinePreviewHoverListener)==null||hyY(u)}};
_.H.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.H.onThumbnailContainerClick=function(Y){if(this.data&&this.data.navigationEndpoint){var G,u=(G=this.data)==null?void 0:G.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(u,Y,!!_.z(u,_.ic));Y.stopPropagation()}};
_.H.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.H.impressionLog=function(){var Y=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var G,u,O=(u=_.z((G=this.data)==null?void 0:G.onImpression,_.Jv))==null?void 0:u.commands;O&&(O.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;Y.ytComponentBehavior.resolveCommand(Q)}),this.data.impressionsFired=!0)}};
_.Uk.Object.defineProperties(qh.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$15885_inlinePreviewHoverListener)==null?0:Cr(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
qh.prototype.onTypographyBumpChanged=qh.prototype.onTypographyBumpChanged;qh.prototype.onDataChanged=qh.prototype.onDataChanged;qh.JSC$15884_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);qh.JSC$15884_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"}];
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],qh.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],qh.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],qh.prototype,"ytdLockupBehavior",void 0);
_.S([_.x(_.me),_.V("design:type",Object)],qh.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.Ne.YtSparklesClickLocationBehavior),_.V("design:type",Object)],qh.prototype,"ytSparklesClickLocationBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],qh.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],qh.prototype,"noBottomMargin",void 0);_.S([_.R(),_.V("design:type",Object)],qh.prototype,"isInlinePreviewTriggered",void 0);
_.S([_.R({reflectToAttribute:!0,selector:_.kG}),_.V("design:type",Boolean)],qh.prototype,"miniMode",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],qh.prototype,"typographyBump",void 0);_.S([_.Ox("ytd-thumbnail"),_.V("design:type",HTMLElement)],qh.prototype,"thumbnail",void 0);_.S([_.Ox("#dismissible"),_.V("design:type",HTMLElement)],qh.prototype,"JSC$15885_dismissibleMedia",void 0);
_.S([_.Ox("ytd-ad-inline-playback-meta-block"),_.V("design:type",HTMLElement)],qh.prototype,"adInlinePlaybackMetaBlock",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qh.prototype,"onDataChanged",null);_.S([_.Ex("typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qh.prototype,"onTypographyBumpChanged",null);
_.S([_.f("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],qh.prototype,"isHovered",null);_.S([_.pD({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],qh);
_.d(qh,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(KQk!==void 0)return KQk;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return KQk=Y},{mode:1});var aPU;var su=function(){var Y=_.Z.apply(this,arguments)||this;Y.isInlinePreviewTriggered=!1;Y.JSC$15888_activeViewMeasurementDataResolver=_.RS();return Y};
_.m(su,_.Z);_.H=su.prototype;_.H.created=function(){this.activeView=new qe(this.hostElement)};
_.H.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.H.attached=function(){var Y=this;this.updateInlinePreviewHoverListeners();this.JSC$15888_activeViewMeasurementDataResolver.promise.then(function(G){so(Y.activeView,G)})};
_.H.detached=function(){this.clearInlinePreviewHoverListeners()};
_.H.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15888_inlinePreviewHoverListener=rw({mediaRenderer:this,lockupElement:this.JSC$15888_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Frl})};
_.H.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$15888_inlinePreviewHoverListener)==null||VN(Y)};
_.H.onDataChanged=function(){var Y;((Y=this.data)==null?0:Y.activeView)&&this.JSC$15888_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",su.JSC$15887_DEFAULT_CLICK_LOCATION_BEHAVIOR,su.JSC$15887_CLICK_LOCATION_ID_MAP);this.thumbnail&&(Y=this.thumbnail.getElementsByTagName("a"),Y.length>0&&(Y=Y.namedItem("thumbnail"))&&Y.removeAttribute("href"))};
_.H.onThumbnailContainerClick=function(Y){if(this.data&&this.data.navigationEndpoint){var G,u=(G=this.data)==null?void 0:G.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(u,Y,!0);Y.stopPropagation()}};
_.H.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.H.impressionLog=function(){var Y=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var G,u,O=(u=_.z((G=this.data)==null?void 0:G.onImpression,_.Jv))==null?void 0:u.commands;O&&(O.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;_.sH().resolve(_.rH).resolveCommand(Q,{form:{element:Y.hostElement}})}),this.data.impressionsFired=!0)}};
_.Uk.Object.defineProperties(su.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$15888_inlinePreviewHoverListener)==null?0:Cr(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
su.prototype.onDataChanged=su.prototype.onDataChanged;su.JSC$15887_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);su.JSC$15887_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"}];_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],su.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],su.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],su.prototype,"ytdLockupBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],su.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.Ne.YtSparklesClickLocationBehavior),_.V("design:type",Object)],su.prototype,"ytSparklesClickLocationBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],su.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],su.prototype,"isInlinePreviewTriggered",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.kG}),_.V("design:type",Boolean)],su.prototype,"miniMode",void 0);_.S([_.Ox("ytd-thumbnail"),_.V("design:type",HTMLElement)],su.prototype,"thumbnail",void 0);_.S([_.Ox("#dismissible"),_.V("design:type",HTMLElement)],su.prototype,"JSC$15888_dismissibleMedia",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],su.prototype,"onDataChanged",null);_.S([_.f("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],su.prototype,"isHovered",null);_.S([_.pD({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],su);
_.d(su,"ytd-video-display-full-buttoned-renderer",function(){if(aPU!==void 0)return aPU;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return aPU=Y},{mode:1});var j0=function(Y,G,u,O){O=O===void 0?!1:O;_.Ya.call(this,Y);this.adsClientErrorMessage=u;this.aggressivelySample=O;this.args=[];G&&this.args.push(G)};
_.m(j0,_.Ya);var S0=function(Y,G,u,O){O=O===void 0?!1:O;_.Ya.call(this,Y);this.adsClientErrorMessage=u;this.aggressivelySample=O;this.args=[];G&&this.args.push(G)};
_.m(S0,_.Ya);var TZI=function(Y){_.Ey.call(this);var G=this;this.initializationFunction=Y;this.instance=null;this.addOnDisposeCallback(function(){_.ZM(G.instance);G.instance=null})};
_.m(TZI,_.Ey);TZI.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.i5("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var vEt=function(){var Y=new Map;[].forEach(function(G){Y.set(G.JSC$31622_getType(),G)});
this.getters=Y};new Promise(function(){});var $Dt=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"]]),l81=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"}]]),LQk=function(Y){this.experimentApiProvider=Y;Y=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=Y<.1};var cd=function(Y,G,u,O){_.Ey.call(this);this.adsControlFlowEventListeners=G;this.adEventLogger=u;this.experimentApiProvider=O;this.adsControlFlowManagerHelper=Y(this,this,this,this,this);_.vF(this,this.adsControlFlowManagerHelper);Y=_.E(G);for(G=Y.next();!G.done;G=Y.next())_.vF(this,G.value)};
_.m(cd,_.Ey);var gWT=function(Y,G,u,O){Uu(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",G,u,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,O);Y=_.E(Y.adsControlFlowEventListeners);for(O=Y.next();!O.done;O=Y.next())gWT(O.value,G,u)};
_.H=cd.prototype;_.H.onOpportunityProcessedExternallyManaged=function(Y,G,u,O){Uu(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",Y,u,G,void 0,void 0,void 0,void 0,void 0,void 0,void 0,O)};
_.H.onSlotReceivedExternallyManaged=function(Y,G){vd(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",Y,G)};
_.H.onSlotEntered=function(Y){if(Jq(this.adsControlFlowManagerHelper,Y)!=null){vd(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",Y);this.adsControlFlowManagerHelper.onSlotEntered(Y);for(var G=_.E(this.adsControlFlowEventListeners),u=G.next();!u.done;u=G.next())u.value.onSlotEntered(Y);if(Jq(this.adsControlFlowManagerHelper,Y)!=null&&Jq(this.adsControlFlowManagerHelper,Y).isOccupyingSlotType()&&YQ(this.adsControlFlowManagerHelper,Y)&&!XtR(this.adsControlFlowManagerHelper,Y)){var O;GT(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",Y,(O=YQ(this.adsControlFlowManagerHelper,Y))!=null?O:void 0);Y=Jq(this.adsControlFlowManagerHelper,Y);Y.slotLifecycleStage!=="entered"&&uY(Y.slot,Y.slotLifecycleStage,"enterLayoutForSlot");Y.slotLifecycleStage="rendering";Y.registeredLayoutRenderingAdapter.startRendering(Y.layout)}}};
_.H.onSlotExited=function(Y){if(Jq(this.adsControlFlowManagerHelper,Y)!=null){vd(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",Y);this.adsControlFlowManagerHelper.onSlotExited(Y);for(var G=_.E(this.adsControlFlowEventListeners),u=G.next();!u.done;u=G.next())u.value.onSlotExited(Y);Jq(this.adsControlFlowManagerHelper,Y)!=null&&Jq(this.adsControlFlowManagerHelper,Y).markedForUnscheduleAfterOutboundAdapterRequests&&PWV(this,Y)}};
_.H.onLayoutReceivedExternallyManaged=function(Y,G,u){Y.managerLayer!=="core"&&GT(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",Y,G,u)};
var IPk=function(Y,G,u){if(Jq(Y.adsControlFlowManagerHelper,G)!=null){GT(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",G,u);Y=_.E(Y.adsControlFlowEventListeners);for(var O=Y.next();!O.done;O=Y.next())IPk(O.value,G,u)}};
cd.prototype.onLayoutExited=function(Y,G,u){if(Jq(this.adsControlFlowManagerHelper,Y)!=null){GT(this.adEventLogger,BIj(u),Y,G);this.adsControlFlowManagerHelper.onLayoutExited(Y,G);for(var O=_.E(this.adsControlFlowEventListeners),Q=O.next();!Q.done;Q=O.next())Q.value.onLayoutExited(Y,G,u);(u=YQ(this.adsControlFlowManagerHelper,Y))&&G.layoutId===u.layoutId&&k64(this,Y)}};
cd.prototype.disposeInternal=function(){var Y=nWk(this.adsControlFlowManagerHelper);Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next())PWV(this,G.value);_.Ey.prototype.disposeInternal.call(this)};
var PWV=function(Y,G){if(Jq(Y.adsControlFlowManagerHelper,G)!=null)if(Jq(Y.adsControlFlowManagerHelper,G).JSC$31652_isSlotExitRequested()||Jq(Y.adsControlFlowManagerHelper,G).JSC$31652_isLayoutExitRequested())Jq(Y.adsControlFlowManagerHelper,G).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(Jq(Y.adsControlFlowManagerHelper,G).isOccupyingSlotType())Jq(Y.adsControlFlowManagerHelper,G).markedForUnscheduleAfterOutboundAdapterRequests=!0,k64(Y,G);else if(Jq(Y.adsControlFlowManagerHelper,G).JSC$31652_isSlotFillRequested())Jq(Y.adsControlFlowManagerHelper,
G).markedForUnscheduleAfterOutboundAdapterRequests=!0,Jq(Y.adsControlFlowManagerHelper,G)!=null&&(vd(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",G),G=Jq(Y.adsControlFlowManagerHelper,G),G.fulfillmentLifecycleStage="fill_cancel_requested",G.registeredFulfillmentAdapter.cancelSlotFilling());else{var u=YQ(Y.adsControlFlowManagerHelper,G),O;Y.experimentApiProvider.get();(O=_.F("h5_enable_layout_unscheduling_events"))&&(u?FQ2(Y,G,u):_.i5(Error("Mh"),G,u,void 0,!1));vd(Y.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",G);var Q=Jq(Y.adsControlFlowManagerHelper,G),M=G.slotEntryTrigger,t=Q.registeredSlotEntryTriggerAdapters.get(M.triggerId);t&&(t.unregisterTrigger(M),Q.registeredSlotEntryTriggerAdapters.delete(M.triggerId));M=_.E(G.slotFulfillmentTriggers);for(t=M.next();!t.done;t=M.next()){t=t.value;var K=Q.registeredFulfillmentTriggerAdapters.get(t.triggerId);K&&(K.unregisterTrigger(t),Q.registeredFulfillmentTriggerAdapters.delete(t.triggerId))}M=_.E(G.slotExpirationTriggers);
for(t=M.next();!t.done;t=M.next())if(t=t.value,K=Q.registeredExpirationTriggerAdapters.get(t.triggerId))K.unregisterTrigger(t),Q.registeredExpirationTriggerAdapters.delete(t.triggerId);Q.hasLayout()&&(M=Q.layout,Oi(Q,M.layoutExitNormalTriggers),Oi(Q,M.layoutExitSkipTriggers),Oi(Q,M.layoutExitMuteTriggers),Oi(Q,M.layoutExitUserInputSubmittedTriggers),Oi(Q,M.layoutExitUserCancelledTriggers));Q.registeredFulfillmentAdapter=void 0;Q.registeredSlotAdapter!=null&&(Q.registeredSlotAdapter.release(),Q.registeredSlotAdapter=
void 0);Q.registeredLayoutRenderingAdapter!=null&&(Q.registeredLayoutRenderingAdapter.release(),Q.registeredLayoutRenderingAdapter=void 0);Q=Y.adsControlFlowManagerHelper;Jq(Q,G)&&(Q=ptk(Q,G.slotType+"_"+G.slotPhysicalPosition))&&Q.delete(G.slotId);vd(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",G);Y=_.E(Y.adsControlFlowEventListeners);for(Q=Y.next();!Q.done;Q=Y.next())Q=Q.value,Q.onSlotUnscheduled(G),u&&!O&&FQ2(Q,G,u)}},FQ2=function(Y,G,u){GT(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
G,u);
GT(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",G,u);Y=_.E(Y.adsControlFlowEventListeners);for(var O=Y.next();!O.done;O=Y.next())O=O.value,u&&FQ2(O,G,u)},k64=function(Y,G){if(Jq(Y.adsControlFlowManagerHelper,G)!=null&&Jq(Y.adsControlFlowManagerHelper,G).isOccupyingSlotType()){var u=YQ(Y.adsControlFlowManagerHelper,G);
if(u&&XtR(Y.adsControlFlowManagerHelper,G)){if(Jq(Y.adsControlFlowManagerHelper,G)!=null){var O=Y.adEventLogger,Q;var M=((Q=l81.get("abandoned"))==null?void 0:Q.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";GT(O,M,G,u);Y=Jq(Y.adsControlFlowManagerHelper,G);Y.slotLifecycleStage!=="rendering"&&uY(Y.slot,Y.slotLifecycleStage,"exitLayout");Y.slotLifecycleStage="rendering_stop_requested";Y.registeredLayoutRenderingAdapter.stopRendering(u,"abandoned")}}else{vd(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
G);try{O=Jq(Y.adsControlFlowManagerHelper,G);if(!O)throw new S0("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");O.slotLifecycleStage!=="enter_requested"&&O.slotLifecycleStage!=="entered"&&O.slotLifecycleStage!=="rendering"&&uY(O.slot,O.slotLifecycleStage,"exitSlot");O.slotLifecycleStage="exit_requested";if(O.registeredSlotAdapter===void 0)throw O.slotLifecycleStage="scheduled",new S0("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
O.registeredSlotAdapter.exit()}catch(t){t instanceof S0&&t.adsClientErrorMessage?(zq4(Y.adEventLogger,t.adsClientErrorMessage,G),_.i5(t,G,void 0,void 0,t.aggressivelySample)):(zq4(Y.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",G),_.i5(t,G))}}}};var Qz=function(Y,G,u,O,Q,M){_.Ey.call(this);this.registry=Y;this.experimentApiProvider=M;this.slotMap=new Map};
_.m(Qz,_.Ey);var ptk=function(Y,G){return(Y=Y.slotMap.get(G))?Y:new Map},Jq=function(Y,G){return ptk(Y,G.slotType+"_"+G.slotPhysicalPosition).get(G.slotId)},nWk=function(Y){var G=[];
Y.slotMap.forEach(function(u){u=_.E(u.values());for(var O=u.next();!O.done;O=u.next())G.push(O.value.slot)});
return G};
Qz.prototype.onSlotEntered=function(Y){Y=Jq(this,Y);Y.slotLifecycleStage!=="enter_requested"&&uY(Y.slot,Y.slotLifecycleStage,"onSlotEntered");Y.slotLifecycleStage="entered"};
var XtR=function(Y,G){Y=Jq(Y,G);return Y.hasLayout()&&Y.isRendering()},YQ=function(Y,G){(Y=Jq(Y,G))?Y.hasLayout()&&!Y.layout&&_.i5("Unexpected empty layout",G):_.i5("Unexpected undefined slotState",G);
return(Y==null?void 0:Y.layout)||null};
Qz.prototype.onSlotExited=function(Y){Y=Jq(this,Y);Y.slotLifecycleStage!=="exit_requested"&&uY(Y.slot,Y.slotLifecycleStage,"onSlotExited");Y.slotLifecycleStage="scheduled"};
Qz.prototype.onLayoutExited=function(Y,G){Y=Jq(this,Y);Y.isPrimaryLayout(G)&&(Y.slotLifecycleStage!=="rendering_stop_requested"&&uY(Y.slot,Y.slotLifecycleStage,"onLayoutExited"),Y.slotLifecycleStage="entered")};
var Oi=function(Y,G){G=_.E(G);for(var u=G.next();!u.done;u=G.next()){u=u.value;var O=Y.registeredLayoutExitTriggerAdapters.get(u.triggerId);O&&(O.unregisterTrigger(u),Y.registeredLayoutExitTriggerAdapters.delete(u.triggerId))}},uY=function(Y,G,u){_.i5("Slot stage was "+G+" when calling method "+u,Y)};var WQV=function(Y){_.Ey.call(this);this.deps=Y;this.JSC$15938_adsControlFlowManager=mqk(this)};
_.m(WQV,_.Ey);var mqk=function(Y){var G=new cd(function(u,O,Q,M){return new Qz(Y.deps.registry,u,O,Q,M,Y.deps.experimentApiProvider)},new Set(UDa(Y.deps.registry).concat(Y.deps.listeners)),Y.deps.adEventLogger,Y.deps.experimentApiProvider);
_.vF(Y,G);return G};var AWt=function(){};var rIV=function(Y,G){_.Ey.call(this);this.experimentApiProvider=Y;this.eventLoggingSettingsProvider=G;this.eventCount=0;this.premiumAdSeenEventLogger=oNj()()};
_.m(rIV,_.Ey);rIV.prototype.logEvent=function(Y){Uu(this,Y)};
var vd=function(Y,G,u,O){Uu(Y,G,void 0,void 0,void 0,u,void 0,void 0,void 0,u.adSlotLoggingData,void 0,void 0,O)},GT=function(Y,G,u,O,Q){Uu(Y,G,void 0,void 0,void 0,u,O?O:void 0,void 0,void 0,u.adSlotLoggingData,O?O.adLayoutLoggingData:void 0,void 0,Q);
u=_.sH().resolve(_.q3(rN))==null?void 0:x7();G=u==null?void 0:u.adsSeenHotConfig;u=u==null?void 0:u.adsHotConfig;(G==null?0:G.logOnAdsSeen)&&(u==null?0:u.webEnablePremiumAdsSeenLogging)&&xqU(Y,O?O:void 0,Q)},zq4=function(Y,G,u){Uu(Y,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,u,void 0,void 0,void 0,u.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:G})},Uu=function(Y,G,u,O,Q,M,t,K,L,g,P,I,k){k=k===void 0?0:k;
fPl(Y.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+G,"slot:",M,"layout:",t,"ping:",K,"Opportunity:",{opportunityType:u,associatedSlotId:O,slotsFromOpportunity:Q,triggerBundle:L,adSlotLoggingData:g,adLayoutLoggingData:P});try{var n=function(){Y.experimentApiProvider.get();if(G!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){G||_.i5("Empty PACF event type",M,t);var p=Y.eventLoggingSettingsProvider.get();var W;(W=p.alwaysIncludeDebugData)||(p.experimentApiProvider.get(),W=
!1);p=W;W={eventType:G,eventOrder:++Y.eventCount};var C={};M&&(C.slotData=sQA(p,M));if(t){var e={type:t.layoutType,controlFlowManagerLayer:$Dt.get(t.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};p&&(e.debugData={layoutId:t.layoutId});C.layoutData=e}K&&(C.pingData={pingDispatchStatus:K.dispatchStatus,serializedAdPingMetadata:K.ping.serializedAdPingMetadata,pingIndex:K.index});L&&(C.triggerData=qdU(L.trigger,L.category));u&&(C.opportunityData=ca1(p,u,O,Q));W.adClientData=C;g&&(W.serializedSlotAdServingData=
g.serializedSlotAdServingDataEntry);P&&(W.serializedAdServingData=P.serializedAdServingDataEntry);I&&(W.errorInfo=I);_.eK("adsClientStateChange",{adsClientEvent:W})}};
k&&k>0?_.WY(_.FO(),function(){return n()},k):n()}catch(p){fPl(Y.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.WY(_.FO(),function(){_.i5(p instanceof Error?p:String(p),M,t,{pacf_message:"exception during pacf logging"})})}},xqU=function(Y,G,u){if(G){var O=G.adLayoutLoggingData;
_.WY(_.FO(),function(){Y.premiumAdSeenEventLogger!=null&&O&&_.eK("adsSeenClientLogging",{serializedAdServingDataEntry:O.serializedAdServingDataEntry})},u!=null?u:0)}};var CWU=function(Y,G){rIV.call(this,Y,G)};
_.m(CWU,rIV);var yIR=function(){},fPl=function(Y,G){return _.F(G)};var AIl=function(){var Y=new eqV;this.JSC$15963_adsControlFlowManager=(new WQV(Y)).JSC$15938_adsControlFlowManager},eqV=function(){_.Ey.call(this);
var Y=this;this.experimentApiProvider=new TZI(function(){return new yIR});
var G=new TZI(function(){return new LQk(Y.experimentApiProvider)});
this.adEventLogger=new CWU(this.experimentApiProvider,G);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.m(eqV,_.Ey);var oWk=function(){},iPE,Mw=function(){iPE||(iPE=new oWk);
return iPE},HA=function(Y){if(!Y.JSC$15974_externallyManagedSlotAdapterCallback){var G=(new AIl).JSC$15963_adsControlFlowManager;
Y.JSC$15974_externallyManagedSlotAdapterCallback=G}return Y.JSC$15974_externallyManagedSlotAdapterCallback},Rqk=function(Y,G,u){var O=G.opportunityType,Q=Error("Nh");
if(O!==void 0){var M=HA(Y);gWT(M,O,void 0,u)}else _.i5(Q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});M=[];if(G.adSlotAndLayoutMetadata!==void 0){G=_.E(G.adSlotAndLayoutMetadata);for(var t=G.next();!t.done;t=G.next()){var K=t.value;if(t=K.adSlotMetadata)if(M.push(t),Y.onSlotReceivedExternallyManaged(t,u),K.adLayoutMetadata){K=_.E(K.adLayoutMetadata);for(var L=K.next();!L.done;L=K.next())Y.onLayoutReceivedExternallyManaged(t,L.value,u)}else u>0&&_.i5("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
O,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else u>0&&_.i5("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+O,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else u>0&&_.i5("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+O,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(O!==void 0)Y.onOpportunityProcessedExternallyManaged(O,M,void 0,u);else _.i5(Q,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
oWk.prototype.onSlotReceivedExternallyManaged=function(Y,G){Y=Nv(Y);if(Y instanceof S0)_.i5(Y,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else HA(this).onSlotReceivedExternallyManaged(Y,G)};
oWk.prototype.onLayoutReceivedExternallyManaged=function(Y,G,u){Y=Nv(Y);G=JaY(G);if(Y instanceof S0)_.i5(Y,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(G instanceof j0)_.i5(G,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else HA(this).onLayoutReceivedExternallyManaged(Y,G,u)};
oWk.prototype.onOpportunityProcessedExternallyManaged=function(Y,G,u,O){var Q=[];G=_.E(G);for(var M=G.next();!M.done;M=G.next())M=Nv(M.value),M instanceof S0?_.i5(M,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):Q.push(M);HA(this).onOpportunityProcessedExternallyManaged(Y,Q,u,O)};
var wt2=function(Y,G){G=Nv(G);if(G instanceof S0)_.i5(G,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var u=HA(Y);vd(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",G);u=_.E(u.adsControlFlowEventListeners);for(var O=u.next();!O.done;O=u.next())O=Jq(O.value,G),O.slotLifecycleStage!=="not_scheduled"&&uY(O.slot,O.slotLifecycleStage,"onSlotScheduled"),O.slotLifecycleStage="scheduled";Y=HA(Y);vd(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",G);Y=_.E(Y.adsControlFlowEventListeners);
for(u=Y.next();!u.done;u=Y.next())u.value.onSlotEntered(G)}},ZPI=function(Y,G){G=Nv(G);
if(G instanceof S0)_.i5(G,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var u=HA(Y);vd(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",G);u=_.E(u.adsControlFlowEventListeners);for(var O=u.next();!O.done;O=u.next())O.value.onSlotExited(G);Y=HA(Y);vd(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",G);Y=_.E(Y.adsControlFlowEventListeners);for(u=Y.next();!u.done;u=Y.next())u.value.onSlotUnscheduled(G)}},DqX=function(Y,G,u){G=Nv(G);
u=JaY(u);if(G instanceof S0)_.i5(G,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(u instanceof j0)_.i5(u,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var O=HA(Y);GT(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",G,u);O=_.E(O.adsControlFlowEventListeners);for(var Q=O.next();!Q.done;Q=O.next())Q.value.onLayoutScheduled(G,u);Y=HA(Y);GT(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",G,u);Y=_.E(Y.adsControlFlowEventListeners);
for(O=Y.next();!O.done;O=Y.next())IPk(O.value,G,u)}},Ei=function(Y,G,u){G=Nv(G);
u=JaY(u);if(G instanceof S0)_.i5(G,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(u instanceof j0)_.i5(u,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var O=HA(Y);GT(O.adEventLogger,BIj("normal"),G,u);O=_.E(O.adsControlFlowEventListeners);for(var Q=O.next();!Q.done;Q=O.next())Q.value.onLayoutExited(G,u,"normal");Y=HA(Y);Y=_.E(Y.adsControlFlowEventListeners);for(O=Y.next();!O.done;O=Y.next())FQ2(O.value,G,u)}};var hqe=_.D(function(Y){var G=Y.data,u=Y.listenToTapEvent,O=function(){};
return _.T("ad-button-hover-overlay-view-model",{"on:click":_.U3(function(Q){if(_.F("enable_web_home_top_landscape_image_layout_legacy_click_command")){var M,t=(M=G().interaction)==null?void 0:M.onTap;t&&_.$s(Q.currentTarget,"yt-navigate",{endpoint:_.FS(t)})}}),
class:function(){var Q;return((Q=G().interaction)==null?0:Q.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.iq(_.UV({visibilityCallback:function(Q){var M,t=(M=G().interaction)==null?void 0:M.onFirstVisible;Q&&t&&_.W3(t)},
showOption:_.B9}),_.fK(function(){return G().interaction},void 0,function(){return!_.F("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(u==null?void 0:u())}))},function(){return _.F("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.T(_.HE,{data:function(){return G().button}},{adButtonViewModel:function(Q){return _.T(_.sM,{data:Q.data,
customCommandResolver:O})}}):_.T(_.HE,{data:function(){return G().button}},{adButtonViewModel:_.sM})}())},"wc");var VY;_.hR(_.D(function(Y){var G=Y.data;Y=_.UV({visibilityCallback:function(K,L){if(K){var g;(K=(g=G().interaction)==null?void 0:g.onFirstVisible)&&_.W3(K);var P;if(g=(P=G().adLayoutData)==null?void 0:P.activeViewData)l5(L,g),_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&BE(L)})}else _.F("stop_av_measurement_on_detach")&&BE(L)},
showOption:_.B9,hideOption:$8});var u=_.fK(function(){return G().interaction},void 0,function(){return!0}),O=_.E(_.IE(!1,void 0,"VNDDT")),Q=O.next().value,M=O.next().value;
O=_.U3(function(){M(!0)});
var t=_.U3(function(){M(!1)});
return _.T("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.iq(Y,Hvt,u),"on:mouseenter":O,"on:mouseleave":t},_.T("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.Yh({"max-width":function(){return _.F("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.T("div",{class:function(){var K;
a:{var L;switch((K=_.z(G().thumbnailImage,zt_))==null?void 0:(L=K.imageProperties)==null?void 0:L.renderingAspect){case "RENDERING_ASPECT_SQUARE":K="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":K="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}K=void 0}return K}},_.T(_.HE,{data:function(){return G().thumbnailImage}},{adImageViewModel:function(K){return _.T(_.q8,
{data:K.data,
listenToTapEvent:!0,setTouchEndHandler:_.F("enable_top_landscape_image_experiment_dom_id_web")})}})),_.T("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.T(_.X,{cond:function(){var K,L,g;
return(K=_.z(G().thumbnailImage,zt_))==null?void 0:(L=K.imageProperties)==null?void 0:(g=L.overlayIcon)==null?void 0:g.iconImage},
then:function(K){return _.T(_.RD,{data:K,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.T("div",{class:function(){return Q()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.T(_.HE,{data:function(){return G().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(K){return _.T(hqe,
{data:K.data,
listenToTapEvent:!0})}}))),_.T("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.T(_.HE,{data:function(){return G().feedAdMetadata}},{feedAdMetadataViewModel:function(K){return _.T(uL,{data:K.data,
listenToTapEvent:!0,setTouchEndHandler:_.F("enable_top_landscape_image_experiment_dom_id_web")})}})))},"xc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=Y.data;Y=_.UV({visibilityCallback:function(K,L){if(K){var g;(K=(g=G().interaction)==null?void 0:g.onFirstVisible)&&_.W3(K);var P;if(g=(P=G().adLayoutData)==null?void 0:P.activeViewData)l5(L,g),_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&BE(L)})}else _.F("stop_av_measurement_on_detach")&&BE(L)},
showOption:_.B9,hideOption:$8});var u=_.Hx(_.zS),O=_.fK(function(){return G().interaction}),Q={},M={},t={};
return _.T("square-image-layout-view-model",{class:_.s3("ytwSquareImageLayoutViewModelHost",(Q.ytwSquareImageLayoutViewModelHostColumn=u,Q)),el:_.iq(Y,EZj,O)},_.T("div",{class:_.s3("ytwSquareImageLayoutViewModelHostImage",(M.ytwSquareImageLayoutViewModelHostColumnImage=u,M))},function(){return _.T(_.HE,{data:function(){return G().adImage}},{adImageViewModel:function(K){return _.T(_.q8,{data:K.data,
isGridViewEnabled:u,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.T("div",{class:_.s3("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(t.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=u,t))},_.T(_.HE,{data:function(){return G().feedAdMetadata}},{feedAdMetadataViewModel:uL}),function(){return _.T(_.HE,{data:function(){return G().adButton}},{adButtonViewModel:function(K){var L={};
return _.T(_.sM,{data:K.data,className:_.s3((L.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,L.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=u,L))})}})}()))},"yc"),"square-image-layout-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=Y.data;var u=Y.noBottomMargin;var O=Y.typographyBump;Y=_.UV({visibilityCallback:function(I,k){if(I){var n;(I=(n=G().interaction)==null?void 0:n.onFirstVisible)&&_.W3(I);var p;if(n=(p=G().adLayoutData)==null?void 0:p.activeViewData)l5(k,n),_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&BE(k)})}else _.F("stop_av_measurement_on_detach")&&BE(k)},
showOption:_.B9,hideOption:$8});var Q=_.fK(function(){return G().interaction},void 0,function(){return _.F("enable_web_home_top_landscape_image_layout_level_click")}),M=function(){return G().interaction};
M!==void 0&&M!==null||_.N3(Error("Oh"));var t=function(){var I,k,n;return(I=_.z(G().thumbnailImage,zt_))==null?void 0:(k=I.background)==null?void 0:(n=k.backgroundImageSource)==null?void 0:n.imageSources};
M=_.E(_.IE(!1,void 0,"NFjwje"));var K=M.next().value,L=M.next().value;M=_.U3(function(){L(!0)});
var g=_.U3(function(){L(!1)}),P=function(){return K()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.T("top-landscape-image-layout-view-model",{class:function(){var I;return((I=G().interaction)==null?0:I.onTap)&&_.F("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.iq(Y,t$g,Q),"on:mouseenter":M,"on:mouseleave":g},_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.T(_.X,{cond:function(){return t()&&t().length>0},
then:function(){return _.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Yh({top:"0","background-image":function(){return"url("+String(t()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.T(_.X,{cond:function(){return!!G().adButtonHoverOverlay},
then:function(){return _.T("div",{class:P},_.T(_.HE,{data:function(){return G().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:hqe}))}}),_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.T(_.HE,{data:function(){return G().thumbnailImage}},{adImageViewModel:function(I){return _.T(_.q8,{data:I.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.F("enable_web_home_top_landscape_image_layout_level_click")})}})),_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.T(_.RD,{data:{sources:[{clientResource:{imageName:"arrow_diagonal_up_right"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.T(_.HE,{data:function(){return G().feedAdMetadata}},{feedAdMetadataViewModel:function(I){return _.T(uL,{data:I.data,
noBottomMargin:function(){return u==null?void 0:u()},
listenToTapEvent:function(){return _.F("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return O==null?void 0:O()}})}})))},"zc"),"top-landscape-image-layout-view-model",{props:{data:_.AC,
noBottomMargin:_.AC,typographyBump:_.AC}});var dqT=_.D(function(Y){var G=Y.data,u=_.UV({visibilityCallback:function(Q){var M,t=(M=G().interaction)==null?void 0:M.onFirstVisible;Q&&t&&_.W3(t)},
showOption:_.B9});Y=_.fK(function(){return G().interaction},Y.customCommandResolver);
var O={};return _.T("ad-text-image-view-model",{class:_.s3("ytwAdTextImageViewModelHost",(O.ytwAdTextImageViewModelHostDarkBackground=function(){return G().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},O)),
el:_.iq(u,Y),"aria-label":function(){var Q,M;return(Q=G().interaction)==null?void 0:(M=Q.accessibility)==null?void 0:M.label}},_.T("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.T(_.eO,{text:function(){return G().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.T(_.X,{cond:function(){return G().overlayIcon},
then:function(Q){return _.T("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.T(_.RD,{data:Q,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"Ac");var bPE=_.D(function(Y){var G=Y.data;return _.T("feed-ad-sitelink-view-model",{class:function(){var u;return((u=G().interaction)==null?0:u.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.iq(_.fK(function(){return G().interaction},Y.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var u,O;return(u=G().interaction)==null?void 0:(O=u.accessibility)==null?void 0:O.label},
role:"link",tabindex:0},_.T(_.eO,{text:function(){return G().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"Bc");var S1l=_.D(function(Y){var G=Y.data;Y={};return _.T("feed-ad-sitelinks-carousel-view-model",{el:_.iq(_.UV({visibilityCallback:function(u){var O,Q=(O=G().interaction)==null?void 0:O.onFirstVisible;u&&Q&&_.W3(Q)},
showOption:_.B9})),class:_.s3("ytwFeedAdSitelinksCarouselViewModelHost",(Y.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return G().style==="FEED_AD_SITELINKS_STYLE_NONE"},Y))},_.T(_.HE,{data:function(){return G().sitelinks}},{feedAdSitelinkViewModel:bPE}))},"Cc");_.hR(_.D(function(Y){var G=Y.data;Y=_.UV({visibilityCallback:function(t,K){if(t){var L;(t=(L=G().interaction)==null?void 0:L.onFirstVisible)&&_.W3(t);var g;(L=(g=G().adLayoutData)==null?void 0:g.activeViewData)&&l5(K,L)}},
showOption:_.B9});var u=_.E(_.IE(!1,void 0,"BzPhl")),O=u.next().value,Q=u.next().value;u=_.U3(function(){Q(!0)});
var M=_.U3(function(){Q(!1)});
return _.T("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.iq(Y),"on:mouseenter":u,"on:mouseleave":M},_.T("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.T("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.T(_.HE,{data:function(){return G().textImage}},{adTextImageViewModel:dqT})),_.T("div",{class:function(){return O()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.T(_.HE,{data:function(){return G().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(t){return _.T(hqe,{data:t.data,
listenToTapEvent:!0})}}))),_.T("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.T(_.HE,{data:function(){return G().feedAdMetadata}},{feedAdMetadataViewModel:function(t){return _.T(uL,{data:t.data,
listenToTapEvent:!0})}}),_.T(_.HE,{data:function(){return G().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:S1l})))},"Dc"),"text-image-no-button-layout-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=Y.data;var u=Y.typographyBump;return _.T("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.iq(_.UV({visibilityCallback:function(O,Q){if(O){var M;(O=(M=G().interaction)==null?void 0:M.onFirstVisible)&&_.W3(O);var t;(M=(t=G().adLayoutData)==null?void 0:t.activeViewData)&&l5(Q,M)}},
showOption:_.B9,hideOption:$8}))},_.T("div",null,_.T(_.HE,{data:function(){return G().videoLockup}},{lockupViewModel:function(O){return _.T(_.Ou,{data:O.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:u})}})))},"Ec"),"video-display-button-group-layout-view-model",{props:{data:_.AC,
noBottomMargin:_.AC,typographyBump:_.AC}});_.hR(_.D(function(Y){var G=Y.data;var u=Y.className;var O=Y.typographyBump;return _.T("video-display-compact-button-group-layout-view-model",{el:_.iq(_.UV({visibilityCallback:function(Q,M){if(Q){var t;(Q=(t=G().interaction)==null?void 0:t.onFirstVisible)&&_.W3(Q);var K;(t=(K=G().adLayoutData)==null?void 0:K.activeViewData)&&l5(M,t)}},
showOption:_.B9})),class:_.s3("videoDisplayCompactButtonGroupLayoutViewModelHost",u)},_.T(_.HE,{data:function(){return G().videoLockup}},{lockupViewModel:function(Q){return _.T(_.Ou,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:O})}}))},"Fc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.AC,
className:_.AC,typographyBump:_.AC}});_.hR(_.D(function(Y){var G=Y.data;var u=Y.className;var O=Y.typographyBump;return _.T("video-display-compact-buttoned-layout-view-model",{el:_.iq(_.UV({visibilityCallback:function(Q,M){if(Q){var t;(Q=(t=G().interaction)==null?void 0:t.onFirstVisible)&&_.W3(Q);var K;(t=(K=G().adLayoutData)==null?void 0:K.activeViewData)&&l5(M,t)}},
showOption:_.B9})),class:_.s3("videoDisplayCompactButtonedLayoutViewModelHost",u)},_.T(_.HE,{data:function(){return G().videoLockup}},{lockupViewModel:function(Q){return _.T(_.Ou,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:O})}}))},"Gc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.AC,
className:_.AC,typographyBump:_.AC}});_.hR(_.D(function(Y){var G=Y.data;var u=Y.className;var O=Y.typographyBump;return _.T("video-display-compact-carousel-button-group-layout-view-model",{el:_.iq(_.UV({visibilityCallback:function(Q,M){if(Q){var t;(Q=(t=G().interaction)==null?void 0:t.onFirstVisible)&&_.W3(Q);var K;(t=(K=G().adLayoutData)==null?void 0:K.activeViewData)&&l5(M,t)}},
showOption:_.B9})),class:_.s3("videoDisplayCompactCarouselButtonGroupLayoutViewModelHost",u)},_.T(_.HE,{data:function(){return G().videoLockup}},{lockupViewModel:function(Q){return _.T(_.Ou,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:O})}}))},"Hc"),"video-display-compact-carousel-button-group-layout-view-model",{props:{data:_.AC,
className:_.AC,typographyBump:_.AC}});_.hR(_.D(function(Y){var G=Y.data;var u=Y.className;var O=Y.typographyBump;var Q=function(){return G().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},M=_.Hx(_.zS);
Y=_.UV({visibilityCallback:function(g,P){if(g){var I=G();g=I.adLayoutData;var k;(I=(k=I.interaction)==null?void 0:k.onFirstVisible)&&_.W3(I);(k=g==null?void 0:g.activeViewData)&&l5(P,k)}},
showOption:_.B9});var t=_.p2(function(){return{containerType:Q()&&M()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:Q()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),K=_.p2(function(){return Q()&&M()?"":Q()?"168px":"50%"},void 0,"Om6kNe"),L=_.p2(function(){return Q()&&M()?9999:void 0},void 0,"S71lKd");
return _.T("video-display-compact-layout-view-model",{el:_.iq(Y),class:_.s3("videoDisplayCompactLayoutViewModelHost",u)},_.T(_.HE,{data:function(){return G().videoLockup}},{lockupViewModel:function(g){return _.T(_.Ou,{data:g.data,
containerLayoutConfig:t,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:K,thumbnailTargetWidth:L,typographyBump:O})}}))},"Ic"),"video-display-compact-layout-view-model",{props:{data:_.AC,
className:_.AC,typographyBump:_.AC}});_.hR(_.D(function(Y){var G=Y.data;var u=Y.typographyBump;return _.T("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.iq(_.UV({visibilityCallback:function(O,Q){if(O){var M;(O=(M=G().interaction)==null?void 0:M.onFirstVisible)&&_.W3(O);var t;(M=(t=G().adLayoutData)==null?void 0:t.activeViewData)&&l5(Q,M)}},
showOption:_.B9,hideOption:$8}))},_.T("div",null,_.T(_.HE,{data:function(){return G().videoLockup}},{lockupViewModel:function(O){return _.T(_.Ou,{data:O.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:u})}})))},"Jc"),"video-display-full-layout-view-model",{props:{data:_.AC,
noBottomMargin:_.AC,typographyBump:_.AC}});var NZU=_.D(function(Y){var G=Y.data;var u=Y.customCommandResolver;var O=Y.className;var Q=Y.buttonClassName;var M=Y.animationEntityKey;var t=Y.expansive;return _.T("carousel-button-view-model",{class:_.s3("ytwCarouselButtonViewModelHost",O)},_.T(_.HE,{data:function(){return G().carousel}},{carouselAdCardCollectionViewModel:function(K){return _.T(fg1,{data:K.data,
customCommandResolver:u,expansive:t})}}),_.T(_.HE,{data:function(){return G().button}},{adButtonViewModel:function(K){var L=K.data;
return _.T(_.sM,{data:function(){return(t==null?0:t())?Object.assign({},L(),{style:"AD_BUTTON_STYLE_TONAL"}):L()},
className:Q,customCommandResolver:u,animationEntityKey:M})}}))},"Kc");_.jaV=_.D(function(Y){var G=Y.data;Y=Y.className;var u=_.CH("pivot-button-view-model");_.ii(function(){var O;((O=G())==null?0:O.backgroundColor)&&u.value.setAttribute("data-background-color",String(G().backgroundColor))});
return _.T("pivot-button-view-model",{el:u,class:_.s3("ytwPivotButtonViewModelHost",Y)},_.T(_.Ny,{command:function(){var O=G();O=O.onClickCommand?_.FS(O.onClickCommand):O.contentDescription?_.dK(O.contentDescription):void 0;return O},
ariaLabel:function(){return G().contentDescription}},_.T(_.X,{cond:function(){return G().thumbnail},
then:function(O){return _.T(_.RD,{data:O,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.T(_.X,{cond:function(){return G().icon},
then:function(O){return _.T(_.GS,{icon:function(){return O().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Lc");_.VH_=_.D(function(Y){var G=Y.data;var u=Y.buttonShapeOverrideables;Y={};return _.T("reel-action-bar-view-model",{class:_.s3("ytwReelActionBarViewModelHost",(Y.ytwReelActionBarViewModelHostDecluttered=function(){return _.F("enable_shorts_declutter")},Y))},_.T(_.HE,{data:function(){return G().buttonViewModels}},{buttonViewModel:function(O){return _.T(_.$Y,{data:O.data,
buttonOverrides:u})},
likeButtonViewModel:function(O){return _.T(_.xb,{data:O.data,buttonShapeOverrideables:u})},
dislikeButtonViewModel:function(O){return _.T(_.rz,{data:O.data,buttonShapeOverrideables:u})},
toggleButtonViewModel:function(O){return _.T(_.Tr,{data:O.data,buttonShapeOverrides:u})}}))},"Mc");var lPX=_.D(function(Y){var G=Y.avatar;var u=Y.headline;var O=Y.badge;var Q=Y.description;var M=Y.expansive;Y={};return _.T("yt-ad-metadata-shape",{class:_.s3("ytAdMetadataShapeHost",(Y.ytAdMetadataShapeHostLarge=M,Y.ytAdMetadataShapeHostDecluttered=function(){return _.F("enable_desktop_small_title_on_immersive_shorts")},Y))},_.T("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.T(_.X,{cond:G,
then:function(t){return _.T(_.NyV,{data:function(){return(M==null?0:M())?Object.assign({},t(),{size:"AD_AVATAR_SIZE_M"}):t()}})}}),_.T("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.T(_.eO,{text:u,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.T(_.X,{cond:O,then:function(t){return _.T(_.YB,{data:function(){return(M==null?0:M())?Object.assign({},t(),{style:"AD_BADGE_STYLE_STARK"}):t()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.T("h2",{class:"ytAdMetadataShapeHostDescription"},_.T(_.eO,{text:Q,
linkInheritColor:!0,isHeadline:function(){return M==null?void 0:M()}})))},"Nc");var BZe=_.D(function(Y){var G=Y.data;var u=Y.onShow;var O=Y.expansive;Y=_.fK(function(){return G().interaction});
_.ii(function(){var M,t=(M=G().animatedRenderingConfig)==null?void 0:M.delayedSecondsToVisible;if(t){var K=setTimeout(u,t*1E3);_.w_(function(){clearTimeout(K)})}});
var Q={};return _.T("reels-ad-card-buttoned-view-model",{class:_.s3(function(){var M;return((M=G().interaction)==null?0:M.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(Q.ytwReelsAdCardButtonedViewModelHostExpansive=O,Q)),
el:_.iq(Y)},_.T(lPX,{avatar:function(){return _.z(G().avatar,ntk)},
headline:function(){return G().headline},
badge:function(){return _.z(G().adBadge,Fl_)},
description:function(){return G().description},
expansive:O}),_.T(_.HE,{data:function(){return G().ctaButton}},{adButtonViewModel:function(M){var t=M.data;
return _.T(_.sM,{data:function(){return(O==null?0:O())?Object.assign({},t(),{style:"AD_BUTTON_STYLE_FILLED"}):t()}})}}))},"Oc");var $qR=_.D(function(Y){var G=Y.data;Y=Y.expansive;var u=_.F("web_ad_metadata_clickable")?_.fK(function(){return G().interaction},void 0,function(){return _.F("web_ad_metadata_clickable")}):void 0,O={};
O=_.PE("ytwReelsAdMetadataViewModelHost",(O.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.F("web_ad_metadata_clickable"),O));return _.T("reels-ad-metadata-view-model",{class:O,el:_.iq(u)},_.T(lPX,{avatar:function(){return _.z(G().avatar,ntk)},
headline:function(){return G().headline},
badge:function(){return _.z(G().adBadge,Fl_)},
description:function(){return G().description},
expansive:Y}))},"Pc");var q1R=_.D(function(){return _.T("div",{class:"ytwVideoFilteringOverlayHost",style:_.Yh({"background-color":function(){return _.nB(_.Jy("exp_shorts_ads_mvp_filtering_hex_value_web"))}})})},"Qc");var saU={iconPosition:"icon-with-label",size:"L"},cII=_.D(function(Y){var G=Y.data;var u=Y.overlayDensity;var O=Y.extractOverlay;var Q=Y.extractActionBar;Y=_.CH("reels-player-overlay-layout-view-model");var M=_.dB(u,0),t=function(){var n;return(n=G().reelsAdCardButtonedEntityKey)!=null?n:""},K=function(){return t()+"/ad_button"},L=_.Oe(jpY,t),g=function(){var n,p;
return(p=(n=L())==null?void 0:n.value)!=null?p:!1},P=_.Hx(Kn1),I=function(){var n,p=Object.assign({},saU,(P()||!((n=Q==null?void 0:Q())!=null&&n))&&{style:"overlay-dark"});
return _.F("mweb_shorts_rhs_no_background_protection")?Object.assign({},p,{type:"text",style:"overlay"}):p};
u={};var k={};return _.T("reels-player-overlay-layout-view-model",{class:_.s3("ytwReelsPlayerOverlayLayoutViewModelHost",(u.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!G().extension},u.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},u.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return M()===1&&!(O==null?0:O())},u.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var n;
return(n=O==null?void 0:O())!=null?n:!1},u.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var n;
return(n=Q==null?void 0:Q())!=null?n:!1},u)),
"overlay-density":function(){return String(M())},
el:Y},_.T("div",{class:_.s3("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(k.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},k))},_.T("div",{"aria-hidden":function(){return g()},
class:_.s3("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return g()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Yh({"transition-duration":function(){return gZA(G())}})},_.T(_.HE,{data:function(){return G().adMetadata}},{reelsAdMetadataViewModel:function(n){return _.T($qR,{data:n.data,
expansive:function(){return M()===1}})}}),_.T(_.X,{cond:function(){return G().extension},
then:function(n){return _.T("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.T(_.HE,{data:n},{adButtonViewModel:function(p){return _.T(_.sM,{data:p.data,animationEntityKey:K,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(p){return _.T(NZU,{data:p.data,animationEntityKey:K,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return M()===1}})}}))}})),_.T("div",{"aria-hidden":function(){return!g()},
class:_.s3("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return g()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Yh({"transition-duration":function(){return gZA(G())}})},_.T(_.HE,{data:function(){return G().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(n){return _.T(BZe,{data:n.data,
onShow:function(){_.hj(_.t$("booleanEntity",t(),{key:t(),value:!0}))},
expansive:function(){var p;return(p=O==null?void 0:O())!=null?p:!1}})}}))),_.T("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.T(_.HE,{data:function(){return G().actions}},{reelActionBarViewModel:function(n){return _.T(_.VH_,{data:n.data,
buttonShapeOverrideables:I})}}),_.T(_.HE,{data:function(){return G().menu}},{buttonViewModel:function(n){return _.T(_.$Y,{data:n.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},{type:"tonal"},I())}})}}),_.T(_.HE,{data:function(){return G().pivotButton}},{pivotButtonViewModel:function(n){return _.T(_.jaV,{data:n.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})),_.T(_.X,{cond:function(){return _.F("exp_shorts_ads_mvp_filtering_web")},
then:function(){return _.T(_.ENy,{root:"ytd-reel-video-renderer[is-active] #video-filtering-overlay-container"},function(){return _.T(q1R,null)})}}))},"Rc");_.hR(cII,"reels-player-overlay-layout-view-model",{props:{data:_.AC,overlayDensity:_.AC,extractOverlay:_.AC,extractActionBar:_.AC}});var tS=function(){var Y=_.Z.apply(this,arguments)||this;Y.noBottomMargin=!1;Y.overlayDensity=0;Y.extractOverlay=!1;Y.extractActionBar=!1;return Y};
_.m(tS,_.Z);_.H=tS.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]]"}},videoDisplayCompactCarouselButtonGroupLayoutViewModel:{component:"video-display-compact-carousel-button-group-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},
compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.F("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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.H.ready=function(){var Y=this;foY(function(){Y.isAttached&&dw(Y.JSC$16013_storedAdSlotMetadata,Y.JSC$16013_storedAdLayoutMetadata,Y.adSlotMetadata,Y.adLayoutMetadata)&&Ei(Mw(),Y.JSC$16013_storedAdSlotMetadata,Y.JSC$16013_storedAdLayoutMetadata)})};
_.H.attached=function(){dw(this.JSC$16013_storedAdSlotMetadata,this.JSC$16013_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&DqX(Mw(),this.JSC$16013_storedAdSlotMetadata,this.JSC$16013_storedAdLayoutMetadata)};
_.H.detached=function(){dw(this.JSC$16013_storedAdSlotMetadata,this.JSC$16013_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Ei(Mw(),this.JSC$16013_storedAdSlotMetadata,this.JSC$16013_storedAdLayoutMetadata)};
_.H.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.H.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$16013_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$16013_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$16013_storedAdLayoutMetadata!==void 0&&this.JSC$16013_storedAdSlotMetadata!==void 0&&Ei(Mw(),this.JSC$16013_storedAdSlotMetadata,this.JSC$16013_storedAdLayoutMetadata),DqX(Mw(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$16013_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$16013_storedAdSlotMetadata=this.adSlotMetadata)};
_.Uk.Object.defineProperties(tS.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.adLayoutMetadata}}});
tS.prototype.onAdMetadataChanged=tS.prototype.onAdMetadataChanged;tS.prototype.onTypographyBumpChanged=tS.prototype.onTypographyBumpChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],tS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],tS.prototype,"rendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],tS.prototype,"ytComponentBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],tS.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],tS.prototype,"noBottomMargin",void 0);_.S([_.R(),_.V("design:type",Object)],tS.prototype,"overlayDensity",void 0);_.S([_.R(),_.V("design:type",Object)],tS.prototype,"extractOverlay",void 0);_.S([_.R(),_.V("design:type",Object)],tS.prototype,"extractActionBar",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],tS.prototype,"typographyBump",void 0);
_.S([_.f("data.adLayoutMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],tS.prototype,"adLayoutMetadata",null);_.S([_.R(),_.V("design:type",Object)],tS.prototype,"adSlotMetadata",void 0);_.S([_.Ox("ytd-video-display-full-buttoned-and-button-group-renderer"),_.V("design:type",HTMLElement)],tS.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.S([_.GO("typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tS.prototype,"onTypographyBumpChanged",null);_.S([_.GO("adLayoutMetadata","adSlotMetadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tS.prototype,"onAdMetadataChanged",null);_.S([_.pD({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],tS);
_.d(tS,"ytd-in-feed-ad-layout-renderer",function(){if(dsI!==void 0)return dsI;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return dsI=Y},
{mode:2});var UqU;var vWV;_.hR(_.YB,"ad-badge-view-model",{props:{data:_.AC,hasDot:_.AC,customCommandResolver:_.wH,adRenderingContextType:_.wH,usedInMasthead:_.wH}});_.hR(_.sM,"ad-button-view-model",{props:{data:_.AC,customCommandResolver:_.wH,className:_.wH,delayedClassName:_.wH,animationEntityKey:_.wH,isCompactWidth:_.wH,isContentWidth:_.wH}});var K0=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return Y};
_.m(K0,_.Z);_.H=K0.prototype;_.H.computeHasLiveDescription=function(Y){return!(Y==null||!Y.liveDescription)};
_.H.computeHasByline=function(Y){return!(Y==null||!Y.byline)};
_.H.computeUsesAdButtonViewModel=function(Y){return!!_.z(Y==null?void 0:Y.cta,pyT)};
_.H.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.H.onYtToggleButton=function(Y){var G,u=(G=this.data)==null?void 0:G.videoReminderEntityKey;u&&this.ytdReduxBehavior.dispatch(_.t$("upcomingEventReminderStateEntity",u,{key:u,state:Y.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 Y;this.videoReminderState&&_.z((Y=this.data)==null?void 0:Y.cta,_.xw)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.H.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var Y=_.dH(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);Y&&(Y.startsWith("//")&&(Y="https:"+Y),this.hostElement.classList.add("channel-banner"),_.cm(this.hostElement,{"--ytvmh-channel-banner":"url("+Y+")"}))}else _.F("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.H.onPlayerReady=function(){this.onIronResize()};
_.H.onIronResize=function(){this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var Y=_.l0(this.hostElement).querySelector("#live-description"),G;Y&&((G=this.data)==null?0:G.shortLiveDescription)&&Y.clientWidth<Y.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
K0.prototype.onIronResize=K0.prototype.onIronResize;K0.prototype.videoReminderStateChanged=K0.prototype.videoReminderStateChanged;K0.prototype.dataChanged=K0.prototype.dataChanged;K0.prototype.onYtToggleButton=K0.prototype.onYtToggleButton;_.S([_.x(_.aZ),_.V("design:type",Object)],K0.prototype,"ironResizableBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],K0.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],K0.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],K0.prototype,"data",void 0);_.S([_.R({selectorArgs:["data.videoReminderEntityKey"],selector:CeT}),_.V("design:type",Object)],K0.prototype,"videoReminderState",void 0);
_.S([_.R({reflectToAttribute:!0,value:_.F("web_modern_buttons")}),_.V("design:type",Boolean)],K0.prototype,"rounded",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.V("design:type",Boolean)],K0.prototype,"hasLiveDescription",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.V("design:type",Boolean)],K0.prototype,"hasByline",void 0);
_.S([_.R({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.V("design:type",String)],K0.prototype,"adRenderingContextType",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],K0.prototype,"isMasthead",void 0);_.S([_.R({computed:"computeUsesAdButtonViewModel(data)"}),_.V("design:type",Boolean)],K0.prototype,"usesAdButtonViewModel",void 0);_.S([_.Q4("yt-formatted-string"),_.V("design:type",Array)],K0.prototype,"formattedStrings",void 0);
_.S([_.Ox("#cta-button"),_.V("design:type",HTMLElement)],K0.prototype,"ctaButton",void 0);_.S([_.Yo("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],K0.prototype,"onYtToggleButton",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],K0.prototype,"dataChanged",null);
_.S([_.GO("videoReminderState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],K0.prototype,"videoReminderStateChanged",null);_.S([_.Yo("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],K0.prototype,"onIronResize",null);_.S([_.pD({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],K0);
_.d(K0,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(vWV!==void 0)return vWV;var Y=document.createElement("template");_.r(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return vWV=Y},{mode:1});var JI2;var aY=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};Y.isLocked=!1;return Y};
_.m(aY,_.Z);_.H=aY.prototype;_.H.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.H.onExpandedChanged=function(){this.expanded&&_.sK(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.H.onMouseOver=function(){this.maybeExpand()};
_.H.onTap=function(){this.maybeExpand()};
_.H.onExpandableTileExpanding=function(Y){Y!==this&&(this.expanded=!1)};
_.H.onExpandableTileLockAndCollapse=function(Y){this.isLocked=!0;Y!==this&&(this.expanded=!1)};
_.H.onExpandableTileUnlock=function(){this.isLocked=!1};
aY.prototype.onTap=aY.prototype.onTap;aY.prototype.onMouseOver=aY.prototype.onMouseOver;aY.prototype.onExpandedChanged=aY.prototype.onExpandedChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],aY.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],aY.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],aY.prototype,"expanded",void 0);_.S([_.Ex("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aY.prototype,"onExpandedChanged",null);_.S([_.Yo("mouseover"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aY.prototype,"onMouseOver",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aY.prototype,"onTap",null);
_.S([_.pD({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],aY);
_.d(aY,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(JI2!==void 0)return JI2;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return JI2=Y},{mode:1});var YfU;var TT=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonOverrides={style:"overlay"};Y.useYtdPlayer=_.F("use_ytd_player_for_desktop_masthead");Y.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};Y.playbackFinished=!1;Y.JSC$16027_playerManager=null;Y.JSC$16027_mastheadCounter=new CBE;return Y};
_.m(TT,_.Z);_.H=TT.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$16027_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$16027_playerManager=new HZ)};
_.H.ready=function(){var Y=this;this.JSC$16027_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var G=_.l0(this.hostElement).querySelector("#player");this.useYtdPlayer?G.style.display="none":(this.ytdPlayer.style.display="none",DfE(this.JSC$16027_playerManager,G,function(){Y.onPlaybackEnded()}),_.l0(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var u;
((u=Y.data)==null?0:u.navigationEndpoint)&&_.$s(Y.hostElement,"yt-navigate",{endpoint:Y.data.navigationEndpoint})}))};
_.H.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$16027_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.H.attached=function(){var Y=this;_.CD(function(){Y.maybePlayVideo()})};
_.H.maybePlayVideo=function(){var Y=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$16027_playerManager.playVideo(),this.getPlayerPromise().then(function(){Y.JSC$16027_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.H.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16027_playerManager.stopVideo()};
_.H.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var Y,G={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((Y=this.data.playbackStartMs)!=null?Y:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(G);this.setupYtdPlayer()}else dfk(this.JSC$16027_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(h01(this.JSC$16027_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.H.getPlayerPromise=function(){return this.JSC$16027_playerManager.getPlayerPromise()};
_.H.onYtToggleButton=function(Y){this.useYtdPlayer?this.toggleMute(Y.detail.toggled):Y.detail.toggled?this.JSC$16027_playerManager.mute():this.JSC$16027_playerManager.unMute()};
_.H.onYtNavigate=function(Y){var G=vQU(Y.detail.endpoint),u=JSA(this.data.clickthroughReportingData);G&&u&&(Y.detail.endpoint.watchEndpoint?Y.detail.tempData=u:_.hv(G,u,30))};
_.H.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.H.onExpandedChanged=function(){this.expanded?(_.sK(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(Y){Y!==this&&(this.stopVideo(),this.expanded=!1)};
_.H.onExpandableTileLockAndCollapse=function(Y){Y!==this&&(this.isLocked=!0,this.expanded=!1)};
_.H.onExpandableTileUnlock=function(){this.isLocked=!1};
_.H.lockAndCollapseExpandableTiles=function(){_.qZ(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.H.unlockExpandableTiles=function(){_.qZ(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.H.setupYtdPlayer=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1)return u.yield(Y.ytdPlayer.getPlayerPromise(),2);G=u.yieldResult;G.addEventListener("onStateChange",function(O){Y.onPlayerStateChange(O)});
G.addEventListener("onCueRangeExit",function(O){Y.onCueRangeExit(O)});
_.Sd(u)})};
_.H.onPlayerStateChange=function(Y){if(Y===1&&(Y=this.ytdPlayer.getPlayer())){var G=Y.getCurrentTime(),u,O,Q=G+((O=(u=this.data)==null?void 0:u.playbackDurationMs)!=null?O:0)/1E3;Y.addCueRange("playback",G,Q);this.JSC$16027_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.H.onCueRangeExit=function(Y){Y==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.H.toggleMute=function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(G.ytdPlayer.getPlayerPromise(),2);u=O.yieldResult;Y?u.mute():u.unMute();_.Sd(O)})};
TT.prototype.onTap=TT.prototype.onTap;TT.prototype.onMouseOver=TT.prototype.onMouseOver;TT.prototype.onExpandedChanged=TT.prototype.onExpandedChanged;TT.prototype.onYtNavigate=TT.prototype.onYtNavigate;TT.prototype.onYtToggleButton=TT.prototype.onYtToggleButton;TT.prototype.dataChanged=TT.prototype.dataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],TT.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],TT.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],TT.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],TT.prototype,"expanded",void 0);_.S([_.R(),_.V("design:type",Object)],TT.prototype,"buttonOverrides",void 0);
_.S([_.R(),_.V("design:type",Object)],TT.prototype,"useYtdPlayer",void 0);_.S([_.Ox("#ytd-player"),_.V("design:type",Object)],TT.prototype,"ytdPlayer",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TT.prototype,"dataChanged",null);_.S([_.Yo("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],TT.prototype,"onYtToggleButton",null);
_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],TT.prototype,"onYtNavigate",null);_.S([_.Ex("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TT.prototype,"onExpandedChanged",null);_.S([_.Yo("mouseover"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TT.prototype,"onMouseOver",null);
_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TT.prototype,"onTap",null);_.S([_.pD({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],TT);
_.d(TT,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(YfU!==void 0)return YfU;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return YfU=Y},{mode:1});var G8e;var L0=function(){return _.Z.apply(this,arguments)||this};
_.m(L0,_.Z);L0.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
L0.prototype.onShow=function(){var Y=_.l0(this.hostElement).querySelector("#live-description"),G;Y&&((G=this.data)==null?0:G.shortLiveDescription)&&Y.clientWidth<Y.scrollWidth&&this.hostElement.classList.add("short-live-description")};
L0.prototype.onYtToggleButton=function(Y){var G,u=(G=this.data)==null?void 0:G.videoReminderEntityKey;u&&this.ytdReduxBehavior.dispatch(_.t$("upcomingEventReminderStateEntity",u,{key:u,state:Y.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
L0.prototype.videoReminderStateChanged=function(){var Y;this.videoReminderState&&_.z((Y=this.data)==null?void 0:Y.cta,_.xw)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
L0.prototype.videoReminderStateChanged=L0.prototype.videoReminderStateChanged;L0.prototype.onYtToggleButton=L0.prototype.onYtToggleButton;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],L0.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],L0.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],L0.prototype,"data",void 0);
_.S([_.R({selectorArgs:["data.videoReminderEntityKey"],selector:CeT}),_.V("design:type",Object)],L0.prototype,"videoReminderState",void 0);_.S([_.Yo("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],L0.prototype,"onYtToggleButton",null);_.S([_.GO("videoReminderState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],L0.prototype,"videoReminderStateChanged",null);
_.S([_.pD({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],L0);
_.d(L0,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(G8e!==void 0)return G8e;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return G8e=Y},{mode:2});var uLk;var g7=function(){var Y=_.Z.apply(this,arguments)||this;Y.useYtdPlayer=_.F("use_ytd_player_for_desktop_masthead");Y.buttonOverrides={style:"overlay"};Y.JSC$16035_playerManager=null;Y.JSC$16035_mastheadCounter=new CBE;Y.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return Y};
_.m(g7,_.Z);_.H=g7.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$16035_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$16035_playerManager=new HZ)};
_.H.ready=function(){var Y=this;this.JSC$16035_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var G;(G=this.embeddedPlayer)==null||G.remove()}else{var u;(u=this.ytdPlayer)==null||u.remove();DfE(this.JSC$16035_playerManager,this.embeddedPlayer,function(){Y.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){Y.data&&Y.data.navigationEndpoint&&_.$s(Y.hostElement,"yt-navigate",{endpoint:Y.data.navigationEndpoint})})}};
_.H.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$16035_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.H.dataChanged=function(){var Y=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var G=!this.data.disableAutoPlayback,u,O={autoplay:G,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((u=this.data.playbackStartMs)!=null?u:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(G?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(O);this.setupYtdPlayer()}else dfk(this.JSC$16035_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(h01(this.JSC$16035_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$16035_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.qZ(Y.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");Y.JSC$16035_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.H.getPlayerPromise=function(){return this.JSC$16035_playerManager.getPlayerPromise()};
_.H.onYtToggleButton=function(Y){this.useYtdPlayer?this.toggleMute(Y.detail.toggled):Y.detail.toggled?this.JSC$16035_playerManager.mute():this.JSC$16035_playerManager.unMute()};
_.H.onYtNavigate=function(Y){var G=vQU(Y.detail.endpoint),u=JSA(this.data.clickthroughReportingData);G&&u&&(Y.detail.endpoint.watchEndpoint?Y.detail.tempData=u:_.hv(G,u,30))};
_.H.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16035_playerManager.stopVideo()};
_.H.setupYtdPlayer=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1)return u.yield(Y.ytdPlayer.getPlayerPromise(),2);G=u.yieldResult;G.addEventListener("onStateChange",function(O){Y.onPlayerStateChange(O)});
G.addEventListener("onCueRangeExit",function(O){Y.onCueRangeExit(O)});
_.Sd(u)})};
_.H.onPlayerStateChange=function(Y){if(Y===1&&(Y=this.ytdPlayer.getPlayer())){var G=Y.getCurrentTime(),u,O,Q=G+((O=(u=this.data)==null?void 0:u.playbackDurationMs)!=null?O:0)/1E3;Y.addCueRange("playback",G,Q);_.qZ(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$16035_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.H.onCueRangeExit=function(Y){Y==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.H.toggleMute=function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(G.ytdPlayer.getPlayerPromise(),2);u=O.yieldResult;Y?u.mute():u.unMute();_.Sd(O)})};
_.Uk.Object.defineProperties(g7.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var Y,G;if(!((Y=this.data)==null?0:(G=Y.accessibilityData)==null?0:G.label))return"Ad primary link";var u,O;return _.Q6("AD_TITLE",{title:(u=this.data)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label})}}});
g7.prototype.onYtMastheadHidden=g7.prototype.onYtMastheadHidden;g7.prototype.onYtNavigate=g7.prototype.onYtNavigate;g7.prototype.onYtToggleButton=g7.prototype.onYtToggleButton;g7.prototype.dataChanged=g7.prototype.dataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],g7.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],g7.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],g7.prototype,"useYtdPlayer",void 0);_.S([_.Ox("ytd-toggle-button-renderer"),_.V("design:type",Object)],g7.prototype,"muteButton",void 0);_.S([_.R(),_.V("design:type",Object)],g7.prototype,"buttonOverrides",void 0);
_.S([_.f("data.accessibilityData.label"),_.V("design:type",String),_.V("design:paramtypes",[])],g7.prototype,"titleAriaLabel",null);_.S([_.Ox("#replay-button"),_.V("design:type",Object)],g7.prototype,"replayButton",void 0);_.S([_.Ox("#player-container"),_.V("design:type",Object)],g7.prototype,"playerContainer",void 0);_.S([_.Ox("#player"),_.V("design:type",Object)],g7.prototype,"embeddedPlayer",void 0);_.S([_.Ox("#ytd-player"),_.V("design:type",Object)],g7.prototype,"ytdPlayer",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],g7.prototype,"dataChanged",null);_.S([_.Yo("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],g7.prototype,"onYtToggleButton",null);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],g7.prototype,"onYtNavigate",null);
_.S([_.Yo("yt-masthead-hidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],g7.prototype,"onYtMastheadHidden",null);_.S([_.pD({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],g7);
_.d(g7,"ytd-video-masthead-ad-primary-video-renderer",function(){if(uLk!==void 0)return uLk;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return uLk=Y},{mode:2});var OwR;var XF=function(){var Y=_.Z.apply(this,arguments)||this;Y.collapsed=!1;Y.impressionResolver=_.RS();Y.JSC$16039_activeViewMeasurementDataResolver=_.RS();Y.actionMap={"yt-mute-ad-action":"handleMuteAd"};return Y};
_.m(XF,_.Z);_.H=XF.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.created=function(){this.activeView=new qe(this.hostElement)};
_.H.ready=function(){var Y=this;_.l0(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){Y.expandAd()});
this.hostElement.addEventListener("yt-action",function(G){if(G.detail.actionName==="yt-service-request"){var u=G.detail.args[1];u.videoMastheadAdMuteCommand&&(Y.collapseAd(u.videoMastheadAdMuteCommand.encryptedMastheadId),G.stopPropagation())}})};
_.H.attached=function(){var Y=this;_.CD(function(){Y.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(G){if(!Y.collapsed){G=_.E(G);for(var u=G.next();!u.done;u=G.next())u=u.value,VH(u.baseUrl,u.attributionSrcMode);Y.data.impressionCommand=void 0}});
this.JSC$16039_activeViewMeasurementDataResolver.promise.then(function(G){so(Y.activeView,G)});
_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&cf(Y.activeView)})};
_.H.dataChanged=function(){var Y;((Y=this.data.impressionCommand)==null?0:Y.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var G;((G=this.data)==null?0:G.activeView)&&this.JSC$16039_activeViewMeasurementDataResolver.resolve(this.data.activeView);(Y=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(Y.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.H.computeWidescreen=function(Y){var G;return!!(Y&&((G=_.z(Y,gtI))==null?0:G.isWidescreen))};
_.H.computeExpandable=function(Y){return!!(Y&&Y.length>0)};
_.H.onIronResize=function(){if(this.expandable){var Y=_.l0(this.hostElement).querySelector("#expandable-tile-container :first-child");Y&&!Y.expanded&&(Y.expanded=!0)}};
_.H.handleMuteAd=function(){this.collapseAd(null)};
_.H.restoreCollapsedState=function(Y){this.collapsed=_.EU().get("HIDDEN_MASTHEAD_ID")===Y};
_.H.collapseAd=function(Y){if(Y){var G=_.EU();G.set("HIDDEN_MASTHEAD_ID",Y);G.save()}(Y=_.l0(this.hostElement).querySelector("#video"))&&_.$s(Y,"yt-masthead-hidden");this.collapsed=!0};
_.H.expandAd=function(){var Y=_.EU();Y.set("HIDDEN_MASTHEAD_ID",!1);Y.save();location.reload()};
_.H.detached=function(){_.F("stop_av_measurement_on_detach")&&cf(this.activeView)};
XF.prototype.onIronResize=XF.prototype.onIronResize;XF.prototype.dataChanged=XF.prototype.dataChanged;_.S([_.x(_.aZ),_.V("design:type",Object)],XF.prototype,"ironResizableBehavior",void 0);_.S([_.x(_.f8),_.V("design:type",Object)],XF.prototype,"ytdGridStateAwareBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],XF.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],XF.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.V("design:type",Boolean)],XF.prototype,"widescreen",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.V("design:type",Boolean)],XF.prototype,"expandable",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],XF.prototype,"collapsed",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],XF.prototype,"dataChanged",null);_.S([_.Yo("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],XF.prototype,"onIronResize",null);_.S([_.pD({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],XF);
_.d(XF,"ytd-video-masthead-ad-v3-renderer",function(){if(OwR!==void 0)return OwR;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return OwR=Y},{mode:2});var PA=function(){return _.Z.apply(this,arguments)||this};
_.m(PA,_.Z);_.H=PA.prototype;_.H.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.H.ready=function(){var Y=this;foY(function(){Y.isAttached&&dw(Y.JSC$16044_storedAdSlotMetadata,Y.JSC$16044_storedAdLayoutMetadata,Y.adSlotMetadata,Y.adLayoutMetadata)&&Ei(Mw(),Y.JSC$16044_storedAdSlotMetadata,Y.JSC$16044_storedAdLayoutMetadata)})};
_.H.attached=function(){dw(this.JSC$16044_storedAdSlotMetadata,this.JSC$16044_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&DqX(Mw(),this.JSC$16044_storedAdSlotMetadata,this.JSC$16044_storedAdLayoutMetadata)};
_.H.detached=function(){dw(this.JSC$16044_storedAdSlotMetadata,this.JSC$16044_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Ei(Mw(),this.JSC$16044_storedAdSlotMetadata,this.JSC$16044_storedAdLayoutMetadata)};
_.H.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$16044_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$16044_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$16044_storedAdLayoutMetadata!==void 0&&this.JSC$16044_storedAdSlotMetadata!==void 0&&Ei(Mw(),this.JSC$16044_storedAdSlotMetadata,this.JSC$16044_storedAdLayoutMetadata),DqX(Mw(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$16044_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$16044_storedAdSlotMetadata=this.adSlotMetadata)};
_.Uk.Object.defineProperties(PA.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.adLayoutMetadata}}});
PA.prototype.onAdMetadataChanged=PA.prototype.onAdMetadataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],PA.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],PA.prototype,"data",void 0);_.S([_.f("data.adLayoutMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],PA.prototype,"adLayoutMetadata",null);
_.S([_.R(),_.V("design:type",Object)],PA.prototype,"adSlotMetadata",void 0);_.S([_.GO("adLayoutMetadata","adSlotMetadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],PA.prototype,"onAdMetadataChanged",null);_.S([_.pD({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],PA);
_.d(PA,"ytd-page-top-ad-layout-renderer",function(){if(UqU!==void 0)return UqU;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return UqU=
Y},{mode:2});var QIE;var IY=function(){var Y=_.Z.apply(this,arguments)||this;Y.noBottomMargin=!1;Y.overlayDensity=0;Y.typographyBump=!1;Y.extractOverlay=!1;Y.extractActionBar=!1;return Y};
_.m(IY,_.Z);_.H=IY.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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.H.ready=function(){var Y=this;foY(function(){Y.isAttached&&Y.adSlotMetadata&&ZPI(Mw(),Y.adSlotMetadata)})};
_.H.attached=function(){if(this.adSlotMetadata){var Y;if(this.adSlotMetadata===((Y=this.data)==null?void 0:Y.adSlotMetadata))wt2(Mw(),this.adSlotMetadata);else{var G;_.R0(Error("Ph`"+this.adSlotMetadata+"`"+((G=this.data)==null?void 0:G.adSlotMetadata)))}}};
_.H.detached=function(){this.adSlotMetadata&&ZPI(Mw(),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&&ZPI(Mw(),this.adSlotMetadata),wt2(Mw(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Uk.Object.defineProperties(IY.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=_.z((Y=this.data)==null?void 0:(G=Y.fulfillmentContent)==null?void 0:G.fulfilledLayout,_.PPV),O;return(Y=(O=_.z(u==null?void 0:u.renderingContent,XyR))==null?void 0:O.layout)?Y.toLowerCase().replace(/_/g,"-"):""}}});
IY.prototype.onAdSlotMetadataChanged=IY.prototype.onAdSlotMetadataChanged;IY.prototype.onTypographyBumpChanged=IY.prototype.onTypographyBumpChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],IY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],IY.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],IY.prototype,"rendererBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],IY.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],IY.prototype,"noBottomMargin",void 0);_.S([_.R(),_.V("design:type",Object)],IY.prototype,"overlayDensity",void 0);_.S([_.R(),_.V("design:type",Object)],IY.prototype,"typographyBump",void 0);_.S([_.R(),_.V("design:type",Object)],IY.prototype,"extractOverlay",void 0);_.S([_.R(),_.V("design:type",Object)],IY.prototype,"extractActionBar",void 0);
_.S([_.Ox("ytd-in-feed-ad-layout-renderer"),_.V("design:type",HTMLElement)],IY.prototype,"inFeedAdLayoutRenderer",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",String),_.V("design:paramtypes",[])],IY.prototype,"layout",null);_.S([_.GO("typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IY.prototype,"onTypographyBumpChanged",null);
_.S([_.GO("data.adSlotMetadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IY.prototype,"onAdSlotMetadataChanged",null);_.S([_.pD({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],IY);
_.d(IY,"ytd-ad-slot-renderer",function(){if(QIE!==void 0)return QIE;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return QIE=Y},{mode:2});var MF_;var kQ=function(){return _.Z.apply(this,arguments)||this};
_.m(kQ,_.Z);_.H=kQ.prototype;_.H.created=function(){this.activeView=new qe(this.hostElement)};
_.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(){return null};
_.H.onTap=function(){};
_.H.onThumbnailContainerClick=function(Y){this.onClick(Y)};
_.H.onClick=function(Y){var G,u=(G=this.data)==null?void 0:G.navigationEndpoint;u&&_.z(u,_.ic)&&(this.ytSparklesClickLocationBehavior.handleClick(u,Y,!1),Y.stopPropagation())};
_.H.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var Y=_.E(this.data.impressionUrls),G=Y.next();!G.done;G=Y.next())G=G.value,m4u(G,rRY(G));this.data.activeView&&so(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",kQ.JSC$16052_DEFAULT_CLICK_LOCATION_BEHAVIOR,kQ.JSC$16052_CLICK_LOCATION_ID_MAP);this.thumbnail&&(Y=this.thumbnail.getElementsByTagName("a"),Y.length>0&&(Y=Y.namedItem("thumbnail"))&&Y.removeAttribute("href"))}};
_.H.attached=function(){var Y=this;_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&cf(Y.activeView)})};
_.H.detached=function(){_.F("stop_av_measurement_on_detach")&&cf(this.activeView)};
_.Uk.Object.defineProperties(kQ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.F("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.F("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
kQ.prototype.dataChanged=kQ.prototype.dataChanged;kQ.prototype.onTap=kQ.prototype.onTap;kQ.JSC$16052_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
kQ.JSC$16052_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"}];_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],kQ.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],kQ.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.Ne.YtSparklesClickLocationBehavior),_.V("design:type",Object)],kQ.prototype,"ytSparklesClickLocationBehavior",void 0);
_.S([_.R({selector:_.zS}),_.V("design:type",Object)],kQ.prototype,"isGridViewEnabled",void 0);_.S([_.f("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],kQ.prototype,"watchFeedBigThumbs",null);_.S([_.f("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],kQ.prototype,"thumbnailWidth",null);_.S([_.R(),_.V("design:type",Object)],kQ.prototype,"data",void 0);
_.S([_.Ox("ytd-thumbnail"),_.V("design:type",HTMLElement)],kQ.prototype,"thumbnail",void 0);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kQ.prototype,"onTap",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kQ.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],kQ);
_.d(kQ,"ytd-compact-promoted-video-renderer",function(){if(MF_!==void 0)return MF_;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return MF_=Y},{mode:1});var Hw2;_.Px("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var n0=function(){return _.Z.apply(this,arguments)||this};
_.m(n0,_.Z);n0.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],n0.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],n0.prototype,"data",void 0);_.S([_.pD({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],n0);
_.d(n0,"ytd-search-pyv-renderer",function(){if(Hw2!==void 0)return Hw2;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Hw2=Y},{mode:1});var E_R;_.Px("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var FF=function(){var Y=_.Z.apply(this,arguments)||this;Y.roundedContainer=!0;Y.JSC$16060_handleOpenPostCommentDialogActionAfterStamp=!1;Y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return Y};
_.m(FF,_.Z);_.H=FF.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$16060_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.H.handleSignalActionOpenPostCommentDialogAction=function(){var Y=_.l0(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");Y?Y.openDialog():this.JSC$16060_handleOpenPostCommentDialogActionAfterStamp=!0};
_.H.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.H.computeHideBorder=function(){return this.isInEngagementPanel};
_.H.computeIsCompact=function(){return this.isInEngagementPanel};
_.H.computeUsesCompactLockup=function(Y){return Y==="BACKSTAGE_SURFACE_TYPE_HOME"||Y==="BACKSTAGE_SURFACE_TYPE_SEARCH"||Y==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||Y==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||Y==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||Y==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.H.computeUsesFullLockup=function(){var Y,G=(Y=this.data)==null?void 0:Y.post,u;Y=(u=_.z(G,y7U))==null?void 0:u.surface;var O;u=(O=_.z(G,otT))==null?void 0:O.originalPost;var Q;if(O=Y||((Q=_.z(u,y7U))==null?void 0:Q.surface))return!this.computeUsesCompactLockup(O)&&this.useUpdatedRepostUi;var M;return((M=_.z(G,otT))==null?void 0:M.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Uk.Object.defineProperties(FF.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((G=_.z((Y=this.data)==null?void 0:Y.post,y7U))==null?void 0:G.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.useUpdatedRepostUi}}});
FF.prototype.onYtCommentModerationPanelEmpty=FF.prototype.onYtCommentModerationPanelEmpty;FF.prototype.onStampFinished=FF.prototype.onStampFinished;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],FF.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],FF.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],FF.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],FF.prototype,"roundedContainer",void 0);_.S([_.R({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.V("design:type",Boolean)],FF.prototype,"hideBorder",void 0);_.S([_.R({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.V("design:type",Boolean)],FF.prototype,"isCompact",void 0);
_.S([_.R({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.V("design:type",Boolean)],FF.prototype,"usesFullLockup",void 0);_.S([_.Yo("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],FF.prototype,"onStampFinished",null);
_.S([_.Yo("ytd-comment-moderation-panel-empty"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],FF.prototype,"onYtCommentModerationPanelEmpty",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],FF.prototype,"isInEngagementPanel",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],FF.prototype,"useUpdatedRepostUi",null);
_.S([_.pD({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],FF);
_.d(FF,"ytd-backstage-post-thread-renderer",function(){if(E_R!==void 0)return E_R;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return E_R=Y},{mode:1});var tF_;var p0=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.m(p0,_.Z);p0.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
p0.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var Y=this.data.thumbnail.thumbnails;this.isDarkTheme&&(Y=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(Y=_.dH(Y,24,void 0,"height"))?Y:void 0}};
p0.prototype.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
p0.prototype.computeHasText=function(){var Y;return!((Y=this.data)==null||!Y.text)};
_.Uk.Object.defineProperties(p0.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.cs(this.bannerImageUrl))+'");'}}});
p0.prototype.computeHasText=p0.prototype.computeHasText;p0.prototype.computeBannerImageUrl=p0.prototype.computeBannerImageUrl;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],p0.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],p0.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],p0.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],p0.prototype,"isDarkTheme",void 0);_.S([_.R(),_.V("design:type",String)],p0.prototype,"bannerImageUrl",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.V("design:type",Boolean)],p0.prototype,"hasText",void 0);_.S([_.GO("data","isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],p0.prototype,"computeBannerImageUrl",null);
_.S([_.GO("data.text"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],p0.prototype,"computeHasText",null);_.S([_.f("bannerImageUrl"),_.V("design:type",Object),_.V("design:paramtypes",[])],p0.prototype,"bannerStyle",null);_.S([_.pD({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],p0);
_.d(p0,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(tF_!==void 0)return tF_;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return tF_=Y},{mode:1});var KIV;var zT=function(){return _.Z.apply(this,arguments)||this};
_.m(zT,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],zT.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],zT.prototype,"data",void 0);_.S([_.pD({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],zT);
_.d(zT,"ytd-backstage-zero-state-renderer",function(){if(KIV!==void 0)return KIV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return KIV=Y},{mode:1});var a2k;var mo=function(){return _.Z.apply(this,arguments)||this};
_.m(mo,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],mo.prototype,"data",void 0);_.S([_.R({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],mo.prototype,"icon",void 0);_.S([_.pD({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],mo);
_.d(mo,"ytd-post-filter-zero-state-renderer",function(){if(a2k!==void 0)return a2k;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return a2k=Y},{mode:1});var TPR;var LIX={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},WA=function(){return _.Z.apply(this,arguments)||this};
_.m(WA,_.Z);WA.prototype.configureRendererStamper=function(){return LIX};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],WA.prototype,"rendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],WA.prototype,"data",void 0);_.S([_.R({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],WA.prototype,"icon",void 0);_.S([_.pD({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],WA);
_.d(WA,"ytd-post-scheduling-zero-state-renderer",function(){if(TPR!==void 0)return TPR;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return TPR=Y},{mode:1});var g_e;var r7=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return Y};
_.m(r7,_.Z);r7.prototype.onTabsActivate=function(Y){this.data&&this.data.tabs&&_.$s(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[Y.detail.selected].navigationEndpoint})};
r7.prototype.shouldShowTotalCount=function(Y){return Y&&Y.totalCount!==void 0};
r7.prototype.handleUpdatePostsTotalCountAction=function(Y){var G=this.get(["data.tabs",1,"totalCount"]),u=this.get("updatePostsTotalCountAction.updateType",Y);Y=this.get("updatePostsTotalCountAction.number",Y);G!==void 0&&u!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&Y&&(u==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(G)+Y):u==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(G)-Y))};
_.Uk.Object.defineProperties(r7.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var Y=0,G=this.data.tabs.length;Y<G;Y++)if(this.data.tabs[Y].selected)return Y;return 0}}});
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],r7.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],r7.prototype,"rendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],r7.prototype,"data",void 0);_.S([_.f("data.tabs"),_.V("design:type",Number),_.V("design:paramtypes",[])],r7.prototype,"selected",null);_.S([_.pD({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],r7);
_.d(r7,"ytd-post-stream-filter-renderer",function(){if(g_e!==void 0)return g_e;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return g_e=Y},{mode:1});var XB4;var AS=function(){return _.Z.apply(this,arguments)||this};
_.m(AS,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],AS.prototype,"kevlarBehaviors",void 0);_.S([_.R(),_.V("design:type",Object)],AS.prototype,"data",void 0);_.S([_.pD({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],AS);
_.d(AS,"ytd-channel-age-gate-renderer",function(){if(XB4!==void 0)return XB4;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return XB4=Y},{mode:1});var PbR;_.Px("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var oY=function(){var Y=_.Z.apply(this,arguments)||this;Y.data=null;return Y};
_.m(oY,_.Z);oY.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Uk.Object.defineProperties(oY.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return((Y=this.data)==null?0:(G=Y.title)==null?0:(u=G.runs)==null?0:u.length)?147:160}}});
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],oY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],oY.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],oY.prototype,"imageSizePx",null);_.S([_.pD({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],oY);
_.d(oY,"ytd-channel-owner-empty-state-renderer",function(){if(PbR!==void 0)return PbR;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return PbR=Y},{mode:1});var I21;var k8M;var iY=function(){var Y=_.Z.apply(this,arguments)||this;Y.boundSubmitSearch=function(){Y.submitSearch()};
Y.boundClearSearch=function(){Y.clearSearch()};
return Y};
_.m(iY,_.Z);_.H=iY.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=oVk||!this.input.value};
_.H.submitOnEnterKeyUp=function(Y){Y.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(){_.$s(this.hostElement,"search-query-changed",this.input.value)};
iY.prototype.toggleClearButton=iY.prototype.toggleClearButton;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],iY.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],iY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],iY.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],iY.prototype,"hideClearButton",void 0);_.S([_.R(),_.V("design:type",Object)],iY.prototype,"boundSubmitSearch",void 0);_.S([_.R(),_.V("design:type",Object)],iY.prototype,"boundClearSearch",void 0);_.S([_.Ox("#input"),_.V("design:type",Object)],iY.prototype,"input",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iY.prototype,"toggleClearButton",null);
_.S([_.pD({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],iY);
_.d(iY,"ytd-channel-switcher-search-box-renderer",function(){if(k8M!==void 0)return k8M;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return k8M=Y},{mode:1});var n_I;var RY=function(){var Y=_.Z.apply(this,arguments)||this;Y.boundSubmit=function(){Y.submit()};
return Y};
_.m(RY,_.Z);_.H=RY.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 Y=this;this.form.addEventListener("submit",function(G){return Y.onSubmit(G)})};
_.H.onSubmit=function(Y){Y.preventDefault();return!1};
_.H.toggleClearButton=function(){this.hideClearButton=oVk||!this.input.value};
_.H.submitOnEnterKeyUp=function(Y){Y.keyCode===13&&this.submit()};
_.H.submit=function(){var Y=this.data.endpoint,G=(0,_.gX.unsafeClone)(Y);_.z(G,_.Y3)?_.z(G,_.Y3).query=this.input.value:_.z(G,_.GA)&&(_.z(G,_.GA).query=this.input.value);var u=_.z(G.commandMetadata,_.ug);(u==null?0:u.url)?(u.url=_.O_(u.url,"query",this.input.value),_.$s(this.hostElement,"yt-navigate",{endpoint:G})):_.z(G,EtI)?(_.z(G,EtI).channelSwitcherQuery=this.input.value,_.sH().resolve(_.rH).resolveCommand(G,{form:{element:this.hostElement}})):(Y=Error("Qh`"+JSON.stringify(Y)),_.o0(Y))};
_.H.getUrl=function(Y){return this.get("commandMetadata.webCommandMetadata.url",Y)};
RY.prototype.toggleClearButton=RY.prototype.toggleClearButton;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],RY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],RY.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],RY.prototype,"hideClearButton",void 0);
_.S([_.R(),_.V("design:type",Object)],RY.prototype,"boundSubmit",void 0);_.S([_.Ox("#form"),_.V("design:type",HTMLFormElement)],RY.prototype,"form",void 0);_.S([_.Ox("#input"),_.V("design:type",Object)],RY.prototype,"input",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RY.prototype,"toggleClearButton",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],RY);
_.d(RY,"ytd-search-box-renderer",function(){if(n_I!==void 0)return n_I;var Y=document.createElement("template");_.r(Y,'\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  </tp-yt-paper-input>\n  <div id="search-button" class="style-scope ytd-search-box-renderer"></div>\n  <div id="clear-button" class="style-scope ytd-search-box-renderer"></div>\n</form>\n');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return n_I=Y},{mode:2});var w7=function(){var Y=_.Z.apply(this,arguments)||this;Y.showSearchBox=!0;return Y};
_.m(w7,_.Z);w7.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],w7.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],w7.prototype,"showSearchBox",void 0);_.S([_.pD({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],w7);
_.d(w7,"ytd-channel-switcher-header-renderer",function(){if(I21!==void 0)return I21;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return I21=Y},{mode:1});var FIV;var pB_;var Zl=function(){var Y=_.Z.apply(this,arguments)||this;Y.isDisplayed=!0;return Y};
_.m(Zl,_.Z);_.H=Zl.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(Y){return Y||"UNKNOWN"};
_.H.onYtServiceRequestCompleted=function(Y){Y.stopPropagation();this.isDisplayed=!1};
_.H.onClose=function(){this.isDisplayed=!1};
Zl.prototype.onYtServiceRequestCompleted=Zl.prototype.onYtServiceRequestCompleted;Zl.prototype.dataChanged=Zl.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Zl.prototype,"data",void 0);
_.S([_.R({computed:"computeType(data.type)",reflectToAttribute:!0}),_.V("design:type",String)],Zl.prototype,"type",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Zl.prototype,"isDisplayed",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zl.prototype,"dataChanged",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Zl.prototype,"onYtServiceRequestCompleted",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Zl);
_.d(Zl,"ytd-alert-with-button-renderer",function(){if(pB_!==void 0)return pB_;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return pB_=Y},{mode:1});var Dl=function(){var Y=_.Z.apply(this,arguments)||this;Y.noResult=!1;Y.enableAlertBanner=!1;Y.dismissedAlertBanner=!1;Y.hideCreateChannelButton=!1;Y.boundDismissAlertBanner=function(){Y.dismissAlertBanner()};
Y.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return Y};
_.m(Dl,_.Z);_.H=Dl.prototype;_.H.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.H.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.H.updateChannelSwitcherAction=function(Y){var G;Y=(G=_.z(Y,HMT))==null?void 0:G.page;_.z(Y,MtV)!==void 0&&(this.data=_.z(Y,MtV))};
_.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(Y,G){if(this.data&&this.data.contents&&this.data.contents.length){Y=[];var u=[];this.hideCreateChannelButton=this.noResult=!1;for(var O=document.querySelectorAll("ytd-account-item-renderer"),Q=_.E(O),M=Q.next();!M.done;M=Q.next())M=M.value,u.push(M),M.style.display="block";this.resetRightBorder(u);if(G){this.hideCreateChannelButton=!0;for(u=1;u<this.data.contents.length;u++)if(M=this.data.contents[u],_.z(M,QuI)){var t=void 0,K=void 0;Q=(t=_.z(M,QuI))==null?void 0:(K=
t.accountName)==null?void 0:K.simpleText;K=t=void 0;M=(t=_.z(M,QuI))==null?void 0:(K=t.channelHandle)==null?void 0:K.simpleText;(t=O[u-1])&&Q&&_.Pu(Q,G)?Y.push(t):_.F("enable_handle_search_on_channel_switcher")&&t&&M&&_.Pu(M.toString(),G.toString())?Y.push(t):t.style.display="none"}Y.length===0&&(this.noResult=!0);this.resetRightBorder(Y)}}};
_.H.resetRightBorder=function(Y){for(var G=0;G<Y.length;G++)Y[G].style.borderRight=!this.hideCreateChannelButton&&(G+2)%3===0||this.hideCreateChannelButton&&(G+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.H.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.H.setShowSearchBox=function(Y){if(Y&&Y.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var G=0;G<Y.contents.length;G++)_.z(Y.contents[G],_.l6)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.H.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Uk.Object.defineProperties(Dl.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null?0:Y.contents)}}});
Dl.prototype.onContinuationItemsUpdated=Dl.prototype.onContinuationItemsUpdated;Dl.prototype.searchQueryChanged=Dl.prototype.searchQueryChanged;Dl.prototype.onDataChanged=Dl.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Dl.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.DD),_.V("design:type",Object)],Dl.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Dl.prototype,"data",void 0);_.S([_.Ox("ytd-channel-switcher-header-renderer"),_.V("design:type",Object)],Dl.prototype,"channelSwitcherHeaderRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],Dl.prototype,"noResult",void 0);
_.S([_.R(),_.V("design:type",Object)],Dl.prototype,"enableAlertBanner",void 0);_.S([_.R(),_.V("design:type",Object)],Dl.prototype,"dismissedAlertBanner",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Dl.prototype,"hideCreateChannelButton",void 0);_.S([_.f("data.contents"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Dl.prototype,"isLoading",null);_.S([_.R(),_.V("design:type",Object)],Dl.prototype,"boundDismissAlertBanner",void 0);
_.S([_.R({computed:"computeButtonOverride()"}),_.V("design:type",Object)],Dl.prototype,"buttonOverride",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Dl.prototype,"onDataChanged",null);_.S([_.Yo("search-query-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,String]),_.V("design:returntype")],Dl.prototype,"searchQueryChanged",null);
_.S([_.Yo("yt-next-continuation-data-updated"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Dl.prototype,"onContinuationItemsUpdated",null);_.S([_.pD({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Dl);
_.d(Dl,"ytd-channel-switcher-page-renderer",function(){if(FIV!==void 0)return FIV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return FIV=Y},{mode:1});var z1T;var mG1;var hS=function(){var Y=_.Z.apply(this,arguments)||this;Y.images=[];Y.selectedImageIndex=0;return Y};
_.m(hS,_.Z);_.H=hS.prototype;
_.H.ready=function(){_.yn(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.yn(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.yn(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.yn(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,!1,this)};
_.H.onThumbnailClick=function(Y){if(Y=Y.event_.detail)this.selectedImageIndex=this.images.indexOf(Y)};
_.H.updateImageThumbnails=function(Y){Y=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:Y.event_.detail});this.images.splice(this.selectedImageIndex,1,Y);this.images=[].concat(_.c8(this.images))};
_.H.cancelImageRepositions=function(){this.selectedImageIndex=0;_.$s(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.H.saveImageRepositions=function(){this.selectedImageIndex=0;_.$s(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Uk.Object.defineProperties(hS.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var Y=this;return(this.images||[]).map(function(G,u){return{image:G,selected:u===Y.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],hS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Ox("ytd-backstage-image-preview-renderer"),_.V("design:type",Object)],hS.prototype,"imagePreviewContainer",void 0);_.S([_.Ox(".thumbnail-images-container"),_.V("design:type",HTMLElement)],hS.prototype,"thumbnailImagesContainer",void 0);_.S([_.R(),_.V("design:type",Array)],hS.prototype,"images",void 0);
_.S([_.R(),_.V("design:type",Object)],hS.prototype,"repositionInstructions",void 0);_.S([_.R(),_.V("design:type",Object)],hS.prototype,"selectedImageIndex",void 0);_.S([_.f("images","selectedImageIndex"),_.V("design:type",Array),_.V("design:paramtypes",[])],hS.prototype,"thumbnailRendererDatas",null);_.S([_.f("images","selectedImageIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],hS.prototype,"selectedImageData",null);
_.S([_.pD({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],hS);
_.$o()(hS,"ytd-backstage-multi-image-reposition-renderer",function(){if(mG1===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);mG1=Y}Y=mG1;return Y},{allowedProps:["images",
"repositionInstructions"],mode:1});var d7=function(Y,G){_.C7.call(this);this.uploadUrl=Y;this.channelId=G;this.imagesUploadData=[]};
_.m(d7,_.C7);d7.prototype.getAllUploadStatuses=function(){var Y=this,G,u,O;return _.a(function(Q){if(Q.nextAddress==1)return Q.yield(WIl(Y),2);G=Q.yieldResult;u=G.get("succeed");O=G.get("failed");return Q.return(u.concat(O))})};
var xGI=function(Y){var G,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(WIl(Y),2);G=O.yieldResult;u=G.get("failed");u.length>0&&r8T(Y,u);return O.return(Y.getAllUploadStatuses())})},WIl=function(Y){var G,u,O,Q,M,t,K;
return _.a(function(L){if(L.nextAddress==1)return G=new Map,L.yield(Promise.allSettled(Y.imagesUploadData.map(function(g){return g.uploadPromise})),2);
u=L.yieldResult;O=[];Q=_.E(u);for(M=Q.next();!M.done;M=Q.next())t=M.value,t.status==="fulfilled"&&O.push(t.value);K=Y.imagesUploadData.map(function(g){return g.image}).filter(function(g){return O.every(function(P){return P.id!==g.id})});
G.set("succeed",O);G.set("failed",K);return L.return(G)})},r8T=function(Y,G){G=_.E(G);
for(var u=G.next();!u.done;u=G.next()){var O=Y;u=u.value;f2I(O,u.id)>=0&&O.cancel(u.id);var Q=new CbT(u),M=_.$$k(O.uploadUrl,{"X-YouTube-ChannelId":O.channelId},u.imageBlob);Q.transfer=M;Q.uploadPromise=y84(M,u);O.imagesUploadData.push(Q);M.run()}};
d7.prototype.cancel=function(Y){var G=f2I(this,Y);G!==-1&&((G=this.imagesUploadData[G].transfer)&&G.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(u){return u.image.id!==Y}))};
var f2I=function(Y,G){return Y.imagesUploadData.findIndex(function(u){return u.image.id===G})},y84=function(Y,G){return new Promise(function(u,O){Y.listen("l",function(){var Q=Y.getResponseText();
Q?(Q=JSON.parse(Q).encryptedBlobId,G.encryptedBlobId=Q,u(G)):O("upload failed")});
Y.listen("n",function(){O("upload failed")})})},CbT=function(Y){this.image=Y};var XR4=function(Y,G,u,O,Q){this.id=Y;this.imageBlob=G;this.localImageSrc=u;this.naturalWidth=O;this.naturalHeight=Q;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 e1X=[".jpeg",".jpg",".png"],bY=function(){var Y=_.Z.apply(this,arguments)||this;Y.showImagesPreview=!1;Y.pollOptions=[];Y.errorMessage="";Y.optionPlaceholderText="";Y.optionDefaultText="";Y.JSC$16116_imageId=0;Y.maxFileSizeMb=0;Y.maxAspectRatio=0;Y.invalidFileSizeError="";Y.invalidAspectRatioError="";Y.invalidFileTypeError="";Y.imageSelector=new sE(null,"single_file",e1X);return Y};
_.m(bY,_.Z);_.H=bY.prototype;_.H.ready=function(){_.yn(this.imageSelector,"j",this.onImageSelect,!1,this);_.yn(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.yn(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.H.dataChanged=function(){var Y,G,u=_.z((Y=this.data)==null?void 0:(G=Y.cellTemplate)==null?void 0:G.onEmptyCellTap,S22);if(u&&u.uploadUrl&&u.channelId){var O;this.maxFileSizeMb=((O=u.imageValidationInfo)==null?void 0:O.maxFileSizeMb)||0;var Q;this.maxAspectRatio=((Q=u.imageValidationInfo)==null?void 0:Q.allowedMaxAspectRatio)||0;var M;this.invalidFileSizeError=this.getSimpleString((M=this.data)==null?void 0:M.invalidFileSizeError);var t;this.invalidAspectRatioError=this.getSimpleString((t=this.data)==
null?void 0:t.invalidAspectRatioError);var K;this.invalidFileTypeError=this.getSimpleString((K=this.data)==null?void 0:K.invalidFileTypeError);this.uploadManager=new d7(u.uploadUrl,u.channelId)}};
_.H.onEditorInfoChange=function(){this.optionPlaceholderText=_.Ri(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Ri(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.H.observeAddImageError=function(){this.errorMessage!==""&&_.$s(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.H.onPollOptionsChange=function(){for(var Y=!1,G=[],u=0;u<this.pollOptions.length;u++){var O=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(u+1);this.pollOptions[u].placeholderText!==O?(Y=!0,G.push(Object.assign({},this.pollOptions[u],{placeholderText:O}))):G.push(this.pollOptions[u])}Y&&(this.pollOptions=G);this.isValid()?_.$s(this.hostElement,"yt-commentbox-post-enable"):_.$s(this.hostElement,"yt-commentbox-post-disable")};
_.H.createPollOptions=function(Y){var G=[],u;Y=(u=Y==null?void 0:Y.minPollOptions)!=null?u:0;for(u=0;u<Y;u++)G.push(this.createPollOption());return G};
_.H.onImageSelect=function(Y){var G=this,u,O,Q,M,t,K;return _.a(function(L){if(L.nextAddress==1){if(G.selectedImageIndex===void 0)return L.jumpTo(0);u=Y.files[0];G.errorMessage="";O=G.validateImage(u);if(O!=="")return G.errorMessage=O,L.return();Q=new Zf(G.maxAspectRatio,!1,!0);return L.yield(Q.transform(u),3)}if(L.nextAddress!=4)return M=L.yieldResult,M.transformedData?M.invalidAspectRatio?(G.errorMessage=G.invalidAspectRatioError,L.return()):L.yield(Pz4(G.JSC$16116_imageId,Y.files[0],M.transformedData),
4):(G.errorMessage=G.invalidFileTypeError,L.return());t=L.yieldResult;G.JSC$16116_imageId++;r8T(G.uploadManager,[t]);K=Object.assign({},G.pollOptions[G.selectedImageIndex],{image:t});G.pollOptions.splice(G.selectedImageIndex,1,K);G.refreshPollOptions();_.$s(G.hostElement,"yt-backstage-poll-image-select");_.Sd(L)})};
_.H.validateImage=function(Y){return Y.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.H.refreshPollOptions=function(){this.pollOptions=[].concat(_.c8(this.pollOptions))};
_.H.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.c8(this.pollOptions),[this.createPollOption()]))};
_.H.onRemovePollOption=function(Y){var G=this.pollOptions[Y.model.index];G&&G.image&&this.uploadManager.cancel(G.image.id);this.pollOptions.splice(Y.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.$s(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.H.onTextInput=function(){this.refreshPollOptions()};
_.H.onImageButtonClick=function(Y){this.selectedImageIndex=Y.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(Y){Y=Y.event_.detail;for(var G=0,u=[],O=_.E(this.pollOptions),Q=O.next();!Q.done;Q=O.next())Q=Q.value,Q.image!==void 0?(Q=Object.assign({},Q,{image:Y[G]}),u.push(Q),G++):u.push(Q);this.showImagesPreview=!1;this.pollOptions=[].concat(_.c8(u))};
_.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 Y=0,G=_.E(this.pollOptions),u=G.next();!u.done;u=G.next())if(u=u.value,u.optionText.trim()!==""||u.image!==void 0){if(!u.image||this.hasCustomOptionText&&u.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;Y++}return Y>=Number(this.editorInfo.minPollOptions)};
_.H.getAllUploadStatuses=function(){var Y=this,G,u,O,Q;return _.a(function(M){if(M.nextAddress==1)return M.yield(Y.uploadManager.getAllUploadStatuses(),2);G=M.yieldResult;u=_.E(G);for(O=u.next();!O.done;O=u.next())if(Q=O.value,Q.encryptedBlobId===void 0)return M.return(xGI(Y.uploadManager));return M.return(G)})};
_.H.getPostCreateOptions=function(){for(var Y=[],G=_.E(this.pollOptions),u=G.next();!u.done;u=G.next())u=u.value,u.image!==void 0&&Y.push({text:this.hasCustomOptionText?u.optionText:u.placeholderText,image:u.image});return Y};
_.H.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.H.createButtonRenderer=function(Y,G){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:Y,accessibilityData:{accessibilityData:{label:this.getSimpleString(Y)}},isDisabled:G}};
_.H.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.H.computeThumbnailRendererData=function(Y){return Y?{image:Y,selected:!1}:void 0};
_.H.getSimpleString=function(Y){return _.Ri(Y)};
_.H.updateOptionTextFromBinding=function(Y){if(Y.target){var G=Array.from(_.l0(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(Y.target);if(G>=0){var u;this.pollOptions[G].optionText=(u=Y.detail.value)!=null?u:""}}};
_.Uk.Object.defineProperties(bY.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var Y,G;return this.pollOptions.length<((G=(Y=this.editorInfo)==null?void 0:Y.maxPollOptions)!=null?G:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(Y){return Y.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(Y){return Y.image}).map(function(Y){return Y.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(Y){return Y.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var Y,G=(Y=this.data)==null?void 0:Y.addOptionButtonText;return G?this.createButtonRenderer(G,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var Y,G=(Y=this.data)==null?void 0:Y.repositionImagesButtonLabel;return G?this.createButtonRenderer(G,!this.hasImages):void 0}}});
bY.prototype.onPollOptionsChange=bY.prototype.onPollOptionsChange;bY.prototype.observeAddImageError=bY.prototype.observeAddImageError;bY.prototype.onEditorInfoChange=bY.prototype.onEditorInfoChange;bY.prototype.dataChanged=bY.prototype.dataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],bY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Ox("ytd-backstage-multi-image-reposition-renderer"),_.V("design:type",Object)],bY.prototype,"imageRepositionContainer",void 0);
_.S([_.R(),_.V("design:type",Object)],bY.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],bY.prototype,"editorInfo",void 0);_.S([_.R(),_.V("design:type",d7)],bY.prototype,"uploadManager",void 0);_.S([_.R(),_.V("design:type",Object)],bY.prototype,"showImagesPreview",void 0);_.S([_.R(),_.V("design:type",Array)],bY.prototype,"pollOptions",void 0);_.S([_.R(),_.V("design:type",Object)],bY.prototype,"errorMessage",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bY.prototype,"dataChanged",null);_.S([_.Ex("editorInfo"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bY.prototype,"onEditorInfoChange",null);_.S([_.GO("errorMessage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bY.prototype,"observeAddImageError",null);
_.S([_.Ex("pollOptions"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bY.prototype,"onPollOptionsChange",null);_.S([_.f("pollOptions","editorInfo"),_.V("design:type",Object),_.V("design:paramtypes",[])],bY.prototype,"isAllowedToAddOption",null);_.S([_.f("pollOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],bY.prototype,"hasImages",null);
_.S([_.f("pollOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],bY.prototype,"imagesToReposition",null);_.S([_.f("pollOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],bY.prototype,"hasCustomOptionText",null);_.S([_.f("data","isAllowedToAddOption"),_.V("design:type",Object),_.V("design:paramtypes",[])],bY.prototype,"addOptionButton",null);_.S([_.f("data","hasImages"),_.V("design:type",Object),_.V("design:paramtypes",[])],bY.prototype,"repositionImagesButton",null);
_.S([_.pD({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],bY);
_.d(bY,"ytd-backstage-image-poll-editor-renderer",function(){if(z1T!==void 0)return z1T;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return z1T=Y},{mode:2});var A8R={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 o_e;var SP=function(){var Y=_.Z.apply(this,arguments)||this;Y.a11yConfig=A8R;Y.imageDisplayOffsetTop=0;Y.imageDisplayOffsetLeft=0;Y.pickerDisplayOffsetTop=0;Y.pickerDisplayOffsetLeft=0;Y.showPreviewContainer=!0;Y.startPicker=!1;Y.repositionOptional=!1;Y.editOnlyMode=!1;Y.savedImageDisplayOffsetTop=0;Y.savedImageDisplayOffsetLeft=0;return Y};
_.m(SP,_.Z);_.H=SP.prototype;_.H.created=function(){_.mA.requestAvailability()};
_.H.ready=function(){};
_.H.onArrowKeysDown=function(Y){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){Y.detail.keyboardEvent.preventDefault();var G=0,u=0,O="";switch(Y.detail.keyboardEvent.key){case "ArrowUp":Igt(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?O=this.a11yConfig.reachBottomOfImage:G=this.imageHeight*.05*-1;break;case "ArrowDown":Igt(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?O=this.a11yConfig.reachTopOfImage:
G=this.imageHeight*.05;break;case "ArrowLeft":Igt(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?O=this.a11yConfig.reachRightOfImage:u=this.imageWidth*.05*-1;break;case "ArrowRight":Igt(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?O=this.a11yConfig.reachLeftOfImage:u=this.imageWidth*.05}O&&_.Q6(O)&&_.$s(this.hostElement,"iron-announce",{text:_.Q6(O)});if(u||G)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+G)),Y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),Y=_.Q6(this.a11yConfig.imageVerticalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+u)),Y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),Y=_.Q6(this.a11yConfig.imageHorizontalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})),Y&&_.$s(this.hostElement,"iron-announce",{text:Y})}};
_.H.getPreviewPosition=function(Y,G,u,O){return Math.round(100*(Y+G*.5-u)/O)};
_.H.calculateDisplayPosition=function(){var Y=this.imageData.naturalWidth,G=this.imageData.naturalHeight;this.displayScale=Math.max(200/Y,200/G);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var u=Y*this.displayScale*this.imageData.previewCoordinates.left,O=G*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=G>Y?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-u;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=Y>G?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-O;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=Y*this.displayScale;this.imageHeight=G*this.displayScale};
_.H.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.H.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.H.getSignedPosition=function(Y,G,u){return G==="X"&&_.DE("HTML_DIR")==="rtl"?u==="-"?Y+"px":Y*-1+"px":u==="-"?Y*-1+"px":Y+"px"};
_.H.pickerMove=function(Y){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var G=this.pickerOffsetX-Y.clientX,u=this.pickerOffsetY-Y.clientY;this.pickerOffsetX=Y.clientX;this.pickerOffsetY=Y.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
u)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-G))}};
_.H.pickerMoveStart=function(Y){this.startPicker=!0;this.pickerOffsetX=Y.clientX;this.pickerOffsetY=Y.clientY};
_.H.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var Y=this.generateCropPreview();Y&&_.$s(this.hostElement,"ytd-backstage-image-preview-coordinates-update",Y)};
_.H.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.$s(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.H.deleteImage=function(){_.$s(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 Y=this.generateCropPreview();Y&&_.$s(this.hostElement,"ytd-backstage-image-preview-coordinates-save",Y)};
_.H.getPreviewOffset=function(Y,G,u){return G&&Y?(u==="X"&&_.DE("HTML_DIR")==="rtl"?300/G*Y:300/G*Y*-1)+"px":"0px"};
_.H.getSimpleText=function(Y){return Y?_.Ri(Y):""};
_.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}};
_.Uk.Object.defineProperties(SP.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var Y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Q6(this.a11yConfig.imageVerticalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})+"\n"+_.Q6(this.a11yConfig.verticalRepositionInstruction)}Y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Q6(this.a11yConfig.imageHorizontalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})+"\n"+_.Q6(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 Y,G,u=(Y=this.instruction)==null?void 0:(G=Y.previewInstruction)==null?void 0:G.editButtonLabel;return u?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:u,accessibilityData:{accessibilityData:{label:this.getSimpleText(u)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O,Q=this.editOnlyMode?(Y=this.instruction)==null?void 0:(G=Y.editInstruction)==null?void 0:G.saveImagesButtonLabel:(u=this.instruction)==null?void 0:(O=u.editInstruction)==null?void 0:O.saveButtonLabel;return Q?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:Q,accessibilityData:{accessibilityData:{label:this.getSimpleText(Q)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=(Y=this.instruction)==null?void 0:(G=Y.previewInstruction)==null?void 0:G.deleteButtonLabel;return u?{size:"SIZE_SMALL",text:u,accessibilityData:{accessibilityData:{label:this.getSimpleText(u)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=(Y=this.instruction)==null?void 0:(G=Y.editInstruction)==null?void 0:G.cancelButtonLabel;Y=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return u?{style:Y,size:"SIZE_SMALL",text:u,accessibilityData:{accessibilityData:{label:this.getSimpleText(u)}}}: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"}}});
SP.prototype.onEditOnlyModeUpdate=SP.prototype.onEditOnlyModeUpdate;SP.prototype.onImageChange=SP.prototype.onImageChange;_.S([_.R(),_.V("design:type",XR4)],SP.prototype,"imageData",void 0);_.S([_.R(),_.V("design:type",Object)],SP.prototype,"instruction",void 0);_.S([_.R(),_.V("design:type",Object)],SP.prototype,"a11yConfig",void 0);_.S([_.R(),_.V("design:type",Number)],SP.prototype,"imageWidth",void 0);_.S([_.R(),_.V("design:type",Number)],SP.prototype,"imageHeight",void 0);
_.S([_.R(),_.V("design:type",Number)],SP.prototype,"displayScale",void 0);_.S([_.R(),_.V("design:type",Object)],SP.prototype,"imageDisplayOffsetTop",void 0);_.S([_.R(),_.V("design:type",Object)],SP.prototype,"imageDisplayOffsetLeft",void 0);_.S([_.R(),_.V("design:type",Object)],SP.prototype,"pickerDisplayOffsetTop",void 0);_.S([_.R(),_.V("design:type",Object)],SP.prototype,"pickerDisplayOffsetLeft",void 0);_.S([_.R(),_.V("design:type",Object)],SP.prototype,"showPreviewContainer",void 0);
_.S([_.R(),_.V("design:type",Object)],SP.prototype,"startPicker",void 0);_.S([_.R(),_.V("design:type",Number)],SP.prototype,"pickerOffsetX",void 0);_.S([_.R(),_.V("design:type",Number)],SP.prototype,"pickerOffsetY",void 0);_.S([_.R(),_.V("design:type",Object)],SP.prototype,"repositionOptional",void 0);_.S([_.R(),_.V("design:type",Object)],SP.prototype,"editOnlyMode",void 0);_.S([_.Ox("#picker-container"),_.V("design:type",HTMLElement)],SP.prototype,"JSC$16129_pickerContainer",void 0);
_.S([_.Ox("#picker"),_.V("design:type",HTMLElement)],SP.prototype,"picker",void 0);_.S([_.Ox("#preview-clipper"),_.V("design:type",HTMLElement)],SP.prototype,"previewClipper",void 0);_.S([_.Ox("#image-in-picker-background"),_.V("design:type",HTMLImageElement)],SP.prototype,"JSC$16129_imageInBackground",void 0);_.S([_.Ox("#image-in-picker"),_.V("design:type",HTMLImageElement)],SP.prototype,"JSC$16129_imageInPicker",void 0);
_.S([_.Ox("#image-in-preview-clipper"),_.V("design:type",HTMLImageElement)],SP.prototype,"JSC$16129_imageInPreviewClipper",void 0);_.S([_.f("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],SP.prototype,"altLabelForImage",null);_.S([_.f("imageHeight","imageWidth"),_.V("design:type",Number),_.V("design:paramtypes",[])],SP.prototype,"pickerSize",null);
_.S([_.f("imageHeight","imageWidth"),_.V("design:type",Object),_.V("design:paramtypes",[])],SP.prototype,"imageOrientationStyle",null);_.S([_.f("instruction"),_.V("design:type",Object),_.V("design:paramtypes",[])],SP.prototype,"editButton",null);_.S([_.f("instruction","editOnlyMode"),_.V("design:type",Object),_.V("design:paramtypes",[])],SP.prototype,"saveButton",null);_.S([_.f("instruction"),_.V("design:type",Object),_.V("design:paramtypes",[])],SP.prototype,"deleteButton",null);
_.S([_.f("instruction","editOnlyMode"),_.V("design:type",Object),_.V("design:paramtypes",[])],SP.prototype,"cancelButton",null);_.S([_.f("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.V("design:type",Number),_.V("design:paramtypes",[])],SP.prototype,"cropOffsetTop",null);_.S([_.f("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.V("design:type",Number),_.V("design:paramtypes",[])],SP.prototype,"cropOffsetLeft",null);
_.S([_.f("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],SP.prototype,"pickerBackgroundStyle",null);_.S([_.f("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],SP.prototype,"pickerDisplayStyle",null);_.S([_.f("cropOffsetLeft","cropOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],SP.prototype,"imageInPickerStyle",null);
_.S([_.f("cropOffsetLeft","cropOffsetTop","pickerSize"),_.V("design:type",String),_.V("design:paramtypes",[])],SP.prototype,"previewClipperStyle",null);_.S([_.Ex("imageData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SP.prototype,"onImageChange",null);_.S([_.Ex("editOnlyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SP.prototype,"onEditOnlyModeUpdate",null);
_.S([_.f("showPreviewContainer"),_.V("design:type",String),_.V("design:paramtypes",[])],SP.prototype,"pickerModeStyle",null);_.S([_.pD({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],SP);
_.d(SP,"ytd-backstage-image-preview-renderer",function(){if(o_e!==void 0)return o_e;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return o_e=Y},{mode:1});var iwE;var R11={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 wB_;var Zw2;var Nw=function(){var Y=_.Z.apply(this,arguments)||this;Y.a11yConfig=R11;Y.imageDisplayOffsetTop=0;Y.imageDisplayOffsetLeft=0;Y.pickerDisplayOffsetTop=0;Y.pickerDisplayOffsetLeft=0;Y.cropCoordinatesSaved=!1;Y.previewSize=0;Y.startPicker=!1;Y.repositionOptional=!1;return Y};
_.m(Nw,_.Z);_.H=Nw.prototype;_.H.created=function(){_.mA.requestAvailability()};
_.H.ready=function(){};
_.H.onArrowKeysDown=function(Y){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){Y.detail.keyboardEvent.preventDefault();var G=0,u=0,O="";switch(Y.detail.keyboardEvent.key){case "ArrowUp":k3A(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?O=this.a11yConfig.reachBottomOfImage:G=this.imageHeight*.05*-1;break;case "ArrowDown":k3A(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?O=this.a11yConfig.reachTopOfImage:
G=this.imageHeight*.05;break;case "ArrowLeft":k3A(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?O=this.a11yConfig.reachRightOfImage:u=this.imageWidth*.05*-1;break;case "ArrowRight":k3A(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?O=this.a11yConfig.reachLeftOfImage:u=this.imageWidth*.05}O&&_.Q6(O)&&_.$s(this.hostElement,"iron-announce",{text:_.Q6(O)});if(u||G)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+G)),Y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),Y=_.Q6(this.a11yConfig.imageVerticalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+u)),Y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),Y=_.Q6(this.a11yConfig.imageHorizontalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})),Y&&_.$s(this.hostElement,"iron-announce",{text:Y})}};
_.H.getPreviewPosition=function(Y,G,u,O){return Math.round(100*(Y+G*.5-u)/O)};
_.H.displayImage=function(){var Y=this.JSC$16140_pickerContainer.getBoundingClientRect().width,G=this.JSC$16140_pickerContainer.getBoundingClientRect().height,u=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),O=this.JSC$16140_imageInBackground.naturalWidth,Q=this.JSC$16140_imageInBackground.naturalHeight;this.displayScale=Math.max(u/O,u/Q);this.imageWidth=O*this.displayScale;this.imageHeight=Q*this.displayScale;this.pickerDisplayOffsetLeft=(Y-u)/2;this.pickerDisplayOffsetTop=
(G-u)/2;this.imageDisplayOffsetLeft=Q>O?this.pickerDisplayOffsetLeft:(Y-this.imageWidth)/2;this.imageDisplayOffsetTop=O>Q?this.pickerDisplayOffsetTop:(G-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.H.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$16140_imageInBackground.src=this.imageData.toString(),this.JSC$16140_imageInPicker.src=this.imageData.toString(),this.JSC$16140_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.H.getSignedPosition=function(Y,G,u){return G==="X"&&_.DE("HTML_DIR")==="rtl"?u==="-"?Y+"px":Y*-1+"px":u==="-"?Y*-1+"px":Y+"px"};
_.H.pickerMove=function(Y){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var G=this.pickerOffsetX-Y.clientX,u=this.pickerOffsetY-Y.clientY;this.pickerOffsetX=Y.clientX;this.pickerOffsetY=Y.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
u)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-G))}};
_.H.pickerMoveStart=function(Y){this.startPicker=!0;this.pickerOffsetX=Y.clientX;this.pickerOffsetY=Y.clientY};
_.H.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.H.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.$s(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.H.getPreviewOffset=function(Y,G,u,O){return G&&Y&&u?(O==="X"&&_.DE("HTML_DIR")==="rtl"?u/G*Y:u/G*Y*-1)+"px":"0px"};
_.H.getSimpleText=function(Y){return Y?_.Ri(Y):""};
_.H.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var Y=this.cropOffsetTop/this.imageHeight,G=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,u=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,O=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.l0(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.$s(this.hostElement,"yt-img-crop-coordinates-update",{top:Y,right:G,bottom:u,left:O})}};
_.Uk.Object.defineProperties(Nw.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var Y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Q6(this.a11yConfig.imageVerticalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})+"\n"+_.Q6(this.a11yConfig.verticalRepositionInstruction)}Y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Q6(this.a11yConfig.imageHorizontalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})+"\n"+_.Q6(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 Y,G=(Y=this.learnMore.runs[0])==null?void 0:Y.navigationEndpoint,u;return((u=_.z(G,_.SK))==null?void 0:u.url)||void 0}}}});
Nw.prototype.onImageDataChange=Nw.prototype.onImageDataChange;_.S([_.R(),_.V("design:type",Object)],Nw.prototype,"imageData",void 0);_.S([_.R(),_.V("design:type",Object)],Nw.prototype,"instruction",void 0);_.S([_.R(),_.V("design:type",Object)],Nw.prototype,"a11yConfig",void 0);_.S([_.R(),_.V("design:type",Number)],Nw.prototype,"imageWidth",void 0);_.S([_.R(),_.V("design:type",Number)],Nw.prototype,"imageHeight",void 0);_.S([_.R(),_.V("design:type",Number)],Nw.prototype,"displayScale",void 0);
_.S([_.R(),_.V("design:type",Object)],Nw.prototype,"imageDisplayOffsetTop",void 0);_.S([_.R(),_.V("design:type",Object)],Nw.prototype,"imageDisplayOffsetLeft",void 0);_.S([_.R(),_.V("design:type",Object)],Nw.prototype,"pickerDisplayOffsetTop",void 0);_.S([_.R(),_.V("design:type",Object)],Nw.prototype,"pickerDisplayOffsetLeft",void 0);_.S([_.R(),_.V("design:type",Object)],Nw.prototype,"cropCoordinatesSaved",void 0);_.S([_.R(),_.V("design:type",Object)],Nw.prototype,"previewSize",void 0);
_.S([_.R(),_.V("design:type",Object)],Nw.prototype,"startPicker",void 0);_.S([_.R(),_.V("design:type",Number)],Nw.prototype,"pickerOffsetX",void 0);_.S([_.R(),_.V("design:type",Number)],Nw.prototype,"pickerOffsetY",void 0);_.S([_.R(),_.V("design:type",Object)],Nw.prototype,"repositionOptional",void 0);_.S([_.Ox("#picker-container"),_.V("design:type",HTMLElement)],Nw.prototype,"JSC$16140_pickerContainer",void 0);_.S([_.Ox("#picker"),_.V("design:type",HTMLElement)],Nw.prototype,"picker",void 0);
_.S([_.Ox("#image-in-picker-background"),_.V("design:type",HTMLImageElement)],Nw.prototype,"JSC$16140_imageInBackground",void 0);_.S([_.Ox("#image-in-picker"),_.V("design:type",HTMLImageElement)],Nw.prototype,"JSC$16140_imageInPicker",void 0);_.S([_.Ox("#image-in-preview-clipper"),_.V("design:type",HTMLImageElement)],Nw.prototype,"JSC$16140_imageInPreviewClipper",void 0);_.S([_.Ox("#full-image-as-preview"),_.V("design:type",HTMLImageElement)],Nw.prototype,"imageAsPreview",void 0);
_.S([_.f("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],Nw.prototype,"altLabelForImage",null);_.S([_.f("imageHeight","imageWidth"),_.V("design:type",Number),_.V("design:paramtypes",[])],Nw.prototype,"pickerSize",null);_.S([_.f("imageHeight","imageWidth"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nw.prototype,"imageOrientationStyle",null);
_.S([_.f("instruction.previewInstruction.editButtonLabel"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nw.prototype,"editButton",null);_.S([_.f("instruction.editInstruction.saveButtonLabel"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nw.prototype,"saveButton",null);_.S([_.f("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.V("design:type",Number),_.V("design:paramtypes",[])],Nw.prototype,"cropOffsetTop",null);
_.S([_.f("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.V("design:type",Number),_.V("design:paramtypes",[])],Nw.prototype,"cropOffsetLeft",null);_.S([_.f("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],Nw.prototype,"pickerBackgroundStyle",null);_.S([_.f("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],Nw.prototype,"pickerDisplayStyle",null);
_.S([_.f("cropOffsetLeft","cropOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],Nw.prototype,"imageInPickerStyle",null);_.S([_.f("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.V("design:type",String),_.V("design:paramtypes",[])],Nw.prototype,"previewClipperStyle",null);_.S([_.GO("imageData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Nw.prototype,"onImageDataChange",null);
_.S([_.f("cropCoordinatesSaved"),_.V("design:type",String),_.V("design:paramtypes",[])],Nw.prototype,"pickerModeStyle",null);_.S([_.f("instruction.editInstruction.learnMore"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nw.prototype,"learnMore",null);_.S([_.f("learnMore"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nw.prototype,"learnMoreUrl",null);_.S([_.Ff({is:"yt-img-crop-picker",disableElementRegistration:!0})],Nw);
_.d(Nw,"yt-img-crop-picker",function(){if(Zw2===void 0){var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;wB_===void 0&&(wB_=document.createElement("template"));var O=wB_;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Zw2=Y}Y=Zw2;return Y},{mode:2});var jP=function(){var Y=_.Z.apply(this,arguments)||this;Y.errorMessage="";Y.hasPreview=!1;Y.isBackstagePost=!1;Y.dismissButtonOverrides={size:"XS"};return Y};
_.m(jP,_.Z);_.H=jP.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(Y){_.l0(this.hostElement).querySelector("#preview-picker").imageData=Y;this.hasPreview=!0;_.$s(this.hostElement,"yt-backstage-image-select-preview")};
_.H.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var Y=_.l0(this.hostElement).querySelector("#dropzone");Y.classList.remove("dragover");Y.classList.remove("error");_.$s(this.hostElement,"yt-backstage-image-select-cancel")};
_.H.setupOverlay=function(){var Y=this.imageUploadEndpoint;this.removeOverlay();if(Y&&Y.imageValidationInfo){var G=_.l0(this.hostElement).querySelector("#dropzone"),u=_.l0(this.hostElement).querySelector("#select");this.overlay=new hw(Y.uploadUrl,Y.channelId,Y.imageValidationInfo.maxFileSizeMb,Y.imageValidationInfo.allowedMaxAspectRatio,G,u,!0);_.yn(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.yn(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.yn(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.yn(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.yn(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.H.removeOverlay=function(){this.overlay&&(_.F_(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.F_(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.F_(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.F_(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.F_(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.H.onDragOver=function(Y){var G=_.l0(this.hostElement).querySelector("#dropzone");_.$3(G,"dragover",Y.value)};
_.H.onPreview=function(Y){this.setPreview(Y.value)};
_.H.onImageError=function(Y){if(Y.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var G;Y=(G=this.data)==null?void 0:G.fileSizeError}else if(Y.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var u;Y=(u=this.data)==null?void 0:u.invalidError}else if(Y.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var O;Y=(O=this.data)==null?void 0:O.invalidAspectRatioError}else return;this.errorMessage=_.Ri(Y);_.l0(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.H.onImageAlert=function(Y){this.onImageError(Y)};
_.H.uploadPromise=function(){var Y=this,G=this.overlay&&this.overlay.uploadPromise();if(G)return G.catch(function(){throw Error(Y.data?_.Ri(Y.data.uploadFailureError):"");})};
_.Uk.Object.defineProperties(jP.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var Y,G;if((Y=this.data)==null?0:(G=Y.icon)==null?0:G.iconType)return _.Ux(this.data.icon.iconType)}}});
jP.prototype.setupOverlay=jP.prototype.setupOverlay;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],jP.prototype,"rendererStamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],jP.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],jP.prototype,"imageUploadEndpoint",void 0);_.S([_.R(),_.V("design:type",Object)],jP.prototype,"errorMessage",void 0);
_.S([_.R(),_.V("design:type",hw)],jP.prototype,"overlay",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],jP.prototype,"hasPreview",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],jP.prototype,"isBackstagePost",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],jP.prototype,"selectionCancel",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],jP.prototype,"previewCancel",null);
_.S([_.f("data.icon.iconType"),_.V("design:type",Object),_.V("design:paramtypes",[])],jP.prototype,"icon",null);_.S([_.R(),_.V("design:type",Object)],jP.prototype,"dismissButtonOverrides",void 0);_.S([_.GO("imageUploadEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jP.prototype,"setupOverlay",null);_.S([_.pD({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],jP);
_.d(jP,"ytd-backstage-image-select-renderer",function(){if(iwE!==void 0)return iwE;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return iwE=Y},{mode:1});var DGE;var h1_;var Vz=function(){var Y=_.Z.apply(this,arguments)||this;Y.selected=!1;return Y};
_.m(Vz,_.Z);_.H=Vz.prototype;_.H.computeSelected=function(Y){return Y==null?void 0:Y.selected};
_.H.computeTransform=function(Y,G,u){var O,Q,M=(Q=(O=this.imageContainer)==null?void 0:O.getBoundingClientRect())!=null?Q:{width:0,height:0};O=Math.max(M.width/G,M.height/u);u=u*O*Y.top;return"translateX("+this.getSignedPosition(G*O*Y.left,"X","-")+") translateY("+this.getSignedPosition(u,"Y","-")+")"};
_.H.getSignedPosition=function(Y,G,u){return G==="X"&&_.DE("HTML_DIR")==="rtl"?u==="-"?Y+"px":Y*-1+"px":u==="-"?Y*-1+"px":Y+"px"};
_.H.onClick=function(){var Y;_.$s(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(Y=this.data)==null?void 0:Y.image)};
_.H.onKeyPress=function(Y){if(Y.keyCode===13)this.onClick()};
_.Uk.Object.defineProperties(Vz.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?void 0:(G=Y.image)==null?void 0:G.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)!=null&&Y.image){var G;Y=(G=this.data)==null?void 0:G.image;return Y.previewCoordinates.top!==0||Y.previewCoordinates.left!==0?(G=this.computeTransform(Y.previewCoordinates,Y.naturalWidth,Y.naturalHeight),Y.naturalHeight>=Y.naturalWidth?"width:inherit;transform:"+G+";":"height:inherit;transform:"+G+";"):Y.naturalHeight>=Y.naturalWidth?"width:inherit;":"height:inherit;"}}}});
Vz.prototype.onKeyPress=Vz.prototype.onKeyPress;_.S([_.Ox(".image-container"),_.V("design:type",HTMLElement)],Vz.prototype,"imageContainer",void 0);_.S([_.R(),_.V("design:type",Object)],Vz.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.V("design:type",Object)],Vz.prototype,"selected",void 0);_.S([_.f("data.image"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vz.prototype,"thumbnailUrl",null);
_.S([_.f("data.image","data.image.previewCoordinates"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vz.prototype,"thumbnailStyle",null);_.S([_.Yo("keypress"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Vz.prototype,"onKeyPress",null);_.S([_.pD({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Vz);
_.$o()(Vz,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(h1_===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);h1_=Y}Y=h1_;return Y},{allowedProps:["data"],
mode:2});var lY=function(Y,G,u){u=u===void 0?!1:u;_.C7.call(this);var O=this;this.dropZoneOverlay=new qR(Y);this.selectOverlay=u?new sE(G,"multiple_file",["image/*"]):new sE(G,"single_file",["image/*"]);this.handler=new _.ae(this);_.vF(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(G,"click",function(){O.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.m(lY,_.C7);lY.prototype.onChange=function(Y){var G;(G=Y.files)!=null&&G.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:Y.files}))};var BA=function(){var Y=_.Z.apply(this,arguments)||this;Y.addImageErrorMessage="";Y.errorMessage="";Y.images=[];Y.selectedImageIndex=0;Y.modern=_.F("web_modern_buttons");Y.maxNumImagesPerPost=_.Jy("max_num_images_per_post_web_ui");Y.JSC$16155_imageId=0;return Y};
_.m(BA,_.Z);_.H=BA.prototype;_.H.created=function(){var Y=this;this.JSC$16155_ytReorderableController=new _.YcV(100,function(G){Y.handleDrop(G)})};
_.H.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.$s(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.H.observeDragToReorder=function(){var Y=this;if(this.showImagesPreview){var G,u=uBU(_.cq.getInstance(),(G=this.data)==null?void 0:G.dragToReorderTooltip);_.AN.addLowPriorityJob(function(){_.UK(Y.hostElement,u,Y.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(Y){return(Y==null?void 0:Y.localImageSrc)||void 0};
_.H.onRendererstamperFinished=function(){_.GtM(this.JSC$16155_ytReorderableController,_.l0(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.l0(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.H.handleDrop=function(Y){var G=Y.currDragItem;if(G!=null&&G.data){Y=this.images[this.selectedImageIndex];var u=G.data.image,O=this.images.indexOf(u)||0;G=_.Dt(G.parentNode.children,G);this.images.splice(O,1);this.images.splice(G,0,u);this.images=[].concat(_.c8(this.images));this.selectedImageIndex=this.images.indexOf(Y)}};
_.H.setUpImagePicker=function(){var Y=this.imageUploadEndpoint;Y&&Y.imageValidationInfo&&(this.uploadManager=new d7(Y.uploadUrl,Y.channelId),this.initialPicker||(this.initialPicker=new lY(this.dropzone,this.selectLink,!0),_.yn(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new lY(this.addImageButtonContainer,this.addImageSelectButton),_.yn(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.yn(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.yn(this.imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.yn(_.l0(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.H.detached=function(){this.initialPicker&&(_.F_(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.F_(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.H7(this.JSC$16155_ytReorderableController)};
_.H.onInitialSelectImages=function(Y){var G=this;return _.a(function(u){return u.yield(G.onSelectImages(Y,!1),0)})};
_.H.onAddImage=function(Y){var G=this;return _.a(function(u){return u.yield(G.onSelectImages(Y,!0),0)})};
_.H.onSelectImages=function(Y,G){var u=this,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N,h,q;return _.a(function(U){switch(U.nextAddress){case 1:G?u.addImageErrorMessage="":(u.images=[],u.errorMessage="");O=Y.detail;Q=u.validateImages([].concat(_.c8(O)));if(Q!=="")return G?u.addImageErrorMessage=Q:u.errorMessage=Q,U.return();M=[].concat(_.c8(O)).map(function(Mj){return(new Zf(u.maxAspectRatio,!1,!0)).transform(Mj)});
return U.yield(Promise.allSettled(M),2);case 2:t=U.yieldResult,K=_.E(t.entries()),L=K.next();case 3:if(L.done){U.jumpTo(5);break}g=L.value;P=_.E(g);I=P.next().value;k=P.next().value;n=I;p=k;if(p.status!=="fulfilled"){e=C=W=void 0;G?u.addImageErrorMessage=_.Ri((W=u.data)==null?void 0:W.invalidError):u.errorMessage=u.errorMessage===""?_.Ri((C=u.data)==null?void 0:C.invalidError):_.Ri((e=u.data)==null?void 0:e.multiFileError);U.jumpTo(4);break}w=p.value;w.cropped&&_.$s(u.hostElement,"yt-backstage-multi-image-cropped");
if(w.invalidAspectRatio){h=N=B=void 0;G?u.addImageErrorMessage=_.Ri((B=u.data)==null?void 0:B.invalidAspectRatioError):u.errorMessage=u.errorMessage===""?_.Ri((N=u.data)==null?void 0:N.invalidAspectRatioError):_.Ri((h=u.data)==null?void 0:h.multiFileError);U.jumpTo(4);break}return U.yield(Pz4(u.JSC$16155_imageId,Y.detail[n],w.transformedData),8);case 8:q=U.yieldResult,u.images.push(q),u.JSC$16155_imageId++;case 4:L=K.next();U.jumpTo(3);break;case 5:if(u.errorMessage!==""||u.addImageErrorMessage!==
"")return U.return();G?r8T(u.uploadManager,[u.images[u.images.length-1]]):r8T(u.uploadManager,u.images);u.images=[].concat(_.c8(u.images));u.selectedImageIndex=G?Math.max(u.images.length-1,0):0;_.$s(u.hostElement,"yt-backstage-multi-image-select");_.Sd(U)}})};
_.H.onThumbnailClick=function(Y){if(Y=Y.event_.detail)this.selectedImageIndex=this.images.indexOf(Y)};
_.H.validateImages=function(Y){if(Y.length>this.maxNumImagesPerPost){var G;return _.Ri((G=this.data)==null?void 0:G.multiImageExceedMaxImageCountError)}var u=1048576*this.maxFileSizeMb;Y=Y.filter(function(M){return M.size>u}).length;
if(Y===0)return"";var O,Q;Y=Y>1?(O=this.data)==null?void 0:O.multiFileError:(Q=this.data)==null?void 0:Q.fileSizeError;return _.Ri(Y)};
_.H.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.c8(this.images));this.selectedImageIndex=0};
_.H.repositionImage=function(Y){this.images[this.selectedImageIndex].previewCoordinates=Y.event_.detail;this.images=[].concat(_.c8(this.images))};
_.H.getAllUploadStatuses=function(){var Y=this,G,u,O,Q;return _.a(function(M){if(M.nextAddress==1)return M.yield(Y.uploadManager.getAllUploadStatuses(),2);G=M.yieldResult;u=_.E(G);for(O=u.next();!O.done;O=u.next())if(Q=O.value,Q.encryptedBlobId===void 0)return M.return(xGI(Y.uploadManager));return M.return(G)})};
_.H.hasImages=function(){return this.images.length>0};
_.H.cancel=function(){for(var Y=this.uploadManager,G=_.E(Y.imagesUploadData),u=G.next();!u.done;u=G.next())Y.cancel(u.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.$s(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Uk.Object.defineProperties(BA.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.imageUploadEndpoint)==null?void 0:(G=Y.imageValidationInfo)==null?void 0:G.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.imageUploadEndpoint)==null?void 0:(G=Y.imageValidationInfo)==null?void 0:G.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var Y,G;if((Y=this.data)==null?0:(G=Y.icon)==null?0:G.iconType)return _.Ux(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.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 Y=this;return(this.images||[]).map(function(G,u){return{renderer:{image:G,selected:u===Y.selectedImageIndex}}})}}});
BA.prototype.setUpImagePicker=BA.prototype.setUpImagePicker;BA.prototype.onRendererstamperFinished=BA.prototype.onRendererstamperFinished;BA.prototype.observeDragToReorder=BA.prototype.observeDragToReorder;BA.prototype.observeAddImageError=BA.prototype.observeAddImageError;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],BA.prototype,"rendererStamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],BA.prototype,"ytRendererBehavior",void 0);
_.S([_.Ox("#dropzone"),_.V("design:type",HTMLElement)],BA.prototype,"dropzone",void 0);_.S([_.Ox("#select-link"),_.V("design:type",HTMLElement)],BA.prototype,"selectLink",void 0);_.S([_.Ox("#thumbnail-drag-drop-area"),_.V("design:type",HTMLElement)],BA.prototype,"thumbnailDragDropArea",void 0);_.S([_.Ox("#add-image-button-container"),_.V("design:type",HTMLElement)],BA.prototype,"addImageButtonContainer",void 0);
_.S([_.Ox("#add-image-button"),_.V("design:type",HTMLElement)],BA.prototype,"addImageSelectButton",void 0);_.S([_.Ox("#image-preview-container"),_.V("design:type",Object)],BA.prototype,"imagePreviewContainer",void 0);_.S([_.R(),_.V("design:type",Object)],BA.prototype,"addImageErrorMessage",void 0);_.S([_.R(),_.V("design:type",Object)],BA.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],BA.prototype,"errorMessage",void 0);
_.S([_.R(),_.V("design:type",Object)],BA.prototype,"imageUploadEndpoint",void 0);_.S([_.R(),_.V("design:type",Array)],BA.prototype,"images",void 0);_.S([_.R(),_.V("design:type",lY)],BA.prototype,"initialPicker",void 0);_.S([_.R(),_.V("design:type",lY)],BA.prototype,"addImagePicker",void 0);_.S([_.R(),_.V("design:type",d7)],BA.prototype,"uploadManager",void 0);_.S([_.R(),_.V("design:type",Object)],BA.prototype,"selectedImageIndex",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],BA.prototype,"modern",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],BA.prototype,"maxNumImagesPerPost",void 0);_.S([_.f("imageUploadEndpoint"),_.V("design:type",Number),_.V("design:paramtypes",[])],BA.prototype,"maxAspectRatio",null);_.S([_.f("imageUploadEndpoint"),_.V("design:type",Number),_.V("design:paramtypes",[])],BA.prototype,"maxFileSizeMb",null);
_.S([_.f("data.icon.iconType"),_.V("design:type",Object),_.V("design:paramtypes",[])],BA.prototype,"dropIcon",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],BA.prototype,"selectionCancel",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],BA.prototype,"previewCancel",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],BA.prototype,"dataForAddImageButton",null);
_.S([_.f("errorMessage"),_.V("design:type",String),_.V("design:paramtypes",[])],BA.prototype,"dropzoneClass",null);_.S([_.f("images"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],BA.prototype,"showImagesPreview",null);_.S([_.f("images"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],BA.prototype,"containMaxImages",null);_.S([_.GO("addImageErrorMessage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BA.prototype,"observeAddImageError",null);
_.S([_.GO("showImagesPreview"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BA.prototype,"observeDragToReorder",null);_.S([_.f("images","selectedImageIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],BA.prototype,"selectedImageData",null);_.S([_.f("images","selectedImageIndex"),_.V("design:type",Array),_.V("design:paramtypes",[])],BA.prototype,"thumbnailRenderers",null);
_.S([_.Yo("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BA.prototype,"onRendererstamperFinished",null);_.S([_.GO("imageUploadEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BA.prototype,"setUpImagePicker",null);_.S([_.pD({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],BA);
_.d(BA,"ytd-backstage-multi-image-select-renderer",function(){if(DGE!==void 0)return DGE;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return DGE=Y},{mode:1});var dGT;var bwX;var SfI;var $Q=function(){var Y=_.Z.apply(this,arguments)||this;Y.boundCaptureFocus=function(G){Y.onCaptureFocus(G)};
return Y};
_.m($Q,_.Z);_.H=$Q.prototype;_.H.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.H.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.H.onCaptureFocus=function(Y){_.wG(Y).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.H.getIconType=function(Y){return Y?"yt-icons:"+Y.toLowerCase():null};
_.H.onSelect=function(){var Y;if((Y=this.data)==null?0:Y.onSelectCommand)if(_.F("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var G;((G=_.z(this.data.onSelectCommand.commandMetadata,_.ug))==null?0:G.url)?_.$s(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.sH().resolve(_.rH).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Uk.Object.defineProperties($Q.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Ri(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}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],$Q.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],$Q.prototype,"data",void 0);_.S([_.Ox("#item"),_.V("design:type",HTMLElement)],$Q.prototype,"item",void 0);_.S([_.f("data.label"),_.V("design:type",String),_.V("design:paramtypes",[])],$Q.prototype,"label",null);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],$Q.prototype,"value",null);_.S([_.pD({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],$Q);
_.d($Q,"ytd-privacy-dropdown-item-renderer",function(){if(SfI!==void 0)return SfI;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return SfI=Y},{mode:1});var qw=function(){var Y=_.Z.apply(this,arguments)||this;Y.value="";Y.label="";Y.disabled=!1;return Y};
_.m(qw,_.Z);_.H=qw.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 Y;if(this.value&&(Y=this.data)!=null&&Y.entries){Y=_.E(this.data.entries);for(var G=Y.next();!G.done;G=Y.next())if((G=this.getRendererForEntry(G.value))&&this.getItemRendererValue(G)===this.value){this.label=this.ytComponentBehavior.getSimpleString(G.label);break}}};
_.H.setInitialLabel=function(){if(this.data&&this.data.entries)for(var Y=_.E(this.data.entries),G=Y.next();!G.done;G=Y.next())if(G=this.getRendererForEntry(G.value)){if(G.isSelected){this.label=this.ytComponentBehavior.getSimpleString(G.label);break}this.data.label&&(this.label=this.data.label)}};
_.H.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var Y=_.E(this.data.entries),G=Y.next();!G.done;G=Y.next()){G=this.getRendererForEntry(G.value);var u=void 0;if((u=G)==null?0:u.isSelected)return this.getItemRendererValue(G)||-1}return-1};
_.H.getItemRendererValue=function(Y){return"stringValue"in Y||"int32Value"in Y?Y.stringValue||Y.int32Value||null:null};
_.H.getRendererForEntry=function(Y){return Y.dropdownItemRenderer||Y.privacyDropdownItemRenderer||Y.navigationDropdownItemRenderer||null};
_.H.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("value-changed",this.value))};
_.H.updateValueFromBinding=function(Y){this.value=Y.detail.value};
qw.prototype.valueChangedForBinding=qw.prototype.valueChangedForBinding;qw.prototype.valueChanged=qw.prototype.valueChanged;qw.prototype.dataChanged=qw.prototype.dataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],qw.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],qw.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],qw.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],qw.prototype,"value",void 0);_.S([_.R(),_.V("design:type",Object)],qw.prototype,"label",void 0);_.S([_.Ox("#entries"),_.V("design:type",Object)],qw.prototype,"entries",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],qw.prototype,"disabled",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qw.prototype,"dataChanged",null);
_.S([_.Ex("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qw.prototype,"valueChanged",null);_.S([_.GO("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qw.prototype,"valueChangedForBinding",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],qw);
_.d(qw,"ytd-flat-dropdown-renderer",function(){if(bwX!==void 0)return bwX;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return bwX=Y},{mode:1});var NPk;var si=function(){var Y=_.Z.apply(this,arguments)||this;Y.quizOptions=[];Y.explanationPlaceholderText="";Y.optionPlaceholderText="";Y.correctAnswerIndex=-1;Y.isMarkAnswerTooltipShown=!1;Y.timer=0;return Y};
_.m(si,_.Z);_.H=si.prototype;_.H.dataChanged=function(){this.optionPlaceholderText=_.Ri(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Ri(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.H.onMarkCorrectAnswer=function(Y){var G,u=((G=this.quizOptions[this.correctAnswerIndex])==null?void 0:G.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[Y.model.index]=Object.assign({},this.quizOptions[Y.model.index],{explanationText:u,isCorrect:!0});this.correctAnswerIndex=Y.model.index;this.quizOptions=[].concat(_.c8(this.quizOptions))};
_.H.updatePlaceholderTexts=function(){for(var Y=!1,G=[],u=0;u<this.quizOptions.length;u++){var O=this.optionPlaceholderText+" "+(u+1),Q=void 0;((Q=this.quizOptions[u])==null?void 0:Q.placeholderText)!==O?(Y=!0,G.push(Object.assign({},this.quizOptions[u],{placeholderText:O}))):G.push(this.quizOptions[u])}Y&&(this.quizOptions=G);this.isValid()?_.$s(this.hostElement,"yt-commentbox-post-enable"):_.$s(this.hostElement,"yt-commentbox-post-disable")};
_.H.getSimpleString=function(Y){return _.Ri(Y)};
_.H.createQuizOptions=function(Y){var G=[],u;Y=(u=Y==null?void 0:Y.minQuizOptions)!=null?u:0;for(u=0;u<Y;u++)G.push(this.createQuizOption());return G};
_.H.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.c8(this.quizOptions),[this.createQuizOption()]))};
_.H.onInput=function(){this.quizOptions=[].concat(_.c8(this.quizOptions))};
_.H.onExplanationInput=function(){_.$s(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.H.onRemoveQuizOption=function(Y){this.quizOptions.splice(Y.model.index,1);Y.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:Y.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.c8(this.quizOptions));this.quizOptions.length===0&&_.$s(this.hostElement,"yt-quiz-attachment-dismiss")};
_.H.updateHintRenderer=function(){var Y=this;clearTimeout(this.timer);this.timer=setTimeout(function(){Y.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 Y=0,G=0,u=_.E(this.quizOptions),O=u.next();!O.done;O=u.next()){O=O.value;var Q=void 0;if(((Q=O.optionText)==null?void 0:Q.trim())!==""||O.isCorrect){O.isCorrect&&G++;Q=void 0;if(this.hasCustomOptionText&&((Q=O.optionText)==null?void 0:Q.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;Y++}}return Y>=
Number(this.editorInfo.minQuizOptions)&&G===1};
_.H.getPostCreateOptions=function(){for(var Y=[],G=_.E(this.quizOptions),u=G.next();!u.done;u=G.next()){u=u.value;var O=void 0;((O=u.optionText)==null?void 0:O.trim())!==""&&Y.push({pollOption:{text:u.optionText,explanation:u.explanationText},isCorrect:u.isCorrect})}return Y};
_.H.getExplanationText=function(){var Y;return((Y=this.quizOptions[this.correctAnswerIndex])==null?void 0:Y.explanationText)||""};
_.H.maybeDisplayMarkAnswerEduToolTip=function(){var Y,G,u,O,Q,M,t;this.shouldShowMarkAnswerTooltip()&&((Y=this.editorInfo)==null?0:(G=Y.markAnswerButton)==null?0:(u=G.buttonRenderer)==null?0:(O=u.hint)==null?0:(Q=O.hintRenderer)==null?0:(M=Q.content)==null?0:(t=M.bubbleHintRenderer)==null?0:t.text)&&(_.cq.getInstance(),Y=Uh(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,(Y==null?void 0:Y.length)>0&&this.optionSelectors&&_.Yy(Y[0],this.optionSelectors[0]))};
_.H.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var Y=0,G=_.E(this.quizOptions),u=G.next();!u.done;u=G.next()){u=u.value;var O=void 0;((O=u.optionText)==null?void 0:O.trim())!==""&&Y++;if(u.isCorrect)return!1}return Y<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(Y){if(Y.target){var G=Array.from(_.l0(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(Y.target);if(G>=0){var u;this.quizOptions[G].optionText=(u=Y.detail.value)!=null?u:""}}};
_.Uk.Object.defineProperties(si.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=(Y=this.editorInfo)==null?void 0:(G=Y.addOptionButton)==null?void 0:G.buttonRenderer;u&&(u.style="STYLE_SUGGESTIVE",u.size="SIZE_SMALL",u.isDisabled=!this.isAllowedToAddOption);return(u==null?0:u.text)?u:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var Y,G;return this.quizOptions.length<((G=(Y=this.editorInfo)==null?void 0:Y.maxQuizOptions)!=null?G:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(Y){var G;return(G=Y.optionText)==null?void 0:G.trim()})}}});
si.prototype.updatePlaceholderTexts=si.prototype.updatePlaceholderTexts;si.prototype.dataChanged=si.prototype.dataChanged;_.S([_.R(),_.V("design:type",Object)],si.prototype,"editorInfo",void 0);_.S([_.R(),_.V("design:type",Array)],si.prototype,"quizOptions",void 0);_.S([_.R(),_.V("design:type",Object)],si.prototype,"explanationPlaceholderText",void 0);_.S([_.Q4(".option-selector-button"),_.V("design:type",Array)],si.prototype,"optionSelectors",void 0);
_.S([_.Ex("editorInfo"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],si.prototype,"dataChanged",null);_.S([_.f("editorInfo","isAllowedToAddOption","quizOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],si.prototype,"addAnswerButton",null);_.S([_.f("editorInfo","quizOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],si.prototype,"isAllowedToAddOption",null);
_.S([_.Ex("quizOptions"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],si.prototype,"updatePlaceholderTexts",null);_.S([_.f("quizOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],si.prototype,"hasCustomOptionText",null);_.S([_.pD({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],si);
_.d(si,"ytd-backstage-quiz-editor-renderer",function(){if(NPk!==void 0)return NPk;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return NPk=Y},{mode:2});var jII;var VFE=(u6.FIRSTDAYOFWEEK+1)%7;var l2I;var BPE=[],$GV=0,qfE=0;$GV=0;qfE=24;if(.25*(qfE-$GV)<0)l2I=[];else{for(var sIl=$GV;sIl<qfE;sIl+=.25)BPE.push(sIl);l2I=BPE}var c8E=l2I.map(function(Y){Y=Y*60*60;return{secondsSinceMidnight:Y,text:(new oi(7)).format(new Date(0,0,0,0,0,Y))}});var UGX;var cA=function(){var Y=_.Z.apply(this,arguments)||this;Y.skipNextOpenDialog=!1;Y.errorMessage="";Y.previousMonthLabel=_.Q6("PREVIOUS_MONTH_LABEL");Y.nextMonthLabel=_.Q6("NEXT_MONTH_LABEL");return Y};
_.m(cA,_.Z);_.H=cA.prototype;_.H.attached=function(){var Y=this,G=new MutationObserver(function(){Y.JSC$16197_calendarMain.scrollHeight>0&&(G.disconnect(),Y.calendarConfig&&Y.calendarConfig.selectedDate&&Y.scrollToDate())});
G.observe(this.JSC$16197_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){G.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 Y=this.validateDateText();Y.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(Y.details)):this.textbox.setAttribute("invalid","")}};
_.H.handleDayClick=function(Y){Y.model.day.date&&(this.commitDate(Y.model.day.date),this.dialog.close())};
_.H.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var Y=fgu(this.calendarConfig.selectedDate,this.renderData);Y!==void 0&&this.JSC$16197_calendarMain.scrollToIndex(Y)}};
_.H.scrollToNextMonth=function(){this.JSC$16197_calendarMain.scrollToIndex(this.JSC$16197_calendarMain.firstVisibleIndex+1)};
_.H.scrollToPrevMonth=function(){this.JSC$16197_calendarMain.firstVisibleIndex===0&&this.JSC$16197_calendarMain.scrollTo(0,0);this.JSC$16197_calendarMain.scrollToIndex(this.JSC$16197_calendarMain.firstVisibleIndex-1)};
_.H.onFormSubmit=function(Y){Y.preventDefault();this.calendarConfig&&(Y=this.validateDateText(),Y.isValid&&(this.commitDate(Y.details),this.dialog.close()))};
_.H.onEscOrClickingOutside=function(Y){Y=Y.detail.path&&!!Y.detail.path.length&&Y.detail.path[0];if(Y.classList.contains("ytd-calendar-date-picker")){Y===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var G=0;G<this.dropdownButton.children.length;G++)this.dropdownButton.children[G]===Y&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}Y=this.textbox.value!==this.dateText;G=this.validateDateText();Y&&G.isValid&&this.commitDate(G.details);this.dialog.close();this.textbox.value=
this.dateText};
_.H.commitDate=function(Y){this.calendarConfig&&(this.set("calendarConfig.selectedDate",Y),_.$s(this.hostElement,"ytd-calendar-date-selected",Y))};
_.H.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var Y=this.textbox.value;var G=new Date;Y=(new ByY(2)).parse(Y,G,{validate:!0})===Y.length?r94(G):void 0;if(!Y)return this.errorMessage=_.Q6("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};G=this.calendarConfig.start;var u=this.calendarConfig.end;if(Fnu(Y,G))return this.errorMessage=_.Q6("ENTER_DATE_OR_LATER",{allowed_date:WnI(G)}),{isValid:!1,details:void 0};if(Fnu(u,Y))return this.errorMessage=
_.Q6("ENTER_DATE_OR_EARLIER",{allowed_date:WnI(u)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:Y}};
_.Uk.Object.defineProperties(cA.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?WnI(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var Y=this.calendarConfig,G=[],u=0;u<7;u++)G.push(u6.NARROWWEEKDAYS[(u+VFE)%7]);u=[];for(var O=new Date(Y.start.year,Y.start.month);O.getFullYear()<Y.end.year||O.getFullYear()===Y.end.year&&O.getMonth()<=Y.end.month;){var Q=u,M=Q.push,t=O.getFullYear(),K=O.getMonth(),L=Y,g=void 0,P=[],I=Object.freeze({extraCssClass:"invisible",debugClass:""}),k=new Date(t,K),n=r94(k);k=k.getDay();for(var p=r94(new Date);n.month===
K;){k!==VFE&&g||(g=Array.from({length:7}).fill(I),P.push(g));var W={date:{year:t,month:K,day:n.day},extraCssClass:"",debugClass:""};L.selectedDate&&W.date&&nZt(W.date,L.selectedDate)&&(W.extraCssClass+=" selected");if(Fnu(n,L.start)||Fnu(L.end,n))W.extraCssClass+=" disabled";nZt(n,p)&&(W.extraCssClass+=" today");W.extraCssClass=W.extraCssClass.trim();g[(k-VFE+7)%7]=W;n=z2A(n);k=(k+1)%7}M.call(Q,{weeks:P,monthLabel:u6.SHORTMONTHS[K]+" "+t,year:t,month:K,monthLabelExtraCssClass:P[0][2]===I?"shift-down-label":
""});O.setMonth(O.getMonth()+1)}return{months:u,daysOfWeekLabel:G}}}}});
cA.prototype.onEscOrClickingOutside=cA.prototype.onEscOrClickingOutside;cA.prototype.scrollToDate=cA.prototype.scrollToDate;_.S([_.R(),_.V("design:type",Object)],cA.prototype,"calendarConfig",void 0);_.S([_.R(),_.V("design:type",Object)],cA.prototype,"skipNextOpenDialog",void 0);_.S([_.R(),_.V("design:type",Object)],cA.prototype,"errorMessage",void 0);_.S([_.R(),_.V("design:type",Object)],cA.prototype,"previousMonthLabel",void 0);
_.S([_.R(),_.V("design:type",Object)],cA.prototype,"nextMonthLabel",void 0);_.S([_.Ox("#textbox"),_.V("design:type",HTMLInputElement)],cA.prototype,"textbox",void 0);_.S([_.Ox("#calendar-dialog"),_.V("design:type",Object)],cA.prototype,"dialog",void 0);_.S([_.Ox("#calendar-main"),_.V("design:type",Object)],cA.prototype,"JSC$16197_calendarMain",void 0);_.S([_.Ox("#date-picker"),_.V("design:type",HTMLElement)],cA.prototype,"dropdownButton",void 0);
_.S([_.f("calendarConfig.selectedDate"),_.V("design:type",String),_.V("design:paramtypes",[])],cA.prototype,"dateText",null);_.S([_.f("calendarConfig","calendarConfig.selectedDate"),_.V("design:type",Object),_.V("design:paramtypes",[])],cA.prototype,"renderData",null);_.S([_.GO("renderData","calendarConfig.selectedDate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cA.prototype,"scrollToDate",null);
_.S([_.Yo("iron-overlay-canceled"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],cA.prototype,"onEscOrClickingOutside",null);_.S([_.Ff({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],cA);
_.d(cA,"ytd-calendar-date-picker",function(){if(UGX!==void 0)return UGX;var Y=document.createElement("template");_.r(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return UGX=Y},{mode:2});var v_V=_.Q6("UTC_OFFSET_FORMAT",{utc_offset:(new oi("Z")).format(new Date)}),J8I=(new Date).getTimezoneOffset()*-60,YXl=new Date,Gu1,uIe=AH(YXl.getTimezoneOffset());Gu1=izE(wx1(uIe,YXl));var OsU=_.Q6("LOCAL_TIME_GMT_LABEL",{gmt_text:Gu1.replace("+0","+").replace("-0","-").replace(":00","")}),Ui=function(){var Y=_.Z.apply(this,arguments)||this;Y.selectedTimeIndex=0;Y.selectedTimezoneIndex=0;Y.timeOfDayOptions=c8E;return Y};
_.m(Ui,_.Z);_.H=Ui.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 Y=mBg();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=Y,this.selectedTimeIndex=0;else{var G=xBt(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},Y,{selectedDate:G.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(u){return u.secondsSinceMidnight===G.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.H.onDatePicked=function(Y){this.selectedDate=Y.detail};
_.H.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.$s(this.hostElement,"ytd-date-time-selection-cancelled")};
_.H.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var Y=this.selectedDate;Y=new Date(Y.year,Y.month,Y.day);_.$s(this.hostElement,"ytd-date-time-selection-update",Math.floor(Y.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+Y.getTimezoneOffset()*60))}};
_.H.getTimezoneFormat=function(Y){return Y.localizedDisplayText?Y.localizedDisplayText:_.Q6("TIMEZONE_FORMAT",{utc_offset_text:""+Y.localizedUtcOffset,city_name:""+Y.localizedName})};
_.H.updateSelectedTimeIndexFromBinding=function(Y){this.selectedTimeIndex=Y.detail.value};
_.H.updateSelectedTimezoneIndexFromBinding=function(Y){this.selectedTimezoneIndex=Y.detail.value};
_.Uk.Object.defineProperties(Ui.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y=this.data.timezoneOptions;var G={name:"Etc/Unknown",localizedName:_.Q6("LOCAL_TIME_LABEL"),localizedUtcOffset:v_V,utcOffsetSec:""+J8I,localizedDisplayText:OsU};Y?Y.length&&Y[0].name!==G.name&&(Y[0].localizedDisplayText||(G.localizedDisplayText=""),Y.unshift(G)):Y=[G];return Y}}},
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]}}});
Ui.prototype.onDateTimeTimezoneChange=Ui.prototype.onDateTimeTimezoneChange;Ui.prototype.onDatePicked=Ui.prototype.onDatePicked;Ui.prototype.updateDefaultSelectedValue=Ui.prototype.updateDefaultSelectedValue;_.S([_.R(),_.V("design:type",Object)],Ui.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Ui.prototype,"calendarConfig",void 0);_.S([_.R(),_.V("design:type",Object)],Ui.prototype,"selectedDate",void 0);_.S([_.R(),_.V("design:type",Object)],Ui.prototype,"selectedTimeIndex",void 0);
_.S([_.R(),_.V("design:type",Object)],Ui.prototype,"selectedTimezoneIndex",void 0);_.S([_.Ox("#time-listbox"),_.V("design:type",Object)],Ui.prototype,"timeListBox",void 0);_.S([_.Ox("#timezone-listbox"),_.V("design:type",Object)],Ui.prototype,"timezoneListBox",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ui.prototype,"rendererStamperBehavior",void 0);_.S([_.f("data.timezoneOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ui.prototype,"timeZones",null);
_.S([_.Ex("data","timeZones"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ui.prototype,"updateDefaultSelectedValue",null);_.S([_.f("selectedTimezoneIndex","timeZones"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ui.prototype,"selectedTimezone",null);_.S([_.f("selectedTimeIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ui.prototype,"selectedTime",null);
_.S([_.Yo("ytd-calendar-date-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Ui.prototype,"onDatePicked",null);_.S([_.GO("selectedTimezone","selectedTime","selectedDate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ui.prototype,"onDateTimeTimezoneChange",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Ui);
_.d(Ui,"ytd-date-time-picker-renderer",function(){if(jII!==void 0)return jII;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return jII=Y},{mode:1});var Qc2;var vA=function(){var Y=_.Z.apply(this,arguments)||this;Y.boundOnTapDismissButton=function(){Y.dismissTapHandler()};
Y.dismissButtonOverrides={size:"XS"};return Y};
_.m(vA,_.Z);vA.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}}}}}};
vA.prototype.dismissTapHandler=function(){_.$s(this.hostElement,"yt-backstage-attachment-dismissed")};
vA.prototype.computeAttachmentType=function(Y){return Y?Y.backstageImageRenderer?"image":Y.videoRenderer?"video":"none":"none"};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],vA.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],vA.prototype,"attachmentPreview",void 0);_.S([_.R(),_.V("design:type",Object)],vA.prototype,"dismissButton",void 0);_.S([_.R(),_.V("design:type",Object)],vA.prototype,"boundOnTapDismissButton",void 0);
_.S([_.R(),_.V("design:type",Object)],vA.prototype,"dismissButtonOverrides",void 0);_.S([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.V("design:type",String)],vA.prototype,"attachmentType",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],vA);
_.d(vA,"ytd-backstage-dismissable-attachment",function(){if(Qc2!==void 0)return Qc2;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Qc2=Y},{mode:1});var Mj1;var JS=function(){var Y=_.Z.apply(this,arguments)||this;Y.selectedVideoId=void 0;Y.picker=void 0;Y.dismissButtonOverrides={size:"XS"};Y.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return Y};
_.m(JS,_.Z);_.H=JS.prototype;_.H.onServiceRequestCompleted=function(Y){Y.stopPropagation()};
_.H.handleAddVideoPreviewAction=function(Y){Y=this.get("addVideoPreviewAction",Y);this.onGetVideoPreviewSuccess(Y)};
_.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(Y){var G=this,u=_.Ri(this.get("addVideoLinkAction.title",Y)),O=this.get("addVideoLinkAction.onePickHostId",Y);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",Y);O&&(this.picker||(u=_.YtR(_.H0Y(O).setTitle(u).addView(cGl()).addView(s3T()),function(Q){G.onPickVideo(Q)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",Y)||u.addView("youtube"),this.picker=u.build()),this.picker.setVisible(!0))};
_.H.onPickVideo=function(Y){if(Y)if(Y.action==="cancel")_.$s(this.hostElement,"yt-video-link-button-cancel");else if(Y.action==="picked"){Y=Y.docs;if(!Y||Y.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(Y=(Y==null?0:Y.length)?Y[0]:void 0)?Y.id:void 0;this.setVideoPreview()}};
_.H.setVideoPreview=function(){var Y=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){Y.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.H.onGetVideoPreviewSuccess=function(Y){if(Y&&Y.videoPreview&&Y.cancelButton)this.videoPreview=Y.videoPreview,this.cancelButton=Y.cancelButton,_.$s(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;_.$s(this.hostElement,"yt-video-link-cancel")};
_.H.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
JS.prototype.onServiceRequestCompleted=JS.prototype.onServiceRequestCompleted;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],JS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],JS.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],JS.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],JS.prototype,"videoPreview",void 0);_.S([_.R(),_.V("design:type",Object)],JS.prototype,"cancelButton",void 0);_.S([_.R(),_.V("design:type",Object)],JS.prototype,"getVideoPreviewCommand",void 0);_.S([_.R(),_.V("design:type",Object)],JS.prototype,"dismissButtonOverrides",void 0);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],JS.prototype,"onServiceRequestCompleted",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],JS);
_.d(JS,"ytd-backstage-video-link-attachment",function(){if(Mj1!==void 0)return Mj1;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Mj1=Y},{mode:1});var Hse;var ELe;var tjR;var YJ=function(){return _.Z.apply(this,arguments)||this};
_.m(YJ,_.Z);YJ.prototype.dataChanged=function(){this.active=!1};
YJ.prototype.onTap=function(){_.$s(this.hostElement,"yt-select-emoji-suggestion",this.data)};
YJ.prototype.identity=function(Y){return Y};
_.Uk.Object.defineProperties(YJ.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O;if((Y=this.data)==null?0:(G=Y.image)==null?0:(u=G.thumbnails)==null?0:(O=u[0])==null?0:O.url)return Y=this.data.image.thumbnails[0].url,Y.startsWith("data:image/svg+xml")?VG(Y):_.cs(Y)}}});
YJ.prototype.dataChanged=YJ.prototype.dataChanged;_.S([_.R(),_.V("design:type",Object)],YJ.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],YJ.prototype,"active",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],YJ.prototype,"dataChanged",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],YJ.prototype,"imageSrc",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],YJ);
_.d(YJ,"ytd-emoji-suggestion",function(){if(tjR!==void 0)return tjR;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return tjR=Y},{mode:1});var KX1=/.*([:@#].*?)$/,Gs=function(){var Y=_.Z.apply(this,arguments)||this;Y.suggestions=[];Y.suggestionIndex=-1;Y.JSC$16225_lastSuggestionRange=null;return Y};
_.m(Gs,_.Z);_.H=Gs.prototype;_.H.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.H.getSuggestions=function(Y){var G=[],u=iEX(this.emojiManager,Y.substr(0,3));if(u)for(var O in u)if(O.toLocaleLowerCase().indexOf(Y)===0){var Q=u[O];if(Q&&Q.emojiId){Q=eZ(this.emojiManager,Q.emojiId);var M=void 0,t=void 0,K=void 0,L=void 0,g=((M=Q)==null?0:M.isCustomEmoji)?(t=Q)==null?void 0:(K=t.shortcuts)==null?void 0:K[0]:(L=Q)==null?void 0:L.emojiId;M=void 0;G.push({suggestion:{image:(M=Q)==null?void 0:M.image,alt:g,text:O}});if(G.length>=64)break}}return G?G.sort(function(P,I){return I.suggestion.text<
P.suggestion.text?-1:I.suggestion.text===P.suggestion.text?0:1}):null};
_.H.insertSuggestion=function(Y){_.$s(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16225_lastSuggestionRange,text:Y.alt});this.dropdown.opened=!1};
_.H.updateSuggestionsAtCaret=function(Y){this.updateSuggestions(Y,this.retrieveTextBeforeRange(Y))};
_.H.offsetStartOfRangeBy=function(Y,G){Y.startOffset>=G&&Y.setStart(Y.startContainer,Y.startOffset-G)};
_.H.updateSuggestions=function(Y,G){var u=this;this.JSC$16225_lastSuggestionRange&&(this.JSC$16225_lastSuggestionRange.detach(),this.JSC$16225_lastSuggestionRange=null);if((G=KX1.exec(G))&&G.length&&(G=G[G.length-1].toLocaleLowerCase(),G.length>2||G===":_")&&(this.offsetStartOfRangeBy(Y,G.length),this.JSC$16225_lastSuggestionRange=Y,(Y=this.getSuggestions(G))&&Y.length)){this.suggestions=Y;_.sk(this,function(){u.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(Y.length-1);return}this.dropdown.opened=!1};
_.H.onKeyDown=function(Y){if(this.dropdown.opened)switch(Y.key){case "Escape":this.dropdown.opened=!1;Y.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);Y.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);Y.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),Y.preventDefault()}};
_.H.onKeyUp=function(Y,G){switch(Y.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(G);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(G)}};
_.H.onKeyPress=function(Y){Y.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),Y.preventDefault())};
_.H.changeSuggestionIndex=function(Y){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(Y+this.suggestions.length)%this.suggestions.length,Y=this.dropdownContent.children[this.suggestionIndex],Y.active=!0,this.dropdownContent.scrollTop=Y.offsetTop)};
_.H.retrieveTextBeforeRange=function(Y){var G=Y.startContainer;return G&&G.nodeType===Node.TEXT_NODE?G.textContent.substr(0,Y.startOffset):""};
Gs.prototype.onKeyPress=Gs.prototype.onKeyPress;Gs.prototype.onKeyUp=Gs.prototype.onKeyUp;Gs.prototype.onKeyDown=Gs.prototype.onKeyDown;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Gs.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Array)],Gs.prototype,"suggestions",void 0);_.S([_.R(),_.V("design:type",_.fZ)],Gs.prototype,"emojiManager",void 0);_.S([_.R(),_.V("design:type",Number)],Gs.prototype,"verticalSuggestionsOffset",void 0);
_.S([_.Ox("#dropdown"),_.V("design:type",Object)],Gs.prototype,"dropdown",void 0);_.S([_.Ox("#dropdown-content"),_.V("design:type",HTMLDivElement)],Gs.prototype,"dropdownContent",void 0);_.S([_.Yo("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],Gs.prototype,"onKeyDown",null);_.S([_.Yo("keyup"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent,Range]),_.V("design:returntype")],Gs.prototype,"onKeyUp",null);
_.S([_.Yo("keypress"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],Gs.prototype,"onKeyPress",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-emoji-input"})],Gs);
_.d(Gs,"ytd-emoji-input",function(){if(ELe!==void 0)return ELe;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return ELe=Y},{mode:2});var azX;var uR=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasMaxOptions=!1;return Y};
_.m(uR,_.Z);_.H=uR.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(Y){var G=this;this.set("pollOptions",[]);var u;for(u=0;u<Math.min(Y.length,this.data.maxPollOptions);u++)this.push("pollOptions",Y[u].substring(0,this.data.maxPollOptionChars));for(;u<this.data.minPollOptions;u++)this.push("pollOptions","");this.hasMaxOptions=u>=this.data.maxPollOptions;_.sk(this,function(){for(var O=G.pollOptions,Q=_.l0(G.hostElement).querySelectorAll(".poll-option-input"),M=0;M<Q.length;M++)Q[M].value=O[M]})};
_.H.focusChanged=function(){_.cm(this.hostElement)};
_.H.onInput=function(){var Y=this;_.y4(this,"onInput",function(){Y.isValid()?_.$s(Y.hostElement,"yt-commentbox-post-enable"):_.$s(Y.hostElement,"yt-commentbox-post-disable")},300)};
_.H.setPollOptions=function(){var Y=[],G,u=((G=this.data)==null?0:G.minPollOptions)?this.data.minPollOptions:0;for(G=0;G<u;G++)Y.push("");return Y};
_.H.addPollOption=function(){var Y=this;_.$s(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.AN.addLowPriorityJob(function(){var G;(G=_.l0(Y.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||G.focus()})};
_.H.onRemovePollOption=function(Y){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.$s(this.hostElement,"yt-poll-attachment-dismiss")):(Y=this.repeat.indexForElement(Y.target.parentNode),Y!==null&&(this.splice("pollOptions",Y,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.$s(this.hostElement,"yt-commentbox-post-enable"))))};
_.H.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.H.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var Y=0,G=this.pollOptions.length;Y<G;Y++)if(this.pollOptions[Y].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.H.getPollOptions=function(){return this.pollOptions};
_.H.setPollOptionsFromInputs=function(){for(var Y=_.l0(this.hostElement).querySelectorAll(".poll-option-input"),G=0;G<Y.length;G++)this.pollOptions[G]=Y[G].value.trim()};
_.H.clearPollOptions=function(){var Y=_.l0(this.hostElement).querySelectorAll(".poll-option-input");Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next())G.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.H.getSimpleString=function(Y){return _.Ri(Y)};
_.H.updateValueFromBinding=function(Y){if(Y.target&&this.pollOptions){var G=Array.from(_.l0(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(Y.target);if(G>=0){var u;this.pollOptions[G]=(u=Y.detail.value)!=null?u:"";this.notifyPath("pollOptions."+G)}}};
uR.prototype.dataChanged=uR.prototype.dataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],uR.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],uR.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Array)],uR.prototype,"pollOptions",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],uR.prototype,"hasMaxOptions",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],uR.prototype,"enableCreationBox",void 0);
_.S([_.Ox("#repeat"),_.V("design:type",Pn)],uR.prototype,"repeat",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uR.prototype,"dataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-poll-attachment"})],uR);
_.d(uR,"ytd-poll-attachment",function(){if(azX!==void 0)return azX;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return azX=Y},{mode:2});var T3e;var LXR;var gL1;var Xo2;var OP=function(){return _.Z.apply(this,arguments)||this};
_.m(OP,_.Z);_.Uk.Object.defineProperties(OP.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],OP.prototype,"rendererBehaviors",void 0);_.S([_.R(),_.V("design:type",Object)],OP.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],OP.prototype,"focused",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("focused"),_.V("design:type",Object),_.V("design:paramtypes",[])],OP.prototype,"ariaSelected",null);_.S([_.Ff({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],OP);
_.d(OP,"yt-user-mention-suggestion-renderer",function(){if(Xo2===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;gL1===void 0&&(gL1=document.createElement("template"));var O=gL1;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Xo2=Y}Y=Xo2;return Y},{mode:2});var PZe;var Iz2;var Qk=function(){var Y=_.Z.apply(this,arguments)||this;Y.focusedSuggestionIndex=-1;return Y};
_.m(Qk,_.Z);_.H=Qk.prototype;_.H.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.H.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.H.setFocusedSuggestionIndex=function(Y){!this.data||!this.data.suggestions||Y<0||Y>=this.data.suggestions.length||(this.focusedSuggestionIndex=Y,Y=this.getSuggestionId(Y),this._setFocusedSuggestionId(Y))};
_.H.advanceSuggestion=function(Y){this.focusedSuggestionIndex===-1||Y!==-1&&Y!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+Y),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.H.ensureSuggestionVisible=function(Y){Y=this.getSuggestionId(Y);Y=_.l0(this.hostElement).querySelector("[id="+Y+"]");Y!=null&&(Y.offsetTop<this.hostElement.scrollTop?Y.scrollIntoView(!0):Y.offsetTop+Y.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&Y.scrollIntoView(!1))};
_.H.getSuggestionId=function(Y){return"user-mention-suggestion-"+Y};
_.H.onSuggestionTap=function(Y){var G=_.z(Y.model.item,Z8V);this.ytRendererBehavior.logExplicitClick(G);_.$s(this.hostElement,"yt-user-mention-suggestion-selected",{data:G,index:Y.model.index})};
_.H.onSuggestionMouseMove=function(Y){Y.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(Y.model.index)};
_.H.isSuggestionFocused=function(Y,G){return Y===G};
_.H.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.H.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("focused-suggestion-id-changed",this.focusedSuggestionId))};
Qk.prototype.focusedSuggestionIdChangedForBinding=Qk.prototype.focusedSuggestionIdChangedForBinding;Qk.prototype.onDomChange=Qk.prototype.onDomChange;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Qk.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Qk.prototype,"focusedSuggestionIndex",void 0);_.S([_.R({readOnly:!0}),_.V("design:type",String)],Qk.prototype,"focusedSuggestionId",void 0);
_.S([_.Yo("dom-change"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Qk.prototype,"onDomChange",null);_.S([_.GO("focusedSuggestionId"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qk.prototype,"focusedSuggestionIdChangedForBinding",null);_.S([_.Ff({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Qk);
_.d(Qk,"yt-user-mention-suggestions-dropdown",function(){if(Iz2===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;PZe===void 0&&(PZe=document.createElement("template"));var O=PZe;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Iz2=Y}Y=Iz2;return Y},{mode:2});var MX=function(){var Y=_.Z.apply(this,arguments)||this;Y.suggestionsResponse=null;Y.activeMention=null;Y.selectionChangeListener=Y.onSelectionChange.bind(Y);Y.handlesEnabled=_.F("enable_handles_in_mention_suggest_posts");Y.handlesInMentionSuggestionsEnabled=_.F("handles_in_mention_suggest_posts");Y.zeroPrefixMentionSuggestionEnabled=_.F("enable_zero_prefix_mention_suggestion_web");Y.pendingQuery=null;Y.flowNonce=null;return Y};
_.m(MX,_.Z);_.H=MX.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(Y){return!!(Y&&Y.suggestions&&Y.suggestions.length>0)};
_.H.onInput=function(){var Y=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var G=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),u=this.activeMention.JSC$11678_getText().slice(-1)===" ",O=this.activeMention.JSC$11678_getText().slice(-2,-1)===" ",Q="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11678_getText().slice(-2,
-1))>=0;Q=this.zeroPrefixMentionSuggestionEnabled&&Q;if(this.activeMention.isCollapsed()||(G||O||Q)&&u)this.cancelActiveMention();else{var M=this.activeMention.JSC$11678_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.y4(this,"requestSuggestions",function(){Y.requestSuggestions(M)},100)}}}};
_.H.onServiceRequestSent=function(Y){Y.stopPropagation()};
_.H.onServiceRequestCompleted=function(Y){Y.stopPropagation();Y=Y.detail.data;Y.query&&(!this.pendingQuery||this.pendingQuery!==Y.query)||!this.zeroPrefixMentionSuggestionEnabled&&Y.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=Y,this.hasSuggestions(Y)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.H.onServiceRequestError=function(Y){Y.stopPropagation()};
_.H.onUserMentionSuggestionSelected=function(Y){this.selectSuggestion(Y.detail.data,Y.detail.index)};
_.H.onSelectionChange=function(){if(this.activeMention){var Y=_.Et(),G=this.activeMention.JSC$11678_containsRange(Y);Y=Y&&this.containsHelper(this.dropdown,Y.getContainer());G||Y||this.cancelActiveMention()}};
_.H.containsHelper=function(Y,G){var u;if(((u=window.ShadyDOM)==null?void 0:u.noPatch)===!0)return Y.contains(G);for(;G;){if(G===Y)return!0;G=G instanceof ShadowRoot?G.host:G.parentNode}return!1};
_.H.maybeStartSuggest=function(){var Y=_.Et();if(Y&&Y.isCollapsed()){var G=Y.JSC$11678_getStartNode(),u=Y.JSC$11678_getStartOffset();if(G instanceof Text&&!(u<1)){var O=G.textContent;!(O=O&&O.charAt(u-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(O)<0||(this.activeMention=_.TN(G,u-1,Y.JSC$11678_getEndNode(),Y.JSC$11678_getEndOffset()),this.flowNonce=Ix(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.H.updateActiveMention=function(){if(this.activeMention){var Y=_.Et();Y&&Y.isCollapsed()&&(this.activeMention=_.TN(this.activeMention.JSC$11678_getStartNode(),this.activeMention.JSC$11678_getStartOffset(),Y.JSC$11678_getEndNode(),Y.JSC$11678_getEndOffset()))}};
_.H.requestSuggestions=function(Y){if(this.activeMention){var G={suggestions_query:Y};this.pendingQuery=Y;_.c$(this.hostElement,[this.suggestionsEndpoint,G])}};
_.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(Y){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),Y.preventDefault())};
_.H.focusNextSuggestion=function(Y){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),Y.preventDefault())};
_.H.selectFocusedSuggestion=function(Y){if(this.hasSuggestions(this.suggestionsResponse)){var G=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.z(G,Z8V)&&(this.selectSuggestion(_.z(G,Z8V),this.dropdown.focusedSuggestionIndex),Y.preventDefault())}};
_.H.selectSuggestion=function(Y,G){if(Y){var u=this.activeMention;if(u){var O=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&Y.handle?_.R9(O,"\u00a0\u2068@"+Y.handle+"\u2069\u00a0"):this.handlesEnabled?_.R9(O,"\u00a0"+Y.displayName+"\u00a0"):_.R9(O,"\u00a0@"+Y.displayName+"\u00a0");Y6(O,"/channel/"+Y.channelId);O.classList.add("yt-formatted-string","yt-simple-endpoint");O.setAttribute("spellcheck","false");u.isCollapsed()||u.JSC$11678_removeContents();u.insertNode(O,!0);Y=document.createTextNode(" ");
O.parentNode.insertBefore(Y,O.nextSibling);window.getSelection().collapse(Y,1);G={suggestionSelected:{suggestionIndex:G}};if(this.zeroPrefixMentionSuggestionEnabled){var Q;G.suggestionSelected.isZeroPrefix=((Q=this.suggestionsResponse)==null?void 0:Q.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",G);this.cancelActiveMention();_.$s(this.hostElement,"yt-mention-inserted")}}};
_.H.getPositionTarget=function(Y){return Y&&Y.getBrowserRangeObject()};
_.H.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.H.onFocusedSuggestionIdChanged=function(Y){var G=_.XWj(this.hostElement)[0];G&&(Y.detail.value?G.setAttribute("aria-activedescendant",Y.detail.value):G.removeAttribute("aria-activedescendant"))};
_.H.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.H.logGELEvent=function(Y,G){Y={eventType:Y,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};G&&(Y=Object.assign(Y,G));_.eK("userMentionAutoCompleteBoxEvent",Y)};
MX.prototype.onDomChange=MX.prototype.onDomChange;MX.prototype.onUserMentionSuggestionSelected=MX.prototype.onUserMentionSuggestionSelected;MX.prototype.onServiceRequestError=MX.prototype.onServiceRequestError;MX.prototype.onServiceRequestCompleted=MX.prototype.onServiceRequestCompleted;MX.prototype.onServiceRequestSent=MX.prototype.onServiceRequestSent;MX.prototype.onInput=MX.prototype.onInput;_.S([_.x(_.Gp),_.V("design:type",Object)],MX.prototype,"ironA11yKeysBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],MX.prototype,"suggestionsEndpoint",void 0);_.S([_.R(),_.V("design:type",Object)],MX.prototype,"suggestionsResponse",void 0);_.S([_.R(),_.V("design:type",Object)],MX.prototype,"activeMention",void 0);_.S([_.Ox("#dropdown"),_.V("design:type",Object)],MX.prototype,"dropdown",void 0);_.S([_.Ox("#iron-dropdown"),_.V("design:type",Object)],MX.prototype,"ironDropdown",void 0);
_.S([_.Yo("input"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],MX.prototype,"onInput",null);_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],MX.prototype,"onServiceRequestSent",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],MX.prototype,"onServiceRequestCompleted",null);
_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],MX.prototype,"onServiceRequestError",null);_.S([_.Yo("yt-user-mention-suggestion-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],MX.prototype,"onUserMentionSuggestionSelected",null);
_.S([_.Yo("dom-change"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],MX.prototype,"onDomChange",null);_.S([_.Ff({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],MX);
_.d(MX,"yt-user-mention-autosuggest-input",function(){if(LXR===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;T3e===void 0&&(T3e=document.createElement("template"));var O=T3e;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);LXR=Y}Y=LXR;return Y},{mode:2});var Hz=null;
_.Xf({is:"ytd-commentbox",_template:function(){if(Hse!==void 0)return Hse;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Hse=Y},
behaviors:[_.BOA.YtHostElementBehavior,_.Gp,_.vZ.YtActionHandlerBehavior,_.m9.YtComponentBehavior,_.bE.YtRendererstamperBehavior,_.Ugk.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(Y,G){return _.v2(Y.entities,"aadcGuidelinesStateEntityPayload",G)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(Y,G){return _.v2(Y.entities,"commentboxStateEntity",G)},
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 _.Ai}},
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:_.F("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.F("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",_.Jh(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(Y){this.fire(Y?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(Y){this.set("submitButtonDisabled",void 0);this.clear();Y&&this.computeIsEmojiButtonDisplayed_(Y)&&(Y=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&Y.updateEmojiCategories()},
observePrefilledImage_:function(Y,G,u){this.isValidPrefilledImage_(Y,G,u)&&(this.prefilledAttachment_="image",this.prefilledImageData_=G,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(Y,G){this.isValidPrefilledVideo_(Y,G)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(Y){Y&&Y.pollData&&Y.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(Y.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Uz();this.focus()},
detached:function(){document.removeEventListener("tap",_.Jh(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(Y){Y=Y.detail;Y=Y.isCustomEmoji?Y.shortcuts[0]:Y.emojiId;var G=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(G,Y);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var Y=_.Et();if(Y){Y=Y.getBrowserRangeObject();for(var G=Y.commonAncestorContainer;G;){if(G===this.getEditableTextArea_())return Y;G=G.parentNode}}Y=this.getEditableTextArea_();Y=_.an(Y,Y.childNodes.length);Y.select();return Y.getBrowserRangeObject()},
insertTextWithEmojis_:function(Y,G,u){(G=this.emojiManager.createDocumentFragment(G,!0,!1,u===void 0?!0:u))&&G.childNodes.length!==0&&(Y.collapsed||Y.deleteContents(),u=G.lastChild,Y.insertNode(G),_.QS_(u).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var Y=_.Et();if(Y){var G=Y.JSC$11678_getStartNode(),u=Y.JSC$11678_getEndNode();if(Czu(G)&&Czu(u)){var O=Y.JSC$11678_getStartOffset(),Q;if(_.uO&&G.nodeType===Node.ELEMENT_NODE&&(Q=_.syR(G)))_.an(Q,0).select();else{Q=se(G)?G:_.pm(G,se);var M=se(u)?u:_.pm(u,se);if(Q||M)if(Y.isCollapsed()){if(G.nodeType===Node.TEXT_NODE){Y=!0;O===G.length&&(Y=!1);if(Hz==="end"||Hz==="right")Y=!1;G=G.parentNode;Y=[].concat(_.c8(G.parentNode.childNodes)).indexOf(G)+(Y?0:1);_.an(G.parentNode,
Y).select()}}else Q?Q.previousSibling&&Q.previousSibling.length>0?_.TN(u,Y.JSC$11678_getEndOffset(),Q.previousSibling,Q.previousSibling.length-1).select():(G=document.createTextNode("\u200b"),Q.parentNode.insertBefore(G,Q),_.TN(u,Y.JSC$11678_getEndOffset(),G,0).select()):M&&(M.nextSibling&&M.nextSibling.length>0?_.TN(G,Y.JSC$11678_getStartOffset(),M.nextSibling,1).select():(u=document.createTextNode("\u200b"),M.parentNode.insertBefore(u,M.nextSibling),_.TN(G,Y.JSC$11678_getStartOffset(),u,u.length).select()));
Hz=null}}else Hz=null}else Hz=null},
leftKeyPressed_:function(){Hz="left"},
rightKeyPressed_:function(){Hz="right"},
endKeyPressed_:function(){Hz="end"},
maybeDeleteChip_:function(){var Y=R2I(!0);if(Y){var G=_.Et(),u=G.JSC$11678_getStartNode();G=G.JSC$11678_getStartOffset();_.KA(u,G,Y,Y.childNodes.length).select()}},
maybeBackspaceChip_:function(){var Y=R2I(!1);if(Y){var G=_.Et(),u=G.JSC$11678_getStartNode();G=G.JSC$11678_getStartOffset();_.KA(u,G,Y,0).select()}},
maybeBackspaceChipWordMode_:function(Y){var G=_.Et();if(G.isCollapsed()){var u=G.JSC$11678_getStartNode();G=G.JSC$11678_getStartOffset();var O=wRA(u,G,!0);O&&(_.KA(u,G,O,0).select(),document.execCommand("delete"),Y.preventDefault(),Y.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(Y){var G=_.Et();if(G.isCollapsed()){var u=G.JSC$11678_getStartNode();G=G.JSC$11678_getStartOffset();var O=wRA(u,G,!1);O&&(_.KA(u,G,O,O.childNodes.length).select(),document.execCommand("delete"),Y.preventDefault(),Y.stopImmediatePropagation())}},
onTap_:function(Y){if(!Y.defaultPrevented&&(Y.currentTarget.tagName==="YTD-COMMENTBOX"&&se(Y.target)&&Y.preventDefault(),this.isEmojiPickerDisplayed)){var G=this.$$("#emojis"),u=this.$$("#emoji-button"),O=this.getEditableTextArea_();if((Y=Y.path?Y.path:Y.composedPath&&Y.composedPath())&&!Y.includes(G)&&!Y.includes(O)&&!Y.includes(u))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(Y,G,u){return Y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&G!==void 0&&G.encryptedBlobId!==null&&G.sourceExternalVideoId!==null&&u!==void 0&&u.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(Y,G){return Y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!G&&!!G.videoRenderer&&!!G.videoRenderer.videoId},
isValidPrefilledAttachment_:function(Y,G,u){return this.isValidPrefilledImage_(Y,G,u)||this.isValidPrefilledVideo_(Y,u)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.F("enable_multi_image_post_creation")){var Y=this.$$("ytd-backstage-multi-image-select-renderer");Y&&Y.hasImages()&&Y.cancel()}else(Y=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&Y.cancel();(Y=this.$["poll-attachment"])&&this.hasPoll_&&Y.clearPollOptions();(Y=this.$["image-poll-attachment"])&&this.hasImagePoll_&&Y.resetPollOptions();(Y=this.$["quiz-attachment"])&&this.hasQuiz_&&Y.resetQuizOptions();
(Y=this.$["video-link-attachment"])&&this.hasVideo_&&Y.cancel();(Y=this.$["access-restrictions-selector"].firstElementChild)&&Y.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 _.l0(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.l0(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(Y,G){Y=e2y(Y,this.emojiManager,G).cloneNode(!0);for(G=Y.firstChild;G;)if(G.nodeType!==1)G=G.nextSibling;else switch(G.tagName){case "BR":var u=_.Cu();_.O7V(u,G);G=u.nextSibling;break;case "DIV":(u=G.lastChild)&&G.nextSibling&&_.o9(_.Cu(),u);G.previousSibling&&(G.previousSibling.nodeType===1||G.previousSibling.nodeType===3&&!G.previousSibling.textContent.endsWith("\n"))&&_.Am(_.Cu(),G);u&&u.nodeName==="BR"&&_.Oy(u);u=G;G.hasChildNodes()?(G=G.firstChild,
_.QeM(u)):(G=G.nextSibling,_.Oy(u));break;default:G=G.nextSibling}return Zvt(Y)},
onAddImageError_:function(Y){Y.stopPropagation();this.errorMessage_=_.i8(Y.detail)},
setTextAreaValue_:function(Y){Y||(Y="");var G=this.getEditableFormattedString_();G.text="";this.getEditableTextArea_().innerText="";typeof Y==="string"&&(Y={runs:[{text:Y}]});G.text=Y},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Hz=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var Y=this.getEditableTextArea_();Y&&(_.an(Y,Y.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.DE("HTML_DIR")==="rtl"){var Y=this.getEditableTextArea_(),G=this.getTextAreaValue()!==""?"auto":"rtl";Y.setAttribute("dir",G)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var Y;return YLj((Y=this.$["quiz-attachment"])==null?void 0:Y.getExplanationText())||YLj(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var Y=null;if(this.isEmojiButtonDisplayed){var G=this.getInputRange_();G&&(Y=this.emojiInput.retrieveTextBeforeRange(G))}this.insertText_(Y,!0);this.updateCharCount_();this.setSubmitButton_();Y=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=Y.scrollHeight>Y.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var Y=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:Y})},
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(Y){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(Y)},
onPasteEmoji_:function(Y){Y.preventDefault();Y.stopImmediatePropagation();Y=Y.clipboardData.getData("text/plain");this.insertText_(Y,!1,!1)},
insertText_:function(Y,G,u){G=G===void 0?!1:G;u=u===void 0?!0:u;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&Y){var O=this.getInputRange_().cloneRange();this.emojiManager&&O&&(G&&this.emojiInput.offsetStartOfRangeBy(O,Y.length),this.insertTextWithEmojis_(O,Y,u),y91(this.getEditableTextArea_().lastChild)||(O=this.getInputRange_().cloneRange()),O&&(this.emojiInput.updateSuggestions(O,Y),this.updateSuggestionOffset_(O)))}},
setSubmitButton_:function(){if(this.data){var Y=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",G=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(Y||G){var u=this.getTextAreaValue().trim();G=u===this.previousText_;u=!u||this.aboveCharLimit_;Y&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(u=this.aboveCharLimit_);this.submitButtonDisabled=
G||u||!this.getTextLength();Y&&_.F("enable_post_scheduling")&&(this.submitButtonDisabled=G&&!this.scheduledPublishTimeSec_||u)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Ri,computeCreationBoxClass_:function(Y){return Y?"focused":"not-focused"},
computeFooterMessageClass_:function(Y,G){return G?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(Y,G){return G?G:Y},
computeFooterMessageHidden_:function(Y,G){return!G&&!Y},
computePlaceholderText_:function(Y,G,u){return(u==="video"||u==="image")&&(Y==null?0:Y.prefilledPlaceholderText)?Y==null?void 0:Y.prefilledPlaceholderText:G==="poll"||G==="image-poll"?Y==null?void 0:Y.pollPostPlaceholderText:G==="quiz"?Y==null?void 0:Y.quizPostPlaceholderText:G==="image"?Y==null?void 0:Y.imagePostPlaceholderText:Y==null?void 0:Y.placeholderText},
computeHideAttachmentButtons_:function(Y,G,u,O){return Y===void 0?!1:O&&this.getSimpleString(O)===this.getSimpleString(Y.rateLimitErrorMessage)?!0:G!=="none"||u!=="none"||!Y.videoLinkButton&&!Y.pollButton&&!Y.imagePollButton&&!Y.quizButton&&!Y.imageButton},
computeHideDismissableAttachment_:function(Y){return Y!=="image"&&Y!=="video"},
computeHasVideo_:function(Y){return Y==="video"},
computeHasImage_:function(Y){return Y==="image"},
computeHasPoll_:function(Y){return Y==="poll"},
computeHasImagePoll_:function(Y){return Y==="image-poll"},
computeHasQuiz_:function(Y){return Y==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(Y){return Y&&Y.backstageAttachment?Y.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!Y.backstageAttachment.quizRenderer&&!Y.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(Y){if(this.isValidPrefilledAttachment_(Y.purpose,Y.prefilledImageData,Y.backstageAttachment))return Y.backstageAttachment},
computeEditAttachment_:function(Y){if(this.computePrefilledContent_(Y)===void 0)return Y.backstageAttachment},
computeAuthorThumbnailDimension_:function(Y,G){return Y&&!G?24:40},
computeImageUploadEndpoint_:function(Y){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",Y)},
computeRateLimitErrorCommands_:function(Y){var G,u;return Y==null?void 0:(G=Y.advancedTierFeatures)==null?void 0:(u=G.rateLimit)==null?void 0:u.rateLimitCommands},
computeIsBackstageComment_:function(Y){return!(!Y||Y!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(Y){return this.get("submitButton.buttonRenderer.serviceEndpoint",Y)||this.get("replyButton.buttonRenderer.serviceEndpoint",Y)||this.get("postButton.buttonRenderer.serviceEndpoint",Y)},
computeSubmitButtonOverride:function(){if(_.F("web_modern_buttons")){var Y,G;return{segmentedPosition:this.dropdownSchedulePanel_||!((Y=this.data)==null?0:(G=Y.postOptionsMenu)==null?0:G.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.F("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(Y,G){Y=this.get("submitButton.buttonRenderer",Y)||this.get("replyButton.buttonRenderer",Y)||this.get("postButton.buttonRenderer",Y);G&&(Y=G);Y&&(Y=Object.assign({},Y),Y.serviceEndpoint=void 0,Y.isDisabled=this.submitButtonDisabled);return Y},
computeHasExternalLinksAccess_:function(Y){if(_.F("enable_rfa_external_links")){var G,u,O;return(O=Y==null?void 0:(G=Y.advancedTierFeatures)==null?void 0:(u=G.externalLinks)==null?void 0:u.allowExternalLinks)!=null?O:!0}return!0},
computeIsEmojiButtonDisplayed_:function(Y){return Y.emojiButton&&Y.emojiPicker&&Y.emojiPicker.emojiPickerRenderer&&Y.emojiPicker.emojiPickerRenderer.categories?Y.emojiPicker.emojiPickerRenderer.categories.find(function(G){return G.emojiPickerCategoryRenderer?G.emojiPickerCategoryRenderer.emojiIds&&G.emojiPickerCategoryRenderer.emojiIds.length>0:G.emojiPickerUpsellCategoryRenderer?G.emojiPickerUpsellCategoryRenderer.emojis&&G.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(Y){return Y.charLimit?Y.charLimit:null},
computeDropdownSchedulingPanel_:function(Y,G){if(Y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&G)return G},
computeInlineSchedulingPanel_:function(Y,G){if(Y==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&G)return G},
computeHideAuthorThumbnail_:function(Y,G){return Y||this.computeUseIdentityChip_(G)},
computeHideIdentityChipRenderer_:function(Y,G){return Y||!this.computeUseIdentityChip_(G)},
computeUseIdentityChip_:function(Y){return!!Y&&!!Y.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(Y){var G,u,O,Q;(Y==null?0:(G=Y.detail)==null?0:(u=G.endpoint)==null?0:u.ypcGetOffersEndpoint)||(Y==null?0:(O=Y.detail)==null?0:(Q=O.endpoint)==null?0:Q.ypcOffersEndpoint)?(Y.stopPropagation(),_.c$(this,[Y.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",Y)&&(Y.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(Y){this.addedAttachment="video";this.selectedVideoId_=Y.detail.videoId},
commentboxStateEntityChanged_:function(Y){var G=this;(Y==null?void 0:Y.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(Y==null?void 0:Y.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){G.focus()})},
onYtServiceRequestSent_:function(Y,G){if(G.actions)for(Y=_.E(G.actions),G=Y.next();!G.done;G=Y.next())G.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(Y){this.isLoading=!1;var G=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",Y),u,O,Q,M=Y==null?void 0:(u=Y.detail)==null?void 0:(O=u.data)==null?void 0:(Q=O.actionResult)==null?void 0:Q.commentboxStateEntityKey;if(G)this.errorMessage_=G;else if(M){var t;this.dismissData_=Y==null?void 0:(t=Y.detail)==null?void 0:t.data;this.commentboxStateKey_=M}else{this.clear();var K;this.fire("yt-commentbox-dismiss",Y==null?void 0:(K=Y.detail)==
null?void 0:K.data)}},
onYtServiceRequestError_:function(Y){Y.stopPropagation();this.isLoading=!1;var G,u;if(((G=this.data)==null?void 0:G.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((u=this.data)==null?void 0:u.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(G=this.get("detail.error.args",Y)||[],G.length>1&&G[1].message){this.handlePostsServiceRequestError_(G[1].message);return}(Y=this.get("detail.error.message",Y))?this.errorMessage_=this.data.errorMessage||_.i8(Y):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(Y){if(_.F("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var G=_.E(this.rateLimitErrorCommands),u=G.next();!u.done;u=G.next())if(u=u.value,u.errorLabel===Y){_.Yy(u.command,this.hostElement);return}this.errorMessage_=_.i8(Y)},
submitIfNotBackstagePost_:function(Y){if(!this.isBackstagePost)this.onSubmit_(Y)},
onSubmit_:function(Y){var G=this,u,O,Q,M,t,K,L,g,P,I,k,n,p,W,C;return _.a(function(e){switch(e.nextAddress){case 1:Y.stopPropagation();if(!G.serviceEndpoint||!G.isValidInput_())return e.return();if(G.shouldShowPostAadcNotice_())return G.showPostAadcNotice_(),e.return();if(G.shouldShowCommentAadcNotice_())return G.showCommentAadcNotice_(),e.return();if(!(G.$$("ytd-backstage-multi-image-select-renderer")&&G.hasImage_&&_.F("enable_multi_image_post_creation"))){e.jumpTo(2);break}u=G.$$("ytd-backstage-multi-image-select-renderer");
return e.yield(u.getAllUploadStatuses(),3);case 3:O=e.yieldResult;if(!O)return e.return();Q=_.E(O);for(M=Q.next();!M.done;M=Q.next())if(t=M.value,t.encryptedBlobId===void 0)return G.isLoading=!1,L=K=void 0,G.errorMessage_=(L=(K=G.imageUploadEndpoint_)==null?void 0:K.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?L:null,e.return();return e.return(G.submitForm_(void 0,void 0,void 0,void 0,u.images,G.taggedVideoId_));case 2:if(!G.hasImagePoll_||!G.$["image-poll-attachment"]){e.jumpTo(4);
break}return e.yield(G.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:g=e.yieldResult;if(!g)return e.return();P=_.E(g);for(I=P.next();!I.done;I=P.next())if(k=I.value,!k.encryptedBlobId)return G.isLoading=!1,n=void 0,G.errorMessage_=(n=G.data.errorMessage)!=null?n:null,e.return();case 4:W=(p=G.$$("ytd-backstage-image-select-renderer"))&&p.uploadPromise(),C=G.getSharedPostId_(),W?W.then(function(){G.submitForm_.apply(G,_.c8(_.vs.apply(0,arguments)))}).catch(function(w){G.isLoading=!1;
G.errorMessage_=_.i8(w.message)}):G.selectedVideoId_?G.submitForm_(void 0,G.selectedVideoId_):G.prefilledAttachment_==="image"?G.submitForm_(G.prefilledImageData_.encryptedBlobId,void 0,void 0,G.prefilledImageData_.sourceExternalVideoId,void 0,G.taggedVideoId_):G.prefilledAttachment_==="video"?G.submitForm_(void 0,G.data.backstageAttachment.videoRenderer.videoId):C?G.submitForm_(void 0,void 0,C):G.taggedVideoId_!==void 0?G.submitForm_(void 0,void 0,void 0,void 0,void 0,G.taggedVideoId_):G.submitForm_(),
_.Sd(e)}})},
openSchedulingPanel:function(Y){Y&&Y.scheduleButton&&Y.scheduleButton.buttonRenderer&&(this.scheduleButton_=Y.scheduleButton.buttonRenderer);Y&&Y.dateTimePicker&&this.set("data.schedulingDateTimePicker",Y.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(Y){Y.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(Y){Y.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(Y){Y.stopPropagation();Y.detail.alertMessage&&(this.alertMessage_=Y.detail.alertMessage)},
onImageSelected_:function(Y){Y.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(Y){Y.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(Y){Y.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(Y.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(Y){Y.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(Y){var G=this.$["video-link-attachment"];G&&G.onLaunchVideoPicker(Y)},
onAttachmentDismiss_:function(Y){Y.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"&&_.F("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.F("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 Y;if(this.addedAttachment==="image-poll"&&((Y=this.$["image-poll-attachment"])==null||!Y.isValid()))return!1;var G;if(this.addedAttachment==="quiz"&&((G=this.$["quiz-attachment"])==null||!G.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;Y=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(Y=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")Y=!0;return Y||!!this.getTextAreaValue().trim()},
submitForm_:function(Y,G,u,O,Q,M){var t=this.getTextAreaValue().trim(),K={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&t===this.previousText_&&(t=void 0);t!==void 0&&(K.comment_text=t);this.isLoading=!0;M!=void 0&&(K.tagged_video_id=M);Y?(K.image_blob_id=Y,this.imagePreviewCoordinates_&&(K.image_preview_coordinates=this.imagePreviewCoordinates_)):G?K.attached_video_id=G:u?K.shared_post_id=u:Q&&Q.length>0&&(K.images_data=Q.map(function(L){return{encryptedBlobId:L.encryptedBlobId,
previewCoordinates:L.previewCoordinates}}));
O&&(K.source_video_id=O);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(K.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(K.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(K.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(K.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.F("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(K.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.c$(this,[this.serviceEndpoint,K])},
onIsInputFocusChanged_:function(Y,G){Y?this.fire("yt-autonav-pause-focus"):G!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(Y){var G=this.getEditableTextArea_();[].concat(_.c8(Y.dataTransfer.items)).forEach(function(u){u.kind==="string"&&u.type.match("^text/plain")&&u.getAsString(function(O){G.appendChild(document.createTextNode(O))})});
Y.preventDefault()},
preventDefault_:function(Y){Y.preventDefault()},
onSuggestionInsert_:function(Y){this.insertTextWithEmojis_(Y.detail.range,Y.detail.text)},
onEmojiSuggestionClick_:function(Y){this.emojiInput.insertSuggestion(Y.detail)},
computeSubmitButtonClass_:function(Y,G){return!G||Y?"":"with-options"},
updateSuggestionOffset_:function(Y){if(this.emojiInput&&_.l0(this.emojiInput).querySelector("#dropdown")){var G=this.getEditableTextArea_().getBoundingClientRect().bottom,u=Y.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(G-u)+5;G=this.getEditableTextArea_().getBoundingClientRect().left;Y=Y.getBoundingClientRect().left-G;_.l0(this.emojiInput).querySelector("#dropdown").style.marginLeft=Y+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(Y){if(_.F("enable_post_scheduling")&&this.data&&this.data.purpose){Y=Y.detail;if(Math.floor(Date.now()/1E3)>=Y)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var G=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(G)||G!==Y?this.scheduledPublishTimeSec_=Y:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=Y;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var Y=["image-button","image-poll-button","poll-button","quiz-button"];_.F("auto_convert_posts_video_tag")||Y.push("video-link-button");return Y},
getButtonRenderer:function(Y,G){if(Y)switch(G){case "video-link-button":var u;return((u=Y.videoLinkButton)==null?void 0:u.buttonRenderer)||void 0;case "image-button":var O;return((O=Y.imageButton)==null?void 0:O.buttonRenderer)||void 0;case "poll-button":var Q;return((Q=Y.pollButton)==null?void 0:Q.buttonRenderer)||void 0;case "image-poll-button":var M;return((M=Y.imagePollButton)==null?void 0:M.buttonRenderer)||void 0;case "quiz-button":var t;return((t=Y.quizButton)==null?void 0:t.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var Y;return(Y=this.data)==null||!Y.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var Y,G;return!((Y=this.data)==null||!Y.openAadcDialog)&&!((G=this.aadcGuidelinesState_)==null||!G.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.DE("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var Y;((Y=this.data)==null?0:Y.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Da("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(Y){Y.clickTrackingParams&&_.M4().clickCommand(Y);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.qZ(this,"yt-close-popup-action")},
onHideIdentityChip:function(Y){var G;this.set("data.placeholderText",(G=Y.hideIdentityChipAction)==null?void 0:G.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var EP=function(){var Y=_.Z.apply(this,arguments)||this;Y.isOpen=!1;Y.modern=_.F("web_modern_buttons");Y.roundedContainer=!0;Y.dropdownButtonOverride=_.F("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;Y.inPopupContainer=!1;Y.isCommentboxLoading=!1;var G=["image-button","image-poll-button","poll-button"];_.F("enable_quiz_creation")&&G.push("quiz-button");_.F("auto_convert_posts_video_tag")||G.push("video-link-button");Y.attachmentButtonIds=G;Y.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 Y};
_.m(EP,_.Z);_.H=EP.prototype;_.H.computeButtonOverride=function(){var Y;return((Y=this.data)==null?0:Y.postOptionsMenu)&&_.F("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.H.configureRendererStamper=function(){var Y={"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]]"}}}}};_.F("auto_convert_posts_video_tag")||(Y["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return Y};
_.H.ready=function(){var Y=this,G=_.l0(this.hostElement).querySelector("#placeholder-area"),u=function(O){Y.onOpen(O)};
G.addEventListener("tap",u);G.addEventListener("keypress",u)};
_.H.showButtonEduTooltip=function(){var Y,G,u,O,Q,M,t;if(_.F("enable_quiz_creation")&&((Y=this.data)==null?0:(G=Y.quizButton)==null?0:(u=G.buttonRenderer)==null?0:(O=u.hint)==null?0:(Q=O.hintRenderer)==null?0:(M=Q.content)==null?0:(t=M.bubbleHintRenderer)==null?0:t.text)&&(_.cq.getInstance(),Y=Uh(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(Y==null?void 0:
Y.length)>0)){this.ytComponentBehavior.resolveCommand(Y[0],{form:{element:this.quizButton}});return}var K;if((K=this.data)==null?0:K.imagePollButtonTooltip)if(_.cq.getInstance(),K=Uh(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(K==null?void 0:K.length)>0){this.ytComponentBehavior.resolveCommand(K[0],{form:{element:this.imagePollButton}});return}var L;_.F("enable_multi_image_post_creation")&&
((L=this.data)==null?0:L.multiImageButtonTooltip)&&(_.cq.getInstance(),L=Uh(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(L==null?void 0:L.length)>0&&this.ytComponentBehavior.resolveCommand(L[0],{form:{element:this.imageButton}}))};
_.H.onCreatePollAction=function(Y){_.z(Y,uaR)&&(this.JSC$16280_commentbox.addedAttachment="poll",this.openDialog())};
_.H.onAddVideoLinkAction=function(Y){if(_.z(Y,vtX))this.JSC$16280_commentbox.onAddVideoLink(Y)};
_.H.onShowSchedulingPanelCommand=function(Y){(Y=_.z(Y,xaU))&&this.openSchedulingPanel(Y)};
_.H.onCreateImagePollCommand=function(Y){_.z(Y,eFR)&&(this.JSC$16280_commentbox.openImagePollComponent(),this.openDialog())};
_.H.onCreateQuizCommand=function(Y){_.z(Y,AiR)&&(this.JSC$16280_commentbox.openQuizComponent(),this.openDialog())};
_.H.openSchedulingPanel=function(Y){_.F("enable_post_scheduling")&&(this.openDialog(),this.JSC$16280_commentbox.openSchedulingPanel(Y))};
_.H.onCreateCommentAction=function(Y){this.get("createCommentAction.contents",Y)&&(this.JSC$16280_commentbox.clear(),this.closeDialog())};
_.H.onOpen=function(Y){Y instanceof KeyboardEvent&&Y.type==="keypress"&&Y.keyCode!==13&&Y.keyCode!==32||(this.data.prepareAccountEndpoint?_.$s(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.H.onYtCommentboxDismiss=function(){this.closeDialog()};
_.H.onYtCommentboxLoadingStart=function(Y){Y.stopPropagation();this.isCommentboxLoading=!0};
_.H.onYtCommentboxLoadingEnd=function(Y){Y.stopPropagation();this.isCommentboxLoading=!1};
_.H.onYtVideoLinkButtonCancel=function(Y){Y.stopPropagation();this.onOpen(Y)};
_.H.onYtVideoLinkSelected=function(Y){Y.stopPropagation();this.onOpen(Y)};
_.H.onIronSelect=function(Y){Y.stopPropagation();Y.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=Y.detail.item.value&&(this.accessRestriction?(this.accessRestriction=Y.detail.item.value,this.onOpen(Y)):this.accessRestriction=Y.detail.item.value)};
_.H.onYtNavigate=function(Y){this.get("detail.endpoint.backstageImageUploadEndpoint",Y)&&(this.JSC$16280_commentbox.addedAttachment="image",this.JSC$16280_commentbox.submitButtonDisabled=!0,this.onOpen(Y))};
_.H.onRequestSent=function(Y){for(var G=_.E(Y.detail),u=G.next();!u.done;u=G.next())_.z(u.value,S22)&&(this.JSC$16280_commentbox.addedAttachment="image",this.JSC$16280_commentbox.submitButtonDisabled=!0,this.onOpen(Y))};
_.H.openDialog=function(){var Y;(Y=this.data)!=null&&Y.isIneligibleForCommunityPagePostCreation||(this.JSC$16280_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16280_commentbox.focus())};
_.H.onPopupClosed=function(){_.cq.getInstance()};
_.H.computeCreationDisabled=function(Y){return!!Y};
_.H.computeIsCreationDialog=function(Y){return!!Y&&Y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.H.computeDisabledPostButton=function(Y){if(!Y)return null;Y.isDisabled=!0;return Y};
_.H.computeIsCreationDialogWithHeader=function(Y){return!this.inPopupContainer&&!!Y&&!!Y.authorText&&Y.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.H.computeIsHeaderHidden=function(Y,G){return!Y||G};
_.H.computeDropdownRendererClasses=function(Y){return Y?["text-secondary-style"]:[]};
_.H.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var Y=_.l0(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;Y&&Y.reset()};
EP.prototype.onPopupClosed=EP.prototype.onPopupClosed;EP.prototype.onRequestSent=EP.prototype.onRequestSent;EP.prototype.onYtNavigate=EP.prototype.onYtNavigate;EP.prototype.onIronSelect=EP.prototype.onIronSelect;EP.prototype.onYtVideoLinkSelected=EP.prototype.onYtVideoLinkSelected;EP.prototype.onYtVideoLinkButtonCancel=EP.prototype.onYtVideoLinkButtonCancel;EP.prototype.onYtCommentboxLoadingEnd=EP.prototype.onYtCommentboxLoadingEnd;EP.prototype.onYtCommentboxLoadingStart=EP.prototype.onYtCommentboxLoadingStart;
EP.prototype.onYtCommentboxDismiss=EP.prototype.onYtCommentboxDismiss;EP.prototype.showButtonEduTooltip=EP.prototype.showButtonEduTooltip;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],EP.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],EP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],EP.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],EP.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],EP.prototype,"isOpen",void 0);_.S([_.R({computed:"computeButtonOverride(data)"}),_.V("design:type",Object)],EP.prototype,"buttonOverride",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],EP.prototype,"modern",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],EP.prototype,"roundedContainer",void 0);_.S([_.R(),_.V("design:type",Object)],EP.prototype,"dropdownButtonOverride",void 0);_.S([_.R({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.V("design:type",Boolean)],EP.prototype,"creationDisabled",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],EP.prototype,"enableCreationBox",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.V("design:type",Boolean)],EP.prototype,"isCreationDialog",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],EP.prototype,"inPopupContainer",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.V("design:type",Boolean)],EP.prototype,"isCreationDialogWithHeader",void 0);_.S([_.R(),_.V("design:type",Object)],EP.prototype,"accessRestriction",void 0);
_.S([_.R({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.V("design:type",Array)],EP.prototype,"dropdownRendererClasses",void 0);_.S([_.R(),_.V("design:type",Object)],EP.prototype,"isCommentboxLoading",void 0);_.S([_.R(),_.V("design:type",Array)],EP.prototype,"attachmentButtonIds",void 0);_.S([_.Ox("#image-button"),_.V("design:type",HTMLElement)],EP.prototype,"imageButton",void 0);
_.S([_.Ox("#image-poll-button"),_.V("design:type",HTMLElement)],EP.prototype,"imagePollButton",void 0);_.S([_.Ox("#quiz-button"),_.V("design:type",HTMLElement)],EP.prototype,"quizButton",void 0);_.S([_.Ox("#commentbox"),_.V("design:type",Object)],EP.prototype,"JSC$16280_commentbox",void 0);_.S([_.GO("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EP.prototype,"showButtonEduTooltip",null);
_.S([_.Yo("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],EP.prototype,"onYtCommentboxDismiss",null);_.S([_.Yo("yt-commentbox-loading-start"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],EP.prototype,"onYtCommentboxLoadingStart",null);
_.S([_.Yo("yt-commentbox-loading-end"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],EP.prototype,"onYtCommentboxLoadingEnd",null);_.S([_.Yo("yt-video-link-button-cancel"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],EP.prototype,"onYtVideoLinkButtonCancel",null);
_.S([_.Yo("yt-video-link-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],EP.prototype,"onYtVideoLinkSelected",null);_.S([_.Yo("iron-select"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],EP.prototype,"onIronSelect",null);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],EP.prototype,"onYtNavigate",null);
_.S([_.Yo("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],EP.prototype,"onRequestSent",null);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EP.prototype,"onPopupClosed",null);_.S([_.pD({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],EP);
_.d(EP,"ytd-backstage-post-dialog-renderer",function(){if(dGT!==void 0)return dGT;var Y=document.createElement("template");_.r(Y,'\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"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\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>\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]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" 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 class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return dGT=Y},{mode:1});var ku_;var nLU;var tp=function(){return _.Z.apply(this,arguments)||this};
_.m(tp,_.Z);_.H=tp.prototype;_.H.computeHeartButtonStyle=function(Y){return(Y==null?0:Y.styleType)?Y.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.H.onYtButtonTap=function(){if(this.data.isEnabled){var Y=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(Y=this.getEndpoint(Y))&&_.sH().resolve(_.rH).resolveCommand(Y,{form:{element:this.hostElement}})}else(Y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(Y)};
_.H.toggle=function(Y){this.set("data.isHearted",Y!==void 0?Y:!this.data.isHearted)};
_.H.getEndpoint=function(Y){var G,u=(G=this.data)==null?void 0:G.heartEndpoint,O;G=(O=this.data)==null?void 0:O.unheartEndpoint;if(u&&G)return Y?G:u};
_.H.computeButtonAccessibility=function(Y,G){var u,O,Q=Y==null?void 0:(u=Y.heartedAccessibility)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label,M,t;Y=Y==null?void 0:(M=Y.unheartedAccessibility)==null?void 0:(t=M.accessibilityData)==null?void 0:t.label;return G?Q:Y};
_.Uk.Object.defineProperties(tp.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 Y;return _.F("kevlar_system_icons")&&!((Y=this.data)==null||!Y.isHearted)}}});
tp.prototype.onYtButtonTap=tp.prototype.onYtButtonTap;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.SZ),_.V("design:type",Object)],tp.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],tp.prototype,"data",void 0);_.S([_.f("data.isHearted"),_.V("design:type",Object),_.V("design:paramtypes",[])],tp.prototype,"heartTooltip",null);
_.S([_.f("data.isHearted"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],tp.prototype,"iconFilled",null);_.S([_.R({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.V("design:type",String)],tp.prototype,"buttonAccessibility",void 0);_.S([_.R({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.V("design:type",String)],tp.prototype,"heartButtonStyle",void 0);
_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tp.prototype,"onYtButtonTap",null);_.S([_.pD({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],tp);
_.d(tp,"ytd-creator-heart-renderer",function(){if(nLU!==void 0)return nLU;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return nLU=Y},{mode:1});var Kp=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasCreatorReply=!1;Y.buttonOverrides={size:"S",iconPosition:"icon-only"};Y.replyButtonOverrides={size:"S",type:"text"};Y.forceIconButton=!_.F("web_modern_buttons");Y.modern=_.F("web_modern_buttons");Y.buttonTooltipPosition="bottom";Y.systemIcons=_.F("kevlar_system_icons");Y.replyDialog=null;return Y};
_.m(Kp,_.Z);_.H=Kp.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&&_.l0(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var Y,G,u;this.isLiked=this.systemIcons&&!!((Y=this.data)==null?0:(G=Y.likeButton)==null?0:(u=G.toggleButtonRenderer)==null?0:u.isToggled)};
_.H.computeShowVoteCountBeginning=function(Y,G){return Y===void 0||G===void 0?!0:Y.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!G&&this.ytRendererBehavior.getSimpleString(G)!=="0"};
_.H.computeShowVoteCountEnd=function(Y,G){return Y===void 0||G===void 0?!0:Y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!G&&this.ytRendererBehavior.getSimpleString(G)!=="0"};
_.H.computeShowCommentCount=function(Y,G){return Y===void 0||G===void 0?!0:Y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!G&&this.ytRendererBehavior.getSimpleString(G)!=="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(Y){Y&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.l0(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=Y,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.H.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.H.onRequestSent=function(Y){Y=_.E(Y.detail);for(var G=Y.next();!G.done;G=Y.next())(G=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",G.value))&&this.showReplyDialog(G)};
_.H.onYtNavigate=function(Y){var G,u;(Y=(G=_.z(Y.detail.endpoint,_.j8k))==null?void 0:(u=G.dialog)==null?void 0:u.commentReplyDialogRenderer)&&this.showReplyDialog(Y)};
_.H.onYtServiceRequestSent=function(Y,G){Y.stopPropagation();if(G.actions)for(Y=0;Y<G.actions.length;Y++){var u=_.z(G.actions[Y],tXR);u&&this.handleUpdateCommentVoteAction(u)}};
_.H.handleUpdateCommentVoteAction=function(Y){this.voteCount=Y.voteCount||_.i8("0");Y.voteStatus==="LIKE"?this.JSC$16292_ytdDislikeToggleButtonRenderer.toggle(!1):Y.voteStatus==="DISLIKE"?this.JSC$16292_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16292_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16292_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.H.computeReplyButtonHidden=function(Y){return Y};
_.H.computeReplyButtonBeginning=function(Y){return(Y==null?0:Y.replyButton)&&Y.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?Y.replyButton:void 0};
_.H.computeReplyButtonEnd=function(Y){return(Y==null?0:Y.replyButton)&&Y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?Y.replyButton:void 0};
_.H.computeActionButtonStyle=function(Y){return(Y==null?0:Y.style)?Y.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.H.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.H.onYtToggleButton=function(Y){var G,u;this.isLiked=this.systemIcons&&!!((G=Y.detail)==null?0:(u=G.actions)==null?0:u.like)};
Kp.prototype.onYtToggleButton=Kp.prototype.onYtToggleButton;Kp.prototype.onButtonTooltipPositionChanged=Kp.prototype.onButtonTooltipPositionChanged;Kp.prototype.onYtServiceRequestSent=Kp.prototype.onYtServiceRequestSent;Kp.prototype.onYtNavigate=Kp.prototype.onYtNavigate;Kp.prototype.onRequestSent=Kp.prototype.onRequestSent;Kp.prototype.onYtCommentboxDismiss=Kp.prototype.onYtCommentboxDismiss;Kp.prototype.dataChange=Kp.prototype.dataChange;
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Kp.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Kp.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Kp.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Kp.prototype,"voteCount",void 0);_.S([_.R(),_.V("design:type",Object)],Kp.prototype,"commentCount",void 0);_.S([_.R(),_.V("design:type",Object)],Kp.prototype,"replyThumbnail",void 0);
_.S([_.R(),_.V("design:type",Object)],Kp.prototype,"hasCreatorReply",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Kp.prototype,"enableCreationBox",void 0);_.S([_.R({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.V("design:type",String)],Kp.prototype,"actionButtonsStyle",void 0);_.S([_.R({computed:"computeReplyButtonBeginning(data)"}),_.V("design:type",Object)],Kp.prototype,"replyButtonBeginning",void 0);
_.S([_.R({computed:"computeReplyButtonEnd(data)"}),_.V("design:type",Object)],Kp.prototype,"replyButtonEnd",void 0);_.S([_.R(),_.V("design:type",Object)],Kp.prototype,"buttonOverrides",void 0);_.S([_.R(),_.V("design:type",Object)],Kp.prototype,"replyButtonOverrides",void 0);_.S([_.R(),_.V("design:type",Object)],Kp.prototype,"forceIconButton",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Kp.prototype,"useCommentIcon",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Kp.prototype,"modern",void 0);_.S([_.R(),_.V("design:type",Object)],Kp.prototype,"buttonTooltipPosition",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Kp.prototype,"systemIcons",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Kp.prototype,"isLiked",void 0);_.S([_.Ox("ytd-button-renderer"),_.V("design:type",Object)],Kp.prototype,"ytdReplyButtonRenderer",void 0);
_.S([_.Ox("#like-button"),_.V("design:type",Object)],Kp.prototype,"JSC$16292_ytdLikeToggleButtonRenderer",void 0);_.S([_.Ox("#dislike-button"),_.V("design:type",Object)],Kp.prototype,"JSC$16292_ytdDislikeToggleButtonRenderer",void 0);_.S([_.Ox("#reply-dialog"),_.V("design:type",HTMLElement)],Kp.prototype,"replyDialogElement",void 0);_.S([_.Ox("#reply-button"),_.V("design:type",HTMLElement)],Kp.prototype,"replyButtonElement",void 0);
_.S([_.Ox("#reply-button-end"),_.V("design:type",HTMLElement)],Kp.prototype,"replyButtonEndElement",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Kp.prototype,"dataChange",null);_.S([_.Yo("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Kp.prototype,"onYtCommentboxDismiss",null);
_.S([_.Yo("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Kp.prototype,"onRequestSent",null);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Kp.prototype,"onYtNavigate",null);
_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],Kp.prototype,"onYtServiceRequestSent",null);_.S([_.GO("buttonTooltipPosition"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Kp.prototype,"onButtonTooltipPositionChanged",null);
_.S([_.Yo("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Kp.prototype,"onYtToggleButton",null);_.S([_.pD({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Kp);
_.d(Kp,"ytd-comment-action-buttons-renderer",function(){if(ku_!==void 0)return ku_;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return ku_=Y},{mode:1});var FXk;var ab=function(){return _.Z.apply(this,arguments)||this};
_.m(ab,_.Z);ab.prototype.focus=function(){_.l0(this.hostElement).querySelector("#commentbox").focus()};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ab.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],ab.prototype,"zeroStepChannelCreationRenderer",void 0);_.S([_.pD({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],ab);
_.d(ab,"ytd-comment-dialog-renderer",function(){if(FXk!==void 0)return FXk;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return FXk=Y},{mode:1});var poM;var Ts=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.F("enable_web_delhi_icons")};Y.replyButtonOverrides={size:"S",type:"text"};return Y};
_.m(Ts,_.Z);_.H=Ts.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(Y){if(Y){var G=this.replyBox;G||(G=document.createElement("ytd-comment-reply-dialog-renderer"),G.id="replybox",_.l0(this.replyDialogDiv).appendChild(G));G.data=Y;this.replyDialogDiv.hidden=!1;G.openDialog()}};
_.H.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.H.handleReplyButtonClick=function(){if(this.isSuperfanOnlyCommentsEligibleUser){var Y,G=_.z((Y=this.toolbarSurface)==null?void 0:Y.superfanOnlySnackbarCommand,_.nd);G&&_.$s(this.hostElement,"yt-show-superfan-only-snackbar",{command:G})}else this.isSubsOnlyCommentsEligibleUser&&(Y=_.z((G=this.toolbarSurface)==null?void 0:G.subscribersOnlyDisclaimerSnackbarCommand,_.nd))&&_.$s(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:Y})};
_.H.onYtServiceRequestSent=function(Y,G){Y.stopPropagation();if(G.actions)for(var u=0;u<G.actions.length;u++){var O=_.z(G.actions[u],tXR);O?this.handleUpdateCommentVoteAction(O):Y.target===this.heartButton&&this.toggleHeartState()}};
_.H.handleUpdateCommentVoteAction=function(Y){var G;(G=this.toolbarState)!=null&&G.key&&this.ytdReduxBehavior.dispatch(_.zP("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:Y.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":Y.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.H.toggleHeartState=function(){var Y;(Y=this.toolbarState)!=null&&Y.key&&this.ytdReduxBehavior.dispatch(_.zP("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Uk.Object.defineProperties(Ts.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return(((Y=this.toolbarState)==null?void 0:Y.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(G=this.toolbarData)==null?void 0:G.likeCountLiked:(u=this.toolbarData)==null?void 0:u.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.toolbarSurface)==null?void 0:Y.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.toolbarSurface)==null?void 0:Y.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.toolbarSurface)==null?void 0:Y.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
isSuperfanOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.toolbarSurface)==null?void 0:Y.superfanOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.toolbarSurface)==null?void 0:Y.prepareAccountCommand)!==void 0&&!_.F("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,G=_.z((Y=this.toolbarSurface)==null?void 0:Y.prepareAccountCommand,_.nd),u,O,Q,M,t,K,L,g,P;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((u=this.toolbarSharedData)==null||!u.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((O=this.toolbarState)==null?void 0:O.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:G!=null?G:_.z((Q=this.toolbarSurface)==null?void 0:Q.likeCommand,_.nd),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:G!=null?G:_.z((M=this.toolbarSurface)==null?void 0:M.unlikeCommand,_.nd),defaultCommand:this.isVisiblyDisabled?_.z((t=this.toolbarSurface)==null?void 0:t.commentDisabledActionCommand,_.nd):void 0,defaultTooltip:(K=this.toolbarData)==null?void 0:K.likeInactiveTooltip,toggledTooltip:(L=this.toolbarData)==null?void 0:L.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(g=this.toolbarData)==null?void 0:g.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(P=this.toolbarSharedData)==null?void 0:P.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,G=_.z((Y=this.toolbarSurface)==null?void 0:Y.prepareAccountCommand,_.nd),u,O,Q,M,t,K,L,g,P,I;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((u=this.toolbarSharedData)==null||!u.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((O=this.toolbarState)==null?void 0:O.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:G!=null?G:_.z((Q=this.toolbarSurface)==null?void 0:Q.dislikeCommand,_.nd),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:G!=null?G:_.z((M=this.toolbarSurface)==null?void 0:M.undislikeCommand,_.nd),defaultCommand:this.isVisiblyDisabled?_.z((t=this.toolbarSurface)==null?void 0:t.commentDisabledActionCommand,_.nd):void 0,defaultTooltip:(K=this.toolbarData)==null?void 0:K.dislikeInactiveTooltip,toggledTooltip:(L=this.toolbarData)==null?void 0:
L.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(g=this.toolbarSharedData)==null?void 0:g.dislikeReplyButtonA11y:(P=this.toolbarSharedData)==null?void 0:P.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(I=this.toolbarSharedData)==null?void 0:I.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;if(((Y=this.toolbarState)==null?void 0:Y.heartState)!==void 0&&((G=this.toolbarState)==null?void 0:G.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((u=this.toolbarState)==null?void 0:u.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var O,Q,M,t,K,L,g,P,I,k,n,p,W,C;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(O=this.toolbarData)==null?void 0:O.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((Q=this.toolbarState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((t=this.toolbarState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((K=this.toolbarState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.z((L=this.toolbarSurface)==null?void 0:L.heartCommand,
_.nd),unheartEndpoint:this.isVisiblyDisabled?void 0:_.z((g=this.toolbarSurface)==null?void 0:g.unheartCommand,_.nd),disabledEndpoint:this.isVisiblyDisabled?_.z((P=this.toolbarSurface)==null?void 0:P.commentDisabledActionCommand,_.nd):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(I=this.toolbarData)==null?void 0:I.heartActiveTooltip,unheartedTooltip:(k=this.toolbarData)==null?void 0:k.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((n=
this.toolbarState)==null?void 0:n.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(p=this.toolbarSharedData)==null?void 0:p.unheartButtonA11y:(W=this.toolbarSharedData)==null?void 0:W.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(C=this.toolbarSharedData)==null?void 0:C.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.toolbarSurface)==null||!Y.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.commentStrings)!=null&&Y.replyButtonText){var G,u,O,Q;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(G=this.commentStrings)==null?void 0:G.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.z((u=this.toolbarSurface)==null?void 0:u.replyCommand,_.nd),command:this.isVisiblyDisabled?
_.z((O=this.toolbarSurface)==null?void 0:O.commentDisabledActionCommand,_.nd):this.isSubsOnlyCommentsIneligibleUser?_.z((Q=this.toolbarSurface)==null?void 0:Q.subscribersOnlySnackbarCommand,_.nd):void 0}}}}});
Ts.prototype.onYtServiceRequestSent=Ts.prototype.onYtServiceRequestSent;Ts.prototype.hideReplyDialogDiv=Ts.prototype.hideReplyDialogDiv;_.S([_.R(),_.V("design:type",Object)],Ts.prototype,"commentStrings",void 0);_.S([_.R(),_.V("design:type",Boolean)],Ts.prototype,"isReply",void 0);_.S([_.R(),_.V("design:type",Object)],Ts.prototype,"toolbarData",void 0);_.S([_.R(),_.V("design:type",Object)],Ts.prototype,"toolbarSharedData",void 0);
_.S([_.R(),_.V("design:type",String)],Ts.prototype,"toolbarStateKey",void 0);_.S([_.R(),_.V("design:type",String)],Ts.prototype,"toolbarSurfaceKey",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Ts.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Ts.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ts.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.SZ),_.V("design:type",Object)],Ts.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.Ox("#reply-dialog"),_.V("design:type",HTMLElement)],Ts.prototype,"replyDialogDiv",void 0);_.S([_.Ox("#replybox"),_.V("design:type",Object)],Ts.prototype,"replyBox",void 0);_.S([_.Ox("ytd-creator-heart-renderer"),_.V("design:type",Object)],Ts.prototype,"heartButton",void 0);_.S([_.R({selector:function(Y,G){return _.v2(Y.entities,"engagementToolbarStateEntityPayload",G)},
selectorArgs:["toolbarStateKey"]}),_.V("design:type",Object)],Ts.prototype,"toolbarState",void 0);_.S([_.R({selector:eLt,selectorArgs:["toolbarSurfaceKey"]}),_.V("design:type",Object)],Ts.prototype,"toolbarSurface",void 0);_.S([_.R(),_.V("design:type",Object)],Ts.prototype,"buttonOverrides",void 0);_.S([_.Yo("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ts.prototype,"hideReplyDialogDiv",null);
_.S([_.f("toolbarData","toolbarState"),_.V("design:type",String),_.V("design:paramtypes",[])],Ts.prototype,"likeCount",null);_.S([_.f("likeCount"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ts.prototype,"showLikeCount",null);_.S([_.f("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ts.prototype,"isVisiblyDisabled",null);_.S([_.f("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ts.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.S([_.f("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ts.prototype,"isSubsOnlyCommentsEligibleUser",null);_.S([_.f("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ts.prototype,"isSuperfanOnlyCommentsEligibleUser",null);_.S([_.f("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ts.prototype,"hasPrepareAccountCommand",null);
_.S([_.f("toolbarData","toolbarState","toolbarSurface"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ts.prototype,"likeToggleButtonRenderer",null);_.S([_.f("isReply","toolbarData","toolbarState","toolbarSurface"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ts.prototype,"dislikeToggleButtonRenderer",null);_.S([_.f("toolbarData","toolbarState","toolbarSurface"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ts.prototype,"creatorHeartSupportedRenderer",null);
_.S([_.f("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ts.prototype,"hasReplyCommand",null);_.S([_.f("toolbarSurface","commentStrings","isVisiblyDisabled"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ts.prototype,"replyButtonRenderer",null);_.S([_.R(),_.V("design:type",Object)],Ts.prototype,"replyButtonOverrides",void 0);
_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],Ts.prototype,"onYtServiceRequestSent",null);_.S([_.pD({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Ts);
_.d(Ts,"ytd-comment-engagement-bar",function(){if(poM!==void 0)return poM;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return poM=Y},{mode:1});var zyV;var Lp=function(){return _.Z.apply(this,arguments)||this};
_.m(Lp,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Lp.prototype,"data",void 0);_.S([_.pD({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],Lp);
_.d(Lp,"ytd-comment-inline-thumbnail-renderer",function(){if(zyV!==void 0)return zyV;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return zyV=Y},{mode:1});var m_U;var g9=function(){return _.Z.apply(this,arguments)||this};
_.m(g9,_.Z);g9.prototype.onMessageTap=function(){if(this.onTapCommand){var Y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);Y&&this.ytdOpenPopupBehavior.openPopup(Y)}};
_.Uk.Object.defineProperties(g9.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return(Y=this.data)==null?void 0:(G=Y.button)==null?void 0:(u=G.buttonRenderer)==null?void 0:u.command}}});
_.S([_.x(_.SZ),_.V("design:type",Object)],g9.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],g9.prototype,"data",void 0);_.S([_.f("data.button.buttonRenderer.command"),_.V("design:type",Object),_.V("design:paramtypes",[])],g9.prototype,"onTapCommand",null);_.S([_.pD({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],g9);
_.d(g9,"ytd-comment-pause-composer-renderer",function(){if(m_U!==void 0)return m_U;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return m_U=Y},{mode:1});var WXe;var rxk;var XT=function(){var Y=_.Z.apply(this,arguments)||this;Y.isOpen=!1;return Y};
_.m(XT,_.Z);_.H=XT.prototype;_.H.dataChanged=function(){this.isOpen=!1};
_.H.onTap=function(){this.data&&(this.data.navigationEndpoint?_.$s(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.H.focus=function(){this.JSC$16321_commentbox.focus()};
_.H.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.H.openDialog=function(){this.isOpen=!0;this.JSC$16321_commentbox.focus();this.JSC$16321_commentbox.maybeHeightChanged()};
XT.prototype.onYtCommentboxDismiss=XT.prototype.onYtCommentboxDismiss;XT.prototype.dataChanged=XT.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],XT.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],XT.prototype,"isOpen",void 0);_.S([_.Ox("#commentbox"),_.V("design:type",Object)],XT.prototype,"JSC$16321_commentbox",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],XT.prototype,"dataChanged",null);_.S([_.Yo("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],XT.prototype,"onYtCommentboxDismiss",null);_.S([_.pD({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],XT);
_.d(XT,"ytd-comment-reply-dialog-renderer",function(){if(rxk!==void 0)return rxk;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return rxk=Y},{mode:1});var x_X;var Pz=function(){return _.Z.apply(this,arguments)||this};
_.m(Pz,_.Z);_.Uk.Object.defineProperties(Pz.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=(Y=this.data)==null?void 0:(G=Y.icon)==null?void 0:G.iconType;return u?"yt-icons:"+u.toLowerCase():null}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Pz.prototype,"data",void 0);_.S([_.R(),_.f("data.icon"),_.V("design:type",Object),_.V("design:paramtypes",[])],Pz.prototype,"icon",null);_.S([_.pD({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Pz);
_.d(Pz,"ytd-pinned-comment-badge-renderer",function(){if(x_X!==void 0)return x_X;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return x_X=Y},{mode:1});var fzX;var CZe={},yxe={input:!0,meta:!0,br:!0,link:!0,img:!0},Ib=null;CZe.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(){Ib==null&&(Ib=document.createElement("tp-yt-paper-tooltip"),Ib.offset=8,Ib.fitToVisibleBounds=!0)},
onMouseOver_:function(Y){if(Y=_.pm(Y.target,function(Q){return Q==this||Q.getAttribute&&Q.getAttribute("shared-tooltip-text")}.bind(this),!0)){var G=Y.getAttribute("shared-tooltip-text");
if(G){var u=this,O=null;Y!=this&&(Y.tagName.toLowerCase()in yxe?u=Y.parentElement:u=Y,Y.id&&(O=Y.id));this.polymerController.createTooltipIfRequired_();if(Ib.parentElement!=u||Ib.for!=O)(0,_.sb)(Ib).textContent=G,_.l0(u).appendChild(Ib),Ib.for=O,Ib.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Ib.position=this.polymerController.sharedTooltipPosition}}}};var kJ=function(){return _.Z.apply(this,arguments)||this};
_.m(kJ,_.Z);kJ.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]]"}}}}}};
kJ.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var Y;((Y=this.data)==null?0:Y.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var G;((G=this.data)==null?0:G.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
kJ.prototype.colorChanged=function(){var Y,G,u,O=(Y=this.data)==null?void 0:(G=Y.color)==null?void 0:(u=G.basicColorPaletteData)==null?void 0:u.foregroundBodyColor;O&&(this.rgbBadgeColor=_.k3(O));_.l0(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
kJ.prototype.tooltipChanged=function(){var Y;((Y=this.data)==null?0:Y.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
kJ.prototype.tooltipChanged=kJ.prototype.tooltipChanged;kJ.prototype.colorChanged=kJ.prototype.colorChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(CZe.YtSharedTooltipBehavior),_.V("design:type",Object)],kJ.prototype,"ytSharedTooltipBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],kJ.prototype,"data",void 0);
_.S([_.R({value:"#4285F4"}),_.V("design:type",String)],kJ.prototype,"rgbBadgeColor",void 0);_.S([_.GO("data.color"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kJ.prototype,"colorChanged",null);_.S([_.GO("data.tooltip"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kJ.prototype,"tooltipChanged",null);_.S([_.pD({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],kJ);
_.d(kJ,"ytd-sponsor-comment-badge-renderer",function(){if(fzX!==void 0)return fzX;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return fzX=Y},{mode:1});var eyI;var AxR;var np=function(){return _.Z.apply(this,arguments)||this};
_.m(np,_.Z);np.prototype.computeState=function(Y){switch(Y==null?void 0:Y.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"}};
np.prototype.updateStateIdentifier=function(Y){if(this.viewModel.triStateKey){var G=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.zP("triStateButtonStateEntityPayload",G,{key:G,stateIdentifier:Y}))}};
np.prototype.onClick=function(){var Y=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(){Y.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){Y.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Uk.Object.defineProperties(np.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 Y;return((Y=this.data)==null?void 0:Y.buttonText)||""}}});
_.S([_.R(),_.V("design:type",Object)],np.prototype,"viewModel",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],np.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],np.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.S([_.R({selector:AOA,selectorArgs:["viewModel.triStateKey"]}),_.V("design:type",Object)],np.prototype,"triStateButtonStateEntity",void 0);
_.S([_.R({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.V("design:type",String)],np.prototype,"state",void 0);_.S([_.f("viewModel","state"),_.V("design:type",Object),_.V("design:paramtypes",[])],np.prototype,"data",null);_.S([_.f("data"),_.V("design:type",String),_.V("design:paramtypes",[])],np.prototype,"buttonText",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],np);
_.d(np,"ytd-tri-state-button-view-model",function(){if(AxR!==void 0)return AxR;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return AxR=Y},{mode:1});var oLX;var is1;var FT=function(){var Y=_.Z.apply(this,arguments)||this;Y.defaultIconToFilled=!_.F("kevlar_fill_comment_chip_icon_killswitch");return Y};
_.m(FT,_.Z);FT.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
FT.prototype.dataChanged=function(){if(this.data){var Y,G;((Y=this.data.chipColorPalette)==null?0:Y.backgroundColor)&&((G=this.data.chipColorPalette)==null?0:G.foregroundTitleColor)&&_.cm(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.nB(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.nB(this.data.chipColorPalette.foregroundTitleColor)});var u;((u=this.data)==null?0:u.command)?(_.cm(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.cm(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}};
FT.prototype.onTap=function(){var Y;if(this.data&&(Y=this.data)!=null&&Y.command){var G;this.ytComponentBehavior.resolveCommand((G=this.data)==null?void 0:G.command)}};
FT.prototype.getIconSize=function(){return _.F("kevlar_fill_comment_chip_icon_killswitch")?24:12};
FT.prototype.onTap=FT.prototype.onTap;FT.prototype.dataChanged=FT.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],FT.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.Gp),_.V("design:type",Object)],FT.prototype,"ironA11yKeysBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],FT.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],FT.prototype,"basePriceText",void 0);_.S([_.R(),_.V("design:type",Object)],FT.prototype,"chipIcon",void 0);_.S([_.R(),_.V("design:type",Object)],FT.prototype,"defaultIconToFilled",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],FT.prototype,"dataChanged",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],FT.prototype,"onTap",null);
_.S([_.Ff({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],FT);
_.d(FT,"yt-pdg-comment-chip-renderer",function(){if(is1===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;oLX===void 0&&(oLX=document.createElement("template"));var O=oLX;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);is1=Y}Y=is1;return Y},{mode:2});var pp=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasSubThreading=!1;Y.useSmallAvatars=_.F("small_avatars_for_comments");Y.commentThreadingEnabled=_.F("web_delhi_comment_threads");Y.webWatchCompactComments=_.F("web_watch_compact_comments");Y.editDialog=null;return Y};
_.m(pp,_.Z);_.H=pp.prototype;_.H.onShow=function(){_.zb("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 Y={"--ytd-comment-paid-background-color":_.nB(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.cm(this.hostElement,Y)}else _.cm(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.H.resetExpander=function(){var Y;(Y=this.expander)==null||Y.reset()};
_.H.openEditDialog=function(Y){Y.dialog&&(this.editDialog=Y.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.H.onYtNavigate=function(Y){var G=Y.detail.endpoint;if(G=_.z(G,_.VOR)||_.z(G,_.lAT))Y.stopPropagation(),this.openEditDialog(G)};
_.H.onYtCommentboxDismiss=function(){this.editDialog=null;_.cm(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.H.onAuthorThumbnailClicked=function(){_.F("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(Y){var G;(Y==null?0:(G=Y.detail)==null?0:G.height)&&_.cm(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":Y.detail.height+"px"})};
_.Uk.Object.defineProperties(pp.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 Y,G=(Y=this.commentEntity)==null?void 0:Y.author;return G&&(G.isCreator||G.isVerified||G.isArtist)?{renderer:{authorEndpoint:G.channelPageEndpoint?_.z(G.channelPageEndpoint,_.nd):_.z(G.channelCommand,_.nd),authorText:{runs:[{text:G.displayName}]},color:G.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:G.isArtist?{iconType:"AUDIO_BADGE"}:
G.isVerified?{iconType:G.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:G.isArtist||G.isVerified?G.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var Y,G=(Y=this.commentEntity)==null?void 0:Y.author;return G!=null&&G.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:G.sponsorBadgeUrl}]},tooltip:G.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;return _.z((Y=this.commentSurfaceEntity)==null?void 0:Y.pdgCommentChip,_.FBR)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var Y;return this.voiceReplyContainerViewModel&&((Y=this.voiceReplyContainerViewModel)==null?void 0:Y.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var Y;return _.z((Y=this.commentSurfaceEntity)==null?void 0:Y.voiceReplyContainerViewModel,kl2)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var Y;return this.voiceReplyContainerViewModel&&(Y=this.voiceReplyContainerViewModel)!=null&&Y.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(G=(Y=this.commentSurfaceEntity)==null?void 0:Y.commentBackgroundColor)!=null?G:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.F("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(((Y=this.commentEntity)==null?void 0:(G=Y.properties)==null?void 0:G.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var Y,G;if(_.F("enable_profile_cards_on_comments")&&((Y=this.commentEntity)==null?0:(G=Y.author)==null?0:G.profileCardEndpoint)&&this.viewModel.allowProfileCard){var u,O;return _.z((u=this.commentEntity)==null?void 0:(O=u.author)==null?void 0:O.profileCardEndpoint,_.nd)}var Q,M;return _.z((Q=this.commentEntity)==null?void 0:(M=Q.avatar)==null?void 0:M.endpoint,_.nd)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var Y,G;if(_.F("enable_profile_cards_on_comments")&&((Y=this.commentEntity)==null?0:(G=Y.author)==null?0:G.channelPageEndpoint)){var u,O;return _.z((u=this.commentEntity)==null?void 0:(O=u.author)==null?void 0:O.channelPageEndpoint,_.nd)}var Q,M;return _.z((Q=this.commentEntity)==null?void 0:(M=Q.avatar)==null?void 0:M.endpoint,_.nd)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O,Q=(Y=this.commentEntity)==null?void 0:(G=Y.avatar)==null?void 0:(u=G.image)==null?void 0:(O=u.sources)==null?void 0:O[0];return Q?{thumbnails:[{url:Q.url,width:Q.width,height:Q.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.commentEntity)==null?0:(G=Y.author)==null?0:G.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.commentEntity)==null?void 0:(G=Y.author)==null?void 0:G.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.commentEntity)==null?void 0:(G=Y.properties)==null?void 0:G.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var Y;return _.z((Y=this.commentSurfaceEntity)==null?void 0:Y.publishedTimeCommand,_.nd)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var Y,G;if(((Y=this.commentEntity)==null?0:Y.translatedContent)&&((G=this.translateButtonState)==null?void 0:G.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var u;if((u=this.voiceReplyContainerViewModel)==null?0:u.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var O,Q;return((O=this.commentEntity)==null?void 0:(Q=O.properties)==null?void 0:Q.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.commentSharedEntity)==null?void 0:(G=Y.strings)==null?void 0:G.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.commentSharedEntity)==null?void 0:(G=Y.strings)==null?void 0:G.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.commentEntity)==null||!Y.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var Y,G,u=(G=_.z((Y=this.viewModel)==null?void 0:Y.translateButton,IcU))!=null?G:{},O,Q,M,t,K,L,g,P,I,k,n;return Object.assign({},u,{untoggledStateData:Object.assign({},u.untoggledStateData,{buttonText:(O=this.commentEntity)==null?void 0:(Q=O.translateData)==null?void 0:Q.text}),togglingStateData:Object.assign({},u.togglingStateData,{buttonText:(M=this.commentSharedEntity)==null?
void 0:(t=M.strings)==null?void 0:t.translatingText}),toggledStateData:Object.assign({},u.toggledStateData,{buttonText:(K=this.commentSharedEntity)==null?void 0:(L=K.strings)==null?void 0:L.seeOriginalText}),transitionCommand:((g=this.commentEntity)==null?0:g.translatedContent)?void 0:_.z((P=this.commentEntity)==null?void 0:(I=P.translateData)==null?void 0:I.translateComment,_.nd),triStateKey:(k=this.commentEntity)==null?void 0:(n=k.properties)==null?void 0:n.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return((G=_.z(_.z((Y=this.toolbarSurface)==null?void 0:Y.menuCommand,_.nd),B8M))==null?void 0:(u=G.menu)==null?void 0:u.menuRenderer)||null}}});
pp.prototype.onYtCommentboxResize=pp.prototype.onYtCommentboxResize;pp.prototype.onYtCommentboxDismiss=pp.prototype.onYtCommentboxDismiss;pp.prototype.onYtNavigate=pp.prototype.onYtNavigate;pp.prototype.resetExpander=pp.prototype.resetExpander;pp.prototype.updateBackgroundColor=pp.prototype.updateBackgroundColor;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],pp.prototype,"ytdReduxBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],pp.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],pp.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Ox("#author-thumbnail > button"),_.V("design:type",HTMLElement)],pp.prototype,"authorThumbnailAnchor",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],pp.prototype,"hovered",void 0);
_.S([_.R(),_.V("design:type",Object)],pp.prototype,"hasSubThreading",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("viewModel"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pp.prototype,"linked",null);_.S([_.f("viewModel","linked"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"linkedCommentBadge",null);_.S([_.R({reflectToAttribute:!0}),_.f("viewModel"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pp.prototype,"pinned",null);
_.S([_.f("viewModel","pinned"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"pinnedCommentBadge",null);_.S([_.f("commentEntity","commentSharedEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"authorCommentBadge",null);_.S([_.R({reflectToAttribute:!0}),_.f("authorCommentBadge"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"hasAuthorBadge",null);
_.S([_.f("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"sponsorCommentBadge",null);_.S([_.R({reflectToAttribute:!0}),_.f("sponsorCommentBadge"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"hasSponsorBadge",null);_.S([_.f("commentSurfaceEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"pdgCommentChipRenderer",null);
_.S([_.R({reflectToAttribute:!0}),_.f("voiceReplyContainerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"hasVoiceReply",null);_.S([_.f("commentSurfaceEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"voiceReplyContainerViewModel",null);_.S([_.f("voiceReplyContainerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"voiceReplyUnavailableText",null);_.S([_.R(),_.V("design:type",Object)],pp.prototype,"data",void 0);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"viewModel",null);_.S([_.R({selector:function(Y,G){return _.v2(Y.entities,"commentSharedEntityPayload",G)},
selectorArgs:["viewModel.sharedKey"]}),_.V("design:type",Object)],pp.prototype,"commentSharedEntity",void 0);_.S([_.R({selector:yOu,selectorArgs:["viewModel.commentKey"]}),_.V("design:type",Object)],pp.prototype,"commentEntity",void 0);_.S([_.R({selector:function(Y,G){return _.v2(Y.entities,"commentSurfaceEntityPayload",G)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.V("design:type",Object)],pp.prototype,"commentSurfaceEntity",void 0);_.S([_.R({selector:eLt,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.V("design:type",Object)],pp.prototype,"toolbarSurface",void 0);_.S([_.R({selector:AOA,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.V("design:type",Object)],pp.prototype,"translateButtonState",void 0);
_.S([_.f("commentSurfaceEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"backgroundColor",null);_.S([_.R({reflectToAttribute:!0}),_.f("viewModel"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pp.prototype,"optimalReadingWidthComments",null);_.S([_.Ox("ytd-expander"),_.V("design:type",Object)],pp.prototype,"expander",void 0);
_.S([_.GO("backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pp.prototype,"updateBackgroundColor",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],pp.prototype,"useSmallAvatars",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],pp.prototype,"engagementPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],pp.prototype,"commentThreadingEnabled",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],pp.prototype,"webWatchCompactComments",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"isReply",null);_.S([_.f("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"authorThumbnailEndpoint",null);_.S([_.f("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"authorNameEndpoint",null);
_.S([_.f("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"authorThumbnail",null);_.S([_.f("commentEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],pp.prototype,"authorTextClass",null);_.S([_.f("commentEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],pp.prototype,"authorChannelName",null);_.S([_.f("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"publishedTime",null);
_.S([_.f("commentSurfaceEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"publishedTimeCommand",null);_.S([_.f("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"contentText",null);_.S([_.GO("contentText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pp.prototype,"resetExpander",null);
_.S([_.f("commentEntity"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pp.prototype,"shouldShowReadMoreInitially",null);_.S([_.f("commentSharedEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],pp.prototype,"expandText",null);_.S([_.f("commentSharedEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],pp.prototype,"collapseText",null);_.S([_.f("commentEntity"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pp.prototype,"shouldShowTranslateButton",null);
_.S([_.f("commentEntity","commentSharedEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"translateButton",null);_.S([_.f("toolbarSurface"),_.V("design:type",Object),_.V("design:paramtypes",[])],pp.prototype,"overflowMenuRenderer",null);_.S([_.R(),_.V("design:type",Object)],pp.prototype,"editDialog",void 0);_.S([_.Ox("ytd-comment-dialog-renderer"),_.V("design:type",Object)],pp.prototype,"editCommentDialogContainer",void 0);
_.S([_.Ox("ytd-comment-reply-dialog-renderer"),_.V("design:type",Object)],pp.prototype,"editReplyDialogContainer",void 0);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],pp.prototype,"onYtNavigate",null);_.S([_.Yo("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],pp.prototype,"onYtCommentboxDismiss",null);
_.S([_.Yo("yt-commentbox-resize"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],pp.prototype,"onYtCommentboxResize",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-comment-view-model"})],pp);
_.d(pp,"ytd-comment-view-model",function(){if(eyI!==void 0)return eyI;var Y=document.createElement("template");_.r(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n    <div class="threadline style-scope ytd-comment-view-model" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-view-model"></div></div>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return eyI=Y},{mode:2});_.hR(_.D(function(Y){var G={},u={};return _.T("yt-sub-thread",{class:_.s3("ytSubThreadHost",(G.ytSubThreadHasButton=Y.isButton,G.ytSubThreadHovered=Y.hovered,G.ytSubThreadTopLevelThread=function(){var O,Q;return((O=Y.topLevelThread)==null?void 0:O.call(Y))&&!(_.F("small_avatars_for_comments")&&((Q=Y.engagementPanel)==null?0:Q.call(Y)))},G))},_.T("div",{class:"ytSubThreadThreadline"},_.T(_.X,{cond:function(){var O;
return!((O=Y.isTeaser)==null?0:O.call(Y))},
then:function(){return _.T("div",{class:"ytSubThreadConnection"})}}),_.T("div",{class:"ytSubThreadContinuation"}),_.T("div",{class:"ytSubThreadShadow"})),_.T("div",{class:_.s3("ytSubThreadSubThreadContent",(u.ytSubThreadSubThreadContentEngagementPanel=Y.engagementPanel,u))},Y.children))},"Sc"),"yt-sub-thread",{props:{isButton:_.AC,
isTeaser:_.AC,hovered:_.AC,topLevelThread:_.AC,engagementPanel:_.AC}});var zs=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.F("web_modern_buttons");Y.commentThreadingEnabled=_.F("web_delhi_comment_threads");Y.isWatchGrid=_.F("kevlar_watch_grid");Y.buttonOverrides=Y.commentThreadingEnabled?_.F("web_delhi_comment_threads_call_to_action")?{iconPosition:"trailing",type:"text",style:"call-to-action"}:{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};Y.JSC$16367_spinnerEl=null;return Y};
_.m(zs,_.Z);_.H=zs.prototype;_.H.configureContinuationPathMap=function(){return _.F("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.H.shouldShowLegacyTeasers=function(Y,G){return Y&&!G};
_.H.shouldShowExpandedThreads=function(Y,G){return this.commentThreadingEnabled&&G&&(Y==null?void 0:Y.length)>0};
_.H.shouldShowCollapsedThreads=function(Y,G){return this.commentThreadingEnabled&&!G&&Y};
_.H.computeCommentViewModel=function(Y){return _.z(Y,PDM)};
_.H.computeThreadRenderer=function(Y){return _.z(Y,K3R)};
_.H.computeIsContinuationItem=function(Y){return!!this.computeContinuationItemRenderer(Y)};
_.H.computeButtonRenderer=function(Y){return _.z(Y,_.ru)};
_.H.computeContinuationItemRenderer=function(Y){return _.z(Y,_.l6)};
_.H.computeShowButton=function(Y){var G;return!((G=this.computeContinuationItemRenderer(Y))==null||!G.button)};
_.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 Y=this.expanderContents;Y&&(Y.hidden=!0);this.isLoading=!1};
_.H.endsInContinuation=function(Y){return!!Y&&Y.length>0&&!!this.computeContinuationItemRenderer(Y[Y.length-1])};
_.H.computeShouldShowHideRepliesButton=function(Y,G){return!Y&&G};
_.H.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.H.isLoadingChanged=function(){this.isLoading&&!this.JSC$16367_spinnerEl&&(this.JSC$16367_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.l0(this.expanderContents).appendChild(this.JSC$16367_spinnerEl));this.JSC$16367_spinnerEl&&(this.JSC$16367_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var Y;(Y=this.contents)==null||Y.classList.remove("reloading")}};
_.H.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var Y=_.z(this.data.viewReplies,_.ru);Y&&this.ytRendererBehavior.logExplicitClick(Y);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.H.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var Y=_.z(this.data.hideReplies,_.ru);Y&&this.ytRendererBehavior.logExplicitClick(Y);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.H.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var Y=_.l0(this.hostElement).querySelector("#expander-contents");Y&&(Y.hidden=this.isShowRepliesVisible)}};
_.H.computeAlign=function(){if(this.modern){var Y;return!((Y=this.data)==null?0:Y.viewRepliesCreatorThumbnail)}};
_.Uk.Object.defineProperties(zs.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var Y,G;return this.endsInContinuation((Y=this.data)==null?void 0:Y.contents)||this.commentThreadingEnabled&&this.endsInContinuation((G=this.data)==null?void 0:G.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var Y;return(Y=this.data)==null?void 0:Y.teaserContents}}});
zs.prototype.isShowMoreChanged=zs.prototype.isShowMoreChanged;zs.prototype.isLoadingChanged=zs.prototype.isLoadingChanged;zs.prototype.triggerFirstContinuation=zs.prototype.triggerFirstContinuation;zs.prototype.dataChanged=zs.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],zs.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.DD),_.V("design:type",Object)],zs.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],zs.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],zs.prototype,"modern",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],zs.prototype,"commentThreadingEnabled",void 0);_.S([_.R(),_.V("design:type",Boolean)],zs.prototype,"expanded",void 0);
_.S([_.R(),_.V("design:type",Function)],zs.prototype,"toggleExpanded",void 0);_.S([_.R(),_.V("design:type",Array)],zs.prototype,"addedReplies",void 0);_.S([_.R(),_.V("design:type",Boolean)],zs.prototype,"hovered",void 0);_.S([_.R(),_.V("design:type",Boolean)],zs.prototype,"topLevelThread",void 0);_.S([_.R(),_.V("design:type",Boolean)],zs.prototype,"isLoading",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],zs.prototype,"isShowRepliesVisible",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],zs.prototype,"useNewFormatting",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],zs.prototype,"engagementPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],zs.prototype,"isWatchGrid",void 0);_.S([_.R(),_.V("design:type",Object)],zs.prototype,"buttonOverrides",void 0);_.S([_.Ox("#expander-contents"),_.V("design:type",HTMLElement)],zs.prototype,"expanderContents",void 0);
_.S([_.Ox("ytd-continuation-item-renderer"),_.V("design:type",Object)],zs.prototype,"continuationItemRenderer",void 0);_.S([_.Ox("#contents"),_.V("design:type",HTMLElement)],zs.prototype,"contents",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zs.prototype,"dataChanged",null);_.S([_.f("data.contents","data.subThreads.*"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],zs.prototype,"hasContinuation",null);
_.S([_.f("data.teaserContents"),_.V("design:type",Object),_.V("design:paramtypes",[])],zs.prototype,"subThreadTeasers",null);_.S([_.Yo("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zs.prototype,"triggerFirstContinuation",null);_.S([_.GO("isLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zs.prototype,"isLoadingChanged",null);
_.S([_.GO("isShowRepliesVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zs.prototype,"isShowMoreChanged",null);_.S([_.pD({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],zs);
_.d(zs,"ytd-comment-replies-renderer",function(){if(WXe!==void 0)return WXe;var Y=document.createElement("template");_.r(Y,'\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="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="collapsed-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" engagement-panel="[[engagementPanel]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="expanded-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="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)]]" engagement-panel="[[engagementPanel]]" 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 class="replies-continuation style-scope ytd-comment-replies-renderer" button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" restamp="" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return WXe=Y},{mode:1});var RyU;var mp=function(){var Y=_.Z.apply(this,arguments)||this;Y.isOpen=!1;Y.commentDialog=null;Y.useSmallAvatars=_.F("small_avatars_for_comments");Y.useSmallAvatarsEngagementPanelOnly=_.F("small_avatars_for_comments_ep");Y.placeholderFocusListener=null;Y.hasOpenedDialog=!1;Y.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return Y};
_.m(mp,_.Z);_.H=mp.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 Y=this,G=_.l0(this.hostElement).querySelector("#placeholder-area"),u=_.l0(this.hostElement).querySelector("#simplebox-placeholder"),O=function(Q){Q.stopPropagation();Q instanceof KeyboardEvent&&Q.type==="keypress"&&Q.keyCode!==13&&Q.keyCode!==32||Y.openDialog()};
this.placeholderFocusListener=O;u.addEventListener("focus",this.placeholderFocusListener);G.addEventListener("tap",O);G.addEventListener("keypress",O)};
_.H.maybeRemoveFocusEventListener=function(){var Y;(Y=this.data)!=null&&Y.prepareAccountEndpoint&&!_.F("web_comments_simplebox_modal_focus_on_tap_ks")&&(Y=_.l0(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(Y.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)_.F("web_comment_simplebox_resolve_polymer_command_ks")?_.Jj.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Yy(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.superfanOnlySnackbarCommand&&!this.hasOpenedDialog){var Y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.superfanOnlySnackbarCommand);Y&&this.ytdOpenPopupBehavior.openPopup(Y);this.hasOpenedDialog=!0}this.data.subscribersOnlySnackbarCommand&&
!this.hasOpenedDialog&&((Y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand))&&this.ytdOpenPopupBehavior.openPopup(Y),this.hasOpenedDialog=!0);this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.l0(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.H.onYtCommentboxDismiss=function(Y){Y.stopPropagation();this.isOpen=!1};
_.H.onCreateCommentAction=function(Y){this.get("createCommentAction.contents",Y)&&(this.isOpen=!1)};
_.H.computeCommentDialog=function(Y){return{placeholderText:Y.placeholderText,authorThumbnail:Y.authorThumbnail,submitButton:Y.submitButton,imageButton:Y.imageButton,cancelButton:Y.cancelButton,emojiButton:Y.emojiButton,emojis:Y.emojis,emojiPicker:Y.emojiPicker,aadcGuidelinesStateEntityKey:Y.aadcGuidelinesStateEntityKey,openAadcDialog:Y.openAadcDialog,unicodeEmojisUrl:Y.unicodeEmojisUrl}};
_.H.onHideIdentityChip=function(Y){_.z(Y,O3l)&&this.set("data.placeholderText",_.z(Y,O3l).placeholderText)};
mp.prototype.onYtCommentboxDismiss=mp.prototype.onYtCommentboxDismiss;mp.prototype.dataChanged=mp.prototype.dataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],mp.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.SZ),_.V("design:type",Object)],mp.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],mp.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],mp.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],mp.prototype,"isOpen",void 0);_.S([_.R(),_.V("design:type",Object)],mp.prototype,"commentDialog",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],mp.prototype,"engagementPanel",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],mp.prototype,"useSmallAvatars",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],mp.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],mp.prototype,"enableCreationBox",void 0);_.S([_.R(),_.V("design:type",Boolean)],mp.prototype,"showCreateDialog",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mp.prototype,"dataChanged",null);_.S([_.Yo("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mp.prototype,"onYtCommentboxDismiss",null);_.S([_.pD({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],mp);
_.d(mp,"ytd-comment-simplebox-renderer",function(){if(RyU!==void 0)return RyU;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return RyU=Y},{mode:1});var woR;_.Px("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var Wz=function(){var Y=_.Z.apply(this,arguments)||this;Y.addHoverEffect=_.F("swatcheroo_comments_hover_effect");Y.useSmallAvatars=_.F("small_avatars_for_comments");Y.scrollingEnabled=_.F("web_comment_threading_scroll_on_collapse");Y.isSubThread=!1;Y.threadHovered=!1;Y.expanded=!1;Y.removed=!1;Y.addedReplies=[];Y.actionMap=Y.configureActionMap();Y.toggleExpanded=function(){Y.expanded=!Y.expanded;!Y.expanded&&Y.scrollingEnabled&&_.qZ(Y.hostElement,"yt-scroll-to-comment-element",[Y.commentElement])};
return Y};
_.m(Wz,_.Z);_.H=Wz.prototype;_.H.configureActionMap=function(){return _.F("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.H.createCommentReplyAction=function(Y){Y=_.z(Y,GlT);if(Y!=null&&Y.contents){var G=Y.replyToCommentId,u=Y.parentCommentId,O,Q=(O=this.commentViewModel)==null?void 0:O.commentId;(Q===G||Q===u&&!G)&&this.maybeAttachReply(Y.contents)}};
_.H.maybeAttachReply=function(Y){var G,u;(((G=this.commentEntity)==null?void 0:(u=G.properties)==null?void 0:u.replyLevel)||0)>=3?_.$s(this.hostElement,"yt-pushed-create-comment-reply",Y):this.attachReply(Y)};
_.H.onPushedCreateCommentReply=function(Y){var G,u;(((G=this.commentEntity)==null?void 0:(u=G.properties)==null?void 0:u.replyLevel)||0)>=3||(this.attachReply(Y.detail),Y.stopPropagation())};
_.H.attachReply=function(Y){var G;((G=this.data)==null?0:G.replies)?(G=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+G+".continuationItemRenderer")?G===0?this.push("addedReplies",Y):this.splice("data.replies.commentRepliesRenderer.subThreads",G,0,Y):this.push("data.replies.commentRepliesRenderer.subThreads",Y)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[Y],viewReplies:{buttonRenderer:{text:_.Sy(_.Q6("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.H.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.c8(this.addedReplies))),this.set("addedReplies",[]))};
_.H.removeCommentAction=function(Y){Y=_.z(Y,H3X);var G=Y==null?void 0:Y.commentId,u;G&&((u=this.commentViewModel)==null?void 0:u.commentId)===G&&this.maybeRemoveComment(Y.actionResult)};
_.H.banAuthorAction=function(Y){Y=_.z(Y,J7M);var G=Y==null?void 0:Y.commentId,u;G&&((u=this.commentViewModel)==null?void 0:u.commentId)===G&&this.maybeRemoveComment(Y.actionResult)};
_.H.hideReportedCommentAction=function(Y){Y=_.z(Y,zcl);var G=Y==null?void 0:Y.commentId,u;G&&((u=this.commentViewModel)==null?void 0:u.commentId)===G&&this.maybeRemoveComment(Y.actionResult)};
_.H.maybeRemoveComment=function(Y){Y&&Y.status==="STATUS_SUCCEEDED"&&(this.feedbackText=Y.feedbackText||_.Sy("Reply removed"),this.removed=!0)};
_.H.onTap=function(Y){if(this.addHoverEffect&&!this.engagementPanel&&!_.hf(_.wG(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var G;((G=window.getSelection())==null?0:G.toString().length)||_.Yy({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.H.attached=function(){var Y=this;this.isSubThread&&(this.expanded=!0);var G;(G=this.commentThreadHitbox)==null||G.addEventListener("mouseover",function(){Y.threadHovered=!0});
var u;(u=this.commentThreadHitbox)==null||u.addEventListener("mouseout",function(){Y.threadHovered=!1});
var O;(O=this.commentThreadHitbox)==null||O.addEventListener("click",function(){Y.maybeToggleExpanded()})};
_.H.onDataChanged=function(){var Y=_.F("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(Y)&&this.set(Y,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.H.maybeToggleExpanded=function(){var Y,G,u,O=(Y=this.data)==null?void 0:(G=Y.replies)==null?void 0:(u=G.commentRepliesRenderer)==null?void 0:u.subThreads,Q;(O==null?void 0:O.length)===1&&((Q=_.z(O[0],_.l6))==null?0:Q.button)&&this.expanded||this.toggleExpanded()};
_.Uk.Object.defineProperties(Wz.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var Y;return _.z((Y=this.data)==null?void 0:Y.commentViewModel,PDM)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return _.F("web_delhi_comment_threads")&&!!((Y=this.data)==null?0:(G=Y.replies)==null?0:(u=G.commentRepliesRenderer)==null?0:u.subThreads)}}});
Wz.prototype.onDataChanged=Wz.prototype.onDataChanged;Wz.prototype.onTap=Wz.prototype.onTap;Wz.prototype.onAppendContinuationItemsActionFinished=Wz.prototype.onAppendContinuationItemsActionFinished;Wz.prototype.onPushedCreateCommentReply=Wz.prototype.onPushedCreateCommentReply;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Wz.prototype,"ytdReduxBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Wz.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Wz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Wz.prototype,"addHoverEffect",void 0);_.S([_.R(),_.V("design:type",Object)],Wz.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Wz.prototype,"useSmallAvatars",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Wz.prototype,"scrollingEnabled",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Wz.prototype,"isSubThread",void 0);_.S([_.Ox(".thread-hitbox"),_.V("design:type",HTMLElement)],Wz.prototype,"commentThreadHitbox",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Wz.prototype,"threadHovered",void 0);_.S([_.Ox("#comment"),_.V("design:type",HTMLElement)],Wz.prototype,"commentElement",void 0);
_.S([_.R(),_.V("design:type",Object)],Wz.prototype,"expanded",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Wz.prototype,"removed",void 0);_.S([_.R(),_.V("design:type",Object)],Wz.prototype,"feedbackText",void 0);_.S([_.R(),_.V("design:type",Array)],Wz.prototype,"addedReplies",void 0);_.S([_.R({selector:yOu,selectorArgs:["commentViewModel.commentKey"]}),_.V("design:type",Object)],Wz.prototype,"commentEntity",void 0);
_.S([_.Yo("yt-pushed-create-comment-reply"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Wz.prototype,"onPushedCreateCommentReply",null);_.S([_.Yo("yt-append-continuation-items-action-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Wz.prototype,"onAppendContinuationItemsActionFinished",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Wz.prototype,"commentViewModel",null);
_.S([_.f("data.replies.commentRepliesRenderer.subThreads"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Wz.prototype,"hasSubThreading",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Wz.prototype,"engagementPanel",void 0);_.S([_.Yo("tap"),_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Wz.prototype,"onTap",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Wz.prototype,"onDataChanged",null);_.S([_.pD({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Wz);
_.d(Wz,"ytd-comment-thread-renderer",function(){if(woR!==void 0)return woR;var Y=document.createElement("template");_.r(Y,'\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="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" has-sub-threading="[[hasSubThreading]]" hidden="[[removed]]" hovered="[[threadHovered]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" 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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return woR=Y},{mode:2});var ZsR;var r9=function(){var Y=_.Z.apply(this,arguments)||this;Y.compactHeader=_.F("web_watch_compact_comments_header");Y.hidePanelButton=!1;Y.isPostSchedulingEnabled=_.F("enable_post_scheduling");Y.hasFinishedStamping=!1;Y.JSC$16390_handleOpenPostCommentDialogActionAfterStamp=!1;Y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return Y};
_.m(r9,_.Z);_.H=r9.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$16390_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.H.onYtServiceRequestSent=function(Y,G){if(!_.F("kevlar_command_handler")&&G.actions)for(Y=0;Y<G.actions.length;Y++){var u=G.actions[Y];_.z(u,xaU)&&_.l0(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.z(u,xaU))}};
_.H.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var Y;if(this.getPrefilledBackstagePostDialog((Y=this.data)==null?void 0:Y.actions)){_.l0(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var G=_.l0(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;G&&_.sk(this,function(){G.focus();G.openDialog&&G.openDialog()})}}else this.hasActionsChange=!0};
_.H.computeIsBackstage=function(Y){return Y};
_.H.onYtCommentboxDismiss=function(){_.l0(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.H.removePrefilledDialog=function(Y){if(Y==null?0:Y.actions){for(var G=Y.actions.length-1;G>=0;G--){var u=void 0;((u=_.z(Y.actions[G],N81))==null?0:u.dialog)&&delete Y.actions[G]}this.set("data",void 0);this.set("data",Y)}};
_.H.getPrefilledBackstagePostDialog=function(Y){if(Y)for(var G=0;G<Y.length;G++){var u=Y[G],O=void 0;if((O=_.z(u,N81))==null?0:O.dialog)return _.z(u,N81).dialog}return null};
_.H.computeBackstagePostDialog=function(Y){return Y&&(this.getPrefilledBackstagePostDialog(Y.actions)||Y.createRenderer)};
_.H.dataChanged=function(){if(this.data){var Y=this.data.customEmojis,G=this.data.unicodeEmojisUrl;_.Ai.clear();G&&_.CV1(_.Ai,G);Y&&_.Ai.load(Y)}};
_.H.handleSignalActionOpenPostCommentDialogAction=function(){var Y=_.l0(this.hostElement).querySelector("ytd-comment-simplebox-renderer");Y?Y.openDialog():this.JSC$16390_handleOpenPostCommentDialogActionAfterStamp=!0};
_.H.onPostHeaderTap=function(){var Y;((Y=this.data)==null?0:Y.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.Uk.Object.defineProperties(r9.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.F("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O,Q,M,t;return!this.hidePanelButton&&_.F("kevlar_watch_comments_panel_button")&&((t=_.z((Y=this.data)==null?void 0:(G=Y.sortMenu)==null?void 0:(u=G.sortFilterSubMenuRenderer)==null?void 0:(O=u.subMenuItems)==null?void 0:(Q=O[0])==null?void 0:(M=Q.serviceEndpoint)==null?void 0:M.commandMetadata,_.ug))==null?void 0:t.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Q6("MINIPLAYER_EXPAND_LABEL"),text:_.i8(_.Q6("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
r9.prototype.dataChanged=r9.prototype.dataChanged;r9.prototype.onYtCommentboxDismiss=r9.prototype.onYtCommentboxDismiss;r9.prototype.observePrefilledBackstagePostDialog=r9.prototype.observePrefilledBackstagePostDialog;r9.prototype.onYtServiceRequestSent=r9.prototype.onYtServiceRequestSent;r9.prototype.onStampFinished=r9.prototype.onStampFinished;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],r9.prototype,"ytComponentBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],r9.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],r9.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],r9.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],r9.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],r9.prototype,"compactHeader",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],r9.prototype,"engagementPanel",void 0);_.S([_.R(),_.V("design:type",Object)],r9.prototype,"hidePanelButton",void 0);_.S([_.R({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.V("design:type",Boolean)],r9.prototype,"isBackstage",void 0);_.S([_.R({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.V("design:type",Object)],r9.prototype,"backstagePostDialog",void 0);
_.S([_.R(),_.V("design:type",Object)],r9.prototype,"isPostSchedulingEnabled",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data","showCommentsPanelButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],r9.prototype,"useSpaceBetween",null);_.S([_.R({reflectToAttribute:!0}),_.f("data","hidePanelButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],r9.prototype,"showCommentsPanelButton",null);
_.S([_.f("data","showCommentsPanelButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],r9.prototype,"commentsPanelButtonData",null);_.S([_.Yo("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],r9.prototype,"onStampFinished",null);_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],r9.prototype,"onYtServiceRequestSent",null);
_.S([_.GO("data.actions"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],r9.prototype,"observePrefilledBackstagePostDialog",null);_.S([_.Yo("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],r9.prototype,"onYtCommentboxDismiss",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],r9.prototype,"dataChanged",null);
_.S([_.pD({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],r9);
_.d(r9,"ytd-comments-header-renderer",function(){if(ZsR!==void 0)return ZsR;var Y=document.createElement("template");_.r(Y,'\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" on-click="onPostHeaderTap" 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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return ZsR=Y},{mode:1});var D_4;var xJ=function(){return _.Z.apply(this,arguments)||this};
_.m(xJ,_.Z);_.S([_.R(),_.V("design:type",Object)],xJ.prototype,"data",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.S([_.pD({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],xJ);
_.d(xJ,"ytd-destination-button-renderer",function(){if(D_4!==void 0)return D_4;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return D_4=Y},{mode:1});var hyU;var fp=function(){var Y=_.Z.apply(this,arguments)||this;Y.isRichGrid=!1;Y.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return Y};
_.m(fp,_.Z);_.H=fp.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 Y;if((Y=this.data)==null||!Y.isExpanded){Y=this.hostElement.clientWidth;var G;if(Y&&(G=this.data)!=null&&G.destinationButtons){G=Math.floor((Y+4)/214);Y=this.data.destinationButtons.length;var u=Math.ceil(Y/G);this.fullyVisibleRows=Y%G===1&&u===2?1:Math.min(u,2);this.isShowMoreVisible=this.fullyVisibleRows<u}}}};
_.H.updateRichGridDestinationButtonsVisibility=function(){var Y,G;if(this.isRichGrid&&((Y=this.data)==null||!Y.isExpanded)&&(G=this.data)!=null&&G.destinationButtons){Y=this.richGridItemsPerRow+1;G=this.data.destinationButtons.length;var u=Math.ceil(G/Y);this.fullyVisibleRows=G%Y===1&&u===2?1:Math.min(u,2);this.isShowMoreVisible=this.fullyVisibleRows<u}};
_.H.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
fp.prototype.updateRichGridDestinationButtonsVisibility=fp.prototype.updateRichGridDestinationButtonsVisibility;_.S([_.R(),_.V("design:type",Object)],fp.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Number)],fp.prototype,"fullyVisibleRows",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],fp.prototype,"isShowMoreVisible",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],fp.prototype,"isRichGrid",void 0);
_.S([_.R({selector:_.nU,value:0}),_.V("design:type",Number)],fp.prototype,"richGridItemsPerRow",void 0);_.S([_.R(),_.V("design:type",Object)],fp.prototype,"gridStateActionMap",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],fp.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],fp.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],fp.prototype,"ytdReduxBehavior",void 0);_.S([_.GO("data","richGridItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fp.prototype,"updateRichGridDestinationButtonsVisibility",null);_.S([_.pD({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],fp);
_.d(fp,"ytd-destination-shelf-renderer",function(){if(hyU!==void 0)return hyU;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return hyU=Y},{mode:1});var d_l;var Cp=function(){return _.Z.apply(this,arguments)||this};
_.m(Cp,_.Z);Cp.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"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Cp.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Cp.prototype,"data",void 0);_.S([_.pD({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Cp);
_.d(Cp,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(d_l!==void 0)return d_l;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return d_l=Y},{mode:1});var bsT;var yk=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableAnimation=!1;Y.isSlimlineSurvey=!1;Y.isSlimlineSurveyFollowUp=!1;Y.isShortsStyle=!1;return Y};
_.m(yk,_.Z);yk.prototype.onTap=function(Y){Y.preventDefault();this.data&&_.$s(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Uk.Object.defineProperties(yk.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 Y,G,u,O,Q;return((Y=this.data)==null?0:Y.checked)?(G=this.data)==null?void 0:(u=G.onStateIcon)==null?void 0:u.iconType:(O=this.data)==null?void 0:(Q=O.defaultStateIcon)==null?void 0:Q.iconType}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],yk.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],yk.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],yk.prototype,"disableAnimation",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],yk.prototype,"isSlimlineSurvey",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],yk.prototype,"isSlimlineSurveyFollowUp",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],yk.prototype,"isShortsStyle",void 0);_.S([_.f("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yk.prototype,"isAnimatedIcon",null);
_.S([_.f("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.V("design:type",Number),_.V("design:paramtypes",[])],yk.prototype,"iconSize",null);_.S([_.f("isShortsStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yk.prototype,"isDarkTheme",null);_.S([_.f("data.checked"),_.V("design:type",Object),_.V("design:paramtypes",[])],yk.prototype,"icon",null);_.S([_.pD({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],yk);
_.d(yk,"ytd-rating-survey-option-renderer",function(){if(bsT!==void 0)return bsT;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return bsT=Y},{mode:2});var SX4;var e4=function(){var Y=_.Z.apply(this,arguments)||this;Y.firstResponseText=null;Y.lastResponseText=null;Y.selectedNonStarOption=null;Y.hideOptions=!1;Y.hideUndoButton=!0;Y.disableAnimation=!1;Y.showResponseRangeText=!1;Y.selectedRatingIndex=-1;Y.isSlimlineSurvey=!1;Y.isSlimlineSurveyFollowUp=!1;Y.isShortsStyle=!1;Y.slimlineSurveyRatingSelectedIndex=-1;return Y};
_.m(e4,_.Z);_.H=e4.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(Y,G){var u=this;Y=G.onStateIcon&&G.defaultStateIcon&&G.onStateIcon.iconType===G.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(t,K){t.responseText===G.responseText?u.isSlimlineSurvey?(u.selectedRatingIndex=K,u.ytdReduxBehavior.dispatch(VfU(K))):(u.setSurveyOptionValue(K,!0,"checked"),u.setSurveyOptionValue(K,!0,"selected")):(u.setSurveyOptionValue(K,!1,"checked"),u.setSurveyOptionValue(K,
!1,"selected"))});
else if(Y)this.selectedNonStarOption=G,this.hideOptions=!0;else{var O=this.ytRendererBehavior.getSimpleString(G.responseText),Q=!0;this.getOptionRenderers().forEach(function(t,K){u.setSurveyOptionValue(K,Q,"checked");u.setSurveyOptionValue(K,!1,"selected");u.ytRendererBehavior.getSimpleString(t.responseText)===O&&(Q=!1,u.setSurveyOptionValue(K,!0,"selected"))})}Y=G.responseEndpoint;
var M;G.followUpCommand&&(M=_.z(G.followUpCommand,iM_));this.isSlimlineSurvey?(this.resetComponent(),_.qZ(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.qZ(this.hostElement,"ytd-inline-survey-rating-select-action",[Y,M])};
_.H.showSelectedOption=function(){var Y=this;_.AN.addJob(function(){var G=Y.getOptionRenderers()[Y.slimlineSurveyRatingSelectedIndex];Y.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),G)},8,100)};
_.H.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(Y){var G;return(G=_.z(Y,wT_))!=null?G:{}}):[]};
_.H.onUndoClick=function(){this.resetComponent();_.qZ(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.H.setSurveyOptionValue=function(Y,G,u){this.notifyPath("data.ratings."+Y+".ratingSurveyOptionRenderer."+u);this.set("data.ratings."+Y+".ratingSurveyOptionRenderer."+u,G)};
_.H.resetComponent=function(){var Y=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var G=this.getOptionRenderers(),u,O;this.firstResponseText=(O=(u=G[0])==null?void 0:u.responseText)!=null?O:null;var Q,M;this.lastResponseText=(M=(Q=G[G.length-1])==null?void 0:Q.responseText)!=null?M:null;G.forEach(function(t,K){Y.setSurveyOptionValue(K,!1,"checked");Y.setSurveyOptionValue(K,!1,"selected")})};
_.Uk.Object.defineProperties(e4.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
e4.prototype.onOptionChange=e4.prototype.onOptionChange;e4.prototype.dataChanged=e4.prototype.dataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],e4.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],e4.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],e4.prototype,"firstResponseText",void 0);_.S([_.R(),_.V("design:type",Object)],e4.prototype,"lastResponseText",void 0);_.S([_.R(),_.V("design:type",Object)],e4.prototype,"selectedNonStarOption",void 0);_.S([_.R(),_.V("design:type",Object)],e4.prototype,"hideOptions",void 0);_.S([_.R(),_.V("design:type",Object)],e4.prototype,"hideUndoButton",void 0);_.S([_.R(),_.V("design:type",Object)],e4.prototype,"disableAnimation",void 0);
_.S([_.R(),_.V("design:type",Object)],e4.prototype,"showResponseRangeText",void 0);_.S([_.R(),_.V("design:type",Object)],e4.prototype,"selectedRatingIndex",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],e4.prototype,"isSlimlineSurvey",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],e4.prototype,"isSlimlineSurveyFollowUp",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],e4.prototype,"isShortsStyle",void 0);_.S([_.R({selector:function(Y){return Y.ui.slimlineSurveyRatingSelectedIndex}}),
_.V("design:type",Object)],e4.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.S([_.f("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],e4.prototype,"isSingleSelect",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],e4.prototype,"dataChanged",null);
_.S([_.Yo("ytd-rating-survey-option-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],e4.prototype,"onOptionChange",null);_.S([_.pD({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],e4);
_.d(e4,"ytd-rating-survey-renderer",function(){if(SX4!==void 0)return SX4;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return SX4=Y},{mode:1});var N3X;var jcU;var VjT;var j5j=(u6.FIRSTDAYOFWEEK+1)%7,lz2=function(Y,G,u,O){var Q="";if(O.selection&&dBt(O.selection))J$(Y,O.selection)&&(Q+=" selected");else if(O.selection&&bvj(O.selection)){var M=O.selection.selectionState||"START_DATE";J$(Y,O.selection.start)&&(Q+=" period-start ",M==="START_DATE"&&(Q+="selected"));J$(Y,O.selection.end)&&(Q+=" period-end ",M==="END_DATE"&&(Q+="selected"));Y2(Y,O.selection.start)||Y2(O.selection.end,Y)||(Q+=" highlighted")}if(Y2(G,O.start)||Y2(O.end,G))Q+=" disabled";O.circleToday&&
J$(G,u)&&(Q+=" today");return Q};var Ap=function(){return _.Z.apply(this,arguments)||this};
_.m(Ap,_.Z);_.H=Ap.prototype;_.H.attached=function(){var Y=this;_.sk(this,function(){Y.JSC$16424_calendarMain.scrollHeight>0&&(Y.calendarConfig.selection?Y.scrollToDate(SNy(Y.calendarConfig.selection)):Y.scrollToDate(Y.calendarConfig.end))})};
_.H.updateSelection=function(Y){Y=V$j(Object.assign({},this.calendarConfig,{selection:Y}),lz2);this.splice.apply(this,["renderData.months",0,Y.length].concat(_.c8(Y)))};
_.H.scrollToDate=function(Y){this.renderData&&(Y=lgg(Y,this.renderData),Y!==void 0&&this.JSC$16424_calendarMain.scrollToIndex(Y))};
_.H.scrollToNextMonth=function(){this.JSC$16424_calendarMain.scrollToIndex(this.JSC$16424_calendarMain.firstVisibleIndex+1)};
_.H.scrollToPrevMonth=function(){this.JSC$16424_calendarMain.firstVisibleIndex===0&&this.JSC$16424_calendarMain.scrollTo(0,0);this.JSC$16424_calendarMain.scrollToIndex(this.JSC$16424_calendarMain.firstVisibleIndex-1)};
_.H.handleDayClick=function(Y){_.qZ(this.hostElement,"ytd-calendar-date-clicked",[Y.model.day.date])};
_.H.handleDayMouseDown=function(Y){Y.preventDefault();_.qZ(this.hostElement,"ytd-calendar-date-mousedown",[Y.model.day.date])};
_.H.handleDayMouseUp=function(Y){_.qZ(this.hostElement,"ytd-calendar-date-mouseup",[Y.model.day.date])};
_.H.handleDayMouseEnter=function(Y){Y.preventDefault();_.qZ(this.hostElement,"ytd-calendar-date-mouseenter",[Y.model.day.date])};
_.H.handleDayMouseLeave=function(Y){_.qZ(this.hostElement,"ytd-calendar-date-mouseleave",[Y.model.day.date])};
_.Uk.Object.defineProperties(Ap.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var Y=this.calendarConfig,G=lz2;G=G===void 0?lz2:G;for(var u=[],O=0;O<7;O++)u.push(u6.NARROWWEEKDAYS[(O+j5j)%7]);return{months:V$j(Y,G),daysOfWeekLabel:u}}}});
_.S([_.R(),_.V("design:type",Object)],Ap.prototype,"calendarConfig",void 0);_.S([_.Ox("#calendar-main"),_.V("design:type",Object)],Ap.prototype,"JSC$16424_calendarMain",void 0);_.S([_.f("calendarConfig"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ap.prototype,"renderData",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Ap);
_.d(Ap,"ytd-scrollable-calendar",function(){if(VjT!==void 0)return VjT;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return VjT=Y},{mode:2});var B3_;var $_l;var ob=function(){var Y=_.Z.apply(this,arguments)||this;Y.hideCharCounter=!1;Y.hideLabel=!1;Y.noLabelFloat=!1;Y.autoValidate=!0;Y.invalid=!1;Y.disabled=!1;Y.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return Y};
_.m(ob,_.Z);_.H=ob.prototype;_.H.reset=function(Y){this.value=Y&&this.data?this.data.value=Y:"";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 Y,G;if(((Y=this.data)==null?0:Y.value)||((G=this.data)==null?void 0:G.value)==="")this.value=this.data.value;else{var u;((u=this.data)==null?void 0:u.value)!==void 0||this.value||(this.value="")}};
_.H.computeLabel=function(Y,G){return G?"":_.Ri(Y)};
_.H.computeAriaLabel=function(Y,G){return G?_.Ri(Y):""};
_.H.computeErrorMessage=function(Y,G,u,O){return!Y&&G?u||this.strings.REQUIRED_LABEL:_.$Il(_.Ri(O))};
_.H.computeType=function(Y){return Y==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.H.onTextValueChanged=function(Y){this.value=Y.detail.value;var G;(G=this.onValueChanged)==null||G.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(Y){(Y=_.z(Y,Gp2))&&this.data&&this.data.id===Y.id&&(Y.invalid!==void 0&&(this.invalid=Y.invalid),Y.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",Y.invalidValueErrorMessage))};
_.H.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("value-changed",this.value))};
_.H.updateInvalidFromBinding=function(Y){this.invalid=Y.detail.value};
_.Uk.Object.defineProperties(ob.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var Y;return!((Y=this.data)==null||!Y.isMultiline)}}});
ob.prototype.valueChangedForBinding=ob.prototype.valueChangedForBinding;ob.prototype.valueChanged=ob.prototype.valueChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ob.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],ob.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],ob.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],ob.prototype,"value",void 0);_.S([_.R(),_.V("design:type",String)],ob.prototype,"pattern",void 0);_.S([_.R(),_.V("design:type",String)],ob.prototype,"errorMessage",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],ob.prototype,"componentStyle",void 0);_.S([_.R(),_.V("design:type",Object)],ob.prototype,"hideCharCounter",void 0);
_.S([_.R(),_.V("design:type",Object)],ob.prototype,"hideLabel",void 0);_.S([_.R(),_.V("design:type",Object)],ob.prototype,"noLabelFloat",void 0);_.S([_.R(),_.V("design:type",Function)],ob.prototype,"onValueChanged",void 0);_.S([_.R(),_.V("design:type",Boolean)],ob.prototype,"isMultilineOverride",void 0);_.S([_.R(),_.V("design:type",Object)],ob.prototype,"autoValidate",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ob.prototype,"invalid",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ob.prototype,"disabled",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],ob.prototype,"enableOverlayTheme",void 0);_.S([_.R({value:{REQUIRED_LABEL:_.Q6("REQUIRED_LABEL",void 0,"Required")}}),_.V("design:type",Object)],ob.prototype,"strings",void 0);_.S([_.Ox("#input"),_.V("design:type",Object)],ob.prototype,"input",void 0);
_.S([_.f("data","isMultilineOverride"),_.V("design:type",Object),_.V("design:paramtypes",[])],ob.prototype,"isMultiline",null);_.S([_.Ex("data.value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ob.prototype,"valueChanged",null);_.S([_.GO("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ob.prototype,"valueChangedForBinding",null);_.S([_.Ff({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],ob);
_.d(ob,"yt-text-input-form-field-renderer",function(){if($_l===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;B3_===void 0&&(B3_=document.createElement("template"));var O=B3_;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);$_l=Y}Y=$_l;return Y},{mode:2});var iR=function(){var Y=_.Z.apply(this,arguments)||this;Y.data=void 0;Y.selectionState="START_DATE";Y.isStartDateInvalid=!1;Y.isEndDateInvalid=!1;Y.autoapply=!1;Y.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 Y};
_.m(iR,_.Z);_.H=iR.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:GP(this.data.selection.start),end:GP(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:_.YV(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 Y=this.calendar.calendarConfig,G=Y.end;Y=$BY({start:Y.start,end:this.endDate||G},this.startDateInput.value||"");this.isStartDateInvalid=!Y.isValid;Y.isValid&&(Y=Y.value,this.selection=this.endDate?{start:Y,end:this.endDate}:Y,this.calendar.scrollToDate(Y));this.updateInvalidState()}};
_.H.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var Y=this.calendar.calendarConfig,G=Y.start;Y=$BY({start:this.startDate||G,end:Y.end},this.endDateInput.value||"");this.isEndDateInvalid=!Y.isValid;Y.isValid&&(Y=Y.value,this.selection={start:this.startDate,end:Y},this.calendar.scrollToDate(Y));this.updateInvalidState()}};
_.H.handleCalendarDateClicked=function(Y){var G=this.selection&&SNy(this.selection),u=this.selection&&Nyt(this.selection);G&&!Y2(Y,G)&&this.selectionState==="END_DATE"?(this.selection={start:G,end:Y},this.selectionState="START_DATE"):(u&&!Y2(u,Y)?this.selection={start:Y,end:u}:this.selection=Y,this.selectionState="END_DATE")};
_.H.handleCalendarDateMouseDown=function(Y){this.selection&&!dBt(this.selection)&&(this.dragPivot=J$(Y,this.selection.start)?this.selection.end:J$(Y,this.selection.end)?this.selection.start:Y)};
_.H.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.H.handleCalendarDateMouseEnter=function(Y){this.dragPivot&&(this.selection={start:function(G,u){return Y2(G,u)?G:u}(this.dragPivot,Y),
end:function(G,u){return Y2(G,u)?u:G}(this.dragPivot,Y)},this.dragPivot||(this.selectionState="START_DATE"))};
_.H.handleCalendarDateMouseLeave=function(){};
_.H.handleCalendarSubmitDateRange=function(){this.selection&&!dBt(this.selection)&&_.qZ(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.H.updateInvalidState=function(){var Y=function(G,u){u?G.setAttribute("invalid",""):G.removeAttribute("invalid")};
Y(this.startDateInput,this.isStartDateInvalid);Y(this.endDateInput,this.isEndDateInvalid)};
_.H.updateDateStrings=function(){this.selection&&(dBt(this.selection)?h24(this.selection):(h24(this.selection.start),h24(this.selection.end)))};
_.H.updateCalendarSelection=function(Y){this.calendar.updateSelection(Object.assign({},Y,{selectionState:this.selectionState}))};
_.H.updateIsStartDateInvalidFromBinding=function(Y){this.isStartDateInvalid=Y.detail.value};
_.H.updateIsEndDateInvalidFromBinding=function(Y){this.isEndDateInvalid=Y.detail.value};
_.H.updateStartDateStringFromBinding=function(){};
_.H.updateEndDateStringFromBinding=function(){};
_.Uk.Object.defineProperties(iR.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:GP(this.data.dateRangeStart),end:GP(this.data.dateRangeEnd),selection:{start:GP(this.data.selection.start),end:GP(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&SNy(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Nyt(this.selection)}}});
iR.prototype.resetTextboxes=iR.prototype.resetTextboxes;iR.prototype.observeSelection=iR.prototype.observeSelection;iR.prototype.dataChanged=iR.prototype.dataChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],iR.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],iR.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Ox("#calendar"),_.V("design:type",Object)],iR.prototype,"calendar",void 0);
_.S([_.Ox("#start-date"),_.V("design:type",Object)],iR.prototype,"startDateInput",void 0);_.S([_.Ox("#end-date"),_.V("design:type",Object)],iR.prototype,"endDateInput",void 0);_.S([_.R(),_.V("design:type",Object)],iR.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],iR.prototype,"selection",void 0);_.S([_.R(),_.V("design:type",String)],iR.prototype,"selectionState",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],iR.prototype,"calendarConfig",null);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],iR.prototype,"errorMessage",null);_.S([_.f("selection"),_.V("design:type",Object),_.V("design:paramtypes",[])],iR.prototype,"startDate",null);_.S([_.f("selection"),_.V("design:type",Object),_.V("design:paramtypes",[])],iR.prototype,"endDate",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iR.prototype,"dataChanged",null);
_.S([_.GO("selection","selectionState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iR.prototype,"observeSelection",null);_.S([_.GO("selectionState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iR.prototype,"resetTextboxes",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],iR);
_.d(iR,"ytd-date-period-picker-renderer",function(){if(jcU!==void 0)return jcU;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return jcU=Y},{mode:1});var Rb=function(){var Y=_.Z.apply(this,arguments)||this;var G={};Y.actionMap=(G["ytd-date-period-picker-apply"]="handleDateRangeUpdated",G);return Y};
_.m(Rb,_.Z);Rb.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Rb.prototype.handleDateRangeUpdated=function(){};
_.S([_.R(),_.V("design:type",Object)],Rb.prototype,"data",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Rb.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Rb.prototype,"rendererstamperBehavior",void 0);_.S([_.pD({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Rb);
_.d(Rb,"ytd-report-history-section-header-renderer",function(){if(N3X!==void 0)return N3X;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return N3X=Y},{mode:1});var qXE;var scI;var cxl;var w9=function(){return _.Z.apply(this,arguments)||this};
_.m(w9,_.Z);_.Uk.Object.defineProperties(w9.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?0:(G=Y.icon)==null?0:G.iconType)?_.Ux(this.data.icon.iconType):""}}});
_.S([_.R(),_.V("design:type",Object)],w9.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",String),_.V("design:paramtypes",[])],w9.prototype,"icon",null);_.S([_.pD({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],w9);
_.d(w9,"ytd-report-history-table-text-cell-renderer",function(){if(cxl!==void 0)return cxl;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return cxl=Y},{mode:1});var Z5=function(){return _.Z.apply(this,arguments)||this};
_.m(Z5,_.Z);Z5.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Z5.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Z5.prototype,"data",void 0);_.S([_.pD({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Z5);
_.d(Z5,"ytd-report-history-table-reason-cell-renderer",function(){if(scI!==void 0)return scI;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return scI=Y},{mode:1});var D5=function(){return _.Z.apply(this,arguments)||this};
_.m(D5,_.Z);D5.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"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],D5.prototype,"rendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],D5.prototype,"data",void 0);_.S([_.pD({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],D5);
_.d(D5,"ytd-report-history-table-cell-renderer",function(){if(qXE!==void 0)return qXE;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
return qXE=Y},{mode:1});var U__;var hp=function(){var Y=_.Z.apply(this,arguments)||this;Y.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 Y};
_.m(hp,_.Z);hp.prototype.onDataChanged=function(){var Y;if((Y=this.data)==null?0:Y.style)this.componentStyle=this.getStyleName(this.data.style)};
hp.prototype.getCellForColumn=function(Y){return this.cells.find(function(G){var u;return((u=_.z(G==null?void 0:G.cell,hh2)||_.z(G==null?void 0:G.cell,DR1))==null?void 0:u.columnId)===Y.type})};
hp.prototype.getClassForColumn=function(Y){switch(Y){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
hp.prototype.getStyleName=function(Y){switch(Y){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Uk.Object.defineProperties(hp.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.cells)||[]).map(function(G){return _.z(G,ZMI)})}}});
hp.prototype.onDataChanged=hp.prototype.onDataChanged;_.S([_.R(),_.V("design:type",Object)],hp.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Array)],hp.prototype,"columnRenderData",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],hp.prototype,"componentStyle",void 0);_.S([_.f("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],hp.prototype,"cells",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hp.prototype,"onDataChanged",null);_.S([_.pD({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],hp);
_.d(hp,"ytd-report-history-table-row-renderer",function(){if(U__!==void 0)return U__;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return U__=Y},{mode:1});var vLE;var Jx2;var qNu={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},s5T={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var d9=function(){return _.Z.apply(this,arguments)||this};
_.m(d9,_.Z);d9.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"}}}}}};
d9.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Uk.Object.defineProperties(d9.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.columns)?YYA(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return vZA(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var Y=this.tableSpec,G=qNu;G=G===void 0?s5T:G;G=J9g(Y.columnDimensions,Y.columnsToShow||[],G);Y=0;G=_.E(G);for(var u=G.next();!u.done;u=G.next())u=u.value,Y+=u.minWidth+u.paddingLeft+u.paddingRight;return Y}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.S([_.x(_.DD),_.V("design:type",Object)],d9.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],d9.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],d9.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],d9.prototype,"tableSpec",null);_.S([_.f("tableSpec"),_.V("design:type",Array),_.V("design:paramtypes",[])],d9.prototype,"columnRenderData",null);
_.S([_.f("tableSpec"),_.V("design:type",Number),_.V("design:paramtypes",[])],d9.prototype,"totalMinWidth",null);_.S([_.f("totalMinWidth"),_.V("design:type",String),_.V("design:paramtypes",[])],d9.prototype,"tableWidthStyle",null);_.S([_.pD({is:"ytd-table-renderer",disableElementRegistration:!0})],d9);
_.d(d9,"ytd-table-renderer",function(){if(Jx2!==void 0)return Jx2;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Jx2=Y},{mode:1});var bR=function(){return _.Z.apply(this,arguments)||this};
_.m(bR,_.Z);bR.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}}}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],bR.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],bR.prototype,"data",void 0);_.S([_.pD({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],bR);
_.d(bR,"ytd-report-reason-history-modal-renderer",function(){if(vLE!==void 0)return vLE;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return vLE=Y},{mode:1});var YZV;var G4E;var ucX;var S4=function(){return _.Z.apply(this,arguments)||this};
_.m(S4,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],S4.prototype,"data",void 0);_.S([_.pD({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],S4);
_.d(S4,"ytd-profile-column-stats-entry-renderer",function(){if(ucX!==void 0)return ucX;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return ucX=Y},{mode:1});var OnT;var NX=function(){return _.Z.apply(this,arguments)||this};
_.m(NX,_.Z);NX.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],NX.prototype,"data",void 0);_.S([_.pD({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],NX);
_.d(NX,"ytd-profile-column-stats-renderer",function(){if(OnT!==void 0)return OnT;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return OnT=Y},{mode:1});var QCM;var j4=function(){return _.Z.apply(this,arguments)||this};
_.m(j4,_.Z);_.Uk.Object.defineProperties(j4.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.useThumbnailSize)return 80;var G,u;Y=(G=this.data)==null?void 0:(u=G.thumbnail)==null?void 0:u.thumbnails;var O;return Y&&((O=Y[0])==null?void 0:O.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.useThumbnailSize)return 80;var G,u;Y=(G=this.data)==null?void 0:(u=G.thumbnail)==null?void 0:u.thumbnails;var O;return Y&&((O=Y[0])==null?void 0:O.height)||80}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],j4.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],j4.prototype,"componentStyle",void 0);_.S([_.f("data.useThumbnailSize"),_.V("design:type",Object),_.V("design:paramtypes",[])],j4.prototype,"thumbnailWidth",null);
_.S([_.f("data.useThumbnailSize"),_.V("design:type",Object),_.V("design:paramtypes",[])],j4.prototype,"thumbnailHeight",null);_.S([_.pD({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],j4);
_.d(j4,"ytd-profile-column-user-info-renderer",function(){if(QCM!==void 0)return QCM;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return QCM=Y},{mode:1});var Vk=function(){return _.Z.apply(this,arguments)||this};
_.m(Vk,_.Z);Vk.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]]"}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Vk.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Vk.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],Vk.prototype,"componentStyle",void 0);_.S([_.pD({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Vk);
_.d(Vk,"ytd-profile-column-renderer",function(){if(G4E!==void 0)return G4E;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return G4E=Y},{mode:1});var lR=function(){var Y=_.Z.apply(this,arguments)||this;Y.componentStyle="NON_CENTERED_PROFILE";return Y};
_.m(lR,_.Z);lR.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
lR.prototype.getIcon=function(Y){return Y?"settings:"+Y.toLowerCase():null};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],lR.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],lR.prototype,"data",void 0);_.S([_.pD({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],lR);
_.d(lR,"ytd-page-introduction-renderer",function(){if(YZV!==void 0)return YZV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return YZV=Y},{mode:1});var MW4;var Bz=function(){return _.Z.apply(this,arguments)||this};
_.m(Bz,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Bz.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Bz.prototype,"data",void 0);_.S([_.pD({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Bz);
_.d(Bz,"ytd-report-description-renderer",function(){if(MW4!==void 0)return MW4;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return MW4=Y},{mode:1});var HnR;var EXe;var $J=function(){return _.Z.apply(this,arguments)||this};
_.m($J,_.Z);$J.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],$J.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],$J.prototype,"data",void 0);_.S([_.pD({is:"ytd-video-report-renderer",disableElementRegistration:!0})],$J);
_.d($J,"ytd-video-report-renderer",function(){if(EXe!==void 0)return EXe;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return EXe=Y},{mode:1});var tW4;_.Px("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Px("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var qX=function(){return _.Z.apply(this,arguments)||this};
_.m(qX,_.Z);qX.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]]"}}}}}};
qX.prototype.computeMessageStyle=function(Y){return Y};
qX.prototype.computeButtonOverride=function(Y){var G;if((Y==null?0:(G=Y.style)==null?0:G.value)&&Y.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],qX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],qX.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],qX.prototype,"shelf",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],qX.prototype,"panel",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.V("design:type",Boolean)],qX.prototype,"componentStyle",void 0);_.S([_.R({computed:"computeButtonOverride(data)"}),_.V("design:type",Object)],qX.prototype,"buttonOverride",void 0);_.S([_.pD({is:"ytd-message-renderer",disableElementRegistration:!0})],qX);
_.d(qX,"ytd-message-renderer",function(){if(tW4!==void 0)return tW4;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return tW4=Y},{mode:1});var sP=function(){return _.Z.apply(this,arguments)||this};
_.m(sP,_.Z);sP.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"}}}};
sP.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
sP.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Uk.Object.defineProperties(sP.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!!(((Y=this.data)==null?0:Y.header)&&((G=this.data)==null?0:G.table))}}});
sP.prototype.onRequestError=sP.prototype.onRequestError;_.S([_.x(_.DD),_.V("design:type",Object)],sP.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],sP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],sP.prototype,"data",void 0);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],sP.prototype,"isUnifiedReportHistory",null);_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sP.prototype,"onRequestError",null);_.S([_.pD({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],sP);
_.d(sP,"ytd-report-history-section-renderer",function(){if(HnR!==void 0)return HnR;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return HnR=Y},{mode:1});var KL1;var cz=function(){var Y=_.Z.apply(this,arguments)||this;Y.answerExpanded=!1;return Y};
_.m(cz,_.Z);cz.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],cz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],cz.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],cz.prototype,"answerExpanded",void 0);_.S([_.pD({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],cz);
_.d(cz,"ytd-handles-claiming-faq-renderer",function(){if(KL1!==void 0)return KL1;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return KL1=Y},{mode:1});var aWR;var Tik=function(){return _.Z.apply(this,arguments)||this};
_.m(Tik,_.Z);_.S([_.R(),_.V("design:type",Object)],Tik.prototype,"data",void 0);_.S([_.pD({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],Tik);
_.d(Tik,"ytd-handles-claiming-faq-section-renderer",function(){if(aWR!==void 0)return aWR;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return aWR=Y},{mode:1});var LLk;var UP=function(){var Y=_.Z.apply(this,arguments)||this;Y.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";Y.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";Y.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";Y.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";Y.leftSquiggly=Y.leftSquigglyLight;Y.rightSquiggly=Y.rightSquigglyLight;
Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};Y.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return Y};
_.m(UP,_.Z);_.H=UP.prototype;_.H.updateLeftSquigglyStyle=function(){_.cm(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.H.updateRightSquigglyStyle=function(){_.cm(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.H.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(Y)};
_.H.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.set("isDarkTheme",Y),Y?(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]]"}}}}}};
UP.prototype.updateRightSquigglyStyle=UP.prototype.updateRightSquigglyStyle;UP.prototype.updateLeftSquigglyStyle=UP.prototype.updateLeftSquigglyStyle;_.S([_.R(),_.V("design:type",Object)],UP.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],UP.prototype,"isDarkTheme",void 0);_.S([_.R(),_.V("design:type",String)],UP.prototype,"leftSquiggly",void 0);_.S([_.R(),_.V("design:type",String)],UP.prototype,"rightSquiggly",void 0);
_.S([_.GO("leftSquiggly"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UP.prototype,"updateLeftSquigglyStyle",null);_.S([_.GO("rightSquiggly"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UP.prototype,"updateRightSquigglyStyle",null);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],UP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],UP.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],UP.prototype,"actionButtonOverride",void 0);_.S([_.pD({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],UP);
_.d(UP,"ytd-handles-claiming-header-renderer",function(){if(LLk!==void 0)return LLk;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return LLk=Y},{mode:1});var gXR;var vz=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};Y.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";Y.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";Y.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";Y.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
Y.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";Y.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";Y.image0SquigglyBackground=Y.image0LightSquigglyBackground;Y.image1SquigglyBackground=Y.image1LightSquigglyBackground;Y.image3SquigglyBackground=Y.image3LightSquigglyBackground;return Y};
_.m(vz,_.Z);_.H=vz.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(Y){Y!==this.isDarkTheme&&(this.isDarkTheme=Y)};
_.H.updateImage0SquigglyBackground=function(){_.cm(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.H.updateImage1SquigglyBackground=function(){_.cm(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.H.updateImage3SquigglyBackground=function(){_.cm(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.H.updateTitleAndImages=function(){var Y,G;((Y=this.data)==null?void 0:(G=Y.titleImages)==null?void 0:G.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))};
vz.prototype.updateImage3SquigglyBackground=vz.prototype.updateImage3SquigglyBackground;vz.prototype.updateImage1SquigglyBackground=vz.prototype.updateImage1SquigglyBackground;vz.prototype.updateImage0SquigglyBackground=vz.prototype.updateImage0SquigglyBackground;vz.prototype.onThemeChanged=vz.prototype.onThemeChanged;vz.prototype.onDataChanged=vz.prototype.onDataChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],vz.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],vz.prototype,"isDarkTheme",void 0);_.S([_.R(),_.V("design:type",Object)],vz.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],vz.prototype,"title0",void 0);_.S([_.R(),_.V("design:type",Object)],vz.prototype,"title1",void 0);_.S([_.R(),_.V("design:type",Object)],vz.prototype,"title2",void 0);_.S([_.R(),_.V("design:type",Object)],vz.prototype,"title3",void 0);
_.S([_.R(),_.V("design:type",Object)],vz.prototype,"title4",void 0);_.S([_.R(),_.V("design:type",Object)],vz.prototype,"image0",void 0);_.S([_.R(),_.V("design:type",Object)],vz.prototype,"image1",void 0);_.S([_.R(),_.V("design:type",Object)],vz.prototype,"image2",void 0);_.S([_.R(),_.V("design:type",Object)],vz.prototype,"image3",void 0);_.S([_.R(),_.V("design:type",Object)],vz.prototype,"image4",void 0);_.S([_.R(),_.V("design:type",String)],vz.prototype,"image0SquigglyBackground",void 0);
_.S([_.R(),_.V("design:type",String)],vz.prototype,"image1SquigglyBackground",void 0);_.S([_.R(),_.V("design:type",String)],vz.prototype,"image3SquigglyBackground",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vz.prototype,"onDataChanged",null);_.S([_.GO("isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vz.prototype,"onThemeChanged",null);
_.S([_.GO("image0SquigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vz.prototype,"updateImage0SquigglyBackground",null);_.S([_.GO("image1SquigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vz.prototype,"updateImage1SquigglyBackground",null);
_.S([_.GO("image3SquigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vz.prototype,"updateImage3SquigglyBackground",null);_.S([_.pD({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],vz);
_.d(vz,"ytd-handles-claiming-title-images-section-renderer",function(){if(gXR!==void 0)return gXR;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return gXR=Y},{mode:1});var XNU;var Jp=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.m(Jp,_.Z);Jp.prototype.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(Y)};
Jp.prototype.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&this.set("isDarkTheme",Y)};
Jp.prototype.onCopyButtonClick=function(){var Y=this,G,u,O;return _.a(function(Q){return(G=Y.data)!=null&&G.primaryChannelUrl?Q.yield(navigator.clipboard.writeText(((u=Y.data)==null?0:u.encodedChannelUrl)?Y.data.encodedChannelUrl:"https://"+_.Ri((O=Y.data)==null?void 0:O.primaryChannelUrl)),0):Q.jumpTo(0)})};
_.S([_.R(),_.V("design:type",Object)],Jp.prototype,"data",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Jp.prototype,"ytComponentBehavior",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Jp.prototype,"isDarkTheme",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Jp.prototype,"ytActionHandlerBehavior",void 0);_.S([_.pD({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Jp);
_.d(Jp,"ytd-handles-claiming-update-social-renderer",function(){if(XNU!==void 0)return XNU;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return XNU=Y},{mode:1});var P4l;var Yz=function(){var Y=_.Z.apply(this,arguments)||this;Y.JSC$16518_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";Y.JSC$16518_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};Y.squigglyBackground=Y.JSC$16518_squigglyBackgroundLight;return Y};
_.m(Yz,_.Z);Yz.prototype.updateSquigglyBackgroundStyle=function(){_.cm(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Yz.prototype.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",Y);this.squigglyBackground=Y?this.JSC$16518_squigglyBackgroundDark:this.JSC$16518_squigglyBackgroundLight};
Yz.prototype.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.set("isDarkTheme",Y),this.squigglyBackground=Y?this.JSC$16518_squigglyBackgroundDark:this.JSC$16518_squigglyBackgroundLight)};
Yz.prototype.updateSquigglyBackgroundStyle=Yz.prototype.updateSquigglyBackgroundStyle;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Yz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Yz.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Yz.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Yz.prototype,"isDarkTheme",void 0);_.S([_.R(),_.V("design:type",String)],Yz.prototype,"squigglyBackground",void 0);_.S([_.GO("squigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yz.prototype,"updateSquigglyBackgroundStyle",null);_.S([_.pD({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Yz);
_.d(Yz,"ytd-handles-claiming-vanity-info-renderer",function(){if(P4l!==void 0)return P4l;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return P4l=Y},{mode:1});var IWV;var G7=function(){var Y=_.Z.apply(this,arguments)||this;Y.JSC$16521_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";Y.JSC$16521_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";Y.squigglyBackground=Y.JSC$16521_squigglyBackgroundLight;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.m(G7,_.Z);_.H=G7.prototype;_.H.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(Y)};
_.H.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.set("isDarkTheme",Y),this.squigglyBackground=Y?this.JSC$16521_squigglyBackgroundDark:this.JSC$16521_squigglyBackgroundLight)};
_.H.updateSquigglyBackgroundStyle=function(){_.cm(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 Y=this,G,u;return _.a(function(O){G=Y.data.videoId;u="http://i1.ytimg.com/vi/"+G+"/maxresdefault.jpg";Y.playerElement.loadVideoWithPlayerVars({video_id:G,iurlhq:u});_.Sd(O)})};
G7.prototype.onDataChanged=G7.prototype.onDataChanged;G7.prototype.updateSquigglyBackgroundStyle=G7.prototype.updateSquigglyBackgroundStyle;_.S([_.R({value:!1}),_.V("design:type",Boolean)],G7.prototype,"isDarkTheme",void 0);_.S([_.R(),_.V("design:type",String)],G7.prototype,"squigglyBackground",void 0);_.S([_.Ox("#player"),_.V("design:type",Object)],G7.prototype,"playerElement",void 0);_.S([_.R(),_.V("design:type",Object)],G7.prototype,"data",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],G7.prototype,"ytActionHandlerBehavior",void 0);_.S([_.GO("squigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],G7.prototype,"updateSquigglyBackgroundStyle",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],G7.prototype,"onDataChanged",null);
_.S([_.pD({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],G7);
_.d(G7,"ytd-handles-claiming-video-item-renderer",function(){if(IWV!==void 0)return IWV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return IWV=Y},{mode:1});var k4k;var Op=function(){var Y=_.Mb.apply(this,arguments)||this;Y.dragging=!1;Y.dragMouseStart=0;Y.dragOffsetStart=0;Y.containerWidthDiff=0;Y.boundPrevClick=function(){Y.set("offset",uS(Y,Y.offset-(Y.scrollDistance||320)))};
Y.boundNextClick=function(){Y.set("offset",uS(Y,Y.offset+(Y.scrollDistance||320)))};
Y.boundScrollContainerMouseDown=function(G){Y.dragMouseStart=G.clientX;Y.dragOffsetStart=Y.offset;Y.dragging=!0};
Y.boundScrollContainerDrag=function(G){Y.dragging&&Y.set("offset",uS(Y,Y.dragOffsetStart-(G.clientX-Y.dragMouseStart)))};
Y.boundMouseUp=function(){Y.onMouseUp()};
Y.boundWheelScroll=function(G){var u=0;Math.abs(G.deltaX)>=Math.abs(G.deltaY)?u=G.deltaX:G.shiftKey&&(u=G.deltaY);u!==0&&(Y.offset+=u,G.stopPropagation(),G.preventDefault())};
Y.boundChipCloudChipScrollIntoView=function(G){(G=G.detail)&&Y.scrollChipIntoView(G)};
return Y};
_.m(Op,_.Mb);Op.prototype.attached=function(){var Y=_.l0(this.hostElement).querySelector("#scroll-container");Y.addEventListener("wheel",this.boundWheelScroll);Y.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);Y.style.touchAction="pan-y";Y.addEventListener("pointerdown",this.boundScrollContainerMouseDown);Y.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Op.prototype.detached=function(){var Y=_.l0(this.hostElement).querySelector("#scroll-container");Y.removeEventListener("wheel",this.boundWheelScroll);Y.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);Y.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);Y.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Op.prototype.reset=function(){this.set("offset",0);_.sk(this,this.setContainerWidthDiff);_.sk(this,this.setButtonsState)};
var uS=function(Y,G){return Math.min(Math.max(G,0),Y.containerWidthDiff)};
_.H=Op.prototype;_.H.onMouseUp=function(){this.dragging=!1};
_.H.transformContainer=function(){this.offset=uS(this,this.offset);var Y=_.DE("HTML_DIR")==="rtl"?"":"-";_.l0(this.hostElement).querySelector("#chips").style.transform="translateX("+Y+this.offset+"px)";_.sk(this,this.setButtonsState)};
_.H.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=uS(this,this.offset));this.atStart=this.offset<=0};
_.H.setContainerWidthDiff=function(){var Y=_.l0(this.hostElement).querySelector("#scroll-container"),G=_.l0(this.hostElement).querySelector("#chips");Y&&G&&(this.containerWidthDiff=G.clientWidth-Y.clientWidth)};
_.H.scrollChipIntoView=function(Y){var G=_.l0(this.hostElement).querySelector("#scroll-container");if(G){var u=this.atStart?0:106,O=this.atEnd?0:106;Y.offsetLeft<this.offset+u?this.offset=uS(this,Y.offsetLeft-u):Y.offsetLeft+Y.clientWidth>this.offset+G.clientWidth-O&&(this.offset=uS(this,Y.offsetLeft+Y.clientWidth+O-G.clientWidth))}};
Op.prototype.transformContainer=Op.prototype.transformContainer;_.S([_.R({value:0}),_.V("design:type",Number)],Op.prototype,"offset",void 0);_.S([_.R({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],Op.prototype,"atStart",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Op.prototype,"atEnd",void 0);_.S([_.R(),_.V("design:type",Number)],Op.prototype,"scrollDistance",void 0);
_.S([_.GO("offset"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Op.prototype,"transformContainer",null);_.S([_.Hn()],Op);var nXX;var FLR;_.Q$=_.D(function(Y){var G=Y.data;Y=_.E(_.IE(!1,void 0,"bob3J"));var u=Y.next().value,O=Y.next().value;Y=function(M){if((G==null?void 0:G().state)!==1){var t,K;(K=(t=G()).onTap)==null||K.call(t,M)}};
var Q={};return _.T("chip-shape",{class:"ytChipShapeHost","on:focusin":_.U3(function(){var M=_.sH().resolve(_.q3(_.SO));if(M){O(M.isKeyBoardInUse());var t,K;(K=(t=G()).onFocusIn)==null||K.call(t)}return!1}),
"on:focusout":_.U3(function(){O(!1);return!1})},_.T(pNT,{shouldWrapInButton:function(){return G().type!==2},
selected:function(){return G().state===0},
onClick:Y,isDropdown:function(){return G().type===1},
accessibilityLabel:function(){return G().type===1?void 0:G().accessibilityLabel}},_.T("div",{class:_.s3("ytChipShapeChip",function(){a:switch(G==null?void 0:G().state){case 0:var M="ytChipShapeActive";
break a;case 1:M="ytChipShapeDisabled";break a;default:M="ytChipShapeInactive"}return M},function(){var M=G().type===1||G().type===2,t=G();
return M||t!=null&&t.startIcon?t==null||!t.startIcon||t!=null&&t.text?M?"ytChipShapeEndIconPadding":(t==null?0:t.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var M=G();
if((M==null?void 0:M.style)===0&&(M==null?void 0:M.state)===0){var t;M=((t=_.sH().resolve(_.q3(_.Ee)))==null?0:t())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else M="";return M},(Q.ytChipShapeFocused=function(){var M;
return u()&&((M=G())==null?void 0:M.state)!==1},Q))},_.T(_.X,{cond:function(){return G().startIcon},
then:function(){return _.T(_.GS,{icon:function(){var M;return(M=G())==null?void 0:M.startIcon},
className:_.s3(function(){return G().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var M=G(),t,K=(t=_.sH().resolve(_.q3(_.Ee)))==null?void 0:t();
return(M==null?void 0:M.style)===0&&(M==null?void 0:M.state)===0&&K?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return G().text},_.T(zu_,{shape:G,
onClick:Y}),_.T(_.jO,{model:{borderRadius:"8px"}}))))},"Tc");
_.Q$.idomCompat=!0;var pNT=_.D(function(Y){var G=_.U3(function(u){Y.onClick(u);return!1});
return _.T(_.X,{cond:Y.shouldWrapInButton,then:function(){return _.T("button",{class:"ytChipShapeButtonReset","on:click":G,role:function(){return Y.isDropdown()?"combobox":"tab"},
"aria-label":Y.accessibilityLabel,"aria-selected":Y.selected},Y.children)},
else:function(){return Y.children}})},"Uc"),zu_=_.D(function(Y){var G=Y.shape;
var u=Y.onClick;var O=_.U3(function(Q){u(Q);return!1});
return _.T(_.x4,null,_.T(_.m1,{when:function(){return G().type===1}},function(){return _.T(_.GS,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.T(_.m1,{when:function(){return G().type===2}},function(){return _.T("button",{class:"ytChipShapeButtonReset",
"on:click":O},_.T(_.GS,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.T(_.m1,{when:function(){return G().type===0}},function(){return _.T(_.GY,null)}))},"Vc");_.hR(_.Q$,"chip-shape",{props:{data:_.AC}});var MJ=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableDeselectEvent=!1;Y.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return Y};
_.m(MJ,_.Z);_.H=MJ.prototype;_.H.onSelectChipCommand=function(Y){if(!this.selected&&this.data&&(Y=_.z(Y,lcR),Y.targetId&&Y.targetId===this.data.targetId))this.onTap()};
_.H.onFilterChipTransformCommand=function(Y){if(!this.selected&&this.data){var G;(Y=(G=_.z(Y,ZLR))==null?void 0:G.chipUniqueId)&&Y===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.H.dataChanged=function(){var Y=this;_.sk(this,function(){Y.data&&Y.data.isSelected&&!Y.selected&&(Y.scrollChipIntoView(),Y.onTap())})};
_.H.computeChipStyle=function(Y){return Y!=null?Y:"STYLE_DEFAULT"};
_.H.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?_.qZ(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.qZ(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.H.onFocus=function(){var Y=_.sH().resolve(_.q3(_.SO));Y&&Y.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.H.scrollChipIntoView=function(){_.$s(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Uk.Object.defineProperties(MJ.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.icon)}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return ErY({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
MJ.prototype.onFocus=MJ.prototype.onFocus;MJ.prototype.onTap=MJ.prototype.onTap;MJ.prototype.dataChanged=MJ.prototype.dataChanged;_.S([_.x(_.Q5),_.V("design:type",Object)],MJ.prototype,"ironButtonState",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],MJ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],MJ.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],MJ.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.Gp),_.V("design:type",Object)],MJ.prototype,"ironA11yKeysBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],MJ.prototype,"disableDeselectEvent",void 0);_.S([_.R(),_.V("design:type",Object)],MJ.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data.icon"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],MJ.prototype,"hasIcon",null);
_.S([_.R({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.V("design:type",String)],MJ.prototype,"chipStyle",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],MJ.prototype,"selected",void 0);_.S([_.f("data","selected"),_.V("design:type",Object),_.V("design:paramtypes",[])],MJ.prototype,"chipShapeData",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MJ.prototype,"dataChanged",null);
_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MJ.prototype,"onTap",null);_.S([_.Yo("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MJ.prototype,"onFocus",null);_.S([_.Ff({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],MJ);
_.d(MJ,"yt-chip-cloud-chip-renderer",function(){if(FLR===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;nXX===void 0&&(nXX=document.createElement("template"));var O=nXX;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);FLR=Y}Y=FLR;return Y},{mode:2});var a6I=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.mTX=_.D(function(Y){function G(){if(a6I.has(Y.data().displayType)){var g=!O(),P;if((P=Y.disableDeselection)==null||!P.call(Y)||g){Y.data().selected=g;P=Object.assign({},t(),{selected:g});K(P);var I;(I=Y.callback)==null||I.call(Y,P,g)}}}
var u=_.CH("chip-view-model",function(g){var P=Y.data().tooltipTargetId,I=_.O2();P&&_.uE(I,P,g);return function(){Gk(I,g)}}),O=function(){var g,P;
return!!(((g=Y.selected)==null?void 0:g.call(Y))!==void 0?(P=Y.selected)==null?0:P.call(Y):t().selected)},Q=_.E(_.SN(Y.data)),M=Q.next().value;
Q=Q.next().value;var t=M,K=Q,L=_.Oe(Krg,function(){return Y.data().chipEntityKey||""});
return _.T("chip-view-model",{class:"ytChipViewModelHost",el:u},_.T(_.Q$,{data:function(){var g,P=Object.assign({},t(),{selected:O()}),I=L(),k=(g=Y.disableDeselection)==null?void 0:g.call(Y);a:switch(P.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":g=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":g=3;break a;default:g=0}return{text:(I==null?void 0:I.text)||P.text,state:P.disabled?1:P.selected?0:2,type:g,onTap:Tqu(P,u,G,
k),accessibilityLabel:P.accessibilityLabel||P.text}}}))},"Wc");
_.mTX.idomCompat={callbacks:{callback:!0}};_.HW=_.D(function(Y){Y=_.bM(Y,{nextButtonStyle:0});var G=Y.data,u=Y.callback,O=Y.selectionBehavior,Q=Y.disableChipsScrollAnimation,M=Y.nextButtonStyle,t=_.yg("div");Y=_.E(_.IE(!0,void 0,"VwW6Jc"));var K=Y.next().value,L=Y.next().value;Y=_.E(_.IE(!1,void 0,"OIoagd"));var g=Y.next().value,P=Y.next().value,I=!1,k=0,n=function(){switch(M()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton"}};
_.o1(function(){L(C());P(e())});
Y=_.E(_.SN(function(){var Xt={};return G().autoselectedChipIndex!=null?(Xt[G().autoselectedChipIndex]=!0,Xt):{}}));
var p=Y.next().value,W=Y.next().value,C=function(){var Xt=t.value;return Xt==null||Xt.scrollLeft-1<=0},e=function(){var Xt=t.value;
return Xt==null?!1:Xt.scrollLeft+1>=(Xt==null?NaN:Xt.scrollWidth)-(Xt==null?NaN:Xt.clientWidth)},w=function(){return G().isHorizontallyScrollable},B=function(Xt){t.value!=null&&(_.DE("HTML_DIR")==="rtl"&&(Xt=-Xt),t.value.scrollBy({left:Xt,
behavior:(Q==null?0:Q())?"instant":"smooth"}))},N=function(){B(-320)},h=function(){B(320)},q=_.U3(function(Xt){I=!0;
k=Xt.clientX}),U=_.U3(function(Xt){if(I){Xt=Xt.clientX;
var ka=Xt-k;k=Xt;var aU;(aU=t.value)==null||aU.scrollBy({left:-ka})}}),Mj=_.U3(function(){var Xt=C(),ka=e();
Xt!==K()&&L(Xt);ka!==g()&&P(ka)});
_.sV("pointerup",function(){I&&(I=!1)});
return _.T("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.T(_.JZ,{contentId:function(){return G().contentId},
useModernStyle:!0},function(){var Xt={},ka={};return _.T("div",null,_.T(_.X,{cond:function(){return G().title},
then:function(){return _.T("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.T("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return G().title}),_.T(_.HE,{data:function(){return G().overflowButton}},{buttonViewModel:_.$Y}))}}),_.T("div",{class:_.s3("ytChipsShelfViewModelChipsShelfContent",n)},_.T(_.X,{cond:function(){return G().previousButton},
then:function(){var aU={};return _.T("div",{class:_.s3("ytChipsShelfViewModelLeftArrowContainer",(aU.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return K()},aU))},_.T(_.HE,{data:function(){return G().previousButton}},{buttonViewModel:function(Tg){return _.T(_.$Y,{data:Tg.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:N})}}))}}),_.T("div",{el:t,
"on:pointerdown":q,"on:pointermove":U,"on:scroll":Mj,class:_.s3("ytChipsShelfViewModelChipsScrollContainer",(Xt.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=w,Xt))},_.T("div",{class:_.s3("ytChipsShelfViewModelChipsContainer",(ka.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=w,ka.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,ka)),role:"tablist"},_.T(_.HE,{data:function(){return G().contents}},{chipViewModel:function(aU,Tg){return _.T("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.T(_.mTX,{data:aU.data,
callback:function(iy,hY){var dA=Tg(),nT,u_=(nT=O==null?void 0:O())!=null?nT:0;u_===1||u_===2?(nT={},W((nT[dA]=hY,nT))):u_===0&&(nT={},W(Object.assign({},p(),(nT[dA]=hY,nT))));u==null||u(iy,hY,dA)},
disableDeselection:function(){return(O==null?void 0:O())===1},
selected:function(){return!!p()[Tg()]}}))}}))),_.T(_.X,{cond:function(){return G().nextButton},
then:function(){var aU={};return _.T("div",{class:_.s3("ytChipsShelfViewModelRightArrowContainer",(aU.ytChipsShelfViewModelRightArrowContainerIsHidden=g,aU))},_.T(_.HE,{data:function(){return G().nextButton}},{buttonViewModel:function(Tg){return _.T(_.$Y,{data:Tg.data,
className:"ytChipsShelfViewModelRightArrow",onClick:h})}}))}})))}))},"Yc");
_.HW.idomCompat={callbacks:{callback:!0}};var WLR=_.D(function(Y){var G=Y.data;var u=Y.showChips;var O=Y.isUpdateInProgress;var Q=Y.chipClickCallback;Y=_.E(_.IE(!1,void 0,"uth3se"));var M=Y.next().value,t=Y.next().value;Y=_.E(_.IE(!1,void 0,"qED0bb"));var K=Y.next().value,L=Y.next().value,g=function(){var I,k;return!((I=G())==null?0:I.responseMessage)&&!((k=G())==null||!k.chipsShelf)},P=void 0;
_.RE(function(){L(!0);var I=(u()||g())&&!O();requestAnimationFrame(function(){t(I)});
P&&clearTimeout(P);P=setTimeout(function(){L(!1)},300)},"OBQBmf");
_.w_(function(){P&&clearTimeout(P)});
Y={};return _.T("ytd-ai-response-box-view-model",{class:_.s3("ytdAiResponseBoxViewModelHost")},_.T("div",{class:_.s3("ytdAiResponseBoxViewModelResponseMessageContainer",(Y.ytdAiResponseBoxViewModelResponseMessageContainerHidden=M,Y.ytdAiResponseBoxViewModelNotShown=function(){return M()&&!K()},Y))},_.T(_.X,{cond:O,
then:function(){return _.T("div",null,_.T(_.eO,{text:function(){return G().responsePendingMessage}}))},
else:function(){return _.T(_.GY,null,_.T(_.X,{cond:function(){var I;return(I=G().responseMessageIcon)==null?void 0:I.iconType},
then:function(I){return _.T("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.T(_.GS,{icon:I}))}}),_.T("div",null,_.T(_.eO,{text:function(){return G().responseMessage}})))}})),_.T(_.HE,{data:function(){return G().chipsShelf}},{chipsShelfViewModel:function(I){I=I.data;
var k={};return _.T("div",{class:_.s3("ytdAiResponseBoxViewModelChipsShelfContainer",(k.ytdAiResponseBoxViewModelChipsShelfContainerShown=M,k.ytdAiResponseBoxViewModelNotShown=function(){return!M()&&!K()},k))},_.T(_.HW,{data:I,
selectionBehavior:3,nextButtonStyle:1,callback:Q}))}}))},"$c");var r_I;r_I=Object.assign({},{continuation:iol,download:xJ2,canvas:aFg,reportChannelAbuse:dJR,ui:LbI,share:boe,talkToRecs:jke,watch:mD,ypc:qpX,radioButtonGroup:tYY,collabInviteLink:Hrj},ozl,{voiceSearch:P21,shorts:pl});_.xTR=kh(r_I);_.fWl=nz(_.xTR);_.C44=(0,_.fWl)(_.xTR.talkToRecs,{talkToRecsStateSelector:function(Y){return Y}});var y_R=_.D(function(Y){var G=Y.data;var u=_.p2(function(){var qj;a:{if(qj=G().onUpdateText)if(qj=_.z(qj,_.nd)){var Gx;qj=(Gx=_.z(qj,daT))==null?void 0:Gx.stepId;break a}qj=void 0}return qj},void 0,"cNWwFc");
Y=_.E(_.IE(!1,void 0,"wK1hV"));var O=Y.next().value,Q=Y.next().value;Y=_.E(_.IE(!1,void 0,"QNzWBf"));var M=Y.next().value,t=Y.next().value;Y=_.E(twA());var K=Y.next().value;Y=Y.next().value;var L=_.Hx(_.C44.talkToRecsStateSelector),g=_.E(_.IE("",void 0,"qkUInc")),P=g.next().value,I=g.next().value;g=_.E(_.IE(!1,void 0,"D8Tnjb"));var k=g.next().value,n=g.next().value,p=_.E(_.IE(!1,void 0,"AAxskd"));g=p.next().value;var W=p.next().value;p=_.E(_.IE(!1,void 0,"fPqlme"));var C=p.next().value,e=p.next().value;
p=_.E(_.IE(!1,void 0,"exlayb"));var w=p.next().value,B=p.next().value,N=_.CH("div");p=_.E(_.IE(void 0,void 0,"K6Q9Je"));var h=p.next().value,q=p.next().value,U=void 0,Mj=function(qj){qj!==O()&&(t(!0),Q(qj),U&&clearTimeout(U),U=setTimeout(function(){t(!1)},300))},Xt=function(){if(h()!==void 0){var qj=h();
Mj(window.scrollY>qj)}},ka=function(){var qj;
q((qj=N.value)==null?void 0:qj.offsetHeight);K("yt-feed-filter-chip-bar-resize")},aU="";
_.RE(function(){aU=P()},"WPP4R");
_.ii(function(){var qj,Gx,fT,b_=(fT=(Gx=Lrt(u(),L()))!=null?Gx:(qj=G().textInputValue)==null?void 0:qj.content)!=null?fT:"";I(b_);hY(b_);n(!!G().welcomeBannerTitle&&!b_);ka();document.addEventListener("scroll",Xt);_.w_(function(){document.removeEventListener("scroll",Xt);U&&clearTimeout(U)})});
_.RE(function(){k();ka()},"DxhXCf");
p=_.U3(function(){e(!0);W(!0)});
var Tg=_.U3(function(){W(!1)}),iy=!1;
_.RE(function(){var qj=G();if(iy){e(!1);B(!1);var Gx,fT,b_=(fT=(Gx=qj.textInputValue)==null?void 0:Gx.content)!=null?fT:"";b_!==aU&&(I(b_),hY(b_));n(!!qj.welcomeBannerTitle&&!b_)}else iy=!0},"SuH4vf");
var hY=function(qj){var Gx=G().onUpdateText;Gx&&_.W3(Gx,{form:{userQuery:qj}})},dA=_.pu(function(qj){hY(qj)},150),nT=_.U3(function(qj){qj=qj.target.value;
I(qj);dA(qj);return!1});
_.RE(function(){var qj=Lrt(u(),L());qj!==void 0&&qj!==aU&&I(qj)},"zXwaNc");
var u_=function(){B(!0);n(!1)},jT=function(){var qj=_.z(G().submitButton,_.Ck);
if(qj==null?0:qj.trackingParams){var Gx=_.Kd(qj.trackingParams),fT=_.FA();fT&&Gx&&_.wS(fT,Gx,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(qj=qj==null?void 0:qj.onTap)_.W3(qj),u_()},P1=_.U3(function(qj){qj.key==="Enter"&&(hY(qj.target.value.trim()),jT());
return!1}),kk=function(){jT()},Fe=_.U3(function(){K("yt-feed-customization-scroll-up")}),Xg={},Hb={},n1={},Yk={};
return _.T("ytd-feed-customization-form-view-model",{class:_.s3("ytdFeedCustomizationFormViewModelHost",(Xg.ytdFeedCustomizationFormViewModelHostCollapsed=O,Xg)),el:_.iq(Y)},_.T("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer",el:N},_.T("div",{class:_.s3("ytdFeedCustomizationFormViewModelExpandedContent",(Hb.ytdFeedCustomizationFormViewModelNotShown=function(){return O()&&!M()},Hb))},_.T(_.X,{cond:function(){return G().disclaimer},
then:function(){return _.T("div",{class:"ytdFeedCustomizationFormViewModelDisclaimer"},_.T(_.eO,{text:function(){return G().disclaimer}}))}}),_.T(_.X,{cond:k,
then:function(){return _.T("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.T("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.T(_.eO,{text:function(){return G().welcomeBannerTitle}})),_.T("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.T(_.eO,{text:function(){return G().welcomeBannerSubtitle}})))}}),_.T("div",{class:_.s3("ytdFeedCustomizationFormViewModelInputContainer",(n1.ytdFeedCustomizationFormViewModelInputContainerHighlighted=
g,n1))},_.T("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var qj;return(qj=G().textInputPlaceholder)==null?void 0:qj.content},
"prop:value":P,"on:focus":p,"on:blur":Tg,"on:input":nT,"on:keyup":P1,maxlength:300,disabled:w}),_.T(_.X,{cond:function(){return!!P()&&!w()},
then:function(){return _.T(_.HE,{data:function(){return G().clearButton}},{buttonViewModel:function(qj){return _.T("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.T(_.$Y,{data:qj.data}))}})}}),_.T(_.X,{cond:function(){return w()},
then:function(){return _.T(_.HE,{data:function(){return G().inProgressButton}},{buttonViewModel:function(qj){return _.T("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.T(_.$Y,{data:qj.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.T(_.HE,{data:function(){return G().submitButton}},{buttonViewModel:function(qj){return _.T("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.T(_.$Y,{data:qj.data,
onClick:u_}))}})}}),_.T(_.HE,{data:function(){return G().menuButton}},{buttonViewModel:function(qj){return _.T("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.T(_.$Y,{data:qj.data,
buttonOverrides:function(){return{disabled:w()}}}))}})),_.T(_.HE,{data:function(){return G().contents}},{aiResponseBoxViewModel:function(qj){return _.T("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.T(WLR,{data:qj.data,
showChips:C,isUpdateInProgress:w,chipClickCallback:kk}))}})),_.T("div",{class:_.s3("ytdFeedCustomizationFormViewModelCollapsedContent",(Yk.ytdFeedCustomizationFormViewModelNotShown=function(){return!O()&&!M()},Yk)),
"on:click":Fe},_.T("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var qj;return P()||((qj=G().textInputPlaceholder)==null?void 0:qj.content)}))))},"ed");_.hR(y_R,"ytd-feed-customization-form-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=_.E((0,_.$sX)(Y.data)).next().value;return _.T("yt-chip-content-loader-view-model",{class:"ytChipContentLoaderViewModelHost"},_.T(_.HE,{data:function(){return G().contents}},{feedCustomizationFormViewModel:function(u){return _.T(y_R,{data:u.data})}}))},"fd"),"yt-chip-content-loader-view-model",{props:{data:_.AC}});var euk=_.A$.persistentPanelVisibleSelector,Ep=function(){var Y=_.Z.apply(this,arguments)||this;Y.isDarkTheme=!1;Y.notSticky=!1;Y.transparentBackground=!1;Y.shouldHide=!1;Y.disableSticky=!1;Y.fluidWidth=!1;Y.isClipList=!1;Y.defaultChipIndex=0;Y.hasSelectedChipContent=!1;Y.isPlaylist=!1;Y.playlistVotingAnimationEnabled=_.F("web_enable_voting_animation");Y.toolbarHeight=0;Y.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.m(Ep,_.Z);_.H=Ep.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}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"},chipContentLoaderViewModel:{component:"yt-chip-content-loader-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.H.attached=function(){var Y=this;document.addEventListener("scroll",_.Jh(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",_.Jh(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var G;this.toolbarHeight=((G=document.querySelector("ytd-masthead"))==null?void 0:G.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(u){Y.handleIntersect(u)},{rootMargin:"-"+
(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){Y.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.H.detached=function(){var Y;(Y=this.intersectionObserver)==null||Y.disconnect();var G;(G=this.resizeObserver)==null||G.disconnect();document.removeEventListener("scroll",_.Jh(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",_.Jh(this,this.onFeedFilterChipBarResize))};
_.H.dataChanged=function(){var Y=this,G,u,O=(G=this.data)==null?void 0:(u=G.contents)==null?void 0:u.findIndex(function(M){var t;return!((t=_.z(M,vfT))==null?0:t.navigationEndpoint)});
O&&(this.defaultChipIndex=O);this.updating=!0;var Q=this.findSelectedChipIndex();this.selectedIndex!==Q&&(this.selectedIndex=-1);_.sk(this,function(){Y.selectedIndex=Q;Y.updateSelectedChipContent(Y.selectedIndex);Y.updating=!1;Y.ytScrollableChipCloudBehavior.reset()})};
_.H.findSelectedChipIndex=function(){var Y;if((Y=this.data)==null||!Y.contents)return 0;Y=this.data.contents;for(var G=0;G<Y.length;G++){var u=void 0;if((u=_.z(Y[G],vfT))==null?0:u.isSelected)return G}return 0};
_.H.computeStyle=function(Y){return Y};
_.H.handleChipCloudChipSelectAction=function(Y){Y=this.JSC$16564_chipsSelector.indexOf(Y);Y>-1&&(this.JSC$16564_chipsSelector.selectIndex(Y),this.updateSelectedChipContent(Y))};
_.H.updateSelectedChipContent=function(Y){var G;if((G=this.data)==null||!G.contents||Y<0||Y>=this.data.contents.length)this.selectedChipContent=void 0;else{var u;this.selectedChipContent=(u=_.z(this.data.contents[Y],vfT))==null?void 0:u.content}};
_.H.handleChipCloudChipDeselectAction=function(){if(_.F("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var Y,G,u,O=(u=_.z((Y=this.data)==null?void 0:(G=Y.contents)==null?void 0:G[this.defaultChipIndex],vfT))==null?void 0:u.navigationEndpoint;O&&_.qZ(this.hostElement,"yt-browse-section-list-reload-endpoint",[O]);this.JSC$16564_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.H.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.H.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()};
_.H.updateDynamicHeight=function(){var Y=this;this.hasSelectedChipContent&&!this.notSticky?_.sk(this,function(){var G=_.l0(Y.hostElement).querySelector("#chips-wrapper");G&&_.cm(Y.hostElement,{"--ytd-chips-bar-dynamic-height":G.clientHeight+"px"})}):_.cm(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.H.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.H.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.H.onResize=function(){this.updateLayout()};
_.H.updateLayout=function(){var Y=this.ytScrollableChipCloudBehavior;_.sk(Y,Y.setContainerWidthDiff);Y=this.ytScrollableChipCloudBehavior;_.sk(Y,Y.setButtonsState)};
_.H.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.H.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.H.handleIntersect=function(Y){this.notSticky=this.isChannelPageGrid||this.disableSticky||Y[0].intersectionRatio===1};
_.H.updateDimensions=function(){var Y=this.ytRendererBehavior.parentComponent;if(Y){var G,u=(G=Y.headerElement)!=null?G:Y;_.cm(this.hostElement,{"--ytd-rich-grid-chips-bar-width":u.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.H.updateSelectedIndexFromBinding=function(Y){this.selectedIndex=Y.detail.value};
_.H.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var Y;(Y=this.sortFilterHeaderRendererElement)==null||Y.setAttribute("is-playlist-page-with-filters","")}};
_.H.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch($JU(!this.notSticky))};
_.Uk.Object.defineProperties(Ep.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 Y,G,u=(Y=this.data)==null?void 0:(G=Y.contents)==null?void 0:G.find(function(O){return _.z(O,O8l)});
return{sortFilterHeaderRenderer:_.z(u,O8l)}}}});
Ep.prototype.dispatchChipBarIsSticky=Ep.prototype.dispatchChipBarIsSticky;Ep.prototype.isPlaylistPageChanged=Ep.prototype.isPlaylistPageChanged;Ep.prototype.updateChipBarWidthAndTop=Ep.prototype.updateChipBarWidthAndTop;Ep.prototype.onResize=Ep.prototype.onResize;Ep.prototype.onPersistentPanelVisibleChanged=Ep.prototype.onPersistentPanelVisibleChanged;Ep.prototype.onGuideIsExpandedChanged=Ep.prototype.onGuideIsExpandedChanged;Ep.prototype.updateDynamicHeight=Ep.prototype.updateDynamicHeight;
Ep.prototype.onSelectedChipContentChanged=Ep.prototype.onSelectedChipContentChanged;Ep.prototype.dataChanged=Ep.prototype.dataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ep.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Ep.prototype,"actionHandlerBehavior",void 0);
_.S([_.x(_.aZ),_.V("design:type",Object)],Ep.prototype,"ironResizableBehavior",void 0);_.S([_.x(),_.V("design:type",Op)],Ep.prototype,"ytScrollableChipCloudBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Ep.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ep.prototype,"data",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],Ep.prototype,"selectedIndex",void 0);_.S([_.R({value:320}),_.V("design:type",Number)],Ep.prototype,"scrollDistance",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ep.prototype,"isDarkTheme",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ep.prototype,"notSticky",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ep.prototype,"transparentBackground",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.V("design:type",String)],Ep.prototype,"componentStyle",void 0);
_.S([_.R({selector:_.CAg}),_.V("design:type",Boolean)],Ep.prototype,"guideIsExpanded",void 0);_.S([_.R({selector:euk}),_.V("design:type",Boolean)],Ep.prototype,"persistentPanelVisible",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ep.prototype,"shouldHide",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ep.prototype,"disableSticky",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ep.prototype,"fluidWidth",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ep.prototype,"isClipList",void 0);_.S([_.R(),_.V("design:type",Object)],Ep.prototype,"defaultChipIndex",void 0);_.S([_.R(),_.V("design:type",Object)],Ep.prototype,"selectedChipContent",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ep.prototype,"hasSelectedChipContent",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ep.prototype,"isPlaylist",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ep.prototype,"playlistVotingAnimationEnabled",void 0);_.S([_.Ox("#chips"),_.V("design:type",Object)],Ep.prototype,"JSC$16564_chipsSelector",void 0);_.S([_.Ox("ytd-sort-filter-header-renderer"),_.V("design:type",HTMLElement)],Ep.prototype,"sortFilterHeaderRendererElement",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Ep.prototype,"updating",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ep.prototype,"dataChanged",null);_.S([_.GO("selectedChipContent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ep.prototype,"onSelectedChipContentChanged",null);_.S([_.GO("hasSelectedChipContent","notSticky"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ep.prototype,"updateDynamicHeight",null);
_.S([_.GO("guideIsExpanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ep.prototype,"onGuideIsExpandedChanged",null);_.S([_.GO("persistentPanelVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ep.prototype,"onPersistentPanelVisibleChanged",null);_.S([_.Yo("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ep.prototype,"onResize",null);
_.S([_.Ex("isChannelPageGrid","disableSticky","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ep.prototype,"updateChipBarWidthAndTop",null);_.S([_.f("componentStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ep.prototype,"isChannelPageGrid",null);_.S([_.f("componentStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ep.prototype,"isHashtagLandingPage",null);
_.S([_.GO("isPlaylistPage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ep.prototype,"isPlaylistPageChanged",null);_.S([_.f("componentStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ep.prototype,"isPlaylistPage",null);_.S([_.f("componentStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ep.prototype,"isDisableDeselectEvent",null);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ep.prototype,"sortFilterHeaderRendererData",null);_.S([_.R({reflectToAttribute:!0,selector:_.wfa}),_.V("design:type",String)],Ep.prototype,"frostedGlassMode",void 0);_.S([_.GO("notSticky"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ep.prototype,"dispatchChipBarIsSticky",null);_.S([_.pD({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Ep);
_.d(Ep,"ytd-feed-filter-chip-bar-renderer",function(){if(k4k!==void 0)return k4k;var Y=document.createElement("template");_.r(Y,'\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 id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return k4k=Y},{mode:1});var A_R;var oXe=_.D(function(Y){var G=Y.data;var u=Y.buttonIndex;var O=Y.selectedIndex;var Q=Y.onSelect;var M=function(){return u()===O()},t=function(){var K,L;
return(L=(K=G().text)==null?void 0:K.content)!=null?L:""};
Y=_.Id();return _.T("yt-toggleable-image-button-view-model",{class:function(){var K={};K=(K.toggleableImageButtonViewModelHost=!0,K[""]=!0,K.toggleableImageButtonViewModelSemiTransparent=O()!==-1&&!M(),K);return _.PE(K)},
tabindex:0,"aria-label":t,"aria-pressed":M,role:"button","on:keydown":Y,"on:click":_.U3(function(){Q(G().onSubmitCommand);return!1})},_.T(_.X,{cond:function(){return G().logo},
then:function(K){return _.T(_.RD,{data:K,className:function(){var L={};L=(L.toggleableImageButtonViewModelImage=!0,L.toggleableImageButtonViewModelCircularRadius=!(!G().backgroundColor||!G().backgroundColorDarkMode),L.toggleableImageButtonViewModelGradientRing=!!(M()&&G().backgroundColor&&G().backgroundColorDarkMode),L);return _.PE(L)},
alt:t,useWidth:!1,style:function(){if(M()&&G().backgroundColor&&G().backgroundColorDarkMode){var L=FE(Number(G().backgroundColorDarkMode),"1");var g=FE(Number(G().backgroundColor),"1");L="background: linear-gradient(180deg,"+L+","+g+") border-box;"}else L="";return L}})}}),_.T(_.jO,{model:{borderRadius:"16px"}}),_.T("p",{class:function(){var K={};
K=(K.toggleableImageButtonViewModelLabel=!0,K.toggleableImageButtonViewModelBoldText=M(),K);return _.PE(K)}},_.T(_.eO,{text:function(){return G().text}})))},"gd");
oXe.idomCompat=!0;var RuT=_.D(function(Y){var G=Y.data;Y=_.E(_.IE({index:-1,command:{}},void 0,"GM3umb"));var u=Y.next().value,O=Y.next().value;return _.T("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.T("div",{class:"nudgeFormViewModelFormOptions"},_.T(_.HE,{data:function(){return G().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(Q,M){return _.T(oXe,{data:Q.data,buttonIndex:M,selectedIndex:function(){return u().index},
onSelect:function(t){O({index:M(),command:t})}})}})),_.T(_.eO,{text:function(){return G().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.T("div",{class:"nudgeFormViewModelSubmit"},_.T(_.HE,{data:function(){return G().submitButton}},{buttonViewModel:function(Q){return _.T(in4,{data:Q.data,
isDisabled:function(){return u().index===-1},
onClick:function(){_.W3(u().command)}})}})))},"hd");
RuT.idomCompat=!0;var in4=_.D(function(Y){var G=_.p2(function(){return Object.assign({},Y.data(),{state:Y.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.T(_.$Y,{data:G,onClick:Y.onClick})},"id");_.hR(RuT,"yt-nudge-form-view-model",{props:{data:_.AC}});var tQ=function(){var Y=_.Z.apply(this,arguments)||this;Y.roundedContainer=!0;Y.buttonUpdate=_.F("web_modern_buttons");Y.isDarkMode=!1;Y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return Y};
_.m(tQ,_.Z);_.H=tQ.prototype;_.H.computeNudgeStyle=function(Y){return Y?"modernized-nudge":""};
_.H.handleDarkModeToggledAction=function(Y){this.isDarkMode=Y};
_.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(Y){return Y?!!Y.applyModernizedStyle&&!!Y.enableHorizontalButtons&&!!Y.secondaryButton:!1};
_.Uk.Object.defineProperties(tQ.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(G=(Y=this.data)==null?void 0:Y.backgroundStyle)!=null?G:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(G=(Y=this.data)==null?void 0:Y.contentsLocation)!=null?G:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null?0:Y.lightIconImage)}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],tQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],tQ.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],tQ.prototype,"actionHandlerBehavior",void 0);
_.S([_.R({reflectToAttribute:!0}),_.f("isHideEnclosingAction"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],tQ.prototype,"isHidden",null);_.S([_.R(),_.V("design:type",Object)],tQ.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],tQ.prototype,"roundedContainer",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],tQ.prototype,"buttonUpdate",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.V("design:type",String)],tQ.prototype,"nudgeStyle",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data.trimStyle"),_.V("design:type",String),_.V("design:paramtypes",[])],tQ.prototype,"trimStyle",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.backgroundStyle"),_.V("design:type",String),_.V("design:paramtypes",[])],tQ.prototype,"backgroundStyle",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data.contentsLocation"),_.V("design:type",String),_.V("design:paramtypes",[])],tQ.prototype,"contentsLocation",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.disableDropShadow"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],tQ.prototype,"noShadow",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.lightIconImage"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],tQ.prototype,"noIcon",null);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.V("design:type",Boolean)],tQ.prototype,"isHorizontalButtons",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Object)],tQ.prototype,"isDarkMode",void 0);_.S([_.pD({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],tQ);
_.d(tQ,"ytd-feed-nudge-renderer",function(){if(A_R!==void 0)return A_R;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return A_R=Y},{mode:2});var wNk;var ZnM;var Ko=function(){var Y=_.Z.apply(this,arguments)||this;Y.collapsed=!1;Y.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return Y};
_.m(Ko,_.Z);Ko.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"}}}};
Ko.prototype.handleRatingSelect=function(){var Y;((Y=this.data)==null?0:Y.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Ko.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ko.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Ko.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Ko.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.rW),_.V("design:type",Object)],Ko.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ko.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ko.prototype,"collapsed",void 0);_.S([_.pD({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Ko);
_.d(Ko,"ytd-slimline-survey-renderer",function(){if(ZnM!==void 0)return ZnM;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return ZnM=Y},{mode:1});var DTk;var ak=function(){return _.Z.apply(this,arguments)||this};
_.m(ak,_.Z);ak.prototype.maybeGetBackgroundColor=function(Y){return this.isDarkMode?Y.section2Color:Y.section3Color};
ak.prototype.colorPaletteChanged=function(){var Y=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;Y&&(Y==null?0:Y.secondaryTitleColor)&&this.maybeGetBackgroundColor(Y)?(this.hostElement.style.backgroundColor=_.k3(this.maybeGetBackgroundColor(Y)),this.hostElement.style.color=_.k3(Y.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
ak.prototype.colorPaletteChanged=ak.prototype.colorPaletteChanged;_.S([_.x(_.me),_.V("design:type",Object)],ak.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ak.prototype,"data",void 0);_.S([_.R({selector:function(Y){return Y.ui.darkModeIsEnabled}}),
_.V("design:type",Boolean)],ak.prototype,"isDarkMode",void 0);_.S([_.R(),_.V("design:type",Object)],ak.prototype,"lightColorPalette",void 0);_.S([_.R(),_.V("design:type",Object)],ak.prototype,"darkColorPalette",void 0);_.S([_.GO("darkColorPalette","lightColorPalette","data","isDarkMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ak.prototype,"colorPaletteChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],ak);
_.d(ak,"ytd-endorsement-header-renderer",function(){if(DTk!==void 0)return DTk;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return DTk=Y},{mode:1});_.hR(_.mb,"yt-decorated-avatar-view-model",{props:{data:_.AC,className:_.AC}});_.T7=new _.Sb("VIEW_TRANSITION_MANAGER_TOKEN");var Lo=function(){var Y=_.Z.apply(this,arguments)||this;Y.fullHeight=_.F("web_rich_grid_media_full_height");Y.showChannelAvatar=!0;Y.hasPlaylistThumbnail=!1;Y.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};Y.registerThumbnailForPageTransition=function(){_.F("web_thumbnail_to_watch_transition")&&_.hu4(_.sH().resolve(_.T7),Y.thumbnail)};
return Y};
_.m(Lo,_.Z);_.H=Lo.prototype;
_.H.configureRendererStamper=function(){return{lazyLoadMenu:EM,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 Y=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.F("kevlar_modern_downloads_page")||!Y};
_.H.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16588_inlinePreviewHoverListener=rw({mediaRenderer:this,lockupElement:this.JSC$16588_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.H.getVideoPreviewOpts=function(){var Y={},G;if((G=this.data)==null?0:G.multipleInlinePlaybackEndpoint)Y=zD1;this.isRadio&&(Y=p_R);return Y};
_.H.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$16588_inlinePreviewHoverListener)==null||VN(Y)};
_.H.getOwner=function(){var Y,G,u;return((Y=this.data)==null?void 0:(G=Y.channelThumbnailSupportedRenderers)==null?void 0:G.channelThumbnailWithLinkRenderer)||_.z((u=this.data)==null?void 0:u.showProviderChannelThumbnail,$aR)};
_.H.updateLockupSize=function(){var Y;((Y=this.getOwner())==null?0:Y.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.H.getFeedbackEndpoint=function(Y){if(_.z(Y,_.WH))return Y;var G,u;Y=(u=(G=_.z(Y,_.Jv))==null?void 0:G.commands)!=null?u:[];G=_.E(Y);for(u=G.next();!u.done;u=G.next())if(u=this.getFeedbackEndpoint(u.value))return u;return null};
_.H.computeNavigationEndpoint=function(Y){return R91(Y==null?void 0:Y.navigationEndpoint)};
_.H.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var Y=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(Y)!==JSON.stringify(this.data)&&this.set("data",Y)}};
_.H.onDataChanged=function(){var Y=this,G=this.getOwner();if(G){this.set("data.owner",G);var u,O,Q,M,t,K=((u=this.data)==null?void 0:(O=u.shortBylineText)==null?void 0:(Q=O.runs)==null?void 0:(M=Q[0])==null?void 0:M.text)||((t=G.name)==null?void 0:t.simpleText);this.set("data.owner.title",K)}var L,g,P,I,k,n;G=((L=this.data)==null?void 0:(g=L.thumbnailRenderer)==null?void 0:g.playlistVideoThumbnailRenderer)||((P=this.data)==null?void 0:(I=P.thumbnailRenderer)==null?void 0:I.playlistCustomThumbnailRenderer)||
((k=this.data)==null?void 0:(n=k.thumbnailRenderer)==null?void 0:n.showCustomThumbnailRenderer);var p;((p=this.data)==null?0:p.thumbnail)||!G||this.set("data.thumbnail",G.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){Y.updateLockupSize()});
var W;if(L=((W=this.data)==null?void 0:W.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(L);var C;((C=this.dismissActionToReplayEntity)==null?0:C.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.H.onHiddenChanged=function(){this.updateLockupSize()};
_.H.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.qZ(this.hostElement,"yt-terminate-video-preview-action");else{var Y;(Y=this.videoTitleLink)==null||Y.focus()}};
_.H.metadataColorChanged=function(){var Y;if(this.metadataColor&&((Y=this.videoTitle)==null?0:Y.style))this.videoTitle.style.color=_.k3(this.metadataColor);else{var G,u;!this.metadataColor&&((G=this.videoTitle)==null?0:(u=G.style)==null?0:u.color)&&(this.videoTitle.style.color="")}};
_.H.onDetailsClick=function(Y){var G=this.computedNavigationEndpoint;G&&(_.hf(_.wG(Y),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.$s(this.hostElement,"yt-navigate",{endpoint:G}))};
_.H.onRendererTap=function(){this.registerThumbnailForPageTransition();var Y,G,u=((Y=this.data)==null?void 0:Y.serviceEndpoint)||this.getFeedbackEndpoint((G=this.data)==null?void 0:G.navigationEndpoint);u&&_.z(u,_.WH)&&this.ytComponentBehavior.resolveCommand(u)};
_.H.onMouseDown=function(Y){var G=Y.target,u=this.computedNavigationEndpoint,O;Y=G.href||((O=_.z(u==null?void 0:u.commandMetadata,_.ug))==null?void 0:O.url);O=G.data||u;Y&&O&&cFu(Y,O)};
_.H.computeVideoTitleText=function(){var Y;if((Y=this.data)==null?0:Y.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.H.computeHasPlaylistThumbnail=function(Y){var G,u,O,Q,M;if((((G=Y.thumbnailRenderer)==null?0:G.playlistVideoThumbnailRenderer)||((u=Y.thumbnailRenderer)==null?0:u.playlistCustomThumbnailRenderer)||((O=Y.thumbnailRenderer)==null?0:O.showCustomThumbnailRenderer)||((Q=Y.thumbnailRenderer)==null?0:Q.playlistVideoThumbnailRenderer)||((M=Y.thumbnailRenderer)==null?0:M.playlistCustomThumbnailRenderer))&&Y.thumbnailOverlays)for(G=0;G<Y.thumbnailOverlays.length;G++)if(u=void 0,(u=Y.thumbnailOverlays[G])==
null?0:u.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Uk.Object.defineProperties(Lo.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.F("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var Y;return(Y=this.data)==null?void 0:Y.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var Y;return(Y=this.data)==null?void 0:Y.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$16588_inlinePreviewHoverListener)==null?0:Cr(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Yij(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?void 0:Y.videoId)||((G=this.data)==null?void 0:G.playlistId)||""}}});
Lo.prototype.onMouseDown=Lo.prototype.onMouseDown;Lo.prototype.metadataColorChanged=Lo.prototype.metadataColorChanged;Lo.prototype.onIsDismissedChanged=Lo.prototype.onIsDismissedChanged;Lo.prototype.onHiddenChanged=Lo.prototype.onHiddenChanged;Lo.prototype.onDataChanged=Lo.prototype.onDataChanged;Lo.prototype.handleReloadDownloadsInfo=Lo.prototype.handleReloadDownloadsInfo;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Lo.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Lo.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],Lo.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],Lo.prototype,"ytdLockupBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Lo.prototype,"ytdReduxBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],Lo.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],Lo.prototype,"entitySelectorType",void 0);_.S([_.R(),_.V("design:type",Boolean)],Lo.prototype,"noEndpoints",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],Lo.prototype,"isRadio",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.kG}),_.V("design:type",Boolean)],Lo.prototype,"miniMode",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Lo.prototype,"fullHeight",void 0);
_.S([_.R(),_.V("design:type",Boolean)],Lo.prototype,"showDarkVideoMetadata",void 0);_.S([_.R(),_.V("design:type",Boolean)],Lo.prototype,"showLightVideoMetadata",void 0);_.S([_.R(),_.V("design:type",Number)],Lo.prototype,"metadataColor",void 0);_.S([_.R(),_.V("design:type",Object)],Lo.prototype,"showChannelAvatar",void 0);_.S([_.R(),_.V("design:type",Boolean)],Lo.prototype,"hidden",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],Lo.prototype,"showYtInteraction",void 0);
_.S([_.R(),_.V("design:type",String)],Lo.prototype,"dismissedContentId",void 0);_.S([_.R({selectorArgs:["dismissedContentId"],selector:ihU}),_.V("design:type",Object)],Lo.prototype,"dismissActionToReplayEntity",void 0);
_.S([_.R({selectorArgs:["entitySelectorType","mediaId"],selector:function(Y,G,u){if(_.F("kevlar_modern_downloads_page")&&u&&G&&G!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(G){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var O=dey(Y,u);if(O){G=_.mZ(Y,u);var Q=rK(Y,u),M=Uej(Y,u);Y=xG(Y,u);var t=MYA(O,G,Q,M);Q=t.shortViewCountText;var K=t.publishedTimeText;t=t.badges;var L=Y>0;M=Ory(O,G,M,Y);O=_.EG(G)||G==="TRANSFER_STATE_FAILED"||G==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!HC(O.policyEntity)?
void 0:oYA(u,Y,O.videoEntity.lengthSeconds);G==="TRANSFER_STATE_PAUSED_BY_USER"&&u&&!_.F("dl_resume_click_killswitch")&&(O={offlineVideoEndpoint:{videoId:u,action:"ACTION_RESUME"}});u={shortViewCountText:Q,publishedTimeText:K,badges:t,isWatched:L,navigationEndpoint:O,thumbnailOverlays:M}}else u=void 0;return u;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(G=b8g(Y,u))if(O=_.WC(Y,u),M=_.So4(Y,u),O!=="TRANSFER_STATE_UNKNOWN"){u=QWA(G,O,M,u,_.zL(Y));break a}u=void 0}return u;default:_.R0(new _.I2("Error: entitySelectorType defined but not matched in selector.",
Y,G))}}}),
_.V("design:type",Object)],Lo.prototype,"entityDrivenState",void 0);_.S([_.R({computed:"computeVideoTitleText(data)"}),_.V("design:type",Object)],Lo.prototype,"videoTitleText",void 0);_.S([_.R({computed:"computeHasPlaylistThumbnail(data)"}),_.V("design:type",Object)],Lo.prototype,"hasPlaylistThumbnail",void 0);_.S([_.R({computed:"computeNavigationEndpoint(data)"}),_.V("design:type",Object)],Lo.prototype,"computedNavigationEndpoint",void 0);
_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Lo.prototype,"typographyBump",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("typographyBump"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Lo.prototype,"typographyBumpV2",null);_.S([_.Ox("#video-title"),_.V("design:type",HTMLElement)],Lo.prototype,"videoTitle",void 0);_.S([_.Ox("#video-title-link"),_.V("design:type",HTMLElement)],Lo.prototype,"videoTitleLink",void 0);
_.S([_.Ox("#thumbnail"),_.V("design:type",HTMLElement)],Lo.prototype,"thumbnail",void 0);_.S([_.Ox("#dismissible"),_.V("design:type",HTMLElement)],Lo.prototype,"JSC$16588_dismissibleMedia",void 0);_.S([_.f("data.menu"),_.V("design:type",Object),_.V("design:paramtypes",[])],Lo.prototype,"lazyLoadMenu",null);_.S([_.f("data.menu"),_.V("design:type",Object),_.V("design:paramtypes",[])],Lo.prototype,"immediateLoadMenu",null);
_.S([_.Ex("entityDrivenState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lo.prototype,"handleReloadDownloadsInfo",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lo.prototype,"onDataChanged",null);_.S([_.Ex("hidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lo.prototype,"onHiddenChanged",null);
_.S([_.GO("isDismissed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lo.prototype,"onIsDismissedChanged",null);_.S([_.GO("metadataColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lo.prototype,"metadataColorChanged",null);_.S([_.Yo("mousedown"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Lo.prototype,"onMouseDown",null);
_.S([_.f("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Lo.prototype,"isHovered",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Lo.prototype,"useAvatar",null);_.S([_.f("data","entitySelectorType"),_.V("design:type",String),_.V("design:paramtypes",[])],Lo.prototype,"mediaId",null);_.S([_.pD({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Lo);
var dT_=_.$o()(Lo,"ytd-rich-grid-media",function(){if(wNk!==void 0)return wNk;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return wNk=Y},{mode:2});var bnk;var gO=function(){var Y=_.Z.apply(this,arguments)||this;Y.removeMaxWidth=!0;Y.insetMetadata=!1;return Y};
_.m(gO,_.Z);_.H=gO.prototype;_.H.configureRendererStamper=function(){return{innerMenu:EM,outerMenu:Object.assign({},EM,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.H.onDataChanged=function(){var Y,G=((Y=this.data)==null?void 0:Y.trackingParams)||"";G&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(G));var u;((u=this.dismissActionToReplayEntity)==null?0:u.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$16593_inlinePreviewHoverListener=rw({mediaRenderer:this,lockupElement:this.JSC$16593_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:ms1})};
_.H.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$16593_inlinePreviewHoverListener)==null||VN(Y)};
_.H.onRendererTap=function(){var Y,G,u=(Y=this.data)==null?void 0:(G=Y.serviceEndpoints)==null?void 0:G[0];_.z(u,_.WH)&&this.componentBehavior.resolveCommand(u)};
_.H.onDetailsClick=function(Y){var G,u=(G=this.data)==null?void 0:G.navigationEndpoint;u&&(_.hf(_.wG(Y),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(u))};
_.H.onShow=function(){var Y=this.data;Y.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(Y.onFirstVisibleCommand),delete Y.onFirstVisibleCommand)};
_.Uk.Object.defineProperties(gO.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var Y;return this.insetMetadata?void 0:(Y=this.data)==null?void 0:Y.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var Y;return this.insetMetadata?(Y=this.data)==null?void 0:Y.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var Y=this.data;if(Y!=null&&Y.badge&&(Y=_.z(Y.badge,lYe))){var G,u,O;return[{metadataBadgeRenderer:{label:((G=Y.label)==null?void 0:(u=G.runs)==null?void 0:u[0].text)||((O=Y.label)==null?void 0:O.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var Y=this.data;return Object.assign({},Y.headline,{accessibility:Y.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return this.isSlimShort?(Y=this.computedTitle)==null?void 0:(G=Y.accessibility)==null?void 0:(u=G.accessibilityData)==null?void 0:u.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.F("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$16593_inlinePreviewHoverListener)==null?0:Cr(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
gO.prototype.onDataChanged=gO.prototype.onDataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],gO.prototype,"componentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],gO.prototype,"ytdLockupBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.rW),_.V("design:type",Object)],gO.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],gO.prototype,"ytdReduxBehavior",void 0);_.S([_.Ox("ytd-thumbnail"),_.V("design:type",HTMLElement)],gO.prototype,"thumbnail",void 0);_.S([_.Ox("#dismissible"),_.V("design:type",HTMLElement)],gO.prototype,"JSC$16593_dismissibleMedia",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],gO.prototype,"removeMaxWidth",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],gO.prototype,"insetMetadata",void 0);_.S([_.R(),_.V("design:type",String)],gO.prototype,"dismissedContentId",void 0);_.S([_.R({selectorArgs:["dismissedContentId"],selector:ihU}),_.V("design:type",Object)],gO.prototype,"dismissActionToReplayEntity",void 0);_.S([_.f("insetMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],gO.prototype,"thumbnailObjectFit",null);
_.S([_.f("data","insetMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],gO.prototype,"innerMenu",null);_.S([_.f("data","insetMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],gO.prototype,"outerMenu",null);_.S([_.R(),_.V("design:type",Object)],gO.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.kG}),_.V("design:type",Boolean)],gO.prototype,"miniMode",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gO.prototype,"onDataChanged",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],gO.prototype,"shortsBadges",null);_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],gO.prototype,"isShort",null);
_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],gO.prototype,"isSlimShort",null);_.S([_.f("data","isShort"),_.V("design:type",Object),_.V("design:paramtypes",[])],gO.prototype,"computedTitle",null);_.S([_.f("isSlimShort","computedTitle"),_.V("design:type",Object),_.V("design:paramtypes",[])],gO.prototype,"computedAccessibilityLabel",null);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],gO.prototype,"shouldForce2By3",null);_.S([_.f("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],gO.prototype,"isHovered",null);_.S([_.pD({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],gO);
_.d(gO,"ytd-rich-grid-slim-media",function(){if(bnk!==void 0)return bnk;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return bnk=Y},{mode:2});var SZ4;var NiE;var Xr=function(){return _.Z.apply(this,arguments)||this};
_.m(Xr,_.Z);Xr.prototype.computeIcon=function(Y){return Y&&Y.iconType?"yt-sys-icons:"+Y.iconType.toLowerCase():""};
Xr.prototype.onMouseEnter=function(){this.isHovered=!0};
Xr.prototype.onMouseLeave=function(){this.isHovered=!1};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Xr.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Xr.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Xr.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],Xr.prototype,"isHovered",void 0);
_.S([_.pD({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Xr);
_.d(Xr,"ytd-expand-on-hover-card-renderer",function(){if(NiE!==void 0)return NiE;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return NiE=Y},{mode:1});var jCe,VW_=function(){if(jCe!==void 0)return jCe;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return jCe=Y};_.Px("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var PW=function(){var Y=_.Z.apply(this,arguments)||this;Y.compactStyle=!1;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.m(PW,_.Z);_.H=PW.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(Y){return!(Y&&Y.subscriberCountText&&Y.videoCountText)||this.compactStyle};
_.H.hasDualButtons=function(Y){return Y&&Y.purchaseButton&&Y.subscribeButton};
_.H.backgroundColorChanged=function(){if(this.data!==void 0){var Y=this.data.backgroundColor;this.isDarkTheme&&(Y=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=Y!=null?_.k3(Y):"transparent"}};
_.H.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.H.onTap=function(Y){var G,u,O=((G=this.data)==null?void 0:G.navigationEndpoint)||((u=this.data)==null?void 0:u.serviceEndpoint);_.z(O,_.Dj)&&(O&&_.sH().resolve(_.rH).resolveCommand(O,{form:{element:this.hostElement}}),Y.preventDefault())};
_.H.computeChannelEndpoint=function(Y){return _.z(Y,_.Dj)?null:Y};
_.H.computeHrefEndpoint=function(Y){return _.z(Y,_.Dj)?null:this.componentBehavior.computeHref_(Y)};
_.H.computeChannelRendererStyle=function(Y){return Y};
_.H.computeIconSize=function(Y){return Y?108:136};
_.Uk.Object.defineProperties(PW,{template:{configurable:!0,enumerable:!0,get:function(){return VW_()}}});
PW.prototype.backgroundColorChanged=PW.prototype.backgroundColorChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.SZ),_.V("design:type",Object)],PW.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],PW.prototype,"componentBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],PW.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],PW.prototype,"isDarkTheme",void 0);_.S([_.R({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.V("design:type",String)],PW.prototype,"channelRendererStyle",void 0);_.S([_.R({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],PW.prototype,"dualButtons",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],PW.prototype,"useBiggerThumbs",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.Yg("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],PW.prototype,"biggerThumbStyle",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],PW.prototype,"compactStyle",void 0);_.S([_.GO("data","isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],PW.prototype,"backgroundColorChanged",null);_.S([_.pD({is:"ytd-channel-renderer",disableElementRegistration:!0})],PW);_.d(PW,"ytd-channel-renderer",function(){return VW_()},{mode:1});var lWT;var BiR;_.Px("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Ik=function(){var Y=_.Z.apply(this,arguments)||this;Y.displayItemCount=2;Y.hasPlaylistThumbnail=!1;Y.stackThumbnailSize="large";return Y};
_.m(Ik,_.Z);_.H=Ik.prototype;_.H.attached=function(){this.updateInlinePreviewHoverListeners()};
_.H.detached=function(){this.clearInlinePreviewHoverListeners()};
_.H.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.H.computeFirstVideos=function(Y,G){return Y&&G?Y.slice(0,G):[]};
_.H.computeThumbnailWidth=function(Y,G){return Y?G==="BIG"?500:G==="MASSIVE"?600:G==="MEDIUM"?450:420:360};
_.H.computeThumbnailHeight=function(Y,G){return Y?G==="BIG"?280:G==="MASSIVE"?337:234:202};
_.H.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$16606_inlinePreviewHoverListener)==null||VN(Y)};
_.H.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16606_inlinePreviewHoverListener=rw({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:zD1,thumbnailElement:this.thumbnail})};
_.H.computeHasPlaylistThumbnail=function(Y){var G,u;if((((G=Y.thumbnailRenderer)==null?0:G.playlistVideoThumbnailRenderer)||((u=Y.thumbnailRenderer)==null?0:u.playlistCustomThumbnailRenderer))&&Y.thumbnailOverlays)for(G=0;G<Y.thumbnailOverlays.length;G++)if(u=void 0,(u=Y.thumbnailOverlays[G])==null?0:u.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Uk.Object.defineProperties(Ik.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$16606_inlinePreviewHoverListener)==null?0:Cr(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ik.prototype.dataChanged=Ik.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],Ik.prototype,"ytdLockupBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ik.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Ik.prototype,"displayItemCount",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],Ik.prototype,"useBiggerThumbs",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.Yg("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],Ik.prototype,"biggerThumbsStyle",void 0);_.S([_.R({computed:"computeHasPlaylistThumbnail(data)"}),_.V("design:type",Object)],Ik.prototype,"hasPlaylistThumbnail",void 0);_.S([_.R(),_.V("design:type",String)],Ik.prototype,"stackThumbnailSize",void 0);_.S([_.Ox("ytd-thumbnail"),_.V("design:type",HTMLElement)],Ik.prototype,"thumbnail",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ik.prototype,"dataChanged",null);
_.S([_.f("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ik.prototype,"isHovered",null);_.S([_.pD({is:"ytd-radio-renderer",disableElementRegistration:!0})],Ik);
_.d(Ik,"ytd-radio-renderer",function(){if(BiR!==void 0)return BiR;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return BiR=Y},{mode:2});var $T2;_.Px("itemSectionRenderer","showRenderer","ytd-show-renderer");var kz=function(){return _.Z.apply(this,arguments)||this};
_.m(kz,_.Z);kz.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
kz.prototype.computeThumbnailWidth=function(Y){return Y?360:246};
kz.prototype.computeUseProminentThumbs=function(Y){return Y};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],kz.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],kz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],kz.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],kz.prototype,"isSearch",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.V("design:type",Boolean)],kz.prototype,"useProminentThumbs",void 0);_.S([_.pD({is:"ytd-show-renderer",disableElementRegistration:!0})],kz);
_.d(kz,"ytd-show-renderer",function(){if($T2!==void 0)return $T2;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return $T2=Y},{mode:1});_.Px("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var no=function(){var Y=_.Z.apply(this,arguments)||this;Y.isRichGrid=!1;return Y};
_.m(no,_.Z);no.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"}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],no.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],no.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],no.prototype,"isRichGrid",void 0);_.S([_.pD({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],no);
_.d(no,"ytd-feed-entry-renderer",function(){if(lWT!==void 0)return lWT;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return lWT=Y},{mode:1});var qZT;var Fr=function(){return _.Z.apply(this,arguments)||this};
_.m(Fr,_.Z);Fr.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.S([_.x(_.me),_.V("design:type",Object)],Fr.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Fr.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Fr.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.nU,value:3}),_.V("design:type",Number)],Fr.prototype,"itemsPerRow",void 0);
_.S([_.pD({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Fr);
_.d(Fr,"ytd-link-card-renderer",function(){if(qZT!==void 0)return qZT;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return qZT=Y},{mode:1});var sCe;var po=function(){return _.Z.apply(this,arguments)||this};
_.m(po,_.Z);_.H=po.prototype;_.H.configureRendererStamper=function(){return{"data.menu":EM,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.H.onRendererTap=function(Y){if(!this.ytdDismissibleItemBehavior.isDismissed){var G,u=(G=this.data)==null?void 0:G.navigationEndpoint;u&&!_.hf(_.wG(Y),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(u)?_.hf(_.wG(Y),this.hostElement,["A"])||_.$s(this.hostElement,"yt-navigate",{endpoint:u}):this.ytComponentBehavior.resolveCommand(u,{}))}};
_.H.maybeComputeHref=function(Y){return this.ytComponentBehavior.computeHref_(Y,!0)};
_.H.getNavigationCommand=function(Y){return this.isNavigationCommand(Y)?Y:null};
_.H.isNavigationCommand=function(Y){return Y?_.z(Y,_.Y3)||_.z(Y,_.ic)||_.z(Y,_.SK)?!0:!1:!1};
po.prototype.onRendererTap=po.prototype.onRendererTap;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],po.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],po.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],po.prototype,"ytComponentBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],po.prototype,"data",void 0);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],po.prototype,"onRendererTap",null);_.S([_.pD({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],po);
_.d(po,"ytd-lumiere-promo-item-image-renderer",function(){if(sCe!==void 0)return sCe;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return sCe=Y},{mode:1});var c_1;var z7=function(){return _.Z.apply(this,arguments)||this};
_.m(z7,_.Z);z7.prototype.computeLandscapeThumbnail=function(){var Y;return((Y=this.data)==null?void 0:Y.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],z7.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],z7.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],z7.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.kG}),_.V("design:type",Boolean)],z7.prototype,"miniMode",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.nU}),_.V("design:type",Number)],z7.prototype,"itemsPerRow",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.V("design:type",Boolean)],z7.prototype,"landscapeThumbnail",void 0);_.S([_.pD({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],z7);
_.d(z7,"ytd-lumiere-shelf-details-renderer",function(){if(c_1!==void 0)return c_1;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return c_1=Y},{mode:2});var UT4;var m8=function(){return _.Z.apply(this,arguments)||this};
_.m(m8,_.Z);m8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],m8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],m8.prototype,"data",void 0);_.S([_.pD({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],m8);
_.d(m8,"ytd-primetime-promo-details-renderer",function(){if(UT4!==void 0)return UT4;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return UT4=Y},{mode:1});var vXI;var WW=function(){return _.Z.apply(this,arguments)||this};
_.m(WW,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],WW.prototype,"data",void 0);_.S([_.pD({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],WW);
_.d(WW,"ytd-panel-show-style-metadata-renderer",function(){if(vXI!==void 0)return vXI;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return vXI=Y},{mode:1});var J_k;var rO=function(){return _.Z.apply(this,arguments)||this};
_.m(rO,_.Z);_.H=rO.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(Y){if(Y)return Y.smallFormFactorBackgroundThumbnail||Y.largeFormFactorBackgroundThumbnail};
_.H.maybeComputeHref=function(Y){return this.ytComponentBehavior.computeHref_(Y,!0)};
_.H.isNavigationCommand=function(Y){return Y?_.z(Y,_.Y3)||_.z(Y,_.ic)||_.z(Y,_.SK)?!0:!1:!1};
_.H.getNavigationCommand=function(Y){return this.isNavigationCommand(Y)?Y:null};
rO.prototype.onPanelTap=rO.prototype.onPanelTap;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],rO.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],rO.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],rO.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],rO.prototype,"roundedContainer",void 0);_.S([_.R({reflectToAttribute:!0,value:_.F("web_modern_buttons")}),_.V("design:type",Boolean)],rO.prototype,"modernButtons",void 0);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rO.prototype,"onPanelTap",null);_.S([_.pD({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],rO);
_.d(rO,"ytd-primetime-promo-panel-renderer",function(){if(J_k!==void 0)return J_k;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return J_k=Y},{mode:1});_.hR(_.D(function(Y){Y=_.bM(Y,{data:{},useFullWidth:!1});var G=Y.data,u=Y.useFullWidth;Y={};return _.T("teaser-card-view-model",{class:_.s3("ytTeaserCardViewModelHost",(Y.ytTeaserCardViewModelUseFullWidth=function(){return u()},Y))},_.T(_.X,{cond:function(){return G().onTap},
then:function(O){return _.T(_.Ny,{className:"ytTeaserCardViewModelLink",command:O},_.T("div",{class:"ytTeaserCardViewModelImageContainer"},_.T(_.X,{cond:function(){return G().image},
then:function(Q){return _.T(_.RD,{data:Q,className:"ytTeaserCardViewModelImage",alt:""})}})),_.T("p",{class:"ytTeaserCardViewModelCaption"},function(){return G().caption}))}}))},"jd"),"teaser-card-view-model",{props:{data:_.AC,
useFullWidth:_.AC}});_.hR(_.D(function(Y){var G=Y.data;var u=function(){var O;return _.e0((O=G())==null?void 0:O.iconThemedImage)};
return _.T("yt-edu-card-view-model",null,_.T(_.JZ,{contentId:function(){return G().nudgeId}},function(){return _.T("div",{class:_.s3("ytEduCardViewModelHost",function(){return G().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.T("div",{class:"ytEduCardViewModelTopCornerButton"},_.T(_.HE,{data:function(){return G().dismissButton}},{buttonViewModel:_.$Y})),_.T("div",{class:"ytEduCardViewModelContentWrapper"},_.T("div",{class:"ytEduCardViewModelHeaderImage"},_.T(_.X,
{cond:u,
then:function(O){return _.T(_.RD,{data:O,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.T("div",{class:"ytEduCardViewModelTextContainer"},_.T("div",{class:"ytEduCardViewModelTitle"},_.T(_.eO,{text:function(){return G().title}})),_.T("div",{class:"ytEduCardViewModelSubtitle"},_.T(_.eO,{text:function(){return G().subtitle}}))),_.T("div",{class:"ytEduCardViewModelContent"},_.T(_.HE,{data:function(){return G().form}},{nudgeFormViewModel:RuT}))),_.T("div",{class:_.s3("ytEduCardViewModelButtonWrapper",
function(){return G().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.T(_.HE,{data:function(){return G().primaryButton}},{buttonViewModel:function(O){return _.T("div",{class:"ytEduCardViewModelPrimaryButton"},_.T(_.$Y,{data:O.data}))}}),_.T(_.HE,{data:function(){return G().secondaryButton}},{buttonViewModel:function(O){return _.T("div",{class:"ytEduCardViewModelSecondaryButton"},_.T(_.$Y,{data:O.data}))}})))}))},"kd"),"yt-edu-card-view-model",{props:{data:_.AC}});var Y8k=new _.Sb("RICH_GRID_VIDEO_RENDERER_TOKEN");_.hR(_.D(function(Y){var G=Y.data;var u=Y.showYtInteractionInContent;var O=function(){return!!G().selectableFeedback};
Y=_.E(_.IE(!1,void 0,"qxtgaf"));var Q=Y.next().value,M=Y.next().value;_.ii(function(){var k=_.z(G().primaryButton,_.eD);(k==null?0:k.isToggled)&&M(k.isToggled)});
Y=_.U3(function(k){if(!O())return!1;if(Q()){var n;var p=(n=G().selectableFeedback)==null?void 0:n.onDeselect}else{var W;p=(W=G().selectableFeedback)==null?void 0:W.onSelect}p&&_.W3(p,{form:{element:k.target}});M(!Q());if(k=_.z(G().primaryButton,_.eD))k.isToggled=Q();return!1});
var t=function(){if(!O()){var k,n=(k=G().loggingDirectives)==null?void 0:k.trackingParams;n&&_.YR(_.sH().resolve(_.KZ),n)}},K=_.KMI(),L=function(){var k;
return O()?(k=G().selectableFeedback)==null?void 0:k.a11yLabel:void 0},g=function(){return O()?{toggled:Q()}:{}},P=_.sH().resolve(_.q3(Y8k)),I={};
return _.T("yt-feedback-item-renderer",{class:_.s3("ytFeedbackItemRendererHost",(I.ytFeedbackItemRendererSelectableFeedback=O,I)),"on:click":Y,"on:keydown":K,title:L,"aria-label":L,"aria-pressed":function(){return O()?Q():void 0},
tabindex:function(){return O()?0:void 0},
role:function(){return O()?"button":void 0}},_.T("div",{class:"ytFeedbackItemRendererContentContainer"},_.T(_.HE,{data:function(){return G().content}},{videoRenderer:function(k){return _.T(P,{data:k.data,
showYtInteraction:u})},
lockupViewModel:function(k){return _.T(_.Ou,{data:k.data,containerType:2})}})),_.T("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.T(_.HE,{data:function(){return G().primaryButton}},{toggleButtonViewModel:function(k){return _.T(_.Tr,{data:k.data,
buttonShapeOverrides:g,disableExplicitClickLogging:!0,onToggle:t})}})))},"ld"),"yt-feedback-item-renderer",{props:{data:_.AC,
showYtInteractionInContent:_.AC}});var xz=function(){var Y=_.Z.apply(this,arguments)||this;Y.isShortsGrid=!1;Y.isCompactGrid=!1;Y.isShortsPanelGrid=!1;Y.renderedFromRichGrid=!1;Y.isInFirstColumn=!1;Y.noGutterMargins=!1;Y.noBottomMargin=!1;Y.halfBottomMargin=!1;Y.isInlineGroupItem=!1;Y.insetMetadata=!1;Y.noBottomMarginInAds=!0;Y.force16By9ThumbnailAspectRatio=!1;Y.useCompactList=!1;Y.containerType=2;Y.thumbnailTargetWidth=9999;Y.isResponsiveGrid=!1;Y.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};Y.hoverListener=
Y.hover.bind(Y);Y.leaveListener=Y.leave.bind(Y);Y.highlighted=!1;Y.JSC$16642_unsubscribeFromInlinePreviewIsActive=function(){};
return Y};
_.m(xz,_.Z);_.H=xz.prototype;_.H.computeContainerType=function(){return this.useCompactList?3:2};
_.H.itemWidthChanged=function(){var Y;this.thumbnailTargetWidth=(Y=this.itemWidth)!=null?Y:9999};
_.H.updateIsInFirstColumn=function(){var Y;this.isInFirstColumn=((Y=this.data)==null?void 0:Y.colIndex)===0};
_.H.observerContainerType=function(){if(this.lockup){var Y=this.lockup;Y.containerType=this.containerType;Y.sizing=this.sizing;Y.typographyBump=this.typographyBump;Y.itemWidth=this.itemWidth}this.richGridMedia&&_.F("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.F("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",eduCardViewModel:"yt-edu-card-view-model",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(Y){Y=Y.relatedTarget;var G=document.querySelector("ytd-video-preview");Y&&G&&_.Bm(G).contains(Y)||this.removeAndCleanupHighlight()};
_.H.hover=function(){var Y;!this.highlighted&&(Y=this.data)!=null&&Y.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(Y=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:Y,boxShadow:"0 0 0 10px "+Y})),this.data.onFocusEffect.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 Y=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16642_unsubscribeFromInlinePreviewIsActive=_.Eh(_.Zs(),_.oKj,function(G){Y.highlighted&&!G&&Y.removeAndCleanupHighlight()})};
_.H.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16642_unsubscribeFromInlinePreviewIsActive()};
_.H.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.H.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.H.getBackgroundColor=function(){var Y,G,u=(Y=this.data)==null?void 0:(G=Y.onFocusEffect)==null?void 0:G.onFocusColor;if(u){if(document.documentElement.hasAttribute("dark")&&(u==null?0:u.darkTheme))return pB(u==null?void 0:u.darkTheme);if(u==null?0:u.lightTheme)return pB(u==null?void 0:u.lightTheme)}};
_.H.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var Y=_.FA(),G,u,O;Y&&((G=this.data)==null?0:G.trackingParams)&&((u=this.data)==null?void 0:u.colIndex)!=null&&((O=this.data)==null?void 0:O.rowIndex)!=null&&_.Zy(Y,_.Kd(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.H.isSlimMediaRenderer=function(Y){return!!_.z(Y==null?void 0:Y.content,_.kk4)||!!_.z(Y==null?void 0:Y.content,IAe)||!!_.z(Y==null?void 0:Y.content,_.WJ)||!!_.z(Y==null?void 0:Y.content,NMR)};
_.H.isPostRenderer=function(){var Y,G;return!!_.z((Y=this.data)==null?void 0:Y.content,A7_)||!!_.z((G=this.data)==null?void 0:G.content,otT)};
_.H.computeIsGameCardShelf=function(){var Y;return!!_.z((Y=this.data)==null?void 0:Y.content,qE_)};
_.H.computeIsMiniGameCardShelf=function(){var Y,G;return!!_.z((Y=this.data)==null?void 0:Y.content,tDl)||!!_.z((G=this.data)==null?void 0:G.content,KP4)};
_.H.computeIsTeaserCard=function(){var Y;return!!_.z((Y=this.data)==null?void 0:Y.content,KP4)};
_.H.computeIsSelectableFeedbackItem=function(){var Y,G;return!((G=_.z((Y=this.data)==null?void 0:Y.content,TuV))==null||!G.selectableFeedback)};
_.H.computeContainsLumierePosters=function(){var Y,G;return((G=_.z((Y=this.data)==null?void 0:Y.content,N12))==null?void 0:G.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.H.computeIsExpandOnHoverCardShelf=function(){var Y;return!!_.z((Y=this.data)==null?void 0:Y.content,Szl)};
_.H.computeIsLinkCardShelf=function(){var Y;return!!_.z((Y=this.data)==null?void 0:Y.content,YM_)};
_.H.computeIsReelItemStyleAvatarCircle=function(Y){var G;return((G=_.z(Y==null?void 0:Y.content,_.WJ))==null?void 0:G.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.H.computeIsLinkCardFullWidth=function(Y,G){var u;return((u=_.z(Y==null?void 0:Y.content,YM_))==null?void 0:u.useFullWidth)||G<=2};
_.Uk.Object.defineProperties(xz.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var Y;return _.F("web_hover_effect_refactor")&&_.z((Y=this.data)==null?void 0:Y.content,uvl)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.F("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var Y;if(_.F("web_hover_effect_refactor")&&_.z((Y=this.data)==null?void 0:Y.content,uvl))return!1;var G;return!((G=this.data)==null||!G.onFocusEffect)||_.F("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.F("web_hover_effect_refactor")?(Y=this.data)==null?void 0:Y.onFocusEffect:void 0,showHighlightEffect:((G=this.data)==null?void 0:(u=G.deltaEffect)==null?void 0:u.deltaEffectType)==="RICH_ITEM_DELTA_EFFECT_TYPE_THUMBNAIL_HIGHLIGHT"}}}});
xz.prototype.richGridHoverHighlightChanged=xz.prototype.richGridHoverHighlightChanged;xz.prototype.observerContainerType=xz.prototype.observerContainerType;xz.prototype.updateIsInFirstColumn=xz.prototype.updateIsInFirstColumn;xz.prototype.itemWidthChanged=xz.prototype.itemWidthChanged;_.S([_.x(_.me),_.V("design:type",Object)],xz.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],xz.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],xz.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],xz.prototype,"ytdLockupBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],xz.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.V("design:type",Boolean)],xz.prototype,"isPost",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.V("design:type",Boolean)],xz.prototype,"containsLumierePosters",void 0);_.S([_.R({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.V("design:type",Boolean)],xz.prototype,"isSlimMedia",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.V("design:type",Boolean)],xz.prototype,"isGameCardShelf",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.V("design:type",Boolean)],xz.prototype,"isMiniGameCardShelf",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.V("design:type",Boolean)],xz.prototype,"isTeaserCard",void 0);_.S([_.R({computed:"computeIsSelectableFeedbackItem(data)"}),_.V("design:type",Boolean)],xz.prototype,"isSelectableFeedbackItem",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xz.prototype,"isShortsGrid",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],xz.prototype,"isSlimGrid",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xz.prototype,"isCompactGrid",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xz.prototype,"isShortsPanelGrid",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.V("design:type",Boolean)],xz.prototype,"isExpandOnHoverCardShelf",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.V("design:type",Boolean)],xz.prototype,"isLinkCardShelf",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.nU,value:3}),_.V("design:type",Number)],xz.prototype,"itemsPerRow",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xz.prototype,"renderedFromRichGrid",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xz.prototype,"isInFirstColumn",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xz.prototype,"noGutterMargins",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xz.prototype,"noBottomMargin",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xz.prototype,"halfBottomMargin",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xz.prototype,"isInlineGroupItem",void 0);_.S([_.R(),_.V("design:type",Object)],xz.prototype,"insetMetadata",void 0);_.S([_.R(),_.V("design:type",Object)],xz.prototype,"noBottomMarginInAds",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],xz.prototype,"isShelfItem",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.V("design:type",Boolean)],xz.prototype,"isReelItemStyleAvatarCircle",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.V("design:type",Boolean)],xz.prototype,"isLinkCardFullWidth",void 0);_.S([_.R(),_.V("design:type",Object)],xz.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xz.prototype,"useCompactList",void 0);_.S([_.R(),_.V("design:type",String)],xz.prototype,"sizing",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],xz.prototype,"typographyBump",void 0);_.S([_.R(),_.V("design:type",Number)],xz.prototype,"itemWidth",void 0);_.S([_.R(),_.V("design:type",Boolean)],xz.prototype,"isHomeShelf",void 0);_.S([_.R(),_.V("design:type",Boolean)],xz.prototype,"isHomeGrid",void 0);
_.S([_.Ox("yt-lockup-view-model"),_.V("design:type",HTMLElement)],xz.prototype,"lockup",void 0);_.S([_.Ox("ytd-rich-grid-media"),_.V("design:type",HTMLElement)],xz.prototype,"richGridMedia",void 0);_.S([_.Ox("ytd-ad-slot-renderer"),_.V("design:type",HTMLElement)],xz.prototype,"adSlotRenderer",void 0);_.S([_.R({computed:"computeContainerType(useCompactList)"}),_.V("design:type",Object)],xz.prototype,"containerType",void 0);_.S([_.R(),_.V("design:type",Object)],xz.prototype,"thumbnailTargetWidth",void 0);
_.S([_.f("showYtInteractionOnRichItem"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],xz.prototype,"showYtInteractionOnRichGridMedia",null);_.S([_.f("isSelectableFeedbackItem","richGridHoverHighlight"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],xz.prototype,"showYtInteractionOnRichItem",null);_.S([_.f("typographyBump","isHomeGrid"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],xz.prototype,"richTypographyBump",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data","isShortsGrid","isCompactGrid"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],xz.prototype,"richGridHoverHighlight",null);_.S([_.f("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.V("design:type",Number),_.V("design:paramtypes",[])],xz.prototype,"shortsLockupViewModelAspectRatio",null);_.S([_.f("isInlineGroupItem"),_.V("design:type",Number),_.V("design:paramtypes",[])],xz.prototype,"shortsLockupViewModelScrimStyle",null);
_.S([_.GO("itemWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xz.prototype,"itemWidthChanged",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xz.prototype,"updateIsInFirstColumn",null);_.S([_.GO("containerType","sizing","typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xz.prototype,"observerContainerType",null);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xz.prototype,"isResponsiveGrid",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],xz.prototype,"lockupExperiments",null);_.S([_.GO("richGridHoverHighlight"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xz.prototype,"richGridHoverHighlightChanged",null);_.S([_.pD({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],xz);
_.GD2=_.$o()(xz,"ytd-rich-item-renderer",function(){if(SZ4===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);SZ4=Y}Y=SZ4;return Y},{mode:2});var p_A={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var RDj=_.i8(_.Q6("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var msu={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},rJg={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},xst={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var uZ2;var fo=function(){var Y=_.Z.apply(this,arguments)||this;Y.useResponsiveGrid=!1;Y.hidden=!1;Y.isShowMoreHidden=!1;Y.isShowLessHidden=!0;Y.hasExpansionButton=!1;Y.isInnerShelf=!1;Y.allVideosCount=0;Y.allPlaylistCount=0;Y.haveSmartDownloadsCompleted=!1;Y.restrictContentsOverflow=!1;Y.firstShownIndex=0;Y.horizontalOffset=0;Y.atEnd=!0;Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
Y.disableServiceRequestPropagation=function(G){G.stopPropagation()};
Y.nextClick=function(){var G;(G=Y.data)!=null&&G.contents&&(Y.firstShownIndex+=Y.currentElementsPerRow,Y.updateHorizontalOffset(),Y.updateHorizontalItemVisibility())};
Y.previousClick=function(){var G;(G=Y.data)!=null&&G.contents&&(Y.firstShownIndex-=Y.currentElementsPerRow,Y.updateHorizontalOffset(),Y.updateHorizontalItemVisibility())};
return Y};
_.m(fo,_.Z);_.H=fo.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]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.DE("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.H.attached=function(){this.requestElementsPerRow();_.F("disable_service_request_rich_shelf_killswitch")||this.contents.addEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.H.detached=function(){_.F("disable_service_request_rich_shelf_killswitch")||this.contents.removeEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.H.refreshGridLayoutNew=function(){var Y;if((Y=this.data)!=null&&Y.contents&&this.containerWidth){var G;((G=this.data.responsiveContainerConfiguration)==null?0:G.responsiveSize)?(Y=_.ZYU(this.data.responsiveContainerConfiguration,this.containerWidth,2),Y=_.CK(Object.assign({},Y,{standardUnitMinWidth:this.standardUnitMinWidth}))):Y=_.CK({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=Y.typographyBump;if(this.elementsPerRow!==
Y.numItems||this.gutter!==Y.gutter)this.elementsPerRow=Y.numItems,this.gutter=Y.gutter,this.itemWidth=Y.itemWidth,_.cm(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":Y.gutter+"px"})}};
_.H.computeSizing=function(){if(!this.isLumiere){var Y=_.QQY(this.data);return Y?Y:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.H.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.H.computeButton=function(Y){var G=_.z(Y,_.ru);Y=Object.assign({},_.z(Y,_.ru));return G?(Y.text||(Y.text={simpleText:Y.tooltip}),Y.style="STYLE_MONO_OUTLINE",Y.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",Y):G};
_.H.onRowIndexChange=function(){var Y=_.FA(),G,u;((G=this.data)==null?0:G.trackingParams)&&((u=this.data)==null?void 0:u.rowIndex)!=null&&Y&&_.Zy(Y,_.Kd(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.H.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var Y,G=((Y=this.getRichItemRenderers()[0])==null?void 0:Y.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*G;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.H.requestElementsPerRow=function(){_.$s(this.hostElement,"yt-request-elements-per-row")};
_.H.onUpdateElementsPerRowAction=function(Y,G,u,O,Q,M){if(this.containerWidth!==M&&(this.containerWidth=M,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&Y&&G&&u&&O&&Q&&(this.elementsPerRow!==Y||this.postsPerRow!==G||this.slimItemsPerRow!==u||this.gameCardsPerRow!==O||this.miniGameCardsPerRow!==Q)&&(this.elementsPerRow=Y,this.postsPerRow=G,this.slimItemsPerRow=u,this.gameCardsPerRow=O,this.miniGameCardsPerRow=Q,this.updateItemVisibility())};
_.H.isExpandedChanged=function(){var Y=this.getRichItemRenderers(),G=this.isExpanded;Y.forEach(function(u){u.halfBottomMargin=G})};
_.H.isCollapsedChanged=function(){var Y=this.getRichItemRenderers(),G=this.isCollapsed;Y.forEach(function(u){u.noBottomMargin=G})};
_.H.getRichItemRenderers=function(){return _.l0(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.H.updateItemVisibility=function(){var Y=this;if(this.data&&this.data.contents){var G=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(O,Q){var M;((M=Y.data)==null?0:M.isExpanded)?(O.hidden=Q>G-1,O.ytRendererBehavior.markDirty()):O.hidden=Q>Y.currentElementsPerRow-1||Q>G-1});
var u=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||u||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||u||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.H.setHeightToSingleRow=function(){var Y=this.getRichItemRenderers(),G=Number.parseInt(getComputedStyle(Y[0]).marginBottom,10)||0;Y=Y.slice(0,this.currentElementsPerRow).reduce(function(u,O){return Math.max(u,O.getBoundingClientRect().height+G)},0);
this.contents.style.height=Y+"px"};
_.H.focusNextExpandedItem=function(){var Y;((Y=this.data)==null?0:Y.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.H.focusItem=function(Y,G){var u=this.getRichItemRenderers();if(u[Y]&&(Y=u[Y].querySelector(".focus-on-expand"))){if(G){var O;(O=u[this.currentElementsPerRow])==null||O.scrollIntoView({behavior:"smooth",block:"center"})}Y.focus({preventScroll:!0})}};
_.H.onDataChange=function(){var Y=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var G;if((G=this.data)==null?0:G.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.sk(this,function(){Y.updateItemVisibility()});
var u;if((u=this.data)==null?0:u.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.cm(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),G=0;G<this.data.contents.length;G++)u=_.z(this.data.contents[G],_.a_)||{},u.colIndex=G,u.rowIndex=this.data.rowIndex};
_.H.handleRerenderDownloadsData=function(){_.F("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(Y){var G=this,u;return _.a(function(O){(u=G.inlinePreviewIsEnabled)&&G.ytdReduxBehavior.dispatch(_.BOR(!1));return O.return(new Promise(function(Q){Y(function(){u&&G.ytdReduxBehavior.dispatch(_.BOR(!0));Q()})}))})};
_.H.expandShelf=function(){var Y=this;if(this.data){var G,u=(G=_.z(this.data.showMoreButton,_.ru))==null?void 0:G.trackingParams;u&&_.YR(_.M4(),u);this.set("data.isExpanded",!0);this.blockInlinePreview(function(O){Y.setHeightToSingleRow();Y.updateItemVisibility();Y.contents.style.height=Y.contents.scrollHeight+"px";_.AN.addJob(function(){Y.contents.style.height="auto";Y.focusNextExpandedItem();O()},2,200)})}};
_.H.collapseShelf=function(){var Y=this;return _.a(function(G){if(G.nextAddress==1){if(!Y.data)return G.return();Y.set("data.isExpanded",!1);return G.yield(Y.blockInlinePreview(function(u){Y.contents.style.height=Y.contents.scrollHeight+"px";Y.setHeightToSingleRow();_.AN.addJob(function(){Y.updateItemVisibility();Y.contents.style.height="auto";u()},2,200)}),2)}_.$s(Y.hostElement,"yt-rich-shelf-renderer-collapse",Y.data.trackingParams);
Y.focusItem(0,!1);_.Sd(G)})};
_.H.updateArrowButtonStatus=function(){this.getRichItemRenderers();var Y,G;var u=((Y=this.data)==null?void 0:(G=Y.contents)==null?void 0:G.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=u};
_.H.onChildElementFocus=function(Y){this.hasChevronButtons&&(Y=Y.target.closest("#contents > *"),this.contents.contains(Y)&&(Y.offsetLeft<this.horizontalOffset?this.previousClick():Y.offsetLeft+Y.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("+(_.DE("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.H.updateHorizontalOffset=function(){var Y=this.getRichItemRenderers(),G,u;var O=((G=this.data)==null?void 0:(u=G.contents)==null?void 0:u.length)||0;var Q;Y=((Q=Y[0])==null?void 0:Q.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>O?this.firstShownIndex=O-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*Y};
_.H.isSlimMediaShelfRenderer=function(){var Y,G,u,O=(u=_.z((Y=this.data)==null?void 0:(G=Y.contents)==null?void 0:G[0],_.a_))==null?void 0:u.content;return!!(_.z(O,_.kk4)||_.z(O,IAe)||_.z(O,_.WJ)||_.z(O,NMR))};
_.H.isGameCardShelf=function(){var Y,G,u,O=(u=_.z((Y=this.data)==null?void 0:(G=Y.contents)==null?void 0:G[0],_.a_))==null?void 0:u.content;return!!_.z(O,qE_)};
_.H.isMiniGameCardShelf=function(){var Y,G,u,O=(u=_.z((Y=this.data)==null?void 0:(G=Y.contents)==null?void 0:G[0],_.a_))==null?void 0:u.content;return!!_.z(O,tDl)||!!_.z(O,KP4)};
_.H.hasGameBoxArtAvatarStyle=function(){var Y;return((Y=this.data)==null?void 0:Y.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.H.hasRoundedGameBoxArtAvatarStyle=function(){var Y;return((Y=this.data)==null?void 0:Y.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.H.isShortsShelf=function(){var Y,G,u,O=(u=_.z((Y=this.data)==null?void 0:(G=Y.contents)==null?void 0:G[0],_.a_))==null?void 0:u.content;return!!_.z(O,_.WJ)||!!_.z(O,NMR)};
_.H.isPostShelfRenderer=function(){var Y,G,u,O=(u=_.z((Y=this.data)==null?void 0:(G=Y.contents)==null?void 0:G[0],_.a_))==null?void 0:u.content;return!(!_.z(O,A7_)&&!_.z(O,otT))};
_.H.isLumiereShelf=function(){var Y,G,u=_.z((Y=this.data)==null?void 0:(G=Y.contents)==null?void 0:G[0],_.a_);return!!_.z(u==null?void 0:u.content,N12)};
_.H.isLumiereShelfWithPosters=function(){var Y,G,u=_.z((Y=this.data)==null?void 0:(G=Y.contents)==null?void 0:G[0],_.a_),O;return((O=_.z(u==null?void 0:u.content,N12))==null?void 0:O.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.H.isExpandOnHoverCardShelf=function(){var Y,G,u,O=(u=_.z((Y=this.data)==null?void 0:(G=Y.contents)==null?void 0:G[0],_.a_))==null?void 0:u.content;return!!_.z(O,Szl)};
_.H.computeHasFeaturedBadge=function(){var Y,G,u=_.z((Y=this.data)==null?void 0:(G=Y.badges)==null?void 0:G[0],_.KAM);return u?u.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.H.computeHasPaygatedFeaturedBadge=function(){var Y,G,u=_.z((Y=this.data)==null?void 0:(G=Y.badges)==null?void 0:G[0],_.KAM);return u?(u==null?void 0:u.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.H.computeHeaderHidden=function(){var Y,G,u,O,Q,M;return!((Y=this.data)==null?0:Y.icon)&&!((G=this.data)==null?0:G.title)&&!((u=this.data)==null?0:u.subtitle)&&!((O=this.data)==null?0:O.thumbnail)&&!((Q=this.data)==null?0:Q.badges)&&!((M=this.data)==null?0:M.menu)};
_.H.showCtaButton=function(){var Y;return!((Y=this.data)==null||!Y.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 Y,G;return((Y=this.data)==null?void 0:(G=Y.responsiveContainerConfiguration)==null?void 0:G.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.H.onSectionReactiveDismissal=function(Y,G,u){var O,Q;var M=(O=this.data)==null?void 0:(Q=O.targetingContext)==null?void 0:Q.targetGroupId;this&&M&&G.targetGroupId&&M.includes(G.targetGroupId)?(O=this.rowIndex,Y=O===void 0?!1:!(G.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&O<=Y)):Y=!1;Y&&(this.hidden=u)};
_.Uk.Object.defineProperties(fo.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null?0:Y.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var Y=this.elementsPerRow;this.isPostShelfRenderer()?Y=this.postsPerRow:this.isSlimMediaShelfRenderer()?Y=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?Y=this.slimItemsPerRow-1:this.isGameCardShelf()?Y=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(Y=this.miniGameCardsPerRow);return Y}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null?0:Y.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!((Y=this.data)==null||!Y.previousButton)&&!((G=this.data)==null||!G.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 Y;return((Y=_.sH().resolve(_.bv).getCurrentPage())==null?void 0:Y.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O;return!((Y=this.data)==null?0:(G=Y.thumbnail)==null?0:(u=G.accessibility)==null?0:(O=u.accessibilityData)==null?0:O.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
fo.prototype.onChildElementFocus=fo.prototype.onChildElementFocus;fo.prototype.handleRerenderDownloadsData=fo.prototype.handleRerenderDownloadsData;fo.prototype.onDataChange=fo.prototype.onDataChange;fo.prototype.isCollapsedChanged=fo.prototype.isCollapsedChanged;fo.prototype.isExpandedChanged=fo.prototype.isExpandedChanged;fo.prototype.onRowIndexChange=fo.prototype.onRowIndexChange;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],fo.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],fo.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],fo.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],fo.prototype,"ytdReduxBehavior",void 0);
_.S([_.R({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.V("design:type",Object)],fo.prototype,"useResponsiveGrid",void 0);_.S([_.R(),_.V("design:type",Object)],fo.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Number)],fo.prototype,"standardUnitMinWidth",void 0);_.S([_.R({reflectToAttribute:!0,value:3}),_.V("design:type",Number)],fo.prototype,"elementsPerRow",void 0);_.S([_.R({value:3}),_.V("design:type",Number)],fo.prototype,"postsPerRow",void 0);
_.S([_.R({value:6}),_.V("design:type",Number)],fo.prototype,"slimItemsPerRow",void 0);_.S([_.R({value:6}),_.V("design:type",Number)],fo.prototype,"gameCardsPerRow",void 0);_.S([_.R({value:6}),_.V("design:type",Number)],fo.prototype,"miniGameCardsPerRow",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],fo.prototype,"hidden",void 0);_.S([_.R(),_.V("design:type",Object)],fo.prototype,"isShowMoreHidden",void 0);
_.S([_.R(),_.V("design:type",Object)],fo.prototype,"isShowLessHidden",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],fo.prototype,"hasExpansionButton",void 0);_.S([_.f("data.isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fo.prototype,"isExpanded",null);_.S([_.f("data.isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fo.prototype,"isCollapsed",null);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],fo.prototype,"isInnerShelf",void 0);_.S([_.R({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.V("design:type",Boolean)],fo.prototype,"isShorts",void 0);_.S([_.R({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.V("design:type",Boolean)],fo.prototype,"isLumiere",void 0);_.S([_.R({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.V("design:type",Boolean)],fo.prototype,"hasBoxArtThumbnailStyle",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.V("design:type",Boolean)],fo.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.V("design:type",Boolean)],fo.prototype,"hasFeaturedBadge",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.V("design:type",Boolean)],fo.prototype,"hasPaygatedFeaturedBadge",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.V("design:type",Boolean)],fo.prototype,"isHeaderHidden",void 0);_.S([_.R({selector:_.h6y}),_.V("design:type",Object)],fo.prototype,"allVideosCount",void 0);_.S([_.R({selector:w_A}),_.V("design:type",Object)],fo.prototype,"allPlaylistCount",void 0);_.S([_.R({selector:qoa}),_.V("design:type",Object)],fo.prototype,"haveSmartDownloadsCompleted",void 0);
_.S([_.R({selectorArgs:["entitySelectorType"],selector:function(Y,G){if(_.F("kevlar_modern_downloads_page")&&G&&G!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var u=Y.entities;switch(G){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":G=_.XX(u);Y=QN(G);var O=_.tH(G);u=_.Ii(u);u=_.Sy(C1u(O,u,G.length));return{contents:Y,subtitle:u};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return u=_.XX(u),{contents:QN(u)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return u=
_.PC(u),{contents:QN(u)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return u=_.Xf4(u),{contents:QN(u)};default:_.R0(new _.I2("Error: entitySelectorType defined but not matched in selector.",Y,G))}}}}),
_.V("design:type",Object)],fo.prototype,"entityDrivenRichShelfData",void 0);_.S([_.R({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.V("design:type",Boolean)],fo.prototype,"hasTopCtaButton",void 0);_.S([_.R({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.V("design:type",Boolean)],fo.prototype,"hasBottomCtaButton",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.V("design:type",Boolean)],fo.prototype,"force16By9ThumbnailAspectRatio",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],fo.prototype,"restrictContentsOverflow",void 0);_.S([_.R({selector:_.i8T}),_.V("design:type",Boolean)],fo.prototype,"inlinePreviewIsEnabled",void 0);_.S([_.R({computed:"computeSizing(data)"}),_.V("design:type",String)],fo.prototype,"sizing",void 0);
_.S([_.R(),_.V("design:type",Boolean)],fo.prototype,"typographyBump",void 0);_.S([_.R(),_.V("design:type",Number)],fo.prototype,"itemWidth",void 0);_.S([_.R(),_.V("design:type",Object)],fo.prototype,"firstShownIndex",void 0);_.S([_.R(),_.V("design:type",Object)],fo.prototype,"horizontalOffset",void 0);_.S([_.R(),_.V("design:type",Object)],fo.prototype,"atEnd",void 0);_.S([_.Ox("#contents"),_.V("design:type",HTMLElement)],fo.prototype,"contents",void 0);
_.S([_.GO("data.rowIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fo.prototype,"onRowIndexChange",null);_.S([_.GO("isExpanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fo.prototype,"isExpandedChanged",null);_.S([_.GO("isCollapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fo.prototype,"isCollapsedChanged",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fo.prototype,"onDataChange",null);_.S([_.GO("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fo.prototype,"handleRerenderDownloadsData",null);_.S([_.Yo("focusin"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],fo.prototype,"onChildElementFocus",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data","isHomePage"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fo.prototype,"isTruncated",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fo.prototype,"showBottomDivider",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],fo.prototype,"hasChevronButtons",null);
_.S([_.f("firstShownIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],fo.prototype,"previousButtonOverride",null);_.S([_.f("atEnd"),_.V("design:type",Object),_.V("design:paramtypes",[])],fo.prototype,"nextButtonOverride",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fo.prototype,"isHomePage",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fo.prototype,"thumbnailAriaHidden",null);
_.S([_.f("data"),_.V("design:type",String),_.V("design:paramtypes",[])],fo.prototype,"entitySelectorType",null);_.S([_.pD({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],fo);
_.O4X=_.$o()(fo,"ytd-rich-shelf-renderer",function(){if(uZ2===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);uZ2=Y}Y=uZ2;return Y},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:2});var QRl;_.hR(l2,"yt-thumbnail-view-model",{props:{data:_.AC,aspectRatio:_.AC,width:_.AC,height:_.AC,disableRounding:_.AC,isClip:_.AC,className:_.AC,hovered:_.AC,playbackRef:_.AC,lockupExperiments:_.AC}});_.hR(_.b2,"yt-badge-view-model",{props:{data:_.AC,class:_.AC,workaroundShortsIsThumbnailBadge:_.AC,modern:_.AC,numBadgesInRow:_.AC,clipTextOverflow:_.AC,inheritTypography:_.AC}});_.hR(e2_,"yt-slimline-survey-view-model",{props:{data:_.AC}});var Co=function(){var Y=_.Z.apply(this,arguments)||this;Y.tileLottieAnimationRef={};Y.backgroundLottieAnimationRef={};Y.isOnHoverBehaviorForLottieEnabled=!0;Y.useBiggerShowcaseImage=_.F("enable_desktop_search_bigger_thumbs");Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return Y};
_.m(Co,_.Z);_.H=Co.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",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",
mapping:{menuRenderer:"ytd-menu-renderer"}},tileImageViewModel:{id:"tile-image-view-model",mapping:{thumbnailViewModel:{component:"yt-thumbnail-view-model"}}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.H.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var Y=this.hasStaticTile(this.data)||this.hasTileLottie(this.data)||this.hasThumbnailViewModel(this.data);Y!==this.hasTile&&this.set("hasTile",Y);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.set("tileImageViewModel",this.getCurrentTileImageViewModel(this.data,this.isDarkTheme));this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.H.hoveredChanged=function(){var Y=this.thumbnail;Y&&(Y.hovered=this.hovered)};
_.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(Y){if(Y&&this.data){var G=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var u=_.bq((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);u&&G.push('background-image: url("'+u+'");')}var O;((O=Y.basicColorData)==null?void 0:O.backgroundColor)!==void 0&&G.push("background-color: "+_.nB(Y.basicColorData.backgroundColor)+";");return G.join("")}};
_.H.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&this.set("isDarkTheme",Y)};
_.H.getCurrentLogo=function(Y,G){if(Y)return G?Y.darkLogoImage:Y.lightLogoImage};
_.H.getCurrentTileImageViewModel=function(Y,G){if(Y)return Y.darkTileImageViewModel?G?Y.darkTileImageViewModel:Y.tileImageViewModel:Y.tileImageViewModel};
_.H.getCurrentStaticTileImage=function(Y,G){if(this.hasStaticTile(Y))return Y.darkTileImage?G?Y.darkTileImage:Y.tileImage:Y.tileImage};
_.H.computeTitleStyle=function(Y){if(this.data&&this.data.title&&Y&&Y.basicColorData&&Y.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.k3(Y.basicColorData.foregroundTitleColor)+";"};
_.H.computeSubtitleStyle=function(Y){if(this.data&&this.data.subtitle&&Y&&Y.basicColorData&&Y.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.k3(Y.basicColorData.foregroundBodyColor)+";"};
_.H.computeSupplementalStyle=function(Y){if(this.data&&this.data.supplementalText&&Y&&Y.supplementalTextColor!==void 0)return Y=_.k3(Y.supplementalTextColor),"color:"+Y+";--yt-endpoint-color:"+Y+";--yt-endpoint-hover-color:"+Y+";--yt-endpoint-visited-color:"+Y+";--yt-formatted-string-bold-font-weight:700;"};
_.H.computeDismissIconStyle=function(Y){var G,u;if((Y==null?0:(G=Y.dismissButtonColorData)==null?0:G.foregroundTitleColor)&&(Y==null?0:(u=Y.dismissButtonColorData)==null?0:u.backgroundColor))return"--yt-button-color:"+_.nB(Y.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.nB(Y.dismissButtonColorData.backgroundColor)+";"};
_.H.computeOverflowIconStyle=function(Y){var G,u;if((Y==null?0:(G=Y.dismissButtonColorData)==null?0:G.foregroundTitleColor)&&(Y==null?0:(u=Y.dismissButtonColorData)==null?0:u.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.nB(Y.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.nB(Y.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.nB(Y.dismissButtonColorData.foregroundTitleColor)+";"};
_.H.computeBannerStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.H.computeLocation=function(Y){switch(Y==null?void 0:Y.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.H.shouldShowTileSection=function(Y,G,u){return!this.shouldExpandLogo(Y,G,u)&&G};
_.H.shouldShowExpandedLogoSection=function(Y,G,u){return this.shouldExpandLogo(Y,G,u)&&Y!==void 0&&this.hasLogo(Y)};
_.H.shouldExpandLogo=function(Y,G,u){return Y&&G?!1:u>=2};
_.H.hasStaticTile=function(Y){return!(Y==null||!Y.tileImage)};
_.H.hasThumbnailViewModel=function(Y){return!(Y==null||!Y.tileImageViewModel)};
_.H.hasTileLottie=function(Y){var G;return!!(Y==null?0:(G=Y.tileLottie)==null?0:G.url)};
_.H.hasLogo=function(Y){return this.getCurrentLogo(Y,this.isDarkTheme)!==void 0};
_.H.getLogoHeight=function(Y){return this.logoWithPadding(Y)?"26":"20"};
_.H.getExpandedLogoHeight=function(Y){return this.logoWithPadding(Y)?"31":"24"};
_.H.getLogoImageId=function(Y){return this.logoWithPadding(Y)?"logo-image-with-padding":"logo-image"};
_.H.getMaxTitleFontSize=function(Y){return Y.overrideTitleMaxFontSize?String(Y.overrideTitleMaxFontSize):"36"};
_.H.hasBackgroundLottie=function(Y){var G;return!!(Y==null?0:(G=Y.backgroundLottie)==null?0:G.url)};
_.H.onMouseOver=function(){if(this.isOnHoverBehaviorForLottieEnabled){var Y,G;(Y=this.tileLottieAnimationRef)==null||(G=Y.lottieEl)==null||G.play();var u,O;(u=this.backgroundLottieAnimationRef)==null||(O=u.lottieEl)==null||O.play()}this.hovered=!0};
_.H.onMouseLeave=function(){if(this.isOnHoverBehaviorForLottieEnabled){var Y,G;(Y=this.tileLottieAnimationRef)==null||(G=Y.lottieEl)==null||G.pause();var u,O;(u=this.backgroundLottieAnimationRef)==null||(O=u.lottieEl)==null||O.pause()}this.hovered=!1};
_.H.pauseLottie=function(){var Y,G;(Y=this.tileLottieAnimationRef)==null||(G=Y.lottieEl)==null||G.pause();var u,O;(u=this.backgroundLottieAnimationRef)==null||(O=u.lottieEl)==null||O.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.H.performPrimaryButtonAction=function(){var Y,G,u;((Y=this.data)==null?0:(G=Y.primaryButton)==null?0:(u=G.buttonRenderer)==null?0:u.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.H.requestElementsPerRow=function(){_.$s(this.hostElement,"yt-request-elements-per-row")};
_.H.updateButtonPalette=function(){if(this.data&&this.currentColorData){var Y;((Y=this.data.dismissButton)==null?0:Y.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 G;if((G=this.data.primaryButton)==null?0:G.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 u;if((u=this.data.secondaryButton)==
null?0:u.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 O;((O=this.data.primaryButton)==null?0:O.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var Q;((Q=this.data.primaryButton)==null?0:Q.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var M;((M=this.data.secondaryButton)==null?0:M.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var t;((t=this.data.primaryButton)==null?0:t.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.H.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var Y=this.getTileLottieDataBasedOnTheme(),G,u;if(Y.url!==((G=this.tileLottiePlayerProps)==null?void 0:(u=G.animationConfig)==null?void 0:u.path)){var O,Q;(O=this.tileLottieAnimationRef)==null||(Q=O.lottieEl)==null||Q.destroy();var M;this.isOnHoverBehaviorForLottieEnabled=!((M=Y.settings)==null?0:M.autoplay);var t,K;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(K=(t=Y.settings)==null?void 0:t.autoplay)!=null?K:!1,loop:this.getLottieLoopValue(Y.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof Y.url==="string"?this.tileLottiePlayerProps.animationConfig.path=Y.url:this.tileLottiePlayerProps.animationConfig.animationData=Y.url}}};
_.H.getOverflowButton=function(Y){return _.z(Y.overflowButton,$HT)};
_.H.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var Y=this.getBackgroundLottieDataBasedOnTheme(),G,u;if(Y.url!==((G=this.backgroundLottiePlayerProps)==null?void 0:(u=G.animationConfig)==null?void 0:u.path)){var O,Q;(O=this.backgroundLottieAnimationRef)==null||(Q=O.lottieEl)==null||Q.destroy();var M;this.isOnHoverBehaviorForLottieEnabled=!((M=Y.settings)==null?0:M.autoplay);var t,K;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(K=(t=Y.settings)==null?void 0:t.autoplay)!=null?K:!1,loop:this.getLottieLoopValue(Y.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof Y.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=Y.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
Y.url}}};
_.H.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var Y;((Y=this.tileLottieAnimationRef)==null?void 0:Y.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var G;((G=this.backgroundLottieAnimationRef)==null?void 0:G.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.H.getTileLottieDataBasedOnTheme=function(){var Y;if(this.isDarkTheme&&((Y=this.data)==null?0:Y.darkThemeTileLottie))return this.data.darkThemeTileLottie;var G;return((G=this.data)==null?0:G.tileLottie)?this.data.tileLottie:{}};
_.H.getBackgroundLottieDataBasedOnTheme=function(){var Y;if(this.isDarkTheme&&((Y=this.data)==null?0:Y.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var G;return((G=this.data)==null?0:G.backgroundLottie)?this.data.backgroundLottie:{}};
_.H.onUpdateElementsPerRowAction=function(Y){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y)};
_.H.getLottieLoopValue=function(Y){return Y?Y.loop!==void 0?Y.loop:Y.loopCount?Y.loopCount-1:!0:!0};
_.H.logoWithPadding=function(Y){var G,u,O;return(Y=(G=this.getCurrentLogo(Y,this.isDarkTheme))==null?void 0:(u=G.thumbnails)==null?void 0:(O=u[0])==null?void 0:O.height)&&Y%31===0?!0:!1};
Co.prototype.currentColorChanged=Co.prototype.currentColorChanged;Co.prototype.themeChanged=Co.prototype.themeChanged;Co.prototype.hoveredChanged=Co.prototype.hoveredChanged;Co.prototype.dataChanged=Co.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Co.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Co.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.rW),_.V("design:type",Object)],Co.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Co.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Co.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Co.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Co.prototype,"primaryButton",void 0);
_.S([_.R(),_.V("design:type",Object)],Co.prototype,"tileImageViewModel",void 0);_.S([_.R(),_.V("design:type",Object)],Co.prototype,"secondaryButton",void 0);_.S([_.R({reflectToAttribute:!0,value:3}),_.V("design:type",Number)],Co.prototype,"elementsPerRow",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Co.prototype,"isDarkTheme",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Co.prototype,"hasTile",void 0);
_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Co.prototype,"hasMetadata",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Co.prototype,"showLogoImage",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Co.prototype,"hovered",void 0);_.S([_.R(),_.V("design:type",Object)],Co.prototype,"currentColorData",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.V("design:type",String)],Co.prototype,"bannerStyle",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.V("design:type",String)],Co.prototype,"location",void 0);_.S([_.R(),_.V("design:type",Object)],Co.prototype,"tileLottiePlayerProps",void 0);_.S([_.R(),_.V("design:type",Object)],Co.prototype,"tileLottieAnimationRef",void 0);
_.S([_.R(),_.V("design:type",Object)],Co.prototype,"backgroundLottiePlayerProps",void 0);_.S([_.R(),_.V("design:type",Object)],Co.prototype,"backgroundLottieAnimationRef",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Co.prototype,"useBiggerShowcaseImage",void 0);_.S([_.Ox("yt-thumbnail-view-model"),_.V("design:type",HTMLElement)],Co.prototype,"thumbnail",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Co.prototype,"isHideEnclosingAction",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Co.prototype,"dataChanged",null);_.S([_.GO("hovered"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Co.prototype,"hoveredChanged",null);_.S([_.Ex("isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Co.prototype,"themeChanged",null);
_.S([_.Ex("currentColorData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Co.prototype,"currentColorChanged",null);_.S([_.pD({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Co);
_.d(Co,"ytd-statement-banner-renderer",function(){if(QRl!==void 0)return QRl;var Y=document.createElement("template");_.r(Y,'\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="onMouseLeave" on-mouseover="onMouseOver" 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          <div id="tile-image-view-model" hidden="[[!hasThumbnailViewModel(data)]]" class="style-scope ytd-statement-banner-renderer"></div>\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return QRl=Y},{mode:1});var MvE;var y$=function(){var Y=_.Z.apply(this,arguments)||this;Y.isSearch=!1;Y.hideShelfHeader=!1;Y.engagementPanel=!1;Y.disableMouseScroll=!0;Y.useFloorScrolling=!0;return Y};
_.m(y$,_.Z);y$.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Q6("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Q6("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
y$.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
y$.prototype.onDataChanged=y$.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],y$.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],y$.prototype,"isSearch",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],y$.prototype,"hideShelfHeader",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],y$.prototype,"engagementPanel",void 0);_.S([_.R(),_.V("design:type",Object)],y$.prototype,"disableMouseScroll",void 0);_.S([_.R(),_.V("design:type",Object)],y$.prototype,"useFloorScrolling",void 0);_.S([_.R(),_.V("design:type",Object)],y$.prototype,"data",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],y$.prototype,"onDataChanged",null);
_.S([_.pD({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],y$);
_.d(y$,"ytd-reel-shelf-renderer",function(){if(MvE!==void 0)return MvE;var Y=document.createElement("template");_.r(Y,'\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="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-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-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer">\n        </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return MvE=Y},{mode:2});var H4T;var Enk;Enk=_.hV(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.tvU=_.fO(Enk);var KqR=_.D(function(Y){var G=Y.data;Y=Y.useSmallFont;var u={},O={};return _.T("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.T(_.X,{cond:function(){return G().favicon},
then:function(Q){return _.T(_.RD,{data:Q,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.T("div",{class:"ytChannelExternalLinkViewModelContainer"},_.T(_.eO,{text:function(){return G().title},
className:_.s3("ytChannelExternalLinkViewModelTitle",(u.ytChannelExternalLinkViewModelTitleSmallFont=Y,u)),ellipsisTruncate:!0,userInput:!0}),_.T(_.eO,{text:function(){return G().link},
className:_.s3("ytChannelExternalLinkViewModelLink",(O.ytChannelExternalLinkViewModelLinkSmallFont=Y,O)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"md");
KqR.idomCompat=!0;_.hR(KqR,"yt-channel-external-link-view-model",{props:{data:_.AC,useSmallFont:_.AC}});_.Px("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var ef=function(){var Y=_.Z.apply(this,arguments)||this;Y.revealButtonClass="button";Y.businessEmailDisplayState="HIDE_SECTION";return Y};
_.m(ef,_.Z);_.H=ef.prototype;_.H.refit=function(){var Y=this;_.CD(function(){_.sK(Y.hostElement,"yt-refit-popups-action")});
_.sk(this,function(){_.sK(Y.hostElement,"yt-refit-popups-action")})};
_.H.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.fX(_.tvU),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(Y){return"mailto:"+Y};
_.H.computeSafeUrl=function(Y){if(Y)return _.cs(Y)};
_.H.linkEndpoint=function(Y){return _.z(Y.onTap,_.nd)};
_.H.linkEndpointToHref=function(Y){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(Y))};
_.H.onYtServiceRequestCompleted=function(Y){var G;if((G=Y.detail.data)==null?0:G.businessEmail)this.businessEmail=Y.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var u;if((u=Y.detail.data)==null?0:u.errorMessage)this.businessEmailErrorMessage=Y.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.H.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var Y=this.JSC$16757_captchaTextarea.value;if(Y){Y={recaptcha_response_token:Y,channel_id:this.metadata.channelId};var G=_.z(this.metadata.onBusinessEmailRevealClickCommand,_.nd);G&&this.ytComponentBehavior.resolveCommand(G,{form:Y})}}};
_.H.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Uk.Object.defineProperties(ef.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var Y;return _.z((Y=this.data)==null?void 0:Y.metadata,B1k)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.z(this.metadata.businessEmailRevealButton,_.Ck)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var Y=new URL(this.metadata.canonicalChannelUrl);return Y.host+Y.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 _.z(this.metadata.learnMoreOnTap,_.nd)}}});
ef.prototype.onYtServiceRequestCompleted=ef.prototype.onYtServiceRequestCompleted;ef.prototype.businessEmailMetadataChanged=ef.prototype.businessEmailMetadataChanged;ef.prototype.refit=ef.prototype.refit;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ef.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ef.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Ox("#g-recaptcha-response"),_.V("design:type",HTMLTextAreaElement)],ef.prototype,"JSC$16757_captchaTextarea",void 0);_.S([_.R(),_.V("design:type",Object)],ef.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],ef.prototype,"revealButtonClass",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],ef.prototype,"metadata",null);
_.S([_.f("metadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],ef.prototype,"revealButton",null);_.S([_.f("metadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],ef.prototype,"channelDisplayUrl",null);_.S([_.Ex("metadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ef.prototype,"refit",null);_.S([_.f("metadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],ef.prototype,"formattedDescription",null);
_.S([_.f("metadata","learnMoreCommand"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ef.prototype,"shouldRendereVerifiedPhoneStatus",null);_.S([_.f("metadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],ef.prototype,"learnMoreCommand",null);_.S([_.R(),_.V("design:type",String)],ef.prototype,"businessEmailDisplayState",void 0);_.S([_.R(),_.V("design:type",String)],ef.prototype,"businessEmail",void 0);
_.S([_.R(),_.V("design:type",String)],ef.prototype,"businessEmailErrorMessage",void 0);_.S([_.Ex("metadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ef.prototype,"businessEmailMetadataChanged",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ef.prototype,"onYtServiceRequestCompleted",null);
_.S([_.pD({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],ef);
_.d(ef,"ytd-about-channel-renderer",function(){if(H4T!==void 0)return H4T;var Y=document.createElement("template");_.r(Y,'\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" aria-label$="[[metadata.learnMoreA11yLabel]]">\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return H4T=Y},{mode:1});var awE;var AQ=function(){return _.Z.apply(this,arguments)||this};
_.m(AQ,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],AQ.prototype,"data",void 0);_.S([_.pD({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],AQ);
_.d(AQ,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(awE!==void 0)return awE;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return awE=Y},{mode:1});var TL4;var ok=function(){return _.Z.apply(this,arguments)||this};
_.m(ok,_.Z);ok.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ok.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ok.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],ok.prototype,"aligment",void 0);_.S([_.pD({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],ok);
_.d(ok,"ytd-channel-list-sub-menu-renderer",function(){if(TL4!==void 0)return TL4;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return TL4=
Y},{mode:1});var LqX;var iS=function(){return _.Z.apply(this,arguments)||this};
_.m(iS,_.Z);iS.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}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],iS.prototype,"data",void 0);_.S([_.pD({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],iS);
_.d(iS,"ytd-channel-sub-menu-renderer",function(){if(LqX!==void 0)return LqX;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return LqX=Y},{mode:1});var gn1;var X5e;var Rk=function(){var Y=_.Z.apply(this,arguments)||this;Y.isCompact=!1;return Y};
_.m(Rk,_.Z);_.Uk.Object.defineProperties(Rk.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((G=_.z((Y=this.data)==null?void 0:Y.endpoint,_.SK))==null?void 0:G.target)==="TARGET_NEW_WINDOW"}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Rk.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Rk.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Rk.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Rk.prototype,"isCompact",void 0);_.S([_.f("isCompact"),_.V("design:type",Number),_.V("design:paramtypes",[])],Rk.prototype,"thumbnailWidth",null);
_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Rk.prototype,"openNewWindow",null);_.S([_.pD({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Rk);
_.d(Rk,"ytd-media-lockup-renderer",function(){if(X5e!==void 0)return X5e;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return X5e=Y},{mode:1});var PQR;var wO=function(){return _.Z.apply(this,arguments)||this};
_.m(wO,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],wO.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],wO.prototype,"data",void 0);_.S([_.pD({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],wO);
_.d(wO,"ytd-structured-description-channel-lockup-renderer",function(){if(PQR!==void 0)return PQR;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return PQR=Y},{mode:1});var Iw_;var Zd=function(){var Y=_.Z.apply(this,arguments)||this;Y.isCompact=!1;Y.collectionsStackColor=_.F("modernize_structured_description_playlist_lockups_v2");return Y};
_.m(Zd,_.Z);Zd.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:_.F("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Uk.Object.defineProperties(Zd.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O,Q,M;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(Y=this.data)==null?void 0:(G=Y.thumbnail)==null?void 0:G.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(u=this.data)==null?void 0:(O=u.thumbnail)==null?void 0:O.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(Q=this.data)==null?void 0:(M=Q.thumbnail)==null?
void 0:M.vibrantColorPalette:void 0}}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Zd.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Zd.prototype,"componentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Zd.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Zd.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Zd.prototype,"showSidePanelThumbnailOverlay",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Zd.prototype,"isCompact",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Zd.prototype,"collectionsStackColor",void 0);_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Zd.prototype,"twoLineTitle",null);_.S([_.f("data","collectionsStackColor"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zd.prototype,"collectionStack",null);
_.S([_.pD({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Zd);
_.d(Zd,"ytd-structured-description-playlist-lockup-renderer",function(){if(Iw_!==void 0)return Iw_;var Y=document.createElement("template");_.r(Y,'\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)]]" aria-label$="[[getSimpleString(data.title)]]">\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Iw_=Y},{mode:1});var kDM;var Dd=function(){return _.Z.apply(this,arguments)||this};
_.m(Dd,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Dd.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Dd.prototype,"data",void 0);_.S([_.pD({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Dd);
_.d(Dd,"ytd-structured-description-video-lockup-renderer",function(){if(kDM!==void 0)return kDM;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return kDM=Y},{mode:2});var hQ=function(){return _.Z.apply(this,arguments)||this};
_.m(hQ,_.Z);
hQ.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}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],hQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],hQ.prototype,"data",void 0);_.S([_.pD({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],hQ);
_.d(hQ,"ytd-compact-infocard-renderer",function(){if(gn1!==void 0)return gn1;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return gn1=Y},{mode:1});var nnV;var dO=function(){return _.Z.apply(this,arguments)||this};
_.m(dO,_.Z);dO.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Uk.Object.defineProperties(dO.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.F("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.F("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.F("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],dO.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],dO.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],dO.prototype,"ytdReduxBehavior",void 0);_.S([_.R({selector:_.zS}),_.V("design:type",Object)],dO.prototype,"isGridViewEnabled",void 0);
_.S([_.f("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dO.prototype,"watchFeedBigThumbs",null);_.S([_.f("isGridViewEnabled","data"),_.R({reflectToAttribute:!0,value:"168"}),_.V("design:type",String),_.V("design:paramtypes",[])],dO.prototype,"thumbnailWidth",null);_.S([_.f("isGridViewEnabled","data"),_.R({reflectToAttribute:!0,value:"94"}),_.V("design:type",String),_.V("design:paramtypes",[])],dO.prototype,"customThumbnailSize",null);
_.S([_.R(),_.V("design:type",Object)],dO.prototype,"data",void 0);_.S([_.pD({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],dO);
_.d(dO,"ytd-compact-playlist-renderer",function(){if(nnV!==void 0)return nnV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return nnV=Y},{mode:1});var Fql;var bS=function(){var Y=_.Z.apply(this,arguments)||this;Y.roundedContainer=!0;Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return Y};
_.m(bS,_.Z);_.H=bS.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(Y){return Y.style?Y.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.H.onUpdateElementsPerRowAction=function(Y){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&Y===1};
_.H.requestElementsPerRow=function(){_.$s(this.hostElement,"yt-request-elements-per-row")};
bS.prototype.dataChanged=bS.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],bS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],bS.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],bS.prototype,"actionHandlerBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],bS.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],bS.prototype,"hideThumbnail",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.V("design:type",String)],bS.prototype,"viewStyle",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],bS.prototype,"roundedContainer",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bS.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],bS);
_.d(bS,"ytd-compact-promoted-item-renderer",function(){if(Fql!==void 0)return Fql;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Fql=Y},{mode:1});var p54;var Sf=function(){return _.Z.apply(this,arguments)||this};
_.m(Sf,_.Z);Sf.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Sf.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Sf.prototype.onYtNavigate=function(Y,G){var u=this;if(G.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",G)){var O=this.get("watchEndpoint.videoId",G.endpoint),Q=_.sK(this.hostElement,"yt-get-current-video-id-action")[0];_.F("kevlar_mix_handle_first_endpoint_different")&&O&&Q&&O!==Q||(Y.stopPropagation(),_.jr().getPlayerPromise().then(function(M){if(M.getPlayerState()===0&&u.data.secondaryNavigationEndpoint)var t=u.data.secondaryNavigationEndpoint;else{t=
Object.assign({},G.endpoint);var K=_.z(t.commandMetadata,_.ug);K&&(M=Math.floor(M.getCurrentTime()),K.url=_.JD(K.url,{t:M}),!_.F("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(K=_.z(t,_.ic)))&&(K.startTimeSeconds=M)}_.$s(u.hostElement,"yt-navigate",{endpoint:t})}))}};
_.Uk.Object.defineProperties(Sf.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.F("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.F("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O,Q,M;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(Y=this.data)==null?void 0:(G=Y.thumbnail)==null?void 0:G.sampledThumbnailColor,vibrantColorPalette:(u=this.data)==null?void 0:(O=u.thumbnail)==null?void 0:O.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(M=Q.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:!0}}}});
Sf.prototype.onYtNavigate=Sf.prototype.onYtNavigate;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.U2.YtEndpointBehavior),_.V("design:type",Object)],Sf.prototype,"ytEndpointBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Sf.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],Sf.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.x(_.oV),_.V("design:type",Object)],Sf.prototype,"ytdLockupBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Sf.prototype,"ytdReduxBehavior",void 0);_.S([_.R({selector:_.zS}),_.V("design:type",Object)],Sf.prototype,"isGridViewEnabled",void 0);_.S([_.f("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Sf.prototype,"watchFeedBigThumbs",null);
_.S([_.f("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],Sf.prototype,"thumbnailWidth",null);_.S([_.R(),_.V("design:type",Object)],Sf.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sf.prototype,"collectionStack",null);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Sf.prototype,"onYtNavigate",null);
_.S([_.pD({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Sf);
_.d(Sf,"ytd-compact-radio-renderer",function(){if(p54!==void 0)return p54;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return p54=Y},{mode:1});var znT;var NJ=function(){return _.Z.apply(this,arguments)||this};
_.m(NJ,_.Z);NJ.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
NJ.prototype.computeRendererStyle=function(Y){return Y.style?Y.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.S([_.R(),_.V("design:type",Object)],NJ.prototype,"data",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],NJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],NJ.prototype,"rendererBehavior",void 0);_.S([_.R({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.V("design:type",String)],NJ.prototype,"rendererStyle",void 0);_.S([_.pD({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],NJ);
_.d(NJ,"ytd-compact-text-promo-renderer",function(){if(znT!==void 0)return znT;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return znT=Y},{mode:1});var mSM;var jf=function(){var Y=_.Z.apply(this,arguments)||this;Y.isShortsStyle=!1;return Y};
_.m(jf,_.Z);_.H=jf.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?_.$s(this.hostElement,"yt-disable-lockup-interaction"):_.$s(this.hostElement,"yt-enable-lockup-interaction"))};
_.H.isMetaBlockEmpty=function(Y){return!Y||!Y.longBylineText&&!Y.shortBylineText&&!Y.shortViewCountText&&!Y.viewCountText};
_.H.computeHasOneLineTitle=function(Y){return this.forceOneLineTitle||!(Y==null||!Y.buttons)};
_.H.computeDisableInteraction=function(){var Y;return!((Y=this.data)==null?0:Y.navigationEndpoint)};
_.H.hasSingularTopStandaloneBadge=function(){var Y;return!((Y=this.data)==null||!Y.topStandaloneBadge)};
_.Uk.Object.defineProperties(jf.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.F("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.F("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 Y;return this.hasSingularTopStandaloneBadge()?[(Y=this.data)==null?void 0:Y.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var Y;return this.shouldShowTopBadges?((Y=this.data)==null?void 0:Y.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
jf.prototype.disableInteractionChanged=jf.prototype.disableInteractionChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],jf.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],jf.prototype,"ytdLockupBehavior",void 0);
_.S([_.x(_.me),_.V("design:type",Object)],jf.prototype,"ytdReduxBehavior",void 0);_.S([_.R({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.V("design:type",Boolean)],jf.prototype,"metaBlockEmpty",void 0);_.S([_.R({selector:_.zS}),_.V("design:type",Object)],jf.prototype,"isGridViewEnabled",void 0);_.S([_.f("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],jf.prototype,"watchFeedBigThumbs",null);
_.S([_.f("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],jf.prototype,"thumbnailWidth",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],jf.prototype,"isShortsStyle",void 0);_.S([_.R(),_.V("design:type",Object)],jf.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.V("design:type",Boolean)],jf.prototype,"hasOneLineTitle",void 0);
_.S([_.R(),_.V("design:type",Boolean)],jf.prototype,"hideThumbnail",void 0);_.S([_.R(),_.V("design:type",Boolean)],jf.prototype,"forceOneLineTitle",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.V("design:type",Boolean)],jf.prototype,"disableInteraction",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],jf.prototype,"musicMetadataVideoLockup",void 0);
_.S([_.GO("disableInteraction"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jf.prototype,"disableInteractionChanged",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],jf.prototype,"shouldShowTopBadges",null);_.S([_.f("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],jf.prototype,"topBadges",null);
_.S([_.f("shouldShowTopBadges","data"),_.V("design:type",Array),_.V("design:paramtypes",[])],jf.prototype,"inlineMetadataBadges",null);_.S([_.f("shouldShowTopBadges"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],jf.prototype,"shouldShowBadgesBelowMetadata",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],jf.prototype,"compactTitleClass",null);_.S([_.pD({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],jf);
_.d(jf,"ytd-compact-video-renderer",function(){if(mSM!==void 0)return mSM;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return mSM=Y},{mode:2});var Wq_;_.Px("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var V$=function(){return _.Z.apply(this,arguments)||this};
_.m(V$,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],V$.prototype,"data",void 0);_.S([_.pD({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],V$);
_.d(V$,"ytd-counterfactual-renderer",function(){if(Wq_!==void 0)return Wq_;var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Wq_=Y},{mode:1});var r2_;var lS=function(){var Y=_.Z.apply(this,arguments)||this;Y.hidden=!1;return Y};
_.m(lS,_.Z);lS.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.sH().resolve(_.rH).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
lS.prototype.computeHidden=function(Y){return!!Y};
_.Uk.Object.defineProperties(lS.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}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],lS.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.V("design:type",Object)],lS.prototype,"hidden",void 0);_.S([_.f("data.label"),_.V("design:type",String),_.V("design:paramtypes",[])],lS.prototype,"label",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],lS.prototype,"value",null);
_.S([_.pD({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],lS);
_.d(lS,"ytd-dropdown-item-renderer",function(){if(r2_!==void 0)return r2_;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return r2_=Y},{mode:1});var xSR;var fwI;var BW=function(){return _.Z.apply(this,arguments)||this};
_.m(BW,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],BW.prototype,"data",void 0);_.S([_.R({computed:"getSimpleString(data.label)"}),_.V("design:type",String)],BW.prototype,"label",void 0);_.S([_.pD({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],BW);
_.d(BW,"ytd-navigation-dropdown-item-renderer",function(){if(fwI!==void 0)return fwI;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return fwI=Y},{mode:1});var $z=function(){var Y=_.Z.apply(this,arguments)||this;Y.disabled=!1;Y.value="";Y.noLabelFloat=!1;Y.noUnderline=!1;Y.usePrimaryColor=!1;Y.hasBackground=!1;Y.verticalAlign="top";Y.autosize=!1;Y.minAutosizeWidth=100;Y.autosizeFont="14px Roboto";return Y};
_.m($z,_.Z);_.H=$z.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 _.wM("value-changed",this.value))};
_.H.stopPropagation=function(Y){Y.stopPropagation()};
_.H.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var Y=this.canvas.getContext("2d");Y&&(Y.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(Y.measureText(this.inputEl.value).width)+24)+"px")}};
_.H.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var Y=0,G=this.data.entries.length;Y<G;Y++){var u=this.data.entries[Y],O;for(O in u)if(u.hasOwnProperty(O)){var Q=u[O];if("isSelected"in Q&&Q.isSelected)return"stringValue"in Q?Q.stringValue||"":"int32Value"in Q?Q.int32Value||0:0}}return null};
_.H.updateValueFromBinding=function(Y){this.value=Y.detail.value};
_.Uk.Object.defineProperties($z.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 Y=0,G=this.data.entries.length;Y<G;Y++){var u=this.data.entries[Y],O;for(O in u)if(u.hasOwnProperty(O)){var Q=u[O];if("isSelected"in Q&&Q.isSelected&&"label"in Q)return this.ytRendererBehavior.getSimpleString(Q.label)}}return null}}});
$z.prototype.autoSizeLabel=$z.prototype.autoSizeLabel;$z.prototype.stopPropagation=$z.prototype.stopPropagation;$z.prototype.valueChangedForBinding=$z.prototype.valueChangedForBinding;$z.prototype.dataChanged=$z.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],$z.prototype,"ytRendererStamperBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],$z.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],$z.prototype,"disabled",void 0);_.S([_.R(),_.V("design:type",Object)],$z.prototype,"value",void 0);_.S([_.R(),_.V("design:type",Object)],$z.prototype,"noLabelFloat",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],$z.prototype,"noUnderline",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],$z.prototype,"theme",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],$z.prototype,"usePrimaryColor",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],$z.prototype,"hasBackground",void 0);_.S([_.R(),_.V("design:type",Object)],$z.prototype,"verticalAlign",void 0);_.S([_.R(),_.V("design:type",Object)],$z.prototype,"autosize",void 0);_.S([_.R(),_.V("design:type",Object)],$z.prototype,"minAutosizeWidth",void 0);_.S([_.R(),_.V("design:type",Object)],$z.prototype,"autosizeFont",void 0);
_.S([_.Ox("#entries"),_.V("design:type",Object)],$z.prototype,"entries",void 0);_.S([_.Ox("#input"),_.V("design:type",Object)],$z.prototype,"inputEl",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$z.prototype,"dataChanged",null);_.S([_.Ex("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$z.prototype,"valueChangedForBinding",null);
_.S([_.Yo("iron-overlay-opened"),_.Yo("iron-overlay-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],$z.prototype,"stopPropagation",null);_.S([_.Yo("iron-select"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$z.prototype,"autoSizeLabel",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],$z.prototype,"label",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],$z);
_.d($z,"ytd-dropdown-renderer",function(){if(xSR!==void 0)return xSR;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return xSR=Y},{mode:1});var CQX;var qJ=function(){var Y=_.Z.apply(this,arguments)||this;Y.isConstrainedList=!1;return Y};
_.m(qJ,_.Z);qJ.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"}}}};
qJ.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
qJ.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
qJ.prototype.computeViewAllHidden=function(Y,G){return Y||!G.viewAllEndpoint};
qJ.prototype.fillRestIfNoShowMore=qJ.prototype.fillRestIfNoShowMore;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],qJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.jx.YtLazyListBehavior),_.V("design:type",Object)],qJ.prototype,"ytLazyListBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],qJ.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],qJ.prototype,"isConstrainedList",void 0);_.S([_.Ex("data","canShowMore"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qJ.prototype,"fillRestIfNoShowMore",null);_.S([_.pD({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],qJ);
_.d(qJ,"ytd-expanded-shelf-contents-renderer",function(){if(CQX!==void 0)return CQX;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return CQX=Y},{mode:2});var y22;var sp=function(){return _.Z.apply(this,arguments)||this};
_.m(sp,_.Z);sp.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}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],sp.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],sp.prototype,"data",void 0);_.S([_.pD({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],sp);
_.d(sp,"ytd-feed-channel-filter-header-renderer",function(){if(y22!==void 0)return y22;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return y22=Y},{mode:1});var enU;var A2R;var onR;var cW=function(){return _.Z.apply(this,arguments)||this};
_.m(cW,_.Z);_.H=cW.prototype;_.H.onClick=function(Y){var G,u=(G=this.data)==null?void 0:G.sectionEndpoint;!_.hf(_.wG(Y),this.hostElement,["A".toString()])&&u&&_.$s(this.hostElement,"yt-navigate",{endpoint:u})};
_.H.computeHasSectionEndpoint=function(Y){return(Y==null?void 0:Y.sectionEndpoint)!==void 0};
_.H.computeShowHeaderAsLink=function(Y){return(Y==null?void 0:Y.header)!==void 0&&(Y==null?void 0:Y.sectionEndpoint)!==void 0};
_.H.computeShowSubheaderAsLink=function(Y){return(Y==null?void 0:Y.subheader)!==void 0&&(Y==null?void 0:Y.sectionEndpoint)!==void 0&&(Y==null?void 0:Y.header)===void 0};
_.H.getHeaderAsLinkClass=function(Y){var G=[],u;(Y==null?0:(u=Y.headerIcon)==null?0:u.iconType)&&G.push("header-link-active");return G.join(" ")};
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],cW.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],cW.prototype,"data",void 0);
_.S([_.R({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],cW.prototype,"hasSectionEndpoint",void 0);_.S([_.R({computed:"computeShowHeaderAsLink(data)"}),_.V("design:type",Boolean)],cW.prototype,"showHeaderAsLink",void 0);_.S([_.R({computed:"computeShowSubheaderAsLink(data)"}),_.V("design:type",Boolean)],cW.prototype,"showSubheaderAsLink",void 0);_.S([_.pD({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],cW);
_.d(cW,"ytd-medical-panel-section-renderer",function(){if(onR!==void 0)return onR;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return onR=Y},{mode:1});var Up=function(){var Y=_.Z.apply(this,arguments)||this;Y.isExpanded=!1;Y.roundedContainer=!0;Y.skipRoundingTop=!1;Y.toggleExpandableSection=function(){Y.isExpanded=!Y.isExpanded};
return Y};
_.m(Up,_.Z);
Up.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]]"}}}}}};
Up.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Up.prototype.dataChanged=Up.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Up.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Up.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Up.prototype,"isExpanded",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Up.prototype,"roundedContainer",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Up.prototype,"skipRoundingTop",void 0);_.S([_.R(),_.V("design:type",Object)],Up.prototype,"toggleExpandableSection",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Up.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Up);
_.d(Up,"ytd-medical-panel-content-renderer",function(){if(A2R!==void 0)return A2R;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return A2R=Y},{mode:1});_.Px("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var vW=function(){var Y=_.Z.apply(this,arguments)||this;Y.roundedContainer=!0;Y.extractOverlay=!1;Y.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");Y.hasTitle=!1;Y.linkIcon="OPEN_IN_NEW";Y.isDismissed=!1;return Y};
_.m(vW,_.Z);vW.prototype.onOverlayConditionsChange=function(){var Y=_.l0(this.hostElement).querySelector("ytd-info-panel-content-renderer");Y&&(Y.set("extractOverlay",this.extractOverlay),Y.set("roundedContainer",this.roundedContainer))};
vW.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]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
vW.prototype.computeHasTitle=function(Y){return!(Y==null||!Y.title)};
vW.prototype.onClick=function(Y){var G,u=(G=this.data)==null?void 0:G.headerEndpoint;!_.hf(_.wG(Y),this.hostElement,["BUTTON".toString()])&&u&&this.ytComponentBehavior.resolveCommand(u)};
_.Uk.Object.defineProperties(vW.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 Y;return((Y=this.data)==null?void 0:Y.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?void 0:Y.disableBottomDivider)||!((G=this.data)==null?0:G.title)}}});
vW.prototype.onOverlayConditionsChange=vW.prototype.onOverlayConditionsChange;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],vW.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],vW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],vW.prototype,"ytdReduxBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],vW.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],vW.prototype,"roundedContainer",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],vW.prototype,"extractOverlay",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],vW.prototype,"amsterdamEnabled",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.V("design:type",Object)],vW.prototype,"hasTitle",void 0);
_.S([_.R({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.f("data.background"),_.V("design:type",Object),_.V("design:paramtypes",[])],vW.prototype,"background",null);_.S([_.R({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.f("data.titleStyle"),_.V("design:type",Object),_.V("design:paramtypes",[])],vW.prototype,"titleStyle",null);
_.S([_.R({type:_.F("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.f("data.titleStyle"),_.V("design:type",Object),_.V("design:paramtypes",[])],vW.prototype,"showLinkIcon",null);_.S([_.R(),_.V("design:type",String)],vW.prototype,"linkIcon",void 0);_.S([_.R({type:_.F("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],vW.prototype,"hideDivider",null);
_.S([_.R({selectorArgs:["data.dismissStateEntityKey"],selector:function(Y,G){Y=_.v2(Y.entities,"dismissState",G);return(Y==null?void 0:Y.isDismissed)||(Y==null?void 0:Y.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(Y==null?void 0:Y.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.V("design:type",Object)],vW.prototype,"isDismissed",void 0);_.S([_.GO("roundedContainer","extractOverlay"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vW.prototype,"onOverlayConditionsChange",null);_.S([_.pD({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],vW);
_.d(vW,"ytd-info-panel-container-renderer",function(){if(enU!==void 0)return enU;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return enU=Y},{mode:1});var i4R;_.Px("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var JQ=function(){return _.Z.apply(this,arguments)||this};
_.m(JQ,_.Z);JQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
JQ.prototype.computeStyle=function(Y){return Y?Y:""};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],JQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],JQ.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.V("design:type",String)],JQ.prototype,"titleStyle",void 0);
_.S([_.pD({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],JQ);
_.$o()(JQ,"ytd-item-section-header-renderer",function(){if(i4R===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);i4R=Y}Y=i4R;return Y},{allowedProps:["data"],
mode:1});var RnU;var w5E,Z4_=function(){return w5E!==void 0?w5E:w5E=document.createElement("template")};
document.head.appendChild(Z4_().content);var DSM;_.Yi=new _.Sb("VOTING_ANIMATION_CONTROLLER_TOKEN");var dST=_.D(function(Y){var G=Y.data;var u=_.CH("div"),O=_.CH("div");Y=_.E(_.IE("VOTE_STATUS_NONE",void 0,"YPH5mf"));var Q=Y.next().value,M=Y.next().value,t=_.Oe(Dsj,function(){var k;return(k=G())==null?void 0:k.entityKey}),K=_.F("web_enable_voting_animation")||_.F("enable_music_web_cairo_voting_animation");
_.ii(function(){var k;((k=G().initialState)==null?0:k.status)&&M(G().initialState.status)});
var L=function(){var k,n,p=(n=(k=G().initialState)==null?void 0:k.votes)!=null?n:0,W;k=(W=G().initialState)==null?void 0:W.status;return k==="VOTE_STATUS_UPVOTED"?p-1:k==="VOTE_STATUS_DOWNVOTED"?p+1:p},g=function(){return Q()==="VOTE_STATUS_UPVOTED"?L()+1:Q()==="VOTE_STATUS_DOWNVOTED"?L()-1:L()},P=function(k){var n=k?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
M(n);var p=g(),W=_.sH().resolve(_.q3(_.Yi)),C=t();C&&(k&&(C==null?0:C.upvoteDefaultButtonOnTap)?_.W3(C.upvoteDefaultButtonOnTap,{form:{element:u.value},disableClickTracking:!0}):(C==null?0:C.upvoteToggledButtonOnTap)&&_.W3(C.upvoteToggledButtonOnTap,{form:{element:u.value},disableClickTracking:!0}));var e;k=(e=C==null?void 0:C.enableOptimisticReordering)!=null?e:G().enableOptimisticReordering;K&&W&&G().itemId&&k&&hnR(W,G().itemId,p,n)},I=function(k){var n=k?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
M(n);var p=g(),W=_.sH().resolve(_.q3(_.Yi)),C=t();C&&(k&&(C==null?0:C.downvoteDefaultButtonOnTap)?_.W3(C.downvoteDefaultButtonOnTap,{form:{element:O.value},disableClickTracking:!0}):(C==null?0:C.downvoteToggledButtonOnTap)&&_.W3(C.downvoteToggledButtonOnTap,{form:{element:O.value},disableClickTracking:!0}));var e;k=(e=C==null?void 0:C.enableOptimisticReordering)!=null?e:G().enableOptimisticReordering;K&&W&&G().itemId&&k&&hnR(W,G().itemId,p,n)};
Y={};Y=_.s3("ytVotingViewModelVoteCount",(Y.ytVotingViewModelVoteCountDisabled=function(){return G().isDisabled},Y));
return _.T("voting-view-model",{class:"ytVotingViewModelHost"},_.T("div",{el:u},_.T(_.HE,{data:function(){var k=_.z(G().upvoteButton,_.eD);return{toggleButtonViewModel:Object.assign({},k,{isToggled:Q()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(k){return _.T(_.Tr,{data:k.data,
onToggle:P})}})),_.T("div",{class:Y},function(){var k,n,p;
return Q()==="VOTE_STATUS_UPVOTED"?(k=G().initialState)==null?void 0:k.compactVotesUpvoted:Q()==="VOTE_STATUS_DOWNVOTED"?(n=G().initialState)==null?void 0:n.compactVotesDownvoted:(p=G().initialState)==null?void 0:p.compactVotes}),_.T("div",{el:O},_.T(_.HE,{data:function(){var k=_.z(G().downvoteButton,_.eD);
return{toggleButtonViewModel:Object.assign({},k,{isToggled:Q()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(k){return _.T(_.Tr,{data:k.data,
onToggle:I})}})))},"nd");_.hR(_.D(function(Y){var G=Y.data;return _.T("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.T("div",{class:_.s3("ytEngagementBarViewModelEngagementBarWrapper",Y.className)},_.T(_.HE,{data:function(){return G().actions}},{votingViewModel:dST})))},"od"),"engagement-bar-view-model",{props:{data:_.AC,
className:_.AC}});var G_=function(){var Y=_.Z.apply(this,arguments)||this;Y.playlistVotingAnimationEnabled=_.F("web_enable_voting_animation");Y.downloadProgress=0;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.downloadState="DOWNLOAD_STATE_UNKNOWN";Y.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";Y.offlineVideoPolicyExpirationTimestamp=0;return Y};
_.m(G_,_.Z);_.H=G_.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=_.F("kevlar_playlist_drag_handles")&&this.canReorder};
_.H.onDrag=function(){if(this.thumbnail){var Y=_.l0(this.thumbnail).querySelector("yt-image");Y&&(Y.shouldRenderLazy=!1)}};
_.H.onMenuOverlayChanged=function(Y,G){this.menuOpened=G};
_.H.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.H.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.H.onContentsTap=function(Y){var G,u=(G=this.data)==null?void 0:G.serviceEndpoints;if(u&&u.length===1&&_.z(u[0],SdA)&&!_.hf(_.wG(Y),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(u[0]);else{var O;(G=(O=this.data)==null?void 0:O.navigationEndpoint)&&_.F("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?b4T(_.sH().resolve(_.yo),G):(_.Qq().playlistSuggestionsShelfActivation=
!0,_.S8M(_.sH().resolve(_.yo),G)):G&&!_.hf(_.wG(Y),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.F("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.$s(this.hostElement,"yt-navigate",{endpoint:G}):this.ytComponentBehavior.resolveCommand(G))}};
_.H.computeStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.H.computeThumbnailWidth=function(Y){return Y==="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=MYA(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 Y,G,u,O=((Y=this.downloadRenderData)==null?void 0:Y.badges)&&((G=this.downloadRenderData)==null?void 0:G.badges)!==((u=this.data)==null?void 0:u.badges),Q,M,t;Y=((Q=this.downloadRenderData)==null?void 0:Q.thumbnailOverlays)&&((M=this.downloadRenderData)==null?void 0:M.thumbnailOverlays)!==((t=this.data)==null?void 0:t.thumbnailOverlays);(!this.downloadRenderData||O||Y)&&this.downloadStateChanged()}};
_.H.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var Y,G,u=(Y=this.data.menu)==null?void 0:(G=Y.menuRenderer)==null?void 0:G.items;if(u)for(Y=_.E(u),G=Y.next();!G.done;G=Y.next())if(G=G.value,u=void 0,_.z((u=G.menuServiceItemRenderer)==null?void 0:u.serviceEndpoint,_.zG)){var O=u=void 0,Q=void 0;G=(u=G)==null?void 0:(O=u.menuServiceItemRenderer)==null?void 0:(Q=O.serviceEndpoint)==null?void 0:Q.playlistEditEndpoint;Q=O=void 0;if(u=(O=G)==null?void 0:(Q=O.actions)==null?void 0:
Q[0])O=void 0,u.setVideoId=(O=this.data)==null?void 0:O.setVideoId;Q=O=u=void 0;if(G=(u=G)==null?void 0:(O=u.clientActions)==null?void 0:(Q=O[0])==null?void 0:Q.playlistRemoveVideosAction)u=void 0,G.setVideoIds=[(u=this.data)==null?void 0:u.setVideoId]}}};
_.Uk.Object.defineProperties(G_.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
G_.prototype.setVideoIdChanged=G_.prototype.setVideoIdChanged;G_.prototype.dataChanged=G_.prototype.dataChanged;G_.prototype.downloadStateChanged=G_.prototype.downloadStateChanged;G_.prototype.onMenuOverlayChanged=G_.prototype.onMenuOverlayChanged;G_.prototype.canReorderChanged=G_.prototype.canReorderChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],G_.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],G_.prototype,"ytdReduxBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],G_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],G_.prototype,"ytdLockupBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],G_.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],G_.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],G_.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],G_.prototype,"canReorder",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],G_.prototype,"menuOpened",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],G_.prototype,"handleIsHovered",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],G_.prototype,"persistentDragHandle",void 0);_.S([_.R(),_.V("design:type",Object)],G_.prototype,"downloadRenderData",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],G_.prototype,"styleType",void 0);_.S([_.R({computed:"computeThumbnailWidth(data.style)"}),_.V("design:type",Number)],G_.prototype,"thumbnailWidth",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],G_.prototype,"isDownloads",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],G_.prototype,"playlistVotingAnimationEnabled",void 0);
_.S([_.R({selector:rK,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],G_.prototype,"downloadProgress",void 0);_.S([_.R(),_.V("design:type",Number)],G_.prototype,"relativeDateReference",void 0);_.S([_.R({selector:_.mZ,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],G_.prototype,"transferState",void 0);_.S([_.R({selector:Uej,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],G_.prototype,"downloadState",void 0);
_.S([_.R({selector:Z8t,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],G_.prototype,"offlinePolicyAction",void 0);_.S([_.R({selector:Deg,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],G_.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.S([_.R({selector:dey,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],G_.prototype,"entityInfo",void 0);_.S([_.R({selector:_.FX}),_.V("design:type",Boolean)],G_.prototype,"miniplayerIsActive",void 0);
_.S([_.f("data"),_.V("design:type",String),_.V("design:paramtypes",[])],G_.prototype,"playlistVideoId",null);_.S([_.Ox("#thumbnail"),_.V("design:type",Object)],G_.prototype,"thumbnail",void 0);_.S([_.Ex("canReorder"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],G_.prototype,"canReorderChanged",null);
_.S([_.Yo("yt-menu-overlay-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Boolean]),_.V("design:returntype")],G_.prototype,"onMenuOverlayChanged",null);_.S([_.Ex("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],G_.prototype,"downloadStateChanged",null);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],G_.prototype,"dataChanged",null);_.S([_.Ex("data.setVideoId"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],G_.prototype,"setVideoIdChanged",null);_.S([_.pD({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],G_);
_.d(G_,"ytd-playlist-video-renderer",function(){if(DSM!==void 0)return DSM;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);Y.content.insertBefore(Z4_().content.cloneNode(!0),Y.content.firstChild);return DSM=Y},{mode:1});var NLT;var uk=function(){return _.Z.apply(this,arguments)||this};
_.m(uk,_.Z);_.S([_.R(),_.V("design:type",Object)],uk.prototype,"data",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],uk.prototype,"rendererBehavior",void 0);_.S([_.pD({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],uk);
_.d(uk,"ytd-premium-browse-footer-renderer",function(){if(NLT!==void 0)return NLT;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return NLT=Y},{mode:1});var jR1;var Ov=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return Y};
_.m(Ov,_.Z);_.H=Ov.prototype;_.H.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.H.handleDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.H.computeHeaderLogoThumbnail=function(Y,G){if(Y)return G?Y.darkLogo:Y.lightLogo};
_.H.computeHeaderLogoHeight=function(Y,G){var u,O,Q;return(Y=(u=this.computeHeaderLogoThumbnail(Y,G))==null?void 0:(O=u.thumbnails)==null?void 0:(Q=O[0])==null?void 0:Q.height)&&Y%31===0?"31":"24"};
_.H.computeHeaderLogoMarginBottom=function(Y,G){return this.computeHeaderLogoHeight(Y,G)==="24"?"0":"-7"};
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Ov.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ov.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],Ov.prototype,"isDarkTheme",void 0);_.S([_.R({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.V("design:type",Object)],Ov.prototype,"themeLogo",void 0);
_.S([_.R({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.V("design:type",String)],Ov.prototype,"logoHeight",void 0);_.S([_.R({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.V("design:type",String)],Ov.prototype,"logoMarginBottom",void 0);_.S([_.pD({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Ov);
_.d(Ov,"ytd-primetime-promo-header-renderer",function(){if(jR1!==void 0)return jR1;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return jR1=Y},{mode:1});var VvT;_.Qr=_.D(function(Y){var G=Y.className;var u=Y.data;var O=Y.isOverlay;var Q=Y.maxLinesOverride;var M=Y.useMediumText;var t=function(){return u().alwaysShowTruncationText},K=function(){return u().truncationText},L=function(){return M!==void 0&&M()?"medium":"small"},g=function(){return O!==void 0&&O()?"overlay":"default"},P=function(){var p,W;
return(W=(p=_.z(u().rendererContext,_.L$))==null?void 0:p.label)!=null?W:""};
Y=_.E(_.IE(!1,void 0,"llBUm"));var I=Y.next().value,k=Y.next().value;Y=_.U3(function(){u().expandOnTap&&k(!I());return!1});
var n={};return _.T("yt-description-preview-view-model",{el:_.iq(_.zi(function(){return u().rendererContext})),
class:_.s3("ytDescriptionPreviewViewModelHost",G,(n.ytDescriptionPreviewViewModelClickable=function(){var p;return!((p=_.z(u().rendererContext,_.mi))==null||!p.onTap)},n.ytDescriptionPreviewViewModelIsOverlay=O,n)),
"on:click":Y},_.T(_.X,{cond:function(){return u().description},
then:function(p){return _.T(_.X,{cond:I,then:function(){var W={};return _.T("div",{class:_.s3("ytDescriptionPreviewViewModelDescription",(W.ytDescriptionPreviewViewModelDescriptionMediumText=M,W))},_.T(_.eO,{text:p}))},
else:function(){return _.T(qN1,{text:p,alwaysShowTruncationText:t,truncationText:K,maxLines:function(){var W;return(W=Q==null?void 0:Q())!=null?W:u().maxLines},
textStyle:g,accessibilityLabel:P,textSize:L})}})}}))},"pd");
_.Qr.idomCompat=!0;var BL1=_.D(function(Y){var G=_.U3(function(Q){var M;(M=Y.onClick)==null||M.call(Y,Q)}),u={},O={};
return _.T("yt-shelf-header-layout",{class:_.s3("yt-shelf-header-layout",(u["yt-shelf-header-layout--disable-horizontal-padding"]=Y.disableHorizontalPadding,u["yt-shelf-header-layout--disable-vertical-padding"]=Y.disableVerticalPadding,u["yt-shelf-header-layout--responsive"]=Y.useResponsiveLayout,u["yt-shelf-header-layout--narrow"]=function(){var Q,M;return((Q=Y.useResponsiveLayout)==null?void 0:Q.call(Y))&&((M=Y.forceSmallLayout)==null?void 0:M.call(Y))},u["yt-shelf-header-layout--is-overlay"]=Y.isOverlay,
u["yt-shelf-header-layout--tappable"]=Y.isInteractive,u["yt-shelf-header-layout--optional-medium-layout-padding"]=Y.useUpdatedPadding,u)),
"on:click":G,tabindex:function(){var Q;return((Q=Y.isInteractive)==null?0:Q.call(Y))?0:void 0}},_.T("div",{class:"yt-shelf-header-layout__header-row"},_.T(_.X,{cond:Y.leadingIcon,
then:function(Q){return _.T("div",{class:"yt-shelf-header-layout__leading-icon"},_.T(_.GS,{icon:Q}))},
else:function(){return _.T(_.X,{cond:Y.hasLeadingImage,then:function(){var Q,M={};return _.T("div",{class:_.s3("yt-shelf-header-layout__leading-image",(M["yt-shelf-header-layout__leading-image--circular-image"]=Y.circularImage,M))},(Q=Y.leadingImage)==null?void 0:Q.call(Y))}})}}),_.T("div",{class:"yt-shelf-header-layout__label-container"},_.T(_.X,{cond:Y.hasSuperlabel,
then:function(){var Q;return _.T("div",{class:"yt-shelf-header-layout__superlabel"},(Q=Y.superlabel)==null?void 0:Q.call(Y))}}),_.T("div",{class:"yt-shelf-header-layout__title-row"},_.T(lw1,{text:Y.title,
className:_.s3("yt-shelf-header-layout__title",(O["yt-shelf-header-layout__title--small-title"]=Y.forceSmallLayout,O)),tagLevel:Y.tagLevel}),_.T(_.X,{cond:Y.hasDetail,then:function(){var Q;return _.T("div",{class:"yt-shelf-header-layout__detail"},(Q=Y.detail)==null?void 0:Q.call(Y))}})),_.T(_.X,{cond:Y.hasSublabel,
then:function(){var Q;return _.T("div",{class:"yt-shelf-header-layout__sublabel"},(Q=Y.sublabel)==null?void 0:Q.call(Y))}})),_.T(_.X,{cond:Y.hasTrailingActions,
then:function(){var Q;return _.T("div",{class:"yt-shelf-header-layout__trailing-actions"},(Q=Y.trailingActions)==null?void 0:Q.call(Y))}})),_.T(_.X,{cond:Y.hasBottomAccessory,
then:function(){var Q;return _.T("div",{class:"yt-shelf-header-layout__bottom-accessory"},(Q=Y.bottomAccessory)==null?void 0:Q.call(Y))}}))},"qd");
BL1.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var lw1=_.D(function(Y){var G=Y.text;var u=Y.className;var O=Y.tagLevel;return _.T(_.x4,null,_.T(_.m1,{when:function(){return(O==null?void 0:O())===0}},function(){return _.T("h2",{class:u},G())}),_.T(_.m1,{when:function(){return(O==null?void 0:O())===1}},function(){return _.T("h3",{class:u},G())}),_.T(_.m1,{when:function(){return(O==null?void 0:O())===2}},function(){return _.T("h4",{class:u},G())}),_.T(_.W4,null,function(){return _.T("h2",{class:u},G())}))},"rd");var sRR,$SX,q8X;_.Ml=_.D(function(Y){var G=Y.className;var u=Y.data;var O=Y.disableHorizontalPadding;var Q=Y.disableVerticalPadding;var M=Y.forceSmallLayout;var t=Y.useResponsiveLayout;var K=Y.isOverlay;Y=Y.useUpdatedPadding;return _.T("yt-section-header-view-model",{class:_.s3("ytSectionHeaderViewModelHost",G),style:_.Yh({"background-color":function(){return MF(u().backgroundColor)?_.nB(MF(u().backgroundColor)):void 0}})},_.T(BL1,{hasDetail:!1,
title:function(){return _.T(_.eO,{text:function(){return u().headline}})},
hasTitle:!0,sublabel:function(){return _.T($SX,{data:u})},
hasSublabel:function(){return!!u().sublabel||!!u().bottomBadge},
superlabel:function(){return _.T(q8X,{data:u})},
hasSuperlabel:function(){return!!u().superlabel||!!u().topBadge},
leadingImage:function(){return _.T(sRR,{leadingAccessory:function(){return u().leadingAccessory}})},
hasLeadingImage:function(){return!!u().leadingAccessory},
trailingActions:function(){return _.T(_.HE,{data:function(){return u().trailingActions}},{flexibleActionsViewModel:_.W7})},
hasTrailingActions:function(){return!!u().trailingActions},
disableHorizontalPadding:function(){return(O==null?void 0:O())||u().disableHorizontalPadding},
disableVerticalPadding:Q,forceSmallLayout:M,useResponsiveLayout:t,isOverlay:K,isInteractive:function(){return!!_.F9(u().rendererContext)},
onClick:function(L){if(_.pK(u().rendererContext)){var g=_.F9(u().rendererContext);g&&_.pd(g,{form:{element:L.target,event:L}})}},
bottomAccessory:function(){return _.T(_.HE,{data:function(){return u().bottomAccessory}},{descriptionPreviewViewModel:function(L){return _.T(_.Qr,{data:L.data,
useMediumText:!0})},
commonMarkViewModel:function(L){L=L.data;var g;return _.T(_.GY,null,(g=_.sH().resolve(_.q3(agk)))==null?void 0:g({data:L}))}})},
hasBottomAccessory:function(){return!!u().bottomAccessory},
useUpdatedPadding:Y}))},"sd");
sRR=_.D(function(Y){var G=Y.leadingAccessory;return _.T(_.GY,null,_.T(_.X,{cond:function(){var u;return(u=G().image)!=null?u:_.e0(G().themedImage)},
then:function(u){return _.T(_.RD,{data:u,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.T(_.X,{cond:function(){return _.z(G().avatar,_.WE)},
then:function(u){return _.T(_.z$,{data:u})}}))},"td");
$SX=_.D(function(Y){var G=Y.data;return _.T(_.GY,null,_.T(_.X,{cond:function(){return _.z(G().bottomBadge,csR)},
then:function(u){var O={};return _.T(_.b2,{data:u,class:_.s3((O.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!u()&&!!G().sublabel},O))})}}),_.T(_.X,{cond:function(){return G().sublabel},
then:function(u){return _.T(_.eO,{text:u})}}))},"ud");
q8X=_.D(function(Y){var G=Y.data;return _.T(_.GY,null,_.T(_.X,{cond:function(){return _.z(G().topBadge,csR)},
then:function(u){var O={};return _.T(_.b2,{data:u,class:_.s3((O.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!u()&&!!G().superlabel},O))})}}),_.T(_.X,{cond:function(){return G().superlabel},
then:function(u){return _.T(_.eO,{text:u})}}))},"vd");_.hR(_.Ml,"yt-section-header-view-model",{props:{data:_.AC,className:_.AC,disableHorizontalPadding:_.AC,disableVerticalPadding:_.AC,forceSmallLayout:_.AC,useResponsiveLayout:_.AC,isOverlay:_.AC,useUpdatedPadding:_.AC}});_.Px("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Hi=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return Y};
_.m(Hi,_.Z);_.H=Hi.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 Y=this;_.sk(this,function(){Y.updateItemVisibility()})};
_.H.onUpdateElementsPerRowAction=function(Y){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y,this.updateItemVisibility())};
_.H.updateItemVisibility=function(){var Y=this;this.data&&this.data.panels&&_.l0(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(G,u){G.hidden=u>Y.elementsPerRow-1})};
_.H.requestElementsPerRow=function(){_.$s(this.hostElement,"yt-request-elements-per-row")};
Hi.prototype.onDataChange=Hi.prototype.onDataChange;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],Hi.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Hi.prototype,"actionHandlerBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],Hi.prototype,"data",void 0);_.S([_.R({value:3}),_.V("design:type",Number)],Hi.prototype,"elementsPerRow",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Hi.prototype,"onDataChange",null);_.S([_.pD({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Hi);
_.d(Hi,"ytd-primetime-promo-renderer",function(){if(VvT!==void 0)return VvT;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return VvT=Y},{mode:1});var c2R;var Ev=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return Y};
_.m(Ev,_.Z);Ev.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Ev.prototype.handleButtonRefreshAction=function(Y){if(Y=_.z(Y,aI1))this.set("data.button",Y.membershipButton),this.notifyPath("data.button")};
_.Uk.Object.defineProperties(Ev.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?void 0:(G=Y.avatars)==null?void 0:G.slice(0,8))||[]}}});
_.S([_.R(),_.V("design:type",Object)],Ev.prototype,"data",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Ev.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ev.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ev.prototype,"rendererBehavior",void 0);_.S([_.f("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],Ev.prototype,"avatars",null);
_.S([_.pD({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Ev);
_.d(Ev,"ytd-recognition-shelf-renderer",function(){if(c2R!==void 0)return c2R;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return c2R=Y},{mode:1});var USe;var vnl;var t4=function(){var Y=_.Z.apply(this,arguments)||this;Y.modernButtons=_.F("web_modern_buttons");return Y};
_.m(t4,_.Z);_.H=t4.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(Y,G){return Y!==void 0&&Y.items?G?Y.items.slice(0,this.data.collapsedItemCount):Y.items:[]};
_.H.computeHideShowMore=function(Y,G,u){return Y>=G||!u};
_.H.computeHideShowAll=function(Y,G,u){return!(Y&&G)||u};
_.H.onMoreClick=function(){this.collapsed=!1};
_.Uk.Object.defineProperties(t4.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.F("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Yg("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.F("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
t4.prototype.dataChanged=t4.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],t4.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],t4.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],t4.prototype,"isSearch",void 0);
_.S([_.R({computed:"computeVisibleItems(data,collapsed)"}),_.V("design:type",Array)],t4.prototype,"visibleItems",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],t4.prototype,"collapsed",void 0);_.S([_.R({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.V("design:type",Boolean)],t4.prototype,"hideShowMore",void 0);
_.S([_.R({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.V("design:type",Boolean)],t4.prototype,"hideShowAll",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],t4.prototype,"modernButtons",void 0);_.S([_.f("isSearch"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],t4.prototype,"typographyBump",null);
_.S([_.f("isSearch"),_.V("design:type",Object),_.V("design:paramtypes",[])],t4.prototype,"lockupExperiments",null);_.S([_.f("isSearch"),_.V("design:type",String),_.V("design:paramtypes",[])],t4.prototype,"thumbnailWidth",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],t4.prototype,"dataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],t4);
_.d(t4,"ytd-vertical-list-renderer",function(){if(vnl!==void 0)return vnl;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return vnl=Y},{mode:1});var J24=_.hV(["#"]);_.Px("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var KS=function(){var Y=_.Z.apply(this,arguments)||this;Y.isConstrainedList=!1;return Y};
_.m(KS,_.Z);_.H=KS.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(Y){return Y||""};
_.H.computePlaceAnnotationUnderTitle=function(){var Y;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((Y=this.data)==null?void 0:Y.thumbnailStyle)||"")};
_.H.computeHrefWithDefault=function(Y){return this.ytComponentBehavior.computeHref_(Y)||_.r0a(J24)};
_.H.computeIsPromoShelf=function(Y){var G;return(Y=Y==null?void 0:(G=Y[0])==null?void 0:G.metadataBadgeRenderer)?Y.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.H.computePlaceBadgeBesideTitle=function(Y){var G;return(Y==null?0:(G=Y[0])==null?0:G.metadataBadgeRenderer)?!this.computeIsPromoShelf(Y):!1};
_.H.computeMenuIcon=function(Y){return this.computeIsPromoShelf(Y)?"yt-icons:more_vert":"yt-icons:more"};
_.H.onDataChange=function(){var Y,G;((Y=this.data)==null?0:(G=Y.content)==null?0:G.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.H.onLockupRequested=function(Y){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&Y.detail&&Y.detail.videoIds){for(var G=this.data.content.gridRenderer.items,u=new Set,O=_.E(Y.detail.videoIds),Q=O.next();!Q.done;Q=O.next())u.add(Q.value);Y.detail.returnValue=G.filter(function(M){return M.gridVideoRenderer&&M.gridVideoRenderer.videoId&&u.has(M.gridVideoRenderer.videoId)}).map(function(M){return M.gridVideoRenderer})}};
_.H.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
KS.prototype.onLockupRequested=KS.prototype.onLockupRequested;KS.prototype.onDataChange=KS.prototype.onDataChange;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],KS.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],KS.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.aZ),_.V("design:type",Object)],KS.prototype,"ironResizableBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],KS.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],KS.prototype,"isSearch",void 0);_.S([_.R(),_.V("design:type",Object)],KS.prototype,"isConstrainedList",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("kevlar_fluid_dismiss")}}),
_.V("design:type",Boolean)],KS.prototype,"enableFluidDismiss",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.V("design:type",String)],KS.prototype,"thumbnailStyle",void 0);_.S([_.R({computed:"computeMenuIcon(data.badges)"}),_.V("design:type",String)],KS.prototype,"menuIcon",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.V("design:type",Boolean)],KS.prototype,"featuredPromo",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],KS.prototype,"onDataChange",null);_.S([_.Yo("yt-lockup-requested"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],KS.prototype,"onLockupRequested",null);_.S([_.pD({is:"ytd-shelf-renderer",disableElementRegistration:!0})],KS);
_.d(KS,"ytd-shelf-renderer",function(){if(USe!==void 0)return USe;var Y=document.createElement("template");_.r(Y,'\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          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\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          </div>\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return USe=Y},{mode:1});var YO_;var ag=function(){return _.Z.apply(this,arguments)||this};
_.m(ag,_.Z);ag.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Uk.Object.defineProperties(ag.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ag.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ag.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ag.prototype,"data",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],ag.prototype,"isPlaylist",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],ag.prototype,"isClipList",void 0);
_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],ag.prototype,"isPlaylistPageWithFilters",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],ag.prototype,"hasTitle",null);_.S([_.R(),_.f("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.V("design:type",Object),_.V("design:paramtypes",[])],ag.prototype,"isRightAligned",null);
_.S([_.pD({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],ag);
_.d(ag,"ytd-sort-filter-header-renderer",function(){if(YO_!==void 0)return YO_;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return YO_=Y},{mode:1});var GKT;var T_=function(){var Y=_.Z.apply(this,arguments)||this;Y.enableRightArrowHidden=_.F("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return Y};
_.m(T_,_.Z);T_.prototype.attached=function(){var Y=this;this.enableRightArrowHidden&&(this.JSC$16886_throttledOnResize=new _.JR(function(){var G;(G=Y.ytdHorizontalListBehavior)==null||G.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var G;
(G=Y.JSC$16886_throttledOnResize)==null||G.fire()}),this.resizeObserver.observe(this.hostElement))};
T_.prototype.detached=function(){if(this.enableRightArrowHidden){var Y;(Y=this.resizeObserver)==null||Y.disconnect();var G;(G=this.JSC$16886_throttledOnResize)==null||G.dispose()}};
T_.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]]"}}}}}};
T_.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Uk.Object.defineProperties(T_.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.F("enable_creator_details_shelf_m2")){var Y=[],G;((G=this.data)==null?0:G.creatorVideosButton)&&Y.push(this.data.creatorVideosButton);var u;((u=this.data)==null?0:u.creatorAboutButton)&&Y.push(this.data.creatorAboutButton);G=_.E(this.data.creatorCustomUrlButtons||[]);for(u=G.next();!u.done;u=G.next())Y.push(u.value);return Y}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.F("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],T_.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],T_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.V8.YtdHorizontalListBehavior),_.V("design:type",Object)],T_.prototype,"ytdHorizontalListBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],T_.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],T_.prototype,"engagementPanel",void 0);
_.S([_.R(),_.V("design:type",Object)],T_.prototype,"enableRightArrowHidden",void 0);_.S([_.f("enableRightArrowHidden","atEnd"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],T_.prototype,"hideRightArrow",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],T_.prototype,"creatorCustomUrlButtons",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data","creatorCustomUrlButtons"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],T_.prototype,"showCreatorCustomUrlButtons",null);_.S([_.f("showCreatorCustomUrlButtons"),_.V("design:type",Number),_.V("design:paramtypes",[])],T_.prototype,"channelAvatarSize",null);_.S([_.pD({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],T_);
_.d(T_,"ytd-video-description-infocards-section-renderer",function(){if(GKT!==void 0)return GKT;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return GKT=Y},{mode:2});var uj_;var LS=function(){return _.Z.apply(this,arguments)||this};
_.m(LS,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],LS.prototype,"data",void 0);_.S([_.R({computed:"computeIcon_(data.infoIcon)"}),_.V("design:type",Object)],LS.prototype,"infoIcon",void 0);_.S([_.pD({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],LS);
_.d(LS,"ytd-eom-settings-disclaimer-renderer",function(){if(uj_!==void 0)return uj_;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return uj_=Y},{mode:1});var OeM;var gm=function(){return _.Z.apply(this,arguments)||this};
_.m(gm,_.Z);_.Uk.Object.defineProperties(gm.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.suppressPaddingDisclaimer)}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],gm.prototype,"componentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],gm.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],gm.prototype,"suppressPaddingDisclaimer",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],gm);
_.d(gm,"ytd-product-list-header-renderer",function(){if(OeM!==void 0)return OeM;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return OeM=Y},{mode:1});var QMR;var Xb=function(){return _.Z.apply(this,arguments)||this};
_.m(Xb,_.Z);Xb.prototype.computeThumbnailStyle=function(Y){if(Y&&(Y=_.k3(Y)))return"background-color:"+Y+";"};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Xb.prototype,"rendererBehaviors",void 0);_.S([_.R(),_.V("design:type",Object)],Xb.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Xb);
_.d(Xb,"ytd-hashtag-tile-renderer",function(){if(QMR!==void 0)return QMR;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return QMR=Y},{mode:1});var M2E;var Pi=function(){return _.Z.apply(this,arguments)||this};
_.m(Pi,_.Z);Pi.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}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Pi.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Pi);
_.d(Pi,"ytd-sponsorships-alert-renderer",function(){if(M2E!==void 0)return M2E;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return M2E=Y},{mode:1});var HeR;var Ig=function(){return _.Z.apply(this,arguments)||this};
_.m(Ig,_.Z);Ig.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Uk.Object.defineProperties(Ig.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.F("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.F("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.S([_.x(_.rW),_.V("design:type",Object)],Ig.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],Ig.prototype,"ytdLockupBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.S([_.R({selector:_.zS}),_.V("design:type",Object)],Ig.prototype,"isGridViewEnabled",void 0);
_.S([_.f("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ig.prototype,"watchFeedBigThumbs",null);_.S([_.f("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],Ig.prototype,"thumbnailWidth",null);_.S([_.R(),_.V("design:type",Object)],Ig.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Ig);
_.d(Ig,"ytd-compact-movie-renderer",function(){if(HeR!==void 0)return HeR;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return HeR=Y},{mode:1});var Em_;var t2e;var KFR=_.DE("HTML_DIR")==="rtl",ki=function(){var Y=_.Z.apply(this,arguments)||this;Y.engagementPanel=!1;Y.maxLines=2;Y.expandButtonOffset=0;Y.showExpandButton=!1;Y.isTruncated=!1;Y.isExpanded=!1;Y.currentSnippetType=2;Y.alwaysShowExpandButton=!1;Y.JSC$16903_lastWidth=NaN;Y.observer=null;Y.left=0;Y.right=0;Y.mid=0;Y.longestSnippetLength=0;Y.isFinalSnippet=!1;Y.isFirstMutation=!1;Y.isResetMutation=!1;Y.OVERFLOW_THRESHOLD=5;return Y};
_.m(ki,_.Z);_.H=ki.prototype;_.H.onClick=function(Y){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.hf(_.wG(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var G;if((G=window.getSelection())==null||!G.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(){_.F("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.H.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.H.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.R0(new _.I2("AttributedSnippet is empty when the description is not empty",this.text))};
_.H.mutationCallback=function(){if(this.observer!=null){var Y=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var G=Math.floor(Y*this.maxLines/8);this.setSnippetText(this.text,G);G!==0||this.attributedTextIsEmpty()||_.R0(new _.I2("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;Y=Y*this.maxLines/8;this.left=0;var u;this.right=Math.min(Y*2,(u=(G=this.simpleText)==null?void 0:G.length)!=null?u: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(Y){var G=this;this.observer||(this.observer=new MutationObserver(function(){G.mutationCallback()}));
this.observer.observe(Y,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.H.attached=function(){var Y=this;_.sk(this,function(){Y.resize()})};
_.H.isExpandedChanged=function(){_.$s(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 Y="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((KFR?"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",Y);this.snippetContainer.style.setProperty("mask-image",
Y)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(KFR?"right":"left",this.expandButtonOffset+"px")};
_.H.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.H.setSnippetText=function(Y,G){Y||(Y={});if(_.ek(Y)){var u=yZ(Y,G);u.attachmentRuns||u.commandRuns||u.decorationRuns||u.styleRuns||u.alignment||u.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:yZ(Y,G),headerRuns:kZj(G,this.headerRuns)},this.currentSnippetType=0):_.R0(new _.I2("Tried to set snippet text when HTML element was null",Y)):(this.plainSnippetText.textContent=fd(Y.content||"",G),this.currentSnippetType=2)}else{a:{u=hDt(Y,G);if(u.runs){u=_.E(u.runs);for(var O=
u.next();!O.done;O=u.next())if(O=O.value,O.bold||O.deemphasize||O.italics||O.strikethrough||O.textColor||O.navigationEndpoint||_.z(O,ID)){u=!0;break a}}u=!1}u?this.formattedSnippetText?(this.formattedSnippetText.text=hDt(Y,G),this.currentSnippetType=1):_.R0(new _.I2("Tried to set snippet text when HTML element was null",Y)):(this.plainSnippetText.textContent=fd(_.Ri(Y),G),this.currentSnippetType=2)}};
_.H.attributedSnippetIsEmpty=function(){var Y=this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl:this.plainSnippetText;return _.F("web_wiz_attributed_string")?Y.innerText.length===0:Y.childNodes.length===0};
_.H.attributedTextIsEmpty=function(){var Y=this.text;if(!_.ek(Y))return!0;var G;return((G=Y.content)==null?void 0:G.length)===0?!0:!1};
_.H.resize=function(Y){if(this.snippetText){if(Y===void 0?0:Y)this.JSC$16903_lastWidth=NaN;var G=this.hostElement.offsetWidth;if(G!==this.JSC$16903_lastWidth&&!this.isExpanded)if(this.JSC$16903_lastWidth=G,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;Y=0;var u,O;G=Math.min(G*this.maxLines/8*2,(O=(u=this.simpleText)==null?void 0:u.length)!=null?O:0)-1;for(u=0;Y<=G;)O=Math.floor(Y+(G-Y)/2),this.setSnippetText(this.text,O),this.isOverflowing()?G=O-1:(Y=O+1,u=O);this.setSnippetText(this.text,u);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 Y=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.F("inline_expander_reset_focus_killswitch")||_.sk(this,function(){var G;((G=_.sH().resolve(_.q3(_.SO)))==null?0:G.isKeyBoardInUse())&&_.$q(Y.hostElement)});
_.$s(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.H.onCollapseClick=function(){this.collapse();_.$s(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 Y=this.expandSizer;return Y?KFR?Y.offsetParent?Y.offsetParent.offsetWidth-Y.offsetWidth-Y.offsetLeft:0:Y.offsetLeft:0};
_.Uk.Object.defineProperties(ki.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.ek(this.text)?this.text.content||"":_.Ri(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 _.ek(this.text)?!0:this.text&&_.F("web_replace_formatted_with_attributed_string")&&VBj(this.text)?(this.text=_.P3(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}}});
ki.prototype.onTextChanged=ki.prototype.onTextChanged;ki.prototype.updateMaskAndExpandButtonOffset=ki.prototype.updateMaskAndExpandButtonOffset;ki.prototype.updateSnippetContainerMaxHeight=ki.prototype.updateSnippetContainerMaxHeight;ki.prototype.isExpandedChanged=ki.prototype.isExpandedChanged;ki.prototype.updateTextOnSnippetTypeChange=ki.prototype.updateTextOnSnippetTypeChange;ki.prototype.updateIsFormattedExpanded=ki.prototype.updateIsFormattedExpanded;ki.prototype.updateIsAttributedExpanded=ki.prototype.updateIsAttributedExpanded;
ki.prototype.onClick=ki.prototype.onClick;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ki.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ki.prototype,"text",void 0);_.S([_.R(),_.V("design:type",Array)],ki.prototype,"headerRuns",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ki.prototype,"engagementPanel",void 0);_.S([_.R(),_.V("design:type",Object)],ki.prototype,"maxLines",void 0);
_.S([_.R(),_.V("design:type",String)],ki.prototype,"expandLabel",void 0);_.S([_.R(),_.V("design:type",String)],ki.prototype,"collapseLabel",void 0);_.S([_.R(),_.V("design:type",Object)],ki.prototype,"expandCommand",void 0);_.S([_.R(),_.V("design:type",Object)],ki.prototype,"expandButtonOffset",void 0);_.S([_.f("text"),_.V("design:type",String),_.V("design:paramtypes",[])],ki.prototype,"simpleText",null);
_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ki.prototype,"onClick",null);_.S([_.f("text","isExpanded"),_.V("design:type",Object),_.V("design:paramtypes",[])],ki.prototype,"expandedText",null);_.S([_.f("headerRuns","isExpanded"),_.V("design:type",Object),_.V("design:paramtypes",[])],ki.prototype,"expandedHeaderRuns",null);
_.S([_.f("text"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ki.prototype,"hasAttributedStringText",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ki.prototype,"showExpandButton",void 0);_.S([_.f("collapseLabel","isExpanded"),_.V("design:type",Object),_.V("design:paramtypes",[])],ki.prototype,"showCollapseButton",null);_.S([_.R(),_.V("design:type",Object)],ki.prototype,"isTruncated",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ki.prototype,"isExpanded",void 0);_.S([_.R(),_.V("design:type",Boolean)],ki.prototype,"isAttributedExpanded",void 0);_.S([_.GO("isExpanded","hasAttributedStringText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ki.prototype,"updateIsAttributedExpanded",null);_.S([_.R(),_.V("design:type",Boolean)],ki.prototype,"isFormattedExpanded",void 0);
_.S([_.GO("isExpanded","hasAttributedStringText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ki.prototype,"updateIsFormattedExpanded",null);_.S([_.R(),_.V("design:type",Number)],ki.prototype,"currentSnippetType",void 0);_.S([_.f("currentSnippetType"),_.V("design:type",Object),_.V("design:paramtypes",[])],ki.prototype,"useAttributedSnippet",null);
_.S([_.f("currentSnippetType"),_.V("design:type",Object),_.V("design:paramtypes",[])],ki.prototype,"useFormattedSnippet",null);_.S([_.f("currentSnippetType"),_.V("design:type",Object),_.V("design:paramtypes",[])],ki.prototype,"usePlainSnippet",null);_.S([_.R(),_.V("design:type",Object)],ki.prototype,"alwaysShowExpandButton",void 0);_.S([_.GO("currentSnippetType"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ki.prototype,"updateTextOnSnippetTypeChange",null);
_.S([_.R(),_.V("design:type",Object)],ki.prototype,"attributedSnippetText",void 0);_.S([_.Ox("#snippet"),_.V("design:type",HTMLElement)],ki.prototype,"snippetContainer",void 0);_.S([_.Ox("#snippet-text"),_.V("design:type",HTMLElement)],ki.prototype,"snippetText",void 0);_.S([_.Ox("#plain-snippet-text"),_.V("design:type",HTMLElement)],ki.prototype,"plainSnippetText",void 0);_.S([_.Ox("#formatted-snippet-text"),_.V("design:type",Object)],ki.prototype,"formattedSnippetText",void 0);
_.S([_.Ox("#attributed-snippet-text"),_.V("design:type",HTMLElement)],ki.prototype,"attributedSnippetTextEl",void 0);_.S([_.Ox("#expand"),_.V("design:type",HTMLElement)],ki.prototype,"expandButton",void 0);_.S([_.Ox("#expand-sizer"),_.V("design:type",HTMLElement)],ki.prototype,"expandSizer",void 0);_.S([_.Ex("isExpanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ki.prototype,"isExpandedChanged",null);
_.S([_.GO("isExpanded","maxLines"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ki.prototype,"updateSnippetContainerMaxHeight",null);_.S([_.GO("isTruncated","showExpandButton","expandButtonOffset"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ki.prototype,"updateMaskAndExpandButtonOffset",null);
_.S([_.Ex("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ki.prototype,"onTextChanged",null);_.S([_.pD({is:"ytd-text-inline-expander",disableElementRegistration:!0})],ki);
_.d(ki,"ytd-text-inline-expander",function(){if(t2e===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);t2e=Y}Y=t2e;return Y},{mode:2});var nS=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return Y};
_.m(nS,_.Z);nS.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
nS.prototype.handleUpdateDescriptionAction=function(Y){if(Y=_.z(Y,_.Wu1))if(Y.attributedDescription)this.set("data.attributedDescriptionBodyText",Y.attributedDescription);else if(Y.description){var G;((G=this.data)==null?0:G.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.P3(Y.description)):this.set("data.descriptionBodyText",Y.description)}};
_.Uk.Object.defineProperties(nS.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!((Y=this.data)==null||!Y.attributedDescriptionBodyText)||!((G=this.data)==null||!G.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null?0:Y.collapsedLineCount){var G;return(G=this.data)==null?void 0:G.collapsedLineCount}Y=_.Jy("web_watch_description_collapsed_default_lines",12);if(_.F("ww_desc_line_page_size_ks"))return Y;G=Math.round(_.Ob().height*_.Jy("web_watch_description_screen_height_percentage",.5)/20);return Math.max(G,Y)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return(u=(Y=this.data)==null?void 0:Y.descriptionBodyText)!=null?u:(G=this.data)==null?void 0:G.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.sourceAttributions}}});
nS.prototype.panelContentVisibleChanged=nS.prototype.panelContentVisibleChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],nS.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],nS.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],nS.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Boolean)],nS.prototype,"panelContentVisible",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],nS.prototype,"engagementPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],nS.prototype,"shortsPanel",void 0);_.S([_.Ox("#inline-expander"),_.V("design:type",Object)],nS.prototype,"inlineExpander",void 0);
_.S([_.GO("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nS.prototype,"panelContentVisibleChanged",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],nS.prototype,"hasDescriptionText",null);_.S([_.f("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],nS.prototype,"collapsedLines",null);
_.S([_.f("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.V("design:type",Object),_.V("design:paramtypes",[])],nS.prototype,"descriptionText",null);_.S([_.f("data","data.headerRuns"),_.V("design:type",Object),_.V("design:paramtypes",[])],nS.prototype,"headerRuns",null);_.S([_.f("data","data.sourceAttributions"),_.V("design:type",Object),_.V("design:paramtypes",[])],nS.prototype,"sourceAttributions",null);
_.S([_.pD({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],nS);
_.d(nS,"ytd-expandable-video-description-body-renderer",function(){if(Em_!==void 0)return Em_;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Em_=Y},{mode:2});var a7T;var Tv_=_.D(function(Y){var G=Y.data;return _.T("factoid-renderer",{class:"ytwFactoidRendererHost"},_.T("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return G().accessibilityText}},_.T("span",{class:"ytwFactoidRendererValue"},_.T(_.eO,{text:function(){return G().value}})),_.T("span",{class:"ytwFactoidRendererLabel"},_.T(_.eO,{text:function(){return G().label}}))))},"wd");_.hR(Tv_,"factoid-renderer",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=Y.data;return _.T("upload-time-factoid-renderer",null,_.T(_.HE,{data:function(){return G().factoid}},{factoidRenderer:Tv_}))},"xd"),"upload-time-factoid-renderer",{props:{data:_.wH}});_.hR(_.D(function(Y){var G=Y.data;return _.T("view-count-factoid-renderer",null,_.T(_.HE,{data:function(){return G().factoid}},{factoidRenderer:Tv_}))},"yd"),"view-count-factoid-renderer",{props:{data:_.wH}});var Fb=function(){var Y=_.Z.apply(this,arguments)||this;Y.shortsPanel=!1;Y.engagementPanel=!1;Y.watchWhileSdp=_.F("shorts_desktop_watch_while_sdp");return Y};
_.m(Fb,_.Z);Fb.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"}}}}};
_.Uk.Object.defineProperties(Fb.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var Y;return(Y=this.data)==null?void 0:Y.channel}}});
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Fb.prototype,"componentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Fb.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Fb.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Fb.prototype,"shortsPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Fb.prototype,"engagementPanel",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Fb.prototype,"watchWhileSdp",void 0);_.S([_.f("shortsPanel","engagementPanel","data.channel"),_.V("design:type",Object),_.V("design:paramtypes",[])],Fb.prototype,"showChannelInfo",null);_.S([_.pD({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],Fb);
_.d(Fb,"ytd-video-description-header-renderer",function(){if(a7T!==void 0)return a7T;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return a7T=Y},{mode:1});var LFM;var pS=function(){return _.Z.apply(this,arguments)||this};
_.m(pS,_.Z);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],pS.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],pS.prototype,"noPadding",void 0);_.S([_.R(),_.V("design:type",Object)],pS.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],pS);
_.d(pS,"ytd-list-item-view-model",function(){if(LFM!==void 0)return LFM;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return LFM=Y},{mode:1});var gmk;var XXe;var PKk;var I7k;var z_=function(){var Y=_.Z.apply(this,arguments)||this;Y.adaptiveFullWidth=!1;Y.modernButtons=_.F("web_modern_buttons");Y.buttonOverrides={style:"call-to-action",type:"filled"};Y.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return Y};
_.m(z_,_.Z);z_.prototype.handleSetTimestamp_=function(Y){this.data&&this.data.shortUrl&&(_.l0(this.hostElement).querySelector("#share-url").value=Y.isSet?_.YI(this.data.shortUrl,"t",Y.timestamp):this.data.shortUrl)};
z_.prototype.handleSignalActionCopyShareUrl_=function(Y,G){(_.F("killswitch_copy_link_target_check")||_.l0(this.hostElement).querySelector("#copy-button")===G)&&this.copyUrlToClipboard()};
z_.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.l0(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
z_.prototype.computeStyle_=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],z_.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],z_.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],z_.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.V("design:type",String)],z_.prototype,"rendererStyle",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],z_.prototype,"adaptiveFullWidth",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],z_.prototype,"modernButtons",void 0);_.S([_.R(),_.V("design:type",Object)],z_.prototype,"buttonOverrides",void 0);_.S([_.Ff({is:"yt-copy-link-renderer",disableElementRegistration:!0})],z_);
_.d(z_,"yt-copy-link-renderer",function(){if(I7k===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;PKk===void 0&&(PKk=document.createElement("template"));var O=PKk;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);I7k=Y}Y=I7k;return Y},{mode:2});_.Px("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var md=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return Y};
_.m(md,_.Z);_.H=md.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 Y=_.sH().resolve(_.q3(_.SO));Y&&(this.keyboardFocused=Y.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 Y=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;Y&&this.ytComponentBehavior.resolveCommand(Y);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.H.handleUpdateToggleAction_=function(Y){(Y=_.z(Y,b3l))&&this.data&&Y.targetId==this.data.targetId&&this.set("data.toggled",Y.toggled)};
_.H.toBoolean_=function(Y){return!!Y};
_.H.reset=function(){};
_.H.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("data-changed",this.data))};
_.H.updateDataToggledFromBinding=function(Y){this.set("data.toggled",Y.detail.value)};
md.prototype.dataChangedForBinding=md.prototype.dataChangedForBinding;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],md.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],md.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],md.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],md.prototype,"data",void 0);_.S([_.R({computed:"computeDescription_(data.*)"}),_.V("design:type",Object)],md.prototype,"description_",void 0);_.S([_.R({value:function(){return!!_.sH().resolve(_.q3(_.SO))&&_.F("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.V("design:type",Boolean)],md.prototype,"useKeyboardFocused",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],md.prototype,"keyboardFocused",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],md.prototype,"dataChangedForBinding",null);_.S([_.Ff({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],md);
_.d(md,"yt-toggle-form-field-renderer",function(){if(XXe===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;gmk===void 0&&(gmk=document.createElement("template"));var O=gmk;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);XXe=Y}Y=XXe;return Y},{mode:2});var kK_;var nme;var Wi=function(){var Y=_.Z.apply(this,arguments)||this;Y.isDarkTheme=!1;Y.isSearch=!1;Y.noTopMargin=_.F("kevlar_watch_no_top_margin");Y.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 Y};
_.m(Wi,_.Z);_.H=Wi.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 Y=this.getSelectedIndex();if(Y>0)this.selected=Y;else{this.selected=0;var G,u;(G=this.ytScrollableChipCloudBehavior)==null||(u=G.reset)==null||u.call(G)}};
_.H.getSelectedIndex=function(){var Y;if((Y=this.data)==null||!Y.chips)return-1;Y=-1;for(var G,u=0;u<((G=this.data)==null?void 0:G.chips.length);u++){var O=void 0,Q=void 0;if((O=this.data)==null?0:(Q=O.chips[u].chipCloudChipRenderer)==null?0:Q.isSelected){Y=u;break}}return Y};
_.H.onResize=function(){var Y=this.ytScrollableChipCloudBehavior;_.sk(Y,Y.setContainerWidthDiff);Y=this.ytScrollableChipCloudBehavior;_.sk(Y,Y.setButtonsState)};
_.H.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.H.handleRelatedChipCommand=function(Y,G){Y=this.JSC$16929_chipsSelector.indexOf(G);Y!==-1&&this.JSC$16929_chipsSelector.selectIndex(Y)};
_.H.handleChipCloudChipSelectAction=function(Y){Y=this.JSC$16929_chipsSelector.indexOf(Y);Y>-1&&this.JSC$16929_chipsSelector.selectIndex(Y)};
_.H.handleChipCloudChipDeselectAction=function(){var Y=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16929_chipsSelector&&((Y==null?0:Y.continuationCommand)?_.c$(this.hostElement,[Y]):(Y==null?0:Y.searchEndpoint)?this.ytComponentBehavior.resolveCommand(Y):Y&&_.UK(this.hostElement,[Y],this.hostElement),this.JSC$16929_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.H.updateSelectedFromBinding=function(Y){this.selected=Y.detail.value};
Wi.prototype.onResize=Wi.prototype.onResize;Wi.prototype.dataChanged=Wi.prototype.dataChanged;Wi.prototype.isSearchChanged=Wi.prototype.isSearchChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Wi.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Wi.prototype,"actionHandlerBehavior",void 0);
_.S([_.x(_.aZ),_.V("design:type",Object)],Wi.prototype,"ironResizableBehavior",void 0);_.S([_.x(),_.V("design:type",Op)],Wi.prototype,"ytScrollableChipCloudBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Wi.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Wi.prototype,"data",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],Wi.prototype,"selected",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Wi.prototype,"isDarkTheme",void 0);_.S([_.R({value:160}),_.V("design:type",Number)],Wi.prototype,"scrollDistance",void 0);_.S([_.R(),_.V("design:type",Object)],Wi.prototype,"isSearch",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Wi.prototype,"noTopMargin",void 0);_.S([_.Ox("#chips"),_.V("design:type",Object)],Wi.prototype,"JSC$16929_chipsSelector",void 0);
_.S([_.GO("isSearch"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Wi.prototype,"isSearchChanged",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Wi.prototype,"dataChanged",null);_.S([_.Yo("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Wi.prototype,"onResize",null);_.S([_.Ff({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Wi);
_.d(Wi,"yt-chip-cloud-renderer",function(){if(nme===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;kK_===void 0&&(kK_=document.createElement("template"));var O=kK_;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);nme=Y}Y=nme;return Y},{mode:2});var FFM,pXR=function(){return FFM!==void 0?FFM:FFM=document.createElement("template")};
document.head.appendChild(pXR().content);var zvk;var md4=document.head,WFE=md4.appendChild,reE;if(zvk===void 0){var xde=document.createElement("template");_.r(xde,"");xde.content.insertBefore(pXR().content.cloneNode(!0),xde.content.firstChild);zvk=xde}reE=zvk;WFE.call(md4,reE.content);var f7_=_.D(function(Y){var G=Y.data;return _.T("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.T("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.T("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.T(_.X,{cond:function(){return _.e0(G().image)},
then:function(u){return _.T("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.T(_.RD,{data:u,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.T("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.T(_.eO,{text:function(){return G().title}})),_.T("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.T(_.eO,{text:function(){return G().subtitle}})))),_.T(_.X,{cond:function(){var u;
return(u=G())==null?void 0:u.hasBottomDivider},
then:function(){return _.T("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"zd");var CKR=_.D(function(Y){var G=Y.data;return _.T("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.T("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.T(_.HE,{data:function(){var u;return(u=G().offerPlanDetailsItem)!=null?u:[]}},{offerPlanDetailsItemViewModel:function(u){return _.T("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.T(f7_,{data:u.data}))}})),_.T("div",null,_.T(_.X,{cond:function(){return G().hasBottomDivider},
then:function(){return _.T("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.T("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.T("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.T("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.T("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ad");var yeU=_.D(function(Y){var G=Y.data;Y=_.E(_.IE(!1,void 0,"MrXxy"));var u=Y.next().value,O=Y.next().value,Q=_.U3(function(){O(!u());return!1}),M=function(){var t;
return(t=G().offerPlanDetailsContainer)!=null?t:[]};
return _.T("lp-complex-offer-card-details-view-model",null,_.T("div",null,_.T(_.X,{cond:function(){return u()},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.T("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":Q,"aria-expanded":u},_.T(_.eO,{text:function(){return G().expandedTitle}})),_.T("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.T(_.HE,{data:M},{offerPlanDetailsContainerViewModel:function(t){return _.T("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.T(CKR,{data:t.data}))}})),_.T("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.T(_.eO,{text:function(){return G().legalText}})))},
else:function(){return _.T("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":Q,"aria-expanded":u},_.T(_.eO,{text:function(){return G().collapsedTitle}}),_.T("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.T(_.GS,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Bd");var evT=_.D(function(Y){var G=Y.data;return _.T("lp-complex-offer-card-option-view-model",null,_.T("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.T(_.X,{cond:function(){return G().topDividerText},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.T("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.T("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.T("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.T(_.eO,{text:function(){return G().topDividerText}}))))}}),_.T(_.X,{cond:function(){return G().description},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.T(_.eO,{text:function(){return G().description}}))}}),_.T(_.X,{cond:function(){return G().planPricingPrimary},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.T(_.eO,{text:function(){return G().planPricingPrimary}}))}}),_.T(_.X,{cond:function(){return G().planPricingSecondary},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.T(_.eO,{text:function(){return G().planPricingSecondary}}))}}),_.T(_.X,{cond:function(){return G().primaryButton},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.T(_.HE,{data:function(){return G().primaryButton}},{buttonViewModel:function(u){return _.T(_.$Y,{data:u.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Cd");var AeT=_.D(function(Y){var G=Y.data;var u=function(){var M;return((M=G())==null?void 0:M.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
Y={};var O={},Q={};return _.T("ytm-lp-complex-offer-card-view-model",null,_.T("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.T("div",{class:_.s3((Y.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=u,Y),"ytmLpComplexOfferCardViewModelCardContainer")},_.T(_.X,{cond:function(){var M;return(M=G())==null?void 0:M.bannerText},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.T("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.T(_.eO,{text:function(){return G().bannerText}})))}}),_.T(_.X,{cond:function(){return _.e0(G().logo)},
then:function(M){var t={};return _.T("div",{class:_.s3((t.ytmLpComplexOfferCardViewModelLogoAlignLeft=u,t),"ytmLpComplexOfferCardViewModelLogo")},_.T(_.RD,{data:M,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.T("div",{class:_.s3((O.ytmLpComplexOfferCardViewModelTitleAlignLeft=u,O),"ytmLpComplexOfferCardViewModelTitle")},_.T(_.eO,{text:function(){return G().title}})),_.T(_.X,{cond:function(){var M;
return(M=G())==null?void 0:M.subtitle},
then:function(){var M={};return _.T("div",{class:_.s3((M.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=u,M),"ytmLpComplexOfferCardViewModelSubtitle")},_.T(_.eO,{text:function(){return G().subtitle}}))}}),_.T(_.X,{cond:function(){return G().planPricingPrimary},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.T(_.eO,{text:function(){return G().planPricingPrimary}}))}}),_.T(_.X,{cond:function(){return G().planPricingSecondary},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.T(_.eO,{text:function(){return G().planPricingSecondary}}))}}),_.T(_.X,{cond:function(){return G().purchaseButton},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.T(_.HE,{data:function(){return G().purchaseButton}},{buttonViewModel:function(M){return _.T(_.$Y,{data:M.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.T(_.X,{cond:function(){var M;
return(M=G())==null?void 0:M.offerOptions},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.T(_.HE,{data:function(){return G().offerOptions}},{lpComplexOfferCardOptionViewModel:evT}))}}),_.T("div",{class:_.s3((Q.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=u,Q),"ytmLpComplexOfferCardViewModelLegalText")},_.T(_.eO,{text:function(){return G().legalText}})),_.T(_.X,{cond:function(){var M;
return(M=G())==null?void 0:M.offerCardDetails},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.T(_.HE,{data:function(){return G().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:yeU}))}}))))},"Dd");var oml=_.D(function(Y){var G=Y.data;var u=function(){var t;return((t=G())==null?void 0:t.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
Y={};var O={},Q={},M={};return _.T("ytm-lp-complex-offer-card-section-view-model",null,_.T("div",{class:_.s3("ytmLpComplexOfferCardSectionViewModelHost")},_.T("div",{class:_.s3((Y.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=u,Y),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.T("div",{class:_.s3((O.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=u,O),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.T("h2",{class:_.s3((Q.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
u,Q),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.T(_.eO,{text:function(){return G().title}}))),_.T(_.X,{cond:function(){var t;
return(t=G())==null?void 0:t.subtitle},
then:function(){var t={},K={};return _.T("div",{class:_.s3((t.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=u,t),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.T("div",{class:_.s3((K.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=u,K),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.T(_.eO,{text:function(){return G().subtitle}})))}}),_.T("div",{class:_.s3((M.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=u,M),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.T(_.HE,{data:function(){var t;
return(t=G().offerPlans)!=null?t:[]}},{lpComplexOfferCardViewModel:function(t){return _.T("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.T(AeT,{data:t.data}))}})))))},"Ed");var ieM=_.D(function(Y){return _.T("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.T("div",{class:"ytLpCouponBannerViewModelIcon"},_.T(_.GS,{icon:function(){return"price_tag"}})),_.T("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.T("div",{class:"ytLpCouponBannerViewModelContent"},_.T("div",{class:"ytLpCouponBannerViewModelHeading"},_.T(_.eO,{text:function(){var G;
return(G=Y.data())==null?void 0:G.title}})),_.T("div",{class:"ytLpCouponBannerViewModelBody"},_.T(_.eO,{text:function(){var G;
return(G=Y.data())==null?void 0:G.subtitle}})))))},"Fd");
ieM.idomCompat=!0;_.rm=bGU.getInstance();var Rv1;Rv1=_.D(function(Y){return _.T("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":Y.shouldAriaHideContent},_.T("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:Y.questionId},_.T(_.eO,{text:Y.question})))},"Gd");
_.wXl=_.D(function(Y){var G=Y.data;var u=Y.themeOverride;Y=_.E(_.IE(!1,void 0,"pNli2b"));var O=Y.next().value,Q=Y.next().value;Y=_.U3(function(){Q(!O());return!1});
var M=function(){return O()?"EXPAND_LESS":"EXPAND_MORE"},t=("faq-container"+_.rd(_.rm)).toString(),K="faq-question-and-answers-section-question"+_.rd(_.rm),L={},g={};
return _.T("faq-entry-view-model",null,_.T("div",{class:_.s3("ytLpFaqEntryViewModelHost",(L.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return u==null?void 0:u().useDarkTheme},L))},_.T("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":Y,role:"button","aria-expanded":O,"aria-labelledby":K.toString(),"tab-index":"0"},_.T(Rv1,{question:function(){return G().question},
questionId:K,shouldAriaHideContent:!0}),_.T(_.X,{cond:function(){return O()!==void 0},
then:function(){return _.T("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.T(_.GS,{icon:M,ariaHidden:!0}),_.T("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.T("div",{class:_.s3("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(g.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!O()},g))},_.T("div",{id:t},_.T(_.rc,{each:function(){return G().answers||[]}},function(P){return _.T("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.T(_.eO,
{text:P}))})))))},"Hd");
_.wXl.idomCompat=!0;var Ze4=_.D(function(Y){var G=Y.data;var u=Y.themeOverride;Y={};return _.T("lp-faq-section-view-model",null,_.T("div",{class:_.s3("yt-lp-faq-section-view-model",(Y["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return G().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},Y["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(u==null||!u().useDarkTheme)},Y))},_.T("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.T(_.X,{cond:function(){return G().header},
then:function(O){return _.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.T(_.eO,{text:O}))}}),_.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.T(_.HE,{data:function(){return G().faqs}},{faqEntryViewModel:function(O){return _.T(_.wXl,{data:O.data,
themeOverride:u})}})),_.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.T(_.rc,{each:function(){return G().footers||[]}},function(O){return _.T(_.eO,{text:O})})),_.T(_.X,{cond:function(){return G().legal},
then:function(O){return _.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.T(_.eO,{text:O}))}}))))},"Id");
Ze4.idomCompat=!0;var DdE=_.D(function(Y){var G=Y.data;var u=Y.themeOverride;_.ii(function(){var t=G().gtmId;t&&_.KI(t,_.DE("GL",""))});
var O={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var t,K,L;return(L=(t=G().logo)==null?void 0:(K=t.accessibilityData)==null?void 0:K.label)!=null?L:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},Q=_.sH().resolve(_.q3(_.Ee)),M=function(){return Q&&Q()||(u==null?void 0:u().useDarkTheme)};
return _.T("lp-header-section-view-model",null,_.T("div",{class:function(){var t=G().layoutType,K=G().marginType==="LP_SECTION_MARGIN_TYPE_TOP",L=u==null?void 0:u().useDarkTheme,g=["lp-header-section-view-model"];switch(t){case "LP_MODULE_LAYOUT_TYPE_PTC":g.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":g.push("lp-header-section-view-model--narrow-header-layout-type")}K&&g.push("lp-header-section-view-model__lp-header-section-margin");L&&g.push("lp-header-section-view-model--premium-force-dark-mode");
return g.join(" ")}},_.T(_.X,{cond:function(){return G().logo},
then:function(){return _.T("div",null,_.T(_.X,{cond:M,then:function(){return _.T(_.X,{cond:function(){var t;return(t=G().logo)==null?void 0:t.imageDark},
then:function(t){return _.T(_.RD,Object.assign({},{data:t},O))}})},
else:function(){return _.T(_.X,{cond:function(){var t;return(t=G().logo)==null?void 0:t.imageLight},
then:function(t){return _.T(_.RD,Object.assign({},{data:t},O))}})}}))}}),_.T(_.X,{cond:function(){return G().title},
then:function(t){return _.T("div",{class:"lp-header-section-view-model__lp-header-title"},_.T(_.eO,{text:t}))}}),_.T("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.T(_.X,{cond:function(){return G().subtitles},
then:function(t){return _.T(_.rc,{each:t},function(K){return _.T("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.T(_.eO,{text:K}))})}})),_.T(_.X,{cond:function(){return G().additionalInfo},
then:function(t){return _.T("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.T(_.eO,{text:t}))}}),_.T("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.T(_.X,{cond:function(){return G().primaryButton},
then:function(t){return _.T("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.T(_.HE,{data:t},{buttonViewModel:_.$Y}))}}),_.T(_.X,{cond:function(){return G().secondaryButton},
then:function(t){return _.T("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.T(_.HE,{data:t},{buttonViewModel:_.$Y}))}})),_.T(_.X,{cond:function(){return G().otherOffersInfo},
then:function(t){return _.T("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.T(_.eO,{text:t}))}}),_.T("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.T(_.X,{cond:function(){return G().billingInfo},
then:function(t){return _.T(_.rc,{each:t},function(K){return _.T("div",null,_.T(_.eO,{text:K}))})}}))))},"Jd");
DdE.idomCompat=!0;var hvR=_.D(function(Y){return _.T("lp-header-upsell-banner-view-model",{class:_.s3("lpHeaderUpsellBannerViewModelHost",Y.className,{})},_.T("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.T(_.GS,{icon:function(){return"CAMPAIGN"}})),_.T("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.T("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.T("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.T("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.T(_.eO,{text:function(){var G;
return(G=Y.data())==null?void 0:G.description}})))),_.T(_.HE,{data:function(){var G;
return(G=Y.data())==null?void 0:G.purchaseButton}},{buttonViewModel:function(G){return _.T(_.$Y,{data:G.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"Kd");var ddE=_.D(function(Y){var G=Y.data;var u=_.dB(Y.themeOverride,{useDarkTheme:!1});Y={};Y=_.s3("ytmLpHeadlineSectionViewModelHost",(Y.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return u().useDarkTheme},Y));
return _.T("lp-headline-section-view-model",null,_.T("div",{class:Y},_.T(_.X,{cond:function(){return G().title},
then:function(O){return _.T("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.T(_.eO,{text:O}))}}),_.T(_.X,{cond:function(){return G().subtitle},
then:function(O){return _.T("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.T(_.eO,{text:O}))}})))},"Ld");var beR=_.D(function(Y){var G=Y.data;var u=Y.themeOverride;var O=_.sH().resolve(_.q3(_.Ee)),Q=function(){return O&&O()||(u==null?void 0:u().useDarkTheme)},M=function(){var g,P;
var I=Q()?(g=G().textBackgroundImage)==null?void 0:g.imageDark:(P=G().textBackgroundImage)==null?void 0:P.imageLight;return frU((I==null?void 0:I.sources)||[])},t=function(){var g,P;
return Q()?(g=G().featureImage)==null?void 0:g.imageDark:(P=G().featureImage)==null?void 0:P.imageLight},K=function(){return G().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},L=function(){var g,P;
return Q()?(g=G().logo)==null?void 0:g.imageDark:(P=G().logo)==null?void 0:P.imageLight};
return _.T("ytm-lp-large-feature-section-view-model",null,_.T("div",{class:function(){var g=G().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",P=G().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",I=(G().index||0)%2===1,k=u==null?void 0:u().useDarkTheme,n=["yt-lp-large-feature-section-view-model"];g?n.push("yt-lp-large-feature-section-view-model--music-feature-type"):P?n.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):I||n.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
k&&n.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return n.join(" ")}},_.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.T(_.X,{cond:t,
then:function(){return _.T(_.RD,{data:function(){return t()},
alt:function(){var g,P,I;return(I=(g=G().featureImage)==null?void 0:(P=g.accessibilityData)==null?void 0:P.label)!=null?I:""},
contentMode:K})}})),_.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var g;return((g=M())==null?0:g.url)?"background-image: url("+_.cs(M().url)+");":""}},_.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.T(_.X,{cond:L,
then:function(){return _.T(_.RD,{data:function(){return L()},
alt:function(){var g,P,I;return(I=(g=G().logo)==null?void 0:(P=g.accessibilityData)==null?void 0:P.label)!=null?I:""},
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"})}}),_.T(_.X,{cond:function(){return G().eyebrowText},
then:function(){return _.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.T(_.eO,{text:function(){return G().eyebrowText}}))}}),_.T(_.X,{cond:function(){return G().title},
then:function(){return _.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.T(_.eO,{text:function(){return G().title}}))}}),_.T(_.X,{cond:function(){return G().subtitles},
then:function(){return _.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.T(_.rc,{each:function(){return G().subtitles||[]}},function(g){return _.T(_.eO,{text:g})}))}})))))},"Md");
beR.idomCompat=!0;var SOk=_.D(function(Y){return _.T("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.T("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.T(_.GS,{icon:function(){var G;return(G=Y.data())==null?void 0:G.iconType},
className:function(){var G;switch((G=Y.data())==null?void 0:G.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 G;return((G=Y.data())==null?void 0:G.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.T("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.T(_.eO,{text:function(){var G;
return(G=Y.data())==null?void 0:G.text},
className:function(){var G;return((G=Y.data())==null?void 0:G.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Nd");var NvV=_.D(function(Y){Y=_.bM(Y,{config:void 0,themeOverride:void 0});var G=Y.data,u=Y.config,O=Y.themeOverride;Y={};Y=_.s3("ytmLpOfferCardOptionViewModelHost",(Y.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var K;return(K=O())==null?void 0:K.useDarkTheme},Y));
var Q=_.U3(function(){var K,L;(K=u())==null||(L=K.handleRadioButtonClick)==null||L.call(K,G());return!1}),M=function(){var K;
return(K=u())==null?void 0:K.shouldDisplayRadioButton},t=function(){var K;
return(K=G().featureListItems)!=null?K:[]};
return _.T("ytm-lp-offer-card-option-view-model",null,_.T("div",{class:Y,"on:click":_.U3(function(){if(M()){var K,L;(K=u())==null||(L=K.handleRadioButtonClick)==null||L.call(K,G())}return!1})},_.T(_.X,{cond:M,
then:function(){return _.T("div",null,_.T("input",{type:"radio","on:click":Q,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var K;return!((K=u())==null||!K.isOptionSelected)}}))}}),_.T("div",null,_.T("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.T(_.eO,{text:function(){return G().eyebrowText}})),_.T("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.T(_.eO,{text:function(){return G().title}})),_.T("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.T(_.eO,
{text:function(){return G().subtitle}})),_.T(_.X,{cond:function(){return t().length>0},
then:function(){return _.T("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.T(_.HE,{data:t},{lpFeatureListItemViewModel:SOk}))}}),_.T("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.T(_.eO,{text:function(){return G().description}})))))},"Od");
NvV.idomCompat=!0;var jMe=_.D(function(Y){var G=Y.data;var u=Y.themeOverride;Y=_.E(_.SN(function(){var M,t=(M=G().offerOptions)==null?void 0:M[0];return _.z(t,wO1)||{}}));
var O=Y.next().value,Q=Y.next().value;Y={};return _.T("ytm-lp-offer-card-view-model",null,_.T("div",{class:_.s3("ytmLpOfferCardViewModelHost",(Y.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(u==null||!u().useDarkTheme)},Y))},_.T("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.T(_.X,{cond:function(){return G().titleIconType},
then:function(){return _.T("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.T(_.GS,{icon:function(){var M;return((M=G().titleIconType)==null?void 0:M.toString())||""}}))}}),_.T("div",{class:"ytmLpOfferCardViewModelTitleText"},_.T(_.eO,{text:function(){return G().title}})),_.T(_.HE,{data:function(){return G().titleBadge}},{badgeViewModel:function(M){return _.T("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.T(_.b2,{data:M.data}))}})),_.T("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.T(_.HE,{data:function(){return G().offerOptions}},{lpOfferCardOptionViewModel:function(M){var t=M.data;
return _.T(_.GY,null,_.T("div",{class:"ytmLpOfferCardViewModelDivider"}),_.T(NvV,{data:t,config:function(){var K;return{shouldDisplayRadioButton:(G().offerOptions||[]).length>1,isOptionSelected:t().id===((K=O())==null?void 0:K.id),handleRadioButtonClick:function(L){return void Q(L)}}},
themeOverride:u}))}})),_.T("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.T(_.HE,{data:function(){var M;
return(M=O())==null?void 0:M.purchaseButtonOverride}},{buttonViewModel:_.$Y}))))},"Pd");
jMe.idomCompat=!0;var V2_=_.D(function(Y){var G=Y.data;var u=Y.themeOverride;Y={};Y=_.s3("ytmLpOfferCardSectionViewModelHost",(Y.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var O;return u==null?void 0:(O=u())==null?void 0:O.useDarkTheme},Y));
return _.T("ytm-lp-offer-card-section-view-model",null,_.T("div",{class:Y},_.T(_.X,{cond:function(){return G().title!==void 0},
then:function(){return _.T("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.T("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.T(_.eO,{text:function(){return G().title}})),_.T(_.X,{cond:function(){return G().subtitle},
then:function(){return _.T("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.T(_.eO,{text:function(){return G().subtitle}}))}}))}}),_.T("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.T(_.HE,{data:function(){return G().offerCards}},{lpOfferCardViewModel:function(O){return _.T("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.T(jMe,{data:O.data,
themeOverride:u}))}})),_.T(_.X,{cond:function(){return G().footer},
then:function(){return _.T("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.T(_.eO,{text:function(){return G().footer}}))}})))},"Qd");var l7R=_.D(function(Y){var G=Y.data;var u={badgeText:"New",badgeStyle:"BADGE_STATUS_NEW"};return _.T("lp-offer-table-cell-content-view-model",null,_.T("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.T(_.x4,null,_.T(_.m1,{when:function(){return G().title}},function(){return _.T(_.eO,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return G().title}})}),_.T(_.m1,{when:function(){return G().subTitle}},function(){return _.T(_.eO,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return G().subTitle}})}),_.T(_.m1,{when:function(){return G().featureDescription}},function(){return _.T(_.eO,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return G().featureDescription}})}),_.T(_.m1,{when:function(){return G().description}},function(){return _.T(_.eO,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return G().description}})}),_.T(_.m1,{when:function(){return G().iconType}},function(){return _.T("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.T(_.GS,{icon:function(){return G().iconType.toString()}}))}),_.T(_.m1,{when:function(){return G().purchaseButton}},function(){return _.T(_.HE,{data:function(){return G().purchaseButton}},{buttonViewModel:function(O){return _.T("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.T(_.$Y,
{data:O.data}))}})}),_.T(_.m1,{when:function(){return G().note}},function(){return _.T(_.eO,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return G().note}})}),_.T(_.m1,{when:function(){return G().featureDetail}},function(){return _.T(_.eO,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return G().featureDetail}})}),_.T(_.m1,{when:function(){return G().badge}},function(){return _.T(_.HE,{data:function(){return G().badge}},{badgeViewModel:_.b2})}),_.T(_.m1,{when:function(){return G().includeBadgeSpacer}},function(){return _.T("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellBadgeSpacer",
"aria-hidden":"true"},_.T(_.b2,{data:u}))}))))},"Rd");
l7R.idomCompat=!0;var BvT=_.D(function(Y){var G=Y.data;return _.T("lp-offer-table-cell-view-model",null,_.T("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(G().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;"}}},_.T(_.HE,{data:function(){return G().contents}},{lpOfferTableCellContentViewModel:l7R})))},
"Sd");
BvT.idomCompat=!0;var $dk=_.D(function(Y){var G=Y.data;var u=Y.lpTableIsFirstRow;var O=Y.lpTableIsLastRow;var Q=Y.hasThreeColumns;var M=function(){return(u==null?0:u())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},t=function(){return(u==null?0:u())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(O==null?0:O())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
Y={};return _.T("ytm-lp-offer-table-row-view-model",null,_.T("div",{class:_.s3("ytLpOfferTableRowViewModelHost",(Y.ytLpOfferTableRowViewModelHostThreeColumns=function(){return!(Q==null||!Q())},Y))},_.T(_.HE,{data:function(){return G().rowHeaderCell}},{lpOfferTableCellViewModel:function(K){return _.T("div",{class:M},_.T(BvT,{data:K.data}))}}),_.T(_.HE,{data:function(){return G().contentCells}},{lpOfferTableCellViewModel:function(K){return _.T("div",{class:t},_.T(BvT,{data:K.data}))}})))},"Td");
$dk.idomCompat=!0;var qOM=_.D(function(Y){var G=Y.data;var u=Y.themeOverride;var O=_.sH().resolve(_.q3(_.Ee)),Q=function(){return _.z(G().logo,uyM)||{}},M=function(){var t,K,L;
return((K=_.z((t=G().rows)==null?void 0:t[0],ZZR))==null?void 0:(L=K.contentCells)==null?void 0:L.length)===3};
Y={};return _.T("ytm-lp-offer-table-section-view-model",null,_.T("div",{class:"ytLpOfferTableViewModelHost"},_.T(_.X,{cond:function(){var t,K;return O&&O()||(u==null?0:u().useDarkTheme)?(t=Q())==null?void 0:t.imageDark:(K=Q())==null?void 0:K.imageLight},
then:function(t){return _.T(_.RD,{data:t,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var K,L,g;return(g=(K=Q())==null?void 0:(L=K.accessibilityData)==null?void 0:L.label)!=null?g:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.T(_.eO,{text:function(){return G().title}})),_.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.T(_.eO,{text:function(){return G().subtitle}})),_.T(_.X,{cond:function(){return G().disclaimers},
then:function(t){return _.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.T(_.rc,{each:t},function(K){return _.T("div",null,_.T(_.eO,{text:K}))}))}}),_.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.T(_.HE,{data:function(){return G().rows}},{lpOfferTableRowViewModel:function(t,K){return _.T($dk,{data:t.data,
lpTableIsFirstRow:function(){return K()===0},
lpTableIsLastRow:function(){return K()===G().rows.length-1},
hasThreeColumns:M})}})),_.T("div",{class:_.s3((Y.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return G().hasFooterBackground},Y))},_.T(_.X,{cond:function(){return G().footer},
then:function(){return _.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.T(_.eO,{text:function(){return G().footer}}))}}),_.T(_.X,{cond:function(){return G().footerTitle},
then:function(){return _.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.T(_.eO,{text:function(){return G().footerTitle}}))}}),_.T(_.X,{cond:function(){return G().footerDescription},
then:function(){return _.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.T(_.eO,{text:function(){return G().footerDescription}}))}}),_.T(_.X,{cond:function(){return G().footerDescriptions},
then:function(t){return _.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.T(_.rc,{each:t},function(K){return _.T("div",null,_.T(_.eO,{text:K}))}))}}))))},"Ud");
qOM.idomCompat=!0;var sMk=_.D(function(Y){var G=Y.data;var u=Y.themeOverride;var O=_.sH().resolve(_.q3(_.Ee)),Q=function(){var K;return u==null?void 0:(K=u())==null?void 0:K.useDarkTheme},M=function(){var K,L;
return O&&O()||Q()?(K=G().image)==null?void 0:K.imageDark:(L=G().image)==null?void 0:L.imageLight};
Y={};Y=_.s3("ytmLpSmallFeatureSectionViewModelHost",(Y.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=Q,Y));var t=function(){var K,L,g;return(g=(K=G().image)==null?void 0:(L=K.accessibilityData)==null?void 0:L.label)!=null?g:""};
return _.T("ytm-lp-small-feature-section-view-model",{class:Y},_.T(_.X,{cond:function(){return M()&&!f8U},
then:function(){return _.T("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.T(_.RD,{data:function(){return M()},
alt:t,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.T("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.T("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.T(_.X,{cond:function(){return G().title},
then:function(K){return _.T(_.eO,{text:K})}})),_.T("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.T(_.eO,{text:function(){return G().description}}))))},"Vd");
sMk.idomCompat=!0;var ce2=_.D(function(Y){var G=Y.data;var u=Y.themeOverride;Y={};return _.T("ytm-lp-small-feature-section-group-view-model",null,_.T("div",{class:_.s3("ytmLpSmallFeatureSectionGroupViewModelHost",(Y.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(u==null||!u().useDarkTheme)},Y))},_.T("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.T(_.HE,{data:function(){return G().smallFeatures}},{lpSmallFeatureSectionViewModel:function(O){return _.T("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.T(sMk,{data:O.data,
themeOverride:u}))}}))))},"Wd");
ce2.idomCompat=!0;_.hR(_.D(function(Y){var G=Y.data;var u=function(){return G().forcedTheme==="USER_INTERFACE_THEME_DARK"},O=function(){return G().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},Q=function(){var t="",K,L;
var g=_.sH().resolve(_.q3(_.Ee));g=u()||(g==null?0:g())?(K=G().themedImageViewModel)==null?void 0:K.imageDark:(L=G().themedImageViewModel)==null?void 0:L.imageLight;(K=frU((g==null?void 0:g.sources)||[]))&&K.url&&(t=O()?"background-image: linear-gradient(to bottom, transparent, "+(G().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.cs(K.url)+");":"background-image: url("+_.cs(K.url)+");");return t},M=function(){return{useDarkTheme:u()}};
Y={};return _.T("yt-section-group-view-model",null,_.T("div",{class:_.s3("yt-lp-section-group-view-model",(Y["yt-lp-section-group-view-model--premium-force-dark-mode"]=u,Y["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return G().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},Y))},_.T(_.X,{cond:function(){return Q().length},
then:function(){var t={};return _.T("div",{class:_.s3("yt-lp-section-group-view-model__bg-image",(t["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=O,t)),style:Q})}}),_.T("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.T(_.HE,{data:function(){return G().sections}},{lpHeaderUpsellBannerViewModel:function(t){return _.T(hvR,{data:t.data})},
lpFaqSectionViewModel:function(t){return _.T(Ze4,{data:t.data,themeOverride:M})},
lpHeaderSectionViewModel:function(t){return _.T(DdE,{data:t.data,themeOverride:M})},
lpHeadlineSectionViewModel:function(t){return _.T(ddE,{data:t.data,themeOverride:M})},
lpLargeFeatureSectionViewModel:function(t){return _.T(beR,{data:t.data,themeOverride:M})},
lpOfferCardSectionViewModel:function(t){return _.T(V2_,{data:t.data,themeOverride:M})},
lpComplexOfferCardSectionViewModel:function(t){return _.T(oml,{data:t.data})},
lpOfferTableSectionViewModel:function(t){return _.T(qOM,{data:t.data,themeOverride:M})},
lpSmallFeatureSectionGroupViewModel:function(t){return _.T(ce2,{data:t.data,themeOverride:M})},
lpCouponBannerViewModel:function(t){return _.T(ieM,{data:t.data})}}))))},"Xd"),"yt-section-group-view-model",{props:{data:_.AC}});_.UdX=_.D(function(Y){var G=_.Oe(dsj,function(){var t;return(t=Y.data())==null?void 0:t.chipBarStateEntityKey}),u=function(){return Y.data().disableDeselection},O=_.E(_.SN(function(){var t;
if(((t=G())==null?void 0:t.selectedIndex)!=void 0)return G().selectedIndex;var K,L;t=_.E(((K=Y.data())==null?void 0:(L=K.chips)==null?void 0:L.entries())||[]);for(K=t.next();!K.done;K=t.next()){K=_.E(K.value);L=K.next().value;K=K.next().value;var g=void 0;if((g=_.z(K,_.yy))==null?0:g.selected)return L}return-1})),Q=O.next().value,M=O.next().value;
return _.T("chip-bar-view-model",{class:_.s3("ytChipBarViewModelHost",Y.className),role:"tablist"},_.T(_.HE,{data:function(){return Y.data().chips}},{chipViewModel:function(t,K){return _.T("div",{class:"ytChipBarViewModelChipWrapper"},_.T(_.mTX,{data:t.data,
selected:function(){return K()===Q()},
callback:function(L,g){L=!!g;g=K();M(L?g:-1);var P,I=(P=Y.data())==null?void 0:P.chipBarStateEntityKey;I&&L&&_.hj(_.t$("chipBarStateEntity",I,{key:I,selectedIndex:g}))},
disableDeselection:Y.disableDeselection||u}))}}))},"Yd");window.customElements&&_.hR(_.UdX,"chip-bar-view-model",{props:{data:_.wH,className:_.wH,disableDeselection:_.wH}});_.vmU=_.D(function(Y){var G=Y.data;Y={};return _.T("divider-view-model",{class:_.s3("dividerViewModelHost",(Y.dividerViewModelInsetThinPadding=function(){return G().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},Y))},_.T("div",{class:_.s3("dividerViewModelBaseDivider",function(){return bYA(G().dividerStyle)})}))},"Zd");
_.vmU.idomCompat=!0;_.hR(_.vmU,"divider-view-model",{props:{data:_.AC}});var HU=new Map,En=new Map,jmt=0,tL;var smy=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],vr4={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var JeV,YIN;JeV=function(Y){return function(G){return function(){return(G==null?void 0:G())!==void 0?String(G())+Y:void 0}}};
_.xi=JeV("px");YIN=JeV("s");_.fS=new _.Sb("CHUNK_REGISTRY_TOKEN");_.az(G6a,{debugName:"shortsLockupViewModel"});_.UH(_.fS,function(Y){_.CS(Y,"shortsLockupViewModel","dpUCFd",G6a)});var Ggj=_.az(OPa,{debugName:"shortsLockupViewModelWithDismissible"});_.UH(_.fS,function(Y){_.CS(Y,"shortsLockupViewModelWithDismissible","U9vrqd",OPa)});var utV=SQA(function(Y){return Y.targetGroupId}).useUpdatableData;_.yr=_.D(function(Y){function G(Mj){return function(){var Xt=C().numItemsPerGridRow,ka=Mj()*Xt;Xt=ka+Xt;var aU,Tg;return(Tg=(aU=O().contents)==null?void 0:aU.slice(ka,Xt))!=null?Tg:[]}}
var u=_.bM(Y,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),O=u.data,Q=u.layoutContainerWidth,M=u.shouldUseOwnContainerSize,t=u.marginSettings,K=u.useUpdatedMargin,L=rF1(),g=_.E(utV(function(){var Mj,Xt;return{targetGroupId:(Mj=O().targetingContext)==null?void 0:(Xt=Mj.targetGroupId)==null?void 0:Xt[0]}})).next().value;
u=_.E(_.IE(!0,void 0,"CC9Rdb"));var P=u.next().value,I=u.next().value,k=function(){var Mj,Xt=(Mj=_.z(O().showMoreButton,_.Ck))==null?void 0:Mj.trackingParams;Xt&&_.YR(_.M4(),Xt);I(!1)},n=function(){var Mj,Xt=(Mj=_.z(O().showLessButton,_.Ck))==null?void 0:Mj.trackingParams;
Xt&&_.YR(_.M4(),Xt);I(!0)};
u=_.E(_.K$({canHaveZeroSize:!1}));var p=u.next().value;u=u.next().value;var W=function(){var Mj;return(Mj=O().contentAspectRatio)!=null?Mj:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},C=_.p2(function(){var Mj=M()&&p.width()>0?p.width()||Q():Q(),Xt,ka=(Xt=Y.data())==null?void 0:Xt.responsiveContainerConfiguration;
Mj=_.CK({containerWidth:Mj,sizing:ka?yY(ka==null?void 0:ka.responsiveSize):"EXTRA_COMPACT",marginSettings:t(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:Mj.maxContainerWidth,numItemsPerGridRow:Mj.numItems,contentPadding:M()?Mj.margin:Mj.contentMargin,itemWidth:Mj.itemWidth,itemMargin:Mj.gutter/2}},void 0,"YIvnde"),e=function(){if(O().enableVerticalExpansion){if(P())return w();
var Mj,Xt,ka=(Xt=(Mj=O().contents)==null?void 0:Mj.length)!=null?Xt:0;return Math.ceil(ka/C().numItemsPerGridRow)}return C().numItemsPerGridRow<=2?2:1},w=function(){var Mj;
return Math.ceil(((Mj=O().minCollapsedItemCount)!=null?Mj:1)/C().numItemsPerGridRow)},B=function(){return O().enableVerticalExpansion&&O().showLessButton&&!P()&&e()>w()},N=function(){var Mj,Xt;
return O().enableVerticalExpansion&&O().showMoreButton&&P()&&((Xt=(Mj=O().contents)==null?void 0:Mj.length)!=null?Xt:0)>C().numItemsPerGridRow*w()},h=function(){return!B()},q=function(){return!N()},U={};
return _.T("grid-shelf-view-model",{class:_.s3("ytGridShelfViewModelHost",Y.className,(U.ytGridShelfViewModelHostHasBottomButton=function(){return B()||N()},U.ytGridShelfViewModelHostIsDismissed=function(){var Mj,Xt=(Mj=g())!=null?Mj:{};
Mj=Xt.behavior;var ka=Xt.isDismissed,aU=Xt.stamperContextTargetId;Xt=Xt.stamperIndex;if(!(_.F("mweb_see_fewer_shorts_group_dismissal")&&ka&&Mj&&aU))return!1;var Tg;ka=L;for(var iy,hY,dA=((iy=ka)==null?0:iy.targetId)?_.hT((hY=ka)==null?void 0:hY.targetId):void 0;((Tg=ka)==null?0:Tg.parent)&&dA!==aU;)ka=ka.parent,hY=iy=void 0,dA=((iy=ka)==null?0:iy.targetId)?_.hT((hY=ka)==null?void 0:hY.targetId):void 0;Tg=dA===aU?ka:void 0;if(!Tg)return!1;var nT;aU=Tg==null?void 0:(nT=Tg.stamperIndex)==null?void 0:
nT.call(Tg);return Mj==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||Mj==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&aU!=null&&Xt!=null&&aU>Xt},U.ytGridShelfViewModelHostOptionalMediumLayoutMargin=K,U)),
el:_.iq(u),style:_.Yh({"margin-left":(0,_.xi)(function(){return C().contentPadding}),
"margin-right":(0,_.xi)(function(){return C().contentPadding})})},_.T(_.X,{cond:function(){return _.z(O().header,aRE)},
then:function(Mj){return _.T(_.Ml,{data:Mj,useUpdatedPadding:K,disableHorizontalPadding:!0})}}),_.T("div",null,_.T(_.rc,{each:function(){return Array(e())}},function(Mj,Xt){return _.T(O1B,{className:Y.className,
items:G(Xt),responsiveGridShelfLayout:C,contentAspectRatio:W})})),_.T("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.T(_.HE,{data:function(){return O().showMoreButton}},{buttonViewModel:function(Mj){return _.T("div",{hidden:q},_.T(_.$Y,{data:Mj.data,
onClick:k}))}}),_.T(_.HE,{data:function(){return O().showLessButton}},{buttonViewModel:function(Mj){return _.T("div",{hidden:h},_.T(_.$Y,{data:Mj.data,
onClick:n}))}})))},"ae");
_.yr.idomCompat=!0;var O1B=_.D(function(Y){var G=Y.items;var u=Y.responsiveGridShelfLayout;var O=Y.contentAspectRatio;Y=Y.className;var Q=(0,_.xi)(function(){return-u().itemMargin});
return _.T("div",{el:_.iq(NqU(function(M){a:{for(var t=G(),K=[],L=0;L<t.length;L++){var g=_.z(t[L],NMR);if(!g||g==null||!g.inlinePlayerData){M=null;break a}var P=M.children.item(L);if(!P){M=null;break a}K.push({thumbnailElement:P,videoData:g})}M={gridVideoPreviewData:{gridItems:K}}}return M})),
class:_.s3("ytGridShelfViewModelGridShelfRow",Y),style:_.Yh({"margin-left":Q,"margin-right":Q})},_.T(_.HE,{data:G,replacementWrapper:function(M){return _.T(QUb,{responsiveGridShelfLayout:u},M)}},{shortsLockupViewModel:function(M){return _.T(QUb,{responsiveGridShelfLayout:u},_.T(Ggj,{data:M.data,
aspectRatio:function(){return O()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.F("mweb_enable_one_line_title_on_shorts")?1:_.F("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(M){return _.T(QUb,{responsiveGridShelfLayout:u},_.T(_.Ou,{data:M.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"be"),QUb=_.D(function(Y){return _.T("div",{style:_.Yh({width:(0,_.xi)(function(){return Y.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+Y.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},Y.children)},"ce");
_.yr.idomCompat=!0;_.hR(_.yr,"grid-shelf-view-model",{props:{data:_.AC,layoutContainerWidth:_.AC,shouldUseOwnContainerSize:_.AC,marginSettings:_.AC,useUpdatedMargin:_.AC,className:_.AC}});_.MTN=_.D(function(Y){var G=_.E(_.IE(!1,void 0,"FVl30c")),u=G.next().value,O=G.next().value;G={};return _.T("yt-alert-banner-view-model",{class:_.s3("ytAlertBannerViewModelHost",Y.className,function(){var Q;a:switch((Q=Y.data())==null?void 0:Q.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":Q="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":Q="ytAlertBannerViewModelWarning";break a;default:Q="ytAlertBannerViewModelInformational"}return Q},(G.ytAlertBannerViewModelDismissed=
u,G.ytAlertBannerViewModelFullbleed=Y.fullbleed,G.ytAlertBannerViewModelNarrow=Y.narrow,G.ytAlertBannerViewModelIsInRichGrid=Y.isInRichGrid,G))},_.T(_.X,{cond:function(){var Q;
return!((Q=Y.data())==null?0:Q.hideIcon)},
then:function(){return _.T("div",{class:"ytAlertBannerViewModelIcon"},_.T(_.GS,{icon:function(){var Q,M;return((Q=Y.data())==null?void 0:(M=Q.iconOverride)==null?void 0:M.toLowerCase())||"info_circle"}}))}}),_.T("div",{class:"ytAlertBannerViewModelOuterContainer"},_.T("div",{class:"ytAlertBannerViewModelContainer"},_.T("div",{class:"ytAlertBannerViewModelContent"},_.T("div",{class:"ytAlertBannerViewModelHeading"},_.T(_.eO,{text:function(){var Q;
return(Q=Y.data())==null?void 0:Q.heading}})),_.T("div",{class:"ytAlertBannerViewModelBody"},_.T(_.eO,{text:function(){var Q;
return(Q=Y.data())==null?void 0:Q.body}})))),_.T(_.HE,{data:function(){var Q;
return(Q=Y.data())==null?void 0:Q.actionButton}},{buttonViewModel:function(Q){return _.T(_.$Y,{data:Q.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.T(_.HE,{data:function(){var Q;
return(Q=Y.data())==null?void 0:Q.dismissButton}},{buttonViewModel:function(Q){return _.T(_.$Y,{data:Q.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var M;((M=Y.data())==null?0:M.disableLocalDismissBehavior)||O(!0)}})}}))},"de");_.hR(_.MTN,"yt-alert-banner-view-model",{props:{data:_.AC,fullbleed:_.AC,narrow:_.AC,isInRichGrid:_.AC,className:_.AC}});var H1o;_.ei=_.D(function(Y){return _.T("basic-content-view-model",{class:_.s3("ytBasicContentViewModelHost",_.dB(Y.className))},_.T(_.X,{cond:function(){return Y.data().headline},
then:function(G){return _.T("div",{class:"ytBasicContentViewModelHeadline"},_.T(_.eO,{text:G}))}}),_.T(_.rc,{each:function(){return Y.data().paragraphs||[]},
keyBy:"INDEX"},function(G){return _.T("div",{class:"ytBasicContentViewModelParagraph"},_.T(_.X,{cond:function(){var u=G();return!!(u.header||u.customHeader||u.headline)},
then:function(){return _.T(H1o,{paragraph:G})}}),_.T(_.X,{cond:function(){return G().asset||G().text},
then:function(){return _.T("div",{class:"ytBasicContentViewModelParagraphContent"},_.T(_.X,{cond:function(){return G().asset},
then:function(u){return _.T("div",{class:"ytBasicContentViewModelParagraphAsset"},_.T(_.HE,{data:u},{contentPreviewImageViewModel:_.c9}))}}),_.T(_.X,{cond:function(){return G().text},
then:function(u){return _.T("div",{class:"ytBasicContentViewModelParagraphText"},_.T(_.eO,{text:u}))}}))}}))}))},"ee");
H1o=_.D(function(Y){var G=Y.paragraph;return _.T(_.GY,null,_.T(_.X,{cond:function(){return G().headline},
then:function(u){return _.T(_.eO,{text:u,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.T(_.HE,{data:function(){return G().header||G().customHeader}},{sectionHeaderViewModel:function(u){return _.T(_.Ml,{data:u.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"fe");_.Eax=_.D(function(Y){function G(){var n,p;L((p=(n=Q)==null?void 0:n.isKeyBoardInUse())!=null?p:!1)}
function u(){L(!1)}
function O(){var n;return K()?(n=Y.focusedClassName)==null?void 0:n.call(Y):""}
var Q=_.sH().resolve(_.q3(_.SO)),M=_.E(_.IE(!1,void 0,"SgkTXc")),t=M.next().value;M=M.next().value;var K=t,L=M,g=function(){var n,p;return((n=Y.toggleable)==null?0:n.call(Y))?(p=Y.toggled)==null?void 0:p.call(Y):void 0},P=_.U3(function(n){var p,W=(p=Y.command)==null?void 0:p.call(Y);
W&&_.sH().resolve(_.rH).resolveCommand(W);var C;(C=Y.onClick)==null||C.call(Y,n)}),I=_.U3(G),k=_.U3(u);
return _.T(_.X,{cond:function(){var n;if(n=Y.command){n=Y.command();n=vPj(n);var p=n.href;n=!(!n.navigatingCommand||!p)}return n},
then:function(){return _.T(_.Ny,Object.assign({},{command:Y.command,style:Y.style,ariaDescribedby:Y.ariaDescribedby,ariaHidden:Y.ariaHidden,ariaLabel:Y.ariaLabel,ariaLabelledby:Y.ariaLabelledby,ariaSelected:Y.ariaSelected,disabled:Y.disabled,dir:Y.dir,tabIndex:Y.tabIndex,target:Y.target,title:Y.title,onClick:Y.onClick},{className:_.s3("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",Y.className,function(){return O()}),
onFocusin:G,onFocusout:u,ariaCurrent:function(){var n,p;return(p=(n=Y.ariaCurrent)==null?void 0:n.call(Y))!=null?p:g()}}),Y.children)},
else:function(){return _.T("button",{"on:click":P,"on:focusin":I,"on:focusout":k,class:_.s3("ytButtonOrAnchorHost","ytButtonOrAnchorButton",Y.className,function(){return O()}),
style:Y.style,"aria-describedby":Y.ariaDescribedby,"aria-hidden":Y.ariaHidden,"aria-label":Y.ariaLabel,"aria-labelledby":Y.ariaLabelledby,"aria-pressed":g,dir:Y.dir,disabled:Y.disabled,tabindex:Y.tabIndex,title:Y.title},Y.children)}})},"ge");var tTw=_.D(function(Y){Y=_.bM(Y,{disabled:!1});var G=Y.active,u=Y.disabled;Y={};Y=_.s3("ytSwitchShapeTrack",(Y.ytSwitchShapeTrackActive=function(){return G()},Y.ytSwitchShapeTrackDisabled=function(){return u()},Y));
var O={};O=_.s3("ytSwitchShapeKnob",(O.ytSwitchShapeKnobActive=function(){return G()},O));
return _.T("switch-shape",{class:"ytSwitchShapeHost"},_.T("div",{class:Y}),_.T("div",{class:O}))},"he");var K4B=_.D(function(Y){var G=_.bM(Y,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),u=G.data;Y=G.className;var O=G.handleOnTapEventInParent,Q=G.parentActive,M=G.onTap;G=_.E(_.SN(function(){var k;return(k=Q())!=null?k:u().switchedOnByDefault||!1}));
var t=G.next().value,K=G.next().value,L=function(){return u().isDisabled},g=_.CH("button");
G=_.U3(function(k){return k.key==="Enter"?(k.preventDefault(),g.value.click(),!1):!0});
var P=_.U3(function(k){if(u().handleOnTapEventInParent||O())return!0;if(L())return!1;if(M)return M(k),!0;MHu(u(),t(),k);K(!t());return!1}),I={};
I=_.s3("ytSwitchButtonViewModelButton",(I.ytSwitchButtonViewModelTappable=function(){return!L()},I));
return _.T("switch-button-view-model",{class:_.s3("ytSwitchButtonViewModelHost",Y)},_.T("button",{el:g,class:I,"on:click":P,"on:keydown":G,"aria-label":function(){return t()?u().a11yLabelSwitchedOn:u().a11yLabelSwitchedOff},
"aria-checked":t,"aria-disabled":L,role:"switch"},_.T(tTw,{active:t,disabled:L})))},"ie");var atx=_.D(function(Y){var G=Y.data;var u=Y.isLeading;var O=Y.hideSelectionTextChevron;var Q=Y.isToggled;var M=Y.shouldNotFillIcon;var t=function(){if(u())var I=G().leadingImage;else{var k;I=(k=G().trailingImage)!=null?k:_.e0(G().themedTrailingImage)}return I},K=function(){a:switch(G().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var I="expand_more";
break a;default:I="chevron_right"}return I};
Y={};var L=_.s3("yt-list-item-view-model__image-container",(Y["yt-list-item-view-model__leading"]=u,Y["yt-list-item-view-model__trailing"]=function(){return!u()},Y)),g=_.s3("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
Y={};var P=_.s3("yt-list-item-view-model__accessory",(Y["yt-list-item-view-model__leading"]=u,Y["yt-list-item-view-model__trailing"]=function(){return!u()},Y));
return _.T(_.X,{cond:function(){var I=G(),k=u();return!!(k&&(I.leadingImage||I.leadingAccessory)||!k&&(I.trailingImage||I.trailingButton||I.trailingButtons||I.selectionText||I.themedTrailingImage||I.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.T(_.GY,null,_.T(_.X,{cond:t,then:function(I){return _.T("div",{class:L,"aria-hidden":"true"},_.T(_.RD,{data:I,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var k=(u()?G().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":G().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?u()?tHt(G().leadingIconAccessorySize):tHt(G().trailingIconAccessorySize):void 0;return k},
className:g,isToggled:function(){return!(M==null?0:M())&&(Q==null?void 0:Q())}}))}}),_.T(_.X,{cond:function(){return u()&&G().leadingAccessory},
then:function(){return _.T("div",{class:L},_.T(_.HE,{data:function(){return G().leadingAccessory}},{avatarViewModel:function(I){return _.T(_.z$,{data:I.data,
avatarButtonCustomClassName:g})},
collectionThumbnailViewModel:function(I){return _.T(Fn1,{data:I.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.T(_.X,{cond:function(){return!u()&&G().trailingButton},
then:function(){return _.T("div",{class:"yt-list-item-view-model__button-container"},_.T(_.HE,{data:function(){return G().trailingButton}},{buttonViewModel:function(I){return _.T(_.$Y,{data:I.data,
className:P})}}))}}),_.T(_.X,{cond:function(){var I;
return!u()&&((I=G().trailingButtons)==null?void 0:I.buttons)},
then:function(){return _.T("div",{class:"yt-list-item-view-model__button-container"},_.T(_.HE,{data:function(){var I;return(I=G().trailingButtons)==null?void 0:I.buttons}},{buttonViewModel:function(I){return _.T(_.$Y,{data:I.data,
className:P})},
accountLinkButtonViewModel:function(I){return _.T(EF2,{data:I.data,className:P})},
switchButtonViewModel:function(I){return _.T(K4B,{data:I.data,className:P})},
subscribeButtonViewModel:function(I){return _.T(_.zv,{data:I.data,isOverlay:!1,animateWidth:!1,className:P})},
toggleButtonViewModel:function(I){return _.T(_.Tr,{data:I.data,className:P})}}))}}),_.T(_.X,{cond:function(){return!u()&&!!G().selectionText},
then:function(){return _.T(_.GY,null,_.T(_.eO,{text:function(){return G().selectionText},
className:_.s3("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.T(_.X,{cond:function(){return!(O==null?0:O())},
then:function(){return _.T(_.GS,{icon:K,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.T(_.X,{cond:function(){return!u()&&G().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.T("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"je");var TAN=_.D(function(Y){var G=Y.data;return _.T(_.X,{cond:function(){return G().title||G().subtitle},
then:function(){return _.T("div",{class:"yt-list-item-view-model__text-wrapper"},_.T(_.X,{cond:function(){return G().title},
then:function(u){return _.T("div",{class:"yt-list-item-view-model__title-wrapper"},_.T(_.eO,{text:u,className:"yt-list-item-view-model__title"}))}}),_.T(_.X,{cond:function(){return G().subtitle},
then:function(u){return _.T(_.eO,{text:u,className:"yt-list-item-view-model__subtitle"})}}))}})},"ke");var L4b=_.D(function(Y){var G=Y.data;var u=Y.hideSelectionTextChevron;var O=Y.TrailingAccessory;var Q=Y.isToggled;var M=Y.disabled;var t=Y.isSelectItem;var K=Y.isCompact;var L=Y.inPopup;var g=Y.disableHorizontalPadding;var P=Y.isTappableWithoutSelect;var I=Y.useButtonOrAnchor;var k=Y.onTap;var n=Y.shouldNotFillIcon;var p=function(){return _.T(TAN,{data:G,onTap:k,useButtonOrAnchor:I,isTappableWithoutSelect:P,isToggled:Q})};
Y={};return _.T("div",{class:_.s3("yt-list-item-view-model__label",(Y["yt-list-item-view-model__container"]=function(){return!(t==null?0:t())},Y["yt-list-item-view-model__container--disabled"]=function(){return!!G().isDisabled||!(M==null||!M())},Y["yt-list-item-view-model__container--has-subtitle"]=function(){return!!G().subtitle},Y["yt-list-item-view-model__container--compact"]=K,Y["yt-list-item-view-model__container--tappable"]=P,Y["yt-list-item-view-model__container--in-popup"]=L,Y["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(g==null?void 0:g())&&!(t==null?0:t())},Y))},_.T(atx,{data:G,
isLeading:!0,hideSelectionTextChevron:u,isToggled:Q,shouldNotFillIcon:n}),_.T(_.X,{cond:function(){return(I==null?void 0:I())&&(P==null?void 0:P())},
then:function(){return _.T(_.Eax,{command:function(){return _.F9(G().rendererContext)},
onClick:k,className:"yt-list-item-view-model__button-or-anchor",toggleable:Q!==void 0,toggled:Q},_.T(p,null))},
else:function(){return _.T(p,null)}}),_.T(_.X,{cond:function(){return!!O},
then:function(){return _.T("div",{class:"yt-list-item-view-model__trailing"},O&&_.T(O,null))},
else:function(){return _.T(atx,{data:G,isLeading:!1,hideSelectionTextChevron:u,isToggled:Q,shouldNotFillIcon:n})}}))},"le");var Xu9=_.D(function(Y){var G=_.bM(Y,{checked:!1,disabled:!1});Y=G.name;var u=G.onChange,O=G.onClick,Q=G.checked,M=G.labelRenderable,t=G.hasLeadingLabel,K=G.labelClass,L=G.isCompact,g=G.selectElementClass,P=G.disableHorizontalPadding;G=G.disabled;var I="checkbox"+_.rd(_.rm),k=_.U3(function(W){O==null||O(W);return!1}),n=_.U3(function(W){u==null||u(W);
return!1}),p={};
return _.T("checkbox-shape",null,_.T("label",{class:_.s3("ytCheckboxShapeHost",K,(p.ytCheckboxShapeHostCompact=L,p.ytCheckboxShapeDisableHorizontalPadding=P,p))},_.T("input",{class:"ytCheckboxShapeInput",id:I,checked:Q,name:Y,type:"checkbox",disabled:G,"prop:checked":Q,"on:change":n,"on:click":k}),_.T(_.X,{cond:function(){return!(t==null?0:t())},
then:function(){return _.T(gaV,{isLeading:!0,selectElementClass:g})}}),_.T(_.X,{cond:function(){return!!M},
then:function(){return _.T("div",{class:"ytCheckboxShapeLabel"},M==null?void 0:M())}}),_.T(_.X,{cond:t,
then:function(){return _.T(gaV,{isLeading:!1,selectElementClass:g})}})))},"me");
Xu9.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var gaV=_.D(function(Y){var G=Y.selectElementClass;Y={};return _.T("div",{class:_.s3("ytCheckboxShapeCheckbox",G,(Y.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(G==null?0:G())},Y)),
"aria-hidden":"true"},_.T(_.GS,{icon:_.F("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.T(_.GS,{icon:_.F("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"ne");_.A4=_.D(function(Y){var G=Y.name;var u=Y.onChange;var O=Y.onClick;var Q=Y.checked;var M=Y.labelRenderable;var t=Y.useCheckIcon;var K=Y.hasLeadingLabel;var L=Y.labelClass;var g=Y.isCompact;var P=Y.selectElementClass;var I=Y.ariaLabel;var k=Y.className;Y=Y.disabled;var n="radio"+_.rd(_.rm),p=_.CH("input"),W=_.F("enable_ios_webview_radio_button_responsiveness"),C=_.U3(function(U){p.value.checked=!(Q==null||!Q());u==null||u(U);return!1}),e=_.U3(function(U){O==null||O(U);
return!1}),w=_.E(_.IE(!1,void 0,"Ucg5gd")),B=w.next().value,N=w.next().value;
w=_.U3(function(){var U;((U=_.sH().resolve(_.q3(_.SO)))==null?0:U.isKeyBoardInUse())&&N(!0)});
var h=_.U3(function(){N(!1)}),q={};
return _.T("radio-shape",{class:_.s3("yt-radio-shape",k)},_.T("input",{el:p,class:"yt-radio-shape__input",id:n,"prop:checked":Q,name:G,type:"radio",disabled:Y,"on:change":C,"on:click":e,"aria-label":I,"on:focusin":w,"on:focusout":h}),_.T("label",{class:_.s3("yt-radio-shape__label-container",L,(q["yt-radio-shape--compact"]=g,q["yt-radio-shape__label-container--keyboard-focused"]=B,q)),for:n},_.T(_.X,{cond:function(){return!(K==null?0:K())},
then:function(){return _.T(Pyo,{checked:Q,useCheckIcon:t,isLeading:!0,selectElementClass:P,usePassthrough:W})}}),_.T(_.X,{cond:function(){return!!M},
then:function(){var U={};return _.T("div",{class:_.s3("yt-radio-shape__label",(U["yt-radio-shape--event-passthrough"]=W,U)),"aria-hidden":function(){return(I==null?0:I())?"true":"false"}},M==null?void 0:M())}}),_.T(_.X,{cond:K,
then:function(){return _.T(Pyo,{checked:Q,useCheckIcon:t,isLeading:!1,selectElementClass:P,usePassthrough:W})}})))},"oe");
_.A4.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};
var Pyo=_.D(function(Y){var G=Y.useCheckIcon;var u=Y.selectElementClass;Y=Y.usePassthrough;var O=_.F("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE",Q=_.F("enable_web_delhi_icons")?"CIRCLE_FULL":O,M={};return _.T("div",{class:_.s3("yt-radio-shape__radio",u,(M["yt-radio-shape__radio--check-icon"]=G,M["yt-radio-shape__radio--radio-default-style"]=function(){return!(u==null?0:u())},M["yt-radio-shape--event-passthrough"]=Y,M)),
"aria-hidden":"true"},_.T(_.GS,{icon:function(){return(G==null?0:G())?"CHECK":O}}),_.T(_.GS,{icon:function(){return(G==null?0:G())?"CHECK":Q},
active:function(){return!(G==null?0:G())}}))},"pe");_.og=_.D(function(Y){var G=Y.data;var u=Y.isMenuItem;var O=Y.isCompact;var Q=Y.onTap;var M=Y.trailingAccessory;var t=Y.hideSelectionTextChevron;var K=Y.disabled;var L=Y.inPopup;var g=Y.disableHorizontalPadding;var P=Y.isOverlay;var I=Y.isToggled;var k=Y.ariaLabel;var n=Y.ariaPressed;var p=Y.shouldNotFillIcon;var W=!_.F("web_enable_killswitch_for_selectable_list_item_on_tap_fix");Y=!_.F("web_enable_killswitch_for_skip_child_tags");var C=_.Hx(function(u_){return KQa(G(),u_)}),e=function(){return(g==
null?void 0:g())||G().disableHorizontalPadding},w=function(){var u_;
return!((u_=G())==null||!u_.entitySelectorType)},B=function(){return w()?Object.assign({},G(),C().data):G()},N=function(){return!!B().isDisabled||!(K==null||!K())},h=_.TZj(function(){return B().rendererContext}),q=function(){return!(B().isSelected===void 0||!B().selectionStyle||B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},U=function(){return(_.pK(B().rendererContext)||Q)&&!q()},Mj={},Xt=_.s3("yt-list-item-view-model__container",(Mj["yt-list-item-view-model__container--tappable"]=
function(){return _.pK(B().rendererContext)||q()},Mj["yt-list-item-view-model__container--compact"]=O,Mj["yt-list-item-view-model__container--in-popup"]=L,Mj["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(e==null?void 0:e())&&q()},Mj)),ka=function(){return B().leadingImage||B().leadingAccessory},aU=_.s3("yt-list-item-view-model__image-container",function(){return ka()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
Mj=_.Id();var Tg=_.E(_.IE(!1,void 0,"ef0FO")),iy=Tg.next().value,hY=Tg.next().value,dA=function(){return _.T(L4b,{data:B,hideSelectionTextChevron:t,TrailingAccessory:M,isToggled:I,disabled:K,isSelectItem:q,isCompact:O,inPopup:L,disableHorizontalPadding:e,isTappableWithoutSelect:U,useButtonOrAnchor:nT,onTap:Q,shouldNotFillIcon:p})},nT=_.F("web_button_or_anchor_list_item");
Tg={};return _.T("yt-list-item-view-model",{el:_.iq(_.zi(function(){return N()?void 0:B().rendererContext},void 0,void 0,nT?["A".toString(),
"BUTTON".toString()]:[]),aPY(function(u_){if(!N()){var jT;if(jT=W)jT=B().selectionStyle,jT=jT==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||jT==="LIST_ITEM_SELECTION_STYLE_RADIO"||jT==="LIST_ITEM_SELECTION_STYLE_DEFAULT";jT||Q==null||Q(u_)}},Y?["A".toString(),
"BUTTON".toString()]:[]),FMI(function(){return U==null?void 0:U()},{focusin:function(){var u_;
((u_=_.sH().resolve(_.q3(_.SO)))==null?0:u_.isKeyBoardInUse())&&hY(!0)},
focusout:function(){hY(!1)}})),
class:_.s3("yt-list-item-view-model",(Tg["yt-list-item-view-model--is-overlay"]=P,Tg["yt-list-item-view-model--keyboard-focused"]=iy,Tg["yt-list-item-view-model--hidden"]=function(){return w()?C().isHidden:!1},Tg)),
role:function(){return(u==null?0:u())?"menuitem":"listitem"},
tabindex:function(){var u_=U();var jT=nT;q();u_=jT?void 0:_.F("web_enable_killswitch_tabindex_fix")?Q||u_?0:void 0:u_?0:void 0;return u_},
"on:keydown":Mj,"aria-label":function(){var u_;return(k==null?void 0:k())||((u_=h())==null?void 0:u_.label)},
"aria-pressed":n},_.T(_.X,{cond:q,then:function(){return _.T(_.x4,null,_.T(_.m1,{when:function(){return B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.T(Xu9,{labelRenderable:dA,
isCompact:O,checked:function(){return B().isSelected},
hasLeadingLabel:function(){return!!ka()},
labelClass:Xt,selectElementClass:aU,disableHorizontalPadding:e,onClick:W?Q:void 0,disabled:N})}),_.T(_.m1,{when:function(){return B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.T(_.A4,{labelRenderable:dA,
isCompact:O,checked:function(){return B().isSelected},
hasLeadingLabel:function(){return!!ka()},
labelClass:Xt,selectElementClass:aU,onClick:W?Q:void 0,disabled:N})}),_.T(_.m1,{when:function(){return B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.T(_.A4,{labelRenderable:dA,
isCompact:O,checked:function(){return B().isSelected},
hasLeadingLabel:function(){return!!ka()},
labelClass:Xt,selectElementClass:aU,useCheckIcon:!0,onClick:W?Q:void 0,disabled:N})}),_.T(_.W4,null,dA))},
else:dA}))},"qe");
_.og.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.ik=_.D(function(Y){var G=_.E(_.K$({canHaveZeroSize:!1})),u=G.next().value;G=G.next().value;var O=function(){return WQt(u.width(),Y.data().responsiveContainerConfiguration)||nWa(u.width(),Y.data().linearLayoutContainerConfiguration)};
return _.T("yt-linear-layout-view-model",{el:_.iq(G),class:"ytLinearLayoutViewModelHost"},_.T("div",{class:_.s3("ytLinearLayoutViewModelContainer",function(){a:switch(Y.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var Q="ytLinearLayoutViewModelHorizontal";break a;default:Q="ytLinearLayoutViewModelVertical"}return Q},function(){var Q=Y.data().linearLayoutContainerConfiguration;
return Q?[PWt(Q.flexDirection),IPa(Q.justifyContent),k6I(Q.alignItems)].join(" "):""}),
style:function(){var Q;var M=((Q=O())==null?void 0:Q.containerStyles)||{};return _.Yh(M)()}},_.T(_.HE,{data:function(){return Y.data().items},
wrapper:function(Q,M,t){return _.T("div",{style:function(){var K=t(),L;if((L=O())==null)K=void 0;else{var g=L.itemStyles,P,I;var k=(I=(P=Y.data().items)==null?void 0:P.length)!=null?I:0;K=g.call(L,K===0,K===k-1)}return _.Yh(K||{})()}},Q())}},{lockupViewModel:function(Q){return _.T(_.Ou,{data:Q.data,
containerLayoutConfig:function(){var M;return(M=O())==null?void 0:M.containerLayoutConfig}})},
basicContentViewModel:_.ei,buttonViewModel:_.$Y,chipBarViewModel:_.UdX,linearLayoutViewModel:_.ik,thumbnailViewModel:l2,descriptionPreviewViewModel:_.Qr,listItemViewModel:_.og,sectionHeaderViewModel:_.Ml})))},"re");_.hR(_.ik,"yt-linear-layout-view-model",{props:{data:_.AC}});_.hR(_.HW,"chips-shelf-view-model",{props:{data:_.AC,callback:_.wH,selectionBehavior:_.AC,disableChipsScrollAnimation:_.AC,nextButtonStyle:_.AC}});_.hR(_.D(function(Y){return _.T("yt-comment-filter-context-view-model",{class:_.s3("ytCommentFilterContextHost",Y.className)},_.T(_.eO,{text:function(){return Y.data().text}}))},"se"),"yt-comment-filter-context-view-model",{props:{data:_.AC,
className:_.wH}});_.It9=_.D(function(Y){var G=Y.data;var u=Y.onTap;var O=Y.onSwitch;var Q=Y.overrideDisabled;Y=Y.disableHorizontalPadding;var M=_.E(_.SN(function(){var k;return((k=EWu(P()))==null?void 0:k.switchedOnByDefault)||!1})),t=M.next().value,K=M.next().value;
M=_.E(_.IE(!1,void 0,"V0hCrd"));var L=M.next().value,g=M.next().value,P=function(){var k;if(!(k=G().switchButton)){var n=G();k=Q==null?void 0:Q();n={switchOnCommand:n.switchOnCommand,switchOffCommand:n.switchOffCommand,switchedOnByDefault:n.switchedOnByDefault,isDisabled:n.isDisabled,a11yLabelSwitchedOn:n.a11yLabelSwitchedOn,a11yLabelSwitchedOff:n.a11yLabelSwitchedOff};k!==void 0&&(n.isDisabled=k);k={switchButtonViewModel:n}}return k},I=function(k){var n=EWu(P());
!n||n.isDisabled||G().ignoreTapUntilCommandCompletes&&L()||(u==null||u(k),MHu(n,t(),k,G().ignoreTapUntilCommandCompletes,g),K(!t()),O==null||O(t()))};
return _.T("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.T(_.og,{data:function(){return{title:G().title,subtitle:G().attributedSubtitle,leadingImage:G().leadingImage,leadingAccessory:G().leadingAccessory,isDisabled:G().isDisabled}},
onTap:I,isToggled:t,shouldNotFillIcon:!0,trailingAccessory:function(){return _.T(_.HE,{data:P},{switchButtonViewModel:function(k){return _.T(K4B,{data:k.data,parentActive:t,onTap:I})}})},
disableHorizontalPadding:Y}))},"te");var kgx=_.D(function(Y){var G=Y.data;Y=Y.className;var u=function(){var K;return((K=O())==null?void 0:K.isToggled)!==void 0},O=_.Hx(function(K){a:{var L=G().entityKey,g=G().entitySelectorType;
if(g)switch(g){case "TOGGLEABLE_LIST_ITEM_ENTITY_SELECTOR_TYPE_TOGGLE_MENU_SERVICE_ITEM_ENTITY":if(!L)break;var P,I;K={isToggled:(I=(P=_.at.toggleMenuServiceItemEntitySelector(K,L))==null?void 0:P.isToggled)!=null?I:!1};break a;default:_.R0(new _.I2("Error: entitySelectorType defined but not matched in selector.",K,g))}K=void 0}return K}),Q=_.E(_.SN(function(){var K,L,g;
return u()?(K=O())==null?void 0:K.isToggled:(L=G())==null?void 0:(g=L.initialState)==null?void 0:g.isToggled})),M=Q.next().value,t=Q.next().value;
return _.T("toggleable-list-item-view-model",{el:_.iq(_.zi(function(){return G().rendererContext},{onTap:function(K,L){L();
u()||t(!M())}})),
class:_.s3("toggleableListItemViewModelHost",Y)},_.T(_.X,{cond:function(){if(M()){var K=G().toggledListItem;K=_.z(K,_.ad)}else K=G().defaultListItem,K=_.z(K,_.ad);return K},
then:function(K){return _.T(_.og,{data:K,isToggled:M,ariaLabel:function(){var L=M()?G().toggledListItem:G().defaultListItem,g;L=(g=_.z(L,_.ad))==null?void 0:g.rendererContext;var P;return(P=_.z(L,_.L$))==null?void 0:P.label},
ariaPressed:function(){return M()}})}}))},"ue");var na9=_.Q6("DOWNLOAD",{},"Download"),F4x=_.Q6("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),pu9=_.Q6("RETRY",{},"Retry"),zAV=_.Q6("PAUSE_DOWNLOADING",{},"Pause downloading"),mjx=_.Q6("RESUME_DOWNLOAD",{},"Resume download"),rIt={text:na9,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},g4={text:F4x,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},CWY={text:pu9,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
xqY={text:zAV,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},fPA={text:mjx,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var W4S=_.D(function(Y){var G=function(){var K=Y.data();K=_.F9(K.rendererContext);var L;return(L=_.z(K,_.Gi))==null?void 0:L.videoId},u=_.Hx(function(K){var L=G(),g=AIA(Y.data());
return L?_.mZ(K,L):g?_.WC(K,g):"TRANSFER_STATE_UNKNOWN"}),O=_.Oe(_.csA,G),Q=_.Hx(function(K){return _.jVt(K,G(),AIA(Y.data()))}),M=function(){return eqt(u(),O(),_.F9(Y.data().rendererContext),!!AIA(Y.data()))},t=function(){return Q()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.T("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:t},_.T(_.X,{cond:function(){return!t()},
then:function(){return _.T(_.X,{cond:M,then:function(K){return _.T(_.rc,{each:K},function(L){return _.T(_.og,{data:L,isCompact:Y.isCompact,isMenuItem:Y.isMenuItem,inPopup:Y.inPopup,disableHorizontalPadding:Y.disableHorizontalPadding})})}})}}))},"ve");
W4S.idomCompat=!0;_.rYb=_.D(function(Y){var G=Y.data;var u=Y.isCompact;var O=Y.hideSelectionTextChevron;var Q=Y.inPopup;var M=Y.isOverlay;var t=Y.disableHorizontalPadding;var K=function(){return oWa(G())&&(Q==null?void 0:Q())},L=_.F("web_list_view_model_listbox_killswitch")?"menu":"listbox";
Y=_.U3(function(P){if(Q!=null&&Q()&&_.F("web_enable_arrow_key_navigation_in_dropdown")){var I=_.Ea1(P.currentTarget);if(I.length!==0){var k=Array.prototype.indexOf.call(I,document.activeElement);switch(P.key){case "ArrowDown":P.preventDefault();iP4(I,k);break;case "ArrowUp":P.preventDefault();Rqa(I,k);break;case "Tab":P.preventDefault(),P.shiftKey?Rqa(I,k):iP4(I,k)}}}});
var g={};return _.T("yt-list-view-model",{class:_.s3("ytListViewModelHost",(g.ytListViewModelHostKaiosSpatNav=f8U&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",g)),role:function(){return K()?L:"list"},
style:_.Yh({"max-height":function(){var P,I=(P=G())==null?void 0:P.visibleElementCount;if(I)return(I+.5)*40+"px"}}),
"on:keydown":Y},_.T(_.HE,{data:function(){return G().listItems}},{listItemViewModel:function(P){return _.T(_.og,{data:P.data,
isMenuItem:K,isCompact:u,hideSelectionTextChevron:O,inPopup:Q,isOverlay:M,disableHorizontalPadding:t})},
toggleableListItemViewModel:function(P){return _.T(kgx,{data:P.data})},
downloadListItemViewModel:function(P){return _.T(W4S,{data:P.data,isMenuItem:K,isCompact:u,inPopup:Q,disableHorizontalPadding:t})},
switchListItemViewModel:function(P){return _.T(_.It9,{data:P.data,disableHorizontalPadding:t})}}))},"we");
_.rYb.idomCompat=!0;var xj9=_.D(function(Y){var G=Y.data;var u=Y.isOverlay;Y={};return _.T("yt-course-perks-view-model",{class:_.s3("ytwCoursePerksViewModelHost",(Y.ytwCoursePerksViewModelHostOverlay=u,Y))},_.T("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.T(_.eO,{text:function(){return G().title}})),_.T("div",null,_.T(_.X,{cond:function(){return G().perks},
then:function(O){return _.T(_.rYb,{data:function(){return{listItems:O()}},
isCompact:!0,isOverlay:u})}})))},"xe");_.hR(xj9,"yt-course-perks-view-model",{props:{data:_.wH,isOverlay:_.wH}});_.hR(_.D(function(Y){var G=Y.data;return _.T("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.T("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.T(_.eO,{text:function(){return G().title}})),_.T("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.T(_.eO,{text:function(){return G().progressSummary}})),_.T("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.T("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Yh({width:function(){return G().progressPercentage*100+"%"}})})))},"ye"),"yt-course-progress-view-model",{props:{data:_.AC}});var ftb=_.D(function(Y){var G={};return _.T("yt-progress-view-model",{class:_.s3("ytwProgressViewModelHost",(G.ytwProgressViewModelHostOverlay=_.dB(Y.isOverlay,!1),G))},_.T(_.X,{cond:function(){return Y.data().progressSummary},
then:function(u){return _.T("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.T(_.eO,{text:u}))}}),_.T("div",{class:"ytwProgressViewModelHostProgressContainer"},_.T(_.X,{cond:function(){return Y.data().leadingLabel},
then:function(u){return _.T("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.T(_.eO,{text:u}))}}),_.T("div",{class:"ytwProgressViewModelHostProgressBar"},_.T("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(Y.data().progressPercentage||0)*100+"%"}}))))},"ze");var Rg=_.D(function(Y){var G=Y.starNumber;var u=Y.data;var O=function(){var Q;return((Q=u())==null?void 0:Q.rating)||0};
return _.T(_.X,{cond:function(){return G()},
then:function(Q){return _.T(_.x4,null,_.T(_.m1,{when:function(){return O()>=Q()-.25}},function(){return _.T("div",{class:"ytStarRatingViewModelHostStar"},_.T(_.GS,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.T(_.m1,{when:function(){return O()>=Q()-.75}},function(){return _.T("div",{class:"ytStarRatingViewModelHostStar"},_.T(_.GS,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.T(_.W4,null,function(){return _.T("div",{class:"ytStarRatingViewModelHostStar"},_.T(_.GS,{icon:"STAR",
size:function(){return 24}}))}))}})},"Ae"),Cyb=_.D(function(Y){Y=Y.data;
return _.T("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.T(Rg,{starNumber:1,data:Y}),_.T(Rg,{starNumber:2,data:Y}),_.T(Rg,{starNumber:3,data:Y}),_.T(Rg,{starNumber:4,data:Y}),_.T(Rg,{starNumber:5,data:Y}))},"Be");_.hR(_.D(function(Y){var G=_.bM(Y,{}).data;return _.T("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.T("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.T(_.eO,{text:function(){var u;return(u=G())==null?void 0:u.title}})),_.T("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.T(_.X,{cond:function(){return G().starProgressViewModels},
then:function(u){return _.T("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.T(_.HE,{data:u},{progressViewModel:ftb}))}}),_.T("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.T("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.T(_.eO,{text:function(){var u;
return(u=G())==null?void 0:u.averageRatingLabel}})),_.T(_.X,{cond:function(){return G().zeroStateText},
then:function(u){return _.T("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.T(_.eO,{text:u}))}}),_.T(_.X,{cond:function(){return G().starRatingViewModel},
then:function(u){return _.T("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.T(_.HE,{data:u},{starRatingViewModel:Cyb}))}}),_.T("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.T(_.eO,{text:function(){var u;
return(u=G())==null?void 0:u.totalRatingsCountLabel}})))))},"Ce"),"yt-course-ratings-view-model",{props:{data:_.wH}});var yYN;yYN={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"}};_.eAb=_.D(function(Y){var G=_.CH("yt-learning-journey-loader-view-model"),u=_.Jf();_.o1(function(){requestAnimationFrame(function(){var Q;(Q=u.lottieEl)==null||Q.addEventListener("DOMLoaded",function(){var M;(M=Y.onLottieLoaded)==null||M.call(Y)})});
var O=Y.data().browseEndpoint;O&&_.W3(O)});
return _.T("yt-learning-journey-loader-view-model",{class:_.s3("learningJourneyLoaderViewModelHost",Y.className),"data-target-id":function(){return Y.data().targetId||""},
el:G},_.T(_.JC,{className:_.s3("learningJourneyLoaderViewModelLoader",Y.className),animationName:function(){return yYN.animationConfig.name},
data:yYN,animationRef:u}))},"Ee");_.hR(_.eAb,"yt-learning-journey-loader-view-model",{props:{data:_.AC,className:_.wH,onLottieLoaded:_.wH}});var AYN=_.D(function(Y){var G=function(){return Y.data()},u=function(){return!!_.Iz(_.X2(G())).optionColor},O=_.E(_.IE(-1,void 0,"gXOYR")),Q=O.next().value,M=O.next().value,t=function(I){return Q()===I},K=function(I){return G().correctAnswerIndex===I},L=function(){return Q()!==-1};
O=_.E(_.IE("",void 0,"BFwDQb"));var g=O.next().value,P=O.next().value;return _.T("learning-journey-quiz-view-model",{class:_.s3("learningQuizComponentHost","learningJourneyQuizYoututorHost",Y.className),style:_.Yh({background:function(){return _.Iz(_.X2(G())).backgroundColor}})},_.T("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},g),_.T("div",{class:"learningQuizComponentQuizContainer"},_.T("div",{class:"learningQuizComponentQuiz"},_.T("div",{class:"learningQuizComponentQuizContent"},_.T(_.X,{cond:function(){return!!G().aiGeneratedQuizLabel},
then:function(){return _.T("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.T(_.eO,{text:function(){return G().aiGeneratedQuizLabel}}))}}),_.T("div",{class:"learningQuizComponentQuizHeader",
style:_.Yh({"align-items":function(){return G().overflowMenu?"start":"center"}})},_.T("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.Yh({"min-height":function(){return G().overflowMenu?"48px":"26px"}})},_.T("div",{class:"learningJourneyQuizYoututorText",
style:_.Yh({color:function(){return _.Iz(_.X2(G())).primaryTextColor}})},_.T(_.eO,{text:function(){return G().questionHeaderText}})))),_.T("div",{class:"learningQuizComponentQuizSubheader",
style:_.Yh({color:function(){return _.Iz(_.X2(G())).secondaryTextColor}})},_.T(_.eO,{text:function(){var I=G();
return L()?I.explanationText:I.questionSubheaderText}}))),_.T("div",{role:"group",
class:_.s3("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.T(_.rc,{each:function(){return G().optionsData||[]}},function(I,k){var n={};
return _.T("button",{class:_.s3("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(n.learningQuizComponentQuizHover=function(){return!L()},n.learningQuizComponentQuizOptionWithCustomColor=u,n.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return L()&&K(k())},n.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return Q()!==G().correctAnswerIndex&&t(k())},n.learningQuizComponentQuizIncorrectShake=
function(){return Q()!==G().correctAnswerIndex&&t(k())},n)),
"on:click":_.U3(function(){_.er(_.M4(),{data:I});if(L())return!1;M(k());var p,W;P(K(k())?((p=G().successTitle)==null?void 0:p.content)||"":((W=G().failureTitle)==null?void 0:W.content)||"");return!1}),
style:_.Yh({background:"transparent"}),"aria-description":function(){var p,W;return L()?K(k())?(p=G().successTitle)==null?void 0:p.content:(W=G().failureTitle)==null?void 0:W.content:""},
"aria-disabled":L},_.T("div",{class:"learningQuizComponentQuizOptionContainer"},_.T(_.eO,{text:I.optionText}),_.T(_.X,{cond:function(){var p=k();return L()&&(t(p)||K(p))},
then:function(){var p={};return _.T(_.GS,{className:_.s3("learningJourneyQuizYoututorOptionIcon",(p.learningQuizComponentQuizPulse=function(){return Q()===G().correctAnswerIndex&&K(k())},p)),
size:24,icon:function(){return K(k())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.T(_.X,{cond:L,
then:function(){return _.T("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.T("div",{class:"learningJourneyQuizYoututorExplanationText"},_.T(_.eO,{text:function(){return G().explanationHeaderText}})),_.T(_.eO,{text:function(){return G().optionsData[Q()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"Fe");
AYN.idomCompat=!0;Object.freeze&&Object.freeze(Object.create(null));var hqt=function(){},oax;
(oax=window.requestIdleCallback)==null||oax.bind(window);var ZPj=new Set,wtg=null;var i1B;_.RAy=_.D(function(Y){var G=null,u=null,O=null,Q=function(){return Y.data()},M=function(){return _.Iz(_.X2(Q()))},t=function(){return!!M().optionColor},K=_.E(_.IE(-1,void 0,"H2gnQb")),L=K.next().value,g=K.next().value,P=function(N){return L()===N},I=function(N){return Q().correctAnswerIndex===N},k=function(){return L()!==-1},n=function(){return L()===Q().correctAnswerIndex},p=function(){var N=Q(),h=k(),q=n();
return h?q?N.successTitle:N.failureTitle:N.questionHeaderText},W=function(){var N=k(),h=n();
return N?h?264685:264684:264683},C=function(){var N=Q();
return k()?N.explanationText:N.questionSubheaderText},e=function(){return!!Q().video},w=function(N){return n()&&I(N)},B=_.U3(function(){g(-1);
return!1});
return _.T(_.X,{cond:function(){return Q().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.T(AYN,{data:function(){return Q()}})},
else:function(){return _.T("learning-journey-quiz-view-model",{class:_.s3("learningQuizComponentHost",Y.className),style:_.Yh({background:function(){return M().backgroundColor}})},_.T(_.X,{cond:e,
then:function(){return _.T("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.Yh({background:function(){return M().videoBackgroundColor}})},_.T(_.HE,{data:function(){return Q().video}},{lockupViewModel:function(N){return _.T(_.Ou,{data:N.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.T("div",{class:"learningQuizComponentQuizContainer"},_.T("div",{class:"learningQuizComponentQuiz"},_.T("div",{class:"learningQuizComponentQuizContent"},_.T(_.X,{cond:function(){return!!Q().aiGeneratedQuizLabel},
then:function(){return _.T("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.T(_.eO,{text:function(){return Q().aiGeneratedQuizLabel}}))}}),_.T("div",{class:"learningQuizComponentQuizHeader",
style:_.Yh({"align-items":function(){return Q().overflowMenu?"start":"center"}})},_.T("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.Yh({"min-height":function(){return Q().overflowMenu?"48px":"26px"}})},_.T("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.iq(function(N){_.k2(W(),N,G,function(h){G=h})}),
style:_.Yh({color:function(){return M().primaryTextColor}}),
"client-ve-type":W},_.T(_.eO,{text:p}))),_.T("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.T(_.X,{cond:k,then:function(){return _.T("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.iq(function(N){_.k2(264687,N,u,function(h){u=h})}),
"on:click":B,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.T("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Yh({fill:function(){return M().primaryTextColor}})},_.T("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"})))}}),
_.T(_.HE,{data:function(){return Q().overflowMenu}},{buttonViewModel:function(N){return _.T(_.$Y,{data:N.data})}}))),_.T("div",{class:"learningQuizComponentQuizSubheader",
el:_.iq(function(N){_.k2(264688,N,O,function(h){O=h})}),
style:_.Yh({color:function(){return M().secondaryTextColor}}),
"client-ve-type":264688},_.T(_.eO,{text:C}))),_.T("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.T(_.rc,{each:function(){return Q().optionsData||[]}},function(N,h){var q={};
return _.T("button",{class:_.s3("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(q.learningQuizComponentQuizHover=function(){return!k()},q.learningQuizComponentQuizOptionWithCustomColor=t,q.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return w(h())},q.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!n()&&P(h())},q.learningQuizComponentQuizIncorrectShake=function(){return!n()&&
P(h())},q.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return k()&&!P(h())},q)),
"on:click":_.U3(function(){_.er(_.M4(),{data:N});if(k())return!1;g(h());return!1}),
style:_.Yh({background:function(){var U=h();return k()&&P(U)?"":t()?M().optionColor:"transparent"}}),
"aria-disabled":k},_.T("div",{class:"learningQuizComponentQuizOptionContainer"},_.T(_.X,{cond:k,then:function(){return _.T(i1B,{isOptionCorrect:I,optionIndex:h,isOptionSelectedAndCorrect:w,colors:M})}}),_.T(_.eO,{text:N.optionText})))})))))}})},"Ge");
i1B=_.D(function(Y){var G={};return _.T("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var u=Y.optionIndex();return Y.isOptionCorrect(u)?"0 0 24 24":"0 -960 960 960"},
class:_.s3("learningJourneyQuizViewModelQuizOptionIconLeading",(G.learningQuizComponentQuizPulse=function(){return Y.isOptionSelectedAndCorrect(Y.optionIndex())},G)),
style:_.Yh({fill:function(){return Y.colors().primaryTextColor}})},_.T("path",{d:function(){var u=Y.optionIndex();
return Y.isOptionCorrect(u)?"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"}}))},"He");
_.RAy.idomCompat=!0;_.hR(_.RAy,"learning-journey-quiz-view-model",{props:{data:_.AC,className:_.AC}});var wuN=_.D(function(Y){var G=_.E((0,_.$sX)(function(){var t;return{targetId:(t=Y.data().config)==null?void 0:t.suspenseKey,contents:[Y.data()]}})).next().value,u=_.sH().resolve(_.rH),O=function(){var t=G().contents.length>0?G().contents[0]:void 0;
return t==null?void 0:t.config},Q=function(){var t;
return(t=O())==null?void 0:t.entityTriggerConfig},M=_.Oe(ew1,function(){var t,K;
return(K=(t=Q())==null?void 0:t.entityKey)!=null?K:""});
_.RE(function(){var t,K,L,g=(L=Number((t=Q())==null?void 0:(K=t.invalidationTimestamp)==null?void 0:K.seconds))!=null?L:0,P,I,k;if(((k=Number((P=M())==null?void 0:(I=P.lastUpdated)==null?void 0:I.seconds))!=null?k:0)>g){var n;(t=(n=O())==null?void 0:n.continuationCommand)&&u.resolveCommand(t)}},"tC8nKe");
return _.T("yt-suspense-view-model",{class:_.s3("ytSuspenseViewModelHost")},_.T(_.HE,{data:function(){var t;return(t=O())==null?void 0:t.contents}},{lockupViewModel:_.Ou}))},"Je");var Z19=_.D(function(Y){var G=_.bM(Y,{palette:void 0,isLastItem:!1}),u=G.palette,O=G.isLastItem,Q=function(){return Y.data().isHighlighted},M=function(){var L;
return dq1((L=u())==null?void 0:L.iconDisabledColor)},t=function(){var L;
return dq1((L=u())==null?void 0:L.primaryTitleColor)},K=function(){var L;
return dq1((L=u())==null?void 0:L.secondaryTitleColor)};
G={};return _.T("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.iq(_.zi(function(){return Y.data().rendererContext}))},_.T(_.HE,{data:function(){return Y.data().thumbnail}},{thumbnailViewModel:l2}),_.T("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.T("div",{class:_.s3("ytMacroMarkerListItemViewModelTimeDescription",(G.ytMacroMarkerListItemViewModelHighlighted=Q,G)),
style:_.Yh({"background-color":function(){return Q()?t():M()},
color:function(){return Q()?"":K()}})},_.T(_.eO,{text:function(){return Y.data().timestamp}})),_.T("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Yh({"background-color":function(){return O()?"transparent":M()}})}),_.T("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(Q()?t():K())}},_.T(_.eO,{text:function(){return Y.data().title}}))))},"Ke");_.wm=_.D(function(Y){function G(Yk){w("transform:translateX("+(_.DE("HTML_DIR")==="rtl"?"":"-")+Yk+"px)")}
function u(Yk){return Math.min(Math.max(Yk,0),e()-U())}
function O(Yk){var qj=h()+aU();if(!Q())return 0;Yk===void 0&&(Yk=Math.round(U()/qj)||1);return Yk*qj}
var Q=function(){return Y.data().items||[]},M=function(){return Y.data().previousButton},t=function(){return Y.data().nextButton},K=function(){var Yk,qj;
return(qj=(Yk=Y.disableArrows)==null?void 0:Yk.call(Y))!=null?qj:!1},L=function(){var Yk;
return!((Yk=Y.forceNarrowLayout)==null||!Yk.call(Y))},g=_.p2(function(){var Yk;
return!((Yk=Y.centerAlignItems)==null||!Yk.call(Y))&&e()<=U()},void 0,"iGOqxd"),P=_.CH("horizontal-shelf-view-model"),I=_.CH("div"),k=_.E(_.IE(0,void 0,"tieKmf")),n=k.next().value,p=k.next().value;
k=_.E(_.IE(0,void 0,"W2lvv"));var W=k.next().value,C=k.next().value,e=W;W=_.E(_.IE("",void 0,"PEePkc"));k=W.next().value;var w=W.next().value;W=_.E(_.IE(0,void 0,"c7a4W"));var B=W.next().value,N=W.next().value,h=B;W=_.E(_.IE(0,void 0,"KGhRJf"));B=W.next().value;var q=W.next().value,U=B;W=_.E(_.IE(!1,void 0,"fgWgyc"));var Mj=W.next().value,Xt=W.next().value;W=_.E(_.IE(0,void 0,"pe79rc"));B=W.next().value;var ka=W.next().value,aU=B;W=_.E(_.IE(0,void 0,"CTqisc"));var Tg=W.next().value,iy=W.next().value;
W=_.E(_.IE(0,void 0,"S2Yf1b"));var hY=W.next().value,dA=W.next().value;W=_.E(_.IE("50%",void 0,"kjP5ke"));var nT=W.next().value,u_=W.next().value,jT=function(){var Yk,qj=(Yk=Y.data())==null?void 0:Yk.responsiveContainerConfiguration,Gx,fT;return qj?yY(qj==null?void 0:qj.responsiveSize):(fT=(Gx=Y.sizing)==null?void 0:Gx.call(Y))!=null?fT:"STANDARD"},P1=function(){var Yk,qj=(Yk=Y.data())==null?void 0:Yk.responsiveContainerConfiguration;
return qj?qj.enableContentSpecificAspectRatio===!1:!1};
W=_.p2(function(){return!K()&&n()>0},void 0,"jT8Bud");
B=_.p2(function(){return!K()&&n()<e()-U()},void 0,"mt4gsb");
var kk=function(){P.value!==null&&Xg()},Fe;
_.ii(function(){Xg();window.ResizeObserver?(Fe=new ResizeObserver(_.pu(kk,0)),Fe.observe(P.value)):window.addEventListener("resize",kk)});
_.w_(function(){if(window.ResizeObserver){var Yk;(Yk=Fe)==null||Yk.disconnect()}else window.removeEventListener("resize",kk)});
var Xg=function(){var Yk=P.value.clientWidth,qj=Y.includeMargin!==void 0?Y.includeMargin():!1,Gx;var fT=Y.hasPeek!==void 0?Y.hasPeek():!((Gx=Y.data())==null||!Gx.hasPeek);Yk=_.CK({containerWidth:Yk,hasPeek:fT,sizing:jT(),marginSettings:qj?L()?4:1:0});ka(Yk.gutter);iy(Yk.margin);N(Yk.itemWidth);Xt(Yk.maxContainerWidth<528||L());q(Yk.maxContainerWidth);Q()&&C((Yk.itemWidth+Yk.gutter)*Q().length-Yk.gutter);if(Q()){var b_;if(((b_=Y.thumbnailAspectRatio)==null?void 0:b_.call(Y))!==void 0){var MK;u_(h()/
HEj((MK=Y.thumbnailAspectRatio)==null?void 0:MK.call(Y))/2+"px")}else u_("50%")}},Hb={},n1={};
return _.T("horizontal-shelf-view-model",{class:_.s3("ytwHorizontalShelfViewModelHost",Y.className),el:P},_.T(_.X,{cond:function(){var Yk;return Y.data().header&&!((Yk=Y.horizontalShelfExperiments)==null?0:Yk.call(Y).hideHeader)},
then:function(){return _.T("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Yh({width:function(){return U()+"px"},
padding:function(){return"0 "+Tg()+"px"}})},_.T(_.HE,{data:function(){return Y.data().header}},{sectionHeaderViewModel:function(Yk){return _.T(_.Ml,{data:Yk.data,
disableHorizontalPadding:!0,forceSmallLayout:Mj,useResponsiveLayout:!0})}}))}}),_.T("div",{class:_.s3("ytwHorizontalShelfViewModelOuterContainer",(Hb.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return g()},Hb)),
style:_.Yh({"margin-top":function(){var Yk,qj=Y.data().header&&!((Yk=Y.horizontalShelfExperiments)==null?0:Yk.call(Y).hideHeader),Gx;return(((Gx=Y.ensureMarginTop)==null?0:Gx.call(Y))&&!qj?12:0)+"px"}})},_.T("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Yh({width:function(){return U()+"px"},
padding:function(){return"0 "+Tg()+"px"},
overflow:function(){return K()?"auto":"hidden"}})},_.T("div",{class:_.s3("ytwHorizontalShelfViewModelItems",(n1.ytwHorizontalShelfViewModelCenterAlignItems=function(){return g()},n1)),
el:I,style:k},_.T(_.HE,{data:Q},{macroMarkerListItemViewModel:function(Yk,qj){return _.T("div",{style:_.Yh({width:function(){return h()+"px"},
"margin-right":function(){return(qj()===Q().length-1?0:aU())+"px"}})},_.T(Z19,{data:Yk.data,
palette:_.dB(Y.palette),isLastItem:function(){return qj()===Q().length-1}}))},
lockupViewModel:function(Yk,qj){var Gx=Yk.data;return _.T("div",{"on:focusin":_.U3(function(){var fT=qj();fT!==hY()&&(fT<hY()?p(u(n()-O(1))):p(u(n()+O(1))),G(n()),dA(fT));return!0}),
style:_.Yh({width:function(){return h()+"px"},
"margin-right":function(){return(qj()===Q().length-1?0:aU())+"px"}})},_.T(_.Ou,{data:Gx,
containerType:4,sizing:jT,protectBackground:Y.protectBackground,thumbnailFixedWidth:function(){return bP4(Gx())+"px"},
thumbnailTargetWidth:function(){return bP4(Gx())},
force16By9ThumbnailAspectRatio:P1}))},
suspenseViewModel:function(Yk,qj){return _.T("div",{style:_.Yh({width:function(){return h()+"px"},
"margin-right":function(){return(qj()===Q().length-1?0:aU())+"px"}})},_.T(wuN,{data:Yk.data}))}}))),_.T(_.X,{cond:W,
then:function(){return _.T("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.Yh({top:function(){return nT()}})},_.T(_.HE,{data:M},{buttonViewModel:function(Yk){return _.T(_.$Y,{data:Yk.data,
onClick:function(){p(u(n()-O(void 0)));G(n())}})}}))}}),_.T(_.X,{cond:B,
then:function(){return _.T("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.Yh({top:function(){return nT()}})},_.T(_.HE,{data:t},{buttonViewModel:function(Yk){return _.T(_.$Y,{data:Yk.data,
onClick:function(){p(u(n()+O(void 0)));G(n())}})}}))}})))},"Le");
_.wm.idomCompat=!0;var DjV=_.D(function(Y){var G=function(){return Y.data().targetId||""},u=function(){var W;
return((W=Y.data())==null?void 0:W.expansionEntityKey)||""},O=_.Oe(_.yca,u),Q=!0,M=function(){var W;
return((W=O())==null?void 0:W.value)===G()},t=function(W){_.hj(_.t$("stringEntity",u(),{key:u(),
value:W?G():""}))};
_.o1(function(){Q=!1;Y.data().isExpanded&&t(!0)});
var K=function(){if(M()){var W=!0;Y.onCollapse!==void 0&&(W=Y.onCollapse());W&&t(!1)}else t(!0)},L=_.U3(K),g=function(){var W;
return(((W=Y.accordionStyle)==null?void 0:W.call(Y))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},P=_.CH("div"),I=function(){var W,C;
return(C=(W=_.z(Y.data().rendererContext,_.L$))==null?void 0:W.label)!=null?C:""},k=function(){var W,C;
return{disabled:(W=Y.hideIfNotExpanded)==null?void 0:W.call(Y),ariaHidden:(C=Y.hideIfNotExpanded)==null?void 0:C.call(Y)}},n={},p={};
return _.T("yt-accordion-item-view-model",{class:_.s3("ytAccordionItemViewModelHost",Y.className,(n.ytAccordionItemViewModelExpanded=function(){return M()},n.ytAccordionItemViewModelHidden=function(){var W;
return(W=Y.hideIfNotExpanded)==null?void 0:W.call(Y)},n.ytAccordionItemViewModelMini=g,n)),
"data-target-id":G},_.T("div",{class:"ytAccordionItemViewModelContainer"},_.T("div",{class:"ytAccordionItemViewModelLeftSection","on:click":L,title:I,"aria-hidden":function(){var W;return(W=Y.hideIfNotExpanded)==null?void 0:W.call(Y)}},_.T(_.eO,{text:function(){return Y.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:I})),_.T("div",{class:"ytAccordionItemViewModelRightSection"},_.T(_.HE,{data:function(){return M()?Y.data().expandButton:Y.data().collapseButton}},{buttonViewModel:function(W){return _.T(_.$Y,{data:W.data,
className:"ytAccordionItemViewModelToggleButton",onClick:K,buttonOverrides:k})}}))),_.T("div",{class:"ytAccordionItemViewModelContainer"},_.T("div",{class:_.s3("ytAccordionItemViewModelContent",(p.ytAccordionItemViewModelExpandedSubtitle=function(){return M()},p)),
el:P,style:_.Yh({"max-height":function(){return Q?"auto":M()?P.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!M()}},_.T(_.X,{cond:function(){return!g()},
then:function(){return _.T(_.eO,{text:function(){return Y.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.T(_.HE,{data:function(){return Y.data().content}},{horizontalShelfViewModel:function(W){return _.T(_.wm,{data:W.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Ne");_.hA9=_.D(function(Y){var G=_.E((0,_.$sX)(Y.data)).next().value,u=function(){return Y.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},O=function(){return u()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Q=_.E(_.IE(!0,void 0,"VFpYAb")),M=Q.next().value,t=Q.next().value,K=function(){return O()&&M()},L=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){t(!M())}}},g=_.U3(function(){G().onTitleTap&&_.W3(G().onTitleTap||{})});
Q={};return _.T("yt-accordion-view-model",{class:_.s3("ytAccordionViewModelHost",(Q.ytAccordionViewModelMinimized=function(){return K()},Q)),
"data-target-id":function(){return Y.data().targetId||""}},_.T(_.X,{cond:function(){return O()||!!G().title},
then:function(){return _.T("div",{class:"ytAccordionViewModelHeader"},_.T("div",{class:"ytAccordionViewModelTitleSection"},_.T("div",{class:"ytAccordionViewModelTitleWrapper"},_.T(_.X,{cond:function(){return!!Y.data().headerIcon},
then:function(){return _.T(_.GS,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var P;return(P=Y.data().headerIcon)==null?void 0:P.iconType}})}}),_.T("div",{class:"ytAccordionViewModelTitle",
"on:click":g},_.T(_.eO,{className:"ytAccordionViewModelTitleText",text:function(){return G().title}})))),_.T("div",{class:"ytAccordionViewModelButtonSection"},_.T(_.X,{cond:O,
then:function(){return _.T(_.BZ,{data:L,iconName:function(){return K()?"chevron_down":"chevron_collapse"}})}})))}}),_.T("div",{class:"ytAccordionViewModelContent"},_.T(_.HE,{data:function(){return G().contents}},{accordionItemViewModel:function(P){return _.T(DjV,{data:P.data,
className:"ytAccordionViewModelRow",accordionStyle:u,hideIfNotExpanded:K,onCollapse:function(){return O()?(t(!0),!1):!0}})}})),_.T("div",null,_.T(_.X,{cond:function(){return!O()&&(!!G().disclaimerFooter||!!G().footer)},
then:function(){return _.T("div",{class:"ytAccordionViewModelFooter"},_.T(_.eO,{text:function(){return G().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.T(_.HE,{data:function(){return Y.data().footer}},{flexibleActionsViewModel:function(P){return _.T(_.W7,{data:P.data,
layout:0})}}))}})))},"Oe");_.hR(_.hA9,"yt-accordion-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=null,u=null,O,Q=(O=_.sH().resolve(_.q3(_.Ee)))==null?void 0:O(),M=_.E(_.IE(!1,void 0,"CmEVtc"));O=M.next().value;var t=M.next().value;M=_.E(_.IE(!0,void 0,"yo9dR"));var K=M.next().value,L=M.next().value,g=_.CH("textarea",function(C){_.k2(264503,C,G,function(e){G=e})}),P=function(C){t(!0);
C={learningJourneyFormData:{query:C}};_.W3(Y.data().searchEndpoint||{},{form:{formData:C}});return!1},I=_.U3(function(C){C.target.closest("button-view-model")&&t(!0)});
M=_.U3(function(){L(g.value.value.length===0)});
var k=_.U3(function(C){if(C.key==="Enter"&&!C.shiftKey&&!K()){var e=C.target;C.preventDefault();P(e.value)}}),n={},p={},W={};
return _.T("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.T("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.T(_.RD,{data:function(){return Y.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.T("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.T("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.T("div",{class:_.s3("ytLearningJourneyZeroStateSearchBar",(n.ytLearningJourneyZeroStateSearchBarDark=Q,n))},_.T("textarea",{class:_.s3("ytLearningJourneyZeroStateTextInput",(p.ytLearningJourneyZeroStateTextInputDark=Q,p)),el:g,"on:keyup":M,"on:keydown":k,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.T("div",{class:_.s3("ytLearningJourneyZeroStateSearchButtonContainer",(W.ytLearningJourneyZeroStateSearchButtonContainerDark=Q,W))},_.T(_.$Y,{data:function(){return _.z(Y.data().searchButton,_.Ck)},
className:"search-button",onClick:function(){return P(g.value.value)},
buttonOverrides:function(){return{disabled:K(),style:Q?"mono-inverse":"mono",size:"XL"}}}))),_.T(_.X,{cond:function(){return!!Y.data().errorBanner},
then:function(){return _.T("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.iq(function(C){_.k2(264617,C,u,function(e){u=e})})},_.T(_.HE,{data:function(){return Y.data().errorBanner}},{alertBannerViewModel:function(C){return _.T(_.MTN,{data:C.data,
"client-ve-type":264617})}}))}})),_.T(_.X,{cond:O,
then:function(){return _.T("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.T(_.HE,{data:function(){return Y.data().loader}},{learningJourneyLoaderViewModel:function(C){return _.T(_.eAb,{data:C.data})}}))},
else:function(){return _.T("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.T(_.X,{cond:function(){return!!Y.data().learningJourneyShelf},
then:function(){return _.T("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.T("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return Y.data().learningJourneySectionTitle}),_.T(_.HE,{data:function(){return Y.data().learningJourneyShelf}},{horizontalShelfViewModel:function(C){return _.T(_.wm,{data:C.data,
centerAlignItems:!0})}}))}}),_.T("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.T("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return Y.data().suggestedJourneySectionTitle}),_.T("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":I},_.T(_.HE,{data:function(){return Y.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(C){return _.T(_.W7,{data:C.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Pe"),"yt-learning-journey-zero-state",{props:{data:_.AC}});var djb=_.D(function(Y){var G=Y.data;return _.T("ytvl-live-leaderboard-item-action-content-view-model",{class:_.s3("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.T(_.eO,{text:function(){var u;return(u=G())==null?void 0:u.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.T(_.HE,{data:function(){return G().actionButton}},{buttonViewModel:function(u){return _.T(_.$Y,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:u.data})}}))},"Qe");var b1x=_.D(function(Y){var G=Y.data;return _.T("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.s3("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.T(_.eO,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var u;return(u=G())==null?void 0:u.displayName},
ellipsisTruncate:!0}),_.T(_.HE,{data:function(){return G().badge}},{buttonViewModel:function(u){return _.T(_.$Y,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:u.data})}}))},"Re");_.hR(_.D(function(Y){var G=Y.data;return _.T("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.T("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.T(_.eO,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var u;return(u=G())==null?void 0:u.rank}})),_.T("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.T(_.HE,{data:function(){return G().avatar}},{avatarViewModel:_.z$})),_.T("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.T(_.HE,{data:function(){return G().content}},{liveLeaderboardItemChannelContentViewModel:b1x,
liveLeaderboardItemActionContentViewModel:djb})),_.T(_.eO,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var u;return(u=G())==null?void 0:u.points}}))},"Se"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=Y.data;return _.T("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.T(_.eO,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var u,O;return(u=G())==null?void 0:(O=u.ranking)==null?void 0:O.rank}}),_.T("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.T(_.HE,{data:function(){return G().avatar}},{avatarViewModel:_.z$})),_.T(_.eO,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var u,O;return(u=G())==null?void 0:(O=u.channelContent)==null?void 0:O.channelName}}),_.T(_.eO,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var u;return(u=G())==null?void 0:u.points}}))},"Te"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.AC}});var SIb=_.D(function(Y){Y=_.bM(Y,{wrapper:!1}).wrapper;return _.T(_.X,{cond:Y,then:function(){return _.T("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.T("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.T("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Ue");
SIb.idomCompat=!0;var NAV=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],jUS=_.D(function(Y){var G=Y.data;var u=_.iq(),O=_.p2(function(){return G().command},void 0,"fyYsT");
_.RE(function(){O()&&_.pd(O(),{form:{element:u.value}})},"B0nxdb");
return _.T("div",{el:u,class:"YtQrCodeRendererHostContainer"},_.T(_.X,{cond:function(){return G().qrCodeImage},
then:function(Q){return _.T(_.RD,{data:Q,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.T(_.X,{cond:function(){return G().spinner},
then:function(){return _.T(SIb,null)}})}}),_.T(_.X,{cond:function(){return G().label},
then:function(Q){return _.T(_.eO,{text:Q,className:"YtQrCodeRendererHostLabel"})}}),_.T(_.X,{cond:function(){return G().labels},
then:function(Q){return _.T("div",{class:"YtQrCodeRendererHostLabels"},_.T(_.rc,{each:Q},function(M){return _.T(_.eO,{text:M})}))}}))},"Xe");_.hR(_.D(function(Y){var G=Y.data;var u=_.p2(function(){return G().qrEntityKey},void 0,"LmZ2xf"),O=_.p2(function(){return G().deleteEntityOnDismiss},void 0,"my0Tzb"),Q=_.p2(function(){return G().command},void 0,"hzECIb"),M=_.Oe(Vnj,u);
Y=_.p2(function(){return G().qrCodeImage},void 0,"AnD9rc");
var t=_.p2(function(){return G().style&&NAV.includes(G().style)},void 0,"f5fZv"),K=_.UV({visibilityCallback:function(L){L&&Q()&&_.pd(Q())},
showOption:{calledOnce:!0,state:"visible"}});_.ii(function(){_.w_(function(){O()&&u()&&_.DS().dispatch(_.t$("qrCodeEntity",u()))})});
return _.T("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.iq(K)},_.T(_.X,{cond:t,then:function(){return _.T(_.X,{cond:M,then:function(L){return _.T(jUS,{data:L})}})}}),_.T(_.X,{cond:Y,
then:function(L){return _.T(_.RD,{data:L,alt:""})}}))},"Ve"),"yt-qr-code-renderer",{props:{data:_.AC}});var ltx=_.D(function(Y){var G=function(){return _.nB(1728053247&(Y.barColor!==void 0?MF(Y.barColor()):4278190080))};
return _.T("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.T("div",{class:"ytVideoOverviewGhostCardDetails"},_.T(VTo,{animationDelay:0,percentWidth:100,barColor:function(){return G()}}),_.T(VTo,{animationDelay:600,
percentWidth:60,barColor:function(){return G()}})))},"Ye"),VTo=_.D(function(Y){return _.T("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+Y.percentWidth()+"%"}},_.T("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var G=Y.animationDelay(),u=Y.barColor();return"animation-delay:"+G+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+u+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ze");var BAS,$jb;BAS=_.A$.inlinePreviewEnabledSelector;_.qIw=_.D(function(Y){function G(e){t(e)}
var u=Y.data;var O=_.yg("yt-video-overview-view-model"),Q=_.iq();Y=_.E(_.IE(-1,void 0,"kc60qe"));var M=Y.next().value,t=Y.next().value;Y=_.E(_.IE(0,void 0,"YSTbVe"));var K=Y.next().value,L=Y.next().value,g={},P=_.Oe(S1A,function(){return u().asyncDataEntityKey}),I=_.Hx(BAS);
Y=_.sH().resolve(_.q3(uKU));var k=function(){var e;if((e=P())==null?0:e.videoOverviewViewModel){var w;return _.z((w=P())==null?void 0:w.videoOverviewViewModel,KeX)}return u()};
Y&&O&&Y({enabled:function(){return I()},
itemPlaybackModel:function(){var e;return(e=k())==null?void 0:e.itemPlayback},
thumbnailElRef:function(){return g.thumbnailElRef},
containerElRef:O,options:function(){return{thumbnail:g.thumbnail,thumbnailOverlays:g.thumbnailOverlays||[],thumbnailSize:g.thumbnailSize,mouseleaveCallback:function(){}}}});
_.ii(function(){var e,w=O==null?void 0:(e=O.value)==null?void 0:e.clientWidth;w&&L(Math.min((w-24)/4-8,72))});
var n=function(){var e;return((e=k())==null?void 0:e.headerSubtext)!==void 0?!0:!1},p=function(){var e,w=MF((e=k())==null?void 0:e.titleColor);
return w?"color: "+_.nB(w)+";":void 0},W=function(){var e,w=MF((e=k())==null?void 0:e.subtextColor);
return w?"color: "+_.nB(w)+";":void 0},C=function(){return _.T("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.T("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return p()}},_.T(_.eO,{text:function(){var e;
return(e=k())==null?void 0:e.headerText}})),_.T(_.X,{cond:n,
then:function(){return _.T("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.T("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return W()}},_.T(_.GS,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.T("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return W()}},_.T(_.eO,{text:function(){var e;
return(e=k())==null?void 0:e.headerSubtext}})))}}))};
Y={};return _.T("yt-video-overview-view-model",{class:_.s3("ytGenAiVideoOverviewViewModelHost",(Y.ytGenAiVideoOverviewViewModelMweb=!1,Y.ytGenAiVideoOverviewViewModelDesktop=!0,Y)),el:O,style:function(){var e,w=MF((e=k())==null?void 0:e.backgroundColor);return w?"background-color: "+_.nB(w)+";":void 0}},_.T(_.X,{cond:function(){var e;
return(e=k())==null?void 0:e.isLoading},
then:function(){return _.T(ltx,{barColor:function(){var e;return(e=k())==null?void 0:e.titleColor}})},
else:function(){return _.T(_.GY,null,null,_.T("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.T(_.HE,{data:function(){var e;return(e=k())==null?void 0:e.thumbnail}},{thumbnailViewModel:function(e){return _.T(l2,{data:e.data,
aspectRatio:0,playbackRef:N5U(g),width:9999})}})),_.T("div",{class:"ytGenAiVideoOverviewViewModelDetails"},C(),_.T(_.X,{cond:function(){var e,w,B,N;
return((e=k())==null?void 0:(w=e.listItems)==null?void 0:w.length)!==void 0&&((B=k())==null?void 0:(N=B.listItems)==null?void 0:N.length)>0?!0:!1},
then:function(){return _.T("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:Q},_.T(_.rc,{each:function(){var e;return(e=k())==null?void 0:e.listItems}},function(e,w){return _.T($jb,{image:e.image,
index:w,isSelected:function(){return w()===M()},
onClick:G,itemWidth:K})}))}}),_.T("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.T("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return p()}},_.T(_.eO,{text:function(){var e,w,B,N,h,q,U;
return(U=(e=k())==null?void 0:(w=e.listItems)==null?void 0:(B=w[M()])==null?void 0:B.headline)!=null?U:(N=k())==null?void 0:(h=N.listItems)==null?void 0:(q=h[0])==null?void 0:q.headline}})),_.T("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return W()}},_.T(_.eO,{text:function(){var e,w,B,N,h,q,U;
return(U=(e=k())==null?void 0:(w=e.listItems)==null?void 0:(B=w[M()])==null?void 0:B.subtext)!=null?U:(N=k())==null?void 0:(h=N.listItems)==null?void 0:(q=h[0])==null?void 0:q.subtext}})))))}}))},"$e");
$jb=_.D(function(Y){var G=Y.image;var u=Y.itemWidth;var O=Y.index;var Q=Y.isSelected;var M=Y.onClick;Y=_.U3(function(){O!==void 0&&M!==void 0&&M(O());return!1});
var t={};return _.T("div",{class:_.s3("ytGenAiVideoOverviewViewModelCarouselItem",(t.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return Q==null?void 0:Q()},t)),
style:function(){return"width: "+u()+"px;"},
"on:click":Y},_.T(_.RD,{data:G,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.T(_.X,{cond:function(){return Q==null?void 0:Q()},
then:function(){return _.T("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.T("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"af");
_.qIw.idomCompat=!0;_.hR(_.qIw,"yt-video-overview-view-model",{props:{data:_.AC}});_.sUy=_.D(function(Y){var G=Y.data;var u=Y.topbarOffset;var O,Q=((O=_.sH().resolve(_.q3(_.Ee)))==null?void 0:O())||!1;return _.T("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var M=G();var t,K,L=Q?(t=M.config)==null?void 0:t.darkThemeBackgroundColor:(K=M.config)==null?void 0:K.lightThemeBackgroundColor;M=L?_.k3(L):void 0;M="background-color: "+M+";";u!==void 0&&(M+="top: -"+u()+"px;");return M},
"aria-hidden":!0},_.T(_.X,{cond:function(){var M,t,K;return!!((M=G().backgroundImageConfig)==null?0:(t=M.image)==null?0:(K=t.sources)==null?0:K.length)},
then:function(){return _.T(_.RD,{data:function(){var M;return(M=G().backgroundImageConfig)==null?void 0:M.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.T("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+NZY(Q,G().gradientColorConfig)+";"}}))},"bf");
_.sUy.idomCompat=!0;var cY9=_.D(function(Y){var G=Y.data;var u=Y.isOverlay;return _.T("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.T("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.T(_.HE,{data:function(){return G().header}},{sectionHeaderViewModel:function(O){return _.T(_.Ml,{data:O.data,
isOverlay:u})}})),_.T("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.T(_.HE,{data:function(){return G().channelInfoButtons}},{flexibleActionsViewModel:_.W7})),_.T("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.T(_.HE,{data:function(){return G().description}},{descriptionPreviewViewModel:function(O){return _.T(_.Qr,{data:O.data,
isOverlay:u})}})))},"cf");
cY9.idomCompat=!0;var Ujw=_.D(function(Y){var G=Y.data;var u={};return _.T("factoid-view-model",{class:_.s3("ytwFactoidViewModelHost",(u.ytwFactoidViewModelHostOverlay=Y.isOverlay,u))},_.T(_.eO,{text:function(){return G().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.T(_.eO,{text:function(){return G().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"df");
Ujw.idomCompat=!0;var vaV=_.D(function(Y){var G=Y.data;var u=Y.isOverlay;return _.T("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.T(_.HE,{data:function(){return G().factoids}},{factoidViewModel:function(O){return _.T(Ujw,{data:O.data,
isOverlay:u})}}))},"ef");
vaV.idomCompat=!0;_.JYx=_.D(function(Y){var G=Y.data;var u=Y.isOverlay;return _.T("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.T(_.HE,{data:function(){return G().items}},{channelInfoViewModel:function(O){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(cY9,{data:O.data,
isOverlay:u}))},
coursePerksViewModel:function(O){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(xj9,{data:O.data,isOverlay:u}))},
descriptionPreviewViewModel:function(O){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(_.Qr,{data:O.data,isOverlay:u}))},
factoidsRowViewModel:function(O){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(vaV,{data:O.data,isOverlay:u}))},
progressViewModel:function(O){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(ftb,{data:O.data,isOverlay:u}))}}))},"ff");var Y4o=_.D(function(Y){return _.T("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.T(_.HE,{data:function(){return Y.data().content}},{courseMetadataViewModel:function(G){return _.T(_.JYx,{data:G.data,
isOverlay:Y.isOverlay})},
progressViewModel:function(G){return _.T(ftb,{data:G.data})}}))},"gf");var G2N=_.D(function(Y){var G=Y.data;Y=Y.className;var u=function(){var Q;return _.pK((Q=G())==null?void 0:Q.rendererContext)},O={};
O=(O.dynamicTextViewModelHost=!0,O.dynamicTextViewModelHostTappable=function(){return u()},O);
return _.T("yt-dynamic-text-view-model",{el:_.iq(_.zi(function(){var Q;return(Q=G())==null?void 0:Q.rendererContext})),
role:function(){return u()?"link":void 0},
tabindex:function(){return u()?0:void 0},
class:_.s3(Y,O)},_.T("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var Q,M,t;return(t=(M=_.z((Q=G())==null?void 0:Q.rendererContext,_.L$))==null?void 0:M.label)!=null?t:""}},_.T(_.eO,{text:function(){return G().text},
userInput:!0})))},"hf");
G2N.idomCompat=!0;_.ZT=_.D(function(Y){var G=Y.data;var u=Y.isPositionRelative;var O=_.VHy("(max-width: 527.9px)"),Q=function(){var M,t;return(t=(M=G())==null?void 0:M.style)!=null?t:"IMAGE_BANNER_STYLE_FULL_BLEED"};
Y={};return _.T("yt-image-banner-view-model",{el:_.iq(_.zi(function(){var M;return(M=G())==null?void 0:M.rendererContext})),
class:_.s3((Y.ytImageBannerViewModelHost=!0,Y.ytImageBannerViewModelInset=function(){return lPU(Q())},Y.ytImageBannerViewModelPositionAbsolute=function(){return _.hT(!0)&&!(u==null?0:u())},Y.ytImageBannerViewModelSmallInset=function(){return lPU(Q())&&O()},Y.ytImageBannerViewModelTappable=function(){var M;
return _.pK((M=G())==null?void 0:M.rendererContext)},Y))},_.T(_.X,{cond:function(){var M;
return(M=G())==null?void 0:M.image},
then:function(){return _.T(_.RD,{data:function(){return G().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.T(_.HE,{data:function(){var M;
return(M=G())==null?void 0:M.overlays}},{thumbnailHoverOverlayViewModel:pr}))},"jf");
_.ZT.idomCompat=!0;var ueo;ueo=_.D(function(Y){var G=Y.condition;var u=Y.content;return _.T(_.X,{cond:G,then:function(){return _.T("div",{class:"yt-page-header-view-model__scroll-container"},u())},
else:function(){return u()}})},"kf");
_.OTx=_.D(function(Y){var G=Y.data;var u=Y.noPadding;var O=Y.enableBanner;var Q=Y.cinematicContainerTopbarOffset;var M=Y.allowCinematicContainerOverflow;var t=Y.displayAsSidebar;var K=Y.displayAsPanel;var L=Y.alwaysUseMediumTextDescription;var g=BZt(),P=function(){return!!G().image||!!G().animatedImage},I=function(){return!!G().background},k=function(){return(t==null?0:t())||(K==null?0:K())?1:g()},n=function(){return k()===1},p=function(){return n()||k()===2},W=function(){return k()===4},C=function(){var Tg=
G();
var iy=!!G().heroImage;var hY=k(),dA=$qT(G()),nT=t==null?void 0:t(),u_=!Tg.metadata,jT;if(jT=iy?_.z(Tg.heroImage,UeI):_.z(Tg.animatedImage||Tg.image,UeI)){Tg=jT.style;var P1=jT.layoutMode;if(P1!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(jT=Pnt(X6A(jT)),iy)iy=jat(hY,Tg,P1,jT,nT);else b:if(u_)iy=hY===1?{size:48}:{size:72};else switch(hY){case 1:iy={size:72};break b;case 2:iy={size:120};break b;default:iy=dA<4?{size:120}:{size:160}}else iy=void 0}else iy={size:0};return iy};
Y={};Y=_.s3((Y["yt-page-header-view-model"]=!0,Y["yt-page-header-view-model--no-padding"]=function(){return!(u==null||!u())},Y["yt-page-header-view-model--small-top-padding"]=function(){return n()&&!G().actions&&!(K==null?0:K())||k()===2&&!(P()||G().heroImage)},Y["yt-page-header-view-model--small-bottom-padding"]=function(){return p()&&!G().actions&&!(K==null?0:K())},Y["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(M==null?0:M())},Y["yt-page-header-view-model--display-as-sidebar"]=
t,Y));
var e={},w=_.s3((e["yt-page-header-view-model__page-header-headline"]=!0,e["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var Tg;return(Tg=C())==null?void 0:Tg.allowFullWidth},e)),B=function(){var Tg;
return p()&&!((Tg=C())==null?0:Tg.allowFullWidth)},N=function(){return n()&&(!!G().heroImage||P())&&$qT(G())>0},h=function(){return N()&&(K==null?void 0:K())};
e={};var q=_.s3((e["yt-page-header-view-model__page-header-title"]=!0,e["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!N()},e["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return N()&&!h()},e["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=h,e["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=I,e));
e={};var U=_.s3((e["yt-page-header-view-model__page-header-headline-image"]=!0,e["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!G().heroImage&&p()},e));
e={};var Mj=_.s3((e["yt-page-header-view-model__page-header-banner-container"]=O,e["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var Tg;return(O==null?void 0:O())&&((Tg=_.z(G().banner,_.JsI))==null?void 0:Tg.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},e));
e={};var Xt=_.s3((e["yt-page-header-view-model__page-header-content-metadata"]=!0,e["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=I,e));e={};var ka=_.s3((e["yt-page-header-view-model__page-header-flexible-actions"]=!0,e["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!G().metadata||p()},e["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!p()},e));
e={};var aU=_.s3((e["yt-page-header-view-model__page-header-attribution"]=!0,e["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=I,e));return _.T("yt-page-header-view-model",{class:Y},_.T(_.X,{cond:I,then:function(){return _.T("div",{class:"yt-page-header-view-model__page-header-background"},_.T(_.HE,{data:function(){return G().background}},{cinematicContainerViewModel:function(Tg){return _.T(_.sUy,{data:Tg.data,
topbarOffset:Q})}}))}}),_.T(ueo,{condition:function(){return!(t==null||!t())},
content:function(){return _.T("div",{class:"yt-page-header-view-model__page-header-content"},_.T(_.X,{cond:function(){return(O==null?void 0:O())&&G().banner},
then:function(){return _.T("div",{class:Mj},_.T(_.HE,{data:function(){return G().banner}},{imageBannerViewModel:_.ZT}))}}),_.T("div",{class:w},_.T(_.X,{cond:P,
then:function(){return _.T(_.HE,{data:function(){var Tg;if(!(Tg=G().animatedImage)){Tg=G();if(P()){var iy=Tg=Object.assign({},Tg),hY=k(),dA=$qT(G()),nT=iy.image,u_=_.z(nT,vK2),jT=u_==null?void 0:u_.avatar,P1=_.z(jT,_.WE);if(nT&&jT&&P1){switch(hY){case 1:P1.avatarImageSize="AVATAR_SIZE_XL";break;case 2:P1.avatarImageSize="AVATAR_SIZE_XXL";break;default:dA<4?P1.avatarImageSize="AVATAR_SIZE_XXL":P1.avatarImageSize="AVATAR_SIZE_XXXL"}_.XS(jT,_.WE,Object.assign({},P1));u_.avatar=Object.assign({},jT);_.XS(nT,
vK2,Object.assign({},u_));iy.image=Object.assign({},nT)}}Tg=Tg.image}return Tg}},{contentPreviewImageViewModel:function(Tg){return _.T(_.c9,{data:Tg.data,
className:U,imageSizeConfig:C})},
decoratedAvatarViewModel:function(Tg){return _.T(_.mb,{data:Tg.data,className:U})}})}}),_.T(_.X,{cond:function(){return!!G().heroImage&&!B()},
then:function(){return _.T(_.HE,{data:function(){return G().heroImage}},{contentPreviewImageViewModel:function(Tg){return _.T(_.c9,{data:Tg.data,
className:U,imageSizeConfig:C})}})}}),_.T("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.T(_.X,{cond:function(){return!!G().heroImage&&B()},
then:function(){return _.T("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.T(_.HE,{data:function(){return G().heroImage}},{contentPreviewImageViewModel:function(Tg){return _.T(_.c9,{data:Tg.data,
className:U,imageSizeConfig:C})}}))}}),_.T(_.HE,{data:function(){return G().title}},{dynamicTextViewModel:function(Tg){return _.T(G2N,{data:Tg.data,
className:q})}}),_.T(_.HE,{data:function(){return G().metadata}},{contentMetadataViewModel:function(Tg){return _.T(_.v9,{data:Tg.data,
layout:function(){return n()?1:0},
className:Xt,isOverlay:I,useMediumText:W})}}),_.T(_.X,{cond:function(){return G().description&&!n()},
then:function(){return _.T(_.HE,{data:function(){return G().description}},{descriptionPreviewViewModel:function(Tg){return _.T(_.Qr,{data:Tg.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:I,maxLinesOverride:function(){return n()?void 0:1},
useMediumText:function(){return(L==null?void 0:L())||W()}})}})}}),_.T(_.X,{cond:function(){return G().attribution&&!p()},
then:function(){return _.T(_.HE,{data:function(){return G().attribution}},{attributionViewModel:function(Tg){return _.T(UM,{data:Tg.data,
className:aU,useMediumText:W})}})}}),_.T(_.X,{cond:function(){return G().actions&&!p()},
then:function(){return _.T(_.HE,{data:function(){return G().actions}},{flexibleActionsViewModel:function(Tg){return _.T(_.W7,{data:Tg.data,
layout:function(){return q1T(k())},
className:ka})}})}}))),_.T("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.T(_.X,{cond:function(){return G().description&&n()},
then:function(){return _.T(_.HE,{data:function(){return G().description}},{descriptionPreviewViewModel:function(Tg){return _.T(_.Qr,{data:Tg.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:I,maxLinesOverride:function(){return n()?void 0:1},
useMediumText:function(){return(L==null?void 0:L())||W()}})}})}}),_.T(_.X,{cond:function(){return G().attribution&&p()},
then:function(){return _.T(_.HE,{data:function(){return G().attribution}},{attributionViewModel:function(Tg){return _.T(UM,{data:Tg.data,
className:aU,useMediumText:W})}})}}),_.T(_.X,{cond:function(){return G().actions&&p()},
then:function(){return _.T(_.HE,{data:function(){return G().actions}},{flexibleActionsViewModel:function(Tg){return _.T(_.W7,{data:Tg.data,
layout:function(){return q1T(k())},
className:ka})}})}})),_.T("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.T(_.HE,{data:function(){return G().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Tg){return _.T(Y4o,{data:Tg.data,
isOverlay:I})}})))}}))},"lf");
_.OTx.idomCompat=!0;_.hR(_.D(function(Y){var G=_.E(_.IE(!1,void 0,"qvRy4d")),u=G.next().value,O=G.next().value;return _.T("yt-official-card-view-model",{class:_.s3("ytOfficialCardViewModelHost",Y.className),style:_.Yh({"background-color":function(){var Q,M=MF((Q=Y.data())==null?void 0:Q.backgroundColor);return M?_.nB(M):void 0}})},_.T(_.HE,{data:function(){return Y.data().header}},{pageHeaderViewModel:function(Q){return _.T(_.OTx,{data:Q.data,
noPadding:!0})}}),_.T(_.HE,{data:function(){return Y.data().contents}},{horizontalShelfViewModel:function(Q){return _.T(_.wm,{data:Q.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.T(_.X,{cond:u,
then:function(){return _.T("div",{class:"ytOfficialCardViewModelExpandedContent"},_.T(_.HE,{data:function(){return Y.data().expandedContents}},{horizontalShelfViewModel:function(Q){return _.T(_.wm,{data:Q.data,
sizing:"MINI"})}}),_.T("div",{class:"ytOfficialCardViewModelCollapseButton"},_.T(_.HE,{data:function(){return Y.data().collapseButton}},{buttonViewModel:function(Q){return _.T(_.$Y,{data:Q.data,
onClick:function(){O(!u())}})}})))},
else:function(){return _.T("div",{class:"ytOfficialCardViewModelExpandButton"},_.T(_.HE,{data:function(){return Y.data().expandButton}},{buttonViewModel:function(Q){return _.T(_.$Y,{data:Q.data,
onClick:function(){O(!u())}})}}))}}))},"mf"),"yt-official-card-view-model",{props:{data:_.AC,
className:_.AC}});var QXy=_.D(function(Y){var G,u=(G=_.sH().resolve(_.q3(_.Ee)))==null?void 0:G();return _.T("ytw-search-friction-view-model",{class:_.s3("ytwSearchFrictionViewModelHost",Y.className)},_.T("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.T("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.T(_.X,{cond:function(){return u&&Y.data().darkThemeImage?Y.data().darkThemeImage:Y.data().image},
then:function(O){return _.T(_.RD,{data:O,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.T(_.HE,{data:function(){return Y.data().overflowMenuButton}},{buttonViewModel:function(O){return _.T(_.$Y,{data:O.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.T(_.eO,{text:function(){return Y.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.T(_.rc,{each:function(){return Y.data().bodyText||[]}},function(O){return _.T(_.eO,{text:O,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.T(_.HE,{data:function(){return Y.data().actions}},{buttonViewModel:function(O){return _.T(_.$Y,{data:O.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.T(_.eO,{text:function(){return Y.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.T(_.eO,{text:function(){return Y.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"nf");
QXy.idomCompat=!0;_.hR(QXy,"ytw-search-friction-view-model",{props:{data:_.AC,className:_.AC}});_.DT=_.D(function(Y){var G=_.CH("markdown-div"),u,O=(u=_.sH().resolve(_.q3(_.Ee)))==null?void 0:u();_.RE(function(){var Q=G.value;var M=new bme,t=new Map(M.JSC$9619_sanitizerTable.globalAttributePolicies);t.set("style",{policyAction:4});M.JSC$9619_sanitizerTable=new zw(M.JSC$9619_sanitizerTable.allowedElements,M.JSC$9619_sanitizerTable.elementPolicies,M.JSC$9619_sanitizerTable.allowedGlobalAttributes,t,M.JSC$9619_sanitizerTable.globallyAllowedAttributePrefixes);var K=["data-time"];if(K===void 0)t=
new Set(M.JSC$9619_sanitizerTable.globallyAllowedAttributePrefixes),t.add("data-"),M.JSC$9619_sanitizerTable=new zw(M.JSC$9619_sanitizerTable.allowedElements,M.JSC$9619_sanitizerTable.elementPolicies,M.JSC$9619_sanitizerTable.allowedGlobalAttributes,M.JSC$9619_sanitizerTable.globalAttributePolicies,t);else{t=new Set(M.JSC$9619_sanitizerTable.allowedGlobalAttributes);K=_.E(K);for(var L=K.next();!L.done;L=K.next()){L=L.value;if(L.indexOf("data-")!==0)throw Error("la`"+L);t.add(L)}M.JSC$9619_sanitizerTable=
new zw(M.JSC$9619_sanitizerTable.allowedElements,M.JSC$9619_sanitizerTable.elementPolicies,t,M.JSC$9619_sanitizerTable.globalAttributePolicies,M.JSC$9619_sanitizerTable.globallyAllowedAttributePrefixes)}t=new Set(M.JSC$9619_sanitizerTable.allowedGlobalAttributes);t.add("class");M.JSC$9619_sanitizerTable=new zw(M.JSC$9619_sanitizerTable.allowedElements,M.JSC$9619_sanitizerTable.elementPolicies,t,M.JSC$9619_sanitizerTable.globalAttributePolicies,M.JSC$9619_sanitizerTable.globallyAllowedAttributePrefixes);
_.IA(Q,M.build().sanitize(cIj(Y.text())));UqY(G.value)},"CUInJc");
u={};return _.T("div",null,_.T("markdown-div",{class:_.s3("ytwMarkdownDivHost",Y.className,(u.ytwMarkdownDivDark=O,u.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var Q;return((Q=Y.isSmallText)==null?void 0:Q.call(Y))||!1},u.ytwMarkdownDivHostWrapCodeBlocks=function(){var Q;
return((Q=Y.wrapCodeBlocks)==null?void 0:Q.call(Y))||!1},u.ytwMarkdownDivHostEnableDefaultStyling=function(){var Q;
return!((Q=Y.disableDefaultStyling)==null?0:Q.call(Y))},u)),
el:G}))},"pf");
_.DT.idomCompat=!0;var MRx=_.D(function(Y){var G=Y.imageData;var u=_.dB(Y.isInList,!1),O=function(){return u()?{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 _.T("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.T(_.X,{cond:function(){return G().image},
then:function(Q){return _.T(_.RD,{data:Q,alt:function(){return O().alt},
contentMode:function(){return O().contentMode},
targetWidth:function(){return O().targetWidth},
targetHeight:function(){return O().targetHeight},
className:function(){return O().className}})}}),_.T("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.T("div",{class:_.s3("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.T(_.eO,{text:function(){return G().title}})),_.T(_.rc,{each:function(){var Q;
return(Q=G().description)!=null?Q:[]}},function(Q){return _.T("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.T(h4,{content:Q}))})))},"qf"),HTb=_.D(function(Y){var G=Y.list;
var u=function(){var O;return(O=G().items)!=null?O:[]};
return _.T("div",{class:"ytwGenAiRichTextViewModelListContent"},_.T(_.X,{cond:function(){return G().title},
then:function(O){return _.T("div",{class:_.s3("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.T(_.eO,{text:O}))}}),_.T(_.X,{cond:function(){return G().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.T("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.T(_.rc,{each:u},function(O){return _.T("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.T(h4,{content:O,isInList:!0}))}))}}),_.T(_.X,{cond:function(){return G().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.T("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.T(_.rc,{each:u},function(O){return _.T("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.T(h4,{content:O,isInList:!0}))}))}}),_.T(_.X,{cond:function(){return G().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.T("div",{class:"ytwGenAiRichTextViewModelImageList"},_.T(_.rc,{each:u},function(O){return _.T("div",{class:"ytwGenAiRichTextViewModelListItem"},_.T(h4,{content:O,isInList:!0}))}))}}))},"rf"),Ekx=_.D(function(Y){var G=Y.table;
return _.T("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.T("thead",null,_.T("tr",null,_.T(_.rc,{each:function(){var u,O;return(O=(u=G().header)==null?void 0:u.cells)!=null?O:[]}},function(u){return _.T("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.T(_.rc,{each:function(){return u.contents}},function(O){return _.T(h4,{content:O})}))}))),_.T("tbody",null,_.T(_.rc,{each:function(){var u;
return(u=G().rows)!=null?u:[]}},function(u){return _.T("tr",null,_.T(_.rc,{each:function(){return u.cells}},function(O){return _.T("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.T(_.rc,{each:function(){return O.contents}},function(Q){return _.T(h4,{content:Q})}))}))})))},"sf"),h4=_.D(function(Y){var G=Y.content;
var u=_.dB(Y.isInList,!1),O=function(){var Q,M;return(M=(Q=G().contentBlock)==null?void 0:Q.contents)!=null?M:[]};
return _.T("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.T(_.X,{cond:function(){return G().text},
then:function(Q){return _.T(_.eO,{className:"ytwGenAiRichTextViewModelText",text:Q})}}),_.T(_.X,{cond:function(){return G().image},
then:function(Q){return _.T(MRx,{imageData:Q,isInList:u})}}),_.T(_.X,{cond:function(){return G().list},
then:function(Q){return _.T(HTb,{list:Q})}}),_.T(_.X,{cond:function(){return G().contentBlock},
then:function(){return _.T("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.T(_.rc,{each:O},function(Q){return _.T(h4,{content:Q,isInList:!1})}))}}),_.T(_.X,{cond:function(){return G().table},
then:function(Q){return _.T(Ekx,{table:Q})}}))},"tf"),tRx=_.D(function(Y){var G={};
G=_.PE("ytwGenAiRichTextViewModelHost",(G.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.Yg("search_overview_link_style")),G));return _.T("gen-ai-rich-text-view-model",{class:G},_.T(h4,{content:function(){return Y.data().content}}))},"uf");_.KEg=_.D(function(Y){var G=Y.data;var u=function(){var W;return((W=G().loadingUi)!=null?W:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},O=function(){return G().isLoading&&(u()==="UNSPECIFIED"||u()==="GHOST_CARD")},Q=function(){return!G().isLoading},M=function(){return!!G().content&&!G().contents},t=function(){return!!G().contents},K=function(){return!!G().nextQueryButtons},L=function(){return G().isLoading&&u()==="INVISIBLE"},g=function(){var W,C;
return(C=(W=G().headerIcon)==null?void 0:W.iconType)!=null?C:""},P=function(){var W;
return(W=G().content)!=null?W:""},I=function(){return!!G().sourcesSection},k,n=!((k=_.sH().resolve(_.q3(_.Ee)))==null||!k()),p=_.p2(function(){var W=[],C=G().contents;
if(C)for(var e=0;e<C.length;e++){var w=_.z(C&&C[e],txI);w&&W.push(w)}return W},void 0,"gcCsZb");
_.ii(function(){G().isLoading||_.pQ("so_re",void 0,"search_overview_answer")});
return _.T("ytd-overview-answer-view-model",{class:function(){var W={};W=(W.ytdOverviewAnswerViewModelHost=!0,W.ytdOverviewAnswerViewModelDarkBackground=n&&!L(),W.ytdOverviewAnswerViewModelLightBackground=!n&&!L(),W);return _.PE(W)}},_.T(_.X,{cond:function(){return!L()},
then:function(){return _.T(_.GY,null,_.T("h2",null,_.T("div",{class:"ytdOverviewAnswerViewModelHeader"},_.T(_.X,{cond:g,then:function(W){return _.T("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.T(_.GS,{icon:W}))}}),_.T("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.T("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return G().headerText}),_.T("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.T(_.eO,{text:function(){return G().headerSubtext}}))))),_.T(_.X,{cond:O,
then:function(){return _.T(vWt,null)}}),_.T(_.X,{cond:Q,
then:function(){return _.T(_.GY,null,_.T(_.X,{cond:M,then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelText"},_.T(_.DT,{text:P,isSmallText:!0}))}}),_.T(_.X,{cond:t,
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelRichText"},_.T(_.rc,{each:p},function(W){return _.T(tRx,{data:W})}))}}),_.T(_.X,{cond:K,
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.T(_.HE,{data:function(){return G().nextQueryButtons}},{buttonViewModel:function(W){return _.T(_.$Y,{data:W.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.wm}))}}),_.T("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.T("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.T(_.X,{cond:function(){return!!_.z(G().likeButtonViewModel,_.e6)&&!!_.z(G().dislikeButtonViewModel,_.AV)},
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.T(_.xb,{data:function(){return _.z(G().likeButtonViewModel,_.e6)},
disableIconAnimation:!0}),_.T(_.rz,{data:function(){return _.z(G().dislikeButtonViewModel,_.AV)}}))}})),_.T(_.X,{cond:function(){var W;
return(W=G().sourcesSection)==null?void 0:W.headerText},
then:function(W){return _.T("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.T(_.eO,{text:W}))}})),_.T(_.X,{cond:I,
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelSources"},_.T(_.HE,{data:function(){var W;return(W=G().sourcesSection)==null?void 0:W.sourcesShelf}},{buttonViewModel:_.$Y,
horizontalShelfViewModel:function(W){return _.T(_.wm,{data:W.data,includeMargin:!0,hasPeek:!0})}}))}}),_.T(_.X,{cond:function(){return G().disclaimerText},
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.T(_.eO,{text:function(){return G().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"vf");var aVj=_.D(function(Y){var G=_.bM(Y,{}).data;return _.T("yt-shopping-content-line-item-view-model",{class:_.s3("ytShoppingContentLineItemViewModelHost")},_.T(_.eO,{text:function(){var u;return(u=G().text)==null?void 0:u.attributedString}}))},"wf");_.dm=_.D(function(Y){Y=_.bM(Y,{});var G=Y.data,u={};return _.T("yt-shopping-content-line-view-model",{class:_.s3("ytShoppingContentLineViewModelHost",Y.className,(u.ytShoppingContentLineViewModelTruncateText=function(){return!G().wrapContent},u)),
style:_.Yh({"--shopping-content-line-gap":function(){return G().itemGap?G().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return G().lineHeight?G().lineHeight+"px":void 0}})},_.T(_.rc,{each:function(){return(G().items||[]).map(function(O){return _.z(O,XZ_)}).filter(function(O){return!!O})}},function(O){return _.T(aVj,{data:O})}))},"xf");var TRx=_.D(function(Y){var G=Y.data;var u=function(){var M;return((M=G().image)==null?void 0:M.height)||48},O=function(){var M;
return((M=G().image)==null?void 0:M.width)||48},Q=function(){return"width: "+O()+"px; height: "+u()+"px;"};
return _.T("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var M,t,K,L=((M=_.sH().resolve(_.q3(_.Ee)))==null?0:M())?(t=G())==null?void 0:t.darkThemeBackgroundColor:(K=G())==null?void 0:K.lightThemeBackgroundColor;return"background-color: "+(L?_.nB(L):"")+";"},
el:_.iq(_.zi(function(){var M;return(M=G())==null?void 0:M.rendererContext})),
role:"link",tabindex:0},_.T(_.X,{cond:function(){var M,t;return(t=(M=G().image)==null?void 0:M.image)!=null?t:G().thumbnail},
then:function(M){return _.T("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var t;return"background-color: "+(((t=G().image)==null?0:t.backgroundColor)?_.nB(G().image.backgroundColor):"")+";"+Q()}},_.T(_.RD,{data:M,
height:u,width:O,style:Q,alt:""}))}}),_.T("div",{class:"ytShoppingDescriptionItemViewModelText"},_.T(_.HE,{data:function(){return G().line1}},{shoppingContentLineViewModel:function(M){return _.T(_.dm,{data:M.data})}}),_.T(_.HE,{data:function(){return G().line2}},{shoppingContentLineViewModel:function(M){return _.T(_.dm,{data:M.data})}}),_.T(_.HE,{data:function(){return G().line3}},{shoppingContentLineViewModel:function(M){return _.T(_.dm,{data:M.data})}})))},"yf");var LEb=_.D(function(Y){var G=Y.data;var u=Y.active;var O=_.CH("transcript-segment-view-model");_.RE(function(){var Q,M,t,K=((Q=_.sH().resolve(_.q3(_.Ee)))==null?0:Q())?(M=G())==null?void 0:M.darkThemeColorPalette:(t=G())==null?void 0:t.lightThemeColorPalette;K&&(K.additiveBackground&&O.value.style.setProperty("--timestamp-active-background-color",_.nB(K.additiveBackground)),K.textSecondary&&O.value.style.setProperty("--timestamp-active-color",_.k3(K.textSecondary)))},"TnVCnb");
Y={};return _.T("transcript-segment-view-model",{class:_.s3("ytwTranscriptSegmentViewModelHost",(Y.ytwTranscriptSegmentViewModelHostActive=u,Y.ytwTranscriptSegmentViewModelHostModern=_.F("enable_timeline_view_modern_transcript")||_.F("enable_timeline_view_modern_transcript_fe"),Y)),el:O},_.T(_.X,{cond:function(){var Q;return(Q=G())==null?void 0:Q.timestamp},
then:function(Q){var M={};return _.T(_.GY,null,_.T("div",{class:_.s3("ytwTranscriptSegmentViewModelTimestamp",(M.ytwTranscriptSegmentViewModelTimestampActive=u,M)),"aria-hidden":!0},Q),_.T("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var t=Q().split(":").map(Number),K=_.E(t.reverse());t=K.next().value;var L=K.next().value;K=K.next().value;return _.Alu({hours:K,minutes:L,seconds:t})}))}}),_.T(_.eO,{text:function(){var Q,M,t;
return(t=(Q=G())==null?void 0:Q.attributedText)!=null?t:{content:(M=G())==null?void 0:M.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Af");var gkj=_.D(function(Y){var G=Y.data;return _.T("div",{class:"videoAttributesSectionViewModelHeader"},_.T("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.T("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return G().headerTitle}),_.T(_.X,{cond:function(){return G().headerInfoButton},
then:function(){return _.T(_.HE,{data:function(){return G().headerInfoButton}},{buttonViewModel:function(u){return _.T(_.$Y,{data:u.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.T(_.X,{cond:function(){return G().headerSubtitle},
then:function(){return _.T("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return G().headerSubtitle})}}))},"Bf"),X19=_.D(function(Y){function G(W){return Math.max(Math.min(W,0),g()-K())}
var u=Y.data;var O;Y=_.CH("div",function(W){var C=function(){P(W.clientWidth)};
C();window.ResizeObserver&&(O=new ResizeObserver(C),O.observe(W))});
var Q=_.CH("div",function(W){L(W.scrollWidth)}),M=_.E(_.IE(0,void 0,"C3XQAe")),t=M.next().value;
M=M.next().value;var K=t,L=M;M=_.E(_.IE(0,void 0,"db7y3"));t=M.next().value;M=M.next().value;var g=t,P=M;t=_.E(_.IE(0,void 0,"RchC7"));var I=t.next().value,k=t.next().value;_.w_(function(){var W;(W=O)==null||W.disconnect()});
var n=function(){k(G(I()+g()))},p=function(){k(G(I()-g()))};
return _.T("yt-video-attributes-section-view-model",null,_.T("div",{class:"videoAttributesSectionViewModelHost"},_.T(_.X,{cond:function(){return u().headerTitle},
then:function(){return _.T(gkj,{data:u})}}),_.T("div",{class:_.s3("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:Y},_.T("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.Yh({transform:function(){var W=I();_.DE("HTML_DIR")==="rtl"&&(W*=-1);return"translateX("+W+"px)"}}),
el:Q},_.T(_.HE,{data:function(){return u().videoAttributeViewModels}},{videoAttributeViewModel:UB2}))),_.T(_.HE,{data:function(){return u().footerButton}},{buttonViewModel:function(W){return _.T(_.$Y,{data:W.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.T(_.X,{cond:function(){return I()<0&&u().previousButton},
then:function(){return _.T("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.T(_.HE,{data:function(){return u().previousButton}},{buttonViewModel:function(W){return _.T(_.$Y,{data:W.data,
onClick:n})}}))}}),_.T(_.X,{cond:function(){return I()>g()-K()&&u().nextButton},
then:function(){return _.T("div",{class:"videoAttributesSectionViewModelRightArrow"},_.T(_.HE,{data:function(){return u().nextButton}},{buttonViewModel:function(W){return _.T(_.$Y,{data:W.data,
onClick:p})}}))}})))},"Cf");
X19.idomCompat=!0;var P_B=_.D(function(Y){var G=Y.data;var u=Y.active;var O={},Q={};return _.T("timeline-item-view-model",{class:_.s3("ytwTimelineItemViewModelHost",(O.ytwTimelineItemViewModelHostChapterChild=Y.chapterChild,O.ytwTimelineItemViewModelModern=_.F("enable_timeline_view_modern_transcript")||_.F("enable_timeline_view_modern_transcript_fe"),O))},_.T("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.T("div",{class:_.s3("ytwTimelineItemViewModelTimestamp",(Q.ytwTimelineItemViewModelTimestampActive=
u,Q))},function(){return G().timestamp})),_.T("div",{class:"ytwTimelineItemViewModelContentItems"},_.T(_.HE,{data:function(){return G().contentItems}},{transcriptSegmentViewModel:function(M){return _.T(LEb,{data:M.data,
active:u})},
videoAttributesSectionViewModel:X19})))},"Df");var IVw=_.D(function(Y){var G=Y.data;Y={};return _.T("timeline-chapter-view-model",{class:_.s3("ytwTimelineChapterViewModelHost")},_.T("div",{class:_.s3("ytwTimelineChapterViewModelTitle",(Y.ytwTimelineChapterViewModelModern=_.F("enable_timeline_view_modern_transcript")||_.F("enable_timeline_view_modern_transcript_fe"),Y))},function(){return G().title}),_.T(_.HE,{data:function(){return G().contents}},{timelineItemViewModel:function(u){return _.T(P_B,{data:u.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(u){return _.T(X19,{data:u.data})}}))},"Ef");var k2w=_.D(function(Y){var G=Y.data;var u=_.CH("macro-markers-panel-item-view-model"),O=_.Oe(_.dn4,function(){var M;return(M=G().markersEngagementPanelSyncEntityKey)!=null?M:""}),Q=function(){var M;
return((M=O())==null?void 0:M.activeItemIndex)===G().index};
Y=_.U3(function(M){var t,K,L,g,P;return _.a(function(I){if(I.nextAddress==1)return M.stopPropagation(),_.nK(_.kC(M),u.value,["A".toString(),"BUTTON".toString()])?I.return():(t=_.FS(G().onTap))?I.yield(_.Uj(),2):I.return();K=I.yieldResult;g=(L=_.z(t,_.ic))==null?void 0:L.startTimeSeconds;g===void 0||(P=K)!=null&&P.seekTo(g,!0);_.Sd(I)})});
return _.T("macro-markers-panel-item-view-model",{class:_.s3("ytwMacroMarkersPanelItemViewModelHost",{"is-active":Q}),el:u,"on:click":Y,tabindex:function(){return _.z(G().item,PET)?void 0:0},
role:function(){return _.z(G().item,PET)?void 0:"button"}},_.T(_.HE,{data:function(){var M;
return(M=G())==null?void 0:M.item}},{timelineChapterViewModel:function(M){return _.T(IVw,{data:M.data,
active:Q})},
timelineItemViewModel:function(M){return _.T(P_B,{data:M.data,active:Q})},
videoAttributeViewModel:UB2,shoppingDescriptionItemViewModel:TRx}))},"Ff");
k2w.idomCompat=!0;_.hR(k2w,"macro-markers-panel-item-view-model",{props:{data:_.AC}});_.hR(X19,"yt-video-attributes-section-view-model",{props:{data:_.AC}});var nkb=_.D(function(Y){var G=function(){var u,O,Q;return(Q=(u=Y.data().leadingLogoAccessibility)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label)!=null?Q:""};
return _.T("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.T(_.X,{cond:function(){return Y.data().leadingLogo},
then:function(u){return _.T(_.RD,{className:"ytwFantasySectionHeaderViewModelLogo",data:u,alt:G})}}),_.T("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.T(_.eO,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return Y.data().title}}),_.T(_.eO,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return Y.data().subtitle}})),_.T(_.HE,{data:function(){return Y.data().trailingButton}},{buttonViewModel:function(u){return _.T(_.$Y,{data:u.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Gf");var FEb=_.D(function(Y){var G={};G=_.s3("ytwFantasyTeamViewModelHost",(G.ytwFantasyTeamViewModelCompact=function(){var Q;return!((Q=Y.compact)==null||!Q.call(Y))},G.ytwFantasyTeamViewModelUser=function(){return Y.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},G.ytwFantasyTeamViewModelOpponent=function(){return Y.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},G));
var u=function(){var Q,M,t;return(t=(Q=Y.data().teamLogoAccessibility)==null?void 0:(M=Q.accessibilityData)==null?void 0:M.label)!=null?t:""},O=_.Oe(Sga,function(){return Y.data().teamEntityKey});
return _.T("ytw-fantasy-team-view-model",{class:G},_.T(_.X,{cond:function(){return Y.data().teamLogo},
then:function(Q){return _.T(_.RD,{className:"ytwFantasyTeamViewModelLogo",data:Q,alt:u})}}),_.T("div",{class:"ytwFantasyTeamViewModelMetadata"},_.T("div",{class:"ytwFantasyTeamViewModelHeader"},_.T(_.eO,{className:"ytwFantasyTeamViewModelScore",
text:function(){var Q;return(Q=O())==null?void 0:Q.score}}),_.T(_.GS,{icon:function(){var Q;
return(Q=O())==null?void 0:Q.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.T(_.eO,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var Q;return(Q=O())==null?void 0:Q.projectedScore}})),_.T(_.eO,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return Y.data().primaryText}}),_.T(_.eO,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return Y.data().secondaryText}}),_.T(_.eO,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return Y.data().tertiaryText}})),_.T(_.eO,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var Q;return(Q=O())==null?void 0:Q.score}}))},"Hf");_.hR(_.D(function(Y){return _.T("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.T("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.T(_.HE,{data:function(){return Y.data().summaryHeader}},{fantasySectionHeaderViewModel:nkb})),_.T(_.HE,{data:function(){return Y.data().userTeam}},{fantasyTeamViewModel:FEb}),_.T(_.HE,{data:function(){return Y.data().opponentTeam}},{fantasyTeamViewModel:FEb}))},"If"),"fantasy-league-summary-view-model",{props:{data:_.AC}});var p19=_.D(function(Y){var G=_.bM(Y,{shape:{},useCustomTabRenderable:!1}),u=G.shape;G=G.useCustomTabRenderable;var O=Y.customTabRenderable,Q=function(){return u().disabled},M=function(){return u().selected},t=function(){return u().title},K=function(){return u().icon},L=_.CH("yt-tab-shape");
Y=_.U3(function(I){var k;if(!Q()&&((k=u().aTagConfig)==null?0:k.onclick))u().aTagConfig.onclick(I);return!1});
var g=_.U3(function(I){if(I.key==="Enter"||I.key==="ArrowUp"||I.key==="ArrowDown")I.preventDefault(),L.value.click();return!1}),P={};
return _.T("yt-tab-shape",{class:_.s3("yt-tab-shape",function(){return u().className},(P["yt-tab-shape__tab--last-tab"]=function(){return u().isLastTab},P["yt-tab-shape--host-disabled"]=Q,P["yt-tab-shape--host-clickable"]=!O,P)),
role:O?void 0:"tab","aria-selected":M!=null?M:!1,"aria-disabled":Q,tabindex:O?void 0:0,"on:click":Y,"on:keydown":g,el:L,"tab-identifier":function(){return u().identifier},
"tab-title":t},_.T(_.X,{cond:G,then:function(){return O()},
else:function(){var I={},k={};return _.T(_.GY,null,_.T("div",{class:_.s3("yt-tab-shape__tab",(I["yt-tab-shape__tab--tab-selected"]=M,I))},_.T(_.X,{cond:K,then:function(n){return _.T(_.GS,{className:"yt-tab-shape__tab-icon",icon:function(){return n().iconType}})}}),t),_.T("div",{class:_.s3("yt-tab-shape__tab-bar",(k["yt-tab-shape__tab-bar--tab-bar-selected"]=M,k))}))}}))},"Jf");
p19.idomCompat={callbacks:{customTabRenderable:!0}};_.mMB=_.D(function(Y){var G=Y.shape;Y=_.E(_.IE(48,void 0,"nDAx4"));var u=Y.next().value,O=Y.next().value;Y=_.E(_.IE(0,void 0,"GCgjqb"));var Q=Y.next().value,M=Y.next().value,t=function(){return G().tabs},K=_.CH("yt-tab-group-shape"),L=function(){var k,n;
return(n=(k=t())==null?void 0:k.findIndex(function(p){return p.selected}))!=null?n:-1};
Y=_.E(_.IE(!1,void 0,"SU01tf"));var g=Y.next().value,P=Y.next().value,I=function(){g()||_.AN.addJob(function(){P(!0)},0)};
_.RE(function(){var k=L(),n=_.AN.addJob(function(){var p,W=((p=K.value)==null?void 0:p.querySelectorAll("yt-tab-shape"))||[],C;O(((C=k>-1?W[k]:void 0)==null?void 0:C.getBoundingClientRect().width)||0);for(C=p=0;C<k;C++)p+=W[C].offsetWidth+24;_.DE("HTML_DIR")==="rtl"&&(p=-p);M(p);I()},8,0);
_.w_(function(){_.AN.cancelJob(n)})},"PMwgb");
Y={};return _.T("yt-tab-group-shape",{class:_.s3("tabGroupShapeHost",(Y.tabGroupShapeOverflowHidden=function(){return G().isOverflowHidden},Y)),
el:K},_.T(_.X,{cond:t,then:function(k){return _.T(_.GY,null,_.T("div",{class:"tabGroupShapeTabs",role:"tablist"},_.T(_.rc,{each:k},function(n,p){return _.T(p19,{shape:function(){return Object.assign({},n,{isLastTab:p()===k().length-1})},
customTabRenderable:n.customTabRenderable,useCustomTabRenderable:!!n.customTabRenderable})})),_.T(zlb,{width:u,
sliderOffset:Q,enableTransition:g}))}}))},"Lf");
_.mMB.idomCompat=!0;var zlb=_.D(function(Y){var G=_.dB(Y.sliderOffset,0),u=Y.width,O=Y.enableTransition;Y={};return _.T("div",{class:_.s3("tabGroupShapeSlider",(Y.tabGroupShapeSliderTransition=function(){return O()},Y)),
style:_.Yh({width:function(){return u()+"px"},
transform:function(){return"translateX("+G()+"px)"}})})},"Mf");var WE9=_.D(function(Y){var G=function(){var M,t,K;return(K=(M=Y.data().playerLogoAccessibility)==null?void 0:(t=M.accessibilityData)==null?void 0:t.label)!=null?K:""},u=_.Oe(N24,function(){return Y.data().playerEntityKey}),O={};
O=_.s3("ytwFantasyPlayerViewModelHost",(O.ytwFantasyPlayerViewModelPlaying=function(){var M;return!((M=u())==null||!M.isPlayerPlaying)},O.ytwFantasyPlayerViewModelOnField=function(){var M;
return((M=u())==null?void 0:M.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},O.ytwFantasyPlayerViewModelRedZone=function(){var M;
return((M=u())==null?void 0:M.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},O));
var Q=function(){var M,t,K,L=((M=_.sH().resolve(_.q3(_.Ee)))==null?0:M())?(t=Y.data().playerLogoBackgroundColor)==null?void 0:t.darkTheme:(K=Y.data().playerLogoBackgroundColor)==null?void 0:K.lightTheme;return L===void 0?"":_.nB(L)};
return _.T("ytw-fantasy-player-view-model",{class:O},_.T(_.X,{cond:function(){return Y.data().playerLogo},
then:function(M){return _.T("div",{class:"ytwFantasyPlayerViewModelLogo"},_.T("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.T(_.RD,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Yh({"background-color":Q}),data:M,alt:G})),_.T("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.T(_.GS,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.T("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.T("div",{class:"ytwFantasyPlayerViewModelHeader"},_.T(_.eO,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var M;return(M=Y.data())==null?void 0:M.playerNameText}}),_.T(_.eO,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var M;return(M=Y.data())==null?void 0:M.playerDescriptionText}})),_.T("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.T(_.eO,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=u())==null?void 0:M.gamePeriodText}}),_.T(_.eO,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=Y.data())==null?void 0:M.opponentTeamText}}),_.T(_.eO,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=u())==null?void 0:M.gameStatusText}}),_.T(_.eO,{className:_.s3("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var M;return(M=u())==null?void 0:M.playerStatusText}})),_.T("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.T(_.eO,{text:function(){var M;
return(M=u())==null?void 0:M.playerStatsText}}))),_.T(_.eO,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var M;return(M=u())==null?void 0:M.fantasyScore}}))},"Nf");var rUN=_.D(function(Y){return _.T("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.T(_.X,{cond:function(){return Y.data().players},
then:function(G){return _.T(_.HE,{data:G},{fantasyPlayerViewModel:WE9})}}))},"Of");var xMS=_.D(function(Y){var G=_.E(_.SN(function(){var Q;return(Q=Y.data().selectedTabIdentifierKey)!=null?Q:""})),u=G.next().value,O=G.next().value;
_.o1(function(){var Q;(Q=Y.setSelectedTabSignal)==null||Q.call(Y,u)});
return _.T("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.T("div",{class:"ytTabbedViewModelTabGroup"},_.T(_.mMB,{shape:function(){var Q=Y.data(),M=[],t={tabs:M};if(!Q.tabs)return t;Q=_.E(Q.tabs);for(var K=Q.next(),L={};!K.done;L={tabViewModel:void 0},K=Q.next())if(L.tabViewModel=_.z(K.value,p7k),L.tabViewModel){var g=K=void 0;M.push({aTagConfig:{onclick:function(P){return function(){var I;O((I=P.tabViewModel.tabIdentifier)!=null?I:"")}}(L)},
identifier:L.tabViewModel.tabIdentifier,selected:u()===L.tabViewModel.tabIdentifier,title:(g=(K=L.tabViewModel.title)==null?void 0:K.content)!=null?g:""})}return t}})),_.T(_.HE,{data:function(){var Q,M=_.E((Q=Y.data().tabs)!=null?Q:[]);
for(Q=M.next();!Q.done;Q=M.next())if((Q=_.z(Q.value,p7k))&&Q.tabIdentifier===u())return Q.content}},{fantasyRosterViewModel:rUN}))},"Qf");_.hR(_.D(function(Y){var G=_.E(JIg()),u=G.next().value,O=G.next().value;return _.T("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.T(_.eO,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return Y.data().title}}),_.T(_.X,{cond:function(){return Y.data().tabbedViewModel},
then:function(Q){return _.T(_.HE,{data:Q},{tabbedViewModel:function(M){return _.T(xMS,{data:M.data,setSelectedTabSignal:O})}})}}),_.T(_.X,{cond:function(){var Q,M=(Q=_.z(Y.data().tabbedViewModel,z5k))==null?void 0:Q.tabs;
Q=_.z(M==null?void 0:M[0],p7k);M=_.z(M==null?void 0:M[1],p7k);var t=Q==null?void 0:Q.tabIdentifier;if(u()===t){var K,L;if(!((K=_.z(Q==null?void 0:Q.content,ocR))==null?0:(L=K.players)==null?0:L.length))return Y.data().noUserTeamPlayersText}else{var g,P;if(!((g=_.z(M==null?void 0:M.content,ocR))==null?0:(P=g.players)==null?0:P.length))return Y.data().noOpponentTeamPlayersText}},
then:function(Q){return _.T(_.eO,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:Q})}}))},"Rf"),"ytw-fantasy-matchup-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){return _.T("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.T(_.eO,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return Y.data().title}}),_.T(_.X,{cond:function(){return Y.data().matchupTeamPairs},
then:function(G){return _.T(_.rc,{each:G,keyBy:"INDEX"},function(u){return _.T("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.T(_.HE,{data:function(){return[u().firstTeam,u().secondTeam]}},{fantasyTeamViewModel:function(O){return _.T(FEb,{data:O.data,
compact:!0})}}))})}}))},"Sf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=function(){var Q,M,t;return(t=(Q=Y.data().userLogoAccessibility)==null?void 0:(M=Q.accessibilityData)==null?void 0:M.label)!=null?t:""},u=function(){var Q,M,t;
return(t=(Q=Y.data().opponentLogoAccessibility)==null?void 0:(M=Q.accessibilityData)==null?void 0:M.label)!=null?t:""},O=_.Oe(b6u,function(){return Y.data().entityKey});
return _.T("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.T("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.T(_.X,{cond:function(){return Y.data().userLogo},
then:function(Q){return _.T(_.RD,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Q,alt:G})}}),_.T("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.T(_.eO,{text:function(){return Y.data().title}})),_.T(_.X,{cond:function(){return Y.data().opponentLogo},
then:function(Q){return _.T(_.RD,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Q,alt:u})}})),_.T("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.T("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.T(_.eO,{text:function(){var Q;
return(Q=O())==null?void 0:Q.userWinNumberLabel}})),_.T("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.T("div",{class:_.s3("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Yh({flex:function(){var Q,M;return(M=(Q=O())==null?void 0:Q.userWinNumber)!=null?M:50}})}),_.T("div",{class:_.s3("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Yh({flex:function(){var Q,M;return(M=(Q=O())==null?void 0:Q.opponentWinNumber)!=null?M:50}})})),_.T("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.T(_.eO,{text:function(){var Q;
return(Q=O())==null?void 0:Q.opponentWinNumberLabel}}))))},"Tf"),"fantasy-win-probability-view-model",{props:{data:_.AC}});var fVj={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},C_N=_.D(function(Y){return _.T(_.HE,{data:Y.button},{buttonViewModel:function(G){return _.T(_.$Y,{data:G.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Uf"),yUx=_.D(function(Y){return _.T("ytd-backstage-locked-post-view-model",{class:_.s3("ytdBackstageLockedPostViewModelHost",Y.className)},_.T("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.T("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.T(_.HE,
{data:function(){return Y.data().authorAvatar}},{decoratedAvatarViewModel:_.mb})),_.T("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.T("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.T(_.eO,{text:function(){return Y.data().authorText}})),_.T("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.T(_.eO,{text:function(){return Y.data().publishedTimeText}}),_.T(_.HE,{data:function(){return Y.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(G){return _.T(r64,
{data:G.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.T("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.T(_.eO,{text:function(){return Y.data().contentText}})),_.T(_.x4,null,_.T(_.m1,{when:function(){return Y.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.T("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.T(_.RD,{data:fVj,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.T(_.eO,{text:function(){return Y.data().lockedText}}))}),_.T(_.m1,{when:function(){return Y.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.T("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.T("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.T(_.RD,{data:fVj,
alt:""})),_.T(_.eO,{text:function(){return Y.data().lockedText}}))})),_.T("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.T(C_N,{button:function(){return Y.data().likeButton}}),_.T("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return Y.data().voteCountA11y}},_.T(_.eO,{text:function(){return Y.data().voteCount}})),_.T(C_N,{button:function(){return Y.data().dislikeButton}}),_.T(C_N,{button:function(){return Y.data().commentButton}}),_.T("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return Y.data().commentCountA11y}},_.T(_.eO,{text:function(){return Y.data().commentCount}}))))},"Vf");
yUx.idomCompat=!0;_.hR(yUx,"ytd-backstage-locked-post-view-model",{props:{data:_.AC,className:_.AC}});_.Px("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var bk=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerPanels=_.F("web_watch_darker_panels");Y.commentsHidePanelButton=!1;Y.isWatchGrid=!1;Y.continuationShowButton=!1;Y.isSearch=!1;Y.isConstrainedList=!1;Y.isWatch=!1;Y.eligibleToSwitchToGrid=!1;Y.useBigThumbs=!1;Y.epRestyle=!1;Y.isCarouselInFeed=!0;Y.topSpacingZero=!1;Y.continuationIsInitialLoad=!0;Y.enableSqueezebackPanels=_.F("web_shorts_enable_squeezeback_panels");Y.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");Y.notSticky=
!0;Y.mastheadHeight=0;Y.isStickyChipBarSetup=!1;Y.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};Y.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return Y};
_.m(bk,_.Z);_.H=bk.prototype;_.H.updateLockupContainerTypes=function(Y){if(this.eligibleToSwitchToGrid){var G;(G=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||G.forEach(function(u){u.containerType=Y})}};
_.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]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},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",
eduCardViewModel:"yt-edu-card-view-model",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",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.F("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.F("kevlar_low_priority_continuation")}}};
_.H.created=function(){};
_.H.updateStickySetup=function(){_.F("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.H.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch($JU(!this.notSticky))};
_.H.setupStickyChipBar=function(){var Y=this;if(!this.isStickyChipBarSetup&&_.F("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.Jh(this,this.updateHeaderState));var G;this.mastheadHeight=((G=document.querySelector("ytd-masthead"))==null?void 0:G.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(u){Y.handleIntersect(u)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){Y.updateHeaderState();Y.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.H.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.Jh(this,this.updateHeaderState));var Y;(Y=this.intersectionObserver)==null||Y.disconnect();var G;(G=this.resizeObserver)==null||G.disconnect()}};
_.H.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.H.handleIntersect=function(Y){this.notSticky=Y[0].intersectionRatio===1};
_.H.updateHeaderCssVariables=function(){this.hostElement.style.setProperty("--ytd-item-section-header-width",this.hostElement.clientWidth+"px");this.hostElement.style.setProperty("--ytd-item-section-header-top",this.mastheadHeight+"px")};
_.H.detached=function(){this.teardownStickyChipBar()};
_.H.updated=function(Y){Y.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.H.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var Y=_.l0(this.hostElement).querySelector("ytd-comments-header-renderer");Y&&(Y.hidePanelButton=this.commentsHidePanelButton)}};
_.H.onRetrieveLocation=function(Y,G){this.containsComments()&&(this.firstCommentsLoaded=G.hasComments=!0)};
_.H.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.H.onLoadReloadContinuation=function(Y,G){var u=this;Y.stopPropagation();this.isReloading=!0;_.$s(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(O){var Q=_.sH().resolve(_.Hm);O=G(O);Q.postData(O).then(function(M){u.onReloadContinuationData(M)})}})};
_.H.onReloadContinuationData=function(Y){if(Y=this.get("response.continuationContents.itemSectionContinuation",Y)||this.get("response.contents.itemSectionRenderer",Y)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",Y)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",Y))this.set("data.contents",Y.contents||Y.results),Y.header&&this.set("data.header",Y.header),this.set("data.continuations",
Y.continuations||[]);this.isReloading=!1};
_.H.computeContentsClass=function(Y){return Y?"reloading":""};
_.H.computeSectionIdentifier=function(Y){return Y==null?void 0:Y.sectionIdentifier};
_.H.computeFitContainer=function(Y){return(Y==null?void 0:Y.sectionIdentifier)==="youchat-item-section"};
_.H.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.F("kevlar_disable_comments_auto_load")};
_.H.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.H.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.H.computeHasDestinationShelfRenderer=function(Y){var G,u;return!!(Y==null?0:(G=Y.contents)==null?0:(u=G[0])==null?0:u.destinationShelfRenderer)};
_.H.computeHasSectionGroupViewModel=function(Y){var G,u;return!!(Y==null?0:(G=Y.contents)==null?0:(u=G[0])==null?0:u.sectionGroupViewModel)};
_.H.computeHasQrCodeRenderer=function(Y){var G,u;return!!(Y==null?0:(G=Y.contents)==null?0:(u=G[0])==null?0:u.qrCodeRenderer)};
_.H.computeStaticCommentsHeader=function(Y){return Y&&this.containsComments()};
_.H.computeEpRestyle=function(Y){return _.F("web_ep_restyling")&&Y&&this.containsComments()};
_.H.computeIsContinuationCommentSection=function(Y){return(Y==null?void 0:Y.targetId)==="shorts-engagement-panel-comments-section"||(Y==null?void 0:Y.targetId)==="comments-section"||(Y==null?void 0:Y.targetId)==="engagement-panel-comments-section"};
_.H.computeSuppressPaddingDisclaimer=function(){var Y,G,u,O;return!!((Y=this.data)==null?0:(G=Y.contents)==null?0:(u=G[0])==null?0:(O=u.productListHeaderRenderer)==null?0:O.suppressPaddingDisclaimer)};
_.H.computeHeaderStyle=function(Y){switch(Y==null?void 0:Y.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.H.dataChanged=function(){this.firstCommentsLoaded=!1};
_.H.observeDataContentsLength=function(){var Y,G;((Y=this.data)==null?0:(G=Y.contents)==null?0:G.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.H.onYtDismissibleItemDismissedChange=function(Y){this._setItemDismissed(Y.type==="yt-dismissible-item-dismissed")};
_.H.triggerContinuations=function(){for(var Y=_.l0(this.hostElement).querySelector("#continuations").children,G=0;G<Y.length;G++)Y[G].trigger()};
_.H.triggerInitialContinuations=function(){for(var Y=_.l0(this.hostElement).querySelector("#continuations").children,G=0;G<Y.length;G++)Y[G].triggerIfNotPreviouslyTriggered()};
_.H.handleYtItemSectionContinuation=function(Y,G){var u;G&&((u=this.data)==null?void 0:u.sectionIdentifier)!==G||(this.set("data.continuations",[Y]),this.triggerContinuations())};
_.H.handleYtItemSectionReplace=function(Y,G){var u;G&&((u=this.data)==null?void 0:u.sectionIdentifier)!==G||(this.set("data.contents",Y),this.set("data.continuations",[]))};
_.H.computeUseHeightHack=function(Y){return Y&&!_.F("kevlar_disable_height_hack")};
_.H.computeTopSpacingZero=function(Y){return Y};
_.H.continuationShowButtonChanged=function(){var Y=_.l0(this.hostElement).querySelector("ytd-continuation-item-renderer");Y&&(Y.showButton=this.continuationShowButton)};
_.H.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("data-changed",this.data))};
_.Uk.Object.defineProperties(bk.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.F("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return!!((Y=this.data)==null?0:(G=Y.contents)==null?0:(u=G[0])==null?0:u.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O,Q,M,t;return!!((Y=this.data)==null?0:(G=Y.contents)==null?0:(u=G[0])==null?0:(O=u.shelfRenderer)==null?0:(Q=O.content)==null?0:(M=Q.gridRenderer)==null?0:(t=M.targetId)==null?0:t.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return!!((Y=this.data)==null?0:(G=Y.contents)==null?0:(u=G[0])==null?0:u.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return!!((Y=this.data)==null?0:(G=Y.contents)==null?0:(u=G[0])==null?0:u.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Yg("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.F("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs&&_.F("web_watch_next_big_thumbs_compact_layout"),useRichGridLegacyMargin:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.F("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!!((Y=this.data)==null?0:(G=Y.header)==null?0:G.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.F("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.F("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
bk.prototype.dataChangedForBinding=bk.prototype.dataChangedForBinding;bk.prototype.continuationShowButtonChanged=bk.prototype.continuationShowButtonChanged;bk.prototype.onYtDismissibleItemDismissedChange=bk.prototype.onYtDismissibleItemDismissedChange;bk.prototype.observeDataContentsLength=bk.prototype.observeDataContentsLength;bk.prototype.dataChanged=bk.prototype.dataChanged;bk.prototype.onServiceRequestCompleted=bk.prototype.onServiceRequestCompleted;bk.prototype.onLoadReloadContinuation=bk.prototype.onLoadReloadContinuation;
bk.prototype.onRetrieveLocation=bk.prototype.onRetrieveLocation;bk.prototype.commentsHidePanelButtonChanged=bk.prototype.commentsHidePanelButtonChanged;bk.prototype.dispatchChipBarIsSticky=bk.prototype.dispatchChipBarIsSticky;bk.prototype.updateStickySetup=bk.prototype.updateStickySetup;bk.prototype.updateLockupContainerTypes=bk.prototype.updateLockupContainerTypes;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],bk.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],bk.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.jx.YtLazyListBehavior),_.V("design:type",Object)],bk.prototype,"ytLazyListBehavior",void 0);_.S([_.x(_.hq.YtNextContinuationBehavior),_.V("design:type",Object)],bk.prototype,"ytNextContinuationBehavior",void 0);
_.S([_.x(_.DD),_.V("design:type",Object)],bk.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],bk.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],bk.prototype,"ytdReduxBehavior",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],bk.prototype,"darkerPanels",void 0);_.S([_.R(),_.V("design:type",Object)],bk.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Boolean)],bk.prototype,"engagementPanel",void 0);_.S([_.R(),_.V("design:type",Object)],bk.prototype,"commentsHidePanelButton",void 0);_.S([_.R(),_.V("design:type",Object)],bk.prototype,"isWatchGrid",void 0);_.S([_.R(),_.V("design:type",Object)],bk.prototype,"continuationShowButton",void 0);_.S([_.R({computed:"computeIsContinuationCommentSection(data)"}),_.V("design:type",Boolean)],bk.prototype,"continuationIsCommentsSection",void 0);
_.S([_.R({value:!0}),_.V("design:type",Boolean)],bk.prototype,"autoFill",void 0);_.S([_.R(),_.V("design:type",Boolean)],bk.prototype,"continuationDisablePrescanVisibility",void 0);_.S([_.R(),_.V("design:type",Boolean)],bk.prototype,"isReloading",void 0);_.S([_.R(),_.V("design:type",Object)],bk.prototype,"isSearch",void 0);_.S([_.R(),_.V("design:type",Object)],bk.prototype,"isConstrainedList",void 0);_.S([_.R(),_.V("design:type",Object)],bk.prototype,"isWatch",void 0);
_.S([_.R(),_.V("design:type",Object)],bk.prototype,"eligibleToSwitchToGrid",void 0);_.S([_.R(),_.V("design:type",Object)],bk.prototype,"useBigThumbs",void 0);_.S([_.R({selector:_.zS,reflectToAttribute:!0}),_.V("design:type",Object)],bk.prototype,"isGridViewEnabled",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.V("design:type",Object)],bk.prototype,"epRestyle",void 0);
_.S([_.f("isWatch"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bk.prototype,"hideShortsShelfHeader",null);_.S([_.f("isSearch","isWatch"),_.V("design:type",String),_.V("design:paramtypes",[])],bk.prototype,"thumbnailWidth",null);_.S([_.f("isSearch","containerWidth"),_.V("design:type",Object),_.V("design:paramtypes",[])],bk.prototype,"thumbnailTargetWidth",null);
_.S([_.f("isSearch","isWatch","useBigThumbs"),_.V("design:type",String),_.V("design:paramtypes",[])],bk.prototype,"sizing",null);_.S([_.f("isWatch","isGridViewEnabled","useBigThumbs","data"),_.R({reflectToAttribute:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],bk.prototype,"lockupContainerType",null);_.S([_.GO("lockupContainerType","data"),_.V("design:type",Function),_.V("design:paramtypes",[Number]),_.V("design:returntype")],bk.prototype,"updateLockupContainerTypes",null);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],bk.prototype,"pageSubtype",void 0);_.S([_.R(),_.V("design:type",Number)],bk.prototype,"containerWidth",void 0);_.S([_.R(),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bk.prototype,"isPlaylist",null);_.S([_.R(),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bk.prototype,"isClipList",null);_.S([_.R(),_.V("design:type",Object)],bk.prototype,"isCarouselInFeed",void 0);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bk.prototype,"isPlaylistVideoContainer",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bk.prototype,"isSearchFrictionPage",null);_.S([_.R({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.V("design:type",Boolean)],bk.prototype,"useHeightHack",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.V("design:type",Object)],bk.prototype,"topSpacingZero",void 0);_.S([_.R({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.V("design:type",Boolean)],bk.prototype,"showButton",void 0);_.S([_.R(),_.V("design:type",Boolean)],bk.prototype,"firstCommentsLoaded",void 0);_.S([_.R(),_.V("design:type",Object)],bk.prototype,"continuationIsInitialLoad",void 0);
_.S([_.R({reflectToAttribute:!0,readOnly:!0}),_.V("design:type",Boolean)],bk.prototype,"itemDismissed",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.V("design:type",String)],bk.prototype,"sectionIdentifier",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.V("design:type",String)],bk.prototype,"fitContainer",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.V("design:type",Boolean)],bk.prototype,"hasDestinationShelfRenderer",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.V("design:type",Boolean)],bk.prototype,"staticCommentsHeader",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],bk.prototype,"enableSqueezebackPanels",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],bk.prototype,"enableAnchoredPanel",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.V("design:type",Boolean)],bk.prototype,"hasSectionGroupViewModel",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.V("design:type",Boolean)],bk.prototype,"hasQrCodeRenderer",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.V("design:type",Boolean)],bk.prototype,"suppressDisclaimerSeparator",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.V("design:type",String)],bk.prototype,"headerStyle",void 0);_.S([_.f("isSearch","isWatch","useBigThumbs"),_.V("design:type",Object),_.V("design:paramtypes",[])],bk.prototype,"lockupExperiments",null);
_.S([_.f("isSearch"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bk.prototype,"typographyBump",null);_.S([_.Ox("#header"),_.V("design:type",HTMLElement)],bk.prototype,"header",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],bk.prototype,"notSticky",void 0);_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Object),_.V("design:paramtypes",[])],bk.prototype,"useChipBarViewModelHeader",null);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bk.prototype,"expFixPlaylistHeader",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bk.prototype,"expFixPlaylistHeaderV2",null);_.S([_.GO("pageSubtype"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bk.prototype,"updateStickySetup",null);
_.S([_.GO("notSticky"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bk.prototype,"dispatchChipBarIsSticky",null);_.S([_.GO("commentsHidePanelButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bk.prototype,"commentsHidePanelButtonChanged",null);_.S([_.Yo("yt-retrieve-location"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],bk.prototype,"onRetrieveLocation",null);
_.S([_.Yo("yt-load-reload-continuation"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Function]),_.V("design:returntype")],bk.prototype,"onLoadReloadContinuation",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bk.prototype,"onServiceRequestCompleted",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bk.prototype,"dataChanged",null);
_.S([_.Ex("data.contents.length"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bk.prototype,"observeDataContentsLength",null);_.S([_.Yo("yt-dismissible-item-dismissed"),_.Yo("yt-dismissible-item-undismissed"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],bk.prototype,"onYtDismissibleItemDismissedChange",null);
_.S([_.GO("continuationShowButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bk.prototype,"continuationShowButtonChanged",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bk.prototype,"dataChangedForBinding",null);_.S([_.pD({is:"ytd-item-section-renderer",disableElementRegistration:!0})],bk);
_.d(bk,"ytd-item-section-renderer",function(){if(RnU!==void 0)return RnU;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return RnU=Y},{mode:1});var el9;var uLa=_.i8(_.Q6("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var AUV={},G8t=(AUV[0]={title:_.Sy(_.Q6("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Sy(_.Q6("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.dS("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},AUV[1]={title:_.Sy(_.Q6("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.dS("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},AUV);_.Px("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Si=function(){var Y=_.Z.apply(this,arguments)||this;Y.allVideosCount=0;Y.allPlaylistCount=0;Y.isOnline=!1;Y.shouldRenderDownloadsBanner=!1;Y.shouldRenderDownloadsBannerUpsell=!1;Y.hasOptedIntoSmartDownloads=!1;Y.areAllSmartDownloadsDeleted=!1;Y.smartDownloadsCompleted=!1;return Y};
_.m(Si,_.Z);Si.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Si.prototype.attached=function(){this.downloadsToRenderChanged()};
Si.prototype.detached=function(){this.set("renderableData",{})};
Si.prototype.downloadsToRenderChanged=function(){var Y=_.Zs().getState().entities,G=_.XX(Y),u=_.F("kevlar_playlist_dl_page_killswitch")?rsI(Y):_.PC(Y),O=_.key(Y),Q=_.z6I(Y),M=_.tH(G);Y=_.Ii(Y);this.set("renderableData",QI4(u,G,O,Q,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,M,Y))};
Si.prototype.downloadsToRenderChanged=Si.prototype.downloadsToRenderChanged;_.S([_.x(_.me),_.V("design:type",Object)],Si.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Si.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Si.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],Si.prototype,"renderableData",void 0);_.S([_.R({selector:_.h6y}),_.V("design:type",Object)],Si.prototype,"allVideosCount",void 0);_.S([_.R({selector:w_A}),_.V("design:type",Object)],Si.prototype,"allPlaylistCount",void 0);_.S([_.R({selector:_.zL}),_.V("design:type",Object)],Si.prototype,"isOnline",void 0);_.S([_.R({selector:_.lmT}),_.V("design:type",Object)],Si.prototype,"shouldRenderDownloadsBanner",void 0);
_.S([_.R({selector:_.sVu}),_.V("design:type",Object)],Si.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.S([_.R({selector:_.BWj}),_.V("design:type",Object)],Si.prototype,"hasOptedIntoSmartDownloads",void 0);_.S([_.R({selector:_.$eT}),_.V("design:type",Object)],Si.prototype,"areAllSmartDownloadsDeleted",void 0);_.S([_.R({selector:qoa}),_.V("design:type",Object)],Si.prototype,"smartDownloadsCompleted",void 0);
_.S([_.Ex("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Si.prototype,"downloadsToRenderChanged",null);_.S([_.pD({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Si);
_.d(Si,"ytd-offline-item-section-renderer",function(){if(el9!==void 0)return el9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return el9=Y},
{mode:1});var okV;var iTN;var Nl=function(){return _.Z.apply(this,arguments)||this};
_.m(Nl,_.Z);
Nl.prototype.onDataChanged=function(){if(this.JSC$17200_lastData){var Y=this.getFilterClass(this.JSC$17200_lastData.status);Y&&this.hostElement.classList.remove(Y)}var G;(Y=this.getFilterClass((G=this.data)==null?void 0:G.status))&&this.hostElement.classList.add(Y);Y==="selected"?_.l0(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.l0(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");Y==="disabled"?_.l0(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.l0(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17200_lastData=this.data};
Nl.prototype.getFilterClass=function(Y){switch(Y){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
Nl.prototype.onDataChanged=Nl.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Nl.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Nl.prototype,"data",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Nl.prototype,"onDataChanged",null);_.S([_.pD({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],Nl);
_.d(Nl,"ytd-search-filter-renderer",function(){if(iTN!==void 0)return iTN;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return iTN=Y},{mode:2});var ji=function(){return _.Z.apply(this,arguments)||this};
_.m(ji,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ji.prototype,"data",void 0);_.S([_.pD({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],ji);
_.d(ji,"ytd-search-filter-group-renderer",function(){if(okV!==void 0)return okV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return okV=Y},{mode:2});var RlB;var Vr=function(){return _.Z.apply(this,arguments)||this};
_.m(Vr,_.Z);Vr.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Uz());this.isCollapsed=!this.isCollapsed};
Vr.prototype.navigateToAboutTheseResultsPage=function(){var Y=_.qp("https://www.youtube.com/howyoutubeworks/product-features/search/");Y?_.Kb(window,Y,"_blank"):_.dc(Error("Vh"))};
Vr.prototype.dataChanged=function(){this.isCollapsed=!0};
Vr.prototype.computeShowBottomBorder=function(){var Y,G,u;return!!((Y=this.data)==null?0:(G=Y.button)==null?0:G.toggleButtonRenderer)||!((u=this.data)==null||!u.aboutTheseResultsButton)};
Vr.prototype.dataChanged=Vr.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Vr.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.V("design:type",Boolean)],Vr.prototype,"showBottomBorder",void 0);_.S([_.R(),_.V("design:type",Boolean)],Vr.prototype,"renderCollapsibleMenu",void 0);
_.S([_.R(),_.V("design:type",Boolean)],Vr.prototype,"isCollapsed",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vr.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Vr);
_.d(Vr,"ytd-search-sub-menu-renderer",function(){if(RlB!==void 0)return RlB;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return RlB=Y},{mode:1});var w1y;var ZTS=new _.Sb("SECTION_LIST_RENDERER_TOKEN");var DMb;var lk=function(){return _.Z.apply(this,arguments)||this};
_.m(lk,_.Z);lk.prototype.computeStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],lk.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],lk.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],lk.prototype,"headerStyle",void 0);_.S([_.pD({is:"ytd-text-header-renderer",disableElementRegistration:!0})],lk);
_.d(lk,"ytd-text-header-renderer",function(){if(DMb!==void 0)return DMb;var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return DMb=Y},{mode:1});var hlB;var Bi=function(){return _.Z.apply(this,arguments)||this};
_.m(Bi,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Bi.prototype,"data",void 0);_.S([_.pD({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Bi);
_.d(Bi,"ytd-minor-moment-header-renderer",function(){if(hlB!==void 0)return hlB;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return hlB=Y},{mode:1});var dMx;var $i=function(){return _.Z.apply(this,arguments)||this};
_.m($i,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],$i.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],$i.prototype,"data",void 0);_.S([_.pD({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],$i);
_.d($i,"ytd-minor-moment-setting-alert-renderer",function(){if(dMx!==void 0)return dMx;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return dMx=Y},{mode:1});var bTw;var S4o;var ql=function(){var Y=_.Z.apply(this,arguments)||this;Y.booleanSettingById=!1;Y.smartDownloadsEnabledVE=_.VZ(128287);Y.smartDownloadsDisabledVE=_.VZ(128286);Y.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return Y};
_.m(ql,_.Z);_.H=ql.prototype;_.H.attachSmartDownloadsSettingVes=function(){var Y;this.activeVeForLogging||((Y=this.data)==null?void 0:Y.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.lq(_.M4(),this.smartDownloadsEnabledVE),_.lq(_.M4(),this.smartDownloadsDisabledVE))};
_.H.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.$s(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(Y){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(Y=_.Zb(Y).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.F("kevlar_settings_switch_resolve_command_killswitch")?_.sH().resolve(_.rH).resolveCommand(Y,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(Y)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.H.handleUpdateSettingsSwitch=function(Y){(Y=_.z(Y,vpI))&&this.data&&this.data.id===Y.id&&this.set("data.enabled",!!Y.enabled)};
_.H.onToggleSettingsSwitch=function(Y,G){this.data&&this.data.id===Y&&this.set("data.enabled",G!=null?G:!this.data.enabled)};
_.H.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.SD.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.H.maybeLogSmartDownloadsSettingVisibility=function(){var Y=_.FA(),G;Y&&((G=this.data)==null?void 0:G.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.oK(Y,[this.smartDownloadsEnabledVE]),_.ig(Y,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.oK(Y,[this.smartDownloadsDisabledVE]),_.ig(Y,[this.smartDownloadsEnabledVE])))};
_.H.maybeLogSmartDownloadsSettingClick=function(){var Y;((Y=this.data)==null?void 0:Y.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Jw(_.M4(),this.activeVeForLogging)};
_.H.updateDataEnabledFromBinding=function(Y){this.set("data.enabled",Y.detail.value)};
_.Uk.Object.defineProperties(ql.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!Y&&(Y=this.ytRendererBehavior.getSimpleString(this.data.title));return Y}}});
ql.prototype.dataChanged=ql.prototype.dataChanged;_.S([_.x(_.me),_.V("design:type",Object)],ql.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],ql.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ql.prototype,"ytComponentBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],ql.prototype,"data",void 0);_.S([_.R({selector:function(Y,G){if(Object.keys(Y==null?void 0:Y.entities).length)switch(G){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return xeA(Y.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.V("design:type",Object)],ql.prototype,"booleanSettingById",void 0);_.S([_.R(),_.V("design:type",_.ks)],ql.prototype,"activeVeForLogging",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],ql.prototype,"toggleAriaLabel",null);_.S([_.Ex("data"),_.Ex("booleanSettingById"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ql.prototype,"dataChanged",null);
_.S([_.pD({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],ql);
_.d(ql,"ytd-settings-switch-renderer",function(){if(S4o!==void 0)return S4o;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return S4o=Y},{mode:1});var sv=function(){return _.Z.apply(this,arguments)||this};
_.m(sv,_.Z);sv.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}}}}};
_.Uk.Object.defineProperties(sv.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var Y=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(Y+=" remove-left-margin");this.data.extraBottomSpace&&(Y+=" extra-bottom-space");return Y}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],sv.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],sv.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],sv.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],sv.prototype,"contentsClassName",null);_.S([_.pD({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],sv);
_.d(sv,"ytd-minor-moment-setting-section-renderer",function(){if(bTw!==void 0)return bTw;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return bTw=Y},{mode:1});var NRN;var ci=function(){return _.Z.apply(this,arguments)||this};
_.m(ci,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ci.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ci.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],ci);
_.d(ci,"ytd-empty-product-details-renderer",function(){if(NRN!==void 0)return NRN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return NRN=Y},{mode:1});var jXo;var VR9;var Uv=function(){var Y=_.Z.apply(this,arguments)||this;Y.expanded=!0;return Y};
_.m(Uv,_.Z);Uv.prototype.getBadgeRowClass=function(Y,G,u){for(var O=_.E(this.hostElement.querySelectorAll("yt-img-shadow")),Q=O.next();!Q.done;Q=O.next())Q.value.onShow();Y=Y.selected;return u?Y!==-1?Y===G?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(Y!==void 0?Y:0)===G?"badge-line":"badge-hidden"};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Uv.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Uv.prototype,"expanded",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Uv);
_.d(Uv,"ytd-sponsorships-loyalty-badges-renderer",function(){if(VR9!==void 0)return VR9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return VR9=Y},{mode:1});var lVw;var vi=function(){var Y=_.Z.apply(this,arguments)||this;Y.expanded=!0;return Y};
_.m(vi,_.Z);vi.prototype.getContainerClasses=function(Y,G){Y=Y?"expanded":"collapsed";G&&(Y+=" item");return Y};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],vi.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],vi.prototype,"expanded",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],vi);
_.d(vi,"ytd-sponsorships-perk-renderer",function(){if(lVw!==void 0)return lVw;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return lVw=Y},{mode:1});var BR9;var J4=function(){var Y=_.Z.apply(this,arguments)||this;Y.expanded=!0;return Y};
_.m(J4,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],J4.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],J4.prototype,"expanded",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],J4);
_.d(J4,"ytd-sponsorships-perks-renderer",function(){if(BR9!==void 0)return BR9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return BR9=Y},{mode:1});var Y$=function(){var Y=_.Z.apply(this,arguments)||this;Y.isCollapsed=!1;return Y};
_.m(Y$,_.Z);Y$.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Y$.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Y$.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var Y;this.expandCollapseButton=_.z((Y=this.data)==null?void 0:Y.expandButton,_.ru)}else{var G;this.expandCollapseButton=_.z((G=this.data)==null?void 0:G.collapseButton,_.ru)}};
Y$.prototype.updateExpandCollapseButton=Y$.prototype.updateExpandCollapseButton;Y$.prototype.onDataChanged=Y$.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Y$.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Y$.prototype,"isCollapsed",void 0);_.S([_.R(),_.V("design:type",Object)],Y$.prototype,"expandCollapseButton",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Y$.prototype,"onDataChanged",null);_.S([_.Ex("data","isCollapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Y$.prototype,"updateExpandCollapseButton",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Y$);
_.d(Y$,"ytd-sponsorships-expandable-perks-renderer",function(){if(jXo!==void 0)return jXo;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return jXo=Y},{mode:1});var $Mx;var GQ=function(){return _.Z.apply(this,arguments)||this};
_.m(GQ,_.Z);GQ.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],GQ.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],GQ.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],GQ);
_.d(GQ,"ytd-sponsorships-actionable-message-renderer",function(){if($Mx!==void 0)return $Mx;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return $Mx=Y},{mode:1});var q4b;var um=function(){return _.Z.apply(this,arguments)||this};
_.m(um,_.Z);_.H=um.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(Y){return Y?"COLLAPSE":"EXPAND"};
_.H.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.H.computeMessageContainerStyle=function(Y){var G=Y.expandableItems?" style-clickable":"";return Y.messageContainerStyle?Y.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+G:"style-unspecified"+G};
_.H.isSinglePerk=function(Y){return!!Y.messageContainerStyle&&(Y.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||Y.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.H.onExpandedChanged=function(){var Y=this;if(this.expanded)for(var G=_.E(this.hostElement.querySelectorAll("yt-img-shadow")),u=G.next();!u.done;u=G.next())u.value.onShow();_.sk(this,function(){_.$s(Y.hostElement,"yt-refit")})};
_.H.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
um.prototype.onDataChanged=um.prototype.onDataChanged;um.prototype.onExpandedChanged=um.prototype.onExpandedChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],um.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],um.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],um.prototype,"expanded",void 0);
_.S([_.GO("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],um.prototype,"onExpandedChanged",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],um.prototype,"onDataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],um);
_.d(um,"ytd-sponsorships-expandable-message-renderer",function(){if(q4b!==void 0)return q4b;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return q4b=Y},{mode:2});var sXw;var OB=function(){return _.Z.apply(this,arguments)||this};
_.m(OB,_.Z);OB.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"}}}}};
OB.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.z(this.data.endButton,_.ru).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
OB.prototype.onDataChanged=OB.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],OB.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],OB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],OB.prototype,"data",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OB.prototype,"onDataChanged",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],OB);
_.d(OB,"ytd-sponsorships-heading-renderer",function(){if(sXw!==void 0)return sXw;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return sXw=Y},{mode:1});var cUx;var QD=function(){return _.Z.apply(this,arguments)||this};
_.m(QD,_.Z);_.S([_.R(),_.V("design:type",Object)],QD.prototype,"data",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],QD);
_.d(QD,"ytd-sponsorships-links-renderer",function(){if(cUx!==void 0)return cUx;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return cUx=Y},{mode:1});var UMw;var Mf=function(){return _.Z.apply(this,arguments)||this};
_.m(Mf,_.Z);_.H=Mf.prototype;_.H.onDataChanged=function(){if(this.data&&this.data.expandableItems){var Y;(Y=_.l0(this.hostElement).querySelector("tp-yt-paper-button"))==null||Y.setAttribute("role","button")}else{var G;(G=_.l0(this.hostElement).querySelector("tp-yt-paper-button"))==null||G.removeAttribute("role")}};
_.H.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.H.getExpansionIcon=function(Y){return Y?"COLLAPSE":"EXPAND"};
_.H.getTileClasses=function(Y){return Y?"tile expandable-tile":"tile"};
_.H.getButtonDisabled=function(Y){return Y?void 0:""};
Mf.prototype.onDataChanged=Mf.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Mf.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],Mf.prototype,"expanded",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Mf.prototype,"onDataChanged",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Mf);
_.d(Mf,"ytd-sponsorships-list-tile-renderer",function(){if(UMw!==void 0)return UMw;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return UMw=Y},{mode:1});var vkw;var JUj;var He=function(){return _.Z.apply(this,arguments)||this};
_.m(He,_.Z);He.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],He.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],He);
_.d(He,"ytd-sponsorships-promotion-renderer",function(){if(JUj!==void 0)return JUj;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return JUj=Y},{mode:1});var Yw9;var EB=function(){return _.Z.apply(this,arguments)||this};
_.m(EB,_.Z);EB.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],EB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],EB.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],EB);
_.d(EB,"ytd-sponsorships-purchase-option-renderer",function(){if(Yw9!==void 0)return Yw9;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Yw9=Y},{mode:1});var Gxx;var ugj;var Oxx=function(){return _.Z.apply(this,arguments)||this};
_.m(Oxx,_.Z);_.S([_.R(),_.V("design:type",Object)],Oxx.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],Oxx);
_.d(Oxx,"ytd-ypc-offer-promo-renderer",function(){if(ugj!==void 0)return ugj;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return ugj=Y},{mode:1});var t3=function(){return _.Z.apply(this,arguments)||this};
_.m(t3,_.Z);_.H=t3.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(Y,G){return Y&&(G?Y.collapseCallToAction:Y.expansionCallToAction)};
_.H.getExpansionIcon=function(Y){return Y?"COLLAPSE":"EXPAND"};
_.H.expansionCallToActionTap=function(){var Y=this;this.expanded=!this.expanded;_.sk(this,function(){_.$s(Y.hostElement,"yt-refit")})};
_.H.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var Y,G=(Y=this.data)==null?void 0:Y.onVisible;G&&this.ytComponentBehavior.resolveCommand(G)};
_.H.computeDisplayTitle=function(Y){return!(!Y||this.titledisplaystatus!=="show")};
_.H.computeDisplaySeparator=function(){return!1};
_.H.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
t3.prototype.onDataChanged=t3.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],t3.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],t3.prototype,"data",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],t3.prototype,"expanded",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],t3.prototype,"purchaseButtonClicked",void 0);_.S([_.R({reflectToAttribute:!0,value:"show"}),_.V("design:type",String)],t3.prototype,"titledisplaystatus",void 0);_.S([_.R({computed:"computeDisplayTitle(data.title)"}),_.V("design:type",Boolean)],t3.prototype,"displayTitle",void 0);
_.S([_.R({computed:"computeDisplaySeparator(data)"}),_.V("design:type",Boolean)],t3.prototype,"displaySeparator",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],t3.prototype,"onDataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],t3);
_.d(t3,"ytd-sponsorships-tier-renderer",function(){if(Gxx!==void 0)return Gxx;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Gxx=Y},{mode:2});var K9=function(){return _.Z.apply(this,arguments)||this};
_.m(K9,_.Z);
K9.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"}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],K9.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],K9.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],K9);
_.d(K9,"ytd-sponsorships-management-renderer",function(){if(vkw!==void 0)return vkw;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return vkw=Y},{mode:1});var Qoj;var aL=function(){return _.Z.apply(this,arguments)||this};
_.m(aL,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],aL.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],aL);
_.d(aL,"ytd-open-in-native-app-view-model",function(){if(Qoj!==void 0)return Qoj;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Qoj=Y},{mode:2});var MSj;var Hxb;var EVx=_.hV(["top-"]),tSV=_.hV(["bottom-"]),Kyb=_.hV(["left-"]),aNb=_.hV(["right-"]),Tb9={},LyB=function(Y,G,u){Y.removeAttribute("top-"+u);Y.removeAttribute("bottom-"+u);Y.removeAttribute("left-"+u);Y.removeAttribute("right-"+u);G&&(G.top&&_.k6([_.rg(EVx)],Y,"top-"+u,G.top),G.bottom&&_.k6([_.rg(tSV)],Y,"bottom-"+u,G.bottom),G.left&&_.k6([_.rg(Kyb)],Y,"left-"+u,G.left),G.right&&_.k6([_.rg(aNb)],Y,"right-"+u,G.right))};
Tb9.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(Y){var G,u=_.l0((G=this.hostElement)!=null?G:this),O;G=this.cardItemBoxBehaviorMarginTargetId&&u?u.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(O=this.hostElement)!=null?O:this;LyB(G,Y,"margin")},
cardItemContainerPaddingChanged_:function(Y){var G,u=_.l0((G=this.hostElement)!=null?G:this),O;G=this.cardItemBoxBehaviorPaddingTargetId&&u?u.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(O=this.hostElement)!=null?O:this;LyB(G,Y,"padding")}}];var TQ={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-text-primary)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-text-primary)",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 gVg;var Xbg;var L9=function(){return _.Z.apply(this,arguments)||this};
_.m(L9,_.Z);L9.prototype.textColorChanged_=function(){this.hostElement.style.color=TQ[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
L9.prototype.textColorChanged_=L9.prototype.textColorChanged_;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.S([_.x(Tb9.YtCardItemBoxBehavior),_.V("design:type",Object)],L9.prototype,"ytCardItemBoxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],L9.prototype,"data",void 0);_.S([_.GO("data.textColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],L9.prototype,"textColorChanged_",null);
_.S([_.Ff({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],L9);
_.d(L9,"yt-card-item-text-renderer",function(){if(Xbg===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;gVg===void 0&&(gVg=document.createElement("template"));var O=gVg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Xbg=Y}Y=Xbg;return Y},{mode:2});var PNS;var INy;var ge=function(){return _.Z.apply(this,arguments)||this};
_.m(ge,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ge.prototype,"data",void 0);_.S([_.Ff({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],ge);
_.d(ge,"yt-card-item-badge-renderer",function(){if(INy===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;PNS===void 0&&(PNS=document.createElement("template"));var O=PNS;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);INy=Y}Y=INy;return Y},{mode:2});var kxg;var nVb;var XB=function(){return _.Z.apply(this,arguments)||this};
_.m(XB,_.Z);XB.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],XB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],XB.prototype,"data",void 0);_.S([_.Ff({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],XB);
_.d(XB,"yt-card-item-text-collection-renderer",function(){if(nVb===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;kxg===void 0&&(kxg=document.createElement("template"));var O=kxg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);nVb=Y}Y=nVb;return Y},{mode:2});var Fyg;var pbj;var Pe=function(){return _.Z.apply(this,arguments)||this};
_.m(Pe,_.Z);Pe.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]]"}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Pe.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Pe.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Number)],Pe.prototype,"iconSize",void 0);_.S([_.Ff({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Pe);
_.d(Pe,"yt-card-item-text-with-button-renderer",function(){if(pbj===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Fyg===void 0&&(Fyg=document.createElement("template"));var O=Fyg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);pbj=Y}Y=pbj;return Y},{mode:2});var IL=function(){return _.Z.apply(this,arguments)||this};
_.m(IL,_.Z);IL.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"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],IL.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],IL.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],IL.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],IL.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],IL);
_.d(IL,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Hxb!==void 0)return Hxb;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Hxb=Y},{mode:1});_.Px("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var k$=function(){var Y=_.Z.apply(this,arguments)||this;Y.hidden=!1;return Y};
_.m(k$,_.Z);_.H=k$.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 Y=this.commerceCartCheckoutButtonEntity,G;if(((G=this.data)==null?0:G.cartButton)&&Y.checkoutSummaryText){var u,O=F2((u=this.data)==null?void 0:u.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+O+".cardItemTextRenderer.text",p$(Y.checkoutSummaryText));if(Y.checkoutDetailText){var Q;u=F2((Q=this.data)==null?void 0:Q.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+u+".cardItemTextRenderer.text",p$(Y.checkoutDetailText))}if(Y.checkoutAdditionalMetadataText){var M;
Q=F2((M=this.data)==null?void 0:M.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+Q+".cardItemTextRenderer.text",p$(Y.checkoutAdditionalMetadataText))}}else Y.estimatedTotalPrice&&(M=F2((O=this.data)==null?void 0:O.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+M+".cardItemTextRenderer.text",p$(Y.estimatedTotalPrice)))};
_.H.updateIsHidden=function(){var Y,G=(Y=this.commerceCartCheckoutButtonEntity)==null?void 0:Y.isHidden;G!==void 0&&(this.hidden=G)};
_.H.updateCheckoutButton=function(){var Y,G=(Y=this.commerceCartCheckoutButtonEntity)==null?void 0:Y.isDisabled;G!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",G);var u;Y=(u=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:u.innertubeCommand;Y!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",Y);var O;u=(O=this.commerceCartCheckoutButtonEntity)==null?void 0:O.checkoutButtonText;u!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:u})};
k$.prototype.entityChanged=k$.prototype.entityChanged;_.S([_.x(_.me),_.V("design:type",Object)],k$.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],k$.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],k$.prototype,"fullWidth",void 0);_.S([_.R(),_.V("design:type",Object)],k$.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],k$.prototype,"compact",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],k$.prototype,"hidden",void 0);
_.S([_.R({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:ov1}),_.V("design:type",Object)],k$.prototype,"commerceCartCheckoutButtonEntity",void 0);_.S([_.GO("commerceCartCheckoutButtonEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k$.prototype,"entityChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],k$);
_.d(k$,"ytd-commerce-cart-checkout-button-renderer",function(){if(MSj!==void 0)return MSj;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return MSj=Y},{mode:2});var zjN;_.m9N={};
_.m9N.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",_.Jh(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Jh(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(Y){!this.tappableItemBehaviorTapEnabled||Y.keyCode!==13&&Y.keyCode!==32||Y.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var Y=this.data.onTap;Y.ypcGetCartEndpoint?(_.c$(this.hostElement,[Y]),this.tappableItemBehaviorTapEnabled=!1):Y.ypcOffersEndpoint?_.c$(this.hostElement,[Y]):_.UK(this.hostElement,[Y],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(Y){this.tappableItemBehaviorTapEnabled=!!Y},
tappableItemBehaviorOnTapEnabledChanged_:function(){var Y=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(Y.setAttribute("tabIndex",0),Y.setAttribute("role","button")):(Y.removeAttribute("tabIndex"),Y.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(Y){Y.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var Wy9;var rBb;var n9=function(){return _.Z.apply(this,arguments)||this};
_.m(n9,_.Z);n9.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.IS("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.IS("sharingToggleButtonAndDefaultButton")}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],n9.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],n9.prototype,"data",void 0);_.S([_.Ff({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],n9);
_.d(n9,"yt-card-item-actions-renderer",function(){if(rBb===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Wy9===void 0&&(Wy9=document.createElement("template"));var O=Wy9;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);rBb=Y}Y=rBb;return Y},{mode:2});var x99;var fNV;var CNN;var yB9;var ejw;var ABx;var FB=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return Y};
_.m(FB,_.Z);FB.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
FB.prototype.handleDarkModeToggledAction_=function(Y){this.isDarkTheme_=Y};
FB.prototype.computeThemeImage_=function(Y,G){if(!Y||!Y.imageLight)return!1;this.isCircular_=Y.isCircular;Y.imageWidth&&(this.hostElement.style.width=Y.imageWidth+"px");Y.imageHeight&&(this.hostElement.style.height=Y.imageHeight+"px");Y.borderWidth&&(this.image.style.borderWidth=Y.borderWidth+"px",this.image.style.borderStyle="solid");Y.borderColor&&(this.image.style.borderColor=_.nB(Y.borderColor));return G&&Y.imageDark?Y.imageDark:Y.imageLight};
FB.prototype.computeThemeIcon_=function(Y){var G,u;if(!(Y==null?0:(G=Y.themedIcon)==null?0:(u=G.icon)==null?0:u.iconType))return!1;this.icon.style.color=TQ[Y.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(Y.imageWidth||18)+"px";this.icon.style.height=(Y.imageHeight||18)+"px";return _.Ux(Y.themedIcon.icon.iconType)};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],FB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(Tb9.YtCardItemBoxBehavior),_.V("design:type",Object)],FB.prototype,"ytCardItemBoxBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],FB.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],FB.prototype,"data",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],FB.prototype,"fit",void 0);_.S([_.R(),_.V("design:type",Boolean)],FB.prototype,"isDarkTheme_",void 0);_.S([_.R({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.V("design:type",Object)],FB.prototype,"themeImage_",void 0);_.S([_.R({computed:"computeThemeIcon_(data)"}),_.V("design:type",Object)],FB.prototype,"themeIcon_",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Object)],FB.prototype,"isCircular_",void 0);
_.S([_.Ox("#image"),_.V("design:type",Object)],FB.prototype,"image",void 0);_.S([_.Ox("#icon"),_.V("design:type",Object)],FB.prototype,"icon",void 0);_.S([_.Ff({is:"yt-themed-image-renderer",disableElementRegistration:!0})],FB);
_.d(FB,"yt-themed-image-renderer",function(){if(ABx===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;ejw===void 0&&(ejw=document.createElement("template"));var O=ejw;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);ABx=Y}Y=ABx;return Y},{mode:2});var p9=function(){return _.Z.apply(this,arguments)||this};
_.m(p9,_.Z);p9.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"}}}}};
p9.prototype.computeImagePlacement_=function(Y){return Y||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],p9.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],p9.prototype,"data",void 0);_.S([_.R({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.V("design:type",String)],p9.prototype,"imagePlacement",void 0);
_.S([_.Ff({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],p9);
_.d(p9,"yt-card-item-text-with-image-renderer",function(){if(yB9===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;CNN===void 0&&(CNN=document.createElement("template"));var O=CNN;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);yB9=Y}Y=yB9;return Y},{mode:2});var zQ=function(){return _.Z.apply(this,arguments)||this};
_.m(zQ,_.Z);zQ.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"}}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],zQ.prototype,"data",void 0);_.S([_.Ff({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],zQ);
_.d(zQ,"yt-card-item-error-renderer",function(){if(fNV===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;x99===void 0&&(x99=document.createElement("template"));var O=x99;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);fNV=Y}Y=fNV;return Y},{mode:2});var oVV;var ixb;_.Px("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var mx=function(){return _.Z.apply(this,arguments)||this};
_.m(mx,_.Z);_.H=mx.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 Y,G=(Y=this.data)==null?void 0:Y.backgroundColor;Y=TQ[G||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.l0(this.hostElement).querySelector("#main-content").style.backgroundColor=Y};
_.H.headerPromoBackgroundColorChanged_=function(){var Y,G=(Y=this.data)==null?void 0:Y.headerPromoBackgroundColor;Y=TQ[G||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.l0(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=Y};
_.H.errorRendererVisibilityChanged_=function(){var Y=this.isExpanded_,G;this.isErrorRendererVisible_=!((G=this.data)==null||!G.errorRenderer)&&!Y};
_.H.onYtToggleButton_=function(Y,G){this.isExpanded_=G.toggled};
mx.prototype.onYtToggleButton_=mx.prototype.onYtToggleButton_;mx.prototype.errorRendererVisibilityChanged_=mx.prototype.errorRendererVisibilityChanged_;mx.prototype.headerPromoBackgroundColorChanged_=mx.prototype.headerPromoBackgroundColorChanged_;mx.prototype.backgroundColorChanged_=mx.prototype.backgroundColorChanged_;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],mx.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(Tb9.YtCardItemBoxBehavior),_.V("design:type",Object)],mx.prototype,"ytCardItemBoxBehavior",void 0);_.S([_.x(_.m9N.YtTappableItemBehavior),_.V("design:type",Object)],mx.prototype,"ytTappableItemBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],mx.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],mx.prototype,"isExpanded_",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],mx.prototype,"isErrorRendererVisible_",void 0);_.S([_.GO("data.backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mx.prototype,"backgroundColorChanged_",null);_.S([_.GO("data.headerPromoBackgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mx.prototype,"headerPromoBackgroundColorChanged_",null);
_.S([_.GO("data.errorRenderer","isExpanded_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mx.prototype,"errorRendererVisibilityChanged_",null);_.S([_.Yo("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[Event,Object]),_.V("design:returntype")],mx.prototype,"onYtToggleButton_",null);_.S([_.Ff({is:"yt-card-item-renderer",disableElementRegistration:!0})],mx);
_.d(mx,"yt-card-item-renderer",function(){if(ixb===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;oVV===void 0&&(oVV=document.createElement("template"));var O=oVV;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);ixb=Y}Y=ixb;return Y},{mode:2});_.Px("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var We=function(){var Y=_.Z.apply(this,arguments)||this;Y.hidden=!1;return Y};
_.m(We,_.Z);_.H=We.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 Y,G=(Y=this.commerceCartHeaderEntity)==null?void 0:Y.isHidden;G!==void 0&&(this.hidden=G)}};
_.H.updateTitle=function(){var Y=this.commerceCartHeaderEntity.isDisabled,G,u,O=(u=_.z((G=this.data)==null?void 0:G.item,Ui4))==null?void 0:u.headingRenderer;O&&(G=F2(O,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+G+".0.cardItemTextRenderer.textColor",Y?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.H.updateSummaryText=function(){var Y=this.commerceCartHeaderEntity;if(this.compact){var G,u,O=(u=_.z((G=this.data)==null?void 0:G.item,Ui4))==null?void 0:u.headingRenderer;O&&(G=F2(O,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+G+".1.cardItemTextRenderer.text",Y.shortHeaderSummaryText?p$(Y.shortHeaderSummaryText):Y.headerSummaryText?p$(Y.headerSummaryText):""))}else{var Q;if(G=(Q=_.z((O=this.data)==null?void 0:O.item,Ui4))==null?void 0:Q.additionalInfoRenderer)G=F2(G,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+G+".text",Y.headerSummaryText?p$(Y.headerSummaryText):"")}};
_.H.updateCheckoutButton=function(){var Y=this.commerceCartHeaderEntity,G,u,O=(u=_.z((G=this.data)==null?void 0:G.item,Ui4))==null?void 0:u.additionalInfoRenderer;G=F2(O,"buttonRenderer");var Q;u=(Q=this.commerceCartHeaderEntity)==null?void 0:Q.isButtonDisabled;var M;Q=(M=this.commerceCartHeaderEntity)==null?void 0:M.isButtonHidden;u!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+G+".buttonRenderer.isDisabled",u);Q!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
Q);var t;Y=(t=Y.checkoutButtonCommand)==null?void 0:t.innertubeCommand;Y!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+G+".buttonRenderer.command",Y)};
We.prototype.entityChanged=We.prototype.entityChanged;_.S([_.x(_.me),_.V("design:type",Object)],We.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],We.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],We.prototype,"compact",void 0);_.S([_.R({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"commerceCartHeaderEntity",G)}}),
_.V("design:type",Object)],We.prototype,"commerceCartHeaderEntity",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],We.prototype,"hidden",void 0);_.S([_.GO("commerceCartHeaderEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],We.prototype,"entityChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],We);
_.d(We,"ytd-commerce-cart-header-renderer",function(){if(zjN!==void 0)return zjN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return zjN=Y},{mode:1});var RjS;var wby=_.pu(function(Y,G){var u;return(u=Y.onChangeCallback)==null?void 0:u.call(Y,G)},1E3),Zx9=_.D(function(Y){var G=Y.data;
var u=Y.iconMinus;Y=Y.iconPlus;var O=function(){return!!G().disabled},Q=_.E(_.IE(0,void 0,"mKh0af")),M=Q.next().value,t=Q.next().value;
Q=_.U3(function(){if(M()===1){var I,k;(k=(I=G()).onRemoveCommand)==null||k.call(I)}I=M()>G().maxValue?G().maxValue:M()-1;t(I);wby(G(),I);return!1});
var K=_.U3(function(){if(M()===G().maxValue)return!1;var I=M()+1;t(I);wby(G(),I);return!1});
_.o1(function(){t(G().value)});
var L={},g={},P={};return _.T("quantity-incrementer-shape",null,_.T("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.T("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return M()===(G().onRemoveCommand?0:1)||O()},
"aria-label":function(){return M()!==1?G().minusLabel:G().minimumReachedLabel},
"on:click":Q},_.T(_.jO,{model:{circular:!0}}),_.T("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.T("div",{class:_.s3("ytSpecQuantityIncrementerShapeIcon",(L.ytSpecQuantityIncrementerShapeIconDisabled=function(){return O()||M()===(G().onRemoveCommand?0:1)},L))},u()))),_.T("div",{class:_.s3("ytSpecQuantityIncrementerShapeText",(g.ytSpecQuantityIncrementerShapeTextInvalid=function(){return M()>G().maxValue},g.ytSpecQuantityIncrementerShapeTextDisabled=O,g))},M),_.T("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return M()>=G().maxValue||O()},
"aria-label":function(){return M()!==G().maxValue?G().plusLabel:G().maximumReachedLabel},
"on:click":K},_.T(_.jO,{model:{circular:!0}}),_.T("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.T("div",{class:_.s3("ytSpecQuantityIncrementerShapeIcon",(P.ytSpecQuantityIncrementerShapeIconDisabled=function(){return M()>=G().maxValue||O()},P))},Y())))))},"Xf");_.hR(_.D(function(Y){function G(){u().onRemoveCommand&&_.W3(u().onRemoveCommand)}
var u=Y.data;var O=_.Oe(Bht,function(){return u().quantityIncrementerEntityKey});
return _.T("yt-quantity-incrementer-view-model",null,_.T(Zx9,{data:function(){var Q=u(),M;var t=O()?!((M=O())==null||!M.disabled):!1;var K;M=O()?(K=O())==null?void 0:K.quantity:u().quantity;return E_T(Q,t,G,M)},
iconMinus:function(){return _.T(_.GS,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.T(_.GS,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Yf"),"yt-quantity-incrementer-view-model",{props:{data:_.AC}});var re=function(){var Y=_.Z.apply(this,arguments)||this;Y.compact=!1;Y.hasQuantityIncrementer=!1;return Y};
_.m(re,_.Z);re.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"}}}};
re.prototype.computeHasQuantityIncrementer=function(){var Y;return!!_.z((Y=this.data)==null?void 0:Y.picker,G$I)};
re.prototype.onLabelClick=function(){var Y;(Y=this.dropdownEl)==null||Y.open()};
_.S([_.Ox("ytd-dropdown-renderer"),_.V("design:type",Object)],re.prototype,"dropdownEl",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],re.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],re.prototype,"quantityColor",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],re.prototype,"compact",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.V("design:type",Object)],re.prototype,"hasQuantityIncrementer",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],re);
_.d(re,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(RjS!==void 0)return RjS;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return RjS=Y},{mode:1});var D9w;var hjx;var x$=function(){return _.Z.apply(this,arguments)||this};
_.m(x$,_.Z);x$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
x$.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
x$.prototype.updateTitle=function(){var Y=this.disabledCartItemEntity;Y.disableActionName&&this.set("data.title",p$(Y.disableActionName))};
x$.prototype.updateButton=function(){var Y,G=(Y=this.disabledCartItemEntity.undoCommand)==null?void 0:Y.innertubeCommand;G!==void 0&&(this.set("data.actionButton.buttonRenderer.command",G),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
x$.prototype.entityChanged=x$.prototype.entityChanged;_.S([_.x(_.me),_.V("design:type",Object)],x$.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],x$.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"disabledCartItemEntity",G)}}),
_.V("design:type",Object)],x$.prototype,"disabledCartItemEntity",void 0);_.S([_.R(),_.V("design:type",Object)],x$.prototype,"data",void 0);_.S([_.GO("disabledCartItemEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],x$.prototype,"entityChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],x$);
_.d(x$,"ytd-disabled-cart-item-renderer",function(){if(hjx!==void 0)return hjx;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return hjx=Y},{mode:1});_.Px("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var f9=function(){var Y=_.Z.apply(this,arguments)||this;Y.compact=!1;Y.hidden=!1;Y.errorHidden=!1;Y.noOnTap=!1;return Y};
_.m(f9,_.Z);_.H=f9.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 Y=this.firstButtonElement;Y.alignByText=!0;Y.iconAlignByText=!0}};
_.H.computeNoOnTap=function(Y){return!Y};
_.H.updateQuantityColor=function(){if(this.pickerElement){var Y,G=(Y=this.commerceCartItemEntity)==null?void 0:Y.quantityColor;this.pickerElement.quantityColor=G}};
_.H.updateTotalPriceColor=function(){var Y,G=(Y=this.commerceCartItemEntity)==null?void 0:Y.totalPriceColor;if(G){var u;Y=_.z((u=this.data)==null?void 0:u.quantityPicker,JlX);if(u=_.z(Y==null?void 0:Y.price,vbU))u.textColor=G}};
_.H.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var Y,G=(Y=this.commerceCartItemEntity)==null?void 0:Y.isHidden;G!==void 0&&(this.hidden=G)}};
_.H.updateHideErrorMessage=function(){var Y,G=(Y=this.commerceCartItemEntity)==null?void 0:Y.hideErrorMessage;G!==void 0&&(this.errorHidden=G)};
_.H.updateQuantity=function(){var Y=this,G,u=(G=this.commerceCartItemEntity)==null?void 0:G.quantity,O;G=(O=this.commerceCartItemEntity)==null?void 0:O.totalPrice;if(u){this.updateTotalPriceColor();this.updateQuantityColor();var Q;O=_.z((Q=this.data)==null?void 0:Q.quantityPicker,JlX);if(Q=_.z(O==null?void 0:O.price,vbU))Q.text=G?{simpleText:G.content}:void 0;if(G=_.z(O==null?void 0:O.picker,G$I))G.quantity=u;var M;if(Q=(M=_.z(O==null?void 0:O.picker,Ji1))==null?void 0:M.entries){M=!1;G=void 0;Q=
_.E(Q);for(O=Q.next();!O.done;O=Q.next())O=O.value,O.dropdownItemRenderer&&(G||(G=O.dropdownItemRenderer),O.dropdownItemRenderer.isSelected=!1,u===O.dropdownItemRenderer.int32Value&&(M=!0,O.dropdownItemRenderer.isSelected=!0));!M&&G&&(G.isSelected=!0)}_.sk(this,function(){var t;Y.set("data.quantityPicker",_.gX.unsafeClone((t=Y.data)==null?void 0:t.quantityPicker))})}};
f9.prototype.onYtRendererstamperFinished=f9.prototype.onYtRendererstamperFinished;f9.prototype.entityChanged=f9.prototype.entityChanged;_.S([_.R(),_.V("design:type",Object)],f9.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],f9.prototype,"compact",void 0);_.S([_.x(_.me),_.V("design:type",Object)],f9.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],f9.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],f9.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"commerceCartItemEntity",G)}}),
_.V("design:type",Object)],f9.prototype,"commerceCartItemEntity",void 0);_.S([_.R(),_.V("design:type",Object)],f9.prototype,"quantityPicker",void 0);_.S([_.R(),_.V("design:type",Object)],f9.prototype,"compactQuantityPicker",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],f9.prototype,"hidden",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],f9.prototype,"errorHidden",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.V("design:type",Object)],f9.prototype,"noOnTap",void 0);_.S([_.Ox("ytd-commerce-cart-item-quantity-picker-renderer"),_.V("design:type",Object)],f9.prototype,"pickerElement",void 0);_.S([_.Ox("yt-button-renderer"),_.V("design:type",Element)],f9.prototype,"firstButtonElement",void 0);
_.S([_.GO("commerceCartItemEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],f9.prototype,"entityChanged",null);_.S([_.Yo("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],f9.prototype,"onYtRendererstamperFinished",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],f9);
_.d(f9,"ytd-commerce-cart-item-renderer",function(){if(D9w!==void 0)return D9w;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return D9w=Y},{mode:2});var d9x;var bxy;var C9=function(){return _.Z.apply(this,arguments)||this};
_.m(C9,_.Z);C9.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}}}}}};
C9.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
C9.prototype.updateCheckoutLineItems=function(){var Y,G=(Y=this.commerceCartCheckoutButtonEntity)==null?void 0:Y.checkoutLineItems;G&&(Y=G.map(function(u){a:{var O=u.price,Q=u.description;switch(u.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":u={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:p$(Q),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:p$(O),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:u={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:p$(Q),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:p$(O),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 u}),this.set("data.summaryLineItems",Y))};
C9.prototype.updateIsHidden=function(){var Y,G=(Y=this.commerceCartCheckoutButtonEntity)==null?void 0:Y.isHidden;G!==void 0&&(this.hostElement.hidden=G)};
C9.prototype.entityChanged=C9.prototype.entityChanged;_.S([_.x(_.me),_.V("design:type",Object)],C9.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],C9.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],C9.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],C9.prototype,"data",void 0);_.S([_.R({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:ov1}),_.V("design:type",Object)],C9.prototype,"commerceCartCheckoutButtonEntity",void 0);_.S([_.GO("commerceCartCheckoutButtonEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],C9.prototype,"entityChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],C9);
_.d(C9,"ytd-commerce-cart-summary-renderer",function(){if(bxy!==void 0)return bxy;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return bxy=Y},{mode:1});var Swg={};Swg.InjectBehavior=[jkt.InjectBehavior];var Nbx;var joB;var yD=function(){return _.Z.apply(this,arguments)||this};
_.m(yD,_.Z);
yD.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:_.IS("menuRenderer")}}};
yD.prototype.onMenuTap=function(Y){Y.stopPropagation()};
_.Uk.Object.defineProperties(yD.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 Y,G;return!(((Y=this.data)==null||!Y.sectionHeading)&&((G=this.data)==null?void 0:G.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!(((Y=this.data)==null||!Y.image)&&((G=this.data)==null?void 0:G.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!(((Y=this.data)==null||!Y.menu)&&((G=this.data)==null?void 0:G.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9N.YtTappableItemBehavior),_.V("design:type",Object)],yD.prototype,"ytTappableItemBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],yD.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.f("data.accessibilityData"),_.V("design:type",String),_.V("design:paramtypes",[])],yD.prototype,"ariaLabel",null);_.S([_.f("data.sectionHeading","data.layout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yD.prototype,"sectionHeadingVisible",null);_.S([_.f("data.image","data.layout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yD.prototype,"imageVisible",null);
_.S([_.f("data.menu","data.layout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yD.prototype,"menuVisible",null);_.S([_.Ff({is:"yt-activity-item-renderer",disableElementRegistration:!0})],yD);
_.d(yD,"yt-activity-item-renderer",function(){if(joB===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Nbx===void 0&&(Nbx=document.createElement("template"));var O=Nbx;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);joB=Y}Y=joB;return Y},{mode:2});var VSg;var lNN;var Bbg;var $99;var e_=function(){return _.Z.apply(this,arguments)||this};
_.m(e_,_.Z);
e_.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"}}}}};
e_.prototype.backgroundColorChanged_=function(){var Y,G=(Y=this.data)==null?void 0:Y.backgroundColor;this.hostElement.style.backgroundColor=TQ[G||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
e_.prototype.backgroundColorChanged_=e_.prototype.backgroundColorChanged_;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],e_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],e_.prototype,"data",void 0);
_.S([_.GO("data.backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],e_.prototype,"backgroundColorChanged_",null);_.S([_.Ff({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],e_);
_.d(e_,"yt-offer-item-upsell-renderer",function(){if($99===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Bbg===void 0&&(Bbg=document.createElement("template"));var O=Bbg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);$99=Y}Y=$99;return Y},{mode:2});_.Px("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var A3=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};Y.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return Y};
_.m(A3,_.Z);_.H=A3.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:_.IS("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(Y){return Y};
_.H.computeContainerIsHidden_=function(Y){return Y&&!!Y.isHidden};
_.H.computeShowSpinner_=function(Y,G){return Y&&G==="in-progress"};
_.H.computeShowMoreContentsButton_=function(Y,G,u,O,Q){return!(!(O&&O.length||Q&&Q.length&&u)||!Y||G)};
_.H.onToggleButton_=function(Y){var G=this;Y.stopPropagation();this.isExpanded_=Y.detail&&Y.detail.toggled;var u,O;this.isExpanded_&&!this.data.continuationSection.length&&((u=this.data)==null?0:(O=u.continuation)==null?0:O.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.$s(this.hostElement,"yt-load-next-continuation",function(Q){return G.getContinuationUrl_(G.data.continuation.onClickContinuationData,Q)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.c$(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.H.onShowMoreContentsButtonClicked_=function(Y){var G=this;Y.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.$s(this.hostElement,"yt-load-next-continuation",function(u){return G.getContinuationUrl_(G.data.continuations[0].nextContinuationData,u)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.c$(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.H.getContinuationUrl_=function(Y,G){var u=Y.continuation;Y=Y.clickTrackingParams;var O=_.FA();Y&&O&&_.RK(O,_.Kd(Y));return _.JD(G,{continuation:u})};
_.H.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var Y=_.l0(this.hostElement).querySelector("#continuation-section");Y&&(Y=Y.querySelectorAll("ytmusic-item-section-renderer"))&&Y.forEach(function(G){return G.classList.add("memberships-and-purchases")})};
_.H.dataChanged_=function(){var Y;this.isExpanded_=!((Y=this.data)==null||!Y.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.H.updateCardOnClickCommand_=function(Y){Y=_.z(Y,jHU);var G,u;this.data&&((G=this.data)==null?0:G.targetId)&&Y&&Y.targetId===((u=this.data)==null?void 0:u.targetId)&&Y.onClickCommand&&(this.data.onClickCommand=Y.onClickCommand,this.isOnClickCommand_=!0)};
_.H.backgroundColorChanged_=function(){var Y,G=(Y=this.data)==null?void 0:Y.backgroundColor;this.hostElement.style.backgroundColor=TQ[G||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
A3.prototype.backgroundColorChanged_=A3.prototype.backgroundColorChanged_;A3.prototype.dataChanged_=A3.prototype.dataChanged_;A3.prototype.nextContinuationDataUpdated_=A3.prototype.nextContinuationDataUpdated_;A3.prototype.onToggleButton_=A3.prototype.onToggleButton_;_.S([_.x(_.DD),_.V("design:type",Object)],A3.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],A3.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],A3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.hq.YtNextContinuationBehavior),_.V("design:type",Object)],A3.prototype,"ytNextContinuationBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.S([_.x(Swg.InjectBehavior),_.V("design:type",Object)],A3.prototype,"injectBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],A3.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],A3.prototype,"compact",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],A3.prototype,"isExpanded_",void 0);_.S([_.R({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.V("design:type",String)],A3.prototype,"containerStyle_",void 0);_.S([_.R({value:"not-started"}),_.V("design:type",String)],A3.prototype,"continuationStatus_",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.V("design:type",Boolean)],A3.prototype,"showSpinner_",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],A3.prototype,"isOnClickCommand_",void 0);_.S([_.R({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.V("design:type",Boolean)],A3.prototype,"showMoreContentsButton_",void 0);
_.S([_.R({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(Y,G){return!G||Y.entities?null:_.v2(Y.entities,"cardItemContainerEntity",G)}}),
_.V("design:type",Object)],A3.prototype,"cardItemContainerEntity_",void 0);_.S([_.Yo("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],A3.prototype,"onToggleButton_",null);_.S([_.Yo("yt-next-continuation-data-updated"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],A3.prototype,"nextContinuationDataUpdated_",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],A3.prototype,"dataChanged_",null);_.S([_.GO("data.backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],A3.prototype,"backgroundColorChanged_",null);_.S([_.Ff({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],A3);
_.d(A3,"yt-card-item-container-renderer",function(){if(lNN===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;VSg===void 0&&(VSg=document.createElement("template"));var O=VSg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);lNN=Y}Y=lNN;return Y},{mode:2});var oL=function(){return _.Z.apply(this,arguments)||this};
_.m(oL,_.Z);oL.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"}}}};
oL.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
oL.prototype.computeLoadingHidden=function(){var Y;return!((Y=this.commerceCartPageStateEntity)==null?0:Y.cartActionInProgress)};
oL.prototype.updateNotification=function(){var Y,G=(Y=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:Y.summaryText;G&&this.set("data.cartNotification",p$(G))};
oL.prototype.notificationEntityChanged=oL.prototype.notificationEntityChanged;_.S([_.x(_.me),_.V("design:type",Object)],oL.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],oL.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],oL.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],oL.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],oL.prototype,"data",void 0);_.S([_.R({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"commerceCartExpandableNotificationEntity",G)}}),
_.V("design:type",Object)],oL.prototype,"commerceCartExpandableNotificationEntity",void 0);_.S([_.R({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"commerceCartPageStateEntity",G)}}),
_.V("design:type",Object)],oL.prototype,"commerceCartPageStateEntity",void 0);_.S([_.Ox("#spinner"),_.V("design:type",HTMLElement)],oL.prototype,"spinner",void 0);_.S([_.GO("commerceCartExpandableNotificationEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oL.prototype,"notificationEntityChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],oL);
_.d(oL,"ytd-commerce-cart-renderer",function(){if(d9x!==void 0)return d9x;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return d9x=Y},{mode:1});var qwx;var im=function(){var Y=_.Z.apply(this,arguments)||this;Y.bigImage=!1;return Y};
_.m(im,_.Z);_.Uk.Object.defineProperties(im.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.placeholderImageUrl}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],im.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],im.prototype,"bigImage",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],im.prototype,"placeholderImageUrl",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],im);
_.d(im,"ytd-empty-product-shelf-renderer",function(){if(qwx!==void 0)return qwx;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return qwx=Y},{mode:1});var sox;var RL=function(){var Y=_.Z.apply(this,arguments)||this;Y.itemStyle="link-item";Y.watchMetadataRefresh=!1;Y.skinnyMode=!1;Y.metaPanel=!1;Y.inStructuredDescription=!1;Y.detailedDescriptionOverride=!1;Y.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};Y.updateOnResizeDebouncer=null;return Y};
_.m(RL,_.Z);_.H=RL.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(Y){Y.trackingParams&&_.M4().graftServerVe(Y.trackingParams)};
_.H.handleUpdateMerchShelfAction=function(Y){var G=this,u=_.z(Y.updateMerchandiseShelfAction.merchandiseShelf,_.gY1);u&&(u.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){G.attachVEs(u);G.data=u},Number(u.renderDelayMs))):(this.attachVEs(u),this.data=u))};
_.H.updateOnResize=function(){if(this.JSC$17368_scrollContainer!==void 0&&this.JSC$17368_scrollContainer.clientWidth!==0&&this.items!==void 0){var Y=this.JSC$17368_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-Y));this.ytdHorizontalListBehavior.reposition_();var G;switch((G=this.data)==null?void 0:G.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var u,
O;((u=this.data)==null?void 0:(O=u.items)==null?void 0:O.length)===1?this.itemStyle="cta-item":this.itemStyle=Y>=740?"large-item":"small-item"}}};
_.H.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.By(this.updateOnResizeDebouncer,_.Ru.after(100),this.updateOnResize)};
RL.prototype.debouncedUpdateOnResize=RL.prototype.debouncedUpdateOnResize;RL.prototype.dataChanged=RL.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],RL.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.V8.YtdHorizontalListBehavior),_.V("design:type",Object)],RL.prototype,"ytdHorizontalListBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],RL.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],RL.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],RL.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],RL.prototype,"itemStyle",void 0);_.S([_.R({value:6}),_.V("design:type",Number)],RL.prototype,"initialCount",void 0);
_.S([_.R({value:"data.items"}),_.V("design:type",String)],RL.prototype,"itemsPath",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],RL.prototype,"watchMetadataRefresh",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],RL.prototype,"skinnyMode",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],RL.prototype,"metaPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],RL.prototype,"inStructuredDescription",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],RL.prototype,"detailedDescriptionOverride",void 0);_.S([_.Ox("#items"),_.V("design:type",HTMLDivElement)],RL.prototype,"items",void 0);_.S([_.Ox("#scroll-container"),_.V("design:type",HTMLDivElement)],RL.prototype,"JSC$17368_scrollContainer",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RL.prototype,"dataChanged",null);
_.S([_.Yo("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RL.prototype,"debouncedUpdateOnResize",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],RL);
_.d(RL,"ytd-merch-shelf-renderer",function(){if(sox!==void 0)return sox;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return sox=Y},{mode:2});var cB9;var we=function(){var Y=_.Z.apply(this,arguments)||this;Y.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 Y};
_.m(we,_.Z);_.H=we.prototype;
_.H.addBackstagePostAction=function(Y){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(Y=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",Y))&&(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:Y}):this.set("data.contents",[{backstagePostThreadRenderer:Y}]))};
_.H.addBackstageCommentAction=function(Y){var G=this.get("addBackstageCommentAction.parentId",Y);Y=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",Y);if(G&&Y){G=this.postIdToIndices(G);for(var u=0;u<G.length;u++){var O=G[u];if(O<0)break;O="data.contents."+O+".backstagePostThreadRenderer.comments";this.get(O)&&(this.get(O+".backstageCommentsRenderer.contents")&&this.push(O+".backstageCommentsRenderer.contents",{commentThreadRenderer:Y}),this.get(O+".backstageCommentsRenderer.teaserContents")?
this.push(O+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:Y}):this.set(O+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:Y}]))}}};
_.H.addBackstageReplyAction=function(Y){var G=this.get("addBackstageReplyAction.parentId",Y);Y=this.get("addBackstageReplyAction.renderer.commentRenderer",Y);G&&Y&&this.setCreatorReply(G,Y)};
_.H.banAuthorAction=function(Y){var G=this.get("banAuthorAction.commentId",Y);G&&(Y=this.get("banAuthorAction.parentCommentId",Y)||this.getParentPostId(G),this.removeFromStream(G,Y))};
_.H.hideReportedCommentAction=function(Y){var G=this.get("hideReportedCommentAction.commentId",Y);G&&((Y=this.get("hideReportedCommentAction.parentCommentId",Y))||(Y=this.getParentPostId(G)),this.removeFromStream(G,Y))};
_.H.replaceBackstageCommentAction=function(Y){var G=this.get("replaceBackstageCommentAction.commentId",Y),u=this.get("replaceBackstageCommentAction.parentId",Y);Y=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",Y);if(G&&u&&Y){u=this.postIdToIndices(u);for(var O=0;O<u.length;O++){var Q=u[O];if(Q<0)break;var M=this.commentIdToIndex(G,Q,!1);if(M>=0){var t=this.get("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+M+".commentThreadRenderer.replies.commentRepliesRenderer");
t&&(Y.replies={commentRepliesRenderer:t});this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",M,1,{commentThreadRenderer:Y})}M=this.commentIdToIndex(G,Q,!0);if(M>=0){if(t=this.get("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(M+".commentThreadRenderer.replies.commentRepliesRenderer")))Y.replies={commentRepliesRenderer:t};this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
M,1,{commentThreadRenderer:Y})}}}};
_.H.replaceBackstagePostAction=function(Y){var G=this.get("replaceBackstagePostAction.itemId",Y);if(G){G=this.postIdToIndices(G);for(var u=0;u<G.length;u++){var O=G[u];if(O<0)break;var Q=this.getPostRendererType(O),M=this.get("replaceBackstagePostAction.renderer."+Q,Y);if(!M&&Q!=="sharedPostRenderer")break;var t=!1;M||(t=!0,M=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",Y));if(!M)break;var K={};t?(_.XS(K,y7U,M),this.set("data.contents."+O+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
K)):(_.XS(K,new _.bu(Q),M),this.set("data.contents."+O+".backstagePostThreadRenderer.post",K))}}};
_.H.replaceBackstageReplyAction=function(Y){var G=this.get("replaceBackstageReplyAction.replyId",Y),u=this.get("replaceBackstageReplyAction.parentId",Y);Y=this.get("replaceBackstageReplyAction.renderer.commentRenderer",Y);G&&Y&&u&&this.setCreatorReply(u,Y)};
_.H.removeCommentAction=function(Y){var G=this.get("removeCommentAction.commentId",Y);if(G){var u=this.get("removeCommentAction.parentCommentId",Y);u&&this.get("removeCommentAction.isCreatorReply",Y)?this.setCreatorReply(u,void 0):(u||(u=this.getParentPostId(G)),this.removeFromStream(G,u))}};
_.H.setCreatorReply=function(Y,G){var u=this.getParentPostId(Y);if(u){u=this.postIdToIndices(u);for(var O=0;O<u.length;O++){var Q=u[O];if(Q<0)break;var M=this.commentIdToIndex(Y,Q,!1);if(M>=0){var t="data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+M;M=t+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";t+=".commentThreadRenderer.replies";G==void 0?(this.set(t,{}),this.set(M,!1)):(this.set(t,{commentRepliesRenderer:{teaserContents:[{commentRenderer:G}]}}),
this.set(t+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(M,!0))}M=this.commentIdToIndex(Y,Q,!0);M>=0&&(M="data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+M,Q=M+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",M+=".commentThreadRenderer.replies",G==void 0?(this.set(M,{}),this.set(Q,!1)):(this.set(M,{commentRepliesRenderer:{teaserContents:[{commentRenderer:G}]}}),this.set(Q,!0)))}}};
_.H.removeFromStream=function(Y,G){if(G){G=this.postIdToIndices(G);for(var u=0;u<G.length;u++){var O=G[u];if(O<0)break;var Q=this.commentIdToIndex(Y,O,!1);Q>=0&&this.splice("data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Q,1);Q=this.commentIdToIndex(Y,O,!0);Q>=0&&this.splice("data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",Q,1);O="data.contents."+O+".backstagePostThreadRenderer.post.backstagePostRenderer";
Q=O+".backstageAttachment.pollRenderer.votedCommentId";this.get(Q)===Y&&(this.set(Q,null),this.set(O+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(G=this.postIdToIndices(Y).reverse(),u=0;u<G.length;u++){O=G[u];if(O<0)break;Q=this.getPostRendererType(O);var M=this.get("backstagePostThreadRenderer.post."+Q,this.data.contents[O]);M.postId===Y?this.splice("data.contents",O,1):Q==="sharedPostRenderer"&&this.set("data.contents."+O+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);M.scheduledPublishTimeSec&&_.qZ(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.H.postIdToIndices=function(Y){for(var G=[],u=0;u<this.data.contents.length;u++){var O=this.getPostRendererType(u);this.get("backstagePostThreadRenderer.post."+O+".postId",this.data.contents[u])===Y&&G.push(u);if(O==="sharedPostRenderer"){var Q=this.get("backstagePostThreadRenderer.post."+O+".originalPost.backstagePostRenderer.postId",this.data.contents[u]);O=this.get("backstagePostThreadRenderer.post."+O+".originalPost.postRenderer.postId",this.data.contents[u]);Q!==Y&&O!==Y||G.push(u)}}return G};
_.H.commentIdToIndex=function(Y,G,u){if(G<0)return-1;var O,Q,M,t,K=_.z((O=this.data)==null?void 0:(Q=O.contents)==null?void 0:(M=Q[G])==null?void 0:(t=M.backstagePostThreadRenderer)==null?void 0:t.comments,fIT);return(G=u?K==null?void 0:K.teaserContents:K==null?void 0:K.contents)&&G.length?G.findIndex(function(L){return _.z(L,K3R).comment.commentRenderer.commentId===Y}):-1};
_.H.getParentPostId=function(Y){Y=Y.split(".");if(Y[1])return Y[0]};
_.H.getPostRendererType=function(Y){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[Y])?"sharedPostRenderer":"backstagePostRenderer"};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],we.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],we.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:_.F("enable_community_page_on_desktop")}),_.V("design:type",Boolean)],we.prototype,"useSmallerPostContainer",void 0);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-backstage-items"})],we);
_.d(we,"ytd-backstage-items",function(){if(cB9!==void 0)return cB9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return cB9=
Y},{mode:1});var U9y;var vVV={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},Zp=function(){var Y=_.Z.apply(this,arguments)||this;Y.disablePrescanVisibility=!0;Y.canScheduleJobs=!0;Y.engagementPanel=!1;Y.hidePanelButton=!1;Y.isWatchGrid=
!1;Y.hasShownSubscribersOnlyDisclaimer=!1;Y.hasShownSuperfanOnlyDisclaimer=!1;Y.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};Y.TEST_ONLY=void 0;return Y};
_.m(Zp,_.Z);_.H=Zp.prototype;_.H.created=function(){this.initCommentsCsi_();_.F("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.F("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.H.contentsChanged_=function(){var Y;(Y=this.data)!=null&&Y.contents&&this.tickForCommentsTimer_("cml")};
_.H.headerChanged_=function(){var Y;(Y=this.data)!=null&&Y.header&&this.tickForCommentsTimer_("cmhl")};
_.H.initCommentsCsi_=function(){_.Fh("wn_comments");var Y=_.FA();Y&&_.kN({clientScreenNonce:Y},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.H.createCommentAction_=function(Y){Y=_.gX.unsafeClone(Y);var G,u;if(Y=(G=_.z(Y,YqI))==null?void 0:(u=G.contents)==null?void 0:u.commentThreadRenderer){var O,Q,M,t,K,L;!this.isBackstage&&((O=this.data)==null?0:(Q=O.header)==null?0:(M=Q.commentsHeaderRenderer)==null?0:(t=M.createRenderer)==null?0:(K=t.commentSimpleboxRenderer)==null?0:(L=K.zeroStep)==null?0:L.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var g,
P,I;this.isBackstage&&_.z((g=this.data)==null?void 0:(P=g.header)==null?void 0:(I=P.commentsHeaderRenderer)==null?void 0:I.zeroStateMessage,etk)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(Y)}};
_.H.doReplyInsert_=function(Y,G,u,O){O?this.splice(Y,O,0,G):this.push(Y,G)};
_.H.getRepliesPath_=function(Y){return"data.contents."+Y+".commentThreadRenderer.replies"};
_.H.getRepliesContentsPath_=function(Y,G){Y=this.getRepliesPath_(Y);return G?Y+".commentRepliesRenderer.teaserContents":Y+".commentRepliesRenderer.contents"};
_.H.showSubscribersOnlyDisclaimer_=function(Y){(Y=Y.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(Y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(Y))&&(_.qZ(this.hostElement,"yt-open-popup-action",[Y,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.H.showSuperfanOnlyDisclaimer_=function(Y){(Y=Y.detail.command)&&!this.hasShownSuperfanOnlyDisclaimer&&(Y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(Y))&&(_.qZ(this.hostElement,"yt-open-popup-action",[Y,this]),this.hasShownSuperfanOnlyDisclaimer=!0)};
_.H.createCommentReplyAction_=function(Y){Y=_.gX.unsafeClone(Y);var G=_.z(Y,GlT);if(Y=G==null?void 0:G.contents){var u=this.commentIdToIndex_(G==null?void 0:G.parentCommentId);if(!(u<0)){var O=this.getRepliesPath_(u);if(this.get(O)){G=G.replyToCommentId;O=this.getRepliesContentsPath_(u,!1);if(this.get(O)){var Q=this.get(O).length,M=O+"."+(Q-1)+".continuationItemRenderer";this.get(M+".button")?(M=this.replyIdToIndex_(G,u,!1),this.doReplyInsert_(O,Y,M,Q-1)):this.get(M)||(Q=this.replyIdToIndex_(G,u,
!1),this.doReplyInsert_(O,Y,Q,null))}O=this.getRepliesContentsPath_(u,!0);this.get(O)?(u=this.replyIdToIndex_(G,u,!0),(!G||u>=0)&&this.doReplyInsert_(O,Y,u,null)):this.set(O,[Y])}else this.set(O,{commentRepliesRenderer:{teaserContents:[Y]}})}}};
_.H.hideReportedCommentAction_=function(Y){var G=_.z(Y,zcl);if(Y=G==null?void 0:G.commentId)(G=this.get("parentCommentId",G))||(G=this.getParentCommentId_(Y)),this.remove_(Y,G)};
_.H.getParentCommentId_=function(Y){Y=Y.split(".");if(Y[1])return Y[0]};
_.H.removeCommentAction_=function(Y){var G=_.z(Y,H3X);if(Y=G==null?void 0:G.commentId)G=(G==null?void 0:G.parentCommentId)||this.getParentCommentId_(Y),this.remove_(Y,G)};
_.H.pinCommentAction_=function(Y){Y=_.gX.unsafeClone(Y);var G=_.z(Y,MXE);G!=null&&G.commentId&&(Y=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",Y))&&(this.remove_(G.commentId),this.insert_(Y,!0))};
_.H.unpinCommentAction_=function(Y){Y=_.gX.unsafeClone(Y);Y=_.z(Y,Epl);if(Y!=null&&Y.commentId){var G,u,O=(G=Y.actionResult)==null?void 0:(u=G.update)==null?void 0:u.commentThreadRenderer;O&&(this.remove_(Y.commentId),this.insert_(O))}};
_.H.banAuthorAction_=function(Y){var G=_.z(Y,J7M);G!=null&&G.commentId&&(Y=G.commentId,G=G.parentCommentId||this.getParentCommentId_(Y),this.remove_(Y,G))};
_.H.handleScrollToCommentElement_=function(Y){this.hostElement.contains(Y)&&(this.nearestScrollParent||(this.nearestScrollParent=tFy(Y)),this.isCommentVisibleInScrollParent(Y)||Y.scrollIntoView({behavior:"smooth",block:"nearest"}))};
_.H.isCommentVisibleInScrollParent=function(Y){if(!this.nearestScrollParent)return!1;Y=Y.getBoundingClientRect();var G=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return Y.top>=G.top&&Y.bottom<=G.bottom};
_.H.commentIdToIndex_=function(Y){var G;return Y&&(G=this.data)!=null&&G.contents?this.data.contents.findIndex(function(u){u=u.commentThreadRenderer;var O;return Y===((u==null?void 0:u.commentViewModel)&&((O=_.z(u.commentViewModel,PDM))==null?void 0:O.commentId))}):-1};
_.H.insert_=function(Y,G){G=G===void 0?!1:G;var u,O;if((u=this.data)==null?0:(O=u.contents)==null?0:O.some(function(M){return!!M.commentThreadRenderer}))for(u=0,O=this.data.contents.length;u<O;u++){var Q=this.data.contents[u].commentThreadRenderer;
if(vVV[Y.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=vVV[Q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){G&&vVV[Y.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===vVV[Q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",u,1,{commentThreadRenderer:Y}):this.splice("data.contents",u,0,{commentThreadRenderer:Y});break}}else this.set("data.contents",[{commentThreadRenderer:Y}])};
_.H.doReplyRemove_=function(Y,G,u){Y=this.replyIdToIndex_(Y,G,u);Y<0||(G=this.getRepliesContentsPath_(G,u),this.splice(G,Y,1))};
_.H.remove_=function(Y,G){G=this.commentIdToIndex_(G);G<0?(G=this.commentIdToIndex_(Y),G<0||this.splice("data.contents",G,1)):_.F("web_delhi_comment_threads")||(this.doReplyRemove_(Y,G,!1),this.doReplyRemove_(Y,G,!0))};
_.H.replyIdToIndex_=function(Y,G,u){if(G<0)return-1;G=this.getRepliesContentsPath_(G,u);G=this.get(G);if(!G||!G.length)return-1;u=0;for(var O=G.length;u<O;u++){var Q=void 0,M=void 0;if(((Q=G[u])==null?void 0:(M=Q.commentViewModel)==null?void 0:M.commentId)===Y)return u}return-1};
_.H.tickForCommentsTimer_=function(Y){_.zb(Y,void 0,"wn_comments")};
_.H.reloadComments_=function(Y){Y=_.z(Y,gp4);_.z(Y==null?void 0:Y.command,_.rE)&&_.c$(this.hostElement,[Y==null?void 0:Y.command])};
_.Uk.Object.defineProperties(Zp.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return!!((Y=this.data)==null?0:(G=Y.header)==null?0:(u=G.commentsHeaderRenderer)==null?0:u.isBackstageContent)}}});
_.Uk.Object.defineProperties(Zp,{template:{configurable:!0,enumerable:!0,get:function(){if(U9y===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);U9y=Y}Y=U9y;return Y}}});
Zp.prototype.showSuperfanOnlyDisclaimer_=Zp.prototype.showSuperfanOnlyDisclaimer_;Zp.prototype.showSubscribersOnlyDisclaimer_=Zp.prototype.showSubscribersOnlyDisclaimer_;Zp.prototype.headerChanged_=Zp.prototype.headerChanged_;Zp.prototype.contentsChanged_=Zp.prototype.contentsChanged_;_.S([_.x(_.SZ),_.V("design:type",Object)],Zp.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",Function)],Zp.prototype,"ytPlayerListenerBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Zp.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Zp.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data.header.commentsHeaderRenderer.isBackstageContent"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Zp.prototype,"isBackstage",null);
_.S([_.R(),_.V("design:type",Object)],Zp.prototype,"disablePrescanVisibility",void 0);_.S([_.R(),_.V("design:type",Object)],Zp.prototype,"canScheduleJobs",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Zp.prototype,"engagementPanel",void 0);_.S([_.R(),_.V("design:type",Object)],Zp.prototype,"hidePanelButton",void 0);_.S([_.R(),_.V("design:type",Object)],Zp.prototype,"isWatchGrid",void 0);_.S([_.R(),_.V("design:type",Object)],Zp.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.S([_.R(),_.V("design:type",Object)],Zp.prototype,"hasShownSuperfanOnlyDisclaimer",void 0);_.S([_.GO("data.contents"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zp.prototype,"contentsChanged_",null);_.S([_.GO("data.header"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zp.prototype,"headerChanged_",null);
_.S([_.Yo("yt-show-subscribers-only-disclaimer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Zp.prototype,"showSubscribersOnlyDisclaimer_",null);_.S([_.Yo("yt-show-superfan-only-snackbar"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Zp.prototype,"showSuperfanOnlyDisclaimer_",null);_.S([_.pD({is:"ytd-comments"})],Zp);var Dp=function(){return _.Mb.apply(this,arguments)||this};
_.m(Dp,_.Mb);_.H=Dp.prototype;_.H.bindIf=function(Y,G,u){return Y?G:u};
_.H.bindIfDefined=function(Y,G){return Y!==void 0?Y:G};
_.H.booleanString=function(Y){return(!!Y).toString()};
_.H.equals=function(){for(var Y=_.vs.apply(0,arguments),G=Y[0],u=1;u<Y.length;u++)if(G!=Y[u])return!1;return!0};
_.H.isGreaterThan=function(Y,G){return Y>G};
_.H.isLessThan=function(Y,G){return Y<G};
_.H.logicalAND=function(){for(var Y=_.vs.apply(0,arguments),G=!!Y[0],u=1;u<Y.length;u++)G=G&&!!Y[u];return G};
_.H.logicalOR=function(){for(var Y=_.vs.apply(0,arguments),G=!!Y[0],u=1;u<Y.length;u++)G=G||!!Y[u];return G};
_.H.toBool=function(Y){return!!Y};
Dp.prototype.toBool=Dp.prototype.toBool;Dp.prototype.logicalOR=Dp.prototype.logicalOR;Dp.prototype.logicalAND=Dp.prototype.logicalAND;Dp.prototype.isLessThan=Dp.prototype.isLessThan;Dp.prototype.isGreaterThan=Dp.prototype.isGreaterThan;Dp.prototype.equals=Dp.prototype.equals;Dp.prototype.booleanString=Dp.prototype.booleanString;Dp.prototype.bindIfDefined=Dp.prototype.bindIfDefined;Dp.prototype.bindIf=Dp.prototype.bindIf;_.S([_.Hn()],Dp);_.JBx=[Dp.prototype];var YTS;var Gnw;var h3=function(){return _.Z.apply(this,arguments)||this};
_.m(h3,_.Z);h3.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
h3.prototype.onBackIconTap_=function(){window.history.back()};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],h3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],h3.prototype,"data",void 0);_.S([_.Ff({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],h3);
_.d(h3,"yt-header-with-back-renderer",function(){if(Gnw===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;YTS===void 0&&(YTS=document.createElement("template"));var O=YTS;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Gnw=Y}Y=Gnw;return Y},{mode:2});var uob;var O5x;var de=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.m(de,_.Z);_.H=de.prototype;_.H.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.H.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.isDarkTheme=Y,this.setUrl())};
_.H.dataChanged=function(){var Y=this;if(this.data){var G=this.setUrl();G&&_.YS({destination:window,iframe:this.iframe,origin:_.cXU(G.toString()),channelName:"yt-iframe",onMessage:function(u){(u=Y.getCommunicationCommand(u.data))&&Y.ytComponentBehavior.resolveCommand(u)},
onEstablished:function(){}})}};
_.H.setUrl=function(){if(this.data&&this.data.iframeUrl){var Y=_.ow(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(Y)return _.Er(this.iframe,Y),Y}};
_.H.getCommunicationCommand=function(Y){var G;if((G=this.data)!=null&&G.onCommunicationCommandsMap){G=this.data.onCommunicationCommandsMap.find(function(Q){return Q.key===Y});
if(G==null?0:G.value)return G==null?void 0:G.value;try{var u=R5I(_.JY(Y)),O=this.data.onCommunicationCommandsMap.find(function(Q){return Q.key===(u==null?void 0:u.getMethodName())});
if(O==null?0:O.value)return O==null?void 0:O.value}catch(Q){}}};
de.prototype.dataChanged=de.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],de.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],de.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],de.prototype,"actionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],de.prototype,"data",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],de.prototype,"isDarkTheme",void 0);_.S([_.Ox("#iframe"),_.V("design:type",HTMLIFrameElement)],de.prototype,"iframe",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],de.prototype,"dataChanged",null);_.S([_.Ff({is:"yt-iframe-renderer",disableElementRegistration:!0})],de);
_.d(de,"yt-iframe-renderer",function(){if(O5x===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;uob===void 0&&(uob=document.createElement("template"));var O=uob;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);O5x=Y}Y=O5x;return Y},{mode:2});_.bm=function(Y){_.Ey.call(this);this.callback=Y;this.bezier=new LVt(0,0,.4,0,.2,1,1,1);this.delay=new _.GN(this.next,window,this);this.JSC$17408_animating=!1;_.vF(this,this.delay)};
_.m(_.bm,_.Ey);_.bm.prototype.isAnimating=function(){return this.JSC$17408_animating};
_.bm.prototype.start=function(Y,G,u){this.config={from:Y,to:G,duration:u,startTime:(0,_.GC)()};this.JSC$17408_animating=!0;this.next()};
_.bm.prototype.stop=function(){this.delay.stop();this.JSC$17408_animating=!1;this.config=void 0};
_.bm.prototype.next=function(){if(this.config){var Y=this.config,G=Y.from,u=Y.to,O=Y.duration;Y=Y.startTime;var Q=(0,_.GC)()-Y;Y=this.bezier;O=lje(Y,Q/O);if(O==0)Y=Y.y0;else if(O==1)Y=Y.y3;else{Q=eL(Y.y0,Y.y1,O);var M=eL(Y.y1,Y.y2,O);Y=eL(Y.y2,Y.y3,O);Q=eL(Q,M,O);M=eL(M,Y,O);Y=eL(Q,M,O)}Y=_.yW(Y,0,1);this.callback(G+(u-G)*Y);Y<1?this.delay.start():this.JSC$17408_animating=!1}};_.S_=new _.Sb("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var Qhw={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},H5N=function(Y,G,u,O){_.Ey.call(this);this.JSC$17420_miniAppId=Y;this.localReleaseId=G;this.derivedDeviceInterface=u;this.isForeground=O;this.JSC$17420_playNonceResolver=new _.sG;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Jy("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Jy("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.F("enable_displaying_ppn");this.JSC$17420_miniAppClientDataProvider=_.sH().resolve(_.S_);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;Mpo(this);var Q=setTimeout(function(){_.R0(new _.I2("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17420_playNonceResolver.promise.then(function(){clearTimeout(Q)})};
_.m(H5N,_.Ey);var tpx=function(Y,G){Y.JSC$17420_playNonceResolver.resolve(G!=null?G:Ix(8));Y.enableDisplayingPpn&&EOg(Y).then(function(u){Y.JSC$17420_miniAppClientDataProvider.clientData.set("post_play_nonce",u)})},EOg=function(Y){return _.a(function(G){return G.nextAddress==1?G.yield(Y.JSC$17420_playNonceResolver.promise,2):G.return(G.yieldResult)})},Mpo=function(Y){var G,u;
_.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$17420_playNonceResolver.promise,2);G=O.yieldResult;u={miniAppInfo:{externalPostId:Y.JSC$17420_miniAppId,localReleaseId:Y.localReleaseId,postPlayNonce:G,derivedDeviceInterface:Y.derivedDeviceInterface}};_.kN(u);_.Sd(O)})},aqV=function(Y){Y.state!==0?_.R0(new _.I2("[MiniAppPlayLogger] recordPlayStart failed with state "+Qhw[Y.state])):(Y.state=1,Nf(Y,"ma_cl"),j_(Y,"PLAY_EVENT_TYPE_PLAY_START"),KgN(Y))},TTb=function(Y){Y.isForeground=!1;
j_(Y,"PLAY_EVENT_TYPE_PLAY_PAUSE")},Lgw=function(Y){Y.state!==1&&Y.state!==2?_.R0(new _.I2("[MiniAppPlayLogger] recordPlayEnd failed with state "+Qhw[Y.state])):(Y.state=3,window.clearInterval(Y.playPingTimerId),Y.playPingTimerId=NaN,Y24(),j_(Y,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},gOo=function(Y,G){Y.state===2&&Y.gameReady&&(Y.firstClickRecorded?Date.now()-Y.clickRecordedMs<Y.playClickIntervalMs||(Y.clickRecordedMs=Date.now(),j_(Y,"PLAY_EVENT_TYPE_PLAY_CLICK")):G&&(Nf(Y,"ma_fua"),j_(Y,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),Y.firstClickRecorded=!0,Y.clickRecordedMs=Date.now()))};
H5N.prototype.logError=function(Y){var G=this,u;_.a(function(O){if(O.nextAddress==1)return Y.metadata.externalPostId=G.JSC$17420_miniAppId,u=Y.metadata,O.yield(Promise.race([G.JSC$17420_playNonceResolver.promise,new Promise(function(Q){setTimeout(function(){Q("")},3E4)})]),2);
u.postPlayNonce=O.yieldResult;Y.metadata.localReleaseId=G.localReleaseId;Y.loggingError.level="WARNING";_.o0(Y.loggingError,Y.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:Y.metadata});_.Sd(O)})};
var Xs9=function(Y,G,u,O){var Q,M,t,K,L,g;_.a(function(P){if(P.nextAddress==1)return P.yield(Y.JSC$17420_playNonceResolver.promise,2);Q=P.yieldResult;M={externalPostId:Y.JSC$17420_miniAppId,localReleaseId:Y.localReleaseId,postPlayNonce:Q,sdkVersion:u,api:G};O!==void 0&&(M.networkRequestsMeasurement={networkRequests:_.Sh(O,1),cachedRequests:_.Sh(O,2),transferredBytes:_.Sh(O,3)},(t=O)==null?0:_.aG(t,RZ,6))&&(M.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((K=_.QH(O,
RZ,6))==null?void 0:Wa(K,1))||"0",cacheHits:((L=_.QH(O,RZ,6))==null?void 0:Wa(L,2))||"0",cachedBytes:((g=_.QH(O,RZ,6))==null?void 0:Wa(g,3))||"0"});_.eK("miniAppSdkUsage",M);_.Sd(P)})},Iq9=function(Y,G,u){var O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w;
_.a(function(B){if(B.nextAddress==1)return B.yield(Y.JSC$17420_playNonceResolver.promise,2);O=B.yieldResult;Q={externalPostId:Y.JSC$17420_miniAppId,localReleaseId:Y.localReleaseId,postPlayNonce:O,sdkVersion:u,measurementWindow:{startTimestampMs:String(FU(G,1)),endTimestampMs:String(FU(G,2))},frameRate:{averageFrameTimeDeltaMs:pc(G,3),averageFrameIdleTimeMs:pc(G,4)}};_.aG(G,wx,5)&&(Q.networkRequests={networkRequests:(M=NR(G))==null?void 0:_.Sh(M,1),cachedRequests:(t=NR(G))==null?void 0:_.Sh(t,2),transferredBytes:(K=
NR(G))==null?void 0:_.Sh(K,3),sameOriginStatusCodeToCounts:Psj((L=NR(G))==null?void 0:_.Bbt(L,4,void 0,Ywj,Ywj)),crossOriginStatusCodeToCounts:Psj((g=NR(G))==null?void 0:_.Bbt(g,5,void 0,Ywj,Ywj))},(P=NR(G))==null?0:_.aG(P,RZ,6))&&(Q.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((I=NR(G))==null?void 0:(k=_.QH(I,RZ,6))==null?void 0:Wa(k,1))||"0",cacheHits:((n=NR(G))==null?void 0:(p=_.QH(n,RZ,6))==null?void 0:Wa(p,2))||"0",cachedBytes:((W=NR(G))==null?void 0:(C=_.QH(W,RZ,6))==
null?void 0:Wa(C,3))||"0"});_.aG(G,pvM,7)&&(Q.gameCapture={averageFrameTimeDeltaMs:(e=_.QH(G,pvM,7))==null?void 0:pc(e,1),averageFrameIdleTimeMs:(w=_.QH(G,pvM,7))==null?void 0:pc(w,2)});_.eK("miniAppPerformanceMetrics",Q);_.Sd(B)})},knb=function(Y,G){var u,O;
return _.a(function(Q){if(Q.nextAddress==1)return Q.yield(Y.JSC$17420_playNonceResolver.promise,2);u=Q.yieldResult;O={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:Y.JSC$17420_miniAppId,postPlayNonce:u,miniAppReleaseId:Y.localReleaseId},derivedDeviceInterface:Y.derivedDeviceInterface,adTriggerType:G,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.eK("miniAppAdEvent",O);_.Sd(Q)})};
H5N.prototype.disposeInternal=function(){_.Ey.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var j_=function(Y,G,u,O){u=u===void 0?{}:u;O=O===void 0?!1:O;var Q,M,t,K;_.a(function(L){if(L.nextAddress==1)return Q=Y.isForeground,M=Y.beforeReady,L.yield(Y.JSC$17420_playNonceResolver.promise,2);t=L.yieldResult;K={externalPostId:Y.JSC$17420_miniAppId,localReleaseId:Y.localReleaseId,derivedDeviceInterface:Y.derivedDeviceInterface,postPlayNonce:t,type:G};u.sequenceGroup=t;K.playState=M?"PLAY_STATE_NOT_READY":Q?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.eK("miniAppPlayEvent",K,
u);O&&_.A1();_.Sd(L)})},Nf=function(Y,G){var u;
_.a(function(O){if(O.nextAddress==1)return u=(0,_.GC)(),O.yield(Y.JSC$17420_playNonceResolver.promise,2);_.pQ(G,u);_.Sd(O)})},KgN=function(Y){isNaN(Y.playPingTimerId)&&(Y.playPingTimerId=_.HK(function(){Y.state!==1&&Y.state!==2?_.R0(new _.I2("[MiniAppPlayLogger] reportPlayPing failed with state "+Qhw[Y.state])):j_(Y,"PLAY_EVENT_TYPE_PLAY_PING")},Y.playPingIntervalMs))},Psj=function(Y){return Array.from(Y.entries()).map(function(G){var u=_.E(G);
G=u.next().value;u=u.next().value;return{key:G,value:u}})};var nOj=function(){this.adResolvers=new Map},Fgx=function(Y,G){Y.showMiniAppAdCommand=G.showMiniAppAdCommand;
Y.isEmbeddedInWebview=G.isEmbeddedInWebview;Y.playLogger=G.playLogger},zaB=function(Y){return _.a(function(G){return G.return(psb(Y,1))})},mp9=function(Y){return _.a(function(G){return G.return(psb(Y,2))})},rzw=function(Y,G){return _.a(function(u){return G?u.return(psb(Y,3,G)):u.return(WgV(Y,3))})},psb=function(Y,G,u){var O,Q,M;
return _.a(function(t){if(t.nextAddress==1){if(!Y.showMiniAppAdCommand||!Y.isEmbeddedInWebview)return t.return(WgV(Y,G));O=crypto.randomUUID();Q=new _.sG;Y.adResolvers.set(O,Q);var K=new gu;K=_.MC(K,3,G);M=_.E_(K,5,u);yN(Y.showMiniAppAdCommand,HkX(M),O);return t.yield(Q.promise,2)}return t.return(t.yieldResult)})};
nOj.prototype.onAdFinished=function(Y,G){var u=this.adResolvers.get(G);u&&(this.adResolvers.delete(G),Y=UOU(Y),u.resolve(Y))};
var WgV=function(Y,G){var u;return _.a(function(O){if(O.nextAddress==1)O=O.yield((u=Y.playLogger)==null?void 0:knb(u,I2u(G)),2);else{var Q=O.return;var M=new cER;M=_.MC(M,1,2);O=Q.call(O,M)}return O})};var xpw=new _.Sb("INNERTUBE_MANAGER_TOKEN");var fqw=function(){this.callbacks={}};
fqw.prototype.initialize=function(Y){var G=this;this.callbacks=Y;window.youtubewebview?window.youtubewebview.onmessage=function(u){Cso(G,u)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(u){Cso(G,u)})};
var Cso=function(Y,G){if(G.data)try{var u=R5I(G.data);if(_.AB(_.Kc(u,1))!=null){var O=YLI(_.zy(u,2));switch(u.getMethodName()){case "yt-mini-app-load-audio-state":var Q,M;(M=(Q=Y.callbacks).onAudioStateLoaded)==null||M.call(Q,_.nc(O,k7(O,Lk,1)));break;case "yt-mute-mini-app":var t,K;(K=(t=Y.callbacks).onMuteMiniApp)==null||K.call(t);break;case "yt-unmute-mini-app":var L,g;(g=(L=Y.callbacks).onUnmuteMiniApp)==null||g.call(L);break;case "yt-playable-exit":var P,I;(I=(P=Y.callbacks).onExit)==null||I.call(P);
break;case "yt-post-play-nonce":var k,n;(n=(k=Y.callbacks).onPostPlayNonceReceived)==null||n.call(k,rQ(O,2,Lk));break;case "yt-confirm-exit-mini-app":var p,W;(W=(p=Y.callbacks).confirmExitMiniApp)==null||W.call(p);break;case "yt-confirm-exit-mini-app-edu":var C,e;(e=(C=Y.callbacks).confirmExitMiniAppEdu)==null||e.call(C);break;case "yt-benchmarking-response":var w,B;(B=(w=Y.callbacks).onNativeBenchmarkingMessageReceived)==null||B.call(w,rQ(O,2,Lk));break;case "yt-mini-app-load-3p-consent-state":var N,
h;(h=(N=Y.callbacks).multiplayer3pAckStateLoaded)==null||h.call(N,_.nc(O,k7(O,Lk,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var q,U;(U=(q=Y.callbacks).exitMiniAppSeenStateLoaded)==null||U.call(q,_.nc(O,k7(O,Lk,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Mj,Xt;(Xt=(Mj=Y.callbacks).onNavigateToNewMiniApp)==null||Xt.call(Mj);break;case "yt-game-data-available":var ka,aU;(aU=(ka=Y.callbacks).onGameDataAvailable)==null||aU.call(ka,rQ(O,2,Lk));break;case "yt-pause-mini-app":var Tg,
iy;(iy=(Tg=Y.callbacks).onPauseMiniApp)==null||iy.call(Tg);break;case "yt-resume-mini-app":var hY,dA;(dA=(hY=Y.callbacks).onResumeMiniApp)==null||dA.call(hY);break;case "yt-pause-playable-dialog":var nT,u_;(u_=(nT=Y.callbacks).onPausePlayableDialog)==null||u_.call(nT);break;case "yt-resume-playable-dialog":var jT,P1;(P1=(jT=Y.callbacks).onResumePlayableDialog)==null||P1.call(jT);break;case "yt-playable-ad-finished":var kk,Fe;(Fe=(kk=Y.callbacks).onAdFinished)==null||Fe.call(kk,rQ(O,2,Lk),_.zy(u,3))}}else _.R0(Error("Wh"))}catch(Xg){_.o0(Error("Xh"))}else _.R0(Error("Yh"))};var n_j=function(Y){this.rpcErrorCode=Y};var VD=function(Y,G,u){this.intervalMs=Y;this.apiFunc=G;this.type=u;this.schedulerReady=!0};
VD.prototype.call=function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1){if(G.type!==1&&Y===G.cachedValue)return O.return();G.pendingApiRequestResolver||(G.pendingApiRequestResolver=new _.sG);u=G.pendingApiRequestResolver.promise;G.cachedValue=Y;return O.yield(yzx(G),2)}return O.return(u)})};
VD.prototype.flush=function(Y){Y=Y===void 0?!1:Y;var G=this;return _.a(function(u){return G.cachedValue===void 0?u.return():u.yield(G.apiFunc(G.cachedValue,Y),0)})};
var yzx=function(Y){var G,u,O;return _.a(function(Q){switch(Q.nextAddress){case 1:if(!Y.schedulerReady||!Y.pendingApiRequestResolver)return Q.return();Y.schedulerReady=!1;G=Y.pendingApiRequestResolver;Y.pendingApiRequestResolver=void 0;_.i3(Q,2);if(Y.cachedValue===void 0){Q.jumpTo(4);break}return Q.yield(Y.apiFunc(Y.cachedValue),5);case 5:u=Q.yieldResult,G.resolve(u);case 4:_.j1(Q,3);break;case 2:O=_.b3(Q),G.reject(O);case 3:setTimeout(function(){return _.a(function(M){Y.schedulerReady=!0;return M.yield(yzx(Y),
0)})},Y.intervalMs),_.Sd(Q)}})};var z11=window.location.origin+"/miniapp_cloudsaves",FIt=[400,401],eaS=_.Jy("cloud_save_game_data_rate_limit_ms",3E3),oON=function(Y){var G=this;this.JSC$17466_miniAppId=Y;this.loadAttempts=0;this.cloudSaveIntervalMs=eaS;this.initialDownloadDataSucceeded=!1;this.JSC$17466_playNonceResolver=new _.sG;this.scottyUploadRateLimiter=new VD(this.cloudSaveIntervalMs,function(u,O){return G.uploadData(u,O)},2);
this.downloadDataPromise=Azy(this);this.downloadDataPromise.then(function(){G.initialDownloadDataSucceeded=!0}).catch(function(){})},i5g=function(Y,G){G.then(function(u){return Y.JSC$17466_playNonceResolver.resolve(u)})},Ray=function(Y){return _.a(function(G){return Y.cachedData===void 0?G.return(Y.downloadDataPromise):G.return(Y.cachedData)})},wsB=function(Y,G){return _.a(function(u){Y.cachedData=G;
if(!Y.initialDownloadDataSucceeded)throw Error("Zh");return u.yield(Y.scottyUploadRateLimiter.call(G),0)})},Z5o=function(){return new Promise(function(Y){setTimeout(Y,1E3,"")})},Dpx=function(Y,G){var u,O;
return _.a(function(Q){if(Q.nextAddress==1)return u=Y.JSC$17466_miniAppId,Q.yield(Promise.race([Y.JSC$17466_playNonceResolver.promise,Z5o()]),2);O={"X-YouTube-MiniAppId":u,"X-YouTube-PostPlayNonce":Q.yieldResult};"DELEGATED_SESSION_ID"in _.wc&&jKt(G,O);return Q.return(O)})};
oON.prototype.uploadData=function(Y,G){G=G===void 0?!1:G;var u=this;return _.a(function(O){return k8j()?_.F("enable_cloud_save_error_popup_after_retry")?O.return(new Promise(function(Q,M){var t,K,L,g,P;return _.a(function(I){switch(I.nextAddress){case 1:t=0,K=!0,g=L=null;case 2:if(!(K&&t++<2)){I.jumpTo(4);break}_.i3(I,5);return I.yield(haw(u,Y,G),7);case 7:L=I.yieldResult;K=L.ok?!1:!FIt.includes(L.status);_.j1(I,2);break;case 5:g=P=_.b3(I);K=pBy(g);I.jumpTo(2);break;case 4:L?L.ok?(lm(u,eaS),Q()):
(lm(u,u.cloudSaveIntervalMs*2),M(Error("$h`"+String(L.status),{cause:{rpcErrorCode:L.status}}))):(lm(u,u.cloudSaveIntervalMs*2),M(g||Error("ai"))),_.Sd(I)}})})):O.return(new Promise(function(Q,M){var t,K;
return _.a(function(L){if(L.nextAddress==1){if(u.JSC$17466_miniAppId==="")return M(Error("bi")),L.return();_.i3(L,2);return L.yield(haw(u,Y,G),4)}if(L.nextAddress!=2)return t=L.yieldResult,t.ok?(lm(u,eaS),Q()):(lm(u,u.cloudSaveIntervalMs*2),M(Error("$h`"+String(t.status),{cause:{rpcErrorCode:t.status}}))),_.j1(L,0);K=_.b3(L);lm(u,u.cloudSaveIntervalMs*2);M(K);_.Sd(L)})})):O.return()})};
var haw=function(Y,G,u){u=u===void 0?!1:u;var O,Q,M;return _.a(function(t){if(t.nextAddress==1)return O=_.vu((new TextEncoder).encode(G)),Q=mGu(),t.yield(Dpx(Y,Q),2);M=t.yieldResult;return t.return(fetch(Q,{method:"POST",body:new Blob([O]),headers:M,keepalive:u}))})},Azy=function(Y){var G,u;
return _.a(function(O){if(O.nextAddress==1){if(!k8j())return O.return("");if(Y.JSC$17466_miniAppId==="")throw Error("bi");if(Y.loadAttempts>2)return O.return(Y.downloadDataPromise);_.i3(O,2);return O.yield(dp9(Y),4)}if(O.nextAddress!=2)return G=O.yieldResult,O.return(G);u=_.b3(O);if(pBy(u)&&++Y.loadAttempts<2)return O.return(Azy(Y));throw u;})},dp9=function(Y){var G,u,O,Q,M;
return _.a(function(t){switch(t.nextAddress){case 1:return _.i3(t,2),G=mGu(),t.yield(Dpx(Y,G),4);case 4:return u=t.yieldResult,t.yield(fetch(G,{method:"GET",headers:u}),5);case 5:return O=t.yieldResult,O.ok?t.yield(O.text(),6):t.return(Promise.reject(Error("ci`"+String(O.status),{cause:new n_j(O.status)})));case 6:return Q=t.yieldResult,t.return((new TextDecoder).decode(_.JY(Q)));case 2:return M=_.b3(t),t.return(Promise.reject(M))}})},lm=function(Y,G){Y.cloudSaveIntervalMs=G;
Y.scottyUploadRateLimiter.intervalMs=Y.cloudSaveIntervalMs};
oON.prototype.flush=function(){var Y=this;return _.a(function(G){return Y.initialDownloadDataSucceeded?G.yield(Y.scottyUploadRateLimiter.flush(!0),0):G.return()})};var b5x=bh(dx(1),Dh(1)),Be=bh(dx(1),Dh(3)),$$=function(Y){this.callbacks=Y};
_.H=$$.prototype;_.H.onAudioToggled=function(Y,G){(G===void 0||G)&&_.TA("yt-mini-app-is-audio-enabled",Y,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 WIA=function(Y,G,u){this.callbacks=Y;var O=this;this.sdkVersion=new _.sG;this.channel=new J0X(_.YS({destination:window,iframe:G,origin:(new URL(u.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var Q=qf;var M=dx(5);var t=new Ha_;t=_.Cc(t,1,1E4);M=_.wT(M,4,Xvl,t);Q(O,M);O.onAudioToggled(O.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){O.sdkVersion.resolve("")},1E4)};
_.m(WIA,$$);_.H=WIA.prototype;_.H.onAudioToggled=function(Y,G){$$.prototype.onAudioToggled.call(this,Y,G===void 0?!0:G);G=qf;var u=dx(2),O=new QPE;Y=_.BF(O,1,Y);Y=_.wT(u,3,Xvl,Y);G(this,Y)};
_.H.onPause=function(){$$.prototype.onPause.call(this);qf(this,dx(3))};
_.H.onResume=function(){$$.prototype.onResume.call(this);qf(this,dx(4))};
_.H.returnNativeBenchmarkingMessage=function(Y){var G=qf,u=dx(6);var O=Dh(_.aG(Y,VV,1)?1:2);Y=_.aG(Y,VV,1)?Y:null;O=_.wT(O,5,hK,Y);G(this,bh(u,O))};
_.H.sendGameData=function(Y){var G=qf,u=dx(7);Y=_.wT(u,5,Xvl,Y);G(this,Y)};
_.H.sendStartGameFrameCapture=function(){qf(this,dx(9))};
var sB=function(Y,G,u){var O,Q,M;return _.a(function(t){if(t.nextAddress==1)return O=Y.callbacks,Q=O.onSdkCalled,M=G,t.yield(Y.sdkVersion.promise,2);Q.call(O,M,t.yieldResult,u);_.Sd(t)})};
WIA.prototype.onMessage=function(){var Y=this;return uQe(jt,function(G){var u,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N,h,q,U,Mj,Xt,ka,aU,Tg,iy,hY,dA,nT,u_,jT,P1,kk,Fe,Xg,Hb,n1,Yk,qj,Gx,fT,b_,MK,v1,Ew,l_,$V,T2,Pb;return _.a(function(IX){switch(IX.nextAddress){case 1:if(!rtR(G.data))return _.R0(Error("di")),IX.return();u=_.mK(G.data,1);_.F("enable_iframe_message_get_type_via_fields")&&(O=G.data,u=Q=_.mK(O,1));switch(u){case 8:if(G.data.hasMetadata()){var $k=Y.sdkVersion,NM=$k.resolve;var fx=G.data.getMetadata();
fx=_.zy(fx,1);NM.call($k,fx);clearTimeout(Y.sdkVersionTimeoutId)}break;case 6:return IX.jumpTo(2);case 16:if(!_.Ty(G.data,kMl,14,V5))return IX.return();M=_.fc(G.data,kMl,14,V5);(K=(t=Y.callbacks).onGameFrameReceived)==null||K.call(t,M);return IX.return();case 17:if(!_.Ty(G.data,IJR,15,V5))return IX.return();(g=(L=Y.callbacks).onGameAudioReceived)==null||g.call(L,_.fc(G.data,IJR,15,V5));return IX.return();case 1:if($k=_.fc(G.data,KjM,2,V5))switch(_.mK($k,1)){case 1:Y.callbacks.onFirstFrameReady();
if(_.F("enable_network_request_logging_on_game_events")&&_.aG($k,wx,4)){sB(Y,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.QH($k,wx,4));break}sB(Y,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(fx=(NM=Y.callbacks).onGameReady)==null||fx.call(NM);if(_.F("enable_network_request_logging_on_game_events")&&_.aG($k,wx,4)){sB(Y,"MINI_APP_SDK_API_GAME_READY",_.QH($k,wx,4));break}sB(Y,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Ty($k,Zh,3,aJ4))Y.callbacks.onResourceLoaded(_.fc($k,Zh,3,aJ4))}return IX.return();
case 3:return IX.jumpTo(3);case 4:return IX.jumpTo(4);case 2:return IX.jumpTo(5);case 9:return IX.jumpTo(6);case 10:return Y.callbacks.onClick(),IX.return();case 5:return IX.jumpTo(7);case 11:if(!_.Ty(G.data,oZ,9,V5))return IX.return();P=_.fc(G.data,oZ,9,V5);(k=(I=Y.callbacks).onBenchmarkingMessageReceived)==null||k.call(I,P);$k=G.reply;NM=dx(1);fx=Dh(1);var H8=new oZ;var jR=new Uint8Array(IqI(P,k7(P,JE2,6))|0);H8=T5(H8,5,JE2,_.RX(jR,!1));fx=_.wT(fx,5,hK,H8);$k.call(G,bh(NM,fx));return IX.return();
case 12:return IX.jumpTo(8);case 13:return IX.jumpTo(9);case 15:return IX.jumpTo(10);case 14:return IX.jumpTo(11);case 18:return IX.jumpTo(12);default:return IX.return()}IX.jumpTo(0);break;case 2:if(!_.Ty(G.data,St,5,V5))return IX.return();NM=G.data;$k=k7(NM,V5,5);NM=NM.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;n=cBj(NM,NM[_.KT]|0,St,$k)||St[UMI]||(St[UMI]=vkI(St));$k=_.dX(n,ih,1,_.bd());p=_.E($k);W=p.next();case 14:if(W.done){IX.jumpTo(16);break}C=W.value;e=new _.I2;e.level=_.mK(C,2)===
1?"WARNING":"ERROR";w=xGj(C.getSource());return IX.yield(Y.sdkVersion.promise,17);case 17:B={source:w,sdkVersion:IX.yieldResult};_.ao(_.Kc(C,6))!=null?(e.message=C.getMessage(),e.stack=_.zy(C,5),B.sdkErrorType=f2j(_.mK(C,6)),_.ao(_.Kc(C,7))!=null&&(B.sdkApi=Cb1(_.mK(C,7)))):e.stack=void 0;h=N=void 0;(h=(N=Y.callbacks).onError)==null||h.call(N,{loggingError:e,metadata:B});W=p.next();IX.jumpTo(14);break;case 16:return IX.return();case 3:return _.i3(IX,18),$k=IX.yield,NM=Y.callbacks,fx=NM.onSave,H8=
_.fc(G.data,MbR,4,V5),H8=_.zy(H8,1),$k.call(IX,fx.call(NM,H8),20);case 20:G.reply(b5x);_.j1(IX,19);break;case 18:return q=_.b3(IX),U=e8,Mj=q,Xt=Y.callbacks,ka="MINI_APP_SDK_API_SAVE_DATA",IX.yield(Y.sdkVersion.promise,21);case 21:U(Mj,Xt,ka,IX.yieldResult),G.reply(Be);case 19:return IX.yield(sB(Y,"MINI_APP_SDK_API_SAVE_DATA"),22);case 22:return IX.return();case 4:return _.i3(IX,23),IX.yield(Y.callbacks.onLoad(),25);case 25:aU=IX.yieldResult;$k=G.reply;NM=dx(1);fx=Dh(1);H8=new MbR;H8=_.E_(H8,1,aU);
fx=_.wT(fx,3,hK,H8);$k.call(G,bh(NM,fx));_.j1(IX,24);break;case 23:return Tg=_.b3(IX),iy=e8,hY=Tg,dA=Y.callbacks,nT="MINI_APP_SDK_API_LOAD_DATA",IX.yield(Y.sdkVersion.promise,26);case 26:iy(hY,dA,nT,IX.yieldResult),G.reply(Be);case 24:return IX.yield(sB(Y,"MINI_APP_SDK_API_LOAD_DATA"),27);case 27:return IX.return();case 5:_.i3(IX,28);Y.callbacks.onSendHighScore(xH(_.fc(G.data,m$E,3,V5).getValue()));G.reply(bh(dx(1),Dh(1)));_.j1(IX,29);break;case 28:return u_=_.b3(IX),jT=e8,P1=u_,kk=Y.callbacks,Fe=
"MINI_APP_SDK_API_SEND_SCORE",IX.yield(Y.sdkVersion.promise,30);case 30:jT(P1,kk,Fe,IX.yieldResult),G.reply(Be);case 29:return IX.yield(sB(Y,"MINI_APP_SDK_API_SEND_SCORE"),31);case 31:return IX.return();case 6:if(!_.Ty(G.data,Wj1,8,V5)){IX.jumpTo(32);break}$k=IX.yield;NM=_.fc(G.data,Wj1,8,V5);NM=_.mK(NM,1);return $k.call(IX,sB(Y,Cb1(NM)),32);case 32:return IX.return();case 7:return $k=G.reply,NM=dx(1),fx=Dh(1),H8=Y.callbacks.getLanguage(),fx=T5(fx,4,hK,eS(H8)),$k.call(G,bh(NM,fx)),IX.yield(sB(Y,"MINI_APP_SDK_API_GET_LANGUAGE"),
34);case 34:return IX.return();case 8:if(!_.Ty(G.data,zWV,10,V5))return IX.return();Xg=_.fc(G.data,zWV,10,V5);Hb=Y.callbacks;n1=Hb.onSdkPerformanceUpdate;return IX.yield(Y.sdkVersion.promise,35);case 35:return n1.call(Hb,Xg,IX.yieldResult),IX.return();case 9:$k=G.data;NM=k7($k,V5,11);if(_.AB(_.Kc($k,NM))==null)return G.reply(bh(dx(1),Dh(2))),IX.return();Yk=rQ(G.data,11,V5);Y.callbacks.onShareInviteCode(Yk);G.reply(b5x);return IX.yield(sB(Y,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),36);case 36:return IX.return();
case 10:if(!_.F("enable_open_yt_content"))return G.reply(Be),IX.return();if(!_.Ty(G.data,PuX,12,V5))return G.reply(bh(dx(1),Dh(2))),IX.return();$k=_.fc(G.data,PuX,12,V5);qj=_.zy($k,1);Y.callbacks.onOpenYTContent(qj);G.reply(b5x);return IX.yield(sB(Y,"MINI_APP_SDK_API_OPEN_CONTENT"),37);case 37:return IX.return();case 11:if(_.Ty(G.data,OaT,13,V5)){IX.jumpTo(38);break}return IX.yield(Y.callbacks.onShowMiniAppAd(2),39);case 39:return Gx=IX.yieldResult,G.reply(bh(dx(1),LjR(Gx))),IX.yield(sB(Y,"MINI_APP_SDK_API_REQUEST_AD"),
40);case 40:return IX.return();case 38:$k=_.fc(G.data,OaT,13,V5);a:switch(_.mK($k,1)){case 1:$k={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:$k={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:$k={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}fT=$k;b_=fT.adType;MK=fT.sdkApi;$k=IX.yield;NM=Y.callbacks;fx=NM.onShowMiniAppAd;H8=_.fc(G.data,OaT,13,V5);H8=_.zy(H8,2);return $k.call(IX,fx.call(NM,b_,H8||void 0),41);case 41:return v1=IX.yieldResult,
G.reply(bh(dx(1),LjR(v1))),IX.yield(sB(Y,MK),42);case 42:return IX.return();case 12:_.i3(IX,43);$k=Y.callbacks;NM=$k.onMakeIapPurchase;fx=_.fc(G.data,nDI,16,V5);fx=_.zy(fx,1);NM.call($k,fx);G.reply(bh(dx(1),Dh(1)));_.j1(IX,44);break;case 43:return Ew=_.b3(IX),l_=e8,$V=Ew,T2=Y.callbacks,Pb="MINI_APP_SDK_API_MAKE_IAP_PURCHASE",IX.yield(Y.sdkVersion.promise,45);case 45:l_($V,T2,Pb,IX.yieldResult),G.reply(Be);case 44:return IX.yield(sB(Y,"MINI_APP_SDK_API_MAKE_IAP_PURCHASE"),46);case 46:return IX.return()}})})};
var qf=function(Y,G){_.a(function(u){Y.channel.send(G);_.Sd(u)})},AL=function(Y,G,u){this.callbacks=Y;
var O=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;Y=P3t(G,(new URL(u.toString())).origin);this.gameSnacks=new P74(Y);this.gameSnacks.page.onReady(function(){O.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){O.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var Q,M;(M=(Q=O.callbacks).onGameReady)==null||M.call(Q)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(Q,M){try{O.callbacks.onSendHighScore(M)}catch(t){e8(t,O.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(Q,M){var t;return _.a(function(K){if(K.nextAddress==1)return _.i3(K,2),K.yield(O.callbacks.onSave(O.decoder.decode(M)),4);if(K.nextAddress!=2)return _.j1(K,0);t=_.b3(K);e8(t,O.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return K.return()})});
this.gameSnacks.storage.onLoad(function(){var Q,M;return _.a(function(t){if(t.nextAddress==1)return _.i3(t,2),t.yield(O.callbacks.onLoad(),4);if(t.nextAddress!=2)return Q=t.yieldResult,t.return(O.encoder.encode(Q));M=_.b3(t);e8(M,O.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return t.return(O.encoder.encode(""))})});
this.gameSnacks.init()};
_.m(AL,$$);AL.prototype.onAudioToggled=function(Y,G){$$.prototype.onAudioToggled.call(this,Y,G===void 0?!0:G);var u;(u=this.gameSnacks)==null||u.audio.update(Y)};
AL.prototype.onPause=function(){$$.prototype.onPause.call(this);var Y;(Y=this.gameSnacks)==null||Y.game.pause()};
AL.prototype.onResume=function(){$$.prototype.onResume.call(this);var Y;(Y=this.gameSnacks)==null||Y.game.resume()};var STb=y8I,NTx=_.D(function(Y){var G=Y.data;var u=Y.loadingProgress;var O=Y.forPaused;Y=_.E(_.IE("",void 0,"LYYTdd"));var Q=Y.next().value,M=Y.next().value;Y=_.E(_.IE(!1,void 0,"K0waae"));var t=Y.next().value,K=Y.next().value,L=[],g=function(){return"transform: scaleX("+(_.hT(u)||0)+")"},P=null,I=function(){return G()&&P!==null&&P!==void 0?P:P=G().showAnniversaryAnimation?6:STb()};
_.RE(function(){var W;if(G().timeOutMessages&&((W=G().timeOutMessages)==null?0:W.length)){P=null;W=_.E(L);for(var C=W.next();!C.done;C=W.next())clearTimeout(C.value);L.length=0;e1U(G().timeOutMessages,L,M,K)}},"BNu9j");
var k=function(){return!!G().persistentErrorMessageTitle},n=function(){return u!==void 0},p=function(){return G().title};
return _.T("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.T("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.T("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.T("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var W,C=(W=G().backgroundImage)==null?void 0:W.sources,e;return(C==null?0:C.length)?"background-image: url("+((e=C[0])==null?void 0:e.url)+")":""}}),_.T("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.T(_.X,{cond:function(){return!k()&&!(O==null?0:O())},
then:function(){var W={};return _.T("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.T("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.T(_.JC,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+I()},
data:function(){var C="loading_animation_"+I();return{animationConfig:{name:C,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+C+".json",loop:!0,autoplay:!0}}}})),_.T("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.T(_.X,{cond:p,
then:function(){return _.T("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},p)}}),_.T("p",{class:_.s3("miniAppSplashScreenViewModelTimeoutMessage",(W.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return t()},W)),
"aria-live":"polite"},Q),_.T(_.X,{cond:n,then:function(){return _.T("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.T("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:g}))}})))}}),_.T(_.X,{cond:k,
then:function(){return _.T("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.T("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return G().persistentErrorMessageTitle}),_.T(_.X,{cond:function(){return!!G().persistentErrorMessageDescription},
then:function(){return _.T("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return G().persistentErrorMessageDescription})}}))}}),_.T(_.X,{cond:O,
then:function(){return _.T("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.T("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.T("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},p))}})))},"$f");var jhj=new _.Sb("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var Vpo=cw;cw=function(Y){function G(u){if(u){var O,Q;(O=u.__spec)==null||(Q=O.didUnmount)==null||Q.call(O);for(O=0;O<u.childNodes.length;O++)G(u.childNodes[O])}}
Vpo==null||Vpo(Y);gH(function(){for(var u=0;u<Y.length;u++)G(Y[u])})};var lqx=_.D(function(Y){var G=Y.data;var u=Y.score;var O=Y.formattedScore;var Q=Y.onScoreChanged;var M=Y.isEmbeddedInWebview;var t=_.yg("yt-mini-app-score-button-view-model"),K=function(){var n;return _.z(G==null?void 0:(n=G())==null?void 0:n.buttonViewModel,_.Ck)},L=function(){var n;
return(u==null?void 0:u())||Number(G==null?void 0:(n=G())==null?void 0:n.lastScore)||0},g=function(){var n;
return(O==null?void 0:O())||((n=K())==null?void 0:n.title)||""},P,I=1;
if(Y=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))Y=Number(Y),I=isNaN(Y)?1:Y/100;_.RE(function(){Q==null||Q(L());var n;var p=_.FS((n=K())==null?void 0:n.onTap);if(p){n=_.z(p,BWI);var W,C,e;n=_.z(n==null?void 0:(W=n.panelLoadingStrategy)==null?void 0:(C=W.inlineContent)==null?void 0:(e=C.dialogViewModel)==null?void 0:e.customContent,Ew2)}else n=void 0;if(W=n)W.score=g()},"Aekez");
Y=_.U3(function(){var n,p,W=G==null?void 0:(n=G())==null?void 0:(p=n.loggingDirectives)==null?void 0:p.trackingParams;W&&_.YR(_.sH().resolve(_.KZ),W);return!1});
_.ii(function(){if(t.value){var n=t.value.querySelector("button"),p=K();n&&p&&o_t(n,p);_.sV("yt-share-playable-with-high-score",function(){var W=L().toString(),C=G==null?void 0:G().onShareHighScoreCommand,e=G==null?void 0:G().highScoreShareClientParamIdentifier,w=M==null?void 0:M();C&&(w?(e=new i8R,W=_.E_(e,2,W),yN(C,W.JSC$12858_serializeBinary())):e&&(_.sH().resolve(jhj).clientParams.set(e,{miniAppClientParams:{highScore:W}}),TPT(C,!1)))})}});
var k=function(){var n=K();n&&(u==null?0:u())&&n.accessibilityText&&(n.accessibilityText=n.accessibilityText.replace(P,g()));P=g();return{numberValue:L(),numberText:g(),heightPx:36,fontSizeMultiplier:I,shouldAnimate:!(u==null||!u())&&!0}};
return _.T("yt-mini-app-score-button-view-model",{class:function(){var n={};return _.PE("miniAppScoreButtonViewModelHost",(n.miniAppScoreButtonViewModelIsVisible=L()!==0,n))},
el:t,"on:click":Y},faY(!1,function(){return _.T("span",{style:"display:none;"},L)}),_.T(_.HE,{data:function(){var n;
return G==null?void 0:(n=G())==null?void 0:n.buttonViewModel}},{buttonViewModel:function(n){return _.T(_.$Y,{data:n.data,
animatedTextProps:k})}}))},"bg");var czN=_.D(function(Y){var G,u=(G=_.LB("yt-mini-app-is-theater-mode-enabled"))!=null?G:!1,O=_.F("enable_playable_container_save_button"),Q=_.F("enable_play_next_destination_page_in_toolbar");G={};return _.T("ytm-mini-app-top-bar-view-model",null,_.T("div",{class:_.s3("yt-mini-app-top-bar-view-model",(G["yt-mini-app-top-bar-view-model--mobile"]=!1,G["yt-mini-app-top-bar-view-model--desktop"]=!0,G))},_.T("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.T(_.X,{cond:function(){var M;return!!Y.data().backButtonEdu&&
!((M=Y.isExitMiniAppSeen)==null?0:M.call(Y))},
then:function(){return _.T(_.HE,{data:function(){return Y.data().backButtonEdu}},{buttonViewModel:_.$Y})},
else:function(){return _.T(_.HE,{data:function(){return Y.data().backButton}},{buttonViewModel:_.$Y})}}),_.T(_.X,{cond:function(){return Y.data().viewAllButton&&!0},
then:function(){return _.T(_.HE,{data:function(){return Y.data().viewAllButton}},{buttonViewModel:_.$Y})}}),_.T(_.X,{cond:function(){return Y.data().title&&!0},
then:function(){return _.T("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return Y.data().title})}})),_.T("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.T(_.X,{cond:function(){var M;
return(M=Y.isDesktopPlayPage)==null?void 0:M.call(Y)},
then:function(){return _.T(_.GY,null,_.T(BTx,{highScoreButton:function(){return Y.data().highScoreButton},
score:Y.score,formattedScore:Y.formattedScore,onScoreChanged:Y.onScoreChanged,isEmbeddedInWebview:Y.isEmbeddedInWebview}),_.T($pN,{enableSaveButton:function(){return _.hT(O)},
saveButton:function(){return Y.data().saveButton},
isSaved:Y.isSaved,onSaveToggled:function(){return Y.onSaveToggled}}),_.T(qTy,{menuButton:function(){return Y.data().menuButton}}))},
else:function(){return _.T(_.X,{cond:function(){return!1},
then:function(){return _.T(_.HE,{data:function(){return Y.data().playPageButton}},{buttonViewModel:function(M){return _.T(_.$Y,{data:M.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.T(BTx,{highScoreButton:function(){return Y.data().highScoreButton},
score:Y.score,formattedScore:Y.formattedScore,onScoreChanged:Y.onScoreChanged,isEmbeddedInWebview:Y.isEmbeddedInWebview})}})}})),_.T("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.T(_.HE,{data:function(){return Y.data().muteButton}},{toggleButtonViewModel:function(M){var t=M.data;
return _.T(_.Tr,{data:function(){var K,L;return Object.assign({},t(),{isToggled:(L=(K=Y.isAudioEnabled)==null?void 0:K.call(Y))!=null?L:!0})},
onToggle:Y.onAudioToggled,useOutlinedIcon:!0})}}),_.T(_.HE,{data:function(){return Y.data().theatreModeButton}},{toggleButtonViewModel:function(M){var t=M.data;
return _.T("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.T(_.Tr,{data:function(){return Object.assign({},t(),{isToggled:u})},
useOutlinedIcon:!0}))}}),_.T(shb,{fullscreenButton:function(){return Y.data().fullscreenButton}}),_.T(_.X,{cond:function(){return _.hT(Q)&&Y.data().viewAllButton&&!1},
then:function(){return _.T(_.HE,{data:function(){return Y.data().viewAllButton}},{buttonViewModel:_.$Y})}}),_.T(_.X,{cond:function(){var M;
return!((M=Y.isDesktopPlayPage)==null?0:M.call(Y))},
then:function(){return _.T(_.GY,null,_.T($pN,{enableSaveButton:function(){return _.hT(O)},
saveButton:function(){return Y.data().saveButton},
isSaved:Y.isSaved,onSaveToggled:function(){return Y.onSaveToggled}}),_.T(qTy,{menuButton:function(){return Y.data().menuButton}}))}}))))},"cg");
czN.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var qTy=_.D(function(Y){return _.T(_.HE,{data:Y.menuButton},{buttonViewModel:_.$Y})},"dg"),$pN=_.D(function(Y){var G=Y.enableSaveButton;
var u=Y.saveButton;var O=Y.isSaved;var Q=Y.onSaveToggled;return _.T(_.X,{cond:function(){return G()&&!(u==null||!u())},
then:function(){return _.T(_.HE,{data:function(){var M=_.z(u==null?void 0:u(),_.eD),t;return{toggleButtonViewModel:Object.assign({},M,{isToggled:(t=O==null?void 0:O())!=null?t:!(M==null||!M.isToggled)})}}},{toggleButtonViewModel:function(M){return _.T(_.Tr,{data:M.data,
onToggle:Q})}})}})},"eg"),BTx=_.D(function(Y){var G=Y.highScoreButton;
var u=Y.score;var O=Y.formattedScore;var Q=Y.onScoreChanged;var M=Y.isEmbeddedInWebview;return _.T(_.HE,{data:G},{miniAppScoreButtonViewModel:function(t){return _.T(lqx,{data:t.data,score:u,formattedScore:O,onScoreChanged:Q,isEmbeddedInWebview:M})}})},"fg"),shb=_.D(function(Y){Y=Y.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.T(_.GY,null):_.T(_.HE,{data:Y},{buttonViewModel:_.$Y})},"gg");_.Upb=_.D(function(Y){var G=Y.data;var u=Y.extractOverlay;Y={};return _.T("player-disclosure-view-model",{class:_.s3("ytwPlayerDisclosureViewModelHost",(Y.ytwPlayerDisclosureViewModelExtractOverlay=function(){return u==null?void 0:u()},Y))},_.T(_.Ny,{command:function(){return G().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.T(_.X,{cond:function(){return G().iconName},
then:function(O){return _.T(_.GS,{icon:O})}}),_.T(_.X,{cond:function(){return G().iconName?void 0:G().image},
then:function(O){return _.T(_.RD,{data:O,alt:function(){return G().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.T(_.X,{cond:function(){return G().title||G().secondaryText},
then:function(){return _.T("div",null,_.T("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return G().title}),_.T("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return G().text}),_.T(_.X,{cond:function(){return G().secondaryText},
then:function(O){return _.T(_.GY,null,_.T("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.T("div",{class:"ytwPlayerDisclosureViewModelText"},O))}}))},
else:function(){return _.T("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return G().text})}}),_.T(_.X,{cond:function(){return G().showEndChevron},
then:function(){return _.T(_.GS,{icon:"CHEVRON_RIGHT"})}})))},"hg");_.vOV=new _.Sb("DESKTOP_CURRENT_PAGE");var QAS=_.D(function(Y){var G=Y.data;var u=_.F("force_active_time_logging_webview"),O=!1,Q=new fqw,M=void 0,t=void 0,K=_.sH().resolve(xpw),L=new nOj,g=void 0,P=void 0,I=[],k=void 0,n=void 0,p=!1,W=!1,C=!1,e=!1,w=new _.sG,B=_.sH().resolve(jhj),N=_.sH().resolve(_.S_),h=_.sH().resolve(_.q3(tl)),q,U=(q=_.sH().resolve(_.q3(_.vOV)))==null?void 0:q.getCurrentPage(),Mj=!1,Xt=0,ka=function(G2){G2.preventDefault();return G2.returnValue=""},aU,Tg=_.E(_.IE(!((aU=_.LB("yt-mini-app-is-audio-enabled"))!=null&&!aU),
void 0,"y7Nkqd")),iy=Tg.next().value,hY=Tg.next().value,dA,nT=_.E(_.IE(!((dA=_.LB("exit-mini-app-seen-state"))==null||!dA),void 0,"ZP6Oxc")),u_=nT.next().value,jT=nT.next().value,P1=_.E(_.IE(!1,void 0,"BCKP1c")),kk=P1.next().value,Fe=P1.next().value,Xg=_.E(_.IE(void 0,void 0,"bswUUd")),Hb=Xg.next().value,n1=Xg.next().value,Yk=_.E(_.IE(void 0,void 0,"sXcJfc")),qj=Yk.next().value,Gx=Yk.next().value,fT=_.E(_.IE(!0,void 0,"DDj4gb")),b_=fT.next().value,MK=fT.next().value,v1=_.E(_.IE(!1,void 0,"qXUljf")),
Ew=v1.next().value,l_=v1.next().value,$V=_.E(_.IE(!1,void 0,"XqvjOc")),T2=$V.next().value,Pb=$V.next().value,IX=_.E(_.IE(void 0,void 0,"S1uX2")),$k=IX.next().value,NM=IX.next().value,fx=_.E(_.IE(0,void 0,"CGS0ze")),H8=fx.next().value,jR=fx.next().value,Io=_.CH("mini-app-container-view-model"),vb=_.E(_.IE(!1,void 0,"AVpgJ")),K5=vb.next().value,s_=vb.next().value,jd=function(){return G().isEmbeddedInWebview},eE=function(){return G().hasPlayNextShelf};
_.o1(function(){var G2,kV=(G2=_.z(G().contentDisclosure,ri2))==null?void 0:G2.animationParams;if((kV==null?0:kV.shouldHide)&&(kV==null?0:kV.hideDelaySecs)){var oo=setTimeout(function(){s_(!0)},kV.hideDelaySecs*1E3);
_.w_(function(){clearTimeout(oo)})}});
_.sV("yt-page-type-changed",function(G2){if(_.F("enable_is_mini_app_page_active_bugfix"))G2.detail.newPageSubtype==="mini_app"&&G2.detail.newPageType==="ytd-browse"||!b_()||Ad();else if(G2=_.h$()==="mini_app",G2!==b_())if(MK(G2),G2){var kV;G2=(kV=G().playableId)==null?void 0:kV.toString();G2!==void 0&&window.location.href.includes(G2)&&!W&&(e=!0,PF(),zo.value&&Aj(zo.value))}else G2||Ad()});
_.sV("yt-action",function(G2){G2.detail.actionName==="yt-engagement-panel-visible-changed"&&G2.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&G2.detail.args[2]==="PAmini_app_panel"&&Ad();_.F("enable_is_mini_app_page_active_bugfix")?G2.detail.actionName==="yt-history-load"&&!b_()&&(U==null?0:U.active)?(MK(!0),PF(),zo.value&&Aj(zo.value)):G2.detail.actionName==="yt-history-load"&&b_()&&!G().isEmbeddedInWebview&&rR():b_()&&G2.detail.actionName==="yt-history-load"&&(e?e=!1:G().isEmbeddedInWebview||
rR())});
_.w_(function(){Zx()});
_.RE(function(){PF()},"Jr1tnc");
var PF=function(){var G2=G().playableId,kV=G().localReleaseId,oo=G().derivedDeviceInterface;if(W)_.R0(new _.I2("[MiniAppContainerViewModel] onEnter was called more than once"));else{W=!0;M=new H5N(G2,kV,oo,document.visibilityState==="visible");aqV(M);t=new oON(G2);Jzo(K,G2);Fgx(L,{showMiniAppAdCommand:G().showMiniAppAdCommand,isEmbeddedInWebview:G().isEmbeddedInWebview,playLogger:M});eUT()&&(n=document.body.style.backgroundColor,_.w0(document.body,"background-color","black"));KV();eN();w=new _.sG;
if(G().isEmbeddedInWebview){if(G2=(new URLSearchParams(window.location.search)).get("postPlayNonce"))tpx(M,G2),Mj=!0;Q.initialize({onAudioStateLoaded:function(sw){sI(sw)},
onMuteMiniApp:function(){sI(!1)},
onUnmuteMiniApp:function(){sI(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(sw){Mj||(tpx(M,sw),Mj=!0)},
confirmExitMiniApp:function(){var sw,Cb,NI;return _.a(function(BM){if(BM.nextAddress==1)return G().confirmExitMiniAppCommand?BM.yield(Promise.race([w.promise,Promise.resolve(!1)]),2):BM.return();(sw=BM.yieldResult)?!G().confirmExitMiniAppCommandEdu||(NI=(Cb=u_)==null?void 0:Cb())!=null&&NI?J1(G().confirmExitMiniAppCommand):(J1(G().confirmExitMiniAppCommandEdu),_.TA("exit-mini-app-seen-state","true",2592E6)):J1(G().closeMiniAppCommand);_.Sd(BM)})},
onNativeBenchmarkingMessageReceived:function(sw){sw=GMT(_.VTU(sw));if(_.Ty(sw,_.mz,3,v5M)){var Cb=_.fc(sw,_.mz,3,v5M),NI=LIU();var BM=xH(NI.getSeconds())-xH(Cb.getSeconds());Cb=_.Sh(NI,2)-_.Sh(Cb,2);BM<0&&Cb>0?(BM+=1,Cb-=1E9):BM>0&&Cb<0&&(--BM,Cb+=1E9);BM=(new VV).setSeconds(BM);BM=_.Hs(BM,2,_.Tx(Cb),0);_.Rh(sw,1,BM)}var $N;($N=P)==null||$N.returnNativeBenchmarkingMessage(sw)},
multiplayer3pAckStateLoaded:function(sw){rR(sw)},
exitMiniAppSeenStateLoaded:function(sw){G().confirmExitMiniAppCommandEdu&&jT(sw)},
onNavigateToNewMiniApp:function(){J1(G().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(sw){sw=new URLSearchParams(sw);var Cb=void 0;sw.has("invite_code")&&(Cb=new tb1,sw=sw.get("invite_code"),Cb=_.E_(Cb,1,sw));if(sw=Cb){var NI;(NI=P)==null||NI.sendGameData(sw)}},
onPauseMiniApp:function(){O=!0;yj()},
onResumeMiniApp:function(){O=!0;by()},
onPausePlayableDialog:function(){C=!0;yj()},
onResumePlayableDialog:function(){C=!1;by()},
onAdFinished:function(sw,Cb){L.onAdFinished(sw,Cb)}});
G().showMultiplayer3pConsentDialogCommand||w.resolve(!0);J1(G().onContainerReadyCommand)}else tpx(M),w.resolve(!0),G().runAttestationCommand&&EOg(M).then(function(sw){var Cb=_.z(KIt(G().runAttestationCommand),_.JtI);Cb&&Cb.ids&&(Cb.ids.push({postPlayNonce:sw}),J1(G().runAttestationCommand))});
i5g(t,EOg(M));EOg(M).then(function(sw){sw={miniAppPlayData:{postPlayNonce:sw}};var Cb,NI=(Cb=G().loggingDirectives)==null?void 0:Cb.trackingParams;NI&&_.M4().stateChanged(NI,sw)});
G2=G().showSignInDialogCommand;!k8j()&&G2&&(_.TA("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),J1(G2));G().confirmExitMiniAppCommand&&h&&(G2=KIt(G().confirmExitMiniAppCommand))&&(h.customConfirmationCommand=G2)}},Zx=function(){n&&_.w0(document.body,"background-color",n);
p=!1;k&&k.release();t.flush().catch(function(G2){_.R0(G2)});
K.flush().catch(function(G2){_.R0(G2)});
Lgw(M);f3();P=void 0;Yrb(B)},Ad=function(){MK(!1);
Zx();Fe(!1);NM(void 0);n1(void 0);Gx(void 0);Xt=0;jR(0);W=!1},yj=function(){var G2;
(G2=P)==null||G2.onPause();k&&k.release();t.flush().catch(function(kV){_.R0(kV)});
K.flush().catch(function(kV){_.R0(kV)});
TTb(M);l_(!0)},by=function(){var G2;
(G2=P)==null||G2.onResume();eN();G2=M;G2.isForeground=!0;j_(G2,"PLAY_EVENT_TYPE_PLAY_RESUME");l_(!1)},sI=function(G2){var kV;
(kV=P)==null||kV.onAudioToggled(G2);hY(G2)},rR=function(G2){G().showMultiplayer3pConsentDialogCommand&&(G().isEmbeddedInWebview&&G2!==void 0&&w.resolve(G2),!G2&&_.h$()==="mini_app"&&J1(G().showMultiplayer3pConsentDialogCommand))},rb=function(){var G2,kV,oo,sw;
return _.a(function(Cb){if(Cb.nextAddress==1){!G().isLivestream||G().disableVideoCapture||(G2=P)!=null&&G2.sendStartGameFrameCapture();kV=(new URL(window.location.href)).searchParams;if(kV.has("invite_code")){var NI=new tb1,BM=kV.get("invite_code");oo=_.E_(NI,1,BM);(sw=P)==null||sw.sendGameData(oo)}kk()||(Fe(!0),NI=M,NI.state!==1?_.R0(new _.I2("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+Qhw[NI.state])):(_.O5("mini_app_ids_without_game_ready").includes(NI.JSC$17420_miniAppId)&&(NI.gameReady=
!0),NI.state=2,NI.beforeReady=!1,Nf(NI,"ma_ffr"),j_(NI,"PLAY_EVENT_TYPE_PLAY_READY")));return Cb.yield(w.promise,2)}J1(G().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();G().isEmbeddedInWebview||rR();_.Sd(Cb)})},C5=function(){var G2=M;
G2.gameReady=!0;Nf(G2,"ma_gr")},y9=function(G2){var kV;
return _.a(function(oo){if(oo.nextAddress==1)return _.i3(oo,2),oo.yield(wsB(t,G2),4);if(oo.nextAddress!=2)return _.j1(oo,0);kV=_.b3(oo);J1(G().showSavingErrorPopupCommand);throw kV;})},CT=function(){var G2,kV;
return _.a(function(oo){if(oo.nextAddress==1)return _.i3(oo,2),oo.yield(Ray(t),4);if(oo.nextAddress!=2)return G2=oo.yieldResult,oo.return(G2);kV=_.b3(oo);J1(G().showLoadingErrorDialogCommand);throw kV;})},xk=function(G2){M.logError(G2)},jS=function(G2,kV,oo){Xs9(M,G2,kV,oo)},Mp=function(G2,kV){Iq9(M,G2,kV)},pT=function(){!u&&G().isEmbeddedInWebview||_.JN();
gOo(M,!0);p||(window.addEventListener("beforeunload",ka,{capture:!0}),p=!0)},wg=function(G2){var kV,oo,sw,Cb,NI,BM,$N;
return _.a(function(r4){if(r4.nextAddress==1)return K&&(!g||g<G2)&&G2>0?r4.yield(Goj(K,G2),3):r4.jumpTo(0);kV=r4.yieldResult;oo=_.E(kV);sw=oo.next().value;Cb=oo.next().value;NI=sw;BM=Cb;(($N=NI)==null?0:$N.displayString)&&BM&&(n1(BM),Gx(NI.displayString));_.Sd(r4)})},OW=function(G2){var kV=G().onBenchmarkingMessageReceivedCommand;
if(kV){var oo=LIU();_.wT(G2,3,v5M,oo);yN(kV,ud1(G2))}},Np=function(){var G2=G().iapPurchaseCommand;
G2&&yN(G2)},Iy=function(G2){var kV=G().onGameFrameReceivedCommand;
if(kV){var oo=new gu;var sw=new uVR;var Cb=FU(G2,1);sw=_.F3(sw,1,Cb);G2=_.zy(G2,2);G2=_.E_(sw,2,G2);oo=_.Rh(oo,2,G2);yN(kV,HkX(oo))}},GR=function(G2){var kV=G().onGameAudioDataReceivedCommand;
if(kV){var oo=new gu;var sw=new Q_V;G2=_.zy(G2,1);sw=_.E_(sw,1,G2);oo=_.Rh(oo,4,sw);yN(kV,HkX(oo))}},u9=function(){var G2=new URLSearchParams(window.location.search);
if(G().isEmbeddedInWebview&&G2&&G2.get("override_hl")==="true"&&G2.get("hl"))return G2.get("hl");G2=document.documentElement.lang;return G2!==""?G2:fU},cF=function(G2){var kV=G().onShareInviteCodeCommand;
if(kV)if(G().isEmbeddedInWebview){var oo=new i8R;G2=_.E_(oo,1,G2);yN(kV,wfk(G2))}else oo=G().inviteCodeShareClientParamIdentifier,B.clientParams.set(oo,{miniAppClientParams:{inviteCode:G2}}),J1(kV)},mU=function(G2){var kV,oo,sw;
return _.a(function(Cb){if(Cb.nextAddress==1)return kV=G().onMiniAppOpenYtContentRequested,K&&_.F("enable_open_yt_content")&&kV?Cb.yield(uHj(K,G2),3):Cb.jumpTo(0);oo=Cb.yieldResult;if(oo==="OK")if(G().isEmbeddedInWebview){var NI=new vcE;sw=T5(NI,2,Lk,eS(G2));yN(kV,GG_(sw))}else N.clientData.set("video_id",G2),J1(kV);_.Sd(Cb)})},g8=function(G2){Xt+=_.Sh(G2,3);
G2=Math.min(Math.log(1+Xt/15E6*9)/Math.log(10),.99);jR(G2);Yq(G2)},Yq=_.pu(function(G2){var kV=G().updateLoadingProgressCommand;
if(kV){var oo=new vcE;G2=T5(oo,3,Lk,_.uN(G2));yN(kV,GG_(G2))}},100),xp=function(G2,kV){switch(G2){case 1:return zaB(L);
case 2:return mp9(L);case 3:return rzw(L,kV);default:return Promise.reject(Error("ei"))}},eN=function(){var G2,kV;
((G2=_.qZ1())==null?void 0:(kV=G2.wakeLock)==null?void 0:kV.request)!=null&&_.qZ1().wakeLock.request("screen").then(function(oo){k=oo}).catch(function(){})},zo=_.yg("iframe");
_.RE(function(){G().isSupportedCountry&&(k8j()||_.F("enable_sign_in_promo")||!G().showSignInDialogCommand?zo.value&&Aj(zo.value):J1(G().onMiniAppReadyCommand))},"I8Fvz");
var tE=function(){return _.T("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return kk()?0:-1},
title:function(){return G().title},
el:zo})},Aj=function(G2,kV){kV=kV===void 0?!1:kV;
var oo=o4();if(oo&&(kV||oo.toString()!==G2.getAttribute("src"))){P=r81(G().source,{isAudioEnabled:iy,onFirstFrameReady:rb,onGameReady:C5,onSave:y9,onLoad:CT,onError:xk,onSdkCalled:jS,onSdkPerformanceUpdate:Mp,onClick:pT,onSendHighScore:wg,onBenchmarkingMessageReceived:OW,getLanguage:u9,onShareInviteCode:cF,onResourceLoaded:g8,onOpenYTContent:mU,onShowMiniAppAd:xp,onGameFrameReceived:Iy,onGameAudioReceived:GR,onMakeIapPurchase:Np},G2,oo);n7(G2,"load",function(){Nf(M,"ma_il");n7(G2,"load",function(){Aj(G2,
!0)})});
var sw=_.Jy("mini_app_container_iframe_src_update_delay_ms");G().isEmbeddedInWebview&&!kV&&sw>0?PbT(G2,oo,sw):_.Er(G2,oo)}},o4=function(){var G2=G().url;
if(G2&&(G2=_.ow(G2),G2!==null)){if(G().source&&G().source==="MINI_APP_SOURCE_GAMESNACKS")G2=_.CO(G2,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.F("enable_origin_query_parameter_bugfix")){var kV=_.VW(_.q_a(G2.toString()));kV=new URLSearchParams(kV||"");kV.set("origin",window.location.origin);kV=kV.toString();G2=_.bs(G2).toString();G2=_.dT(S_1.exec(G2)[0]+(kV.trim()?"#"+kV:""))}return G2}},Oj=function(){var G2={};
G2=_.s3("yt-mini-app-container-view-model__loading-screen",(G2["yt-mini-app-container-view-model__loading-screen--fade-out"]=kk,G2));var kV=function(){return kk()?1:H8()};
return _.T("div",{class:G2},_.T(_.HE,{data:function(){return G().splashScreen}},{miniAppSplashScreenViewModel:function(oo){return _.T(NTx,{data:oo.data,
loadingProgress:kV})}}))},OD=function(){var G2={};
return _.T("div",{class:_.s3("yt-mini-app-container-view-model__pause-interstitial",(G2["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!Ew()},G2["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=Ew,G2))},_.T(_.HE,{data:function(){return G().splashScreen}},{miniAppSplashScreenViewModel:function(kV){return _.T(NTx,{data:kV.data,
forPaused:!0})}}))},KV=function(){I=[];
I.push(_.yn(window,"visibilitychange",function(){C||O&&jd()||(document.visibilityState==="visible"?by():yj())}));
I.push(_.yn(window,"pagehide",function(){Zx()}));
I.push(_.yn(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Io.value.dispatchEvent(new Event("tap"))},0)}));
I.push(_.yn(Io.value,"pointerdown",function(){gOo(M,!1)},!0));
I.push(_.yn(Io.value,"pause",function(){C=!0;yj()}));
I.push(_.yn(Io.value,"play",function(){C=!1;by()}));
I.push(_.yn(Io.value,"exit",function(){Zx()}));
var G2=navigator.keyboard,kV=G2&&G2.lock;I.push(_.yn(window,HzU,function(){Pb(OVy());OVy()?(G().hasPlayNextShelf&&It("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Qd("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),kV&&G2.lock(["Escape"])):(G().hasPlayNextShelf&&Qd("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),It("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),kV&&G2.unlock())}));
G().showMultiplayer3pConsentDialogCommand&&I.push(_.yn(window,"yt-playables-ack-3p-data-usage",function(){ObN(K)}));
G().confirmExitMiniAppCommandEdu&&I.push(_.yn(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.TA("exit-mini-app-seen-state","true",2592E6)}));
G().onGameAudioDataReceivedCommand&&I.push(_.yn(window,"message",function(oo){oo=oo.event_;var sw,Cb=(sw=zo.value)==null?void 0:sw.src;if(Cb&&oo.origin===(new URL(Cb)).origin&&oo.data&&oo.data.type==="GAME_AUDIO"&&oo.data.audio&&oo.data.audio.length>0)if(_.F("enable_sending_unwrapped_game_audio_as_serialized_metadata"))XBI(G().onGameAudioDataReceivedCommand,oo.data.audio);else{var NI=new FileReader;NI.onload=function(){var BM=new gu;var $N=new Q_V;$N=_.E_($N,1,NI.result);BM=_.Rh(BM,4,$N);yN(G().onGameAudioDataReceivedCommand,
HkX(BM))};
NI.readAsDataURL(new Blob([oo.data.audio]))}}))},f3=function(){I.forEach(function(G2){tR(G2)});
window.removeEventListener("beforeunload",ka,{capture:!0})},J1=function(G2){G2&&TPT(G2,G().isEmbeddedInWebview||!1)},Qd=function(G2,kV){G2=_.E(Io.value.getElementsByClassName(G2));
for(var oo=G2.next();!oo.done;oo=G2.next())oo.value.classList.add(kV)},It=function(G2,kV){G2=_.E(Io.value.getElementsByClassName(G2));
for(var oo=G2.next();!oo.done;oo=G2.next())oo.value.classList.remove(kV)};
return function(){var G2={};G2=_.s3("yt-mini-app-container-view-model",(G2["yt-mini-app-container-view-model--desktop"]=!0,G2["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return G().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},G2["yt-mini-app-container-view-model--ios-web-view"]=eUT(),G2["yt-mini-app-container-view-model--no-top-bar"]=function(){return!G().topBar},G2["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return G().hasPlayNextShelf},G2["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return G().hasPlayNextShelf},G2["yt-mini-app-container-view-model--show-peek-below"]=function(){return!T2()&&G().hasPlayNextShelf},G2));
var kV={};kV=_.s3("yt-mini-app-container-view-model__content",(kV["yt-mini-app-container-view-model__content--desktop-content"]=!0,kV["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return G().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},kV["yt-mini-app-container-view-model--desktop-play-page"]=function(){return G().hasPlayNextShelf},kV));
return _.T("mini-app-container-view-model",{el:Io},_.T("div",{class:G2},_.T(_.X,{cond:function(){return G().topBar&&!T2()},
then:function(){return _.T(_.HE,{data:function(){return G().topBar}},{miniAppTopBarViewModel:function(oo){return _.T(czN,{data:oo.data,
isAudioEnabled:iy,onAudioToggled:function(sw){sI(sw)},
score:Hb,formattedScore:qj,onScoreChanged:function(sw){g=sw},
isEmbeddedInWebview:jd,isSaved:$k,onSaveToggled:function(sw){NM(sw)},
isExitMiniAppSeen:u_,isDesktopPlayPage:eE})}})}}),_.T("div",{class:kV},_.T(_.X,{cond:b_,
then:function(){return tE()}}),_.T(_.X,{cond:function(){return G().isLivestream},
then:function(){return OD()}}),_.T(_.X,{cond:function(){return!G().isEmbeddedInWebview},
then:function(){return Oj()}}),_.T(_.HE,{data:function(){return G().contentDisclosure}},{playerDisclosureViewModel:function(oo){oo=oo.data;
var sw={};return _.T("div",{class:_.s3("yt-mini-app-container-view-model__content-disclosure-overlay",(sw["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=K5,sw))},_.T(_.Upb,{data:oo}))}}))))}()},"lg");
QAS.idomCompat=!0;_.hR(QAS,"mini-app-container-view-model",{props:{data:_.AC}});var Md9=_.D(function(Y){var G=Y.data;return _.T("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.T("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.U3(function(){var u=G().onTap;u&&_.W3(u)})},_.T(_.X,{cond:function(){return G().icon},
then:function(u){return _.T(_.GS,{icon:function(){return u().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.T("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return G().title})))},"mg");
Md9.idomCompat=!0;var Hby=_.D(function(Y){var G=_.CH("div"),u=_.E(_.IE(void 0,void 0,"dg3xff")),O=u.next().value,Q=u.next().value;u=_.E(_.IE(void 0,void 0,"AgHNfc"));var M=u.next().value,t=u.next().value;u=_.E(_.IE(void 0,void 0,"fuTKCc"));var K=u.next().value,L=u.next().value,g=function(){var e=O();return e!==void 0?Math.abs(e):void 0},P=function(){var e=g();
return e===void 0||e<=3},I=function(){var e=g();
var w=M(),B=K();e=e!==void 0&&w!==void 0&&B!==void 0?w-B-e:void 0;return e===void 0||e<=3},k=function(e){G.value&&G.value.scrollBy({top:0,
left:(_.DE("HTML_DIR")==="rtl"?-1:1)*e*G.value.clientWidth,behavior:"smooth"})},n=function(){var e;
Q((e=G.value)==null?void 0:e.scrollLeft);var w;t((w=G.value)==null?void 0:w.scrollWidth);var B;L((B=G.value)==null?void 0:B.clientWidth)},p=function(){k(-.5)},W=function(){k(.5)};
u=_.U3(function(){n()});
_.o1(function(){n();if(G.value&&window.ResizeObserver){var e=new ResizeObserver(n);e.observe(G.value);_.w_(function(){e.disconnect()})}});
var C={};return _.T("yt-sponsorships-scrollable-shelf",{class:_.s3("ytdSponsorshipsScrollableShelfHost",Y.className)},_.T("div",{class:_.s3("ytdSponsorshipsScrollableShelfContent",(C.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return Y.data().previousButton&&Y.data().nextButton&&!P()&&!I()},C.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return Y.data().previousButton&&!P()&&I()},C.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return Y.data().nextButton&&
P()&&!I()},C)),
el:G,"on:scroll":u},Y.children),_.T(_.X,{cond:function(){return!P()},
then:function(){return _.T(_.HE,{data:function(){return Y.data().previousButton}},{buttonViewModel:function(e){return _.T(_.$Y,{data:e.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:p})}})}}),_.T(_.X,{cond:function(){return!I()},
then:function(){return _.T(_.HE,{data:function(){return Y.data().nextButton}},{buttonViewModel:function(e){return _.T(_.$Y,{data:e.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:W})}})}}))},"og");
Hby.idomCompat=!0;var td9=_.D(function(Y){var G=Y.data;Y={};return _.T("yt-sponsorships-hub",{class:_.s3("ytdSponsorshipsHubHost",(Y.ytdSponsorshipsHubHostIndented=function(){return G().indented},Y))},_.T("div",{class:"ytdSponsorshipsHubHeader"},_.T("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.T("div",{class:"ytdSponsorshipsHubAvatar"},_.T(_.HE,{data:function(){return G().avatar}},{avatarViewModel:_.z$})),_.T(_.X,{cond:function(){return G().badgeImage},
then:function(u){return _.T("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.T("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.T("div",{class:"ytdSponsorshipsHubBadge"},_.T(_.RD,{data:u,targetWidth:24,targetHeight:24,alt:""}))))}})),_.T("div",{class:"ytdSponsorshipsHubDetails"},_.T("div",{class:"ytdSponsorshipsHubTierName"},function(){return G().tierName}),_.T("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return G().membershipType}),_.T("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return G().membershipDurationOrExpiry})),_.T("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.T(_.HE,{data:function(){return G().manageButton}},{buttonViewModel:function(u){return _.T(_.$Y,{data:u.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.T(_.HE,{data:function(){return G().actionMenuButton}},{buttonViewModel:function(u){return _.T(_.$Y,{data:u.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.T("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return G().perksTitle}),_.T(Hby,{data:function(){return{previousButton:G().previousPerkButton,
nextButton:G().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.T("div",{class:"ytdSponsorshipsHubPerkCards"},_.T(_.HE,{data:function(){return G().perkCards}},{sponsorshipsHubPerkCardViewModel:Md9}),_.T(_.X,{cond:function(){return G().viewAllPerksButton},
then:function(u){return _.T(E6B,{data:u})}}))))},"pg");
td9.idomCompat=!0;var E6B=_.D(function(Y){var G=Y.data;return _.T("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.T(_.HE,{data:function(){return G().button}},{buttonViewModel:_.$Y}),_.T("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.T("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return G().title}),_.T("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return G().subtitle})))},"qg");
E6B.idomCompat=!0;_.hR(td9,"yt-sponsorships-hub",{props:{data:_.AC}});_.K0b=_.D(function(Y){var G=Y.data;return _.T("yt-dual-avatar-view-model",{class:_.s3("ytDualAvatarViewModelHost",Y.className),style:_.Yh({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var u;return((u=G().badgeCutoutRadius)!=null?u:14)+"px"}})},_.T("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.T(_.HE,{data:function(){return G().startAvatar}},{avatarViewModel:_.z$}),_.T(_.HE,{data:function(){return G().endAvatar}},{avatarViewModel:_.z$})),_.T(_.HE,{data:function(){return G().badge}},
{contentPreviewImageViewModel:function(u){return _.T("div",{class:"ytDualAvatarViewModelBadge"},_.T(_.c9,{data:u.data}))}}))},"rg");
_.K0b.idomCompat=!0;var TtB=_.D(function(Y){var G=Y.data;var u,O=!((u=_.sH().resolve(_.q3(_.Ee)))==null||!u());Y=_.p2(function(){var P,I,k=O?(P=G().header)==null?void 0:P.backgroundColorDarkMode:(I=G().header)==null?void 0:I.backgroundColorLightMode;if(k!==void 0)return _.nB(k)},void 0,"TDdh7d");
u=_.p2(function(){var P,I;return O?(P=G().header)==null?void 0:P.backgroundImagePart1Dark:(I=G().header)==null?void 0:I.backgroundImagePart1Light},void 0,"X0peMe");
var Q=_.p2(function(){var P,I;return O?(P=G().header)==null?void 0:P.backgroundImagePart2Dark:(I=G().header)==null?void 0:I.backgroundImagePart2Light},void 0,"an0Hzd"),M=_.p2(function(){return _.DE("HTML_DIR")==="rtl"},void 0,"BltEgb"),t=_.CH("yt-sponsorships-perks-list"),K=!1,L=function(){var P=t.value;
if(P&&!K){var I,k=(I=P.parentElement)==null?void 0:I.parentElement;if(k)for(P=P.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),I=0;I<P.length;++I){var n=P[I];if(n instanceof HTMLElement){k.scrollTo({top:n.offsetTop+n.clientHeight/2-k.clientHeight/2,behavior:"smooth"});K=!0;break}}}};
_.ii(function(){var P=t.value;if(P&&window.ResizeObserver){var I=new ResizeObserver(L);I.observe(P);_.w_(function(){I.disconnect()})}});
var g={};return _.T("yt-sponsorships-perks-list",{el:t,class:_.s3("ytdSponsorshipsPerksListHost",(g.ytdSponsorshipsPerksListHorizontalPadding=function(){return G().horizontalPaddingEnabled},g))},_.T("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.T("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Yh({"background-color":Y})},_.T("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.T(_.X,{cond:u,then:function(P){var I={};return _.T("div",{class:_.s3((I.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=O,I.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!O,I.ytdSponsorshipsPerksListFlipped=M,I))},_.T(_.RD,{data:P,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.T("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.T(_.X,{cond:Q,
then:function(P){var I={};return _.T("div",{class:_.s3((I.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=O,I.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!O,I.ytdSponsorshipsPerksListFlipped=M,I))},_.T(_.RD,{data:P,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.T("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.T(_.HE,{data:function(){var P;
return(P=G().header)==null?void 0:P.dualAvatar}},{dualAvatarViewModel:_.K0b})))),_.T("div",{class:"ytdSponsorshipsPerksListBody"},_.T("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return G().title}),_.T(_.X,{cond:function(){return G().perks},
then:function(P){return _.T(_.rc,{each:P},function(I,k){var n={};return _.T("div",{class:_.s3("ytdSponsorshipsPerksListPerkContainer",(n.ytdSponsorshipsPerksListSelectedPerk=function(){var p=k(),W=G().selectedPerkIndex;return p===W},n))},_.T(_.X,{cond:function(){return k()>0},
then:function(){return _.T("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.T("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.T(_.X,{cond:function(){return I.icon},
then:function(p){return _.T(_.GS,{icon:function(){return p().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.T("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.T("div",{class:"ytdSponsorshipsPerksListPerkTitle"},I.title),_.T("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.T(_.eO,{text:I.description})),_.T(_.X,{cond:function(){return I.instructions},
then:function(){var p,W;return _.T("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.T("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(p=I.instructions)==null?void 0:p.title),_.T("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.T(_.eO,{text:(W=I.instructions)==null?void 0:W.text})))}}))),_.T(_.X,{cond:function(){return I.emoji},
then:function(p){return _.T("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.T(_.rc,{each:function(){return p()}},function(W){return _.T(_.RD,{data:W,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.T(ax9,{data:I}))})}})))},"sg");
TtB.idomCompat=!0;var ax9=_.D(function(Y){var G=Y.data;var u=function(t,K){return t===K},O=function(){var t=G();
t=_.z(t==null?void 0:t.badgesShelf,de_);return t!==void 0&&t!==null?t:{previousButton:{},nextButton:{}}},Q=_.yg("div"),M=function(){var t=Q.value;
if(t){var K=t.parentElement;if(K){t=t.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var L=0;L<t.length;++L){var g=t[L];if(g instanceof HTMLElement){K.scrollTo({left:g.offsetLeft+g.clientWidth/2-K.clientWidth/2,behavior:"instant"});break}}}}};
_.ii(function(){var t=Q.value;if(t){var K=new ResizeObserver(M);K.observe(t);_.w_(function(){K.disconnect()})}});
return _.T("div",null,_.T(_.X,{cond:function(){return G().badges},
then:function(t){return _.T(Hby,{data:O},_.T("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:Q},_.T(_.rc,{each:function(){return t()}},function(K,L){var g={},P={},I={};
return _.T("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.T(_.X,{cond:function(){return L()>0},
then:function(){return _.T("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.T("div",{class:_.s3("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(g.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return u(L(),G().currentBadgeIndex)},g.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!u(L(),G().currentBadgeIndex)},g))},_.T("div",{class:_.s3("ytdSponsorshipsPerksListLoyaltyBadge",(P.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return u(L(),
G().currentBadgeIndex)},P.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!u(L(),G().currentBadgeIndex)},P))},_.T(_.X,{cond:function(){return K.image},
then:function(k){var n={};return _.T("div",{class:_.s3((n.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return u(L(),G().currentBadgeIndex)},n.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!u(L(),G().currentBadgeIndex)},n))},_.T(_.RD,{data:k,
alt:""}))}})),_.T("div",{class:_.s3("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(I.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return u(L(),G().currentBadgeIndex)},I))},K.title)))})))}}))},"tg");
ax9.idomCompat=!0;_.hR(TtB,"yt-sponsorships-perks-list",{props:{data:_.AC}});_.hR(_.D(function(Y){return _.T("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.T(_.X,{cond:function(){return Y.data().image},
then:function(G){return _.T(_.RD,{className:"ytwFantasyEmptyStateViewModelImage",data:G,ariaHidden:!0,alt:""})}}),_.T(_.eO,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return Y.data().title}}),_.T(_.eO,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return Y.data().subtitle}}),_.T(_.HE,{data:function(){return Y.data().primaryButton}},{buttonViewModel:function(G){return _.T(_.$Y,{data:G.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ug"),"ytw-fantasy-empty-state-view-model",{props:{data:_.AC}});var L0B;var g6S=_.D(function(Y){var G=Y.data;var u=Y.uniqueId;var O=Y.overrides;Y=_.p2(function(){var Q,M=((Q=G().timedAnimationData)==null?void 0:Q.animationTiming)||[];return{uniqueId:u(),timings:M,experimentEnabled:M.length>0,enabled:M.length>0}},void 0,"hiuXI");
return _.T("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.T(NhV,{settings:Y},_.T(_.HE,{data:function(){return G().buttonRenderer}},{buttonRenderer:function(Q){return _.T(_.dY,{data:Q.data,
buttonOverrides:O})}})))},"vg");
g6S.idomCompat=!0;_.hR(g6S,"timed-animation-button-renderer",{props:{data:_.AC,uniqueId:_.AC,overrides:_.AC}});var ce=function(){var Y=_.Z.apply(this,arguments)||this;Y.hideJoinButtonBeforeSubscribed=_.F("hide_join_button_before_subscribed");Y.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return Y};
_.m(ce,_.Z);_.H=ce.prototype;_.H.hasShowDialogCommand=function(Y){return!!_.z(Y,BWI)};
_.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 Y,G;(Y=_.l0(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(G=Y.polymerController)==null||G.set("overrides",this.joinButtonOverrides);if(Y=_.l0(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))Y.overrides=this.joinButtonOverrides};
_.H.handleButtonRefreshAction=function(Y){if(Y=_.z(Y,aI1))this.set("data.membershipButton",Y.membershipButton),this.notifyPath("data.membershipButton")};
_.H.onYtServiceRequestError=function(Y){_.Rd(this.hostElement,Y.detail.error.message)};
_.H.onKeydown=function(Y){if(Y.key==="Enter"){var G;(G=this.data)!=null&&G.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.H.handleUnsubscribeAction=function(){var Y,G,u;((Y=this.data)==null?void 0:(G=Y.membershipButton)==null?void 0:(u=G.buttonRenderer)==null?void 0:u.style)==="STYLE_PRIMARY"&&_.l0(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Uk.Object.defineProperties(ce.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.subscriptionStateEntity)==null||!Y.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var Y,G=(Y=this.data)==null?void 0:Y.membershipButton,u;Y=(G==null?void 0:G.buttonRenderer)||_.z(G==null?void 0:(u=G.timedAnimationButtonRenderer)==null?void 0:u.buttonRenderer,_.ru);return(Y==null?void 0:Y.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(Y==null?void 0:Y.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(Y==null?void 0:Y.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var Y;if(this.hasShowDialogCommand((Y=this.data)==null?void 0:Y.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var Y;if(this.hasShowDialogCommand((Y=this.data)==null?void 0:Y.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.attributedTitle)}}});
ce.prototype.onYtServiceRequestError=ce.prototype.onYtServiceRequestError;ce.prototype.updateJoinButtonOverrides=ce.prototype.updateJoinButtonOverrides;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],ce.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ce.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.me),_.V("design:type",Object)],ce.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ce.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.LM),_.V("design:type",Object)],ce.prototype,"ironButtonState",void 0);_.S([_.R(),_.V("design:type",Object)],ce.prototype,"data",void 0);_.S([_.f("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],ce.prototype,"hideJoin",null);
_.S([_.R(),_.V("design:type",String)],ce.prototype,"subscribeKey",void 0);_.S([_.R({selectorArgs:["subscribeKey"],selector:xYg}),_.V("design:type",Object)],ce.prototype,"subscriptionStateEntity",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ce.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.S([_.f("subscriptionStateEntity"),_.R({reflectToAttribute:!0}),_.V("design:type",Object),_.V("design:paramtypes",[])],ce.prototype,"subscribed",null);
_.S([_.f("subscribed","data.membershipButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],ce.prototype,"joinButtonOverrides",null);_.S([_.f("data.navigationEndpoint"),_.V("design:type",Object),_.V("design:paramtypes",[])],ce.prototype,"channelNameTabIndex",null);_.S([_.f("data.navigationEndpoint"),_.V("design:type",Object),_.V("design:paramtypes",[])],ce.prototype,"channelNameRole",null);
_.S([_.f("data.attributedTitle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ce.prototype,"hasAttributedTitle",null);_.S([_.GO("joinButtonOverrides"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ce.prototype,"updateJoinButtonOverrides",null);_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ce.prototype,"onYtServiceRequestError",null);
_.S([_.pD({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],ce);
var X8V=_.$o()(ce,"ytd-video-owner-renderer",function(){if(L0B===void 0){var Y=document.createElement("template");_.r(Y,'\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"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><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></template><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"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);L0B=Y}Y=L0B;return Y},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.hR(_.D(function(Y){var G=Y.data;var u;Y=_.E(_.IE(!((u=_.LB("yt-mini-app-is-theater-mode-enabled"))==null||!u),void 0,"i2pjVd"));var O=Y.next().value,Q=Y.next().value;u=_.E(_.IE(!1,void 0,"ga7V5c"));var M=u.next().value,t=u.next().value;_.ii(function(){var g=_.yn(window,HzU,function(){t(OVy())});
_.w_(function(){tR(g)})});
var K;u=(K=_.sH().resolve(_.q3(ZTS)))!=null?K:function(){return _.T("div",null)};
_.lj("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){Q(!0);_.TA("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.lj("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){Q(!1);_.TA("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
K={};Y={};var L={};return _.T("mini-app-play-page-renderer",{class:_.s3("miniAppPlayPageRendererHost",(K.miniAppPlayPageRendererHostDetailsView=function(){return!O()},K))},_.T("div",{class:_.s3("miniAppPlayPageRendererGameContainer",(Y.miniAppPlayPageRendererGameContainerDetailsView=function(){return!O()},Y))},_.T(_.HE,{data:function(){return G().containerViewModel}},{miniAppContainerViewModel:QAS}),_.T(_.X,{cond:function(){return G().channel&&G().subscribeButton},
then:function(){var g={};return _.T("div",{class:_.s3("miniAppPlayPageRendererChannelContainer",(g.miniAppPlayPageRendererHideVisibility=function(){return M()},g))},_.T(_.HE,{data:function(){return G().channel}},{videoOwnerRenderer:function(P){return _.T(X8V,{data:P.data})}}),_.T(_.HE,{data:function(){return G().subscribeButton}},{subscribeButtonViewModel:function(P){return _.T(_.zv,{data:P.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.T(_.X,{cond:function(){return!O()&&G().description},
then:function(){var g={};return _.T("div",{class:_.s3("miniAppPlayPageRendererMiniAppDescriptionWrapper",(g.miniAppPlayPageRendererHideVisibility=function(){return M()},g))},_.T("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return G().description}))}})),_.T("div",{class:_.s3("miniAppPlayPageRendererPlayNextContainer",(L.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!O()},L.miniAppPlayPageRendererHideVisibility=function(){return M()},L))},_.T(_.HE,{data:function(){return G().sectionList}},
{sectionListRenderer:u})))},"wg"),"mini-app-play-page-renderer",{props:{data:_.AC}});var UB=function(){var Y=_.Z.apply(this,arguments)||this;Y.isSearch=!1;Y.isConstrainedList=!1;Y.hasChipsBar=!1;Y.inReplyPanel=!1;Y.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"}};Y.monitorScroll=!0;Y.SCROLL_ANIMATION_DURATION_MS=300;Y.nextContinuation={continuationType:"sectionListContinuation"};return Y};
_.m(UB,_.Z);_.H=UB.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},alertBannerViewModel:{component:"yt-alert-banner-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(Y){switch(Y.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.F("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.F("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.H.created=function(){var Y=this;this.JSC$17566_scrollAnimation=new _.bm(function(G){Y.hostElement.scrollTop=G})};
_.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(Y){this.set("data.contents",Y)};
_.H.computeHasSortFilter=function(Y){return!!Y&&!!Y.sortFilterSubMenuRenderer};
_.H.computeShouldScrollInPanel=function(Y){var G;return!!(Y==null?0:(G=Y.scrollPaneStyle)==null?0:G.scrollable)};
_.H.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.$3(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.H.scrollToTop=function(){this.hostElement.scrollTop=0};
_.H.scrollToItemSection=function(Y){if(Y=this.getItemByIdentifier(Y))Y=this.getScrollPositionForItem(Y),this.hostElement.scrollTop!==Y&&this.JSC$17566_scrollAnimation.start(this.hostElement.scrollTop,Y,this.SCROLL_ANIMATION_DURATION_MS)};
_.H.getItemByIdentifier=function(Y){var G=this.contents.querySelectorAll("ytd-item-section-renderer");if(G&&G.length!==0){var u=Array.from(G).findIndex(function(O){return O.sectionIdentifier===Y});
return G[u===-1?0:u]}};
_.H.getScrollPositionForItem=function(Y){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===Y)return 0;Y=_.Fi(Y).y+this.hostElement.scrollTop-_.Fi(this.hostElement).y;return Math.min(Y,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Uk.Object.defineProperties(UB.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.targetId)==="browse-feedFEclips"}}});
UB.prototype.onScroll=UB.prototype.onScroll;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],UB.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],UB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.jx.YtLazyListBehavior),_.V("design:type",Object)],UB.prototype,"ytLazyListBehavior",void 0);_.S([_.x(_.hq.YtNextContinuationBehavior),_.V("design:type",Object)],UB.prototype,"ytNextContinuationBehavior",void 0);
_.S([_.x(_.JBx),_.V("design:type",Object)],UB.prototype,"ytBooleanLogicBehavior",void 0);_.S([_.x(_.DD),_.V("design:type",Object)],UB.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],UB.prototype,"data",void 0);_.S([_.R({value:2}),_.V("design:type",Number)],UB.prototype,"initialCount",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],UB.prototype,"autoFill",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.V("design:type",Boolean)],UB.prototype,"hasSortFilter",void 0);_.S([_.R({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.V("design:type",Boolean)],UB.prototype,"hideBottomSeparator",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.V("design:type",Boolean)],UB.prototype,"shouldScrollInPanel",void 0);
_.S([_.R(),_.V("design:type",Object)],UB.prototype,"isSearch",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],UB.prototype,"isConstrainedList",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],UB.prototype,"responsiveSizing",void 0);_.S([_.R(),_.V("design:type",Object)],UB.prototype,"hasChipsBar",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],UB.prototype,"pageSubtype",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],UB.prototype,"engagementPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],UB.prototype,"liveChatEngagementPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],UB.prototype,"inReplyPanel",void 0);_.S([_.Ox("#action-button"),_.V("design:type",HTMLElement)],UB.prototype,"actionButton",void 0);_.S([_.R(),_.V("design:type",Object)],UB.prototype,"scrollUpButtonData",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],UB.prototype,"engagementPanelDropdown",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],UB.prototype,"engagementPanelDialog",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],UB.prototype,"isClipList",null);_.S([_.Ox("#contents"),_.V("design:type",HTMLElement)],UB.prototype,"monitorScrollElement",void 0);_.S([_.Ox("#contents"),_.V("design:type",HTMLElement)],UB.prototype,"contents",void 0);
_.S([_.Yo("scroll"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UB.prototype,"onScroll",null);_.S([_.pD({is:"ytd-section-list-renderer",disableElementRegistration:!0})],UB);
var P3N=_.$o()(UB,"ytd-section-list-renderer",function(){if(w1y===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);w1y=Y}Y=w1y;return Y},{mode:1});var IxV;var kob;var n6g;var F0j;var ve=function(){return _.Z.apply(this,arguments)||this};
_.m(ve,_.Z);ve.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
ve.prototype.onLikeButtonClick=function(Y){Y.stopPropagation();Y.preventDefault()};
_.Uk.Object.defineProperties(ve.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)!=null&&Y.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)})}}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ve.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],ve.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ve.prototype,"ytRendererStamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ve.prototype,"data",void 0);
_.S([_.R({selectorArgs:["data.likeStatusEntityKey"],selector:_.Wx}),_.V("design:type",Object)],ve.prototype,"likeStatusEntity",void 0);_.S([_.f("data","likeStatusEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],ve.prototype,"likeButtonRenderer",null);_.S([_.pD({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],ve);
_.d(ve,"ytd-slim-metadata-toggle-button-renderer",function(){if(F0j!==void 0)return F0j;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
return F0j=Y},{mode:1});var J3=function(){var Y=_.Z.apply(this,arguments)||this;Y.showEqualizer=_.F("web_enable_playlist_video_lockup_equalizer");Y.watchColorUpdate=_.F("kevlar_watch_color_update");Y.actionMap={};return Y};
_.m(J3,_.Z);_.H=J3.prototype;_.H.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.H.computeEditableClass=function(Y){return Y&&Y.menu?"editable":""};
_.H.computeSelected=function(Y){return!(Y==null||!Y.selected)};
_.H.computeUseColorPalette=function(Y){return!!((Y==null?0:Y.lightColorPalette)&&(Y==null?0:Y.darkColorPalette))};
_.H.computeLargerPlaylistThumbs=function(Y,G){return _.F("web_enable_playlist_bigger_thumbnails")&&!G};
_.H.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.H.onYtServiceRequestSent=function(Y,G){G.endpoint&&this.isHideEnclosingAction(G.endpoint)&&!this.selected&&mlM(_.wp(),this.data.videoId)};
_.H.isHideEnclosingAction=function(Y){var G=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",Y);Y=this.get("likeEndpoint.status",Y)==="INDIFFERENT";return G||Y};
_.H.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.H.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Uk.Object.defineProperties(J3.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.F("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var Y;return!!(this.withinMiniplayer&&((Y=this.data)==null?0:Y.actionButtons))}}});
J3.prototype.onYtServiceRequestSent=J3.prototype.onYtServiceRequestSent;J3.prototype.canReorderChanged=J3.prototype.canReorderChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],J3.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.oV),_.V("design:type",Object)],J3.prototype,"ytdLockupBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],J3.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],J3.prototype,"withinMiniplayer",void 0);_.S([_.R({computed:"computeSelected(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],J3.prototype,"selected",void 0);
_.S([_.R({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],J3.prototype,"useColorPalette",void 0);_.S([_.R({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.V("design:type",Boolean)],J3.prototype,"largerPlaylistThumbs",void 0);_.S([_.R(),_.V("design:type",Object)],J3.prototype,"showEqualizer",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],J3.prototype,"canReorder",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],J3.prototype,"touchPersistentDragHandle",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],J3.prototype,"handleIsHovered",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],J3.prototype,"watchColorUpdate",void 0);_.S([_.R(),_.V("design:type",String),_.V("design:paramtypes",[])],J3.prototype,"reorderIcon",null);
_.S([_.R(),_.V("design:type",String),_.V("design:paramtypes",[])],J3.prototype,"playIcon",null);_.S([_.R({reflectToAttribute:!0}),_.f("withinMiniplayer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],J3.prototype,"minimizePipBreakages",null);_.S([_.f("largerPlaylistThumbs"),_.V("design:type",Number),_.V("design:paramtypes",[])],J3.prototype,"thumbnailWidth",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],J3.prototype,"showActionButtons",null);_.S([_.Ex("canReorder"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],J3.prototype,"canReorderChanged",null);_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],J3.prototype,"onYtServiceRequestSent",null);
_.S([_.pD({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],J3);
_.d(J3,"ytd-playlist-panel-video-renderer",function(){if(n6g!==void 0)return n6g;var Y=document.createElement("template");_.r(Y,'\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      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\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="" minimize-pip-breakages="[[minimizePipBreakages]]" 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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return n6g=Y},{mode:2});var Y1=function(){return _.Z.apply(this,arguments)||this};
_.m(Y1,_.Z);Y1.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Y1.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Y1.prototype,"data",void 0);_.S([_.pD({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Y1);
_.d(Y1,"ytd-playlist-panel-supported-items",function(){if(kob!==void 0)return kob;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return kob=
Y},{mode:1});EC_=!0;bcE("\\P{N}");var R1u;var p8w=_.Q6("END_OF_PLAYLIST",void 0,"End of playlist"),zHB=_.Q6("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),GF=function(){var Y=_.Z.apply(this,arguments)||this;Y.minimizePipBreakages=_.F("web_pip_minimize_breakages");Y.hideHeaderText=!1;Y.useColorPalette=!1;Y.collapsed=!1;Y.collapsedPreServerOverride="not_tracked";Y.isHovered=!1;Y.expandLabel=_.Q6("MINIPLAYER_EXPAND_LABEL");Y.collapseLabel=_.Q6("MINIPLAYER_COLLAPSE_LABEL");Y.isFloating=!1;Y.metaPanel=
!1;Y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};Y.currentIndex=void 0;return Y};
_.m(GF,_.Z);_.H=GF.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(){var Y=this;this.scrollThrottle=new _.JR(this.onThrottledScroll,1E3,this);this.JSC$17588_ytReorderableController=new _.YcV(56,function(G){Y.handleDrop(G)})};
_.H.onMouseEnter=function(){this.isHovered=!0};
_.H.onMouseLeave=function(){this.isHovered=!1};
_.H.computeOverflowMenuData=function(Y){return Y&&Y.menu?Y.menu:null};
_.H.computeCollapsible=function(Y){return!Y};
_.H.computeHasPlaylistButtons=function(Y){return!(!Y||!Y.playlistButtons)};
_.H.computeHasSeparateSaveButton=function(Y){return!(!Y||!Y.saveButton)};
_.H.computeHasToolbarButton=function(Y,G){return!(!Y||!(G||Y.saveButton||Y.menu))};
_.H.computePlaylistType=function(Y){if(Y&&Y.playlistId)return Y.playlistId.substring(0,4)};
_.H.computeCanReorder=function(Y){return Y?Y.playlistId&&Y.playlistId.startsWith("TLPQ")?!0:!!Y.isEditable&&!Y.isInfinite:!1};
_.H.attached=function(){var Y=this;try{_.sH().resolve(_.yq).setPlaylistComponent(this.hostElement)}catch(G){if(_.F("kevlar_park_on_playlist_token_killswitch"))throw G;_.AM().parkOrScheduleJob(function(){_.sH().resolve(_.yq).setPlaylistComponent(Y.hostElement)},2,"ci")}_.Sc(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.H.detached=function(){_.NZ(this.hostElement);_.H7(this.JSC$17588_ytReorderableController)};
_.H.computeTrailingIcon=function(Y,G,u){return u?G?"yt-icons:collapse":"yt-icons:close":G?"yt-icons:expand":_.F("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.H.computeIndexMessage=function(Y,G){return DG4(Y+1)+" / "+DG4(G)};
_.H.onRenderStamperFinished=function(){if(this.scrollForStampDom){var Y=!0;this.isHovered&&(Y=!1);if(this.collapsed||this.hidden)Y=!1;Y&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.H.collapseChanged=function(){var Y=this;this.collapsed||(_.EA(this.ytTaskEmitterBehavior.getTaskManager(),function(){Y.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.H.hiddenChanged=function(){var Y=this;this.hidden||_.EA(this.ytTaskEmitterBehavior.getTaskManager(),function(){Y.scrollToCurrentVideo()})};
_.H.setupReordering=function(){var Y=_.l0(this.hostElement).querySelector("#items");Wxe?_.GtM(this.JSC$17588_ytReorderableController,Y,Y,"playlist-drag-handle"):_.GtM(this.JSC$17588_ytReorderableController,Y,Y)};
_.H.scrollToCurrentVideo=function(){var Y=this;_.AN.addJob(function(){var G=_.l0(Y.hostElement).querySelector("#items");if(G){G.style.setProperty("padding-bottom","");var u=_.l0(Y.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(u){G=u.parentElement||_.xS(document);var O=G||_.xS(document);var Q=_.Fi(u),M=_.Fi(O),t=_.yPI(O);if(O==_.xS(document)){var K=Q.x-O.scrollLeft;Q=Q.y-O.scrollTop}else K=Q.x-M.x-t.left,Q=Q.y-M.y-t.top;u=rPe(u);M=O.clientHeight-
u.height;t=O.scrollLeft;var L=O.scrollTop;t+=K-(O.clientWidth-u.width)/2;O=new _.AD(t,L+(Q-M/2));G.scrollLeft=O.x;G.scrollTop=O.y}}},8)};
_.H.dataChanged=function(){var Y=this;_.H7(this.JSC$17588_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.sk(this,function(){_.WY(Y.ytTaskEmitterBehavior.getTaskManager(),function(){Y.ytRendererBehavior.markDirty();Y.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.H.onFullBleedPlayerChanged=function(){_.F("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.H.onFullscreenChanged=function(){_.F("web_watch_imax_theater_mode")||_.F("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.H.updateNowPlayingOverlay=function(){_.F("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.H.onPlaylistLockupNowPlaying=function(Y,G){G&&(this.activeNowPlayingRenderer=G);this.updateNowPlayingOverlay()};
_.H.onScroll=function(){this.scrollThrottle.fire()};
_.H.onThrottledScroll=function(){var Y=this;_.WY(this.ytTaskEmitterBehavior.getTaskManager(),function(){Y.ytRendererBehavior.markDirty()})};
_.H.onToggleExpanded=function(Y){!this.collapsible||Y&&(_.Zb(Y).tagName==="A"||_.hf(_.wG(Y),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.H.setCollapsed=function(Y){this.collapsible&&(this.collapsed=Y,_.sK(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.H.handleCollapsedFromData=function(Y){if(Y){var G=Y.playlistPanelCollapseState;G==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||G==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),G=G==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==G&&this.setCollapsed(G)):this.currentPlaylistId!==Y.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(G=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==G&&this.setCollapsed(G),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=Y.playlistId}};
_.H.handleDrop=function(Y){var G=Y.currDragItem;Y=G.data.playlistSetVideoId;var u=_.Dt(G.parentNode.childNodes,G),O=void 0;u>0&&(O=G.parentNode.childNodes[u-1].data.playlistSetVideoId);G=_.wp();if(G.responsePlaylistData&&G.responsePlaylistData.contents){var Q=qMA(Y,G.responsePlaylistData);G.responsePlaylistData=(0,_.gX.unsafeClone)(G.responsePlaylistData);djA(G.responsePlaylistData.contents,Q,u);G.queueProxy?vz_(G.queueProxy,Q,u,Y,O):G.playlistProxy&&vz_(G.playlistProxy,Q,u,Y,O);_.Z_(G,_.D_(G,G.response?
G.response.autoplayRenderer:void 0))}};
_.H.handleDarkModeChange=function(Y){Y!==this.isDarkTheme&&(this.isDarkTheme=Y)};
_.H.colorPaletteChanged=function(){var Y,G=((Y=this.data)==null?void 0:Y.contents)||[],u;Y=_.E(G);for(G=Y.next();!G.done;G=Y.next()){G=G.value;var O=void 0;if((O=G.playlistPanelVideoRenderer)==null?0:O.selected){Y=G.playlistPanelVideoRenderer;O=G=void 0;(u=this.isDarkTheme?(G=Y)==null?void 0:G.darkColorPalette:(O=Y)==null?void 0:O.lightColorPalette)&&_.gE(this.hostElement,u);break}}this.useColorPalette=!!u};
_.Uk.Object.defineProperties(GF.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.moveThreeDotsMenuToMainHeader)&&_.F("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var Y=_.sH().resolve(_.q3(_.yq)),G;if(((G=this.data)==null?0:G.contents)&&(Y==null?0:Y.hasAutoplayData())){var u;if(((u=this.playlistLoopStateEntity)==null?void 0:u.state)==="PLAYLIST_LOOP_STATE_ONE"){if(Y=this.data.currentIndex,Y!==void 0){var O,Q;var M=(O=this.data.contents[Y])==null?void 0:(Q=O.playlistPanelVideoRenderer)==null?void 0:Q.title}}else{var t,K=(t=_.z(Y.getAutoplayEndpoint(),_.ic))==null?void 0:t.videoId,L,g;M=(L=this.data.contents.find(function(P){var I;
return((I=P.playlistPanelVideoRenderer)==null?void 0:I.videoId)===K}))==null?void 0:(g=L.playlistPanelVideoRenderer)==null?void 0:g.title}return M}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)!=null&&Y.nextVideoLabel?this.nextVideoTitle?_.Ri(this.data.nextVideoLabel)+":":p8w:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var Y;if(((Y=this.data)==null?0:Y.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.F("web_mix_long_byline_from_data"))return _.i8(zHB);var G;return(G=this.data)==null?void 0:G.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O=(Y=this.data)==null?void 0:(G=Y.playlistButtons)==null?void 0:(u=G.menuRenderer)==null?void 0:u.topLevelButtons;if(O)for(Y=_.E(O),G=Y.next();!G.done;G=Y.next())if(G=G.value,G.playlistLoopButtonRenderer)return G.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var Y;return!!(this.collapsed&&((Y=this.data)==null?0:Y.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.F("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
GF.prototype.colorPaletteChanged=GF.prototype.colorPaletteChanged;GF.prototype.onPlaylistLockupNowPlaying=GF.prototype.onPlaylistLockupNowPlaying;GF.prototype.updateNowPlayingOverlay=GF.prototype.updateNowPlayingOverlay;GF.prototype.onFullscreenChanged=GF.prototype.onFullscreenChanged;GF.prototype.onFullBleedPlayerChanged=GF.prototype.onFullBleedPlayerChanged;GF.prototype.dataChanged=GF.prototype.dataChanged;GF.prototype.hiddenChanged=GF.prototype.hiddenChanged;GF.prototype.collapseChanged=GF.prototype.collapseChanged;
GF.prototype.onRenderStamperFinished=GF.prototype.onRenderStamperFinished;GF.prototype.onMouseLeave=GF.prototype.onMouseLeave;GF.prototype.onMouseEnter=GF.prototype.onMouseEnter;_.S([_.x(_.aZ),_.V("design:type",Object)],GF.prototype,"ironResizableBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],GF.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(fi_.YtPlaylistPanelBehavior),_.V("design:type",Object)],GF.prototype,"ytPlaylistPanelBehavior",void 0);_.S([_.x(_.ZA.YtTaskEmitterBehavior),_.V("design:type",Object)],GF.prototype,"ytTaskEmitterBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],GF.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],GF.prototype,"ytdReduxBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],GF.prototype,"actionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],GF.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],GF.prototype,"autoplayData",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],GF.prototype,"withinMiniplayer",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],GF.prototype,"minimizePipBreakages",void 0);
_.S([_.R({computed:"setMenuData_(data)"}),_.V("design:type",Object)],GF.prototype,"menuRendererData",void 0);_.S([_.R({computed:"computeOverflowMenuData(data)"}),_.V("design:type",Object)],GF.prototype,"overflowMenuDataTopRow",void 0);_.S([_.R({computed:"computeOverflowMenuData(data)"}),_.V("design:type",Object)],GF.prototype,"overflowMenuData",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],GF.prototype,"hideHeaderText",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],GF.prototype,"useColorPalette",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.V("design:type",Boolean)],GF.prototype,"collapsible",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],GF.prototype,"collapsed",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],GF.prototype,"hidden",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.V("design:type",Boolean)],GF.prototype,"hasPlaylistButtons",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.V("design:type",Boolean)],GF.prototype,"hasSeparateSaveButton",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.V("design:type",Boolean)],GF.prototype,"hasToolbar",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.V("design:type",String)],GF.prototype,"playlistType",void 0);_.S([_.R(),_.V("design:type",Object)],GF.prototype,"isHovered",void 0);_.S([_.R({selectorArgs:["playlistLoopStateEntityKey"],selector:_.at.playlistLoopStateEntitySelector}),_.V("design:type",Object)],GF.prototype,"playlistLoopStateEntity",void 0);_.S([_.R({computed:"computeCanReorder(data)"}),_.V("design:type",Boolean)],GF.prototype,"canReorder",void 0);
_.S([_.R(),_.V("design:type",Object)],GF.prototype,"expandLabel",void 0);_.S([_.R(),_.V("design:type",Object)],GF.prototype,"collapseLabel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],GF.prototype,"isFloating",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],GF.prototype,"metaPanel",void 0);_.S([_.R({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.V("design:type",String)],GF.prototype,"trailingIcon",void 0);
_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],GF.prototype,"isDarkTheme",void 0);_.S([_.R({selector:_.FX}),_.V("design:type",Boolean)],GF.prototype,"miniplayerIsActive",void 0);_.S([_.R({selector:function(Y){return Y.watch.playerState}}),
_.V("design:type",Number)],GF.prototype,"playerState",void 0);_.S([_.R({selector:_.pz}),_.V("design:type",Boolean)],GF.prototype,"isFullscreen",void 0);_.S([_.R({selector:_.Fm}),_.V("design:type",Boolean)],GF.prototype,"isTheaterMode",void 0);_.S([_.R(),_.V("design:type",Object)],GF.prototype,"activeNowPlayingRenderer",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],GF.prototype,"moveThreeDotMenuToTopRow",null);
_.S([_.f("data","autoplayData","playlistLoopStateEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],GF.prototype,"nextVideoTitle",null);_.S([_.f("data","nextVideoTitle"),_.V("design:type",String),_.V("design:paramtypes",[])],GF.prototype,"nextVideoLabel",null);_.S([_.f("collapsed"),_.V("design:type",String),_.V("design:paramtypes",[])],GF.prototype,"buttonAriaLabel",null);
_.S([_.f("data","playlistId","longBylineText"),_.V("design:type",Object),_.V("design:paramtypes",[])],GF.prototype,"mixLongByLine",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],GF.prototype,"playlistLoopStateEntityKey",null);_.S([_.Yo("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GF.prototype,"onMouseEnter",null);
_.S([_.Yo("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GF.prototype,"onMouseLeave",null);_.S([_.R({reflectToAttribute:!0}),_.f("data","collapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],GF.prototype,"showNextVideoHeader",null);_.S([_.Yo("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GF.prototype,"onRenderStamperFinished",null);
_.S([_.GO("collapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GF.prototype,"collapseChanged",null);_.S([_.GO("hidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GF.prototype,"hiddenChanged",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GF.prototype,"dataChanged",null);
_.S([_.f("isTheaterMode","isFullscreen"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],GF.prototype,"isFullBleedPlayer",null);_.S([_.GO("isTheaterMode","isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GF.prototype,"onFullBleedPlayerChanged",null);_.S([_.GO("isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GF.prototype,"onFullscreenChanged",null);
_.S([_.GO("playerState","miniplayerIsActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GF.prototype,"updateNowPlayingOverlay",null);_.S([_.Yo("yt-playlist-lockup-now-playing-active"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],GF.prototype,"onPlaylistLockupNowPlaying",null);
_.S([_.GO("data","isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GF.prototype,"colorPaletteChanged",null);_.S([_.pD({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],GF);
_.mKj=_.$o()(GF,"ytd-playlist-panel-renderer",function(){if(IxV===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);IxV=Y}Y=IxV;return Y},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.W0N={};
_.W0N.YtConditionalRendererBehavior=[_.c.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(Y,G){var u=this,O,Q;return _.a(function(M){switch(M.nextAddress){case 1:if(!G)return u.hidden=!0,u.showSpinner=!1,M.return();if((O=Y)==null?0:(Q=O.visibilityCondition)==null?0:Q.mode)switch(Y.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return M.jumpTo(5);default:return M.jumpTo(6)}u.showSpinner=
!1;u.hidden=!0;return M.yield(u.shouldShow_(Y),4);case 4:u.hidden=!M.yieldResult;M.jumpTo(0);break;case 5:return M.yield(u.shouldShow_(Y),8);case 8:u.showSpinner=M.yieldResult;u.hidden=!1;M.jumpTo(0);break;case 6:return u.showSpinner=!1,M.yield(u.shouldShow_(Y),9);case 9:u.hidden=!M.yieldResult,_.Sd(M)}})},
shouldShow_:function(Y){return Y&&Y.supportedDatas&&Y.supportedDatas.rendererVisibilityConditionData&&Y.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(Y.supportedDatas.rendererVisibilityConditionData.showIf):Y&&Y.visibilityCondition&&Y.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(Y.visibilityCondition.showIf):Y&&Y.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(Y.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(Y){switch(Y){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(Y){switch(Y){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var Y=_.qZ(this.hostElement,"yt-get-mdx-status");return Y.length==1&&Y[0].connected},
isLocationPermissionGranted_:function(){var Y;return _.a(function(G){return G.nextAddress==1?navigator.permissions?G.yield(navigator.permissions.query({name:"geolocation"}),3):G.jumpTo(2):G.nextAddress!=2?(Y=G.yieldResult,G.return(Promise.resolve(Y.state==="granted"))):G.return(Promise.resolve(!1))})}}];var r0V=ig1("yt-icon",{callbackProps:["onKeydown"]}),xKN=_.F("kevlar_use_wil_icons")?_.D(function(Y){var G=Y.icon;var u=Y.active;var O=Y.className;var Q=Y.style;var M=Y.title;var t=Y.size;var K=Y.dataSelected;var L=Y.dataDisabled;var g=Y.role;var P=Y.themeOverride;var I=Y.animateIcon;var k=Y.ariaHidden;var n=Y.ariaExpanded;var p=Y.ariaLabel;var W=Y.tabindex;var C=Y.id;var e=Y.iconFilter;var w=Y.gradientColor;var B=Y.onKeydown;var N=function(){var U=G==null?void 0:G(),Mj=null,Xt=void 0;U&&(U=uD_(U),
U=MBI(U),U.length&&(Mj=U[1],Xt=U[0]));return{iconName:Mj,iconSetName:Xt}},h=function(){return O6_(N().iconName,u==null?void 0:u(),void 0,t==null?void 0:t(),N().iconSetName,_.sH().resolve(_.vn))},q=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:e==null?void 0:e(),iconColor:w==null?void 0:w()}};
return _.T(_.X,{cond:I,then:function(){return _.T(r0V,{icon:G,active:u,className:O,style:Q,title:M,dataSelected:K,dataDisabled:L,role:g,themeOverride:P,ariaHidden:k,ariaExpanded:n,ariaLabel:p,tabindex:W,id:C,iconFilter:e,gradientColor:w,onKeydown:B})},
else:function(){return _.T(_.X,{cond:h,then:function(U){return _.T("span",{class:_.s3("ytIconWrapperHost",O),role:g,"aria-label":p,"aria-hidden":k,tabindex:function(){return isNaN(Number(W==null?void 0:W()))?void 0:Number(W==null?void 0:W())},
id:C,style:Q,title:M,"on:keydown":_.U3(function(Mj){return void(B==null?void 0:B(Mj))})},_.T(_.Lz,{data:U,
options:q}))}})}})},"xg"):r0V;var fxg=function(Y){var G=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];cRg();_.U5("ytglobal.ytUtilActivityCallback_",function(){_.sK(Y,"yt-user-activity")});
new vj(function(){return G.JSC$17605_onMouseMove});
document.addEventListener("scroll",function(){return G.onScroll});
window.addEventListener("resize",function(){return G.onResize})},C3b=function(Y,G,u){G in Y.eventJobIds||(u=_.FO().addLowPriorityJob(function(){_.JN();
delete Y.eventJobIds[G]},u),Y.eventJobIds[G]=u)};
fxg.prototype.onScroll=function(Y){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):Y.target===document&&C3b(this,"scroll",200)};
fxg.prototype.onResize=function(){C3b(this,"resize",200)};
fxg.prototype.JSC$17605_onMouseMove=function(){C3b(this,"mousemove",100)};
_.Sx=function(Y){Y.scrollEventsToIgnore+=1;Y.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){Y.scrollEventsToIgnore--},500))};var y0g=function(Y){this.element=Y;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
y0g.prototype.showFeedbackDialog=function(Y,G,u,O){var Q=eHg();if(!Q)return!1;var M=qf4();M.productId=Q;G&&(M.flow="submit",M.report={description:G});u&&(eHg()==="59"?M.callback=_.bi(function(){_.eK("userFeedbackEvent",{});u()}):M.callback=_.bi(u));
M.bucket=O||_.DE("GOOGLE_FEEDBACK_BUCKET","Other");A09(M);Y=o6w(this,"GFEEDBACK",Y);try{_.vDV(M,Y)}catch(t){return _.dc(t),!1}return!0};
y0g.prototype.showHelpDialog=function(Y,G,u){var O=this,Q=eHg();if(!Q)return!1;var M={helpCenterPath:"/youtube",productData:o6w(this,"GUIDED_HELP",u)};A09(M);var t=qf4();t.context=Y||M.productData.context||"default";t.defaultHelpArticleId=G;t.enableSendFeedback=!0;(_.So("gapi.load")||function(K,L){return L()})("client",function(){try{var K=laE(Q,M);
if(_.F("web_always_load_chat_support")&&!O.chatSupportLoaded)try{K.JSC$10300_loadChatSupport(t),O.chatSupportLoaded=!0}catch(L){}K.startHelp(t)}catch(L){_.dc(L)}})};
var eHg=function(){var Y=_.DE("GOOGLE_FEEDBACK_PRODUCT_ID");Y||_.dc(Error("ii"));return Y},A09=function(Y){Y&&(Y.locale=_.F("kevlar_help_use_locale")?_.DE("INNERTUBE_CONTEXT_HL","en"):_.DE("HTML_LANG","en"))},o6w=function(Y,G,u){var O=Y.productData;
delete O.origin;O.device=_.zg();var Q;a:{if(Q=document.createElement("canvas")){var M=Q.getContext("experimental-webgl",{stencil:!0});if(M){var t=M.getExtension("WEBGL_debug_renderer_info");if(t){Q=M.getParameter(t.UNMASKED_RENDERER_WEBGL);break a}}if(M=Q.getContext("webgl")){Q=M.getParameter(M.RENDERER);break a}}Q=null}O.gpu=Q;O.isSDC=!!_.DE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(Q=_.DE("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.gX.extend(O,Q);_.BP4(G,O);_.$Gt(O);(Y=_.sK(Y.element,"yt-get-autonav-pause-debug-state"))&&
Y.length&&(O.autonav_pause_state=Y[0]);Y=_.QF();O.browser_resolution=Y.width+"\u00d7"+Y.height+"@"+(window.devicePixelRatio||1)+"x";u&&_.gX.extend(O,u);return O};
y0g.prototype.resetProductData=function(){this.productData={}};var ibS=function(Y){this.feedbackManager=new y0g(Y)};
ibS.prototype.showFeedbackDialog=function(Y,G,u,O){return this.feedbackManager.showFeedbackDialog(Y,G,u,O)};
ibS.prototype.showHelpDialog=function(Y,G,u){return this.feedbackManager.showHelpDialog(Y,G,u)};var RHB=function(){this.baseUrl="";this.aTag=document.createElement("a")},wSR=function(Y,G,u){u=u===void 0?{}:u;
u.pbj||(u.pbj=1);u=_.iKT(G,u);Y.baseUrl&&u&&!_.jL(u)[1]&&!_.l7(u)&&(G=Y.baseUrl,tY(G,"/")&&(G=G.slice(0,-1)),_.EI(u,"/")&&(u=u.slice(1)),u=G+"/"+u);Y6(Y.aTag,_.qp(u||""));return Y.aTag.href};
RHB.prototype.fetchData=function(Y){return _.bwU(Y)};
RHB.prototype.postData=function(Y,G){var u={method:"POST"};if(G){for(var O=_.E(Object.keys(G)),Q=O.next();!Q.done;Q=O.next()){Q=Q.value;var M=G[Q];_.$a(M)&&(G[Q]=JSON.stringify(M))}u.postParams=G}return _.bwU(Y,u)};
_.ZEV=function(Y,G,u,O,Q){Y=wSR(Y,G,u);if(!Y)throw O=Error("ji"),Object.assign(O,{params:G}),O;return _.bwU(Y,Q,O)};
RHB.prototype.requestDataForServiceEndpoint=function(Y,G){if(_.z(Y,_.Bs1))return this.fetchData("/getAccountSwitcherEndpoint");G=G||{};var u=_.z(Y,gKT);u?G.se=u.base64EncodedServiceEndpoint:G.sej=JSON.stringify(Y);(u=_.FA())&&_.F("enable_service_ajax_csn")&&(G.csn=u);G.theme=_.x3();_.z(Y,VA4)&&_.DE("DELEGATION_CONTEXT")&&(G.delegation_context=JSON.stringify(_.DE("DELEGATION_CONTEXT")));u=null;for(var O in Y)if(tY(O,"Endpoint")||tY(O,"Command")){u=O;break}if(!u){var Q=Error("ki");Object.assign(Q,{params:Y});
_.e_I(Q,"WARNING");return new _.a0(function(t,K){K(Q)})}O={name:u};
var M;(u=(M=_.z(Y,_.Gb))==null?void 0:M.signal)&&(O.signal=u);(M=_.li(window.location.href))&&M.internalcountrycode&&(O.internalcountrycode=M.internalcountrycode);M="/service_ajax";_.F("debug_forward_web_query_parameters")&&(M=_.$ut(M,window.location.search));M=_.JD(M,O);Y.clickTrackingParams&&_.hv(M,{itct:Y.clickTrackingParams});return this.postData(M,G)};_.w8o=new _.Sb("GFEEDBACK_TOKEN");var Zbg;var DK9;var hHy;var dKx;var ut=function(){var Y=_.Z.apply(this,arguments)||this;Y.compact=!1;Y.dismissButtonDisabled=!1;Y.shouldRenderReasonAsFormattedString=!_.F("web_player_error_message_reason_as_formatted_string_killswitch");return Y};
_.m(ut,_.Z);ut.prototype.computeHasIcon_=function(Y){return!!Y};
ut.prototype.isSignInIcon_=function(Y){return Y=="yt-icons:prompted_sign_in"};
ut.prototype.onDismissButtonClick=function(){var Y=this,G=this.data.disableOnClick,u,O=(u=this.data.dismissButton)==null?void 0:u.buttonRenderer;G&&!this.dismissButtonDisabled&&O&&setTimeout(function(){Y.dismissButtonDisabled=!0},0)};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.W0N.YtConditionalRendererBehavior),_.V("design:type",Object)],ut.prototype,"ytConditionalRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ut.prototype,"data",void 0);_.S([_.R({computed:"computeIcon_(data.icon)"}),_.V("design:type",Object)],ut.prototype,"icon_",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.V("design:type",Boolean)],ut.prototype,"hasIcon_",void 0);_.S([_.R({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.V("design:type",Boolean)],ut.prototype,"signInIcon_",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ut.prototype,"compact",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ut.prototype,"dismissButtonDisabled",void 0);
_.S([_.R({type:Boolean}),_.V("design:type",Object)],ut.prototype,"shouldRenderReasonAsFormattedString",void 0);_.S([_.Ff({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],ut);
_.d(ut,"yt-player-error-message-renderer",function(){if(dKx===void 0){var Y=document.createElement("template");_.r(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" 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    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;hHy===void 0&&(hHy=document.createElement("template"));var O=hHy;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);dKx=Y}Y=dKx;return Y},{mode:2});var bbb;var Sry;var OF=function(){return _.Z.apply(this,arguments)||this};
_.m(OF,_.Z);OF.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
OF.prototype.computeIcon_=function(Y){return Y?"yt-icons:"+Y.iconType.toLowerCase():"error_outline"};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],OF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],OF.prototype,"data",void 0);_.S([_.R({computed:"computeIcon_(data.icon)"}),_.V("design:type",Object)],OF.prototype,"icon_",void 0);_.S([_.Ff({is:"yt-player-kav-renderer",disableElementRegistration:!0})],OF);
_.d(OF,"yt-player-kav-renderer",function(){if(Sry===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;bbb===void 0&&(bbb=document.createElement("template"));var O=bbb;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Sry=Y}Y=Sry;return Y},{mode:2});var UGU=_.hV(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.hR(_.D(function(Y){var G=_.CH("div"),u=_.E(_.IE(0,void 0,"jxh75d")),O=u.next().value,Q=u.next().value;u=_.E(_.IE(null,void 0,"F5Zm8"));var M=u.next().value,t=u.next().value;_.ii(function(){v_t(G.value,Q,t);G.value.scrollIntoView()});
u=J8j.bind(null,Y.data,O);_.sV("resize",function(){var K=M();if(O()===1&&K!==null){var L;(L=window.grecaptcha)==null||L.reset(K)}});
return _.T("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.T("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.T("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var K,L;return(K=Y.data().accessibility)==null?void 0:(L=K.accessibilityData)==null?void 0:L.label}),_.T(_.eO,{text:u,
className:_.s3("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.T("div",{el:G,class:"ytwPlayerCaptchaViewModelGridItem"})))},"yg"),"yt-player-captcha-view-model",{props:{data:_.wH}});var YXA=!1;_.Ntj=_.D(function(Y){var G=Y.data;return _.T("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.T(_.X,{cond:function(){return G().icon},
then:function(u){return _.T("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.T(_.RD,{data:u,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.T(_.X,{cond:function(){return G().title},
then:function(u){return _.T("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.T(_.eO,{text:u}))}}),_.T(_.X,{cond:function(){return G().description},
then:function(u){return _.T("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.T(_.eO,{text:u}))}}),_.T(_.HE,{data:function(){return G().primaryButton}},{buttonViewModel:function(u){return _.T(_.$Y,{data:u.data,
className:"interstitialViewModelFlexItem"})}}),_.T(_.HE,{data:function(){return G().secondaryButton}},{buttonViewModel:function(u){return _.T(_.$Y,{data:u.data,
className:"interstitialViewModelFlexItem"})}}))},"zg");
_.Ntj.idomCompat=!0;var jAy=_.D(function(Y){var G=Y.data;_.w4();return _.T("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.T("div",{class:"playerInterstitialRendererScrim"},_.T(_.HE,{data:function(){return G().content}},{interstitialViewModel:_.Ntj})))},"Ag");
jAy.idomCompat=!0;_.hR(jAy,"yt-player-interstitial-renderer",{props:{data:_.AC}});var Qp=function(){var Y=_.Z.apply(this,arguments)||this;Y.noBackground=!1;Y.compact=!1;Y.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return Y};
_.m(Qp,_.Z);Qp.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"}}}};
Qp.prototype.onUpdatePlayerErrorMessageCommand_=function(Y){if(_.z(Y,WBI)){var G;if(Y=(G=_.z(Y,WBI))==null?void 0:G.newPlayerErrorMessageRenderer)this.data=Y}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Qp.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Qp.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Qp.prototype,"status",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Qp.prototype,"noBackground",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Qp.prototype,"compact",void 0);_.S([_.Ff({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Qp);
var Vdx=_.$o()(Qp,"yt-playability-error-supported-renderers",function(){if(DK9===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Zbg===void 0&&(Zbg=document.createElement("template"));var O=Zbg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);DK9=Y}Y=DK9;return Y},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var lx9=ig1("ytd-button-renderer");var Guu=void 0,OsY=void 0;var Hst=new yNR;var Un=new _.Sb("ENTITY_STATE_TOKEN"),Mr=new _.Sb("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Bt9=function(Y){this.store=Y;this.iAC=new _.oqV},tR2=function(Y,G,u){var O,Q;
if(!(Q=((O=G.playabilityStatus)==null?void 0:O.status)!=="OK")){Y=Y.store;var M;Q=G.offlineState&&((M=G.videoDetails)==null?0:M.videoId)?_.F("enable_pl_r_c_cd")?NMT(Y.getState().entities,G.videoDetails.videoId):!!PAA(Y.getState().entities,G.videoDetails.videoId):!1}if(Q)return!0;Q=azU(G);if(Q===1){if(_.F("ab_v_vid_sig")){var t,K=(t=G.videoDetails)==null?void 0:t.videoId;if(!K||!u||K!==u){var L;G=new _.I2("282054944_vid",{pFZ:u,fcY:(L=G.videoDetails)==null?void 0:L.videoId});_.o0(G)}}return!0}e7g=
0;var g,P;L=(K=G.auxiliaryUi)==null?void 0:(g=K.messageRenderers)==null?void 0:(P=g.bkaEnforcementMessageViewModel)==null?void 0:P.displayType;if(Q!==3&&(L==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||L==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;L={reason:_.Sy(_.Q6("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.F("ks_something_wrong_learn_more")?I6u("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Sy(_.Q6("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:_.Sy("282054944")};$KV(G,{playerErrorMessageRenderer:L});return!1},KEe=function(Y,G){if($ht(G)){_.vC(1,!0);
var u=(u=$ht(G))&&_.uIt()?u:void 0;u?($KV(G,{enforcementMessageViewModel:u}),Y.iAC.increment("IN_PLAYER"),_.vC(5)):(Y.iAC.increment("SKIP_DISPLAY"),_.vC(2))}},$KV=function(Y,G){Y.playabilityStatus=Object.assign({},Y.playabilityStatus,{status:"ERROR",
errorScreen:G});Y.videoDetails=void 0};
Bt9.prototype.handleResponse=function(Y,G){if(Y.playabilityStatus){var u,O,Q,M=(G==null?void 0:(u=G.innerTubeRequest)==null?void 0:u.videoId)||(G==null?void 0:(O=G.innerTubeRequest)==null?void 0:(Q=O.playerRequest)==null?void 0:Q.videoId);tR2(this,Y,M)&&KEe(this,Y)}};
Bt9[c4]=[Un];var HT1=new _.Sb("ADBLOCK_DETECTION_SERVICE_TOKEN");var b6=function(Y){this.atu=Y};
b6.prototype.bindInnertubeChallengeFetcher=function(Y){this.atu.bicf(Y)};
b6.prototype.registerChallengeFetchedCallback=function(Y){this.atu.bcr(Y)};
b6.prototype.getLatestChallengeResponse=function(){return this.atu.blc()};var qrw;qrw=_.hV(["https://static.doubleclick.net/instream/ad_status.js"]);_.sAN=_.fO(qrw);var J0o;
_.HQ=function(Y,G,u){var O=this;this.network=Y;this.options=G;this.networkStatusManager=u;this.jU6=0;this.es=null;this.wu7=new iqT;if(G.useBotguardEverywhere){var Q=new _.sG;this.es=Q.promise;_.OI.ytAtRC?_.Ti(_.AN,function(){var M,t;return _.a(function(K){if(K.nextAddress==1){if(!_.OI.ytAtRC)return O.wu7.increment(1,O.jU6++),K.return();O.wu7.increment(2,O.jU6++);M=c0x(null);return K.yield(O.t6U(M),2)}t=K.yieldResult;_.OI.ytAtRC&&_.OI.ytAtRC(JSON.stringify(t));_.Sd(K)})}):this.wu7.increment(1,this.jU6++);
Izg().then(function(M){var t,K,L,g;return _.a(function(P){if(P.nextAddress==1)return M.bindInnertubeChallengeFetcher(function(I){O.wu7.increment(3,O.jU6++);return O.t6U(c0x(I))}),P.yield(W1Y(),2);
t=P.yieldResult;K=M.getLatestChallengeResponse();L=K.challenge;if(!L)throw Error("mi");g={challenge:L,gB:hL(L),vm:t,bgChallenge:new ZL};Q.resolve(g);M.registerChallengeFetchedCallback(function(I){I=I.challenge;if(!I)throw Error("ni");I={challenge:I,gB:hL(I),vm:t,bgChallenge:new ZL};O.es=Promise.resolve(I)});
_.Sd(P)})})}else G.preload&&UKN(this,new Promise(function(M){_.WY(_.AN,function(){M(v6y(O))},0)}))};
J0o=function(Y){var G={preload:!0,useBotguardEverywhere:!0},u=!1;if(typeof G==="boolean")var O={preload:G};else typeof G==="undefined"?O={preload:!0}:(O=G,u=!!G.g1U);G=u?void 0:new _.lB;_.HQ.instance=new _.HQ(Y,O,G);return _.HQ.instance};
_.HQ.prototype.qGu=function(){var Y=this;return _.a(function(G){return G.nextAddress==1?G.yield(Promise.race([Y.es,null]),2):G.return(!!G.yieldResult)})};
_.HQ.prototype.nkt=function(Y,G,u){var O=this,Q,M,t;return _.a(function(K){O.es===null&&UKN(O,v6y(O));Q=!1;M={};t=function(){var L,g,P,I,k;return _.a(function(n){switch(n.nextAddress){case 1:if(!O.options.oCt||!O.options.useBotguardEverywhere){n.jumpTo(2);break}return n.yield(PZt(),3);case 3:return L=n.yieldResult,n.yield((g=L)==null?void 0:g.checkForRefresh(),2);case 2:return n.yield(O.es,5);case 5:P=n.yieldResult;M.challenge=P.challenge;if(!P.vm){"c1a"in P.gB&&(M.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
n.jumpTo(6);break}I=Object.assign({},{c:P.challenge,e:Y},G);_.i3(n,7);Q=!0;return n.yield(P.vm.snapshot({eh:I}),9);case 9:(k=n.yieldResult)?M.webResponse=k:M.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.j1(n,6);break;case 7:_.b3(n),M.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(Y==="ENGAGEMENT_TYPE_PLAYBACK"){var p=P.gB,W={};if(p.c6a){var C=Number(_.DE("DCLKSTAT",0));W.reportingStatus=String(Number(p.c)^(isNaN(C)?0:C))}p.c6b&&(W.broadSpectrumDetectionResult=String(Number(p.c)^Number(_.DE("CATSTAT",
0))));M.adblockReporting=W}return n.return(M)}})};
return K.return(Promise.race([t(),Ysj(u,function(){var L=Object.assign({},M);Q&&(L.error="ATTESTATION_ERROR_VM_TIMEOUT");return L})]))})};
var c0x=function(Y){var G={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};Y&&(G.interpreterHash=Y);return G},v6y=function(Y,G){G=G===void 0?0:G;
var u,O,Q,M,t,K,L,g,P,I,k,n;return _.a(function(p){switch(p.nextAddress){case 1:u=c0x(AdR().mBc);if(_.F("att_fet_ks"))return _.i3(p,7),Y.wu7.increment(5,Y.jU6++),p.yield(Y.t6U(u),9);_.i3(p,4);return p.yield(Gdb(Y,u),6);case 6:t=p.yieldResult;Q=t.vNY;M=t.sLA;O=t;_.j1(p,3);break;case 4:return _.b3(p),_.R0(Error("oi`"+G)),uQg(Y,864E5),p.return({challenge:"",gB:{},vm:void 0,bgChallenge:void 0});case 9:O=p.yieldResult;if(!O)throw Error("pi");if(!O.challenge)throw Error("qi");Q=O.challenge;M=hL(Q);if("c1a"in
M&&(!O.bgChallenge||!O.bgChallenge.program))throw Error("ri");_.j1(p,3);break;case 7:K=_.b3(p);_.R0(K);G++;if(G>=5)return _.R0(Error("oi`"+G)),uQg(Y,864E5),p.return({challenge:"",gB:{},vm:void 0,bgChallenge:void 0});L=1E3*Math.pow(2,G-1)+Math.random()*1E3;return p.return(new Promise(function(W){_.WY(_.AN,function(){W(v6y(Y,G))},L)}));
case 3:g=Xog(M);uQg(Y,g*1E3);P=void 0;if(!("c1a"in M&&O.bgChallenge)){p.jumpTo(10);break}I=gLu(O.bgChallenge);_.i3(p,11);return p.yield(iGI(AdR(),I),13);case 13:_.j1(p,12);break;case 11:return k=_.b3(p),_.R0(k),p.return({challenge:Q,gB:M,vm:P,bgChallenge:I});case 12:return _.i3(p,14),P=new _.oO({challenge:I,aFH:{tO:"aGIf"}}),p.yield(P.m7U,16);case 16:_.j1(p,10);break;case 14:n=_.b3(p),_.R0(n),P=void 0;case 10:return p.return({challenge:Q,gB:M,vm:P,bgChallenge:I})}})},OOx=function(Y,G){var u;
return _.a(function(O){if(O.nextAddress==1)return d4(2),_.i3(O,2),O.yield(Y.network.t6U(G),4);if(O.nextAddress!=2)return(u=O.yieldResult)?u.challenge&&!u.bgChallenge?d4(1):d4(4):d4(3),O.return(u);_.b3(O);d4(3);return O.return(void 0)})};
_.HQ.prototype.t6U=function(Y){var G=this,u;return _.a(function(O){u=G.networkStatusManager;if(!u||u.isNetworkAvailable())return O.return(OOx(G,Y));_.m7("att_pna",void 0,"attestation_challenge_fetch");return O.return(new Promise(function(Q){u.listenOnce("publicytnetworkstatus-online",function(){OOx(G,Y).then(Q)})}))})};
var QBb=function(Y){if(!Y)throw Error("pi");if(!Y.challenge)throw Error("qi");var G=Y.challenge,u=hL(G);if("c1a"in u&&(!Y.bgChallenge||!Y.bgChallenge.program))throw Error("ri");return Object.assign({},Y,{vNY:G,sLA:u})},Gdb=function(Y,G){var u,O,Q,M,t;
return _.a(function(K){switch(K.nextAddress){case 1:u=void 0,O=0,Q={};case 2:if(!(O<5)){K.jumpTo(4);break}if(!(O>0)){K.jumpTo(5);break}Q.lZK=1E3*Math.pow(2,O-1)+Math.random()*1E3;return K.yield(new Promise(function(L){return function(g){_.WY(_.AN,function(){g(void 0)},L.lZK)}}(Q)),5);
case 5:return _.i3(K,7),Y.wu7.increment(4,Y.jU6++),K.yield(Y.t6U(G),9);case 9:return M=K.yieldResult,K.return(QBb(M));case 7:u=t=_.b3(K),t instanceof Error&&_.R0(t);case 8:O++;Q={lZK:void 0};K.jumpTo(2);break;case 4:throw u;}})},UKN=function(Y,G){Y.es=G},MLx=function(Y){var G,u,O;
return _.a(function(Q){if(Q.nextAddress==1)return Q.yield(Promise.race([Y.es,null]),2);G=Q.yieldResult;var M=v6y(Y);Y.es=M;(u=G)==null||(O=u.vm)==null||O.dispose();_.Sd(Q)})},uQg=function(Y,G){var u=Date.now()+G,O=function(){var Q;
return _.a(function(M){Q=u-Date.now();return Q<1E3?M.yield(MLx(Y),0):(_.WY(_.AN,O,Math.min(Q,6E4)),M.jumpTo(0))})};
O()},Ysj=function(Y,G){return new Promise(function(u){_.WY(_.AN,function(){u(G())},Y)})};var HOb=function(){};
HOb.prototype.processContext=function(Y){var G=_.HQ.instance;if(!G)return _.wu();var u=m_Y(Y);return u?new R_(G.nkt(u,FXa(Y),500).then(function(O){var Q;(Y==null?0:(Q=Y.innerTubeRequest)==null?0:Q.context)||(Y.innerTubeRequest.context={});Q=Y.innerTubeRequest.context;Q.request||(Q.request={});Q.request.attestationResponseData=O})):_.wu()};var ExB=function(Y){this.innertubeTransportService=Y};
ExB.prototype.t6U=function(Y){_.m7("att_fsr",void 0,"attestation_challenge_fetch");return _.Cl(this.innertubeTransportService,Y,_.Ds(_.R7R)).then(function(G){_.m7("att_frr",void 0,"attestation_challenge_fetch");return G})};_.tLN=function(Y){this.innertubeTransportService=Y};var KSN=new _.Sb("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var aGN=function(){},LSN=function(Y,G,u,O,Q){var M=_.DE("YPC_MB_URL");
_.tWI(M).then(function(){TgB(M,Y,G,u,O,Q)})},TgB=function(Y,G,u,O,Q,M){try{var t=_.BU.payments.business.integration,K=_.BU.payments.business.integration.Style.create().withMaterialDesignStyle(),L=t.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.F("enable_window_constrained_buy_flow_dialog")&&(L=L.usingPopupStyle("windowConstrained"));M&&(L=L.usingCloseCallback(M));var g=u?u:_.DE("YPC_GB_LANGUAGE"),P=_.DE("SESSION_INDEX");t.bootstrap.fromPaymentsUrl(Y);t.bootstrap.asMashupMode(L).usingGaiaIndex(P).usingLocale(g).usingStyle(K).usingDefaultActivityStatusChangeHandler().inStandaloneContext(t.standaloneContextAuthId.forGaia()).purchaseManager(G,function(I){O&&O(I)}).load(void 0,Q)}catch(I){throw Q&&Q(I),_.o0(I),I;
}};var gxx=new _.Sb("PURCHASE_MANAGER_TOKEN");var XIb=function(){var Y=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return Y.videos},
getContinuationsPresent:function(){return Y.continuationsPresent},
setVideos:function(G){Y.videos=G},
getRecommendedVideos:function(){return Y.recommendedVideos},
setRecommendedVideos:function(G){Y.recommendedVideos=G}}};
XIb.prototype.addVideos=function(Y){Y&&(this.videos=Y.filter(function(G){return!!_.rxa(G)}).map(function(G){var u=_.rxa(G);
a:{var O;if(G.playlistVideoRenderer&&((O=G.playlistVideoRenderer)==null?0:O.voteSortTiebreaker))var Q=G.playlistVideoRenderer.voteSortTiebreaker;else{if(_.z(G,NF)){var M;if(O=(Q=_.z(G,NF))==null?void 0:(M=Q.playlistItemData)==null?void 0:M.voteSortTiebreaker){Q=O;break a}}Q=""}}return{itemId:u,videoId:_.CZt(G),voteCount:_.yxt(G),voteSortTiebreaker:Q}}),this.continuationsPresent=!!_.z(Y[Y.length-1],_.l6))};
var P7w=function(Y,G){return Y.videos.findIndex(function(u){return u.itemId===G})},IGw=function(Y,G){return Y.recommendedVideos.findIndex(function(u){return u.itemId===G})},kdS=function(Y){Y={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:Y}}}}};_.sH().resolve(_.rH).resolveCommand(Y)};var nx9=function(){XIb.apply(this,arguments)};
_.m(nx9,XIb);
var hnR=function(Y,G,u,O){if(!Y.parentElem)throw Error("wi");var Q=P7w(Y,G);Q===-1&&(Q=IGw(Y,G),Q=Q!==-1?Q+Y.videos.length:-1);if(Q===-1)throw Error("xi");var M=Q>=Y.videos.length?Y.recommendedVideos[Q-Y.videos.length]:Y.videos[Q];M.voteCount=u;M.voteSortTiebreaker=Date.now().toString();Q>=Y.videos.length?Y.recommendedVideos.splice(Q-Y.videos.length,1):Y.videos.splice(Q,1);var t=Y.videos;for(var K=0,L=t.length-1;K<=L;){var g=Math.floor((K+L)/2);if(t[g].voteCount<M.voteCount)L=g-1;else if(t[g].voteCount>M.voteCount)K=
g+1;else{a:{var P=M.voteSortTiebreaker;var I=t[g].voteSortTiebreaker;if(P.length!==I.length)P=P.length>I.length;else{for(var k=0;k<P.length;k++){var n=P.charCodeAt(k),p=I.charCodeAt(k);if(n>p){P=!0;break a}if(n<p)break}P=!1}}P?L=g-1:K=g+1}}t=K;if(t===-1)throw Error("yi");Y.videos.splice(t,0,M);Q!==t&&FSV(Y,Q,t,G,u,O)},FSV=function(Y,G,u,O,Q,M){var t,K=(t=Y.parentElem)==null?void 0:t.children,L=Math.min(G,u),g=Math.max(G,u);
if(K)for(t=L;t<=g;t++)K[t].style.viewTransitionName="item-"+String(t);document.startViewTransition(function(){if(Y.parentElem){var P=Y.parentElem.children;if(!(!P||G<0||G>=P.length||u<0||u>=P.length)){var I=P[G];if(I){I.remove();Y.showRefreshPill=u>=Y.videos.length-1&&Y.continuationsPresent;if(!Y.showRefreshPill){P=P[u]||null;var k;(k=Y.parentElem)==null||k.insertBefore(I,P)}_.$s(Y.parentElem,"yt-update-video-data-voting-animation",{toIdx:u,itemId:O,newVoteCount:Q,voteStatus:M,hideItem:Y.showRefreshPill})}}}}).finished.then(function(){if(K)for(var P=
L;P<=g;P++)K[P].style.viewTransitionName="";
if(Y.showRefreshPill)kdS(_.Q6("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var I;if(I=P=(I=Y.parentElem)==null?void 0:I.children[u])I=P.getBoundingClientRect(),P=I.bottom,I=!(I.top>=0&&P<=Y.clientHeight);I&&(I=_.Mu(G>u?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(G-u)),kdS(I))}})};var mIx=function(Y,G){var u=this;Y?this.innertubeTransportServicePromise=Promise.resolve(Y):G&&(this.innertubeTransportServicePromise=G(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new VD(3E3,function(O){return pIV(u,O)},0);
this.validateMiniAppVideoIdRateLimiter=new VD(3E3,function(O){return zoS(u,O)},1)},Jzo=function(Y,G){Y.JSC$17722_miniAppId=G;
Y.reportMiniAppValueRateLimiter=new VD(3E3,function(u){return pIV(Y,u)},0);
Y.validateMiniAppVideoIdRateLimiter=new VD(3E3,function(u){return zoS(Y,u)},1)},Goj=function(Y,G){var u;
return _.a(function(O){if(O.nextAddress==1)return O.yield(Y.reportMiniAppValueRateLimiter.call(G),2);u=O.yieldResult;return O.return([u,G])})},pIV=function(Y,G){var u,O,Q,M,t,K,L;
return _.a(function(g){switch(g.nextAddress){case 1:return g.yield(Y.innertubeTransportServicePromise,2);case 2:return u=g.yieldResult,O=_.Ds(b0_),Q=Date.now(),M={externalPostId:Y.JSC$17722_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(Q/1E3),nanos:Math.round(Q%1E3*1E6)},intValue:""+G}},_.i3(g,3),g.yield(_.Cl(u,M,O),5);case 5:t=g.yieldResult;_.j1(g,4);break;case 3:throw K=_.b3(g),K;case 4:if(t){if("error"in t&&t.error)throw t.error;if(t.errorMetadata)throw Error("zi`"+
t.errorMetadata.status);if(L=t.userStatResult)return g.return(L);throw Error("Ai");}throw Error("Bi");}})},ObN=function(Y){var G,u,O,Q,M;
_.a(function(t){switch(t.nextAddress){case 1:return t.yield(Y.innertubeTransportServicePromise,2);case 2:return G=t.yieldResult,u=_.Ds(b0_),O={externalPostId:Y.JSC$17722_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.i3(t,3),t.yield(_.Cl(G,O,u),5);case 5:Q=t.yieldResult;_.j1(t,4);break;case 3:throw M=_.b3(t),M;case 4:if(Q==null)throw Error("Bi");if("error"in Q&&Q.error)throw Q.error;if(Q.errorMetadata)throw Error("zi`"+Q.errorMetadata.status);_.Sd(t)}})};
mIx.prototype.flush=function(){var Y=this;return _.a(function(G){return G.nextAddress==1?G.yield(Y.reportMiniAppValueRateLimiter.flush(),2):G.yield(Y.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var uHj=function(Y,G){return _.a(function(u){return u.nextAddress==1?u.yield(Y.validateMiniAppVideoIdRateLimiter.call(G),2):u.return(u.yieldResult)})},zoS=function(Y,G){var u,O,Q,M,t,K;
return _.a(function(L){switch(L.nextAddress){case 1:return L.yield(Y.innertubeTransportServicePromise,2);case 2:return u=L.yieldResult,O=_.Ds(oQk),Q={videoId:G},_.i3(L,3),L.yield(_.Cl(u,Q,O),5);case 5:M=L.yieldResult;_.j1(L,4);break;case 3:throw t=_.b3(L),t;case 4:if(M){if("error"in M&&M.error)throw M.error;if(M.errorMetadata)throw Error("zi`"+M.errorMetadata.status);if(K=M.playabilityStatus)return L.return(K.status);throw Error("Ci");}throw Error("Bi");}})};
mIx[c4]=[_.q3(_.KB),_.q3(giT)];var WSo=function(){this.clientData=new Map};
WSo.prototype.getData=function(Y){return this.clientData.get(Y)};var rDb=function(Y){this.store=Y};
rDb.prototype.handleResponse=function(Y){(Y=_.z(Y.frameworkUpdates,wE))&&_.OG(Y,this.store)};
rDb[c4]=[_.Fk];var xIb=new _.Sb("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var fGy,C7j,yDx;_.EF=new _.Sb("FLOW_STATE_MANAGER_TOKEN");fGy=function(){this.flowStates=new Map};
C7j=function(Y,G){Y=_.E(Y.flowStates.values());for(var u=Y.next();!u.done;u=Y.next())if(u=u.value,u.flowRenderer.targetId===G)return u};
yDx=function(Y,G){var u,O=((u=Y.flowRenderer.steps)!=null?u:[]).filter(function(Q){return!G.includes(_.z(Q,_.TG).stepId)});
Y.flowRenderer.steps=O};var eoN=function(Y){this.JSC$17746_flowStateManager=Y};
_.m(eoN,iL);eoN.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K;return _.a(function(L){u=_.z(Y,bMR);Q=(O=u)==null?void 0:O.stepIds;t=(M=u)==null?void 0:M.targetId;if(!Q||!t)return L.return();K=C7j(G.JSC$17746_flowStateManager,t);if(!K)return L.return();yDx(K,Q);_.Sd(L)})};
var tk=function(){eoN.apply(this,arguments)};
_.m(tk,eoN);tk[c4]=[_.EF];var ADo=function(Y,G){this.JSC$17752_reduxStore=Y;this.JSC$17752_flowStateManager=G};
_.m(ADo,iL);
ADo.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K,L,g,P,I,k,n,p;return _.a(function(W){u=_.z(Y,_.SE4);O=u.stepId;Q=u.targetId;M=C7j(G.JSC$17752_flowStateManager,Q);K=(t=M)==null?void 0:t.flowRenderer;L=K.flowStateEntityKey;g=_.j8(G.JSC$17752_reduxStore.getState(),L);if(!g)return W.return();P=g.currentStepId;n=(k=(I=g)==null?void 0:I.stepIdStack)!=null?k:[];p=P===n[n.length-1]?O:P;G.JSC$17752_reduxStore.dispatch(_.zP("flowStateEntity",L,{currentStepId:O,stepIdStack:[p]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.Sd(W)})};
var Kg=function(){ADo.apply(this,arguments)};
_.m(Kg,ADo);Kg[c4]=[_.Fk,_.EF];var oxg=function(Y,G,u){this.JSC$17759_reduxStore=Y;this.JSC$17759_flowStateManager=G;this.JSC$17759_commandHandler=u};
_.m(oxg,iL);
oxg.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L,g,P,I,k,n,p,W;return _.a(function(C){O=_.z(Y,_.Nx_);Q=O.targetId;M=C7j(u.JSC$17759_flowStateManager,Q);K=(t=M)==null?void 0:t.flowRenderer;L=K.flowStateEntityKey;g=_.j8(u.JSC$17759_reduxStore.getState(),L);k=[].concat(_.c8((I=(P=g)==null?void 0:P.stepIdStack)!=null?I:[]));n=k.pop();((p=g)==null?void 0:p.currentStepId)===n&&(n=k[k.length-1]);if(!n)return(W=O.onFirstStepCommand)&&u.JSC$17759_commandHandler.resolveCommand(W,G),C.return();
u.JSC$17759_reduxStore.dispatch(_.zP("flowStateEntity",L,{currentStepId:n,stepIdStack:k}));_.Sd(C)})};
var aJ=function(){oxg.apply(this,arguments)};
_.m(aJ,oxg);aJ[c4]=[_.Fk,_.EF,_.rH];var iON=function(Y,G){this.innertubeTransportService=Y;this.JSC$17764_commandHandler=G};
_.m(iON,iL);iON.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K;return _.a(function(L){if(L.nextAddress==1){O=_.z(Y,jZI);if(!O)return L.return();_.i3(L,2);return L.yield(_.iv(u.innertubeTransportService,Y),4)}if(L.nextAddress!=2){Q=L.yieldResult;if(!Q)return L.return();(M=Q.updateFlowCommand)&&u.JSC$17764_commandHandler.resolveCommand(M,G);return _.j1(L,0)}_.b3(L);(K=(t=O)==null?void 0:t.onFailureCommand)&&u.JSC$17764_commandHandler.resolveCommand(K,G);_.Sd(L)})};
var TF=function(){iON.apply(this,arguments)};
_.m(TF,iON);TF[c4]=[_.KB,_.rH];var Roy=function(Y,G){this.JSC$17770_flowStateManager=Y;this.JSC$17770_commandHandler=G};
_.m(Roy,iL);
Roy.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t;return _.a(function(K){O=_.z(Y,_.lhR);Q=O.targetId;M=C7j(u.JSC$17770_flowStateManager,Q);if(!M)return K.return(Promise.resolve());var L=M,g=(t=O.steps)!=null?t:[],P=[],I=new Map;g=_.E(g);for(var k=g.next();!k.done;k=g.next())k=k.value,I.set(_.z(k,_.TG).stepId,k);var n;g=(n=L.flowRenderer.steps)!=null?n:[];n=_.E(g);for(g=n.next();!g.done;g=n.next())g=g.value,k=_.z(g,_.TG).stepId,I.has(k)?(P.push(I.get(k)),I.delete(k)):P.push(g);P.push.apply(P,
_.c8(I.values()));L.flowRenderer.steps=P;O.flowContinuationCommand&&(M.flowRenderer.flowContinuationCommand=O.flowContinuationCommand);O.entityUpdateCommand&&u.JSC$17770_commandHandler.resolveCommand(O.entityUpdateCommand,G);return K.return(Promise.resolve())})};
var Lg=function(){Roy.apply(this,arguments)};
_.m(Lg,Roy);Lg[c4]=[_.EF,_.rH];var wIN={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]],android_messenger:[[0,1,192]],"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 ZON=new _.Sb("ICON_SET_TOKEN"),DIN=new _.Sb("ICON_URL_PROVIDER_TOKEN"),hox=new _.Sb("PREFETCH_ICONS_TOKEN"),dIN=new _.Sb("ICON_MAP_FN_TOKEN");var gl={},bOo=(gl.ACCESS_TIME="clock",gl.ACCOUNT_BOX=_.DE("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",gl.ACCOUNT_BOX_CAIRO="person_account_cairo",gl.ACCOUNT_CIRCLE="person_circle",gl.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",gl.ACCOUNT_LINKED="account_link_success",gl.ACCOUNT_UNLINKED="account_link",gl.ADD_FRIEND="people",gl.ADD_MODERATOR="shield_add",gl.ADD_TO_LIBRARY="bookmark",gl.ADD_TO_PLAYLIST="add",gl.ADD_TO_QUEUE_TAIL="list_queue",gl.ADD_TO_REMOTE_QUEUE="list_music",
gl.ADD_TO_WATCH_LATER="clock",gl.ADD_VIDEO_LINK="film_strip_add",gl.ALERT_WARN_RED="alert_triangle",gl.ARROW_BACK="arrow_left",gl.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",gl.ARROW_DROP_DOWN="chevron_down",gl.ARROW_DROP_UP="chevron_up",gl.ARROW_FORWARD="arrow_right",gl.ARTIST="person_music",gl.AUDIOTRACK="audio",gl.AUTO_AWESOME="sparkle",gl.AVATAR_ANONYMOUS="person_circle",gl.AVATAR_LOGGED_OUT="person_circle",gl.BACK="arrow_left",gl.BAR_CHART="bar_graph",gl.BLOCK="slash_circle_left",
gl.BLOCK_USER="slash_circle_left",gl.BOOKMARK_BORDER="bookmark",gl.BREAKING_NEWS_ALT_1="article_alert",gl.BROADCAST_CAIRO="podcast_cairo",gl.BUG_REPORT="bug",gl.CAMERA_ALT="camera",gl.CAMPAIGN="megaphone",gl.CANCEL="x_circle",gl.CAPTIONS="closed_caption",gl.CAST_OUTLINE="chromecast",gl.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",gl.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",gl.CHAT="message_bubble_left",gl.CHAT_BUBBLE="message_bubble_empty",gl.CHAT_SPARK="spark_message_bubble_left",gl.CHECK_BOX_OUTLINE_BLANK=
"box_empty",gl.CHECK_CIRCLE_OUTLINE="check_circle",gl.CHECK_CIRCLE_THICK="check_circle",gl.CLARIFY="article_clarify",gl.CLOSED_CAPTION_SELECTED="closed_caption",gl.CLOSE="x_mark",gl.CLOUD_UPLOAD="cloud_arrow_up",gl.COLLAPSE="chevron_up",gl.COLLAPSE_CAIRO="chevron_up_cairo",gl.COLLECTION="layers",gl.COLOR_LENS="palette",gl.COMMENT="message_bubble_right",gl.CONSENT_SHIELD="person_shield",gl.CONTENT_CUT="scissors",gl.CONTENT_CUT_CAIRO="scissors_cairo",gl.COURSE=_.F("web_enable_course_icon_update")?"creator_academy":
"lightbulb",gl.COURSE_CAIRO=_.F("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",gl.CREATION_LIVE="radar_live",gl.CREATION_POST="box_pencil",gl.CREATION_UPLOAD="my_videos",gl.CREATION_UPLOAD_RED="upload",gl.CREATOR_METADATA_MONETIZATION="dollar_sign",gl.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",gl.CREATOR_STUDIO="youtube_studio",gl.DASHBOARD="grid_asymmetrical",gl.DELETE="trash_can",gl.DELETE_SWEEP="trash_can",gl.DESKTOP="laptop",gl.DISLIKE="thumb_down",gl.DISLIKE_SELECTED=
"thumb_down",gl.DISMISSAL="x_mark",gl.DISMISS_QUEUE="list_remove",gl.DONE_ALL="check_double",gl.DOWN_ARROW="arrow_down",gl.DO_NOT_DISTURB="slash_circle_left",gl.DRAFT="paper_corner_folded",gl.DRAG_HANDLE="bars_2",gl.EDIT="pencil",gl.EMOJI="face_very_happy",gl.EMOJI_FLAGS="flag",gl.EMOJI_OBJECTS="lightbulb",gl.EMOJI_PEOPLE="face_very_happy",gl.EMOJI_RECENT="clock",gl.EMPTY_HEART="heart",gl.EMPTY_LIKE="thumb_up",gl.ERROR_BLACK="alert_circle",gl.ERROR_OUTLINE="alert_circle",gl.EXIT_APP="arrow_in",gl.EXIT_TO_APP=
"arrow_in",gl.EXPAND="chevron_down",gl.EXPAND_ALL="chevron_expand",gl.EXPAND_CAIRO="chevron_down_cairo",gl.EXPAND_LESS="chevron_up",gl.EXPAND_MORE="chevron_down",gl.EXPLORE="compass",gl.EXPLORE_DESTINATION="compass",gl.EXTERNAL_LINK="open_new",gl.FAB_UPLOAD="upload",gl.FACE_HAPPY_OUTLINE="face_happy",gl.FACT_CHECK="article_check",gl.FASHION_LOGO="fashion",gl.FASHION_LOGO_CAIRO="fashion_cairo",gl.FAVORITE="heart",gl.FEEDBACK="message_bubble_alert",gl.FEEDBACK_CAIRO="message_bubble_alert_cairo",gl.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",gl.FILL_ARROW_SOLID_UP_16="arrow_solid_up",gl.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",gl.FILTER="menu_filter",gl.FIRST_PAGE="chevron_first",gl.FLAG="flag",gl.FULL_HEART="heart",gl.GAME_CONSOLE_DPAD="game_console_dpad",gl.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",gl.GAMING_LOGO="gaming",gl.GAMING_LOGO_CAIRO="gaming_cairo",gl.GO_TO_PAGE="arrow_right",gl.GROUPS="people_group",gl.HAPPY="face_happy",gl.HEALTH_AND_SAFETY="shield_plus",gl.HELP="question_circle",gl.HELP_CAIRO=
"question_circle_cairo",gl.HELP_OUTLINE="question_circle",gl.HIDE="slash_circle_left",gl.IMAGE="image",gl.INFINITY_ICON="infinity",gl.INFO="info_circle",gl.INFO_OUTLINE="info_circle",gl.INSERT_CHART="bar_graph_box_vertical",gl.INSERT_CHART_OUTLINED="bar_graph_box_vertical",gl.INSERT_PHOTO="image",gl.KEEP="pin",gl.KEEP_OFF="pin_off",gl.KEYBOARD="keyboard",gl.KEYBOARD_ARROW_DOWN="chevron_down",gl.KEYBOARD_ARROW_UP="chevron_up",gl.KIDS_BLOCK="slash_circle_left",gl.LANGUAGE="globe",gl.LAST_PAGE="chevron_last",
gl.LAUNCH="open_new",gl.LEARNING="lightbulb",gl.LEARNING_CAIRO="lightbulb_cairo",gl.LIBRARY_ADD=isu("library_add"),gl.LIBRARY_OUTLINE="library",gl.LIBRARY_REMOVE=isu(),gl.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",gl.LIKES_PLAYLIST="thumb_up",gl.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",gl.LIKE="thumb_up",gl.LIKE_SELECTED="thumb_up",gl.LIVE="radar_live",gl.LIVE_CAIRO="radar_live_cairo",gl.LIVE_UNLISTED="link",gl.LOCATION_ON="location_point",gl.LOCATION_PIN="location_point",gl.LOOP="arrow_repeat",gl.LOOP_ACTIVE=
"arrow_repeat",gl.LOOP_ONE="arrow_repeat_1",gl.LOOP_ONE_ACTIVE="arrow_repeat_1",gl.MEH="face_meh",gl.MEMBERS_ONLY_MODE_OFF="message_bubble_left",gl.MESSAGE="message_bubble_left",gl.MICROPHONE_ON="mic",gl.MIX="youtube_mix",gl.MONETIZATION_ON="dollar_sign_circle",gl.MONEY_FILL="dollar_sign_container",gl.MONEY_FILL_JPY="yen_sign_container",gl.MONEY_HEART="dollar_sign_heart",gl.MORE_HORIZ="overflow_horizontal",gl.MORE_VERT="overflow_vertical",gl.MUSIC="audio",gl.MUSIC_CAIRO="audio_cairo",gl.MUSIC_NOTE_SYMBOL=
"music",gl.MUSIC_SHUFFLE="arrow_shuffle",gl.MY_CHANNEL="person_circle",gl.MY_LOCATION="location_point",gl.NEWS_STORY="news",gl.NEXT="chevron_right",gl.NOTIFICATIONS="bell",gl.NOTIFICATIONS_ACTIVE="bell_on",gl.NOTIFICATIONS_CAIRO="bell_cairo",gl.NOTIFICATIONS_DONE_CHECKMARK="check",gl.NOTIFICATIONS_INBOX="bell",gl.NOTIFICATIONS_NONE="bell",gl.NOTIFICATIONS_OFF="bell_off",gl.NOT_INTERESTED="slash_circle_left",gl.OFFICIAL_ARTIST_BADGE="audio",gl.OFFLINE_CLOUD="cloud_off",gl.OFFLINE_DOWNLOAD="download",
gl.OFFLINE_DOWNLOAD_CAIRO="download_cairo",gl.OFFLINE_PAUSE="pause",gl.OPEN_IN_NEW="open_new",gl.OUTLINE_ADJUST="adjust",gl.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",gl.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",gl.OUTLINE_BAG="bag",gl.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",gl.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",gl.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",gl.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",gl.PAID="dollar_sign",gl.PAUSE_OUTLINED="pause",gl.PAYMENT=
"credit_card",gl.PERSON_RADAR_FILLED="person_radar",gl.PHONE_DOWNLOAD="mobile_download",gl.PLAYABLES_LOGO="tic_tac_toe",gl.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",gl.PLAYLISTS="list_play_arrow",gl.PLAYLISTS_CAIRO="list_play_arrow_cairo",gl.PLAYLIST_ADD=isu("list_add"),gl.PLAYLIST_ADD_CHECK=isu("list_check"),gl.PLAYLIST_PLAY="list_play_arrow",gl.PLAY_ALL="play_arrow",gl.PLAY_CIRCLE="play_arrow_circle",gl.PLAY_OUTLINED="play_arrow_circle",gl.PRIVACY_INFO="shield",gl.PRIVACY_PRIVATE="lock",gl.PRIVACY_PUBLIC=
"earth",gl.PRIVACY_UNLISTED="link",gl.PROMOTE="megaphone",gl.PURCHASES="price_tag",gl.PURCHASE_SUPER_CHAT="super_chat",gl.PURCHASE_SUPER_STICKER="super_sticker",gl.QUESTION_ANSWER="message_bubble_question",gl.QUEUE_PLAY_LAST="list_queue_last",gl.QUEUE_PLAY_NEXT="list_play_arrow",gl.REMIX_FILLED="youtube_shorts_remix",gl.REMOVE="bar_circle",gl.REMOVE_CIRCLE="bar_circle",gl.REMOVE_CIRCLE_OUTLINE="bar_circle",gl.REMOVE_DONE="check_double_off",gl.REMOVE_FROM_HISTORY="bar_circle",gl.REMOVE_FROM_PLAYLIST=
"bar_circle",gl.REMOVE_MODERATOR="shield_off",gl.REPLAY="arrow_circle",gl.REPLAY_10="skip_back_10",gl.REPORT_PROBLEM="alert_triangle",gl.SAD="face_sad",gl.SAVE_PLAYLIST="bookmark",gl.SCHEDULE="clock",gl.SCHOOL="creator_academy",gl.SCREEN_FULLSCREEN="screen_full",gl.SEARCH_HISTORY="arrow_time",gl.SELL="price_tag",gl.SETTINGS="gear",gl.SETTINGS_CAIRO="gear_cairo",gl.SETTINGS_LIGHT="gear",gl.SETTINGS_MATERIAL="gear",gl.SHARE_ARROW="share",gl.SHIELD_WITH_AVATAR="person_shield",gl.SHOPPING_BAG="bag",gl.SHOPPING_BAG_CAIRO=
"bag_cairo",gl.SHOPPING_CART="cart",gl.SHORTS_COMMENT="youtube_shorts_message_bubble_right",gl.SHORTS_DISLIKE="youtube_shorts_thumb_down",gl.SHORTS_LIKE="youtube_shorts_thumb_up",gl.SHORTS_SHARE="youtube_shorts_share",gl.SHUFFLE="arrow_shuffle",gl.SLOW_MODE_OFF="message_bubble_left",gl.SOCIAL="people",gl.SORT="menu_sort",gl.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",gl.SPEED_1X="1x",gl.SPEED_1_POINT_2X="1_point_2x",gl.SPEED_1_POINT_5X="1_point_5x",gl.SPEED_1_POINT_8X="1_point_8x",gl.SPEED_2X="2x",
gl.SPEED_POINT_2X="point_2x",gl.SPEED_POINT_8X="point_8x",gl.SPONSORSHIP_STAR="star_circle",gl.STAFF_PICK="spotlight",gl.START_DVR="add",gl.STAR_BORDER="star",gl.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",gl.STICKER_EMOTICON="face_happy",gl.STOP_DVR="stop",gl.SUBSCRIBE="youtube_logo_icon",gl.SUBSCRIBE_PLUS="add_cairo",gl.SUBSCRIPTION_MANAGER="gear",gl.SUPERVISOR_ACCOUNT="people",gl.SUPER_CHAT_FOR_GOOD="hands_heart",gl.SWAP_HORIZ="arrow_swap_horizontal",gl.SWITCH_ACCOUNTS="person_account",gl.TAB_ACCOUNT=
"person",gl.TAB_ACTIVITY="bell",gl.TAB_BOOKMARK="bookmark",gl.TAB_EXPLORE="compass",gl.TAB_HOME="home",gl.TAB_HOME_CAIRO="home_cairo",gl.TAB_INBOX="mail",gl.TAB_LIKED="thumb_up",gl.TAB_MUSIC_PREMIUM="youtube_music",gl.TAB_SHORTS="youtube_shorts",gl.TAB_SHORTS_CAIRO="youtube_shorts_cairo",gl.TAB_SUBSCRIPTIONS="subscriptions",gl.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",gl.TAB_TRENDING="fire",gl.TIMER="stopwatch",gl.TRAILER="youtube_originals",gl.TRENDING="fire",gl.TRENDING_CAIRO="fire_cairo",gl.TRENDING_DOWN=
"rating_down",gl.TRENDING_UP="rating_up",gl.TROPHY="trophy",gl.TROPHY_CELEBRATIONS="fireworks",gl.TUNE="adjust",gl.UNBLOCK_USER="bar_circle",gl.UNLIMITED="youtube_logo_icon",gl.UNPLUGGED_LIVE_GUIDE="radar_live",gl.UNPLUGGED_SPORTS="eye_off",gl.UPLOADS="library",gl.UP_ARROW="arrow_up",gl.VERTICAL_ALIGN_BOTTOM="download",gl.VERY_HAPPY="face_very_happy",gl.VERY_SAD="face_very_sad",gl.VIDEOGAME_ASSET="gaming",gl.VIDEOS="play_arrow_circle",gl.VIDEO_CALL="video_camera_add",gl.VIDEO_LIBRARY_WHITE="library",
gl.VIDEO_YOUTUBE="youtube_logo_icon",gl.VIEW_LIST="list_view",gl.VIEW_LIST_CAIRO="list_view_cairo",gl.VISIBILITY="eye",gl.VISIBILITY_OFF="eye_off",gl.VOLUME_MUTE="volume_off",gl.VOLUME_UP="volume_on",gl.WALLPAPER="image",gl.WARNING="alert_triangle",gl.WATCH_HISTORY="arrow_time",gl.WATCH_HISTORY_CAIRO="arrow_time_cairo",gl.WATCH_LATER="clock",gl.WATCH_LATER_CAIRO="clock_cairo",gl.WATCH_RELATED_MIX="youtube_mix",gl.WHAT_TO_WATCH="home",gl.YOUTUBE_MUSIC_MONOCHROME="youtube_music",gl.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",gl.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",gl.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",gl.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",gl.YT_OUTLINE_MUSIC_24="music",gl);var XJ={},Ssb=(XJ.ACCESS_TIME="clock",XJ.ACCOUNT_BOX="person_square",XJ.ACCOUNT_BOX_CAIRO="person_square",XJ.ACCOUNT_CIRCLE="person_circle",XJ.ACCOUNT_CIRCLE_CAIRO="person_circle",XJ.ACCOUNT_LINKED="account_link",XJ.ACCOUNT_UNLINKED="account_link",XJ.ADD_CIRCLE="add_circle",XJ.ADD_CIRCLE_OUTLINE="add_circle",XJ.ADD_FRIEND="person_child",XJ.ADD_MODERATOR="shield_add",XJ.ADD_TO_LIBRARY="bookmark",XJ.ADD_TO_PLAYLIST="add",XJ.ADD_TO_QUEUE_TAIL="queue",XJ.ADD_TO_REMOTE_QUEUE="playlist_audio",XJ.ADD_TO_WATCH_LATER=
"clock",XJ.ADD_VIDEO_LINK="film_strip_add",XJ.ADMIN_PANEL_SETTINGS="person_gear",XJ.ALERT_WARN_RED="alert_triangle",XJ.ALIGN_LEFT="text_align_left",XJ.ARROWS_ALERT="arrow_split_alert",XJ.ARROW_BACK="arrow_left",XJ.ARROW_CIRCLE="arrow_counterclockwise",XJ.ARROW_CIRCLE_PLAY="replay",XJ.ARROW_CIRCLE_RIGHT="arrow_clockwise",XJ.ARROW_DIAGONAL="arrow_up_left",XJ.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",XJ.ARROW_DROP_DOWN="triangle_down",XJ.ARROW_DROP_UP="triangle_up",XJ.ARROW_FORWARD="arrow_right",XJ.ARROW_PAUSE=
"pause_history",XJ.ARROW_UNDO="undo",XJ.ARTICLE="text_page",XJ.ARTICLE_ALERT="text_page_alert",XJ.ARTICLE_CHECK="text_page_check",XJ.ARTICLE_CLARIFY="text_page_info",XJ.ARTIST="person_audio",XJ.AUDIOTRACK="audio",XJ.AUDIO_BADGE="audio_badge",XJ.AUDIO_SURROUND="surround_sound",XJ.AUTO_AWESOME="sparkles",XJ.AVATAR_ANONYMOUS="person_circle",XJ.AVATAR_LOGGED_OUT="person_circle",XJ.BACK="arrow_left",XJ.BAR_CHART="chart_bar",XJ.BAR_CIRCLE="minus_circle",XJ.BAR_HORIZONTAL="minus",XJ.BLOCK="circle_slash",
XJ.BLOCK_USER="circle_slash",XJ.BOOKMARK_BORDER="bookmark",XJ.BOX_OPEN_CHECK="quiz",XJ.BOX_PENCIL="square_pencil",XJ.BOX_STACK_3="square3_stack",XJ.BREAKING_NEWS_ALT_1="text_page_alert",XJ.BROADCAST="podcast",XJ.BROADCAST_CAIRO="podcast",XJ.BUG_REPORT="bug",XJ.CAMERA_ALT="camera",XJ.CAMPAIGN="megaphone",XJ.CANCEL="x_circle",XJ.CAPTIONS="closed_captions",XJ.CAST_ICON="chromecast",XJ.CAST_OUTLINE="chromecast",XJ.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",XJ.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
XJ.CHAT="text_bubble",XJ.CHAT_BUBBLE="bubble",XJ.CHECK_BOX="check_square",XJ.CHECK_BOX_OUTLINE_BLANK="square",XJ.CHECK_CIRCLE_FILLED="check_circle",XJ.CHECK_CIRCLE_OUTLINE="check_circle",XJ.CHECK_CIRCLE_THICK="check_circle",XJ.CHECK_DOUBLE="check_done",XJ.CHECK_DOUBLE_OFF="check_done_slash",XJ.CHEVRON_LEFT="chevron_left",XJ.CHEVRON_RIGHT="chevron_right",XJ.CHEVRON_RIGHT_CAIRO="chevron_right",XJ.CIRCLES_OVERLAP="account_link",XJ.CLAPPERBOARD_CAIRO="clapperboard",XJ.CLARIFY="text_page_info",XJ.CLOCK_ARROWS=
"clock_split",XJ.CLOCK_ARROWS_ALERT="clock_split_alert",XJ.CLOSED_CAPTION="closed_captions",XJ.CLOSED_CAPTION_SELECTED="closed_captions",XJ.CLOSE="x",XJ.CLOUD_UPLOAD="cloud_arrow_up",XJ.COLLAPSE="chevron_up",XJ.COLLAPSE_CAIRO="chevron_up",XJ.COLLECTION="square3d_stack",XJ.COLOR_LENS="paint_palette",XJ.COMMENT="text_bubble",XJ.CONSENT_SHIELD="person_shield",XJ.CONTENT_CUT="scissors",XJ.CONTENT_CUT_CAIRO="scissors",XJ.COURSE="graduation_cap",XJ.COURSE_CAIRO="graduation_cap",XJ.CREATION_LIVE="live",
XJ.CREATION_POST="square_pencil",XJ.CREATION_UPLOAD="video",XJ.CREATION_UPLOAD_RED="upload",XJ.CREATOR_ACADEMY="graduation_cap",XJ.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",XJ.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",XJ.CREATOR_STUDIO="youtube_studio",XJ.DARK_THEME="theme",XJ.DELETE="trash_can",XJ.DELETE_SWEEP="trash_can",XJ.DESKTOP="laptop",XJ.DISLIKE="thumb_down",XJ.DISLIKE_SELECTED="thumb_down",XJ.DISMISSAL="x",XJ.DISMISS_QUEUE="playlist_x",XJ.DOGFOOD="pawprint",XJ.DOLLAR_SIGN=
"dollar_sign_circle",XJ.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",XJ.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",XJ.DOWN_ARROW="arrow_down",XJ.DO_NOT_DISTURB="circle_slash",XJ.DRAFT="document",XJ.DRAG_HANDLE="equal",XJ.EARTH="globe",XJ.EDIT="pencil",XJ.EMOJI="face_very_happy",XJ.EMOJI_FLAGS="flag",XJ.EMOJI_OBJECTS="lightbulb",XJ.EMOJI_PEOPLE="face_very_happy",XJ.EMOJI_RECENT="clock",XJ.EMPTY_HEART="heart",XJ.EMPTY_LIKE="thumb_up",XJ.ERROR_BLACK="alert_circle",XJ.ERROR_OUTLINE="alert_circle",XJ.ERROR_WHITE=
"alert_circle",XJ.EXIT_APP="arrow_in",XJ.EXIT_TO_APP="arrow_in",XJ.EXPAND="chevron_down",XJ.EXPAND_ALL="chevron_expand",XJ.EXPAND_CAIRO="chevron_down",XJ.EXPAND_LESS="chevron_up",XJ.EXPAND_MORE="chevron_down",XJ.EXPLORE="compass",XJ.EXPLORE_DESTINATION="compass",XJ.EXTERNAL_LINK="arrow_up_right",XJ.EYE_OFF="eye_slash",XJ.FAB_UPLOAD="upload",XJ.FACE_HAPPY_OUTLINE="face_happy",XJ.FACE_MEH="face_neutral",XJ.FACT_CHECK="text_page_check",XJ.FASHION_LOGO="fashion",XJ.FASHION_LOGO_CAIRO="fashion",XJ.FAVORITE=
"thumb_up",XJ.FEEDBACK="alert_bubble",XJ.FEEDBACK_CAIRO="alert_bubble",XJ.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",XJ.FILL_ARROW_SOLID_UP_16="arrow_solid_up",XJ.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",XJ.FIRST_PAGE="chevron_left_end",XJ.FLAG_CAIRO="flag",XJ.FLASH_OFF="flash_slash",XJ.FLASH_ON="flash",XJ.FULL_HEART="heart",XJ.GAMING_LOGO="gaming",XJ.GAMING_LOGO_CAIRO="gaming",XJ.GO_TO_PAGE="arrow_right",XJ.GRID_ASYMMETRICAL="dashboard",XJ.GROUPS="person3",XJ.HAND_SWIPE_LEFT="gesture_swipe_left",
XJ.HAND_SWIPE_RIGHT="gesture_swipe_right",XJ.HAPPY="face_happy",XJ.HEALTH_AND_SAFETY="shield_health",XJ.HEART_BOX="heart_cube",XJ.HELP="help_circle",XJ.HELP_CAIRO="help_circle",XJ.HELP_OUTLINE="help_circle",XJ.HIDE="circle_slash",XJ.INCOGNITO_CAIRO="incognito",XJ.INFINITY_ICON="infinity",XJ.INFO="info_circle",XJ.INFO_OUTLINE="info_circle",XJ.INSERT_CHART="chart_bar_square",XJ.INSERT_CHART_OUTLINED="chart_bar_square",XJ.INSERT_PHOTO="image",XJ.KEEP="pin",XJ.KEEP_OFF="pin_slash",XJ.KEYBOARD="keyboard",
XJ.KEYBOARD_ARROW_DOWN="chevron_down",XJ.KEYBOARD_ARROW_UP="chevron_up",XJ.KIDS_BLOCK="circle_slash",XJ.LANGUAGE="globe",XJ.LAST_PAGE="chevron_right_end",XJ.LAUNCH="arrow_up_right",XJ.LEARNING="lightbulb",XJ.LEARNING_CAIRO="lightbulb",XJ.LIBRARY_ADD="bookmark",XJ.LIBRARY_IMAGE="image_stack",XJ.LIBRARY_MUSIC="audio_square_stack",XJ.LIBRARY_OUTLINE="play_square_stack",XJ.LIBRARY_REMOVE="bookmark",XJ.LIBRARY_SAVED="check_square_stack",XJ.LIKES_PLAYLIST="thumb_up",XJ.LIKES_PLAYLIST_CAIRO="thumb_up",XJ.LIKE=
"thumb_up",XJ.LIKE_SELECTED="thumb_up",XJ.LIST_QUEUE="queue",XJ.LIVE_CAIRO="live",XJ.LIVE_UNLISTED="link",XJ.LOCATION_ON="location_pin",XJ.LOCATION_PIN="location_pin",XJ.LOCATION_POINT="location_pin",XJ.LOOP="repeat",XJ.LOOP_ACTIVE="repeat",XJ.LOOP_ONE="repeat1",XJ.LOOP_ONE_ACTIVE="repeat1",XJ.MEET="google_meet",XJ.MEH="face_neutral",XJ.MEMBERSHIPS="memberships",XJ.MEMBERS_ONLY_MODE_OFF="text_bubble",XJ.MENU_FILTER="filter",XJ.MESSAGE="text_bubble",XJ.MESSAGE_BUBBLE_GEAR="bubble_gear",XJ.MESSAGE_BUBBLE_LEFT=
"text_bubble",XJ.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",XJ.MESSAGE_BUBBLE_OVERLAP="bubble_stack",XJ.MESSAGE_BUBBLE_QUESTION="help_bubble",XJ.MICROPHONE_ON="mic",XJ.MONETIZATION_ON="dollar_sign_circle",XJ.MONEY_FILL="dollar_sign_rectangle",XJ.MONEY_FILL_JPY="yen_sign_rectangle",XJ.MONEY_HAND="dollar_sign_circle_hand",XJ.MONEY_HEART="dollar_sign_heart",XJ.MOON_Z="sleep_timer",XJ.MORE_HORIZ="overflow_horizontal",XJ.MORE_VERT="overflow_vertical",XJ.MUSIC="audio",XJ.MUSIC_CAIRO="audio",XJ.MUSIC_EXPLICIT_BADGE=
"explicit",XJ.MUSIC_NEW_RELEASE="audio_badge",XJ.MUSIC_NOTE_SYMBOL="audio",XJ.MUSIC_SCISSORS="audio_scissors",XJ.MUSIC_SHUFFLE="shuffle",XJ.MY_CHANNEL="person_circle",XJ.MY_LOCATION="location_pin",XJ.MY_VIDEOS="video",XJ.MY_VIDEOS_CAIRO="video",XJ.NEWS_CAIRO="news",XJ.NEWS_STORY="news",XJ.NEXT="chevron_right",XJ.NOTE_ADD="bubble_pencil",XJ.NOTIFICATIONS="bell",XJ.NOTIFICATIONS_ACTIVE="bell_waves",XJ.NOTIFICATIONS_CAIRO="bell",XJ.NOTIFICATIONS_DONE_CHECKMARK="check",XJ.NOTIFICATIONS_INBOX="bell",XJ.NOTIFICATIONS_NONE=
"bell",XJ.NOTIFICATIONS_OFF="bell_slash",XJ.NOT_INTERESTED="circle_slash",XJ.OFFICIAL_ARTIST_BADGE="audio",XJ.OFFLINE_CLOUD="cloud_slash",XJ.OFFLINE_DOWNLOAD="download",XJ.OFFLINE_DOWNLOAD_CAIRO="download",XJ.OFFLINE_PAUSE="pause",XJ.OPEN_IN_NEW="arrow_up_right",XJ.OUTLINE_ADJUST="adjust",XJ.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",XJ.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",XJ.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",XJ.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",XJ.OUTLINE_BAG="bag",XJ.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",XJ.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",XJ.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",XJ.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",XJ.PAID="dollar_sign_circle",XJ.PAUSE_OUTLINED="pause",XJ.PAYMENT="credit_card",XJ.PEOPLE="person_child",XJ.PEOPLE_2="person2_rectangle",XJ.PEOPLE_GROUP="person3",XJ.PEOPLE_NOTE="bubble_asterisk",XJ.PERSON_2="person2",XJ.PERSON_ACCOUNT="person_square_stack",XJ.PERSON_MINUS="person_x",XJ.PERSON_MUSIC="person_audio",XJ.PERSON_RADAR="person_waves",
XJ.PERSON_RADAR_FILLED="person_waves",XJ.PERSON_SETTING="person_gear",XJ.PHONE="phone",XJ.PHONE_DOWNLOAD="mobile_arrow_down",XJ.PICTURE_IN_PICTURE="picture_in_picture",XJ.PLAYABLES_LOGO="playables",XJ.PLAYABLES_LOGO_CAIRO="playables",XJ.PLAYLISTS="playlist",XJ.PLAYLISTS_CAIRO="playlist",XJ.PLAYLIST_ADD_CHECK="bookmark",XJ.PLAY_ALL="play",XJ.PLAY_ARROW="play",XJ.PLAY_ARROW_CIRCLE="play_circle",XJ.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",XJ.PLAY_CIRCLE="play_circle",XJ.PLAY_OUTLINED="play_circle",
XJ.PODCAST_ADD="podcast_add",XJ.PODCAST_CHECK="podcast_check",XJ.PRIVACY_INFO="shield_x",XJ.PRIVACY_PRIVATE="lock",XJ.PRIVACY_PUBLIC="globe",XJ.PRIVACY_UNLISTED="link",XJ.PROMOTE="megaphone",XJ.PURCHASES="price_tag",XJ.PURCHASE_SUPER_CHAT="super_chat",XJ.PURCHASE_SUPER_STICKER="super_sticker",XJ.QUESTION_ANSWER="help_bubble",XJ.QUESTION_CIRCLE="help_circle",XJ.QUEUE_PLAY_LAST="queue_last",XJ.QUEUE_PLAY_NEXT="queue_next",XJ.QUOTATION_MARK="quote",XJ.RADAR_LIVE="live",XJ.REMOVE="minus_circle",XJ.REMOVE_CIRCLE=
"minus_circle",XJ.REMOVE_CIRCLE_OUTLINE="minus_circle",XJ.REMOVE_FROM_HISTORY="minus_circle",XJ.REMOVE_FROM_PLAYLIST="minus_circle",XJ.REMOVE_MODERATOR="shield_slash",XJ.REPLAY="arrow_counterclockwise",XJ.REPLAY_10="skip10_back",XJ.REPLAY_ARROW="replay",XJ.REPORT_PROBLEM="alert_triangle",XJ.RSS_OFF="rss_slash",XJ.SAD="face_sad",XJ.SAVE_PLAYLIST="bookmark",XJ.SCHEDULE="clock",XJ.SCHOOL="graduation_cap",XJ.SCREEN_DEFAULT="player_default",XJ.SCREEN_FULLSCREEN="player_full_enter",XJ.SCREEN_LIGHT="ambient_mode",
XJ.SCREEN_ROTATION="rotate_portrait",XJ.SCREEN_SWITCH="player_switch",XJ.SCREEN_THEATRE="player_theater",XJ.SEARCH_CAIRO="search",XJ.SEARCH_HISTORY="history",XJ.SELL="price_tag",XJ.SETTINGS="gear",XJ.SETTINGS_CAIRO="gear",XJ.SETTINGS_LIGHT="gear",XJ.SETTINGS_MATERIAL="gear",XJ.SETTINGS_REMOTE="remote_waves",XJ.SHARE="share",XJ.SHARE_ARROW="share",XJ.SHARE_CAIRO="share",XJ.SHIELD="shield_x",XJ.SHIELD_EMPTY="shield",XJ.SHIELD_OFF="shield_slash",XJ.SHIELD_WITH_AVATAR="person_shield",XJ.SHOPPING_BAG=
"bag",XJ.SHOPPING_BAG_CAIRO="bag",XJ.SHOPPING_CART="cart",XJ.SHORTS_COMMENT="text_bubble",XJ.SHORTS_DISLIKE="thumb_down",XJ.SHORTS_LIKE="thumb_up",XJ.SHORTS_SHARE="share",XJ.SKIP_FORWARD_30="skip30_forward",XJ.SLASH_CIRCLE_LEFT="circle_slash",XJ.SLASH_CIRCLE_RIGHT="circle_slash",XJ.SLOW_MODE="bubble_slow",XJ.SLOW_MODE_OFF="text_bubble",XJ.SOCIAL="person_child",XJ.SPARKLE="sparkles",XJ.SPARK_IMAGE="image_spark",XJ.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",XJ.SPARK_PENCIL="pencil_spark",XJ.SPARK_RADAR=
"spark_waves",XJ.SPARK_VIDEO="video_spark",XJ.SPEAKER_GROUP="speaker_stack",XJ.SPEAKER_OFF="speaker_slash",XJ.SPEED_1X="n1x",XJ.SPEED_1_POINT_2X="n1point2x",XJ.SPEED_1_POINT_5X="n1point5x",XJ.SPEED_1_POINT_8X="n1point8x",XJ.SPEED_2X="n2x",XJ.SPONSORSHIP_STAR="star_circle",XJ.SPORTS="basketball",XJ.SPOTLIGHT="spotlight",XJ.STAFF_PICK="spotlight",XJ.START_DVR="add",XJ.STAR_BORDER="star",XJ.STAR_CIRCLE_RIBBON="memberships_gift",XJ.STAR_HALF="star_full_half",XJ.STAR_SHOOTING="hype",XJ.STICKER="sticker",
XJ.STICKER_EMOTICON="face_happy",XJ.STOP_DVR="stop",XJ.SUBSCRIBE="youtube",XJ.SUBSCRIBE_PLUS="add",XJ.SUBSCRIPTION_MANAGER="gear",XJ.SUPERSTAR="super_star",XJ.SUPERVISOR_ACCOUNT="person_child",XJ.SUPER_CHAT_FOR_GOOD="hands_heart",XJ.SWAP_HORIZ="arrow_swap_horizontal",XJ.SWITCH_ACCOUNTS="person_square_stack",XJ.TAB_ACCOUNT="person",XJ.TAB_ACTIVITY="bell",XJ.TAB_BOOKMARK="bookmark",XJ.TAB_EXPLORE="compass",XJ.TAB_HOME="home",XJ.TAB_HOME_CAIRO="home",XJ.TAB_INBOX="mail",XJ.TAB_LIKED="thumb_up",XJ.TAB_MUSIC_PREMIUM=
"youtube_music",XJ.TAB_SHORTS="shorts",XJ.TAB_SHORTS_CAIRO="shorts",XJ.TAB_SUBSCRIPTIONS="subscriptions",XJ.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",XJ.TAB_TRENDING="trending",XJ.TARGET="target",XJ.TARGET_ADD="target_add",XJ.TEMPLATE_ADD="template_add",XJ.TEXT="font",XJ.TICKET_STAR="star_ticket",XJ.TIMER="stopwatch",XJ.TRENDING_CAIRO="trending",XJ.TRENDING_DOWN="arrow_trend_down",XJ.TRENDING_UP="arrow_trend_up",XJ.TROPHY_CAIRO="trophy",XJ.TROPHY_CELEBRATIONS="fireworks",XJ.TROPHY_STAR="star_trophy",
XJ.TUNE="adjust",XJ.TV_OFF="tv_slash",XJ.UNBLOCK_USER="minus_circle",XJ.UNFAVORITE="thumb_down",XJ.UNLIMITED="youtube",XJ.UNPLUGGED_LIVE_GUIDE="live",XJ.UNPLUGGED_SPORTS="eye_slash",XJ.UPLOADS="play_square_stack",XJ.UP_ARROW="arrow_up",XJ.VERTICAL_ALIGN_BOTTOM="chevron_down_end",XJ.VERTICAL_ALIGN_TOP="chevron_up_end",XJ.VERY_HAPPY="face_very_happy",XJ.VERY_SAD="face_very_sad",XJ.VIDEOS="play_circle",XJ.VIDEO_CALL="video_camera_add",XJ.VIDEO_LIBRARY_WHITE="play_square_stack",XJ.VIDEO_QUALITY_4K="n4k",
XJ.VIDEO_QUALITY_8K="n8k",XJ.VIDEO_YOUTUBE="youtube",XJ.VIEW_LIST_CAIRO="view_list",XJ.VIEW_MODULE="view_column3_row2",XJ.VISIBILITY="eye",XJ.VISIBILITY_OFF="eye_slash",XJ.VOLUME_DOWN="volume_min",XJ.VOLUME_MUTE="volume_mute",XJ.VOLUME_OFF="volume_mute",XJ.VOLUME_STABLE="stable_volume",XJ.VOLUME_UP="volume_max",XJ.WALLPAPER="image",XJ.WARNING="alert_triangle",XJ.WATCH_HISTORY="history",XJ.WATCH_HISTORY_CAIRO="history",XJ.WATCH_LATER="clock",XJ.WATCH_LATER_CAIRO="clock",XJ.WATCH_RELATED_MIX="mix",
XJ.WHAT_TO_WATCH="home",XJ.YOUTUBE_LINKED_TV="tv_mobile",XJ.YOUTUBE_MUSIC_MONOCHROME="youtube_music",XJ.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",XJ.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",XJ.YOUTUBE_SHORTS_ARROW_UP="arrow_up",XJ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",XJ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",XJ.YOUTUBE_SHORTS_OUTLINE_24="shorts",XJ.YT_OUTLINE_MUSIC_24="audio",XJ);var Ngw={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,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,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_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,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,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,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,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,3,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,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0],
[1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,
1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,
24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,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,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,
2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,
1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,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,2,24],[1,2,24]]};var jBB={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cart_spark:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,
24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,3,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,
3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,
1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,2,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]],cube_spark:[[1,1,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],
document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,
24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,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_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,
10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],
flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_spark:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],
font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],globe_image:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],
google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,
2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,
9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,
1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],
magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,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,3,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,
1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,2,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,
2,24]],pause_history:[[1,1,24]],pawprint:[[0,2,24],[1,2,24]],pdf:[[1,2,24]],pencil:[[0,10,24],[1,10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,
2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],
[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_pause:[[0,1,24],[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,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,
2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,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,2,24],[1,2,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,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,2,18],[1,2,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,7,18,!0],[0,7,24,!0],[1,7,18,!0],[1,7,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],
shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_add:[[1,1,18],[1,1,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,
1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],slip:[[1,1,18],[1,1,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,11,12],[0,11,24],[1,11,24]],spark_bubble_chat:[[1,1,24]],spark_lightbulb:[[0,3,24],[1,3,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:[[0,2,24],[1,2,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,3,24],[1,3,18],[1,3,24]],stable_volume:[[0,
2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,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,6,24],[0,6,36],[1,6,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,
4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],
[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,
1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,
4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column2:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],
volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,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_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var VLj={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"},PQ=function(Y){this.iconUrlProvider=Y};
PQ.prototype.resolveIcon=function(Y,G){var u=VLj[Y.iconName.toUpperCase()];u&&(Y.iconName=u);var O=Y.iconName;O=O.replace(/-/g,"_");Y=Object.assign({},Y,{iconName:this.mapIconTypeToStandardName(O,!!u)||O.toLowerCase()});if(_.F("enable_web_delhi_icons")||u){var Q;return AxT(jBB,Y,((Q=this.iconUrlProvider)==null?void 0:Q.getYtStandardUrl)||woA,G)}var M;return AxT(Ngw,Y,((M=this.iconUrlProvider)==null?void 0:M.getYtStandardUrl)||RyY,G)};
PQ.prototype.mapIconTypeToStandardName=function(Y,G){return _.F("enable_web_delhi_icons")||G?Ssb[Y.toUpperCase()]:bOo[Y.toUpperCase()]};
PQ[c4]=[_.q3(DIN)];var lGw=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),Bgb=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),$Ij=function(Y){this.urlProvider=this.iconUrlProvider=Y};
_.m($Ij,PQ);
$Ij.prototype.resolveIcon=function(Y,G){Y.iconName==="youtube_logo"&&(Y.iconName="yt-logo-updated");if(Y.iconName==="youtube_premium_logo"||Y.iconName==="youtube_red_logo")Y.iconName="yt-logo-red-updated";var u=Object.assign({},Y);Y.iconName==="menu"&&(_.F("enable_web_delhi_icons")||(u.iconName="bars_3"),u.iconStyle="youtube_outline");Y.iconSetName==="socialNetworksRound"&&(Y.iconName==="mail"&&(u.iconName="email"),Y.iconName==="embed"&&(u.iconSize=60));Y.iconName==="more"&&(u.iconName="overflow_horizontal");
Y.iconName==="fullscreen"&&(u.iconName="screen_full");Y.iconName==="premium_standalone"&&(u.iconName="premium_standalone_cairo");_.F("enable_connect_icon_update_web")&&Y.iconName==="account_linked"&&(u.iconName="circles_overlap_check",u.iconStyle="youtube_fill");_.F("enable_connect_icon_update_web")&&Y.iconName==="account_unlinked"&&(u.iconName="circles_overlap",u.iconStyle="youtube_outline");lGw.has(Y.iconName)&&(u.iconStyle="youtube_fill");if(_.F("enable_web_delhi_icons")){Y.iconName==="playlist_add"&&
(u.iconName="bookmark");Y.iconName==="offline_pin"&&(u.iconName="arrow_down_circle",u.iconStyle="youtube_fill");if(Y.iconName==="circles_overlap_check"||u.iconName==="circles_overlap_check")u.iconName="account_link",u.iconStyle="youtube_fill";Bgb.has(Y.iconName)&&(u.iconName+="_updated")}Y=Object.assign({},u,{iconName:(PQ.prototype.mapIconTypeToStandardName.call(this,u.iconName)||u.iconName).toLowerCase()});var O;return(Y=AxT(wIN,Y,((O=this.urlProvider)==null?void 0:O.getUrl)||ZsA,G))?Y:PQ.prototype.resolveIcon.call(this,
u,G)};
$Ij[c4]=[_.q3(DIN)];_.qsS=1;var IJ=function(Y,G){this.JSC$17792_commandHandler=Y;this.innertubeTransportService=G};
_.m(IJ,iL);IJ.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M;return _.a(function(t){return(O=_.z(Y,u0T))?t.return(sBN(u,O,(Q=G)==null?void 0:(M=Q.form)==null?void 0:M.element)):t.return()})};
var sBN=function(Y,G,u){G={profileCardContext:G.profileCardContext,profileOwnerExternalChannelId:G.profileOwnerExternalChannelId};var O=_.Ds(PYR);return _.Cl(Y.innertubeTransportService,G,O).then(function(Q){if(!Q)throw new _.I2("GetProfileCard failed");if(Q=Q.popupCommand){Y.JSC$17792_commandHandler.resolveCommand(Q,{form:{element:u}});_.UL(_.M4(),66557);Q=Q==null?void 0:Q.clickTrackingParams;var M=_.nX();Q&&M&&_.M4().graftServerVe(Q,M)}})};
IJ[c4]=[_.rH,_.KB];var k1=function(){};
_.m(k1,iL);k1.prototype.resolveCommand=function(Y){var G,u;return _.a(function(O){G=_.z(Y,T11);if(!G)return O.return();u=Number(G.enableDelayedPacfLoggingTvMs);if(isNaN(u)){var Q=Mw();Rqk(Q,G,0)}else Rqk(Mw(),G,u);_.Sd(O)})};_.ng=function(){};
_.m(_.ng,iL);
_.ng.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L,g;return _.a(function(P){O=_.z(Y,Llk);M=(Q=G.form)==null?void 0:Q.element;K=(t=M)==null?void 0:t.closest("ytd-enforcement-message-view-model");if(!O||!K)return P.return();u.allowAdsAction||(L=O.fundingChoiceInstructionPageUrl,u.allowAdsAction=new NN4(window,_.ow(L)));var I=u.allowAdsAction;I.wallElement=K;I.allowAdsPopup.style.setProperty("display","flex","important");var k=I.scrollManager;k.isScrollingEnabled&&(k.originalBodyOverflow=k.JSC$10325_domHelper.JSC$9647_document_.body.style.overflow,
k.JSC$10325_domHelper.JSC$9647_document_.body.style.overflow="hidden",k.isScrollingEnabled=!1);I.wallElement.style.setProperty("display","none","important");HJ1(I.accessibilityManager,I.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((g=u.allowAdsAction.allowAdsPopup)&&g instanceof HTMLElement)for(I=_.E(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),k=I.next();!k.done;k=I.next()){var n=_.E(k.value);k=n.next().value;n=n.next().value;
g.style.setProperty(k,n)}_.Sd(P)})};
_.ng.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var FJ=function(){};
_.m(FJ,iL);FJ.prototype.resolveCommand=function(Y){var G;return _.a(function(u){G=_.z(Y,meR);if(!G)return u.return();EeY(Y);_.Sd(u)})};_.pg=new _.Sb("AI_CHAT_CONTROLLER_TOKEN");var zF=function(Y,G,u,O){this.JSC$17807_commandHandler=Y;this.store=G;this.getPlayerCb=u;this.aiChatController=O};
_.m(zF,iL);zF.prototype.pageContext=function(){var Y=_.A$.currentPageSubTypeSelector(this.store.getState()),G;return(G=this.aiChatController)==null?void 0:_.cDw(G,Y)};
zF.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t;return _.a(function(K){u=_.z(Y,WlT);Q=(O=u)==null?void 0:O.command;if(!Q)return K.return();switch((t=u)==null?void 0:t.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var L="youchat-"+Date.now(),g;var P=String(Math.floor(((g=G.getPlayerCb())==null?void 0:g.getCurrentTime())||0)*1E3);M={inputComposerFormData:{clientMessageId:L,playerOffsetMs:P,pageContext:G.pageContext()}}}if(!M)return K.return();G.JSC$17807_commandHandler.resolveCommand(Q,
{form:{formData:M}});_.Sd(K)})};
zF[c4]=[_.rH,_.Fk,Oiy,_.q3(_.pg)];var UIb=new _.Sb("SESSION_STORAGE");var mt=function(Y){this.sessionStorage=Y("conversations")};
_.m(mt,iL);mt.prototype.resolveCommand=function(Y){var G=this,u;return _.a(function(O){u=_.z(Y,r7e);if(!u)return O.return();u.conversationId?G.sessionStorage.set("conversation_id",u.conversationId):G.sessionStorage.remove("conversation_id");_.Sd(O)})};
mt[c4]=[UIb];var WQ=function(Y){this.JSC$17819_commandHandler=Y};
_.m(WQ,iL);
WQ.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K,L,g;return _.a(function(P){if(P.nextAddress==1){u=_.z(Y,q2X);if((O=u)==null||!O.text||!navigator.clipboard)return P.return();_.i3(P,2);return P.yield(navigator.clipboard.writeText(u.text),4)}if(P.nextAddress!=2){if(!u.successActions||u.successActions.length===0)return P.return();Q=_.E(u.successActions);for(M=Q.next();!M.done;M=Q.next())t=M.value,G.JSC$17819_commandHandler.resolveCommand(t);return _.j1(P,0)}_.b3(P);if(!u.failureActions||u.failureActions.length===
0)return P.return();K=_.E(u.failureActions);for(L=K.next();!L.done;L=K.next())g=L.value,G.JSC$17819_commandHandler.resolveCommand(g);_.Sd(P)})};
WQ[c4]=[_.rH];var rl=function(Y){this.JSC$17823_commandHandler=Y};
_.m(rl,iL);
rl.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L,g,P,I,k;return _.a(function(n){switch(n.nextAddress){case 1:O=_.z(Y,e6M);if(!O)return n.return();_.i3(n,2);if(!O.imageBytes&&!O.imageUrl)throw Error("Di");if(!O.imageUrl){if(O.imageBytes){M=O.imageBytes;t=M.replace(/-/g,"+").replace(/_/g,"/");var p=bs1(t);Q=_.UT(p)}n.jumpTo(4);break}return n.yield(fetch(O.imageUrl),5);case 5:return K=n.yieldResult,n.yield(K.blob(),6);case 6:L=n.yieldResult,Q=_.UT(L);case 4:I=(g=G)==null?void 0:(P=g.form)==
null?void 0:P.element;k=document.createElement("a");Y6(k,Q);I.appendChild(k);k.download="";k.click();I.removeChild(k);URL.revokeObjectURL(_.Bs(Q));O.successCommand&&u.JSC$17823_commandHandler.resolveCommand(O.successCommand);_.j1(n,0);break;case 2:_.b3(n),O.errorCommand&&u.JSC$17823_commandHandler.resolveCommand(O.errorCommand),_.Sd(n)}})};
rl[c4]=[_.rH];var x1=function(Y){this.store=Y};
_.m(x1,iL);x1.prototype.resolveCommand=function(Y){var G=this,u,O,Q;return _.a(function(M){O=(u=_.z(Y,_.rKR))==null?void 0:u.entityBatchUpdate;if(!O)return M.jumpTo(0);Q=Object.assign({},O,{mutations:[].concat(_.c8(O.mutations||[]))});return M.yield(_.OG(Q,G.store),0)})};
x1[c4]=[Un];var vxN=function(Y){this.JSC$17830_commandHandler=Y;this.feedbackDialogMap=new Map};
vxN.prototype.openDialog=function(Y,G){(Y=this.feedbackDialogMap.get(Y))&&this.JSC$17830_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:Y}},G)};
vxN[c4]=[_.rH];var JDS=new _.Sb("FEEDBACK_CONTROLLER_TOKEN");var fg=function(Y,G,u,O){this.dispatch=Y;this.controller=G;this.JSC$17833_commandHandler=u;this.innertubeTransportService=O};
_.m(fg,iL);
fg.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N,h,q,U,Mj,Xt,ka,aU,Tg,iy,hY,dA,nT,u_,jT,P1;return _.a(function(kk){switch(kk.nextAddress){case 1:O=_.z(Y,_.WH);if(M=(Q=O)==null?void 0:Q.contentId)for(K=_.E(((t=O)==null?void 0:t.actions)||[]),L=K.next();!L.done;L=K.next())g=L.value,Y_b(u,g,M);k=(P=G)==null?void 0:(I=P.form)==null?void 0:I.element;return _.F("wug_feedback_endpoint_use_its")?(W=new _.yx,W.endpoint=Y,e=_.iv(u.innertubeTransportService,Y,(C=G)==null?
void 0:C.form),W.ajaxPromise=e,_.$s(k,"yt-service-request-sent",W),kk.yield(e,5)):kk.yield(_.c$(k,[Y,{impression:(p=G)==null?void 0:p.disableClickTracking}]).catch(function(){}),4);
case 4:n=kk.yieldResult;kk.jumpTo(3);break;case 5:n=kk.yieldResult,_.$s(k,"yt-service-request-completed",{data:n}),n&&("error"in n?(w=G)==null||(B=w.commandController)==null||(h=(N=B).onServerError)==null||h.call(N,Y,n):(q=G)==null||(U=q.commandController)==null||(Xt=(Mj=U).onSuccess)==null||Xt.call(Mj,Y,n));case 3:iy=((ka=n)==null?void 0:(aU=ka.data)==null?void 0:aU.feedbackResponses)||((Tg=n)==null?void 0:Tg.feedbackResponses);if((hY=iy)==null?0:hY.length)(nT=(dA=iy[0])==null?void 0:dA.followUpDialog)&&
M&&(u_=u.controller)!=null&&u_.feedbackDialogMap.set(M,nT),(P1=(jT=iy[0])==null?void 0:jT.isThumbnailReporting)&&u.JSC$17833_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.Sd(kk)}})};
var Y_b=function(Y,G,u){var O=_.z(G,_.Jv);if(O){O=_.E(O.commands||[]);for(var Q=O.next();!Q.done;Q=O.next())Y_b(Y,Q.value,u)}_.z(G,_.Qy)&&Y.dispatch(_.t$("commandEntity",Fkj(u),{key:u,command:G}));_.z(G,KlU)&&Y.dispatch(_.t$("commandEntity",Fkj(u),{key:u,command:G}))};
fg[c4]=[$rl,JDS,_.rH,_.KB];var Cg=function(Y){this.controller=Y};
_.m(Cg,iL);Cg.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t;return _.a(function(K){O=_.z(Y,_.dN);M=(Q=O)==null?void 0:Q.targetId;if(((t=O)==null?void 0:t.signal)!=="TELL_US_WHY"||!M)return K.return();u.controller.openDialog(M,G);_.Sd(K)})};
Cg[c4]=[JDS];var yp=new _.Sb("APP_STORE_TOKEN");var ez=function(Y){this.store=Y};
_.m(ez,iL);ez.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L,g;return _.a(function(P){O=_.z(Y,YIV);M=(Q=O)==null?void 0:Q.contentId;L=(t=G)==null?void 0:(K=t.form)==null?void 0:K.element;g=_.c$(L,[Y]);M&&u.undo(M);return P.yield(g,0)})};
ez.prototype.undo=function(Y){this.store.dispatch(_.t$("commandEntity",Fkj(Y),{key:Y,command:void 0}))};
ez[c4]=[yp];var Ak=function(Y){this.JSC$17845_commandHandler=Y};
_.m(Ak,iL);Ak.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K,L,g;return _.a(function(P){u=_.z(Y,VtM);O=u.flowStateKey;Q=u.validationFailureCommand;M=u.submitValidFormCommand;t=lpa(_.j8,[O||""]);K=_.z(t,$RU);((L=K)==null?0:L.isValid)&&M&&G.JSC$17845_commandHandler.resolveCommand(M);((g=K)==null?0:g.isValid)||!Q||G.JSC$17845_commandHandler.resolveCommand(Q);_.Sd(P)})};
Ak[c4]=[_.rH];var oJ=function(Y){this.innertubeTransportService=Y};
_.m(oJ,iL);oJ.prototype.resolveCommand=function(Y,G){var u=this,O;return _.a(function(Q){return Q.yield(_.iv(u.innertubeTransportService,Y,(O=G)==null?void 0:O.form).then(function(M){var t,K;G==null||(t=G.commandController)==null||(K=t.onSuccess)==null||K.call(t,Y,M)},function(M){var t,K;
G==null||(t=G.commandController)==null||(K=t.onServerError)==null||K.call(t,Y,M)}),0)})};
oJ[c4]=[_.KB];var RJ=function(){};
_.m(RJ,iL);RJ.prototype.resolveCommand=function(Y){var G,u,O,Q;return _.a(function(M){if(G=_.z(Y,_.NzR)){if(u=G.gtmId)O=_.DE("GL",""),_.KI(u,O);(Q=G.gtmData)&&_.a8(Q)}_.Sd(M)})};var wl=function(Y,G,u){this.innertubeTransportService=Y;this.JSC$17856_actionRouter=G;this.JSC$17856_screenManager=u};
_.m(wl,iL);wl.prototype.resolveCommand=function(Y){var G=this,u,O;return _.a(function(Q){u=_.z(Y,DaR);if(!u)return Q.return();O=u.command;if(!O)return Q.return();G.JSC$17856_actionRouter.triggerAction("yt-insert-rich-section-action",u);return Q.yield(_.iv(G.innertubeTransportService,O,{disableCache:!0}).then(function(M){Y.clickTrackingParams&&(M==null?0:M.trackingParams)&&G.JSC$17856_screenManager.graftServerVe(M.trackingParams,_.Kd(Y.clickTrackingParams))}),0)})};
wl[c4]=[_.KB,ba,_.KZ];N3U.bind(null,RN);var Gh9=N3U.bind(null,sm_);Vj1.bind(null,RN);var ui9=Vj1.bind(null,sm_);B3y.bind(null,RN);var OmV=B3y.bind(null,sm_);var ZX=function(){};
_.m(ZX,iL);
ZX.prototype.resolveCommand=function(Y){var G,u,O,Q,M,t,K,L,g,P;return _.a(function(I){G=_.z(Y,moX);if(!G)return I.return();O=((u=G.operations)==null?void 0:u.operations)||[];Q=_.E(O);for(M=Q.next();!M.done;M=Q.next())if(t=M.value,t.insertItemSectionContent){var k=t.insertItemSectionContent,n=k.contents||[];k.insertByPositionInSection?Gh9(k.insertByPositionInSection.sectionTargetId,n,k.insertByPositionInSection.position):k.insertByRelativePositionInSection&&k.insertByRelativePositionInSection.sectionTargetId&&k.insertByRelativePositionInSection.itemTargetId&&
ui9(k.insertByRelativePositionInSection.sectionTargetId,k.insertByRelativePositionInSection.itemTargetId,n,k.insertByRelativePositionInSection.relativePosition)}else t.replaceSection?(k=t.replaceSection,n={},k.replaceByTargetId?n=k.replaceByTargetId:k.replaceByGroupId&&(n={targetId:k.replaceByGroupId.groupId,newContent:k.replaceByGroupId.newContent,undoKey:""}),n.newContent&&vrE(n.targetId,{continuationItems:[n.newContent]})):t.removeItem?(k=t.removeItem,k.removeByTargetId&&k.sectionTargetId&&OmV(k.sectionTargetId,
k.removeByTargetId.targetIds||[])):t.removeSection&&(t.removeSection.removeByTargetId?(K=void 0,QyS(((K=t.removeSection)==null?void 0:K.removeByTargetId.targetIds)||[])):t.removeSection.removeByGroupId&&(L=void 0,QyS(((L=t.removeSection)==null?void 0:L.removeByGroupId.groupIds)||[])));P=((g=G.operations)==null?void 0:g.scrollConfig)||{};Mho(P);_.Sd(I)})};
var QyS=function(Y){Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next())vrE(G.value,{continuationItems:[]})},Mho=function(Y){if(Y.scrollToItem){var G=Y.scrollToItem.item||{},u=G.itemTargetId;
G=G.sectionTargetId;if(u&&G){var O=document.querySelector("[data-target-id="+G+"]"),Q=O==null?void 0:O.querySelector("[data-target-id="+u+"]");O&&Q&&setTimeout(function(){var M=Q.offsetTop-O.offsetTop,t;if(((t=Y.scrollToItem)==null?void 0:t.scrollPosition)==="SCROLL_POSITION_CENTER")M-=O.offsetHeight/2,M+=Q.offsetHeight/2;else{var K;((K=Y.scrollToItem)==null?void 0:K.scrollPosition)==="SCROLL_POSITION_END"&&(M-=O.offsetHeight,M+=Q.offsetHeight)}var L;O.scroll({top:M,behavior:(Y==null?void 0:(L=Y.animationConfig)==
null?void 0:L.enableAnimation)===!1?"instant":"smooth"})},100)}}};var DX=new _.Sb("CLIENT_NAME_TOKEN");var Hmy=new _.Sb("DEFAULT_STORE_EXPIRATION_TOKEN");var EkT=new _.Sb("CLIENT_LOCATION_SERVICE_TOKEN");var hk=function(Y,G,u){this.clientName=Y||_.DE("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=G||_.ya.getInstance();this.JSC$17885_commandHandler=u||_.Jj.instance};
_.m(hk,iL);hk.prototype.resolveCommand=function(Y){var G=this,u,O;return _.a(function(Q){O=(u=_.z(Y,MC2))==null?void 0:u.onComplete;G.clientLocationService.clearLocationPlayabilityToken(G.clientName);O&&G.JSC$17885_commandHandler.resolveCommand(O);_.Sd(Q)})};
hk[c4]=[DX,EkT,_.rH];var dl=function(Y){this.innertubeTransportService=Y};
_.m(dl,iL);dl.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t;return _.a(function(K){M=(O=G)==null?void 0:(Q=O.form)==null?void 0:Q.element;return K.yield(_.iv(u.innertubeTransportService,Y,(t=G)==null?void 0:t.form).then(function(L){SJu(M,new CustomEvent("yt-service-request-completed"),{data:L},_.DE("openPopupConfig"))}),0)})};
dl[c4]=[_.KB];var bt=function(){};
_.m(bt,iL);bt.prototype.resolveCommand=function(Y){var G,u;return _.a(function(O){G=_.z(Y,UR1);u=document.querySelector("mini-app-container-view-model");if(!G||!u)return O.return();G.isPlaying?u.dispatchEvent(new Event("play")):u.dispatchEvent(new Event("pause"));_.Sd(O)})};var Sz=function(){};
_.m(Sz,iL);Sz.prototype.resolveCommand=function(Y){var G,u,O,Q,M,t,K;return _.a(function(L){G=_.z(Y,ZR_);if((u=G)==null||!u.paramKeys)return L.return();O=G.paramKeys;Q=_.bI(window.location.href);M=_.E(O);for(t=M.next();!t.done;t=M.next())K=t.value,Q.JSC$10357_queryData_.remove(K);window.history.replaceState(window.history.state,document.title,Q.toString());_.Sd(L)})};var EIw=function(){this.dropdownMap=new Map};_.thj=new _.Sb("DROPDOWN_CONTROLLER_TOKEN");var Nr=function(Y){this.controller=Y};
_.m(Nr,iL);Nr.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M;return _.a(function(t){u=_.z(Y,TzR);if(!u)return t.return();O=u;Q=O.dropdownId;M=O.selectedOptionIndex;if(Q===void 0||M===void 0)return t.return();var K=G.controller.dropdownMap.get(Q);K&&K(M);_.Sd(t)})};
Nr[c4]=[_.thj];var jz=function(Y){this.controller=Y};
_.m(jz,iL);jz.prototype.resolveCommand=function(Y){var G=this,u;return _.a(function(O){return(u=_.z(Y,FD2))?O.yield(G.controller.closeDialog(),0):O.return()})};
jz[c4]=[_.nR];var Vp=function(Y){this.controller=Y};
_.m(Vp,iL);Vp.prototype.resolveCommand=function(Y){var G=this,u,O;return _.a(function(Q){u=_.z(Y,uke);if(!u)return Q.return();var M,t=u.panelIdentifier||((M=u.identifier)==null?void 0:M.tag);if(!t)throw Error("Ei");return(O=t)?Q.yield(G.controller.hidePanel({identifier:O}),0):Q.jumpTo(0)})};
Vp[c4]=[_.IH];var lt=function(Y){this.controller=Y};
_.m(lt,iL);lt.prototype.resolveCommand=function(Y){var G=this,u;return _.a(function(O){return(u=_.z(Y,Vx2))?O.yield(G.controller.closeSheet(),0):O.return()})};
lt[c4]=[_.kb];var BQ=function(Y,G){this.innertubeTransportService=Y;this.controller=G};
_.m(BQ,iL);BQ.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M;return _.a(function(t){if(t.nextAddress==1)return u=_.z(Y,OII),(O=u)!=null&&O.panelId?t.yield(G.controller.getReloadContinuation(u.panelId),2):t.return();if(t.nextAddress!=3)return(Q=t.yieldResult)?t.yield(_.iv(G.innertubeTransportService,Y,{continuation:Q}),3):t.return();M=t.yieldResult;return t.yield(G.controller.updatePanel({identifier:u.panelId,panelContents:M.content,shouldFocus:!1}),0)})};
BQ[c4]=[_.KB,_.IH];var $1=function(Y,G,u){this.innertubeTransportService=Y;this.JSC$17926_screenManager=G;this.JSC$17926_commandHandler=u};
_.m($1,iL);
$1.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K;return _.a(function(L){if(L.nextAddress==1){u=_.z(Y,_.Uy2);if(!u)return L.return();if(u.commands)for(O=_.E(u.commands),Q=O.next();!Q.done;Q=O.next())M=Q.value,G.JSC$17926_commandHandler.resolveCommand(M,{disableClickTracking:!0});t=_.Kd(Y.clickTrackingParams);_.UL(G.JSC$17926_screenManager,21760,t,{layer:7,parentLayer:0});return L.yield(_.iv(G.innertubeTransportService,Y),2)}K=L.yieldResult;if(!K)return L.return();G.JSC$17926_screenManager.graftServerVe(K.trackingParams,t,
7);_.Sd(L)})};
$1[c4]=[_.KB,_.KZ,_.rH];var qr=new _.Sb("PANEL_LOADING_STRATEGY_TOKEN");var sF=function(Y,G){this.controller=Y;this.panelLoadingStrategy=G};
_.m(sF,iL);
sF.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M;return _.a(function(t){O=_.z(Y,BWI);if((Q=O)==null||!Q.panelLoadingStrategy)return t.return();M=function(K){var L,g,P,I,k,n,p,W,C,e;return _.a(function(w){g=_.z((L=K.dialogViewModel)==null?void 0:L.header,LuV);P={viewModel:K.dialogViewModel};I={};if(p=_.F("web_enable_dialog_header_label")?(k=g)==null?void 0:(n=k.headline)==null?void 0:n.content:void 0)I.ariaLabel=p;O.dismissOnBackgroundTap===!1&&(I.isModal=!0);return K.dialogViewModel?w.yield(u.controller.openDialog(P,
(e=(W=G)==null?void 0:(C=W.form)==null?void 0:C.element)!=null?e:document.body,I),0):w.return()})};
return t.yield(u.panelLoadingStrategy.execute({command:Y,data:O.panelLoadingStrategy,renderFn:M,createScreenConfig:{layer:4}}),0)})};
sF[c4]=[_.nR,qr];var cQ=function(Y,G,u){this.innertubeTransportService=Y;this.controller=G;this.JSC$17946_screenManager=u};
_.m(cQ,iL);
cQ.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e;return _.a(function(w){switch(w.nextAddress){case 1:O=_.z(Y,_.mJ);if(!O)return w.return();var B,N=O.panelIdentifier||((B=O.identifier)==null?void 0:B.tag);if(!N)throw Error("Ei");Q=N;return w.yield(u.controller.isVisible(Q,!0),2);case 2:if((M=w.yieldResult)&&O.blockIfPanelOpen)return w.return();L=(K=(t=u.controller).getPanelContent)==null?void 0:K.call(t,Q);if(!(B=L))if(O){var h;B=((h=O.globalConfiguration)==null?void 0:
h.initialState)||O.engagementPanel;if(h=!B)h=!!(O==null?0:(N=O.engagementPanelPresentationConfigs)==null?0:N.engagementPanelPopupPresentationConfig);h&&(B=_.$_A(O.panelIdentifier,O.identifier))}else B=void 0;g=B;P=O.engagementPanelPresentationConfigs;I=O.engagementPanelExtras;return w.yield(u.controller.showPanel({identifier:Q,panelContents:g,config:P,extras:I,target:(k=G)==null?void 0:(n=k.form)==null?void 0:n.element}),3);case 3:if(!O.globalConfiguration){w.jumpTo(0);break}if(O.globalConfiguration.reuseModelAndState&&
_.F("enable_ai_companion")&&(C=(W=(p=u.controller).getPanelContent)==null?void 0:W.call(p,Q)))return w.return();_.UL(u.JSC$17946_screenManager,32633);return w.yield(_.iv(u.innertubeTransportService,Y),5);case 5:return e=w.yieldResult,u.JSC$17946_screenManager.graftServerVe(e.trackingParams),w.yield(u.controller.updatePanel({identifier:Q,panelContents:e.content,shouldFocus:!0,extras:I,updatePanelContinuationData:e.updatePanelContinuationData}),0)}})};
cQ[c4]=[_.KB,_.IH,_.KZ];var UF=function(Y,G){this.controller=Y;this.panelLoadingStrategy=G};
_.m(UF,iL);
UF.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L,g,P,I,k,n,p;return _.a(function(W){O=_.z(Y,_.KK);if((Q=O)==null||!Q.panelLoadingStrategy)return W.return();K=KhV(u.controller,(M=G)==null?void 0:(t=M.form)==null?void 0:t.element);g=(L=O.contextualSheetPresentationConfig)==null?void 0:L.position;I=(P=O.contextualSheetPresentationConfig)==null?void 0:P.hoverConfig;n=(k=O.contextualSheetPresentationConfig)==null?void 0:k.expandToFullWidth;p=function(C){var e,w;return _.a(function(B){if(!C.sheetViewModel)return B.return();if(I){var N=
u.controller;N.shouldPreventClosingWhileHovered=!!I.preventCloseWhileHovered;var h;N.hideDelayMs=(h=I.hideDelayMs)!=null?h:0}return B.yield(u.controller.openSheet({viewModel:C.sheetViewModel,sheetPosition:g,expandToFullWidth:n},K,(e=G)==null?void 0:(w=e.form)==null?void 0:w.element),0)})};
return W.yield(u.panelLoadingStrategy.execute({command:Y,data:O.panelLoadingStrategy,renderFn:p,createScreenConfig:{layer:0}}),0)})};
UF[c4]=[_.kb,qr];var vQ=function(Y,G){this.controller=Y;this.JSC$17957_commandHandler=G};
_.m(vQ,iL);vQ.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M;return _.a(function(t){if(t.nextAddress==1){O=_.z(Y,EYV);var K=_.z(O.showCommand,_.mJ),L,g,P=(g=K==null?void 0:K.panelIdentifier)!=null?g:K==null?void 0:(L=K.identifier)==null?void 0:L.tag;if(!P)throw Error("Fi");Q=P;return t.yield(u.controller.isVisible(Q),2)}return(M=t.yieldResult)?t.yield(u.controller.hidePanel({identifier:Q}),0):t.yield(u.JSC$17957_commandHandler.resolveCommand(O.showCommand,G),0)})};
vQ[c4]=[_.IH,_.rH];var Jk=function(Y,G,u){this.innertubeTransportService=Y;this.controller=G;this.JSC$17960_screenManager=u};
_.m(Jk,iL);
Jk.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N,h,q,U;return _.a(function(Mj){switch(Mj.nextAddress){case 1:return O=u=_.z(Y,LBR),Q=O.targetPanelIdentifier,M=O.contentSourcePanelIdentifier,t=O.globalConfiguration,((K=Q)==null?0:K.tag)&&((L=M)==null?0:L.tag)?t?Mj.yield(G.controller.showPanel({identifier:Q.tag,panelContents:_.$_A(Q.tag,Q)}),5):Mj.yield((k=(I=G.controller).getPanel)==null?void 0:k.call(I,M.tag),4):Mj.return();case 4:n=Mj.yieldResult;g=(p=n)==
null?void 0:(C=(W=p).getPanelContent)==null?void 0:C.call(W);Mj.jumpTo(3);break;case 5:return Mj.yield(_.iv(G.innertubeTransportService,Y),6);case 6:e=Mj.yieldResult,((w=e)==null?0:w.trackingParams)&&G.JSC$17960_screenManager.graftServerVe(e.trackingParams),g=(B=e)==null?void 0:B.content,P=(N=e)==null?void 0:N.updatePanelContinuationData;case 3:if(q=(h=g)==null?void 0:h.engagementPanelSectionListRenderer)return Mj.yield(G.controller.showPanel({identifier:Q.tag,panelUpdatableFields:{content:q.content,
secondaryHeaderContent:(U=q.header)!=null?U:{},targetId:q.targetId,loggingDirectives:q.loggingDirectives},updatePanelContinuationData:P}),0);Mj.jumpTo(0)}})};
Jk[c4]=[_.KB,_.IH,_.KZ];var YP=function(){};
_.m(YP,iL);YP.prototype.resolveCommand=function(Y){var G,u,O;return _.a(function(Q){if(Q.nextAddress==1)return(G=_.z(Y,Pfk))?Q.yield(_.Uj(),2):Q.return();u=Q.yieldResult;if(!u)return Q.return();var M=u,t=(O=G)==null?void 0:O.languageCode,K;(M==null?0:(K=M.isReady)==null?0:K.call(M))&&(t=qX4(M,t))&&M.setAudioTrack(t);_.Sd(Q)})};var Gz=function(){};
_.m(Gz,WO);_.H=Gz.prototype;_.H.getApiPaths=function(){return KpU};
_.H.getExtension=function(Y){return _.z(Y,_.ic)};
_.H.isNavigationCommand=function(){return!0};
_.H.JSC$14513_getStoreKey=function(Y){if((Y=this.getExtension(Y))&&Y.videoId){var G={videoId:Y.videoId};Y.playlistId&&(G.playlistId=Y.playlistId);Y.index&&(G.index=Y.index);Y.params&&(G.params=Y.params);return _.ox("next",G)}};
_.H.JSC$14506_getClientScreen=function(Y){var G;return((G=Y.contentPlaybackContext)==null?void 0:G.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.H.JSC$14506_buildRequest=function(Y,G,u){G.videoId&&(Y.videoId=G.videoId);G.playlistId&&(Y.playlistId=G.playlistId);G.params&&(Y.params=G.params);G.index!==void 0&&(Y.playlistIndex=G.index);Y.racyCheckOk=!(!u.racyCheckOk&&!G.racyCheckOk);Y.contentCheckOk=!!G.contentCheckOk;u.contentPlaybackContext&&(Y.autonavState=u.contentPlaybackContext.autonavState,Y.playbackContext={vis:u.contentPlaybackContext.vis,lactMilliseconds:u.contentPlaybackContext.lactMilliseconds});u.prefetchPlaybackContext&&(Y.context.request||
(Y.context.request={}),Y.context.request.isPrefetch=!0);_.F("captions_hats_killswitch")||(G=_.EU().getFlag(65),G=G!=null?!G:!1,u=!!_.LB("yt-player-sticky-caption"),Y.captionsRequested=G&&u)};
_.H.getRequestConfig=function(Y){Y=this.JSC$14513_getStoreKey(Y);var G;Y&&(G={storeStrategy:{storeKey:Y}});_.F("web_log_player_watch_next_ticks")&&(G=G||{},G.requestTick="wn_s",G.responseTick="wn_r");return G};
var uU=function(){};
_.m(uU,WO);uU.prototype.getApiPaths=function(){return KpU};
uU.prototype.getExtension=function(Y){return _.z(Y,_.rE)};
uU.prototype.JSC$14506_buildRequest=function(Y,G){G.token&&(Y.continuation=G.token)};var OC=function(){this.innerTubeTransport=_.sH().resolve(_.KB);this.miniplayerService=_.sH().resolve(_.yo)};
_.m(OC,iL);var aMS=function(Y){var G;return _.a(function(u){G=_.DE("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;Y.JSC$17985_mainAppPlayer=new Zm(G);document.addEventListener("yt-navigate-start",Y.JSC$17985_pauseOnNavigation.bind(Y));_.Sd(u)})},TXj=function(Y,G){var u,O,Q,M;
return _.a(function(t){if(t.nextAddress==1){u=new Gz;O=u.JSC$14506_getRequest(G);if(!O)return t.return(void 0);Q=O.innerTubeRequest;return t.yield(_.Cl(Y.innerTubeTransport,Q,"/youtubei/v1/next"),2)}M=t.yieldResult;var K;var L,g,P=(K=M.contents)==null?void 0:(L=K.twoColumnWatchNextResults)==null?void 0:(g=L.playlist)==null?void 0:g.playlist,I;K=(P==null?0:(I=P.contents)==null?0:I.length)?P:void 0;return t.return(K)})},Lhx=function(Y,G){var u,O,Q,M,t;
return _.a(function(K){if(K.nextAddress==1)return u=Y.JSC$17985_mainAppPlayer,K.yield(u.api,2);if(K.nextAddress!=3)return O=K.yieldResult,G.watchCommand?K.yield(TXj(Y,G.watchCommand),3):K.return();Q=K.yieldResult;if((M=Q)==null||!M.contents)return K.return();t=Q.contents.map(function(L){var g;return(g=L.playlistPanelVideoRenderer)==null?void 0:g.videoId}).filter(function(L){return!!L}).map(function(L){return{encrypted_id:L}});
O.updatePlaylist({video:t});_.Sd(K)})},gIV=function(Y,G){var u,O,Q;
return _.a(function(M){return M.nextAddress==1?(u=Y.JSC$17985_mainAppPlayer,Q=(O=G.playerParams)!=null?O:"",G.externalVideoId?M.yield(u.loadVideoWithPlayerVars({videoId:G.externalVideoId,audio_only:"1",player_params:Q}),2):M.jumpTo(2)):G.watchCommand?M.yield(Lhx(Y,G),0):M.jumpTo(0)})};
OC.prototype.JSC$17985_pauseOnNavigation=function(){var Y=this,G,u;return _.a(function(O){if(O.nextAddress==1)return G=Y.JSC$17985_mainAppPlayer,O.yield(G.api,2);u=O.yieldResult;u.pauseVideo();_.Sd(O)})};
OC.prototype.pauseVideo=function(){var Y=this,G,u;return _.a(function(O){if(O.nextAddress==1)return G=Y.JSC$17985_mainAppPlayer,O.yield(G.api,2);u=O.yieldResult;u.pauseVideo();_.Sd(O)})};
OC.prototype.playVideo=function(){var Y=this,G,u;return _.a(function(O){if(O.nextAddress==1)return G=Y.JSC$17985_mainAppPlayer,O.yield(G.api,2);u=O.yieldResult;u.playVideo();_.Sd(O)})};
var XFx=function(Y){var G,u;return _.a(function(O){if(O.nextAddress==1)return G=Y.JSC$17985_mainAppPlayer,O.yield(G.api,2);u=O.yieldResult;u.mute();_.Sd(O)})},Pdb=function(Y){var G,u;
return _.a(function(O){if(O.nextAddress==1)return G=Y.JSC$17985_mainAppPlayer,O.yield(G.api,2);u=O.yieldResult;u.unMute();_.Sd(O)})};
OC.prototype.stopVideo=function(){var Y=this,G,u;return _.a(function(O){if(O.nextAddress==1)return G=Y.JSC$17985_mainAppPlayer,O.yield(G.api,2);u=O.yieldResult;u.stopVideo();_.Sd(O)})};
var IMV=function(Y,G){return _.a(function(u){switch(u.nextAddress){case 1:switch(G){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return u.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return u.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return u.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return u.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return u.jumpTo(6)}u.jumpTo(0);break;case 2:return u.yield(Y.playVideo(),8);case 8:u.jumpTo(0);break;case 3:return u.yield(Y.pauseVideo(),
9);case 9:u.jumpTo(0);break;case 4:return u.yield(Y.stopVideo(),10);case 10:u.jumpTo(0);break;case 5:return u.yield(XFx(Y),11);case 11:u.jumpTo(0);break;case 6:return u.yield(Pdb(Y),12);case 12:u.jumpTo(0)}})};
OC.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K;return _.a(function(L){return L.nextAddress==1?(u=_.z(Y,NkE),((O=u)==null?0:O.newPlaybackParams)||((Q=u)==null?0:Q.controlAction)?G.JSC$17985_mainAppPlayer?L.jumpTo(2):L.yield(aMS(G),2):L.return()):((M=u)==null?0:M.newPlaybackParams)?(G.miniplayerService.isMiniplayerActive()&&((t=G.miniplayerService.getPlayerElement())==null||t.pause()),K=u.newPlaybackParams,K.externalVideoId||K.externalPlaylistId?L.yield(gIV(G,K),0):L.return()):L.yield(IMV(G,
u.controlAction),0)})};var QS=function(Y){this.JSC$17991_commandHandler=Y};
_.m(QS,iL);
QS.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K;return _.a(function(L){if(L.nextAddress==1)return(u=_.z(Y,I_4))?L.yield(_.Uj(),2):L.return();O=L.yieldResult;if(!O)return L.return();var g=O,P=(Q=u)==null?void 0:Q.languageCode,I=(M=u)==null?void 0:M.isAutoTranslated;g.getVideoData&&_.cxA(g).length&&((P=vL4(g,P,I))?g.setOption("captions","track",P):(g.setOption("captions","stickyLoading",{}),g.setOption("captions","track",{})));t=O.isSubtitlesOn()?_.Q6("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Q6("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");K=_.dK(t,5E3);G.JSC$17991_commandHandler.resolveCommand(K);_.Sd(L)})};
QS[c4]=[_.rH];var MV=function(Y,G){this.shortsPlayerPromise=Y;this.JSC$17995_commandHandler=G};
_.m(MV,iL);
MV.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K,L,g;return _.a(function(P){if(P.nextAddress==1)return(u=_.z(Y,dyM))?P.yield(G.shortsPlayerPromise,2):P.return();O=P.yieldResult;var I=Jxg(O);I!=null&&I.length||(O.loadModule("captions"),I=Jxg(O));Q=I;if((M=Q)==null||!M.length)return t=_.Q6("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),K=_.dK(t),G.JSC$17995_commandHandler.resolveCommand(K),P.return();O.toggleSubtitles();L=O.isSubtitlesOn()?_.Q6("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Q6("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");g=_.dK(L);G.JSC$17995_commandHandler.resolveCommand(g);_.Sd(P)})};
MV[c4]=[_.hC_,_.rH];var HP=function(Y){this.JSC$17998_actionRouter=Y;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(G,u){G.triggerAction("yt-dismiss-shopping-timely-shelf-action",u);(G=_.sH().resolve(_.q3(_.Ju_)))&&G.dismissFeaturedProductOverlay()}]])};
_.m(HP,iL);HP.prototype.resolveCommand=function(Y){var G=this,u,O,Q;return _.a(function(M){u=_.z(Y,pqT);if((O=u)==null||!O.overlayId)return M.return();Q=G.dismissPlayerOverlayActions.get(u.overlayId);if(!Q)throw Error("Gi`"+u.overlayId);Q(G.JSC$17998_actionRouter,u);_.Sd(M)})};
HP[c4]=[ba];var EC=function(Y){this.JSC$18002_playerPromise=Y};
_.m(EC,iL);EC.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M;return _.a(function(t){if(t.nextAddress==1)return(u=_.z(Y,MOM))?t.yield(G.JSC$18002_playerPromise,2):t.return();O=t.yieldResult;Q=O.getVideoData().video_id;u.videoId===Q&&(M=Number(u.offsetFromVideoStartMilliseconds),M>=0&&O.seekTo(M/1E3));_.Sd(t)})};
EC[c4]=[_.$h];var khy=_.UU("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),tb=function(Y){this.store=Y};
_.m(tb,iL);
var nIS=function(Y){var G,u,O,Q;return _.a(function(M){if(M.nextAddress==1)return G=_.DE("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,u=_.DE("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,O=G||u,Y.JSC$18006_mainAppPlayer=new Zm(O),M.yield(Y.JSC$18006_mainAppPlayer.api,2);Q=M.yieldResult;Q.addEventListener("onStateChange",Y.JSC$18006_playerStateChangeListener.bind(Y));document.addEventListener("yt-page-data-updated",Y.JSC$18006_pauseOnNavigation.bind(Y));window.addEventListener("state-navigatestart",
Y.JSC$18006_pauseOnNavigation.bind(Y));_.Sd(M)})};
tb.prototype.JSC$18006_playerStateChangeListener=function(Y){switch(Y){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"}Fh9(this)};
var Fh9=function(Y){Y.store.dispatch(_.t$("sfvAudioItemCurrentlyPlayingEntity",khy,{key:khy,externalVideoId:Y.externalVideoId,sfvAudioItemPlaybackState:Y.playbackState,nowPlayingEntityValue:Y.nowPlayingEntityValue}))};
tb.prototype.JSC$18006_pauseOnNavigation=function(){var Y=this,G,u,O,Q;return _.a(function(M){if(M.nextAddress==1){if(!Y.JSC$18006_mainAppPlayer){var t=new _.I2("Error: mainAppPlayer is unavailable",Y.JSC$18006_mainAppPlayer);_.o0(t);return M.return()}return M.yield(Y.JSC$18006_mainAppPlayer.api,2)}G=M.yieldResult;O=(u=G)==null?void 0:u.getPlayerState();O!==1||(Q=G)!=null&&Q.pauseVideo();_.Sd(M)})};
tb.prototype.playVideo=function(Y,G,u){var O=this,Q,M;return _.a(function(t){if(t.nextAddress==1)return t.yield((Q=O.JSC$18006_mainAppPlayer)==null?void 0:Q.api,2);M=t.yieldResult;if(!O.JSC$18006_mainAppPlayer||!M){var K=new _.I2("Error: mainAppPlayer is unavailable",O.JSC$18006_mainAppPlayer);_.o0(K);return t.return()}return t.yield(O.JSC$18006_mainAppPlayer.loadVideoWithPlayerVars({videoId:O.externalVideoId,audio_only:"1",start:Y/1E3,end:Y/1E3+G,player_params:u}),0)})};
tb.prototype.pauseVideo=function(){var Y=this,G,u;return _.a(function(O){if(O.nextAddress==1){if(!Y.JSC$18006_mainAppPlayer){var Q=new _.I2("Error: mainAppPlayer is unavailable",Y.JSC$18006_mainAppPlayer);_.o0(Q);return O.return()}return O.yield(Y.JSC$18006_mainAppPlayer.api,2)}G=O.yieldResult;(u=G)==null||u.pauseVideo();_.Sd(O)})};
tb.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N;return _.a(function(h){if(h.nextAddress==1)return u=_.z(Y,DHT),Q=(O=u)==null?void 0:O.nowPlayingEntityValue,t=(M=u)==null?void 0:M.externalVideoId,I=Number((P=(K=u)==null?void 0:(L=K.defaultStartPoints)==null?void 0:(g=L[0])==null?void 0:g.offsetMs)!=null?P:"0"),e=Number((C=(k=u)==null?void 0:(n=k.defaultStartPoints)==null?void 0:(p=n[0])==null?void 0:(W=p.duration)==null?void 0:W.seconds)!=null?C:"15"),N=(B=
(w=u)==null?void 0:w.playerParams)!=null?B:"",Q&&t?G.JSC$18006_mainAppPlayer?h.jumpTo(2):h.yield(nIS(G),2):h.return();if(h.nextAddress!=6){if(G.nowPlayingEntityValue&&Q===G.nowPlayingEntityValue)return G.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?h.yield(G.pauseVideo(),0):h.yield(G.playVideo(I,e,N),0);G.externalVideoId=t;G.nowPlayingEntityValue=Q;G.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return h.yield(G.playVideo(I,e,N),6)}Fh9(G);return h.jumpTo(0)})};
tb[c4]=[Un];var KF=function(Y){this.JSC$18024_commandHandler=Y};
_.m(KF,iL);KF.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M;return _.a(function(t){if(t.nextAddress==1)return(O=_.z(Y,kce))?t.yield(_.Uj(),2):t.return();Q=t.yieldResult;if(!Q)return t.return();(M=YZt(Q))&&u.JSC$18024_commandHandler.resolveCommand(M,G);_.Sd(t)})};
KF[c4]=[_.rH];var aj=function(Y){this.JSC$18030_commandHandler=Y};
_.m(aj,iL);aj.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K;return _.a(function(L){if(L.nextAddress==1)return(O=_.z(Y,nRT))?L.yield(_.Uj(),2):L.return();Q=L.yieldResult;if(!Q)return L.return();(M=MWI(Q))?u.JSC$18030_commandHandler.resolveCommand(M,G):(t=_.Q6("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),K=_.dK(t),u.JSC$18030_commandHandler.resolveCommand(K));_.Sd(L)})};
aj[c4]=[_.rH];var Tz=function(Y){this.JSC$18033_playerPromise=Y};
_.m(Tz,iL);Tz.prototype.resolveCommand=function(Y){var G=this,u,O;return _.a(function(Q){if(Q.nextAddress==1)return(u=_.z(Y,xil))?Q.yield(G.JSC$18033_playerPromise,2):Q.return();O=Q.yieldResult;O.isFullscreen()&&O.wakeUpControls();_.Sd(Q)})};
Tz[c4]=[_.$h];var LF=function(Y){this.JSC$18036_playerPromise=Y};
_.m(LF,iL);LF.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t;return _.a(function(K){if(K.nextAddress==1){u=_.z(Y,HIE);if(!u)return K.return();O=u.overlayRenderer;return O?(Q=_.z(O,Al1))?K.yield(G.JSC$18036_playerPromise,3):K.jumpTo(0):K.return()}M=K.yieldResult;M.renderChapterSeekingAnimation(1,_.Ri(Q.text),(t=Q.icon)==null?void 0:t.iconType);_.Sd(K)})};
LF[c4]=[_.$h];var g6=function(Y){this.store=Y};
_.m(g6,iL);
g6.prototype.resolveCommand=function(Y){var G=this,u,O,Q;return _.a(function(M){if(M.nextAddress==1){u=_.z(Y,js1);if(!u)return M.return();O="";(Q=G.store.getState().collabInviteLink)&&u.id===Q.playlistId?O=Q.inviteLinkURL:u.shortUrl&&(O=u.shortUrl);return O?M.yield(navigator.clipboard.writeText(O),3):M.jumpTo(0)}var t={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Q6("COPY_LINK_SUCCESS_TOAST")}}}}};_.sH().resolve(_.rH).resolveCommand(t);_.Sd(M)})};
g6[c4]=[yp];var XM=function(Y,G){this.innertubeTransportService=Y;this.JSC$18046_commandHandler=G};
_.m(XM,iL);XM.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L,g,P,I,k;return _.a(function(n){if(n.nextAddress==1)return(O=_.z(Y,_.fk))?n.yield(_.iv(u.innertubeTransportService,Y,(Q=G)==null?void 0:Q.form),2):n.return();(M=n.yieldResult)&&M.errorMetadata&&(t=M,K=_.dK(t.error.message),u.JSC$18046_commandHandler.resolveCommand(K));L=M;if((g=L)==null?0:g.actions)for(P=_.E(L.actions),I=P.next();!I.done;I=P.next())k=I.value,u.JSC$18046_commandHandler.resolveCommand(k);_.Sd(n)})};
XM[c4]=[_.KB,_.rH];var PP=function(){};
_.m(PP,iL);PP.prototype.resolveCommand=function(Y){var G;return _.a(function(u){G=_.z(Y,opR);if(!G)return u.return();(new KxR(G)).show();_.Sd(u)})};_.Ij=new _.Sb("PLAYLIST_EDIT_CONTROLLER_TOKEN");var kP=function(Y,G,u,O){this.store=Y;this.innertubeTransportService=G;this.controller=u;this.JSC$18054_commandHandler=O};
_.m(kP,iL);
kP.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N,h,q,U,Mj,Xt,ka,aU,Tg;return _.a(function(iy){if(iy.nextAddress==1){O=_.z(Y,_.zG);if(!O)return iy.return();if(O.clientActions){Q=_.E(O.clientActions);for(M=Q.next();!M.done;M=Q.next())t=M.value,u.JSC$18054_commandHandler.resolveCommand(t,G);var hY,dA=G==null?void 0:(hY=G.form)==null?void 0:hY.element;dA&&_.$s(dA,"yt-dismissible-item-action",O.clientActions)}return iy.yield(_.iv(u.innertubeTransportService,Y,(K=
G)==null?void 0:K.form),2)}if(L=iy.yieldResult)L.errorMetadata?(g=L,P=_.dK(g.error.message),u.JSC$18054_commandHandler.resolveCommand(P),"error"in L&&((I=G)==null?0:(k=I.commandController)==null?0:k.onServerError)&&((n=G)==null||(p=n.commandController)==null||p.onServerError(Y,L))):(W=G)==null||(C=W.commandController)==null||(w=(e=C).onSuccess)==null||w.call(e,Y,L);B=L;((N=B)==null?0:N.collaborationInviteLink)&&O.playlistId&&(_.F("web_enable_invite_collaborators_link")||_.F("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
u.store.dispatch(_.V6({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:O.playlistId,inviteLinkUrl:B.collaborationInviteLink}}));((h=B)==null?0:h.redirectEndpoint)&&u.JSC$18054_commandHandler.resolveCommand(B.redirectEndpoint);((q=B)==null?0:(U=q.newHeader)==null?0:U.playlistHeaderRenderer)?pFB(u.controller,B.newHeader.playlistHeaderRenderer):((Mj=B)==null?0:(Xt=Mj.newHeader)==null?0:Xt.musicEditablePlaylistDetailHeaderRenderer)&&pFB(u.controller,B.newHeader.musicEditablePlaylistDetailHeaderRenderer);
u.controller.playlistVideoListElement&&((ka=B)==null?0:(aU=ka.playlistEditResults)==null?0:(Tg=aU[0])==null?0:Tg.playlistEditVideoAddedResultData)&&((dA=u.controller.playlistVideoListElement)==null||dA.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:B.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Sd(iy)})};
kP[c4]=[_.Fk,_.KB,_.Ij,_.rH];var nF=function(Y,G){this.controller=Y;this.JSC$18064_commandHandler=G};
_.m(nF,iL);nF.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M;return _.a(function(t){O=_.z(Y,VXk);u.controller.showRefreshPill&&((Q=O)==null?0:Q.command)&&(u.JSC$18064_commandHandler.resolveCommand((M=O)==null?void 0:M.command,G),u.controller.showRefreshPill=!1);_.Sd(t)})};
nF[c4]=[_.Yi,_.rH];var FM=function(Y,G){this.store=Y;this.JSC$18068_commandHandler=G||_.Jj.instance};
_.m(FM,iL);FM.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L,g,P,I,k;return _.a(function(n){O=_.z(Y,QZe);Q=u.store.getState().radioButtonGroup;if((M=O)==null?0:M.command)u.JSC$18068_commandHandler.resolveCommand((t=O)==null?void 0:t.command,G);else if(Q&&((K=O)==null?void 0:K.formId)===Q.currentFormId)for(L=Object.values(Q.commandsMap),g=_.E(L),P=g.next();!P.done;P=g.next())I=P.value,(k=_.FS(I))&&u.JSC$18068_commandHandler.resolveCommand(k,G);_.Sd(n)})};
FM[c4]=[_.Fk];var pF=new _.Sb("USER_PREFS");var zz=function(Y){this.JSC$18073_prefCookie=Y};
_.m(zz,iL);zz.prototype.resolveCommand=function(Y){var G=this,u;return _.a(function(O){(u=_.z(Y,W31))&&typeof u.useListView==="boolean"&&(_.tW(0,155,u.useListView),G.JSC$18073_prefCookie.save());_.Sd(O)})};
zz[c4]=[pF];var mY=function(Y){this.JSC$18077_prefCookie=Y};
_.m(mY,iL);mY.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t;return _.a(function(K){u=_.z(Y,w02);if((O=u)==null||!O.gl)return K.return();Q=u.gl;M={persist_gl:"1",gl:Q};G.JSC$18077_prefCookie.set("gl",Q);G.JSC$18077_prefCookie.save();t=MG4(M);_.Wm(t);_.Sd(K)})};
mY[c4]=[pF];var WP=function(Y){this.JSC$18081_prefCookie=Y};
_.m(WP,iL);WP.prototype.resolveCommand=function(Y){var G=this,u,O;return _.a(function(Q){u=_.z(Y,Bk4);if(!u)return Q.return();O=!1;u.flagNum&&typeof u.value==="boolean"?(_.tW(0,u.flagNum,u.value),O=!0):u.key&&typeof u.stringValue==="string"&&(G.JSC$18081_prefCookie.set(u.key,u.stringValue),O=!0);O&&G.JSC$18081_prefCookie.save();_.Sd(Q)})};
WP[c4]=[pF];var r6=new _.Sb("PREF_STORAGE_PROMISE_TOKEN");var xP=function(Y){this.JSC$18085_prefStoragePromise=Y};
_.m(xP,iL);xP.prototype.resolveCommand=function(Y){var G=this,u,O;return _.a(function(Q){if(Q.nextAddress==1)return(u=_.z(Y,qq1))?Q.yield(G.JSC$18085_prefStoragePromise,2):Q.return();O=Q.yieldResult;return O===void 0||u.key===void 0||u.value===void 0?Q.return():Q.yield(O.set(u.key,u.value),0)})};
xP[c4]=[r6];var fF=function(Y){this.innertubeTransportService=Y};
_.m(fF,iL);fF.prototype.resolveCommand=function(Y,G){var u=this,O,Q;return _.a(function(M){(O=_.z(Y,_.EKX))&&O&&O.isFirstRequest&&(_.Fh("search_overview_answer"),_.pQ("so_rq",void 0,"search_overview_answer"));return M.yield(_.iv(u.innertubeTransportService,Y,(Q=G)==null?void 0:Q.form),0)})};
fF[c4]=[_.KB];var zBx=function(){};
_.m(zBx,iL);
zBx.prototype.resolveCommand=function(Y){var G,u,O,Q,M,t,K,L,g;return _.a(function(P){G=_.z(Y,Q8_);if((u=G)==null?0:u.sectionIdentifier){if(G.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(Q=(O=document.getElementsByTagName(G.sectionIdentifier))==null?void 0:O.item(0))Q.scrollIntoView({behavior:"smooth"}),(M=S3t(Q))&&M.focus({preventScroll:!0});return P.return()}t=document.querySelector("[section-identifier="+G.sectionIdentifier+"]");K=document.querySelector("[section-identifier="+G.referenceSectionIdentifier+
"]");if(!t)return P.return();L=G.verticalScrollOffsetDp?G.verticalScrollOffsetDp:0;K&&(L-=K.offsetTop);window.scrollTo({top:t.offsetTop+L,behavior:"smooth"});(g=S3t(t))&&g.focus({preventScroll:!0})}_.Sd(P)})};var CF=function(Y){this.JSC$18097_commandHandler=Y};
_.m(CF,iL);
CF.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K,L;return _.a(function(g){if(g.nextAddress==1){u=_.z(Y,AsR);if(!u||!u.imageBytes||!navigator.clipboard)return g.return();if(u.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.o0(Error("Ii")),g.return();_.i3(g,2);Q=(O=u)==null?void 0:O.imageBytes;M=Q.replace(/-/g,"+").replace(/_/g,"/");t=bs1(M);K={};L=[new ClipboardItem((K[t.type]=t,K))];return g.yield(navigator.clipboard.write(L),4)}if(g.nextAddress!=2)return u.successCommand&&
G.JSC$18097_commandHandler.resolveCommand(u.successCommand),_.j1(g,0);_.b3(g);u.errorCommand&&G.JSC$18097_commandHandler.resolveCommand(u.errorCommand);_.Sd(g)})};
CF[c4]=[_.rH];var yS=function(Y,G){this.innertubeTransportService=Y;this.JSC$18101_commandHandler=G};
_.m(yS,iL);yS.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K;return _.a(function(L){if(L.nextAddress==1)return(O=_.z(Y,oKM))?L.yield(_.iv(u.innertubeTransportService,Y,(Q=G)==null?void 0:Q.form),2):L.return();(M=L.yieldResult)&&M.errorMetadata&&O.onFailureCommand&&u.JSC$18101_commandHandler.resolveCommand(O.onFailureCommand);t=M;((K=t)==null?0:K.shareCommand)&&u.JSC$18101_commandHandler.resolveCommand(t.shareCommand,G);_.Sd(L)})};
yS[c4]=[_.KB,_.rH];var eB=function(){};
_.m(eB,iL);eB.prototype.resolveCommand=function(Y){var G,u;return _.a(function(O){G=_.z(Y,Sql);if(!G||!navigator.share)return O.return();u={url:G.url};try{return O.return(navigator.share(u))}catch(Q){}_.Sd(O)})};var Ab=function(){};
_.m(Ab,iL);Ab.prototype.resolveCommand=function(){return _.a(function(Y){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Sd(Y)})};var oj=function(Y){this.JSC$18111_navigationConfirmationService=Y};
_.m(oj,iL);oj.prototype.resolveCommand=function(){var Y=this;return _.a(function(G){Y.JSC$18111_navigationConfirmationService.cancelPendingNavigation();_.Sd(G)})};
oj[c4]=[tl];var iU=function(Y){this.JSC$18114_screenManager=Y};
_.m(iU,iL);iU.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L,g;return _.a(function(P){Q=(O=G.form)==null?void 0:O.event;t=(M=G.form)==null?void 0:M.element;if(!Q)throw new _.I2("Event not passed in when resolving command");K=_.E(Q.composedPath());for(L=K.next();!L.done;L=K.next())if(g=L.value,g.tagName==="YT-COPY-LINK-RENDERER")return g.copyUrlToClipboard(),t&&_.er(u.JSC$18114_screenManager,t),P.return();_.Sd(P)})};
iU[c4]=[_.KZ];var Rj=function(){this.JSC$18118_miniAppClientDataProvider=_.sH().resolve(_.S_)};
_.m(Rj,iL);Rj.prototype.resolveCommand=function(){var Y=this,G,u;return _.a(function(O){if(Y.JSC$18118_miniAppClientDataProvider.clientData.has("video_id")){var Q=Y.JSC$18118_miniAppClientDataProvider,M=Q.clientData.get("video_id");M&&Q.clientData.delete("video_id");G="https://youtube.com/watch?v="+M;u=_.qp(G);if(u===void 0)throw Error("Ji`"+G);_.Kb(window,u)}_.Sd(O)})};var w6=function(){};
_.m(w6,iL);w6.prototype.resolveCommand=function(){return _.a(function(Y){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Sd(Y)})};var ZO=function(){};
_.m(ZO,iL);ZO.prototype.resolveCommand=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield(_.Jwj(window.document.documentElement),2);(Y=document.querySelector("mini-app-container-view-model iframe"))&&Y.focus();_.Sd(G)})};var DO=function(Y){this.JSC$18125_navigationConfirmationService=Y};
_.m(DO,iL);
DO.prototype.resolveCommand=function(){var Y=this;return _.a(function(G){var u=Y.JSC$18125_navigationConfirmationService,O=_.sH().resolve(_.YY),Q;if(((Q=u.navigateParams)==null?void 0:Q.data)!==void 0){var M;_.WWR(O,u.navigateParams.endpoint,u.navigateParams.data,(M=u.navigateParams.navigationType)!=null?M:1,u.navigateParams.tempData,u.navigateParams.isMiniplayer,void 0,!0);u.navigateParams=void 0;u.customConfirmationCommand=void 0}else u.navigateParams&&(O.navigate(u.navigateParams.endpoint,u.navigateParams.reload,
u.navigateParams.params,u.navigateParams.tempData,u.navigateParams.requestType,u.navigateParams.createScreenConfig,!0),u.navigateParams=void 0,u.customConfirmationCommand=void 0);_.Sd(G)})};
DO[c4]=[tl];var hb=function(){};
_.m(hb,iL);hb.prototype.resolveCommand=function(){return _.a(function(Y){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Sd(Y)})};var d6=function(Y){this.JSC$18130_prefStorage=Y};
_.m(d6,iL);d6.prototype.resolveCommand=function(){var Y=this,G,u;return _.a(function(O){switch(O.nextAddress){case 1:return O.yield(Y.JSC$18130_prefStorage,2);case 2:return(G=O.yieldResult)?O.yield(G.set("sfvle",!1),3):O.return();case 3:return O.yield(G.set("sfvles",!0),4);case 4:u=_.EU(),_.tW(0,203,!1),_.tW(0,204,!0),u.save(),_.Sd(O)}})};
d6[c4]=[r6];var bU=function(Y){this.JSC$18133_prefStorage=Y};
_.m(bU,iL);bU.prototype.resolveCommand=function(){var Y=this,G,u;return _.a(function(O){switch(O.nextAddress){case 1:return O.yield(Y.JSC$18133_prefStorage,2);case 2:return(G=O.yieldResult)?O.yield(G.set("sfvle",!0),3):O.return();case 3:return O.yield(G.set("sfvles",!0),4);case 4:u=_.EU(),_.tW(0,203,!0),_.tW(0,204,!0),u.save(),_.Sd(O)}})};
bU[c4]=[r6];_.mUw=new _.Sb("SNACKBAR_CONTROLLER_TOKEN");_.Whb=new _.Sb("SHOULD_SHOW_PIVOT_BAR_TOKEN");var SB=function(Y){this.controller=Y};
_.m(SB,iL);SB.prototype.resolveCommand=function(Y){var G=this,u;return _.a(function(O){u=_.z(Y,lmR);if(!u)return O.return();var Q=G.controller;Q.closeSnackbarFn&&Q.closeSnackbarFn();_.Sd(O)})};
SB[c4]=[_.mUw];var NV=function(Y,G){this.controller=Y;this.JSC$18140_sheetController=G};
_.m(NV,iL);NV.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L;return _.a(function(g){O=_.z(Y,$eR);if(!O)return g.return();t=KhV(u.JSC$18140_sheetController,(Q=G)==null?void 0:(M=Q.form)==null?void 0:M.element);K=_.z(O.content,Ebk);if(!K)return g.return();var P=u.controller,I=K,k=(L=O.animationStyle)!=null?L:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(P.showSnackbarFn)P.showSnackbarFn({snackbarViewModel:I,animationStyle:k,durationMs:O.durationSeconds*1E3,target:t});else throw Error("Dj");_.Sd(g)})};
NV[c4]=[_.mUw,_.kb];var jB=function(){};
_.m(jB,iL);jB.prototype.resolveCommand=function(Y){var G;return _.a(function(u){G=_.z(Y,$oT);if(!G||typeof G.key!=="string"||typeof G.value!=="string")return u.return();window.localStorage.setItem(G.key,G.value);_.Sd(u)})};var VS=function(Y){this.store=Y};
_.m(VS,iL);VS.prototype.resolveCommand=function(Y){var G=this,u;return _.a(function(O){u=_.z(Y,Jet);if(!u||!u.stepId||!u.token)return O.return();G.store.dispatch(SpI({stepId:u.stepId,token:u.token,isSelected:!1}));_.Sd(O)})};
VS[c4]=[yp];var lU=function(Y,G,u){this.innertubeTransportService=Y;this.store=G;this.JSC$18152_screenManager=u};
_.m(lU,iL);
lU.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N,h,q,U,Mj,Xt,ka,aU,Tg,iy;return _.a(function(hY){u=_.z(Y,htU);if(!u||(O=u.stepIds)==null||!O.length)return hY.return();Q=G.store.getState().talkToRecs;M=[];t=[];K=_.E(u.stepIds);for(L=K.next();!L.done;L=K.next())for(g=L.value,P=void 0,(I=(P=Q.stepStates[g])==null?void 0:P.userQuery)&&t.push({userQuery:u.submitEmptyUserQuery?"":I.userQuery,userQueryToken:I.token}),n=k=void 0,p=(n=(k=Q.stepStates[g])==null?void 0:
k.selectionStates)!=null?n:{},W=_.E(Object.entries(p)),C=W.next();!C.done;C=W.next())e=C.value,w=_.E(e),B=w.next().value,N=w.next().value,h=B,q=N,q.isSelected&&M.push(h);U={selectedChipTokens:M,userQueries:t,submittedStepIds:u.stepIds};Mj={browseTalk2recsFormData:U};u.browseEndpoint?(Xt=Y,_.XS(Xt,_.Y3,u.browseEndpoint)):u.command&&(Xt=u.command);if(!Xt)return hY.return();ka=_.z(Xt,_.rE);if((aU=ka)==null?0:aU.command)if(Tg=_.z(ka.command,Z3U))iy=_.Jj.instance,iy.resolveCommand(ka.command);return hY.yield(_.iv(G.innertubeTransportService,
Xt,{formData:Mj,disableCache:!0}).then(function(dA){(dA==null?0:dA.trackingParams)&&G.JSC$18152_screenManager.graftServerVe(dA==null?void 0:dA.trackingParams)}),0)})};
lU[c4]=[_.KB,yp,_.KZ];var BP=function(Y){this.store=Y};
_.m(BP,iL);
BP.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K,L,g;return _.a(function(P){u=_.z(Y,vmY);if(!u||!u.stepId)return P.return();if(u.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")t=(M=(O=G.store.getState().talkToRecs.stepStates[u.stepId])==null?void 0:(Q=O.userQuery)==null?void 0:Q.userQuery)!=null?M:"",K=t.length>0?". ":"",L=t+K+u.selectedText,G.store.dispatch(NOk({stepId:u.stepId,userQueryToken:"",userQuery:L}));else if(u.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")G.store.dispatch(NOk({stepId:u.stepId,userQueryToken:"",
userQuery:(g=u.selectedText)!=null?g:""}));else{if(!u.token)return P.return();G.store.dispatch(SpI({stepId:u.stepId,token:u.token,isSelected:!0}))}_.Sd(P)})};
BP[c4]=[yp];var $P=function(Y){this.store=Y};
_.m($P,iL);$P.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L;return _.a(function(g){O=_.z(Y,daT);if(!O||!O.stepId)return g.return();K=(t=(Q=G)==null?void 0:(M=Q.form)==null?void 0:M.userQuery)!=null?t:"";u.store.dispatch(NOk({stepId:O.stepId,userQuery:K,userQueryToken:(L=O.userQueryToken)!=null?L:""}));_.Sd(g)})};
$P[c4]=[yp];_.rXo=new _.Sb("TIMELY_ACTIONS_CONTROLLER_TOKEN");var qV=function(Y){this.controller=Y};
_.m(qV,iL);qV.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M;return _.a(function(t){u=_.z(Y,GkM);if(!u)return t.return();O=u;Q=O.id;M=O.isVisible;if(Q===void 0||M===void 0)return t.return();var K;(K=G.controller.timelyActionsMap.get(Q))==null||K(Q,M);_.Sd(t)})};
qV[c4]=[_.rXo];var xU9=function(){this.timelyActionsMap=new Map};var sC=function(Y){this.JSC$18178_commandHandler=Y};
_.m(sC,iL);sC.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t;return _.a(function(K){u=_.z(Y,_.tml);if(!u)return K.return();M=(O=u.item)==null?void 0:(Q=O.notificationTextRenderer)==null?void 0:Q.successResponseText;if(!M)return K.return();t=_.hH(M);G.JSC$18178_commandHandler.resolveCommand(t);_.Sd(K)})};
sC[c4]=[_.rH];var cP=function(Y,G){this.innertubeTransportService=Y;this.JSC$18183_playerApiPromise=G};
_.m(cP,iL);
cP.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K,L,g,P;return _.a(function(I){if(I.nextAddress==1)return I.yield(G.JSC$18183_playerApiPromise,2);u=I.yieldResult;O=u.getOption("captions","track");Q=Object.assign({},_.z(Y,_.PhI));(t=(M=u.getVideoData())==null?void 0:M.video_id)?Q.externalVideoId=t:_.N3(Error("Ki"));if((K=O)==null?0:K.languageCode)Q.languageCode=O.languageCode;if((L=O)==null?0:L.kind)Q.kind=O.kind;if((g=O)==null?0:g.name)Q.name=O.name;P=Object.assign({},Y,{getTranscriptEndpoint:Q});return I.yield(_.iv(G.innertubeTransportService,
P),0)})};
cP[c4]=[_.KB,_.$h];var UC=function(){};
_.m(UC,iL);UC.prototype.resolveCommand=function(Y){var G,u,O,Q,M,t,K,L;return _.a(function(g){G=_.z(Y,OMI);if((u=G)==null||!u.paramKeyValuePairs)return g.return();O=window.location.href;Q=_.E(G.paramKeyValuePairs);for(M=Q.next();!M.done;M=Q.next())t=M.value,t.key&&t.value&&(K={},O=_.B4(O,(K[t.key]=t.value,K)));L=_.sH().resolve(_.Q7);_.Oa(L,O);_.Sd(g)})};_.vP=new _.Sb("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var Jb=function(Y,G,u,O){this.controller=Y;this.JSC$18190_playerApiPromise=G;this.innertubeTransportService=u;this.JSC$18190_commandHandler=O};
_.m(Jb,iL);
Jb.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B;return _.a(function(N){if(N.nextAddress==1){u=_.z(Y,fRk);if((O=u)==null||!O.watchEndpoint)return N.return();Q=new Gz;M=Q.JSC$14506_getRequest(u.watchEndpoint);if(!M)return N.return();t=u.watchEndpoint.clickTrackingParams;return N.yield(_.Cl(G.innertubeTransportService,M.innerTubeRequest,M.input,t,M.config),2)}if(N.nextAddress!=3)return K=N.yieldResult,N.yield(G.JSC$18190_playerApiPromise,3);L=N.yieldResult;L.updateVideoData({raw_watch_next_response:K});
if(p=(g=K)==null?void 0:(P=g.contents)==null?void 0:(I=P.twoColumnWatchNextResults)==null?void 0:(k=I.results)==null?void 0:(n=k.results)==null?void 0:n.contents)C=(W=p.find(function(h){return h.videoPrimaryInfoRenderer}))==null?void 0:W.videoPrimaryInfoRenderer,((e=C)==null?0:e.subtitle)&&fMN(G.controller,C.subtitle);
(B=(w=K)==null?void 0:w.onUiReady)&&G.JSC$18190_commandHandler.resolveCommand(B);_.Sd(N)})};
Jb[c4]=[_.vP,_.$h,_.KB,_.rH];var Cd9=function(){this.subtitleChangeCallbackMap=new Map},fMN=function(Y,G){Y=_.E(Y.subtitleChangeCallbackMap.values());
for(var u=Y.next();!u.done;u=Y.next())u=u.value,u(G)};var Ye=function(Y,G){this.JSC$18200_commandHandler=Y;this.innertubeTransportService=G};
_.m(Ye,iL);
Ye.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B;return _.a(function(N){switch(N.nextAddress){case 1:return(M=(O=G)==null?void 0:(Q=O.form)==null?void 0:Q.element)&&_.i6(M),t=_.EU().get("hl"),K="",_.i3(N,2),N.yield(KLu(t),4);case 4:K=N.yieldResult;_.j1(N,3);break;case 2:return _.b3(N),M&&_.Rz(M),_.o0(Error("Mi"),"ERROR"),N.return();case 3:L=_.z(Y,diR);if(!L)return M&&_.Rz(M),N.return();(I=(g=L.commerceActionConfig)==null?void 0:(P=g.commandLifeCycleConfig)==null?
void 0:P.onStartCommand)&&u.JSC$18200_commandHandler.resolveCommand(I);return N.yield(_.iv(u.innertubeTransportService,Y,{client_data:{paymentsClientToken:{token:K}}}),5);case 5:(k=N.yieldResult)?(M&&_.Rz(M),((C=k)==null?0:C.command)&&u.JSC$18200_commandHandler.resolveCommand(k.command),(B=(e=L.commerceActionConfig)==null?void 0:(w=e.commandLifeCycleConfig)==null?void 0:w.onSuccessCommand)&&u.JSC$18200_commandHandler.resolveCommand(B)):(M&&_.Rz(M),_.o0(Error("Ni")),(W=(n=L.commerceActionConfig)==
null?void 0:(p=n.commandLifeCycleConfig)==null?void 0:p.onFailureCommand)&&u.JSC$18200_commandHandler.resolveCommand(W)),_.Sd(N)}})};
Ye[c4]=[_.rH,_.KB];var GZ=function(Y,G,u){this.store=Y;this.JSC$18216_commandHandler=G;this.innertubeTransportService=u};
_.m(GZ,iL);
GZ.prototype.resolveCommand=function(Y,G){var u=this,O,Q,M,t,K,L,g,P,I;return _.a(function(k){O=_.z(Y,bR4);Q=O.googlePaymentPayload;O.onStartCommand&&u.JSC$18216_commandHandler.resolveCommand(O.onStartCommand);M=Q.encryptedPurchaseParams;t=Q.ypcLogWalletAnalyticDataEndpoint;K=O.serializedTransactionFlowLoggingParams;L=Q.serializedPaymentsClientParams;g=O.ypcCujContext;I=LLa(u.innertubeTransportService,(P=G)==null?void 0:P.form,M,t,K,L,g);return k.return(I.then(function(n){aWA(G==null?void 0:G.form,
!1);var p=u.store,W=u.JSC$18216_commandHandler,C=n.integratorData;C==null||C===""||n.error!=null?(String(n.error)==="-1"&&O.onDismissCommand?W.resolveCommand(O.onDismissCommand):String(n.error)!=="-1"&&O.onFailureCommand&&W.resolveCommand(O.onFailureCommand),String(n.error)!=="-1"&&String(n.error)!=="132"&&_.o0(Error("Oi"),"ERROR")):(O.googlePaymentEntityKey&&p.dispatch(_.t$("commerceAcquisitionClientPayloadEntity",O.googlePaymentEntityKey,{key:O.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:C,
fundsGuaranteeCallbackClientData:n.integratorClientCallbackData}}})),O.onSuccessCommand&&W.resolveCommand(O.onSuccessCommand));_.v$()},function(n){aWA(G==null?void 0:G.form,!1);
_.o0(n,"ERROR");O.onFailureCommand&&u.JSC$18216_commandHandler.resolveCommand(O.onFailureCommand)}))})};
GZ[c4]=[Un,_.rH,_.KB];var uH=function(Y,G){this.JSC$18220_commandHandler=Y;this.purchaseManager=G};
_.m(uH,iL);
uH.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M,t,K,L,g,P;return _.a(function(I){u=_.z(Y,Sal);((O=u)==null?0:(Q=O.commandLifeCycleConfig)==null?0:Q.onStartCommand)&&G.JSC$18220_commandHandler.resolveCommand(u.commandLifeCycleConfig.onStartCommand);if(!((M=u)==null?0:(t=M.googlePaymentPurchaseManagerPayload)==null?0:t.securePayloadBytes))return _.o0(Error("Pi"),"ERROR"),I.return();K=NHX(_.JY(u.googlePaymentPurchaseManagerPayload.securePayloadBytes));L=_.EU().get("hl");g=_.RS();LSN(K.serialize(),
L,function(k){g.resolve(k)},function(k){g.reject(k)},g.resolve);
P=g.promise;return I.return(P.then(function(k){if(k)if(k==null?0:k.errorCode){_.o0(Error("Qi`"+k.errorCode),"ERROR");var n,p;((n=u)==null?0:(p=n.commandLifeCycleConfig)==null?0:p.onFailureCommand)&&G.JSC$18220_commandHandler.resolveCommand(u.commandLifeCycleConfig.onFailureCommand)}else if(k==null?0:k.isCancelled){var W,C;((W=u)==null?0:(C=W.commandLifeCycleConfig)==null?0:C.onCancelCommand)&&G.JSC$18220_commandHandler.resolveCommand(u.commandLifeCycleConfig.onCancelCommand)}else{var e,w;((e=u)==
null?0:(w=e.commandLifeCycleConfig)==null?0:w.onSuccessCommand)&&G.JSC$18220_commandHandler.resolveCommand(u.commandLifeCycleConfig.onSuccessCommand)}},function(k){_.o0(k,"ERROR");
var n,p;((n=u)==null?0:(p=n.commandLifeCycleConfig)==null?0:p.onFailureCommand)&&G.JSC$18220_commandHandler.resolveCommand(u.commandLifeCycleConfig.onFailureCommand)}))})};
uH[c4]=[_.rH,gxx];var yXj=function(Y,G){this.JSC$18228_commandHandler=Y;this.commandAllowlistOverride=G;var u;this.commandAllowlist=(u=this.commandAllowlistOverride)!=null?u:Umy};
yXj.prototype.handleResponse=function(Y,G,u){var O,Q=G==null?void 0:(O=G.config)==null?void 0:O.command;if(!Q||this.commandAllowlist.some(function(M){return!!_.z(Q,M)})){G=void 0;
u!==void 0&&(G={form:{element:u}});Y.onResponseReceivedCommand&&this.JSC$18228_commandHandler.resolveCommand(Y.onResponseReceivedCommand,G);Y.onResponseReceivedAction&&this.JSC$18228_commandHandler.resolveCommand(Y.onResponseReceivedAction,G);Y.onResponseReceivedEndpoint&&this.JSC$18228_commandHandler.resolveCommand(Y.onResponseReceivedEndpoint,G);Y.command&&this.JSC$18228_commandHandler.resolveCommand(Y.command,G);if(Y.onResponseReceivedCommands)for(u=_.E(Y.onResponseReceivedCommands),O=u.next();!O.done;O=
u.next())this.JSC$18228_commandHandler.resolveCommand(O.value,G);if(Y.onResponseReceivedActions)for(u=_.E(Y.onResponseReceivedActions),O=u.next();!O.done;O=u.next())this.JSC$18228_commandHandler.resolveCommand(O.value,G);if(Y.onResponseReceivedEndpoints)for(u=_.E(Y.onResponseReceivedEndpoints),O=u.next();!O.done;O=u.next())this.JSC$18228_commandHandler.resolveCommand(O.value,G);if(Y.actions)for(Y=_.E(Y.actions),u=Y.next();!u.done;u=Y.next())this.JSC$18228_commandHandler.resolveCommand(u.value,G)}};
yXj[c4]=[_.rH,_.q3(ccu)];var eBx=new _.Sb("INNERTUBE_TOKEN_SERVICE");var AXN=new _.Sb("SCHEDULER_TOKEN");var oIN=function(Y){this.scheduler=Y;Y={};this.tokenMap=(Y.app={},Y.user={},Y)};
oIN.prototype.handleResponse=function(Y,G){if(!G)throw Error("Ri");var u;if(Y=(u=Y.responseContext)==null?void 0:u.innertubeTokenJar){if(Y.appTokens){var O,Q,M;u=(O=G.innerTubeRequest.context)==null?void 0:(Q=O.request)==null?void 0:(M=Q.innertubeTokenJar)==null?void 0:M.appTokens;imb(this,Y.appTokens,this.tokenMap.app,u)}if(Y.userTokens){var t,K,L;G=(t=G.innerTubeRequest.context)==null?void 0:(K=t.request)==null?void 0:(L=K.innertubeTokenJar)==null?void 0:L.userTokens;imb(this,Y.userTokens,this.tokenMap.user,
G)}}};
oIN.prototype.processContext=function(Y){Y.request||(Y.request={});var G=Object.keys(this.tokenMap.app).length,u=Object.keys(this.tokenMap.user).length;if(G||u)Y.request.innertubeTokenJar={},G&&(Y.request.innertubeTokenJar.appTokens=[].concat(_.c8(Object.values(this.tokenMap.app).flat()))),u&&(Y.request.innertubeTokenJar.userTokens=[].concat(_.c8(Object.values(this.tokenMap.user).flat())))};
var imb=function(Y,G,u,O){G=_.E(G);for(var Q=G.next(),M={};!Q.done;M={token$jscomp$139:void 0},Q=G.next()){M.token$jscomp$139=Q.value;if(M.token$jscomp$139.type===void 0)throw new _.I2("InnerTube token has no type",M.token$jscomp$139);if(M.token$jscomp$139.clearTokens)u[M.token$jscomp$139.type]=[];else if(M.token$jscomp$139.value!==void 0){u[M.token$jscomp$139.type]||(u[M.token$jscomp$139.type]=[]);if(O!==void 0&&O.length){Q=_.E(O);for(var t=Q.next(),K={};!t.done;K={requestToken:void 0},t=Q.next())K.requestToken=
t.value,t=u[M.token$jscomp$139.type].findIndex(function(L){return function(g){return g===L.requestToken||(0,_.gX.equals)(g,L.requestToken)}}(K)),t>-1&&u[M.token$jscomp$139.type].splice(t,1)}u[M.token$jscomp$139.type].push(M.token$jscomp$139);
M.token$jscomp$139.maxAgeSeconds&&Number(M.token$jscomp$139.maxAgeSeconds)>0&&Y.scheduler.addLowPriorityJob(function(L){return function(){var g=u[L.token$jscomp$139.type].indexOf(L.token$jscomp$139);g>-1&&u[L.token$jscomp$139.type].splice(g,1)}}(M),Number(M.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.I2("InnerTube token has no value",M.token$jscomp$139);
}};
oIN[c4]=[AXN];var RBx=new _.Sb("LOCAL_INNERTUBE_ROUTER_TOKEN"),wFb=new _.Sb("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var O7=function(Y){this.serviceMap=Y};
O7.prototype.shouldPreferLocalResponse=function(Y,G){return(Y=Zmg(this,Y))?Y.shouldPreferLocalResponse(G):!1};
O7.prototype.localInnertubeResponse=function(Y,G){var u=this,O;return _.a(function(Q){return(O=Zmg(u,Y))?Q.return(O.localInnertubeResponse(G)):Q.return(Promise.reject(Error("Si")))})};
O7.prototype.canProvideFallbackResponse=function(Y,G){return(Y=Zmg(this,Y))?Y.canProvideFallbackResponse(G):!1};
O7.prototype.localFallbackInnertubeResponse=function(Y,G){var u=this,O;return _.a(function(Q){return(O=Zmg(u,Y))?Q.return(O.localFallbackInnertubeResponse(G)):Q.return(Promise.reject(Error("Si")))})};
var Zmg=function(Y,G){G=_.BI(G);return G?(Y=Y.serviceMap[G])?Y:null:null};
O7[c4]=[wFb];var PH=function(){};
PH.prototype.shouldPreferLocalResponse=function(){return!1};
PH.prototype.localInnertubeResponse=function(){return _.a(function(Y){return Y.return(Promise.reject(Error("Ti")))})};
PH.prototype.canProvideFallbackResponse=function(){return!0};
PH.prototype.localFallbackInnertubeResponse=function(){var Y,G,u;return _.a(function(O){Y=On("CLOSE_POPUP");G={openPopupAction:XNY()};u={actions:[Y,G]};return O.return(u)})};var jMt=function(Y,G){this.JSC$18277_upliftPromise=Y;this.store=G};
_.H=jMt.prototype;_.H.shouldPreferLocalResponse=function(Y){var G=Y.videoId,u;if(u=G)u=NMT(this.store.getState().entities,Y.videoId);return u&&jtj(this.store.getState().entities,G)?IWt(this.store.getState().entities,Y.playlistId):!1};
_.H.localInnertubeResponse=function(Y){var G=this,u;return _.a(function(O){return(u=G.getPlayerResponse(Y))?O.return(Promise.resolve(u)):O.return(Promise.reject(Error("Ui")))})};
_.H.canProvideFallbackResponse=function(Y){return!!Y.videoId};
_.H.localFallbackInnertubeResponse=function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(G.JSC$18277_upliftPromise,2);u=G.getPlayerResponse(Y);var Q;u?Q=O.return(Promise.resolve(u)):Q=ai(G.store.getState().entities,Y.videoId)?O.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Sy(_.Q6("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:kJj()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
O.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Sy(_.Q6("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:I6u()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return Q})};
_.H.getPlayerResponse=function(Y){return PAA(this.store.getState().entities,Y.videoId)};var XO=function(Y,G){this.localPlayerService=Y;this.localWatchNextService=G};
XO.prototype.shouldPreferLocalResponse=function(Y){var G=Y.playerRequest;Y=Y.watchNextRequest;return!!(G&&this.localPlayerService.shouldPreferLocalResponse(G)&&Y&&this.localWatchNextService.shouldPreferLocalResponse(Y))};
XO.prototype.localInnertubeResponse=function(Y){var G=this,u,O,Q,M;return _.a(function(t){if(t.nextAddress==1){u=Y.playerRequest;O=Y.watchNextRequest;if(!u||!O)throw new _.I2("Missing streaming request",Y);return t.yield(G.localPlayerService.localInnertubeResponse(u),2)}if(t.nextAddress!=3)return Q=t.yieldResult,t.yield(G.localWatchNextService.localInnertubeResponse(O),3);M=t.yieldResult;return t.return({playerResponse:Q,watchNextResponse:M})})};
XO.prototype.canProvideFallbackResponse=function(Y){var G=Y.playerRequest;Y=Y.watchNextRequest;return!!(G&&this.localPlayerService.canProvideFallbackResponse(G)&&Y&&this.localWatchNextService.canProvideFallbackResponse(Y))};
XO.prototype.localFallbackInnertubeResponse=function(Y){var G=this,u,O,Q,M;return _.a(function(t){if(t.nextAddress==1)return u=Y.playerRequest,O=Y.watchNextRequest,u&&O?t.yield(G.localPlayerService.localFallbackInnertubeResponse(u),2):t.return(Promise.reject(new _.I2("Missing streaming request",Y)));if(t.nextAddress!=3)return Q=t.yieldResult,t.yield(G.localWatchNextService.localFallbackInnertubeResponse(O),3);M=t.yieldResult;return t.return({playerResponse:Q,watchNextResponse:M})})};var T0=function(Y){this.JSC$18287_persistentStorePromiseAccessor=Y};
T0.prototype.shouldPreferLocalResponse=function(){return!1};
T0.prototype.localInnertubeResponse=function(){return _.a(function(Y){return Y.return(Promise.reject(Error("Vi")))})};
T0.prototype.canProvideFallbackResponse=function(){return!0};
T0.prototype.localFallbackInnertubeResponse=function(){var Y=this,G,u;return _.a(function(O){return O.nextAddress==1?O.yield(Y.JSC$18287_persistentStorePromiseAccessor(),2):O.nextAddress!=3?(G=O.yieldResult)?O.yield(G.get("service:guide:fallback"),3):O.return(Promise.reject(Error("Wi"))):(u=O.yieldResult)&&_.sn(u)?O.return(k4a(_.sn(u))):O.return(Promise.reject(Error("Xi")))})};var If=function(){};
If.prototype.shouldPreferLocalResponse=function(){return!1};
If.prototype.localInnertubeResponse=function(){return _.a(function(Y){return Y.return(Promise.reject(Error("Yi")))})};
If.prototype.canProvideFallbackResponse=function(){return!0};
If.prototype.localFallbackInnertubeResponse=function(){var Y,G,u;return _.a(function(O){Y=On("CLOSE_POPUP");G={openPopupAction:XNY()};u={actions:[Y,G]};return O.return(u)})};var af=function(){this.urlMap=DUB;this.fallbackCommand=_.Hq};
af.prototype.shouldPreferLocalResponse=function(Y){return(Y=Y.url)?!!hBy(this,Y):!1};
af.prototype.localInnertubeResponse=function(Y){var G=this,u;return _.a(function(O){return(u=Y.url)?O.return(dUb(Y,hBy(G,u))):O.return(Promise.reject(Error("Zi")))})};
af.prototype.canProvideFallbackResponse=function(){return!0};
af.prototype.localFallbackInnertubeResponse=function(Y){var G=this,u,O,Q,M,t,K,L;return _.a(function(g){u=Y.url;if(!u)return g.return(dUb(Y,G.fallbackCommand));if(O=hBy(G,u))return g.return(dUb(Y,O));Q=void 0;M=_.BI(u);M==="/watch"&&(t=_.Gh(u,"v"))&&(L=(K=_.Gh(u,"list"))!=null?K:void 0,Q=_.bg(t,L));Q||(Q=G.fallbackCommand);return g.return(dUb(Y,Q))})};
var hBy=function(Y,G){if(G)return Y.urlMap[_.$x(G)]},dUb=function(Y,G){G&&Y.parentTrackingParams&&(G.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:Y.parentTrackingParams}},G.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:G})};var Ly=function(Y,G,u){this.JSC$18298_upliftPromise=Y;this.store=G;this.JSC$18298_persistentStorePromiseAccessor=u};
Ly.prototype.shouldPreferLocalResponse=function(){return!1};
Ly.prototype.localInnertubeResponse=function(){return _.a(function(Y){return Y.return(Promise.reject(Error("$i")))})};
Ly.prototype.canProvideFallbackResponse=function(){return!0};
Ly.prototype.localFallbackInnertubeResponse=function(){var Y=this;return _.a(function(G){return G.return(bmg(Y))})};
var bmg=function(Y){var G,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(qF(Y.JSC$18298_upliftPromise,Y.store),2);G=O.yieldResult;u={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[P4A(G)]}}}};return O.return(S_b(Y,u))})},S_b=function(Y,G){var u,O;
return _.a(function(Q){if(Q.nextAddress==1)return Q.yield(Y.JSC$18298_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3)return u=Q.yieldResult,Q.yield(cU(u),3);O=Q.yieldResult;return Q.return({responseContext:{},contents:G,topbar:O})})};var tV=function(Y,G,u){this.JSC$18305_upliftPromise=Y;this.store=G;this.JSC$18305_persistentStorePromiseAccessor=u};
tV.prototype.shouldPreferLocalResponse=function(Y){var G=Y.videoId;return G&&NMT(this.store.getState().entities,G)&&jtj(this.store.getState().entities,G)?IWt(this.store.getState().entities,Y.playlistId):!1};
tV.prototype.localInnertubeResponse=function(Y){var G=this,u,O;return _.a(function(Q){if(Q.nextAddress==1)return(u=Y.videoId)?Q.yield(G.JSC$18305_upliftPromise,2):Q.return(Promise.reject(Error("aj")));if(Q.nextAddress!=3)return Q.yield(NXg(G,Y,u),3);O=Q.yieldResult;return Q.return(jyx(G,O,u))})};
tV.prototype.canProvideFallbackResponse=function(Y){return Y.videoId?!0:!1};
tV.prototype.localFallbackInnertubeResponse=function(Y){var G=this,u,O,Q,M;return _.a(function(t){switch(t.nextAddress){case 1:return(u=Y.videoId)?t.yield(G.JSC$18305_upliftPromise,2):t.return(Promise.reject(Error("aj")));case 2:return t.yield(NXg(G,Y,u),3);case 3:O=t.yieldResult;if(ai(G.store.getState().entities,u)){t.jumpTo(4);break}return t.yield(qF(G.JSC$18305_upliftPromise,G.store),5);case 5:return Q=t.yieldResult,t.return(VhS(O,Q));case 4:return NMT(G.store.getState().entities,u)&&jtj(G.store.getState().entities,
u)?t.return(jyx(G,O,u)):(M={title:_.Sy(_.Q6("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:kJj()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},t.return(VhS(O,M)))}})};
var NXg=function(Y,G,u){var O,Q,M,t,K;return _.a(function(L){if(L.nextAddress==1)return O=G.playlistId,Q=_.bg(u,O),L.yield(Y.JSC$18305_persistentStorePromiseAccessor(),2);if(L.nextAddress!=3)return M=L.yieldResult,L.yield(cU(M),3);t=L.yieldResult;K={responseContext:{},currentVideoEndpoint:Q,topbar:t};return L.return(K)})},jyx=function(Y,G,u){if(Y=ai(Y.store.getState().entities,u)){var O;
u=Y.videoEntity;var Q,M={title:Nu(u.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.jy((O=u.localizedStrings)==null?void 0:O.viewCount),viewCount:_.jy((Q=u.localizedStrings)==null?void 0:Q.viewCount)}}};u.publishedTimestampMillis&&(M.dateText=_.jy(h5j(new Date(Number(u.publishedTimestampMillis)))));O={videoPrimaryInfoRenderer:M};Q=Y.videoEntity;Y=Y.channelEntity;Y={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Nu(_.Q6("SHOW_MORE",void 0,"Show more")),
showLessText:Nu(_.Q6("SHOW_LESS",void 0,"Show less")),description:Q.formattedDescription,owner:{videoOwnerRenderer:{title:Nu(Y.title),thumbnail:Y.avatar}}}};G.contents={twoColumnWatchNextResults:{results:{results:{contents:[O,Y]}}}}}return G},VhS=function(Y,G){Y.contents={singleColumnWatchNextResults:{results:{results:{contents:[P4A(G)]}}}};
return Y};var gV=function(Y,G,u){this.JSC$18310_upliftPromise=Y;this.store=G;this.JSC$18310_persistentStorePromiseAccessor=u};
gV.prototype.shouldPreferLocalResponse=function(){return!1};
gV.prototype.localInnertubeResponse=function(){return _.a(function(Y){return Y.return(Promise.reject(Error("bj")))})};
gV.prototype.canProvideFallbackResponse=function(){return!0};
gV.prototype.localFallbackInnertubeResponse=function(){var Y=this,G,u,O,Q;return _.a(function(M){switch(M.nextAddress){case 1:return M.yield(Y.JSC$18310_persistentStorePromiseAccessor(),2);case 2:return G=M.yieldResult,M.yield(cU(G),3);case 3:return u=M.yieldResult,O={responseContext:{},topbar:u},M.yield(Y.JSC$18310_upliftPromise,4);case 4:return M.yield(qF(Y.JSC$18310_upliftPromise,Y.store),5);case 5:return Q=M.yieldResult,O.watchStatus={backgroundPromoRenderer:Q},M.return(O)}})};var lMS=new _.Sb("ENDPOINT_MAP"),BXx=new _.Sb("WATCH_ENDPOINT_MAP"),$Uj=new _.Sb("REEL_ENDPOINT_MAP");var WLA=/^[a-zA-Z0-9_\-]{11}$/;var r_j=_.F8(function(){var Y,G;return(G=(Y=window).matchMedia)==null?void 0:G.call(Y,"(prefers-reduced-motion: reduce)").matches});var q_V=_.F8(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 Y=_.So("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");Y||(Y=_.uI("VIDEO"),_.U5("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
Y));return!!(Y&&Y.canPlayType&&Y.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var syb=XMLHttpRequest.prototype.fetch,cXo=syb&&syb.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!s5?!0:!1;var QL=function(Y){this.JSC$18321_storeWithEntities=Y};
_.m(QL,WO);_.H=QL.prototype;_.H.getApiPaths=function(){return oQk};
_.H.getExtension=function(Y){return _.z(Y,_.ic)||_.z(Y,_.Qa)||_.z(Y,mHV)};
_.H.isNavigationCommand=function(){return!0};
_.H.JSC$14513_getStoreKey=function(Y){if((_.F("kevlar_cache_on_ttl_player")||_.F("mweb_enable_shorts_innertube_player_prefetch")||_.F("mweb_use_new_history_manager")||_.F("web_shorts_prefetch_service_enabled"))&&(Y=this.getExtension(Y))&&Y.videoId){var G={videoId:Y.videoId};Y.playlistId&&(G.playlistId=Y.playlistId);Y.playerParams&&(G.params=Y.playerParams);return _.ox("player",G)}};
_.H.JSC$14506_getClientScreen=function(Y){var G;return((G=Y.contentPlaybackContext)==null?void 0:G.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.H.JSC$14506_buildRequest=function(Y,G,u){if(_.F("enable_interstitial_entity_check")){var O=this.JSC$18321_storeWithEntities;if(G.videoId)for(var Q=_.E(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),M=Q.next();!M.done;M=Q.next()){M=M.value;var t;var K=void 0,L=void 0,g=G.videoId,P=M;(t=O)?(g=_.UU(g+P,"interstitialInteractionStateEntity"),t=(K=(L=_.v2(t.getState().entities,"interstitialInteractionStateEntity",g))==null?void 0:L.primaryButtonClicked)!=null?K:!1):t=!1;if(t)switch(M){case "CONTENT_CHECK_REQUIRED":G.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":G.racyCheckOk=!0}}}G.videoId&&(Y.videoId=G.videoId);G.playlistId&&(Y.playlistId=G.playlistId);G.index!==void 0&&(Y.playlistIndex=G.index+1);G.playerParams&&(Y.params=G.playerParams);"startTimeSeconds"in G&&G.startTimeSeconds&&(_.F("enable_player_request_builder_start_time_floor")?Y.startTimeSecs=Math.floor(G.startTimeSeconds):Y.startTimeSecs=G.startTimeSeconds);u.contentPlaybackContext&&(Y.playbackContext={contentPlaybackContext:u.contentPlaybackContext});u.prefetchPlaybackContext&&
(Y.playbackContext=Object.assign({},Y.playbackContext,{prefetchPlaybackContext:u.prefetchPlaybackContext}),Y.context.request||(Y.context.request={}),Y.context.request.isPrefetch=!0);Y.playbackContext||(Y.playbackContext={});O=q_V();Y.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!O,supportXhr:cXo};u.overrideMutedAtStart&&(Y.overrideMutedAtStart=u.overrideMutedAtStart);Y.racyCheckOk=!!G.racyCheckOk;Y.contentCheckOk=!!G.contentCheckOk;!_.F("captions_prefs_killswitch")&&(u=(u=_.LB("yt-player-caption-language-preferences"))?
u:[],u==null?0:u.length)&&(Y.captionParams={viewerSelectedCaptionLangs:u})};
_.H.getRequestConfig=function(Y){Y=this.JSC$14513_getStoreKey(Y);var G;Y&&(G={storeStrategy:{storeKey:Y}});_.F("web_log_player_watch_next_ticks")&&(G=G||{},G.requestTick="ps_s",G.responseTick="ps_r");return G};
QL[c4]=[Un];var Mk=function(Y,G){this.playerRequestBuilder=Y;this.watchNextRequestBuilder=G};
_.m(Mk,WO);Mk.prototype.getApiPaths=function(){return pAT};
Mk.prototype.getExtension=function(Y){return _.z(Y,_.ic)};
Mk.prototype.isNavigationCommand=function(){return!0};
Mk.prototype.JSC$14506_buildRequest=function(Y,G,u){Y.playerRequest={};this.playerRequestBuilder.JSC$14506_buildRequest(Y.playerRequest,G,u);if(_.F("web_streaming_watch")||_.F("mweb_streaming_watch"))Y.watchNextRequest={},this.watchNextRequestBuilder.JSC$14506_buildRequest(Y.watchNextRequest,G,u)};
Mk[c4]=[QL,Gz];var UUx;_.Hl=new _.Sb("SHORTS_CONTROLLER_TOKEN");UUx=new _.Sb("SHORTS_STATE_STORE_TOKEN");var E7=function(Y,G){var u=_.vs.apply(2,arguments);Y=Y===void 0?0:Y;_.I2.call(this,G,u);this.errorType=Y;Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(E7,_.I2);var vIx,JXy,Yy9,l7A,of,OT2,O7N,uYN,tGx,H79,MGy;vIx=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(Y){return Y+"="}).join("|"));
JXy=RegExp(".*\\?.*playnext=1.*");Yy9=function(Y,G,u,O,Q,M){this.watchEndpointMap=Y;this.reelWatchEndpointMap=G;this.innerTubeTransportService=u;this.fetchPbj=O;this.ephemeralStore=Q;this.reloadOnPlayerFailure=M===void 0?!0:M};
_.Gm9=function(Y,G){var u=_.Jy("web_pbj_log_warning_rate",0);u=u>0&&Math.random()<u;var O;if((O=_.z(G.commandMetadata,_.ug))==null||!O.rootVe)return u&&_.R0(Error("gj")),!1;var Q;O=(Q=_.z(G.commandMetadata,_.ug))==null?void 0:Q.url;if(!O)return u&&_.R0(Error("hj")),!1;if(JXy.test(O))return!0;if(vIx.test(O))return u&&_.R0(Error("ij`"+O)),!1;if(_.z(G,_.ic)){if(!(Y.watchEndpointMap.watchNext&&Y.watchEndpointMap.player||_.F("kevlar_fetch_initial_data_op_watch_client")))return u&&_.R0(Error("cj")),!1;
Y=_.Jy("web_pbj_log_warning_rate",0);Y=Y>0&&Math.random()<Y;_.z(G,_.ic)?zuy(G)?G=!0:(Y&&_.R0(Error("dj")),G=!1):(Y&&_.R0(Error("cj")),G=!1);return G}if(_.z(G,_.Qa))return mTU(G);if(_.z(G,_.mP))return!0;Y=_.oS(Y.innerTubeTransportService,G);!Y&&u&&_.o0(Error("jj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(G)});return Y};
l7A=function(Y,G,u,O,Q,M){G={url:G};if(u==null?0:u.itct)G.parentTrackingParams=u.itct;var t=_.Ds(Sie);return _.Cl(Y.innerTubeTransportService,G,t).then(function(K){(K=K.endpoint)||(K=_.Hq);(u==null?0:u.itct)&&K&&!K.trackingParams&&(K.trackingParams=u.itct);var L=u0(K);return of(Y,K,u,O,L,Q,M)})};
of=function(Y,G,u,O,Q,M,t,K){K=K===void 0?{}:K;if(Y.fetchPbj&&!_.Gm9(Y,G)&&!_.F("force_one_platform")){var L=Y.fetchPbj(G),g=_.v$(L.then(function(q){if(!q)throw Error("kj");t(g)||M(G,q);return q}));
return g}var P,I,k={rootVe:(P=_.z(G.commandMetadata,_.ug))==null?void 0:P.rootVe,url:(I=_.z(G.commandMetadata,_.ug))==null?void 0:I.url,endpoint:G,page:Q};if(_.z(G,_.ic)){var n,p={contentPlaybackContext:_.vU(u,(n=_.z(G.commandMetadata,_.ug))==null?void 0:n.url,O)},W=_.RS(),C,e=(C=Y.watchEndpointMap.player)==null?void 0:C().JSC$14513_getStoreKey(G);C=e!==void 0&&((L=Y.ephemeralStore)==null?void 0:L.has(e));window.TextDecoderStream?(_.F("web_log_streamed_get_watch_supported")&&_.LK("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_STREAMED_GET_WATCH_SUPPORTED"),
L=_.F("web_streaming_watch")||_.F("mweb_streaming_watch")):L=!1;L&&!C?(L=FH4(Y.innerTubeTransportService,G,p,function(q){!k.response&&q.content&&(k.response=q.content);!k.playerResponse&&q.player&&(k.playerResponse=q.player);M(G,k)}),e=j_T(G),e.length&&(k.preconnect=e,M(G,k)),uYN(L,W,k).catch(function(q){q instanceof E7&&q.errorType===2&&_.F("web_streaming_watch_fallback")&&O7N(Y,G,p,k,M,t,W)})):O7N(Y,G,p,k,M,t,W);
return W.promise}if(_.z(G,_.Qa)){var w;if(((w=_.z(G,_.Qa))==null?void 0:w.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var B=_.RS();_.Qe9(_.sH().resolve(_.Hl),G).then(function(q){MGy(Y,u,O,Q,M,B,q)});
return B.promise}L=_.v$();C={contentPlaybackContext:_.vU(u,(e=_.z(G.commandMetadata,_.ug))==null?void 0:e.url,O)};(e=Y.reelWatchEndpointMap.player)&&(e=e().JSC$14506_getRequest(G,C))&&(L=_.Cl(Y.innerTubeTransportService,e.innerTubeRequest,e.input,G.clickTrackingParams,e.config));e=_.v$();(K=Y.reelWatchEndpointMap.reelItemWatch)&&(K=K().JSC$14506_getRequest(G))&&(e=_.Cl(Y.innerTubeTransportService,K.innerTubeRequest,K.input,G.clickTrackingParams,K.config));K=_.v$();(P=Y.reelWatchEndpointMap.reelWatchSequence)&&
_.z(G,_.Qa).sequenceParams&&(C=P().JSC$14506_getRequest(G,C))&&(K=_.Cl(Y.innerTubeTransportService,C.innerTubeRequest,C.input,G.clickTrackingParams,C.config));C=_.v$(k);P=_.RS();H79(G,C,L,e,K,M,t,P);return P.promise}var N;if(_.z(G,uFa)&&((N=_.z(G.commandMetadata,_.ug))==null?0:N.url))return L=QbI(_.bI(kI().location.href),_.bI(_.z(G.commandMetadata,_.ug).url)).toString(),l7A(Y,L,u,O,M,function(){return!1});
if(_.z(G,_.mP))return M(G,k),_.v$(k);if(_.oS(Y.innerTubeTransportService,G)){L=Object.assign({},{tempData:u,disableCache:u.disableCache},K);var h=_.iv(Y.innerTubeTransportService,G,L).then(function(q){k.response=q;t(h)||M(G,k);return k});
return h}return _.v$(k)};
_.EHg=function(Y,G,u,O){if(_.z(G,_.ic)||_.z(G,_.Qa)&&(_.F("mweb_enable_shorts_innertube_player_prefetch")||_.F("kevlar_enable_shorts_prefetch_in_sequence"))||_.z(G,mHV)&&_.F("web_enable_prefetching_videos_on_home")){var Q,M={contentPlaybackContext:_.vU(u,(Q=_.z(G.commandMetadata,_.ug))==null?void 0:Q.url,O),prefetchPlaybackContext:fWA(u)},t,K,L;if(((t=_.z(G,_.ic))==null?void 0:(K=t.watchEndpointSupportedPrefetchConfig)==null?void 0:(L=K.prefetchHintConfig)==null?void 0:L.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(u=
Y.watchEndpointMap.watchNext)if(M=u().JSC$14506_getRequest(G,M))return Promise.resolve(_.Cl(Y.innerTubeTransportService,M.innerTubeRequest,M.input,void 0,M.config).then(function(I){return I}))}else if(u=Y.watchEndpointMap.player)if(M=u().JSC$14506_getRequest(G,M))return Promise.resolve(_.Cl(Y.innerTubeTransportService,M.innerTubeRequest,M.input,void 0,M.config).then(function(I){return I}))}else if(_.oS(Y.innerTubeTransportService,G)){var g={tempData:u},P=g9U(Y.innerTubeTransportService,G);
return P?new Promise(function(I,k){var n,p;return _.a(function(W){if(W.nextAddress==1)return W.yield(P,2);if(W.nextAddress!=4)return n=W.yieldResult,n.JSC$14513_getStoreKey(G,g)?W.yield(_.iv(Y.innerTubeTransportService,G,g),4):(k(new _.I2("Prefetching request builder with no store key.",G)),W.jumpTo(0));p=W.yieldResult;I(p);_.Sd(W)})}):Promise.reject(new _.I2("Prefetching unregistered request builder.",G))}return Promise.reject(new _.I2("No request builder available to prefetch endpoint.",G))};
OT2=function(Y,G){var u,O,Q;if(_.z(G,_.ic)){var M=Y.watchEndpointMap.watchNext;M&&(u=M());(Y=Y.watchEndpointMap.player)&&(O=Y())}else if(_.z(G,_.Qa))(M=Y.reelWatchEndpointMap.reelItemWatch)&&(u=M()),(M=Y.reelWatchEndpointMap.player)&&(O=M()),(Y=Y.reelWatchEndpointMap.reelWatchSequence)&&(Q=Y());else{a:{Y=iW4(G,Y.innerTubeTransportService.endpointMap);if(Y!==void 0)if(typeof Y.then==="function")_.o0(new _.I2("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",G));else break a;
Y=void 0}Y&&(u=Y)}var t,K,L;return{content:(t=u)==null?void 0:t.JSC$14513_getStoreKey(G),player:(K=O)==null?void 0:K.JSC$14513_getStoreKey(G),reelSequence:(L=Q)==null?void 0:L.JSC$14513_getStoreKey(G)}};
O7N=function(Y,G,u,O,Q,M,t){var K=_.v$(),L=Y.watchEndpointMap.player;_.F("web_streaming_player")&&(L=fz(Mk));L&&(L=L().JSC$14506_getRequest(G,u))&&(K=_.Cl(Y.innerTubeTransportService,L.innerTubeRequest,L.input,G.clickTrackingParams,L.config));L=_.v$();var g=Y.watchEndpointMap.watchNext;g&&(u=g().JSC$14506_getRequest(G,u))&&(L=_.Cl(Y.innerTubeTransportService,u.innerTubeRequest,u.input,G.clickTrackingParams,u.config));O=_.v$(O);tGx(Y,G,O,K,L,Q,M,t)};
uYN=function(Y,G,u){var O;return _.a(function(Q){if(Q.nextAddress==1)return Q.yield(Y,2);_.F("web_streaming_watch_delay_200")||_.F("web_streaming_watch_delay_400")?(O=_.F("web_streaming_watch_delay_200")?200:400,setTimeout(function(){G.resolve(u)},O)):G.resolve(u);
_.Sd(Q)})};
tGx=function(Y,G,u,O,Q,M,t,K){var L,g,P,I,k;_.a(function(n){switch(n.nextAddress){case 1:return n.yield(u,2);case 2:L=n.yieldResult;if(t(K.promise))return K.resolve(L),n.return();M(G,L);g=j_T(G);if(!g.length){n.jumpTo(3);break}return n.yield(u,4);case 4:L.preconnect=g,M(G,L);case 3:return _.i3(n,5),n.yield(O,7);case 7:P=n.yieldResult;_.j1(n,6);break;case 5:return I=_.b3(n),K.reject(I),n.return();case 6:if(P===void 0&&Y.reloadOnPlayerFailure)return L.reload=!0,M(G,L),K.resolve(L),n.return();if(t(K.promise))return K.resolve(L),
n.return();L.playerResponse=P;M(G,L);(_.F("web_watch_stop_scheduler_on_player_response")||_.F("mweb_watch_stop_scheduler_on_player_response"))&&CgT();_.i3(n,8);return n.yield(Q,10);case 10:k=n.yieldResult;_.j1(n,9);break;case 8:_.b3(n);case 9:if(k===void 0)return L.response={responseContext:{}},K.resolve(L),n.return();if(t(K.promise))return K.resolve(L),n.return();L.response=k;M(G,L);K.resolve(L);_.Sd(n)}})};
H79=function(Y,G,u,O,Q,M,t,K){var L,g,P,I,k,n;_.a(function(p){switch(p.nextAddress){case 1:return p.yield(G,2);case 2:L=p.yieldResult;if(t(K.promise))return K.resolve(L),p.return();M(Y,L);g=j_T(Y);if(!g.length){p.jumpTo(3);break}return p.yield(G,4);case 4:L.preconnect=g,M(Y,L);case 3:return _.i3(p,5),p.yield(u,7);case 7:P=p.yieldResult;_.j1(p,6);break;case 5:return I=_.b3(p),K.reject(I),p.return();case 6:if(P===void 0)return L.reload=!0,M(Y,L),K.resolve(L),p.return();if(t(K.promise))return K.resolve(L),
p.return();L.playerResponse=P;M(Y,L);(_.F("web_shorts_stop_scheduler_on_player_response")||_.F("mweb_shorts_stop_scheduler_on_player_response"))&&CgT();_.i3(p,8);return p.yield(O,10);case 10:k=p.yieldResult;_.j1(p,9);break;case 8:_.b3(p);case 9:if(k===void 0)return L.response={responseContext:{}},K.resolve(L),p.return();if(t(K.promise))return K.resolve(L),p.return();L.response=k;M(Y,L);_.i3(p,11);return p.yield(Q,13);case 13:n=p.yieldResult;_.j1(p,12);break;case 11:_.b3(p);case 12:if(t(K.promise))return K.resolve(L),
p.return();n&&(L.reelWatchSequenceResponse=n);M(Y,L);K.resolve(L);_.Sd(p)}})};
MGy=function(Y,G,u,O,Q,M,t){var K,L,g,P,I,k;_.a(function(n){if((K=t)==null||!K.replacementEndpoint)return M.reject(),n.return();L=t.replacementEndpoint;(g=_.z(L,_.Qa))?(t.sequenceContinuation&&(g.sequenceParams=t.sequenceContinuation),P=_.sH().resolve(_.Hl),I=g.sequenceParams,Kfj(P,L)&&delete g.sequenceParams,k=of(Y,L,G,u,O,Q,function(){return!1}),k.then(function(p){return _.a(function(W){if(W.nextAddress==1)return a49(P,{reelWatchEndpoint:{sequenceParams:I}},p),W.yield(0,2);
M.resolve(p);_.Sd(W)})})):M.reject();
_.Sd(n)})};
Yy9[c4]=[BXx,$Uj,_.KB,_.q3(H9X),_.q3(_.Js)];var TUS=function(){var Y=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return Y.sequenceMap}}},pSE=function(Y,G,u){var O,Q=(O=G.config)==null?void 0:O.sequenceStrategy;
if(!Q)return u();Y.sequenceMap.has(Q.sequenceKey)||Y.sequenceMap.set(Q.sequenceKey,[]);Y=Y.sequenceMap.get(Q.sequenceKey);switch(Q.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return LfN(Y,G,u);case "REQUEST_SEQUENCE_TYPE_REPLACE":return gHx(Y,G,u);default:throw new _.I2("Request could not be sequenced",G);}},LfN=function(Y,G,u){var O,Q,M;
return _.a(function(t){Y.length>0?(Q=Y[Y.length-1],O=Q.responsePromise.then(function(){return u()})):O=u();
M={request:G,responsePromise:O};Y.push(M);XMB(Y,M);return t.return(M.responsePromise)})},gHx=function(Y,G,u){u=u();
if(Y.length>0)for(var O=_.E(Y),Q=O.next();!Q.done;Q=O.next())Q.value.responsePromise=u;var M={request:G,responsePromise:u};Y.push(M);XMB(Y,M);return Promise.resolve().then(function(){return Y.indexOf(M)>0?M.responsePromise.then(function(t){return Object.assign({},t,{sequenceMetaData:{skipProcessing:!0}})}):M.responsePromise})},XMB=function(Y,G){G.responsePromise.then(function(){var u=Y.indexOf(G);
u>-1&&Y.splice(u,1)})};var PIo=new _.Sb("REQUEST_SEQUENCING");var tA=function(){};
_.m(tA,WO);tA.prototype.getApiPaths=function(){return[]};
tA.prototype.getExtension=function(Y){return _.z(Y,YzM)};
tA.prototype.JSC$14506_buildRequest=function(Y,G){Y.recaptchaToken=G.recaptchaToken};
tA.prototype.getApiUrl=function(){return"/das_captcha"};var K_=function(){};
_.m(K_,WO);K_.prototype.getApiPaths=function(){return Su_};
K_.prototype.getExtension=function(Y){return _.z(Y,iL_)};
K_.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;G.createBackstagePostParams&&(Y.createBackstagePostParams=G.createBackstagePostParams);u.comment_text&&(Y.commentText=u.comment_text);if(u.attached_video_id)Y.videoAttachment={videoId:u.attached_video_id};else if(u.image_poll_options)Y.pollAttachmentData={options:u.image_poll_options};else if(u.poll_options)Y.pollAttachment={choices:u.poll_options};else if(u.quiz_options)Y.quizAttachmentData={options:u.quiz_options};else if(u.image_blob_id)Y.imageAttachment=
{encryptedBlobId:u.image_blob_id},u.source_video_id&&(Y.imageAttachment.sourceExternalVideoId=u.source_video_id),u.image_preview_coordinates&&(Y.imageAttachment.previewCoordinates=JSON.parse(u.image_preview_coordinates));else if(u.images_data)Y.imagesAttachment={imagesData:u.images_data};else if(u.clip_external_video_id!==void 0||u.clip_offset_ms!==void 0||u.clip_duration_ms!==void 0){var O,Q,M,t,K;Y.clipAttachment={externalVideoId:(M=u.clip_external_video_id)!=null?M:"",offsetMs:(t=(O=u.clip_offset_ms)==
null?void 0:O.toString())!=null?t:"",durationMs:(K=(Q=u.clip_duration_ms)==null?void 0:Q.toString())!=null?K:""}}else u.shared_post_id&&(Y.sharedPostAttachment={postId:u.shared_post_id});u.tagged_video_id&&(Y.postCreationData={taggedVideoId:u.tagged_video_id});u.access_restrictions&&(typeof u.access_restrictions==="number"&&(G=u.access_restrictions,Y.accessRestrictions={restriction:G!==1&&G===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof u.access_restrictions==="string"&&
(Y.accessRestrictionsParams=u.access_restrictions));u.scheduled_publish_time_sec&&(Y.scheduledPublishTimeSec=u.scheduled_publish_time_sec.toString())};var av=function(){};
_.m(av,WO);av.prototype.getApiPaths=function(){return quI};
av.prototype.getExtension=function(Y){return _.z(Y,RFl)};
av.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;G.decorateMessageParams&&(Y.params=G.decorateMessageParams);u.text&&(Y.text=u.text)};var TZ=function(){};
_.m(TZ,WO);TZ.prototype.getApiPaths=function(){return XAl};
TZ.prototype.getExtension=function(Y){return _.z(Y,Rte)};
TZ.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;u.video_id&&(Y.videoId=u.video_id)};var L_=function(){};
_.m(L_,WO);L_.prototype.getApiPaths=function(){return Fo_};
L_.prototype.getExtension=function(Y){return _.z(Y,_.Gb)};
L_.prototype.JSC$14506_buildRequest=function(Y,G,u){u.suggestions_query&&(Y.input=u.suggestions_query)};var gn=function(){};
_.m(gn,WO);gn.prototype.getApiPaths=function(){return JSR};
gn.prototype.getExtension=function(Y){return _.z(Y,wye)};
gn.prototype.JSC$14506_buildRequest=function(Y,G,u){u.comment_text!==void 0&&(Y.commentText=u.comment_text);u.scheduled_publish_time_sec&&(Y.scheduledPublishTimeSec=u.scheduled_publish_time_sec.toString());Y.updateBackstagePostParams=G.updateBackstagePostParams};var X$=function(){};
_.m(X$,WO);X$.prototype.getApiPaths=function(){return S8};
X$.prototype.getExtension=function(Y){return _.z(Y,_.rE)};
X$.prototype.JSC$14506_buildRequest=function(Y,G,u){u.formData&&(Y.formData=u.formData);G.token?Y.continuation=G.token:G.continuationTokenKey&&(u=_.Zs().getState(),G=_.v2(u.entities,"continuationTokenEntity",G.continuationTokenKey))&&(Y.continuation=String(G.continuationToken))};
var I4y=function(){};
_.m(I4y,WO);_.H=I4y.prototype;_.H.getApiPaths=function(){return S8};
_.H.getExtension=function(Y){return _.z(Y,_.Y3)};
_.H.isNavigationCommand=function(){return!0};
_.H.JSC$14513_getStoreKey=function(Y){if((Y=this.getExtension(Y))&&Y.browseId){var G={browseId:Y.browseId};Y.browseEndpointContextSupportedConfigs&&(G.browseEndpointContextSupportedConfigs=JSON.stringify(Y.browseEndpointContextSupportedConfigs));Y.params&&(G.params=Y.params);Y.query&&(G.query=Y.query);return _.ox("browse",G)}};
_.H.JSC$14506_buildRequest=function(Y,G,u){G.browseId&&(Y.browseId=G.browseId);G.params&&(Y.params=G.params);G.query&&(Y.query=G.query);u.formData?Y.formData=u.formData:G.formData&&(Y.formData=G.formData);G.browseId==="FEsubscriptions"&&_.EU().getFlag(155)&&(Y.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");G.browseId==="SPaccount_playback"&&(u=_.EU(),Y.formData||(Y.formData={}),Y.formData.accountSettingsFormData={flagCaptionsDefaultOff:u.getFlag(65),flagAutoCaptionsDefaultOn:u.getFlag(66),
flagDisableInlinePreview:u.getFlag(186),flagAudioDescriptionDefaultOn:u.getFlag(198)});if(G.browseId==="FEwhat_to_watch"){u=_.EU();var O=u.getFlag(196);u.getFlag(197)&&(Y.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:O}}})}G.browseId==="FEwhat_to_watch"&&(G=_.EU().getFlag(186),Y.inlineSettingStatus=G?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.H.getRequestConfig=function(Y,G){G=G===void 0?{}:G;var u={};if(Y=this.JSC$14513_getStoreKey(Y,G))u.storeStrategy={storeKey:Y,disableCache:G.disableCache};_.F("web_log_browse_ticks_ks")||(u.requestTick="br_s",u.responseTick="br_r");return u};var Pl=function(){};
_.m(Pl,WO);Pl.prototype.getApiPaths=function(){return wdV};
Pl.prototype.getExtension=function(Y){return _.z(Y,LA1)};
Pl.prototype.JSC$14506_buildRequest=function(Y,G,u){Y.legacyYoutubeChannelUsername=u.legacyYouTubeChannelUsername||"";Y.legacyYoutubeChannelPassword=u.legacyYouTubeChannelPassword||""};var Iv=function(){};
_.m(Iv,WO);Iv.prototype.getApiPaths=function(){return N7E};
Iv.prototype.getExtension=function(Y){return _.z(Y,juE)};
Iv.prototype.JSC$14506_buildRequest=function(Y,G,u){u.recaptcha_response_token&&(Y.recaptchaResponseToken=u.recaptcha_response_token);u.channel_id&&(Y.channelId=u.channel_id)};var ke=function(){};
_.m(ke,WO);ke.prototype.getApiPaths=function(){return YPl};
ke.prototype.getExtension=function(Y){return _.z(Y,suX)};
ke.prototype.JSC$14506_buildRequest=function(Y,G,u){G.externalChannelId&&(Y.externalChannelId=G.externalChannelId);u.handle&&(Y.handleUpdate={handle:u.handle},G.handleEditSource&&(Y.handleUpdate.handleEditSource=G.handleEditSource))};var n_=function(){};
_.m(n_,WO);n_.prototype.getApiPaths=function(){return Qb4};
n_.prototype.getExtension=function(Y){return _.z(Y,npk)};
n_.prototype.JSC$14506_buildRequest=function(Y,G,u){G.request&&(Y.channelId=G.request.channelId);var O;if(u==null?0:(O=u.uploadDefaults)==null?0:O.emojiReactionSet)Y.uploadDefaultsRequest||(Y.uploadDefaultsRequest={}),Y.uploadDefaultsRequest.emojiReactionSet=u.uploadDefaults.emojiReactionSet};var F$=function(){};
_.m(F$,WO);F$.prototype.getApiPaths=function(){return EJl};
F$.prototype.getExtension=function(Y){return _.z(Y,VmT)};
F$.prototype.JSC$14506_buildRequest=function(Y,G,u){G.externalChannelId&&(Y.externalChannelId=G.externalChannelId);G.channelHandleEntityKey&&(Y.channelHandleEntityKey=G.channelHandleEntityKey);G.handleEditSource&&(Y.handleEditSource=G.handleEditSource);u.handle?Y.handle=u.handle:u.name&&(Y.name=u.name)};var p_=function(){};
_.m(p_,WO);p_.prototype.getApiPaths=function(){return h7k};
p_.prototype.getExtension=function(Y){return _.z(Y,ImM)};
p_.prototype.JSC$14506_buildRequest=function(Y,G){G.actions?Y.actions=G.actions:G.action&&(Y.actions=[G.action])};var zZ=function(){};
_.m(zZ,WO);zZ.prototype.getApiPaths=function(){return dh1};
zZ.prototype.getExtension=function(Y){return _.z(Y,_.rE)};
zZ.prototype.JSC$14506_buildRequest=function(Y,G){G.token&&(Y.continuation=G.token)};var mC=function(){};
_.m(mC,WO);mC.prototype.getApiPaths=function(){return LoE};
mC.prototype.getExtension=function(Y){return _.z(Y,_.rE)};
mC.prototype.JSC$14506_buildRequest=function(Y,G){Y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";G.token&&(Y.fetchCommentsParams={continuation:G.token})};var Wl=function(){};
_.m(Wl,WO);Wl.prototype.getApiPaths=function(){return VQ1};
Wl.prototype.getExtension=function(Y){return _.z(Y,PAl)};
Wl.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;G.createReplyParams&&(Y.createReplyParams=G.createReplyParams);G.commentText&&(Y.commentText=_.Ri(G.commentText));u.comment_text&&(Y.commentText=u.comment_text);u.image_blob_id&&(Y.imageAttachment={encryptedBlobId:u.image_blob_id});u.botguard_response&&(Y.botguardResponse=u.botguard_response)};
_.Uk.Object.defineProperties(Wl.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rn=function(){};
_.m(rn,WO);rn.prototype.getApiPaths=function(){return lD_};
rn.prototype.getExtension=function(Y){return _.z(Y,_.XfE)};
rn.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;G.createCommentParams&&(Y.createCommentParams=G.createCommentParams);G.commentText&&(Y.commentText=_.Ri(G.commentText));G.videoPositionMention&&(Y.videoPositionMention=G.videoPositionMention);G.sources&&(Y.sources=G.sources);u.comment_text&&(Y.commentText=u.comment_text);u.attached_video_id?Y.videoAttachment={videoId:u.attached_video_id}:u.poll_options?Y.pollAttachment={choices:u.poll_options}:u.image_blob_id?Y.imageAttachment=
{encryptedBlobId:u.image_blob_id}:u.shared_post_id&&(Y.sharedPostAttachment={postId:u.shared_post_id});u.access_restrictions&&typeof u.access_restrictions==="number"&&(G=u.access_restrictions,Y.accessRestrictions={restriction:G!==1&&G===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});u.botguard_response&&(Y.botguardResponse=u.botguard_response)};
_.Uk.Object.defineProperties(rn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xe=function(){};
_.m(xe,WO);xe.prototype.getApiPaths=function(){return GsR};
xe.prototype.getExtension=function(Y){return _.z(Y,nKM)};
xe.prototype.JSC$14506_buildRequest=function(Y,G,u){G.commentText&&(Y.replyText=_.Ri(G.commentText));u.comment_text&&(Y.replyText=u.comment_text);Y.updateReplyParams=G.updateReplyParams};
_.Uk.Object.defineProperties(xe.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var f_=function(){};
_.m(f_,WO);f_.prototype.getApiPaths=function(){return uTU};
f_.prototype.getExtension=function(Y){return _.z(Y,ke_)};
f_.prototype.JSC$14506_buildRequest=function(Y,G,u){G.commentText&&(Y.commentText=_.Ri(G.commentText));u.comment_text&&(Y.commentText=u.comment_text);Y.updateCommentParams=G.updateCommentParams};
_.Uk.Object.defineProperties(f_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var C_=function(){};
_.m(C_,WO);C_.prototype.getApiPaths=function(){return OpM};
C_.prototype.getExtension=function(Y){return _.z(Y,X0T)};
C_.prototype.JSC$14506_buildRequest=function(Y,G){G.settings&&(Y.settings=G.settings)};var yL=function(){};
_.m(yL,WO);yL.prototype.getApiPaths=function(){return MP4};
yL.prototype.getExtension=function(Y){return _.z(Y,lI2)};
yL.prototype.JSC$14506_buildRequest=function(Y,G){G.channelCreationToken&&(Y.channelCreationToken=G.channelCreationToken);G.source&&(Y.source=G.source)};var es=function(){};
_.m(es,WO);es.prototype.getApiPaths=function(){return jNI};
es.prototype.getExtension=function(Y){return _.z(Y,qze)};
es.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;if(u.name&&(u.given_name||u.family_name))Y=new _.I2("channel creation cannot set both GAIA and YouTube names",G),_.o0(Y);else{if(G.zeroStepChannelCreationParams){if(!u.comment_text){Y=new _.I2("zero_step_create_comment_params but no zero_step_texts",G);_.o0(Y);return}Y.zeroStepChannelCreationParams=G.zeroStepChannelCreationParams;Y.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(Y.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
u.comment_text,u.botguard_response&&(Y.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=u.botguard_response))}Y.channelCreationToken=G.channelCreationToken;u.given_name&&(Y.givenName=u.given_name);u.family_name&&(Y.familyName=u.family_name);G.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(Y.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(u.name||u.handle||u.avatar_url||u.encryptedBlobId||u.isNameChanged!==void 0||u.isHandleChanged!==void 0||u.isDefaultProfilePhoto!==
void 0||u.obakeImageSource)Y.overrideChannelCreationParams={},u.name&&(Y.overrideChannelCreationParams.name=u.name),u.handle&&(Y.overrideChannelCreationParams.handle=u.handle),u.avatar_url&&(Y.overrideChannelCreationParams.avatarUrl=u.avatar_url),u.encryptedBlobId&&(Y.overrideChannelCreationParams.blobEncryptionId=u.encryptedBlobId),u.enableIdentityForAllChannelCreationDialog&&(u.encryptedBlobId?Y.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
u.isDefaultProfilePhoto!==void 0&&(Y.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=u.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),u.isNameChanged!==void 0&&(Y.overrideChannelCreationParams.identityForAllChannelCreationNameTag=u.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),u.isHandleChanged!==
void 0&&(Y.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=u.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),u.obakeImageSource&&(Y.overrideChannelCreationParams.obakeImageSourceType=u.obakeImageSource))}};var AA=function(){};
_.m(AA,WO);AA.prototype.getApiPaths=function(Y){return(Y=this.getExtension(Y))&&Y.status==="DISLIKE"?vBk:Y&&Y.status==="INDIFFERENT"?DwR:rSe};
AA.prototype.getExtension=function(Y){return _.z(Y,_.XV)};
AA.prototype.JSC$14506_buildRequest=function(Y,G){G.target&&(Y.target=G.target);if(G=this.getParams(G))Y.params=G};
AA.prototype.getParams=function(Y){switch(Y==null?void 0:Y.status){case "DISLIKE":return Y.dislikeParams;case "INDIFFERENT":return Y.removeLikeParams;default:return Y==null?void 0:Y.likeParams}};var ov=function(){};
_.m(ov,WO);ov.prototype.getApiPaths=function(){return $wI};
ov.prototype.getExtension=function(Y){return _.z(Y,rs4)};
ov.prototype.JSC$14506_buildRequest=function(Y,G){G.settingItemId&&(Y.settingItemId=G.settingItemId);G.stringValue!=null&&G.stringValue!==void 0?Y.newValue={stringValue:G.stringValue}:G.intValue?Y.newValue={intValue:G.intValue}:G.boolValue!==null&&G.boolValue!==void 0?Y.newValue={boolValue:G.boolValue}:(Y=new _.I2("Unknown value type for SetSettingEndpoint.",G),_.o0(Y))};var iH=function(){};
_.m(iH,WO);iH.prototype.getApiPaths=function(){return cSk};
iH.prototype.getExtension=function(Y){return _.z(Y,NWe)||void 0};
iH.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;G.channelIds&&(Y.channelIds=G.channelIds);G.siloName&&(Y.siloName=G.siloName);G.params&&(Y.params=G.params);u.botguardResponse&&(Y.botguardResponse=u.botguardResponse);u.feature&&(Y.clientFeature=u.feature)};
_.Uk.Object.defineProperties(iH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Rv=function(){};
_.m(Rv,WO);Rv.prototype.getApiPaths=function(){return vQX};
Rv.prototype.getExtension=function(Y){return _.z(Y,xeR)||void 0};
Rv.prototype.JSC$14506_buildRequest=function(Y,G){G.channelIds&&(Y.channelIds=G.channelIds);G.siloName&&(Y.siloName=G.siloName);G.params&&(Y.params=G.params)};
_.Uk.Object.defineProperties(Rv.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wn=function(Y){this.shareClientParamsProvider=Y};
_.m(wn,WO);wn.prototype.getApiPaths=function(){return poj};
wn.prototype.getExtension=function(Y){return _.z(Y,cCE)||_.z(Y,_.Uy2)||_.z(Y,s8R)};
wn.prototype.JSC$14506_buildRequest=function(Y,G){G.serializedShareEntity&&(Y.serializedSharedEntity=G.serializedShareEntity);if(G.clientParamIdentifier){var u;if((u=this.shareClientParamsProvider)==null?0:u.clientParams.has(G.clientParamIdentifier)){u=this.shareClientParamsProvider;G=G.clientParamIdentifier;var O=u.clientParams.get(G);O&&u.clientParams.delete(G);Y.clientParams=O}}};
wn[c4]=[jhj];var Zr=function(){};
_.m(Zr,WO);Zr.prototype.getApiPaths=function(){return oBR};
Zr.prototype.getExtension=function(Y){return _.z(Y,zhU)};
Zr.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params)};var Dr=function(){};
_.m(Dr,WO);Dr.prototype.getApiPaths=function(){return Jq1};
Dr.prototype.getExtension=function(Y){return _.z(Y,FA4)};
Dr.prototype.JSC$14506_buildRequest=function(Y,G){G.dismissal&&(Y.items=[G.dismissal])};
_.Uk.Object.defineProperties(Dr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hA=function(){};
_.m(hA,WO);hA.prototype.getApiPaths=function(){return mwR};
hA.prototype.getExtension=function(Y){return _.z(Y,_.WH)||void 0};
hA.prototype.JSC$14506_buildRequest=function(Y,G,u){Y.feedbackTokens=[];G.feedbackToken&&Y.feedbackTokens.push(G.feedbackToken);if(G=G.cpn||u.cpn)Y.feedbackContext={cpn:G};Y.isFeedbackTokenUnencrypted=!!u.is_feedback_token_unencrypted;Y.shouldMerge=!1;u.extra_feedback_tokens&&(Y.shouldMerge=!0,Y.feedbackTokens=Y.feedbackTokens.concat(u.extra_feedback_tokens))};
_.Uk.Object.defineProperties(hA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dn=function(){};
_.m(dn,WO);dn.prototype.getApiPaths=function(){return mwR};
dn.prototype.getExtension=function(Y){return _.z(Y,_.Gb)};
dn.prototype.JSC$14506_buildRequest=function(Y,G,u){u.feedback_tokens&&(Y.feedbackTokens=u.feedback_tokens,Y.shouldMerge=!0)};
_.Uk.Object.defineProperties(dn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bH=function(){};
_.m(bH,WO);bH.prototype.getApiPaths=function(){return mwR};
bH.prototype.getExtension=function(Y){return _.z(Y,YIV)};
bH.prototype.JSC$14506_buildRequest=function(Y,G){G.undoToken&&(Y.feedbackTokens=[G.undoToken]);G.isUndoTokenUnencrypted&&(Y.isFeedbackTokenUnencrypted=G.isUndoTokenUnencrypted)};
_.Uk.Object.defineProperties(bH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ss=function(){};
_.m(Ss,WO);Ss.prototype.getApiPaths=function(){return t4l};
Ss.prototype.getExtension=function(Y){return _.z(Y,IhE)};
Ss.prototype.JSC$14506_buildRequest=function(Y,G){G.nextEndpoint&&_.z(G.nextEndpoint,_.SK)?Y.nextEndpoint={urlEndpoint:_.z(G.nextEndpoint,_.SK)}:G.nextEndpoint&&_.z(G.nextEndpoint,_.ic)&&(Y.nextEndpoint={watchEndpoint:_.z(G.nextEndpoint,_.ic)});G.setRacy&&(Y.setRacy=G.setRacy);G.setControvercy&&(Y.setControvercy=G.setControvercy)};var Nk=function(Y){this.JSC$18523_storeWithEntities=Y};
_.m(Nk,WO);Nk.prototype.getApiPaths=function(){return GTE};
Nk.prototype.getExtension=function(Y){return _.z(Y,jZI)};
Nk.prototype.JSC$14506_buildRequest=function(Y,G){G.flowId&&(Y.flowId=G.flowId);G.targetId&&(Y.targetId=G.targetId);G.continuation&&(Y.continuation=G.continuation);var u=G.flowStateEntityKey;if(G.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&u&&this.JSC$18523_storeWithEntities){var O;if(G=(O=this.JSC$18523_storeWithEntities.getState())==null?void 0:O.entities)if(O=_.B2(u).entityType,O=_.v2(G,O,u))Y.flowState=O,Y.flowStateEntityKey=u}};
_.Uk.Object.defineProperties(Nk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
Nk[c4]=[Un];var km9=function(){};
_.m(km9,WO);_.H=km9.prototype;_.H.getApiPaths=function(){return zdR};
_.H.JSC$14513_getStoreKey=function(){return _.ox("guide")};
_.H.getRequestConfig=function(){var Y=this.JSC$14513_getStoreKey(),G;Y&&(G={storeStrategy:{storeKey:Y}});return G};
_.H.isNavigationCommand=function(){return!0};
_.H.getExtension=function(Y){return _.z(Y,_.Gb)};
_.H.JSC$14506_buildRequest=function(Y){Y.fetchLiveState=!0};var js=function(){};
_.m(js,WO);js.prototype.getApiPaths=function(){return ZNR};
js.prototype.getExtension=function(Y){return _.z(Y,TWk)};
js.prototype.JSC$14506_buildRequest=function(){};var VL=function(){};
_.m(VL,WO);VL.prototype.getApiPaths=function(){return Dh_};
VL.prototype.getExtension=function(Y){return _.z(Y,LeR)};
VL.prototype.JSC$14506_buildRequest=function(){};var lH=function(){};
_.m(lH,WO);lH.prototype.getApiPaths=function(){return AqV};
lH.prototype.getExtension=function(Y){return _.z(Y,_.rE)};
lH.prototype.JSC$14506_buildRequest=function(Y,G){G.token&&(Y.continuation=G.token);var u,O;Y==null||(u=Y.context)==null||(O=u.user)==null||delete O.onBehalfOfUser};
lH.prototype.getRequestConfig=function(Y){var G={},u;if(((u=this.getExtension(Y))==null?void 0:u.sessionIndex)!==void 0){var O;G={authStrategy:{sessionIndex:(O=this.getExtension(Y))==null?void 0:O.sessionIndex}}}return G};var JA=function(){};
_.m(JA,WO);JA.prototype.JSC$14506_getRequest=function(Y){var G=this.getExtension(Y),u=Y="";if(G==null?0:G.popup)Y="true";if(G==null?0:G.disableSignout)u="true";G={};return{input:"/getAccountSwitcherEndpoint",requestShell:Av("/getAccountSwitcherEndpoint","GET",(G["X-YouTube-Delegation-Context"]=_.DE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),G["X-YouTube-Account-Switcher-Popup"]=Y,G["X-YouTube-Account-Switcher-Disable-Signout"]=u,G)),innerTubeRequest:{}}};
JA.prototype.getApiPaths=function(){return[]};
JA.prototype.getExtension=function(Y){return _.z(Y,_.Bs1)};
JA.prototype.JSC$14506_buildRequest=function(){};var Y0=function(){};
_.m(Y0,WO);Y0.prototype.JSC$14506_getRequest=function(Y){var G="/cross_account_channel_transfer";(Y=this.getExtension(Y))&&(G=W7T(G,{target_session:Y.targetSessionIndex,source_rapt:Y.sourceRapt,rapt:Y.targetRapt}));return{input:G,requestShell:Av(G,"GET"),innerTubeRequest:{}}};
Y0.prototype.getApiPaths=function(){return[]};
Y0.prototype.getExtension=function(Y){return _.z(Y,HL4)};
Y0.prototype.JSC$14506_buildRequest=function(){};var Gq=function(){};
_.m(Gq,WO);Gq.prototype.getApiPaths=function(){return uFk};
Gq.prototype.isNavigationCommand=function(){return!0};
Gq.prototype.getExtension=function(Y){return _.z(Y,_.Gb)};
Gq.prototype.JSC$14506_buildRequest=function(Y){var G=_.EU().get("gsml","");G&&(Y.safetyModeLockerObfuscatedGaiaId=G);Y.userInterfaceTheme=_.x3(!0);_.fB()?Y.deviceTheme="DEVICE_THEME_SELECTED":_.GsT()?Y.deviceTheme="DEVICE_THEME_SUPPORTED":Y.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var ux=function(){};
_.m(ux,WO);ux.prototype.getApiPaths=function(){return AqV};
ux.prototype.getExtension=function(Y){return _.z(Y,EtI)};
ux.prototype.JSC$14506_buildRequest=function(Y,G){if(G&&G.requestType&&(Y.requestType=G.requestType,G.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||G.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var u=G.nextUrl;u&&(_.xuj(u)||$4(u))&&(Y.nextNavendpoint={urlEndpoint:{url:u}})}G&&G.channelSwitcherQuery&&(Y.channelSwitcherQuery=G.channelSwitcherQuery);G&&G.triggerChannelCreation&&(Y.triggerChannelCreation=G.triggerChannelCreation);var O;if(G==null?0:(O=G.contentOwnerConfig)==
null?0:O.externalContentOwnerId)Y.contentOwnerConfig=G.contentOwnerConfig;Y.callCircumstance=G&&G.requestType&&G.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var Q,M;G=Y==null?void 0:(Q=Y.context)==null?void 0:(M=Q.user)==null?void 0:M.onBehalfOfUser;if(G!==void 0){Y.obfuscatedSelectedGaiaId=G;var t,K;Y==null||(t=Y.context)==null||(K=t.user)==null||delete K.onBehalfOfUser}var L,g;if(Q=Y==null?void 0:(L=Y.context)==null?void 0:(g=L.user)==null?
void 0:g.serializedDelegationContext)Y.selectedSerializedDelegationContext=Q};var Og=function(){};
_.m(Og,WO);Og.prototype.getApiPaths=function(){return iN_};
Og.prototype.getExtension=function(Y){return _.z(Y,vYI)};
Og.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params)};var Qf=function(){};
_.m(Qf,WO);Qf.prototype.getApiPaths=function(){return NDE};
Qf.prototype.getExtension=function(Y){return _.z(Y,_.tO1)};
Qf.prototype.JSC$14506_buildRequest=function(Y,G){if(G=G.createBroadcastRequest)Y.useMasks=G.useMasks,Y.broadcastType=G.broadcastType,Y.broadcastSource=G.broadcastSource,Y.broadcastMetadata=G.broadcastMetadata,Y.broadcastMetadataMask=G.broadcastMetadataMask,Y.videoMetadata=G.videoMetadata,Y.videoMetadataMask=G.videoMetadataMask,Y.liveChatSettingsUpdate=G.liveChatSettingsUpdate,Y.liveChatSettingsUpdateMask=G.liveChatSettingsUpdateMask,Y.cloneVideoId=G.cloneVideoId,Y.cloneWithOverrides=G.cloneWithOverrides,
Y.targetEntity=G.targetEntity,Y.scheduledRedirectMetadata=G.scheduledRedirectMetadata};var Mn=function(){};
_.m(Mn,WO);Mn.prototype.getApiPaths=function(){return BDI};
Mn.prototype.getExtension=function(Y){return _.z(Y,YhM)};
Mn.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;G.params&&(Y.params=G.params);u.questionText&&(Y.questionText=u.questionText);u.optionText&&u.optionText.length>0&&(Y.optionText=u.optionText)};var Hg=function(){};
_.m(Hg,WO);Hg.prototype.getApiPaths=function(){return sN1};
Hg.prototype.getExtension=function(Y){return _.z(Y,vwl)};
Hg.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params)};var Eg=function(){};
_.m(Eg,WO);Eg.prototype.getApiPaths=function(){return EQl};
Eg.prototype.getExtension=function(Y){return _.z(Y,qL4)};
Eg.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params)};var t5=function(){};
_.m(t5,WO);t5.prototype.getApiPaths=function(){return KoR};
t5.prototype.getExtension=function(Y){return _.z(Y,s_k)};
t5.prototype.JSC$14506_buildRequest=function(Y,G,u){G.params&&(Y.params=G.params);G.continuation&&(Y.continuation=G.continuation);u.currentPlayerState&&u.currentPlayerState.playerOffsetMs&&(Y.currentPlayerState={playerOffsetMs:u.currentPlayerState.playerOffsetMs.toString()})};var K6=function(){};
_.m(K6,WO);K6.prototype.getApiPaths=function(){return al_};
K6.prototype.getExtension=function(Y){return _.z(Y,$Q_)};
K6.prototype.JSC$14506_buildRequest=function(Y,G,u){G.params&&(Y.params=G.params);u.continuation&&(Y.continuation=u.continuation);"hidden"in u&&(Y.webClientInfo={isDocumentHidden:u.hidden});u.isInvalidationTimeoutRequest&&(Y.isInvalidationTimeoutRequest=u.isInvalidationTimeoutRequest);u.invalidationPayload&&(G=BuI(_.JY(cI(u.invalidationPayload))),Y.invalidationPayloadLastPublishAtUsec=Wa(G,2));u.reloadActionPanel&&(Y.reloadActionPanel=u.reloadActionPanel);u.fullReload&&(Y.fullReload=u.fullReload);
u.currentPlayerState&&(Y.currentPlayerState=u.currentPlayerState)};var ap=function(){};
_.m(ap,WO);ap.prototype.getApiPaths=function(){return xwk};
ap.prototype.getExtension=function(Y){return _.z(Y,JwM)};
ap.prototype.JSC$14506_buildRequest=function(Y,G){Y.params=G.params};var Tq=function(){};
_.m(Tq,WO);Tq.prototype.getApiPaths=function(){return tPR};
Tq.prototype.getExtension=function(Y){return _.z(Y,XO2)};
Tq.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params)};var L6=function(){};
_.m(L6,WO);L6.prototype.getApiPaths=function(){return T72};
L6.prototype.getExtension=function(Y){return _.z(Y,Pw_)};
L6.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params)};var g2=function(){};
_.m(g2,WO);g2.prototype.getApiPaths=function(){return flI};
g2.prototype.getExtension=function(Y){return _.z(Y,GcX)};
g2.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params)};var XD=function(){};
_.m(XD,WO);XD.prototype.getApiPaths=function(){return ySe};
XD.prototype.getExtension=function(Y){return _.z(Y,uu2)};
XD.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params)};var Pg=function(){};
_.m(Pg,WO);Pg.prototype.getApiPaths=function(){return hdV};
Pg.prototype.getExtension=function(Y){return _.z(Y,GrV)};
Pg.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params)};var Ip=function(){};
_.m(Ip,WO);Ip.prototype.getApiPaths=function(){return llR};
Ip.prototype.getExtension=function(Y){return _.z(Y,_.Oll)};
Ip.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;G.params&&(Y.params=G.params);u.client_message_id&&(Y.clientMessageId=u.client_message_id);u.recaptcha_token&&(Y.recaptchaToken=u.recaptcha_token);u.rich_message&&u.rich_message.text_segments?(G=u.rich_message.text_segments.map(function(O){var Q={};O.text&&(Q.text=O.text);O.emoji_id&&(Q.emojiId=O.emoji_id);return Q}),Y.richMessage={textSegments:G}):u.message&&(Y.message=u.message);
u.currentPlayerState&&(Y.currentPlayerState=u.currentPlayerState)};var k0=function(){};
_.m(k0,WO);k0.prototype.getApiPaths=function(){return B72};
k0.prototype.getExtension=function(Y){return _.z(Y,Qre)};
k0.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params)};var n6=function(){};
_.m(n6,WO);n6.prototype.getApiPaths=function(){return Uw2};
n6.prototype.getExtension=function(Y){return _.z(Y,HlX)};
n6.prototype.JSC$14506_buildRequest=function(Y,G,u){G.isUserInitiated&&(Y.isUserInitiated=G.isUserInitiated);G.initiationSource&&(Y.initiationSource=G.initiationSource);u.locationInfo&&(Y.context.client.locationInfo=u.locationInfo)};var FD=function(){};
_.m(FD,WO);FD.prototype.getApiPaths=function(){return CYU};
FD.prototype.getExtension=function(Y){return _.z(Y,K9R)};
FD.prototype.JSC$14506_buildRequest=function(Y,G,u){G.metadataUpdateRequest&&(G=G.metadataUpdateRequest,Y.encryptedVideoId=G.encryptedVideoId,G.liveChat&&(G=G.liveChat,Y.liveChat||(Y.liveChat={}),G.performAsExternalChannelId&&(Y.liveChat.performAsExternalChannelId=G.performAsExternalChannelId),G.source&&(Y.liveChat.source=G.source)));var O;if(u==null?0:(O=u.liveChat)==null?0:O.liveChatSettings)Y.liveChat||(Y.liveChat={}),u=u.liveChat.liveChatSettings,Y.liveChat.newLiveChatSettings=u,Y.liveChat.newLiveChatSettingsMask||
(Y.liveChat.newLiveChatSettingsMask={}),u.emojiReactionSet&&(Y.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var p6=function(){};
_.m(p6,WO);p6.prototype.getApiPaths=function(){return HpU};
p6.prototype.getExtension=function(Y){return _.z(Y,_.fm_)};
p6.prototype.JSC$14506_buildRequest=function(Y,G,u){u.continuation?Y.continuation=u.continuation:G.videoId&&(Y.videoId=G.videoId);u.clientParams&&(Y.clientParams=u.clientParams)};var zq=function(){};
_.m(zq,WO);zq.prototype.getApiPaths=function(){return LoE};
zq.prototype.getExtension=function(Y){return _.z(Y,_.pk)};
zq.prototype.JSC$14506_buildRequest=function(Y,G){Y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";Y.fetchCommentsParams={};G.videoId&&(Y.fetchCommentsParams.encryptedVideoId=G.videoId);G.postId&&(Y.fetchCommentsParams.postId=G.postId);G.externalChannelId&&(Y.fetchCommentsParams.externalChannelId=G.externalChannelId);G.linkedCommentId&&(Y.fetchCommentsParams.linkedCommentId=G.linkedCommentId);(0,_.gX.isEmpty)(Y.fetchCommentsParams)&&delete Y.fetchCommentsParams};var m6=function(){};
_.m(m6,WO);m6.prototype.getApiPaths=function(){return S8};
m6.prototype.JSC$14506_buildRequest=function(Y){Y.browseId="FEnotifications_inbox"};
m6.prototype.getExtension=function(Y){return _.z(Y,_.Gb)};var Wg=function(){};
_.m(Wg,WO);Wg.prototype.getApiPaths=function(){return LoE};
Wg.prototype.JSC$14506_buildRequest=function(Y,G){G.signal==="GET_NOTIFICATIONS_MENU"&&(Y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");G.ctoken&&(Y.ctoken=G.ctoken)};
var nHN=function(){};
_.m(nHN,Wg);nHN.prototype.getExtension=function(Y){return _.z(Y,_.Gb)};
var Ffo=function(){};
_.m(Ffo,Wg);Ffo.prototype.getExtension=function(Y){return _.z(Y,gcT)};var r2=function(){};
_.m(r2,WO);r2.prototype.getApiPaths=function(){return nQ4};
r2.prototype.getExtension=function(Y){return _.z(Y,_.Gb)};
r2.prototype.JSC$14506_buildRequest=function(){};var x0=function(){};
_.m(x0,WO);x0.prototype.getApiPaths=function(){return edE};
x0.prototype.getExtension=function(Y){return _.z(Y,z64)||void 0};
x0.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params);G.secondaryParams&&(Y.secondaryParams=G.secondaryParams)};var f6=function(){};
_.m(f6,WO);f6.prototype.getApiPaths=function(){return AS_};
f6.prototype.getExtension=function(Y){return _.z(Y,JCe)};
f6.prototype.JSC$14506_buildRequest=function(Y,G){G.undo&&(Y.undo=G.undo);G.serializedOptOut&&(Y.serializedOptOut=G.serializedOptOut);G.serializedRecordInteractionsRequest&&(Y.serializedRecordInteractionsRequest=G.serializedRecordInteractionsRequest)};var C6=function(){};
_.m(C6,WO);C6.prototype.getApiPaths=function(){return Rd2};
C6.prototype.getExtension=function(Y){return _.z(Y,Y6k)};
C6.prototype.JSC$14506_buildRequest=function(Y,G){G.serializedInteractionsRequest&&(Y.serializedRecordNotificationInteractionsRequest=G.serializedInteractionsRequest)};var yf=function(){};
_.m(yf,WO);yf.prototype.getApiPaths=function(){return zyt};
yf.prototype.getExtension=function(Y){return _.z(Y,_.Dv)};
yf.prototype.JSC$14506_buildRequest=function(Y,G,u){G=G===void 0?{}:G;u=u===void 0?{}:u;G.videoId?Y.videoId=G.videoId:G.playlistId&&(Y.playlistId=G.playlistId);var O;Y.crossDeviceDownloadData={isCrossDeviceDownload:(O=G.isCrossDeviceDownload)!=null?O:!1};!u.downloadToMobileEduShown&&G.isCrossDeviceDownload&&(Y.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var Q;if(O=(Q=G.offlineWebClientEligibility)!=null?Q:u.offlineWebClientEligibility)Y.offlineWebClientEligibility=O;var M;if(Q=(M=G.preferredFormatType)!=
null?M:u.preferredFormatType)Y.preferredFormatType=Q;var t;if(M=(t=G.lastOfflineQualitySettingsSavedMs)!=null?t:u.lastOfflineQualitySettingsSavedMs)Y.lastOfflineQualitySettingsSavedMs=M;G.params&&(Y.params=G.params)};var en=function(){};
_.m(en,WO);en.prototype.getApiPaths=function(){return du};
en.prototype.getExtension=function(Y){return _.z(Y,_.rE)};
en.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;G.token&&(Y.continuation=G.token);u.formData&&(Y.formData=u.formData)};var A5=function(){};
_.m(A5,WO);A5.prototype.getApiPaths=function(){return du};
A5.prototype.getExtension=function(Y){return _.z(Y,OII)};
A5.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;Y.continuation=u.continuation};var op=function(){};
_.m(op,WO);op.prototype.getApiPaths=function(){return du};
op.prototype.getExtension=function(Y){return _.z(Y,_.mJ)};
op.prototype.JSC$14506_buildRequest=function(Y,G){var u,O=G.panelIdentifier||((u=G.identifier)==null?void 0:u.tag);O&&(Y.panelId=O);var Q;if((Q=G.globalConfiguration)==null?0:Q.params){var M;Y.params=(M=G.globalConfiguration)==null?void 0:M.params}if(_.F("enable_ai_companion")){var t;G=G.engagementPanelExtras;if(G==null?0:(t=G.aiCompanionPanelExtras)==null?0:t.includeClientConversationId){var K,L;t=(L=(K=_.sH().resolve(_.q3(UIb)))==null?void 0:K("conversations"))==null?void 0:L.get("conversation_id")}else t=
void 0;if(K=t)Y.formData=Object.assign({},Y.formData,{inputComposerFormData:{conversationId:K}})}};
_.Uk.Object.defineProperties(op.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ix=function(){};
_.m(ix,WO);ix.prototype.getApiPaths=function(){return du};
ix.prototype.getExtension=function(Y){return _.z(Y,BWI)};
ix.prototype.JSC$14506_buildRequest=function(Y,G){G.panelLoadingStrategy&&C4I(Y,G.panelLoadingStrategy)};var Rp=function(){};
_.m(Rp,WO);Rp.prototype.getApiPaths=function(){return du};
Rp.prototype.getExtension=function(Y){return _.z(Y,TMX)};
Rp.prototype.JSC$14506_buildRequest=function(Y,G){G.loadingStrategy&&C4I(Y,G.loadingStrategy)};var w2=function(){};
_.m(w2,WO);w2.prototype.getApiPaths=function(){return du};
w2.prototype.getExtension=function(Y){return _.z(Y,_.KK)};
w2.prototype.JSC$14506_buildRequest=function(Y,G){G.panelLoadingStrategy&&C4I(Y,G.panelLoadingStrategy)};var Z$=function(){};
_.m(Z$,WO);Z$.prototype.getApiPaths=function(){return du};
Z$.prototype.getExtension=function(Y){return _.z(Y,LBR)};
Z$.prototype.JSC$14506_buildRequest=function(Y,G){var u,O=(u=G.contentSourcePanelIdentifier)==null?void 0:u.tag;O&&(Y.panelId=O);var Q;if((Q=G.globalConfiguration)==null?0:Q.params){var M;Y.params=(M=G.globalConfiguration)==null?void 0:M.params}};var D$=function(){};
_.m(D$,WO);D$.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
D$.prototype.getExtension=function(Y){return _.z(Y,gf1)};
D$.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params)};var h5=function(){};
_.m(h5,WO);h5.prototype.getApiPaths=function(){return M4E};
h5.prototype.getExtension=function(Y){return _.z(Y,IYU)};
h5.prototype.JSC$14506_buildRequest=function(Y,G){G.externalChannelId&&(Y.externalChannelId=G.externalChannelId);G.superChatAction&&(Y.superChatAction=G.superChatAction);G.superStickersAction&&(Y.superStickersAction=G.superStickersAction)};var d2=function(){};
_.m(d2,WO);d2.prototype.getApiPaths=function(){return O0U};
d2.prototype.getExtension=function(Y){return _.z(Y,amR)||_.z(Y,upa)};
d2.prototype.JSC$14506_buildRequest=function(Y,G){G.videoIds?Y.videoIds=G.videoIds:G.videoId&&(Y.videoIds=[G.videoId]);G.playlistId&&(Y.playlistId=G.playlistId);G.params&&(Y.params=G.params);Y.excludeWatchLater=!1};var bx=function(){};
_.m(bx,WO);bx.prototype.getApiPaths=function(){return $he};
bx.prototype.getExtension=function(Y){return _.z(Y,_.fk)};
bx.prototype.JSC$14506_buildRequest=function(Y,G,u){u.create_playlist_title?Y.title=u.create_playlist_title:G.title&&(Y.title=G.title);if(u.create_playlist_privacy_status&&typeof u.create_playlist_privacy_status==="number"){a:{var O=u.create_playlist_privacy_status;if(O!==0){if(O===1){O="PUBLIC";break a}if(O===2){O="UNLISTED";break a}}O="PRIVATE"}Y.privacyStatus=O}else G.privacyStatus&&(Y.privacyStatus=G.privacyStatus);u.create_playlist_description&&(Y.description=u.create_playlist_description);G.videoIds&&
(Y.videoIds=G.videoIds);G.params&&(Y.params=G.params);G.sourcePlaylistId&&(Y.sourcePlaylistId=G.sourcePlaylistId)};var Sn=function(){};
_.m(Sn,WO);Sn.prototype.getApiPaths=function(){return cq_};
Sn.prototype.getExtension=function(Y){return _.z(Y,Fe_)};
Sn.prototype.JSC$14506_buildRequest=function(Y,G){Y.playlistId=G.playlistId};var Nn=function(){};
_.m(Nn,WO);Nn.prototype.getApiPaths=function(){return gQ4};
Nn.prototype.getExtension=function(Y){return _.z(Y,$yE)};
Nn.prototype.JSC$14506_buildRequest=function(Y,G){G.playlistId&&(Y.playlistId=G.playlistId);G.params&&(Y.params=G.params)};var jn=function(){};
_.m(jn,WO);jn.prototype.getApiPaths=function(){return i02};
jn.prototype.getExtension=function(Y){return _.z(Y,_.zG)||void 0};
jn.prototype.JSC$14506_buildRequest=function(Y,G){G.actions&&(Y.actions=G.actions);G.params&&(Y.params=G.params);G.playlistId&&(Y.playlistId=G.playlistId)};var Vf=function(){};
_.m(Vf,WO);_.H=Vf.prototype;_.H.getApiPaths=function(){return wAM};
_.H.getExtension=function(Y){return _.z(Y,_.Qa)};
_.H.JSC$14506_buildRequest=function(Y,G){G.videoId&&(Y.playerRequest={videoId:G.videoId},G.playerParams&&(Y.playerRequest.params=G.playerParams),G.racyCheckOk&&(Y.playerRequest.racyCheckOk=!!G.racyCheckOk),G.contentCheckOk&&(Y.playerRequest.contentCheckOk=!!G.contentCheckOk));G.params&&(Y.params=G.params);G.inputType&&(Y.inputType=G.inputType);Y.disablePlayerResponse=!0};
_.H.getRequestConfig=function(Y){var G;(Y=this.JSC$14513_getStoreKey(Y))&&(G={storeStrategy:{storeKey:Y}});_.F("web_log_reels_ticks")&&(G=G||{},G.requestTick="r_wrs",G.responseTick="r_wrr");return G};
_.H.JSC$14513_getStoreKey=function(Y){Y=this.getExtension(Y);if(Y!=null&&Y.videoId){var G={videoId:Y.videoId};Y.params&&(G.params=Y.params);return _.ox("reel_item_watch",G)}};var lx=function(){};
_.m(lx,WO);_.H=lx.prototype;_.H.getApiPaths=function(){return Z04};
_.H.getExtension=function(Y){return _.z(Y,_.Qa)};
_.H.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;Y.sequenceParams=G.sequenceParams;var O;((O=u)==null?0:O.contentPlaybackContext)&&_.F("web_shorts_prefetch_service_enabled")&&(Y.playbackContext={contentPlaybackContext:u.contentPlaybackContext})};
_.H.JSC$14513_getStoreKey=function(Y){if(_.F("shorts_controller_retrieve_seedless_sequence_v2")&&(Y=this.getExtension(Y),Y==null?0:Y.sequenceParams))return _.ox("reel_watch_sequence",{sequenceParams:Y.sequenceParams})};
_.H.getRequestConfig=function(Y){Y=this.JSC$14513_getStoreKey(Y);var G;Y&&(G={storeStrategy:{storeKey:Y}});G=G||{};G.requestTick="r_wsrs";G.responseTick="r_wsrr";G.processorTick="r_wsrp";return G};
var Bg=function(){};
_.m(Bg,WO);Bg.prototype.getApiPaths=function(){return Z04};
Bg.prototype.getExtension=function(Y){return _.z(Y,_.rE)};
Bg.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;G.token&&(Y.continuation=G.token);var O;((O=u)==null?0:O.contentPlaybackContext)&&_.F("web_shorts_prefetch_service_enabled")&&(Y.playbackContext={contentPlaybackContext:u.contentPlaybackContext})};
Bg.prototype.getRequestConfig=function(Y){Y=this.JSC$14513_getStoreKey(Y);var G;Y&&(G={storeStrategy:{storeKey:Y}});G=G||{};G.requestTick="r_wsrs";G.responseTick="r_wsrr";G.processorTick="r_wsrp";return G};var $0=function(){};
_.m($0,WO);$0.prototype.getApiPaths=function(){return YiI};
$0.prototype.getExtension=function(Y){return _.z(Y,_.dRI)};
$0.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;G.flagAction&&(Y.action=G.flagAction);G.flagRequestType&&(Y.flagRequestType=G.flagRequestType);G.additionalDetailCheckboxChecked&&(Y.additionalDetailCheckboxChecked=G.additionalDetailCheckboxChecked);G.legalCheckboxChecked&&(Y.legalCheckboxChecked=G.legalCheckboxChecked);G={};u.flag_issue_type!==void 0&&(G.issue=u.flag_issue_type);u.flag_affiliation!==void 0&&(G.affiliation=u.flag_affiliation);u.flag_full_name&&(G.fullName=u.flag_full_name);
Object.keys(G).length&&(Y.legalReportDetails=G);if(u.flag_description||u.text)Y.userComments=u.flag_description||u.text;G={};u.minutes!==void 0&&u.seconds!==void 0&&(G.minutes=u.minutes,G.seconds=u.seconds);u.vss_id&&(G.vssId=u.vss_id);Object.keys(G).length&&(Y.videoReportDetails=G);G={};u.video_ids&&(G.videoIds=u.video_ids);u.impersonated_channel_url&&(G.impersonatedChannelUrl=u.impersonated_channel_url);Object.keys(G).length&&(Y.channelAbuseReportDetails=G)};
_.Uk.Object.defineProperties($0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var qn=function(){};
_.m(qn,WO);qn.prototype.getApiPaths=function(){return H0U};
qn.prototype.getExtension=function(Y){return _.z(Y,XJU)};
qn.prototype.JSC$14506_buildRequest=function(Y,G){G.blockedForKidsContent&&(Y.blockedForKidsContent=G.blockedForKidsContent)};var sg=function(){};
_.m(sg,WO);sg.prototype.getApiPaths=function(){return dwT};
sg.prototype.getExtension=function(Y){return _.z(Y,GIU)};
sg.prototype.JSC$14506_buildRequest=function(Y,G,u){Y.params=G.params;u.impersonated_channel_url&&(Y.impersonatedChannelUrl=u.impersonated_channel_url)};var cg=function(){};
_.m(cg,WO);cg.prototype.getApiPaths=function(){return Woe};
cg.prototype.getExtension=function(Y){return _.z(Y,_.Pa_)};
cg.prototype.JSC$14506_buildRequest=function(Y,G){G.items&&(Y.items=G.items);G.kidGaiaId&&(Y.kidGaiaId=G.kidGaiaId)};var Ug=function(){};
_.m(Ug,WO);Ug.prototype.getApiPaths=function(){return QYl};
Ug.prototype.getExtension=function(Y){return _.z(Y,_.EKX)};
Ug.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params);G.targetId&&(Y.targetId=G.targetId)};var vg=function(){};
_.m(vg,WO);vg.prototype.getApiPaths=function(){return jYV};
vg.prototype.getExtension=function(Y){return _.z(Y,XTk)};
vg.prototype.JSC$14506_buildRequest=function(Y,G){G.externalVideoId&&(Y.externalVideoId=G.externalVideoId);G.query&&(Y.query=G.query);G.sourceTimelines&&(Y.sourceTimelines=G.sourceTimelines)};var J5=function(){};
_.m(J5,WO);J5.prototype.getApiPaths=function(){return VPR};
J5.prototype.getExtension=function(Y){return _.z(Y,_.rE)||void 0};
J5.prototype.JSC$14506_buildRequest=function(Y,G){G.token&&(Y.continuation=G.token)};
_.pMN=function(){};
_.m(_.pMN,WO);_.H=_.pMN.prototype;_.H.getApiPaths=function(){return VPR};
_.H.getExtension=function(Y){return _.z(Y,_.GA)||void 0};
_.H.isNavigationCommand=function(){return!0};
_.H.JSC$14513_getStoreKey=function(Y,G){G=G===void 0?{}:G;if(!G.disableCache&&(Y=this.getExtension(Y))&&Y.query)return G={query:Y.query},Y.params&&(G.params=Y.params),_.ox("search",G)};
_.H.JSC$14506_buildRequest=function(Y,G,u){G.query&&(Y.query=G.query);G.params&&(Y.params=G.params);_.F("enable_page_type_in_search_request")&&G.pageType&&(Y.searchPageType=G.pageType);if(!_.F("web_forward_suggest_stats_killswitch")){var O=_.z(G,bIR);O&&(Y.suggestStats=O)}var Q;!_.F("kevlar_searchbox_stats_killswitch")&&((Q=u.tempData)==null?0:Q.gs_l)&&!_.z(G,bIR)&&(Y.webSearchboxStatsUrl="/search?oq="+(u.tempData.oq||"")+"&gs_l="+u.tempData.gs_l);var M;if((M=u.tempData)==null?0:M.entityMid)G=Y.suggestionSearchParams||
{},G.entityMid=u.tempData.entityMid,Y.suggestionSearchParams=G;G=_.EU().getFlag(186);Y.inlineSettingStatus=G?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";u.isFromShorts&&(Y.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.H.getRequestConfig=function(Y,G){G=G===void 0?{}:G;Y=this.JSC$14513_getStoreKey(Y,G);var u;Y&&(u={storeStrategy:{storeKey:Y}});_.F("web_log_search_ticks_ks")||(u=u||{},u.requestTick="sr_s",u.responseTick="sr_r");return u};var Y9=function(){};
_.m(Y9,WO);Y9.prototype.getApiPaths=function(){return IlI};
Y9.prototype.getExtension=function(Y){return _.z(Y,oKM)};
Y9.prototype.JSC$14506_buildRequest=function(Y,G){G.serializedGetSharingProviderDataParams&&(Y.serializedGetSharingProviderDataParams=G.serializedGetSharingProviderDataParams)};var GV=function(){};
_.m(GV,WO);GV.prototype.getApiPaths=function(){return kT2};
GV.prototype.getExtension=function(Y){return _.z(Y,Rhl)};
GV.prototype.JSC$14506_buildRequest=function(Y,G){G.endpoint&&(Y.endpoint=G.endpoint);G.action&&(Y.action=G.action)};var uV=function(){};
_.m(uV,WO);uV.prototype.getApiPaths=function(){return UhI};
uV.prototype.getExtension=function(Y){return _.z(Y,pfX)};
uV.prototype.JSC$14506_buildRequest=function(Y,G){Y.videoId=G.videoId;G.scheduledRedirectMetadataSourceVideoId&&(Y.scheduledRedirectMetadata={sourceVideoId:G.scheduledRedirectMetadataSourceVideoId})};var OJ=function(){};
_.m(OJ,WO);OJ.prototype.getApiPaths=function(){return qi_};
OJ.prototype.getExtension=function(Y){return _.z(Y,_.nb_)};
OJ.prototype.JSC$14506_buildRequest=function(Y,G){Y.params=G.params;Y.correctionText=G.correctionText};var zrg=function(){};
_.m(zrg,WO);zrg.prototype.getApiPaths=function(){return nLY};
zrg.prototype.getExtension=function(Y){return _.z(Y,_.PhI)};
zrg.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params);Y.searchQuery=G.searchQuery;Y.languageCode=G.languageCode;Y.kind=G.kind;Y.name=G.name;Y.externalVideoId=G.externalVideoId};var mAy=function(){};
_.m(mAy,WO);mAy.prototype.getApiPaths=function(){return a5R};
mAy.prototype.getExtension=function(Y){return _.z(Y,w7R)};
mAy.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.params=G.params)};var QJ=function(Y){this.JSC$18799_storeWithEntities=Y};
_.m(QJ,WO);QJ.prototype.getApiPaths=function(){return bNR};
QJ.prototype.getExtension=function(Y){return _.z(Y,Di_)||_.z(Y,diR)};
QJ.prototype.JSC$14506_buildRequest=function(Y,G,u){u.client_data&&(Y.clientData=u.client_data);if(G.commerceActionConfig){var O=G.commerceActionConfig;G=O.actionId;O=O.commerceActionParams;G&&(Y.actionId=G);O&&(Y.commerceActionParams=O)}else{var Q=G.actionId,M=G.commerceActionParams;u=G.entityKeys;Q&&(Y.actionId=Q);M&&(Y.commerceActionParams=M);var t;G=(O=this.JSC$18799_storeWithEntities)==null?void 0:(t=O.getState())==null?void 0:t.entities;if(u&&G){O=[];t=_.E(u);for(u=t.next();!u.done;u=t.next())if(Q=
u.value,u=_.B2(Q).entityType,Q=_.v2(G,u,Q))M={},O.push((M[u]=Q,M));Y.entityMutationPayloads=O}}};
QJ.prototype.getRequestConfig=function(Y){var G,u=(G=_.z(Y,Di_))==null?void 0:G.requestSequenceType;if(u&&Y.clickTrackingParams&&u!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:Y.clickTrackingParams,sequenceType:u}}};
QJ[c4]=[Un];var ML=function(){};
_.m(ML,WO);ML.prototype.getApiPaths=function(){return T94};
ML.prototype.getExtension=function(Y){return _.z(Y,_.Or_)};
ML.prototype.JSC$14506_buildRequest=function(Y,G){G.feedbackData&&(Y.feedbackData=G.feedbackData);G.params&&(Y.itemParams=G.params)};
_.Uk.Object.defineProperties(ML.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Wfy=function(){};
_.m(Wfy,WO);Wfy.prototype.getApiPaths=function(){return LpI};
Wfy.prototype.getExtension=function(Y){return _.z(Y,QWl)};
Wfy.prototype.JSC$14506_buildRequest=function(Y,G,u){u.payments_payload&&(Y.paymentsPayload=u.payments_payload);u.offer_params&&(Y.offerParams=u.offer_params);G.transactionParams&&(Y.transactionParams=G.transactionParams)};var rPg=function(){};
_.m(rPg,WO);rPg.prototype.getApiPaths=function(){return gJV};
rPg.prototype.getExtension=function(Y){return _.z(Y,_.MYl)};
rPg.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;G.buybucketParams&&(Y.buybucketData={params:G.buybucketParams},G.stickerParams?Y.buybucketData.stickerParams=G.stickerParams:(u.rich_chat_message?Y.buybucketData.richChatMessage=u.rich_chat_message:u.chat_message_text&&(Y.buybucketData.chatMessageText=u.chat_message_text),u.purchase_price_micros&&(Y.buybucketData.purchasePriceMicros=u.purchase_price_micros.toString())));G.donationAmountMicros&&(Y.tipAmountMicros=G.donationAmountMicros,
G.tipParams&&(Y.tipParams=G.tipParams));G.offerParams&&(Y.offerParams=G.offerParams);G.productData&&(Y.productData=G.productData);G.transactionParams&&(Y.transactionParams=G.transactionParams)};var HS=function(){};
_.m(HS,WO);HS.prototype.getApiPaths=function(){return Xze};
HS.prototype.getExtension=function(Y){return _.z(Y,tYU)};
HS.prototype.JSC$14506_buildRequest=function(Y,G){G.updateFopParams&&(Y.updateFopParams=G.updateFopParams)};var xAB=function(){};
_.m(xAB,WO);xAB.prototype.getApiPaths=function(){return PR2};
xAB.prototype.getExtension=function(Y){return _.z(Y,_.Dj)};
xAB.prototype.JSC$14506_buildRequest=function(Y,G){G.couponCode&&(Y.couponCode=G.couponCode);G.params&&(Y.itemParams=G.params)};var f4V=function(){};
_.m(f4V,WO);f4V.prototype.getApiPaths=function(){return I5k};
f4V.prototype.getExtension=function(Y){return _.z(Y,_.h5I)};
f4V.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;G.params&&(Y.params=G.params);u.ctk&&(Y.clientToken=u.ctk)};var EJ=function(Y){this.JSC$18834_storeWithEntities=Y};
_.m(EJ,WO);EJ.prototype.getApiPaths=function(){return ksM};
EJ.prototype.getExtension=function(Y){return _.z(Y,_.Aw)};
EJ.prototype.JSC$14506_buildRequest=function(Y,G,u){u.purchase_price_micros&&(Y.productData={pdgData:{purchasePriceMicros:u.purchase_price_micros.toString()}},u.rich_chat_message&&(Y.productData.pdgData.richChatMessage=u.rich_chat_message),u.currency_code&&(Y.productData.pdgData.currencyCode=u.currency_code));G.transactionParams&&(Y.transactionParams=G.transactionParams);G.clientLocationContext&&(Y.clientLocationContext=G.clientLocationContext);u.payments_payload&&(Y.paymentsPayload=u.payments_payload);
u.funds_guarantee_callback_client_data&&(Y.fundsGuaranteeCallbackClientData=u.funds_guarantee_callback_client_data);var O,Q;u=(O=this.JSC$18834_storeWithEntities)==null?void 0:(Q=O.getState())==null?void 0:Q.entities;if(G.entityKeys&&u){O=[];G=_.E(G.entityKeys);for(Q=G.next();!Q.done;Q=G.next()){var M=Q.value;Q=_.B2(M).entityType;if(M=_.v2(u,Q,M)){var t={};O.push((t[Q]=M,t))}}Y.entityMutationPayloads=O}};
EJ[c4]=[Un];var CIb=function(){};
_.m(CIb,WO);CIb.prototype.getApiPaths=function(){return nJU};
CIb.prototype.getExtension=function(Y){return _.z(Y,HrI)};
CIb.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;u.backend_analytics&&(Y.serializedBackendAnalyticsEvent=u.backend_analytics);G.offerParams&&(Y.offerParams=G.offerParams)};var yP9=function(){};
_.m(yP9,WO);yP9.prototype.getApiPaths=function(){return PR2};
yP9.prototype.getExtension=function(Y){return _.z(Y,SdA)};
yP9.prototype.JSC$14506_buildRequest=function(Y,G){G.params&&(Y.itemParams=G.params)};var erN=function(){};
_.m(erN,WO);erN.prototype.getApiPaths=function(){return Fpe};
erN.prototype.getExtension=function(Y){return _.z(Y,_.VJM)};
erN.prototype.JSC$14506_buildRequest=function(Y,G,u){u.resume_time_ms&&(Y.resumeTimeMs=u.resume_time_ms);G.pauseParams&&(Y.pauseParams=G.pauseParams)};var APV=function(){};
_.m(APV,WO);APV.prototype.getApiPaths=function(){return pze};
APV.prototype.getExtension=function(Y){return _.z(Y,_.E82)};
APV.prototype.JSC$14506_buildRequest=function(Y,G,u){u=u===void 0?{}:u;u.c&&(Y.redeemCode=u.c);u.rd&&(Y.riskData=u.rd);u.ctk&&(Y.clientToken=u.ctk)};var oHb=function(){};
_.m(oHb,WO);oHb.prototype.getApiPaths=function(){return zO4};
oHb.prototype.getExtension=function(Y){return _.z(Y,_.lRX)};
oHb.prototype.JSC$14506_buildRequest=function(Y,G){G.resumeParams&&(Y.resumeParams=G.resumeParams)};var tF=function(Y,G){this.clientName=Y;this.defaultExpirationDelayMs=G};
tF.prototype.put=function(Y,G){var u=this,O;return _.a(function(Q){O=Object.assign({},G.data);O.key=Y;O.clientName=u.clientName;O.expireTimestampMs===void 0&&(O.expireTimestampMs=(Math.round((0,_.GC)())+u.defaultExpirationDelayMs).toString());return Q.return(u.putInternal(Y,O))})};
tF[c4]=[DX,Hmy];var i7o=function(){tF.apply(this,arguments);this.JSC$18864_responseStore=new Map};
_.m(i7o,tF);_.H=i7o.prototype;_.H.get=function(Y){var G=this;return _.a(function(u){return u.return(Gv(G,Y))})};
_.H.putInternal=function(Y,G){var u=this,O,Q,M;return _.a(function(t){O=u.defaultExpirationDelayMs;G.expireTimestampMs&&(O=Number(G.expireTimestampMs)-Math.round((0,_.GC)()),Q=_.Jy("mweb_override_response_store_expiration_ms"),Q>0&&Q<O&&(O=Q));M=setTimeout(function(){u.remove(Y)},O);
u.JSC$18864_responseStore.set(Y,{entryData:G,timer:M});_.Sd(t)})};
_.H.remove=function(Y){var G=this;return _.a(function(u){RrB(G,Y);_.Sd(u)})};
_.H.removeAll=function(){var Y=this;return _.a(function(G){Y.JSC$18864_responseStore.forEach(function(u){clearTimeout(u.timer)});
Y.JSC$18864_responseStore.clear();_.Sd(G)})};
_.H.has=function(Y){return!!this.JSC$18864_responseStore.get(Y)};
_.H.getKeys=function(){return this.JSC$18864_responseStore.keys()};
var Gv=function(Y,G){if(Y=Y.JSC$18864_responseStore.get(G))return new _.Yb(Y.entryData)},RrB=function(Y,G){var u=Y.JSC$18864_responseStore.get(G);
u&&(clearTimeout(u.timer),Y.JSC$18864_responseStore.delete(G))};
i7o.prototype.markAsProcessed=function(Y){var G=this,u;return _.a(function(O){u=G.JSC$18864_responseStore.get(Y);if(!u)return O.jumpTo(0);u.entryData.isProcessed=!0;return O.yield(G.putInternal(Y,u.entryData),0)})};var y_A;var A_A=function(Y,G,u){tF.call(this,Y,G);this.token=u};
_.m(A_A,tF);_.H=A_A.prototype;_.H.get=function(Y){var G=this,u,O;return _.a(function(Q){return Q.nextAddress==1?Q.yield(JL(G.token),2):Q.nextAddress!=3?(u=Q.yieldResult,Q.yield(u.get("ResponseStore",[Y,G.clientName]),3)):(O=Q.yieldResult)?Q.return(new _.Yb(O)):Q.return(void 0)})};
_.H.putInternal=function(Y,G){var u=this,O;return _.a(function(Q){if(Q.nextAddress==1)return Q.yield(JL(u.token),2);O=Q.yieldResult;return Q.yield(O.put("ResponseStore",G),0)})};
_.H.remove=function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(JL(G.token),2);u=O.yieldResult;return O.return(u.delete("ResponseStore",[Y,G.clientName]))})};
_.H.removeAll=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1)return u.yield(JL(Y.token),2);G=u.yieldResult;return u.yield(bQM(G,IDBKeyRange.only(Y.clientName)),0)})};
_.H.has=function(){throw Error("lj");};
_.H.markAsProcessed=function(Y){var G=this,u,O;return _.a(function(Q){if(Q.nextAddress==1)return Q.yield(JL(G.token),2);if(Q.nextAddress!=3)return u=Q.yieldResult,Q.yield(u.get("ResponseStore",[Y,G.clientName]),3);O=Q.yieldResult;if(!O)return Q.jumpTo(0);O.isProcessed=!0;return Q.yield(u.put("ResponseStore",O),0)})};_.KE=new _.Sb("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var wMy=function(Y){var G;this.stateTagsData=(G=Y.responseContext)==null?void 0:G.stateTags},Z7S=function(Y){var G;
return((G=Y.stateTagsData)==null?void 0:G.stateTagsModified)||[]};var DAN;DAN=function(Y){this.JSC$18877_responseStore=Y};
_.i$=function(Y,G,u){if(!_.F("state_tags_killswitch")){var O=new wMy(G);if(Z7S(O).length>0){var Q=Y.JSC$18877_responseStore.getKeys();Q=_.E(Q);for(var M=Q.next();!M.done;M=Q.next()){M=M.value;var t=Gv(Y.JSC$18877_responseStore,M);if(t){var K=_.sn(t);a:{var L=void 0;t=Z7S(O);K=((L=(new wMy(K)).stateTagsData)==null?void 0:L.relevantStateTags)||[];L=_.E(K);for(K=L.next();!K.done;K=L.next())if(K=K.value,K.stateTag!=null&&t.includes(K.stateTag)&&K.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){t=
!0;break a}t=!1}t&&RrB(Y.JSC$18877_responseStore,M)}}}}var g;O=(g=G.responseContext)==null?void 0:g.maxAgeSeconds;u&&O&&Number(O)>0&&(G=sj(G,O),Y.JSC$18877_responseStore.put(u,new _.Yb(G)))};
DAN.prototype.handleResponse=function(Y,G){if(!G)throw Error("mj");var u,O;G=(u=G.config)==null?void 0:(O=u.storeStrategy)==null?void 0:O.storeKey;_.i$(this,Y,G)};
DAN[c4]=[_.Js];_.ueX=new _.Sb("STORE_RESPONSE_PROCESSOR_TOKEN");var hrV=function(Y){this.JSC$18880_responseStore=Y};
hrV.prototype.handleResponse=function(Y,G){if(G.input.match(_.Ds(Z04))){var u;if(Y==null?0:(u=Y.entries)==null?0:u.length)for(Y=_.E(Y.entries),G=Y.next();!G.done;G=Y.next()){u=G.value.command;var O=void 0;G=(O=_.z(u,_.Qa))==null?void 0:O.unserializedPrefetchData;if(!u||!G)break;O=(new Vf).JSC$14513_getStoreKey(u);var Q=_.z(G,VZU),M=void 0,t=void 0,K=void 0,L=void 0,g=void 0,P=void 0,I=((M=Q)==null?0:(t=M.responseContext)==null?0:t.maxAgeSeconds)&&Number((K=Q)==null?void 0:(L=K.responseContext)==null?
void 0:L.maxAgeSeconds)>0?Number((g=Q)==null?void 0:(P=g.responseContext)==null?void 0:P.maxAgeSeconds):600;O&&I>0&&(Q=sj(Q,I),this.JSC$18880_responseStore.put(O,new _.Yb(Q)));u=(new QL).JSC$14513_getStoreKey(u);G=_.z(G,fYe);L=K=t=M=Q=O=void 0;g=((O=G)==null?0:(Q=O.responseContext)==null?0:Q.maxAgeSeconds)&&Number((M=G)==null?void 0:(t=M.responseContext)==null?void 0:t.maxAgeSeconds)>0?Number((K=G)==null?void 0:(L=K.responseContext)==null?void 0:L.maxAgeSeconds):600;u&&g>0&&(G=sj(G,g),this.JSC$18880_responseStore.put(u,
new _.Yb(G)))}}};
hrV[c4]=[_.Js];var dAg=function(Y,G){this.innertubeTransportService=Y;this.JSC$18883_commandHandler=G};
dAg.prototype.submitForm=function(Y,G,u,O,Q){var M=this,t,K,L,g,P,I;return _.a(function(k){if(k.nextAddress==1)return t={submitId:Y,formData:G,submitBehavior:u,params:O},K=_.Ds(sYR),k.yield(_.Cl(M.innertubeTransportService,t,K,Q),2);L=k.yieldResult;if(!L)return k.return(Promise.reject(new _.I2("Submit API returned an undefined response. Submit ID: "+Y)));g=L;(I=(P=g)==null?void 0:P.onResponseReceived)&&M.JSC$18883_commandHandler.resolveCommand(I);return k.return(g)})};
dAg[c4]=[_.KB,_.rH];var b79=function(){this.scheduler=_.FO()},Syb;
b79.prototype.pause=function(){throw Error("nj");};
b79.prototype.resume=function(){throw Error("nj");};
b79.prototype.queue=function(Y){var G=this,u=_.RS(),O=_.WY(this.scheduler,function(){try{var Q;if(_.Jj.instance)var M=_.Jj.instance;else{var t=new _.I2("Error: Unexpected uninitialized CommandHandler.");_.o0(t);M=void 0}(Q=M)==null||Q.resolveCommand(Y.command);u.resolve()}catch(K){u.reject(K)}});
u.promise.thenCatch(function(Q){Q instanceof _.oz&&G.scheduler.cancelJob(O)});
return u.promise};
b79.prototype.queueAll=function(Y){var G=new Map;Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())u=u.value,G.set(u.id,this.queue(u));return G};var jeN=function(Y,G){var u=this;this.taskModel=Y;this.onTaskCancelledCallback=G;this.resolver=_.RS();Y=Y.proto.prefetchConfig;if(!Y)throw Error("oj");if(!Y.prefetchAction)throw Error("pj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(O){O instanceof _.oz&&(NUS(u,u.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),u.onTaskCancelledCallback(u.taskModel.id,u.jobId),u.tick("pcc"));
throw O;});
this.timerName=this.taskModel.id;_.Fh(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
jeN.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 NUS=function(Y,G){_.kN({prefetchInfo:{cancellationReason:G}},Y.timerName)};
jeN.prototype.tick=function(Y){_.pQ(Y,void 0,this.timerName)};var TV=function(){var Y=this;this.scheduler=_.FO();this.maxInflightTasks=_.Jy("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Jy("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Ynl;this.onTaskCancelled=function(G,u){u&&Y.scheduler.cancelJob(u);VGg(Y,G);al(Y,3)}},l49=function(){TV.instance||(TV.instance=new TV);
return TV.instance};
TV.prototype.pause=function(){this.prefetchCoordinatorState=0};
TV.prototype.resume=function(){al(this,0)};
TV.prototype.queue=function(Y){Y=BUb(this,Y);al(this,1);return Y};
TV.prototype.queueAll=function(Y){var G=new Map;Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())u=u.value,G.set(u.id,BUb(this,u));al(this,1);return G};
var BUb=function(Y,G){var u=Y.allPrefetchTasks.get(G.id);if(u)return u.cancellablePromise;try{var O=new jeN(G,Y.onTaskCancelled)}catch(M){return _.Ld(M)}u=O;u.tick("pcq");var Q={prefetchInfo:{taskId:u.taskModel.id,isPrefetch:!0,fetchAction:u.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:u.taskModel.command.clickTrackingParams}};u.taskModel.csn&&(Q.clientScreenNonce=u.taskModel.csn);_.kN(Q,u.timerName);Y.allPrefetchTasks.set(G.id,O);Y.drainingHeap.insert(-O.getPriority(),O);return O.cancellablePromise},
al=function(Y,G){Y.prefetchCoordinatorState===G&&(Y.prefetchCoordinatorState=2,$Ax(Y))},$Ax=function(Y){for(var G={};Y.prefetchCoordinatorState!==0;G={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(Y.inflightPrefetchTasks.size>=Y.maxInflightTasks){Y.prefetchCoordinatorState=3;break}G.prefetchTask$jscomp$1=Y.drainingHeap.remove();if(!G.prefetchTask$jscomp$1){Y.prefetchCoordinatorState=1;break}G.taskId$jscomp$3=G.prefetchTask$jscomp$1.taskModel.id;if(Y.allPrefetchTasks.has(G.taskId$jscomp$3)){var u=-1;Y.coordinatorTimeoutMs>0&&(u=_.WY(Y.scheduler,function(O){return function(){qy9(Y,O.taskId$jscomp$3,Error("qj"))}}(G),Y.coordinatorTimeoutMs));
Y.inflightPrefetchTasks.set(G.taskId$jscomp$3,u);if(!Y.JSC$18900_commandHandler){if(!_.Jj.instance){qy9(Y,G.taskId$jscomp$3,Error("rj"));continue}Y.JSC$18900_commandHandler=_.Jj.instance}a:switch(G.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":u=1;break a;default:u=0}G.prefetchTask$jscomp$1.jobId=Y.scheduler.addJob(function(O){return function(){O.prefetchTask$jscomp$1.tick("pcr");try{Y.JSC$18900_commandHandler.resolveCommand(O.prefetchTask$jscomp$1.taskModel.command)||
qy9(Y,O.taskId$jscomp$3,Error("sj"))}catch(Q){qy9(Y,O.taskId$jscomp$3,Q)}}}(G),u,0)}}},seN=function(Y,G){(G=VGg(Y,G))!=null&&(G.resolver.resolve(),G.tick("pce"));
al(Y,3)},qy9=function(Y,G,u){(G=VGg(Y,G,u))!=null&&(G.resolver.reject(u),G.tick("pcc"),NUS(G,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Jy("prefetch_coordinator_error_logging_sampling_rate")&&(u=new _.I2("Prefetch Command failed.",G.taskModel.id,u.message),_.o0(u)));
al(Y,3)},VGg=function(Y,G,u){var O=Y.allPrefetchTasks.get(G);
O?((u=Y.inflightPrefetchTasks.get(G))&&u!==-1&&Y.scheduler.cancelJob(u),Y.inflightPrefetchTasks.delete(G),Y.allPrefetchTasks.delete(G)):_.R0(new _.I2("Unexpected missing prefetch task when deleting task.",G,u==null?void 0:u.message));return O};var cPx=function(Y,G,u,O,Q){this.id=Y;this.triggerOn=G;this.cancelOn=u;this.command=O;this.proto=Q};
_.Uk.Object.defineProperties(cPx.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var UAg=function(){this.JSC$18905_prefetchCoordinator=l49();Syb||(Syb=new b79);this.defaultCoordinator=Syb},vHx;
UAg.getInstance=function(){vHx||(vHx=new UAg);return vHx};
UAg.prototype.get=function(Y){switch(Y){case 0:return this.JSC$18905_prefetchCoordinator;default:return this.defaultCoordinator}};var LE=function(){this.coordinatorSupplier=UAg.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},GXS=function(Y){var G=_.FA()||void 0,u=Object.keys(JPj)[0];
if(u){var O=Y.taskIdByTriggerId.get(u);if(O!=null){Y.taskIdByTriggerId.delete(u);u=[];O=_.E(O);for(var Q=O.next();!Q.done;Q=O.next())if(Q=Y.tasks.get(Q.value))G!=="UNDEFINED_CSN"&&(Q.csn=G),u.push(Q);u=Ru1(u);G=[];u=_.E(u);for(O=u.next();!O.done;O=u.next()){Q=_.E(O.value);O=Q.next().value;Q=Q.next().value;O=Y.coordinatorSupplier.get(O).queueAll(Q);O=_.E(O);var M=O.next();for(Q={};!M.done;Q={taskId$jscomp$9:void 0},M=O.next()){var t=_.E(M.value);M=t.next().value;t=t.next().value;Q.taskId$jscomp$9=
M;M=t;G.push(Q.taskId$jscomp$9);Y.queuedPromisesByTask.set(Q.taskId$jscomp$9,_.Wp(M,function(K){return function(){YWo(Y,K.taskId$jscomp$9)}}(Q)))}}}}else _.R0(new _.I2("Unexpected malformed TriggerEvent."))};
LE.prototype.trigger=function(Y,G){var u=this,O=this.tasks.get(Y);if(!O||this.queuedPromisesByTask.has(Y))return!1;uxo(this,Y,O.triggerOn);G!=="UNDEFINED_CSN"&&(O.csn=G);G=this.coordinatorSupplier.get(O.taskType).queue(O);this.queuedPromisesByTask.set(Y,_.Wp(G,function(){YWo(u,Y)}));
return!0};
LE.prototype.cancel=function(Y){var G=this.queuedPromisesByTask.get(Y);if(G)G.cancel();else return YWo(this,Y)};
var YWo=function(Y,G){Y.queuedPromisesByTask.delete(G);var u=Y.tasks.get(G);if(!u)return!1;Y.tasks.delete(G);uxo(Y,G,u.triggerOn);(u=inI(u.cancelOn))&&(Y=Y.taskIdByCancelId.get(u))&&Y.delete(G);return!0},uxo=function(Y,G,u){(u=Object.keys(u)[0])&&(Y=Y.taskIdByTriggerId.get(u))&&Y.delete(G)};var JPj={taskRegistered:{}},O2x=function(){LE.instance||(LE.instance=new LE);this.JSC$18914_taskManager=LE.instance};
_.m(O2x,iL);
O2x.prototype.resolveCommand=function(Y){var G=this,u,O;return _.a(function(Q){u=_.z(Y,jVV);if((O=u)==null||!O.tasks){var M=new _.I2("RegisterTasksCommand is missing tasks.");_.o0(M);return Q.return()}M=G.JSC$18914_taskManager;for(var t=_.E(u.tasks),K=t.next();!K.done;K=t.next())if(K=K.value,K=K.id&&K.triggerOn&&K.cancelOn&&K.command?new cPx(K.id,K.triggerOn,K.cancelOn,K.command,K):void 0,K){var L=Object.keys(K.triggerOn)[0];if(L){var g=inI(K.cancelOn);g?(M.tasks.set(K.id,K),M.taskIdByTriggerId.has(L)||M.taskIdByTriggerId.set(L,
new Set),M.taskIdByTriggerId.get(L).add(K.id),M.taskIdByCancelId.has(g)||M.taskIdByCancelId.set(g,new Set),M.taskIdByCancelId.get(g).add(K.id)):_.R0(new _.I2("Unexpected malformed cancelOn field."))}else _.R0(new _.I2("Unexpected malformed triggerOn field."))}else _.R0(new _.I2("Unexpected malformed Task proto."));GXS(G.JSC$18914_taskManager);_.Sd(Q)})};var QEw={},MEw=(QEw.rendered={priority:_.F("web_adaptive_early_init")?8:0,callback:function(){var Y={};Y.numCpu=navigator.hardwareConcurrency;var G={};G.ramGb=_.OI.navigator.deviceMemory;var u={staticContext:{}};G.ramGb&&dgI(G.ramGb)&&(u.staticContext.memoryTotalKbytes=(G.ramGb*1048576).toString());Y.numCpu&&dgI(Y.numCpu)&&(u.staticContext.cpuCores=Y.numCpu);if(_.F("web_enable_adaptive_appl_signal")){Y={};G=yM4();G=G.length>0?G[0]:void 0;var O,Q=(O=_.W2("rses_dpj"))!=null?O:G==null?void 0:G.tick.rses_dpj,
M;O=(M=_.W2("rsef_dpj"))!=null?M:G==null?void 0:G.tick.rsef_dpj;Q&&Number(Q)>0&&O&&Number(O)>0&&(M=Math.ceil(Number(O)-Number(Q)),M>0&&(Y.loadLatency=M));Y.loadLatency&&dgI(Y.loadLatency)&&(u.appL=Y.loadLatency.toString())}_.eK("applicationStarted",u);bCj=u;_.F("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",S$t)}},QEw);var H2b=new _.Sb("WINDOW_ON_ERROR"),ElB=new _.Sb("ERROR_WEIGHT_MAPS"),tEN=new _.Sb("INIT_ERROR");var KvN={},a1S=(KvN.initialized={priority:10,callback:function(Y){Y.injector.resolve(tEN)()}},KvN);var T_o=function(){},Lvj=function(){var Y=_.So("meta_logger_impl");
Y||(Y=new T_o,_.U5("meta_logger_impl",Y));return Y},glg=function(){Lvj().csiSubscriptionKey=FO1("meta_logging_csi_event",function(Y){var G=Y.timerName;
if(Y=Y.timelineData){_.Fh(G,{startTime:Y.startTime},G);Y.infos&&_.kN(Y.infos,G);for(var u=_.E(Object.keys(Y.ticks)),O=u.next();!O.done;O=u.next())O=O.value,_.pQ(O,Y.ticks[O],G)}})};
T_o.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&mbA(this.csiSubscriptionKey)};var XwS={},PFg=(XwS.initialized={priority:10,callback:function(){glg()}},XwS);var I1B=function(Y,G){this.innertubeClientName=Y;this.JSC$18925_prefCookie=G};
I1B.prototype.record=function(){if(_.F("web_li_record_binary_eval_tick")){var Y=_.W2("rsef_dpj");var G=_.W2("rses_dpj");Y=Y!==void 0&&G!==void 0?Math.round(Y-G):void 0;if(Y!==void 0&&Y>0){G=_.LB(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var u=this.poolSize;if(!(G.valuesSeen>=1E9)){if(G.valuesSample.length<u)G.valuesSample.push(Y);else{var O=Math.floor(Math.random()*(G.valuesSeen+1));O<u&&(G.valuesSample[O]=Y)}G.valuesSeen+=1}_.TA(this.storagePrefix+"-"+this.innertubeClientName,
G,2592E3);Y=G.valuesSample;G=wNa(Y);Y=Y.length<this.poolSize?void 0:G<400?1:G<1700?2:3;Y!==void 0&&(this.JSC$18925_prefCookie.set(this.cookiePrefix+this.innertubeClientName,Y),this.JSC$18925_prefCookie.save())}}else _.gG(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18925_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18925_prefCookie.save()};
I1B[c4]=[DX,pF];var kXb=function(){I1B.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.m(kXb,I1B);var nlN=new _.Sb("PAGE_LOAD_TIME_TOKEN");var FvN=function(Y){this.signal=Y;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;Y.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.WY(_.AN,this.disableLoggingAndSendPayload,1E4)};
FvN.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.AN.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),pwo(this))};
var pwo=function(Y){var G=_.nX();if(G){var u={webClientComponentsData:{components:Array.from(Y.ids,function(O){return{id:O}})}};
Y.ids.clear();_.M4().visualElementStateChanged(G,u)}};var zNx=kh({a11y:CSI});_.mcb=nz(zNx)(zNx.a11y,{ephemeralActionSelector:function(Y){return Y.ephemeralAction||null}});var Wvb=kh({continuation:iol});var rT9=nz(Wvb)(Wvb.continuation,{continuationCommandSelector:function(Y){return Y.continuationCommand}});var xcx,CFb,f1y;xcx=function(){this.loadFns=new Map;this.xidToRendererName=new Map};
_.CS=function(Y,G,u,O){Y.loadFns.has(G)&&Y.loadFns.get(G)!==O?_.o0(Error("tj`"+G)):(Y.loadFns.set(G,O),Y.xidToRendererName.set(u,G))};
CFb=function(Y,G){if(typeof G==="string"){var u=f1y(Y,G);return Y.loadFns.get(u)}return function(){var O;return _.a(function(Q){return Q.nextAddress==1?(O={},Q.yield(Promise.all(G.map(function(M){var t,K;return _.a(function(L){if(L.nextAddress==1){t=f1y(Y,M);K=Y.loadFns.get(t);if(!K)return O[t]=void 0,L.jumpTo(0);_.i3(L,3);return L.yield(K(),5)}if(L.nextAddress!=3)return O[t]=L.yieldResult,_.j1(L,0);_.b3(L);O[t]=void 0;_.Sd(L)})})),2)):Q.return(O)})}};
f1y=function(Y,G){var u;return(u=Y.xidToRendererName.get(G))!=null?u:G};var yTV=new _.Sb("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var gF=function(Y,G){this.JSC$18957_storeWithEntities=Y;this.JSC$18957_commandHandler=G;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
gF.prototype.start=function(){this.JSC$18957_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
gF.prototype.observeDownloadingEntities=function(){var Y=_.DH1(this.JSC$18957_storeWithEntities.getState().entities).map(function(O){return hFj(O)});
if(Y.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var G={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:nrU()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Sy(_.Q6("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18957_commandHandler.resolveCommand(G)}this.downloadingEntities=Y}else if(this.downloadingEntities.length){var u=ZZA(this.JSC$18957_storeWithEntities.getState().entities).map(function(O){return hFj(O)});
this.downloadingEntities.filter(function(O){return u.includes(O)}).length&&(Y={openPopupAction:gXT()},this.JSC$18957_commandHandler.resolveCommand(Y));
this.downloadingEntities=[]}};
gF[c4]=[Un,_.rH];var eNx;_.X6=function(Y,G,u,O,Q,M,t,K){this.JSC$18960_playerApiPromise=Y;this.JSC$18960_commandHandler=G;this.JSC$18960_screenManager=u;this.offlineWebClientEligibility=O;this.JSC$18960_prefStorage=Q;this.JSC$18960_actionRouter=M;this.entityTypeMap=t;this.JSC$18960_persistentStorePromiseAccessor=K;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
eNx=function(){var Y=_.sH().resolve(_.X6),G;_.a(function(u){if(u.nextAddress==1)return Y.downloadFailureListenerBound?u.return():u.yield(Y.JSC$18960_playerApiPromise,2);G=u.yieldResult;G.addEventListener("onOfflineOperationFailure",function(O){if(O.failureReason&&O.entityKey&&O.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(O.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var Q=_.B2(O.entityKey).entityId;Q&&Y.JSC$18960_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
Q)}else if(_.F("kevlar_woffle")){Q=Y.JSC$18960_commandHandler;var M=Q.resolveCommand;O=O.failureReason;var t=_.Q6("TRANSFER_FAILED",void 0,"Download failed");O==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(t=_.Q6("STORAGE_FULL",void 0,"Storage full"));M.call(Q,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Sy(t),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
Y.downloadFailureListenerBound=!0;_.Sd(u)})};
_.X6.prototype.deleteVideo=function(Y,G){var u=this,O,Q,M;return _.a(function(t){if(t.nextAddress==1)return t.yield(u.JSC$18960_playerApiPromise,2);O=t.yieldResult;M={offlineLoggingData:{offlineDeleteReason:(Q=G)!=null?Q:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return t.yield(O.queueOfflineAction(Y,u.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",M),0)})};
_.X6.prototype.pauseVideoDownload=function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(G.JSC$18960_playerApiPromise,2);u=O.yieldResult;u.pauseVideoDownload(Y);_.Sd(O)})};
_.X6.prototype.resumeVideoDownload=function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(G.JSC$18960_playerApiPromise,2);u=O.yieldResult;return O.yield(u.resumeVideoDownload(Y),0)})};
_.X6[c4]=[_.$h,_.rH,_.KZ,yTV,r6,ba,rQR,Mr];var ATb=new _.Sb("DOWNLOAD_STATE_STORE_TOKEN");var olw=function(Y,G){this.JSC$18981_persistentStorePromiseAccessor=Y;this.store=G;this.upliftCompletionResolver=new _.sG},wwy=function(){var Y=_.sH().resolve(i2g),G;
_.a(function(u){switch(u.nextAddress){case 1:if(Y.upliftImplPromise)return u.return(Y.upliftImplPromise);_.i3(u,2);Y.upliftImplPromise=RNx(Y);return u.yield(Y.upliftImplPromise,4);case 4:Y.upliftCompletionResolver.resolve();_.j1(u,3);break;case 2:throw G=_.b3(u),Y.upliftCompletionResolver.reject(G),G;case 3:return u.return(Y.upliftImplPromise)}})},RNx=function(Y){var G,u,O;
return _.a(function(Q){switch(Q.nextAddress){case 1:return _.hy("LOGGED_IN")?Q.yield(Y.JSC$18981_persistentStorePromiseAccessor(),2):Q.return();case 2:G=Q.yieldResult;if(!G)return _.pQ("vdeur"),Q.return();_.pQ("vdeus");_.i3(Q,3);return Q.yield(Z2w(G),5);case 5:u=Q.yieldResult;Y.store.dispatch(zFY(u));G.observe(function(M){mHt(Y.store,M)});
_.j1(Q,4);break;case 3:throw O=_.b3(Q),_.pQ("vdeur"),O;case 4:_.pQ("vdeuc"),_.Sd(Q)}})},Z2w=function(Y){var G;
return _.a(function(u){if(u.nextAddress==1)return u.yield(SZI(Y),2);G=u.yieldResult;return u.return(G.reduce(function(O,Q){if(!Q.data||!Q.key||!Q.entityType)return O;O[Q.entityType]||(O[Q.entityType]={});O[Q.entityType][Q.key]=Q.data;return O},{}))})};
olw[c4]=[Mr,_.Fk];var i2g;i2g=new _.Sb("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.DcN=new _.Sb("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var hNx=function(Y,G){this.JSC$18984_persistentStorePromiseAccessor=Y;this.transportService=G};
hNx.prototype.refresh=function(){var Y=this,G,u,O,Q;return _.a(function(M){if(M.nextAddress==1)return _.hy("LOGGED_IN")?M.yield(Y.JSC$18984_persistentStorePromiseAccessor(),2):M.return();if(M.nextAddress!=3)return(G=M.yieldResult)?M.yield(FLT(G),3):M.return();if((u=M.yieldResult)&&!(Number(u.data.refreshTimestampMs||0)<(0,_.GC)()))return M.return();O={browseId:"SPaccount_downloads"};Q=_.Ds(S8);_.Cl(Y.transportService,O,Q).then(function(t){var K;if(G&&(t==null?void 0:(K=t.responseContext)==null?void 0:
K.maxAgeSeconds)!==0){var L;K=(t==null?void 0:(L=t.responseContext)==null?void 0:L.maxAgeSeconds)||604800;L=String(Math.floor((0,_.GC)())+K*1E3);G.put("service:downloads_settings:fallback",new _.Yb({innertubeResponse:t,refreshTimestampMs:L}))}});
_.Sd(M)})};
hNx[c4]=[_.KE,_.KB];var PS=function(Y,G){this.JSC$18988_playerPromise=Y;this.store=G;this.started=!1};
PS.prototype.start=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1)return Y.started?u.return():u.yield(Y.JSC$18988_playerPromise,2);G=u.yieldResult;G.addEventListener("onOrchestrationBecameLeader",Y.updateIsLeader.bind(Y,!0));G.addEventListener("onOrchestrationLostLeader",Y.updateIsLeader.bind(Y,!1));if(G.isOrchestrationLeader)Y.updateIsLeader(G.isOrchestrationLeader());else{var O=new _.I2("Function isOrchestrationLeader is undefined",{"player.isReady":G.isReady(),"player.playVideo":G.playVideo?
"defined":"undefined"});_.o0(O);Y.updateIsLeader(!1)}Y.started=!0;_.Sd(u)})};
PS.prototype.updateIsLeader=function(Y){this.store.dispatch(_.V6({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:Y}}))};
PS[c4]=[_.$h,_.Fk];var dcx=function(Y,G){this.networkStatusManager=Y;this.JSC$18991_prefStoragePromise=G;this.redirectsToPreload=["https://youtube.com"]},b2B=function(){var Y=_.sH().resolve(dcx),G,u,O,Q,M,t;
_.a(function(K){switch(K.nextAddress){case 1:return K.yield(Y.JSC$18991_prefStoragePromise,2);case 2:G=K.yieldResult;if(!(u=G)){K.jumpTo(3);break}return K.yield(G.get("yt-redirect-prefetch-id"),4);case 4:u=K.yieldResult;case 3:if(u||!Y.networkStatusManager.isNetworkAvailable())return K.return();O={cache:"reload",redirect:"manual"};Q=_.E(Y.redirectsToPreload);M=Q.next();case 5:if(M.done){if(!G){K.jumpTo(0);break}return K.yield(G.set("yt-redirect-prefetch-id",!0,86400),0)}t=M.value;_.i3(K,8);return K.yield(_.OI.fetch(t,
O),10);case 10:_.j1(K,6);break;case 8:_.b3(K);case 6:M=Q.next(),K.jumpTo(5)}})};var SWg=function(Y){this.JSC$18997_pageManager=Y},N_g=function(Y){var G=[];
lW1(["videoId","contentId"],Y.JSC$18997_pageManager.data,new Set,G);return G},jEx=function(Y){return N_g(Y).filter(function(G){return G.contentType==="video"}).map(function(G){return G.contentId}).filter(function(G){return G!==void 0})};
SWg[c4]=[_.bv];var VEV=new _.Sb("PAGE_CONTENT_EXTRACTOR_TOKEN");var l1V=function(Y){Y?(this.container=Y,this.containerWasInjected=!0):this.containerWasInjected=!1};
l1V.prototype.openDialog=function(Y,G,u){var O=this,Q;return _.a(function(M){(Q=O.container)==null||Q.openDialog(Y,G,u);_.Sd(M)})};
l1V.prototype.closeDialog=function(){var Y=this,G;return _.a(function(u){(G=Y.container)==null||G.closeDialog();_.Sd(u)})};
l1V.prototype.isDialogOpen=function(){var Y=this,G,u;return _.a(function(O){return O.return((u=(G=Y.container)==null?void 0:G.isDialogOpen())!=null?u:!1)})};
l1V[c4]=[_.q3($YI)];_.B_o=new _.Sb("POPUP_CONTROLLER_TOKEN");var $cN=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
$cN.prototype.registerPanel=function(Y,G){if(Y){this.panelMap.set(Y,G);var u=this.pendingPanelResolvers.get(Y);u&&(u.resolve(G),this.pendingPanelResolvers.delete(Y))}};
$cN.prototype.getPanel=function(Y){var G=this,u;return _.a(function(O){return(u=G.panelMap.get(Y))?O.return(u):O.return(qWS(G,Y))})};
var qWS=function(Y,G){var u,O;return _.a(function(Q){if(u=Y.pendingPanelResolvers.get(G))return Q.return(u.promise);O=new _.sG;Y.pendingPanelResolvers.set(G,O);return Q.return(O.promise)})},sEb=function(Y,G){$cN.call(this);
var u=this;this.popupController=Y;this.persistentPanelController=G;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return u.panelMap.size}}};
_.m(sEb,$cN);_.H=sEb.prototype;_.H.getReloadContinuation=function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(G.getPanel(Y),2);u=O.yieldResult;return O.return(u.getReloadContinuation())})};
_.H.showPanel=function(Y){var G=this,u,O,Q,M,t,K,L,g,P,I,k,n;return _.a(function(p){if(p.nextAddress==1){u=Y;O=u.identifier;Q=u.panelContents;M=u.config;t=u.extras;K=u.panelUpdatableFields;L=u.updatePanelContinuationData;g=Y.target;L&&G.updatePanelContinuationDatas.set(O,L);if((P=M)==null?0:(I=P.engagementPanelPopupPresentationConfig)==null?0:I.popupType)if(k=M.engagementPanelPopupPresentationConfig.popupType,g===void 0&&(g=document.body),k==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!G.persistentPanelController)return _.R0(new _.I2("Persistent panel controller is not available.")),
p.return();var W=G.persistentPanelController;W.persistentPanelIdentifiers.has(O)||(W.persistentPanelWrapper.appendChild(W.engagementPanelElement({panelIdentifier:O},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),W.persistentPanelIdentifiers.add(O));a:switch(_.A$.currentPageSubTypeSelector(W.store.getState())){case "watch":var C="WATCH";break a;default:C="APP"}_.cTV(W,C);W.store.dispatch(eCR(!0))}else{if(k==="PANEL_POPUP_TYPE_DIALOG"||k==="PANEL_POPUP_TYPE_DROPDOWN"||k==="PANEL_POPUP_TYPE_PERSISTENT_DRAGGABLE_PANEL"){W=
p.return;C=G.popupController;var e=C.openPopup;a:switch(k){case "PANEL_POPUP_TYPE_DIALOG":var w="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":w="DROPDOWN";break a;case "PANEL_POPUP_TYPE_PERSISTENT_DRAGGABLE_PANEL":w="PERSISTENT_DRAGGABLE_PANEL";break a;default:throw Error("vj`"+k);}return W.call(p,e.call(C,O,Q,w,g))}_.R0(new _.I2("Popup type "+k+" not supported in PanelController."))}return p.yield(G.getPanel(O),2)}n=p.yieldResult;(Q||K)&&n.updatePanel(Q,!1,t,K);n.showPanel(t);_.Sd(p)})};
_.H.hidePanel=function(Y){var G=this,u,O,Q,M;return _.a(function(t){if(t.nextAddress==1)return u=Y,O=u.identifier,t.yield(G.getPanel(O),2);Q=t.yieldResult;Q.hidePanel();G.popupController.closePopup(O);(M=G.persistentPanelController)!=null&&M.persistentPanelIdentifiers.has(O)&&M.store.dispatch(eCR(!1));_.Sd(t)})};
_.H.isVisible=function(Y,G){var u=this,O;return _.a(function(Q){if(Q.nextAddress==1)return G&&!u.panelMap.has(Y)?Q.return(!1):Q.yield(u.getPanel(Y),2);O=Q.yieldResult;return Q.return(O.isVisible())})};
_.H.updatePanel=function(Y){var G=this,u,O,Q,M,t,K,L,g;return _.a(function(P){if(P.nextAddress==1){u=Y;O=u.identifier;Q=u.panelContents;M=u.shouldFocus===void 0?!1:u.shouldFocus;t=u.extras;K=u.panelUpdatableFields;L=u.updatePanelContinuationData;if(!Q&&!K)return P.return();L&&G.updatePanelContinuationDatas.set(O,L);_.F("enable_ai_companion")&&O==="PAai_companion"&&_.Mv.remove("youchat_messages_section");return P.yield(G.getPanel(O),2)}g=P.yieldResult;g.updatePanel(Q,M,t,K);Q&&_.F("enable_ai_companion")&&
G.registerPanelContent(O,Q);_.Sd(P)})};
_.H.registerPanelContent=function(Y,G){Y&&this.panelContentMap.set(Y,G)};
_.H.unregisterPanelContent=function(Y){this.panelContentMap.delete(Y)};
_.H.getPanelContent=function(Y){return this.panelContentMap.get(Y)};
_.H.getUpdatePanelContinuationData=function(Y){return this.updatePanelContinuationDatas.get(Y)};
sEb[c4]=[_.B_o,_.q3(_.Fv)];var UcB=function(Y,G){this.innertubeTransportService=Y;this.JSC$19016_screenManager=G},vlb=function(Y){var G;
return!((G=Y.panelLoadingStrategy)==null||!G.requestTemplate)};
UcB.prototype.makeRequest=function(Y){var G=this,u,O;return _.a(function(Q){switch(Q.nextAddress){case 1:if(!vlb(G)){Q.jumpTo(2);break}_.i3(Q,3);return Q.yield(_.iv(G.innertubeTransportService,Y),5);case 5:return u=Q.yieldResult,u?Q.return(u.content):(_.o0(Error("wj")),Q.return(void 0));case 3:O=_.b3(Q),_.o0(O);case 2:return Q.return(void 0)}})};
UcB.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
UcB.prototype.execute=function(Y){var G=this,u,O,Q,M,t,K,L,g,P,I;return _.a(function(k){if(k.nextAddress==1){u=Y;O=u.data;Q=u.fallbackVe;M=u.parentVe;t=u.createScreenConfig;K=u.renderFn;L=u.command;G.panelLoadingStrategy=O;var n,p,W=((n=G.panelLoadingStrategy)==null?0:n.screenVe)?(p=G.panelLoadingStrategy)==null?void 0:p.screenVe:Q;W&&_.UL(G.JSC$19016_screenManager,W,M,t);return(g=G.getContent())?k.yield(K(g),2):k.jumpTo(2)}return k.nextAddress!=4?vlb(G)?k.yield(G.makeRequest(L),4):k.return():(I=
P=k.yieldResult)?k.yield(K(I),0):k.return()})};
UcB[c4]=[_.KB,_.KZ];var JTN;JTN=function(Y,G){this.engagementPanelElement=Y;this.store=G;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.cTV=function(Y,G){var u=Y.persistentPanelContainerMap.get(G);u?u.contains(Y.persistentPanelWrapper)||(Y=Y.persistentPanelWrapper,_.Z9=!0,_.D9.set(Y,!0),u.insertBefore(Y,null),_.D9.delete(Y),_.Z9=!1):_.R0(new _.I2("Persistent panel container not found for surface "+G+"."))};
JTN[c4]=[qcR,_.Fk];var Il=function(){var Y=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){Y.isHovered=!0};
this.onTargetHoverLeft=function(){Y.isHovered=!1};
this.onSheetHoverEntered=function(){Y.isHovered=!0;var G;(G=Y.hoverEnterCallback)==null||G.call(Y)};
this.onSheetHoverLeft=function(){Y.isHovered=!1;var G;(G=Y.hoverLeaveCallback)==null||G.call(Y)}};
Il.prototype.getContainer=function(){return _.dJ()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Il.prototype.openSheet=function(Y,G,u){u=u===void 0?G:u;var O=this,Q,M,t,K,L,g,P;return _.a(function(I){switch(I.nextAddress){case 1:return Q={stack:[],error:void 0,hasError:!1},_.i3(I,2,3),M=cM,I.yield(O.isSheetOpen(),5);case 5:t=I.yieldResult;Ox2(Q,iq1(M));if(!t){I.jumpTo(6);break}if(!O.shouldPreventClosingWhileHovered){if(!_.F("delay_sheet_open_killswitch")){if(_.F("web_close_sheet_if_same_target_killswitch")&&G&&O.currentTarget===G)return(K=O.getContainer())==null||K.closeSheet(),I.return();O.pendingData=
{data:Y,target:KhV(O,G)};return I.return()}I.jumpTo(6);break}if(O.currentTarget===G)return I.return();YH9(O);GYN(O);return I.yield((L=O.getContainer())==null?void 0:L.closeSheet(),6);case 6:if(Y.viewModel&&(Y={viewModel:Y.viewModel,sheetPosition:Y.sheetPosition,expandToFullWidth:Y.expandToFullWidth}),(g=O.getContainer())==null||g.openSheet(Y,G,u),O.currentTarget=G,O.shouldPreventClosingWhileHovered){O.onTargetHoverEntered();var k;(k=O.currentTarget)==null||k.addEventListener("mouseenter",O.onTargetHoverEntered);
var n;(n=O.currentTarget)==null||n.addEventListener("mouseleave",O.onTargetHoverLeft);u4x(O)}else O.hasRegisteredHoverCallbacks&&u4x(O);case 3:_.wt(I);Qol(Q);_.dt(I,0);break;case 2:P=_.b3(I),Q.error=P,Q.hasError=!0,I.jumpTo(3)}})};
Il.prototype.closeSheet=function(){var Y=this;return _.a(function(G){return Y.hideDelayMs?(setTimeout(function(){return _.a(function(u){return u.yield(OHw(Y),0)})},Y.hideDelayMs),G.return()):G.yield(OHw(Y),0)})};
var OHw=function(Y){var G;return _.a(function(u){if(u.nextAddress==1){if(Y.shouldPreventClosingWhileHovered){if(Y.isHovered)return u.return();YH9(Y);GYN(Y)}else Y.hasRegisteredHoverCallbacks&&(GYN(Y),Y.onSheetHoverLeft());return u.yield((G=Y.getContainer())==null?void 0:G.closeSheet(),2)}if(u.nextAddress!=4)return Y.resetState(),!Y.pendingData||_.F("delay_sheet_open_killswitch")?u.jumpTo(0):u.yield(Y.openSheet(Y.pendingData.data,Y.pendingData.target),4);Y.pendingData=void 0;_.Sd(u)})};
Il.prototype.isSheetOpen=function(){var Y=this,G,u;return _.a(function(O){return O.return((u=(G=Y.getContainer())==null?void 0:G.isSheetOpen())!=null?u:!1)})};
Il.prototype.resetState=function(){this.currentTarget=void 0;this.shouldPreventClosingWhileHovered=this.isHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.hoverLeaveCallback=this.hoverEnterCallback=void 0};
var YH9=function(Y){var G;(G=Y.currentTarget)==null||G.removeEventListener("mouseenter",Y.onTargetHoverEntered);var u;(u=Y.currentTarget)==null||u.removeEventListener("mouseleave",Y.onTargetHoverLeft)},u4x=function(Y){var G,u=(G=Y.getContainer())==null?void 0:G.getSheetContainerElement();
u==null||u.addEventListener("mouseenter",Y.onSheetHoverEntered);u==null||u.addEventListener("mouseleave",Y.onSheetHoverLeft)},GYN=function(Y){var G,u=(G=Y.getContainer())==null?void 0:G.getSheetContainerElement();
u==null||u.removeEventListener("mouseenter",Y.onSheetHoverEntered);u==null||u.removeEventListener("mouseleave",Y.onSheetHoverLeft)},KhV=function(Y,G){if(!_.F("web_parent_target_for_sheets"))return G;
var u,O;return(O=(u=Y.getContainer())==null?void 0:u.getParentTarget(G))!=null?O:G};var YM=window.documentPictureInPicture;var uZg=_.hV(["dark"]),O4U=_.hV(["system-icons"]),QRA=_.hV(["typography"]),Mv4=_.hV(["lang"]),H41=_.hV(["style"]),vXj=_.hV(["dir"]),J_a=_.hV(["rounded-container"]),Y8a=_.hV(["style"]),tvY=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],k9=function(Y){this.JSC$19034_clientRoot=Y;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
k9.prototype.openWindow=function(Y){var G=this,u,O;return _.a(function(Q){switch(Q.nextAddress){case 1:if(!YM||!YM||!eT()||G.currentPipWindow)return Q.return(!1);_.i3(Q,2);return Q.yield((O=YM?YM:null)==null?void 0:O.requestWindow(Y),4);case 4:u=Q.yieldResult;_.j1(Q,3);break;case 2:return _.b3(Q),Q.return(!1);case 3:if(!u)return Q.return(!1);u.addEventListener("pagehide",function(){Q1w(G)});
u.addEventListener("resize",G.handlePipWindowResize);Ena(u);aw4(u);q3u(u);return Q.yield(UTI(u),5);case 5:if(!BiA())return Q.return(!1);G.currentPipWindow=u;G.JSC$19034_eventForwarder=KqA(u,G.JSC$19034_clientRoot);G.pipWindowResizeDelay=new _.GN(function(){G.currentPipWindow&&_.qZ(G.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.oB(G.currentPipWindow.innerWidth,G.currentPipWindow.innerHeight)])},u);
G.pipWindowResizeDelay.start();return Q.return(!0)}})};
k9.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Q1w=function(Y){if(Y.currentPipWindow){var G,u;(G=YM?YM:null)==null||(u=G.window)==null||u.close();Y.currentPipWindow.removeEventListener("resize",Y.handlePipWindowResize);var O;(O=Y.pipWindowResizeDelay)==null||O.dispose();Y.pipWindowResizeDelay=void 0;var Q;(Q=Y.JSC$19034_eventForwarder)==null||Q.stop();Y.JSC$19034_eventForwarder=void 0;G=_.E(Y.onCloseCallbacks);for(u=G.next();!u.done;u=G.next())u=u.value,u();Y.onCloseCallbacks=[];Y.currentPipWindow=null}};
k9.prototype.getWindow=function(){return this.currentPipWindow};
var Moj=function(Y,G){var u;(u=Y.onCloseCallbacks)==null||u.push(G)};
k9.prototype.pictureInPictureSupported=function(){return!(!YM||!YM)&&eT()};
_.Uk.Object.defineProperties(k9.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
k9[c4]=[aQE];var HHx=new _.Sb("PICTURE_IN_PICTURE_CONTROLLER");var TLI=function(Y,G){this.lengthY=this.lengthX=0;this.lengthX=G.x-Y.x;this.lengthY=G.y-Y.y};var E4x=function(){},pFB=function(Y,G){var u;
(u=Y.headerElement)==null||u.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:G}))};var tob=function(){};
tob.prototype.openPopup=function(Y,G,u,O){var Q=this,M;return _.a(function(t){if(!Q.container)return t.return();M={openPopupAction:{popup:G,popupType:u,uniqueId:Y}};return t.return(Q.container.handleOpenPopupAction(M,O))})};
tob.prototype.closePopup=function(Y){this.container&&this.container.closePopup(Y)};var K1S=function(){this.openTunnels=new Map},loj=function(Y,G,u){if(PQA(u)){var O=_.Gh(u,"gclid");
u={handleEvent:function(K){G&&!G.closed&&typeof G.postMessage==="function"&&K&&K.origin&&K.source===G&&K.data&&K.data.action==="gcl_setup"&&G.postMessage(Object.assign({},{action:"gcl_transfer"},O&&{gclid:O},{gadSource:2}),K.origin)}};
for(var Q=_.E(Y.openTunnels),M=Q.next();!M.done;M=Q.next()){var t=_.E(M.value);M=t.next().value;t=t.next().value;if(M.closed)try{window.removeEventListener("message",t),Y.openTunnels.delete(M)}catch(K){_.o0(K)}}G&&Y.openTunnels.size<15&&(Y.openTunnels.set(G,u),window.addEventListener("message",u))}};var aEw=function(){this.clientParams=new Map},Yrb=function(Y){for(var G=_.E(Y.clientParams.keys()),u=G.next();!u.done;u=G.next())u=u.value,u.startsWith("yt-mini-app-share")&&Y.clientParams.delete(u)};var TcB=function(Y,G){_.Ey.call(this);var u=this;this.shortsController=Y;this.storeWithShorts=G;Y=_.Eh(this.storeWithShorts,_.TyI,function(O){if(O){var Q,M=(Q=u.shortsController.getRoot())==null?void 0:Q.getPlayer(),t;(Q=(t=u.shortsController.alternativePlayerContainerElement)==null?void 0:t.getPlayerContainer())&&(M==null||M.appendTo(Q))}else{var K;t=(K=u.shortsController.alternativePlayerContainerElement)==null?void 0:K.getPlayerContainer().querySelector("#player");Q=u.shortsController.activeIndex;
(K=(M=u.shortsController.getRoot())==null?void 0:M.querySelector('ytd-reel-video-renderer[id="'+Q+'"] #player-container'))&&(t==null||t.appendTo(K,void 0,!0))}});
this.addOnDisposeCallback(Y)};
_.m(TcB,_.Ey);var nE=function(Y,G,u,O){var Q=this;this.storeWithShorts=Y;this.ephemeralResponseStore=G;this.innertubeTransportService=u;this.innertubeTransportLoader=O;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Hx(_.$C);this.isShortsPipActive=_.Hx(_.qv);this.nextReelVe=_.VZ(56921);this.prevReelVe=_.VZ(56922);this.backButtonVe=_.VZ(22156);this.TEST_ONLY={getActiveModules:function(){return Q.activeModules}}},L1x=function(Y){Y.unsubscribeFromStore=
_.Eh(Y.storeWithShorts,_.aga,function(G){Y.initOrDisposeActiveModules(G);
!G&&Y.storeWithShorts.getState().shorts.isFullscreen&&(_.bc(document.documentElement),Y.storeWithShorts.dispatch(_.RCR(!1)))});
Y.initOrDisposeActiveModules(_.aga(Y.storeWithShorts.getState()))},Kfj,a49,g49;
nE.prototype.initOrDisposeActiveModules=function(Y){Y?this.activeModules.push(new TcB(this,this.storeWithShorts)):(_.DM(this.activeModules),this.activeModules.length=0)};
nE.prototype.registerRootElement=function(Y){this.rootElement=Y;L1x(this)};
nE.prototype.getRoot=function(){return this.rootElement};
nE.prototype.setActiveIndex=function(Y){this.activeIndex=Y};
_.Qe9=function(Y,G){var u,O,Q,M,t,K,L;return _.a(function(g){switch(g.nextAddress){case 1:return u=new Vf,(O=u.JSC$14513_getStoreKey(G))&&Y.ephemeralResponseStore.has(O)?g.yield(Y.ephemeralResponseStore.get(O),7):g.yield(g49(Y,G),4);case 4:Q=g.yieldResult;if(!O){g.jumpTo(3);break}M=sj(Q,3600);return g.yield(Y.ephemeralResponseStore.put(O,new _.Yb(M)),3);case 7:Q=(t=g.yieldResult)==null?void 0:_.sn(t);case 3:return((K=Q)==null?0:K.replacementEndpoint)&&(L=_.z(Q.replacementEndpoint,_.Qa))&&Q.sequenceContinuation&&
(L.sequenceParams=Q.sequenceContinuation),g.return(Q)}})};
Kfj=function(Y,G){G=(new lx).JSC$14513_getStoreKey(G);return!!G&&Y.ephemeralResponseStore.has(G)};
a49=function(Y,G,u){var O,Q,M,t,K;_.a(function(L){if(L.nextAddress==1){O=new lx;Q=O.JSC$14513_getStoreKey(G);if(!Q)return L.return();if(u.reelWatchSequenceResponse)return M=sj(u.reelWatchSequenceResponse,3600),Y.ephemeralResponseStore.put(Q,new _.Yb(M)),L.jumpTo(0);if(!Y.ephemeralResponseStore.has(Q))return L.jumpTo(0);K=u;return L.yield(Y.ephemeralResponseStore.get(Q),4)}K.reelWatchSequenceResponse=(t=L.yieldResult)==null?void 0:_.sn(t);_.Sd(L)})};
g49=function(Y,G){var u=u===void 0?{}:u;var O,Q,M;return _.a(function(t){switch(t.nextAddress){case 1:if(Y.innertubeTransportService){O=Y.innertubeTransportService;t.jumpTo(2);break}if(!Y.innertubeTransportLoader){_.dc(Error("yj"));t.jumpTo(2);break}return t.yield(Y.innertubeTransportLoader(),4);case 4:O=t.yieldResult;case 2:return t.yield((Q=O)==null?void 0:_.iv(Q,G,u),5);case 5:return M=t.yieldResult,t.return(M)}})};
_.Uk.Object.defineProperties(nE.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
nE[c4]=[UUx,_.Js,_.q3(_.KB),_.q3(giT)];_.X4b=new _.Sb("STORAGE_MANAGER_TOKEN");var dS1=["touchmove","scroll"];var PiN=!1;var zn1=!1;var hnT={onSpanEnd:function(Y){Y.parentId==null&&(PiN||(FqA(),setInterval(FqA,6E5),PiN=!0),Wqy(Y,"web_tracing_action"))}};var y2g=URL.createObjectURL;var Z4y,IEj={traceAllComponents:_.F("web_tracing_all_components"),exportToCsi:_.F("web_tracing_export_to_csi"),enabledSpansArray:_.O5("web_tracing_enabled_spans"),exportToDevTools:_.F("web_tracing_export_to_devtools"),maxBreadcrumbs:_.Jy("tel_max_breadcrumbs",0)};Z4y=new CQU(IEj);var DSj=_.F("web_shorts_enable_tracing");var kY9=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},n4x;
kY9.prototype.enqueue=function(Y,G){G===1?this.currentPersistentToast=Y:this.queue.push(Y);_.F1w(this)};
_.F1w=function(Y){var G;(G=Y.currentToast)!=null&&G.isOpened()||(Y.queue.length?(Y.currentToast=Y.queue.shift(),Y.currentToast.open()):Y.currentPersistentToast&&Y.currentPersistentToast.open())};_.F6=new _.Sb("TOAST_MANAGER_TOKEN");var p4B=new _.Sb("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var zPS=new _.Sb("VIEW_TRANSITION_COORDINATOR_TOKEN");var m3w=function(Y){this.config=Y;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;Y=_.E(Y.transitionConfigs);for(var G=Y.next();!G.done;G=Y.next())G=_.E(G.value).next().value,this.transitionTasksMap.set(G,[])};
m3w.prototype.registerElement=function(Y,G,u){u=u===void 0?!1:u;for(var O=_.E(Object.keys(G)),Q=O.next(),M={};!Q.done;M={viewTransitionName:void 0},Q=O.next()){Q=Q.value;M.viewTransitionName=G[Q];var t=this.elementTasksMap.get(Y),K=void 0;if((K=t)==null?0:K.has(Q)){_.ij(new _.I2("Element already registered for transition",Y.tagName,Q));break}t=t||new Map;t.set(Q,{beforeTransition:function(L){return function(){Y.style.viewTransitionName=L.viewTransitionName}}(M),
afterTransition:function(){Y.style.viewTransitionName&&(Y.style.viewTransitionName="")},
runOnce:u});this.elementTasksMap.set(Y,t)}};
_.xC=function(Y,G){var u=Y.elementTasksMap.get(G);u&&(u.clear(),u.size===0&&Y.elementTasksMap.delete(G))};
m3w[c4]=[p4B];var ryo=_.D(function(Y){var G=_.CH("yt-expandable-metadata-header-view-model"),u=_.U3(function(O){_.er(_.M4(),{data:Y.data()});if(!_.nK(_.kC(O),G.value,["A".toString(),"BUTTON".toString()])){var Q;(Q=Y.expandedCallback)==null||Q.call(Y,!1)}});
return _.T("yt-expandable-metadata-header-view-model",{el:G,class:"ytExpandableMetadataHeaderViewModelHost"},_.T(_.X,{cond:function(){return Y.expanded()},
then:function(){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":u},_.T("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.T(_.X,{cond:function(){return Y.data().expandedTitleImage},
then:function(O){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.T(_.RD,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:O}))}}),_.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.T(_.eO,{text:function(){return Y.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.T(_.eO,{text:function(){return Y.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.T(_.eO,{text:function(){return Y.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.T("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.T(_.HE,{data:function(){return Y.data().infoButton}},{buttonViewModel:_.$Y}),_.T(_.HE,{data:function(){return Y.data().collapseButton}},{buttonViewModel:function(O){return _.T(_.$Y,{data:O.data,
onClick:function(){var Q;(Q=Y.expandedCallback)==null||Q.call(Y,!1)}})}})))},
else:function(){return _.T(W1B,Object.assign({},Y))}}))},"Cg"),x3x=_.D(function(Y){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.T(_.X,{cond:function(){return Y.data().collapsedLabelImage},
then:function(G){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.T(_.RD,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:G,alt:""}))}}),_.T(_.eO,{text:function(){return Y.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Dg"),W1B=_.D(function(Y){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.U3(function(){_.er(_.M4(),{data:Y.data()});var G;(G=Y.expandedCallback)==null||G.call(Y,!0)})},_.T("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.T(_.X,{cond:function(){return Y.data().collapsedImage},
then:function(G){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.T(_.RD,{height:20,preserveHeight:!0,preserveWidth:!0,data:G,alt:""}))}}),_.T(_.X,{cond:function(){return Y.data().showLeadingCollapsedLabel},
then:function(){return _.T(x3x,Object.assign({},Y))}}),_.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.T(_.eO,{text:function(){return Y.data().collapsedTitle}}))),_.T("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.T(_.X,{cond:function(){return!Y.data().showLeadingCollapsedLabel},
then:function(){return _.T(x3x,Object.assign({},Y))}}),_.T(_.HE,{data:function(){return Y.data().infoButton}},{buttonViewModel:_.$Y}),_.T(_.HE,{data:function(){return Y.data().expandButton}},{buttonViewModel:function(G){var u=G.data;
return _.T(_.$Y,{data:u,onClick:function(){_.er(_.M4(),{data:u});var O;(O=Y.expandedCallback)==null||O.call(Y,!0)}})}})))},"Eg");_.fEy=_.D(function(Y){var G=_.E(_.SN(function(){return Y.data().initiallyExpanded})),u=G.next().value,O=G.next().value,Q,M=(Q=_.sH().resolve(_.q3(_.Ee)))==null?void 0:Q(),t=function(){var K=Y.data().colorData;
if(K)return M?K==null?void 0:K.darkColorPalette:K==null?void 0:K.lightColorPalette};
return _.T("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Yh({"background-color":function(){var K=t();return(K==null?0:K.section2Color)?_.nB(K.section2Color):""}})},_.T(_.HE,{data:function(){return Y.data().header}},{expandableMetadataHeaderViewModel:function(K){return _.T(ryo,{data:K.data,
expanded:function(){return!!u()},
expandedCallback:function(L){O(L)}})}}),_.T(_.X,{cond:function(){return u()},
then:function(){return _.T("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.T(_.HE,{data:function(){return Y.data().expandedContent}},{horizontalShelfViewModel:function(K){return _.T(_.wm,{data:K.data,
includeMargin:!0,forceNarrowLayout:!0,palette:t})},
videoSummaryContentViewModel:function(K){return _.T(vZl,{data:K.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(K){return _.T(_.Ou,{data:K.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(K){return _.T(_.ei,{data:K.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.T(_.HE,{data:function(){return Y.data().expandedBottomButtons}},{buttonViewModel:function(K){return _.T("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.T(_.$Y,{data:K.data}))}}))}}))},"Fg");var Cix=_.D(function(Y){var G=Y.text;var u=Y.marqueeSpacing;var O=Y.scrollDelay;var Q=Y.scrollDuration;var M=Y.enableMarqueeScroll;Y=Y.large;var t=_.E(_.IE(!1,void 0,"WyNYFf")),K=t.next().value,L=t.next().value,g=_.E(_.IE(0,void 0,"OoTdhe"));t=g.next().value;var P=g.next().value,I=_.CH("marquee-scroll");g=_.CH("div");var k=_.CH("span"),n=_.sH().resolve(_.od);_.RE(function(){if(M()){var C=k.value.getBoundingClientRect().width,e=I.value.getBoundingClientRect().width;if(C>e){var w=(n==="ltr"?-1:1)*(C+
(u?u():16));Promise.resolve().then(function(){L(!0);P(w)})}}},"dv0Anf");
var p={},W={};return _.T("marquee-scroll",{class:_.s3("ytMarqueeScrollHost",(p.ytMarqueeScrollHostLarge=Y,p)),el:I},_.T("div",{id:"marquee-scroll-inner-container",class:_.s3("ytMarqueeScrollInnerContainer",(W.ytMarqueeScrollAnimationEnabled=function(){return K()},W)),
el:g,style:_.Yh({gap:u?(0,_.xi)(u):"16px","animation-duration":Q?YIN(Q):"16s","animation-delay":O?YIN(O):"3s","--marquee-translate":(0,_.xi)(t)})},_.T("span",{el:k,dir:"auto"},_.T(_.eO,{text:G,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.T(_.X,{cond:K,then:function(){return _.T("span",{"aria-hidden":"true",dir:"auto"},_.T(_.eO,{text:G,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Hg");_.yyN=_.D(function(Y){var G=Y.data;var u=Y.overlayDensity;Y=_.U3(function(){G().onTapCommand&&_.W3(G().onTapCommand);return!1});
var O=_.Id(),Q=function(){return(u==null?void 0:u())===1?22:16},M={};
return _.T("reel-sound-metadata-view-model",{class:_.s3("ytReelSoundMetadataViewModelHost",(M.ytReelSoundMetadataViewModelHostLarge=function(){return(u==null?void 0:u())===1},M.ytReelSoundMetadataViewModelHostDecluttered=function(){return _.F("enable_shorts_declutter")&&(u==null?void 0:u())===1},M)),
"on:click":Y,tabindex:0,role:"button","on:keydown":O},_.T("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.T(_.X,{cond:function(){return G().musicIcon},
then:function(t){return _.T(_.RD,{data:t,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:Q})}}),_.T("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.T(Cix,{text:function(){return G().soundMetadata},
enableMarqueeScroll:function(){return!!G().enableMarqueeScroll},
large:function(){return(u==null?void 0:u())===1&&!_.F("enable_shorts_declutter")}}))))},"Ig");var eP9,Ayb,RPB,ZHx,hP9,w4b,SH9,bHB;eP9=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];Ayb=_.Jy("wil_icon_max_concurrent_fetches",Infinity);
RPB=function(Y,G,u){var O=this;this.iconSet=Y;this.appDirection=G;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.OI.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.F("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.F("wil_icon_network_first");this.renderWhenIdle=_.F("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.F("wil_icon_load_immediately");this.isPurging=!1;Y=function(){O.cacheStorageAvailable&&(O.cacheStorageAsync=_.OI.caches.open("yt-icons").then(function(M){return O.cacheStorageSync=M}).catch(function(){O.cacheStorageAvailable=!1}))};
u=(u==null?void 0:u())||{};u=_.E(Object.entries(u));for(G=u.next();!G.done;G=u.next()){var Q=_.E(G.value);G=Q.next().value;Q=Q.next().value;Q=I1(Q);o4y(Q);this.iconCache[G]=Q.cloneNode(!0)}this.isPurging=iHB(this);this.isPurging instanceof Promise?this.isPurging.then(Y):Y()};
_.Eu1=function(Y,G){var u=Y.resolveIcon(G);return u?Y.renderingMode===1?w4b(Y,u,Y.renderingMode):(G=Y.iconCache[u.url])?(G=G.cloneNode(!0),ZHx(Y,G),w4b(Y,u,Y.renderingMode,G)):_.D3N(Y,u).then(function(O){var Q=O?0:1;ZHx(Y,O);return w4b(Y,u,Q,O)}):(_.ij(new _.I2("Icon not found",{iconShape:G})),function(){})};
ZHx=function(Y,G){if(G){Y.counter+=1;Y="_yt"+Y.counter;G=[G].concat(_.c8(G.getElementsByTagName("*")));G=_.E(G);for(var u=G.next();!u.done;u=G.next())if(u=u.value,u.tagName==="style"&&u.textContent)u.textContent=hP9(u.textContent,Y,!0);else for(var O=_.E(u.attributes),Q=O.next();!Q.done;Q=O.next()){Q=Q.value;Q.name==="id"&&(Q.value+=Y);["mask","fill","clip-path"].includes(Q.name)&&(Q.value=hP9(Q.value,Y));if(Q.name==="style"){var M=u.style;try{M.cssText=hP9(M.cssText,Y,!0)}catch(P){var t=void 0,K=
void 0,L=void 0,g=void 0;pE({error:((t=P)==null?void 0:(L=(K=t).toString)==null?void 0:L.call(K))||"",el:u.outerHTML,style:!!M,cssText:(g=M)==null?void 0:g.cssText})}}Q.name==="xlink:href"&&(Q.value=Q.value.replace(/#(.*)/,"#$1"+Y))}}};
hP9=function(Y,G,u){var O=/url\(["']?#(.*?)["']?\)/;(u===void 0?0:u)&&(O=/url\(["']?#(.*?)["']?\)/g);return Y.replace(O,"url(#$1"+G+")")};
w4b=function(Y,G,u,O){return function(Q,M){var t;var K=Object.assign({},{iconWidth:G.size+"px",iconHeight:G.size+"px",iconDisplay:"block"},M,{iconColor:(t=M==null?void 0:M.iconColor)!=null?t:"currentcolor"});t=_.uI("DIV");M=K.iconColor;var L=K.iconFilter;K="width: "+K.iconWidth+"; height: "+K.iconHeight+"; display: "+K.iconDisplay+";";L&&(K+=" filter: "+L+";");u===0&&(K+=" fill: "+M+";");u===1&&(L=G.url,K+=" -webkit-mask: url("+L+") no-repeat center / cover; mask: url("+(L+") no-repeat center / cover; background-color: ")+
M);G.allowMirroring&&Y.appDirection==="rtl"&&(K+=" transform: scale(-1, 1); transform-origin: center center;");t.setAttribute("style",K);u===0&&O&&t.appendChild(O);Q.appendChild(t)}};
_.D3N=function(Y,G){var u,O,Q;return _.a(function(M){u=function(t){return Or(t)};
O=G.url;if(!d39(O))throw Error("Bj");Q=bHB(Y,O);return M.return(Q.then(function(t){return t.clone().text()}).then(function(t){var K=u(t);
t=G.size;var L=_.uI("DIV");_.IA(L,K);K=_.Oy(L.firstElementChild!==void 0?L.firstElementChild:_.MGE(L.firstChild,!0));t=o4y(K,t);Y.iconCache[O]=t.cloneNode(!0);delete Y.responsePromises[O];return t}).catch(function(){}))})};
SH9=function(Y){var G,u=(G=Y.requestAninmationFrameResolver)==null?void 0:G.promise;u||(Y.requestAninmationFrameResolver=new _.sG,u=Y.requestAninmationFrameResolver.promise,_.OI.requestAnimationFrame(function(){var O;(O=Y.requestAninmationFrameResolver)==null||O.resolve();Y.requestAninmationFrameResolver=null}));
return u};
bHB=function(Y,G){var u,O;return _.a(function(Q){if(Q.nextAddress==1)return Y.waitForAnimationFrame?Q.yield(SH9(Y),2):Q.jumpTo(2);u=Y.responsePromises[G];u||(O=function(){var M,t,K;return _.a(function(L){switch(L.nextAddress){case 1:if(!Y.cacheStorageAvailable){M=void 0;L.jumpTo(2);break}if(t=Y.cacheStorageSync){L.jumpTo(3);break}return L.yield(Y.cacheStorageAsync,4);case 4:t=L.yieldResult;case 3:M=t;case 2:return K=M,Y.isNetworkFirstStrategy?L.return(Y.fetchAndUpdateCache(G,K).catch(Y.getCacheStorageResponse.bind(Y,
G,K))):L.return(Y.getCacheStorageResponse(G,K).catch(Y.fetchAndUpdateCache.bind(Y,G,K)))}})},u=Y.renderWhenIdle?new Promise(function(M,t){_.WY(_.AN,function(){O().then(M).catch(t)},10)}):O(),Y.responsePromises[G]=u);
return Q.return(u.catch(function(M){delete Y.responsePromises[G];pE({error:(M==null?0:M.toString)?M.toString():"",url:G});throw M;}))})};
RPB.prototype.fetchAndUpdateCache=function(Y,G){var u=this;return _.a(function(O){return O.return(Ncj(u,Y).then(function(Q){j1B(u,Y,Q,G);return Q}))})};
var Ncj=function(Y,G){var u;return _.a(function(O){if(Y.numFetches<Ayb)return Y.numFetches+=1,O.return(Voy(Y,G).finally(function(){--Y.numFetches;if(Object.keys(Y.queuedResponseResolvers).length){var Q=Object.keys(Y.queuedResponseResolvers)[0],M=Y.queuedResponseResolvers[Q];delete Y.queuedResponseResolvers[Q];M.resolve(Ncj(Y,Q))}}));
u=new _.sG;Y.queuedResponseResolvers[G]=u;return O.return(u.promise)})},Voy=function(Y,G,u){u=u===void 0?2:u;
var O;return _.a(function(Q){O={credentials:"same-origin",priority:"low"};return Q.return(_.OI.fetch(G,O).then(function(M){return M.ok?M:Promise.reject(Error("Cj`"+M.status+"`"+M.statusText))}).catch(function(M){if(u>0)return Voy(Y,G,u-1);
throw M;}))})},j1B=function(Y,G,u,O){_.a(function(Q){return O?Q.return(new Promise(function(M){_.WY(_.AN,function(){var t,K;
return _.a(function(L){switch(L.nextAddress){case 1:if(!Y.isNetworkFirstStrategy){t=void 0;L.jumpTo(2);break}return L.yield(O.match(G).catch(function(){}),3);
case 3:t=L.yieldResult;case 2:if(K=t){L.jumpTo(4);break}return L.yield(O.put(G,u.clone()).catch(function(g){pE({error:(g==null?0:g.toString)?g.toString():"",url:G})}),4);
case 4:M(),_.Sd(L)}})},50)})):Q.return()})};
RPB.prototype.getCacheStorageResponse=function(Y,G){return _.a(function(u){return G?u.return(G.match(Y).then(function(O){return O&&O.ok?O:Promise.reject()})):u.return(Promise.reject())})};
var o4y=function(Y,G){G===void 0||Y.getAttribute("viewBox")||Y.setAttribute("viewBox","0 0 "+G+" "+G);Y.setAttribute("focusable","false");Y.setAttribute("aria-hidden","true");G=_.F("killswitch_remove_icon_fill_color");Y.getAttribute("fill")!=="currentcolor"&&Y.getAttribute("fill")!=="currentColor"||G||Y.removeAttribute("fill");try{Y.style.pointerEvents="none",Y.style.display="inherit",Y.style.width="100%",Y.style.height="100%"}catch(Q){var u;pE({error:((u=Q)==null?0:u.toString)?Q.toString():""});
try{Y.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(M){var O;pE({error:((O=M)==null?0:O.toString)?M.toString():""})}}return Y},d39=function(Y){for(var G=_.E(eP9),u=G.next();!u.done;u=G.next())if(Y.startsWith(u.value)&&Y.endsWith(".svg"))return!0;
return!1};
RPB.prototype.resolveIcon=function(Y){return this.iconSet.resolveIcon(Y)};
var pE=function(Y){_.R0(new _.I2("Error in IconManager",Y))},iHB=function(Y){if(_.F("wil_icons_cache_purge_killswitch"))return!1;
try{var G=_.OI.localStorage}catch(M){return!1}if(!G||!Y.cacheStorageAvailable)return!1;var u=function(M){try{var t;(t=G)==null||t.setItem("yt-icons-last-purged",M.toString())}catch(L){var K;pE({error:((K=L)==null?0:K.toString)?L.toString():""})}},O=Number(G.getItem("yt-icons-last-purged"));
if(!O)return O=new Date,O=O.setDate(O.getDate()-Math.floor(Math.random()*90+1)),u(O),!1;if(function(M,t){M=new Date(M);t=new Date(t);return t.getMonth()-M.getMonth()+12*(t.getFullYear()-M.getFullYear())}(O,Date.now())<3)return!1;
try{return _.OI.caches.delete("yt-icons").then(function(M){M&&u(Date.now());return M}).catch(function(){return!1}).finally(function(){Y.isPurging=!1})}catch(M){var Q;
pE({error:((Q=M)==null?0:Q.toString)?M.toString():""});return!1}};
RPB[c4]=[ZON,_.od,_.q3(dIN)];_.lEx=function(Y,G){this.iconManager=Y;this.iconsToFetch=G};
_.lEx[c4]=[_.vn,_.q3(hox)];var BcN=function(){};var $3N=function(Y,G,u){this.requestKey=Y;this.t23=G;this.pug=u;this.zXT=function(){return new XMLHttpRequest};
this.tpc=void 0;this.iOF=[]};
$3N.prototype.getLatestChallengeResponse=function(){return this.pug};
var $NI=function(Y,G,u){var O,Q,M,t;return _.a(function(K){if(K.nextAddress==1){_.Fh("attestation_challenge_fetch");_.pQ("att_fs",void 0,"attestation_challenge_fetch");if(!Y.tpc)throw new _.x5(9,"Missing fetcher");return K.yield(Y.tpc(G,u),2)}O=K.yieldResult;M=(Q=O)==null?void 0:Q.bgChallenge;if(!M)throw new _.x5(15,"Missing field");Y.pug=O;Y.iOF.forEach(function(L){L(O)});
t=gLu(M);_.pQ("att_fc",void 0,"attestation_challenge_fetch");nQ("attestation_challenge_fetch");return K.return(t)})},Iak=function(Y,G){var u,O,Q,M,t;
return _.a(function(K){switch(K.nextAddress){case 1:u=new $I(100,3E5,.25,2),O=void 0;case 2:if(!(u.currBackoffCount_<10)){K.jumpTo(4);break}_.i3(K,5);if(!(u.currBackoffCount_>0)){K.jumpTo(7);break}return K.yield(S8j(u.getValue()),7);case 7:return K.yield(qHN(Y,G),9);case 9:return Q=K.yieldResult,K.return(Q);case 5:M=_.b3(K);M instanceof _.x5?O=M:(t=M instanceof Error?M.message:"Unknown",O=new _.x5(9,t));Mol(u);K.jumpTo(2);break;case 4:if(O)throw O;throw new _.x5(9,"Unknown error");}})},qHN=function(Y,
G){G=wKI(ZG1(new RiR,G),Y.requestKey);
var u=new _.sG,O=Y.zXT();O.open("POST",Y.t23);O.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");O.setRequestHeader("Content-Type","application/json+protobuf");O.onload=function(){if(_.duy(O)){var Q=$CU(O.responseText);u.resolve(Q)}else u.reject(new _.x5(_.Bct(_.Ql(O)),O.statusText))};
O.onerror=function(){u.reject(new _.x5(_.Bct(_.Ql(O)),O.statusText))};
O.send(G.serialize());return u.promise};var cyb=function(Y){this.networkStatusManager=Y;this.isDownloaded=pN1===void 0?function(){return!1}:pN1;
this.isReady=!1;this.qym=s1b(this)},s1b=function(Y){var G;
return _.a(function(u){if(u.nextAddress==1)return u.yield(W1Y(),2);if(u.nextAddress!=3)return G=u.yieldResult,u.yield(tE_(G),3);Y.zB=u.yieldResult;jRu(Y.zB).then(function(){Y.isReady=!0});
return u.return(Y.zB)})},U3x=function(Y,G,u){Y.zB?(Y=Y.zB.owH({eh:u,
wqc:!0,jFS:!0}),G.serviceIntegrityDimensions={poToken:Y}):_.o0(Error("Ej"))};
cyb.prototype.processContext=function(Y){var G=this;if(Y.input.match(_.Ds(oQk)))var u=Y.innerTubeRequest;else if(Y.input.match(_.Ds(pAT)))u=Y.innerTubeRequest.playerRequest;else return _.wu();var O,Q=(O=u)==null?void 0:O.videoId;return!Q||this.isDownloaded(u)||this.networkStatusManager&&!this.zB&&!this.networkStatusManager.isNetworkAvailable()||_.F("webpo_exit_on_net_err")&&!this.zB&&(window.bgens===1||window.bgens===3)?_.wu():this.zB?this.isReady?(U3x(this,u,Q),_.wu()):new R_(jRu(this.zB).then(function(){U3x(G,
u,Q)})):new R_(this.qym.then(function(M){return _.a(function(t){if(t.nextAddress==1)return t.yield(jRu(M),2);
U3x(G,u,Q);_.Sd(t)})}))};var v4N=new _.Sb("WEB_PO_CONTEXT_PROCESSOR");var Jy9=function(Y,G){var u=this;this.dWS=0;var O;this.c8l=(O=G==null?void 0:G.c8l)!=null?O:window;this.networkStatusManagerPromise=G==null?void 0:G.networkStatusManagerPromise;var Q;this.requestKey=(Q=G==null?void 0:G.requestKey)!=null?Q:_.Yg("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var M;this.afi=(M=G==null?void 0:G.afi)!=null?M:function(L){return new iJ(L)};
var t;O=(t=G==null?void 0:G.rf0)!=null?t:function(L,g,P){return new $3N(L,g,P)};
this.bgChallenge=gLu(Y.bgChallenge);this.ttlSeconds=Xog(hL(Y.challenge||""));this.aO=O(this.requestKey,_.F("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.OI.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",Y);this.sPw=G==null?void 0:G.sPw;NL1(this.aO);var K;this.u2p=(K=G==null?void 0:G.u2p)!=null?K:function(L){_.yn(u.c8l.document,"visibilitychange",
function(){u.c8l.document.visibilityState==="visible"&&L()})}},GRo=function(Y){if(!Y.vm){var G={maxAttempts:5,
eej:Y.ttlSeconds*1E3};Vv1(Y.c8l);Y.vm=Y.afi({aO:Y.aO,aFH:{disable:_.F("html5_web_po_disable_remote_logging"),tO:"aGIf",rQc:RSU("html5_web_po_experiment_ids"),bYb:_.F("wpo_dis_lfdms")?0:1E3,hKt:function(O){var Q=RK4.get(O);Q||(Q=new iSU(O),Q=new JX(Q),RK4.set(O,Q));return Q}},
jyH:G,ygV:Y.bgChallenge,pUm:lwu});Y.dWS=Date.now();j21(Y.vm,function(){Y.dWS=Date.now()});
Y.c8l.bgevmc={p:function(){var O;(O=Y.vm)==null||O.pause()},
r:function(){var O;(O=Y.vm)==null||O.resume()},
cr:function(){var O,Q;return(Q=(O=Y.vm)==null?void 0:O.checkForRefresh())!=null?Q:Promise.resolve()}};
Cig(Y.vm,function(){return _.a(function(O){return O.return(Y5b(Y))})});
var u=Y.iYt.bind(Y);Y.networkStatusManagerPromise&&Y.ttlSeconds>0&&Y.networkStatusManagerPromise.then(function(O){O.listen("publicytnetworkstatus-online",u)});
Y.u2p(u)}};
Jy9.prototype.iYt=function(){if(Date.now()>this.dWS+this.ttlSeconds*1E3){var Y;(Y=this.vm)==null||NCT(Y)}};
var Y5b=function(Y){if(Y.h0N)return Y.h0N;if(!Y.vm)throw Error("Fj");Y.h0N=new hE({vm:Y.vm,aO:Y.aO,koT:!0,onError:lwu,jyH:Y.sPw});return Y.h0N},$SU=function(Y,G){Y=new Jy9(Y,G);
GRo(Y);(G==null?0:G.o1m)||Y5b(Y)};var uwj=_.mcb.ephemeralActionSelector,OGN=function(Y,G){this.store=Y;this.queue=[];G==null||G.addEventListener("yt-navigate-start",this.reset.bind(this))};
OGN.prototype.enqueue=function(Y){var G=Y.command,u=Y.durationMs,O=Y.elementToFocus;var Q=Y.label;var M=Y.elementToFocus;Y.command?Q=_.Q6("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:Q,shortcut:_.Q6("SHIFT_PLUS_ENTER")}):M&&(Y=Q+". "+_.Q6("SHIFT_PLUS_ENTER")+" for more information.",Q=_.Q6("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:Q,shortcut:_.Q6("SHIFT_PLUS_ENTER")},Y));u={announcement:Q,durationMs:u!=null?u:8E3};G?u.command=G:O&&(O.classList.add("ephemeral-action-focusable-element"),u.selector=O.tagName+
".ephemeral-action-focusable-element");this.queue.push(u);Q2B(this)};
OGN.prototype.activate=function(Y){var G=uwj(this.store.getState());if(G){if(G==null?0:G.command)_.pd(G.command),this.store.dispatch(fd2(null));if(G==null?0:G.selector)G=document.querySelector(G.selector),_.wKj(G);Y.preventDefault()}};
var Q2B=function(Y){if(!uwj(Y.store.getState())&&Y.queue.length){var G=Y.queue.shift();G&&(Y.previousAnnouncement===G.announcement&&(G.announcement+="\u00a0"),Y.store.dispatch(fd2(G)),Y.previousAnnouncement=G.announcement,Y.JSC$19154_timeoutId=setTimeout(function(){if(G.selector){var u;(u=document.querySelector(G.selector))==null||u.classList.remove("ephemeral-action-focusable-element")}Y.store.dispatch(fd2(null));Q2B(Y)},G.durationMs))}};
OGN.prototype.reset=function(){this.JSC$19154_timeoutId&&clearTimeout(this.JSC$19154_timeoutId);this.store.dispatch(fd2(null));this.queue.length=0;this.JSC$19154_timeoutId=void 0};
OGN[c4]=[_.Fk,_.q3(_.YY)];_.zV=new _.Sb("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var M1x=new _.Sb("AUTH_SERVICE_TOKEN");var c2T=_.hV(["about:blank"]),sRT;var HGx=new _.Sb("API_IFRAME_TOKEN");var cN2;cN2=new _.Sb("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.Egx=new _.Sb("MISC_UI_SHARED_FLAGS_TOKEN");var t1S=function(){};
t1S.prototype.getFlag=function(Y){if(Y.configType!==2)throw Error("Gj");return K_V(Y)};
var K_V=function(Y){switch(Y.flagType){case "bool":return _.F(Y.flagName);case "int":return _.hU(_.Jy(Y.flagName));case "double":return _.Jy(Y.flagName);case "string":return _.Yg(Y.flagName);case "int32_list":return RSU(Y.flagName);case "int64_list":return RSU(Y.flagName).map(function(G){return _.hU(G)});
case "string_list":return _.O5(Y.flagName);default:throw Error("Hj");}};var mH=function(Y,G,u){G=G===void 0?{}:G;Iu.call(this,u===void 0?"uninitialized":u);this.env=Y;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}];G.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=G.shouldWaitOnAsyncImmediate)};
_.m(mH,Iu);mH.prototype.init=function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1)return G.processPluginOptions.shouldWaitOnAsyncImmediate?O.yield(Y(G.env),2):(Y(G.env),O.jumpTo(2));if(O.nextAddress!=4)return G.jobSet?O.yield(G.jobSet.completedResolver.promise,4):O.jumpTo(4);u=_.AM();u.parkOrScheduleJob(function(){G.transition("rendering")},10,"ci");
_.Sd(O)})};
mH.prototype.initialRender=function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1)return G.processPluginOptions.shouldWaitOnAsyncImmediate?O.yield(Y(G.env),2):(Y(G.env),O.jumpTo(2));if(O.nextAddress!=4)return G.jobSet?O.yield(G.jobSet.completedResolver.promise,4):O.jumpTo(4);u=_.AM();u.parkOrScheduleJob(function(){G.transition("rendered")},10,"cr");
_.Sd(O)})};
mH.prototype.afterRenderImmediate=function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1)return G.processPluginOptions.shouldWaitOnAsyncImmediate?O.yield(Y(G.env),2):(Y(G.env),O.jumpTo(2));if(O.nextAddress!=4)return G.jobSet?O.yield(G.jobSet.completedResolver.promise,4):O.jumpTo(4);u=_.AM();u.parkOrScheduleJob(function(){G.transition("after-render-deferred")},10,"carml");
_.Sd(O)})};
mH.prototype.afterRenderDeferred=function(Y){var G=this;return _.a(function(u){Y(G.env);_.Sd(u)})};var GK1=1;var an9={events$:VK(),track:function(){},
untrack:function(){},
snapshot:function(){}};var wXA=KFA(function(){if(_.F("web_attention_logging"))try{var Y=Emy({scrollThrottle:_.Jy("web_attention_logging_throttle",500),scheduleAfterRender:function(G){return _.AN.addJob(G,8)}});
t2t(Y);return Y}catch(G){}return an9});_.ZE("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var TCb={},L_9=(TCb.rendered={priority:0,callback:function(Y){HUU(Y.injector.resolve(rN))}},TCb);var vak=new _.Sb("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),ggN=new _.Sb("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var XKV=function(Y){this.callbackFnMap=Y;this.configMap={}};
XKV.prototype.handleResponse=function(Y){var G;if(Y=(G=Y.responseContext)==null?void 0:G.serviceTrackingParams)for(G=_.E(Y),Y=G.next();!Y.done;Y=G.next()){Y=Y.value;var u=Y.params,O=Y.service;if(u&&O){this.configMap[O]||(this.configMap[O]=new HEI);Y=this.configMap[O];var Q=void 0,M=(Q=this.callbackFnMap)==null?void 0:Q[O];u=_.E(u);for(O=u.next();!O.done;O=u.next())Q=O.value,O=Q.key,Q=Q.value,O&&Q&&(Y.set(O,Q),M&&M(O,Q))}}};
XKV.prototype.getConfig=function(Y){return this.configMap[Y]||void 0};
XKV[c4]=[_.q3(ggN)];var P9S=!1,I7a=0,LFj=null,PKa=null;var Ino=new _.Sb("NETWORK_SLI_TOKEN");var kRy=function(Y){this.networkSli=Y};
kRy.prototype.fetch=function(Y,G,u){var O=this,Q;return _.a(function(M){Q=ngg(O,Y,G);return M.return(fetch(Q).then(function(t){return O.handleResponse(t,u)}).catch(function(t){_.R0(t);
if((u==null?0:u.expectJsonStrict)&&t instanceof E7&&t.errorType===1)return Promise.reject(t)}))})};
var n94=function(Y,G,u,O){var Q,M,t,K,L,g,P;return _.a(function(I){switch(I.nextAddress){case 1:return Q=ngg(Y,G,u),_.i3(I,2),I.yield(fetch(Q),4);case 4:M=I.yieldResult;_.j1(I,3);break;case 2:throw _.b3(I),new E7(2,"Failed to parse streaming response",Q.url);case 3:if(!M.redirected&&!M.ok)throw(t=Y.networkSli)==null||t.failure(),new _.I2("Streaming fetch request not ok",Q.url);if(!M.body)throw new _.I2("No response body in streaming response",Q.url);K={};if(_.F("web_streaming_fast"))return L=M.body.getReader(),
I.return(F_S(Y,L,K,O));g=M.body.pipeThrough(new TextDecoderStream).getReader();P=new _.Pc;return I.return(pKb(Y,g,P,wk1,K,O))}})},ngg=function(Y,G,u){if(Y.networkSli){var O=_.BI(_.ud(G,"key"))||"/UNKNOWN_PATH";
Y.networkSli.start(O)}Y=u;_.F("wug_networking_gzip_request")&&(Y=BB1(u));return new window.Request(G,Y)},F_S=function(Y,G,u,O){var Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N,h,q,U,Mj,Xt,ka,aU,Tg,iy,hY,dA,nT,u_,jT;
return _.a(function(P1){switch(P1.nextAddress){case 1:Q=new TextDecoder("utf-8"),M=[],K=t=0,_.i3(P1,2,3);case 5:return P1.yield(G.read(),8);case 8:L=P1.yieldResult;g=L.value;if(P=L.done){I=0;if(M.length>t)for(I=M[t].length-K,k=t+1;k<M.length;k++)I+=M[k].length;I>0&&(n=kKy(M,I,t,K),p=n.indexOf(123),W=n.lastIndexOf(125),p!==-1&&W!==-1&&W>p&&(C=n.subarray(p,W+1),e=JSON.parse(Q.decode(C)),wk1(u,e),w=void 0,(w=O)==null||w(u,e)));B=void 0;(B=Y.networkSli)==null||B.success();return P1.return(u)}M.push(g);
N=t;for(h=K;N<M.length;)if(q=M[N],U=q.indexOf(10,h),U===-1){if(N===M.length-1)break;N++;h=0}else{Mj=N;Xt=U+1;ka=0;if(t===Mj)ka=Xt-K;else{ka=M[t].length-K;for(aU=t+1;aU<Mj;aU++)ka+=M[aU].length;ka+=Xt}Tg=kKy(M,ka,t,K,Mj,Xt);iy=Tg.indexOf(123);hY=Tg.lastIndexOf(125);if(iy!==-1&&hY!==-1&&hY>iy){dA=Tg.subarray(iy,hY+1);try{nT=JSON.parse(Q.decode(dA)),wk1(u,nT),u_=void 0,(u_=O)==null||u_(u,nT)}catch(kk){throw new E7(1,"Failed to parse streaming response object",Q.decode(dA));}}t=N;h=K=U+1;K===q.length&&
(t++,K=0,N=t,h=0)}P1.jumpTo(5);break;case 3:_.wt(P1);G.releaseLock();_.dt(P1,0);break;case 2:jT=_.b3(P1);if(jT instanceof E7)throw jT;throw new E7(1,"Failed to process streaming response");}})},pKb=function(Y,G,u,O,Q,M){var t,K,L,g,P,I,k,n,p;
return _.a(function(W){if(W.nextAddress==1)return W.yield(G.read(),2);t=W.yieldResult;K=t.value;if(L=t.done)return(g=Y.networkSli)==null||g.success(),W.return(Q);try{P=u.parse(K)}catch(C){throw new E7(1,"Failed to parse streaming response",K);}if(P!=null)for(I=_.E(P),k=I.next();!k.done;k=I.next())n=k.value,O(Q,n),p=void 0,(p=M)==null||p(Q,n);return W.return(pKb(Y,G,u,O,Q,M))})};
kRy.prototype.handleResponse=function(Y,G){var u=Y.text().then(function(O){if((G==null?0:G.jspbResponseCtor)&&Y.ok)return TtY(G.jspbResponseCtor,O);O=O.replace(")]}'","");if((G==null?0:G.expectJsonStrict)&&O)try{var Q=JSON.parse(O)}catch(t){throw new E7(1,"JSON parsing failed after fetch");}var M;return(M=Q)!=null?M:JSON.parse(O)});
Y.redirected||Y.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),u=u.then(function(O){_.R0(new _.I2("Error: API fetch failed",Y.status,Y.url,O));return Object.assign({},O,{errorMetadata:{status:Y.status}})}));
return u};
kRy[c4]=[_.q3(Ino)];var zio=new _.Sb("NETWORK_MANAGER_TOKEN");var mNb=[1,2,4,8,16,30],rdb=function(Y){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=Y.maxTimeMs;this.maxFrameCount=Y.maxFrameCount===void 0?Math.ceil(60*Y.maxTimeMs/1E3):Y.maxFrameCount;Y=_.E(mNb);for(var G=Y.next();!G.done;G=Y.next())this.brokenFrameSummarizers.push(new W_o(G.value/60*1E3))},xNx=function(Y){var G=Y.frameCountInternal>=Y.maxFrameCount;
return Y.elapsedTimeMs>=Y.maxTimeMs||G};
rdb.prototype.summarize=function(){for(var Y=[],G=_.E(this.brokenFrameSummarizers),u=G.next();!u.done;u=G.next())u=u.value,u=u.brokenFrameCount!==0?{severityMs:Math.round(u.targetFrameTimeMs),eventCount:u.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(u.averageDurationBetweenEventsMs)}:void 0,u&&Y.push(u);return{summaries:Y,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.Uk.Object.defineProperties(rdb.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 W_o=function(Y){this.targetFrameTimeMs=Y;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Uk.Object.defineProperties(W_o.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var fn9=function(Y){this.measurementName=Y};
fn9.prototype.start=function(Y,G){var u=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var O=new rdb({maxTimeMs:Y});this.monitor=O;this.lastSummaryInternal=void 0;this.metadataToLog=G;return new Promise(function(Q){var M=function(t){if(t===void 0)u.stop(),Q(void 0);else if(u.monitor!==O)t=Object.assign({},O.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),Q(t);else{var K=u.monitor;if(!xNx(K)){K.frameCountInternal++;if(K.prevTime===
void 0)K.startTime=t;else for(var L=t-K.prevTime,g=_.E(K.brokenFrameSummarizers),P=g.next();!P.done;P=g.next()){P=P.value;var I=P.currTimeMs;P.currTimeMs+=L;L>P.targetFrameTimeMs+2&&(P.brokenFrameCount++,P.timeOfFirstBrokenFrameMs===void 0&&(P.timeOfFirstBrokenFrameMs=I),P.timeOfLastBrokenFrameMs=I)}K.prevTime=t}xNx(u.monitor)?Q(u.stop()):_.AN.addJob(M,5,0)}};
_.AN.addJob(M,5,0)})};
fn9.prototype.stop=function(Y){if(!this.monitor)return this.lastSummaryInternal;var G=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(G.monitoringDurationMs){Y=Y!=null?Y:this.metadataToLog;var u={droppedFramesSummary:G,name:this.measurementName};Y&&(u[Y.type]=Y.data);_.eK("manualSmoothnessMeasurement",u)}this.monitor=void 0;this.lastSummaryInternal=G;this.metadataToLog=void 0;return G};_.C9N=new _.Sb("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");_.ydx=new _.Sb("MAIN_THREAD_DFE_CAPTURER_NEON_EFFECT_IDLE_TOKEN");var nmt=Promise.resolve();var eix;eix=function(Y){this.JSC$19212_expiringStorage=new Fw(Y)};
_.AdS=function(Y){if(_.pXA()&&(Y=_.WZA(_.Xw()+"::"+Y)))return new eix(Y)};
eix.prototype.set=function(Y,G,u){u=u!==void 0?Date.now()+u:void 0;this.JSC$19212_expiringStorage.set(Y,G,u)};
eix.prototype.get=function(Y){return this.JSC$19212_expiringStorage.get(Y)};
eix.prototype.remove=function(Y){this.JSC$19212_expiringStorage.remove(Y)};_.WS=function(){};
_.WS.getInstance=function(){var Y=_.So("ytglobal.storage_");Y||(Y=new _.WS,_.U5("ytglobal.storage_",Y));return Y};
_.WS.prototype.estimate=function(){var Y,G,u;return _.a(function(O){Y=navigator;return((G=Y.storage)==null?0:G.estimate)?O.return(Y.storage.estimate()):((u=Y.webkitTemporaryStorage)==null?0:u.queryUsageAndQuota)?O.return(zva()):O.return()})};
_.U5("ytglobal.storageClass_",_.WS);var yeY=0;var Dd4=!1;var ogV=_.hV(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),iG9=_.hV(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var DUB={"/":_.Hq,"/?feature=ytca":_.Hq,"/feed/downloads":_.X_4};var RiS=rT9.continuationCommandSelector,Ky=function(Y,G,u){this.JSC$19227_upliftPromise=Y;this.store=G;this.JSC$19227_persistentStorePromiseAccessor=u};
Ky.prototype.shouldPreferLocalResponse=function(Y){return Y.browseId==="FEdownloads"||Y.browseId==="FEsmart_downloads"&&_.F("kevlar_modern_downloads_page")?!0:!1};
Ky.prototype.localInnertubeResponse=function(Y){var G=this;return _.a(function(u){return Y.browseId==="FEdownloads"?_.F("kevlar_modern_downloads_page")?u.return(wK9(G)):u.return(ZGb(G)):Y.browseId==="FEsmart_downloads"&&_.F("kevlar_modern_downloads_page")?u.return(DNN(G)):u.return(Promise.reject(Error("Lj")))})};
Ky.prototype.canProvideFallbackResponse=function(){return!0};
Ky.prototype.localFallbackInnertubeResponse=function(Y){var G=this,u,O,Q;return _.a(function(M){switch(M.nextAddress){case 1:return M.yield(G.JSC$19227_persistentStorePromiseAccessor(),2);case 2:u=M.yieldResult;if(Y.browseId!=="SPaccount_downloads"||!u){M.jumpTo(3);break}return M.yield(FLT(u),4);case 4:if(O=M.yieldResult)return M.return(_.sn(O));case 3:return Y.browseId==="FEwhat_to_watch"?M.return(hib(G)):(Q=_.F("web_offline_continuation_automatic_retry")||_.F("web_offline_continuation_retry_button"))&&
Y.continuation?M.return(dNg(G)):M.return(bGo(G))}})};
var hib=function(Y){var G;return _.a(function(u){if(u.nextAddress==1)return u.yield(Y.JSC$19227_upliftPromise,2);G=_.Xf4(Y.store.getState().entities);return G.length?u.return(S5V(Y,G)):u.return(bGo(Y))})},ZGb=function(Y){var G,u;
return _.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$19227_upliftPromise,2);if(O.nextAddress!=3)return G=NCx([{offlineItemSectionRenderer:{}}]),O.yield(j2b(Y,G),3);u=O.yieldResult;u.onResponseReceivedActions=[On("REFRESH_DOWNLOADS")];return O.return(u)})},wK9=function(Y){var G,u,O,Q,M,t,K,L,g,P,I,k,n,p,W,C;
return _.a(function(e){if(e.nextAddress==1)return e.yield(Y.JSC$19227_upliftPromise,2);if(e.nextAddress!=3)return G=Y.store.getState(),u=G.entities,O=_.XX(u),Q=_.PC(u),M=_.BWj(G),t=_.lmT(G),K=_.$eT(G),L=_.key(u),g=_.tH(O),P=_.Ii(u),I=_.z6I(u),k=_.sVu(G),n=_.zL(G),p={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.eDg(O,Q,L,I,M,t,g,P,K,k,n),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},W="",_.F("kevlar_modern_downloads_skip_downloads_title")||
(W=_.Q6("DOWNLOADS",void 0,"Downloads")),e.yield(V1S(Y,p,W),3);C=e.yieldResult;C.onResponseReceivedActions=[On("REFRESH_DOWNLOADS")];return e.return(C)})},DNN=function(Y){var G,u,O,Q,M,t,K,L,g;
return _.a(function(P){if(P.nextAddress==1)return P.yield(Y.JSC$19227_upliftPromise,2);if(P.nextAddress!=3)return G=Y.store.getState(),u=G.entities,O=_.XX(u),Q=_.tH(O),M=_.Ii(u),t={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.orA(O),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},K=_.Q6("SMART_DOWNLOADS",void 0,"Smart downloads"),L=C1u(Q,M),P.yield(V1S(Y,t,K,L),3);g=P.yieldResult;g.onResponseReceivedActions=
[On("REFRESH_DOWNLOADS")];return P.return(g)})},bGo=function(Y){var G,u;
return _.a(function(O){if(O.nextAddress==1)return O.yield(qF(Y.JSC$19227_upliftPromise,Y.store),2);G=O.yieldResult;u=NCx([P4A(G)]);return O.return(j2b(Y,u))})},dNg=function(Y){var G,u,O,Q;
return _.a(function(M){if(M.nextAddress==1)return G={},u=RiS(Y.store.getState()),_.XS(G,_.rE,u),M.yield(qF(Y.JSC$19227_upliftPromise,Y.store,G,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);O=M.yieldResult;Q={};_.XS(Q,_.F32,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:O}}}],targetId:"browse-feedFEwhat_to_watch"});return M.return({responseContext:{},onResponseReceivedActions:[Q]})})},NCx=function(Y){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:Y}}}}]}}},S5V=function(Y,G){var u,O;
return _.a(function(Q){var M={contents:QN(G)};u=M&&M.contents?M:{};_.F("kevlar_modern_downloads_page")&&(u=Object.assign({},_.iYu(G),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));O={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:u}}}]}};return Q.return(j2b(Y,O))})},j2b=function(Y,G){var u,O;
return _.a(function(Q){if(Q.nextAddress==1)return Q.yield(Y.JSC$19227_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3)return u=Q.yieldResult,Q.yield(cU(u),3);O=Q.yieldResult;return Q.return({responseContext:{},contents:G,topbar:O})})},V1S=function(Y,G,u,O){var Q,M;
return _.a(function(t){if(t.nextAddress==1)return t.yield(Y.JSC$19227_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3)return Q=t.yieldResult,t.yield(cU(Q),3);M=t.yieldResult;var K=t.return;var L=u;var g=O;L=L===void 0?"":L;g=g===void 0?"":g;L={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:L}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Q6("SETTINGS",void 0,"Settings"),accessibilityText:_.Q6("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:_.dS("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:g}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:L};
return K.call(t,{responseContext:{},contents:G,topbar:M,header:{pageHeaderRenderer:L}})})};var lnx=function(Y){this.chunkRegistry=Y};
lnx.prototype.handleResponse=function(Y){var G=this,u,O,Q,M,t;return _.a(function(K){M=(Q=(u=_.z(Y.responseContext,Uae))==null?void 0:(O=u.webResponseContextPreloadData)==null?void 0:O.preloadMessageNames)!=null?Q:[];t=CFb(G.chunkRegistry,M);return K.yield(t(),0)})};
lnx[c4]=[_.fS];var LER=new _.Sb("MSS_RESPONSE_PROCESSOR_TOKEN");var BCN={},$N9=(BCN.rendered={priority:0,callback:function(Y){a:{var G=void 0;try{var u;b:{if(_.DwT()){var O=_.xg(_.Xw()+"::pom");if(O){var Q=new My(O);break b}}Q=void 0}var M=(u=Q)==null?void 0:u.get("role_text");if(!M)break a;G={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:M}]}}}}}}catch(L){}G&&Y.injector.resolve(_.rH).resolveCommand(G)}try{var t=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(t){var K=JSON.parse(t);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
K&&Y.injector.resolve(_.rH).resolveCommand(K)}}catch(L){}}},BCN);var q5N,s2w={},cdN=(s2w.initialized={priority:10,callback:function(){q5N=ny()}},s2w.rendering={callback:function(Y){var G;
return _.a(function(u){if(u.nextAddress==1)return u.yield(q5N,2);G=u.yieldResult;if(!G.endpoint)throw Error("Nj`"+_.OI.location.href);z0(Y,G);_.Sd(u)})}},s2w);var UNg={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.c8(_.F("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},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(Y){var G=Y.stack;if(G.includes("chrome://")||G.includes("chrome-extension://")||Y.message.includes("chrome-extension://")||G.includes("moz-extension://")||
G.includes("local.adguard.org")||G.includes("auctioneer3.50million.club")||G.includes("youtubedownloader")||G.includes("youtube_home_page")||G.includes("is_youtube_video_no_longer_available")||G.includes("switchScreenSizeHack")||G.includes("yt_main_big_banner.js")||G.includes("YouTubeCenter.js")||G.includes("/mytube.js")||G.includes("JSON.parseWrapper")||G.includes("/inj_js/common.js")||G.includes("firebug-lite")||G.includes(".repl.co/")||G.includes("linkfix")||G.includes("playAfterAd")||Y.message.includes("Access is denied for this document")&&
G.includes("<anonymous>")||Y.fileName==="user-script"||Y.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&G.includes("<anonymous>"))return!0;if(G.includes("https://www.youtube.com"))return!1;Y=G.split("\n");if(!Y.length)return!1;if(Y.length<=3&&G.includes("s.onloadeddata"))return!0;G=0;for(var u=_.E(Y),O=u.next();!O.done;O=u.next())O=O.value,(O.includes("https://")||O.includes("http://"))&&G++;return G/Y.length>.95},
weight:0},{callback:function(Y){return Y.message==="Unknown Error"&&Y.name.indexOf("NS_")===0},
weight:100},{callback:function(Y){if(!_.YU)return!1;var G=Y.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||Y.message.includes("available to complete this operation"),u=Y.stack.includes("webcomponents")&&Y.message==="Object doesn't support this action";Y=Y.message.includes("object that does not implement interface Element");return G||u||Y},
weight:0},{callback:function(Y){return Y.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(Y){return Y.message==="Operation is not supported"&&(Y.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(Y){return Y.stack.includes("eval code (eval (code:1:1)")||Y.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(Y){return Y.message.includes("Permission denied")&&Y.stack.includes("this.domHandler")?!0:Y.name.includes("TypeError")&&Y.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(Y){if(!Y.stack)return!1;var G=Y.stack.trim().split("\n");G.length&&G[0].endsWith("Error: "+Y.message)&&G.shift();G.length&&G[G.length-1].includes("at window.onerror (")&&G.pop();if(!G.length)return!0;if(Y.message==="Script error.")return G[0].includes("www.youtube.com")||G.length>=2&&G[0].startsWith("at new")&&G[1].startsWith("at window.onerror");if(Y.message==="Unexpected token")return!0;Y=_.E(G);for(G=Y.next();!G.done;G=Y.next())if(G=G.value,!(G.includes("<anonymous>")||
G.startsWith("load@")||G.startsWith("global code@")||G.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(Y){return Y.message==="Cannot read property 'experiments'"&&Y.stack.includes("/s/player/")},
weight:500},{callback:function(Y){return Y.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(Y){return Y.stack.includes("/embed.js")?(Y.params&&Y.params&&(Y.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.F("use_error_suppression"))var Y=_.DE("SUPPRESS_CLIENT_ERRORS",!1);else{if(Y=_.MP)Y=/Chrome\/(\d+)/.exec(_.zg()),Y=(Y?parseFloat(Y[1]):NaN)>=66;Y=!(Y||_.uO&&_.Gy(65)||_.Zn&&_.Gy(12.1)||s5&&_.Gy(79))}return Y},
weight:500}]};var vgw={},Jdx=(vgw.initialized={priority:10,callback:function(Y){Y.injector.addProvider({provide:aQE,useValue:Y.root});Y.injector.addProvider({provide:H2b,useValue:IjY});Y.injector.addProvider({provide:ElB,useValue:UNg});var G={};Y.injector.addProvider((G.provide=tEN,G.useFactory=function(u,O){return function(){huI(u,O)}},G[c4]=[H2b,
ElB],G));Y.injector.addProvider({provide:Mi,useClass:Mi})}},vgw);var Y0S={},GCV=(Y0S.initialized={priority:3,callback:function(){var Y;if(Y=XC4()){Y=Y.replace("/",".");var G=_.EU();G.set("tz",Y);G.save();Y=!0}else Y=!1;Y||(Y=_.EU(),Y.set("utco",-Math.floor((new Date).getTimezoneOffset())),Y.save())}},Y0S);var unS={},OqN=(unS.initialized={priority:10,callback:function(Y){Y.injector.resolve(Mi).start();Y=_.Ah();var G=_.hy("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.hy("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.hy("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.hy("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Qo(_.xQI(),{mainAppWeb:Object.assign({},Y,{pageType:G})});_.Qo(CaT(),{mainAppWeb:Object.assign({},Y,{pageType:G})});
_.Qo(yw4(),{mainAppWeb:Y});_.Qo(ezI(),{mainAppWeb:Y});F7M(function(){_.Mz(yw4(),"FAILURE");_.Mz(ezI(),"FAILURE")});
ceg();UdU();CYY()}},unS);var Qw9={},MVg=(Qw9.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.pQ("dl"),_.AM().processSignal("pcl");else{var Y=function(){_.pQ("dl");_.AM().processSignal("pcl");window.removeEventListener("load",Y)};
window.addEventListener("load",Y)}}},Qw9);var Hqg={},Eqg=(Hqg.rendering={priority:0,callback:function(){var Y=_.AM();Y.parkOrScheduleJob(function(){Y.processSignal("eocs")},10,"eor",5E3)}},Hqg);var tVj=function(){};
_.m(tVj,iL);
tVj.prototype.resolveCommand=function(Y,G){var u,O,Q,M,t,K,L,g;return _.a(function(P){Q=(u=_.z(Y,_.j8k))==null?void 0:(O=u.dialog)==null?void 0:O.commentReplyDialogRenderer;if(!Q)throw new _.I2("No dialog in createCommentReplyDialogEndpoint");t=(M=G.form)==null?void 0:M.event;if(!t)throw new _.I2("Event not passed in when resolving command");K=_.E(t.composedPath());for(L=K.next();!L.done;L=K.next())if(g=L.value,g.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||g.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return g.showReplyDialog(Q),P.return();
_.Sd(P)})};var KT9=function(){};
_.m(KT9,iL);KT9.prototype.resolveCommand=function(){var Y;return _.a(function(G){if(Y=document.getElementById("creator-chatbots-panel"))Y.style.display="none";_.Sd(G)})};var aaN=function(){};
_.m(aaN,iL);aaN.prototype.resolveCommand=function(Y){var G,u,O,Q,M,t,K;return _.a(function(L){switch(L.nextAddress){case 1:return G=_.z(Y,YEI),((u=G)==null?void 0:u.surface)==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"?L.yield((0,_.Ok)("NSzT5"),6):(O=G)!=null&&O.externalChannelId?L.yield((0,_.Ok)("NSzT5"),4):L.return();case 4:return Q=_.FE1,t=(M=G.forceInstall)!=null?M:!1,L.yield(Q(G.externalChannelId,t,G.surface),0);case 6:return K=_.FE1,L.yield(K("",!1,G.surface),7);case 7:return L.return()}})};var rF=function(Y){this.JSC$19256_pageRequestService=Y;this.JSC$19256_prefetchCoordinator=l49()};
_.m(rF,iL);rF.prototype.resolveCommand=function(Y){var G=this,u,O,Q,M;return _.a(function(t){if(t.nextAddress==1){u=_.z(Y,mHV);if((O=u)==null||!O.taskId)throw Error("Oj");Q=u.taskId;_.i3(t,2);return t.yield(_.EHg(G.JSC$19256_pageRequestService,Y,{},"").then(function(K){if(!K)throw Error("Pj");},function(K){throw Error("Qj`"+K);
}),4)}if(t.nextAddress!=2)return seN(G.JSC$19256_prefetchCoordinator,Q),_.j1(t,0);
M=_.b3(t);qy9(G.JSC$19256_prefetchCoordinator,Q,M);_.Sd(t)})};
rF[c4]=[_.kM];var x9=function(Y,G){this.innertubeTransportService=Y;this.JSC$19260_commandHandler=G};
_.m(x9,iL);x9.prototype.resolveCommand=function(Y){var G=this,u,O,Q;return _.a(function(M){if(M.nextAddress==1){u=_.z(Y,rs4);if(u.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||u.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")O=u.boolValue?2:1,_.SD.getInstance().setState(O,!0,!0);return M.yield(_.iv(G.innertubeTransportService,Y),2)}Q=M.yieldResult;ToB(G,Q);_.Sd(M)})};
var ToB=function(Y,G){G.actions&&G.actions.forEach(function(u){Y.JSC$19260_commandHandler.resolveCommand(u)})};
x9[c4]=[_.KB,_.rH];var fE={},CE=(fE.addToPlaylistEndpoint=hW(dl),fE.addToToastAction=hW(sC),fE.adsControlFlowOpportunityReceivedCommand=hW(k1),fE.audioTrackSelectActionCommand=hW(YP),fE.backgroundAudioPlaybackCommand=hW(OC),fE.captionLanguageSelectActionCommand=hW(QS),fE.captionPickerEndpoint=hW(MV),fE.changeMiniAppPlayStateCommand=hW(bt),fE.changeTimelyActionVisibilityCommand=hW(qV),fE.channelCreationFormEndpoint=hW(oJ),fE.clearLocationCommand=hW(hk),fE.clearUrlParamCommand=hW(Sz),fE.copyLinkCommand=hW(g6),fE.copyTextEndpoint=
hW(WQ),fE.createCommentReplyDialogEndpoint=e91(tVj),fE.createPlaylistServiceEndpoint=hW(XM),fE.dismissDialogEndpoint=hW(jz),fE.dismissPlayerOverlayCommand=hW(HP),fE.entityUpdateCommand=hW(x1),fE.feedbackEndpoint=hW(fg),fE.getAnswerCommand=hW(fF),fE.getPaymentsClientTokenCommand=hW(Ye),fE.getTranscriptEndpoint=hW(cP),fE.googlePaymentBillingCommand=hW(GZ),fE.googlePaymentPurchaseManagerCommand=hW(uH),fE.hideCreatorChatbotEngagementPanelCommand=hW(KT9),fE.hideEngagementPanelEndpoint=hW(Vp),fE.hideSheetCommand=
hW(lt),fE.hideSnackbarCommand=hW(SB),fE.insertRichSectionCommand=hW(wl),fE.listMutationCommand=hW(ZX),fE.logGtmCommand=hW(RJ),fE.notifyDropdownOptionSelectedCommand=hW(Nr),fE.openAdAllowlistInstructionCommand=hW(_.ng),fE.openOnePickAddVideoModalCommand=hW(PP),fE.persistSubscriptionsDisplayPreferencesCommand=hW(zz),fE.pingingEndpoint=hW(FJ),fE.playlistEditEndpoint=hW(kP),fE.playlistVotingRefreshPopupCommand=hW(nF),fE.profileCardCommand=hW(IJ),fE.refreshPanelEndpoint=hW(BQ),fE.saveImageToDeviceEndpoint=
hW(rl),fE.scrollToSectionEndpoint=e91(zBx),fE.seekToVideoTimestampCommand=hW(EC),fE.selectCountryCommand=hW(mY),fE.setCookieCommand=hW(WP),fE.setLocalStorageCommand=hW(jB),fE.setPrefStorageEntryCommand=hW(xP),fE.setSettingEndpoint=hW(x9),fE.sfvAudioItemPlaybackCommand=hW(tb),fE.shareImageCommand=hW(CF),fE.sharingProviderDataCommand=hW(yS),fE.showAudioTrackPickerActionCommand=hW(KF),fE.showCaptionLanguageSelectActionCommand=hW(aj),fE.showCreatorChatbotEngagementPanelCommand=hW(aaN),fE.showDialogCommand=
hW(sF),fE.showEngagementPanelEndpoint=hW(cQ),fE.showFullscreenPlayerControlsCommand=hW(Tz),fE.showSheetCommand=hW(UF),fE.showSnackbarCommand=hW(NV),fE.showTransientPlayerScrimOverlayCommand=hW(LF),fE.submitFormWithValidationFlowCommand=hW(Ak),fE.talkToRecsDeselectCommand=hW(VS),fE.talkToRecsNextCommand=hW(lU),fE.talkToRecsSelectCommand=hW(BP),fE.talkToRecsUpdateTextCommand=hW($P),fE.toggleEngagementPanelCommand=hW(vQ),fE.undoFeedbackEndpoint=hW(ez),fE.updateEngagementPanelContentCommand=hW(Jk),fE.updateUrlParamCommand=
hW(UC),fE.updateVideoMetadataCommand=hW(Jb),fE.verifyCommand=hW(oJ),fE.webNativeShareCommand=hW(eB),fE.webSubmitFormCommand=hW(FM),fE.ACK_PLAYABLES_3P_DATA_CONSENT=hW(Ab),fE.CANCEL_NAVIGATION=hW(oj),fE.COPY_SHARE_URL=hW(iU),fE.MINI_APP_EXIT_DIALOG_SEEN=hW(w6),fE.MINI_APP_OPEN_URL=hW(Rj),fE.REQUEST_MINI_APP_FULLSCREEN=hW(ZO),fE.RESUME_NAVIGATION=hW(DO),fE.SHARE_PLAYABLE_WITH_HIGH_SCORE=hW(hb),fE.TELL_US_WHY=hW(Cg),fE);
_.F("web_enable_prefetching_videos_on_home")&&(CE.prefetchWatchCommand=hW(rF),CE.registerTasksCommand=hW(O2x));_.F("enable_share_panel_navigation_logging_fix_on_web")&&(CE.shareEntityServiceEndpoint=hW($1));_.F("web_use_flow_state_manager")&&(CE.deleteFlowStepsCommand=hW(tk),CE.flowNextStepCommand=hW(Kg),CE.flowPrevStepCommand=hW(aJ),CE.getFlowCommand=hW(TF),CE.updateFlowCommand=hW(Lg));_.F("enable_ai_companion")&&(CE.updateConversationIdCommand=hW(mt),CE.formDataDecoratorCommand=hW(zF));
var hOT=Object.assign({},CE);var LTx={},gqb=(LTx.initialized={priority:10,callback:utk},LTx);var XjN={},PBy=(XjN.initialized={callback:function(Y){var G={},u={};xgu().install((G.document_disposed={callback:function(){_.F("finalize_all_timelines")?Y24():IK();gma("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.Nrt();var O=Y.injector.resolve(Mi);O.intervalId!==void 0&&(O.intervalId&&_.AN.cancelJob(O.intervalId),O.intervalId=void 0,--O.currentPartitionIndex,O=cnk(O),O>0&&pd4({mainAppWeb:_.Ah(),survivalSli:{partitionMinute:O,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));Lse(o_);ia!=null&&
ia.flush();Vc&&Vc.snapshotAndFlush();O=_.E(RK4.values());for(var Q=O.next();!Q.done;Q=O.next())Q.value.snapshotAndFlush()}},G),(u.flush_logs={callback:function(){_.A1()}},u))}},XjN);var IaV={},kCN=(IaV.rendered={priority:0,callback:function(){var Y=new faU;Y.increment("STARTED");if(_.DE("LOGGED_IN")&&!_.DE("IS_DBSC",!1)&&_.DE("SERVER_VERSION")!=="test"&&_.DE("SERVER_VERSION")!=="dev"&&!Ghj()&&!Y_A()){Y.increment("EXECUTING");var G=document.createElement("iframe");G.style.display="none";_.t0(G,2,_.cs("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.DE("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(G);Y.increment("DONE")}}},
IaV);var nqj={},FTx=(nqj.rendered={callback:function(){l49().resume()}},nqj);var pjb={acknowledgeChannelTouStrikeCommand:xh(Zr),addToPlaylistServiceEndpoint:xh(d2),addToPlaylistEndpoint:xh(d2),addUpcomingEventReminderEndpoint:xh(Og),browseEndpoint:xh(I4y),channelCreationFormEndpoint:xh(yL),channelCreationServiceEndpoint:xh(es),claimLegacyYoutubeChannelEndpoint:xh(Pl),clearSearchHistoryEndpoint:xh(js),clearWatchHistoryEndpoint:xh(VL),commerceActionCommand:fz(QJ),createBackstagePostEndpoint:xh(K_),createBroadcastCommand:xh(Qf),createCommentEndpoint:xh(rn),createCommentReplyEndpoint:xh(Wl),
createLiveChatPollEndpoint:xh(Mn),createPlaylistServiceEndpoint:xh(bx),crossAccountChannelTransferEndpoint:xh(Y0),deleteLiveChatMessageCommand:xh(Hg),deletePlaylistEndpoint:xh(Sn),deleteVideoEndpoint:xh(uV),dismissalEndpoint:xh(Dr),feedbackEndpoint:xh(hA),flagEndpoint:xh($0),getAccountSwitcherEndpoint:xh(JA),verifyCommand:xh(tA),getAccountsListInnertubeEndpoint:xh(ux),getCommentsFromInboxCommand:xh(zq),getDownloadActionCommand:xh(yf),getFlowCommand:fz(Nk),getKidsBlocklistPickerCommand:xh(qn),getNotificationMenuEndpoint:xh(Ffo),
getPaymentInstrumentsParamsCommand:xh(f4V),getPaymentsClientTokenCommand:fz(QJ),getPdgBuyFlowCommand:xh(D$),getReportFormEndpoint:xh(sg),getSearchInVideoCommand:xh(vg),getAnswerCommand:xh(Ug),getSurveyCommand:xh(GV),getTranscriptEndpoint:xh(zrg),getPostVideoPreviewEndpoint:xh(TZ),decorateMessageEndpoint:xh(av),likeEndpoint:xh(AA),liveChatActionEndpoint:xh(ap),liveChatEndpoint:xh(K6),liveChatItemContextMenuEndpoint:xh(Eg),liveChatPurchaseMessageEndpoint:xh(Tq),liveChatReplayEndpoint:xh(t5),manageLiveChatUserEndpoint:xh(g2),
metadataUpdateCommand:xh(FD),moderateLiveChatEndpoint:xh(XD),modifyChannelNotificationPreferenceEndpoint:xh(x0),notificationOptOutEndpoint:xh(f6),openSuperStickerBuyFlowCommand:xh(L6),performCommentActionEndpoint:xh(p_),playlistEditEndpoint:xh(jn),playlistEditorEndpoint:xh(Nn),recordNotificationInteractionsEndpoint:xh(C6),reelWatchEndpoint:xh(Vf),refreshPanelEndpoint:xh(A5),removeUpcomingEventReminderEndpoint:xh(Pg),resolveLocationCommand:xh(n6),revealBusinessEmailCommand:xh(Iv),searchEndpoint:xh(_.pMN),
sendLiveChatMessageEndpoint:xh(Ip),sendLiveChatVoteEndpoint:xh(k0),setSettingEndpoint:xh(ov),shareEntityServiceEndpoint:fz(wn),sharingProviderDataCommand:xh(Y9),showEngagementPanelEndpoint:xh(op),showMoreDrawerCommand:xh(Rp),showSheetCommand:xh(w2),showDialogCommand:xh(ix),subscribeEndpoint:xh(iH),transcriptSubmitCaptionCorrectionCommand:xh(OJ),undoFeedbackEndpoint:xh(bH),unsubscribeEndpoint:xh(Rv),updateBackstagePostEndpoint:xh(gn),updateCommentEndpoint:xh(f_),updateCommentReplyEndpoint:xh(xe),updateCommentsSettingsEndpoint:xh(C_),
updateCreatorChannelInnertubeCommand:xh(n_),updateKidsBlacklistEndpoint:xh(cg),updateEngagementPanelContentCommand:xh(Z$),updatePdgFeatureEnablementCommand:xh(h5),updatedMetadataEndpoint:xh(p6),validateChannelHandleCommand:xh(F$),updateChannelPageSettingsEndpoint:xh(ke),verifyAgeEndpoint:xh(Ss),watchEndpoint:fz(QL),whitelistEditEndpoint:xh(mAy),ypcCancelRecurrenceEndpoint:xh(ML),ypcCompleteTransactionEndpoint:xh(Wfy),ypcFixInstrumentEndpoint:xh(HS),ypcGetCartEndpoint:xh(rPg),ypcGetOffersEndpoint:xh(xAB),
ypcHandleTransactionEndpoint:fz(EJ),ypcLogWalletAnalyticDataEndpoint:xh(CIb),ypcOffersEndpoint:xh(yP9),ypcPauseSubscriptionCommand:xh(erN),ypcRedeemCodeEndpoint:xh(APV),ypcResumeSubscriptionCommand:xh(oHb),ypcUpdateFopEndpoint:xh(HS)},yJ={},zZ9=(yJ.GET_ACCOUNT_MENU=xh(Gq),yJ.GET_NOTIFICATIONS_MENU=xh(nHN),yJ.GET_NOTIFICATIONS_INBOX=xh(m6),yJ.GET_UNSEEN_NOTIFICATION_COUNT=xh(r2),yJ.GET_USER_MENTION_SUGGESTIONS=xh(L_),yJ.LOAD_GUIDE=xh(km9),yJ.SUBMIT_FEEDBACK=xh(dn),yJ),ee={},mC9=(ee.CONTINUATION_REQUEST_TYPE_BROWSE=
xh(X$),ee.CONTINUATION_REQUEST_TYPE_SEARCH=xh(J5),ee.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=xh(uU),ee.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=xh(lH),ee.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=xh(mC),ee.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=xh(zZ),ee.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=xh(Bg),ee.CONTINUATION_REQUEST_TYPE_GET_PANEL=xh(en),ee),WTg={player:fz(QL),watchNext:xh(Gz)},rNN={player:fz(QL),reelItemWatch:xh(Vf),reelWatchSequence:xh(lx)},xCN={watchEndpoint:fz(Mk)},faB=
{commandEndpointMap:pjb,signalEndpointMap:zZ9,continuationEndpointMap:mC9,watchEndpointMap:WTg,reelWatchEndpointMap:rNN,streamingEndpointMap:xCN};var CBy,yNS,eZx;_.ANo=((yNS=(CBy=window).matchMedia)==null?void 0:(eZx=yNS.call(CBy,"(prefers-reduced-motion: reduce)"))==null?void 0:eZx.matches)||!document.startViewTransition;var oqN={},iqx={disableAllTransitions:_.ANo,ignoredErrors:(oqN.DOCUMENT_HIDDEN=!0,oqN.WINDOW_SIZE_CHANGED=!0,oqN.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,oqN),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var RZg=_.hV("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),Zqy=function(Y){var G=this;this.viewTransitionCoordinator=
Y;this.disableTransitionsForUltraHigh=_.F("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=wjj();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.Yg("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.F("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.F("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.F("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.Yg("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.F("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.AN.addJob(function(){G.registerRootElement();if(G.isAnyTransitionEnabled){var u=
_.Jy("web_page_transition_exit_ms"),O=_.Jy("web_page_transition_wait_ms"),Q=_.Jy("web_page_transition_enter_fast_ms"),M=_.Jy("web_page_transition_watch_exit_ms"),t=_.Jy("web_page_transition_watch_wait_ms"),K=_.Jy("web_page_transition_watch_enter_ms"),L=_.Jy("web_page_transition_watch_next_exit_ms"),g=_.Jy("web_page_transition_watch_next_wait_ms"),P=_.Jy("web_page_transition_watch_next_enter_fast_ms"),I=_.Jy("web_page_transition_enter_ms"),k=_.Jy("web_page_transition_watch_next_enter_ms");G.enableFasterTransitions&&
G.isUltraHighBucketDevice&&(I=Q,k=P);isNaN(u)&&isNaN(O)&&isNaN(I)&&isNaN(M)&&isNaN(t)&&isNaN(K)&&isNaN(L)&&isNaN(g)&&isNaN(k)||!(u=uij(RZg,u,O,I,M,t,K,L,g,k))||(O=document.createElement("style"),O.textContent=RHY(u),document.head.appendChild(O))}},8)},wjj=function(){var Y=_.OI.navigator.deviceMemory;
return Y>=8||Y===void 0?!0:!1};
Zqy.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var Y={};this.viewTransitionCoordinator.registerElement(document.documentElement,(Y.slide="root-slide",Y["lockup-to-watch"]="root-lockup-to-watch",Y["learning-journey"]="root-learning-journey",Y))}};
_.hu4=function(Y,G){Y.isLockupToWatchTransitionEnabled&&Y.isLockupThumbnailRegistrationEnabled&&(Y.registeredLockupThumbnail?Y.lockupThumbnailRegisteredFromWatchEndpoint?_.R0(new _.I2("Lockup thumbnail registration order is incorrect.")):_.R0(new _.I2("Lockup thumbnail already registered.")):(Y.registeredLockupThumbnail=G,_.DCg(Y,G)))};
_.DCg=function(Y,G){var u={};Y.viewTransitionCoordinator.registerElement(G,(u["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",u),!0)};
Zqy[c4]=[zPS];var O1U={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData: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 MT_=["videoPrimaryInfoRenderer","title"],H1X=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var hZb;hZb=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.dCo=_.D(function(Y){Y=_.bM(Y,{data:void 0,playlistData:void 0,expanded:!1,isReadyToResume:!1});var G=Y.data,u=Y.playlistData,O=Y.expanded,Q=Y.onExpandClick,M=Y.isReadyToResume,t=function(){var P;return!((P=u())==null||!P.contents)},K=function(){var P=u();
return P&&P.totalVideos&&P.currentIndex!==void 0?P.currentIndex+1+" / "+P.totalVideos:""};
Y=_.U3(function(){_.AF(_.sH().resolve(_.yo));return!1});
var L=_.U3(function(P){t()&&Q&&Q(P)}),g={};
return _.T("ytd-miniplayer-info-bar",{class:_.s3("ytdMiniplayerInfoBarHost",(g.ytdMiniplayerInfoBarHasPlaylistData=t,g)),"on:click":L},_.T("div",{class:"ytdMiniplayerInfoBarContent"},_.T("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":Y},_.T(_.eO,{text:function(){var P=G();var I=u();if(I==null?0:I.contents){var k;P=(k=_.U8u(I))==null?void 0:k.title}else P=P==null?void 0:P.miniplayerTitle;return tT4(P)},
noEndpoints:!0,ellipsisTruncate:!0})),_.T("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.T(_.X,{cond:M,then:function(){return _.T(LM4,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:hZb})}}),_.T("h1",null,_.T(_.eO,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var P=G();var I=u();P=M()?{simpleText:_.Q6("CONTINUE_WATCHING",void 0,"Continue watching")}:(I==null?0:I.contents)?I.titleText:P==null?void 0:P.miniplayerSubtitle;return tT4(P)},
noEndpoints:!0,ellipsisTruncate:!0})),_.T(_.X,{cond:function(){return!!K()&&!M()},
then:function(){return _.T("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.T("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.T("span",null,K))}}))),_.T(_.X,{cond:t,
then:function(){return _.T("div",{class:"ytdMiniplayerInfoBarExpand"},_.T(_.BZ,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",ariaExpanded:O(),onTap:function(P){Q&&(Q(P),P.stopPropagation())}}},
iconName:function(){return O()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Kg");var bqS;bqS=_.D(function(Y){return _.T("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.T(_.BZ,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:Y.onTap}},
iconName:"yt-icons:close"}))},"Lg");
_.S0w=_.D(function(Y){Y=_.bM(Y,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var G=Y.size,u=Y.playabilityStatus,O=Y.isDisabled,Q=Y.isPictureInPicture,M=_.CH("div");Y=_.E(_.IE(void 0,void 0,"w4RAU"));var t=Y.next().value,K=Y.next().value;Y=_.Hx(_.qv);var L=!1,g=function(){return G().height<=0};
_.RE(function(){var n=G(),p=g(),W=t();W&&!p&&W.setInternalSize(n.width,n.height)},"BHFc2b");
_.o1(function(){var n,p,W;return _.a(function(C){if(C.nextAddress==1){n=_.sH().resolve(_.yo);p=n.getPlayerElement();if(!n.isMiniplayerActive()||!p||!M.value)return C.return();p.appendTo(M.value);return C.yield(p.getPlayerPromise(),2)}W=C.yieldResult;Q()||W.setSizeStyle(!1,!0);K(W);_.Sd(C)})});
_.w_(function(){P()});
_.RE(function(){var n=t();if(n)if(O()){var p=n.getPlayerState();(L=p===-1||p===1||p===3)&&n.pauseVideo()}else P()},"Invykd");
var P=function(){if(L){L=!1;var n;(n=t())==null||n.playVideo()}},I=_.U3(function(){_.AF(_.sH().resolve(_.yo))}),k={};
return _.T("ytd-miniplayer-player-container",{class:_.s3("ytdMiniplayerPlayerContainerHost",(k.ytdMiniplayerPlayerContainerHidden=g,k.ytdMiniplayerPlayerContainerHostShortsPip=Y,k)),style:_.Yh({width:function(){return G().width+"px"},
height:function(){return G().height+"px"}})},_.T("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:M}),_.T(_.X,{cond:function(){return!!u()&&!_.X5t(u())},
then:function(){return _.T(Vdx,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var n;return((n=u())==null?void 0:n.errorScreen)||null},
status:function(){var n;return((n=u())==null?void 0:n.status)||null}})}}),_.T(_.X,{cond:O,
then:function(){return _.T("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":I},_.T(bqS,{onTap:function(){_.sH().resolve(_.yo).close()}}))}}))},"Pg");var naI;var zAk=null;var jw9=_.D(function(Y){var G=Y.progressState;var u=Y.multiMarkersPlayerBarRenderer;var O=Y.progressBarWidth;var Q=function(){return xjI(u())},M=function(){return yYV(G())},t=function(){return O()*(G().playedTime/G().videoDuration)};
return _.T("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.T(_.rc,{each:Q},function(K,L){return _.T(Noo,{modifiedProps:M,chapters:Q,index:L,playedProgressWidth:t,backgroundGradientPosition:function(){var g=M(),P=Q(),I=L(),k=t();return(g.playedTime-xM(_.z(P[I],rV)))/g.playedTime*k}})}))},"Qg"),Noo=_.D(function(Y){var G=Y.modifiedProps;
var u=Y.chapters;var O=Y.index;var Q=Y.playedProgressWidth;var M=Y.backgroundGradientPosition;Y={};Y=_.s3("ytChapteredProgressBarChapteredPlayerBarChapter",(Y.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return t().isScrubbing},Y.ytChapteredProgressBarHoveredMacroMarker=function(){return t().scrubberHovering},Y.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return t().videoPosition==="seen"},Y));
var t=function(){return eA1(G(),u(),O())},K=function(){var L=G();
var g=u(),P=O();if(eA1(L,g,P).videoPosition!=="active")L=0;else{var I=xM(_.z(g[P],rV));L=(L.playedTime-I)/((xM(_.z(g[P+1],rV))||L.videoDuration)-I)}return L};
return _.T("div",{class:Y,style:_.Yh({width:function(){var L=G(),g=u(),P=O(),I=_.z(g[P],rV);g=_.z(g[P+1],rV);return(g?xM(g)-xM(I):L.videoDuration-xM(I))/L.videoDuration*100+"%"},
"background-color":function(){a:{var L=t();switch(L.videoPosition){case "pending":L=L.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":L=L.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:L=""}}return L},
"background-size":function(){return(AY_(t())?Q():"")+"px"},
"background-position-x":function(){return(AY_(t())?M():"")+"px"}})},_.T("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var L=G(),g=u(),P=O();if(eA1(L,g,P).videoPosition==="seen")var I=0;else I=xM(_.z(g[P],rV)),g=xM(_.z(g[P+1],rV))||L.videoDuration,L=L.videoDuration*L.percentLoaded,I=g<=L?1:I>=L?0:(L-I)/(g-I);return"width: "+I*100+"%"}}),_.T("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Yh({width:function(){return K()*100+"%"},
"background-size":function(){return(AY_(t(),K())?Q():"")+"px"},
"background-position-x":function(){return(AY_(t(),K())?M():"")+"px"}})}))},"Rg");var VVg=function(Y,G){G=G===void 0?nM4:G;var u,O=[],Q,M=!1;return function(){var t=_.vs.apply(0,arguments);if(M&&u===this&&G(t,O))return Q;Q=Y.apply(this,t);M=!0;u=this;O=t;return Q}}(function(Y){var G=Y.heatMarkers,u=Y.minHeightDp===void 0?0:Y.minHeightDp,O=Y.maxHeightDp===void 0?60:Y.maxHeightDp;
var Q=Q===void 0?!1:Q;var M=1E3/G.length;Y=[];Y.push({x:0,y:100});for(var t=0;t<G.length;t++){var K=void 0,L=((K=_.z(G[t],e5X))==null?void 0:K.heatMarkerIntensityScoreNormalized)||0;K=(t+.5)*M;L=100-_.yW(L*100,u/321*100,O/321*100);t!==0||Q||Y.push({x:0,y:L});Y.push({x:K,y:L});t===G.length-1&&Y.push({x:1E3,y:L})}Y.push({x:1E3,y:100});G="";for(u=0;u<Y.length;u++)Q=Y[u],u===0?Q="M "+Q.x.toFixed(1)+","+Q.y.toFixed(1):(O=LqU(Y[u-1],Y[u-2],Q),M=LqU(Q,Y[u-1],Y[u+1],!0),Q=" C "+(O.x.toFixed(1)+","+O.y.toFixed(1)+
" "+M.x.toFixed(1)+","+M.y.toFixed(1)+" "+Q.x.toFixed(1)+","+Q.y.toFixed(1))),G+=Q;return G});var lay=_.D(function(Y){var G=Y.progressBarProps;var u=Y.config;var O={};Y=_.s3("ytHeatSeekerHost",(O.ytHeatSeekerHighContrast=Y.highContrast,O));var Q=function(){return gak(u().chapterData)};
return _.T("yt-progress-bar-heatseeker",{class:Y,style:function(){var M;return"height: 320px; display: "+(G().isDragging&&((M=Q())==null?0:M.heatMarkers)?"block":"none")}},_.T(_.X,{cond:Q,
then:function(M){return _.T(_.X,{cond:function(){return M().heatMarkers},
then:function(){return _.T("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.T("path",{d:function(){return VVg(M())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Sg");var Box=_.D(function(Y){var G=Y.progressBarProps;var u=Y.config;Y={};Y=_.s3("ytProgressBarLineProgressBarLine",(Y.ytProgressBarLineProgressBarLineRounded=function(){return u().rounded},Y.ytProgressBarLineProgressBarLineBottomInset=function(){return u().position===2},Y));
return _.T("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.T("div",{class:Y},_.T("div",{class:"ytProgressBarLineProgressBarBackground"}),_.T("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+G().percentLoaded*100+"%"}}),_.T("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var O=G();return"width: "+(O.videoDuration?_.yW(O.hoveredTime/O.videoDuration,0,1):0)*100+"%"}}),_.T("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+atT(G())*100+"%"}})))},"Tg");
Box.idomCompat=!0;var $CB=_.D(function(Y){var G=Y.progressBarProps;var u=Y.playheadData;var O=Y.interpolateDotPosition;var Q=Y.hidePlayhead;Y={};var M=_.s3("ytProgressBarPlayheadProgressBarPlayheadDot",(Y.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return G().isDragging},Y.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!G().isDragging&&Q()},Y));
return _.T("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Yh({"margin-left":function(){return TAV(G())*100+"%"},
transform:function(){return"translateX(-"+(O()?TAV(G())*12:6)+"px)"}})},_.T(_.X,{cond:function(){var t;
return(t=_.dB(u)())==null?void 0:t.playheadImage},
then:function(t){var K={};return _.T("div",{class:_.s3("ytProgressBarPlayheadProgressBarPlayheadCustom",(K.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return G().isDragging},K.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!G().isDragging&&Q()},K)),
style:_.Yh({"transform-origin":function(){return(O()?TAV(G())*20:10)+"px center"}})},_.T(_.RD,{data:t,
alt:"","aria-hidden":"true"}))},
else:function(){return _.T("div",{class:M,style:_.Yh({"transform-origin":function(){return(O()?TAV(G())*12:6)+"px center"}})})}}))},"Ug");
$CB.idomCompat=!0;var ol=function(Y,G,u,O,Q,M){this.getProgressBarRect=Y;this.updateProgressBarRect=G;this.getFilmstripYPosition=u;this.setFineScrubbingDraggedTime=O;this.updateFilmStripDraggedYDistance=Q;this.resetFilmStripYOffset=M;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.JR(this.onThrottledSeek,100,this)},q0x=function(Y,G,u){return function(O){Y.handleClick(O,G(),u())}},UCx=function(Y,G){return function(u){sw9(Y,
u,cNx(u),G())}},vqx=function(Y,G){return function(u){sw9(Y,u,{x:u.clientX,
y:u.clientY},G())}},YVy=function(Y,G,u){return function(O){var Q=G(),M=u();
JNN(Y,O,cNx(O),Q,M,!0);if(M.onTouchMove)M.onTouchMove(Q)}},u3N=function(Y,G,u){return function(O){G5g(Y,O,G(),u())}},OJV=function(Y,G){return function(){Y.handleMouseLeave(G())}},MK9=function(Y,G,u){return function(){var O=G(),Q=u();
Q0y(Y,O,Q);if(Q.onTouchEnd)Q.onTouchEnd(O)}},HJb=function(Y,G,u){return function(){var O=G(),Q=u();
Q0y(Y,O,Q);if(Q.onTouchEnd)Q.onTouchEnd(O)}},E7o=function(Y,G,u){return function(){Q0y(Y,G(),u())}},tKj=function(Y){return function(G){if(G.keyCode===39||G.keyCode===38){var u,O;
(u=Y())==null||(O=u.playerApi)==null||O.seekBy(5,void 0,void 0,72)}else if(G.keyCode===37||G.keyCode===40){var Q,M;(Q=Y())==null||(M=Q.playerApi)==null||M.seekBy(-5,void 0,void 0,71)}}},KmN=function(Y,G,u){return function(O){!u().disableScrubbing&&Y.startPosition&&G5g(Y,O,G(),u())}},aC9=function(Y,G,u){return function(){if(!u().disableScrubbing)if(Y.startPosition){var O=G(),Q=u();
Q0y(Y,G(),u());if(Q.onTouchEnd)Q.onTouchEnd(O)}else G().setState({isDragging:!1})}},cNx=function(Y){Y=Y.touches[0];
return{x:Y.clientX,y:Y.clientY}},G5g=function(Y,G,u,O){if(G.buttons!==1){if(G.movementX||G.movementY)G.preventDefault(),G.stopPropagation(),Y=TNo(Y,u,G.clientX),u.setState({isHovering:!0,
hoveredTime:Y*u.videoDuration})}else Lmj(u),JNN(Y,G,{x:G.clientX,y:G.clientY},u,O,!1)};
ol.prototype.handleMouseLeave=function(Y){Lmj(Y)};
var Lmj=function(Y){Y.isHovering&&Y.setState({isHovering:!1,hoveredTime:0})},sw9=function(Y,G,u,O){Y.startPosition||(Y.startPosition=u,Y.updateProgressBarRect(),Y.controlsWereVisibleBeforeDragging=O.controlsVisible,G.stopPropagation(),_.F("medium_progress_bar_modification")||G.preventDefault())},JNN=function(Y,G,u,O,Q,M){if(Y.startPosition)if(M&&Q.isInlinePlayback&&Y.startPosition&&!Y.hasDraggedTheMinimumDistance&&Math.abs(u.y-Y.startPosition.y)>Math.abs(u.x-Y.startPosition.x))Q0y(Y,O,Q);
else if(G.preventDefault(),G.stopPropagation(),O.videoDuration&&(Y.startPosition&&!Y.hasDraggedTheMinimumDistance&&(Y.hasDraggedTheMinimumDistance=Math.abs(u.x-Y.startPosition.x)>=1),Q.enableFineScrubbing&&(Y.startPosition&&(Y.isDraggedForFineScrubbing=-(u.y-Y.startPosition.y)>=60),!Y.startPosition||u.y>=Y.startPosition.y||(O.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:oaT(O.draggedTime,O,Q.chapterData)}),Y.setFineScrubbingDraggedTime(O.draggedTime),Y.updateFilmStripDraggedYDistance(Y.startPosition.y,
u.y,O))),Y.hasDraggedTheMinimumDistance)){G=TNo(Y,O,u.x);if(Y.isDraggedForFineScrubbing){var t;(t=O.playerApi)==null||t.pauseVideo();O.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:O.draggedTime,filmStripXDistance:oaT(G*O.videoDuration,O,Q.chapterData)})}Q.enableFineScrubbing&&(!Q.enableFineScrubbing||Y.getFilmstripYPosition(O)<68)||O.setState({draggedTime:G*O.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:Y.controlsWereVisibleBeforeDragging});var K;(K=
Q.cancelAutohideControlsFn)==null||K.call(Q)}},Q0y=function(Y,G,u){var O=u.enableFineScrubbing&&G.fineScrubbingActiveState!=="off";
if(G.isDragging||O){O={isDragging:!1,playedTime:G.draggedTime,controlsVisible:Y.controlsWereVisibleBeforeDragging};u.enableFineScrubbing&&G.fineScrubbingActiveState!=="on"&&(Y.resetFilmStripYOffset(),O.fineScrubbingActiveState="off");var Q=Q===void 0?zAk:Q;var M=_.FA(0);if(M&&Q){var t=Math.round(G.playedTime*1E3),K=Math.round(G.draggedTime*1E3);t>2147483647||K>2147483647||_.wS(M,Q,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(t),endMediaTimeMs:String(K),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}G.setState(O);
Y.seekThrottle.fire(G.draggedTime,G,7);_.F("mweb_new_progress_bar_play_on_seek")&&Y.resumeVideo(G);u.unmuteOnSeek&&(u=G.playerApi,G.volumeMuted&&(u==null||u.unMute()))}else G.setState({controlsVisible:!G.controlsVisible}),(M=u.triggerAutohideControlsAfterDelayFn)==null||M.call(u);Y.startPosition=null;Y.hasDraggedTheMinimumDistance=!1;Y.isDraggedForFineScrubbing=!1;Y.controlsWereVisibleBeforeDragging=!1};
ol.prototype.handleClick=function(Y,G,u){this.updateProgressBarRect();Y.stopPropagation();Y=TNo(this,G,Y.clientX)*G.videoDuration;G.setState({playedTime:Y});if(G.playerState!==2){var O;(O=u.triggerAutohideControlsAfterDelayFn)==null||O.call(u)}this.seekThrottle.fire(Y,G,7)};
var TNo=function(Y,G,u){Y=Y.getProgressBarRect(G);return _.yW(0,(u-Y.left)/Y.width,1)};
ol.prototype.resumeVideo=function(Y){if(Y.draggedTime<Y.videoDuration){var G;(G=Y.playerApi)==null||G.playVideo()}};
ol.prototype.onThrottledSeek=function(Y,G,u){if(G=G.playerApi){var O;if((O=G.getVideoData())==null?0:O.isLive)O=this.getProgressState(G),Y+=(O==null?void 0:O.seekableStart)||0;G.seekTo(Y,void 0,void 0,void 0,u)}};
ol.prototype.getProgressState=function(Y){var G=Y==null?void 0:Y.getPresentingPlayerType();return Y==null?void 0:Y.getProgressState(G)};var PjS,XYg,ICg,n7y,g7N,Fmy,pYb,zfB,m6w;PjS=_.D(function(Y){var G=Y.progressBarProps;var u=Y.config;var O=Y.progressBarWidthPx;var Q=Y.chapterData;var M=Djk(G,function(){return u().isShortsPage}),t=function(){return!G().isHovering&&!u().isShortsPage};
Y={};var K=_.s3("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(Y.ytPlayerStoryboardHostMwebShorts=function(){return u().isShortsPage&&!1},Y));
return _.T("yt-player-storyboard",null,_.T(_.X,{cond:function(){return G().isDragging||G().isHovering},
then:function(){return _.T(_.X,{cond:M,then:function(L){return _.T(_.X,{cond:t,then:function(){return _.T("div",{class:K,"aria-hidden":"true"},_.T(g7N,{props:G,config:u,isBigboard:!0,chapterData:Q}))},
else:function(){return _.T(XYg,{props:G,frame:L,config:u,progressBarWidthPx:O,chapterData:Q})}})}})}}))},"Vg");
_.k5b=_.D(function(Y){var G=Y.progressBarProps;var u=Djk(G,Y.isShortsPage);return _.T("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.T(_.X,{cond:function(){return G().isDragging||G().isHovering},
then:function(){return _.T(_.X,{cond:u,then:function(O){return _.T(ICg,{frame:O,props:G,isBigboard:!0})}})}}))},"Wg");
XYg=_.D(function(Y){var G=Y.props;var u=Y.frame;var O=Y.config;var Q=Y.progressBarWidthPx;Y=Y.chapterData;var M={};M=_.s3("ytPlayerStoryboardHost",(M.ytPlayerStoryboardHostMwebShorts=function(){return O().isShortsPage&&!1},M.ytPlayerStoryboardHostInlinePlayer=function(){return O().isInlinePlayer},M.ytPlayerStoryboardHostFadeIn=function(){return O().useFadeInAnimation},M));
return _.T("div",{class:M,"aria-hidden":"true",style:function(){var t=G(),K=i1U(u()),L=Q();t=RAE(t)/t.videoDuration;var g=L*t,P=K/2+6;K=L-(K/2+6);return"left: "+(g<=P?P/L*100:g>=K?K/L*100:t*100)+"%"}},_.T(_.X,{cond:function(){var t=G();
return!(O().isShortsPage&&t.videoDuration<15)},
then:function(){return _.T(ICg,{frame:u,props:G,isBigboard:!1})}}),_.T(g7N,{props:G,
config:O,isBigboard:!1,chapterData:Y}))},"Xg");
ICg=_.D(function(Y){var G=Y.frame;var u=Y.props;var O=Y.isBigboard;var Q=function(){var K,L;return(L=(K=u().playerApi)==null?void 0:K.getVideoContentRect())!=null?L:{width:0,height:0}},M=function(){return i1U(G())},t=function(){var K=G();
return K?K.height/K.rows:0};
Y={};Y=_.s3((Y.ytPlayerStoryboardBigboardImageWrapper=O,Y.ytPlayerStoryboardStoryboardImageWrapper=function(){return!O()},Y));
return _.T("div",{class:Y,style:function(){return"width: "+(O()?Q().width:M())+"px; height: "+(O()?Q().height:t())+"px;"}},_.T(n7y,{frame:G,
storyboardWidth:M,storyboardHeight:t,storyboardScale:function(){return(O()?Q().width:M())/M()}}))},"Yg");
n7y=_.D(function(Y){var G=Y.frame;var u=Y.storyboardWidth;var O=Y.storyboardHeight;var Q=Y.storyboardScale;var M=function(){var t=G().row,K=G().column,L=u(),g=O(),P=Q();return{left:-K*L*P,top:-t*g*P}};
return _.T("img",{src:function(){return G().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+M().left+"px; top: "+M().top+"px; width: "+G().width*Q()+"px; height: "+G().height*Q()+"px;"}})},"Zg");
g7N=_.D(function(Y){var G=Y.props;var u=Y.config;var O=Y.isBigboard;var Q=Y.chapterData;Y={};Y=_.s3("ytPlayerStoryboardMetadata",(Y.ytPlayerStoryboardMetadataBigboard=O,Y));return _.T("div",{class:Y},_.T(_.X,{cond:O,then:function(){return _.T(_.GY,null,_.T(Fmy,{props:G,config:u}),_.T(_.X,{cond:function(){a:{var M=G();var t=u(),K=Q(),L;if((t==null?0:t.activeChapter)&&((L=_.z(t==null?void 0:t.activeChapter,rV))==null?0:L.title))M=!0;else{t=_.E(XuI(K));for(t=t.next();!t.done;t=t.next()){M=(t=_.z(t.value,
ob_))&&wu_(M,t);break a}M=!1}}return M},
then:function(){return _.T(pYb,{props:G,config:u,isBigboard:!0,chapterData:Q})}}))},
else:function(){return _.T(_.GY,null,_.T(pYb,{props:G,config:u,isBigboard:!0,chapterData:Q}),_.T(Fmy,{props:G,config:u}))}}))},"$g");
Fmy=_.D(function(Y){var G=Y.props;var u=Y.config;Y={};Y=_.s3("ytPlayerStoryboardTimestamp",(Y.ytPlayerStoryboardTimestampShorts=function(){return u().isShortsPage},Y.ytPlayerStoryboardTimestampIsHovering=function(){return G().isHovering||u().isShortsPage&&!0},Y));
return _.T("div",{class:Y},_.T(_.GY,null,function(){return _.Z1I(RAE(G()))}))},"ah");
pYb=_.D(function(Y){var G=Y.props;var u=Y.config;var O=Y.isBigboard;var Q=Y.chapterData;Y={};O=_.s3("ytPlayerStoryboardTitle",(Y.ytPlayerStoryboardTitleBigboard=O,Y));return _.T("div",{class:O},_.T(_.X,{cond:function(){return!u().isShortsPage},
then:function(){return _.T(zfB,{props:G,activeChapter:function(){return u().activeChapter},
chapterData:Q})}}))},"bh");
zfB=_.D(function(Y){var G=Y.props;var u=Y.activeChapter;var O=Y.chapterData;return _.T(_.GY,null,_.T(_.rc,{each:function(){return XuI(O())},
keyBy:"INDEX"},function(Q){return _.T(_.GY,null,_.T(_.X,{cond:function(){return _.z(Q(),ob_)&&wu_(G(),_.z(Q(),ob_))},
then:function(){return _.T(m6w,{timedMarker:function(){return _.z(Q(),ob_)}})}}))}),_.T(_.X,{cond:function(){var Q;
return u()&&((Q=_.z(u(),rV))==null?void 0:Q.title)},
then:function(Q){return _.T(_.eO,{text:Q,noPreWrap:!0})}}))},"ch");
m6w=_.D(function(Y){var G=Y.timedMarker;return _.T(_.GY,null,_.T("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.T(_.GS,{icon:function(){return G().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.T(_.eO,{text:function(){return G().label},
noPreWrap:!0}))},"dh");_.Wmy=_.D(function(Y){var G=Y.progressBarProps;var u=Y.playheadData;var O=Y.config;Y=_.CH("yt-progress-bar");var Q=_.CH("div"),M=_.CH("div"),t=_.E(_.IE({width:0,left:0},void 0,"XjZjde")),K=t.next().value,L=t.next().value,g=function(){M.value&&L(M.value.getBoundingClientRect())},P=function(){K().width<=0&&g();
return K()};
_.sV("resize",g);var I=new ol(P,function(){},function(){return 0},function(){},function(){},function(){}),k=function(){return G()};
t=_.E(_.IE(!1,void 0,"uZlOJc"));var n=t.next().value,p=t.next().value;t=_.U3(function(){p(!0);O().position===2?setTimeout(function(){g()},100):g()});
var W=_.U3(function(){p(!1);OJV(I,k)()}),C=_.U3(function(hY){(O().doSeekOnClick||_.F("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&hY instanceof PointerEvent&&hY.pointerType==="mouse")&&q0x(I,k,O)(hY);
return!1}),e=_.U3(function(hY){UCx(I,k)(hY);
return!1}),w=_.U3(function(hY){vqx(I,k)(hY);
return!1}),B=_.U3(function(hY){YVy(I,k,O)(hY);
return!1}),N=_.U3(function(hY){u3N(I,k,O)(hY);
return!1}),h=_.U3(function(){MK9(I,k,O)();
return!1}),q=_.U3(function(){HJb(I,k,O)();
return!1}),U=_.U3(function(){E7o(I,k,O)();
return!1}),Mj=_.U3(function(hY){tKj(k)(hY);
return!1});
_.sV("mousemove",KmN(I,k,O));_.sV("mouseup",aC9(I,k,O));_.ii(function(){mjT(Q.value);p(!1);g();aC9(I,k,O)()});
var Xt={};Xt=_.s3("ytPlayerProgressBarHost",function(){return O().className},(Xt.ytPlayerProgressBarHostReadOnly=function(){return O().disableScrubbing},Xt.ytPlayerProgressBarHostHidden=function(){return O().hideProgressBar&&!n()},Xt.ytPlayerProgressBarHostLowerPlayer=function(){return O().position===0},Xt.ytPlayerProgressBarHostBottomEdge=function(){return O().position===1},Xt.ytPlayerProgressBarHostBottomInset=function(){return O().position===2},Xt.ytPlayerProgressBarHostCustom=function(){return O().position===
3},Xt));
var ka={},aU=_.s3("ytPlayerProgressBarBackground",(ka.ytPlayerProgressBarBackgroundHide=function(){return O().position===2&&!n()&&!G().isDragging},ka));
ka={};ka=_.s3("ytPlayerProgressBarDragContainer",(ka.ytPlayerProgressBarDragContainerBottomEdge=function(){return O().position===1},ka));
var Tg={};Tg=_.s3("ytPlayerProgressBarProgressBar",(Tg.ytPlayerProgressBarProgressBarInset=function(){return O().position===2},Tg.ytPlayerProgressBarProgressBarInsetMinimized=function(){return O().position===2&&!n()&&!G().isDragging},Tg));
var iy=function(){return Math.floor(atT(G())*100)};
return _.T("yt-progress-bar",{el:Y,class:Xt},_.T(_.X,{cond:function(){return O().position===2},
then:function(){return _.T("div",{class:aU})}}),_.T("div",{el:Q,
"on:click":C,"on:touchstart":e,"on:touchmove":B,"on:mouseenter":t,"on:mousedown":w,"on:mouseleave":W,"on:mousemove":N,"on:mouseup":q,"on:touchend":h,"on:touchcancel":U,"on:keydown":Mj,class:ka,role:"slider","aria-valuenow":iy,"aria-valuetext":function(){return iy()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return G().videoDuration},
draggable:_.F("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.Q6("SEEK_SLIDER")},_.T("div",{el:M,class:Tg},_.T(lay,{progressBarProps:G,config:O,highContrast:function(){return!!O().isInlinePlayback}}),_.T(_.X,{cond:function(){return O().chapterData&&PyX(O().chapterData)},
then:function(){return _.T(jw9,{progressState:G,multiMarkersPlayerBarRenderer:function(){return O().chapterData},
progressBarWidth:function(){return K().width}})},
else:function(){return _.T(Box,{progressBarProps:G,config:O})}}),_.T($CB,{progressBarProps:G,
playheadData:u,interpolateDotPosition:function(){return O().position!==2},
hidePlayhead:function(){return O().playheadDotBehavior===1&&!n()}}))),_.T(PjS,{progressBarProps:G,
config:function(){return{activeChapter:Cy1(G(),O().chapterData),getProgressBarWidthPx:function(){return P().width},
isShortsPage:!!O().isShortsPage,isInlinePlayer:!!O().isInlinePlayback,useFadeInAnimation:!!O().isInlinePlayback}},
progressBarWidthPx:function(){return K().width},
chapterData:function(){return O().chapterData}}))},"eh");
_.Wmy.idomCompat=!0;Object.assign({},_.ItM(),{setState:function(){},
domMeasurements:{},appApi:_.K4U(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var r1b;
_.x6w=_.D(function(){var Y,G=(Y=_.fy(hAM().playerApi))!=null?Y:void 0;Y=_.E(_.IE(!1,void 0,"Z9NQ1b"));var u=Y.next().value,O=Y.next().value;Y=_.E(_.IE(!1,void 0,"HoVJXe"));var Q=Y.next().value,M=Y.next().value;Y=_.E(_.IE(!1,void 0,"DWCY3"));var t=Y.next().value,K=Y.next().value;Y=_.E(_.IE(!1,void 0,"g4C2Zd"));var L=Y.next().value,g=Y.next().value;Y=_.E(_.IE(0,void 0,"lmVfFb"));var P=Y.next().value,I=Y.next().value;Y=_.E(_.IE(0,void 0,"mFLbzb"));var k=Y.next().value,n=Y.next().value;Y=_.E(_.IE(!1,void 0,
"hQN4Wb"));var p=Y.next().value,W=Y.next().value;Y=_.E(_.IE(0,void 0,"WWU0fb"));var C=Y.next().value,e=Y.next().value;Y=_.E(_.IE(0,void 0,"MJ7LMd"));var w=Y.next().value,B=Y.next().value;Y=_.E(_.IE("",void 0,"hnomOe"));var N=Y.next().value,h=Y.next().value;Y=_.E(_.IE(-1,void 0,"ARe3pf"));var q=Y.next().value,U=Y.next().value,Mj=_.p2(function(){var Xt={controlsVisible:u(),isOverlayHidden:Q(),shouldWaitToHideControls:t(),isDragging:L(),isHovering:p(),videoDuration:C(),playedTime:w(),videoId:N(),draggedTime:k(),
hoveredTime:P(),playerState:q()};return Object.assign({},_.ItM(),Xt,{domMeasurements:{},setState:function(ka){ka.controlsVisible!==void 0&&O(ka.controlsVisible);ka.isOverlayHidden!==void 0&&M(ka.isOverlayHidden);ka.shouldWaitToHideControls!==void 0&&K(ka.shouldWaitToHideControls);ka.isDragging!==void 0&&g(ka.isDragging);ka.isHovering!==void 0&&W(ka.isHovering);ka.draggedTime!==void 0&&n(ka.draggedTime);ka.hoveredTime!==void 0&&I(ka.hoveredTime);ka.videoDuration!==void 0&&e(ka.videoDuration);ka.playedTime!==
void 0&&B(ka.playedTime);ka.videoId!==void 0&&h(ka.videoId);ka.playerState!==void 0&&U(ka.playerState)},
appApi:_.K4U(),playerApi:G})},void 0,"Au4PIf");
_.o1(function(){G==null||G.addEventListener("onVideoProgress",puI(Mj));G==null||G.addEventListener("onVideoDataChange",F42(Mj));G==null||G.addEventListener("onStateChange",kg2(Mj))});
_.w_(function(){if(G==null?0:G.isReady())G==null||G.removeEventListener("onVideoProgress",puI(Mj)),G==null||G.removeEventListener("onVideoDataChange",F42(Mj)),G==null||G.removeEventListener("onStateChange",kg2(Mj))});
return _.T("desktop-shorts-player-controls",null,_.T(r1b,{playerControlsProps:Mj}))},"gh");
r1b=_.D(function(Y){var G=Y.playerControlsProps;return _.T("div",{class:"desktopShortsPlayerControlsHost"},_.T(_.Wmy,{progressBarProps:G,config:function(){return{isShortsPage:!0,hideProgressBar:G().videoDuration<30&&G().playerState!==2&&!G().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"hh");_.fCw=_.D(function(Y){function G(aU){aU!==0||I()?aU>50&&(I()||!n())?(k(!1),p(!0)):aU<=50&&(I()||n())&&(k(!1),p(!1)):k(!0)}
function u(aU,Tg){var iy,hY;return _.a(function(dA){if(dA.nextAddress==1)return _.F("player_controls_volume_controls_use_player_props")?(iy=Y.playerApi(),dA.jumpTo(2)):dA.yield(_.Uj(),3);dA.nextAddress!=2&&(iy=dA.yieldResult);hY=iy;Tg&&hY?(hY.unMute(!0),aU&&(Cy(aU,hY.getVolume()),C(hY.getVolume()))):hY&&(hY.mute(!0),aU&&Cy(aU,0));_.Sd(dA)})}
function O(aU){var Tg,iy,hY;return _.a(function(dA){if(dA.nextAddress==1)return _.F("player_controls_volume_controls_use_player_props")?(Tg=Y.playerApi(),dA.jumpTo(2)):dA.yield(_.Uj(),3);dA.nextAddress!=2&&(Tg=dA.yieldResult);iy=Tg;hY=50;iy&&(hY=iy.getVolume(),iy.isMuted()?Cy(aU,0):Cy(aU,hY));C(hY);_.Sd(dA)})}
var Q=_.CH("volume-controls"),M=_.CH("button"),t=_.yg("input"),K=_.E(_.IE(!1,void 0,"fLGgJf")),L=K.next().value,g=K.next().value,P=_.E(_.IE(!1,void 0,"Xt2eee"));K=P.next().value;P=P.next().value;var I=K,k=P;P=_.E(_.IE(!0,void 0,"elP6bd"));K=P.next().value;P=P.next().value;var n=K,p=P;K=_.E(_.IE(50,void 0,"A8a4Tb"));var W=K.next().value,C=K.next().value;K=_.p2(function(){var aU=I();return _.F("web_shorts_keyboard_enable_mute_shortcut")?aU?_.Q6("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.Q6("PLAYER_LABEL_MUTE",
void 0,"Mute (m)"):aU?_.Q6("UNMUTE_VOLUME",void 0,"Unmute"):_.Q6("MUTE_VOLUME",void 0,"Mute")},void 0,"hDaVF");
P=_.p2(function(){var aU=I(),Tg=n();return{sources:[{clientResource:{imageName:aU?"VOLUME_OFF_FILLED":Tg?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lXC46");
var e=_.p2(function(){var aU=W();return I()?aU+"% volume muted":aU+"% volume"},void 0,"eTE2A"),w=_.p2(function(){return Y.orientation()==="vertical_down"},void 0,"crhgzb");
_.ii(function(){function aU(){g(!0)}
function Tg(){g(!1)}
t&&t.value&&(t.value.addEventListener("focus",aU),t.value.addEventListener("focusout",Tg),O(t.value).then(function(){G(Number(b12(t.value)))}));
M&&M.value&&(M.value.addEventListener("focus",aU),M.value.addEventListener("focusout",Tg));_.w_(function(){var iy;t==null||(iy=t.value)==null||iy.removeEventListener("focus",aU);var hY;t==null||(hY=t.value)==null||hY.removeEventListener("focusout",Tg);var dA;M==null||(dA=M.value)==null||dA.removeEventListener("focus",aU);var nT;M==null||(nT=M.value)==null||nT.removeEventListener("focusout",Tg)})});
var B=function(aU){aU=aU.muted?0:aU.volume;C(aU);G(aU);t.value&&Cy(t.value,aU)};
_.RE(function(){if(_.F("player_controls_volume_controls_use_player_props")){var aU=Y.playerApi();aU&&(aU.addEventListener("onVolumeChange",B),_.w_(function(){aU.removeEventListener("onVolumeChange",B)}))}},"hxbOCd");
var N=_.U3(function(){if(t&&t.value){var aU=Number(b12(t.value));djR(aU,_.F("player_controls_volume_controls_use_player_props")?Y.playerApi():void 0);C(aU);t.value.style.setProperty("--gradient-percent",aU+"%");G(aU)}return!1}),h=_.U3(function(){g(!0)}),q=_.U3(function(){g(!1)}),U=_.U3(function(){t&&t.value&&(u(t.value,I()),k(!I()));
return!1}),Mj={},Xt={},ka={};
return _.T("volume-controls",{class:_.s3("ytdVolumeControlsHost"),el:Q},_.T("div",{"on:pointerleave":q,class:_.s3("ytdVolumeControlsVolumeControlsContainer",(Mj.ytdVolumeControlsVolumeControlsContainerVertical=w,Mj.ytdVolumeControlsVolumeControlsContainerExpanded=function(){return L()},Mj))},_.T(_.X,{cond:function(){return!w()},
then:function(){var aU={};return _.T("div",{class:_.s3("ytdVolumeControlsBackgroundScrim",(aU.ytdVolumeControlsBackgroundScrimExpanded=L,aU))})}}),_.T("div",{class:_.s3((Xt.ytdVolumeControlsMuteIconButtonContainer=w,Xt))},_.T("button",{"aria-label":K,
title:K,el:M,"on:click":U,"on:pointerenter":h,class:"ytdVolumeControlsMuteIconButton"},P?_.T(_.RD,{data:P,alt:K,className:"ytdVolumeControlsMuteIcon"}):null)),_.T("div",{class:_.s3("ytdVolumeControlsSliderContainer",(ka.ytdVolumeControlsSliderContainerExpanded=L,ka.ytdVolumeControlsSliderContainerVertical=w,ka.ytdVolumeControlsSliderContainerVerticalDown=w,ka.ytdVolumeControlsSliderContainerVerticalExpanded=function(){return L()&&w()},ka))},_.T("input",{"aria-label":_.Q6("VOLUME"),
title:_.Q6("VOLUME"),el:t,"on:input":N,type:"range",class:"ytdVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":W,"aria-valuetext":e,"aria-valuemin":0,"aria-valuemax":100}))))},"jh");var CjV=_.D(function(Y){var G=Y.data;var u=Y.overlayDensity;Y={};return _.T("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.T(_.HE,{data:function(){return G().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(O){var Q=O.data;
return _.T(_.mb,{data:function(){return(u==null?void 0:u())===1?Object.assign({},Q(),{avatar:{avatarViewModel:Object.assign({},_.z(Q().avatar,_.WE),{avatarImageSize:"AVATAR_SIZE_M"})}}):Q()}})}}),_.T(_.HE,{data:function(){return G().avatarStackViewModel}},{avatarStackViewModel:function(O){return _.T(_.W9,{data:O.data})}}),_.T(_.eO,{className:_.s3("ytReelChannelBarViewModelChannelName",(Y.ytReelChannelBarViewModelChannelNameLarge=function(){return(u==null?void 0:u())===1},Y.ytReelChannelBarViewModelChannelNameDecluttered=
function(){return _.F("enable_shorts_declutter")},Y)),
text:function(){return G().channelName},
linkInheritColor:!0,userInput:!0}),_.T("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.T(_.HE,{data:function(){return G().subscribeButtonViewModel}},{subscribeButtonViewModel:function(O){var Q=O.data;
return _.T(_.zv,{data:function(){return(u==null?void 0:u())===1?Object.assign({},Q(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},Q().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):Q()},
isOverlay:!1})},
buttonViewModel:_.$Y})),_.T("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.T(_.HE,{data:function(){var O,Q;return(Q=_.z((O=G())==null?void 0:O.sponsorButtonViewModel,jtM))==null?void 0:Q.sponsorButton}},{buttonViewModel:function(O){return _.T(_.$Y,{data:O.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"kh");var y1g=_.D(function(Y){var G=function(){var Q;return((Q=Y.overlayDensity)==null?void 0:Q.call(Y))===1},u=function(){return G()?22:16},O={};
return _.T("yt-reel-multi-format-link-view-model",{class:_.s3("ytReelMultiFormatLinkViewModelHost",(O.ytReelMultiFormatLinkViewModelHostTall=!0,O.ytReelMultiFormatLinkViewModelHostLarge=function(){return G()},O))},_.T(_.Ny,{ariaLabel:function(){return Y.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return Y.data().command}},_.T("h3",{class:function(){return G()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.T(_.X,{cond:function(){return Y.data().icon},
then:function(Q){return _.T(_.RD,{data:Q,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:u})}}),_.T(_.eO,{text:function(){return Y.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"lh");
y1g.idomCompat=!0;var efB=_.D(function(Y){var G=Y.data;var u=Y.overlayDensity;var O=Y.extractOverlay;var Q=_.CH("yt-shorts-suggested-action-view-model");Y=_.E(_.IE(!1,void 0,"cmyYgf"));var M=Y.next().value,t=Y.next().value;Y=_.E(_.IE(!1,void 0,"qY6byb"));var K=Y.next().value,L=Y.next().value,g=function(){return G().isMultiLineSa},P=_.Oe(jpY,function(){var ka,aU;
return(aU=(ka=G().toggleableContent)==null?void 0:ka.entityKey)!=null?aU:""}),I=function(){var ka,aU,Tg;
return(Tg=G().toggleableContent)!=null&&Tg.entityKey?(aU=(ka=P())==null?void 0:ka.value)!=null?aU:!1:!1},k=function(){var ka,aU,Tg,iy,hY,dA,nT,u_,jT,P1,kk;
return G().toggleableContent?I()?(ka=G().toggleableContent)==null?void 0:ka.toggledData:(aU=G().toggleableContent)==null?void 0:aU.untoggledData:{primaryText:(u_=(Tg=G().defaultContent)==null?void 0:Tg.primaryText)!=null?u_:G().text,secondaryText:(iy=G().defaultContent)==null?void 0:iy.secondaryText,onTapCommand:(jT=(hY=G().defaultContent)==null?void 0:hY.onTapCommand)!=null?jT:G().onTapCommand,icon:(P1=(dA=G().defaultContent)==null?void 0:dA.icon)!=null?P1:G().icon,image:(kk=(nT=G().defaultContent)==
null?void 0:nT.image)!=null?kk:G().image}},n=function(){return g()?G().trailingTapTarget:void 0},p=function(ka,aU){return function(){return M()?aU:ka}},W=function(ka){return function(){return _.F("enable_shorts_declutter")?ka()+"Decluttered":""}},C=function(){return{leadingSection:p("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(u==null?void 0:u())===1?p("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):p("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:p("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:p("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:p("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon"),leadingImage:p("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingImage","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingImage")}};
Y={};Y=_.s3((Y.ytShortsSuggestedActionViewModelStaticHost=function(){return!g()},Y.ytShortsSuggestedActionViewModelDynamicHost=g,Y.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return g()&&K()},Y.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return g()&&!K()},Y.ytShortsSuggestedActionViewModelExtractOverlay=function(){return O==null?void 0:O()},Y));
_.ii(function(){if(g()){var ka=0,aU;if((aU=G().animationParams)==null?0:aU.shouldExpand){var Tg,iy;ka=((iy=(Tg=G().animationParams)==null?void 0:Tg.expansionDelaySecs)!=null?iy:0)*1E3}var hY,dA=((hY=G().animationParams)==null?0:hY.shouldExpand)?setTimeout(function(){t(!0)},ka):void 0,nT,u_;
ka=((nT=G().animationParams)==null?0:nT.visibilityDelaySecs)?((u_=G().animationParams)==null?NaN:u_.visibilityDelaySecs)*1E3:0;var jT=setTimeout(function(){L(!0)},ka);
_.w_(function(){dA&&clearTimeout(dA);clearTimeout(jT)})}});
var e=function(ka){_.W3(ka,Object.assign({},{form:{element:Q.value}}))},w=_.U3(function(){var ka,aU=(ka=k())==null?void 0:ka.onTapCommand;
aU&&e(aU)}),B=_.U3(function(){var ka,aU;
if(ka=(aU=n())==null?void 0:aU.onTapCommand)return e(ka),!1}),N=_.F("enable_shorts_declutter")?_.Yh({height:function(){return n()?"40px":M()?"44px":"32px"},
padding:"0px","padding-inline-end":function(){return n()?"8px":"16px"}}):_.Yh({}),h=_.Yh({"vertical-align":"bottom",
"border-radius":function(){var ka;return g()?((ka=G().defaultContent)==null?0:ka.isCircleImage)?"50%":"4px":"0px"},
width:function(){var ka,aU,Tg;return g()&&((ka=G().defaultContent)==null?0:ka.imageSize)&&!_.F("enable_shorts_declutter")?((Tg=(aU=G().defaultContent)==null?void 0:aU.imageSize)!=null?Tg:24)+"px":null},
height:function(){var ka,aU,Tg;return g()&&((ka=G().defaultContent)==null?0:ka.imageSize)&&!_.F("enable_shorts_declutter")?((Tg=(aU=G().defaultContent)==null?void 0:aU.imageSize)!=null?Tg:24)+"px":null}}),q=function(){return g()?C().leadingIcon():"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"},U=function(){return g()?C().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"},Mj=function(){return g()?C().leadingImage():"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
Xt={};
return _.T("yt-shorts-suggested-action-view-model",{class:Y,el:Q},_.T("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.T("button",{class:_.s3(function(){return g()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var ka;
return(ka=G().useFullRoundedBorder)!=null&&ka?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!n()&&g()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":g()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var ka;
return(ka=G().disableFixedHeight)!=null&&ka?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(Xt.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(u==null?void 0:u())===1},Xt.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return O==null?void 0:O()},Xt)),
"on:click":w,style:N},_.T(_.jO,{model:{color:4}}),_.T("div",{class:_.s3(function(){return U()+" "+W(U)()})},_.T(_.X,{cond:function(){var ka;
return(ka=k())==null?void 0:ka.image},
then:function(ka){return _.T(_.RD,{data:ka,alt:"",className:function(){return Mj()+" "+W(Mj)()},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:h})}}),_.T(_.X,{cond:function(){var ka,aU;
return(ka=k())==null?void 0:(aU=ka.icon)==null?void 0:aU.iconType},
then:function(ka){return _.T(_.GS,{icon:ka,active:I,className:function(){return q()+" "+W(q)()}})}})),_.T("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection "+W(function(){return"ytShortsSuggestedActionViewModelStaticHostTextSection"})()},_.T(_.X,{cond:function(){var ka;
return(ka=k())==null?void 0:ka.primaryText},
then:function(ka){var aU={};return _.T("div",{class:_.s3("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(aU.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(u==null?void 0:u())===1},aU))},_.T(_.eO,{text:ka}))}}),_.T(_.X,{cond:function(){var ka;
return(ka=k())==null?void 0:ka.secondaryText},
then:function(ka){return _.T("div",{class:function(){return C().secondaryText()}},_.T(_.eO,{text:ka}))}}))),_.T(_.X,{cond:n,
then:function(ka){return _.T("div",{class:_.s3(function(){return C().trailingSection()+" "+W(C().trailingSection)()},function(){var aU,Tg;
return(O==null?void 0:O())&&((Tg=(aU=C()).trailingSectionExtractOverlay)==null?void 0:Tg.call(aU))||""}),
"aria-label":function(){var aU;return(aU=ka().a11yLabel)!=null?aU:""},
"on:click":B,role:"button",tabindex:0},_.T(_.jO,{model:{color:4}}),_.T(_.GS,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"mh");var A1N=_.D(function(Y){var G=Y.data;var u=Y.overlayDensity;var O=_.CH("yt-shorts-video-title-view-model");Y=_.U3(function(t){if(_.nK(_.kC(t),O.value,["A".toString()]))return!1;(t=G().truncatedTextOnTapCommand)&&_.W3(t);return!1});
var Q={},M={};return _.T("yt-shorts-video-title-view-model",{el:O,class:_.s3("ytShortsVideoTitleViewModelHost",(Q.ytShortsVideoTitleViewModelHostClickable=function(){return!!G().truncatedTextOnTapCommand},Q)),
"on:click":Y},_.T("h2",{class:_.s3("ytShortsVideoTitleViewModelShortsVideoTitle",(M.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(u==null?void 0:u())===1},M.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.F("enable_shorts_declutter")},M.ytShortsVideoTitleViewModelShortsVideoTitleDecluttered=function(){return _.F("enable_desktop_small_title_on_immersive_shorts")},M))},_.T(_.eO,{text:function(){return G().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(u==null?void 0:u())===1}})))},"nh");_.o7g=_.D(function(Y){var G=Y.data;var u=Y.overlayDensity;var O=Y.extractOverlay;var Q=function(){return(u==null?void 0:u())===1},M=function(){return _.F("enable_shorts_declutter")?"ytReelMetapanelViewModelMetapanelItemDecluttered":"ytReelMetapanelViewModelMetapanelItem"},t=function(){return _.F("enable_shorts_declutter")?"ytReelMetapanelViewModelExpansiveDecluttered":"ytReelMetapanelViewModelExpansiveBlock"};
return _.T("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.T(_.HE,{data:function(){return G().metadataItems}},{badgeViewModel:function(K){K=K.data;
return _.T("div",{class:_.s3(function(){return Q()?t():M()})},_.T(_.b2,{data:K}))},
playerDisclosureViewModel:function(K){K=K.data;return _.T("div",{class:_.s3(function(){return Q()?t():M()})},_.T(_.Upb,{data:K,
extractOverlay:O}))},
shortsSuggestedActionViewModel:function(K){K=K.data;return _.T("div",{class:_.s3(function(){return Q()?t():M()})},_.T(efB,{data:K,
overlayDensity:u,extractOverlay:O}))},
reelChannelBarViewModel:function(K){K=K.data;var L={};return _.T("div",{class:_.s3(M(),(L.ytReelMetapanelViewModelExpansive=function(){return Q()&&!_.F("enable_shorts_declutter")},L.ytReelMetapanelViewModelExpansiveDecluttered=function(){return Q()&&_.F("enable_shorts_declutter")},L))},_.T(CjV,{data:K,
overlayDensity:u}))},
reelMultiFormatLinkViewModel:function(K){K=K.data;var L={};return _.T("div",{class:_.s3(M(),(L.ytReelMetapanelViewModelExpansive=function(){return Q()&&!_.F("enable_shorts_declutter")},L.ytReelMetapanelViewModelExpansiveDecluttered=function(){return Q()&&_.F("enable_shorts_declutter")},L))},_.T(y1g,{data:K,
overlayDensity:u}))},
shortsVideoTitleViewModel:function(K){K=K.data;var L={};return _.T("div",{class:_.s3(M(),(L.ytReelMetapanelViewModelExpansive=function(){return Q()&&!_.F("enable_shorts_declutter")},L.ytReelMetapanelViewModelExpansiveDecluttered=function(){return Q()&&_.F("enable_shorts_declutter")},L))},_.T(A1N,{data:K,
overlayDensity:u}))},
reelSoundMetadataViewModel:function(K){K=K.data;var L={};return _.T("div",{class:_.s3(M(),(L.ytReelMetapanelViewModelExpansive=function(){return Q()&&!_.F("enable_shorts_declutter")},L.ytReelMetapanelViewModelExpansiveDecluttered=function(){return Q()&&_.F("enable_shorts_declutter")},L))},_.T(_.yyN,{data:K,
overlayDensity:u}))},
toggleButtonViewModel:function(K){K=K.data;var L={};return _.T("div",{class:_.s3(M(),(L.ytReelMetapanelViewModelExpansive=function(){return Q()&&!_.F("enable_shorts_declutter")},L.ytReelMetapanelViewModelExpansiveDecluttered=function(){return Q()&&_.F("enable_shorts_declutter")},L))},_.T(_.Tr,{data:K}))}}))},"oh");var iJo=_.D(function(Y){var G=_.bM(Y,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),u=G.size,O=G.onTap,Q=G.disabled,M=G.tooltipText;return _.T("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.T(_.BZ,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:u(),disabled:Q(),tooltipText:M(),onTap:O}},
iconName:Y.iconType}))},"ph"),Rfo=_.D(function(Y){function G(k){k.stopPropagation();
k.code==="ArrowUp"?(k.preventDefault(),VTX(K.value)):k.code==="ArrowDown"?(k.preventDefault(),lt2(K.value)):k.code==="KeyM"?SI1():(k.code==="KeyK"||k.code==="Space")&&NAk(L())}
var u=_.bM(Y,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});Y=u.previousButtonDisabled;var O=u.nextButtonDisabled,Q=u.data,M=u.playabilityStatus,t=u.previewThumbnail,K=_.CH("ytd-shorts-miniplayer-overlay"),L=_.Hx(_.R6y),g=_.E(_.IE(null,void 0,"bUc1Pb"));u=g.next().value;var P=g.next().value,I;_.o1(function(){_.Uj().then(function(k){P(k)});
(I=_.nm(K.value))&&I.addEventListener("keydown",G)});
_.w_(function(){var k;(k=I)==null||k.removeEventListener("keydown",G)});
g=function(){var k,n;var p=_.z((k=Q())==null?void 0:(n=k.reelPlayerOverlayRenderer)==null?void 0:n.buttonBar,dHI);if(p){var W;k=Object.assign({},p,{buttonViewModels:(W=p.buttonViewModels)==null?void 0:W.filter(jUR)})}else k=void 0;return k};
return _.T("ytd-shorts-miniplayer-overlay",{el:K,class:"ytdShortsMiniplayerOverlayHost"},_.T("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Yh({"background-image":function(){var k=t();return k?'url("'+_.bq(k.thumbnails)+'")':""}})}),_.T("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.T("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.T(iJo,{iconType:function(){var k=L();
return k===2||k===-1||k===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){NAk(L())},
tooltipText:function(){var k=L();return k===1||k===3?_.Q6("PLAYER_LABEL_PAUSE"):_.Q6("PLAYER_LABEL_PLAY")}}),_.T(_.fCw,{orientation:"horizontal_right",
playerApi:u})),_.T("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.T(iJo,{iconType:"YOUTUBE_SHORTS_ARROW_UP",disabled:Y,onTap:function(){VTX(K.value)},
tooltipText:_.Q6("PREVIOUS_VIDEO_LABEL")}),_.T(iJo,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:O,onTap:function(){lt2(K.value)},
tooltipText:_.Q6("NEXT_VIDEO_LABEL")}),_.F("web_shorts_pip_like_button")?_.T(_.X,{cond:g,then:function(k){return _.T("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.T(_.VH_,{data:k,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.T("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.T(_.X,{cond:function(){var k,n;
return _.z((k=Q())==null?void 0:(n=k.reelPlayerOverlayRenderer)==null?void 0:n.metapanel,bZ4)},
then:function(k){return _.T("div",{class:_.s3("ytdShortsMiniplayerOverlayInteractive")},_.T(_.o7g,{data:k}))}})),_.T("div",{class:_.s3("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var k;return!((k=Q())==null||!k.adsOverlay)||M()&&!gnu(M())}},_.T("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.T(_.x6w,null)))),_.T(_.X,{cond:function(){var k=Q(),n,p;
k=_.z(k==null?void 0:(n=k.adsOverlay)==null?void 0:(p=n.fulfillmentContent)==null?void 0:p.fulfilledLayout,II2);return _.z(k==null?void 0:k.renderingContent,maR)},
then:function(k){return _.T("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.T(cII,{data:k}))}}))},"rh");var BAR=_.D(function(){var Y=_.E(_.IE(new _.oB(NaN,NaN),void 0,"ejTaF")),G=Y.next().value,u=Y.next().value;Y=_.E(_.IE(!1,void 0,"aTA69e"));var O=Y.next().value,Q=Y.next().value,M=_.E(_.IE(!1,void 0,"OsC2Ib"));Y=M.next().value;var t=M.next().value;M=_.sH().resolve(_.yo).miniplayerPropSignalMap[0];var K=M.data,L=M.shortsData,g=M.nextButtonDisabled,P=M.shortsPreviewThumbnail,I=M.previousButtonDisabled,k=M.externalPlaylistData,n=M.playabilityStatus,p=M.isDisabled,W=M.playerVe,C=M.closeVe;M=_.Hx(_.qv);
_.lj("yt-pip-window-resized",function(N){u(N)});
_.lj("yt-activate-pip-miniplayer",function(){return _.a(function(N){t(!0);_.Sd(N)})});
var e=function(){var N;return!((N=k())==null||!N.contents)&&O()},w=function(){var N=G(),h=!!K(),q=e();
N=N.clone();h&&(N.height-=76);q&&(N.height-=285);return N},B=function(){Q(!O())};
_.RE(function(){var N=W(),h=_.FA(11),q=_.nX(11);h&&q&&N&&(_.y6(h,q,N),q=C())&&(_.ey(h,N,[q]),_.oK(h,[q]))},"h5qKie");
return _.T("ytd-pip-container",{class:"ytdPipContainerHost"},_.T(_.X,{cond:Y,then:function(){return _.T(_.S0w,{isDisabled:p,playabilityStatus:n,size:w,isPictureInPicture:!0})}}),_.T(_.X,{cond:K,
then:function(){return _.T(_.dCo,{data:K,expanded:O,onExpandClick:B,playlistData:k})}}),_.T(_.X,{cond:e,
then:function(){return _.T("div",{class:"ytdPipContainerPlaylistPanel"},_.T(_.mKj,{data:k,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.T(_.X,{cond:M,
then:function(){return _.T(Rfo,{data:L,nextButtonDisabled:g,previousButtonDisabled:I,playabilityStatus:n,previewThumbnail:P})}}))},"th");var iV=function(Y,G,u){var O=this;this.pipController=Y;this.JSC$19397_clientRoot=G;this.JSC$19397_pageRequestService=u;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=QU1();this.JSC$19397_watchPipEnabled=_.F("web_watch_pip");this.watchPipManualOnlyEnabled=_.F("web_watch_pip_manual");this.shortsPipEnabled=_.F("web_shorts_pip");this.shortsPipManualOnlyEnabled=_.F("web_shorts_pip_manual");this.JSC$19397_watchWhileEnabled=_.F("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;_.Eh(_.Zs(),ysy,function(Q){O.isSingleOptionSurveyActive=Q});
this.JSC$19397_onPlayerPlayVideo=this.JSC$19397_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);_.jK(_.N6.getInstance(),this.miniplayerServiceActionMap,this.JSC$19397_clientRoot);Y.pictureInPictureSupported()&&_.eK("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Pel,VKb,bJ9,lCS,b4T,BNx,$6g,qVb,NNw;
iV.prototype.handleMediaSessionPipActivation=function(Y){var G=this,u,O,Q;return _.a(function(M){_.Qq().mediaSessionPipActivation=!0;u=_.sH().resolve(_.bv);if(u.isOnWatch()&&G.JSC$19397_watchPipEnabled){if(G.watchPipManualOnlyEnabled&&((O=Y)==null?void 0:O.enterPictureInPictureReason)!=="useraction")return ME(),M.return();_.Qq().watchPipActivation=!0;_.wYb(G,u.data);return M.jumpTo(0)}if(u.isOnShorts()&&G.shortsPipEnabled){if(G.shortsPipManualOnlyEnabled&&((Q=Y)==null?void 0:Q.enterPictureInPictureReason)!==
"useraction")return ME(),M.return();_.Qq().shortsPipActivation=!0;_.ZJ9(G);return M.jumpTo(0)}return!G.isMiniplayerActive()||!G.JSC$19397_watchPipEnabled||G.watchWhileMode||G.watchPipManualOnlyEnabled?M.jumpTo(0):M.yield(D6N(G),0)})};
var D6N=function(Y){var G,u,O,Q;return _.a(function(M){if(M.nextAddress==1)return G=!Y.miniplayerToPipMode,u=Y.playerElement,O=Y.miniplayerData,Q=Y.watchResponse,M.yield(Y.deactivate(),2);if(M.nextAddress!=3)return G?(_.Qq().mediaSessionPipActivation=!0,_.Qq().watchPipActivation=!0):_.Qq().miniplayerButtonActivation=!0,M.yield(Y.activate(u,O,Q),3);Y.miniplayerToPipMode=G;_.Sd(M)})};
iV.prototype.onDownloadedVideoDeleted=function(Y){var G,u=_.z((G=this.miniplayerData)==null?void 0:G.watchEndpoint,_.ic),O,Q;u&&((O=this.watchResponse)==null?void 0:(Q=O.playerResponse)==null?void 0:Q.offlineState)!==void 0&&(G=u.videoId)&&Y&&G===Y&&this.close()};
iV.prototype.onShowMiniplayerCommand=function(Y){var G=this,u,O,Q,M,t,K,L,g,P,I,k;return _.a(function(n){switch(n.nextAddress){case 1:return u=_.z(Y,mE4),Q=(O=u)==null?void 0:O.miniplayerCommand,M=_.z(Q,_.ic),Q&&M&&!G.active?n.yield(_.Xu.getInstance(),2):n.return();case 2:return t=n.yieldResult,n.yield((K=t)==null?void 0:K.get("yt-miniplayer-shown-video-id"),3);case 3:L=n.yieldResult;g=M.videoId;if(!g||L===g)return n.return();P=_.sH().resolve(_.bv);if(P.isOnWatch())return _.R0(Error("Zj")),n.return();
I={channelItem:{externalId:btoa(g)}};G.readyToResumeVe=_.VZ(121253,void 0,void 0,I);_.Qq().showMiniplayerCommandActivation=!0;return n.yield(_.S8M(G,Q,!0),4);case 4:return G.active&&(_.Rl(G,{readyToResumeVe:G.readyToResumeVe,isReadyToResume:!0}),G.isReadyToResume=!0),n.yield((k=t)==null?void 0:k.set("yt-miniplayer-shown-video-id",M.videoId),5);case 5:G.readyToResumeVe=void 0,_.Sd(n)}})};
iV.prototype.init=function(Y){this.miniplayerEl?_.R0(new _.I2("MiniplayerService already initialized.")):this.miniplayerEl=Y};
iV.prototype.isInitialized=function(){var Y=!!this.miniplayerEl;Y||_.R0(new _.I2("MiniplayerService used before initialized."));return Y};
_.wYb=function(Y,G){if(Y.isInitialized()){var u=_.EaT(G.response,G.playerResponse),O=_.sH().resolve(_.bv).getPlayerFromWatch();_.Qq().currentEndpoint=u.watchEndpoint||null;Y.activate(O,u,G)}};
_.ZJ9=function(Y){if(Y.isInitialized()){var G=_.sH().resolve(_.bv).getPlayerFromShorts();Y.activate(G)}};
Pel=function(Y,G){var u;(u=!Y.isInitialized())||(u=_.sH().resolve(_.bv).isOnWatch()&&Y.watchPipMode,u=!(Y.isMiniplayerActive()&&(_.Qq().userActivation||_.Qq().lockupActivation||u)));if(u)return!1;hfo(Y,G)?_.AF(Y):b4T(Y,G);return Y.watchPipMode?!_.sH().resolve(_.bv).isOnWatch():!0};
iV.prototype.isMiniplayerActive=function(){return this.active};
var hfo=function(Y,G){var u;G=(u=_.z(G,_.ic))==null?void 0:u.videoId;var O,Q;Y=(Q=_.z((O=Y.miniplayerData)==null?void 0:O.watchEndpoint,_.ic))==null?void 0:Q.videoId;return G!=null&&G===Y};
iV.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.$s(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.qZ(this.miniplayerEl,"yt-navigate-home-action"))};
_.S8M=function(Y,G,u,O){u=u===void 0?!1:u;var Q,M,t,K;return _.a(function(L){switch(L.nextAddress){case 1:if(Y.active){L.jumpTo(2);break}Q=_.sH().resolve(_.bv);if(t=(M=Y.playerElement)!=null?M:Q.getPlayerFromWatch()){L.jumpTo(3);break}return L.yield(_.sH().resolve(_.$h),4);case 4:t=Q.getPlayerFromWatch();case 3:if(!t){_.R0(Error("ak"));L.jumpTo(2);break}return L.yield(Y.activate(t,O),2);case 2:return Y.active?L.yield(b4T(Y,G,u),7):L.return();case 7:(K=Y.getPlayerElement())==null||K.focusOnPlayer(),
_.Sd(L)}})};
iV.prototype.activate=function(Y,G,u){var O=this,Q,M,t,K,L,g,P,I,k;return _.a(function(n){switch(n.nextAddress){case 1:if(!O.isInitialized())return n.return();if(!Y)return _.R0(Error("ak")),n.return();if(_.$XV()||O.isMiniplayerActive())var p=!0;else p=_.Qq().watchPipActivation||_.Qq().watchWhileActivation,_.sH().resolve(_.bv).isOnWatch()&&!p?(_.R0(new _.I2("miniplayer activated on watch page")),p=!0):p=_.Qq().watchWhileActivation?O.userDeactivatedWatchWhile||!!document.pictureInPictureElement||BiA():
!1;if(p)return ME(),n.return();Q=_.Qq().mediaSessionPipActivation;M=_.Qq().shortsPipActivation;t=_.Qq().watchPipActivation;L=(K=_.Qq().watchWhileActivation)||t;g=t||M;if(!O.pictureInPictureEnabled()||!g){n.jumpTo(2);break}return n.yield(d6b(O,Q),3);case 3:if(!n.yieldResult)return _.R0(Error("$j")),ME(),n.return();case 2:return O.setActive(!0),O.watchResponse=u,O.playerElement=Y,O.updateMiniplayerData(G),n.yield(bJ9(O,Y),4);case 4:if(!O.active)return _.R0(new _.I2("miniplayer deactivated during activation")),
O.removePlayerListeners(),n.return();p=_.sH().resolve(_.yq);p.addEventListener("yt-navigate",_.Jh(O,O.onPlaylistNavigate));p.addEventListener("yt-playlist-data-updated",_.Jh(O,O.JSC$19397_onPlaylistDataUpdated));O.JSC$19397_onPlaylistDataUpdated();ME();O.JSC$19397_watchWhileEnabled&&_.SVN(O,K);O.pictureInPictureEnabled()&&O.shortsPipEnabled&&(O.shortsPipMode=M,_.Zs().dispatch(wWI(O.shortsPipMode)));O.pictureInPictureEnabled()&&O.JSC$19397_watchPipEnabled&&(O.watchPipMode=t,!O.JSC$19397_watchPipEnabled||
O.watchPipManualOnlyEnabled&&!_.c_u()||O.watchPipManualOnlyEnabled||_.sCt(O.handleMediaSessionPipActivation));O.player&&(P=O.player.getPlayerState(),I=P===1,_.Zs().dispatch(ld2(P)),_.sK(O.miniplayerEl,"yt-miniplayer-play-state-changed",[I]),_.Qq().isVideoPlaying=I);_.sK(O.miniplayerEl,"yt-miniplayer-endpoint-changed");NNw(O);_.j0N(O);if(O.shortsPipMode||O.watchPipMode)n=n.yield(_.qZ(O.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{p=n.yield;var W=_.qZ(O.miniplayerEl,"yt-activate-miniplayer",
[L])[0];n=p.call(n,W,6)}return n;case 6:if(O.watchResponse){p=O.getScreenLayer();W=_.FA(0);var C=Tut(0);W&&C&&(_.z1(W,C,p),p===0&&KPI(void 0,0))}VKb(O);lCS(O,!0);(k=O.getPlayerElement())==null||k.focusOnPlayer();_.Sd(n)}})};
iV.prototype.updateMiniplayerData=function(Y){this.miniplayerData=Y;_.Rl(this,{data:Y})};
_.j0N=function(Y){var G,u,O=((G=Y.miniplayerData)==null?void 0:(u=G.miniplayerRenderer)==null?void 0:u.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";G=Y.watchWhileMode||Y.watchPipMode?O&&!_.sH().resolve(_.bv).isOnWatch():O;_.Rl(Y,{isDisabled:G});var Q,M;u=_.z((Q=Y.miniplayerData)==null?void 0:(M=Q.miniplayerRenderer)==null?void 0:M.minimizedEndpoint,_.tw);G&&u&&_.sH().resolve(_.kb).openSheet({openPopupActionCommand:{openPopupAction:u}},Y.miniplayerEl)};
VKb=function(Y){if(Y.watchResponse&&(!Y.watchWhileMode||!_.F("kevlar_watch_while_counterfactual"))){var G,u=(G=Y.watchResponse.playerResponse)==null?void 0:G.trackingParams;u&&(_.Rl(Y,{expandVe:_.VZ(35989),closeVe:_.VZ(34699),readyToResumeCloseVe:_.VZ(131070),repositionVe:_.VZ(226204),resizeVe:_.VZ(226205)}),_.Rl(Y,{playerVe:_.Kd(u)}))}};
bJ9=function(Y,G){return _.a(function(u){if(u.nextAddress==1)return G.preparePlayer(),u.yield(G.getPlayerPromise(),2);Y.player=u.yieldResult;Y.player&&(Y.player.addEventListener("onPlayVideo",Y.JSC$19397_onPlayerPlayVideo),Y.player.addEventListener("onCloseMiniplayer",Y.onPlayerCloseMiniplayer),Y.player.addEventListener("onExpandMiniplayer",Y.onPlayerExpandMiniplayer),Y.player.addEventListener("onStateChange",Y.onPlayerStateChange));_.Sd(u)})};
_.H=iV.prototype;_.H.JSC$19397_onPlayerPlayVideo=function(Y){var G=Y.sessionData&&"autonav"in Y.sessionData,u;Y.sessionData&&Y.sessionData.itct&&(u=Y.sessionData.itct);var O=Y.watchEndpoint;G=O&&G?_.Kct(O,u):_.bg(Y.videoId,Y.listId||void 0,u);Y.sessionData&&_.hv(_.z(G.commandMetadata,_.ug).url,Y.sessionData);b4T(this,G)};
_.H.onPlayerExpandMiniplayer=function(){_.AF(this)};
_.H.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.H.onPlayerStateChange=function(){if(this.player){var Y=this.player.getPlayerState(),G=Y===1;_.Zs().dispatch(ld2(Y));_.Zs().dispatch(_.zc(Y));_.sK(this.miniplayerEl,"yt-miniplayer-play-state-changed",[G]);_.Qq().isVideoPlaying=G;if(Y===0){G=!_.SD.getInstance().isAutoplaySetExplicitly();var u,O,Q,M,t,K,L=(u=this.watchResponse.response)==null?void 0:(O=u.contents)==null?void 0:(Q=O.twoColumnWatchNextResults)==null?void 0:(M=Q.autoplay)==null?void 0:(t=M.autoplay)==null?void 0:(K=t.autoplayExplicitChoiceDialogRenderer)==
null?void 0:K.confirmDialogRenderer;G&&L&&this.player.setAutonavState(1)}Y===0&&this.watchWhileMode&&this.deactivate()}};
_.H.onPlaylistNavigate=function(Y,G){var u=this,O,Q,M,t,K,L,g;return _.a(function(P){if(P.nextAddress==1){if(!_.z(G.endpoint,_.ic))return P.return();_.Qq().currentEndpoint=G.endpoint;_.sK(u.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.sH().resolve(_.bv).isOnWatch()&&(u.watchWhileMode||u.watchPipMode))return P.return();Y.stopPropagation();(M=(Q=_.z((O=G.endpoint)==null?void 0:O.commandMetadata,_.ug))==null?void 0:Q.url)&&G.tempData&&!_.gX.isEmpty(G.tempData)&&_.hv(M,G.tempData);t={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};K=new $lI(function(){return u.getPlayerElement()},t,{layer:u.getScreenLayer()});
L=function(I){K.processChunk({endpoint:G.endpoint,data:I})};
BNx(u);u.miniplayerFetchRequest=$6g(u,G.endpoint,L);_.i3(P,2);return P.yield(u.miniplayerFetchRequest,4)}if(P.nextAddress!=2)return g=P.yieldResult,qVb(u,g),_.j1(P,0);_.b3(P);_.Sd(P)})};
_.H.JSC$19397_onPlaylistDataUpdated=function(){var Y=_.sH().resolve(_.yq).getPlaylistData();this.hasPlaylistData=!!Y;_.Rl(this,{externalPlaylistData:Y||{}})};
_.H.close=function(Y){if(this.isInitialized())if(Y){if(!((this.watchWhileMode||this.watchPipMode)&&_.sH().resolve(_.bv).isOnWatch()||this.shortsPipMode)){var G;(G=this.getPlayerElement())==null||G.stop()}this.deactivate()}else _.wp().closeMiniplayer(this.miniplayerEl)};
_.H.deactivate=function(Y){var G=this,u,O,Q,M;return _.a(function(t){if(t.nextAddress==1){if(!G.isInitialized()||!G.active)return t.return();G.setActive(!1);BNx(G);(u=!!Y&&hfo(G,Y))&&G.isSingleOptionSurveyActive&&_.qZ(G.miniplayerEl,"yt-show-watch-page-survey",[G.isSingleOptionSurveyActive]);return t.yield(s0b(G),2)}if(t.nextAddress!=3){lCS(G,!1);G.isReadyToResume=!1;G.watchResponse=void 0;G.updateMiniplayerData(void 0);G.shortsPipMode&&(G.shortsPipMode=!1,_.Zs().dispatch(wWI(G.shortsPipMode)),Q1w(G.pipController),
(O=G.player)==null||O.setInternalSize(NaN,NaN));G.watchPipMode&&(G.watchPipMode=!1,Q1w(G.pipController));(Q=G.watchWhileMode)&&_.SVN(G,!1);G.removePlayerListeners();var K=_.sH().resolve(_.yq);K.removeEventListener("yt-navigate",_.Jh(G,G.onPlaylistNavigate));K.removeEventListener("yt-playlist-data-updated",_.Jh(G,G.JSC$19397_onPlaylistDataUpdated));_.Qq().currentEndpoint=null;_.sK(G.miniplayerEl,"yt-miniplayer-endpoint-changed");G.playerElement=null;ME();if(G.shortsPipMode||G.watchPipMode)t=t.jumpTo(3);
else{K=t.yield;var L=_.qZ(G.miniplayerEl,"yt-deactivate-miniplayer",[u,Q])[0];t=K.call(t,L,3)}return t}(M=G.player)==null||M.setInternalSize(NaN,NaN);G.player=null;_.Sd(t)})};
var s0b=function(Y){var G;return _.a(function(u){G=_.sH().resolve(_.bv);return Y.shortsPipMode?u.yield(G.movePlayerToShorts(Y.playerElement),0):u.yield(G.movePlayerToWatch(Y.playerElement),0)})};
iV.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19397_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
iV.prototype.setActive=function(Y){this.active=Y;this.isSingleOptionSurveyActive?_.qZ(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.qZ(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Zs().dispatch(_.V6({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.SVN=function(Y,G){Y.watchWhileMode=G;_.Rl(Y,{watchWhile:G})};
lCS=function(Y,G){if(Y.shortsPipMode||Y.watchPipMode){var u;(u=Y.player)==null||u.setDocumentPictureInPicture(G)}else{var O;(O=Y.player)==null||O.setMinimized(G)}};
_.AF=function(Y){var G;return _.a(function(u){switch(u.nextAddress){case 1:if(!Y.isInitialized())return u.return();_.i3(u,2);return u.yield(Y.miniplayerFetchRequest,4);case 4:_.j1(u,3);break;case 2:_.b3(u);case 3:Y.watchResponse&&Y.miniplayerData&&Y.miniplayerData.watchEndpoint?(G={url:Y.watchResponse.url,endpoint:Y.miniplayerData.watchEndpoint,data:Y.watchResponse,miniplayer:!0},_.$s(Y.miniplayerEl,"yt-navigate-cache",G)):Y.miniplayerData&&Y.miniplayerData.watchEndpoint&&_.$s(Y.miniplayerEl,"yt-navigate",
{endpoint:Y.miniplayerData.watchEndpoint}),_.Sd(u)}})};
b4T=function(Y,G,u){var O,Q,M,t;return _.a(function(K){if(K.nextAddress==1){if(hfo(Y,G))return K.return();_.Qq().currentEndpoint=G;_.sK(Y.miniplayerEl,"yt-miniplayer-endpoint-changed");_.sK(Y.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Qq().isVideoPlaying=!1;O={clientParams:{miniplayer:!0,autoSaveToQueue:!u}};Q=new $lI(function(){return Y.getPlayerElement()},O,{layer:Y.getScreenLayer(),
parentLayer:0},void 0,Y.readyToResumeVe);M=function(L){var g,P,I=Object.assign({},(g=L.playerResponse)==null?void 0:(P=g.playerConfig)==null?void 0:P.playbackStartConfig,{startPaused:!0}),k;u&&((k=L.playerResponse)==null?0:k.playerConfig)&&(L.playerResponse.playerConfig.playbackStartConfig=I);Q.processChunk({endpoint:G,data:L})};
BNx(Y);Y.miniplayerFetchRequest=$6g(Y,G,M);_.i3(K,2);return K.yield(Y.miniplayerFetchRequest,4)}if(K.nextAddress!=2)return t=K.yieldResult,qVb(Y,t),_.j1(K,0);_.b3(K);_.Sd(K)})};
iV.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
BNx=function(Y){Y.miniplayerFetchRequest&&(Y.miniplayerFetchRequest.cancel&&Y.miniplayerFetchRequest.cancel("Active request obsolete"),Y.miniplayerFetchRequest=null)};
$6g=function(Y,G,u){var O,Q=(O=_.z(G.commandMetadata,_.ug))==null?void 0:O.url,M;O=!Q||_.TP("disable_miniplayer_tempdata")?{}:(M=UQj(Q))!=null?M:{};return of(Y.JSC$19397_pageRequestService,G,O,window.location.href,"watch",function(t,K){u(K)},function(t){return t!==Y.miniplayerFetchRequest})};
qVb=function(Y,G){var u;_.a(function(O){if(!G)return O.return();Y.watchResponse=G;VKb(Y);NNw(Y);u=_.EaT(G.response,G.playerResponse);if(Y.isMiniplayerActive()){G.response&&(Y.playerElement.watchNextData=G.response);var Q=_.gX.getValueByKeys.apply(_.gX,[G].concat(_.c8(OS4)));_.gX.getValueByKeys.apply(_.gX,[G].concat(_.c8(tiE)))&&Q&&_.sH().resolve(_.yq).setAutoplayRenderer(Q);if(Q)if(_.F("kevlar_is_pupi_enabled")){var M,t,K,L,g,P=((M=G.response)==null?0:(t=M.playerOverlays)==null?0:(K=t.playerOverlayRenderer)==
null?0:(L=K.autonavToggle)==null?0:(g=L.autoplaySwitchButtonRenderer)==null?0:g.enabled)?2:1;_.SD.getInstance().setState(P,!1,!1)}else M=FDg()?2:1,(P=Y.player)==null||P.setAutonavState(M);Y.updateMiniplayerData(u);_.j0N(Y)}_.Sd(O)})};
NNw=function(Y){var G,u,O=(G=Y.watchResponse)==null?void 0:(u=G.playerResponse)==null?void 0:u.playabilityStatus,Q;G=O==null?void 0:(Q=O.miniplayer)==null?void 0:Q.miniplayerRenderer;(G==null?void 0:G.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&G.minimizedEndpoint&&_.c$(Y.miniplayerEl,[G.minimizedEndpoint]);_.Rl(Y,{playabilityStatus:O})};
_.Rl=function(Y,G){(0,Y.miniplayerPropSignalMap[1])(G)};
iV.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var Y;return this.playerElement?this.playerElement:(Y=_.l0(this.miniplayerEl).querySelector("#player-container"))==null?void 0:Y.firstElementChild};
iV.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var d6b=function(Y,G){G=G===void 0?!1:G;var u,O,Q,M,t,K;return _.a(function(L){if(L.nextAddress==1){if(!Y.pictureInPictureSupported()||!qI4()&&!G)return L.return(!1);u=c1o(Y);O=u.width;Q=u.height;return L.yield(Y.pipController.openWindow({width:O,height:Q}),2)}M=L.yieldResult;t=Y.pipController.getWindow();if(!t||!M)return L.return(!1);t.document.body.style.overflow="hidden";K=$j1(t);Moj(Y.pipController,function(){U6o(Y);K()});
return L.return(!0)})},c1o=function(Y){var G=_.Qq().shortsPipActivation,u,O;
Y=G?.5625:(O=(u=Y.player)==null?void 0:u.getVideoAspectRatio())!=null?O:16/9;u=Math.min(window.innerWidth,window.innerHeight)/2;G=G?0:76;return Y>1?new _.oB(u,G+u/Y):new _.oB(u*Y,G+u)},U6o=function(Y){var G;
_.a(function(u){G=_.sH().resolve(_.bv);return G.isOnWatch()&&Y.watchPipMode||G.isOnShorts()&&Y.shortsPipMode?u.yield(Y.deactivate(),0):Y.miniplayerToPipMode?u.yield(D6N(Y),0):Y.watchPipMode?u.yield(_.AF(Y),0):u.jumpTo(0)})};
iV.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.JSC$19397_watchPipEnabled||this.shortsPipEnabled)};
_.Uk.Object.defineProperties(iV.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
iV[c4]=[HHx,aQE,_.kM];var v7S="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(" "),
J1b="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(" "),Yky="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
GBx="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var uPb=function(Y,G,u){_.Ey.call(this);this.store=Y;this.panelController=G;this.pageContentExtractor=u;this.isInitialized=!1};
_.m(uPb,_.Ey);
uPb.prototype.init=function(Y){var G=this;this.isInitialized||(this.isInitialized=!0,this.environment=Y!=null?Y:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.A$.currentPageSubTypeSelector(this.store.getState()),Y=_.Eh(this.store,_.A$.currentPageSubTypeSelector,function(u){a:if(_.OjB(G))switch(u){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var O=!0;break a;default:O=!1}else O=!1;O&&G.panelController.hidePanel({identifier:"PAai_companion"});
G.pageSubtype!==u&&(G.pageSubtype=u)}),this.addOnDisposeCallback(Y))};
_.cDw=function(Y,G){if(_.OjB(Y))switch(G){case "watch":var u,O;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(u=_.vx())==null?void 0:(O=u.getVideoData())==null?void 0:O.video_id};case "search":var Q,M,t;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(M=(Q=Y.pageContentExtractor)==null?void 0:jEx(Q))!=null?M:[],entityId:(t=(new URLSearchParams(window.location.search)).get("search_query"))!=null?t:void 0};case "companion-canvas":var K,L;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(L=(K=
Y.pageContentExtractor)==null?void 0:jEx(K))!=null?L:[]};default:var g,P;Y={videoIds:(P=(g=Y.pageContentExtractor)==null?void 0:jEx(g))!=null?P:[]};return _.F("enable_ai_companion_default_page_context")?Y:void 0}};
_.OjB=function(Y){return Y.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
uPb[c4]=[_.Fk,_.IH,_.q3(VEV)];var Q3N=_.D(function(Y){return _.T("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.T(_.DT,{className:Y.className,text:function(){return Y.data().text||""},
wrapCodeBlocks:Y.shouldWrapCodeBlock}))},"vh");_.Mgj=_.D(function(Y){return _.T("yt-ai-companion-attachment-view-model",{el:_.iq(_.zi(function(){return Y.data().rendererContext})),
class:_.s3("ytAiCompanionAttachmentViewModelHost",Y.className)},_.T("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.T(_.X,{cond:function(){return Y.data().title},
then:function(G){return _.T("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return G().content}},_.T(_.eO,{text:G}))}}),_.T(_.X,{cond:function(){return _.e0(Y.data().trailingTitleIcon)},
then:function(G){return _.T("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.T(_.RD,{data:G,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.T(_.X,{cond:function(){return Y.data().description},
then:function(G){return _.T("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.T(_.eO,{text:G}))}}),_.T(_.X,{cond:function(){return Y.data().bottomItem},
then:function(G){return _.T("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.T(_.HE,{data:G},{tableViewModel:A9E}))}}))},"wh");_.HjB=_.D(function(Y){return _.T("yt-channel-attribution-view-model",{class:_.s3("ytChannelAttributionViewModelHost",Y.className)},_.T("div",{class:"ytChannelAttributionViewModelUpper"},_.T(_.HE,{data:function(){return Y.data().avatar}},{decoratedAvatarViewModel:_.mb}),_.T("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.T(_.eO,{text:function(){return Y.data().title}}))),_.T("div",{class:"ytChannelAttributionViewModelBottom"},_.T(_.eO,{text:function(){return Y.data().subtitle}})))},"xh");var EdB=_.D(function(Y){var G=_.E(_.IE(!1,void 0,"MFRKRb")),u=G.next().value,O=G.next().value,Q=function(){return Y.data().activeRenderer},M=function(){return Y.data().inactiveRenderer};
return _.T("yt-channel-disclosure-view-model",{"on:mouseleave":_.U3(function(){O(!1)}),
"on:mouseover":_.U3(function(){O(!0)}),
class:_.s3("ytChannelDisclosureViewModelHost",Y.className)},_.T(_.X,{cond:function(){return u()},
then:function(){return _.T(_.HE,{data:Q},{channelAttributionViewModel:_.HjB})},
else:function(){return _.T(_.HE,{data:M},{decoratedAvatarViewModel:_.mb})}}))},"yh");var tgg=null;var KNx={},aHS=(KNx.initialized={priority:10,callback:function(Y){var G=_.sH();G.addProvider({provide:cN2,useClass:t1S});G.addProvider({provide:_.Egx,useFactory:function(){return new UCT}});
G.addProvider({provide:DX,useValue:_.DE("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});G.addProvider({provide:Hmy,useValue:5184E6});G.addProvider({provide:AXN,useValue:_.FO()});G.addProvider({provide:nlN,useClass:EeU});G.addProvider({provide:wD,useClass:wD});G.addProvider({provide:_.$h,useFactory:function(){return Zoe.promise}});
G.addProvider({provide:_.hC_,useFactory:function(){return _.DJ4.promise}});
G.addProvider({provide:Oiy,useValue:function(){var L;return((L=_.N5())==null?void 0:L.getPlayer())||null}});
var u={};G.addProvider((u.provide=_.KE,u.useFactory=function(L,g){return function(){return oXt(L,g)}},u[c4]=[DX,
Hmy],u));u={};G.addProvider((u.provide=_.Js,u.useClass=i7o,u[c4]=[DX,Hmy],u));u={};G.addProvider((u.provide=_.ueX,u.useClass=DAN,u[c4]=[_.Js],u));G.addProvider({provide:yp,useFactory:_.Zs});G.addProvider({provide:Un,useFactory:_.Zs});G.addProvider({provide:ATb,useFactory:_.Zs});G.addProvider({provide:_.Ju_,useFactory:function(){var L;return((L=_.N5())==null?void 0:L.getPlayer())||null}});
G.addProvider({provide:UUx,useFactory:_.Zs});G.addProvider({provide:_.Fk,useFactory:_.Zs});u={};G.addProvider((u.provide=$rl,u.useFactory=function(L){return L.dispatch.bind(L)},u[c4]=[_.Fk],u));
G.addProvider({provide:Mr,useValue:_.GL});G.addProvider({provide:M1x,useClass:fbI});G.addProvider({provide:xIb,useClass:rDb});G.addProvider({provide:QJ,useClass:QJ});G.addProvider({provide:QL,useClass:QL});G.addProvider({provide:Gz,useClass:Gz});G.addProvider({provide:Mk,useClass:Mk});G.addProvider({provide:EJ,useClass:EJ});G.addProvider({provide:Nk,useClass:Nk});G.addProvider({provide:wn,useClass:wn});G.addProvider({provide:lMS,useValue:faB});u={};G.addProvider((u.provide=BXx,u.useFactory=function(L){return L.watchEndpointMap||
{}},u[c4]=[lMS],u));
u={};G.addProvider((u.provide=$Uj,u.useFactory=function(L){return L.reelWatchEndpointMap||{}},u[c4]=[lMS],u));
G.addProvider({provide:_.KZ,useFactory:_.M4});G.addProvider({provide:pF,useFactory:_.EU});u={};G.addProvider((u.provide=$da,u.useFactory=function(L){return function(g){var P={automatedLogEventSource:5};P=P===void 0?{}:P;var I,k,n=(k=_.z((I=g.endpoint)==null?void 0:I.commandMetadata,_.ug))==null?void 0:k.rootVe;if(n){var p,W;if(I=g.previousCsn||((W=_.z((p=g.endpoint)==null?void 0:p.commandMetadata,MxE))==null?void 0:W.parentCsn)){var C=C===void 0?{}:C;if(I!==_.FA(C.layer)||n!==Tut(C.layer))IfT(I,C.cttAuthInfo,
C.layer||0),KPI(I,C.layer||0),p=C.layer||0,_.ZE(af1(p===void 0?0:p),n);P.parentCsn=I}g.endpoint&&I?ApI(L,g.endpoint,P):_.UL(L,n,void 0,P);var e;((e=g.response)==null?0:e.trackingParams)&&L.graftServerVe(g.response.trackingParams);var w;((w=g.playerResponse)==null?0:w.trackingParams)&&L.graftServerVe(g.playerResponse.trackingParams);var B;((B=g.reelWatchSequenceResponse)==null?0:B.trackingParams)&&L.graftServerVe(g.reelWatchSequenceResponse.trackingParams)}}},u[c4]=[_.KZ],u));
u={};G.addProvider((u.provide=i2g,u.useClass=olw,u[c4]=[Mr,_.Fk],u));u={};G.addProvider((u.provide=PS,u.useClass=PS,u[c4]=[_.$h,_.Fk],u));u={};G.addProvider((u.provide=gF,u.useClass=gF,u[c4]=[Un,_.rH],u));G.addProvider({provide:_.B_o,useClass:tob});u={};G.addProvider((u.provide=_.IH,u.useClass=sEb,u[c4]=[_.B_o,_.q3(_.Fv)],u));G.addProvider({provide:_.vP,useClass:Cd9});u={};G.addProvider((u.provide=Jb,u.useClass=Jb,u[c4]=[_.vP,_.$h,_.KB,_.rH],u));G.addProvider({provide:_.kb,useClass:Il});G.addProvider({provide:_.mUw,
useClass:BcN});G.addProvider({provide:_.nR,useClass:l1V});_.F("enable_ai_companion")&&(G.addProvider({provide:_.Fv,useClass:JTN}),G.addProvider({provide:_.taX,useClass:AJU}),G.addProvider({provide:VEV,useClass:SWg}),G.addProvider({provide:mt,useClass:mt}),G.addProvider({provide:zF,useClass:zF}),G.addProvider({provide:t$2,useValue:EdB}),G.addProvider({provide:_.KnT,useValue:_.Mgj}),G.addProvider({provide:agk,useValue:Q3N}));_.F("enable_ai_chat_controller")&&G.addProvider({provide:_.pg,useClass:uPb});
u={};G.addProvider((u.provide=_.Ij,u.useClass=E4x,u[c4]=[_.Ij],u));G.addProvider({provide:_.Yi,useClass:nx9});G.addProvider({provide:oJ,useClass:oJ});G.addProvider({provide:OC,useClass:OC});G.addProvider({provide:dl,useClass:dl});u={};G.addProvider((u.provide=IJ,u.useClass=IJ,u[c4]=[_.rH,_.KB],u));G.addProvider({provide:qr,useClass:UcB});u={};G.addProvider((u.provide=UF,u.useClass=UF,u[c4]=[_.kb,qr],u));u={};G.addProvider((u.provide=lt,u.useClass=lt,u[c4]=[_.kb],u));G.addProvider({provide:fg,useClass:fg});
G.addProvider({provide:JDS,useClass:vxN});_.F("web_enable_feedback_endpoint_resolver_batch_2")&&(u={},G.addProvider((u.provide=ez,u.useClass=ez,u[c4]=[yp],u)),u={},G.addProvider((u.provide=Cg,u.useClass=Cg,u[c4]=[JDS],u)));u={};G.addProvider((u.provide=sF,u.useClass=sF,u[c4]=[_.nR,qr],u));u={};G.addProvider((u.provide=jz,u.useClass=jz,u[c4]=[_.nR],u));u={};G.addProvider((u.provide=cQ,u.useClass=cQ,u[c4]=[_.KB,_.IH],u));u={};G.addProvider((u.provide=$1,u.useClass=$1,u[c4]=[_.KB,_.KZ],u));G.addProvider({provide:CF,
useClass:CF});u={};G.addProvider((u.provide=FM,u.useClass=FM,u[c4]=[yp],u));G.addProvider({provide:NV,useClass:NV});G.addProvider({provide:SB,useClass:SB});u={};G.addProvider((u.provide=VS,u.useClass=VS,u[c4]=[yp],u));u={};G.addProvider((u.provide=lU,u.useClass=lU,u[c4]=[_.KB,yp],u));u={};G.addProvider((u.provide=BP,u.useClass=BP,u[c4]=[yp],u));u={};G.addProvider((u.provide=$P,u.useClass=$P,u[c4]=[yp],u));u={};G.addProvider((u.provide=Vp,u.useClass=Vp,u[c4]=[_.IH],u));u={};G.addProvider((u.provide=
iU,u.useClass=iU,u[c4]=[_.KZ],u));u={};G.addProvider((u.provide=d6,u.useClass=d6,u[c4]=[r6],u));u={};G.addProvider((u.provide=bU,u.useClass=bU,u[c4]=[r6],u));G.addProvider({provide:ZO,useClass:ZO});G.addProvider({provide:DO,useClass:DO});G.addProvider({provide:oj,useClass:oj});u={};G.addProvider((u.provide=vQ,u.useClass=vQ,u[c4]=[_.IH,_.rH],u));G.addProvider({provide:ZX,useClass:ZX});u={};G.addProvider((u.provide=BQ,u.useClass=BQ,u[c4]=[_.KB,_.IH],u));G.addProvider({provide:bt,useClass:bt});u={};
G.addProvider((u.provide=kP,u.useClass=kP,u[c4]=[yp,_.KB,_.Ij],u));u={};G.addProvider((u.provide=XM,u.useClass=XM,u[c4]=[_.KB,_.rH],u));G.addProvider({provide:uKU,useValue:d_A});G.addProvider({provide:Ty4,useValue:n0y});G.addProvider({provide:PP,useClass:PP});u={};G.addProvider((u.provide=g6,u.useClass=g6,u[c4]=[yp],u));u={};G.addProvider((u.provide=nF,u.useClass=nF,u[c4]=[_.Yi,_.rH],u));u={};G.addProvider((u.provide=Ak,u.useClass=Ak,u[c4]=[_.rH],u));u={};G.addProvider((u.provide=x1,u.useClass=x1,
u[c4]=[Un],u));G.addProvider({provide:EkT,useFactory:_.ya.getInstance});u={};G.addProvider((u.provide=hk,u.useClass=hk,u[c4]=[DX,EkT,_.rH],u));G.addProvider({provide:RJ,useClass:RJ});G.addProvider({provide:k1,useClass:k1});G.addProvider({provide:FJ,useClass:FJ});G.addProvider({provide:_.ng,useClass:_.ng});G.addProvider({provide:cP,useClass:cP});u={};G.addProvider((u.provide=tb,u.useClass=tb,u[c4]=[Un],u));u={};G.addProvider((u.provide=YP,u.useClass=YP,u[c4]=[_.rH],u));u={};G.addProvider((u.provide=
KF,u.useClass=KF,u[c4]=[_.rH],u));u={};G.addProvider((u.provide=aj,u.useClass=aj,u[c4]=[_.rH],u));_.F("web_enable_prefetching_videos_on_home")&&(G.addProvider({provide:O2x,useClass:O2x}),G.addProvider({provide:rF,useClass:rF}));u={};G.addProvider((u.provide=sC,u.useClass=sC,u[c4]=[_.rH],u));G.addProvider({provide:WQ,useClass:WQ});u={};G.addProvider((u.provide=yS,u.useClass=yS,u[c4]=[_.KB,_.rH],u));u={};G.addProvider((u.provide=rl,u.useClass=rl,u[c4]=[_.rH],u));u={};G.addProvider((u.provide=x9,u.useClass=
x9,u[c4]=[_.KB,_.rH],u));G.addProvider({provide:aaN,useClass:aaN});G.addProvider({provide:KT9,useClass:KT9});G.addProvider({provide:MV,useClass:MV});u={};G.addProvider((u.provide=QS,u.useClass=QS,u[c4]=[Un,_.rH],u));G.addProvider({provide:HP,useClass:HP});u={};G.addProvider((u.provide=GZ,u.useClass=GZ,u[c4]=[Un,_.rH,_.KB],u));u={};G.addProvider((u.provide=uH,u.useClass=uH,u[c4]=[_.rH],u));u={};G.addProvider((u.provide=Ye,u.useClass=Ye,u[c4]=[_.rH,_.KB],u));u={};G.addProvider((u.provide=fF,u.useClass=
fF,u[c4]=[_.rH,_.KB],u));u={};G.addProvider((u.provide=LF,u.useClass=LF,u[c4]=[_.$h],u));u={};G.addProvider((u.provide=Tz,u.useClass=Tz,u[c4]=[_.$h],u));u={};G.addProvider((u.provide=EC,u.useClass=EC,u[c4]=[_.$h],u));G.addProvider({provide:WP,useClass:WP});G.addProvider({provide:xP,useClass:xP});G.addProvider({provide:jB,useClass:jB});G.addProvider({provide:eB,useClass:eB});G.addProvider({provide:mY,useClass:mY});G.addProvider({provide:Sz,useClass:Sz});G.addProvider({provide:zz,useClass:zz});G.addProvider({provide:_.Hl,
useClass:nE});G.addProvider({provide:ba,useFactory:function(){return _.N6.getInstance()}});
G.addProvider({provide:yTV,useFactory:VWy});G.addProvider({provide:r6,useFactory:function(){return _.Xu.getInstance()}});
G.addProvider({provide:rQR,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});u={};G.addProvider((u.provide=_.X6,u.useClass=_.X6,u[c4]=[_.$h,_.rH,_.KZ,yTV,r6,ba,rQR,Mr],u));G.addProvider({provide:_.Q7,useClass:B$_});G.addProvider({provide:_.thj,useClass:EIw});u={};G.addProvider((u.provide=Nr,u.useClass=Nr,u[c4]=[_.thj],u));u={};G.addProvider((u.provide=_.DcN,u.useFactory=function(L){return L.upliftCompletionResolver.promise},u[c4]=[i2g],u));
u=_.hy("IS_SHELL_LOAD")?"aa":"eocs";var O=_.hy("IS_SHELL_LOAD")?3:2;_.AM().parkOrScheduleJob(function(){wwy()},O,u);
_.AM().parkOrScheduleJob(function(){_.sH().resolve(PS).start()},2,"eocs");
_.AM().parkOrScheduleJob(function(){eNx()},2,"eocs");
_.AM().parkOrScheduleJob(function(){_.sH().resolve(gF).start()},2,"eocs");
_.F("kevlar_debug_data_app_registration_ks")||ojI();G.addProvider({provide:_.tf,useValue:new fxg(Y.root)});G.addProvider({provide:bj,useValue:new jdy});G.addProvider({provide:_.w8o,useValue:new ibS(Y.root)});G.addProvider({provide:_.Hm,useValue:new RHB});G.addProvider({provide:_.YY,useClass:KR});G.addProvider({provide:HHx,useClass:k9});_.F("kevlar_network_sli_killswitch")||G.addProvider({provide:Ino,useValue:V_k});G.addProvider({provide:HGx,useFactory:USt});u={};G.addProvider((u.provide=wFb,u.useFactory=
V2y,u[c4]=[_.DcN,yp,_.KE],u));u={};G.addProvider((u.provide=RBx,u.useClass=O7,u[c4]=[wFb],u));G.addProvider({provide:PIo,useClass:TUS});G.addProvider({provide:eBx,useClass:oIN});u=[].concat(_.c8(Umy));u.push(_.rE);u.push(Di_);_.F("enable_share_panel_navigation_logging_fix_on_web")&&u.push(_.Uy2);G.addProvider({provide:ccu,useValue:u});G.addProvider({provide:aVl,useClass:yXj});G.addProvider({provide:zio,useClass:kRy});u={};G.addProvider((u.provide=HT1,u.useClass=Bt9,u[c4]=[Un],u));_.AN.addLowPriorityJob(function(){Mju()});
u={};G.addProvider((u.provide=H9X,u.useFactory=function(L){return function(g){var P,I=(P=_.z(g.commandMetadata,_.ug))==null?void 0:P.url;if(!I)throw new _.I2("No URL for PBJ Command",g);I=W7T(I,{pbj:"1"});P=jKt(I,{})||{};P=Object.assign({},P,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.DE("STS").toString()});g=_.vI({command:JSON.stringify(g),session_token:_.DE("XSRF_TOKEN")});return L.fetch(I,{method:"POST",headers:P,body:g})}},u[c4]=[zio],u));
G.addProvider({provide:ggN,useFactory:function(){var L={};return L.CSI=Tvy(),L.ECATCHER=a71(),L}});
G.addProvider({provide:vak,useClass:XKV});u=[];u.push(G.resolve(eBx));O={};O=(O.client_location=_.ya.getInstance(),O.consistency=_.M44(),O.entities=G.resolve(xIb),O.response_received_commands=G.resolve(aVl),O.store=G.resolve(_.ueX),O.tokens=G.resolve(eBx),O.service_params=G.resolve(vak),O);if(_.F("web_shorts_prefetch_service_enabled")){var Q=new hrV(G.resolve(_.Js));O.shorts_prefetch=Q}O.adblock_detection=G.resolve(HT1);_.F("web_enable_chunk_prediction")&&(G.addProvider({provide:_.fS,useClass:xcx}),
G.addProvider({provide:LER,useClass:lnx}),O.mss=G.resolve(LER),_.yn(window,"yt-navigate-start",function(L){var g;L=(g=L.detail)==null?void 0:g.endpoint;var P;if(g=(P=_.z(L==null?void 0:L.commandMetadata,_.ug))==null?void 0:P.rootVe){P=_.DE("VE_TYPE_TO_XIDS",{});var I,k;L=(k=(I=P["0"])==null?void 0:I.xids)!=null?k:[];var n,p;I=(p=(n=P[g])==null?void 0:n.xids)!=null?p:[];n=L.concat(I);if(g in P&&n.length>0){var W;(W=CFb(_.sH().resolve(_.fS),n))==null||W()}}}));
G.addProvider({provide:_.lB,useClass:_.lB});Q=G.resolve(lMS);var M=[];_.F("PremiumClientSharedConfig__enable_att_context_processor")&&(G.addProvider({provide:KSN,useClass:HOb}),M.push(G.resolve(KSN)));if(_.F("owl_pl_await")){var t={};G.addProvider((t.provide=v4N,t.useFactory=function(L){return new cyb(L)},t[c4]=[_.lB],t));
M.push(G.resolve(v4N))}LHR(Q,G.resolve(zio),G.resolve(M1x),O,G.resolve(_.Js),u,M,G.resolve(RBx),G.resolve(PIo));G.addProvider({provide:_.KB,useValue:_.Af.instance});_.F("start_client_gcf")&&G.addProvider({provide:rN,useValue:OUe()});G.addProvider({provide:dcx,useFactory:function(){return new dcx(_.sH().resolve(_.lB),_.Xu.getInstance())}});
_.AM().parkOrScheduleJob(function(){b2B()},1,"eocs");
u={};G.addProvider((u.provide=hNx,u.useClass=hNx,u[c4]=[_.KE,_.KB],u));G.addProvider({provide:_.X4b,useFactory:_.WS.getInstance});_.AM().parkOrScheduleJob(function(){_.sH().resolve(hNx).refresh()},0,"eocs");
G.addProvider({provide:_.kM,useClass:Yy9});_.F("kevlar_signal_collection_killswitch")||(u={},G.addProvider((u.provide=kXb,u.useClass=kXb,u[c4]=[DX,pF],u)),_.AM().parkOrScheduleJob(function(){_.sH().resolve(kXb).record()},1,"eocs"));
_.F("web_debug_handler_registration_killswitch")||_.AM().parkOrScheduleJob(function(){eeU("DOWNLOAD_PES",jCt);_.F("offline_client_state_export_ks")||eeU("OFFLINE_CLIENT_STATE",bna)},0,"eocs");
_.F("kevlar_prevent_polymer_dynamic_font_load")&&_.AM().parkOrScheduleJob(function(){var L=[_.fO(ogV),_.fO(iG9)];L=_.E(L);for(var g=L.next();!g.done;g=L.next()){g=g.value;var P=document.createElement("link");_.nb(P,g,"stylesheet");document.head.appendChild(P)}},1,"eocs");
u=Y.injector.resolve(_.KB);_.tLN.instance=new _.tLN(u);kuy(J0o(new ExB(u)));u={};Y.injector.addProvider((u.provide=cY,u.useFactory=function(L){(L=L==null?void 0:L.getCurrentPage())?L=L.visibilityObserver:(tgg||(tgg=aly()),L=tgg);return L},u[c4]=[_.q3(_.bv)],u.skipCache=!0,u));
G.addProvider({provide:_.yo,useClass:iV});G.addProvider({provide:tl,useClass:uqT});Y.injector.addProvider({provide:$Vl,useValue:xKN});G.addProvider({provide:dD2,useValue:lx9});G.addProvider({provide:qcR,useValue:iw4});G.addProvider({provide:_.Ee,useValue:l2j});Y=G.addProvider;n4x||(n4x=new kY9);Y.call(G,{provide:_.F6,useValue:n4x});G.addProvider({provide:_.od,useValue:_.DE("HTML_DIR")==="rtl"?"rtl":"ltr"});G.addProvider({provide:ZON,useClass:$Ij});G.addProvider({provide:_.vn,useClass:RPB});_.sH().addProvider({provide:hox,
useValue:_.F("enable_web_delhi_icons")?J1b.concat(GBx):v7S.concat(Yky)});G.addProvider({provide:_.lEx,useClass:_.lEx});G.addProvider({provide:_.C9N,useValue:new fn9("MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE")});G.addProvider({provide:xpw,useClass:mIx});G.addProvider({provide:Ab,useClass:Ab});G.addProvider({provide:Rj,useClass:Rj});Y={};G.addProvider((Y.provide=Jk,Y.useClass=Jk,Y[c4]=[_.KB,_.IH],Y));G.addProvider({provide:UC,useClass:UC});G.addProvider({provide:jhj,useClass:aEw});G.addProvider({provide:hb,
useClass:hb});G.addProvider({provide:Y8k,useValue:dT_});G.addProvider({provide:_.S_,useClass:WSo});_.F("enable_payments_purchase_manager")&&G.addProvider({provide:gxx,useClass:aGN});G.addProvider({provide:UIb,useFactory:function(){return function(L){return _.AdS(L)}}});
G.addProvider({provide:_.rXo,useClass:xU9});Y={};G.addProvider((Y.provide=qV,Y.useClass=qV,Y[c4]=[_.rXo],Y));G.addProvider({provide:w6,useClass:w6});G.addProvider({provide:ZTS,useValue:P3N});G.addProvider({provide:pRT,useValue:_.fEy});G.addProvider({provide:Brt,useClass:K1S});G.addProvider({provide:p4B,useValue:iqx});Y={};G.addProvider((Y.provide=zPS,Y.useClass=m3w,Y[c4]=[p4B],Y));Y={};G.addProvider((Y.provide=_.T7,Y.useClass=Zqy,Y[c4]=[zPS],Y));Y={};G.addProvider((Y.provide=_.zV,Y.useClass=OGN,Y[c4]=
[_.Fk,_.YY],Y));if(_.F("web_explore_hub_on_hover")||_.F("web_client_explore_hub_on_hover"))Y={},G.addProvider((Y.provide=wl,Y.useClass=wl,Y[c4]=[_.KB,ba],Y));if(_.F("web_enable_renderer_logger")){var K=new FzA;Tpg(function(){K.abort()});
G.addProvider({provide:QFI,useValue:new FvN(K.signal)})}G.addProvider({provide:veM,useValue:JFu});G.addProvider({provide:Dx4,useClass:dAg});_.F("web_use_flow_state_manager")&&(G.addProvider({provide:_.EF,useClass:fGy}),Y={},G.addProvider((Y.provide=tk,Y.useClass=tk,Y[c4]=[_.EF],Y)),Y={},G.addProvider((Y.provide=Kg,Y.useClass=Kg,Y[c4]=[_.Fk,_.EF],Y)),Y={},G.addProvider((Y.provide=aJ,Y.useClass=aJ,Y[c4]=[_.Fk,_.EF,_.rH],Y)),Y={},G.addProvider((Y.provide=TF,Y.useClass=TF,Y[c4]=[_.KB,_.rH],Y)),Y={},G.addProvider((Y.provide=
Lg,Y.useClass=Lg,Y[c4]=[_.EF,_.rH],Y)));G.addProvider({provide:_.ydx,useValue:new fn9("MANUAL_MEASUREMENT_NAME_NEON_EFFECT_IDLE")})}},KNx);var Tjo={},LNo=(Tjo.initialized={priority:10,callback:function(){if(!P9S){cRg();gma("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.HK(_.H2(gma,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.F("log_heartbeat_with_lifecycles")){var Y={};dW.instance||(dW.instance=new dW);dW.instance.install((Y.document_visible={callback:XXt,priority:10},Y.document_hidden={callback:XXt,priority:10},Y))}else _.U0(document,"visibilitychange",XXt);P9S=!0}(Y=_.FA())&&Y!=="UNDEFINED_CSN"&&Ewg(Y)}},Tjo);var gdx={},XD9=(gdx.initialized={callback:function(Y){var G=_.VZ(232091),u=Y.injector.resolve(_.KZ);_.lq(u,G);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?sUE()&&_.Jw(u,G):(Y=Y.injector.resolve(UIb)("refresh_detector"))&&(Y.get("first_tab_load")?_.Jw(u,G):Y.set("first_tab_load","1"))}},gdx);var Pog={},IHB=(Pog.initialized={priority:0,callback:function(){var Y=new xC_,G="other";_.MP?G="chrome":_.uO?G="firefox":_.Zn?G="safari":s5&&(G="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(u){Y.increment(_.gC(),u,G)}).catch(function(){Y.increment(_.gC(),!1,G)}):Y.increment(_.gC(),!1,G)}},Pog);var kBg={},ndj=(kBg.rendering={priority:8,callback:cYM},kBg);var FNN={},pD9=(FNN.rendering={priority:10,callback:gkl},FNN.rendered={callback:TRT},FNN),zQy={},m29=(zQy.rendering={callback:gkl},zQy.rendered={callback:TRT},zQy);var WNS=!1,rGV={},x2w=(rGV.initialized={priority:10,callback:function(){WNS||(PcA({didPatch:function(Y){Y.el&&CKT(Y.el,Y.props)},
didUnmount:function(Y){xdt(Y.el)}}),WNS=!0)}},rGV);var fHx=/^\/shorts\/?$/;_.ZE("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:{}}}}}}});_.F("kevlar_use_common_module_manager_ks")?(_.hiA(new X1M),R8U()):P_U();
(function(){var Y=document.querySelector("ytd-app");if(!Y)throw Error("ck");FFj();Y=new mH({root:Y,injector:_.sH()});Y.install(LNo);var G={};Y.install((G.initialized={priority:10,callback:Uwg},G));_.F("wp_lat_b")&&(G={},Y.install((G.initialized={priority:10,callback:function(){q8U()}},G)));
G={};Y.install((G.rendered={priority:0,callback:qiy},G));G={};Y.install((G.rendered={priority:0,callback:function(){_.AN.addLowPriorityJob(function(){_.qsS>1&&(Sit(),B7g())},4E4)}},G));
Y.install(MVg);Y.install(XD9);Y.install(x2w);dd4();Y.install(PBy);Y.install(Jdx);Y.install(OqN);Y.install(a1S);Y.install(PFg);Y.install(gqb);Y.install(aHS);Y.install(GCV);Y.install(IHB);if(!_.hy("IS_SHELL_LOAD")||_.F("kevlar_fetch_initial_data_promise_client")||_.F("sw_nav_preload_pbj")){var u=_.BI(window.location.href);G=u&&u==="/watch";u=u&&u.match(fHx);G?Y.install(m29):u?Y.install(ndj):Y.install(pD9)}else Y.install(cdN);Y.install(Eqg);_.F("web_enable_prefetching_videos_on_home")&&Y.install(FTx);
_.F("start_client_gcf")&&Y.install(L_9);Y.install(MEw);(new faU).increment("INSTALLED");Y.install(kCN);Y.install($N9);Y.transition("initialized");b41();enY()})();
_.qW=[[["Z29meGtpbmQjMnd2MndjbWI=","dmFsdWUjZ3RnYzE0anF4dGcy"],"SU5EX01JTExJU0VDT05EUyNvdjc0a2hjeGF4ZGxBRF9QTEFDRU1FTlRfSw=="]];_.$G=["Y2tzIzV4bzg1M2tzMnpzeWdsb2JhbENhbGxiYQ==","eW91c29uQWJub3JtYWxpdHlEZXRlY3RlZCNubnhpY3dlbA==","cXJwaGhhancyb25BZFNraXAjNHY5","enoxODNoazVyYXdfcGxheWVyX3Jlc3BvbnNlI3R1dnU=","aDc4N28wcGxheWVyQWRzI3JuZjQwNA=="];_.hM="Y2tzIzV4bzg1M2tzMnpzeWdsb2JhbENhbGxiYQ== eW91c29uQWJub3JtYWxpdHlEZXRlY3RlZCNubnhpY3dlbA== cXJwaGhhancyb25BZFNraXAjNHY5 enoxODNoazVyYXdfcGxheWVyX3Jlc3BvbnNlI3R1dnU= ZV9za2lwc19rcyM1NDg1aTZvd3lra2J3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbA== cHFtNmc2a2gxYWJfc2FfZWYjcTRq aDc4N28wcGxheWVyQWRzI3JuZjQwNA==".split(" ");

_._ModuleManager_initialize=function(Y,G){if(!_.p7){if(!_.zm)return;_.hiA(_.zm())}_.p7.setAllModuleInfoString(Y,G)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy5/sy2:2/sy3:2/sy4/sy6/sy7:1,2,6/hU04te/kevlar_main_module:3,4,7,8/dpUCFd/U9vrqd/n0DHg/HwlOhd/JoU6vf/dIvQ6c/m9Vw4/mcjWUc/QiZf0e:7/f8YPh:3/b3MoKf:4/NSzT5:5',['sy5','sy6','sy1','sy4','sy3','sy2','sy7','hU04te','NSzT5','b3MoKf','f8YPh','QiZf0e','mcjWUc','m9Vw4','dIvQ6c','JoU6vf','HwlOhd','n0DHg','U9vrqd','dpUCFd','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.$2B=function(Y,G){if(_.F("web_enable_chat_autoscroll_to_user_turn")&&Y&&G)return Y-4+"px"};
}catch(e){_._DumpException(e)}
try{
var wD9,D2b;_.wF=function(Y){var G=Y.clientMessageId;var u=Y.playerOffsetMs;var O=Y.pageContext;Y=Y.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:G},!!u&&{playerOffsetMs:u},!!O&&{pageContext:O},!!Y&&{userInputText:Y})}};
_.RQS=function(Y,G,u){G=G===void 0?5:G;if(G!==0){var O=typeof Y==="function"?Y():document.querySelector(Y);O?(u==null?0:u.enableSmartFocus)?_.wKj(O):O.focus():setTimeout(function(){_.RQS(Y,G-1,u)},500)}};
wD9=function(Y,G){return _.v2(Y.entities,"inlineExpansionEntity",G)};
_.Zjg=function(Y){return{continuationCommand:{token:Y,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
D2b=function(Y,G){if(G)return"ytCardViewModelCardSelected";switch(Y){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
_.hQN=function(Y,G){return _.v2(Y.entities,"youchatPendingResponseEntity",G)};
_.d2g=function(Y){return function(G){_.hj(_.t$("youchatPendingResponseEntity",Y,{entityKey:Y,isPendingResponse:G}))}};_.Skx=_.D(function(Y){var G=Y.data;var u=function(){var O;return _.pK((O=G())==null?void 0:O.rendererContext)};
Y={};return _.T("content-list-item-view-model",{el:_.iq(_.zi(function(){return G().rendererContext})),
class:_.s3("ytContentListItemViewModelHost",(Y.ytContentListItemViewModelTappable=u,Y)),role:function(){return u()?"listitem":void 0},
tabindex:function(){return u()?0:void 0},
"on:keydown":_.Id()},_.T("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.T("div",{class:"ytContentListItemViewModelImageContainer"},_.T(_.X,{cond:function(){return G().image},
then:function(O){return _.T(_.RD,{data:O,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.T(_.HE,{data:function(){var O;
return(O=G())==null?void 0:O.avatar}},{avatarViewModel:_.z$})),_.T("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.T("div",{class:_.s3("ytContentListItemViewModelTitle",function(){a:{switch(G().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var O="ytContentListItemViewModelProminentTitle";
break a}O=void 0}return O})},_.T(_.eO,{text:function(){return G().title}})),_.T("div",{class:"ytContentListItemViewModelMetadata"},_.T(_.HE,{data:function(){return G().metadata}},{contentMetadataViewModel:function(O){return _.T(_.v9,{data:O.data,
layout:1})}})))),_.T("div",{class:"ytContentListItemViewModelActionButton"},_.T(_.HE,{data:function(){var O;
return(O=G())==null?void 0:O.actionButton}},{buttonViewModel:_.$Y,
toggleButtonViewModel:_.Tr})))},"zh");var Njx=_.D(function(Y){var G=Y.data,u=function(){var Q;return(Q=G())==null?void 0:Q.description},O=function(){var Q;
return(Q=G())==null?void 0:Q.title};
return _.T("ytfc-youth-basic-section-header-view-model",{class:_.s3("ytfcYouthBasicSectionHeaderViewModelHost",Y.className)},_.T("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.T(_.HE,{data:function(){var Q;return(Q=G())==null?void 0:Q.avatar}},{avatarViewModel:_.z$}),_.T(_.X,{cond:function(){var Q;
return _.e0((Q=G())==null?void 0:Q.themedImage)},
then:function(Q){return _.T(_.RD,{data:Q,alt:function(){var M,t;return(t=(M=O())==null?void 0:M.content)!=null?t:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.T("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.T(_.X,{cond:O,
then:function(){return _.T(_.eO,{text:O,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.T("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.T(_.HE,{data:function(){var Q;
return(Q=G())==null?void 0:Q.bottomBadge}},{badgeViewModel:function(Q){return _.T("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.T(_.b2,{data:Q.data}))}}),_.T(_.X,{cond:u,
then:function(){return _.T(_.eO,{text:u,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Ah");var j3b=_.D(function(Y){var G=Y.data;return _.T("ytfc-youth-section-body-view-model",{class:_.s3("ytfcYouthSectionBodyViewModelHost",Y.className)},_.T(_.HE,{data:function(){var u;return(u=G())==null?void 0:u.topContent}},{avatarStackViewModel:function(u){return _.T(_.W9,{data:u.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.T(_.eO,{text:function(){var u;
return(u=G())==null?void 0:u.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Bh");var Vg9=_.D(function(Y){var G=_.E(_.IE(!1,void 0,"SrK51e")),u=G.next().value,O=G.next().value,Q=function(){return Y.data().inlineExpansionEntityKey},M=_.Oe(wD9,Q),t=function(){if(Y.isSelected!==void 0)return Y.isSelected();
if(Q()){var L;return(L=M())==null?void 0:L.expanded}return u()};
G={};var K={};return _.T("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.U3(function(){Y.isSelected!==void 0||Q()||O(!u())})},_.T("div",{class:"ytInlineExpanderViewModelHeader"},_.T(_.HE,{data:function(){return Y.data().headerContent}},{youthBasicSectionHeaderViewModel:Njx}),_.T("div",{class:_.s3("ytInlineExpanderViewModelButton",(G.ytInlineExpanderViewModelButtonExpanded=t,G))},_.T(_.BZ,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:t(),accessibilityLabel:t()?_.Q6("SHOW_LESS",void 0,"Show Less"):_.Q6("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.T("div",{class:_.s3("ytInlineExpanderViewModelBody",(K.ytInlineExpanderViewModelBodyExpanded=t,K)),"aria-hidden":function(){return!t()}},_.T("div",{class:"ytInlineExpanderViewModelBodyContent"},_.T(_.HE,{data:function(){return Y.data().bodyContent}},{youthSectionBodyViewModel:j3b}))))},"Ch");var lHg=new _.Sb("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.BjS=_.D(function(Y){var G=function(){return Y.data().background},u=function(){return Y.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},O=function(){return Y.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},Q=_.sH().resolve(_.q3(lHg)),M={};
return _.T("yt-card-view-model",{el:_.iq(_.zi(function(){return Y.data().rendererContext})),
class:_.s3("ytCardViewModelHost",Y.className,(M.ytCardViewModelClickable=function(){return _.F9(Y.data().rendererContext)},M))},_.T(_.JZ,{contentId:function(){return Y.data().contentId}},function(){var t={};
return _.T("div",{class:_.s3("ytCardViewModelCardViewModelInner",function(){var K;return D2b(Y.data().cardStyle,(K=Y.isSelected)==null?void 0:K.call(Y))},function(){if(Y.isSelected===void 0){var K;
a:{switch((K=Y.data().cardState)==null?void 0:K.selectionState){case "CARD_SELECTION_STATE_SELECTED":K="ytCardViewModelSelected";break a}K=void 0}return K}})},_.T(_.HE,{data:G},{cinematicContainerViewModel:function(K){return _.T(_.sUy,{data:K.data})}}),_.T("div",{class:"ytCardViewModelContentWrapper"},_.T(_.X,{cond:function(){return!u()},
then:function(){var K={},L={};return _.T("div",{class:"ytCardViewModelTopContentContainer"},_.T("div",{class:_.s3("ytCardViewModelTopContent",(K.ytCardViewModelInnerPadding=function(){return!Y.data().disableTopContentPadding&&Y.data().topContent},K))},_.T(_.HE,{data:function(){return Y.data().topContent}},{contentListItemViewModel:function(g){return _.T(_.Skx,{data:g.data})},
basicContentViewModel:_.ei,linearLayoutViewModel:_.ik})),_.T("div",{class:_.s3("ytCardViewModelInlineTrailingAction",(L.ytCardViewModelInlineCenterTrailingAction=O,L.ytCardViewModelInlineTrailingActionMargin=function(){return Y.data().trailingAction},L))},_.T(_.HE,{data:function(){return Y.data().trailingAction}},{buttonViewModel:function(g){return _.T(_.$Y,{data:g.data})}})))}}),_.T("div",{class:_.s3((t.ytCardViewModelInnerPadding=function(){return!Y.data().disableBodyContentPadding&&Y.data().bodyContent},
t))},_.T(_.HE,{data:function(){return Y.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.HjB,
contentListItemViewModel:_.Skx,descriptionPreviewViewModel:_.Qr,inlineExpanderViewModel:function(K){return _.T(Vg9,{data:K.data,isSelected:Y.isSelected})},
linearLayoutViewModel:_.ik,listItemViewModel:_.og},Q&&{contentSectionViewModel:Q})))),_.T(_.X,{cond:function(){return u()},
then:function(){return _.T("div",{class:"ytCardViewModelOverlayTrailingAction"},_.T(_.HE,{data:function(){return Y.data().trailingAction}},{buttonViewModel:function(K){return _.T(_.$Y,{data:K.data})}}))}}))}))},"Dh");
}catch(e){_._DumpException(e)}
try{
var U29;_.Ze=function(Y){var G=document.createElement("link");_.nb(G,Y,"stylesheet");document.head.appendChild(G)};
_.De=function(Y,G){var u,O;return _.a(function(Q){u=document.createElement("div");u.id=Y.id;Y.className&&(u.className=Y.className);O=Y.element;if(!O)throw Error("dk");if(Y.location==="prepend")O.prepend(u);else if(Y.location==="appendChild")O.appendChild(u);else if(Y.location==="after")O.after(u);else throw Error("ek");return Q.return(_.Ay(u,G,"Ih"))})};
_.hF=function(Y){var G;return _.a(function(u){(G=document.getElementById(Y))&&G.remove();_.Sd(u)})};
_.dF=function(Y,G){var u=document.querySelector(Y);u?G(u):setTimeout(function(){_.dF(Y,G)},1E3)};
_.vdx=function(Y,G,u){var O;_.a(function(Q){if(Q.nextAddress==1)return(O=document.getElementById(Y))?Q.jumpTo(2):Q.yield(U29(Y,G,u),2);if(O=document.getElementById(Y))O.style.display="block";_.Sd(Q)})};
U29=function(Y,G,u){return _.a(function(O){return O.return(new Promise(function(Q){_.dF("div #panels",function(M){_.De({element:M,location:"appendChild",id:Y,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+u},G);Q()})}))})};_.bV=_.D(function(Y){var G=Y.text;var u=Y.onClick;var O=Y.color;var Q=Y.backgroundColor;var M=Y.buttonSize;var t=Y.disabled;var K=Y.iconName;var L=Y.iconSize;var g=Y.className;var P=Y.iconClassName;Y=Y.ariaLabel;var I=_.U3(function(n){u(n)}),k={};
return _.T("button",{class:_.s3("ytpStandardButtonsHost",(k.ytpStandardButtonsLarge=function(){return(M==null?void 0:M())==="large"},k),g),
"on:click":I,style:_.Yh({color:O,"background-color":Q}),disabled:t,"aria-label":Y},_.T(_.X,{cond:K,then:function(){return _.T(_.GS,{className:_.s3("ytpStandardButtonsIconContainer",P),icon:K,size:L})}}),G)},"Hh");_.JGN=_.D(function(Y){var G,u,O={};return _.T("div",{class:_.s3("ytprototypesEngagementPanelComponentHost",(O.ytprototypesEngagementPanelComponentHostMweb=Y.isMweb,O),Y.className),id:Y.id},_.T("div",{class:_.s3("ytprototypesEngagementPanelComponentEngagementPanelHeader",Y.headerClassName)},_.T("div",null,Y.header()),_.T("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.T("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(G=Y.HeaderButton)==null?void 0:G.call(Y)),
_.T(_.bV,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var Q;(Q=Y.onHide)==null||Q.call(Y);var M;if((M=Y.preventDefault)==null||!M.call(Y))if(Q=Y.id(),Q=document.getElementById(Q))Q.style.display="none"}}))),_.T("div",{class:_.s3("ytprototypesEngagementPanelComponentEngagementPanelContent",Y.contentClassName),
style:function(){var Q,M;return"height: "+(((Q=Y.height)==null?0:Q.call(Y))||((M=Y.isMweb)==null?0:M.call(Y))?"100%":"800px")+";"}},Y.content()),_.T("div",null,(u=Y.Footer)==null?void 0:u.call(Y)))},"Jh");
}catch(e){_._DumpException(e)}
try{
var cGj=function(Y){if(Y.backgroundStyle)switch(Y.backgroundStyle){case "CHAT_USER_TURN_BACKGROUND_STYLE_MONO":return"ytChatUserTurnViewModelMonoContainer";case "CHAT_USER_TURN_BACKGROUND_STYLE_GRADIENT":return"ytChatUserTurnViewModelGradientContainer";default:return"ytChatUserTurnViewModelDefaultContainer"}return Y.hasGradientBackground?"ytChatUserTurnViewModelGradientContainer":"ytChatUserTurnViewModelDefaultContainer"};_.k24=_.D(function(Y){var G=function(){return Y.data().choiceSelectedText};
return _.T("yt-chat-user-turn-view-model",{class:"ytChatUserTurnViewModelHost",style:_.Yh({"min-height":function(){var u,O;return _.$2B((u=Y.containerHeight)==null?void 0:u.call(Y),(O=Y.isLastItem)==null?void 0:O.call(Y))}}),
"data-target-id":function(){var u;return(u=Y.data().itemTargetId)!=null?u:""}},_.T(_.X,{cond:G,
then:function(){return _.T("div",{class:"ytChatUserTurnViewModelChoiceSelected"},_.T(_.eO,{text:G}))}}),_.T("div",{class:_.s3("ytChatUserTurnViewModelUserMessage",function(){return cGj(Y.data())})},function(){return Y.data().text}))},"Gh");
}catch(e){_._DumpException(e)}
try{
var s3x=function(Y){Y=_.z(Y,qkb);if(Y==null?0:Y.trustedAnimationUrl){var G;return(G=_.ow(Y.trustedAnimationUrl))==null?void 0:G.toString()}return Y==null?void 0:Y.animationUrl},qkb=new _.bu("lottieAnimationViewModel");_.nkR=_.D(function(Y){var G=function(){var M;return((M=_.sH().resolve(_.q3(_.Ee)))==null?0:M())&&Y.data().darkThemeAnimation?s3x(Y.data().darkThemeAnimation):Y.data().animation?s3x(Y.data().animation):Y.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},u=_.Jf(),O=_.sH().resolve(_.od);
_.o1(function(){requestAnimationFrame(function(){var M;(M=u.lottieEl)==null||M.addEventListener("DOMLoaded",function(){var t;(t=Y.onLottieLoaded)==null||t.call(Y)})})});
var Q={};return _.T("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){return Y.data().targetId||""},
"aria-label":function(){return Y.data().loadingAnimationA11yLabel||""},
role:function(){return Y.data().loadingAnimationA11yLabel?"progressbar":void 0},
style:_.Yh({"min-height":function(){var M,t;return _.$2B((M=Y.containerHeight)==null?void 0:M.call(Y),(t=Y.isLastItem)==null?void 0:t.call(Y))}})},_.T(_.JC,{"aria-hidden":"true",
className:_.s3((Q.ytChatLoadingViewModelRtl=O==="rtl",Q)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:G()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||G()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:G()}}},
animationRef:u}))},"Fh");
}catch(e){_._DumpException(e)}
try{
var Ytb,u1b,OA9,M9x,HAx;Ytb=function(Y){return String.raw.apply(String,[{raw:Y}].concat(_.c8(_.vs.apply(1,arguments).map(function(G){return G instanceof Array?G.join(""):G}))))};
u1b=function(Y){var G=_.vs.apply(1,arguments),u=G.length;if(!Array.isArray(Y)||!Array.isArray(Y.raw)||Y.length!==Y.raw.length||!_.eoV&&Y===Y.raw||!(_.eoV&&!_.ADX||_.Sp(Y))||u+1!==Y.length)throw new TypeError("aa");return new GNg(Object.freeze({strings:Object.freeze(Y),args:Object.freeze(G)}))};
OA9=function(){return _.vs.apply(0,arguments).flat().filter(function(Y){return Y}).join(";")};
M9x=function(){return u1b(Qng,OA9.apply(null,_.c8(_.vs.apply(0,arguments))))};
HAx=function(Y){Y==null||Y.addEventListener("DOMLoaded",function(){Y.goToAndPlay(Y.totalFrames-48,!0)})};
_.vw=function(Y){this.__isSoyCss=!0;this.css=Ytb.apply(null,[Y.strings].concat(_.c8(Y.args)))};
_.vw.prototype.toString=function(){return this.css};
var GNg=function(){_.vw.apply(this,arguments)};
_.m(GNg,_.vw);var Qng=_.hV(["",""]);var ET9=_.D(function(Y){var G=void 0,u=function(){return Y.data()},O=function(){return!!_.Iz(_.X2(u())).optionColor},Q=_.E(_.IE(-1,void 0,"m6Iyqc")),M=Q.next().value,t=Q.next().value,K=function(k){return M()===k},L=function(k){return u().correctAnswerIndex===k},g=function(){return M()!==-1};
Q=_.E(_.IE("",void 0,"jvMkLd"));var P=Q.next().value,I=Q.next().value;return _.T("yoututor-quiz-view-model",{class:_.s3("learningQuizComponentHost","learningYoututorQuizHost",Y.className),style:_.Yh({background:function(){return _.Iz(_.X2(u())).backgroundColor}})},_.T("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},P),_.T("div",{class:"learningQuizComponentQuizContainer"},_.T("div",{class:"learningQuizComponentQuiz"},_.T("div",{class:"learningQuizComponentQuizContent"},_.T(_.X,{cond:function(){return!!u().aiGeneratedQuizLabel},
then:function(){return _.T("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.T(_.eO,{text:function(){return u().aiGeneratedQuizLabel}}))}}),_.T("div",{class:"learningQuizComponentQuizHeader"},_.T("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.T("div",{class:"learningYoututorQuizText",
style:_.Yh({color:function(){return _.Iz(_.X2(u())).primaryTextColor}})},_.T(_.eO,{text:function(){return u().questionHeaderText}}))))),_.T("div",{role:"group",
class:_.s3("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.T(_.rc,{each:function(){return u().optionsData||[]}},function(k,n){var p={};
return _.T("button",{class:_.s3("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(p.learningQuizComponentQuizHover=function(){return!g()},p.learningQuizComponentQuizOptionWithCustomColor=O,p.learningYoututorQuizOptionSelectedCorrectOutline=function(){return g()&&L(n())},p.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return M()!==u().correctAnswerIndex&&K(n())},p.learningQuizComponentQuizIncorrectShake=function(){return M()!==
u().correctAnswerIndex&&K(n())},p)),
"on:click":_.U3(function(){_.er(_.M4(),{data:k});if(g())return!1;t(n());I(L(n())?u().correctAnswerAriaLabel||"":u().incorrectAnswerAriaLabel||"");return!1}),
style:_.Yh({background:"transparent"}),"aria-description":function(){return g()?L(n())?u().correctAnswerAriaLabel:u().incorrectAnswerAriaLabel:""},
"aria-disabled":g,el:_.iq(function(W){_.k2(271905,W,G,function(C){G=C})}),
"client-ve-type":271905},_.T("div",{class:"learningQuizComponentQuizOptionContainer"},_.T(_.eO,{text:k.optionText}),_.T(_.X,{cond:function(){var W=n();return g()&&(K(W)||L(W))},
then:function(){var W={};return _.T(_.GS,{className:_.s3("learningYoututorQuizOptionIcon",(W.learningQuizComponentQuizPulse=function(){return M()===u().correctAnswerIndex&&L(n())},W)),
size:24,icon:function(){return L(n())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.T(_.X,{cond:g,
then:function(){return _.T("div",{class:"learningYoututorQuizExplanationContainer"},_.T("div",{class:"learningYoututorQuizExplanationText"},_.T(_.eO,{text:function(){return u().explanationHeaderText}})),_.T(_.eO,{text:function(){return u().optionsData[M()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Kh");
ET9.idomCompat=!0;var t9g=_.D(function(Y){var G=Y.thumbsUp,u=Y.thumbsDown,O=Y.rightAlignThumbs;Y=_.E(_.IE(!1,void 0,"OxPsH"));var Q=Y.next().value,M=Y.next().value;Y=_.E(_.IE(!1,void 0,"V5vWne"));var t=Y.next().value,K=Y.next().value;Y={};return _.T("div",{class:_.s3("ytwThumbsUpDownThumbs",(Y.ytwThumbsUpDownRightAlign=function(){return O==null?void 0:O()},Y))},_.T(_.Tr,{data:G,
onToggle:function(L){M(L);t()&&K(!1)},
buttonShapeOverrides:function(){return{toggled:Q()}}}),_.T(_.Tr,{data:u,
onToggle:function(L){K(L);Q()&&M(!1)},
buttonShapeOverrides:function(){return{toggled:t()}}}))},"Lh");
t9g.idomCompat=!0;var aUj=_.D(function(Y){var G=function(){return Y.data().pendingStateEntityKey||""},u=_.Oe(_.hQN,G),O=function(){var K;
if(!(K=Y.disabled())){var L;K=!((L=u())==null||!L.isPendingResponse)}return K},Q=_.E(_.IE(M9x(""),void 0,"Q6q6y")),M=Q.next().value,t=Q.next().value;
_.o1(function(){requestAnimationFrame(function(){var K=Y.data().onShowAnimationMs||0;K=K>0?M9x("--chip-animation-duration: "+K+"ms;"):M9x("");t(K)})});
return _.T("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:M},_.T(_.rc,{each:function(){return Y.data().chipData||[]},
keyBy:"REFERENCE"},function(K){return _.T(KUo,{data:K,disabled:O,pendingStateKey:G,onError:Y.onError})}))},"Nh"),KUo=_.D(function(Y){var G=_.yg("button"),u=_.E(_.IE(!0,void 0,"baSFEf")),O=u.next().value,Q=u.next().value,M=function(){return Y.data().text.content},t=function(){return Y.data().transparentWhenLoading},K=_.Hx(_.A$.currentPageSubTypeSelector),L=function(){var P;
return(P=_.sH().resolve(_.q3(_.pg)))==null?void 0:_.cDw(P,K())},g=_.U3(function(P){var I,k,n,p,W,C,e,w;
return _.a(function(B){switch(B.nextAddress){case 1:P.stopPropagation();if(Y.disabled())return B.return();k=String(Math.floor(((I=_.vx())==null?void 0:I.getCurrentTime())||0)*1E3);n="youchat-"+Date.now();p=function(){_.pd(Y.data().onClick||{});var N=_.Zjg(Y.data().continuation),h=_.wF({clientMessageId:n,playerOffsetMs:k,pageContext:L()});return new Promise(function(q,U){_.pd(N,{form:{formData:h},commandController:{onSuccess:function(Mj,Xt){q(Xt)},
onServerError:function(Mj,Xt){U(Xt.error)}}})})};
W=_.d2g(Y.pendingStateKey());W(!0);_.RQS("#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");Q(!1);_.i3(B,2);return B.yield(p(),4);case 4:_.j1(B,3);break;case 2:C=_.b3(B),(w=(e=Y).onError)==null||w.call(e,C);case 3:W(!1),_.Sd(B)}})});
return _.T(_.X,{cond:O,then:function(){return _.T("div",{class:"ytwYouChatChipsDataChipWrapper"},_.T("button",{el:G,class:"ytwYouChatChipsDataChip","data-disabled":Y.disabled,"data-transparent-loading":t,"on:click":g,tabindex:0},M))}})},"Oh");var TaN=_.D(function(Y){var G=Y.data;var u=Y.initiallyExpanded;var O=function(){var g;return(g=G().conversationResourceData)==null?void 0:g.learningGuideData};
Y=_.E(_.SN(function(){var g;return(g=u==null?void 0:u())!=null?g:!1}));
var Q=Y.next().value,M=Y.next().value,t=function(){var g,P=_.z((g=O())==null?void 0:g.expandButton,_.Ck);P&&_.er(_.M4(),{data:P});M(!0)},K=_.p2(function(){var g,P;
return(P=(g=O())==null?void 0:g.sections)!=null?P:[]},void 0,"V7sYqc"),L=_.p2(function(){return K().length>4},void 0,"GFFPnd");
Y=_.p2(function(){var g;return!Q()&&L()&&(g=O())!=null&&g.expandButton?K().slice(0,4):K()},void 0,"Rbi7Ke");
return _.T("yt-conversation-resource-view-model",{class:_.s3("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.T(_.HE,{data:Y},{expandableMetadataViewModel:_.fEy}),_.T(_.X,{cond:function(){return L()&&!Q()},
then:function(){return _.T("div",{id:"showMoreButton"},_.T(_.HE,{data:function(){var g;return(g=O())==null?void 0:g.expandButton}},{buttonViewModel:function(g){return _.T(_.$Y,{data:g.data,
onClick:t})}}))}}))},"Ph");_.bjb=_.D(function(Y){var G=_.F("web_enable_youchat_ux_changes"),u=function(){var h,q;return((h=Y.data().text)==null?void 0:h.content)||((q=Y.data().textContent)==null?void 0:q.content)||""},O=function(){var h,q;
return(h=Y.data().webData)==null?void 0:(q=h.textResult)==null?void 0:q.content},Q=_.sH().resolve(_.od),M=_.Jf(),t=function(){return Y.data().chatResponseStyle},K=function(){return!Y.data().transparentBackground},L=function(){return Y.data().rightAlignThumbs},g=function(){return Y.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||Y.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"||!!Y.data().icon},
P=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:g()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:Y.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},I=function(){var h,q;
return Y.data().webData||((h=Y.data().text)==null?void 0:h.content)||Y.data().videoResultsData||Y.data().conversationResourceViewModel||Y.data().quiz||Y.data().yoututorQuiz||Y.data().richContent||Y.data().content||((q=Y.data().textContent)==null?void 0:q.content)},k=function(){return!!Y.data().sectionHeader||I()},n=function(){return Y.data().hideIcon||t()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||t()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?!1:k()},p=function(){var h;
return(h=Y.data().videoResultsData)==null?void 0:h.videoShelf},W=function(){var h;
return(h=Y.data().webData)==null?void 0:h.sourcesShelf},C=function(){return t()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||t()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:Y.data().thumbsDownViewModel&&Y.data().thumbsUpViewModel},e=function(){return _.z(Y.data().thumbsUpViewModel,_.eD)},w=function(){return _.z(Y.data().thumbsDownViewModel,_.eD)},B=function(){return g()};
_.o1(function(){requestAnimationFrame(function(){var h;(h=Y.shouldAnimateIcon)!=null&&h.call(Y)&&HAx(M.lottieEl)})});
var N={};return _.T("you-chat-item-view-model",{class:_.s3("ytwYouChatItemViewModelYouChatItemViewModel",(N.ytwYouChatItemViewModelColumnLayout=B,N.ytwYouChatItemViewModelYouChatItemViewModelNoZIndex=G,N)),style:_.Yh({"min-height":function(){var h,q;return _.$2B((h=Y.containerHeight)==null?void 0:h.call(Y),(q=Y.isLastItem)==null?void 0:q.call(Y))}}),
"data-target-id":function(){return Y.data().id||""}},_.T(_.X,{cond:function(){return Y.data().removeIcon||g()&&!n()?!1:k()},
then:function(){return _.T("div",{"aria-hidden":"true"},_.T(_.X,{cond:function(){return Y.data().icon},
then:function(h){var q={};return _.T(_.RD,{data:h,className:_.s3("ytwYouChatItemViewModelIcon",(q.ytwYouChatItemViewModelIconVertical=B,q)),alt:""})},
else:function(){var h={};return _.T(_.JC,{className:_.s3("ytwYouChatItemViewModelIcon",(h.ytwYouChatItemViewModelRtl=Q==="rtl",h.ytwYouChatItemViewModelHidden=function(){return!n()},h)),
animationName:"YOUCHAT_ICON",data:P,animationRef:M})}}))}}),_.T(_.X,{cond:k,
then:function(){var h={};return _.T("div",{class:_.s3("ytwYouChatItemViewModelHost",(h.ytwYouChatItemViewModelHostNoPadding=function(){return!!Y.data().sectionHeader&&!I()},h.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return t()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},h.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return t()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},h.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return t()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
h.ytwYouChatItemViewModelGradientBackground=K,h.ytwYouChatItemViewModelHostAlignStart=function(){return!g()},h.ytwYouChatItemViewModelHostDefaultFlex=function(){return!g()},h)),
role:"alert"},_.T(_.X,{cond:u,then:function(q){return _.T(_.DT,{text:q,wrapCodeBlocks:!0})}}),_.T(_.HE,{data:function(){return Y.data().sectionHeader}},{sectionHeaderViewModel:function(q){var U={};
return _.T(_.Ml,{data:q.data,className:_.s3("ytwYouChatItemViewModelSectionHeader",(U.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!Y.data().sectionHeader&&!I()},U)),
forceSmallLayout:!0})}}),_.T(_.X,{cond:O,
then:function(q){return _.T(_.DT,{text:q,wrapCodeBlocks:!0})}}),_.T(_.X,{cond:p,
then:function(){return _.T("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.T(_.HE,{data:function(){var q;return(q=Y.data().videoResultsData)==null?void 0:q.videoShelf}},{horizontalShelfViewModel:function(q){return _.T(_.wm,{data:q.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.T(_.X,{cond:W,
then:function(){return _.T("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.T(_.HE,{data:function(){var q;return(q=Y.data().webData)==null?void 0:q.sourcesShelf}},{horizontalShelfViewModel:function(q){return _.T(_.wm,{data:q.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.T(_.HE,{data:function(){return Y.data().conversationResourceViewModel}},{conversationResourceViewModel:TaN}),_.T(_.HE,{data:function(){return Y.data().quiz}},{learningJourneyQuizViewModel:_.RAy}),_.T(_.HE,{data:function(){return Y.data().yoututorQuiz}},{yoututorQuizViewModel:ET9}),_.T(_.HE,{data:function(){return Y.data().richContent}},{cardViewModel:_.BjS,
linearLayoutViewModel:_.ik}),_.T(_.HE,{data:function(){return Y.data().content}},{cardViewModel:_.BjS,
yoututorQuizViewModel:ET9,linearLayoutViewModel:_.ik,learningJourneyQuizViewModel:_.RAy,conversationResourceViewModel:TaN}),_.T(_.X,{cond:C,then:function(){return _.T(t9g,{thumbsUp:e,thumbsDown:w,rightAlignThumbs:L})}}))}}),_.T(_.X,{cond:function(){return Y.data().chipsData},
then:function(h){return _.T(aUj,{data:h,disabled:Y.pending,onError:Y.onError})}}))},"Rh");
_.bjb.idomCompat={callbacks:{onError:!0,onSend:!0}};
}catch(e){_._DumpException(e)}
try{
_.WM("hU04te");
_.IV4=_.D(function(Y){return _.T("yt-feedback-prompt-view-model",{class:_.s3("ytFeedbackPromptViewModelHost",Y.className)},_.T(_.X,{cond:function(){return Y.data().text},
then:function(G){return _.T(_.eO,{text:G,className:"ytFeedbackPromptViewModelPrompt"})}}),_.T(_.HE,{data:function(){return Y.data().likeButton}},{likeButtonViewModel:function(G){return _.T(_.xb,{data:G.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.T(_.HE,{data:function(){return Y.data().dislikeButton}},{dislikeButtonViewModel:_.rz}))},"Sh");
_.rU();
}catch(e){_._DumpException(e)}
try{
_.WM("NSzT5");
var C5T=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield(_.sH().resolve(_.$h),2);(Y=G.yieldResult)&&Y.pauseVideo();_.Sd(G)})};var y$G=_.hV(["https://portraits.google.com"]),e_T=_.hV(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),A$p=_.hV(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),oCO=_.fO(y$G),iKp=_.D(function(Y){function G(I){var k;if(I=(k=I.detail)==null?void 0:k.endpoint){k=_.z(I,_.Y3);var n;k&&((n=k.browseId)==null?0:n.startsWith("UC"))&&k.browseId!==Q()&&(_.hF("creator-chatbots-panel-persistent"),g.removeEventListener("yt-navigate-start",G))}}
var u=Y.usePlayerHeight;var O=Y.isPersistentPanel;var Q=Y.creatorChannelId;var M=_.Hx(_.xma),t=_.iq(function(I){var k=Q();k=_.fO(e_T,k);_.t0(I,1,k)}),K=function(){var I,k,n;
return _.a(function(p){return p.nextAddress==1?p.yield(_.sH().resolve(_.$h),2):(I=p.yieldResult)?p.return({video_id:(n=(k=I.getVideoData())==null?void 0:k.video_id)!=null?n:"",timestamp_sec:I.getCurrentTime().toString()}):p.return({})})};
_.sV("message",function(I){var k,n,p,W,C,e,w,B,N,h;return _.a(function(q){if(q.nextAddress==1){if(I.origin!==oCO.toString())return console.warn("Received message from untrusted origin:",I.origin),q.return();k=I.data;if(typeof k!=="object"||k===null||!k.action)return q.return();if(k.action==="pause")return q.yield(C5T(),0);if(k.action!=="getYouTubeContext")return q.jumpTo(0);p=((n=O)==null?0:n())?"creator-chatbots-panel-persistent":"creator-chatbots-panel";W=document.getElementById(p);if(((C=O)==null?
0:C())&&W&&W.style.display!=="none"&&I.source)return(e=I.source)==null||e.postMessage(JSON.stringify({youTubeContext:{}}),{targetOrigin:I.origin}),q.jumpTo(0);if(!I.source)return q.jumpTo(0);w=I.source;B=w.postMessage;N=JSON;h=N.stringify;return q.yield(K(),8)}B.call(w,h.call(N,{youTubeContext:q.yieldResult}),{targetOrigin:I.origin});return q.jumpTo(0)})});
var L=function(){var I,k;(I=t.value)==null||(k=I.contentWindow)==null||k.postMessage("ep_closed",oCO.toString())};
_.sV("yt-page-type-changed",function(){if(O==null?0:O()){var I;((I=_.sH().resolve(_.bv).getCurrentPage())==null?void 0:I.pageSubtype)!=="channels"&&(I=document.getElementById("creator-chatbots-panel-persistent"))&&(I.style.display="none")}else _.sH().resolve(_.bv).isOnWatch()||document.getElementById("creator-chatbots-panel")&&_.hF("creator-chatbots-panel")});
var g=_.sH().resolve(_.YY),P;(P=g)==null||P.addEventListener("yt-navigate-start",G);_.o1(function(){var I=(O==null?0:O())?"creator-chatbots-panel-persistent":"creator-chatbots-panel",k=document.getElementById(I);if(k){var n=new MutationObserver(function(p){p.forEach(function(W){W.type==="attributes"&&W.attributeName==="style"&&k.style.display==="none"&&L()})});
n.observe(k,{attributes:!0});_.w_(function(){n.disconnect()})}});
_.w_(function(){var I;(I=g)==null||I.removeEventListener("yt-navigate-start",G)});
Y={};return _.T("div",{class:_.s3("ytprotoCreatorChatbotsAppHost",(Y.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return M()},Y)),
style:_.Yh({height:function(){return(u==null?0:u())?"var(--ytd-watch-flexy-panel-max-height)":"100%"},
"max-height":function(){return(O==null?0:O())?"800px":void 0}})},_.T(_.JGN,{id:function(){return(O==null?0:O())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
preventDefault:function(){return!(O==null?0:O())},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){O!=null&&O()||(L(),_.hF("creator-chatbots-panel"))},
header:function(){return _.T("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.T("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.T(_.CR,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.T(_.bV,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var I=_.qp("https://portraits.google.com/gallery?ytChannelId="+Q());I&&_.Kb(window,I,"_blank");L()}})},
content:function(){return _.T("iframe",{el:t,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+oCO.toString()})}}))},"ip"),R_a=_.D(function(Y){var G=Y.creatorChannelId;
var u=_.Hx(_.xma),O=_.iq(function(M){var t=G();t=_.fO(A$p,t);_.t0(M,1,t)}),Q=_.QZ(_.M4(),{veType:281629});
Y={};return _.T("div",{class:_.s3("ytprotoCreatorChatbotsAppHost",(Y.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return u()},Y)),
style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.T(_.JGN,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.T("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.T("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.T(_.CR,{data:{text:"AI experiment",
type:0}}))},
content:function(){return _.T("iframe",{el:O,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.T("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.T(_.bV,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var M=_.qp("https://portraits.google.com/gallery?ytChannelId="+G());M&&_.Kb(window,M,"_blank");C5T();Q&&_.er(_.M4(),{visualElement:Q})},
"client-ve-type":281629}),_.T("div",null,"This will take you to Google Portraits"))}}))},"jp");var wEa=_.hV(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]),ZKs=_.fO(wEa);_.zlR=function(Y){Y=Y===void 0?"":Y;_.hF("creator-chatbots-panel");_.Ze(ZKs);_.dF("ytd-watch-metadata #top-level-buttons-computed",function(){document.getElementById("creator-chatbots-panel")||_.vdx("creator-chatbots-panel",function(){return _.T(iKp,{usePlayerHeight:!0,creatorChannelId:Y})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.p1M=function(Y){Y=Y===void 0?"":Y;_.hF("creator-chatbots-panel");_.dF("ytd-watch-metadata #top-level-buttons-computed",function(){_.vdx("creator-chatbots-panel",function(){return _.T(R_a,{creatorChannelId:Y})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.FE1=function(Y,G,u){Y=Y===void 0?"":Y;G=G===void 0?!1:G;u=u===void 0?"CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_UNKNOWN":u;var O,Q;return _.a(function(M){if(u==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"){if(O=document.getElementById("creator-chatbots-panel"))O.style.display="block";return M.jumpTo(0)}Q=document.getElementById("creator-chatbots-panel-persistent");return!G||Q?(!G&&Q&&Q.style.display==="none"&&(Q.style.display="block"),M.jumpTo(0)):M.yield(new Promise(function(t){_.dF("ytd-app",
function(K){_.De({element:K,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.T(iKp,{isPersistentPanel:!0,creatorChannelId:Y})});
t()})}),0)})};
_.rU();
}catch(e){_._DumpException(e)}
try{
_.WM("b3MoKf");

_.rU();
}catch(e){_._DumpException(e)}
try{
_.WM("f8YPh");

_.rU();
}catch(e){_._DumpException(e)}
try{
_.WM("QiZf0e");

_.rU();
}catch(e){_._DumpException(e)}
try{
_.WM("mcjWUc");

_.rU();
}catch(e){_._DumpException(e)}
try{
_.WM("m9Vw4");

_.rU();
}catch(e){_._DumpException(e)}
try{
_.WM("dIvQ6c");

_.rU();
}catch(e){_._DumpException(e)}
try{
_.WM("JoU6vf");

_.rU();
}catch(e){_._DumpException(e)}
try{
_.WM("HwlOhd");

_.rU();
}catch(e){_._DumpException(e)}
try{
_.WM("n0DHg");

_.rU();
}catch(e){_._DumpException(e)}
try{
_.WM("U9vrqd");

_.rU();
}catch(e){_._DumpException(e)}
try{
_.WM("dpUCFd");

_.rU();
}catch(e){_._DumpException(e)}
try{
_.WM("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 LUb,gTo,Se,Xcj,Plx,IUw,kN9,nTw,FU9,pcb,zT9,mtN,WUb,rob,NL,xtj,fUx,ClN,yox,eTg,Aox,oT9,iAw,RTg,wco,ZAg,Dto,hTy,dtN,Stj,Nax,V9B,lUb,Ba9,qtx,sno,cob,Utj,je,JoN,YK9,G1y,VJ,uAx,HXV,Esb,tcB,KRo,TJx,LRV,IZx,nsx,Pcb,bAo,FR9,p$S,zI9,lV,BS,mZx,WRN,xZ9,fZx,yvy,eIx,Av9,osB,iXy,RIj,w$x,ZXg,$9,DZo,dZN,bXx,SKo,NJB,jxy,lZB,BJx,$Zj,qKw,UZo,vs9,GbB,uhg,QKN,MyN,ENN,qL,tyV,ayb,TSw,L7B,X2b,Iyw,kbx,nNV,F79,p29,zSV,muo,W7S,rWy,xu9,fyS,Cgx,yWj,eS9,AWg,oN9,iQV,ZQx,Dug,hSN,duN,bQ9,SUo,NSj,jKN,lyV,BSN,$ug,qUN,sKB,cW9,Uug,
vNx,JW9,UJ,YGV,GLx,uXx,OUg,QiV,M7x,vS,HUB,EGo,t7y,KZw,asb,TKw,LZx,gGb,XCy,P8w,Isb,kLo,JF,nGy,FZN,pCx,zUg,mW9,WZj,rHB,xW9,fsw,C8x,yHb,eUS,AHy,oGw,iUx,RUB,wCB,ZUb,hU9,SGN,NKN,jiS,V7y,lsx,BKo,$WN,qGS,sib,cH9,UWg,vGS,JHb,Ga,uG,GAy,uEw,OBj,Q$V,Mlg,HBw,E3x,tlN,Kww,aby,Xmx,WwN,C0N,yhB,Rm9,ZB9,iBy,Ah9,j$N,BGj,v3B,emy,qbo,VlS,wmb,Yxb,ODN,HDg,Q4b,MN9,Eo9,TBN,KOb,LOS,gog,aSj,tN9,Xno,Hk,El,pnN,tc,zYB,mbj,KW,WOj,rj9,xb9,ooN,iDy,wnV,ZDj,Db9,hYb,a6,dby,bDo,Sx9,Ta,LW,j4b,VNb,gs,BBx,$bb,Xz,s4x,Pk,I6,ku,nW,vo9,Uby,
JjV,Y3o,Fz,GUN,pW,uSx,za,m5,a9b,Wk,THN,LaN,gyN,rs,Faj,Pqg,nyw,p3j,I9V,m4b,kUB,x49,Waw,rRB,f9B,yRN,Cqg,idx,D4B,y3,eA,w39,d4g,Zdb,hM9,o6,R6,ws,Zk,Ehj,U4N,avb,TEV,L2j,ghb,Pvj,BHg,$49,ds,sDB,Dk,hc,cRx,Xxx,tro,q3b,SA,CvN,es9,Afy,yfx,W2w,izy,Zz9,zsN,F2b,px9,d5w,m59,V3,wxb,rfN,RsN,fvB,nhS,x5b,SjS,cfo,U5b,vhx,Jfx,YeB,Gij,OKx,ck,M0N,HKB,t0y,Ki9,ajj,Tw9,LiS,gCB,XEx,P5N,IjB,Ul,kiw,nCw,Fi9,pEo,C5b,vk,fjg,mv9,xvS,r$N,Wib,z_x,y$9,e_w,A$9,oCV,Jc,iKS,R_j,h_N,GI,ZKb,O$,Yj,uX,DvB,wEj,dv9,bKb,SeN,Nw9,jdN,V0S,Bwo,$vN,
qe9,sdB,c$x,UvV,vCy,J$S,Ynj,GPj,O$9,QzN,H$g,Kzo,aLy,T4V,g29,P6y,kPb,n2w,Fzb,pU9,mFb,Wzx,rLw,xFN,fLj,C6S,yLN,ALo,o29,wUj,DFN,dF9,Z$B,i$y,R8o,jzb,N4g,b$o,V8y,Sn9,lLg,cL9,szy,$FV,qnB,QX,UFg,JLw,YAN,G09,HyS,EMj,t6o,KJN,aKS,TVg,LJj,gMN,XHw,P$o,IKV,k09,nMw,FJw,pHb,z3x,mzx,WJy,rVw,xzb,fK9,C$w,yVx,e3b,oMg,iy9,R3x,wHo,Zyy,DzN,h39,dzB,byb,SAN,V6b,BVS,qAx,sfV,cVb,UzN,NVN,jfw,YDb,Gyx,uU9,Ocx,QGb,M59,Hcx,EUy,t59,KKx,aBy,TQj,gUb,LKS,POx,IB9,nUw,FKo,z4w,mPV,tu,fBS,CO9,e4w,Arx,icb,oU9,Zcb,R49,way,DPN,h49,dPN,bcy,
SDy,NQB,jGb,V5g,lBb,BQw,$Pb,qDy,crg,sGB,UPb,YSx,GwS,u8x,KC,Oub,Q9x,Mqj,Hux,ES9,tqx,KGx,a0w,T0S,LGN,gSw,PTN,I0S,kww,nSb,m1S,rmj,x1S,CTw,f0j,ym9,e$N,Amx,oSg,R$o,wGN,Zux,D1x,h$y,d1V,bu9,SSg,N0y,j9o,Vqj,qSw,s9o,B09,$1o,l0g,cmx,JmN,U19,vSx,u_x,YRw,GjN,OVN,QON,MIN,HVN,tIx,KV9,auS,LVg,g5g,PJj,kjj,FVS,zbb,WVb,xOB,CJB,ebb,iVV,wpN,ZVB,DO9,dO9,hb9,SRx,NfB,jOB,VI9,TI,luN,BfV,$Ob,MbS,ED9,tbb,LjS,Xp,gDN,Xvj,Puo,kMj,IJS,nD9,Fj9,pv9,zWN,m$y,TGg,Wjb,rtS,x$b,ppy,fJS,K79,Cuw,ytg,eWw,Atj,oDx,iab,RWb,wvg,Zab;
LUb=function(Y,G,u){if(_.ly(Y))_.jo(Y,G,u);else for(Y=_.FZt(Y);;){var O=Y.next();if(O.done)break;G.call(u,O.value,void 0,Y)}};
gTo=function(){switch(_.d4t()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
Se=function(Y){if(!Y)return"browse";var G=Y.page,u=Y.url,O,Q,M,t=(O=Y.response)==null?void 0:(Q=O.responseContext)==null?void 0:(M=Q.webResponseContextExtensionData)==null?void 0:M.pageTheme;if(t)G=t.toLowerCase().replace(/_/g,"-");else if(G!=="watch"&&G!=="learning_journey_watch"){var K,L;if((G==="browse"||G==="settings")&&((K=Y.response)==null?0:(L=K.sidebar)==null?0:L.settingsSidebarRenderer))G="WEB_PAGE_TYPE_SETTINGS";else{var g,P;G==="browse"&&((g=Y.response)==null?0:(P=g.metadata)==null?0:P.channelMetadataRenderer)?
G="channel":u&&(G=_.Yij(u)||G)}}return G};
Xcj=function(){return new Promise(function(Y){var G=window;G.attmp!==void 0?Y(G.attmp):(G.attmq===void 0&&(G.attmq=[]),G.attmq.push(function(u){Y(u)}))})};
Plx=function(){var Y=_.So("yt.aba.att");return Y?Y:_.HQ.instance!==void 0?_.HQ.instance.nkt.bind(_.HQ.instance):null};
IUw=function(Y,G){var u,O,Q;return _.a(function(M){if(M.nextAddress==1){if(!_.F("attmusi")||!_.F("attmusi_ue"))return M.jumpTo(2);u=window;return u.attmp!==void 0?M.return(u.attmp.s(Y,G,6E4)):M.yield(Xcj(),3)}return M.nextAddress!=2?(O=M.yieldResult,M.return(O.s(Y,G,6E4))):(Q=Plx())?M.return(Q(Y,G,6E4)):M.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
kN9=function(Y,G,u,O,Q){G=G===void 0?[]:G;Q=Q?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:Q}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Sy(Y),dialogMessages:G.map(function(M){return _.Sy(M)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Sy(u),serviceEndpoint:Q}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Sy(O)}}}}}};
nTw=function(Y,G,u,O){u||(Y?O&&(O.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||O.WINDOW_SIZE_CHANGED&&(G.width!==window.innerWidth||G.height!==window.innerHeight)||O.SAFARI_ABORTED_BY_NEW_TRANSITION&&Y instanceof DOMException&&Y.name==="AbortError"&&Y.message.includes("Old view transition aborted by new view transition"))||_.o0(Y):_.o0(Error("Aj")))};
FU9=function(Y,G){G=G===void 0?{}:G;var u,O,Q,M,t,K,L,g,P,I,k,n,p;return _.a(function(W){switch(W.nextAddress){case 1:u=G;O=u.shouldWrap===void 0?!0:u.shouldWrap;Q=u.skipTransitionTimeoutMs===void 0?300:u.skipTransitionTimeoutMs;M=u.beforeTransition;t=u.afterTransition;if(!O||!document.startViewTransition||document.visibilityState==="hidden")return W.return(Y());K={width:window.innerWidth,height:window.innerHeight};L=!1;(g=M)==null||g();_.i3(W,2);P=document.startViewTransition(Y);I=setTimeout(function(){P.skipTransition();
L=!0},Q);
return W.yield(P.ready,4);case 4:return clearTimeout(I),W.yield(P.finished,5);case 5:clearTimeout(I);(k=t)==null||k();_.j1(W,0);break;case 2:n=_.b3(W),(p=t)==null||p(),nTw(n,K,L,G.ignoredErrors),_.Sd(W)}})};
pcb=function(Y){var G,u,O;return(Y=Y==null?void 0:(G=Y.response)==null?void 0:(u=G.contents)==null?void 0:(O=u.twoColumnBrowseResultsRenderer)==null?void 0:O.tabs)&&Array.isArray(Y)?Y.some(function(Q){var M,t;return(Q==null?void 0:(M=Q.tabRenderer)==null?void 0:M.tabIdentifier)==="TAB_ID_SPONSORSHIPS"&&(Q==null?void 0:(t=Q.tabRenderer)==null?void 0:t.selected)===!0}):!1};
zT9=function(Y,G,u){u=u===void 0?!1:u;var O=_.Qq(),Q=!!_.wp().queueProxy,M,t,K;Y=Y==null?void 0:(M=Y.response)==null?void 0:(t=M.currentVideoEndpoint)==null?void 0:(K=t.watchEndpoint)==null?void 0:K.playlistId;if((Q||Y)&&!_.F("web_watch_disable_playlist_auto_miniplayer"))return u&&(O.playlistWatchPageActivation=!0),!0;switch(Se(G)){case "yts-products":return u&&(O.productDetailsPageActivation=!0),!0;case "mini_app":return u&&(O.miniAppPageActivation=!0),!0;case "playables":return u&&(O.playablesDestPageActivation=
!0),!0;case "companion-canvas":return u&&(O.companionCanvasActivation=!0),!0;case "channel":return _.F("sponsorships_enable_redirect_to_membership_tab_desktop")&&pcb(G)?(u&&(O.channelPageActivation=!0),!0):!1;default:return!1}};
mtN=function(Y){Y=_.Ea1(Y);Y.length>0&&Y[0].focus()};
WUb=function(Y,G,u){for(var O=typeof Y==="string"?Y.split(""):Y,Q=Y.length-1;Q>=0;--Q)Q in O&&G.call(u,O[Q],Q,Y)};
rob=function(Y,G,u){for(var O=Y.length,Q=typeof Y==="string"?Y.split(""):Y,M=0;M<O;M++)if(M in Q&&G.call(u,Q[M],M,Y))return M;return-1};
NL=function(Y,G,u){G=rob(Y,G,u);return G<0?null:typeof Y==="string"?Y.charAt(G):Y[G]};
xtj=function(Y,G){G=rob(Y,G);G>=0&&_.oa1(Y,G)};
fUx=function(Y){return Array.prototype.concat.apply([],arguments)};
ClN=function(Y){var G=void 0;G!=null||(G=_.gb?1024:0);if(!_.tB(Y))throw _.QI("uint64");var u=typeof Y;switch(G){case 512:switch(u){case "string":return _.NRt(Y);case "bigint":return String((0,_.xV)(64,Y));default:return _.bTI(Y)}case 1024:switch(u){case "string":return _.jXU(Y);case "bigint":return _.hU((0,_.xV)(64,Y));default:return _.S4U(Y)}case 0:switch(u){case "string":return _.NRt(Y);case "bigint":return _.hU((0,_.xV)(64,Y));default:return _.dM1(Y)}default:return _.YV(G,"Unknown format requested type for int64")}};
yox=function(Y,G,u){if(G)return _.Cx(Y);var O;return(O=_.AB(Y))!=null?O:u?"":void 0};
eTg=function(Y){Y!=null&&(Y=Y.JSC$9141_value_||"",Y=typeof Y==="string"?Y:new Uint8Array(Y));return Y};
Aox=function(Y,G){var u=_.fxt(G);u!=="javascript:"&&u!=="data:"&&Y.setAttribute("href",G)};
oT9=function(Y,G,u){return Math.abs(Y-G)<=(u||1E-6)};
iAw=function(Y,G){var u=[];for(G=G||0;G<Y.length;G+=2)_.Gmj(Y[G],Y[G+1],u);return u.join("&")};
RTg=function(Y,G){var u=arguments.length==2?iAw(arguments[1],0):iAw(arguments,1);return _.Yyj(Y,u)};
wco=function(Y,G){if(/-[a-z]/.test(G))return null;if(_.hrk&&Y.dataset){if(_.puj()&&!(G in Y.dataset))return null;Y=Y.dataset[G];return Y===void 0?null:Y}return Y.getAttribute("data-"+_.uc(G))};
ZAg=function(){var Y=_.Zn&&_.Ft(_.Na2,10)>=0,G;if(G=_.bxE)G=_.Ft(_.Stl,10)>=0;var u=_.MP&&_.Ft(_.Na2,85)>=0;return _.Hc||Y||G||u};
Dto=function(Y){var G=_.f4k(Y);return G&&ZAg()?-Y.scrollLeft:G&&_.D4(Y,"overflowX")!="visible"?Y.scrollWidth-Y.clientWidth-Y.scrollLeft:Y.scrollLeft};
hTy=function(Y,G){G=Math.max(G,0);_.f4k(Y)?ZAg()?Y.scrollLeft=-G:Y.scrollLeft=Y.scrollWidth-G-Y.clientWidth:Y.scrollLeft=G};
dtN=function(){var Y=window.location.hash;Y.charAt(0)==="#"&&(Y=Y.charAt(1)==="!"?Y.substring(2):Y.substring(1));return _.Vg(Y)};
Stj=function(){var Y=bAo;_.So("yt.ads.biscotti.getId_")||_.U5("yt.ads.biscotti.getId_",Y)};
Nax=function(Y){_.U5("yt.ads.biscotti.lastId_",Y)};
V9B=function(){var Y={};for(_.fG=new jnb(Y.handleError===void 0?_.ij:Y.handleError,Y.logEvent===void 0?_.eK:Y.logEvent);_.CG.length>0;)switch(Y=_.CG.shift(),Y.type){case "ERROR":_.fG.logError(Y.payload);break;case "EVENT":_.fG.logEvent(Y.eventType,Y.payload)}};
lUb=function(Y,G,u){return _.jiT(function(O){return u?O.userIdentifier!==void 0&&!Y.includes(O.userIdentifier)&&u.includes(O.publicName):O.userIdentifier!==void 0&&!Y.includes(O.userIdentifier)},G)};
Ba9=function(Y){var G,u;return _.a(function(O){if(O.nextAddress==1)return G=_.Xw("YtIdbMeta hasAnyMeta other"),O.yield(_.jiT(function(Q){return Q.userIdentifier!==void 0&&Q.userIdentifier!==G},Y),2);
u=O.yieldResult;return O.return(u.length>0)})};
qtx=function(Y,G){$tj||($tj=_.AN.addLowPriorityJob(function(){var u,O,Q,M,t;return _.a(function(K){switch(K.nextAddress){case 1:return K.yield(_.vK(),2);case 2:u=K.yieldResult;if(!u)return K.return();O=!0;_.i3(K,3);return K.yield(lUb(Y,u,G),5);case 5:Q=K.yieldResult;if(!Q.length){O=!1;K.jumpTo(6);break}M=Q[0];return K.yield(_.Vl(M.actualName),7);case 7:return K.yield(_.$g(M.actualName,u),6);case 6:_.j1(K,4);break;case 3:t=_.b3(K),_.yl(t),O=!1;case 4:_.AN.cancelJob($tj),$tj=0,O&&qtx(Y,G),_.Sd(K)}})}))};
sno=function(){var Y;return _.a(function(G){return G.nextAddress==1?G.yield(_.vK(),2):(Y=G.yieldResult)?G.return(Ba9(Y)):G.return(!1)})};
cob=function(Y){var G=100;G=G===void 0?500:G;var u,O,Q,M,t,K;return _.a(function(L){return L.nextAddress==1?(u=_.DE("INNERTUBE_CONTEXT_CLIENT_NAME",0),O=[u,(0,_.GC)()-2592E6],Q=[u,(0,_.GC)()],M=IDBKeyRange.bound(O,Q),L.yield(_.X34(Y),2)):L.nextAddress!=3?(t=L.yieldResult,K=[],L.yield(_.BK(t,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(g){K.length=0;return _.uB(g.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:M,direction:"prev"},function(P){if(P.getValue()&&K.length<
G)return K.push(P.getValue()),P.delete().then(function(){return P.continue()})})}),3)):L.return(K)})};
Utj=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield(_.vK(),2);Y=G.yieldResult;if(!Y||!_.PK()&&!_.F("nwl_init_require_datasync_id_killswitch")||!_.id1())return G.jumpTo(0);_.w3j=!0;_.RMg.isNwlInitialized=_.w3j;return G.yield(_.oG4().awaitInitialization(),0)})};
je=function(Y,G){_.vyA[Y]=!0;var u=_.G5();u&&u.publish.apply(u,arguments);_.vyA[Y]=!1};
JoN=function(){if(_.AjA()&&!vTb){var Y=function(u){u=u.data;if(u.op==="serializedGelBatch"){var O=_.vhg.get(u.key);O&&(_.YeY(u.serializedBatch,O.client,O.resolve,O.networklessOptions,O.isIsolated,O.useVSSEndpoint,O.dangerousLogToVisitorSession,O.requestsOutstanding),_.vhg.delete(u.key))}},G=_.eYj();
G&&(G.addEventListener("message",Y),G.onerror=function(){_.vhg.clear()});
vTb=!0}};
YK9=function(){this.relativeTimeStart_=_.$M()};
G1y=function(Y,G){Y!=null&&this.append.apply(this,arguments)};
VJ=function(){for(var Y=Array(36),G=0,u,O=0;O<36;O++)O==8||O==13||O==18||O==23?Y[O]="-":O==14?Y[O]="4":(G<=2&&(G=33554432+Math.random()*16777216|0),u=G&15,G>>=4,Y[O]=_.lut[O==19?u&3|8:u]);return Y.join("")};
uAx=function(){return _.rJ("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
HXV=function(){var Y=_.gX.clone(OXV),G;return(new _.a0(function(u,O){Y.onSuccess=function(Q){_.duy(Q)?u(new Qxj(Q)):O(new Mco("Request failed, status="+_.Ql(Q),"net.badstatus",Q))};
Y.onError=function(Q){O(new Mco("Unknown request error","net.unknown",Q))};
Y.onTimeout=function(Q){O(new Mco("Request timed out","net.timeout",Q))};
G=_.td("//googleads.g.doubleclick.net/pagead/id",Y)})).thenCatch(function(u){if(u instanceof _.oz){var O;
(O=G)==null||O.abort()}return _.Ld(u)})};
Esb=function(Y,G,u){u=u===void 0?!1:u;var O,Q,M,t,K;return _.a(function(L){switch(L.nextAddress){case 1:_.LG("SOCS",Y,34128E3,"youtube.com",!0);if(_.uO)return Q=fetch(G,{method:"POST",mode:_.ec(G),credentials:_.yA(G),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),M=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.ec("/upgrade_visitor_cookie?eom=1"),credentials:_.yA("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),L.yield(Promise.all([Q,M]).then(function(g){return g[1]}),5);
fetch(G,{method:"POST",mode:_.ec(G),credentials:_.yA(G),cache:"no-store",headers:{"Content-Type":"text/plain"}});return L.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.ec("/upgrade_visitor_cookie?eom=1"),credentials:_.yA("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:O=L.yieldResult;L.jumpTo(3);break;case 5:O=t=L.yieldResult;case 3:if(!O.ok)throw Error("vf");return L.yield(O.text(),7);case 7:K=L.yieldResult,
!K.includes('"state_switch":true')&&!u||K.includes("skip_reload_for_test")||window.location.reload(),_.Sd(L)}})};
tcB=function(Y){return _.a(function(G){return G.nextAddress==1?G.yield(Esb(Y.socsCookie,Y.savePreferenceUrl,!0),2):G.return()})};
KRo=function(Y){return _.a(function(G){return G.nextAddress==1?G.yield(Esb(Y.socsCookie,Y.savePreferenceUrl),2):G.return()})};
TJx=function(Y){a:{var G="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(G="EMBEDDED_PLAYER_MODE_PFL");var u=Y.raw_embedded_player_response;if(!u&&(Y=Y.embedded_player_response))try{u=JSON.parse(Y)}catch(Q){break a}if(u)b:{Y=aZN;for(var O in Y)if(Y[O]==u.embeddedPlayerMode){G=Y[O];break b}}}return G==="EMBEDDED_PLAYER_MODE_PFL"};
LRV=function(){if(_.F("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("wf");if(!_.Buj())return Error("xf");var Y=_.DE("PLAYER_VARS",{});if(_.gX.get(Y,"privembed",!1)=="1")return Error("yf");if(TJx(Y))return Error("zf")};
IZx=function(Y){Y=Y.xhr.responseText;if(!_.EI(Y,")]}'"))throw new gsy;Y=JSON.parse(Y.substr(4));if((Y.type||1)>1)throw new gsy;Y=Y.id;Nax(Y);X$V=_.wu(Y);Pcb(18E5,2);return Y};
nsx=function(Y,G){G=new k1B(G);Nax("");X$V=_.rq1(G);Y>0&&Pcb(12E4,Y-1);throw G;};
Pcb=function(Y,G){_.MN(function(){HXV().then(IZx,function(u){return nsx(G,u)}).thenCatch(_.nu)},Y)};
bAo=function(){var Y=LRV();if(Y!==void 0)return _.Ld(Y);X$V||(X$V=HXV().then(IZx).thenCatch(function(G){return nsx(2,G)}));
return X$V};
FR9=function(){var Y=document;return NL(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(G){return"on"+G.toLowerCase()in Y})};
p$S=function(Y){Y.addEventListener("click",function(G){var u=G.target;u&&u.getAttribute("href")&&(u=u.getAttribute("href"),_.Kb(window,u,"_blank"),G.preventDefault(),G.stopImmediatePropagation())})};
zI9=function(){var Y=_.KQ();Y.info||(Y.info={});return Y.info};
lV=function(){return(_.F("csi_use_time_origin")||_.F("csi_use_time_origin_tvhtml5"))&&_.Xh.timeOrigin?Math.floor(_.Xh.timeOrigin):_.Xh.timing.navigationStart};
BS=function(Y){return Math.round(lV()+Y)};
mZx=function(){var Y;if(_.F("csi_use_performance_navigation_timing")){var G,u,O,Q=_.Xh==null?void 0:(Y=_.Xh.getEntriesByType)==null?void 0:(G=Y.call(_.Xh,"navigation"))==null?void 0:(u=G[0])==null?void 0:(O=u.toJSON)==null?void 0:O.call(u);Q?(Q.requestStart=BS(Q.requestStart),Q.responseEnd=BS(Q.responseEnd),Q.redirectStart=BS(Q.redirectStart),Q.redirectEnd=BS(Q.redirectEnd),Q.domainLookupEnd=BS(Q.domainLookupEnd),Q.connectStart=BS(Q.connectStart),Q.connectEnd=BS(Q.connectEnd),Q.responseStart=BS(Q.responseStart),
Q.secureConnectionStart=BS(Q.secureConnectionStart),Q.domainLookupStart=BS(Q.domainLookupStart),Q.isPerformanceNavigationTiming=!0,Y=Q):Y=_.Xh.timing}else Y=_.F("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Xh.timing)):_.Xh.timing;return Y};
WRN=function(){if(_.Xh.getEntriesByType){var Y=_.Xh.getEntriesByType("paint");if(Y=NL(Y,function(u){return u.name==="first-paint"}))return BS(Y.startTime)}var G;
_.F("csi_use_performance_navigation_timing")?G=_.Xh.getEntriesByType("first-paint")[0].startTime:G=_.Xh.timing.msFirstPaint;return G?Math.max(0,G):0};
xZ9=function(){var Y=window.location.protocol,G=_.Xh.getEntriesByType("resource");G=_.vH(G,function(u){return u.name.indexOf(Y+"//fonts.gstatic.com/s/")===0});
(G=rvg(G,function(u,O){return O.duration>u.duration?O:u}))&&G.startTime>0&&G.responseEnd>0&&(_.LQ("wffs",BS(G.startTime)),_.LQ("wffe",BS(G.responseEnd)))};
fZx=function(Y,G){Y=document.querySelector(Y);if(!Y)return!1;var u="",O=Y.nodeName;O==="SCRIPT"?(u=Y.src,u||(u=Y.getAttribute("data-timing-href"))&&(u=window.location.protocol+u)):O==="LINK"&&(u=Y.href);_.aA(document)&&Y.setAttribute("nonce",_.aA(document));return u?(Y=_.Xh.getEntriesByName(u))&&Y[0]&&(Y=Y[0],u=lV(),_.LQ("rsf_"+G,u+Math.round(Y.fetchStart)),_.LQ("rse_"+G,u+Math.round(Y.responseEnd)),Y.transferSize!==void 0&&Y.transferSize===0)?!0:!1:!1};
yvy=function(Y,G){_.bi(function(){_.Tb("").info.actionType=Y;G&&_.ZE("TIMING_AFT_KEYS",G);_.ZE("TIMING_ACTION",Y);var u=_.l_u(_.DE("TIMING_INFO",{}));Object.keys(u).length>0&&_.gS(u);u={isNavigation:!0,actionType:_.ilY(_.DE("TIMING_ACTION"))};var O=_.DE("PREVIOUS_ACTION");O&&(u.previousAction=_.ilY(O));if(O=_.DE("CLIENT_PROTOCOL"))u.httpProtocol=O;if(O=_.DE("CLIENT_TRANSPORT"))u.transportProtocol=O;(O=_.FA())&&O!=="UNDEFINED_CSN"&&(u.clientScreenNonce=O);O=gTo();if(O===1||O===-1)u.isVisible=!0;O=
_.rMt().loadType==="cold";var Q=zI9();O||(O=Q.yt_lt==="cold");if(O){u.loadType="cold";O=zI9();Q=mZx();var M=lV(),t=_.DE("CSI_START_TIMESTAMP_MILLIS",0);t>0&&!_.F("embeds_web_enable_csi_start_override_killswitch")&&(M=t);M&&(_.LQ("srt",Q.responseStart),O.prerender!==1&&_.hka(M));O=WRN();O>0&&_.LQ("fpt",O);O=mZx();O.isPerformanceNavigationTiming&&_.gS({performanceNavigationTiming:!0},void 0);_.LQ("nreqs",O.requestStart,void 0);_.LQ("nress",O.responseStart,void 0);_.LQ("nrese",O.responseEnd,void 0);
O.redirectEnd-O.redirectStart>0&&(_.LQ("nrs",O.redirectStart,void 0),_.LQ("nre",O.redirectEnd,void 0));O.domainLookupEnd-O.domainLookupStart>0&&(_.LQ("ndnss",O.domainLookupStart,void 0),_.LQ("ndnse",O.domainLookupEnd,void 0));O.connectEnd-O.connectStart>0&&(_.LQ("ntcps",O.connectStart,void 0),_.LQ("ntcpe",O.connectEnd,void 0));O.secureConnectionStart>=lV()&&O.connectEnd-O.secureConnectionStart>0&&(_.LQ("nstcps",O.secureConnectionStart,void 0),_.LQ("ntcpe",O.connectEnd,void 0));_.Xh&&"getEntriesByType"in
_.Xh&&xZ9();O=[];if(document.querySelector&&_.Xh&&_.Xh.getEntriesByName)for(var K in Ccg)Ccg.hasOwnProperty(K)&&(Q=Ccg[K],fZx(K,Q)&&O.push(Q));if(O.length>0)for(u.resourceInfo=[],K=_.E(O),O=K.next();!O.done;O=K.next())u.resourceInfo.push({resourceCache:O.value})}_.gS(u);u=_.aK();u.preLoggedGelInfos||(u.preLoggedGelInfos=[]);K=u.preLoggedGelInfos;u=_.f_y();O=void 0;for(Q=0;Q<K.length;Q++)if(M=K[Q],M.loadType){O=M.loadType;break}if(_.rMt().loadType==="cold"&&(u.loadType==="cold"||O==="cold")){O=_.xEI();
Q=_.aK();Q=Q.gelTicks?Q.gelTicks:Q.gelTicks={};for(var L in O)L in Q||typeof O[L]==="number"&&_.LQ(L,_.P2(L));L={};O=!1;K=_.E(K);for(Q=K.next();!Q.done;Q=K.next())O=Q.value,_.W$(u,O),_.W$(L,O),O=!0;O&&_.gS(L)}_.$E1(!0);L=_.DE("TIMING_ACTION");_.So("ytglobal.timingready_")&&L&&_.ukt()&&_.Bp1()&&_.jra()})()};
eIx=function(Y){var G,u,O,Q=(O=(u=((G=Y.mainDownloadsListEntity)!=null?G:{})[_.nKj])==null?void 0:u.refresh)!=null?O:"",M;Y=(M=Y.refresh)==null?void 0:M[Q];Q=Y!=null?Y:{};return(Q==null?0:Q.refreshTime)?Number(Q==null?void 0:Q.refreshTime):0};
Av9=function(Y,G){var u=_.LU(Y);return G.every(function(O){var Q;O=O==null?void 0:(Q=O.playbackDataEntity)==null?void 0:Q.key;if(!O)return!1;Q=_.UU(_.B2(O).entityId,"mainVideoEntity");return!!u[Q]})};
osB=function(Y){return Y.ui.guideIsVisibleButNotPersistent};
iXy=function(Y){return Y.ui.scrollAtTop};
RIj=function(Y){return Y.ui.tabGesturesIsActive};
w$x=function(Y){Y=_.KU(Y.entities);return _.iZy(Y).length};
ZXg=function(Y,G){if(G){var u;Y=(u=_.v2(Y.entities,"downloadQualityPickerEntity",G))!=null?u:void 0}else Y=void 0;return Y};
$9=function(Y,G,u){var O;return _.a(function(Q){if(Q.nextAddress==1)return Q.yield(G(),2);O=Q.yieldResult;u(O,Y);_.Sd(Q)})};
DZo=function(){return _.a(function(Y){return Y.nextAddress==1?Y.yield((LRV()!==void 0?_.Ld(Error("Af")):HXV()).then(function(){return 1},function(G){if(G.message==="Biscotti id is disabled")return 3;
_.R0("Failed fetching bid");return 0}),2):Y.return(Y.yieldResult)})};
dZN=function(){var Y=_.b8("NmxtMHl0LWhhdmVuLWVtYmVkLXBsYXllciNxY2NoYnhycQ=="),G=_.b8("bWUjYWh0bzJjMWR3MW9oaWZyYQ==");return document.querySelector(G+hIN+Y)?0:1};
bXx=function(Y){var G=document.getElementsByTagName("ytd-enforcement-message-view-model");G.length===0||getComputedStyle(G[0]).display==="none"?Y(0,"p.h_"):Y(1,"p.h_")};
SKo=function(){return _.iNy(_.hM)};
NJB=function(){return _.R7T()===0?0:_.wdt()};
jxy=function(){return _.bNT(_.Yut([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
lZB=function(){return _.rqu(VcN)};
BJx=function(Y){_.a(function(G){switch(G.nextAddress){case 1:return G.yield($9("b.f_",DZo,Y),2);case 2:return G.yield($9("j.s_",_.mhI,Y),3);case 3:return G.yield($9("r.s_",_.Fst,Y),4);case 4:return G.yield($9("e.h_",lZB,Y),5);case 5:if(!_.F("ab_det_sc_inj")){G.jumpTo(6);break}return G.yield($9("s.i_",_.Aqt,Y),6);case 6:if(_.F("ab_deg_unex_thr")){G.jumpTo(8);break}return G.yield($9("a.o_",_.yqt,Y),8);case 8:if(_.F("ks_get_o_pp")){G.jumpTo(10);break}return G.yield($9("g.o_",_.CLj,Y),10);case 10:if(_.F("ks_det_gpbl")){G.jumpTo(12);
break}return G.yield($9("p.i_",_.fDI,Y),12);case 12:return G.yield($9("f.i_",_.tQY,Y),14);case 14:return G.yield($9("a.b_",_.k9Y,Y),15);case 15:return G.yield($9("p.m_",_.TDt,Y),16);case 16:if(!_.F("ab_det_el_h_v2")){G.jumpTo(17);break}return G.yield($9("n.h_",jxy,Y),17);case 17:return G.yield($9("o.p_",SKo,Y),19);case 19:return G.yield($9("e.i_",dZN,Y),20);case 20:if(_.F("ab_det_apm"))return G.yield($9("o.a_",NJB,Y),0);G.jumpTo(0)}})};
$Zj=function(Y){switch(Y){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:_.YV(Y,"unknown result type")}};
qKw=function(Y,G,u){G=_.quj[G];u={detected:Y===0,source:G.kyu,detectionResult:$Zj(Y),contentCpn:u};_.eK("biscottiBasedDetection",u);_.dl1.increment(G.kyu,Y);G.u7u!==void 0&&_.ZE("CATSTAT",_.BDj(Y,G))};
UZo=function(){sxb=0;var Y=[_.Ob(!0)];cvg&&_.sK(cvg,"yt-window-resized",Y)};
vs9=function(){sxb||(sxb=_.AN.addLowPriorityJob(UZo,200))};
GbB=function(){Jvb=0;YU9=_.vI2(document);var Y=[YU9];cvg&&_.sK(cvg,"yt-window-scrolled",Y)};
uhg=function(){Jvb||(Jvb=_.AN.addLowPriorityJob(GbB,200))};
QKN=function(Y){Y=Y===void 0?null:Y;OQo.push(_.U0(window,"resize",vs9));OQo.push(_.U0(window,"scroll",uhg));Y&&(cvg=Y)};
MyN=function(Y){Y=Y.target.result;Y.objectStoreNames.contains("swpushnotificationsstore")&&Y.deleteObjectStore("swpushnotificationsstore");Y.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
ENN=function(){return HQw?Promise.resolve(HQw):new Promise(function(Y,G){var u=self.indexedDB.open("swpushnotificationsdb");u.onerror=G;u.onsuccess=function(){var O=u.result;if(O.objectStoreNames.contains("swpushnotificationsstore"))HQw=O,Y(HQw);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),ENN()};
u.onupgradeneeded=MyN})};
qL=function(Y){var G=new _.I2("Error accessing DB");return ENN().then(function(u){return new Promise(function(O,Q){try{var M=u.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(Y);M.onsuccess=function(){var t=M.result;O(t?t.value:null)};
M.onerror=function(){G.params={key:Y,source:"onerror"};Q(G)}}catch(t){G.params={key:Y,
thrownError:String(t)},Q(G)}})},function(){return null})};
tyV=function(Y,G){var u={};u.key=Y;u.value=G;return ENN().then(function(O){return new Promise(function(Q,M){try{var t=O.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(u);t.onsuccess=function(){Q()};
t.onerror=function(){M()}}catch(K){M(K)}})})};
ayb=function(){var Y=_.a$.getLocalStorage();Y&&K79(Y,Y.mechanism.__iterator__(!0))};
TSw=function(Y){_.a(function(G){if(G.nextAddress==1)return G.yield(Y.delete("yt-appshell-assets"),2);_.Sd(G)})};
L7B=function(Y){return _.l9((0,_.fpU)(),Y)};
X2b=function(){var Y;_.a(function(G){return G.nextAddress==1?G.yield(sJ.getInstance(),2):(Y=G.yieldResult)?G.yield(gNb(Y),0):G.jumpTo(0)})};
Iyw=function(){var Y;_.a(function(G){return G.nextAddress==1?G.yield(cS.getInstance(),2):(Y=G.yieldResult)?G.yield(PgN(Y),0):G.jumpTo(0)})};
kbx=function(Y){TSw(Y);X2b();Iyw()};
nNV=function(Y){var G,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(_.Foy(Y),2);if(G=O.yieldResult){var Q;a:{if(G.headers&&(Q=G.headers.get("date"))&&(Q=Date.parse(Q),!isNaN(Q))){Q=Math.round((0,_.GC)()-Q);break a}Q=-1}u=Q;if(u>-1)return O.return(u)}return O.return(-1)})};
F79=function(){var Y=_.OI.caches,G=_.hy("IS_SHELL_LOAD"),u,O;_.a(function(Q){if(Q.nextAddress==1)return u=-1,G?Q.yield(nNV(Y),3):(O=lV(),u=Math.round((0,_.GC)()-O),Q.jumpTo(2));Q.nextAddress!=2&&(u=Q.yieldResult);u>=0&&u<2147483648&&_.kN({appInstallDataAgeMs:u});_.Sd(Q)})};
p29=function(Y){var G=_.bI(_.OI.location.href),u={};"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(O){var Q=G.JSC$10357_queryData_.getValues(O);if(Q==null?0:Q.length)u[O]=Q});
return _.CO(Y,new Map(Object.entries(u)))};
zSV=function(Y){return _.Z0I(_.wAj(Y&16777215))<.5};
muo=function(Y){Y=Y.match(/(.*)::.*::.*/);if(Y!==null)return Y[1]};
W7S=function(Y){if(_.DwT()){var G=Object.keys(window.localStorage);G=_.E(G);for(var u=G.next();!u.done;u=G.next()){u=u.value;var O=muo(u);O===void 0||Y.includes(O)||self.localStorage.removeItem(u)}}};
rWy=function(){if(!_.DwT())return!1;var Y=_.Xw(),G=Object.keys(window.localStorage);G=_.E(G);for(var u=G.next();!u.done;u=G.next())if(u=muo(u.value),u!==void 0&&u!==Y)return!0;return!1};
xu9=function(Y){return tyV("NotificationsDisabled",Y)};
fyS=function(){var Y=_.Yg("service_worker_scope");try{return navigator.serviceWorker.getRegistration(Y)}catch(G){return Promise.reject(G)}};
Cgx=function(){return Notification.permission!="granted"?Promise.resolve():fyS().then(function(Y){return Y?Y.pushManager.getSubscription().then(function(G){if(G)return Promise.resolve();G={userVisibleOnly:!0,applicationServerKey:_.JY("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return Y.pushManager.subscribe(G).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
yWj=function(Y){return fyS().then(function(G){if(!G||!G.active)return Promise.reject(new _.I2("serviceworker.postMessage",Y,G));try{return G.active.postMessage(Y),Promise.resolve()}catch(u){return Promise.reject(u)}})};
eS9=function(){yWj({type:"notifications_register",data:_.DE("ID_TOKEN")})};
AWg=function(Y){return!(!Y||!Y.pushManager)};
oN9=function(){return fyS().then(AWg).catch(function(){return!1})};
iQV=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?oN9():Promise.resolve(!1)};
ZQx=function(){var Y={isWide:_.TR.get("wide","0")==="1"},G=_.EU();if(G=G.getFlag(165)||G.getFlag(174))Y.theme=_.x3(!0);if(_.GsT()){var u=_.rG()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";Y.systemTheme=u}!G&&_.F("parent_tools_enable_app_settings")&&_.li(window.location.href).theme!==void 0&&(Y.theme=_.x3());if((G=RSo)?!_.gX.equals(G,Y):Y)G={currentValue:Y},w2V&&(G.timeSinceLastSnapshotSecs=Math.round(((0,_.GC)()-w2V)/1E3)),RSo&&(G.previousValue=RSo),_.eK("appSettingsCaptured",G),RSo=
Y,w2V=(0,_.GC)()};
Dug=function(){if(!_.hy("LOGGED_IN"))return Promise.resolve(!1);var Y=_.Yg("service_worker_push_force_notification_prompt_tag");return Y?qL("PromptTags").then(function(G){if(!G)return!0;var u=[];try{u=JSON.parse(G)}catch(O){return!1}return u&&u.indexOf(Y)==-1}):Promise.resolve(!1)};
hSN=function(){var Y=_.Jy("service_worker_push_prompt_delay_microseconds");return Y?qL("PromptTime").then(function(G){return Promise.resolve(Date.now()-Y>(G||0))}):Promise.resolve(!0)};
duN=function(){var Y=_.Jy("service_worker_push_logged_out_prompt_watches");return Y==-1?Promise.resolve(!1):qL("WatchCount").then(function(G){return G>=Y})};
bQ9=function(){var Y=_.Vx(document,"yt-push-prompt-modal-bg");Y&&_.Oy(Y)};
SUo=function(){return _.Jy("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):qL("PromptCount").then(function(Y){Y||(Y=0);return Promise.resolve(Y<_.Jy("service_worker_push_prompt_cap"))})};
NSj=function(Y){return _.hy("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.hy("LOGGED_IN")&&(Y===void 0?0:Y)?Dug().then(function(G){if(G)return!0;G=[SUo(),hSN()];_.hy("LOGGED_IN")||G.push(duN());return Promise.all(G).then(function(u){return u.every(function(O){return O})})}):Promise.resolve(!1)};
jKN=function(){qL("PromptCount").then(function(Y){return tyV("PromptCount",Y+1)}).then(function(){return tyV("PromptTime",Date.now())}).then(function(){var Y=_.Yg("service_worker_push_force_notification_prompt_tag");
if(Y)return qL("PromptTags").then(function(G){var u=[];if(G)try{u=JSON.parse(G)}catch(O){return!1}u||(u=[]);u.push(Y);return tyV("PromptTags",JSON.stringify(u))})})};
lyV=function(){VyS||bQ9()};
BSN=function(Y){Y.style.zIndex=2147483648;Y.style.pointerEvents="auto";Y.style.backgroundColor="rgba(0, 0, 0, 0.6)";Y.style.width="100%";Y.style.height="100vh";Y.style.position="absolute";Y.style.top="0";Y.style.left="0";Y.style.border="none"};
$ug=function(){var Y=_.Vx(document,"yt-push-prompt-modal-bg");VyS=_.F("service_worker_push_prompt_modal_ignore_click");Y?BSN(Y):(Y=_.fu("div",{id:"yt-push-prompt-modal-bg"}),BSN(Y),document.body.appendChild(Y),_.$4j(document,"click",lyV))};
qUN=function(){var Y=arguments;_.F("service_worker_push_prompt_modal_enable")&&$ug();return Notification.requestPermission().then(function(G){bQ9();var u=document.getElementById("ticker");u&&(u.className=u.classList.remove("show"));if(G=="granted")return Cgx().then(function(){xu9(!1);eS9();return Promise.resolve(!0)});
G=="denied"&&eS9();return Promise.resolve(!1)}).catch(function(){bQ9();
return Promise.reject.apply(Promise,_.c8(Y))})};
sKB=function(Y){Y=Y===void 0?!1:Y;var G=_.el().client;if(G&&G.browserVersion){var u=G.browserVersion,O=G.browserName=="CHROME"&&_.Ft(u,"50.0.0")<0;G=G.browserName=="OPERA"&&_.Ft(u,"42.0.0")<0;if(O||G)return Promise.resolve()}return iQV().then(function(Q){if(!Q)return Promise.resolve();Q=Cgx().then(function(){return yWj({type:"notifications_check_registration",data:_.DE("ID_TOKEN")})});
return Notification.permission!="default"?Q.catch(function(){}):Q.then(function(){return NSj(Y)}).then(function(M){if(M)return jKN(),qUN().then(function(){})}).catch(function(){})})};
cW9=function(Y){return AWg(Y)?sKB():Promise.resolve()};
Uug=function(Y){var G=Y.installing||Y.waiting;return Y.active||!G?Promise.resolve(Y):new Promise(function(u){var O=function(Q){Q=Q.target;if(Q.state==="activated"||Q.state==="redundant")G.removeEventListener("statechange",O),u(Y)};
G.addEventListener("statechange",O)})};
vNx=function(){var Y=new _.rwU("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.Qo(Y,{mainAppWeb:_.Ah()});var G=_.$fU;_.F("service_worker_forward_exp_params")&&(G=p29(G));try{var u=_.t4A(G).catch(function(){_.Mz(Y,"FAILURE");return new Promise(function(){})});
_.F("service_worker_push_enabled")&&u.then(function(O){_.Mz(Y,"SUCCESS");return O}).then(Uug).then(cW9)}catch(O){if(_.Mz(Y,"FAILURE"),O.name!=="SecurityError")throw O;
}};
JW9=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&vNx()};
UJ=function(Y,G,u,O,Q){var M={};G&&(M[G]=u);O?M.errorType=O:Q&&(M.errorReason=Q);_.eK(Y,M);_.A1()};
YGV=function(Y,G){var u={};G&&(u.serializedYpcFamilyCreateLoggingParams=G);_.eK(Y,u);_.A1()};
GLx=function(Y,G){var u={};u.serializedYpcRefundFlowLoggingParams=G;Y&&(u.eventType=Y);_.eK("ypcRefundFlowEvent",u);_.A1()};
uXx=function(Y){Y&&_.a5A("transactionFlowSucceeded",Y)};
OUg=function(){UJ("ypcRedeemFlowStarted")};
QiV=function(Y){UJ("ypcRedeemFlowFailed",void 0,void 0,void 0,Y)};
M7x=function(Y){Y&&UJ("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",Y,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
vS=function(Y){return function(G,u){var O=Y||u.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(G,u,{get:function(){var Q;return this.$?this.$[O]:(Q=_.uM(this))==null?void 0:Q.querySelector("#"+O)},
enumerable:!0,configurable:!0})}};
HUB=function(Y){if(Y=_.xk1(Y)){var G;(G=Y.sources)!=null&&G[0]?(G=_.CHt(Y),G=G<1?"VERTICAL":G>1?"HORIZONTAL":"SQUARE"):G=void 0;return G}};
EGo=function(Y){return(Y=_.xk1(Y))?_.CHt(Y):0};
t7y=function(Y){var G,u,O,Q,M,t,K;_.a(function(L){if(L.nextAddress==1)return L.yield(_.r5y(),2);if(L.nextAddress!=3){if(!L.yieldResult)return L.return(!1);G=[];return L.yield(_.B3.keys(),3)}u=L.yieldResult;O=_.E(u);for(Q=O.next();!Q.done;Q=O.next())M=Q.value,t=_.mnt(M),K=t.datasyncId,!K||Y.includes(K)||G.push(_.B3.delete(M));return L.return(Promise.all(G).then(function(g){return g.some(function(P){return P})}))})};
KZw=function(){var Y,G,u,O,Q,M,t;return _.a(function(K){if(K.nextAddress==1)return K.yield(_.r5y(),2);if(K.nextAddress!=3){if(!K.yieldResult)return K.return(!1);Y=_.Xw("cache contains other");return K.yield(_.B3.keys(),3)}G=K.yieldResult;u=_.E(G);for(O=u.next();!O.done;O=u.next())if(Q=O.value,M=_.mnt(Q),(t=M.datasyncId)&&t!==Y)return K.return(!0);return K.return(!1)})};
asb=function(Y,G){return _.v2(Y.entities,"timedMarkersListSyncEntity",G)};
TKw=function(Y,G){return _.v2(Y.entities,"liveReactionsDataEntity",G)};
LZx=function(Y,G){Y=_.v2(Y.entities,"booleanEntity",G);return!(!Y||!Y.value)};
gGb=function(Y,G){var u=_.FA();u&&Y&&_.y6(u,_.Kd(Y),G)};
XCy=function(Y){return Y.watch.isWatchActive};
P8w=function(Y){return Y.watch.isLearningJourneyActive};
Isb=function(Y){return Y.watch.watchWindowSize};
kLo=function(Y){return!_.xma(Y)};
JF=function(Y){return Y.watch.watchScrollTop};
nGy=function(Y){return Y.watch.isLiveChatCollapsed};
FZN=function(Y,G){return _.v2(Y.entities,"flowStateEntity",G)};
pCx=function(){var Y=_.sH().resolve(_.q3(_.Ju_));return Y?Y.getCurrentTime():0};
zUg=function(Y,G){Y={videoId:Y};G&&(Y.playlistId=G);return Y};
mW9=function(){var Y,G,u,O,Q,M,t,K,L,g,P,I,k,n;return _.a(function(p){switch(p.nextAddress){case 1:Y={},G=_.CXt(),u=_.E(Object.entries(G)),O=u.next();case 4:if(O.done){p.jumpTo(3);break}Q=O.value;M=_.E(Q);t=M.next().value;K=M.next().value;L=t;g=K;if(!g){p.jumpTo(5);break}return p.yield(g(),8);case 8:Y[L]=p.yieldResult;case 5:O=u.next();p.jumpTo(4);break;case 2:P=_.E(),I=P.next();case 9:if(I.done){p.jumpTo(3);break}k=I.value;n=G[k];if(!n){p.jumpTo(10);break}return p.yield(n(),13);case 13:Y[k]=p.yieldResult;
case 10:I=P.next();p.jumpTo(9);break;case 3:return p.return(Y)}})};
WZj=function(){var Y;_.a(function(G){if(G.nextAddress==1)return G.yield(mW9(),2);Y=G.yieldResult;return G.yield(navigator.clipboard.writeText(JSON.stringify(Y,null,2)),0)})};
rHB=function(Y,G){if(Y&&G){var u=_.QY();u().set(Y,G);_.Ziy(u())}};
xW9=function(Y,G){if(Y&&G){var u=_.QY();u().set(Y,G);_.Ziy(u())}};
fsw=function(Y,G){return _.v2(Y.entities,"superThanksSelectedTierEntity",G)};
C8x=function(Y,G){return _.v2(Y.entities,"contextNoteUserRatingEntityPayload",G)};
yHb=function(){_.F("web_watch_log_theater_mode")&&_.LK("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
eUS=function(Y,G,u){if(!Y.includes("START_TIME_PLACEHOLDER")||!Y.includes("END_TIME_PLACEHOLDER"))return Y;var O=new Date(0),Q=new Date(0);O.setUTCMilliseconds(G);Q.setUTCMilliseconds(u);return Y.replace("START_TIME_PLACEHOLDER",_.e7(O,7)).replace("END_TIME_PLACEHOLDER",_.e7(Q,7))};
AHy=function(Y,G,u){var O=u.minimumRowsOfVideosBetweenSections===void 0?1:u.minimumRowsOfVideosBetweenSections;return Y<(u.minimumRowsOfVideosAtStart===void 0?2:u.minimumRowsOfVideosAtStart)||G!==null&&Y-G<=O?!1:!0};
oGw=function(Y,G){var u=0,O=0;Y=_.E(Y);for(var Q=Y.next();!Q.done;Q=Y.next()){var M=Q.value;if(M.richItemRenderer)M.richItemRenderer.rowIndex=O,M.richItemRenderer.colIndex=u++,u===G&&(u=0,O++);else if(M.richGroupRenderer&&M.richGroupRenderer.numColumns!==void 0)M.richGroupRenderer.rowIndex=O,M.richGroupRenderer.colIndex=u,u+=M.richGroupRenderer.numColumns,u===G&&(u=0,O++);else if(M.richSectionRenderer){var t=Q=void 0;if(M=_.z((Q=M)==null?void 0:(t=Q.richSectionRenderer)==null?void 0:t.content,_.tt4))M.rowIndex=
O++}}};
iUx=function(Y,G){var u=G.contentElement;G=G.rendererToTagNameMap;if(u&&G&&G.size!==0){for(var O=new Map,Q=_.E(u.children),M=Q.next();!M.done;M=Q.next()){M=M.value;var t=M.tagName.toLowerCase(),K=O.get(t);K||(K=[],O.set(t,K));K.push(M)}if(O.size!==0)for(Q=Math.min(Y.length,u.children.length),M=new Map,t=0;t<Q;t++){K=Object.keys(Y[t])[0];K=G.get(K);if(!K)break;var L=M.get(K);L===void 0&&(L=0,M.set(K,L));var g=O.get(K);if(!g||L>=g.length)break;M.set(K,L+1);K=g[L];L=u.children[t];L!==K&&(_.Z9=!0,_.D9.set(K,
!0),u.insertBefore(K,L),_.D9.delete(K),_.Z9=!1)}}};
RUB=function(Y,G,u,O,Q,M,t){O=O===void 0?{}:O;if(!Y||!Y.length)return{orderedContent:[]};Y=Y.slice();var K=[],L=[];Q=null;for(var g=0,P=function(B){L.sort(function(q,U){return U.skippedOnRow-q.skippedOnRow});
for(var N,h=(N=L.shift())==null?void 0:N.content;h;)!h.richSectionRenderer&&B||K.push(h),N=void 0,h=(N=L.shift())==null?void 0:N.content},I=void 0,k=void 0,n=new Set;Y.length>0||L.length>0;){for(var p=[],W=G;W>0;){var C=void 0,e=void 0,w=(e=L[0]&&L[0].skippedOnRow<g?(C=L.shift())==null?void 0:C.content:void 0)!=null?e:Y.shift();
if(!w)break;if(w.richItemRenderer)C=w.richItemRenderer.targetId,e=void 0,C&&((e=t)==null?0:e.has(C))&&(e=t.get(C),!I||e&&e.timestamp>I.timestamp)&&(I=e,k&&n.add(k),k=C),p.push(w),W--;else if(w.richGroupRenderer&&w.richGroupRenderer.numColumns!==void 0)w.richGroupRenderer.numColumns<=W?(p.push(w),W-=w.richGroupRenderer.numColumns):W===G&&w.richGroupRenderer.numColumns>G?(p.push({richGroupRenderer:Object.assign({},w.richGroupRenderer,{numColumns:G})}),W=0):L.push({content:w,skippedOnRow:g});else if(w.richSectionRenderer)if(AHy(g,
Q,O)&&W===G){K.push(w);Q=g;g++;continue}else L.push({content:w,skippedOnRow:g});else if(w.continuationItemRenderer){P(!0);K.push(w);W=0;break}if(W===0)K.push.apply(K,_.c8(p));else if(!u&&Y.length===0){P(!1);K.push.apply(K,_.c8(p));W=0;break}}g++;I&&(K.push(I.content),g++);k=I=void 0}oGw(K,G);M&&iUx(K,M);return{orderedContent:K,pinnedContentNotShownTargetIds:n}};
wCB=function(Y){return Y.shorts.isSmallScreenSqueezeback};
ZUb=function(Y){return Y.shorts.isPlaybackStarted};
hU9=function(){if(_.F("kevlar_home_skeleton")&&!DWx){var Y=document.querySelector("#home-page-skeleton");Y&&(_.pQ("hgcr"),_.Oy(Y),DWx=!0)}};
SGN=function(){if(_.Buj()){var Y=_.DE("PLAYER_VARS",{});if(_.gX.get(Y,"privembed",!1)!="1"&&!TJx(Y)){var G=function(){dWj=!0;"google_ad_status"in window?_.ZE("DCLKSTAT",1):_.ZE("DCLKSTAT",2)};
try{_.fX(_.sAN,G)}catch(u){}bUS.push(_.AN.addLowPriorityJob(function(){if(!(dWj||"google_ad_status"in window)){try{_.hzj(_.sAN.toString(),G)}catch(u){}dWj=!0;_.ZE("DCLKSTAT",3)}},5E3))}}};
NKN=function(Y){return!!Y.getOptions("captions")};
jiS=function(Y){return(Y=Y.getOption("captions","track"))?!!Y.displayName:!1};
V7y=function(Y){return NL(Y,function(G){return G.languageCode==="en"})};
lsx=function(Y){var G=Yu;if(jiS(Y))Y.setOption("captions","stickyLoading",{}),Y.setOption("captions","track",{});else{var u=NL(_.cxA(Y),function(O){return O.displayName===G});
Y.setOption("captions","track",u)}};
BKo=function(Y,G){return{popup:{searchSuggestionReportDialog:{searchQuery:Y,title:_.Q6("SBOX_INAPPROPRIATE_TITLE"),suggestions:G,categoryLabel:_.Q6("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Q6("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Q6("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Q6("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Q6("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Q6("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Q6("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Q6("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.Q6("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.Q6("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
$WN=function(Y){var G=_.EU();if(G.getFlag(202))G=G.getFlag(201);else{var u;G=(Y==null?void 0:(u=Y.config)==null?void 0:u.settingOnByDefault)!==void 0?Y.config.settingOnByDefault:!_.TP("web_shorts_cinematics_disabled_by_default")}return G};
qGS=function(Y){var G=_.EU();_.tW(0,201,Y);_.tW(0,202,!0);G.save()};
sib=function(Y){var G,u,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B;return _.a(function(N){switch(N.nextAddress){case 1:return N.yield(_.GL(),2);case 2:return(G=N.yieldResult)?N.yield(_.dTy(G),3):N.return();case 3:u=N.yieldResult;if(!u)return N.return();Q=((O=u.offlineVideos)==null?void 0:O.length)||0;t=((M=u.offlinePlaylists)==null?void 0:M.length)||0;if(Q===0&&t===0)return N.return();K=0;if(u.offlineVideos)for(L=_.E(u.offlineVideos),g=L.next();!g.done;g=L.next())P=g.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
P.videoState&&(K+=1);Y.offline_videos_count=Q.toString();_.F("kevlar_log_offline_current_network_type_ks")||(Y.offline_current_network_type=(I=_.IsA())!=null?I:"CONN_INVALID");_.F("kevlar_log_updated_time_for_smart_downloads")&&(k=_.Zs().getState().entities,n=_.Ii(k),p=eIx(k),Y.offline_smart_downloads_last_sync_time_ms=n.toString(),Y.offline_smart_downloads_next_sync_time_ms=p.toString());Y.offline_videos_playable=K.toString();Y.offline_playlists_count=t.toString();u.offlineVideos&&(W=u.offlineVideos.reduce(function(h,
q){q.downloadedBytes&&(h+=Number(q.downloadedBytes));return h},0).toString())&&(Y.offline_used_disk_space_bytes=W);
if(!((C=navigator)==null?0:(e=C.storage)==null?0:e.estimate)){N.jumpTo(4);break}return N.yield(navigator.storage.estimate(),5);case 5:w=N.yieldResult,Y.offline_free_disk_space_bytes=(((B=w)==null?void 0:B.quota)||0).toString();case 4:Y.offline_client_state=JSON.stringify(u),_.Sd(N)}})};
cH9=function(Y){Y=Y.match(/(.*)::.*::.*/);if(Y!==null)return Y[1]};
UWg=function(Y){if(_.pXA()){var G=Object.keys(window.sessionStorage);G=_.E(G);for(var u=G.next();!u.done;u=G.next()){u=u.value;var O=cH9(u);O===void 0||Y.includes(O)||self.sessionStorage.removeItem(u)}}};
vGS=function(){if(!_.pXA())return!1;var Y=_.Xw(),G=Object.keys(window.sessionStorage);G=_.E(G);for(var u=G.next();!u.done;u=G.next())if(u=cH9(u.value),u!==void 0&&u!==Y)return!0;return!1};
JHb=function(Y){if(!Y)return 0;var G=Y.getPresentingPlayerType(),u=Y.getVideoData();return u&&u.isLive?(Y=Y.getProgressState(G),Y.seekableEnd-Y.seekableStart):Y.getDuration(G)};
Ga=function(Y,G){_.k2(G,Y,function(){return YbV[G]},function(u){YbV[G]=u;
if(!_.F("mweb_player_ve_show_ks")){var O=_.FA(0);O&&u&&_.AW(O,u)}})};
uG=function(Y){(Y=YbV[Y])&&_.Jw(_.M4(),Y)};
GAy=function(Y,G){for(var u=_.E(Object.keys(Y)),O=u.next();!O.done;O=u.next())if(O=O.value,Y[O]!==G[O])return!1;return!0};
uEw=function(){return document.getElementById("player-control-overlay")};
OBj=function(Y){Y!==-1&&_.F("player_controls_log_creation_enabled")&&uEw()&&(_.pQ("pcu_cs",Y),_.pQ("pcu_ce"))};
Q$V=function(Y){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:Y}}]}}}};
Mlg=function(Y,G,u,O){var Q=_.F("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;G=Object.assign({},{text:G,hasGradientBackground:u},O&&{backgroundStyle:O},Q&&{itemTargetId:Q});Q=_.F("web_enable_chat_autoscroll_to_user_turn")&&Q?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:Q,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:G}],
insertByPositionInSection:{sectionTargetId:Y,position:"INSERTION_POSITION_LAST"}}}]},Q?{scrollConfig:Q}:{})}}};
HBw=function(Y,G){return _.v2(Y.entities,"booleanEntity",G)};
E3x=function(){return function(Y){_.hj(_.t$("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:Y}))}};
tlN=function(Y,G){G.stack&&(Y.stack+="\n"+G.stack);return Y};
Kww=function(){this.isInputValid_=!0;this.JSC$19643_streamPos_=0;this.leftoverInput_=""};
aby=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19646_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Xmx=function(Y){var G=TGg(Y,"Content-Type");if(!G)return null;G=G.toLowerCase();if(G.startsWith("application/json"))return G.startsWith("application/json+protobuf")?new Lwb:new _.Pc;if(G.startsWith("application/x-protobuf")){Y=TGg(Y,"Content-Transfer-Encoding");if(!Y)return new aby;if(Y.toLowerCase()=="base64")return new g3S}return null};
WwN=function(Y,G,u,O){var Q=new P0x(function(K,L){return Ibx.has(L)?K.sentinel==="gal"&&K.event!==void 0:!1},function(K){K.event?(K=kAb(K.event),K=!K||n3V(O,K)?!0:_.Ty(Y.lastEvent,Ol,2,Q3)?!_.Ty(K,Mm,1,Q3)&&!_.Ty(K,Ol,2,Q3):!_.Ty(K,Mm,1,Q3)&&!_.Ty(K,Ol,3,Q3)):K=!0;
return K});
u=_.CO(Y.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",FwS(u)]]));if(Y.nestedOrigins!==void 0)for(var M=_.E(Y.nestedOrigins),t=M.next();!t.done;t=M.next())u=_.CO(u,new Map([["origin",t.value]]));return pmg(Q,u,G).then(function(K){K=zmb(K.event);if(_.Ty(K,Mm,1,Q3)){var L,g=(L=_.fc(K,Mm,1,Q3))==null?void 0:_.mK(L,2);g&&O.JSC$19698_logErrorEvent(m7o(g));L=_.fc(K,Mm,1,Q3);_.mK(L,2)===4?(K=_.fc(K,Mm,1,Q3),K={statusCode:11,statusMessage:_.zy(K,
3)}):(K=_.fc(K,Mm,1,Q3),K={statusCode:12,statusMessage:_.zy(K,3)});return K}_.Ty(K,Ol,3,Q3)?(K=_.fc(K,Ol,3,Q3),K={statusCode:1,consentLanguageKeys:_.zy(K,2)}):K={statusCode:1};return K}).catch(function(K){return K.errorCode!==void 0?{statusCode:K.errorCode,
statusMessage:K.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
C0N=function(Y){var G={};if(Y===void 0||Y===null)return G;Y.getToken()!==void 0&&rhj(Y.getToken())&&rhj(Y.getToken()).length>0&&(G.scopes=new Set(rhj(Y.getToken())));Y.getToken()!==void 0&&x7x(Y.getToken())&&x7x(Y.getToken()).length>0&&(G.capabilities=new Set(x7x(Y.getToken())));_.zy(Y,3)!==void 0&&(G.consistencyKey=_.zy(Y,3));Y.getName()!==void 0&&Y.getName()!==""&&(G.linkName=Y.getName());_.aG(Y,fbw,4)&&(Y=_.QH(Y,fbw,4),Y=Object.assign({},_.zy(Y,1)&&{userId:_.zy(Y,1)},_.zy(Y,2)&&{displayName:_.zy(Y,
2)},_.zy(Y,3)&&{email:_.zy(Y,3)},_.zy(Y,5)&&{username:_.zy(Y,5)},_.zy(Y,4)&&{profilePicture:_.zy(Y,4)}),G.profile=Y);return G};
yhB=function(Y,G){var u=Y.flowParams,O;return{serviceId:u.serviceId,sessionId:u.sessionId,currentFlow:Y.currentFlow,googleScopesString:G,linkingSessionSerialized:Y.session.serialize(),consentLanguageKeys:u.consentLanguageKeys,callerState:Y.callerState,dynamicUrlParameters:u.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(O=u.partnerConfigMinReadTimestamp)==null?void 0:O.serialize()}};
Rm9=function(Y){var G=Y.googleScopes!==void 0?Array.from(Y.googleScopes).join(","):"";emy(yhB(Y,G),Y.config.localStorage);G=Ah9(Y);return G===null?Promise.resolve(o3x):G.start().then(function(u){var O,Q=(O=u.link)==null?void 0:O.consistencyKey;return u.statusCode===1&&Y.googleScopes!==void 0&&Y.googleScopes.size>0&&Q!==void 0?(O=Y.flowParams,iBy(O.serviceId,O.sessionId,Y.googleScopes,Q,O.galService,Y.config,u)):u})};
ZB9=function(Y){var G=Ah9(Y);return G===null?Promise.resolve(wmb({statusCode:7,statusMessage:"Failed to create flow object"},Y.callerState)):G.complete().then(function(u){var O,Q=(O=u.link)==null?void 0:O.consistencyKey;return u.statusCode===1&&Y.googleScopes!==void 0&&Y.googleScopes.size>0&&Q!==void 0?(O=Y.flowParams,iBy(O.serviceId,O.sessionId,Y.googleScopes,Q,O.galService,Y.config,u)):wmb(u,Y.callerState)},function(u){return wmb({statusCode:12,
statusMessage:"Failed to complete the flow: "+u.message},Y.callerState)})};
iBy=function(Y,G,u,O,Q,M,t){return D79(Q,{serviceId:Y,sessionId:G,googleScopes:u,consistencyKey:O}).then(function(){return t},function(K){return Q.deleteLink({serviceId:Y,
sessionId:G,accountLinkingEntryPoint:M.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+K.message}},function(L){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+L.message}})})};
Ah9=function(Y){switch(Y.currentFlow){case 1:var G=Y.flowParams;Y=_.QH(Y.session,hmy,1);return d7N.createOAuthFlow(G,Y);case 2:case 3:return G=Y.flowParams,Y=_.QH(Y.session,bBN,6),SbN.createStreamlinedFlow(G,Y);default:return null}};
j$N=function(Y,G){Y===2&&(Y=3);var u=0;NGw.indexOf(Y)!==-1&&(u=NGw.indexOf(Y)+1);for(Y=u;Y<NGw.length;Y++)if(G.has(NGw[Y]))return NGw[Y]};
BGj=function(Y){var G=Y.serviceId;var u=Y.sessionId;var O=Y.config;var Q=Y.galService;var M=Y.capabilities;var t=Y.scopes;var K=Y.loginHint;var L=Y.callerState;var g=Y.consentLanguageKeys;var P=Y.linkName;var I=Y.dynamicUrlParameters;var k=Y.partnerConfigMinReadTimestamp;Y=O.dataUsageNoticeConfig?O.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return Q.startLinkingSession({serviceId:G,sessionId:u,capabilities:M,scopes:t,loginHint:K,callerState:L,supportedFlows:VlS(O.supportedFlows),completionUrl:O.completionUrl,
accountLinkingEntryPoint:O.accountLinkingEntryPoint,consentLanguageKeys:g,dataUsageNoticeConfig:Y,linkName:P,dynamicUrlParameters:I,partnerConfigMinReadTimestamp:k}).then(function(n){return new lby(G,u,O,Q,n,void 0,L,g,I,k)})};
v3B=function(Y,G,u){var O=(new $79(G.localStorage)).getSession(Y);if(O===null)return Promise.resolve({statusCode:2});qbo(Y,G.localStorage);var Q=s$V(O.linkingSessionSerialized),M=O.googleScopesString!==""&&O.googleScopesString!==void 0?new Set(O.googleScopesString.split(",")):void 0,t=O.partnerConfigMinReadTimestampSerialized?chB(O.partnerConfigMinReadTimestampSerialized):void 0;return U7y(new lby(Y,O.sessionId,G,u,Q,M,O.callerState,O.consentLanguageKeys,O.dynamicUrlParameters,t),O.currentFlow,O.consentLanguageKeys)};
emy=function(Y,G){G=new $79(G);G.storage!==null&&G.storage.set("SAVED_SESSION",Y)};
qbo=function(Y,G){G=new $79(G);if(G.storage!==null){var u=G.storage.get("SAVED_SESSION");u!==void 0&&u.serviceId===Y&&G.storage.remove("SAVED_SESSION")}};
VlS=function(Y){var G=new Set;Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next())u=u.value,u!==1&&Jhb.has(u)&&G.add(Jhb.get(u));return G};
wmb=function(Y,G){G!==void 0&&(Y.callerState=G);return Y};
Yxb=function(Y){switch(Y){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
ODN=function(Y){return new GOx(Y,new ufj(Y))};
HDg=function(Y,G){G=G===void 0?!1:G;var u=document.createElement("div");Y&&(u.style.transform="scaleX(-1)");u.style.backgroundColor=G?"rgba(138,180,248,.24)":"#e8f0fe";u.style.height="4px";u.style.overflow="hidden";u.style.position="absolute";u.style.top="0";u.style.width="100%";u.style.zIndex="1500";u.setAttribute("aria-label","Loading");u.setAttribute("aria-live","polite");Y=document.createElement("style");Y.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  }";
u.appendChild(Y);Y=Q4b();Y.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";Y.style.left="-145.166611%";var O=MN9(G);O.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";Y.appendChild(O);u.appendChild(Y);Y=Q4b();Y.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";Y.style.left="-54.888891%";G=MN9(G);G.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
Y.appendChild(G);u.appendChild(Y);return u};
Q4b=function(){var Y=document.createElement("div");Y.style.height="100%";Y.style.position="absolute";Y.style.transformOrigin="top left";Y.style.width="100%";return Y};
MN9=function(Y){var G=document.createElement("span");G.style.borderTop=Y?"4px solid #669df6":"4px solid #4285f4";G.style.display="inline-block";G.style.position="absolute";G.style.width="100%";return G};
Eo9=function(Y){return Y==null?void 0:_.BUR(Y).valueOf()};
TBN=function(Y){var G=document.body,u=!1,O=function(){u||(u=!0,tN9(Q,M),setTimeout(function(){G.removeChild(M);G.removeChild(Q)},150))},Q=KOb(Y,getComputedStyle(G).direction==="rtl",O),M=aSj(O);
tN9(Q,M);G.appendChild(M);G.appendChild(Q);window.requestAnimationFrame(function(){M.style.opacity="1";Q.style.opacity="1";Q.style.transform="translate(-50%, -50%) scale(1)";Q.children[0].focus()})};
KOb=function(Y,G,u){var O=document.createElement("div");O.style.position="fixed";O.style.alignItems="center";O.style.backgroundColor=Y?"rgb(32, 33, 36)":"white";O.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";O.style.display="flex";O.style.flexDirection="column";O.style.justifyContent="center";O.style.left="50%";O.style.top="50%";O.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";O.style.zIndex="2002";document.body.clientWidth>=
660?(O.style.borderRadius="8px",O.style.minHeight="220px",O.style.maxHeight="90%",O.style.maxWidth="90%",O.style.minWidth="540px"):(O.style.height="100%",O.style.width="100%");O.setAttribute("aria-label","Error");O.setAttribute("aria-modal","true");O.setAttribute("role","alertdialog");O.addEventListener("keydown",function(M){M.key==="Escape"&&u()});
G=LOS(Y,G,u);O.appendChild(gog(G));O.appendChild(G);var Q=document.createElement("img");Q.src=Y?"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";Q.style.height="72px";Q.style.width="72px";Q.style.color="#9aa0a6";Q.setAttribute("alt","");O.appendChild(Q);Q=document.createElement("h1");Q.textContent="Something went wrong.  Try again.";
Q.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";Q.style.lineHeight="24px";Q.style.fontSize="16px";Q.style.textAlign="center";Q.style.letterSpacing="0.1px";Q.style.color=Y?"rgb(232,234,237)":"#3c4043";O.appendChild(Q);O.appendChild(gog(G));return O};
LOS=function(Y,G,u){var O=document.createElement("button");O.style.backgroundColor="transparent";O.style.border="none";O.style.borderRadius="50%";O.style.cursor="pointer";O.style.outline="none";O.style.padding="12px";O.setAttribute("aria-label","Close dialog");O.style.position="absolute";O.style.top="0";G?O.style.right="0":O.style.left="0";O.addEventListener("focus",function(){O.style.backgroundColor=Y?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
O.addEventListener("blur",function(){O.style.backgroundColor="transparent"});
O.addEventListener("mouseenter",function(){O.style.backgroundColor=Y?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
O.addEventListener("mouseleave",function(){O.style.backgroundColor="transparent"});
O.addEventListener("click",u);O.addEventListener("keydown",function(Q){Q.key!=="Enter"&&Q.key!=="Space"||u()});
G=document.createElement("img");G.src=Y?"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";G.style.display="block";G.style.height="24px";G.style.width="24px";G.setAttribute("alt","");O.appendChild(G);return O};
gog=function(Y){var G=document.createElement("div");G.setAttribute("tabindex","0");G.setAttribute("aria-hidden","true");G.addEventListener("focus",function(){return void Y.focus()});
return G};
aSj=function(Y){var G=document.createElement("div");G.style.backgroundColor="rgba(32,33,36,0.6)";G.style.bottom="0";G.style.left="0";G.style.position="fixed";G.style.right="0";G.style.top="0";G.style.transition=" opacity 150 ms linear";G.style.zIndex="2001";G.addEventListener("click",Y);return G};
tN9=function(Y,G){G.style.opacity="0";Y.style.opacity="0";Y.style.transform="translate(-50%, -50%) scale(0.8)"};
Xno=function(Y,G){Y.sandbox&&Y.sandbox.add&&(Y.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),Y.sandbox.add("allow-downloads"));Y.src=G};
Hk=function(Y){this.JSC$19886_value_=void 0;this.childNodes_={};if(Y){var G=_.y1e(Y);Y=_.lJ(Y);for(var u=0;u<G.length;u++)this.set(G[u],Y[u])}};
El=function(Y){PM9.call(this,Y)};
pnN=function(Y,G){G=G===void 0?!1:G;this.parsedImageUrl_=null;Y instanceof ISV||(kO9==void 0&&(kO9=new nob),Y=kO9.parse(Y.toString(),G));Y=this.parsedImageUrl_=Y;Y.JSC$19911_parsedOptions_==void 0&&((G=Y.getOptions())||(G=""),Y.JSC$19911_parsedOptions_=(new FOx).parse(G));PM9.call(this,Y.JSC$19911_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;Y=this.parsedImageUrl_;G=Y.uri_.JSC$10357_port_;this.JSC$19913_domain_=Y.uri_.JSC$10357_domain_+(G?":"+G:"");this.JSC$19913_query_=
this.parsedImageUrl_.uri_.JSC$10357_queryData_.toString()};
tc=function(Y){_.Xd.call(this,"upload");this.opts.query=Y};
zYB=function(Y){this.mode=4;this.data=Y;this.parsedData=[];Y=0;for(var G=this.data.length;Y<G;Y++){var u=[],O=this.data.charCodeAt(Y);O>65536?(u[0]=240|(O&1835008)>>>18,u[1]=128|(O&258048)>>>12,u[2]=128|(O&4032)>>>6,u[3]=128|O&63):O>2048?(u[0]=224|(O&61440)>>>12,u[1]=128|(O&4032)>>>6,u[2]=128|O&63):O>128?(u[0]=192|(O&1984)>>>6,u[1]=128|O&63):u[0]=O;this.parsedData.push(u)}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))};
mbj=function(Y){this.typeNumber=0;this.errorCorrectLevel=Y===void 0?2:Y;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
KW=function(Y,G){if(Y.length==void 0)throw Error("Nk`"+Y.length+"`"+G);for(var u=0;u<Y.length&&Y[u]==0;)u++;this.num=Array(Y.length-u+G);for(G=0;G<Y.length-u;G++)this.num[G]=Y[G+u]};
WOj=function(Y,G){this.totalCount=Y;this.dataCount=G};
rj9=function(){this.buffer=[];this.length=0};
xb9=function(){var Y=!1;if(_.rYA()){Y=_.zg();var G="";_.Cyu()?(G=/Windows (?:NT|Phone) ([0-9.]+)/,G=(Y=G.exec(Y))?Y[1]:"0.0"):_.oU()?(G=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,G=(Y=G.exec(Y))&&Y[1].replace(/_/g,".")):_.ftu()?(G=/Mac OS X ([0-9_.]+)/,G=(Y=G.exec(Y))?Y[1].replace(/_/g,"."):"10"):_.Pu(_.zg(),"KaiOS")?(G=/(?:KaiOS)\/(\S+)/i,G=(Y=G.exec(Y))&&Y[1]):_.rYA()?(G=/Android\s+([^\);]+)(\)|;)/,G=(Y=G.exec(Y))&&Y[1]):_.yYt()&&(G=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,G=(Y=G.exec(Y))&&Y[1]);Y=
G||""}return Y};
ooN=function(Y,G){this.JSC$19942__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(G)for(var u in G)this.JSC$19942__htOption[u]=G[u];this.JSC$19942__htOption.useSVG&&(fSN=CMN);this.JSC$19942__android=xb9();this.JSC$19942__el=Y;this._oQRCode=null;this._oDrawing=new fSN(this.JSC$19942__el,this.JSC$19942__htOption);this.JSC$19942__htOption.text&&(Y=this.JSC$19942__htOption.text,this._oQRCode=new mbj(this.JSC$19942__htOption.correctLevel),yj9(this._oQRCode,
Y),G=this._oQRCode,eY9(G,!1,Ajj(G)),this.JSC$19942__el.title=Y,this._oDrawing.draw(this._oQRCode),this.makeImage())};
iDy=function(Y,G,u,O,Q){Y.save();var M=new Path2D;M.roundRect(G,u,O*7,O*7,O*2);M.roundRect(G+O,u+O,O*5,O*5,O*1.3);M.roundRect(G+2*O,u+2*O,O*3,O*3,O);Y.clip(M,"evenodd");Y.fillStyle=Q;Y.fillRect(0,0,Y.canvas.width,Y.canvas.height);Y.restore()};
wnV=function(){return RYw=RYw||new _.C7};
ZDj=function(Y){_.lI.call(this,"serverreachability",Y)};
Db9=function(Y){var G=wnV();G.dispatchEvent(new ZDj(G,Y))};
hYb=function(Y,G){_.lI.call(this,"statevent",Y);this.stat=G};
a6=function(Y){var G=wnV();G.dispatchEvent(new hYb(G,Y))};
dby=function(Y,G,u,O){_.lI.call(this,"timingevent",Y);this.size=G;this.rtt=u;this.retries=O};
bDo=function(Y,G,u){var O=wnV();O.dispatchEvent(new dby(O,Y,G,u))};
Sx9=function(Y,G){if(typeof Y!=="function")throw Error("Qk");return _.OI.setTimeout(function(){Y()},G)};
Ta=function(){this.redactEnabled_=!0};
LW=function(Y,G,u,O,Q){this.JSC$19964_channel_=Y;this.JSC$19964_channelDebug_=G;this.sid_=u;this.JSC$19964_rid_=O;this.JSC$19964_retryId_=Q||1;this.JSC$19964_eventHandler_=new _.ae(this);this.timeout_=45E3;this.JSC$19964_extraHeaders_=null;this.JSC$19964_successful_=!1;this.JSC$19964_postData_=this.JSC$19964_requestUri_=this.JSC$19964_baseUri_=this.JSC$19964_type_=this.JSC$19964_requestStartTime_=this.JSC$19964_watchDogTimeoutTime_=this.JSC$19964_watchDogTimerId_=null;this.JSC$19964_pendingMessages_=
[];this.JSC$19964_xmlHttp_=null;this.JSC$19964_xmlHttpChunkStart_=0;this.JSC$19964_lastError_=this.JSC$19964_verb_=null;this.JSC$19964_lastStatusCode_=-1;this.JSC$19964_cancelled_=!1;this.JSC$19964_readyStateChangeThrottleMs_=0;this.JSC$19964_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new NBg};
j4b=function(Y,G){var u=new Ta;u.debug("TestLoadImage: loading "+Y);if(_.OI.Image){var O=new Image;O.onload=_.H2(gs,u,"TestLoadImage: loaded",!0,G,O);O.onerror=_.H2(gs,u,"TestLoadImage: error",!1,G,O);O.onabort=_.H2(gs,u,"TestLoadImage: abort",!1,G,O);O.ontimeout=_.H2(gs,u,"TestLoadImage: timeout",!1,G,O);_.OI.setTimeout(function(){if(O.ontimeout)O.ontimeout()},1E4);
O.src=Y}else G(!1)};
VNb=function(Y,G){var u=new Ta,O=new AbortController,Q=setTimeout(function(){O.abort();gs(u,"TestPingServer: timeout",!1,G)},1E4);
fetch(Y,{signal:O.signal}).then(function(M){clearTimeout(Q);M.ok?gs(u,"TestPingServer: ok",!0,G):gs(u,"TestPingServer: server error",!1,G)}).catch(function(){clearTimeout(Q);
gs(u,"TestPingServer: error",!1,G)})};
gs=function(Y,G,u,O,Q){try{Y.debug(G),Q&&(Q.onload=null,Q.onerror=null,Q.onabort=null,Q.ontimeout=null),O(u)}catch(M){}};
BBx=function(){this.JSC$19978_parser_=new lSB};
$bb=function(Y,G,u){return u&&u.internalChannelParams?u.internalChannelParams[Y]||G:G};
Xz=function(Y){this.serverVersion_=0;this.JSC$19983_outgoingMaps_=[];this.JSC$19983_channelDebug_=new Ta;this.JSC$19983_hostPrefix_=this.JSC$19983_backChannelUri_=this.JSC$19983_forwardChannelUri_=this.JSC$19983_path_=this.JSC$19983_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19983_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19983_extraHeaders_=null;this.JSC$19983_nextMapId_=this.JSC$19983_nextRid_=0;this.JSC$19983_failFast_=$bb("failFast",
!1,Y);this.enableStreaming_=this.JSC$19983_deadBackChannelTimerId_=this.JSC$19983_backChannelTimerId_=this.JSC$19983_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19983_lastPostResponseArrayId_=this.JSC$19983_lastArrayId_=-1;this.JSC$19983_backChannelAttemptId_=this.JSC$19983_backChannelRetryCount_=this.JSC$19983_forwardChannelRetryCount_=0;this.JSC$19983_baseRetryDelayMs_=$bb("baseRetryDelayMs",5E3,Y);this.JSC$19983_retryDelaySeedMs_=
$bb("retryDelaySeedMs",1E4,Y);this.JSC$19983_forwardChannelMaxRetries_=$bb("forwardChannelMaxRetries",2,Y);this.JSC$19983_forwardChannelRequestTimeoutMs_=$bb("forwardChannelRequestTimeoutMs",2E4,Y);this.JSC$19983_xmlHttpFactory_=Y&&Y.xmlHttpFactory||void 0;this.networkTestUrl_=Y&&Y.networkTestUrl||void 0;this.usesFetchStreams_=Y&&Y.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19983_supportsCrossDomainXhrs_=Y&&Y.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=
new qxg(Y&&Y.concurrentRequestLimit);this.maxMapsPerRequest_=Math.min(Y&&Y.maxMessagesPerRequest||1E3,1E3);this.wireCodec_=new BBx;this.fastHandshake_=Y&&Y.fastHandshake||!1;this.encodeInitMessageHeaders_=Y&&Y.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19983_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=Y&&Y.blockingHandshake||!1;Y&&Y.disableRedact&&
this.JSC$19983_channelDebug_.disableRedact();Y&&Y.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&Y&&Y.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;Y&&Y.longPollingTimeout&&Y.longPollingTimeout>0&&(this.longPollingTimeout_=Y.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
s4x=function(){};
Pk=function(Y,G){if(Y instanceof Pk)this.array_=Y.array_;else{var u;if(u=_.ly(Y))a:{for(var O=u=0;O<Y.length;O++){if(!_.ly(Y[O])||u>0&&Y[O].length!=u){u=!1;break a}for(var Q=0;Q<Y[O].length;Q++)if(typeof Y[O][Q]!=="number"){u=!1;break a}u==0&&(u=Y[O].length)}u=u!=0}if(u)this.array_=_.Vj(Y);else if(Y instanceof _.oB)this.array_=cjN(Y.height,Y.width);else if(typeof Y==="number"&&typeof G==="number"&&Y>0&&G>0)this.array_=cjN(Y,G);else throw Error("Uk");}this.size_=new _.oB(this.array_[0].length,this.array_.length)};
I6=function(Y,G){if(typeof Y!=="function")throw Error("Qk");return _.OI.setTimeout(function(){Y()},G)};
ku=function(Y,G,u,O,Q){this.JSC$20010_channel_=Y;this.JSC$20010_channelDebug_=G;this.sid_=u;this.JSC$20010_rid_=O;this.JSC$20010_retryId_=Q||1;this.timeout_=45E3;this.JSC$20010_eventHandler_=new _.ae(this);this.pollingTimer_=new _.gU;this.pollingTimer_.setInterval(250)};
nW=function(){};
vo9=function(Y,G,u,O,Q){(new nW).debug("TestLoadImageWithRetries: "+Q);if(O==0)u(!1);else{var M=Q||0;O--;Uby(Y,G,function(t){t?u(!0):_.OI.setTimeout(function(){vo9(Y,G,u,O,M)},M)})}};
Uby=function(Y,G,u){var O=new nW;O.debug("TestLoadImage: loading "+Y);var Q=new Image;Q.onload=function(){try{O.debug("TestLoadImage: loaded"),JjV(Q),u(!0)}catch(M){}};
Q.onerror=function(){try{O.debug("TestLoadImage: error"),JjV(Q),u(!1)}catch(M){}};
Q.onabort=function(){try{O.debug("TestLoadImage: abort"),JjV(Q),u(!1)}catch(M){}};
Q.ontimeout=function(){try{O.debug("TestLoadImage: timeout"),JjV(Q),u(!1)}catch(M){}};
_.OI.setTimeout(function(){if(Q.ontimeout)Q.ontimeout()},G);
Q.src=Y};
JjV=function(Y){Y.onload=null;Y.onerror=null;Y.onabort=null;Y.ontimeout=null};
Y3o=function(Y,G){this.JSC$20017_channel_=Y;this.JSC$20017_channelDebug_=G;this.JSC$20017_parser_=new lSB};
Fz=function(Y,G,u){this.state_=1;this.JSC$20020_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20020_channelDebug_=new nW;this.JSC$20020_parser_=new lSB;this.firstTestResults_=Y||null;this.secondTestResults_=G!=null?G:null;this.asyncTest_=u||!1};
GUN=function(){this.front_=[];this.back_=[]};
pW=function(Y){this.JSC$20035_map_=new _.nA;this.size=0;Y&&this.addAll(Y)};
uSx=function(Y,G){this.action=Y;this.params=G||{}};
za=function(Y,G){_.Ey.call(this);this.delay_=new _.K7(this.JSC$20109_onTick_,0,this);_.vF(this,this.delay_);this.JSC$20107_interval_=5E3;this.retryCount=this.nextTickTime_=0;if(typeof Y==="function")G&&(Y=(0,_.tP)(Y,G));else if(Y&&typeof Y.handleEvent==="function")Y=(0,_.tP)(Y.handleEvent,Y);else throw Error("za");this.JSC$20109_listener_=Y};
m5=function(Y,G,u,O,Q,M,t,K,L,g,P,I,k,n,p,W){var C=this;u=u===void 0?!1:u;O=O===void 0?function(){return""}:O;
Q=Q===void 0?!1:Q;M=M===void 0?!1:M;t=t===void 0?!1:t;K=K===void 0?function(){return _.v$({})}:K;
L=L===void 0?!1:L;P=P===void 0?!1:P;I=I===void 0?!1:I;k=k===void 0?!1:k;n=n===void 0?!1:n;this.JSC$20110_pathPrefix_=Y;this.defaultQueryParams_=G;this.pubsub_=new _.KG;this.retryLogger_=W;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!p)?p(function(){C.safeReconnect_()}):new za(this.safeReconnect_,this);
this.JSC$20110_channel_=null;this.JSC$20110_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20110_pendingMessages_=[];this.enableAsyncTest_=u;this.JSC$20110_getXsrfToken_=O;this.useAsyncBrowserChannelHandler_=M;this.getAuthorizationHeader_=K;this.getAuthorizationHeaderSync_=g;this.enableCachedUpdateAuthorizationHeader_=t;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.v$();this.enableLoungeTokenRefresh_=Q;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
L;this.disableMdxAuthForNonPlaybackMessages_=P;this.disableMdxAuthForAdMessages_=I;this.enableMdxAuthForConnectionOnly_=k;this.disableMdxAuthForShortsMessages_=n;this.JSC$20110_channelOpenedCounter=new OdN;this.JSC$20110_channelClosedCounter=new QDy;this.channelMessageSentCounter=new Mkj;this.JSC$20110_channelMessageReceivedCounter=new HdN;this.JSC$20110_channelErrorCounter=new EyV;this.pendingMapsOnClosedCounter=new tkN;this.undeliveredMapsOnClosedCounter=new KaV};
a9b=function(Y){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;Y=Y||document.location.href;var G=Number(_.jL(Y)[4]||null)||"";G&&(this.port=":"+G);this.domain=_.l7(Y)||"";Y=_.zg();Y.search("MSIE")>=0&&_.Ft(Y.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
Wk=function(Y){Y=Y||{};this.name=Y.name||"";this.id=Y.id||Y.screenId||"";this.token=Y.token||Y.loungeToken||"";this.uuid=Y.uuid||Y.dialId||"";this.idType=Y.screenIdType||"normal";this.secret=Y.screenIdSecret||""};
THN=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(Y){var G=Math.random()*16|0;return(Y=="x"?G:G&3|8).toString(16)})};
LaN=function(Y){return _.Xi(Y,function(G){return{key:G.id,name:G.name}})};
gyN=function(Y,G){return NL(Y,function(u){return u||G?!u!=!G?!1:u.id==G.id:!0})};
rs=function(Y,G){return NL(Y,function(u){return X3y(u,G)})};
Faj=function(){var Y=Pqg(),G=I9V();if(kUB()){var u=Y,O=_.Dja(u,G);O<0&&_.RA4(u,-(O+1),0,G)}Y=nyw(Y);if(Y.length==0)try{_.LZg("remote_sid")}catch(Q){}else try{_.LG("remote_sid",Y.join(","),-1)}catch(Q){}};
Pqg=function(){var Y=_.LB("yt-remote-connected-devices")||[];Y.sort(_.Z1j);return Y};
nyw=function(Y){if(Y.length==0)return[];var G=Y[0].indexOf("#"),u=G==-1?Y[0]:Y[0].substring(0,G);return _.Xi(Y,function(O,Q){return Q==0?O:O.substring(u.length)})};
p3j=function(Y){_.TA("yt-remote-connected-devices",Y,86400)};
I9V=function(){if(zMV)return zMV;var Y=_.LB("yt-remote-device-id");Y||(Y=THN(),_.TA("yt-remote-device-id",Y,31536E3));for(var G=Pqg(),u=1,O=Y;_.ST(G,O);)u++,O=Y+"#"+u;return zMV=O};
m4b=function(){return _.LB("yt-remote-session-browser-channel")};
kUB=function(){return _.LB("yt-remote-session-screen-id")};
x49=function(Y){Y.length>5&&(Y=Y.slice(Y.length-5));var G=_.Xi(Waw(),function(O){return O.loungeToken}),u=_.Xi(Y,function(O){return O.loungeToken});
_.Rdg(u,function(O){return!_.ST(G,O)})&&rRB();
_.TA("yt-remote-local-screens",Y,31536E3)};
Waw=function(){return _.LB("yt-remote-local-screens")||[]};
rRB=function(){_.TA("yt-remote-lounge-token-expiration",!0,86400)};
f9B=function(Y){Y||(_.gG("yt-remote-session-screen-id"),_.gG("yt-remote-session-video-id"));Faj();Y=Pqg();_.Nj(Y,I9V());p3j(Y)};
yRN=function(){Cqg();return xu?!!xu.get("yt-remote-use-staging-server"):!1};
Cqg=function(){if(!xu){var Y=_.xg();Y&&(xu=new _.kg(Y))}};
idx=function(Y,G,u,O,Q){u=u===void 0?function(){return""}:u;
var M=function(){return new m5(fW(Y,"/bc"),G,!1,u,O)};
return _.F("enable_mdx_web_channel_desktop")?new eMb(function(){return new ARj(fW(Y,"/wc"),G,u)}):new oyg(M,Q)};
D4B=function(){var Y=RMx;w39();CW.push(Y);Zdb()};
y3=function(Y,G){w39();var u=hM9(Y,String(G));CW.length==0?d4g(u):(Zdb(),_.jo(CW,function(O){O(u)}))};
eA=function(Y){y3("CP",Y)};
w39=function(){CW||(CW=_.So("yt.mdx.remote.debug.handlers_")||[],_.U5("yt.mdx.remote.debug.handlers_",CW))};
d4g=function(Y){var G=(bd9+1)%50;bd9=G;S3N[G]=Y;NHo||(NHo=G==49)};
Zdb=function(){var Y=CW;if(S3N[0]){var G=NHo?bd9:-1,u={};do u={record$jscomp$15:void 0},G=(G+1)%50,u.record$jscomp$15=S3N[G],_.jo(Y,function(O){return function(Q){Q(O.record$jscomp$15)}}(u));
while(G!=bd9);S3N=Array(50);bd9=-1;NHo=!1}};
hM9=function(Y,G){var u=(Date.now()-jDV)/1E3;u.toFixed&&(u=u.toFixed(3));var O=[];O.push("[",u+"s","] ");O.push("[","yt.mdx.remote","] ");O.push(Y+": "+G,"\n");return O.join("")};
o6=function(Y){Ac.call(this);this.JSC$20139_logName_=Y;this.screens=[]};
R6=function(Y){o6.call(this,"LocalScreenService");this.JSC$20146_http_=Y;this.loungeTokenRefreshTimer_=NaN;iG(this);this.info("Initializing with "+Vkw(this.screens))};
ws=function(Y,G){G=G===void 0?!1:G;o6.call(this,"ScreenService");this.JSC$20152_http_=Y;this.disableAutomaticScreenCache_=G;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};l99(this)};
Zk=function(Y,G,u){Ac.call(this);this.JSC$20156_logName_=u;this.JSC$20156_screenService_=Y;this.receiver_=G;this.screen_=null};
Ehj=function(Y,G,u){u.disableCastApi?Dk("Cannot initialize because disabled by Mdx config."):BHg()?$49(Y,u)&&(q3b(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?sDB(G):(window.__onGCastApiAvailable=function(O,Q){O?sDB(G):(hc("Failed to load cast API: "+Q),cRx(!1),q3b(!1),_.gG("yt-remote-cast-available"),_.gG("yt-remote-cast-receiver"),U4N(),G(!1))},u.loadCastApiSetupScript?_.fX(vyj):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
JRN()>=60&&Yjb():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?GSw():JRN()>=89?umx():(OzB(),QSN(Mr9.map(HzB))))):Dk("Cannot initialize because not running Chrome")};
U4N=function(){Dk("dispose");var Y=ds();Y&&Y.dispose();_.U5("yt.mdx.remote.cloudview.instance_",null);tro(!1);_.JRt(K2S);K2S.length=0};
avb=function(){return!!_.LB("yt-remote-cast-installed")};
TEV=function(){var Y=_.LB("yt-remote-cast-receiver");return Y?Y.friendlyName:null};
L2j=function(){Dk("clearCurrentReceiver");_.gG("yt-remote-cast-receiver")};
ghb=function(){return avb()?ds()?ds().getCastSession():(hc("getCastSelector: Cast is not initialized."),null):(hc("getCastSelector: Cast API is not installed!"),null)};
Pvj=function(Y,G){Xxx()?ds().setConnectedScreenStatus(Y,G):hc("setConnectedScreenStatus called before ready.")};
BHg=function(){var Y=_.zg().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.MP||Y};
$49=function(Y,G){var u=!1;ds()||(Y=new bG(Y,G),Y.subscribe("yt-remote-cast2-availability-change",function(O){_.TA("yt-remote-cast-available",O);je("yt-remote-cast2-availability-change",O)}),Y.subscribe("yt-remote-cast2-receiver-selected",function(O){Dk("onReceiverSelected: "+O.friendlyName);
_.TA("yt-remote-cast-receiver",O);je("yt-remote-cast2-receiver-selected",O)}),Y.subscribe("yt-remote-cast2-receiver-resumed",function(O){Dk("onReceiverResumed: "+O.friendlyName);
_.TA("yt-remote-cast-receiver",O);je("yt-remote-cast2-receiver-resumed",O)}),Y.subscribe("yt-remote-cast2-session-change",function(O){Dk("onSessionChange: "+Ivg(O));
O||_.gG("yt-remote-cast-receiver");je("yt-remote-cast2-session-change",O)}),_.U5("yt.mdx.remote.cloudview.instance_",Y),u=!0);
Dk("cloudview.createSingleton_: "+u);return u};
ds=function(){return _.So("yt.mdx.remote.cloudview.instance_")};
sDB=function(Y){cRx(!0);q3b(!1);ds().init(!1,function(G){G?(tro(!0),_.Yju("yt-remote-cast2-api-ready")):(hc("Failed to initialize cast API."),cRx(!1),_.gG("yt-remote-cast-available"),_.gG("yt-remote-cast-receiver"),U4N());Y(G)})};
Dk=function(Y){y3("cloudview",Y)};
hc=function(Y){y3("cloudview",Y)};
cRx=function(Y){Dk("setCastInstalled_ "+Y);_.TA("yt-remote-cast-installed",Y)};
Xxx=function(){return!!_.So("yt.mdx.remote.cloudview.apiReady_")};
tro=function(Y){Dk("setApiReady_ "+Y);_.U5("yt.mdx.remote.cloudview.apiReady_",Y)};
q3b=function(Y){_.U5("yt.mdx.remote.cloudview.initializing_",Y)};
SA=function(Y){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(Y)};
CvN=function(Y){Cqg();if(!xu||!xu.get("yt-remote-disable-remote-module-for-dev")){Y=_.DE("MDX_CONFIG")||Y;ayb();Faj();kS9||(kS9=new a9b(Y?Y.loungeApiHost:void 0),yRN()&&(kS9.basePath="/api/loungedev"));Nm||(Nm=_.So("yt.mdx.remote.deferredProxies_")||[],_.U5("yt.mdx.remote.deferredProxies_",Nm));nhS();var G=F2b();if(!G){var u=new ws(kS9,Y?Y.disableAutomaticScreenCache||!1:!1);_.U5("yt.mdx.remote.screenService_",u);G=F2b();var O={};Y&&(O={appId:Y.appId,disableDial:Y.disableDial,theme:Y.theme,loadCastApiSetupScript:Y.loadCastApiSetupScript,
disableCastApi:Y.disableCastApi,enableDialLoungeToken:Y.enableDialLoungeToken,enableCastLoungeToken:Y.enableCastLoungeToken,forceMirroring:Y.forceMirroring});_.U5("yt.mdx.remote.enableConnectWithInitialState_",Y?Y.enableConnectWithInitialState||!1:!1);Ehj(u,function(M){M?px9()&&Pvj(px9(),"YouTube TV"):u.subscribe("onlineScreenChange",function(){je("yt-remote-receiver-availability-change")})},O)}if(Y&&!_.So("yt.mdx.remote.initialized_")){_.U5("yt.mdx.remote.initialized_",!0);
zsN("Initializing: "+_.fV(Y));jA.push(_.QO("yt-remote-cast2-api-ready",function(){je("yt-remote-api-ready")}));
jA.push(_.QO("yt-remote-cast2-availability-change",function(){je("yt-remote-receiver-availability-change")}));
jA.push(_.QO("yt-remote-cast2-receiver-selected",function(){m59();je("yt-remote-auto-connect","cast-selector-receiver")}));
jA.push(_.QO("yt-remote-cast2-receiver-resumed",function(){je("yt-remote-receiver-resumed","cast-selector-receiver")}));
jA.push(_.QO("yt-remote-cast2-session-change",W2w));jA.push(_.QO("yt-remote-connection-change",function(M){M?Pvj(px9(),"YouTube TV"):rfN()||(Pvj(null,null),L2j())}));
jA.push(_.QO("yt-remote-cast2-session-failed",function(){je("yt-remote-connection-failed")}));
O=x5b();Y.isAuto&&(O.id+="#dial");var Q=Y.capabilities||[];Q.length>0&&(O.capabilities=Q);O.name=Y.device;O.app=Y.app;(Y=Y.theme)&&(O.theme=Y);zsN(" -- with channel params: "+_.fV(O));O?(_.TA("yt-remote-session-app",O.app),_.TA("yt-remote-session-name",O.name)):(_.gG("yt-remote-session-app"),_.gG("yt-remote-session-name"));_.U5("yt.mdx.remote.channelParams_",O);G.start();px9()||fvB()}}};
es9=function(){var Y=F2b().instance_.$_gos();var G=yfx();G&&V3()&&(gyN(Y,G)||Y.push(G));return LaN(Y)};
Afy=function(){var Y=es9(),G=yfx();G||(G=rfN());return NL(Y,function(u){return G&&X3y(G,u.key)?!0:!1})};
yfx=function(){var Y=px9();if(!Y)return null;var G=F2b().getScreens();return rs(G,Y)};
W2w=function(Y){zsN("remote.onCastSessionChange_: "+Ivg(Y));if(Y){var G=yfx();if(G&&G.id==Y.id){if(Pvj(G.id,"YouTube TV"),Y.idType=="shortLived"&&(Y=Y.token))ohx&&(ohx.token=Y),(G=V3())&&G.setLoungeToken(Y)}else G&&izy(),RsN(Y,1)}else V3()&&izy()};
izy=function(){Xxx()?ds().stopSession():hc("stopSession called before API ready.");var Y=V3();Y&&(Y.disconnect(1),wxb(null))};
Zz9=function(){var Y=V3();return Y&&Y.getProxyState()!=3?new lG(V3(),void 0):null};
zsN=function(Y){y3("remote",Y)};
F2b=function(){if(!D5S){var Y=_.So("yt.mdx.remote.screenService_");D5S=Y?new hsw(Y):null}return D5S};
px9=function(){return _.So("yt.mdx.remote.currentScreenId_")};
d5w=function(Y){_.U5("yt.mdx.remote.currentScreenId_",Y)};
m59=function(){_.U5("yt.mdx.remote.connectData_",null)};
V3=function(){return _.So("yt.mdx.remote.connection_")};
wxb=function(Y){var G=V3();m59();Y||d5w("");_.U5("yt.mdx.remote.connection_",Y);Nm&&(_.jo(Nm,function(u){u(Y)}),Nm.length=0);
G&&!Y?je("yt-remote-connection-change",!1):!G&&Y&&je("yt-remote-connection-change",!0)};
rfN=function(){var Y=kUB();if(!Y)return null;var G=F2b();if(!G)return null;G=G.getScreens();return rs(G,Y)};
RsN=function(Y,G){bzx?ohx=Y:(d5w(Y.id),Y=new Bk(kS9,Y,x5b(),_.So("yt.mdx.remote.enableConnectWithInitialState_")||!1),Y.connect(G,_.So("yt.mdx.remote.connectData_")),Y.subscribe("beforeDisconnect",function(u){je("yt-remote-before-disconnect",u)}),Y.subscribe("beforeDispose",function(){V3()&&wxb(null)}),Y.subscribe("browserChannelAuthError",function(){var u=yfx();
u&&u.idType=="shortLived"&&(Xxx()?ds().handleBrowserChannelAuthError():hc("refreshLoungeToken called before API ready."))}),wxb(Y))};
fvB=function(){var Y=rfN();Y?(zsN("Resume connection to: "+Ivg(Y)),RsN(Y,0)):(f9B(),L2j(),zsN("Skipping connecting because no session screen found."))};
nhS=function(){var Y=x5b();if(_.gX.isEmpty(Y)){Y=I9V();var G=_.LB("yt-remote-session-name")||"",u=_.LB("yt-remote-session-app")||"";Y={device:"REMOTE_CONTROL",id:Y,name:G,app:u,mdxVersion:3};Y.authuser=String(_.DE("SESSION_INDEX","0"));(G=_.DE("DELEGATED_SESSION_ID"))&&(Y.pageId=String(G));_.U5("yt.mdx.remote.channelParams_",Y)}};
x5b=function(){return _.So("yt.mdx.remote.channelParams_")||{}};
SjS=function(){var Y,G;return _.a(function(u){if(u.nextAddress==1)return(_.ZdA()||_.F("use_new_nwl"))&&_.oyt().isNetworkAvailable()?u.yield(_.vK(),2):u.return();if(u.nextAddress!=3)return(Y=u.yieldResult)?u.yield(cob(Y),3):u.return();G=u.yieldResult;if(!G.length)return u.return();G.forEach(function(O){var Q={timestamp:O.timestamp};O=O.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:O.appShellAssetLoadReport,options:Q}:O.clientError?{payloadName:"clientError",payload:O.clientError,
options:Q}:void 0;O&&_.eK(O.payloadName,O.payload,O.options)});
G.length===100&&_.AN.addLowPriorityJob(SjS);_.Sd(u)})};
cfo=function(Y,G,u){u=u===void 0?!1:u;var O=Math.max(Y.width,NEb);if(_.F("kevlar_watch_feed_big_thumbs")&&Y.width>=1550-$u()&&Y.height>=800)O-=jSb;else if(Y.width>=qm){var Q=Vry+lvw+sl;_.F("kevlar_watch_feed_big_thumbs")&&(Q=BEx);O-=Q}else O-=Vry;O=Math.min(O,$5b);Q=240;u&&(Q=380);G<.5624||(!_.F("kevlar_watch_flexy_disable_small_window_sizing")&&(Y.height<630&&Y.width>=657||Y.height>=630&&Y.width>=qm&&Y.width<1327)?Q=360:!_.F("kevlar_watch_flexy_disable_large_window_sizing")&&Y.height>=630&&Y.width>=
1327&&(Q=480));var M=Math.min(O*G,Y.height-(56+qjg+sSw));M=Math.max(M,Q);G<1?O=M/G:Y.width>=qm&&(O=cfo(Y,.5625,u).width);return new _.oB(Math.round(O),Math.round(M))};
U5b=function(Y){if(Y.playerResponse){if(Y=Y.playerResponse,Y.messages&&Y.messages.length>0&&(Y=Y.messages.find(function(G){return!(!G||!G.mealbarPromoRenderer)}))&&Y.mealbarPromoRenderer)return Y.mealbarPromoRenderer}else if(Y.response&&(Y=Y.response)&&Y.overlay&&Y.overlay.mealbarPromoRenderer)return Y.overlay.mealbarPromoRenderer};
vhx=function(Y){if(Y.response){var G=Y.response;if(G&&G.overlay&&G.overlay.tooltipRenderer)return G.overlay.tooltipRenderer}if(Y.playerResponse&&(Y=Y.playerResponse,Y.messages&&Y.messages.length>0&&(Y=Y.messages.find(function(u){return!(!u||!u.tooltipRenderer)}))&&Y.tooltipRenderer))return Y.tooltipRenderer};
Jfx=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
YeB=function(){var Y,G,u;return _.a(function(O){switch(O.nextAddress){case 1:return O.yield(_.Xu.getInstance(),2);case 2:Y=O.yieldResult;if(!Y){G=void 0;O.jumpTo(3);break}return O.yield(Y.get("lmqf"),4);case 4:G=O.yieldResult;case 3:switch((u=G)||(u="SD"),u){case "HD":return O.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return O.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return O.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return O.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return O.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
Gij=function(Y){var G,u,O;return _.a(function(Q){if(Q.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.F("disable_av1_setting")){var M=window.localStorage["yt-player-av1-pref"];M=M==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":M==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else M="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(G=Y===M)return Q.jumpTo(2);O=u=Y;return Q.yield(YeB(),3)}Q.nextAddress!=2&&(G=O===Q.yieldResult);return Q.return(G)})};
OKx=function(){var Y=_.Jy("user_engagement_experiments_rate_limit_ms"),G=u9S.get("last-user-engagement-exp-trigger-timestamp");return!G||(0,_.GC)()>=G+Y?(u9S.set("last-user-engagement-exp-trigger-timestamp",(0,_.GC)()),!0):!1};
ck=function(Y,G,u,O,Q){G=G===void 0?null:G;u=u===void 0?null:u;O=O===void 0?null:O;Q=Q===void 0?null:Q;Y={youThereEventType:Y};u&&(Y.lactThresholdMs=u.lactThresholdMs,Y.mediaPosSec=u.promptDelaySec,Y.lactServerRequestMs=u.lactServerRequestMs,Y.triggerReason=u.triggerReason);Q!=null&&(Y.renderingMediaPosSec=Math.round(Q));G||(G=_.FA());G&&(Y.clientScreenNonce=G);O&&(Y.clientPlaybackNonce=O);_.eK("youThere",Y)};
M0N=function(Y){if(!Qdy&&(Y=Y||_.DE("ZWIEBACK_PING_URLS"))&&Y.length){Qdy=!0;for(var G=0;G<Y.length;G++)_.jV(Y[G])}};
HKB=function(Y){var G=0;Y.indexOf("h")!=-1&&(Y=Y.split("h"),G=Y[0]*60*60,Y=Y[1]);Y.indexOf("m")!=-1&&(Y=Y.split("m"),G=Y[0]*60+G,Y=Y[1]);Y.indexOf("s")!=-1?(Y=Y.split("s"),G=Y[0]*1+G):G=Y*1+G;return G};
t0y=function(Y){if(_.gX.get(_.DE("PLAYER_VARS",{}),"privembed",!1)!="1"){Y&&Stj();try{ECN().then(function(){},function(){}),_.MN(t0y,18E5)}catch(G){_.dc(G)}}};
Ki9=function(){var Y=_.EU(),G=Y.getFlag(119),u=window.devicePixelRatio>1;document.body&&_.SI(document.body,"exp-invert-logo")&&(u&&!_.SI(document.body,"inverted-hdpi")?_.oD(document.body,"inverted-hdpi"):!u&&_.SI(document.body,"inverted-hdpi")&&_.AR(document.body,"inverted-hdpi"));G!=u&&(_.tW(0,119,u),Y.save())};
ajj=function(){_.Jy("service_worker_push_logged_out_prompt_watches")!=-1&&qL("WatchCount").then(function(Y){Y>=100||tyV("WatchCount",Y+1)})};
Tw9=function(Y){return Y.filter(function(G){return"ypcGetCartEndpoint"in G||"ypcFixInstrumentEndpoint"in G})};
LiS=function(Y){return Y.filter(function(G){return!_.z(G,_.MYl)})};
gCB=function(Y){switch(Y){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}};
XEx=function(Y,G,u){var O=_.FS(u);Y&&G&&O&&Y.getPlayerPromise().then(function(Q){_.Juy(O)&&_.A1();(new _.F7(Q)).executeCommand(O,G);_.F("continue_playback_on_desktop_companion_click")||Q.pauseVideo()})};
P5N=function(Y){var G=_.N5(),u;if(u=_.So("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var O;u=(O=u())==null?void 0:O.layoutId}else u=null;XEx(G,u,Y)};
IjB=function(Y){var G=_.N5(),u;if(u=_.So("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var O;u=(O=u())==null?void 0:O.layoutId}else u=null;XEx(G,u,Y)};
Ul=function(Y,G){var u=Y<0?"-":"";Y=Math.abs(Y);var O=Math.floor(Y/3600),Q=Math.floor(Y)%3600,M=Math.floor(Q/60);Q=Math.floor(Q)%60;var t="";(G===void 0?0:G)&&(t="."+Math.round((Y-Math.floor(Y))*10));return O>0?u+O+":"+(M<10?"0"+M:""+M)+":"+(Q<10?"0"+Q:""+Q)+t:u+M+":"+(Q<10?"0"+Q:""+Q)+t};
kiw=function(Y){var G=Y.match(/[^0-9:\.]/g);if(G&&G.length>0)return null;Y=Y.split(":");if(Y.length===0||Y.length>3)return null;G=1;for(var u=0;Y.length>0;){var O=Y.pop();if(O===void 0)break;var Q=Number(O);if(O===""||isNaN(Q))return null;u+=Q*G;G*=60}return u};
nCw=function(Y,G,u,O){Y=Math.max(u,Y);G=Math.min(G,O-u);Y+G>O?(u=O,Y=u-G):u=Y+G;return{start:Y,end:u}};
Fi9=function(Y,G,u,O,Q,M){Y<u?Y=u:Y+Q>O&&(Y=O-Q);G>O&&(G=O);G=Math.min(Y+M,Math.max(Y+Q,G));return{start:Y,end:G}};
pEo=function(Y,G,u,O,Q,M){G>O?G=O:G-Q<u&&(G=u+Q);Y<u&&(Y=u);Y=Math.min(G-Q,Math.max(G-M,Y));return{start:Y,end:G}};
C5b=function(Y,G){var u=_.dB(Y,{}),O=z_x("top",G),Q=z_x("bottom",G),M=z_x("left",G),t=z_x("right",G);return _.Yh({top:function(){return vk(u().position,O)},
bottom:function(){return vk(u().position,Q)},
left:function(){return vk(u().position,M)},
right:function(){return vk(u().position,t)},
position:function(){return vk(u().positionType,mv9)},
height:function(){return vk(u().height,Jc)},
width:function(){return vk(u().width,Jc)},
"min-width":function(){return vk(u().minWidth,Jc)},
"min-height":function(){return vk(u().minHeight,Jc)},
"max-width":function(){return vk(u().maxWidth,Jc)},
"max-height":function(){return vk(u().maxHeight,Jc)},
"aspect-ratio":function(){return vk(u().aspectRatio,String)},
"margin-top":function(){return vk(u().margin,O)},
"margin-bottom":function(){return vk(u().margin,Q)},
"margin-left":function(){return vk(u().margin,M)},
"margin-right":function(){return vk(u().margin,t)},
"padding-top":function(){return vk(u().padding,O)},
"padding-bottom":function(){return vk(u().padding,Q)},
"padding-left":function(){return vk(u().padding,M)},
"padding-right":function(){return vk(u().padding,t)},
"flex-direction":function(){return vk(u().flexDirection,Wib)},
"justify-content":function(){return vk(u().justifyContent,r$N)},
"align-items":function(){return vk(u().alignItems,xvS)},
"flex-grow":function(){return vk(u().flexGrow,String)},
"flex-shrink":function(){return vk(u().flexShrink,String)},
"flex-basis":function(){return vk(u().flexBasis,Jc)},
"align-self":function(){return vk(u().alignSelf,xvS)},
"flex-wrap":function(){return vk(u().flexWrap,fjg)},
"align-content":function(){return vk(u().alignContent,xvS)}})};
vk=function(Y,G){return Y!==void 0?G(Y):void 0};
fjg=function(Y){switch(Y){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
mv9=function(Y){switch(Y){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
xvS=function(Y){switch(Y){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"}};
r$N=function(Y){switch(Y){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"}};
Wib=function(Y){switch(Y){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"}};
z_x=function(Y,G){var u=G==="rtl";switch(Y){case "top":var O=y$9;break;case "bottom":O=e_w;break;case "left":O=A$9;break;default:O=oCV}return function(Q){return vk(O(Q,u),Jc)}};
y$9=function(Y){var G=Y.top;var u=Y.vertical;Y=Y.all;var O;return(O=G!=null?G:u)!=null?O:Y};
e_w=function(Y){var G=Y.bottom;var u=Y.vertical;Y=Y.all;var O;return(O=G!=null?G:u)!=null?O:Y};
A$9=function(Y,G){var u=Y.left;var O=Y.end;var Q=Y.start;var M=Y.horizontal;Y=Y.all;var t,K;return(K=(t=u!=null?u:G?O:Q)!=null?t:M)!=null?K:Y};
oCV=function(Y,G){var u=Y.right;var O=Y.end;var Q=Y.start;var M=Y.horizontal;Y=Y.all;var t,K;return(K=(t=u!=null?u:G?Q:O)!=null?t:M)!=null?K:Y};
Jc=function(Y){var G=Y.value;switch(Y.unit){case "YPC_DIMENSION_UNIT_POINT":return G+"px";case "YPC_DIMENSION_UNIT_FRACTION":return G+"%";default:return""+G}};
iKS=function(Y){switch(Y){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"}};
R_j=function(Y){var G=Y!=null?Y:{};Y=G.fontRole;var u=G.fontSize;G=G.fontWeight;if(Y!==null&&u!==null)switch(Y){case "YPC_FONT_ROLE_DISPLAY":switch(u){case "YPC_FONT_SIZE_L":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(u){case "YPC_FONT_SIZE_L":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return G===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(u){case "YPC_FONT_SIZE_XL":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
h_N=function(Y,G,u){function O(I){return Object.values(I).map(function(k){var n=k.productId;k=k.pricingOptionIndex;return Yj(Q(n).pricingOptions,k).pricingOptionId})}
function Q(I){return L().get(I)}
function M(I){I=O(I);u(I)}
function t(I,k){return Array.from(GI(I.pricingOptions)).filter(function(n){n=_.E(n);n.next();n=n.next().value;return uX(n.pricingGroupAttributes,k)}).map(function(n){return _.E(n).next().value})}
var K=wEj([Y,G],function(I,k){var n=I==null?void 0:I.selectedPricingOptions;I={};var p=!0;if(n&&k.length)for(var W=_.E(k),C=W.next();!C.done;C=W.next()){C=C.value;var e=ZKb(C.pricingOptions,function(N){a:{N=N.pricingOptionId;for(var h=_.E(n),q=h.next();!q.done;q=h.next())if(q.value===N){N=!0;break a}N=!1}return N});
if(e>=0){p=!1;var w=Yj(C.pricingOptions,e),B=void 0;I[C.groupId]={productId:C.productId,pricingOptionIndex:e,pricingGroupAttributes:(B=w)==null?void 0:B.pricingGroupAttributes}}}p&&k.length&&(p=Yj(k[0].pricingOptions,0),I[k[0].groupId]={productId:k[0].productId,pricingOptionIndex:0,pricingGroupAttributes:p==null?void 0:p.pricingGroupAttributes});return I}),L=wEj([G],function(I){return new Map(I.map(function(k){return[k.productId,
k]}))}),g=wEj([G],function(I){var k=new Map;
I=_.E(I);for(var n=I.next();!n.done;n=I.next()){var p=n.value;n=p.groupId;var W=p.productId;p=_.E(GI(p.pricingOptions));for(var C=p.next();!C.done;C=p.next()){var e=_.E(C.value);C=e.next().value;e=e.next().value;k.set(e.pricingOptionId,{groupId:n,productId:W,index:C,pricingOption:e,pricingGroupAttributes:e.pricingGroupAttributes})}}return k}),P=wEj([G],function(I){var k=new Map;
I=_.E(I);for(var n=I.next();!n.done;n=I.next()){var p=n.value;n=p.groupId;var W=p.productId,C=void 0;p=_.E(GI((C=p.pricingGroups)!=null?C:[]));for(C=p.next();!C.done;C=p.next()){var e=_.E(C.value);C=e.next().value;e=e.next().value;k.set(e.pricingGroupId,{groupId:n,productId:W,index:C,pricingGroup:e,pricingGroupAttributes:e.pricingGroupAttributes})}}return k});
return{getProductById:Q,isProductSelected:function(I){var k=Q(I);if(!k)return!1;var n;return((n=K()[k.groupId])==null?void 0:n.productId)===I},
getSelectedPricingOptions:function(){return Object.values(K()).map(function(I){var k=I.productId;I=I.pricingOptionIndex;return Yj(Q(k).pricingOptions,I)})},
getSelectedPricingGroupAttributesByGroupId:function(I){var k;return(I=(k=K()[I])==null?void 0:k.pricingGroupAttributes)?Array.from(I):void 0},
getSelectedProductByGroupId:function(I){var k;return(I=(k=K()[I])==null?void 0:k.productId)?Q(I):void 0},
onProductSelected:function(I){var k=Q(I);if(k){var n=K(),p;if(((p=n[k.groupId])==null?void 0:p.productId)!==I){var W=(p=(W=n[k.groupId])==null?void 0:W.productId)?Q(p):void 0;var C;p=(C=n[k.groupId])==null?void 0:C.pricingGroupAttributes;var e;C=(e=n[k.groupId])==null?void 0:e.pricingOptionIndex;if(W&&C!==void 0)if(p){e=t(W,p).indexOf(C);if(e===-1)throw Error("El`"+C+"`"+W.productId);C=t(k,p);e=e<C.length?C[e]:C.length>0?C[0]:0}else e=C<O$(k.pricingOptions)?C:0;else e=0;O$(k.pricingOptions)<=e&&(e=
0);C=Yj(k.pricingOptions,e);var w;W={};M(Object.assign({},n,(W[k.groupId]={productId:I,pricingOptionIndex:e,pricingGroupAttributes:(w=C==null?void 0:C.pricingGroupAttributes)!=null?w:[]},W)))}}},
onPricingOptionSelected:function(I){var k=g().get(I);if(k){I=k.groupId;var n=k.productId;k=k.index;var p=K(),W,C;if(((W=p[I])==null?void 0:W.productId)!==n||((C=p[I])==null?void 0:C.pricingOptionIndex)!==k){var e,w;W={};M(Object.assign({},p,(W[I]={productId:n,pricingOptionIndex:k,pricingGroupAttributes:(w=(e=p[I])==null?void 0:e.pricingGroupAttributes)!=null?w:[]},W)))}}},
onPricingGroupSelected:function(I){var k=P().get(I);if(k){I=k.groupId;var n=k.productId,p=k.pricingGroup.pricingGroupAttributes,W=Q(n);if(W){k=K();var C=k[I].pricingGroupAttributes,e;if(((e=k[I])==null?void 0:e.productId)!==n||!uX(DvB(C,O$(p)),p)){e=Array.from(p);for(p=O$(p);p<O$(C);p++){var w="",B=!1,N=Array.from(e);N.push(Yj(C,p));for(var h=_.E(W.pricingGroups),q=h.next();!q.done;q=h.next())if(q=q.value,uX(q.pricingGroupAttributes,N)){e.push(Yj(C,p));B=!0;break}else w===""&&O$(q.pricingGroupAttributes)===
N.length&&uX(DvB(q.pricingGroupAttributes,e.length),e)&&(w=Yj(q.pricingGroupAttributes,p));B||e.push(w)}w=k[I].pricingOptionIndex;p=[];B=new Map;N=0;W=_.E(GI(W.pricingOptions));for(h=W.next();!h.done;h=W.next())q=_.E(h.value),h=q.next().value,q=q.next().value,uX(q.pricingGroupAttributes,e)&&p.push(h),uX(q.pricingGroupAttributes,C)&&B.set(h,N++);p.length===0?C=0:(C=B.get(w),C=C!==void 0&&C<p.length?p[C]:p[0]);W={};M(Object.assign({},k,(W[I]={productId:n,pricingOptionIndex:C,pricingGroupAttributes:e},
W)))}}}},
onClearGroupSelected:function(I){var k=K();k[I]&&(k=Object.fromEntries(Object.entries(k).filter(function(n){return _.E(n).next().value!==I})),M(k))}}};
GI=function(Y){return function u(){var O,Q,M,t,K;return _.u$(u,function(L){switch(L.nextAddress){case 1:_.h0(L,2),O=0,Q=_.E(Y),M=Q.next();case 4:if(M.done){L.jumpTo(2);break}t=M.value;K=_.OA;return L.yield([O++,t],7);case 7:K(L.yieldResult);M=Q.next();L.jumpTo(4);break;case 2:_.wt(L),_.dt(L,0)}})}()};
ZKb=function(Y,G){Y=_.E(GI(Y));for(var u=Y.next();!u.done;u=Y.next()){var O=_.E(u.value);u=O.next().value;O=O.next().value;if(G(O))return u}return-1};
O$=function(Y){var G=0;for(Y=Y[Symbol.iterator]();!Y.next().done;)++G;return G};
Yj=function(Y,G){Y=_.E(GI(Y));for(var u=Y.next();!u.done;u=Y.next()){var O=_.E(u.value);u=O.next().value;O=O.next().value;if(u===G)return O}};
uX=function(Y,G){if(!Y&&!G)return!0;if(!Y||!G)return!1;Y=Array.from(Y);G=Array.from(G);if(Y.length!==G.length)return!1;for(var u=0;u<Y.length;u++)if(Y[u]!==G[u])return!1;return!0};
DvB=function(Y,G){G=G===void 0?Infinity:G;var u=[];Y=_.E(GI(Y));for(var O=Y.next();!O.done;O=Y.next()){var Q=_.E(O.value);O=Q.next().value;Q=Q.next().value;if(O>=G)break;O>=0&&u.push(Q)}return u};
wEj=function(Y,G){var u,O;return function(){for(var Q=Y.map(function(t){return t()}),M=0;M<Q.length;M++)if(!u||Q[M]!==u[M]){u=Q;
O=G.apply(null,_.c8(Q));break}return O}};
dv9=function(Y,G,u){var O=[];Y=_.E(Y);for(var Q=Y.next();!Q.done;Q=Y.next()){Q=Q.value;var M=void 0;((M=G)==null?0:M.length)&&!uX(Q.pricingGroupAttributes,G)||O.push({pricingOption:Q,isSelected:u.includes(Q.pricingOptionId)})}return O};
bKb=function(Y,G){return _.v2(Y.entities,"pdpStateEntity",G)};
SeN=function(Y){var G,u;return!!(Y.productId&&Y.groupId&&((G=Y.pricingOptions)==null?0:G.length)&&Y.pricingOptions.every(function(O){return O.pricingOptionId})&&((u=Y.pricingGroups)==null||!u.length||Array.isArray(Y.pricingGroups)&&Y.pricingGroups.every(function(O){return O.pricingGroupId&&O.pricingGroupAttributes&&O.pricingGroupAttributes.length>0})))};
Nw9=function(Y,G,u){return h_N(Y,wEj([G],function(O){return O.filter(SeN)}),u)};
jdN=function(Y,G){return G.length===0?[Y]:[Y.slice(0,G[0]),Y.slice(G[0])].filter(function(u){return u.length>0})};
V0S=function(Y){switch(Y){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""}};
Bwo=function(Y,G,u,O){O=Object.assign({},O);_.XS(O,ljg,{selectedOptionId:Y,primaryButtonOverride:u});_.DS().dispatch(_.t$("flowStateEntity",G,O))};
$vN=function(Y,G,u){!_.z(u,ljg)&&Y.noPreselect&&G!==""&&Y.defaultButtonOverride&&Bwo("default",G,Y.defaultButtonOverride,u)};
qe9=function(Y){switch(Y){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
sdB=function(Y){switch(Y){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
c$x=function(Y,G){G.includes(Y)?G=G.filter(function(u){return u!==Y}):G.push(Y);
return[].concat(_.c8(G))};
UvV=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield((0,_.Ok)("n0DHg"),2);Y=_.MTN;return G.return(Y)})};
vCy=function(Y,G){return _.v2(Y.entities,"contextNoteFeedEntityPayload",G)};
J$S=function(Y,G){switch(Y){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return G==null?void 0:G.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return G==null?void 0:G.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return G==null?void 0:G.ratingNotHelpfulText}};
Ynj=function(Y,G,u){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:u||Y.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:Y.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:Y.deleteDialogTitle}]},dialogMessages:[{runs:[{text:Y.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:Y.deleteActionText}]},command:{performCommentActionEndpoint:{action:G}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:Y.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
GPj=function(Y,G,u){var O;if(Y&&((O=G())==null?0:O.includes(Y))){var Q;u((Q=G())==null?void 0:Q.filter(function(M){return M!==Y}))}else u([].concat(_.c8(G()||[]),[Y]))};
O$9=function(Y,G){if(Y){var u=[];G=_.E((G==null?void 0:G.checkboxes)||[]);for(var O=G.next();!O.done;O=G.next()){O=_.z(O.value,u2b);var Q=void 0;((Q=O)==null?0:Q.value)&&Y.includes(O.key||"")&&u.push(O.value)}return u}};
QzN=function(Y,G){return Y===G?!0:(Y==null?void 0:Y.formId)===(G==null?void 0:G.formId)&&(Y==null?void 0:Y.fieldId)===(G==null?void 0:G.fieldId)};
H$g=function(Y){var G=M8w.get(Y);if(G)return G;G=Y.replace(/_([a-zA-Z0-9])/g,function(u,O){return O.toUpperCase()});
M8w.set(Y,G);return G};
Kzo=function(Y){var G=_.p2(function(){var O;return(O=_.hT(Y))!=null?O:{}},{equals:QzN},"rjkP8c"),u=_.p2(function(){var O=G(),Q=O.formId;
O=O.fieldId;var M;if(M=Q&&O){if(O==="formId")throw Error("Ll`"+"Field id cannot be formId.".replace(/\n\s*/g," "));b:{if(Q&&(E2S?E2S():(M=_.E(_.IE(0,void 0,"VxY0fb")),E2S=M.next().value,M.next(),M.next(),E2S()),M=t8g.get(Q))){M=M.form;break b}M=void 0}if(M){var t=H$g(O);M=M[t]}else M=void 0}if(M)throw Error("Ll`"+("Field "+O+" in form "+Q+" is not a ScalarField.").replace(/\n\s*/g," "));},void 0,"OhSJ8e");
return function(){return u()}};
aLy=function(Y){Y.style.height="auto";Y.style.height=Y.scrollHeight+"px"};
T4V=function(Y){return[Y.syncStep,Y.asyncStep].filter(function(G){return G!==void 0})};
g29=function(Y){var G,u,O;if(Y=(G=Y.structuredContextNoteFormSchema)==null?void 0:(u=G.fieldSchemas)==null?void 0:(O=u.noteBody)==null?void 0:O.validationSchema)for(G=_.E(T4V(Y)),u=G.next();!u.done;u=G.next()){u=u.value.rules;if(!u)break;u=_.E(u);for(u=u.next();!u.done;u=u.next())return _.z(u.value,Lz9)}};
P6y=function(Y){if(Y){Y=_.E(T4V(Y));for(var G=Y.next();!G.done;G=Y.next()){G=G.value.rules;if(!G)break;G=_.E(G);for(G=G.next();!G.done;G=G.next())return _.z(G.value,XUy)}}};
kPb=function(Y){if(Y){Y=_.E(T4V(Y));for(var G=Y.next();!G.done;G=Y.next()){G=G.value.rules;if(!G)break;G=_.E(G);for(G=G.next();!G.done;G=G.next())return _.z(G.value,IL9)}}};
n2w=function(Y){Y=/^https?:\/\//.test(Y)?Y:"http://"+Y;try{var G=_.bI(Y)}catch(u){return!1}if(G.toString()!==Y)return!1;Y=G.JSC$10357_domain_.split(".");return Y.length>1&&Y.every(function(u){return!!u})};
Fzb=function(Y,G,u,O){var Q;O=(Q=O.structuredContextNoteData)==null?void 0:Q.createCommentEndpoint;if(Q=_.z(O,_.XfE))return Q.commentText=_.i8(Y),Q.videoPositionMention=G,Q.sources=u,O};
pU9=function(Y){return Y==null?void 0:Y.stringValue};
mFb=function(Y,G,u){Y=Y.map(function(O,Q){return{listItemViewModel:{title:O.title,subtitle:O.subtitle,leadingImage:O.leadingImage,trailingImage:Q===G?z8V:void 0,rendererContext:{commandContext:{onTap:O.onTap}}}}});
return Object.assign({},u&&{header:{panelHeaderViewModel:{title:u}}},{content:{listViewModel:{listItems:Y}}})};
Wzx=function(Y,G){if(Y&&G)switch(G){case "SELECTION_TYPE_BOOL":return Y.boolValue;case "SELECTION_TYPE_INT":return Y.intValue;case "SELECTION_TYPE_STRING":return Y.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return Y.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return Y.timePickerFormatValue}};
rLw=function(Y){var G;Y=(G=Y.options)==null?void 0:G.findIndex(function(u){return u.isSelected});
return Y===void 0?-1:Y};
xFN=function(Y,G,u){var O=function(){return Y().label},Q={},M=_.s3("ytDropdownViewModelLabel",(Q.ytDropdownViewModelLabelError=G,Q));
return _.T(_.X,{cond:function(){return Y().label&&!(u()===-1&&Y().label&&!Y().placeholderText)},
then:function(){return _.T("div",{class:M},_.T(_.eO,{text:O}))}})};
fLj=function(Y,G){var u={};u=_.s3("ytDropdownViewModelTitle",(u.ytDropdownViewModelTitlePlaceholder=function(){return G()===-1},u));
return _.T("div",{class:u},_.T(_.eO,{text:function(){var O=Y();var Q=G();if(Q===-1)O=O.placeholderText?O.placeholderText:O.label;else{var M,t;O=(M=O.options)==null?void 0:(t=M[Q])==null?void 0:t.title}return O}}))};
C6S=function(Y,G){var u=function(){return Y().hint};
return _.T(_.GY,null,_.T(_.X,{cond:function(){return u()&&!G()},
then:function(){return _.T("div",{class:_.s3("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.T(_.eO,{text:u,className:"ytDropdownViewModelSupportText"}))}}),_.T(_.X,{cond:G,
then:function(){return _.T("div",{id:"dropdown-view-model-error",role:"alert",class:_.s3("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.T(_.GS,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.T(_.eO,{text:G,className:"ytDropdownViewModelSupportText"}))}}))};
yLN=function(Y,G){var u=_.sH().resolve(_.thj);_.ii(function(){var O=Y().id;O&&u!=null&&u.dropdownMap.set(O,G)})};
ALo=function(Y){Y=_.z(Y.scheduleButton,e8w);Y=_.z(Y==null?void 0:Y.primaryButton,_.Ck);Y=_.z(Y==null?void 0:Y.onTap,_.nd);var G,u,O=((u=_.z(Y,_.Jv))==null?void 0:u.commands)||[Y];u=_.E(O);for(Y=u.next();!Y.done&&!(G=_.z(Y.value,_.tO1));Y=u.next());var Q;G=(Q=G)==null?void 0:Q.createBroadcastRequest;if(!G)throw Error("Rl");return G};
o29=function(Y){var G,u;return((u=_.z((G=Y.steps)==null?void 0:G[0],_.TG))==null?void 0:u.stepId)||""};
wUj=function(Y,G){if(G){var u=_.Zs().getState().entities.flowStateEntity,O=i$y(Y),Q=[G];O&&O!==G&&Q.push(O);var M=!0,t;if(u&&Y.flowStateEntityKey&&((t=u[Y.flowStateEntityKey])==null?void 0:t.primaryButtonDisabled)!==void 0){var K;M=!((K=u[Y.flowStateEntityKey])==null||!K.primaryButtonDisabled)}R8o(Y,O!=null?O:G,Q,M)}};
DFN=function(Y){return _.Eh(_.Zs(),function(G){return G.entities.flowStateEntity},function(G,u){if(Y.flowStateEntityKey){var O,Q=G==null?void 0:(O=G[Y.flowStateEntityKey])==null?void 0:O.currentStepId,M;
u=u==null?void 0:(M=u[Y.flowStateEntityKey])==null?void 0:M.currentStepId;M=_.Zs().getState().talkToRecs;if(Q&&Q!==u){var t;G=(G==null?void 0:(t=G[Y.flowStateEntityKey])==null?void 0:t.stepIdStack)||Object.keys(M.stepStates);t=!Z$B(M==null?void 0:M.stepStates[Q]);R8o(Y,Q,G,t)}}})};
dF9=function(Y){return _.Eh(_.Zs(),h8j,function(G){var u=i$y(Y);if(u){var O=Object.keys(G.stepStates);G=!Z$B(G==null?void 0:G.stepStates[u]);R8o(Y,u,O,G)}})};
Z$B=function(Y){var G=Object.keys((Y==null?void 0:Y.selectionStates)||{}).reduce(function(M,t){return M||(Y==null?void 0:Y.selectionStates[t].isSelected)},!1),u,O,Q=!!(Y==null?0:(u=Y.userQuery)==null?0:(O=u.userQuery)==null?0:O.trim());
return G||Q};
i$y=function(Y){if(Y.flowStateEntityKey){var G,u,O=(G=_.Zs().getState().entities.flowStateEntity)==null?void 0:(u=G[Y.flowStateEntityKey])==null?void 0:u.currentStepId;if(O)return O}};
R8o=function(Y,G,u,O){_.Zs().dispatch(_.t$("flowStateEntity",Y.flowStateEntityKey,{currentStepId:G,stepIdStack:u,key:Y.flowStateEntityKey,primaryButtonDisabled:O}))};
jzb=function(Y,G,u){u=u===void 0?{}:u;var O,Q;return _.a(function(M){if(O=b$o(G))return M.return(O);(Q=Sn9(Y,G,u))&&N4g(G,Q);return M.return(Q)})};
N4g=function(Y,G){var u=V8y(Y);u&&G.then(function(O){_.sH().resolve(_.Js).put(u,new _.Yb({innertubeResponse:O}))})};
b$o=function(Y){if(Y=V8y(Y)){var G=_.sH().resolve(_.Js);if(G.has(Y))return G.get(Y).then(function(u){return u==null?void 0:_.sn(u)})}return null};
V8y=function(Y){var G=_.z(Y.endpoint,_.ic);if(G!=null&&G.videoId)return G={videoId:G.videoId},_.F("web_imp_player_mute_params")&&(G.mutedAtStart=Y.startPlaybackInMutedState),_.ox("inline_playback",G)};
Sn9=function(Y,G,u){Y=_.iv(Y,G.endpoint,lLg(G,u)).then(function(O){return O});
return Promise.resolve(Y)};
lLg=function(Y,G){G=_.F("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!Y.startPlaybackInMutedState},G):Object.assign({},{vis:5,autonav:"1"},G);var u;G={contentPlaybackContext:_.vU(G,(u=_.z(Y.endpoint.commandMetadata,_.ug))==null?void 0:u.url,window.location.href)};_.F("web_imp_player_mute_params")&&(G.overrideMutedAtStart=!Y.startPlaybackInMutedState);return G};
cL9=function(Y,G){var u=window.MutationObserver;u&&(B4S=new u(function(O,Q){O=_.E(O);for(var M=O.next();!M.done;M=O.next()){M=M.value;var t;if(t=M.type==="childList"&&M.target)a:{t=Y;M=$FV(M.target);t=$FV(t);for(var K=null,L=0;L<M.length;L++)if(t.includes(M[L])){if(L===0){t=!1;break a}K=M[L];break}K?(M=qnB(M,K),t=qnB(t,K),t=M<t):t=!1}if(t){G();Q.disconnect();break}}}),(u=szy())&&B4S.observe(u,{childList:!0,
subtree:!0}))};
szy=function(){var Y=document.getElementsByTagName("ytd-rich-grid-renderer");if(Y.length>0)return Y[0];Y=document.getElementsByTagName("ytd-section-list-renderer");return Y.length>0?Y[0]:null};
$FV=function(Y){for(var G=[];Y;)G.push(Y),Y=Y.parentElement;return G};
qnB=function(Y,G){var u=Array.from(G.children);G=Y.indexOf(G);return G>0?u.indexOf(Y[G-1]):-1};
QX=function(Y,G,u){u=u===void 0?{}:u;return _.Q6(Y,u,G)};
UFg=function(Y){switch(Y){case "MUSIC":return!0;default:return!1}};
JLw=function(Y){if(Y=Y==null?void 0:Y.find(function(O){var Q,M;return((Q=_.z(O,v2o))==null?void 0:(M=Q.inlinePlaybackBadgeData)==null?void 0:M.replicateAsTimestamp)===!0}))if(Y=_.z(Y,v2o),Y==null?0:Y.icon){var G,u;
if((Y=(G=_.yAt(Y.icon))==null?void 0:(u=G.clientResource)==null?void 0:u.imageName)&&UFg(Y))return Y}};
YAN=function(Y){return Y==null?void 0:Y.filter(function(G){return G.premiereTrailerBadgeRenderer})};
G09=function(Y){var G,u=Y==null?void 0:(G=Y.find(function(L){return L.thumbnailOverlayTimeStatusRenderer}))==null?void 0:G.thumbnailOverlayTimeStatusRenderer,O,Q;
if((u==null?0:(O=u.icon)==null?0:O.iconType)&&UFg(u==null?void 0:(Q=u.icon)==null?void 0:Q.iconType)){var M;return{icon:u==null?void 0:(M=u.icon)==null?void 0:M.iconType}}var t;if(G=Y==null?void 0:(t=Y.find(function(L){return L.thumbnailOverlayBadgeViewModel}))==null?void 0:t.thumbnailOverlayBadgeViewModel)if(t=JLw(G.thumbnailBadges))return{icon:t};
var K;if(Y=Y==null?void 0:(K=Y.find(function(L){return L.thumbnailBottomOverlayViewModel}))==null?void 0:K.thumbnailBottomOverlayViewModel)if(K=JLw(Y.badges))return{icon:K};
return{}};
HyS=function(Y,G){var u=new uOV(function(M){Q(M)},G);
G=_.E(_.IE(Oyb(u),void 0,"D2uee"));var O=G.next().value,Q=G.next().value;_.RE(function(){Promise.resolve().then(function(){var M,t=(M=Y())!=null?M:{};u.playerControlsData=t;u.lastSeenPlayerApi=_.fy(t.playerApi);QfN(u)});
_.w_(function(){M6S(u)})},"xfRk8b");
return O};
EMj=function(Y){return function(G){var u=Y(),O={playerState:G};if(G===1){var Q;(Q=u.playerApi)==null||Q.loadModule("captions")}if(G===0){var M;(M=u.playerApi)==null||M.unloadModule("captions")}G!==-1&&u.setState(O)}};
t6o=function(Y){return function(G){Y().setState({playbackRate:G})}};
KJN=function(Y){return function(G){var u=Y(),O=u.playerApi,Q=O==null?void 0:O.getVideoData(),M=(Q==null?void 0:Q.isLive)||!1;Q=Q==null?void 0:Q.video_id;M={videoDuration:JHb(O||void 0),isLive:M,videoId:Q};M.videoId!==u.videoId&&(M=Object.assign({},_.ItM(O),M));if(G==null?0:G.playertype)M.playerType=G.playertype;if(O){M.captionsAvailable=NKN(O);G=M;var t;Q=(t=O.getStoryboardLevel(O.getNumberOfStoryboardLevels()-1))==null?void 0:t.intervalMs;G.storyboardInterval=Q?Q/1E3:void 0;M.captionsAvailable&&
(M.captionsEnabled=jiS(O))}M.volumeMuted=!(O==null||!O.isMuted());u.setState(M)}};
aKS=function(Y){return function(G){var u=Y(),O=u.playerApi;if(O){var Q=O.getPresentingPlayerType();G={playedTime:G||0,percentLoaded:O.getVideoLoadedFraction(),playerType:Q};u.playerState===0&&(G.playedTime=u.videoDuration);u.isLive&&(Q=O.getProgressState(Q),G.playedTime-=Q.seekableStart,G.videoDuration=JHb(O));if(u.playerType===1)O=!1;else{var M;if((M=u.uxConfig)==null?0:M.showCuedOverlay){var t;O=!((t=u.playerApi)==null?0:t.getPlayerStateObject(u.playerType).isDomPaused)}else O=!0}O&&delete G.playedTime;
u.setState(G)}}};
TVg=function(Y){return function(){var G=Y(),u,O,Q,M={volume:(Q=(u=G.playerApi)==null?void 0:u.getVolume())!=null?Q:0,volumeMuted:!((O=G.playerApi)==null||!O.isMuted())};G.setState(M)}};
LJj=function(Y){return function(){var G=Y(),u=G.playerApi;if(u){var O={captionsAvailable:NKN(u)};O.captionsAvailable&&(O.captionsEnabled=jiS(u));G.setState(O)}}};
gMN=function(Y){return{appApi:Object.assign({},_.K4U(),{showCaptionsToggleToast:function(G){var u,O;(O=(u=Y()).showCaptionsToggleToast)==null||O.call(u,G)},
openInMiniplayer:function(){var G,u;(u=(G=Y()).openInMiniplayer)==null||u.call(G)}})}};
XHw=function(Y,G){var u,O,Q;return!!(Y==null?0:(u=Y.playerResponse)==null?0:(O=u.playerConfig)==null?0:(Q=O.inlinePlaybackConfig)==null?0:Q.showScrubbingControls)&&!(G==null?0:G.hideScrubbingControls)};
P$o=function(Y){var G=!Y.miniplayerIsActive;return[5,2,0].includes(Y.miniplayerPlaybackState)||G};
IKV=function(Y){return _.F("web_transcript_cue_id_killswitch")?String(Y):"ytd-transcript-renderer_"+Y};
k09=function(Y){return _.F("web_transcript_cue_id_killswitch")?!0:Y.startsWith("ytd-transcript-renderer")};
nMw=function(Y){var G=_.N5(),u;if(u=_.So("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var O;u=(O=u())==null?void 0:O.layoutId}else u=null;XEx(G,u,Y)};
FJw=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield((0,_.Ok)("HwlOhd"),2);Y=_.UdX;return G.return(Y)})};
pHb=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield((0,_.Ok)("JoU6vf"),2);Y=_.yr;return G.return(Y)})};
z3x=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield((0,_.Ok)("hU04te"),2);Y=_.IV4;return G.return(Y)})};
mzx=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield((0,_.Ok)("dIvQ6c"),2);Y=_.eAb;return G.return(Y)})};
WJy=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield((0,_.Ok)("m9Vw4"),2);Y=_.hA9;return G.return(Y)})};
rVw=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield((0,_.Ok)("mcjWUc"),2);Y=_.qIw;return G.return(Y)})};
xzb=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield((0,_.Ok)("QiZf0e"),2);Y=_.bjb;return G.return(Y)})};
fK9=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield((0,_.Ok)("f8YPh"),2);Y=_.nkR;return G.return(Y)})};
C$w=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield((0,_.Ok)("b3MoKf"),2);Y=_.k24;return G.return(Y)})};
yVx=function(Y){Y.style.height="auto";Y.style.height=Math.min(Y.scrollHeight||20,80)+"px"};
e3b=function(){var Y;return String(Math.floor(((Y=_.vx())==null?void 0:Y.getCurrentTime())||0)*1E3)};
oMg=function(Y){if(Y.onWelcomeCommand)return _.FS(Y.onWelcomeCommand);Y=_.z(Y.inputComposerViewModel,AVx);if(Y==null?0:Y.welcomeFeatureContinuation)return _.Zjg(Y.welcomeFeatureContinuation)};
iy9=function(Y){var G=_.N5(),u;u=(u=_.So("yt.www.ads.eventcache.getLastCompanionData"))?(u=u())&&u.layoutId:null;XEx(G,u,Y)};
R3x=function(Y){var G=_.N5(),u;u=(u=_.So("yt.www.ads.eventcache.getLastCompanionData"))?(u=u())&&u.layoutId:null;XEx(G,u,Y)};
wHo=function(Y){return Y.filter(function(G){return!_.z(G,_.AV)})};
Zyy=function(Y){var G,u,O,Q;if(Y=Y==null?void 0:(G=Y.contents)==null?void 0:(u=G.twoColumnWatchNextResults)==null?void 0:(O=u.results)==null?void 0:(Q=O.results)==null?void 0:Q.contents){var M,t;return(t=(M=Y.find(function(K){return!!K.videoPrimaryInfoRenderer}))==null?void 0:M.videoPrimaryInfoRenderer)==null?void 0:t.updatedMetadataEndpoint}};
DzN=function(Y,G){var u;return(u=Y.sourceConfigs)==null?void 0:u.find(function(O){return O.videoId===G})};
h39=function(Y){return Y==="End of video"||Y==="End of playlist"};
dzB=function(Y){var G,u,O,Q;return(G=Y.getWatchNextResponse())==null?void 0:(u=G.contents)==null?void 0:(O=u.twoColumnWatchNextResults)==null?void 0:(Q=O.playlist)==null?void 0:Q.playlist};
byb=function(Y){var G,u,O,Q,M,t;return(G=dzB(Y))==null?void 0:(u=G.playlistButtons)==null?void 0:(O=u.menuRenderer)==null?void 0:(Q=O.topLevelButtons)==null?void 0:(M=Q[0])==null?void 0:(t=M.playlistLoopButtonRenderer)==null?void 0:t.playlistLoopStateEntityKey};
SAN=function(Y){var G=_.sH().resolve(_.yq),u;return(G=(u=_.z(G.getAutoplayEndpoint(),_.ic))==null?void 0:u.playlistId)&&G===Y};
V6b=function(Y,G,u,O,Q){function M(){_.AN.cancelJob(Mg);var t=NVN(G,u/Y.getPlaybackRate()),K=t.hours,L=t.minutes;t=(t.seconds*1E3||6E4)/Y.getPlaybackRate();Y.setVideoTimeLeft(jfw(K,L));O&&Y.getPlayerState()!==0&&Y.setSleepTimerTimeLeft(jfw(K,L,!0));(K>0||L>0)&&!Q&&(Mg=_.Ti(_.AN,M,t))}
_.AN.cancelJob(Mg);Mg=_.Ti(_.AN,M)};
BVS=function(Y,G,u){function O(){_.AN.cancelJob(lKb);var Q=NVN(G,u),M=Q.hours;Q=Q.minutes;var t=6E4/Y.getPlaybackRate();if(M>0||Q>0)Y.setSleepTimerTimeLeft(jfw(M,Q,!0)),lKb=_.Ti(_.AN,O,t)}
_.AN.cancelJob(lKb);lKb=_.Ti(_.AN,O)};
qAx=function(Y,G){var u=Y.getVolume()/(G/500),O=function(Q){_.AN.cancelJob($zV);var M=Math.floor(Q-u);Y.setVolume(M,!1);M>0&&($zV=_.Ti(_.AN,function(){O(M)},500))};
_.AN.cancelJob($zV);$zV=_.Ti(_.AN,function(){O(Y.getVolume())})};
sfV=function(Y,G){_.AN.cancelJob($zV);G&&Y.syncVolume()};
cVb=function(){var Y={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Q6("SLEEP_TIMER_DISRUPTED")}}}}};_.sH().resolve(_.rH).resolveCommand(Y)};
UzN=function(Y){return(Y.getDuration()-Y.getProgressState().current)*1E3};
NVN=function(Y,G){Y=Y+G-(0,_.GC)();if(Y<=0)return{hours:0,minutes:0,seconds:0};var u=new vMy(0,0,0,0,0,0,Y);Y=u.getHours();G=u.getMinutes();u=u.getSeconds();u!==0&&G++;G!==0&&G%60===0&&(Y++,G=0);return{hours:Y,minutes:G,seconds:u}};
jfw=function(Y,G,u){return Y>0&&G>0?u?_.Q6("TIME_LEFT_HOURS_MINUTES",{hours:Y.toString(),minutes:G.toString()}):_.Q6("TIME_HOURS_MINUTES",{hours:Y.toString(),minutes:G.toString()}):Y>0?u?_.Mu("TIME_LEFT_HOURS",Y):_.Mu("TIME_HOURS",Y):u?_.Q6("TIME_LEFT_MINUTES",{minutes:G.toString()}):_.Q6("TIME_MINUTES",{minutes:G.toString()})};
YDb=function(Y,G){if(Y.timelyActions)return Y.timelyActions.find(function(u){var O;return((O=_.z(u,JVw))==null?void 0:O.cueRangeId)===G})};
Gyx=function(Y){return _.F("kevlar_watch_cinematics_invisible")||Y.fullscreen&&_.F("kevlar_watch_cinematics_invisible_in_fullscreen")||Y.theater&&!Y.fullscreen&&_.F("kevlar_watch_cinematics_invisible_in_theater")};
uU9=function(){var Y=document.createElement("canvas"),G=Y.getContext("2d");if(!G)throw Error("Vl");_.w0(Y,{position:"absolute",width:"100%",height:"100%"});return{element:Y,context:G}};
Ocx=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.F("kevlar_watch_cinematics_css_blur")};
QGb=function(Y){var G=Y.externalVideoId||"";return G?Y.isShortsEligible?"https://www.youtube.com/shorts/"+G:"https://www.youtube.com/watch?v="+G:""};
M59=function(Y){var G=[];Y.viewCount&&G.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:Y.viewCount});Y.likeCount&&G.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:Y.likeCount});return G};
Hcx=function(Y){var G,u,O={"@context":"https://schema.org","@type":"VideoObject",description:_.Ri(Y.description),duration:"PT"+(Y.lengthSeconds||"0")+"S",embedUrl:Y.embed?Y.embed.iframeUrl:"",name:_.Ri(Y.title),thumbnailUrl:((G=Y.thumbnail)==null?void 0:(u=G.thumbnails)==null?void 0:u.map(function(P){return P&&P.url||""}))||[],
uploadDate:Y.publishDate};_.F("mweb_video_schema_id_killswitch")||(O["@id"]=QGb(Y));G=M59(Y);G.length&&(O.interactionStatistic=G);Y.category&&(O.genre=Y.category);Y.ownerChannelName&&(O.author=Y.ownerChannelName);Y.liveBroadcastDetails&&(O.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:Y.liveBroadcastDetails.startTimestamp,endDate:Y.liveBroadcastDetails.endTimestamp}]);if(Y.learningResource){Y=Y.learningResource;O["@type"]=["VideoObject","LearningResource"];var Q;if((Q=Y.learningResourceType)==
null?0:Q.length)O.learningResourceType=Y.learningResourceType[0];var M;if((M=Y.educationalAlignment)==null?0:M.length)O.educationalAlignment={"@type":"AlignmentObject",targetName:Y.educationalAlignment[0]};var t;if((t=Y.educationalLevel)==null?0:t.length){Q=Y.educationalLevel[0];var K;if((K=Y.educationalLevelCountry)==null?0:K.length)Q+=" ("+Y.educationalLevelCountry+")";O.educationalLevel=Q}var L,g;if(((L=Y.learningResourceType)==null?0:L.length)&&Y.learningResourceType[0]==="Problem walkthrough"&&
((g=Y.problemDescriptions)==null?0:g.length))for(O.hasPart=[],K=_.E(Y.problemDescriptions),L=K.next();!L.done;L=K.next())Q=L.value,L=Q.problemDescriptionText,g=Q.startOffset,Q=Q.url,L&&g!==void 0&&Q&&O.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:L,text:L,startOffset:g,url:Q})}return O};
EUy=function(Y){return Y?Y.status==="LIVE_STREAM_OFFLINE":!1};
t59=function(Y){return Y&&Y.contents&&Y.contents.twoColumnWatchNextResults&&Y.contents.twoColumnWatchNextResults.results&&Y.contents.twoColumnWatchNextResults.results.results.contents};
KKx=function(Y){if((Y==null?void 0:Y.value)===void 0||Y==null||!Y.unit)return"initial";a:{switch(Y.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var G="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":G="%";break a}G=void 0}return G?""+Y.value+G:"initial"};
aBy=function(Y){return Y?Y.status==="LIVE_STREAM_OFFLINE":!1};
TQj=function(Y){return Y&&Y.contents&&Y.contents.twoColumnWatchNextResults&&Y.contents.twoColumnWatchNextResults.results&&Y.contents.twoColumnWatchNextResults.results.results.contents};
gUb=function(Y,G){var u,O,Q,M,t,K,L;_.a(function(g){switch(g.nextAddress){case 1:u=_.ya.getInstance();O=_.Jj.instance;Q=_.Af.instance;if(!Q)return LKS(Y,O,G),g.return();_.i3(g,2);Y.onLoadingCommand&&O.resolveCommand(Y.onLoadingCommand);return g.yield(u.getCurrentPositionFromGeolocation(),4);case 4:M=g.yieldResult;if(!Y.resolveLocationCommand){g.jumpTo(5);break}t=u.createLocationInfo(M);return g.yield(_.iv(Q,Y.resolveLocationCommand,{locationInfo:t}),6);case 6:K=g.yieldResult;if(!K||"error"in K&&K.error||
K.errorMetadata)return LKS(Y,O,G),g.return();var P;if(K==null?0:(P=K.onResponseReceivedActions)==null?0:P.length){P=_.E(K.onResponseReceivedActions);for(var I=P.next();!I.done;I=P.next())O.resolveCommand(I.value)}(_.z(Y.onSuccessCommand,_.ic)||_.z(Y.onSuccessCommand,_.Y3))&&_.$s(G.hostElement,"yt-navigate",{endpoint:Y.onSuccessCommand,reload:!0});case 5:_.j1(g,0);break;case 2:L=_.b3(g);if(L instanceof GeolocationPositionError&&L.code===GeolocationPositionError.PERMISSION_DENIED)return Y.onDeniedCommand&&
O.resolveCommand(Y.onDeniedCommand),g.return();LKS(Y,O,G);_.Sd(g)}})};
LKS=function(Y,G,u){Y.onFailureCommand&&(G.resolveCommand(Y.onFailureCommand),_.qZ(u.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
POx=function(Y,G){var u=_.z(Y,_.fcT);if(u&&G){Y=u.videoIds||[u.videoId];var O;G=(O=_.$s(G,"yt-lockup-requested",{videoIds:Y}).detail)==null?void 0:O.returnValue;var Q;u.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?Q=G?G:Y.map(function(M){return{videoId:M,navigationEndpoint:u.videoCommand}}):G&&(Q=G);
Q&&(O=Q.map(function(M){var t=Object,K=t.assign;var L=M.navigationEndpoint;if(!_.z(L,_.Qa)){var g=_.z(L,_.ic);if(g){if(delete g.index,delete g.playlistId,g=_.z(L==null?void 0:L.commandMetadata,_.ug),g==null?0:g.url){var P=g.url;P=_.ud(P,"list");P=_.ud(P,"index");g.url=P}}else L=void 0}return K.call(t,{},M,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:L})}),Xay(O,u))}};
IB9=function(Y){var G=_.wp();if(Y=_.z(Y,_.CDR))Y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&G.clearQueue(),Y.closeMiniplayer&&_.sH().resolve(_.yo).close(!0)};
nUw=function(Y){kyS(_.wp(),Y)};
FKo=function(Y){var G;(Y=(G=_.z(Y,_.rgR))==null?void 0:G.setVideoIds)&&Y.forEach(function(u){_.WdU(_.wp(),u)})};
z4w=function(Y){paj(_.wp(),Y)};
mPV=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(Y){return!1}};
tu=function(Y,G,u){(_.F("desktop_keyboard_shortcut_usage_log")||u&&_.F("web_shorts_keyboard_shortcut_usage_log"))&&(G?HL.get(Y):E$.get(Y))&&(Y=G?WKw.get(Y):rrb.get(Y))&&_.RK(_.FA(),Y)};
fBS=function(Y){return Y.findIndex(function(G){return xPV.indexOf(G.tagName)>-1})>-1};
CO9=function(Y,G){return Y.findIndex(function(u){return u.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(G.keyCode):!1};
e4w=function(Y,G){return _.T(yrg,{data:Y,onYtNavigate:G})};
Arx=function(Y,G){return _.v2(Y.entities,"pageHeaderEntity",G)};
icb=function(Y,G){return Y.map(function(u){if(u.tabRenderer)return oU9(u.tabRenderer);if(u.expandableTabRenderer&&G){var O=u.expandableTabRenderer;return{customTabRenderable:function(){return G(O)}}}return{}})};
oU9=function(Y){return{identifier:Y.tabIdentifier,aTagConfig:_.zU({innertubeCommand:Y.endpoint,forceNewState:!0}),title:Y.title,selected:Y.selected,disabled:Y.unselectable,icon:Y.icon}};
Zcb=function(Y,G,u,O){if(Y)return O=O||Y.likeStatus,G?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:O==="LIKE",isDisabled:!Y.likesAllowed,defaultIcon:{iconType:u},defaultText:O==="LIKE"?Y.likeCountWithUnlikeText:Y.likeCountText,toggledText:O==="LIKE"?Y.likeCountText:Y.likeCountWithLikeText,defaultNavigationEndpoint:R49(Y,"LIKE"),defaultServiceEndpoint:way(Y,"LIKE"),toggledServiceEndpoint:way(Y,"INDIFFERENT"),defaultTooltip:_.Ri(Y.likeCountTooltipText),toggledTooltip:_.Ri(Y.likeCountTooltipText),
targetId:Y.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:O==="DISLIKE",isDisabled:!Y.likesAllowed,defaultIcon:{iconType:u},defaultText:O==="DISLIKE"?Y.dislikeCountWithUndislikeText:Y.dislikeCountText,toggledText:O==="DISLIKE"?Y.dislikeCountText:Y.dislikeCountWithDislikeText,defaultNavigationEndpoint:R49(Y,"DISLIKE"),defaultServiceEndpoint:way(Y,"DISLIKE"),toggledServiceEndpoint:way(Y,"INDIFFERENT"),defaultTooltip:_.Ri(Y.dislikeCountTooltipText),
toggledTooltip:_.Ri(Y.dislikeCountTooltipText)}};
R49=function(Y,G){if(G==="LIKE")return Y.likeCommand;if(G==="DISLIKE")return Y.dislikeNavigationEndpoint};
way=function(Y,G){var u;return(u=Y.serviceEndpoints)==null?void 0:u.find(function(O){var Q;return((Q=_.z(O,_.XV))==null?void 0:Q.status)===G})};
DPN=function(Y,G,u,O){Y=G-Y;u=O-u;return Math.sqrt(Y*Y+u*u)};
h49=function(Y){var G=Y>>8&255,u=Y&255;return"#"+(Y>>16&255).toString(16).padStart(2,"0")+G.toString(16).padStart(2,"0")+u.toString(16).padStart(2,"0")};
dPN=function(Y,G){Y&&_.sH().resolve(_.rH).resolveCommand(Y,{forceClickLogging:!0,form:{element:G}})};
bcy=function(Y){if(Y.simpleText)return[{text:Y.simpleText}];var G;return(G=Y.runs)!=null?G:[]};
SDy=function(Y){var G=Y.startEndTimeTemplate,u=Y.startTimeUtcMillis;Y=Y.endTimeUtcMillis;if(G&&u&&Y)return _.i8(eUS(_.Ri(G),Number(u),Number(Y)))};
NQB=function(Y,G){var u,O,Q=Y==null?void 0:(u=Y.viewCount)==null?void 0:(O=u.videoViewCountRenderer)==null?void 0:O.shortViewCount;if(!G&&Q)return Q;var M,t;return Y==null?void 0:(M=Y.viewCount)==null?void 0:(t=M.videoViewCountRenderer)==null?void 0:t.viewCount};
jGb=function(Y,G){var u=Y==null?void 0:Y.relativeDateText;return!G&&u?[u,!0]:[Y==null?void 0:Y.dateText,!1]};
V5g=function(Y,G,u,O,Q){O=O===void 0?"":O;Q=Q===void 0?!1:Q;var M=NQB(Y,G),t=_.E(jGb(Y,G)),K=t.next().value;t=t.next().value;G=G?Y==null?void 0:Y.sponsorsOnlyFirstTimeLongText:Y==null?void 0:Y.sponsorsOnlyFirstTimeShortText;var L=[];u&&M&&L.push(M);!u&&t||!K||L.push(K);Y=[Q?Y==null?void 0:Y.subtitle:void 0].concat(_.c8(L),[G,Y==null?void 0:Y.stationName,Y==null?void 0:Y.rating,Y?SDy(Y):void 0,Y==null?void 0:Y.upNextProgramText,Y==null?void 0:Y.superTitleLink]).filter(function(g){return!!g});
u={runs:[]};for(Q=0;Q<Y.length;Q++)u.runs.push.apply(u.runs,_.c8(bcy(Y[Q]))),Q<Y.length-1&&u.runs.push({text:" "+O+" "});return u};
lBb=function(Y,G){var u=_.$$k(G,{},Y,!0);return new Promise(function(O,Q){u.listenOnce("n",function(){Q(Error("hm`"+u.JSC$30611_getErrorDescription()))});
u.listenOnce("l",function(){var M=u.getResponseCode();if(M!==200)Q(Error("im`"+G+"`"+Y.type+"`"+Y.size+"`"+M));else try{O(JSON.parse(u.getResponseText()).encryptedBlobId)}catch(t){Q(t)}});
u.run()})};
BQw=function(Y){return Y.substring(Y.indexOf(":")+1,Y.indexOf(";"))};
$Pb=function(Y){return new Promise(function(G,u){var O=new FileReader;O.onloadend=function(){try{var Q=new Uint8Array(O.result);Q.length<8&&u(void 0);var M=Q.subarray(0,8);Q="";for(var t=0;t<M.length;t++)Q+=("0"+M[t].toString(16)).substr(-2);Q.startsWith("ffd8ff")?G("image/jpeg"):Q.startsWith("47494638")?G("image/gif"):Q.startsWith("89504e470d0a1a0a")?G("image/png"):Q.startsWith("424d")?G("image/bmp"):G(void 0)}catch(K){u(K)}};
O.onerror=u;O.readAsArrayBuffer(Y)})};
qDy=function(Y){return new Promise(function(G,u){var O=new Image;O.crossOrigin="anonymous";O.onload=function(){var Q=document.createElement("canvas");Q.width=O.naturalWidth;Q.height=O.naturalHeight;var M=Q.getContext("2d");if(!M)throw Error("jm");M.drawImage(O,0,0);M=BQw(Y);Q.toBlob(function(t){t?G(t):u()},M)};
O.src=Y})};
crg=function(Y,G){var u;if(((u=_.z(Y,_.Qa))==null?void 0:u.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var O;_.$s((O=G.hostElement)!=null?O:G,"yt-shorts-reset");_.Qe9(_.sH().resolve(_.Hl),Y).then(function(M){sGB(M,G,Y)})}else{var Q;
_.c$((Q=G.hostElement)!=null?Q:G,[Y]).then(function(M){M&&sGB(M.data,G,Y)})}};
sGB=function(Y,G,u){if(Y){var O=_.z(Y.replacementEndpoint,_.Qa);if(O){Y.sequenceContinuation&&(O.sequenceParams=Y.sequenceContinuation);var Q;_.$s((Q=G.hostElement)!=null?Q:G,"yt-navigate",{endpoint:Y.replacementEndpoint})}else if((Y==null?void 0:Y.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(Y==null?0:Y.watchStatus)&&_.z(Y.watchStatus,_.gwR)){var M;_.$s((M=G.hostElement)!=null?M:G,"yt-navigate",{endpoint:u})}}};
UPb=function(Y){var G=_.sH().resolve(_.Fk),u=_.A$.currentPageTypeSelector(G.getState())||"";G=_.A$.currentPageSubTypeSelector(G.getState())||"";u=u==="ytd-browse"&&G==="home";return _.F("web_guide_entry_enable_cache_for_non_home_pages")?(Y=(Y==null?void 0:Y.navigationEndpoint)&&_.JH(Y.navigationEndpoint)==="home",{disableCache:u&&Y}):{disableCache:u}};
YSx=function(Y,G,u,O){if(Y&&Y.length){var Q={};if(G){var M=void 0;u&&(M={commandContext:{onTap:{innertubeCommand:u||{}}}});Q.header={panelHeaderViewModel:{title:_.P3(G),rendererContext:M}}}G=[];Y=_.E(Y);for(u=Y.next();!u.done;u=Y.next()){M=u.value;u=_.z(M,vUN);M=_.z(M,Jrw);var t=void 0,K=void 0;if((t=M)==null?0:(K=t.expandableItems)==null?0:K.length)for(M=_.E(M.expandableItems),t=M.next();!t.done;t=M.next()){t=t.value.guideEntryRenderer;var L=K=void 0;if(((K=t)==null?void 0:(L=K.icon)==null?void 0:
L.iconType)==="VIEW_LIST_CAIRO"){u=t;break}}K=t=void 0;M=((t=u)==null?0:t.formattedTitle)?_.P3((K=u)==null?void 0:K.formattedTitle):void 0;t=void 0;K=(t=u)==null?void 0:t.isPrimary;if(u&&M&&!K){M={title:M};u.navigationEndpoint&&(M.rendererContext={commandContext:{onTap:{innertubeCommand:u.navigationEndpoint}}});t=[];L=K=void 0;if(((K=u)==null?0:(L=K.thumbnail)==null?0:L.thumbnails)&&u.thumbnail.thumbnails.length>0){K=_.E(u.thumbnail.thumbnails);for(L=K.next();!L.done;L=K.next())t.push({url:L.value.url});
M.leadingAccessory={avatarViewModel:{image:{sources:t},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(K=void 0,(K=u.icon)==null?0:K.iconType)t.push({clientResource:{imageName:u.icon.iconType||""}}),M.leadingImage={sources:t};K=t=void 0;((t=u)==null?0:(K=t.badges)==null?0:K.liveBroadcasting)?(M.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",M.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},M.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
u.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?M.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":u.count&&(M.trailingLabel={content:u.count.toString()});G.push({listItemViewModel:M})}}G.length!==0?(Q.content={listViewModel:{listItems:G}},O===0&&(Q.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):Q=void 0;if(Q)return G=void 0,O===0&&(G={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:Q}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:G}}}}};
GwS=function(Y,G,u,O){if(G!=null&&G.isPrimary){switch(O){case 1:if(G.serviceEndpoint)break;u=YSx(u,G.formattedTitle,G.navigationEndpoint,O);if(!u)break;G.serviceEndpoint=u;G.navigationEndpoint=void 0;break;case 0:!G.mouseEnterEndpoint&&(u=YSx(u,G.formattedTitle,void 0,O))&&(G.mouseEnterEndpoint=u,G.mouseLeaveEndpoint={hideSheetCommand:{}})}Y.push({guideEntryRenderer:G})}};
u8x=function(Y){if(!Y)return!1;try{if(Y.host&&Y.host.tagName==="YT-FORMATTED-STRING"&&Y.host.id==="contenteditable-textarea"||Y.nodeType===Node.ELEMENT_NODE&&Y.tagName==="YTD-COMMENT-INPUT")return!0}catch(G){return!1}return u8x(Y.parentNode)};
KC=function(Y){return Y?Y.tagName==="A"&&Y.href&&Y.classList.contains("yt-simple-endpoint"):!1};
Oub=function(Y){return Y?Y.tagName==="IMG"&&Y.classList.contains("emoji"):!1};
Q9x=function(Y,G,u){if(!Y)return null;var O=KC(Y);if(O&&u)return G=Y.pathname.substring(Y.pathname.indexOf("/channel/")+9),document.createTextNode("@"+G);if(O&&!u)return document.createTextNode("");if(Oub(Y))return u=Y.alt,Y=Y.dataset.emojiId,!Y&&G&&(G=_.cE(G,u))&&G.isCustomEmoji&&(Y=G.emojiId),Y?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+Y+">"):document.createTextNode(u);O=Y.cloneNode(!1);for(var Q=0;Q<Y.childNodes.length;++Q){var M=Q9x(Y.childNodes[Q],G,u);M&&O.appendChild(M)}return O};
Mqj=function(Y){return Y?KC(Y)?Y:Mqj(Y.lastChild):null};
Hux=function(Y){return Y?KC(Y)?Y:Hux(Y.firstChild):null};
ES9=function(Y){if(!Y)return null;for(var G=Y.previousSibling;G;)if(G.nodeType===Node.ELEMENT_NODE&&G.nodeName==="BR")G=G.previousSibling;else if(G.nodeType===Node.TEXT_NODE&&/\s+/.test(G.textContent))G=G.previousSibling;else break;(G=Mqj(G))?Y=G:Y=(Y=Y.parentNode)?Mqj(Y.previousElementSibling):null;return Y};
tqx=function(Y){if(!Y)return null;for(var G=Y.nextSibling;G;)if(G.nodeType===Node.ELEMENT_NODE&&G.nodeName==="BR")G=G.nextSibling;else if(G.nodeType===Node.TEXT_NODE&&/\s+/.test(G.textContent))G=G.nextSibling;else break;return(G=Hux(G))?G:tqx(Y.parentNode)};
KGx=function(Y){var G=_.Et(),u=G.JSC$11678_getStartNode();if(!u8x(u.parentNode))return null;G=G.JSC$11678_getStartOffset();if(u.nodeType===Node.TEXT_NODE){var O=_.pm(u,KC);if(O){if(Y&&G===0||!Y&&G===u.length)return O}else{if(Y&&G===u.length)return!u||u.nodeName==="BR"||u.nextElementSibling&&_.vE(u.nextElementSibling,"display")==="block"?null:Hux(u.nextElementSibling);if(!Y&&G===0)return u?Mqj(u.previousElementSibling):null}}if(u.nodeType===Node.ELEMENT_NODE)if(Y){if(0<=G&&G<u.childNodes.length)return Hux(u.childNodes[G])}else if(0<
G&&G<=u.childNodes.length)return Mqj(u.childNodes[G-1]);return null};
a0w=function(Y,G,u){if(!Y)return null;if(Y.nodeType===Node.TEXT_NODE)if(u){var O=ES9(Y);if(O&&!/^\s+\S/.test(Y.wholeText.substr(0,G)))return O}else if((O=tqx(Y))&&!/\S\s+/.test(Y.wholeText.substr(G,Y.wholeText.length)))return O;return Y.nodeType===Node.ELEMENT_NODE?u?ES9(Y.childNodes[G]):tqx(Y.childNodes[G]):a0w(Y.parentNode,G,u)};
T0S=function(Y){if(Y.hasChildNodes())switch(Y.tagName){case "DIV":case "A":case "SPAN":var G="";for(Y=Y.firstChild;Y;Y=Y.nextSibling)G+=T0S(Y);return G;default:return""}else switch(Y.nodeType){case 3:return Y.textContent;default:return""}};
LGN=function(Y){switch(Y){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"}};
gSw=function(Y){return Y.map(function(G){return{settingsRadioOptionRenderer:{title:_.jy(G.name),asideText:_.jy(G.approximateSize),id:LGN(G.format)}}})};
PTN=function(Y){if(Y&&Y.length!==0)return Y.filter(XGS()).map(function(G){return{settingsRadioOptionRenderer:{title:G.name,asideText:G.approximateSize,id:LGN(G.formatType)}}})};
I0S=function(Y){if(Y)return Y.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
kww=function(Y,G){Y=new Set(Y!=null?Y:[]);if(Y.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(Y.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(Y.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(Y.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(Y.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(G)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
nSb=function(Y){var G=Y.indexOf("(");return G!==-1?Y.substring(G+1,Y.length-1):Y};
_.pGN=function(Y,G,u,O,Q){u||(u=_.FGN);var M;(M=_.z(u.commandMetadata,_.ug))!=null&&M.url||(u=Error("om`"+JSON.stringify(u)),_.o0(u),u=_.FGN);u=_.gX.unsafeClone(u);M=_.O_(_.z(u.commandMetadata,_.ug).url,"search_query",Y);_.Gh(location.href,"sv")==="1"&&(_.z(u,_.GA).params="EgOAAgE%3D",M=_.O_(M,"sv","1"));_.z(u,_.GA)&&(_.z(u,_.GA).query=Y);M=M.replace(/%20/g,"+");_.z(u.commandMetadata,_.ug).url=M;Q=_.F("desktop_enable_entity_suggest")?{entityMid:Q}:{};_.sH().resolve(_.rH).resolveCommand(u,{form:{tempData:Object.assign({},
{gs_l:G,oq:O!=null?O:Y},Q),isFromShorts:_.h$()==="shorts"}})};
_.z$y=function(Y){var G=_.DE("SBOX_SETTINGS"),u="https://"+(G.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";u+="&delq="+encodeURIComponent(Y);(Y=G==null?void 0:G.PSUGGEST_TOKEN)&&(u+="&tok="+Y);(G=G==null?void 0:G.SESSION_INDEX)&&(u+="&authuser="+G);return u};
m1S=function(Y){switch(Y){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
rmj=function(Y,G,u,O,Q,M){var t=_.gX.clone(WGB);t.locale=_.DE("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;t.report={description:Q||"<empty>"};Q=_.DE("SBOX_SETTINGS",{});G=G.join(",");var K=Date.now();Y={choice_cc:O,choice_id_cc:u,choices_sc:G,gl:Q.REQUEST_DOMAIN,hl:Q.REQUEST_LANGUAGE,query:Y,time:K};M&&(Y.choice_additional_comment_cc=M);_.vDV(t,Y)};
x1S=function(Y){var G=new Map;G.set("authuser",_.DE("SESSION_INDEX","0"));return _.CO(Y,G)};
CTw=function(Y){var G;return _.a(function(u){switch(u.nextAddress){case 1:if(!Y||!f0j(Y))return u.return(null);G=null;switch(_.DE("INNERTUBE_CLIENT_NAME")){case "WEB":return u.jumpTo(2);case "WEB_REMIX":G=Y.getPlayer()}u.jumpTo(3);break;case 2:return u.yield(Y.getPlayerPromise(),4);case 4:G=u.yieldResult;u.jumpTo(3);break;case 3:return u.return(G)}})};
f0j=function(Y){return["ytd-player","ytmusic-player"].includes(String(Y.tagName||"").toLowerCase())};
ym9=function(Y){Y=Math.round(Y);return Y%2?Y-1:Y};
e$N=function(Y){Y=Math.round(Y);return Y%2===0?Y-1:Y};
Amx=function(Y){var G=["h","m","s"],u=_.Vj(G);u.reverse();var O={};Y=(Y.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(t){var K=(t.match(/[hms]/)||[""])[0];return K?(O[K]=parseInt(t.match(/\d+/)[0],10),!1):!0});
for(Y.reverse();Y.length&&u.length;){var Q=u.shift();Q in O||(O[Q]=parseInt(Y.shift(),10))}if(Y.length||O.s>59||O.m>59||O.h>9)return null;var M="";G.forEach(function(t){O[t]&&(M+=""+O[t]+t)});
return M||null};
oSg=function(Y){var G,u,O;if(Y=(G=Y.createPlaylistDialogFormSchema)==null?void 0:(u=G.fieldSchemas)==null?void 0:(O=u.title)==null?void 0:O.validationSchema)for(G=[Y.syncStep,Y.asyncStep].filter(function(Q){return Q!==void 0}),G=_.E(G),u=G.next();!u.done;u=G.next()){u=u.value.rules;
if(!u)break;u=_.E(u);for(u=u.next();!u.done;u=u.next())return _.z(u.value,Lz9)}};
R$o=function(Y){var G,u,O;if(Y=(G=Y.createPlaylistDialogFormSchema)==null?void 0:(u=G.fieldSchemas)==null?void 0:(O=u.visibility)==null?void 0:O.validationSchema)for(G=[Y.syncStep,Y.asyncStep].filter(function(Q){return Q!==void 0}),G=_.E(G),u=G.next();!u.done;u=G.next()){u=u.value.rules;
if(!u)break;u=_.E(u);for(O=u.next();!O.done;O=u.next())if(O=_.z(O.value,iux))return G=void 0,(G=O.translations)==null?void 0:G.visibilityNotValidErrorMessage}};
wGN=function(){var Y,G;return(G=(Y=_.sH().resolve(_.q3(_.Ee)))==null?void 0:Y())!=null?G:!1};
Zux=function(Y){var G=21;if(!Y)return G;G+=Y.headerTitle?27:0;G+=Y.headerTitle&&Y.hasHeaderActionHeader?4:0;return G+=Y.headerTitle&&Y.headerSubtitle?16:0};
D1x=function(Y){var G=0;if(!Y)return G;G+=Y.hasFooterPrimaryButton||Y.hasFooterSecondaryButton?48:0;G+=Y.footerTrailingLabel||Y.footerLeadingLabel?30:0;return G+=Y.hasFooterPrimaryButton||Y.hasFooterSecondaryButton||!Y.footerTrailingLabel&&!Y.footerLeadingLabel?0:12};
h$y=function(Y){var G=new _.KG,u=Y;return{subscribe:function(O){G.subscribe("changed",O)},
dispatch:function(O,Q){var M=u;if(O==="Touch Start")u=Object.assign({},M,{isAnimating:!1,initialY:Q.event.touches[0].clientY});else if(O==="Touch Move"){O=Q.contentScrollable?-1*(M.initialY-24):0;var t,K=(t=Q.headerDivHeight)!=null?t:Zux(Q.header),L;t=(L=Q.footerDivHeight)!=null?L:D1x(Q.footer);L=Math.min(Q.fullContentWrapperHeight,Q.heightMap[Q.contentWrapperId]+K-t);u=Object.assign({},M,{currentY:Math.max(O,Q.event.touches[0].clientY-M.initialY),maxHeightForContentWrapper:Math.min(L,Math.max(0,
(M.isFullScreen?L:Q.contentWrapperHeight)-M.currentY))})}else u=O==="Snap To Full Screen"?Object.assign({},M,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:Q.maxHeight}):O==="Snap To Neutral Position"?Object.assign({},M,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:Q.maxHeight}):O==="Close Sheet"?Object.assign({},M,{isAnimating:!0,currentY:Q.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:Q.maxHeight}):M;G.publish("changed",u)}}};
d1V=function(){_.sH().resolve(_.kb).closeSheet()};
bu9=function(Y){var G,u,O,Q,M,t,K,L,g,P,I;return{headerTitle:(G=Y.headerTitle)==null?void 0:G.call(Y),headerSubtitle:(u=Y.headerSubtitle)==null?void 0:u.call(Y),headerActionHeader:Y.headerActionHeader,footerPrimaryButton:Y.footerPrimaryButton,footerSecondaryButton:Y.footerSecondaryButton,footerButtonType:(O=Y.footerButtonType)==null?void 0:O.call(Y),footerLeadingLabel:(Q=Y.footerLeadingLabel)==null?void 0:Q.call(Y),footerTrailingLabel:(M=Y.footerTrailingLabel)==null?void 0:M.call(Y),shouldShowIcons:(t=
Y.shouldShowIcons)==null?void 0:t.call(Y),skipContentClick:(K=Y.skipContentClick)==null?void 0:K.call(Y),additionalClassName:(L=Y.additionalClassName)==null?void 0:L.call(Y),onClosedCallback:Y.onClosedCallback,focusOnClose:(g=Y.focusOnClose)==null?void 0:g.call(Y),isDisabled:(P=Y.isDisabled)==null?void 0:P.call(Y),disabledCommand:(I=Y.disabledCommand)==null?void 0:I.call(Y),headerFn:Y.headerFn,contentFn:Y.contentFn,footerFn:Y.footerFn,hasHeaderFn:Y.hasHeaderFn(),hasContentFn:Y.hasContentFn(),hasFooterFn:Y.hasFooterFn(),
hasFooterPrimaryButton:Y.hasFooterPrimaryButton(),hasFooterSecondaryButton:Y.hasFooterSecondaryButton(),hasHeaderActionHeader:Y.hasHeaderActionHeader()}};
SSg=function(Y){switch(Y){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""}};
N0y=function(Y){switch(Y){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""}};
j9o=function(Y){switch(Y){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""}};
Vqj=function(Y,G,u){G.forEach(function(O){_.YR(_.sH().resolve(_.KZ),O)});
_.qZ(Y,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",u])};
qSw=function(Y,G,u,O){var Q=_.z(u,_.Aw).commandLifeCycleConfig;Q&&Q.onStartCommand&&_.UK(Y,[Q.onStartCommand],G);_.i6(G);var M=_.Af.instance;M&&_.oS(M,u)?_.iv(M,u,O).then(function(t){if(!t||(t==null?0:t.error))return t=_.z(u,_.Aw).serializedTransactionFlowLoggingParams,_.Rz(G),_.Ld(new a7("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",t));_.Rz(G);return{data:t}}).then(function(t){_.Rz(G);
l0g(t.data);var K=t.data.command;K&&_.UK(Y,[K],G);K=B09(u,t.data);if(!K){var L=t.data;t=!1;if(L&&L.command&&_.z(L.command,_.Jv)){var g;L=((g=_.z(L.command,_.Jv))==null?void 0:g.commands)||[];for(g=0;g<L.length;g++)if(_.z(L[g],_.NzR)){t=!0;break}}t||_.a8('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!K&&Q&&Q.onSuccessCommand?_.UK(Y,[Q.onSuccessCommand],G):K&&Q&&Q.onFailureCommand&&_.UK(Y,[Q.onFailureCommand],G)},function(){_.Rz(G);
Q&&Q.onFailureCommand&&_.UK(Y,[Q.onFailureCommand],G);$1o(u)}):_.o0(Error("Am"),"ERROR")};
s9o=function(Y,G,u){var O=[G];u&&O.push(u);return _.c$(Y,O).then(function(Q){var M=_.z(G,_.Aw).serializedTransactionFlowLoggingParams,t=Q.data,K=B09(G,t);K?Q=_.Ld(new a7(K,M)):l0g(t);return Q},function(){var Q=_.z(G,_.Aw).serializedTransactionFlowLoggingParams;
$1o(G);return _.Ld(new a7("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Q))})};
B09=function(Y,G){Y=_.z(Y,_.Aw).serializedTransactionFlowLoggingParams;var u=null;switch(G.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":u="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":u="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":u="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}u?_.i0(u,Y):uXx(Y);return u};
$1o=function(Y){_.i0("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.z(Y,_.Aw).serializedTransactionFlowLoggingParams)};
l0g=function(Y){if(Y.trackingParams){var G=_.FA(),u=_.nX();G&&u&&_.y6(G,u,_.Kd(Y.trackingParams))}};
cmx=function(Y,G,u){var O=_.Af.instance,Q=_.tWI(_.DE("YPC_MB_URL")),M=(new _.HnA).init(),t=_.EXt(),K=_.z(u,_.h5I).languageCode;K===void 0?_.o0(Error("Li"),"ERROR"):_.mV([M,Q]).then(function(){var L={ctk:_.BU.payments.business.integration.ClientTokenFactory.createClientToken(K,t)};O&&_.oS(O,u)?_.iv(O,u,L).then(function(g){return{data:g}}).then(function(g){_.$s(G,"yt-service-request-completed",g);
g.code!=="ERROR"&&(g=g.data.command)&&_.UK(Y,[g],G)}):_.o0(Error("Am"),"ERROR")})};
JmN=function(Y,G,u,O){var Q=_.Af.instance;Q&&_.oS(Q,u)?_.iv(Q,u,O).then(function(M){return{data:M}}).then(function(M){U19(Y,G,u,M)},function(){vSx(u)}):(Q=_.sH().resolve(_.q3(_.Hm)))&&Q.requestDataForServiceEndpoint(u,O).then(function(M){U19(Y,G,u,M)},function(){vSx(u)})};
U19=function(Y,G,u,O){_.$s(G,"yt-service-request-completed",O);if(O.code&&O.code=="ERROR")vSx(u);else{(O=O.data.commands)&&_.UK(Y,O,G);var Q;(Y=(Q=_.z(u,_.VJM))==null?void 0:Q.serializedYpcPauseFlowLoggingParams)&&Y&&UJ("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",Y)}};
vSx=function(Y){var G;(Y=(G=_.z(Y,_.VJM))==null?void 0:G.serializedYpcPauseFlowLoggingParams)&&Y&&UJ("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",Y,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
u_x=function(Y,G,u){var O=_.Af.instance;O&&_.oS(O,u)?_.iv(O,u).then(function(Q){return{data:Q}}).then(function(Q){YRw(Y,G,u,Q)},function(){GjN(u)}):(O=_.sH().resolve(_.q3(_.Hm)))&&O.requestDataForServiceEndpoint(u).then(function(Q){YRw(Y,G,u,Q)},function(){GjN(u)})};
YRw=function(Y,G,u,O){_.$s(G,"yt-service-request-completed",O);O.code&&O.code=="ERROR"?GjN(u):((O=O.data.commands)&&_.UK(Y,O,G),(Y=_.z(u,_.lRX).serializedYpcResumeFlowLoggingParams)&&Y&&UJ("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",Y))};
GjN=function(Y){(Y=_.z(Y,_.lRX).serializedYpcResumeFlowLoggingParams)&&Y&&UJ("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",Y,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
OVN=function(Y){Y=Y===void 0?{}:Y;_.sH().resolve(_.w8o).showFeedbackDialog(Y.customProductData,Y.feedbackContent,Y.onFeedbackSubmitted,Y.bucket)};
QON=function(Y){Y=Y===void 0?{}:Y;_.sH().resolve(_.w8o).showHelpDialog(Y.helpContext,Y.articleId,Y.productData)};
MIN=function(){QON()};
HVN=function(){OVN()};
tIx=function(Y,G,u){var O,Q,M,t,K,L,g;return _.a(function(P){switch(P.nextAddress){case 1:O=_.z(Y,E5S);if((Q=O)==null?0:Q.productId){L={productId:O.productId,bucket:O.bucket,enableAnonymousFeedback:(K=O.enableAnonymousFeedback)!=null?K:!0,allowNonLoggedInFeedback:!0};g={feedbackChoice:u.feedbackChoice};if(!_.F("web_collect_offline_state")){P.jumpTo(8);break}_.i3(P,9);return P.yield(sib(g),11)}t={bucket:(M=O)==null?void 0:M.bucket};if(!_.F("web_collect_offline_state")){P.jumpTo(4);break}t.customProductData=
{};_.i3(P,5);return P.yield(sib(t.customProductData),7);case 7:_.j1(P,4);break;case 5:_.b3(P);case 4:OVN(t);P.jumpTo(0);break;case 11:_.j1(P,8);break;case 9:_.b3(P);case 8:_.$Gt(g),_.BP4("GFEEDBACK",g),O.productId==="5295751"&&(g.client_attestation=Number(_.DE("CATSTAT",0))),O.productId==="5295751"&&(g.client_time=Date.now()/1E3/3600),O.productId==="5295751"&&(g.original_playback_id=_.wik||""),_.vDV(L,g),_.Sd(P)}})};
KV9=function(Y){if(Y=_.z(Y,_.$LU)){var G={bucket:Y.bucketIdentifier};Y.additionalDatas&&(G.customProductData={},Y.additionalDatas.forEach(function(u){if(u=u.userFeedbackEndpointProductSpecificValueData)G.customProductData[u.key]=u.value}));
OVN(G)}};
auS=function(Y){var G=_.N6.getInstance();var u=_.Q6("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var O=_.Q6("DELETE",void 0,"Delete"),Q=_.Q6("CANCEL",void 0,"Cancel");u=kN9(u,void 0,O,Q,{signal:"DELETE_ALL_DOWNLOADS"});_.nL(G,[{openPopupAction:u}],Y)};
LVg=function(){return _.a(function(Y){return Y.nextAddress==1?Y.yield(_.sH().resolve(_.DcN),2):Y.yield(Tfo(),0)})};
g5g=function(Y){var G,u;return _.a(function(O){return O.nextAddress==1?(u=(G=_.z(Y,_.dN))==null?void 0:G.targetId)?O.yield(_.sH().resolve(_.DcN),3):O.jumpTo(0):O.yield(_.sH().resolve(_.X6).deleteVideo(u),0)})};
PJj=function(Y){var G,u;return _.a(function(O){return O.nextAddress==1?(u=(G=_.z(Y,_.dN))==null?void 0:G.targetId)?O.yield(_.sH().resolve(_.DcN),3):O.jumpTo(0):O.yield(Xpg(_.sH().resolve(_.X6),u),0)})};
kjj=function(Y){var G,u;return _.a(function(O){return(u=(G=_.z(Y,_.dN))==null?void 0:G.targetId)?O.yield(Iuo(u),0):O.jumpTo(0)})};
FVS=function(){_.F("kevlar_woffle_refresh_dl_load_killswitch")||n59()};
zbb=function(){_.F("kevlar_woffle")&&_.CB.instance&&ppy()};
WVb=function(Y){var G;if((G=_.z(Y,_.Gi))==null||!G.videoId)return!1;mOx(_.sH().resolve(_.X6),_.z(Y,_.Gi),Y.clickTrackingParams);return!0};
xOB=function(Y){var G;if((G=_.z(Y,_.u5))==null||!G.playlistId)return!1;rEy(_.sH().resolve(_.X6),_.z(Y,_.u5),Y.clickTrackingParams);return!0};
CJB=function(Y){var G=_.z(Y,_.ys_);(G==null?void 0:G.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(G==null?void 0:G.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||fuV(_.sH().resolve(_.X6),_.z(Y,_.ys_))};
ebb=function(Y){Y=_.z(Y,_.uRR);var G;(Y==null?0:(G=Y.actions)==null?0:G.length)&&yEV(Y)};
iVV=function(Y){var G,u;return _.a(function(O){G=_.z(Y,AE9);return(u=G)!=null&&u.localWatchHistoryCommandType?O.yield(o5w(G),0):O.return()})};
wpN=function(){return _.a(function(Y){return Y.yield(RbN(),0)})};
ZVB=function(Y){setTimeout(function(){requestAnimationFrame(Y)},80)};
DO9=function(Y){return Object.entries(Y).map(function(G){return G.join(":")}).join(";")};
dO9=function(Y){var G,u,O;_.a(function(Q){if(Q.nextAddress==1)return Q.yield(hb9(),2);G=Q.yieldResult;u=_.Jj.instance;switch(G){case "granted":O=Y.getLocationCommand;break;case "denied":O=Y.openDeniedDialogAction;break;case "prompt":O=Y.openCollectionDialogAction;break;default:O=Y.openCollectionDialogAction}O&&u.resolveCommand(O);_.Sd(Q)})};
hb9=function(){var Y,G;return _.a(function(u){if(u.nextAddress==1)return Y="prompt",navigator.permissions?u.yield(navigator.permissions.query({name:"geolocation"}),3):u.jumpTo(2);u.nextAddress!=2&&(G=u.yieldResult,Y=G.state);return u.return(Y)})};
SRx=function(){_.a(function(Y){return Y.yield(_.bV9(),0)})};
NfB=function(){var Y,G,u;return _.a(function(O){if(O.nextAddress==1)return Y=_.sH().resolve(_.KB),Y?O.yield(_.iv(Y,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.R0(Error("Dm")),O.return(void 0));if(G=O.yieldResult){if(G.errorMetadata)return _.R0(Error("Em`"+G.errorMetadata.status+"`"+G.error)),O.return(void 0);u=G.datasyncIds;_.qsS=u.length;return O.return(u)}_.R0(Error("Fm"));return O.return(void 0)})};
jOB=function(){NfB().then(function(Y){Y&&(qtx(Y),t7y(Y),W7S(Y),UWg(Y))})};
VI9=function(Y){_.AN.addLowPriorityJob(function(){var G,u,O,Q,M;return _.a(function(t){switch(t.nextAddress){case 1:if(_.F("ytidb_clear_optimizations_killswitch")){t.jumpTo(2);break}G=_.Xw("clear");if(G.startsWith("V")&&G.endsWith("||")){var K=[G];qtx(K);t7y(K);W7S(K);UWg(K);return t.return()}u=rWy();O=vGS();return t.yield(KZw(),3);case 3:return Q=t.yieldResult,t.yield(sno(),4);case 4:if(M=t.yieldResult,!(u||O||Q||M))return t.return();case 2:Y.isNetworkAvailable()?jOB():Y.listenOnce("publicytnetworkstatus-online",
jOB),_.Sd(t)}})})};
TI=function(Y){Y={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.i8(Y)}}}};_.Jj.instance&&_.Jj.instance.resolveCommand(Y)};
luN=function(Y){if(Y){var G=_.M4();_.UL(G,3854,void 0,{layer:0,parentLayer:4});switch(Y){case 1:var u=238708;break;case 2:u=238715;break;case 3:u=238710;break;case 6:u=238709}u&&(Y=_.QZ(G,{veType:u}))&&_.Jw(G,Y)}};
BfV=function(Y){if(Y){var G=_.M4();_.UL(G,3854,void 0,{layer:0,parentLayer:4});switch(Y){case 1:var u=238714;break;case 2:u=238711;break;case 8:u=238709;break;case 7:u=238713;break;case 3:case 4:case 5:u=238712}u&&(Y=_.QZ(G,{veType:u}))&&_.Jw(G,Y)}};
$Ob=function(Y){switch(Y.latencyType){case 0:_.Fh("consent_primitive_flow");_.pQ("cpit",Y.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.pQ("cpist",Y.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.pQ("cprtif",Y.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.pQ("cprtli",Y.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.pQ("cprt",Y.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.pQ("cpdt",Y.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.pQ("cpjct",Y.timestampEpochMillis,"consent_primitive_flow")}};
MbS=function(Y,G){var u,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N,h;return _.a(function(q){switch(q.nextAddress){case 1:_.i3(q,2);(O=(u=_.z(Y,qRb))==null?void 0:u.serializedConsentRequest)||(O=(Q=_.z(Y,sOj))==null?void 0:Q.serializedConsentRequest);O&&(M=cEb(_.JY(O)));if(M===void 0)return q.return();t=UOB(M);t.latencyCallback=$Ob;G&&v59(t,function(){G.then(function(U){U.pauseVideo();(new JEx).increment()})});
return((K=_.z(Y,qRb))==null?void 0:K.consentAction)==="CONSENT_ACTION_PREWARM"||((L=_.z(Y,sOj))==null?void 0:L.consentAction)==="CONSENT_ACTION_PREWARM"?q.yield(Y9y(t),5):q.yield(GMx(t),6);case 6:g=q.yieldResult;P=_.gQ(g,LC);if(P===1){if(((I=_.fc(g,udb,1,LC))==null?void 0:_.mK(I,1))===1||((k=_.fc(g,udb,1,LC))==null?void 0:_.mK(k,1))===2||((n=_.fc(g,udb,1,LC))==null?void 0:_.mK(n,1))===3)_.z(Y,sOj)?TI(_.Q6("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
TI(_.Q6("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));luN((p=_.fc(g,udb,1,LC))==null?void 0:_.mK(p,1),_.dX(g,Oax,3,_.bd()))}else P===2?(((W=QPy(g))==null?void 0:_.mK(W,1))===5?_.z(Y,sOj)?TI(_.Q6("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):TI(_.Q6("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((C=QPy(g))==null?void 0:_.mK(C,1))===1||((e=QPy(g))==null?void 0:_.mK(e,1))===4?
TI(_.Q6("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((w=QPy(g))==null?void 0:_.mK(w,1))===7&&((B=M)==null?void 0:(N=_.QH(B,gr,4))==null?void 0:_.mK(N,4))!==1&&TI(_.Q6("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),BfV((h=QPy(g))==null?void 0:_.mK(h,1))):TI(_.Q6("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));q.jumpTo(5);break;case 5:_.j1(q,0);break;case 2:_.b3(q),TI(_.Q6("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.Sd(q)}})};
ED9=function(){if(!HaN.has("Worker")){HaN.set("Worker",!0);var Y={api:"BROWSER_API_WEB_WORKER"};Y.available="Worker"in window?!0:!1;_.eK("apiTest",Y)}};
tbb=function(Y){return typeof Y==="undefined"?"-1":String(Math.ceil(Y/1048576))};
LjS=function(Y,G){Kj9(new aJw(_.z(G,Td9).addToken,_.z(G,Td9).commonToken)).then(function(){_.$s(Y,"yt-invoke-instrument-manager-action-completed")},function(u){_.$s(Y,"yt-invoke-instrument-manager-action-error",u)})};
Xp=function(){return _.DE("HTML_DIR")==="rtl"};
gDN=function(){var Y,G;return(G=(Y=window).matchMedia)==null?void 0:G.call(Y,"(prefers-reduced-motion: reduce)").matches};
Xvj=function(Y){var G=_.sH().resolve(_.q3(_.T7));if(G&&G.isAnyTransitionEnabled){var u={};G.viewTransitionCoordinator.registerElement(Y,(u.slide="miniplayer-page-transition",u["lockup-to-watch"]="miniplayer-page-transition",u["learning-journey"]="miniplayer-page-transition",u))}};
Puo=function(Y,G,u){return{horizontalAlignment:Y.x+u.width/2<G.width/2?"west":"east",verticalAlignment:Y.y+u.height/2<G.height/2?"north":"south"}};
kMj=function(Y,G,u,O,Q){Q=Q===void 0?new _.AD(0,0):Q;Y=IJS(Y,G,u,O,!1);return new _.AD(Y.x+Q.x,Y.y+Q.y)};
IJS=function(Y,G,u,O,Q){Q=(Q===void 0?0:Q)?400:0;return new _.AD(Y==="west"?16+(Xp()?Q:0):u.width-O.width-16-(Xp()?0:Q),G==="north"?16:u.height-O.height-16)};
nD9=function(Y,G){var u=0;Y&&(u+=76);G&&(u+=285);return u};
Fj9=function(Y){return _.Ar(Y)};
pv9=function(Y){var G=1;Y=Y.split(":");for(var u=[];G>0&&Y.length;)u.push(Y.shift()),G--;Y.length&&u.push(Y.join(":"));return u};
zWN=function(Y){var G=new _.ER;return _.Cc(G,11,Y)};
m$y=function(Y){var G={};Y=Y.getAllResponseHeaders().split("\r\n");for(var u=0;u<Y.length;u++)if(!_.K1(Y[u])){var O=pv9(Y[u]),Q=O[0];O=O[1];if(typeof O==="string"){O=O.trim();var M=G[Q]||[];G[Q]=M;M.push(O)}}return _.gX.map(G,function(t){return t.join(", ")})};
TGg=function(Y,G){return Y.JSC$10117_xhr_?Y.JSC$10117_xhr_.getResponseHeader(G):null};
Wjb=function(Y,G){if(Y.isDisposed())throw Error("Fa");Y.f0.g4("n");var u=_.AE(Y.f0,function(){return Y.zsU([G.eh,G.x0U,G.vrL,G.obc])},"n");
Y.f0.ea6(u.length);Y.f0.lp();return u};
rtS=function(Y,G,u){Array.isArray(u)||(u=[String(u)]);_.hfX(Y.JSC$10357_queryData_,G,u);return Y};
x$b=function(Y){var G=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.uu(Y);Y.keyMap_.forEach(function(u,O){_.ST(G,O)||this.remove(O)},Y)};
ppy=function(){var Y=_.CB.instance;_.a(function(G){return Y.deferredInstallPrompt?G.yield(Y.deferredInstallPrompt.prompt(),0):G.jumpTo(0)})};
fJS=function(Y,G){var u=[];LUb(G,function(O){try{var Q=_.In.prototype.getWrapper.call(this,O,!0)}catch(M){if(M=="Storage: Invalid value was encountered")return;throw M;}Q===void 0?u.push(O):_.AWe(Q)&&u.push(O)},Y);
return u};
K79=function(Y,G){fJS(Y,G).forEach(function(u){_.In.prototype.remove.call(this,u)},Y)};
Cuw=function(Y){var G=_.xc;G._minimumZ=Math.max(G._minimumZ,Y)};
ytg=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];eWw=function(Y,G){_.ZM(Y.vm);Y.vm=G};
Atj=function(Y,G,u,O){Y.setState(5);var Q=!!Y.sa2&&ytg.includes(_.l7(Y.sa2)||"");try{var M=new _.oO({program:G,globalName:u,aFH:{disable:!_.F("att_web_record_metrics")||!_.F("att_skip_metrics_for_cookieless_domains_ks")&&Q,tO:"aGIf"}});M.m7U.then(function(){Y.setState(6);O&&O(G)});
eWw(Y,M)}catch(t){Y.setState(7),t instanceof Error&&_.R0(t)}};
oDx=function(Y,G,u,O,Q,M){var t=t===void 0?"trayride":t;u?(Y.setState(2),_.fX(_.Ie(u),function(){if(window[t])Atj(Y,O,t,Q);else{Y.setState(3);var K=_.dQu(u),L=document.getElementById(K);L&&(_.um1(K),L.parentNode.removeChild(L));_.R0(new _.I2("BL:ULB",u))}},M)):G?(M=_.uI("SCRIPT"),G instanceof _.To?_.XH(M,G):M.textContent=G,M.nonce=_.aA(document),document.head.appendChild(M),document.head.removeChild(M),window[t]?Atj(Y,O,t,Q):(Y.setState(4),_.R0(new _.I2("BL:ULBJ")))):_.R0(new _.I2("BL:ULV"))};
iab=function(){this.state=1;this.vm=null;this.sa2=void 0};
_.H=iab.prototype;_.H.initialize=function(Y,G,u,O){this.sa2=O;if(Y.program){var Q;O=(Q=Y.interpreterUrl)!=null?Q:null;if(Y.interpreterSafeScript)Q=_.xbj(Y.interpreterSafeScript);else{var M;Q=(M=Y.interpreterScript)!=null?M:null}Y.interpreterSafeUrl&&(O=_.ow(Y.interpreterSafeUrl).toString());oDx(this,Q,O,Y.program,G,u)}else _.R0(Error("tf"))};
_.H.isInitialized=function(){return!!this.vm};
_.H.getState=function(){return this.state};
_.H.isLoading=function(){return this.state===2};
_.H.invoke=function(Y){Y=Y===void 0?{}:Y;var G;this.vm?G=Wjb(this.vm,{eh:Y}):G=null;return G};
_.H.dispose=function(){eWw(this,null);this.setState(8)};
_.H.setState=function(Y){this.state=Y};
RWb=function(Y,G){return Y.vm.snapshot(G)};
wvg=function(Y,G){var u=_.Jy("botguard_async_snapshot_timeout_ms",3E3);G=G===void 0?{}:G;u=u===void 0?3E3:u;return Y.vm?new Promise(function(O,Q){var M=!1,t=_.AN.addJob(function(){M=!0;Q(Error("uf"))},1,u);
Y.vm?RWb(Y,{eh:G}).then(function(K){_.AN.cancelJob(t);M||O(K)}).catch(function(K){_.AN.cancelJob(t);
M||Q(K)}):(_.AN.cancelJob(t),O(null))}):Promise.resolve(null)};
Zab=["att/log"];_.FGN={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var D$b={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},hWx=function(Y,G){return _.Qc(Y,{mode:"readwrite",enableRetries:!0},function(u){return _.kru(u,G,"settingEntity")})},d$y=function(Y,G,u){return _.Qc(Y,{mode:"readonly",
enableRetries:!0},function(O){return _.Idk(O,G,u)})},bay=function(Y){if(!Y.storage)return!1;
a:{if(Y.storage){try{var G=Y.storage.get("TLPQtimestamp")}catch(u){}Y=Number(G);if(!isNaN(Y))break a}Y=void 0}return Y?Date.now()-Y<864E5:!1},S9x=function(Y){if(Y.storage){try{var G=Y.storage.get("TLPQindex")}catch(u){}Y=Number(G);
if(!isNaN(Y))return Y}},PL=function(Y){var G=_.AM();
return _.PkX(G,Y,1)},Ndy=function(Y,G){Y.queueProxy&&G.forEach(function(u){if(u.videoId&&u.trackingParams&&Y.queueProxy instanceof _.xR){var O=_.FA();
Y.queueProxy.attributionData.set(u.videoId,{enqueueingVe:_.Kd(u.trackingParams).getAsJson(),enqueueingCsn:O?O:void 0,clientEnqueueingTimeMs:Math.floor((0,_.GC)()).toString()})}})},jPo=function(Y){var G=_.J4R(Y);
G!=Y.currentSnapState_&&(Y.currentSnapState_=G,Y.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},I7=function(Y){this.JSC$13555_networkManager_=Y;
this.partCallbacks_=[]};
I7.prototype.getCacheKeyForEndpoint=function(Y){return _.MPI(Y,!1)};
I7.prototype.onPartsCallback_=function(Y){this.partCallbacks_.forEach(function(G){Y&&G(Y)})};
var kj=function(Y,G,u){I7.call(this,Y);this.player_=G;this.autoplayData_=u};
_.m(kj,I7);kj.prototype.getCacheKeyForEndpoint=function(Y){return _.MPI(Y,!!this.autoplayData_)};
kj.prototype.getTempData=function(Y,G){G=G.timeBeforeNextVideo;Y={itct:Y.clickTrackingParams,lact:_.Y7(),pbis:G,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(Y.autonav=1);return Y};
kj.prototype.getXhrParams=function(Y){return Object.assign({pbj:"prefetch"},Y)};
kj.prototype.getParams=function(Y){Y={frags:Y.fragmentsRequested.join(",")};_.F("kevlar_droppable_prefetchable_requests")&&(Y.prefetch=1);return Y};
var Vbg=function(Y){Y.playerEvents_.forEach(function(G){Y.player.removeEventListener(G.eventName,G.callback)});
Y.playerEvents_.length=0},lJV=function(Y,G,u){this.player=Y;
this.JSC$13565_taskManager=G;this.prefetchDelay=u;this.completionResolver_=null;this.playerEvents_=[]};
lJV.prototype.start=function(){var Y=this;this.completionResolver_=_.RS();_.Wp(this.completionResolver_.promise,function(){Vbg(Y);Y.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var Bdx=function(Y,G,u){Y.player.addEventListener(G,u);Y.playerEvents_.push({eventName:G,callback:u})},$$V={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},q9N={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},sPV=function(Y,G,u){lJV.call(this,Y,G,u);this.cueId_="playbackTrigger-"+Math.random()};
_.m(sPV,lJV);
sPV.prototype.prepareTrigger=function(Y){var G=this,u=this.player.getDuration(),O=this.player.getVideoData(),Q=O.isLive&&O.hasProgressBarBoundaries;if(Q&&O.progressBarEndPositionUtcTimeMillis){var M=O.progressBarEndPositionUtcTimeMillis/1E3;isNaN(M)||(u=M)}var t=0;this.prefetchDelay>=0?Q?O.progressBarStartPositionUtcTimeMillis&&(O=O.progressBarStartPositionUtcTimeMillis/1E3,isNaN(O)||(t=O+this.prefetchDelay)):t=this.prefetchDelay:t=u+this.prefetchDelay;Q?this.player.addUtcCueRange(this.cueId_,t,u):
this.player.addCueRange(this.cueId_,t,u);_.Wp(Y.promise,function(){G.player.removeCueRange(G.cueId_)});
Bdx(this,"onCueRangeEnter",function(K){K==G.cueId_&&Y.resolve(u-t)})};
var ctb=function(Y,G){Y.fragmentConfiguration_[G].requiredKeys.every(function(u){return!!Y.prefetchedData_[u]})&&(Y.validatedFragments_.push(G),G=Y.missingFragments_.indexOf(G),G!==-1&&Y.missingFragments_.splice(G,1))},U$S=function(Y){Y.prefetchedFragments_.forEach(function(G){ctb(Y,G)})},vDN=function(Y,G,u){this.pageFragments_=Y;
this.prefetchedFragments_=G;this.fragmentConfiguration_=q9N;this.prefetchedData_=u;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;U$S(this)},Jt9=function(){},Yz9=function(Y){this.JSC$13579_playlistManager_=Y};
_.m(Yz9,Jt9);Yz9.prototype.getPrefetchEndpoint=function(){return this.JSC$13579_playlistManager_.getAutoplayEndpoint()};
var GWx=function(Y){this.autonavEndpoints_=Y};
_.m(GWx,Jt9);GWx.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var u0x=function(Y,G,u,O,Q){this.autonavEndpoints=Y;this.foregroundTrigger=G;this.backgroundTrigger=u;this.pageType=O;this.isInPlaylist=Q},OLx=function(Y,G){if(Y.webPrefetchData&&Y.webPrefetchData.navigationEndpoints&&Y.webPrefetchData.navigationEndpoints.length){Y=Y.webPrefetchData.navigationEndpoints;
var u=_.z(Y[0],_.ic);if(u.watchEndpointSupportedPrefetchConfig&&u.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var O=u.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;u=O.playbackRelativeSecondsPrefetchCondition;u=typeof u==="number"&&Math.abs(u)<G.videoDuration?u:void 0;O=O.countdownUiRelativeSecondsPrefetchCondition;O=typeof O!=="number"||_.F("prefetch_job_config_cleanup_ks")&&G.inPlaylist?void 0:O;if(typeof O==="number")return new u0x(Y,G.makeUpNextTrigger(O),G.makePlaybackTrigger(O),
"watch",G.inPlaylist);if(typeof u==="number")return new u0x(Y,G.makePlaybackTrigger(u),null,"watch",G.inPlaylist)}}},Qu9=function(Y){return Y.prefetchJobConfig_.backgroundTrigger?_.bi(gTo)()==0?Y.prefetchJobConfig_.backgroundTrigger:Y.prefetchJobConfig_.foregroundTrigger:Y.prefetchJobConfig_.foregroundTrigger},Mmo=function(Y){_.F_(document,"visibilitychange",Y.onVisibilityChange_,!1,Y)},nC=function(Y){I7.call(this,Y)};
_.m(nC,I7);nC.prototype.getCacheKeyForEndpoint=function(Y){return I7.prototype.getCacheKeyForEndpoint.call(this,Y)};
nC.prototype.getTempData=function(){return{}};
nC.prototype.getXhrParams=function(Y){return Y};
nC.prototype.getParams=function(){return{}};
var HLw=function(Y,G,u){var O=Y.prefetchDelay*1E3;if(Math.abs(O)>G)u.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var Q=O,M=G-O;O<0&&(Q=G+O,M=Math.abs(O));var t=Y.JSC$13565_taskManager.addJob(function(){u.resolve(M/1E3)},10,Q);
u.promise.thenCatch(function(){Y.JSC$13565_taskManager.cancelJob(t)})}},Et9=function(Y,G,u){lJV.call(this,Y,G,u)};
_.m(Et9,lJV);Et9.prototype.prepareTrigger=function(Y){var G=this;Bdx(this,"onAutonavCoundownStarted",function(u){HLw(G,u,Y)})};
var tmj=function(Y){Y.pendingPrefetchJob_&&(Y.pendingPrefetchJob_.cancel(),Y.pendingPrefetchJob_=null)},KlB=function(Y,G,u){if(!Y.triggeredTargets.has(G)){var O=_.kQ4(Y,G);
O.action=u;_.IpX(Y,G,O)}},aIb=function(Y){_.KCV();
_.Gkj("cpt")&&_.R0(Error("mh"));_.OI.requestAnimationFrame(function(){_.OI.setTimeout(function(){_.pQ("cpt");var G=_.W2("vpl"),u=_.W2("cpt");G&&u&&_.pQ("ol",Math.max(G,u))})});
try{_.pQ("fr_s"),Y()}catch(G){_.o0(G)}_.OI.requestAnimationFrame(function(){_.pQ("bcp")})},T1b={FILLED:"youtube_fill",
OUTLINE:"youtube_outline"},LlV=function(Y,G){Y.serviceEndpointHandlers.push(G)},gt9=function(Y,G){G=Y.pendingPages_.indexOf(G);
G>-1&&Y.pendingPages_.splice(G,1)},XyS=function(Y,G){var u=_.bCM.indexOf(G);
u>-1&&_.bCM.splice(u,1);Y.targetPage_==G?(Y.abort(),_.Nre(Y)):gt9(Y,G)},PPN=function(Y,G){Y.reloadContinuationItemsCommandMatcher=G},IIx=function(Y,G,u){G&&u&&(Y.videos.forEach(function(O){O.videoId===G&&(O.itemId=u)}),Y.recommendedVideos.forEach(function(O){O.videoId===G&&(O.itemId=u)}))},kWN=function(Y){this.onStepChangeCallback=function(){};
this.flowRenderer=Y};
kWN.prototype.getCurrentStep=function(){var Y=this,G;return((G=this.flowRenderer.steps)!=null?G:[]).map(function(u){return _.z(u,_.TG)}).find(function(u){return u&&u.stepId===Y.currentStepId})};
var ntV=function(Y,G){var u=G.flowStateEntityKey,O=Y.flowStates.get(u);if(O)return O;G=new kWN(G);Y.flowStates.set(u,G);return G},FlN=function(Y,G){for(var u=_.E(Y.flowStates.entries()),O=u.next();!O.done;O=u.next()){var Q=_.E(O.value);
O=Q.next().value;Q=Q.next().value;if(Q.flowRenderer.targetId===G){Y.flowStates.delete(O);break}}},pyx=function(Y,G){Y.onStepChangeCallback=G;
Y.onStepChangeCallback(Y.getCurrentStep())},ztN=function(Y,G){var u;
return((u=Y.flowRenderer.steps)!=null?u:[]).map(function(O){return _.z(O,_.TG)}).find(function(O){return O&&O.stepId===G})?(Y.currentStepId=G,Y.onStepChangeCallback(Y.getCurrentStep()),!0):!1},maS=function(Y,G,u,O){G={challenge:G};
u&&(G.webResponse=u);return _.Cl(Y.innertubeTransportService,G,_.Ds(Zab),O)},Wlx=function(Y,G,u){if(!G.challenge)throw Error("ti");
if(G.botguardData&&G.botguardData.program){var O=new iab;O.initialize(G.botguardData,function(){wvg(O,{atr_challenge:G.challenge}).then(function(Q){if(!Q)throw Error("ui");return maS(Y,G.challenge,Q,u)}).catch(function(Q){_.R0(Q);
return maS(Y,G.challenge,void 0,u)})},void 0)}else maS(Y,G.challenge,void 0,u)},r7g=function(Y,G,u){var O={};
G.ids&&(O.ids=[].concat(_.c8(G.ids)));G.engagementType&&(O.engagementType=G.engagementType);return _.Cl(Y.innertubeTransportService,O,_.Ds(_.R7R),u).then(function(Q){if(!Q)throw new _.I2("GetAttestationChallenge returned falsy");Wlx(Y,Q,u)}).thenCatch(function(Q){_.o0(Q)})},xaB=function(Y,G,u){return new _.a0(function(O,Q){var M;
return _.a(function(t){if(t.nextAddress==1){var K=t.yield,L=G.engagementType,g=G.ids,P={};g=_.E(g!=null?g:[]);for(var I=g.next();!I.done;I=g.next())I=I.value,I.encryptedVideoId?P.encryptedVideoId=I.encryptedVideoId:I.externalChannelId?P.externalChannelId=I.externalChannelId:I.commentId?P.commentId=I.commentId:I.externalOwnerId?P.externalOwnerId=I.externalOwnerId:I.artistId?P.artistId=I.artistId:I.playlistId?P.playlistId=I.playlistId:I.externalPostId?P.externalPostId=I.externalPostId:I.shareId?P.shareId=
I.shareId:I.postPlayNonce&&(P.postPlayNonce=I.postPlayNonce);return K.call(t,IUw(L,P),2)}M=t.yieldResult;if(!M.challenge)return _.R0(Error("vi")),r7g(Y,G,u).then(O,Q),t.return();K=M;L={challenge:K.challenge};L.webResponse=K.webResponse;L.engagementType=G.engagementType;L.ids=G.ids;_.Cl(Y.innertubeTransportService,L,_.Ds(Zab),u).then(O,Q);_.Sd(t)})})},paj=function(Y,G){var u,O,Q,M;
_.a(function(t){if(t.nextAddress==1){u=_.z(G,_.ecI);if(!(u&&u.listId&&Y.response&&Y.response.playingVideoId)||Y.listId!==u.listId)return t.return();Y.index===void 0&&(Y.index=0);return t.yield(_.G_R(Y.JSC$13418_playlistNetworkManager,u.listId,Y.index,Y.response.playingVideoId),2)}O=t.yieldResult;if(!O)return t.return();Q=O.playlistId;M=O.playlistPanelRenderer;Y.setPlaylistData(Q,M,O.autoplayRenderer);_.Sd(t)})},fIx=function(Y,G,u){var O=Y.getParams(u),Q=_.iKT(G,O),M=Y.getTempData(G,u);
M.endpoint=JSON.stringify(G);_.F("enable_unknown_lact_fix_on_html5")&&(_.sH().resolve(_.tf),M.lact=_.Y7());var t={headers:{"X-YouTube-STS":_.DE("STS"),"x-youtube-csoc":1}};_.hv(Q,M);return new _.a0(function(K,L){var g=Y.getXhrParams(O),P;_.F("kevlar_cache_on_ttl_player")&&(P=_.sH().resolve(_.kM));P&&_.Gm9(P,G)?_.EHg(P,G,M,window.location.href).then(function(I){I?K(I):L()},L):_.ZEV(Y.JSC$13555_networkManager_,G,g,Y.onPartsCallback_.bind(Y),t).then(function(I){I?K(I):L()},L)})},CPw=function(Y,G){Y.triggerPromise_=
G.start();
Y.triggerPromise_.then(function(u){var O=Y.prefetchEndpointProvider_.getPrefetchEndpoint();if(O){var Q=$$V[Y.prefetchJobConfig_.pageType].prefetchedFragments;Y.prefetchRequestPromise_=fIx(Y.JSC$13591_networkPrefetchRequest_,O,{fragmentsRequested:Q,timeBeforeNextVideo:u});Y.prefetchResponseCacheKey_=Y.JSC$13591_networkPrefetchRequest_.getCacheKeyForEndpoint(O);Mmo(Y);Y.prefetchRequestPromise_.then(function(M){Y.storePrefetchedDataCallback_(Y.prefetchResponseCacheKey_,M);if(_.F("web_prefetch_preload_video")&&
Q.length===1&&Q[0]==="pl"&&M&&!M.playerAds&&!M.adPlacements){var t=_.z(O,_.Qa),K=t!=null,L={raw_player_response:M,watch_endpoint:t};(M=_.sH().resolve(K?_.hC_:_.$h))&&O&&M.then(function(g){K&&_.F("web_queue_preload_video")?(L.prefer_gapless=!0,g.queueNextVideo(L)):g.preloadVideoByPlayerVars(L)})}})}})},Fp=function(Y,G,u,O){this.prefetchEndpointProvider_=Y;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=G;this.prefetchJobConfig_=u;this.JSC$13591_networkPrefetchRequest_=O;this.prefetchResponseCacheKey_=null};
Fp.prototype.enqueue=function(){this.triggerPromise_||(CPw(this,Qu9(this)),_.yn(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Fp.prototype.resolve=function(){this.cancel()};
Fp.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.");Mmo(this)};
Fp.prototype.onVisibilityChange_=function(){var Y=this;_.bi(gTo)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){Y.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||CPw(this,Qu9(this))};
var y7B=function(Y,G,u,O,Q){G&&(G==null?0:G.videoId)&&u&&u.entries&&_.F("kevlar_enable_shorts_prefetch_in_sequence")&&(tmj(Y),G=u.entries.map(function(M){var t;return(t=_.z(M.command,_.Qa))==null?void 0:t.videoId}).indexOf(G.videoId),u=u.entries[G+1],u!=null&&u.command&&!_.z(u==null?void 0:u.command,_.mP)&&(O=new u0x([u.command],new sPV(O,_.AN,1),null,"shorts",!1),Y.pendingPrefetchJob_=new Fp(new GWx(O.autonavEndpoints),function(){return!1},O,new nC(Q)),Y.pendingPrefetchJob_.enqueue()))},etV=function(Y,
G,u,O,Q,M){var t=_.SD.getInstance();
if(!_.F("block_all_player_prefetch_requests")){tmj(Y);var K=!!u.getPlaylistId(),L=u.getVideoData().isLive&&u.getVideoData().hasProgressBarBoundaries;if((t.getState()==2||K||L)&&(!u.getVideoData().isLive||L)){t={inPlaylist:K,videoDuration:u.getDuration(),makeUpNextTrigger:function(P){return new Et9(u,_.AN,P)},
makePlaybackTrigger:function(P){return new sPV(u,_.AN,P)}};
var g=OLx(G,t);g&&(Y.pendingPrefetchJob_=new Fp(g.isInPlaylist?new Yz9(Q):new GWx(g.autonavEndpoints),function(P,I){I=new vDN($$V[g.pageType].pageFragments,$$V[g.pageType].prefetchedFragments,I);return _.E$l(I)?(Y.prefetchCache_.set(P,I),!0):!1},g,new kj(O,u,M,Q)),Y.pendingPrefetchJob_.enqueue())}}},A7N=function(){var Y=_.wp();
Y.signals.parkOrScheduleJob(function(){var G=Y.storage;if(G.storage)if(bay(G)){var u=G.getPlaylistId();G=S9x(G);u=!!u&&G!==void 0}else G.clear(),u=!1;else u=!1;if(u){u=Y.JSC$13418_pageManager.isOnWatch();a:{var O=Y.storage;if(O.storage&&bay(O)&&(G=O.getPlaylistId(),O=S9x(O),G&&O!==void 0)){u={recoverPlaylistCommand:{listId:G,index:O,openMiniplayer:!u,openListPanel:u,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}u=void 0}u&&_.nL(Y.JSC$13418_actionRouter,[u],null)}},0,"ma")},otx=function(Y,G,u,
O,Q,M){var t=_.VZ(7111);
_.lq(Y.JSC$18960_screenManager,t,M?_.Kd(M):void 0);_.Jw(Y.JSC$18960_screenManager,t,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:O,offlineId:G,offlineabilityFormatType:u,isDefaultFormatType:Q==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:Q}})},iLN=function(Y,G,u,O,Q){var M,t,K,L,g;
return _.a(function(P){if(P.nextAddress==1)return P.yield(Y.JSC$18960_playerApiPromise,2);M=P.yieldResult;otx(Y,G,u,"OFFLINE_OBJECT_TYPE_PLAYLIST",O,Q);if(K=_.W8R[Y.entityTypeMap.listEntityType])g={},t=(g[K]={maximumDownloadQuality:(L=u)!=null?L:void 0},g);return P.yield(M.queueOfflineAction(G,Y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",t),0)})},Rtg=function(Y,G){var u,O,Q,M;
return _.a(function(t){if(t.nextAddress==1)return t.yield(Y.JSC$18960_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3){u=t.yieldResult;if(!u)return _.R0(new _.I2("PES is undefined")),t.return();O=_.UU(G,"downloadStatusEntity");return t.yield(d$y(u,O,"downloadStatusEntity"),3)}Q=t.yieldResult;return t.return((M=Q)==null?void 0:M.downloadState)})},wyg=function(Y,G,u,O,Q){var M,t,K,L,g,P;
return _.a(function(I){switch(I.nextAddress){case 1:return I.yield(Y.JSC$18960_playerApiPromise,2);case 2:M=I.yieldResult;otx(Y,G,u,"OFFLINE_OBJECT_TYPE_VIDEO",O,Q);if(K=_.W8R[Y.entityTypeMap.singleEntityType])g={},t=(g[K]={maximumDownloadQuality:(L=u)!=null?L:void 0},g);return I.yield(Rtg(Y,G),3);case 3:P=I.yieldResult;if(P!=="DOWNLOAD_STATE_USER_DELETED"){I.jumpTo(4);break}return I.yield(Y.deleteVideo(G),4);case 4:return I.yield(M.queueOfflineAction(G,Y.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
t),0)}})},ZLb=function(Y,G,u,O,Q){return _.a(function(M){return M.nextAddress==1?M.yield(Y.deleteVideo(G,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):M.yield(wyg(Y,G,u,O,Q),0)})},Dab=function(Y,G,u){var O,Q;
return _.a(function(M){if(M.nextAddress==1)return M.yield(Y.JSC$18960_playerApiPromise,2);O=M.yieldResult;Q=_.UU(G,"mainVideoDownloadStateEntity");return M.yield(O.updateDownloadState(Q,u),0)})},Iuo=function(Y){var G=_.sH().resolve(_.X6);
return _.a(function(u){if(u.nextAddress==1)return G.previousDownloadStateForVideo[Y]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&G.previousDownloadStateForVideo[Y]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?u.jumpTo(2):u.yield(G.resumeVideoDownload(Y),2);if(u.nextAddress!=4)return u.yield(Dab(G,Y,G.previousDownloadStateForVideo[Y]),4);delete G.previousDownloadStateForVideo[Y];_.Sd(u)})},Xpg=function(Y,G){var u;
return _.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$18960_playerApiPromise,2);u=O.yieldResult;return O.yield(u.queueOfflineAction(G,Y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},Tfo=function(){var Y=_.sH().resolve(_.X6),G,u;
return _.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$18960_playerApiPromise,2);if(O.nextAddress!=3)return G=O.yieldResult,u={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},O.yield(G.queueOfflineAction("!*$_ALL_ENTITIES_!*$",Y.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",u),3);var Q=Y.JSC$18960_commandHandler,M=Q.resolveCommand,t=_.Q6("DELETING_ALL",void 0,"Downloads are being deleted");M.call(Q,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Sy(t)}},
popupType:"TOAST"}});_.Sd(O)})},htB=function(Y,G){var u,O,Q,M,t,K;
return _.a(function(L){if(L.nextAddress==1)return L.yield(Y.JSC$18960_persistentStorePromiseAccessor(),2);if(L.nextAddress!=3)return u=L.yieldResult,u?L.yield(d$y(u,_.gK,"downloadsPageViewConfigurationEntity"),3):(_.R0(new _.I2("PES is undefined")),L.return());Q=(O=L.yieldResult)!=null?O:{};K=(t=(M=Q)==null?void 0:M.downloadsUpsellBannerVisibility)!=null?t:{};return K.visibleWithConnection?L.yield(G.refreshAllStaleEntities(0),0):L.jumpTo(0)})},dax=function(Y){var G,u;
return _.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$18960_prefStorage,2);G=O.yieldResult;return O.return((u=G)==null?void 0:u.get("sdois"))})},bLy=function(Y){var G,u,O,Q,M,t;
return _.a(function(K){if(K.nextAddress==1)return K.yield(Y.JSC$18960_persistentStorePromiseAccessor(),2);if(K.nextAddress!=3){G=K.yieldResult;if(!G)return _.R0(new _.I2("PES is undefined")),K.return();u=_.UU("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return K.yield(d$y(G,u,"settingEntity"),3)}O=K.yieldResult;return K.return((t=(Q=O)==null?void 0:(M=Q.settingOptionValue)==null?void 0:M.boolValue)!=null?t:!1)})},Szj=function(Y,G){var u,O,Q,M;
return _.a(function(t){switch(t.nextAddress){case 1:return((u=G)==null?void 0:u.formatType)===void 0?t.return():t.yield(Y.JSC$18960_prefStorage,2);case 2:O=t.yieldResult;if(O===void 0)return t.return();if(((Q=G)==null?void 0:Q.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return t.yield(O.set("lmqf",G.formatType),8);if(((M=G)==null?void 0:M.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){t.jumpTo(0);break}return t.yield(O.set("lmqf",G.formatType),6);case 6:return t.yield(O.set("lmqflst",
Math.floor((0,_.GC)())),0);case 8:return t.yield(O.remove("lmqflst"),0)}})},N1x=function(Y){var G,u;
return _.a(function(O){switch(O.nextAddress){case 1:return O.yield(Y.JSC$18960_prefStorage,2);case 2:G=O.yieldResult;if(!G){O.jumpTo(3);break}return O.yield(G.get("lmqflst"),4);case 4:if(u=O.yieldResult,u!==void 0)return O.return(u);case 3:return O.return(0)}})},juy=function(Y){var G,u,O;
return _.a(function(Q){return Q.nextAddress==1?Q.yield(Y.JSC$18960_prefStorage,2):Q.nextAddress!=3?(G=Q.yieldResult,Q.yield((u=G)==null?void 0:u.get("ldtmes"),3)):Q.return((O=Q.yieldResult)!=null?O:!1)})},RbN=function(){var Y=_.sH().resolve(_.X6),G;
return _.a(function(u){if(u.nextAddress==1)return u.yield(Y.JSC$18960_prefStorage,2);G=u.yieldResult;return G===void 0?u.return():u.yield(G.set("ldtmes",!0),0)})},Vmx=function(Y){var G,u;
return _.a(function(O){switch(O.nextAddress){case 1:return O.yield(Y.JSC$18960_prefStorage,2);case 2:G=O.yieldResult;if(G===void 0){O.jumpTo(3);break}return O.yield(G.get("lmqf"),4);case 4:if(u=O.yieldResult,u!==void 0)return O.return(u);case 3:return O.return("SD")}})},rEy=function(Y,G,u){var O,Q,M,t,K,L,g,P;
_.a(function(I){switch(I.nextAddress){case 1:return I.yield(Szj(Y,(O=G)==null?void 0:O.actionParams),2);case 2:Q=G.playlistId;if(!Q)return I.return();if(G.action==="ACTION_ADD")return((t=G.actionParams)==null?0:t.formatType)?I.yield(iLN(Y,Q,G.actionParams.formatType,(P=G.actionParams)==null?void 0:P.settingsAction,u),0):I.yield(Y.offlineWebClientEligibility,14);if(G.action==="ACTION_REMOVE_WITH_PROMPT"){var k=Y.JSC$18960_commandHandler,n=k.resolveCommand,p=_.DE("INNERTUBE_CLIENT_NAME");var W=p===
"WEB_REMIX"?_.Q6("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Q6("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var C=p==="WEB_REMIX"?[_.Q6("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];p=p==="WEB_REMIX"?_.Q6("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Q6("DELETE",void 0,"Delete");var e=_.Q6("CANCEL",void 0,"Cancel");W=kN9(W,C,p,e,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:Q});n.call(k,{openPopupAction:W});return I.return()}if(G.action===
"ACTION_REMOVE")return I.yield(Xpg(Y,Q),0);if(G.action!=="ACTION_SYNC"){I.jumpTo(0);break}return I.yield(Y.JSC$18960_playerApiPromise,9);case 9:return M=I.yieldResult,I.yield(M.queueOfflineAction(Q,Y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return K=I.yieldResult,I.yield(Vmx(Y),15);case 15:return L=I.yieldResult,I.yield(N1x(Y),16);case 16:g=I.yieldResult,G.onAddCommand&&Y.JSC$18960_commandHandler.resolveCommand(G.onAddCommand,{form:{preferredFormatType:L,
offlineWebClientEligibility:K,lastOfflineQualitySettingsSavedMs:g.toString()}}),I.jumpTo(0)}})},mOx=function(Y,G,u){var O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N,h,q,U;
_.a(function(Mj){switch(Mj.nextAddress){case 1:return Mj.yield(Szj(Y,(O=G)==null?void 0:O.actionParams),2);case 2:Q=G.videoId;if(!Q)return Mj.return();if(G.action==="ACTION_REMOVE_WITH_PROMPT"){var Xt=Y.JSC$18960_commandHandler,ka=Xt.resolveCommand,aU=_.DE("INNERTUBE_CLIENT_NAME");var Tg=aU==="WEB_REMIX"?_.Q6("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Q6("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var iy=aU==="WEB_REMIX"?[_.Q6("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];aU=aU==="WEB_REMIX"?_.Q6("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Q6("DELETE",void 0,"Delete");var hY=_.Q6("CANCEL",void 0,"Cancel");Tg=kN9(Tg,iy,aU,hY,{signal:"DELETE_DOWNLOAD",targetId:Q});ka.call(Xt,{openPopupAction:Tg});return Mj.return()}if(G.action==="ACTION_ADD")return((B=G.actionParams)==null?0:B.formatType)?Mj.yield(wyg(Y,Q,G.actionParams.formatType,(U=G.actionParams)==null?void 0:U.settingsAction,u),0):Mj.yield(Y.offlineWebClientEligibility,
29);if(G.action==="ACTION_RETRY")return Mj.yield(Vmx(Y),25);if(G.action==="ACTION_PAUSE")return Mj.yield(Y.pauseVideoDownload(Q),0);if(G.action==="ACTION_RESUME")return Mj.yield(Y.resumeVideoDownload(Q),0);if(G.action==="ACTION_REMOVE")return Mj.yield(Rtg(Y,Q),19);if(!G.onAddCommand||!_.z(G.onAddCommand,_.Dv)){Mj.jumpTo(0);break}M=_.z(G.onAddCommand,_.Dv);K=(t=M)==null?void 0:t.isCrossDeviceDownload;if(!K){Mj.jumpTo(0);break}L="HD";return Mj.yield(N1x(Y),16);case 16:return g=Mj.yieldResult,Mj.yield(juy(Y),
17);case 17:return P=Mj.yieldResult,Mj.yield(Y.offlineWebClientEligibility,18);case 18:I=Mj.yieldResult;Y.JSC$18960_commandHandler.resolveCommand(G.onAddCommand,{form:{preferredFormatType:L,lastOfflineQualitySettingsSavedMs:g.toString(),downloadToMobileEduShown:P,offlineWebClientEligibility:I}});Mj.jumpTo(0);break;case 19:return k=Mj.yieldResult,Y.previousDownloadStateForVideo[Q]=(n=k)!=null?n:"DOWNLOAD_STATE_UNKNOWN",Mj.yield(Dab(Y,Q,"DOWNLOAD_STATE_USER_DELETED"),20);case 20:if(Y.previousDownloadStateForVideo[Q]!==
"DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&Y.previousDownloadStateForVideo[Q]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){Mj.jumpTo(21);break}return Mj.yield(Y.pauseVideoDownload(Q),21);case 21:Xt=_.Q6("DELETED_VIDEO",void 0,"Video deleted from downloads.");ka=_.Q6("UNDO_ACTION",void 0,"Undo");Tg=_.Q6("CLOSE",void 0,"Close");p={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Sy(Xt),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Sy(ka),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",targetId:Q}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:Xt+" "+ka}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:Q}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:Tg}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},
popupType:"TOAST"}};Y.JSC$18960_commandHandler.resolveCommand(p);Mj.jumpTo(0);break;case 25:W=Mj.yieldResult;W==="UNKNOWN_FORMAT_TYPE"&&(W="SD");C="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((e=G.actionParams)==null?0:e.formatType)W=G.actionParams.formatType,C=(w=G.actionParams)==null?void 0:w.settingsAction;return Mj.yield(ZLb(Y,Q,W,C,u),26);case 26:return Mj.return();case 29:return N=Mj.yieldResult,Mj.yield(Vmx(Y),30);case 30:return h=Mj.yieldResult,Mj.yield(N1x(Y),31);case 31:q=Mj.yieldResult,
G.onAddCommand&&Y.JSC$18960_commandHandler.resolveCommand(G.onAddCommand,{form:{preferredFormatType:h,offlineWebClientEligibility:N,lastOfflineQualitySettingsSavedMs:q.toString()}}),Mj.jumpTo(0)}})},lIx=function(Y,G){var u,O,Q,M,t,K,L;
return _.a(function(g){if(g.nextAddress==1)return g.yield(Y.JSC$18960_persistentStorePromiseAccessor(),2);u=g.yieldResult;if(!u)return _.R0(new _.I2("PES is undefined")),g.return();if((O=G)==null||!O.settingItemId)return g.return();Q=G;M=Q.settingItemId;t=Q.boolValue;K=_.UU(M,"settingEntity");L={key:K,settingOptionValue:{boolValue:t}};return g.yield(hWx(u,L),0)})},B1V=function(Y,G){var u,O,Q,M,t,K,L;
return _.a(function(g){switch(g.nextAddress){case 1:return g.yield(Y.JSC$18960_prefStorage,2);case 2:return u=g.yieldResult,O=_.EU(),g.yield(Y.JSC$18960_persistentStorePromiseAccessor(),3);case 3:return Q=g.yieldResult,u?Q?g.yield(u.get("sdois"),4):(_.R0(new _.I2("PES is undefined")),g.return()):(_.R0(new _.I2("prefStorage is undefined")),g.return());case 4:M=g.yieldResult;K=(t=G)==null?void 0:t.boolValue;K===void 0||_.F("kevlar_set_sd_enabled_flag_killswitch")||_.tW(0,197,!0);M===void 0&&K===void 0&&
(K=!1);if(K===void 0){g.jumpTo(0);break}return g.yield(u.set("sdois",K),6);case 6:return _.F("kevlar_set_sd_enabled_flag_killswitch")||(_.tW(0,196,K),O.save()),L={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:K},g.yield(lIx(Y,L),0)}})},$ab=function(Y,G,u){var O,Q,M,t,K;
return _.a(function(L){switch(L.nextAddress){case 1:return L.yield(dax(Y),2);case 2:return O=L.yieldResult,L.yield(B1V(Y,u),3);case 3:return L.yield(dax(Y),4);case 4:return Q=L.yieldResult,M=Q!==O,L.yield(bLy(Y),5);case 5:t=L.yieldResult&&!_.F("kevlar_modern_downloads_page");if((K=!Q&&!t)||M)return L.yield(G.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);L.jumpTo(0)}})},n59=function(){var Y=_.sH().resolve(_.X6),
G;
_.a(function(u){switch(u.nextAddress){case 1:return u.yield(Y.JSC$18960_playerApiPromise,2);case 2:G=u.yieldResult;if(!_.F("kevlar_force_refresh_smart_downloads")){u.jumpTo(3);break}return u.yield(G.refreshAllStaleEntities(0),4);case 4:return u.return();case 3:return u.yield(G.refreshAllStaleEntities(),5);case 5:return u.yield($ab(Y,G),6);case 6:if(_.F("enable_download_pep_for_premium_countries_web"))return u.yield(htB(Y,G),0);u.jumpTo(0)}})},fuV=function(Y,G){var u,O;
_.a(function(Q){switch(Q.nextAddress){case 1:return Q.yield(Y.JSC$18960_playerApiPromise,2);case 2:u=Q.yieldResult;switch((O=G)==null?void 0:O.settingItemId){case "SMART_DOWNLOADS_ENABLED":return Q.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return Q.jumpTo(4)}Q.jumpTo(0);break;case 3:return Q.yield($ab(Y,u,G),6);case 6:Q.jumpTo(0);break;case 4:return Q.yield(lIx(Y,G),7);case 7:Q.jumpTo(0)}})},qzg=function(Y,G){var u,O,Q;
return _.a(function(M){if(M.nextAddress==1)return M.yield(Y.JSC$18960_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3){u=M.yieldResult;if(!u)return _.R0(new _.I2("PES is undefined")),M.return(!1);if(!G)return M.return(!1);O=_.UU(G,"mainVideoEntity");return M.yield(d$y(u,O,"mainVideoEntity"),3)}Q=M.yieldResult;return M.return(Q!==void 0)})},yEV=function(Y){var G=_.sH().resolve(_.X6),u,O,Q,M,t,K,L,g,P,I,k;
_.a(function(n){switch(n.nextAddress){case 1:return n.yield(G.JSC$18960_playerApiPromise,2);case 2:u=n.yieldResult;Q=(O=Y)==null?void 0:O.actions;if(!Q)return n.return();M=_.E(Q);t=M.next();case 3:if(t.done){n.jumpTo(0);break}K=t.value;g=L=void 0;if(!(((L=K)==null?0:L.entityKey)&&((g=K)==null?0:g.actionType))){n.jumpTo(4);break}P=_.B2(K.entityKey);I=P.entityId;k=P.entityType;return n.yield(u.queueOfflineAction(I,k,K.actionType),4);case 4:t=M.next(),n.jumpTo(3)}})},suo=function(Y,G){var u,O,Q,M,t;
return _.a(function(K){if(K.nextAddress==1)return K.yield(Y.JSC$18960_prefStorage,2);if(K.nextAddress!=3)return(u=K.yieldResult)?K.yield(u.get("psi"),3):K.return();O=K.yieldResult;t={isPaused:G,lastSyncTimestamp:(M=(Q=O)==null?void 0:Q.lastSyncTimestamp)!=null?M:"0"};return K.yield(u.set("psi",t),0)})},o5w=function(Y){var G=_.sH().resolve(_.X6),u,O,Q,M,t,K,L,g;
return _.a(function(P){switch(P.nextAddress){case 1:return P.yield(G.JSC$18960_playerApiPromise,2);case 2:u=P.yieldResult;Q=((O=Y)==null?void 0:O.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((K=Y)==null?void 0:K.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":M="!*$_ALL_ENTITIES_!*$";t="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return P.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return P.jumpTo(4)}P.jumpTo(5);break;case 3:return P.yield(suo(G,Q),6);case 6:P.jumpTo(5);break;case 4:return P.yield(qzg(G,(L=Y)==null?void 0:L.videoId),7);case 7:P.yieldResult&&(M=(g=Y)==null?void 0:g.videoId,t="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");P.jumpTo(5);break;case 5:if(M&&t)return P.yield(u.queueOfflineAction(M,"videoPlaybackPositionEntity",t),0);P.jumpTo(0)}})},c7b=function(Y,G){_.sH().resolve(_.Fv).persistentPanelContainerMap.set(G,Y)},
Uag=function(Y,G,u){Y.hasRegisteredHoverCallbacks=!0;
Y.hoverEnterCallback=G!=null?G:void 0;Y.hoverLeaveCallback=u!=null?u:void 0},vto=function(){return _.sH().resolve(_.Hl).dismissedIndices},J79=function(){var Y=_.sH().resolve(_.Hl);
_.bdj(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(Y.isFullscreenEnabled()?_.bc(document.documentElement):_.Jwj(document.documentElement))},Yq9=function(Y,G){var u;
G!==1||((u=Y.currentPersistentToast)==null?0:u.isOpened())?_.F1w(Y):Y.currentPersistentToast=void 0},Glx=function(Y,G){var u;
return(u=Y.transitionTasksMap.get(G))!=null?u:[]},uaS=function(Y,G){var u=[];
Y.elementTasksMap.forEach(function(O){(O=O.get(G))&&u.push(O)});
return u},O3j=function(Y,G,u,O,Q){Q=Q===void 0?{}:Q;
var M=G.defaultViewTransitionOptions;return Object.assign({},M,Q,{beforeTransition:function(){O.forEach(function(g){g.beforeTransition()});
var t;(t=M.beforeTransition)==null||t.call(M);var K,L;(L=(K=Q).beforeTransition)==null||L.call(K);u.forEach(function(g){g.beforeTransition()})},
afterTransition:function(){O.forEach(function(g){g.afterTransition()});
var t;(t=M.afterTransition)==null||t.call(M);var K,L;(L=(K=Q).afterTransition)==null||L.call(K);u.forEach(function(g){g.afterTransition()})},
ignoredErrors:Y.config.ignoredErrors})},Qsy=function(Y,G,u){Y.transitionTasksMap.has(G)?Y.transitionTasksMap.get(G).push(u):(Y=new _.I2("Transition task registered for unknown transition type",G),_.o0(Y))},MXy=function(Y,G,u){if(Y.transitionTasksMap.has(G)){var O=Y.transitionTasksMap.get(G).filter(function(Q){return Q!==u});
Y.transitionTasksMap.set(G,O)}},H3o=function(Y,G){var u=Glx(Y,G);
u=_.E(u);for(var O=u.next();!O.done;O=u.next())O=O.value,O.runOnce&&MXy(Y,G,O);Y.elementTasksMap.forEach(function(Q,M){Q.forEach(function(t,K){t.runOnce&&G===K&&(Q.delete(K),Q.size===0&&Y.elementTasksMap.delete(M))})})},Epj=function(Y,G,u){var O,Q,M,t,K,L,g,P,I;
_.a(function(k){if(k.nextAddress==1){if(Y.config.disableAllTransitions)return k.return(G());if((O=u)==null||!O.transitionType)return k.return(FU9(G,Object.assign({},(Q=u)==null?void 0:Q.viewTransitionOptions,{ignoredErrors:Y.config.ignoredErrors})));M=u;t=M.transitionType;K=M.viewTransitionOptions;L=Y.config.transitionConfigs.get(t);if(!L)return k.return(G());g=Glx(Y,t);P=uaS(Y,t);I=FU9(G,O3j(Y,L,g,P,K));return k.yield(I,2)}H3o(Y,t);_.Sd(k)})},tXS=function(Y,G){var u,O,Q,M,t;
_.a(function(K){if(!G.length)return K.return([]);u=[];O=_.E(G);for(Q=O.next();!Q.done;Q=O.next())M=Q.value,(t=Y.resolveIcon(M))&&!Y.iconCache[t.url]&&u.push(_.D3N(Y,t).then(function(){}).catch(function(){}));
return K.return(Promise.all(u))})},K3S=function(Y,G){var u=[];
G=(new Set(G)).values();G=_.E(G);for(var O=G.next();!O.done;O=G.next()){O=O.value;for(var Q=_.E(Object.values(T1b)),M=Q.next();!M.done;M=Q.next())u.push({iconName:O,iconStyle:M.value})}tXS(Y.iconManager,u)},aco=function(Y,G,u){var O=u!=null?u:Y.iconsToFetch;
O!=null&&O.length?G!==void 0&&G>=0?_.WY(_.AN,function(){K3S(Y,O)},G):K3S(Y,O):Promise.resolve()},Tkw=function(){var Y,G,u,O;
return _.a(function(Q){if(Q.nextAddress==1)return Y=navigator,(G=Y.storage)!=null&&G.persisted?Q.yield((u=Y.storage)==null?void 0:u.persisted(),2):Q.return("PERSISTED_STATE_NOT_SUPPORTED");O=Q.yieldResult;return Q.return(O?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},L3N=function(){var Y,G,u,O;
return _.a(function(Q){if(Q.nextAddress==1)return Y=navigator,(G=Y.storage)!=null&&G.persist?Q.yield((u=Y.storage)==null?void 0:u.persist(),2):Q.return("PERSISTED_STATE_NOT_SUPPORTED");O=Q.yieldResult;return Q.return(O?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},gpw=function(){var Y,G;
return _.a(function(u){switch(u.nextAddress){case 1:return Y="PERSISTED_STATE_NOT_SUPPORTED",_.i3(u,2),u.yield(Tkw(),4);case 4:Y=u.yieldResult;if(Y!=="PERSISTED_STATE_NOT_GRANTED"){u.jumpTo(5);break}return u.yield(L3N(),6);case 6:Y=u.yieldResult;case 5:_.j1(u,3);break;case 2:G=_.b3(u),G instanceof Error&&_.o0(G);case 3:return _.eK("persistentStorageStateChecked",{persistedState:Y}),u.return(Y)}})},X0x=function(Y,G,u){if(Y.isAnyTransitionEnabled){var O={beforeTransition:function(){u(!0);
G.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){G.style.viewTransitionName&&(G.style.viewTransitionName="",u(!1))}};
Qsy(Y.viewTransitionCoordinator,"slide",O);Qsy(Y.viewTransitionCoordinator,"lockup-to-watch",O);Qsy(Y.viewTransitionCoordinator,"watch-next-appears",O);Qsy(Y.viewTransitionCoordinator,"learning-journey",O)}},PD9=function(Y,G,u,O){if(Y.isLockupToWatchTransitionEnabled){if(G){var Q={};
Q=(Q["watch-next-appears"]="player-watch-next-loaded",Q);Q["lockup-to-watch"]=Y.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";Y.viewTransitionCoordinator.registerElement(G,Q)}u&&(G={},Y.viewTransitionCoordinator.registerElement(u,(G["lockup-to-watch"]="below-lockup-to-watch",G["watch-next-appears"]="below-watch-next-loaded",G)));O&&(u={},Y.viewTransitionCoordinator.registerElement(O,(u["watch-next-appears"]="secondary-watch-next-loaded",
u)))}},IcB=function(Y,G){Y.isBrowseTransitionEnabled?Epj(Y.viewTransitionCoordinator,G,{transitionType:"slide"}):(G(),Promise.resolve())},klx=function(Y,G){Y.isLockupToWatchTransitionEnabled?Epj(Y.viewTransitionCoordinator,G,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){Y.registeredLockupThumbnail=void 0;Y.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(G(),Promise.resolve())},npV=function(Y,G){Y.isLockupToWatchTransitionEnabled?Epj(Y.viewTransitionCoordinator,G,{transitionType:"watch-next-appears"}):(G(),Promise.resolve())},F3x=function(Y,G){Y.isLearningJourneyTransitionEnabled?Epj(Y.viewTransitionCoordinator,G,{transitionType:"learning-journey"}):(G(),Promise.resolve())},p0x=function(Y,G,u){if(Y.isInitialized()){var O=
Se(u),Q=O==="watch";
O=O==="shorts";var M=Se(G)==="watch";if(Q)M||(Y.backgroundPageData=G),Y.watchPipMode&&M||Y.deactivate(u.endpoint);else if(O){if(Se(G)!=="shorts"){var t;(t=Y.getPlayerElement())==null||t.pause()}}else M&&!Y.watchPipMode&&(zT9(G,u,!0)?(Y.watchWhileMode&&_.SVN(Y,!1),_.wYb(Y,G)):Y.isMiniplayerActive()&&Y.watchWhileMode&&Y.deactivate());M&&_.j0N(Y);Y.shortsPipMode&&!O&&(window.focus(),Y.deactivate());if(Y.pictureInPictureEnabled())if(O&&Y.shortsPipEnabled&&(!Y.shortsPipManualOnlyEnabled||_.c_u())||Q&&
Y.JSC$19397_watchPipEnabled&&(!Y.watchPipManualOnlyEnabled||_.c_u()))_.sCt(Y.handleMediaSessionPipActivation);else if((!Y.isMiniplayerActive()||Y.watchPipManualOnlyEnabled)&&(Y.shortsPipEnabled||Y.JSC$19397_watchPipEnabled)&&_.$Tg()){Y=_.qZ1().mediaSession;try{Y.setActionHandler("enterpictureinpicture",null)}catch(K){}}}},zcj=function(Y,G){var u,O;
_.a(function(Q){if(Q.nextAddress==1){if(!Y||!Y.navigationEndpoint)return Q.return();_.Qq().lockupActivation=!0;var M;G?M=_.i8(_.Q6("QUEUE",void 0,"Queue")):M=Y.longBylineText;O=(u=M)&&Y.title?{miniplayerTitle:Y.title,miniplayerSubtitle:u,playlistData:null}:void 0;return Q.yield(_.S8M(_.sH().resolve(_.yo),Y.navigationEndpoint,!0,O),2)}_.Qq().userActivation=!0;_.Sd(Q)})},kyS=function(Y,G){var u,O,Q,M,t,K;
_.a(function(L){if(L.nextAddress==1){u=_.z(G,_.yg4);if(!u||!u.listId)return L.return();Y.index=u.index||Y.index||0;O=Y.response&&Y.response.playingVideoId||void 0;return L.yield(_.G_R(Y.JSC$13418_playlistNetworkManager,u.listId,Y.index,O),2)}Q=L.yieldResult;if(!Q)return L.return();M=Q.playlistId;t=Q.playlistPanelRenderer;!Y.queueProxy&&M&&t&&M.startsWith("TLPQ")&&(Y.queueProxy=new _.xR(Y.JSC$13418_playlistNetworkManager,M,Y.setPlaylistData.bind(Y),Y.clearQueue.bind(Y),_.cZ4(t),Y.storage));if(u.openMiniplayer&&
(K=_.U8u(t))&&!Y.JSC$13418_pageManager.isOnWatch()){var g=K,P=u.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";Y.isMiniplayerActive()||zcj(g,P)}Y.setPlaylistData(M,t,Q.autoplayRenderer);_.Sd(L)})},Xay=function(Y,G){var u=_.wp();
u.index===void 0&&(u.index=0);u.temporaryItems.push.apply(u.temporaryItems,_.c8(Y));if((G.videoId||G.videoIds)&&u.index!==void 0&&G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!u.queueProxy){var O=[];if(u.response){var Q=_.sH().resolve(_.yo).isMiniplayerActive();if(u.response.playlistPanelRenderer&&u.response.playlistId&&!u.response.playlistId.startsWith("TLPQ")){if(u.JSC$13418_pageManager.isOnWatch()||Q)O=_.cZ4(u.response.playlistPanelRenderer)}else u.response.playingVideoId&&!G.openMiniplayer?
O.push(u.response.playingVideoId):Q&&u.response.playingVideoId&&G.openMiniplayer&&O.push(u.response.playingVideoId)}u.queueProxy=new _.xR(u.JSC$13418_playlistNetworkManager,"",u.setPlaylistData.bind(u),u.clearQueue.bind(u),O,u.storage);u.queueProxy.JSC$13364_setCurrentIndex(u.index)}u.queueProxy.addVideos(G.videoIds||[G.videoId],G)}Ndy(u,Y);u.response&&_.Z_(u,_.D_(u,u.response.autoplayRenderer));u.JSC$13418_pageManager.isOnWatch()||(Y=Y[0],G=G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",u.isMiniplayerActive()||
zcj(Y,G))},moo=function(Y,G){var u;
return _.a(function(O){return O.nextAddress==1?G&&Y.lastWelcomeContinuationSent!==G?_.OjB(Y)?O.yield(Y.panelController.isVisible("PAai_companion"),3):O.jumpTo(2):O.return(!1):O.nextAddress==2||(u=O.yieldResult,u)?O.return(!0):O.return(!1)})},W3b=function(Y){var G,u,O,Q,M;
return _.a(function(t){if(t.nextAddress==1){if(!Y.welcomeOptions)return t.return();G=Y.welcomeOptions;u=G.command;O=G.setPending;if(u){var K;var L=(K=_.z(u,_.rE))==null?void 0:K.token}else L=void 0;Q=L;return t.yield(moo(Y,Q),2)}if(!t.yieldResult)return t.return();Y.lastWelcomeContinuationSent=Q;(M=O)==null||M(!0);L="youchat-"+Date.now();K=(K=_.vx())?String(Math.floor(K.getCurrentTime())*1E3):void 0;_.pd(u,{form:{formData:_.wF({clientMessageId:L,playerOffsetMs:K,pageContext:_.cDw(Y,Y.pageSubtype)})}});
_.Sd(t)})},rgS=function(Y,G){_.a(function(u){Y.welcomeOptions=G;
return u.yield(W3b(Y),0)})},xoy=function(Y){var G=_.Q9(Y);
if(G=="object"||G=="array"){if(typeof Y.clone==="function")return Y.clone();if(typeof Map!=="undefined"&&Y instanceof Map)return new Map(Y);if(typeof Set!=="undefined"&&Y instanceof Set)return new Set(Y);G=G=="array"?[]:{};for(var u in Y)G[u]=xoy(Y[u]);return G}return Y},rvg=function(Y,G){return Array.prototype.reduce.call(Y,G,{duration:0})},pC=function(Y,G){return _.yUg(_.Kc(Y,G,void 0,_.tr))},zI=function(Y,G){return _.Lx(_.Kc(Y,G,void 0,_.tr))},mc=function(Y,G){return _.Kc(Y,G,void 0,_.tr,_.Ow)},
fcx=_.kO(function(Y,G,u,O){if(_.UA)return _.QAT(Y,G,u,O);
if(Y.nextWireType_!==0)return!1;_.f5(G,u,O,_.xO(Y.decoder_,_.s4));return!0},_.mg,_.wQ),CDb=_.kO(function(Y,G,u){if(_.UA)return _.E6Y(Y,G,u);
if(Y.nextWireType_!==1)return!1;var O=Y.decoder_;Y=_.oG(O);O=_.oG(O);Y=_.B1(Y,O);_.n5(G,u,Y);return!0},_.shu,_.$p_),ygw=_.kO(function(Y,G,u){if(Y.nextWireType_!==5)return!1;
_.n5(G,u,_.oG(Y.decoder_));return!0},function(Y,G,u){G=_.oka(G);
G!=null&&(_.Fo(Y,u,5),_.p5(Y.encoder_,G))},_.VpX),ec9=_.kO(function(Y,G,u){if(Y.nextWireType_!==2)return!1;
Y=_.AzE(Y);_.n5(G,u,Y===_.i_()?void 0:Y);return!0},_.YrA,_.cz_),Ago=_.b51(function(Y,G,u){if(Y.nextWireType_!==0&&Y.nextWireType_!==2)return!1;
G=_.ET(G,G[_.KT]|0,u);Y.nextWireType_==2?_.oO_(Y,Fj9,G):G.push(_.Ar(Y.decoder_));return!0},function(Y,G,u){G=_.dpj(_.Lx,G,!0);
if(G!=null&&G.length){u=_.ha4(Y,u);for(var O=0;O<G.length;O++)_.BT1(Y.encoder_,G[O]);_.dpI(Y,u)}},_.Up1),opS=_.kO(function(Y,G,u,O){if(Y.nextWireType_!==0)return!1;
_.f5(G,u,O,_.Ar(Y.decoder_));return!0},_.uHA,_.Up1),i3b=function(Y,G){return Y==G?!0:Y&&G?Y.width==G.width&&Y.height==G.height:!1},WL=function(Y,G){Y.insertBefore(G,Y.childNodes[0]||null)},RcB=function(Y){return Y.previousElementSibling!==void 0?Y.previousElementSibling:_.MGE(Y.previousSibling,!1)},chB=_.oh(_.mz),w0x=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(w0x,_.Ps);w0x.prototype.getTypeName=function(){return _.zy(this,1).split("/").pop()};
w0x.prototype.getValue=function(){var Y=_.Kc(this,2);if(Array.isArray(Y)||Y instanceof _.Ps)throw Error("X");return _.Lc(this,2)};
var Z3B=[0,2,_.j5],OdN=function(){var Y=_.l8();this.JSC$10239_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.VF("channel_type"))};
OdN.prototype.increment=function(Y){this.JSC$10239_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",Y)};
var QDy=function(){var Y=_.l8();this.JSC$10242_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.VF("channel_type"))};
QDy.prototype.increment=function(Y){this.JSC$10242_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",Y)};
var HdN=function(){var Y=_.l8();this.JSC$10245_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.VF("channel_type"))};
HdN.prototype.increment=function(Y){this.JSC$10245_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",Y)};
var Mkj=function(){var Y=_.l8();this.JSC$10248_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Mkj.prototype.increment=function(){this.JSC$10248_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var EyV=function(){var Y=_.l8();this.JSC$10251_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.VF("channel_type"),_.VF("error_type"))};
EyV.prototype.increment=function(Y,G){this.JSC$10251_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",Y,G)};
var tkN=function(){var Y=_.l8();this.JSC$10254_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
tkN.prototype.increment=function(){this.JSC$10254_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var KaV=function(){var Y=_.l8();this.JSC$10257_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
KaV.prototype.increment=function(){this.JSC$10257_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var JEx=function(){var Y=_.l8();this.JSC$10263_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
JEx.prototype.increment=function(){this.JSC$10263_streamzService.JSC$10108_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var DoV=function(Y){return Y.getCount&&typeof Y.getCount=="function"?Y.getCount():_.ly(Y)||typeof Y==="string"?Y.length:_.gX.getCount(Y)},hcx=function(Y,G){if(typeof Y.every=="function")return Y.every(G,void 0);
if(_.ly(Y)||typeof Y==="string")return Array.prototype.every.call(Y,G,void 0);for(var u=_.y1e(Y),O=_.lJ(Y),Q=O.length,M=0;M<Q;M++)if(!G.call(void 0,O[M],u&&u[M],Y))return!1;return!0},dox=function(Y,G,u,O){var Q=new _.Rx(null);
Y&&_.Bp(Q,Y);G&&_.$5(Q,G);u&&_.qO(Q,u);O&&_.sR(Q,O);return Q},b3j=function(Y){if(Y>=48&&Y<=57||Y>=96&&Y<=106||Y>=65&&Y<=90||_.Mt&&Y==0)return!0;
switch(Y){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 _.Hc;default:return!1}},Sqj=function(Y){if(Y.altKey&&!Y.ctrlKey||Y.metaKey||Y.keyCode>=112&&Y.keyCode<=123)return!1;
if(b3j(Y.keyCode))return!0;switch(Y.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!_.Hc;default:return Y.keyCode<166||Y.keyCode>183}},Nky=[0,
_.DB,ygw,-1],jsb={IMMEDIATE:10,AFTER_RENDER:8,MEASURE:5,INPUT:4,HIGH:3,MEDIUM:2,LOW:1,IDLE:0,10:"IMMEDIATE",8:"AFTER_RENDER",5:"MEASURE",4:"INPUT",3:"HIGH",2:"MEDIUM",1:"LOW",0:"IDLE"},$tj=0,vTb=!1,vMy=function(Y,G,u,O,Q,M,t){this.date=typeof Y==="number"?new Date(Y,G||0,u||1,O||0,Q||0,M||0,t||0):new Date(Y&&Y.getTime?Y.getTime():_.$M())};
_.qz(vMy,_.tg);_.H=vMy.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(Y){this.date.setHours(Y)};
_.H.setMinutes=function(Y){this.date.setMinutes(Y)};
_.H.setSeconds=function(Y){this.date.setSeconds(Y)};
_.H.setMilliseconds=function(Y){this.date.setMilliseconds(Y)};
_.H.setUTCHours=function(Y){this.date.setUTCHours(Y)};
_.H.setUTCMinutes=function(Y){this.date.setUTCMinutes(Y)};
_.H.setUTCSeconds=function(Y){this.date.setUTCSeconds(Y)};
_.H.setUTCMilliseconds=function(Y){this.date.setUTCMilliseconds(Y)};
_.H.add=function(Y){_.tg.prototype.add.call(this,Y);Y.hours&&this.setUTCHours(this.date.getUTCHours()+Y.hours);Y.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+Y.minutes);Y.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+Y.seconds)};
_.H.JSC$11661_toIsoString=function(Y){var G=_.tg.prototype.JSC$11661_toIsoString.call(this,Y);return Y?G+"T"+_.OS(this.getHours(),2)+":"+_.OS(this.getMinutes(),2)+":"+_.OS(this.getSeconds(),2):G+"T"+_.OS(this.getHours(),2)+_.OS(this.getMinutes(),2)+_.OS(this.getSeconds(),2)};
_.H.equals=function(Y){return this.getTime()==Y.getTime()};
_.H.toString=function(){return this.JSC$11661_toIsoString()};
_.H.clone=function(){var Y=new vMy(this.date);Y.firstDayOfWeek_=this.firstDayOfWeek_;Y.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return Y};
YK9.prototype.set=function(Y){this.relativeTimeStart_=Y};
YK9.prototype.reset=function(){this.set(_.$M())};
YK9.prototype.get=function(){return this.relativeTimeStart_};
var VXV=null,lcb=function(){VXV||(VXV=new YK9)},Bkw=function(){VXV||(VXV=new YK9)};
_.qz(Bkw,lcb);_.H=G1y.prototype;_.H.JSC$11687_buffer_="";_.H.set=function(Y){this.JSC$11687_buffer_=""+Y};
_.H.append=function(Y,G,u){this.JSC$11687_buffer_+=String(Y);if(G!=null)for(var O=1;O<arguments.length;O++)this.JSC$11687_buffer_+=arguments[O];return this};
_.H.clear=function(){this.JSC$11687_buffer_=""};
_.H.getLength=function(){return this.JSC$11687_buffer_.length};
_.H.toString=function(){return this.JSC$11687_buffer_};
var aZN={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"},Qxj=function(Y){this.xhr=Y},Mco=function(Y,G,u){_.Ya.call(this,Y+", errorCode="+G);
this.errorCode=G;this.xhr=u;this.name="PromiseAjaxError"};
_.m(Mco,_.Ya);var $ox=!1,k1B=function(Y){_.Ya.call(this,Y.message||Y.description||Y.name);this.isMissing=Y instanceof gsy;this.isTimeout=Y instanceof Mco&&Y.errorCode=="net.timeout";this.isCanceled=Y instanceof _.oz};
_.m(k1B,_.Ya);k1B.prototype.name="BiscottiError";var gsy=function(){_.Ya.call(this,"Biscotti ID is missing from server")};
_.m(gsy,_.Ya);gsy.prototype.name="BiscottiMissingError";var OXV={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},X$V=null,ECN=function(){try{var Y=_.So("yt.ads.biscotti.getId_");return Y?Y():bAo()}catch(G){return _.Ld(G)}},Ccg={'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"},qqb=function(Y,G){return _.V6({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:Y,command:G}})},sso=function(Y){return _.V6({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:Y}})},cgg=function(Y){return _.V6({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:Y}})},Uo9=function(Y){return _.V6({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:Y}})},vp9=function(Y){return _.V6({type:"SET_GUIDE_IS_EXPANDED",
payload:Y})},Jgw=function(Y){return _.V6({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",
payload:Y})},YE9=function(Y){return _.V6({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:Y})},Gpx=function(Y){return _.V6({type:"SET_ONLINE_STATUS",
payload:Y})},usy=function(Y){return _.V6({type:"SET_IS_WATCH_ACTIVE",
payload:{isWatchActive:Y}})},OM9=function(Y){return _.V6({type:"SET_IS_WATCH_NARROW_WIDTH",
payload:{isWatchNarrowWidth:Y}})},QZg=function(Y){return _.V6({type:"SET_IS_LIVE_CHAT_COLLAPSED",
payload:{isLiveChatCollapsed:Y}})},MtN=function(Y,G){return _.V6({type:"SET_TRANSCRIPTION_STATE",
payload:{high:Y,low:G}})},HMx=function(Y){return _.V6({type:"SET_OVERLAY_STATE",
payload:Y})},VcN=[[["c2JmaGZieDhzeDNtcHJpbWFyeSM=",
null,null],[null,["cmVuZGVyZXIjbWtudWxncXhzYW1meXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMt","c3R5bGUtc2NvcGUja245MXcxbGduandt"],null],["bWFzdGhlYWQtYWQjOTBpMDZqM3FhN2lp",["Z3p5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2VhNGQyMTVmMW4="],null],[null,["dHR5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2VncGIwczM0Y3U=","c3R5bGUtc2NvcGUjYzdzNTR6ZGttbGJi"],null],[null,["YmFubmVyLXByb21vLXJlbmRlcmVyI2tjOXI0ZXlub3QzOHl0ZC0=","c3R5bGUtc2NvcGUjZmczbXpscXc1Z3lu"],null],[null,["aTFibnJpeXRkLWFkLXNsb3QtcmVuZGVyZXIjMTJvbzBj"],null]],[["c3Y4cGxheWVyLWFkcyNqajhuY2NtdXI=",
null,null]],[[null,null,"bHItYmFubmVyLWN0YS1yZW5kZXJlciNtYW01cXlzZXgwd2p5dA=="]]],hIN="#",Ecj=0,ttw=function(Y,G,u){var O=this;this.priority=G;this.delay=u;this.jobId=0;this.completionCallback=_.nu;this.wrappedJob=function(){Y();O.completionCallback()};
this.id=++Ecj};
ttw.prototype.enqueue=function(Y){this.completionCallback=Y;this.jobId=_.AN.addJob(this.wrappedJob,this.priority,this.delay)};
var rr=function(){_.Vs.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.m(rr,_.Vs);rr.prototype.addJob=function(Y,G,u){Y=new ttw(Y,G,u);this.taskIdToTask.set(Y.id,Y);this.isActive?KA9(this,Y):this.suspendedTasks.add(Y);return Y.id};
var KA9=function(Y,G){Y.scheduledTasks.add(G);G.enqueue(function(){Y.scheduledTasks.delete(G)})};
rr.prototype.cancelJob=function(Y){(Y=this.taskIdToTask.get(Y))&&(this.scheduledTasks.delete(Y)?_.AN.cancelJob(Y.jobId):this.suspendedTasks.delete(Y))};
rr.prototype.pause=function(){var Y=this;this.isActive=!1;this.scheduledTasks.forEach(function(G){_.AN.cancelJob(G.jobId);Y.suspendedTasks.add(G)});
this.scheduledTasks.clear()};
rr.prototype.start=function(){var Y=this;this.isActive=!0;this.suspendedTasks.forEach(function(G){KA9(Y,G)});
this.suspendedTasks.clear()};
rr.prototype.reset=function(){this.scheduledTasks.forEach(function(Y){_.AN.cancelJob(Y.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var ahV=function(Y,G){this.JSC$13544_networkService_=Y;this.pageRequestPromise=G};
ahV.prototype.fetchData=function(Y){Txx(this,this.JSC$13544_networkService_.fetchData(Y))};
ahV.prototype.postData=function(Y,G){Txx(this,this.JSC$13544_networkService_.postData(Y,G))};
ahV.prototype.requestDataForServiceEndpoint=function(Y,G){Txx(this,this.JSC$13544_networkService_.requestDataForServiceEndpoint(Y,G))};
var Txx=function(Y,G){G.then(Y.pageRequestPromise.onSuccess,Y.pageRequestPromise.onFailure,Y.pageRequestPromise)};
ahV.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var LAb=function(Y){this.buildNetworkRequest_=Y;this.pendingRequests_=new Set};
LAb.prototype.reset=function(){this.pendingRequests_.forEach(function(Y){Y.cancel()});
this.pendingRequests_.clear()};
LAb.prototype.fetchData=function(Y){var G=gcx(this);G.fetchData(Y);return G.pageRequestPromise};
LAb.prototype.postData=function(Y,G){var u=gcx(this);u.postData(Y,G);return u.pageRequestPromise};
LAb.prototype.requestDataForServiceEndpoint=function(Y,G){var u=gcx(this);u.requestDataForServiceEndpoint(Y,G);return u.pageRequestPromise};
var gcx=function(Y){var G=Y.buildNetworkRequest_();Y.pendingRequests_.add(G);var u=function(){Y.pendingRequests_.delete(G)};
G.pageRequestPromise.then(u,u);return G},XTV=function(Y){var G=new rr;
this.JSC$13551_networkService_=Y;this.JSC$13551_taskManager_=G;this.JSC$13551_networkManager_=new LAb(this.networkRequestFactory_.bind(this))};
_.H=XTV.prototype;_.H.networkRequestFactory_=function(){return new ahV(this.JSC$13551_networkService_,new _.vq(this.JSC$13551_taskManager_))};
_.H.reset=function(){this.JSC$13551_taskManager_.reset();this.JSC$13551_networkManager_.reset()};
_.H.start=function(){this.JSC$13551_taskManager_.start()};
_.H.pause=function(){this.JSC$13551_taskManager_.pause()};
_.H.getTaskManager=function(){return this.JSC$13551_taskManager_};
_.H.getNetworkManager=function(){return this.JSC$13551_networkManager_};
var YU9=null,OQo=[],sxb=0,Jvb=0,cvg=null,HQw=null,cS=function(Y){this.token=Y};
cS.getInstance=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield(_.vK(),2);Y=G.yieldResult;if(!Y)return G.return();cS.instance||(cS.instance=new cS(Y));return G.return(cS.instance)})};
var PgN=function(Y){var G;return _.a(function(u){if(u.nextAddress==1)return u.yield(L7B(Y.token),2);G=u.yieldResult;return u.return(G.clear("resource-manifest-assets"))})},sJ=function(Y){this.token=Y};
sJ.getInstance=function(){var Y;return _.a(function(G){if(G.nextAddress==1)return G.yield(_.vK(),2);Y=G.yieldResult;if(!Y)return G.return();sJ.instance||(sJ.instance=new sJ(Y));return G.return(sJ.instance)})};
var gNb=function(Y){var G;return _.a(function(u){if(u.nextAddress==1)return u.yield(L7B(Y.token),2);G=u.yieldResult;return u.yield(G.clear("auth"),0)})},Ph9=!1,RSo=null,w2V=void 0,VyS=!1,Ihy=function(Y){if(!_.Vx(document,"gtm-noscript")){var G=document.createElement("noscript");
G.id="gtm-noscript";G.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+Y+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(G)}},kp9=function(Y){_.Ya.call(this,Y)};
_.m(kp9,_.ZYX);
var DWx=!1,bUS=[],dWj=!1,YbV={},uOV=function(Y,G){var u=nc9,O=this;this.renderFn=Y;this.listeners=u;this.context=G;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var Q;this.lastSeenPlayerApi=_.fy((Q=this.playerControlsData)==null?void 0:Q.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.ItM(),void 0);_.F("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Oyb(O).setState({playerState:-1});O.resetRecentlyNavigatedJobId&&
_.AN.cancelJob(O.resetRecentlyNavigatedJobId);O.recentlyNavigated=!0;O.resetRecentlyNavigatedJobId=_.AN.addJob(function(){O.recentlyNavigated=!1},8,1E4)})};
uOV.prototype.setState=function(Y){if(!_.F("mweb_player_skip_no_op_state_changes")||!GAy(Y,this.state))if(this.state=Object.assign({},this.state,Y),!_.F("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated){Y=_.F("player_controls_log_creation_enabled");var G=-1;Y&&!uEw()&&(G=(0,_.GC)());Y&&_.pQ("pcu_s");Y&&(_.pQ("pcu_se"),_.pQ("pcu_rs"));this.renderFn(Oyb(this));Y&&(_.pQ("pcu_re"),OBj(G),_.AN.addJob(function(){_.pQ("pcu_ap")},8))}};
var Oyb=function(Y){if(Y.getPlayerApi)var G=_.fy(Y.getPlayerApi());else{var u;G=_.fy((u=Y.playerControlsData)==null?void 0:u.playerApi)}return Object.assign({},Y.state,{setState:Y.boundSetState,domMeasurements:{progressBarLineRect:Y.progressBarLineRect},playerApi:G,appApi:Y.context.appApi,playerContainer:Y.context.playerContainer,playerControlContainer:Y.context.playerControlContainer,uxConfig:Y.context.uxConfig})},QfN=function(Y){Y.listeners.forEach(function(G){Y.eventListenerCleanupFunctions.push(G.register(function(){return Oyb(Y)},
function(){return Y.getData()}))})},M6S=function(Y){Y.eventListenerCleanupFunctions.forEach(function(G){G()});
Y.eventListenerCleanupFunctions.length=0};
uOV.prototype.getData=function(){return this.playerControlsData};var JRN=function(){var Y=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return Y?parseInt(Y[1],10):0},FAw=function(Y){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+Y)!=-1||document.currentScript.src.indexOf("&"+Y)!=-1)},pTg=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},QSN=function(Y){Y.length?zhB(Y.shift(),function(){QSN(Y)}):GSw()},HzB=function(Y){return"chrome-extension://"+Y+"/cast_sender.js"},zhB=function(Y,
G,u){var O=document.createElement("script");
O.onerror=G;u&&(O.onload=u);_.P8(O,_.Ie(Y));(document.head||document.documentElement).appendChild(O)},mRb=function(){var Y=JRN(),G=[];
if(Y>1){var u=Y-1;G.push("//www.gstatic.com/eureka/clank/"+Y+"/cast_sender.js");G.push("//www.gstatic.com/eureka/clank/"+u+"/cast_sender.js")}return G},GSw=function(){var Y=pTg();
Y&&Y(!1,"No cast extension found")},OzB=function(){if(WAx){var Y=2,G=pTg(),u=function(){Y--;
Y==0&&G&&G(!0)};
window.__onGCastApiAvailable=u;zhB("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",GSw,u)}},Yjb=function(){OzB();
var Y=mRb();Y.push("//www.gstatic.com/eureka/clank/cast_sender.js");QSN(Y)},umx=function(){OzB();
var Y=mRb();Y.push.apply(Y,_.c8(Mr9.map(HzB)));Y.push("//www.gstatic.com/eureka/clank/cast_sender.js");QSN(Y)},WAx=FAw("loadCastFramework")||FAw("loadCastApplicationFramework"),Mr9=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var rKb=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(rKb,_.Ps);var xRy=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(xRy,_.Ps);var fhb=function(){var Y=new xRy;return _.yd(Y,1,3)};var xj=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(xj,_.Ps);var fbw=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(fbw,_.Ps);var ChN=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(ChN,_.Ps);ChN.prototype.getToken=function(){return _.zy(this,1)};
ChN.prototype.setToken=function(Y){return _.DL(this,1,Y)};
var rhj=function(Y){return _.Gn(Y,3,_.AB,_.bd())},x7x=function(Y){return _.Gn(Y,6,_.AB,_.bd())};var fC=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(fC,_.Ps);fC.prototype.getToken=function(){return _.QH(this,ChN,2)};
fC.prototype.setToken=function(Y){return _.Rh(this,2,Y)};
fC.prototype.getName=function(){return _.zy(this,6)};
var yKo=_.oh(fC);var eh9=function(Y,G,u){this.requestMessage=Y;this.methodDescriptor=G;this.metadata=u};
eh9.prototype.getMetadata=function(){return this.metadata};var AKb=function(Y,G){G=G===void 0?{}:G;this.responseMessage=Y;this.metadata=G;this.status=null};
AKb.prototype.getMetadata=function(){return this.metadata};
AKb.prototype.getStatus=function(){return this.status};var CC=function(Y,G,u,O,Q){this.name=Y;this.methodType="unary";this.requestType=G;this.responseType=u;this.requestSerializeFn=O;this.responseDeserializeFn=Q},ocS=function(Y,G,u){u=u===void 0?{}:u;
return new eh9(G,Y,u)};
CC.prototype.getName=function(){return this.name};var yX=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(yX,_.Ps);yX.prototype.getHeader=function(){return _.QH(this,xj,1)};
yX.prototype.setHeader=function(Y){return _.Rh(this,1,Y)};
yX.prototype.hasHeader=function(){return _.aG(this,xj,1)};var iMN=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(iMN,_.Ps);var Rhj=new CC("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",yX,iMN,function(Y){return Y.serialize()},_.oh(iMN));var eU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(eU,_.Ps);eU.prototype.getHeader=function(){return _.QH(this,xj,1)};
eU.prototype.setHeader=function(Y){return _.Rh(this,1,Y)};
eU.prototype.hasHeader=function(){return _.aG(this,xj,1)};var wTN=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(wTN,_.Ps);var ZM9=new CC("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",eU,wTN,function(Y){return Y.serialize()},_.oh(wTN));var Au=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Au,_.Ps);Au.prototype.getHeader=function(){return _.QH(this,xj,1)};
Au.prototype.setHeader=function(Y){return _.Rh(this,1,Y)};
Au.prototype.hasHeader=function(){return _.aG(this,xj,1)};var DRb=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(DRb,_.Ps);DRb.prototype.getValues=function(Y){return _.nOl(this,1,Y)};var hhx=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(hhx,_.Ps);hhx.prototype.getLink=function(){return _.QH(this,fC,1)};var dR9=new CC("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Au,hhx,function(Y){return Y.serialize()},_.oh(hhx));var o7=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(o7,_.Ps);o7.prototype.getHeader=function(){return _.QH(this,xj,1)};
o7.prototype.setHeader=function(Y){return _.Rh(this,1,Y)};
o7.prototype.hasHeader=function(){return _.aG(this,xj,1)};var bMb=new CC("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",o7,fC,function(Y){return Y.serialize()},yKo);var SEw=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(SEw,_.Ps);var NxN=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(NxN,_.Ps);NxN.prototype.getUrl=function(){return _.zy(this,2)};
NxN.prototype.setUrl=function(Y){return _.DL(this,2,Y)};var jZ9=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(jZ9,_.Ps);var Vt9=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Vt9,_.Ps);var lhb=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(lhb,_.Ps);var bBN=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(bBN,_.Ps);var hmy=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(hmy,_.Ps);var BxS=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(BxS,_.Ps);var s$V=_.oh(BxS);var $RB=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m($RB,_.Ps);var qEN=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(qEN,_.Ps);_.H=qEN.prototype;_.H.getHeader=function(){return _.QH(this,xj,1)};
_.H.setHeader=function(Y){return _.Rh(this,1,Y)};
_.H.hasHeader=function(){return _.aG(this,xj,1)};
_.H.getCompletionUrl=function(){return _.zy(this,6)};
_.H.getDeviceId=function(){return _.zy(this,11)};var sZN=new CC("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",qEN,BxS,function(Y){return Y.serialize()},s$V);var cKj=new Set(["SAPISIDHASH","APISIDHASH"]);var URb=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(URb,_.Ps);URb.prototype.getMessage=function(){return _.zy(this,2)};
var vcy=_.oh(URb);var YL9=function(Y,G){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=Y.nodeReadableStream;this.grpcResponseDeserializeFn=G;this.xhr=Y.xhr;this.xhrNodeReadableStream&&JK9(this)},Ewx=function(Y,G){var u=new GGN;
_.yn(Y.xhr,"complete",function(){if(Y.xhr.isSuccess()){var O=Y.xhr.getResponseText();var Q;if(Q=G)Q=Y.xhr,Q.JSC$10117_xhr_&&Q.isComplete()?(Q=Q.JSC$10117_xhr_.getResponseHeader("Content-Type"),Q=Q===null?void 0:Q):Q=void 0,Q=Q==="text/plain";if(Q){if(!atob)throw Error("fk");O=atob(O)}try{var M=Y.grpcResponseDeserializeFn(O)}catch(K){uVb(Y,tlN(new _.x5(13,"Error when deserializing response data; error: "+K+(", response: "+O)),u));return}O=_.Bct(Y.xhr.getStatus());OkS(Y,Q_N(Y));O===0?MD9(Y,M):uVb(Y,
tlN(new _.x5(O,"Xhr succeeded but the status code is not 200"),u))}else{O=Y.xhr.getResponseText();M=Q_N(Y);if(O){var t=Hko(Y,O);O=t.code;Q=t.details;t=t.metadata}else O=2,Q="Rpc failed due to xhr error. uri: "+String(Y.xhr.JSC$10117_lastUri_)+", error code: "+(Y.xhr.JSC$10117_lastErrorCode_+", error: ")+Y.xhr.getLastError(),t=M;OkS(Y,M);uVb(Y,tlN(new _.x5(O,Q,t),u))}})},JK9=function(Y){Y.xhrNodeReadableStream.on("data",function(G){if("1"in G){var u=G["1"];
try{var O=Y.grpcResponseDeserializeFn(u)}catch(Q){uVb(Y,new _.x5(13,"Error when deserializing response data; error: "+Q+(", response: "+u)))}O&&MD9(Y,O)}if("2"in G)for(G=Hko(Y,G["2"]),u=0;u<Y.onStatusCallbacks.length;u++)Y.onStatusCallbacks[u](G)});
Y.xhrNodeReadableStream.on("end",function(){OkS(Y,Q_N(Y));for(var G=0;G<Y.onEndCallbacks.length;G++)Y.onEndCallbacks[G]()});
Y.xhrNodeReadableStream.on("error",function(){if(Y.onErrorCallbacks.length!==0){var G=Y.xhr.JSC$10117_lastErrorCode_;G!==0||Y.xhr.isSuccess()||(G=6);var u=-1;switch(G){case 0:var O=2;break;case 7:O=10;break;case 8:O=4;break;case 6:u=Y.xhr.getStatus();O=_.Bct(u);break;default:O=14}OkS(Y,Q_N(Y));G=_.K_k(G)+", error: "+Y.xhr.getLastError();u!==-1&&(G+=", http status code: "+u);uVb(Y,new _.x5(O,G))}})},Q_N=function(Y){var G={},u=m$y(Y.xhr);
Object.keys(u).forEach(function(O){G[O]=u[O]});
return G},Hko=function(Y,G){var u=2,O={};
try{var Q=vcy(G);u=_.Sh(Q,1);var M=Q.getMessage();_.dX(Q,w0x,3,_.bd()).length&&(O["grpc-web-status-details-bin"]=G)}catch(t){Y.xhr&&Y.xhr.getStatus()===404?(u=5,M="Not Found: "+String(Y.xhr.JSC$10117_lastUri_)):(u=14,M="Unable to parse RpcStatus: "+t)}return{code:u,details:M,metadata:O}};
YL9.prototype.on=function(Y,G){Y==="data"?this.onDataCallbacks.push(G):Y==="metadata"?this.onMetadataCallbacks.push(G):Y==="status"?this.onStatusCallbacks.push(G):Y==="end"?this.onEndCallbacks.push(G):Y==="error"&&this.onErrorCallbacks.push(G);return this};
var tDj=function(Y,G){G=Y.indexOf(G);G>-1&&Y.splice(G,1)};
YL9.prototype.removeListener=function(Y,G){Y==="data"?tDj(this.onDataCallbacks,G):Y==="metadata"?tDj(this.onMetadataCallbacks,G):Y==="status"?tDj(this.onStatusCallbacks,G):Y==="end"?tDj(this.onEndCallbacks,G):Y==="error"&&tDj(this.onErrorCallbacks,G);return this};
YL9.prototype.cancel=function(){this.xhr.abort()};
var MD9=function(Y,G){for(var u=0;u<Y.onDataCallbacks.length;u++)Y.onDataCallbacks[u](G)},OkS=function(Y,G){for(var u=0;u<Y.onMetadataCallbacks.length;u++)Y.onMetadataCallbacks[u](G)},uVb=function(Y,G){for(var u=0;u<Y.onErrorCallbacks.length;u++)Y.onErrorCallbacks[u](G)},GGN=function(){var Y=Error.call(this);
this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(GGN,Error);var KPw=function(Y){this.JSC$19633_worker_=Y.worker||null;this.JSC$19633_streamBinaryChunks_=Y.streamBinaryChunks||!1;this.JSC$19633_credentialsMode_=void 0};
_.qz(KPw,_.qHt);KPw.prototype.createInstance=function(){var Y=new iX(this.JSC$19633_worker_,this.JSC$19633_streamBinaryChunks_);this.JSC$19633_credentialsMode_&&Y.setCredentialsMode(this.JSC$19633_credentialsMode_);return Y};
KPw.prototype.setCredentialsMode=function(Y){this.JSC$19633_credentialsMode_=Y};
var iX=function(Y,G){_.C7.call(this);this.JSC$19637_worker_=Y;this.JSC$19637_streamBinaryChunks_=G;this.JSC$19637_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19637_responseHeaders_=null;this.JSC$19637_method_="GET";this.JSC$19637_url_="";this.inProgress_=!1;this.JSC$19637_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.qz(iX,_.C7);iX.prototype.open=function(Y,G){if(this.readyState!=0)throw this.abort(),Error("gk");this.JSC$19637_method_=Y;this.JSC$19637_url_=G;this.readyState=1;afx(this)};
iX.prototype.send=function(Y){if(this.readyState!=1)throw this.abort(),Error("hk");if(this.abortController_.signal.aborted)throw this.abort(),Error("ik");this.inProgress_=!0;var G={headers:this.requestHeaders_,method:this.JSC$19637_method_,credentials:this.JSC$19637_credentialsMode_,cache:void 0,signal:this.abortController_.signal};Y&&(G.body=Y);(this.JSC$19637_worker_||_.OI).fetch(new Request(this.JSC$19637_url_,G)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
iX.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,TuN(this));this.readyState=0};
iX.prototype.handleResponse_=function(Y){if(this.inProgress_&&(this.fetchResponse_=Y,this.JSC$19637_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19637_responseHeaders_=Y.headers,this.readyState=2,afx(this)),this.inProgress_&&(this.readyState=3,afx(this),this.inProgress_)))if(this.responseType==="arraybuffer")Y.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.OI.ReadableStream!==
"undefined"&&"body"in Y){this.currentReader_=Y.body.getReader();if(this.JSC$19637_streamBinaryChunks_){if(this.responseType)throw Error("jk");this.response=[]}else this.response=this.responseText="",this.JSC$19637_textDecoder_=new TextDecoder;LPb(this)}else Y.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var LPb=function(Y){Y.currentReader_.read().then(Y.handleDataFromStream_.bind(Y)).catch(Y.handleSendFailure_.bind(Y))};
iX.prototype.handleDataFromStream_=function(Y){if(this.inProgress_){if(this.JSC$19637_streamBinaryChunks_&&Y.value)this.response.push(Y.value);else if(!this.JSC$19637_streamBinaryChunks_){var G=Y.value?Y.value:new Uint8Array(0);if(G=this.JSC$19637_textDecoder_.decode(G,{stream:!Y.done}))this.response=this.responseText+=G}Y.done?TuN(this):afx(this);this.readyState==3&&LPb(this)}};
iX.prototype.handleResponseText_=function(Y){this.inProgress_&&(this.response=this.responseText=Y,TuN(this))};
iX.prototype.handleResponseArrayBuffer_=function(Y){this.inProgress_&&(this.response=Y,TuN(this))};
iX.prototype.handleSendFailure_=function(){this.inProgress_&&TuN(this)};
var TuN=function(Y){Y.readyState=4;Y.fetchResponse_=null;Y.currentReader_=null;Y.JSC$19637_textDecoder_=null;afx(Y)};
iX.prototype.setRequestHeader=function(Y,G){this.requestHeaders_.append(Y,G)};
iX.prototype.getResponseHeader=function(Y){return this.JSC$19637_responseHeaders_?this.JSC$19637_responseHeaders_.get(Y.toLowerCase())||"":""};
iX.prototype.getAllResponseHeaders=function(){if(!this.JSC$19637_responseHeaders_)return"";for(var Y=[],G=this.JSC$19637_responseHeaders_.entries(),u=G.next();!u.done;)u=u.value,Y.push(u[0]+": "+u[1]),u=G.next();return Y.join("\r\n")};
iX.prototype.setCredentialsMode=function(Y){this.JSC$19637_credentialsMode_=Y};
var afx=function(Y){Y.onreadystatechange&&Y.onreadystatechange.call(Y)};
Object.defineProperty(iX.prototype,"withCredentials",{get:function(){return this.JSC$19637_credentialsMode_==="include"},
set:function(Y){this.setCredentialsMode(Y?"include":"same-origin")}});var gwS=function(Y){var G="";_.gX.forEach(Y,function(u,O){G+=O;G+=":";G+=u;G+="\r\n"});
return G},XJB=function(Y,G,u){if(_.gX.isEmpty(u))return Y;
u=gwS(u);if(typeof Y==="string")return _.YI(Y,_.Us(G),u);_.NA(Y,G,u);return Y};Kww.prototype.isInputValid=function(){return this.isInputValid_};
Kww.prototype.decode=function(Y){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("kk`"+this.JSC$19643_streamPos_+"`stream already broken`"+Y);this.leftoverInput_+=Y;Y=Math.floor(this.leftoverInput_.length/4);if(Y==0)return null;try{var G=_.VTU(this.leftoverInput_.slice(0,Y*4))}catch(u){throw G=this.leftoverInput_,Y=u.message,this.isInputValid_=!1,Error("kk`"+this.JSC$19643_streamPos_+"`"+Y+"`"+G);}this.JSC$19643_streamPos_+=Y*4;this.leftoverInput_=this.leftoverInput_.slice(Y*4);return G};aby.prototype.isInputValid=function(){return this.state_!=3};
var PaN=function(Y,G,u,O){Y.state_=3;Y.errorMessage_="The stream is broken @"+Y.JSC$19646_streamPos_+"/"+u+". Error: "+O+". With input:\n"+G;throw Error(Y.errorMessage_);};
aby.prototype.acceptsBinaryInput=function(){return!0};
aby.prototype.parse=function(Y){function G(L){L&128&&PaN(M,t,K,"invalid tag");(L&7)!=2&&PaN(M,t,K,"invalid wire type");M.tag_=L>>>3;M.tag_!=1&&M.tag_!=2&&M.tag_!=15&&PaN(M,t,K,"unexpected tag");M.state_=1;M.length_=0;M.countLengthBytes_=0}
function u(L){M.countLengthBytes_++;M.countLengthBytes_==5&&L&240&&PaN(M,t,K,"message length too long");M.length_|=(L&127)<<(M.countLengthBytes_-1)*7;L&128||(M.state_=2,M.countMessageBytes_=0,typeof Uint8Array!=="undefined"?M.messageBuffer_=new Uint8Array(M.length_):M.messageBuffer_=Array(M.length_),M.length_==0&&Q())}
function O(L){M.messageBuffer_[M.countMessageBytes_++]=L;M.countMessageBytes_==M.length_&&Q()}
function Q(){if(M.tag_<15){var L={};L[M.tag_]=M.messageBuffer_;M.result_.push(L)}M.state_=0}
for(var M=this,t=Y instanceof Array?Y:new Uint8Array(Y),K=0;K<t.length;){switch(M.state_){case 3:PaN(M,t,K,"stream already broken");break;case 0:G(t[K]);break;case 1:u(t[K]);break;case 2:O(t[K]);break;default:throw Error("lk`"+M.state_);}M.JSC$19646_streamPos_++;K++}Y=M.result_;M.result_=[];return Y.length>0?Y:null};var g3S=function(){this.errorMessage_=null;this.JSC$19649_streamPos_=0;this.base64Decoder_=new Kww;this.pbParser_=new aby};
g3S.prototype.isInputValid=function(){return this.errorMessage_===null};
var IfS=function(Y,G,u){Y.errorMessage_="The stream is broken @"+Y.JSC$19649_streamPos_+". Error: "+u+". With input:\n"+G;throw Error(Y.errorMessage_);};
g3S.prototype.acceptsBinaryInput=function(){return!1};
g3S.prototype.parse=function(Y){this.errorMessage_!==null&&IfS(this,Y,"stream already broken");var G=null;try{var u=this.base64Decoder_.decode(Y);G=u===null?null:this.pbParser_.parse(u)}catch(O){IfS(this,Y,O.message)}this.JSC$19649_streamPos_+=Y.length;return G};var Lwb=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19652_streamPos_=0;this.result_=[];this.statusParsed_=!1};
Lwb.prototype.isInputValid=function(){return this.errorMessage_===null};
Lwb.prototype.acceptsBinaryInput=function(){return!1};
Lwb.prototype.parse=function(Y){function G(L){M.state_=6;M.errorMessage_="The stream is broken @"+M.JSC$19652_streamPos_+"/"+t+". Error: "+L+". With input:\n";throw Error(M.errorMessage_);}
function u(){M.jsonStreamParser_=new _.Pc({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function O(L){if(L)for(var g=0;g<L.length;g++){var P={};P[1]=L[g];M.result_.push(P)}}
function Q(L){if(L){(M.statusParsed_||L.length>1)&&G("extra status: "+L);M.statusParsed_=!0;var g={};g[2]=L[0];M.result_.push(g)}}
for(var M=this,t=0;t<Y.length;){var K;if(K=M.state_!==2){a:{for(;t<Y.length;){if(!_.SX(Y[t])){K=!0;break a}t++;M.JSC$19652_streamPos_++}K=!1}K=!K}if(K)return null;switch(M.state_){case 6:G("stream already broken");break;case 0:Y[t]==="["?(M.state_=1,t++,M.JSC$19652_streamPos_++):G("unexpected input token");break;case 1:Y[t]==="["?(M.state_=2,u()):Y[t]===","||Y.slice(t,t+5)=="null,"?M.state_=3:Y[t]==="]"?(M.state_=5,t++,M.JSC$19652_streamPos_++):G("unexpected input token");break;case 2:K=M.jsonStreamParser_.parse(Y.substring(t));
O(K);M.jsonStreamParser_.done()?(M.state_=3,K=M.jsonStreamParser_.JSC$11811_buffer_,M.JSC$19652_streamPos_+=Y.length-t-K.length,Y=K,t=0):(M.JSC$19652_streamPos_+=Y.length-t,t=Y.length);break;case 3:Y[t]===","||Y.slice(t,t+5)=="null,"?(M.state_=4,u(),M.jsonStreamParser_.parse("["),t+=Y[t]===","?1:5,M.JSC$19652_streamPos_++):Y[t]==="]"&&(M.state_=5,t++,M.JSC$19652_streamPos_++);break;case 4:K=M.jsonStreamParser_.parse(Y.substring(t));Q(K);M.jsonStreamParser_.done()?(M.state_=5,K=M.jsonStreamParser_.JSC$11811_buffer_,
M.JSC$19652_streamPos_+=Y.length-t-K.length,Y=K,t=0):(M.JSC$19652_streamPos_+=Y.length-t,t=Y.length);break;case 5:G("extra input after stream end")}}return M.result_.length>0?(Y=M.result_,M.result_=[],Y):null};var kGg=function(Y){this.JSC$19655_xhr_=Y;this.JSC$19655_parser_=null;this.status_=this.JSC$19655_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19655_textDecoder_=null;this.JSC$19655_eventHandler_=new _.ae(this);this.JSC$19655_eventHandler_.listen(this.JSC$19655_xhr_,"readystatechange",this.JSC$19657_readyStateChangeHandler_)},R7=function(Y,G){Y.status_!=G&&(Y.status_=G,Y.statusHandler_&&Y.statusHandler_())},nwb=function(Y){Y.JSC$19655_eventHandler_.removeAll();
if(Y.JSC$19655_xhr_){var G=Y.JSC$19655_xhr_;Y.JSC$19655_xhr_=null;G.abort();G.dispose()}};
kGg.prototype.getStatus=function(){return this.status_};
kGg.prototype.JSC$19657_readyStateChangeHandler_=function(Y){Y=Y.target;try{if(Y==this.JSC$19655_xhr_)a:{var G=_.yB(this.JSC$19655_xhr_),u=this.JSC$19655_xhr_.JSC$10117_lastErrorCode_,O=this.JSC$19655_xhr_.getStatus(),Q=this.JSC$19655_xhr_.getResponseText();Y=[];if(this.JSC$19655_xhr_.getResponse()instanceof Array){var M=this.JSC$19655_xhr_.getResponse();M.length>0&&M[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,Y=M)}if(!(G<3||G==3&&!Q&&Y.length==0))if(O=O==200||O==206,G==4&&(u==8?
R7(this,7):u==7?R7(this,8):O||R7(this,3)),this.JSC$19655_parser_||(this.JSC$19655_parser_=Xmx(this.JSC$19655_xhr_),this.JSC$19655_parser_==null&&R7(this,5)),this.status_>2)nwb(this);else{if(Y.length>this.JSC$19655_pos_){var t=Y.length;u=[];try{if(this.JSC$19655_parser_.acceptsBinaryInput())for(var K=0;K<t;K++){var L=this.JSC$19655_parser_.parse(Array.from(Y[K]));L&&(u=u.concat(L))}else{L="";if(!this.JSC$19655_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("mk");this.JSC$19655_textDecoder_=
new TextDecoder}for(K=0;K<t;K++)L+=this.JSC$19655_textDecoder_.decode(Y[K],{stream:G==4&&K==t-1});u=this.JSC$19655_parser_.parse(L)}Y.splice(0,t);u&&this.dataHandler_(u)}catch(P){R7(this,5);nwb(this);break a}}else if(Q.length>this.JSC$19655_pos_){K=Q.slice(this.JSC$19655_pos_);this.JSC$19655_pos_=Q.length;try{var g=this.JSC$19655_parser_.parse(K);g!=null&&this.dataHandler_&&this.dataHandler_(g)}catch(P){R7(this,5);nwb(this);break a}}G==4?(Q.length!=0||this.hasStreamingResponseData_?R7(this,2):R7(this,
4),nwb(this)):R7(this,1)}}}catch(P){R7(this,6),nwb(this)}};var FPb=function(Y){Y=this.xhrReader_=Y;var G=(0,_.tP)(this.onData_,this);Y.dataHandler_=G;Y=this.xhrReader_;G=(0,_.tP)(this.onStatusChange_,this);Y.statusHandler_=G;this.JSC$19659_callbackMap_={};this.callbackOnceMap_={}};
_.H=FPb.prototype;_.H.on=function(Y,G){var u=this.JSC$19659_callbackMap_[Y];u||(u=[],this.JSC$19659_callbackMap_[Y]=u);u.push(G);return this};
_.H.addListener=function(Y,G){this.on(Y,G);return this};
_.H.removeListener=function(Y,G){var u=this.JSC$19659_callbackMap_[Y];u&&_.Nj(u,G);(Y=this.callbackOnceMap_[Y])&&_.Nj(Y,G);return this};
_.H.once=function(Y,G){var u=this.callbackOnceMap_[Y];u||(u=[],this.callbackOnceMap_[Y]=u);u.push(G);return this};
_.H.onData_=function(Y){var G=this.JSC$19659_callbackMap_.data;G&&pJx(Y,G);(G=this.callbackOnceMap_.data)&&pJx(Y,G);this.callbackOnceMap_.data=[]};
var pJx=function(Y,G){for(var u={},O=0;O<Y.length;u={message$jscomp$1008:void 0},O++)u.message$jscomp$1008=Y[O],G.forEach(function(Q){return function(M){try{M(Q.message$jscomp$1008)}catch(t){}}}(u))};
FPb.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:zzB(this,"readable");break;case 5:case 6:case 4:case 7:case 3:zzB(this,"error");break;case 8:zzB(this,"close");break;case 2:zzB(this,"end")}};
var zzB=function(Y,G){var u=Y.JSC$19659_callbackMap_[G];u&&u.forEach(function(O){try{O()}catch(Q){}});
(u=Y.callbackOnceMap_[G])&&u.forEach(function(O){O()});
Y.callbackOnceMap_[G]=[]};var mQy=function(){var Y={format:"jspb"};Y=Y===void 0?{}:Y;this.suppressCorsPreflight=Y.suppressCorsPreflight||_.So("suppressCorsPreflight",Y)||!1;this.withCredentials=Y.withCredentials||_.So("withCredentials",Y)||!1;this.streamInterceptors=Y.streamInterceptors||[];this.unaryInterceptors=Y.unaryInterceptors||[];this.workerScope=Y.workerScope;this.chunkedServerStreaming=Y.useFetchDownloadStreams||!1},xQw=function(Y,G,u,O,Q,M){M=M===void 0?{}:M;
var t=G.substring(0,G.length-Q.name.length),K,L=(K=M)==null?void 0:K.signal;return WPo(function(g){return new Promise(function(P,I){if(L==null?0:L.aborted){var k=new _.x5(1,"Aborted");k.cause=L.reason;I(k)}else{var n={},p=rwo(Y,g,t);p.on("error",function(W){return void I(W)});
p.on("metadata",function(W){n=W});
p.on("data",function(W){var C=n;C=C===void 0?{}:C;P(new AKb(W,C))});
L&&L.addEventListener("abort",function(){p.cancel();var W=new _.x5(1,"Aborted");W.cause=L.reason;I(W)})}})},Y.unaryInterceptors).call(Y,ocS(Q,u,O)).then(function(g){return g.responseMessage})},ffS=function(Y,G,u,O,Q,M){M=M===void 0?{}:M;
return xQw(Y,G,u,O,Q,M)};
mQy.prototype.serverStreaming=function(Y,G,u,O){var Q=this,M=Y.substring(0,Y.length-O.name.length);return CaS(function(t){var K=t.methodDescriptor,L=t.getMetadata(),g=ywy(Q,!1);L=ezw(Q,L,g,M+K.getName());var P=AwS(g,K.responseDeserializeFn,!0);t=K.requestSerializeFn(t.requestMessage);g.send(L,"POST",t);return P},this.streamInterceptors).call(this,ocS(O,G,u))};
var rwo=function(Y,G,u){var O=G.methodDescriptor,Q=G.getMetadata(),M=ywy(Y,!0);Y=ezw(Y,Q,M,u+O.getName());u=AwS(M,O.responseDeserializeFn,!1);Ewx(u,Q["X-Goog-Encode-Response-If-Executable"]==="base64");G=O.requestSerializeFn(G.requestMessage);M.send(Y,"POST",G);return u},ywy=function(Y,G){G=Y.chunkedServerStreaming&&!G;
return Y.workerScope||G?new _.CV(new KPw({worker:Y.workerScope,streamBinaryChunks:G})):new _.CV},ezw=function(Y,G,u,O){G["Content-Type"]="application/json+protobuf";
G["X-User-Agent"]="grpc-web-javascript/0.1";var Q=G.Authorization;if(Q&&cKj.has(Q.split(" ")[0])||Y.withCredentials)u.JSC$10117_withCredentials_=!0;if(Y.suppressCorsPreflight)O=XJB(O,"$httpHeaders",G);else for(Y=_.E(Object.keys(G)),Q=Y.next();!Q.done;Q=Y.next())Q=Q.value,u.headers.set(Q,G[Q]);return O},AwS=function(Y,G,u){if(u){u=new kGg(Y);
var O=new FPb(u)}return new YL9({xhr:Y,nodeReadableStream:O},G)},CaS=function(Y,G){return G.reduce(function(u,O){return function(Q){return O.intercept(Q,u)}},Y)},WPo=function(Y,G){return G.reduce(function(u,O){return function(Q){return O.intercept(Q,u)}},Y)};var ow9=function(Y){this.client_=new mQy;this.hostname_=Y==void 0?Y:Y.replace(/\/+$/,"")};
_.H=ow9.prototype;_.H.JSC$19677_depositGoogleCredential=function(Y,G,u){return ffS(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Y,G||{},ZM9,u)};
_.H.deleteLink=function(Y,G,u){return ffS(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Y,G||{},Rhj,u)};
_.H.JSC$19677_finishOAuth=function(Y,G,u){return ffS(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Y,G||{},dR9,u)};
_.H.getLink=function(Y,G,u){return ffS(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Y,G||{},bMb,u)};
_.H.startLinkingSession=function(Y,G,u){return ffS(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Y,G||{},sZN,u)};var ikb=[0,_.NP,1,Ago,[0,_.Ba,[0,_.Vd,-1]],[0,ec9],[0,_.UD,-1,[0,_.US]],[0,ec9]];var Rzw=function(){this.storage=new Map},Zkx=function(Y,G,u,O,Q){if(!Y.storage.has(G))return null;
Y=_.E(Y.storage.get(G));for(G=Y.next();!G.done;G=Y.next())if(G=G.value,!Q||G.linkName===Q)if(u&&G.scopes&&wJN(G.scopes,u)||O&&G.capabilities&&wJN(G.capabilities,O))return G;return null},DQj=function(Y,G,u){if(!u)Y.storage.delete(G);
else if(Y.storage.has(G)){var O=Y.storage.get(G).filter(function(Q){return Q.linkName!==u});
O.length>0?Y.storage.set(G,O):Y.storage.delete(G)}},wJN=function(Y,G){G=_.E(G);
for(var u=G.next();!u.done;u=G.next())if(!Y.has(u.value))return!1;return!0};var hz9=function(){var Y=_.DE("LINK_GAL_DOMAIN");this.alsDomain1p=_.DE("LINK_GAL_DOMAIN");this.alsDomain3p=Y;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},dQb=function(Y,G){Y.apiKey=G;
return Y};
hz9.prototype.build=function(){var Y={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("nk");Y.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("ok");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("pk");Y.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(Y.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)Y.apiKey=
this.apiKey,Y.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("qk");Y.oauthToken=this.oauthToken;Y.alsDomain=this.alsDomain3p}Y.clientXd3=this.clientXd3;Y.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(Y.authUser=this.authUser);this.bucket!==void 0&&(Y.bucket=this.bucket);this.completionUrl!==void 0&&(Y.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(Y.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(Y.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(Y.locale=this.locale);this.localStorage!==void 0&&(Y.localStorage=this.localStorage);Y.loggerType=this.loggerType;Y.clientEnvironment=this.clientEnvironment;Y.colorScheme=this.colorScheme;Y.showCloseOption=this.showCloseOption;return Y};var Ol=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Ol,_.Ps);var bkB=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(bkB,_.Ps);var SL9=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(SL9,_.Ps);var Mm=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Mm,_.Ps);var Nuo=function(Y){return _.mK(Y,1)};var j_S=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(j_S,_.Ps);var zmb=_.oh(j_S),Q3=[1,2,3,4,5];var kAb=function(Y){try{return zmb(Y)}catch(G){return null}},VDj=function(){},n3V=function(Y,G){switch(_.gQ(G,Q3)){case 4:return(G=_.fc(G,SL9,4,Q3))&&Y.logStateTransition(_.mK(G,1)),!0;
case 5:return(G=_.fc(G,bkB,5,Q3))&&Y.logInternalEvent(_.mK(G,1)),!0}return!1},m7o=function(Y){switch(Y){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.YV(Y)}};var P0x=function(Y,G){var u=this;this.validator=Y;this.messageListener=G;this.dismissCallback=function(){lfV(u,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19706_receiveMessage=function(O){O.type==="message"&&(O=O.event_,O!==null&&(new URL(u.iframe.src)).origin===O.origin&&u.validator(O.data,O.origin)&&!u.messageListener(O.data)&&(u.JSC$19706_resolveCb!==void 0&&u.JSC$19706_resolveCb(O.data),Bu9(u)))}},pmg=function(Y,G,u){Y.uiHandler!==void 0&&lfV(Y,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(O,Q){Y.JSC$19706_resolveCb=O;Y.JSC$19706_rejectCb=Q;Y.iframe=document.createElement("iframe");_.Er(Y.iframe,G);Y.uiHandler=u.displayContent(Y.iframe,Y.dismissCallback);_.yn(window,"message",Y.JSC$19706_receiveMessage,!1,Y)})},lfV=function(Y,G){Y.JSC$19706_rejectCb!==void 0&&Y.JSC$19706_rejectCb(G);
Bu9(Y)},Bu9=function(Y){Y.uiHandler!==void 0&&Y.uiHandler.hideContent();
_.F_(window,"message",Y.JSC$19706_receiveMessage,!1,Y);Y.JSC$19706_resolveCb=void 0;Y.JSC$19706_rejectCb=void 0;Y.uiHandler=void 0;Y.iframe=void 0};var $QN=function(Y){if(Y===2){var G;Y=((G=window)==null?0:G.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return Y},FwS=function(Y){Y=$QN(Y);
switch(Y){case 0:return"light";case 1:return"dark";default:_.YV(Y)}};var Ibx=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),qLw=function(Y,G){this.JSC$19718_linkingSession=Y;this.noticeConfig=G;this.displayInfoMap=new Map;var u=new Map;if(_.aG(this.JSC$19718_linkingSession,jZ9,7))for(Y=_.QH(this.JSC$19718_linkingSession,jZ9,7),Y=_.dX(Y,NxN,1,_.bd()),Y=_.E(Y),G=Y.next();!G.done;G=Y.next())G=G.value,u.set(_.mK(G,1),_.t1T(_.QH(G,_.LXA,3)));if(u.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){G=this.noticeConfig.enabledDataUsageNoticeUis;Y=G.has(0)?u.get(1):void 0;G=G.has(1)?u.get(2):void 0;u=Y!==void 0&&G!==void 0?u.get(3):void 0;var O=this.noticeConfig.nestedOrigins;var Q=new j_S;var M=new Ol;Q=_.wT(Q,2,Q3,M);M=new j_S;var t=new Ol;M=_.wT(M,3,Q3,t);t=[];Y!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:Y,lastEvent:Q,nestedOrigins:O}]),t.push({trustedUrl:Y,lastEvent:Q,nestedOrigins:O}));G!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:G,lastEvent:M,nestedOrigins:O}]),t.push({trustedUrl:G,lastEvent:M,nestedOrigins:O}));u!==void 0?this.displayInfoMap.set(3,[{trustedUrl:u,lastEvent:M,nestedOrigins:O}]):this.displayInfoMap.set(3,t)}};var s_V=function(Y){var G=new Rzw;this.galService=Y;this.galCache=G};
s_V.prototype.getLink=function(Y){var G=Y.serviceId;var u=Y.scopes;var O=Y.capabilities;var Q=Y.linkName;var M=this,t;return _.a(function(K){if(O!==void 0&&u!==void 0)throw Error("rk");t=Zkx(M.galCache,G,u,O,Q);return t!==null?K.return(t):K.return(M.galService.getLink({serviceId:G,sessionId:Math.floor(Math.random()*2147483648),scopes:u,capabilities:O,linkName:Q}).then(function(L){L=C0N(L);var g=M.galCache;g.storage.has(G)?g.storage.get(G).push(L):g.storage.set(G,[L]);return L}))})};
s_V.prototype.deleteLink=function(Y,G,u){var O=this;return _.a(function(Q){DQj(O.galCache,Y,u);return Q.return(O.galService.deleteLink({serviceId:Y,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:G,linkName:u}).then(function(){return!0}))})};var UQ9=function(Y,G){var u=this;this.validator=Y;this.msgHandler=G;this.closedPopupTimeout=this.JSC$19740_rejectCb=this.JSC$19740_resolveCb=this.popup=null;this.JSC$19740_receiveMessage=function(O){if(O!==null&&(O=O.event_,O.source===u.popup)){var Q=O.data;if(u.validator(Q,O.origin)){var M;(M=u.msgHandler)!=null&&M.call(u,Q)||(u.JSC$19740_resolveCb!==null&&u.JSC$19740_resolveCb(Q),cwb(u))}}}};
UQ9.prototype.open=function(Y,G){var u=this;this.popup!==null&&vwj(this);return new Promise(function(O,Q){u.JSC$19740_resolveCb=O;u.JSC$19740_rejectCb=Q;u.popup=_.Kb(window,Y,"",G);_.yn(window,"message",u.JSC$19740_receiveMessage,!1,u);Jw9(u)})};
var vwj=function(Y,G){Y.JSC$19740_rejectCb!==null&&Y.JSC$19740_rejectCb(G);cwb(Y)},cwb=function(Y){Y.closedPopupTimeout&&(Y.closedPopupTimeout.cancel(),Y.closedPopupTimeout=null);
Y.popup&&Y.popup.close();_.F_(window,"message",Y.JSC$19740_receiveMessage,!1,Y);Y.popup=null;Y.JSC$19740_resolveCb=null;Y.JSC$19740_rejectCb=null},Jw9=function(Y){Y.closedPopupTimeout=_.Q2U(100).then(function(){Y.popup?Y.popup.closed?Yh9(Y):Jw9(Y):vwj(Y,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},Yh9=function(Y){Y.closedPopupTimeout=_.Q2U(100).then(function(){vwj(Y,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var Gco=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),uux=function(Y,G,u,O,Q,M,t,K,L,g){var P=this;this.serviceId=Y;this.sessionId=G;this.galService=u;this.oauthDetails=O;this.galLogger=Q;this.interactionMode=M;this.redirectServiceUrl=t;this.consentLanguageKeys=K;this.dynamicUrlParameters=L;this.partnerConfigMinReadTimestamp=g;this.started=!1;this.JSC$19746_dataValidator=function(I,
k){var n=Gco.has(k);n||P.redirectServiceUrl===void 0||(n=P.redirectServiceUrl===k);return n?I.sentinel==="gdi":!1}};
uux.prototype.complete=function(){var Y=this,G;return _.a(function(u){if(Y.interactionMode!==1)return u.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));G=d7N.getRedirectStateFromUri();return G===null?u.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):u.return(Olj(Y,G))})};
uux.prototype.start=function(){var Y=this,G;return _.a(function(u){if(Y.started)return u.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.zy(Y.oauthDetails,1))return u.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(Y.interactionMode===1)return d7N.setLocation(_.zy(Y.oauthDetails,1)),u.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));Y.started=!0;Y.galLogger.logStateTransition(5);
G=d7N.getPostMessagePopup(Y.JSC$19746_dataValidator);return u.return(G.open(_.zy(Y.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(O){Y.started=!1;var Q=Y.galLogger;if((O==null?void 0:O.error)!==void 0)throw Q.logInternalEvent(59),Error("sk");if((O==null?void 0:O.redirect_state)===void 0)throw Q.logInternalEvent(131),Error("tk");return Olj(Y,O.redirect_state)}).catch(function(O){Y.started=
!1;
return O.errorCode!==void 0?{statusCode:O.errorCode,statusMessage:O.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var Olj=function(Y,G){return _.a(function(u){return u.return(Qrg(Y.galService,{serviceId:Y.serviceId,sessionId:Y.sessionId,dynamicUrlParameters:Y.dynamicUrlParameters,redirectState:G,consentLanguageKeys:Y.consentLanguageKeys,partnerConfigMinReadTimestamp:Y.partnerConfigMinReadTimestamp}).then(function(O){var Q={statusCode:1,link:C0N(O.getLink())};eTg(_.Lc(O,3))!==void 0&&(Q.callerState=eTg(_.Lc(O,3)));_.Bbt(O,4,DRb,yox).size>0&&(Q.redirectUriParams=new Map(Array.from(_.Bbt(O,4,DRb,yox).entries()).map(function(M){var t=
_.E(M);M=t.next().value;var K=t.next().value;t=[];var L=t.concat;K=_.Gn(K,1,_.AB,_.bd());return[M,L.call(t,_.c8(K))]})));
Y.galLogger.logInternalEvent(134);return Q}))})},d7N={getPostMessagePopup:function(Y){return new UQ9(Y)},
getRedirectStateFromUri:function(){var Y=_.bI(d7N.getLocation()).fragment_;return(new _.JE(Y)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(Y){_.w8U(window.location,_.cs(Y))},
createOAuthFlow:function(Y,G){return new uux(Y.serviceId,Y.sessionId,Y.galService,G,Y.galLogger,Y.interactionMode,Y.redirectServiceUrl,Y.consentLanguageKeys,Y.dynamicUrlParameters,Y.partnerConfigMinReadTimestamp)}};var MCx=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(MCx,_.Ps);var Hlo=_.oh(MCx);var ERy=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),tCg=function(Y,G,u,O,Q,M,t,K,L){var g=this;this.serviceId=Y;this.sessionId=G;this.galService=u;this.gsiWebFlowDetails=O;this.colorScheme=Q;this.showCloseOption=M;this.galLogger=t;this.interactionMode=K;this.redirectServiceUrl=L;this.started=!1;this.JSC$19759_dataValidator=function(P,I){var k=ERy.has(I);k||g.redirectServiceUrl===
void 0||(k=g.redirectServiceUrl===I);return k?P.sentinel==="gal":!1};
this.logEventProcessor=function(P){return P.result?(P=kAb(P.result))?n3V(g.galLogger,P):!1:!1}};
tCg.prototype.complete=function(){var Y=this,G,u;return _.a(function(O){if(Y.interactionMode!==1)return O.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));G=SbN.getRedirectStateFromUri();if(G===void 0)return Y.galLogger.JSC$19698_logErrorEvent(131),O.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return u=KDN(Y,G),O.return(a_9(Y,u))}catch(Q){return O.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
tCg.prototype.start=function(){var Y=this,G;return _.a(function(u){if(Y.started)return u.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.zy(Y.gsiWebFlowDetails,1))return u.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(Y.interactionMode===1)return SbN.setLocation(Tpx(Y,_.zy(Y.gsiWebFlowDetails,1))),u.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
Y.started=!0;G=SbN.getPostMessagePopup(Y.JSC$19759_dataValidator,Y.logEventProcessor);return u.return(G.open(Tpx(Y,_.zy(Y.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(O){Y.started=!1;if((O==null?void 0:O.result)===void 0)throw Y.galLogger.JSC$19698_logErrorEvent(131),Error("tk");O=KDN(Y,O.result);return a_9(Y,O)}).catch(function(O){Y.started=!1;
return O.errorCode!==void 0?{statusCode:O.errorCode,statusMessage:O.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Tpx=function(Y,G){Y=["result_channel",Y.interactionMode===1?"2":"1","color_scheme",FwS(Y.colorScheme),"show_close_option",Y.showCloseOption];return RTg(G,Y)},a_9=function(Y,G){if(G!==null&&_.aG(G,Mm,2)){var u,O=G==null?void 0:(u=_.QH(G,Mm,2))==null?void 0:_.mK(u,2);
O&&Y.galLogger.JSC$19698_logErrorEvent(m7o(O));return Nuo(_.QH(G,Mm,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 Y.galService.getLink({serviceId:Y.serviceId,sessionId:Y.sessionId,consistencyKey:_.zy(G,1)}).then(function(Q){Q=C0N(Q);Y.galLogger.logInternalEvent(134);return{statusCode:1,link:Q}})},KDN=function(Y,G){G=Hlo(G);
if(!_.aG(G,Mm,2)&&_.zy(G,1)==="")throw Y.galLogger.JSC$19698_logErrorEvent(5),Error("uk");return G},SbN={getPostMessagePopup:function(Y,G){return new UQ9(Y,G)},
getRedirectStateFromUri:function(){return _.SG(_.bI(SbN.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(Y){_.w8U(window.location,_.cs(Y))},
createStreamlinedFlow:function(Y,G){return new tCg(Y.serviceId,Y.sessionId,Y.galService,G,Y.colorScheme,Y.showCloseOption,Y.galLogger,Y.interactionMode,Y.redirectServiceUrl)}};var $79=function(Y){this.storage=(Y=Y?_.xg("GAL"):_.WZA("GAL"))?new _.kg(Y):null};
$79.prototype.getSession=function(Y){if(this.storage!==null)try{var G=this.storage.get("SAVED_SESSION");if(G===void 0)return null;if(G.serviceId===Y)return G}catch(u){}return null};var LDb=function(){};
_.m(LDb,VDj);LDb.prototype.logStateTransition=function(){};
LDb.prototype.logInternalEvent=function(){};
LDb.prototype.JSC$19698_logErrorEvent=function(){};var gRx=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(gRx,_.Ps);gRx.prototype.getCompletionUrl=function(){return _.zy(this,15)};var wr=function(Y,G,u,O,Q,M){this.serviceId=Y;this.environment=G;this.sessionId=u;this.colorSchemeSelected=O;this.colorThemeDisplayed=Q;this.JSC$19772_transport=M;this.currentState=1};
_.m(wr,VDj);wr.prototype.logStateTransition=function(Y){var G=XqV(this);G=_.MC(G,3,this.currentState);G=_.MC(G,1,Y);this.currentState=Y;Y=zWN(1);this.dispatch(G,Y)};
wr.prototype.logInternalEvent=function(Y){Y=zWN(Y);this.dispatch(XqV(this),Y)};
wr.prototype.JSC$19698_logErrorEvent=function(Y){var G=XqV(this);G=_.MC(G,1,10);Y=zWN(Y);this.dispatch(G,Y)};
var XqV=function(Y){var G=new gRx;G=_.MC(G,1,Y.currentState);G=_.E_(G,7,Y.serviceId);var u,O;var Q=((u=window)==null?0:(O=u.location)==null?0:O.href)?_.bI(window.location.href).JSC$10357_domain_:"NO_PACKAGE_NAME";u=_.E_(G,8,Q);u=_.MC(u,6,Y.environment);u=_.E_(u,5,"100");u=_.MC(u,11,Y.colorSchemeSelected);return _.MC(u,12,Y.colorThemeDisplayed)};
wr.prototype.dispatch=function(Y,G){G===void 0&&(G=new _.ER);var u=G;Y=Y.serialize();u=_.E_(u,8,Y);_.F3(u,12,this.sessionId);this.JSC$19772_transport.dispatch(G)};var PfV=function(Y,G){this.loggerType=Y;this.sessionIndex=G!=null?G:0},I_w;
PfV.prototype.create=function(Y,G,u,O,Q){switch(this.loggerType){case 0:return new LDb;case 1:return I_w||(I_w=(new _.U_(555,this.sessionIndex.toString())).build()),new wr(Y,G,u,O,Q,I_w);default:_.YV(this.loggerType,"unknown logger type")}};var NGw=[6,2,3,1],Jhb=new Map([[4,1],[1,6],[2,2],[3,3]]),o3x={statusCode:7,statusMessage:"Failed to create flow object"},lby=function(Y,G,u,O,Q,M,t,K,L,g){this.serviceId=Y;this.sessionId=G;this.config=u;this.galService=O;this.JSC$19779_linkingSession=Q;this.googleScopes=M;this.callerState=t;this.consentLanguageKeys=K;this.dynamicUrlParameters=L;this.partnerConfigMinReadTimestamp=g;this.currentFlow=0;O=this.JSC$19779_linkingSession;Q=new Set;_.aG(O,hmy,1)&&Q.add(1);_.aG(O,lhb,2)&&_.aG(O,bBN,6)&&Q.add(2);
_.aG(O,Vt9,3)&&_.aG(O,bBN,6)&&Q.add(3);_.aG(O,SEw,4)&&Q.add(6);this.supportedFlows=Q;O=u.loggerType;Q=u.clientEnvironment;a:{M=u.colorScheme;switch(M){case 0:M=1;break a;case 1:M=2;break a;case 2:M=3;break a;default:_.YV(M)}M=void 0}a:{t=u.colorScheme;t=$QN(t);switch(t){case 0:t=1;break a;case 1:t=2;break a;default:_.YV(t)}t=void 0}this.galLogger=(new PfV(O,u.authUser)).create(Y,Q,G,M,t)},FDx=function(Y){return new Promise(function(G){var u,O,Q,M,t,K,L,g,P,I;
return _.a(function(k){switch(k.nextAddress){case 1:u=j$N(Y.currentFlow,Y.supportedFlows),O=!1,Q=new qLw(Y.JSC$19779_linkingSession,Y.config.dataUsageNoticeConfig);case 2:if(u===void 0){k.jumpTo(4);break}_.i3(k,5);var n=Q,p=u,W=void 0;O?p===1&&(W=n.displayInfoMap.get(2)):p===2||p===3?W=n.displayInfoMap.get(1):p===1&&(W=n.displayInfoMap.get(3));M=W?W:[];t=Y.consentLanguageKeys;K=_.E(M);L=K.next();case 7:if(L.done)return Y.currentFlow=u,k.yield(Rm9(kcg(Y,t)),11);g=L.value;return k.yield(WwN(g,Y.config.dataUsageNoticeConfig.uiAdapter,
Y.config.colorScheme,Y.galLogger),10);case 10:P=k.yieldResult;if(P.statusCode!==1)return nRx(Y),G(wmb({statusCode:P.statusCode,statusMessage:P.statusMessage},Y.callerState)),k.return();P.consentLanguageKeys!==void 0&&(t=P.consentLanguageKeys);L=K.next();k.jumpTo(7);break;case 11:I=k.yieldResult;if(I.statusCode!==10)return I.statusCode!==6&&nRx(Y),I.statusCode!==1&&Y.callerState!==void 0&&(I.callerState=Y.callerState),G(I),k.return();_.j1(k,6);break;case 5:_.b3(k);case 6:u=j$N(Y.currentFlow,Y.supportedFlows);
O=!0;k.jumpTo(2);break;case 4:nRx(Y),G(wmb({statusCode:12,statusMessage:"Linking failed"},Y.callerState)),_.Sd(k)}})})},nRx=function(Y){qbo(Y.serviceId,Y.config.localStorage);
Y.currentFlow=0},U7y=function(Y,G,u){Y.currentFlow=G;
return ZB9(kcg(Y,u)).then(function(O){return O.statusCode===10&&Y.config.interactionMode===1&&j$N(Y.currentFlow,Y.supportedFlows)!==void 0?FDx(Y):O})},kcg=function(Y,G){return{flowParams:{serviceId:Y.serviceId,
sessionId:Y.sessionId,galService:Y.galService,galLogger:Y.galLogger,interactionMode:Y.config.interactionMode,redirectServiceUrl:Y.config.redirectServiceUrl,colorScheme:Y.config.colorScheme,consentLanguageKeys:G,dynamicUrlParameters:Y.dynamicUrlParameters,showCloseOption:Y.config.showCloseOption,partnerConfigMinReadTimestamp:Y.partnerConfigMinReadTimestamp},currentFlow:Y.currentFlow,config:Y.config,session:Y.JSC$19779_linkingSession,googleScopes:Y.googleScopes,callerState:Y.callerState}};var GOx=function(Y,G){this.config=Y;this.galService=G.getService();this.JSC$19792_galRepository=G.JSC$19810_galRepository};
GOx.prototype.getLink=function(Y,G){return pqx(this,Y,G)};
var pqx=function(Y,G,u){return Y.JSC$19792_galRepository.getLink({serviceId:G,scopes:void 0,capabilities:void 0,linkName:u}).then(function(O){return{statusCode:1,link:O}}).catch(function(O){return{statusCode:Yxb(O.code),
statusMessage:O.message}})};
GOx.prototype.deleteLink=function(Y,G){return this.JSC$19792_galRepository.deleteLink(Y,this.config.accountLinkingEntryPoint,G).then(function(){return{statusCode:1}}).catch(function(u){return{statusCode:Yxb(u.code),
statusMessage:u.message}})};
GOx.prototype.startLinkingSession=function(Y){var G=Y.serviceId;var u=Y.sessionId;return BGj({serviceId:G,sessionId:u!==void 0?u:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:Y.loginHint,callerState:Y.callerState,consentLanguageKeys:Y.consentLanguageKeys,linkName:Y.linkName,dynamicUrlParameters:Y.dynamicUrlParameters,partnerConfigMinReadTimestamp:Y.partnerConfigMinReadTimestamp})};var Zo=function(Y,G,u,O,Q,M,t){this.apiKey=G;this.authUser=u;this.oauthToken=O;this.bucket=Q;this.locale=M;this.galSdkEventHandler=t;if(O===void 0){if(G===void 0)throw Error("vk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new ow9(Y)};
Zo.prototype.deleteLink=function(Y){var G=Y.serviceId;var u=Y.sessionId;var O=Y.accountLinkingEntryPoint;var Q=Y.linkName;var M=this,t;return _.a(function(K){var L=(new yX).setHeader(M.getHeader(u));var g=zkS({serviceId:G,linkName:Q});L=_.Rh(L,2,g);t=_.yd(L,3,O);return K.return(M.makeRequest(M.galServiceClient.deleteLink,t,[1,3],[2,4]))})};
var Qrg=function(Y,G){var u=G.serviceId;var O=G.sessionId;var Q=G.dynamicUrlParameters;var M=G.redirectState;var t=G.consentLanguageKeys;var K=G.partnerConfigMinReadTimestamp;var L;return _.a(function(g){var P=(new Au).setHeader(Y.getHeader(O,Q));P=_.DL(P,2,u);L=_.DL(P,4,M);t!==void 0&&_.DL(L,5,t);K!==void 0&&_.Rh(L,6,K);return g.return(Y.makeRequest(Y.galServiceClient.JSC$19677_finishOAuth,L,[1,3],[2,4]))})};
Zo.prototype.getLink=function(Y){var G=Y.serviceId;var u=Y.sessionId;var O=Y.scopes;var Q=Y.capabilities;var M=Y.consistencyKey;var t=Y.linkName;var K=this,L;return _.a(function(g){var P=(new o7).setHeader(K.getHeader(u)),I=zkS({serviceId:G,scopes:O,capabilities:Q,linkName:t});L=_.Rh(P,2,I);M!==void 0&&(P=fhb(),P=_.DL(P,2,M),_.Rh(L,3,P));return g.return(K.makeRequest(K.galServiceClient.getLink,L,[1,3],[2,4]))})};
var D79=function(Y,G){var u=G.serviceId;var O=G.sessionId;var Q=G.googleScopes;var M=G.consistencyKey;var t;return _.a(function(K){var L=(new eU).setHeader(Y.getHeader(O));L=_.DL(L,2,u);var g=Array.from(Q.values());L=_.QG(L,3,g,_.Cx);g=fhb();g=_.DL(g,2,M);t=_.Rh(L,4,g);return K.return(Y.makeRequest(Y.galServiceClient.JSC$19677_depositGoogleCredential,t,[1,3],[2,4]))})};
Zo.prototype.startLinkingSession=function(Y){var G=Y.serviceId;var u=Y.sessionId;var O=Y.scopes;var Q=Y.capabilities;var M=Y.loginHint;var t=Y.supportedFlows;var K=Y.completionUrl;var L=Y.usePingPong;var g=Y.twoWayLinking;var P=Y.accountLinkingEntryPoint;var I=Y.callerState;var k=Y.consentLanguageKeys;var n=Y.googleScopes;var p=Y.dataUsageNoticeConfig;var W=Y.linkName;var C=Y.dynamicUrlParameters;var e=Y.partnerConfigMinReadTimestamp;var w=this,B,N;return _.a(function(h){if(Q!==void 0&&O!==void 0)throw Error("rk");
var q=(new qEN).setHeader(w.getHeader(u,C));B=_.DL(q,2,G);W!==void 0&&_.DL(B,14,W);if(Q!==void 0){q=B;var U=Array.from(Q.values());_.QG(q,5,U,_.Cx)}else O!==void 0&&(q=B,U=Array.from(O.values()),_.QG(q,3,U,_.Cx));K!==void 0&&_.DL(B,6,K);L!==void 0&&_.P$(B,15,L);t!==void 0&&(q=B,U=Array.from(t.values()),_.QG(q,4,U,_.Kx));if(g!==void 0){if(g&&(!n||n.size===0))throw Error("wk");_.P$(B,8,g)}P!==void 0&&_.yd(B,9,P);M!==void 0&&_.DL(B,13,M);I!==void 0&&(q=B,U=(new TextEncoder).encode(I),_.Hs(q,12,_.RX(U,
!1),_.i_()));k!==void 0&&_.DL(B,16,k);e!==void 0&&_.Rh(B,18,e);if(p!==void 0&&p.size>0||n!==void 0&&n.size>0)N=new $RB,n!==void 0&&n.size>0&&(q=N,U=Array.from(n.values()),_.QG(q,1,U,_.Cx)),p!==void 0&&(p.has(0)&&_.JB1(N,2,_.Kx,1,_.ao),p.has(1)&&_.JB1(N,2,_.Kx,2,_.ao)),_.Rh(B,17,N);return h.return(w.makeRequest(w.galServiceClient.startLinkingSession,B,[1],[2]))})};
Zo.prototype.getMetadata=function(){var Y=this,G,u;return _.a(function(O){G={};Y.useFpa?(G["X-Goog-Api-Key"]=Y.apiKey,G["X-Goog-AuthUser"]=Y.authUser!==void 0?Y.authUser.toString():"0",(u=_.qxt([]))&&(G.Authorization=u)):G.Authorization="Bearer "+Y.oauthToken;Y.locale&&(G["accept-language"]=Y.locale);return O.return(G)})};
Zo.prototype.makeRequest=function(Y,G,u,O){var Q=this,M;return _.a(function(t){if(t.nextAddress==1)return t.yield(Q.getMetadata(),2);M=t.yieldResult;mEw(Q,u);return t.return(Y.bind(Q.galServiceClient)(G,M).finally(function(){mEw(Q,O)}))})};
var mEw=function(Y,G){Y.galSdkEventHandler!==void 0&&G.forEach(function(u){Y.galSdkEventHandler.onEvent(u)})};
Zo.prototype.getHeader=function(Y,G){var u=new xj;Y=_.Hs(u,2,_.Tx(Y),0);Y=_.yd(Y,5,3);G=_.QG(Y,8,G,_.Cx);this.bucket!==void 0&&_.DL(G,1,this.bucket);return G};
var zkS=function(Y){var G=Y.serviceId;var u=Y.scopes;var O=Y.capabilities;Y=Y.linkName;if(O!==void 0&&u!==void 0)throw Error("rk");var Q=new rKb;G=_.DL(Q,1,G);O!==void 0?(u=Array.from(O.values()),_.QG(G,5,u,_.Cx)):u!==void 0&&(u=Array.from(u.values()),_.QG(G,3,u,_.Cx));Y!==void 0&&_.DL(G,6,Y);return G};var ufj=function(Y){this.galService=new Zo(Y.alsDomain,Y.apiKey,Y.authUser,Y.oauthToken,Y.bucket,Y.locale,Y.galSdkEventHandler);this.JSC$19810_galRepository=new s_V(this.galService)};
ufj.prototype.getService=function(){return this.galService};var WDo=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(WDo,_.Ps);var rMN=function(Y){var G=new WDo;return _.MC(G,1,Y)};
WDo.prototype.setErrorMessage=function(Y){return _.E_(this,2,Y)};var xEw=[0,_.ca,_.j5,_.ca];var Do=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Do,_.Ps);var f_N=[0,[1,2,3],_.$U,[0,_.QAR,ygw,-1],_.$U,[0,CDb,-1],_.lO];var CfN=[0,_.bO,1,_.ca,_.j5,-1,1,_.qP,_.DB,_.ca,-1,f_N];var yMy=[0,_.ca,[0,_.qP,_.DB,[0,_.j5]],_.S5,[0,_.ca,-1]];var gr=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(gr,_.Ps);var ekx=[0,_.j5,_.ca,-2,_.bO,_.ca,_.bO,_.ca,-2,1,_.S5];var AMN=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(AMN,_.Ps);var oRx=[0,_.bO];var ilB=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(ilB,_.Ps);var Rkb=[0,_.ca,yMy,oRx,ekx,CfN];var cEb=_.yG(ilB,Rkb);var wqN=[0,ikb];var Oax=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Oax,_.Ps);var ZlB=[0,[1,3],opS,_.ca,opS];var udb=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(udb,_.Ps);var DEN=[0,_.ca];var hkV=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(hkV,_.Ps);var QPy=function(Y){return _.fc(Y,WDo,2,LC)},dEV=function(Y){var G=new hkV;
return _.wT(G,2,LC,Y)},LC=[1,
2];var blb=[0,LC,_.$U,DEN,_.$U,xEw,_.Ba,ZlB,1,_.ca,wqN];var ShS=[0,1,[0,[1,2,3],_.$U,[0],_.$U,[0,Z3B],_.$U,[0,ikb]]];var Np9=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(Np9,_.Ps);var VCV=function(Y){var G=new Np9;return _.wT(G,3,jrV,Y)},jrV=[2,
3];var l_b=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(l_b,_.Ps);var Bpx=function(Y,G){return _.Rh(Y,2,G)},$Ex=function(Y,G){return _.Rh(Y,8,G)},qhy=function(Y,G){return _.Rh(Y,3,G)};var srV=[0,_.ca,blb,Rkb,_.vG,[0,[5,6,7],[0,_.ca,-2],[0,_.bO,_.ca,_.j5],[0,f_N],[0,_.j5,_.ca,-1,_.US,_.ca],_.$U,[0,[0,_.bO],_.ca,-1],_.$U,[0,[3,4],_.ca,-1,_.$U,[0,[0,_.ca,_.S5]],_.$U,[0,[0,[0,[1,2,3],_.$U,[0],_.$U,[0],_.$U,[0]]]]],_.$U,[0,_.ca]],_.vG,-1,[0,jrV,_.ca,_.$U,DEN,_.$U,xEw,_.Ba,ZlB,[0,ikb],ShS]];var cMN=_.yG(l_b,srV),UEw=_.Az(srV);var vRw=function(){_.Ey.call(this)};
_.m(vRw,_.Ey);vRw.prototype.init=function(){};
new vRw;_.$M();var JMV=_.hV(["data-"]),Y2y=_.hV(["aria-"]),Gk9=_.hV(["aria-"]),hu=function(Y,G){this.isLatencyMeasurementExperiment=Y===void 0?!1:Y;this.enableDialogA11yFix=G===void 0?!1:G;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.cXU(_.OI.location.href)},v59=function(Y,G){Y.onConsentPrimitiveShownCallback=G},ukg=function(Y,G){return Y.overriddenIframeLoadTimeout?Y.overriddenIframeLoadTimeout:G!==void 0?G:5E3},Y9y=function(Y){if(Y.prewarmPromise!==void 0)return Y.prewarmPromise;
Y.prewarmPromise=new Promise(function(G,u){dr(Y,1);OI9(Y,Q8N(Y,!0),MO9(Y));Y.iframe?Y.prewarmChannel||HIy(Y,Y.iframe,G):u(Error("xk"))});
Y.prewarmPromise.finally(function(){Y.prewarmPromise=void 0});
return Y.prewarmPromise};
hu.prototype.showPrimitive=function(){var Y=this;if(this.consentPromise!==void 0)return this.consentPromise;var G=Date.now();EYN(this,G);this.consentPromise=new Promise(function(u,O){dr(Y,0,G);var Q=Y.isDarkTheme();Y.isLatencyMeasurementExperiment||Y.initialLoadingStrategy===1||Y.initialLoadingStrategy===2||(Y.loadingBar||(Y.loadingBar=HDg(getComputedStyle(document.body).direction==="rtl",Q),Y.loadingBar.style.position="fixed",Y.loadingBar.style.zIndex="15000"),document.body.appendChild(Y.loadingBar));
OI9(Y,Q8N(Y),MO9(Y));Y.iframe?Y.channel||tOb(Y,Y.iframe,u,O):(K9b(Y),O(Error("xk")))});
this.consentPromise.finally(function(){Y.consentPromise=void 0});
return this.consentPromise};
var tOb=function(Y,G,u,O){var Q,M;_.a(function(t){switch(t.nextAddress){case 1:dr(Y,3);Q=!1;setTimeout(function(){if(!Q){K9b(Y);aAw(Y);T8g(Y);var K=rMN(7).setErrorMessage("Timeout connecting to iframe");u($Ex(Bpx(new l_b,dEV(K)),VCV(K)))}},ukg(Y,L9N(Y)));
if(!Y.prewarmPromise){t.jumpTo(2);break}_.i3(t,3);return t.yield(Y.prewarmPromise,5);case 5:_.j1(t,2);break;case 3:_.b3(t),M=rMN(4).setErrorMessage("Error while prewarming."),u($Ex(Bpx(new l_b,dEV(M)),VCV(M)));case 2:Y.prewarmChannel&&Y.prewarmChannel.send(UEw(qhy(new l_b,Y.consentPrimitiveRequest))),Y.channel=_.YS({destination:Y.win,iframe:G,origin:gYb(Y),channelName:"cpw",onEstablished:function(){Q=!0;K9b(Y);Y.isLatencyMeasurementExperiment||(Y.JSC$19839_previousBodyOverflow=document.body.style.overflow,
Y.JSC$19839_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,Y.JSC$19839_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",Y.enableDialogA11yFix&&window.addEventListener("blur",Y.focusChangeListener));var K=Y.iframe;K.style.bottom="0";K.style.position="fixed";K.style.right="0";K.style.border="none";K.style.left="0";K.style.top=
"0";K.style.zIndex="5000";K.style.pointerEvents="";K.style.visibility="";Y.initialLoadingStrategy===2||Y.initialLoadingStrategy===3?dr(Y,4):dr(Y,6);var L;(L=Y.onConsentPrimitiveShownCallback)==null||L.call(Y)},
onMessage:function(K){K=cMN(K.data);switch(_.mK(K,1)){case 1:aAw(Y);var L=Eo9(_.QH(K,_.mz,7));L&&(Y.initialLoadingStrategy!==2&&Y.initialLoadingStrategy!==3||dr(Y,6,L),dr(Y,5,L));if(L=Eo9(_.QH(K,_.mz,6)))dr(Y,7,L),dr(Y,8);var g,P;((g=_.QH(K,hkV,2))==null?void 0:_.gQ(g,LC))!==0&&((P=_.QH(K,Np9,8))==null?void 0:_.gQ(P,jrV))!==0||O(Error("yk"));u(K);break;case 2:T8g(Y)}}}),_.Sd(t)}})},HIy=function(Y,G,u){Y.prewarmChannel=_.YS({destination:Y.win,
iframe:G,origin:gYb(Y),channelName:"pwcp",onEstablished:function(){dr(Y,2);u()}})},gYb=function(Y){var G=_.bs(Y.src).toString();
return G&&G.indexOf("://")<0&&G.indexOf("//")!==0?Y.origin:_.cXU(G)},Q8N=function(Y,G){G=G===void 0?!1:G;
var u,O=new Map([["origin",Y.origin],["hl",(u=XZN(Y))!=null?u:null]]);G&&O.set("pw","1");G=_.E([["cpr",Y.consentPrimitiveRequest.serialize()]]);for(u=G.next();!u.done;u=G.next()){var Q=_.E(u.value);u=Q.next().value;Q=Q.next().value;O.set(u,Q)}Y.isDarkTheme()&&O.set("color_scheme","dark");return _.CO(Y.src,O)},K9b=function(Y){Y.isLatencyMeasurementExperiment||Y.loadingBar&&document.body.removeChild(Y.loadingBar)};
hu.prototype.getSrc=function(){var Y=_.l7(this.origin),G;var u=(G=_.QH(this.consentPrimitiveRequest,AMN,3))==null?void 0:_.Sh(G,1);G="consent.google.com";u=u?"/u/"+encodeURIComponent(u.toString()):"";(Y==null?0:Y.endsWith("youtube.com"))?G="consent.youtube.com":(Y=Y==null?void 0:Y.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(G="consent.google."+((Y[1]?"co.":"")+encodeURIComponent(Y[2])));return _.dT("https://"+G+"/signedin"+u+"/landing")};
var OI9=function(Y,G,u){Y.iframe||(Y.iframe=document.createElement("iframe"),Y.iframe.style.width="100%",Y.iframe.style.height="100%",u!==112496729&&(Y.iframe.style.colorScheme="auto"),Y.isLatencyMeasurementExperiment&&(Y.iframe.style.display="none"),_.Er(Y.iframe,G),Y.iframe.setAttribute("jsname","C5o1O"),PEx(Y.iframe),document.body.appendChild(Y.iframe))},PEx=function(Y){Y.style.bottom="-200vh";
Y.style.position="fixed";Y.style.right="-200vw";Y.style.border="";Y.style.left="";Y.style.top="";Y.style.zIndex="";Y.style.pointerEvents="none";Y.style.visibility="hidden"},aAw=function(Y){Y.iframe&&(Y.isLatencyMeasurementExperiment||(Y.JSC$19839_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=Y.JSC$19839_previousHtmlOverscroll),Y.JSC$19839_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=Y.JSC$19839_previousBodyOverscroll),Y.JSC$19839_previousBodyOverflow!==
void 0&&(document.body.style.overflow=Y.JSC$19839_previousBodyOverflow),Y.enableDialogA11yFix&&IAg(Y,!1)),PEx(Y.iframe))};
hu.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(IAg(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var IAg=function(Y,G){var u,O,Q=(u=Y.iframe)==null?void 0:(O=u.parentElement)==null?void 0:O.children;if(Q)for(u=0;u<Q.length;u++)O=Q[u],O!==Y.iframe&&(G?(O.hasAttribute("aria-hidden")&&_.k6([_.rg(JMV)],O,"data-old-aria-hidden",O.getAttribute("aria-hidden")),_.k6([_.rg(Y2y)],O,"aria-hidden","true")):(O.removeAttribute("aria-hidden"),O.hasAttribute("data-old-aria-hidden")&&(_.k6([_.rg(Gk9)],O,"aria-hidden",O.getAttribute("data-old-aria-hidden")),O.removeAttribute("data-old-aria-hidden"))))},dr=function(Y,
G,u){var O;
(O=Y.latencyCallback)==null||O.call(Y,{latencyType:G,timestampEpochMillis:u!=null?u:Date.now()})};var kkw=function(Y,G,u){hu.call(this,G,u===void 0?!1:u);this.consentPrimitiveRequest=Y;Y=XZN(this);_.tRg(Y);this.src=this.getSrc();var O;this.initialLoadingStrategy=(O=_.QH(this.consentPrimitiveRequest,gr,4))==null?void 0:_.mK(O,4)},nYo;
_.m(kkw,hu);var UOB=function(Y){Y={request:Y,enableDialogA11yFix:!0};nYo||(nYo=new kkw(Y.request,Y.isLatencyMeasurementExperiment||_.mK(Y.request,1)===2,Y.enableDialogA11yFix));return nYo},XZN=function(Y){var G;
return(G=_.QH(Y.consentPrimitiveRequest,gr,4))==null?void 0:_.zy(G,1)},EYN=function(Y,G){if(!_.aG(Y.consentPrimitiveRequest,Do,5)){var u=Y.consentPrimitiveRequest,O=new Do;
_.Rh(u,5,O)}var Q;if((Q=_.QH(Y.consentPrimitiveRequest,Do,5))==null||_.Psl(Q,8)==null){var M;(M=_.QH(Y.consentPrimitiveRequest,Do,5))!=null&&_.F3(M,8,G)}},MO9=function(Y){var G;
return(G=_.QH(Y.consentPrimitiveRequest,Do,5))==null?void 0:_.Sh(G,1)};
kkw.prototype.isDarkTheme=function(){var Y;return((Y=_.QH(this.consentPrimitiveRequest,gr,4))==null?void 0:_.mK(Y,2))===2};
var L9N=function(Y){var G;return((G=_.QH(Y.consentPrimitiveRequest,gr,4))==null?void 0:_.Sh(G,5))||void 0},T8g=function(Y){Y.channel=void 0;
Y.prewarmChannel=void 0;Y.iframe&&(document.body.contains(Y.iframe)&&document.body.removeChild(Y.iframe),Y.iframe=void 0);nYo=void 0},GMx=function(Y){return hu.prototype.showPrimitive.call(Y).then(function(G){return _.QH(G,hkV,2)})};for(var bX={},F9S=(bX[64]="ma",bX[73]="ogb",bX[89]="cr",bX[21]="test",bX[0]="unkn",bX[137]="con",bX[155]="hl",bX[78]="yt",bX[171]="lp",bX[172]="ap",bX[177]="amo",bX[178]="pqe",bX[74]="gg",bX[1]="gm",bX[140]="am",bX[193]="sc",bX),pZw=_.E(Object.keys(F9S)),z9g=pZw.next();!z9g.done;z9g=pZw.next());var myj=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(myj,_.Ps);var W9b=[0,[2,3,4],_.ca,fcx,opS,_.lO];var rCy=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(rCy,_.Ps);var xyo=_.yG(rCy,[0,_.UD,_.j5,_.ca,_.j5,_.ca,W9b]);var fAx=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(fAx,_.Ps);fAx.prototype.getCommand=function(){return _.mK(this,1)};
var CEj=function(){var Y=new fAx;return _.yd(Y,1,0)};var yCg=_.Az([0,_.UD,_.j5,[0,_.ca,_.j5,-1]]);var e9x=new _.Pp("s"),ACS=new _.Pp("t"),oYj=new _.Pp("u"),iIx=new _.Pp("v"),R9x=function(Y,G,u){_.lI.call(this,e9x);this.mediaKey=Y;this.photoUrl=G;this.photoSource=u};
_.m(R9x,_.lI);var wZo=function(){_.lI.call(this,ACS)};
_.m(wZo,_.lI);var ZIb=function(Y){Y=Y===void 0?!1:Y;_.lI.call(this,oYj);this.isError=Y};
_.m(ZIb,_.lI);var DyB=function(){_.lI.call(this,iIx)};
_.m(DyB,_.lI);var h9V=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,N8b=function(Y){if(typeof Y=="string"){if(Y.charAt(0)==".")return dy9(Y.substr(1));if(Y.charAt(0)=="["){var G=h9V.exec(Y);Y=Y.indexOf("=")==-1?void 0:G[3];return bIS(G[1],Y)}return S2x(Y)}return Y},dy9=function(Y){return function(G){return G.getAttribute&&_.SI(G,Y)}},bIS=function(Y,G){return function(u){return G!==void 0?u.getAttribute&&u.getAttribute(Y)==G:u.hasAttribute&&u.hasAttribute(Y)}},S2x=function(Y){Y=Y.toUpperCase();
return function(G){return(G=G.tagName)&&G.toUpperCase()==Y}},j8V=function(){return!0};var SU=function(Y,G){this.JSC$19867_key_=Y;this.JSC$19867_value_=G},VOb=function(Y){throw Error("zk`"+Y.JSC$19867_key_);
},lAx=function(Y,G){return new TypeError("Ak`"+G+"`"+Y.JSC$19867_key_+"`"+Y.JSC$19867_value_+"`"+typeof Y.JSC$19867_value_)};
SU.prototype.string=function(Y){return arguments.length==0?B89(this):$yy(this,Y)};
var $yy=function(Y,G){var u;return(u=q2o(Y))!=null?u:G},B89=function(Y){var G=q2o(Y);
G===null&&VOb(Y);return G},q2o=function(Y){var G=Y.JSC$19867_value_;
if(G==null)return null;if(typeof G==="string")return G;throw lAx(Y,"string");};
SU.prototype.bool=function(Y){if(arguments.length==0){var G=this.optionalBool();G===null&&VOb(this)}else{var u;G=(u=this.optionalBool())!=null?u:Y}return G};
SU.prototype.optionalBool=function(){var Y=this.JSC$19867_value_;if(Y==null)return null;if(typeof Y==="boolean")return Y;if(typeof Y==="string"){Y=Y.toLowerCase();if(Y==="true"||Y==="1")return!0;if(Y==="false"||Y==="0")return!1}throw lAx(this,"boolean");};
SU.prototype.number=function(Y){if(arguments.length==0){var G=s8b(this);G===null&&VOb(this)}else G=cCy(this,Y);return G};
var cCy=function(Y,G){var u;return(u=s8b(Y))!=null?u:G},s8b=function(Y){var G=Y.JSC$19867_value_;
if(G==null)return null;if(typeof G==="number")return G;if(typeof G==="string"){var u=Number(G);if(!isNaN(u)&&(u!==0||G.trim().length!==0))return u}throw lAx(Y,"number");};
SU.prototype.toString=function(){return B89(this)};
SU.prototype.enum=function(Y,G){var u=!0,O=void 0,Q;for(Q in Y){var M=Y[Q];u&&(u=!1,O=typeof M==="number"?cCy(this,G):$yy(this,G));if(M==O)return O}JSON.stringify(Y);return O};
SU.prototype.array=function(Y){if(arguments.length==0){var G=Uyx(this);G===null&&VOb(this);return G}G=Uyx(this);return G==null?Y:G};
var Uyx=function(Y){var G=Y.JSC$19867_value_;if(G==null)return null;Array.isArray(G)||(typeof G!=="string"?G=[G]:(G=G.trim(),G=G==""?[]:G.split(",").map(function(u){return u.trim()})));
return vY9(Y,G)},vY9=function(Y,G){var u=Y.JSC$19867_key_+"[";
return Array.from(G,function(O,Q){return new SU(u+Q+"]",O)})};
SU.prototype.object=function(Y){var G=this.JSC$19867_value_;if(G==null)return Y===void 0&&VOb(this),Y;if(typeof G==="object"&&G.constructor===Object){Y={};var u=this.JSC$19867_key_+".",O;for(O in G)Y[O]=new SU(u+O,G[O]);return Y}throw lAx(this,"object");};var Ng=function(Y){this.list_=JCg(Y)},JCg=function(Y){if(Y instanceof Ng)Y=Y.list_;
else if(Y[0]instanceof Ng){for(var G=new Set,u=0;u<Y.length;u++)for(var O=_.E(Y[u].list_),Q=O.next();!Q.done;Q=O.next())G.add(Q.value);Y=G}return[].concat(_.c8(Y))};
_.H=Ng.prototype;_.H.each=function(Y,G,u){((u===void 0?0:u)?WUb:_.jo)(this.list_,Y,G);return this};
_.H.size=function(){return this.list_.length};
_.H.isEmpty=function(){return this.list_.length===0};
_.H.get=function(Y){return this.list_[Y]||null};
_.H.el=function(){return this.list_[0]||null};
_.H.map=function(Y,G){return _.Xi(this.list_,Y,G)};
_.H.equals=function(Y){return this===Y||_.UI(this.list_,Y.list_)};
_.H.first=function(){return this.list_.length==0?null:new jU(this.list_[0])};
_.H.last=function(){return this.list_.length==0?null:new jU(this.list_[this.list_.length-1])};
_.H.find=function(Y){var G=[];this.each(function(u){u=u.querySelectorAll(String(Y));for(var O=0;O<u.length;O++)G.push(u[O])});
return new Ng(G)};
_.H.parent=function(){var Y=[];this.each(function(G){(G=G.parentElement||null)&&!_.ST(Y,G)&&Y.push(G)});
return new Ng(Y)};
_.H.children=function(){var Y=[];this.each(function(G){G=_.iT(G);for(var u=0;u<G.length;u++)Y.push(G[u])});
return new Ng(Y)};
_.H.filter=function(Y){Y=_.vH(this.list_,N8b(Y));return new Ng(Y)};
_.H.closest=function(Y){var G=[],u=N8b(Y),O=function(Q){return _.sy(Q)&&u(Q)};
this.each(function(Q){(Q=_.pm(Q,O,!0))&&!_.ST(G,Q)&&G.push(Q)});
return new Ng(G)};
_.H.next=function(Y){return Y6V(this,_.H7I,Y)};
_.H.prev=function(Y){return Y6V(this,RcB,Y)};
var Y6V=function(Y,G,u){var O=[];var Q=u?N8b(u):j8V;Y.each(function(M){(M=G(M))&&Q(M)&&O.push(M)});
return new Ng(O)};
Ng.prototype.setClass=function(Y){return this.each(function(G){_.bJ(G,Y)})};
var GrN=function(Y,G){return Y.each(function(u){_.oD(u,G)})},uRb=function(Y,G){return Y.each(function(u){_.AR(u,G)})};
Ng.prototype.toggleClass=function(Y,G){return G===!0?GrN(this,Y):G===!1?uRb(this,Y):this.each(function(u){_.SI(u,Y)?_.AR(u,Y):_.oD(u,Y)})};
Ng.prototype.setText=function(Y){return this.each(function(G){_.R9(G,Y)})};
var OZ9=function(Y){Y.each(function(G){G.removeAttribute("aria-hidden")})};
Ng.prototype.getStyle=function(Y){if(this.list_.length>0){var G=this.list_[0],u=G.style[_.OK(Y)];return typeof u!=="undefined"?u:G.style[_.nH_(G,Y)]||""}};
Ng.prototype.getData=function(Y){if(this.list_.length===0)return new SU(Y,null);var G=wco(this.list_[0],Y);return new SU(Y,G)};
Ng.prototype.focus=function(Y){try{Y?this.el().focus(Y):this.el().focus()}catch(G){}return this};
Ng.prototype.click=function(){var Y=_.nm(this.el());if(Y.createEvent){var G=Y.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,Y.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(G)}else Y=Y.createEventObject(),Y.clientX=0,Y.clientY=0,Y.screenX=0,Y.screenY=0,Y.altKey=!1,Y.ctrlKey=!1,Y.shiftKey=!1,Y.button=0,this.el().fireEvent("onclick",Y)};
var VX=function(Y,G,u,O){function Q(K,L,g){var P=L;L&&L.parentNode&&(P=L.cloneNode(!0));K(P,g)}
O=O===void 0?!1:O;if(Y.list_.length==1){var M=Y.list_[0],t=function(K){return G(K,M)};
u instanceof Ng?u.each(t,void 0,O):Array.isArray(u)?(O?WUb:_.jo)(u,t):t(u);return Y}return Y.each(function(K){u instanceof Ng?u.each(function(L){Q(G,L,K)}):Array.isArray(u)?_.jo(u,function(L){Q(G,L,K)}):Q(G,u,K)})};
_.H=Ng.prototype;_.H.append=function(Y){return VX(this,function(G,u){G&&u.appendChild(G)},Y)};
_.H.appendTo=function(Y){(new Ng([Y])).append(this);return this};
_.H.remove=function(){return VX(this,function(Y,G){_.Oy(G)},null)};
_.H.empty=function(){return VX(this,function(Y,G){_.eq(G)},null)};
_.H.after=function(Y,G){return VX(this,function(u,O){u&&_.o9(u,O)},Y,!(G===void 0||G))};
_.H.before=function(Y){return VX(this,function(G,u){G&&_.Am(G,u)},Y)};
_.H.replaceWith=function(Y){return VX(this,function(G,u){G&&_.O7V(G,u)},Y)};
_.H.toggle=function(Y){return this.each(function(G){_.jG(G,Y)})};
_.H.show=function(){return this.toggle(!0)};
_.H.hide=function(){return this.toggle(!1)};
_.H.trigger=function(Y,G,u,O){return Qtx(this,Y,G,u,O)};
var Qtx=function(Y,G,u,O,Q){return Y.each(function(M){_.yNT(_.nm(M)).triggerWizEventInternal(M,G,u,O,Q)})},jU=function(Y,G){Y instanceof Ng&&(G=Y.list_,Y=null);
this.list_=JCg(Y!=null?[Y]:G)};
_.qz(jU,Ng);_.H=jU.prototype;_.H.children=function(){return new Ng(Array.prototype.slice.call(_.iT(this.list_[0])))};
_.H.each=function(Y,G){Y.call(G,this.list_[0],0);return this};
_.H.size=function(){return 1};
_.H.el=function(){return this.list_[0]};
_.H.first=function(){return this};var lX=function(Y,G){G=G===void 0?window:G;this.hostId=Y;this.win=G;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$19878_previousHtmlOverscroll=this.JSC$19878_previousBodyOverscroll=this.JSC$19878_previousBodyOverflow="";this.eventTarget=new _.C7;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},Efw=function(Y){var G=
MZN(MZN(MZN(new HZg(78),"po"),"hppp"),"hhc");
G.authUser=Number(_.DE("SESSION_INDEX","0"));G.colorScheme=Y;return G};
lX.prototype.getOrigin=function(){return this.origin?this.origin:_.qO(_.$5(_.Bp(new _.Rx,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
lX.prototype.getTargetOrigin=function(){return _.qO(_.$5(_.Bp(new _.Rx,this.scheme),this.domain),this.port)};
lX.prototype.preloadIframe=function(Y){var G=this;if(this.iframeLoadPromise===void 0){var u=document.createElement("iframe");this.iframe=u;Xno(u,Y);this.iframeLoadPromise=new Promise(function(O,Q){var M=!1,t=function(K){K.stopPropagation();u.removeEventListener("error",t);u.removeEventListener("securitypolicyviolation",t);Q(Error("Bk",{cause:K}))};
u.addEventListener("error",t);u.addEventListener("securitypolicyviolation",t);setTimeout(function(){M||Q(Error("Ck"))},3E4);
tZj(G,u,function(){M=!0;u.removeEventListener("error",t);u.removeEventListener("securitypolicyviolation",t);O()})});
KBj(this);Y=this.getTargetOrigin().toString();u.setAttribute("allow","camera "+Y+"; display-capture "+Y);this.parentElement.appendChild(u)}return this.iframeLoadPromise};
var LBS=function(Y,G){var u,O;return _.a(function(Q){if(Q.nextAddress==1)return u=HDg(getComputedStyle(Y.parentElement).direction==="rtl"),Y.parentElement.appendChild(u),document.activeElement instanceof HTMLElement&&(Y.elementToFocusAfterClose=document.activeElement),_.i3(Q,2),Q.yield(Y.preloadIframe(G),4);if(Q.nextAddress!=2){Y.parentElement.removeChild(u);Y.JSC$19878_previousBodyOverflow=Y.parentElement.style.overflow;Y.JSC$19878_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
Y.JSC$19878_previousBodyOverscroll=Y.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";Y.parentElement.style.overscrollBehavior="contain";Y.parentElement.style.overflow="hidden";var M=Y.iframe;M.style.bottom="0";M.style.border="none";M.style.height="100%";M.style.left="0";M.style.position=Y.iframePosition;M.style.right="0";M.style.top="0";M.style.width="100%";M.style.zIndex="2202";M.setAttribute("aria-hidden","false");M.setAttribute("aria-modal","true");
Y.opened=!0;aYN(Y);return _.j1(Q,0)}O=_.b3(Q);Y.parentElement.removeChild(u);TBN(Y.isDarkTheme());TMo(Y,!1);throw Error("Dk",{cause:O});})},TMo=function(Y,G){G=G===void 0?!0:G;
Y.iframe!==void 0&&(gfb(Y),document.documentElement.style.overscrollBehavior=Y.JSC$19878_previousHtmlOverscroll,Y.parentElement.style.overscrollBehavior=Y.JSC$19878_previousBodyOverscroll,Y.parentElement.style.overflow=Y.JSC$19878_previousBodyOverflow,Y.elementToFocusAfterClose!==void 0&&(Y.elementToFocusAfterClose.focus(),Y.elementToFocusAfterClose=void 0),G?KBj(Y):(Y.parentElement.removeChild(Y.iframe),Y.iframe=void 0,Y.iframeLoadPromise=void 0,Y.mainChannel=void 0),Y.opened=!1)},gfb=function(Y){Y.backgroundElementsAriaHiddenIsNull&&
(OZ9(Y.backgroundElementsAriaHiddenIsNull),Y.backgroundElementsAriaHiddenIsNull=void 0);
Y.backgroundElementsAriaHiddenIsFalse&&(Y.backgroundElementsAriaHiddenIsFalse.each(function(G){G.setAttribute("aria-hidden","false")}),Y.backgroundElementsAriaHiddenIsFalse=void 0);
Y.backgroundElementsWithoutInert&&(Y.backgroundElementsWithoutInert.each(function(G){G.removeAttribute("inert")}),Y.backgroundElementsWithoutInert=void 0)},aYN=function(Y){Y.backgroundElementsAriaHiddenIsNull=(new jU(Y.iframe.parentElement)).children().filter(function(G){return G.getAttribute("aria-hidden")===null&&G!==Y.iframe});
Y.backgroundElementsAriaHiddenIsNull.each(function(G){G.setAttribute("aria-hidden","true")});
Y.backgroundElementsAriaHiddenIsFalse=(new jU(Y.iframe.parentElement)).children().filter(function(G){return G.getAttribute("aria-hidden")==="false"&&G!==Y.iframe});
Y.backgroundElementsAriaHiddenIsFalse.each(function(G){G.setAttribute("aria-hidden","true")});
Y.backgroundElementsWithoutInert=(new jU(Y.iframe.parentElement)).children().filter(function(G){return!G.hasAttribute("inert")&&G!==Y.iframe});
Y.backgroundElementsWithoutInert.each(function(G){G.setAttribute("inert","true")})},KBj=function(Y){Y=Y.iframe;
Y.style.bottom="-1000px";Y.style.position="fixed";Y.style.right="-1000px";Y.style.border="";Y.style.height="";Y.style.left="";Y.style.top="";Y.style.width="";Y.style.zIndex="";Y.setAttribute("aria-hidden","true");Y.setAttribute("aria-modal","false")};
lX.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var HZg=function(Y,G){lX.call(this,F9S[Y],G);this.options=[];this.style=""};
_.m(HZg,lX);var XOx=function(Y){Y.style="youtube";return Y},PwN=function(Y,G){Y.eventTarget.listen(oYj,G);
return Y},IYB=function(Y,G){Y.eventTarget.listen(e9x,G);
return Y},MZN=function(Y,G){Y.options.push(G);
return Y},krb=function(Y){var G=[Y.getOrigin()];
Y.ancestorOrigins&&G.push.apply(G,_.c8(Y.ancestorOrigins));var u=new _.Rx(Y.win.location.href),O=Y.startUrl?Y.startUrl:Y.options.includes("po")?"profile-picture/art":"profile-picture";G=rtS(_.sR(Y.getTargetOrigin(),O),"origin",G);Y.startUrl&&_.NA(G,"startPath",Y.startUrl);Y.authUser>0&&_.NA(G,"authuser",Y.authUser);Y.pageId!==void 0&&_.NA(G,"pageId",Y.pageId);_.NA(G,"hostId",Y.hostId);Y.jsMode!==void 0&&_.NA(G,"jsmode",Y.jsMode);Y.rectangleRatio!==void 0&&_.NA(G,"rectangleRatio",Y.rectangleRatio);
Y.options.length>0&&_.NA(G,"opts",Y.options.join(","));try{for(var Q=_.E(["utm_source","utm_medium","utm_campaign","utm_content"]),M=Q.next();!M.done;M=Q.next()){var t=M.value;_.SG(u,t)&&_.NA(G,t,_.SG(u,t))}var K,L=(K=Y.hl)!=null?K:_.SG(u,"hl");L!==void 0&&_.NA(G,"hl",L)}catch(g){if(!(g instanceof URIError))throw g;}Y.colorScheme&&_.NA(G,"theme",Y.colorScheme);Y.style&&_.NA(G,"style",Y.style);return G},nfN=function(Y,G){Y.mainChannel=_.YS({destination:Y.win,
iframe:G,origin:Y.getTargetOrigin().toString(),channelName:"ow",onMessage:function(u){u=xyo(u.data);if(G===Y.iframe)switch(_.mK(u,1)){case 1:Y.eventTarget.dispatchEvent(new ZIb);TMo(Y);break;case 2:Y.eventTarget.dispatchEvent(new R9x(_.zy(u,4),_.zy(u,2),_.mK(u,5),_.QH(u,myj,6)));break;case 0:var O;Y.eventTarget.dispatchEvent(new wZo(_.zy(u,2),(O=_.mK(u,3))!=null?O:0));break;case 3:Y.eventTarget.dispatchEvent(new ZIb(!0));TMo(Y,!1);break;case 4:Y.eventTarget.dispatchEvent(new DyB)}}})},tZj=function(Y,
G,u){_.YS({destination:Y.win,
iframe:G,origin:_.qO(_.$5(_.Bp(new _.Rx,Y.scheme),Y.domain),Y.port).toString(),channelName:"owi",onMessage:function(O){G===Y.iframe&&(u!==void 0&&u(),nfN(Y,G),Y.opened&&Y.mainChannel.send(yCg(CEj())),O.reply(),tZj(Y,G))}})};
HZg.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?lX.prototype.preloadIframe.call(this,krb(this).toString()):this.iframeLoadPromise};
HZg.prototype.openPicker=function(Y){var G=this;return _.a(function(u){if(u.nextAddress==1)return G.startUrl=Y?Y:G.options.includes("po")?"profile-picture/art":"profile-picture",u.yield(LBS(G,krb(G).toString()),2);if(G.mainChannel){var O=G.mainChannel,Q=O.send;var M=CEj();M=_.E_(M,2,G.startUrl);Q.call(O,yCg(M))}_.Sd(u)})};var FBS=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(FBS,_.Ps);_.H=FBS.prototype;_.H.getSize=function(){return zI(this,1)};
_.H.setSize=function(Y){return _.Cc(this,1,Y)};
_.H.getWidth=function(){return zI(this,12)};
_.H.getHeight=function(){return zI(this,13)};
_.H.setCenterCrop=function(Y){return _.BF(this,20,Y)};
_.H.getHtml=function(){return _.nc(this,4)};
_.H.getToken=function(){return _.Gm(this,24)};
_.H.setToken=function(Y){return _.E_(this,24,Y)};
_.H.getBackgroundColor=function(){return zI(this,87)};
_.H.hasBackgroundColor=function(){return _.Lx(_.Kc(this,87))!=null};
_.H.getStoryboardLevel=function(){return zI(this,109)};Hk.prototype.set=function(Y,G){pO9(this,Y,G,!1)};
Hk.prototype.add=function(Y,G){pO9(this,Y,G,!0)};
var pO9=function(Y,G,u,O){for(var Q=0;Q<G.length;Q++){var M=G.charAt(Q);Y.childNodes_[M]||(Y.childNodes_[M]=new Hk);Y=Y.childNodes_[M]}if(O&&Y.JSC$19886_value_!==void 0)throw Error("Ek`"+G);Y.JSC$19886_value_=u},zFB=function(Y,G){for(var u=0;u<G.length;u++)if(Y=Y.childNodes_[G.charAt(u)],!Y)return;
return Y};
Hk.prototype.get=function(Y){return(Y=zFB(this,Y))?Y.JSC$19886_value_:void 0};
Hk.prototype.getValues=function(){var Y=[];mHN(this,Y);return Y};
var mHN=function(Y,G){Y.JSC$19886_value_!==void 0&&G.push(Y.JSC$19886_value_);for(var u in Y.childNodes_)mHN(Y.childNodes_[u],G)};
Hk.prototype.getKeys=function(Y){var G=[];if(Y){for(var u=this,O=0;O<Y.length;O++){var Q=Y.charAt(O);if(!u.childNodes_[Q])return[];u=u.childNodes_[Q]}WB9(u,Y,G)}else WB9(this,"",G);return G};
var WB9=function(Y,G,u){Y.JSC$19886_value_!==void 0&&u.push(G);for(var O in Y.childNodes_)WB9(Y.childNodes_[O],G+O,u)};
_.H=Hk.prototype;_.H.containsKey=function(Y){return this.get(Y)!==void 0};
_.H.containsValue=function(Y){if(this.JSC$19886_value_===Y)return!0;for(var G in this.childNodes_)if(this.childNodes_[G].containsValue(Y))return!0;return!1};
_.H.clear=function(){this.childNodes_={};this.JSC$19886_value_=void 0};
_.H.remove=function(Y){for(var G=this,u=[],O=0;O<Y.length;O++){var Q=Y.charAt(O);if(!G.childNodes_[Q])throw Error("Fk`"+Y);u.push([G,Q]);G=G.childNodes_[Q]}Y=G.JSC$19886_value_;for(delete G.JSC$19886_value_;u.length>0;)if(O=u.pop(),G=O[0],O=O[1],G.childNodes_[O].isEmpty())delete G.childNodes_[O];else break;return Y};
_.H.clone=function(){return new Hk(this)};
_.H.getCount=function(){return DoV(this.getValues())};
_.H.isEmpty=function(){return this.JSC$19886_value_===void 0&&_.gX.isEmpty(this.childNodes_)};var FOx=function(){if(!rix){var Y=rix=new Hk,G;for(G in xHj)Y.add(G,xHj[G])}},rix,BL=function(Y,G){this.types=Y;
this.setters=G},xHj={a:new BL([3,
0],[function(Y,G){_.BF(Y,21,G)},
function(Y,G){_.Cc(Y,56,G)}]),
al:new BL([3],[function(Y,G){_.BF(Y,74,G)}]),
b:new BL([3,0],[function(Y,G){_.BF(Y,23,G)},
function(Y,G){_.Cc(Y,38,G)}]),
ba:new BL([0],[function(Y,G){_.Cc(Y,85,G)}]),
bc:new BL([0],[function(Y,G){_.Cc(Y,87,G)}]),
br:new BL([0],[function(Y,G){_.Cc(Y,86,G)}]),
c:new BL([3,0],[function(Y,G){_.BF(Y,2,G)},
function(Y,G){_.Cc(Y,39,G)}]),
cc:new BL([3],[function(Y,G){_.BF(Y,51,G)}]),
ci:new BL([3],[function(Y,G){_.BF(Y,32,G)}]),
ckm:new BL([3],[function(Y,G){_.BF(Y,104,G)}]),
cp:new BL([0],[function(Y,G){_.Cc(Y,92,G)}]),
cr:new BL([3],[function(Y,G){_.BF(Y,108,G)}]),
cv:new BL([0],[function(Y,G){_.Cc(Y,94,G)}]),
d:new BL([3],[function(Y,G){_.BF(Y,3,G)}]),
dc:new BL([5],[function(Y,G){_.E_(Y,99,G)}]),
df:new BL([3],[function(Y,G){_.BF(Y,80,G)}]),
dv:new BL([3],[function(Y,G){_.BF(Y,90,G)}]),
e:new BL([0],[function(Y,G){_.Cc(Y,15,G)}]),
em:new BL([0],[function(Y,G){_.Cc(Y,107,G)}]),
f:new BL([4],[function(Y,G){_.E_(Y,16,G)}]),
fg:new BL([3],[function(Y,G){_.BF(Y,34,G)}]),
fh:new BL([3],[function(Y,G){_.BF(Y,30,G)}]),
fm:new BL([3],[function(Y,G){_.BF(Y,84,G)}]),
fo:new BL([2],[function(Y,G){_.Hj(Y,79,_.uN(G))}]),
ft:new BL([3],[function(Y,G){_.BF(Y,50,G)}]),
fv:new BL([3],[function(Y,G){_.BF(Y,31,G)}]),
g:new BL([3],[function(Y,G){_.BF(Y,14,G)}]),
gce:new BL([4],[function(Y,G){_.E_(Y,112,G)}]),
gd:new BL([3],[function(Y,G){_.BF(Y,83,G)}]),
gm:new BL([3],[function(Y,G){_.BF(Y,105,G)}]),
h:new BL([3,0],[function(Y,G){_.BF(Y,4,G)},
function(Y,G){_.Cc(Y,13,G)}]),
i:new BL([3],[function(Y,G){_.BF(Y,22,G)}]),
ic:new BL([0],[function(Y,G){_.Cc(Y,71,G)}]),
id:new BL([3],[function(Y,G){_.BF(Y,70,G)}]),
il:new BL([3],[function(Y,G){_.BF(Y,96,G)}]),
ip:new BL([3],[function(Y,G){_.BF(Y,54,G)}]),
iv:new BL([0],[function(Y,G){_.F3(Y,75,G)}]),
j:new BL([1],[function(Y,G){_.Hj(Y,29,G==null?G:ClN(G))}]),
k:new BL([3,0],[function(Y,G){_.BF(Y,17,G)},
function(Y,G){_.Cc(Y,42,G)}]),
l:new BL([0],[function(Y,G){_.Cc(Y,44,G)}]),
lf:new BL([3],[function(Y,G){_.BF(Y,65,G)}]),
lo:new BL([3],[function(Y,G){_.BF(Y,97,G)}]),
m:new BL([0],[function(Y,G){_.Cc(Y,63,G)}]),
md:new BL([3],[function(Y,G){_.BF(Y,91,G)}]),
mm:new BL([4],[function(Y,G){_.E_(Y,81,G)}]),
mo:new BL([3],[function(Y,G){_.BF(Y,73,G)}]),
mp:new BL([0],[function(Y,G){_.Cc(Y,115,G)}]),
mv:new BL([3],[function(Y,G){_.BF(Y,66,G)}]),
n:new BL([3],[function(Y,G){Y.setCenterCrop(G)}]),
nc:new BL([3],[function(Y,G){_.BF(Y,55,G)}]),
nd:new BL([3],[function(Y,G){_.BF(Y,53,G)}]),
ng:new BL([3],[function(Y,G){_.BF(Y,95,G)}]),
ngm:new BL([3],[function(Y,G){_.BF(Y,106,G)}]),
no:new BL([3],[function(Y,G){_.BF(Y,37,G)}]),
ns:new BL([3],[function(Y,G){_.BF(Y,40,G)}]),
nt0:new BL([4],[function(Y,G){_.E_(Y,36,G)}]),
ntm:new BL([3],[function(Y,G){_.BF(Y,114,G)}]),
nu:new BL([3],[function(Y,G){_.BF(Y,46,G)}]),
nw:new BL([3],[function(Y,G){_.BF(Y,48,G)}]),
o:new BL([1,3],[function(Y,G){_.Hj(Y,7,G==null?G:ClN(G))},
function(Y,G){_.BF(Y,27,G)}]),
p:new BL([3,0],[function(Y,G){_.BF(Y,19,G)},
function(Y,G){_.Cc(Y,43,G)}]),
pa:new BL([3],[function(Y,G){_.BF(Y,61,G)}]),
pc:new BL([0],[function(Y,G){_.Cc(Y,88,G)}]),
pd:new BL([3],[function(Y,G){_.BF(Y,60,G)}]),
pf:new BL([3],[function(Y,G){_.BF(Y,67,G)}]),
pg:new BL([3],[function(Y,G){_.BF(Y,72,G)}]),
pi:new BL([2],[function(Y,G){_.Hj(Y,76,_.uN(G))}]),
pp:new BL([3],[function(Y,G){_.BF(Y,52,G)}]),
pt:new BL([4],[function(Y,G){_.E_(Y,111,G)}]),
q:new BL([4],[function(Y,G){_.E_(Y,28,G)}]),
r:new BL([3,0],[function(Y,G){_.BF(Y,6,G)},
function(Y,G){_.Cc(Y,26,G)}]),
ra:new BL([3],[function(Y,G){_.BF(Y,103,G)}]),
rf:new BL([3],[function(Y,G){_.BF(Y,100,G)}]),
rg:new BL([3],[function(Y,G){_.BF(Y,59,G)}]),
rh:new BL([3],[function(Y,G){_.BF(Y,49,G)}]),
rj:new BL([3],[function(Y,G){_.BF(Y,57,G)}]),
ro:new BL([2],[function(Y,G){_.Hj(Y,78,_.uN(G))}]),
rp:new BL([3],[function(Y,G){_.BF(Y,58,G)}]),
rw:new BL([3],[function(Y,G){_.BF(Y,35,G)}]),
rwa:new BL([3],[function(Y,G){_.BF(Y,64,G)}]),
rwu:new BL([3],[function(Y,G){_.BF(Y,41,G)}]),
s:new BL([3,0],[function(Y,G){_.BF(Y,33,G)},
function(Y,G){Y.setSize(G)}]),
sb:new BL([0],[function(Y,G){_.Cc(Y,110,G)}]),
sc:new BL([0],[function(Y,G){_.Cc(Y,89,G)}]),
sg:new BL([3],[function(Y,G){_.BF(Y,82,G)}]),
sl:new BL([0],[function(Y,G){_.Cc(Y,109,G)}]),
sm:new BL([3],[function(Y,G){_.BF(Y,93,G)}]),
t:new BL([4],[function(Y,G){Y.setToken(G)}]),
tm:new BL([3],[function(Y,G){_.BF(Y,113,G)}]),
u:new BL([3],[function(Y,G){_.BF(Y,18,G)}]),
ut:new BL([3],[function(Y,G){_.BF(Y,45,G)}]),
v:new BL([0],[function(Y,G){_.Cc(Y,62,G)}]),
vb:new BL([0],[function(Y,G){_.F3(Y,68,G)}]),
vf:new BL([4],[function(Y,G){_.E_(Y,102,G)}]),
vl:new BL([0],[function(Y,G){_.F3(Y,69,G)}]),
vm:new BL([3],[function(Y,G){_.BF(Y,98,G)}]),
w:new BL([0],[function(Y,G){_.Cc(Y,12,G)}]),
x:new BL([0],[function(Y,G){_.Cc(Y,9,G)}]),
y:new BL([0],[function(Y,G){_.Cc(Y,10,G)}]),
ya:new BL([2],[function(Y,G){_.Hj(Y,77,_.uN(G))}]),
z:new BL([0],[function(Y,G){_.Cc(Y,11,G)}])};
FOx.prototype.parse=function(Y){var G=new FBS,u=new FBS;if(Y=="")Y=!0;else{Y=Y.split("-");for(var O=!0,Q=0;Q<Y.length;Q++){var M=Y[Q];if(M.length==0)O=!1;else{var t=M,K=!1;var L=t;var g=t.charAt(0);g!=g.toLowerCase()&&(K=!0,L=t.charAt(0).toLowerCase()+t.substring(1));var P=rix;for(g=1;g<=L.length;++g){var I=P,k=L.substring(0,g);if(k.length==0?I.isEmpty():!zFB(I,k))break}L=g==1?null:(L=P.get(L.substring(0,g-1)))?{option:t.substring(0,g-1),value:t.substring(g-1),signed:K,attributes:L}:null;if(L){t=
[];K=[];g=!1;for(P=0;P<L.attributes.types.length;P++){I=L.attributes.types[P];var n=L.value;k=Q;if(L.signed&&I==1)for(var p=n.length;p<12&&k<Y.length-1;)n+="-"+Y[k+1],p=n.length,++k;else if(I==2)for(;k<Y.length-1&&Y[k+1].match(/^[\d\.]/);)n+="-"+Y[k+1],++k;p=L.attributes.setters[P];n=fYg(this,I)(L.option,n,G,u,p);if(n===null){g=!0;Q=k;break}else t.push(I),K.push(n)}if(!g)for(L=0;L<K.length;L++)P=t[L],n=K[L],CwS(this,P)(M,n);O=O&&g}else O=!1}}Y=O}return new yix(G,u,Y)};
var eFS=function(Y,G,u,O,Q,M){Q(u,G);Y=Y.charAt(0);M=M(Y==Y.toUpperCase());Q(O,M)};
_.H=FOx.prototype;_.H.parseAndSetIntOption_=function(Y,G,u,O,Q){if(G=="")return 0;isFinite(G)&&(G=String(G));G=typeof G==="string"?/^\s*-?0x/i.test(G)?parseInt(G,16):parseInt(G,10):NaN;if(isNaN(G))return 1;eFS(Y,G,u,O,Q,Number);return null};
_.H.logIntParseError_=function(){};
_.H.parseAndSetFloatOption_=function(Y,G,u,O,Q){if(G=="")return 0;var M=Number(G);G=M==0&&_.K1(G)?NaN:M;if(isNaN(G))return 1;eFS(Y,G,u,O,Q,Number);return null};
_.H.logFloatParseError_=function(){};
_.H.parseAndSetBoolOption_=function(Y,G,u,O,Q){if(G!="")return 2;eFS(Y,!0,u,O,Q,Boolean);return null};
_.H.logBoolParseError_=function(){};
_.H.parseAndSetStringOption_=function(Y,G,u,O,Q){if(G=="")return 0;eFS(Y,G,u,O,Q,function(M){return M?"1":""});
return null};
_.H.logStringParseError_=function(){};
_.H.parseAndSetUint64Base64Option_=function(Y,G,u,O,Q){if(G=="")return 0;eFS(Y,G,u,O,Q,function(M){return M?1:0});
return null};
var fYg=function(Y,G){switch(G){case 0:return(0,_.tP)(Y.parseAndSetIntOption_,Y);case 2:return(0,_.tP)(Y.parseAndSetFloatOption_,Y);case 3:return(0,_.tP)(Y.parseAndSetBoolOption_,Y);case 4:return(0,_.tP)(Y.parseAndSetStringOption_,Y);case 1:return(0,_.tP)(Y.parseAndSetUint64Base64Option_,Y);default:return function(){}}},CwS=function(Y,G){switch(G){case 0:return(0,_.tP)(Y.logIntParseError_,Y);
case 2:return(0,_.tP)(Y.logFloatParseError_,Y);case 3:return(0,_.tP)(Y.logBoolParseError_,Y);case 4:case 1:return(0,_.tP)(Y.logStringParseError_,Y);default:return function(){}}},yix=function(Y,G,u){this.valueProto_=Y;
this.signatureFlagProto_=G;this.JSC$19898_valid_=u};
yix.prototype.isValid=function(){return this.JSC$19898_valid_};var PM9=function(Y){this.JSC$19899_parser_=null;this.JSC$19899_components_=[];this.JSC$19899_parsedOptions_=null;Aib(this,Y)},ofy=function(Y){Y.JSC$19899_parser_==null&&(Y.JSC$19899_parser_=new FOx);
return Y.JSC$19899_parser_},Aib=function(Y,G){Y.JSC$19899_parsedOptions_=G?typeof G==="string"?ofy(Y).parse(G):G:ofy(Y).parse("")},qg=function(Y,G){return Y==G?!1:!0};
_.H=PM9.prototype;_.H.JSC$19901_setCrop=function(Y){Y=Y||void 0;var G=this.JSC$19899_parsedOptions_,u=G.valueProto_;qg(Y,_.nc(u,2),_.nc(G.signatureFlagProto_,2))&&_.BF(u,2,Y);return this};
_.H.JSC$19901_setCircleCrop=function(Y){Y=Y||void 0;var G=this.JSC$19899_parsedOptions_,u=G.valueProto_;qg(Y,pC(u,51),pC(G.signatureFlagProto_,51))&&_.BF(u,51,Y);return this};
_.H.JSC$19901_setImageCrop=function(Y){Y=Y||void 0;var G=this.JSC$19899_parsedOptions_,u=G.valueProto_;qg(Y,pC(u,32),pC(G.signatureFlagProto_,32))&&_.BF(u,32,Y);return this};
_.H.JSC$19901_setHeight=function(Y){var G=this.JSC$19899_parsedOptions_,u=G.valueProto_;qg(Y,u.getHeight(),G.signatureFlagProto_.getHeight())&&_.Cc(u,13,Y);return this};
_.H.setCenterCrop=function(Y){Y=Y||void 0;var G=this.JSC$19899_parsedOptions_,u=G.valueProto_;qg(Y,_.nc(u,20),_.nc(G.signatureFlagProto_,20))&&u.setCenterCrop(Y);return this};
_.H.JSC$19901_setSmartCrop=function(Y){Y=Y||void 0;var G=this.JSC$19899_parsedOptions_,u=G.valueProto_;qg(Y,_.nc(u,19),_.nc(G.signatureFlagProto_,19))&&_.BF(u,19,Y);return this};
_.H.JSC$19901_setPad=function(Y){Y=Y||void 0;var G=this.JSC$19899_parsedOptions_,u=G.valueProto_;qg(Y,pC(u,60),pC(G.signatureFlagProto_,60))&&_.BF(u,60,Y);return this};
_.H.JSC$19901_setSmartCropUseFace=function(Y){Y=Y||void 0;var G=this.JSC$19899_parsedOptions_,u=G.valueProto_;qg(Y,_.nc(u,67),_.nc(G.signatureFlagProto_,67))&&_.BF(u,67,Y);return this};
_.H.JSC$19901_setSmartCropNoClip=function(Y){Y=Y||void 0;var G=this.JSC$19899_parsedOptions_,u=G.valueProto_;qg(Y,_.nc(u,52),_.nc(G.signatureFlagProto_,52))&&_.BF(u,52,Y);return this};
_.H.setSize=function(Y){var G=this.JSC$19899_parsedOptions_,u=G.valueProto_;qg(Y,u.getSize(),G.signatureFlagProto_.getSize())&&u.setSize(Y);return this};
_.H.setToken=function(Y){Y=Y||void 0;var G=this.JSC$19899_parsedOptions_,u=G.valueProto_;qg(Y,u.getToken(),G.signatureFlagProto_.getToken())&&u.setToken(Y);return this};
_.H.JSC$19901_setWidth=function(Y){var G=this.JSC$19899_parsedOptions_,u=G.valueProto_;qg(Y,u.getWidth(),G.signatureFlagProto_.getWidth())&&_.Cc(u,12,Y);return this};
_.H.setOptions=function(Y){Aib(this,Y);return this};
_.H.clearOptions=function(){Aib(this,"");return this};
_.H.build=function(){this.JSC$19899_components_.length=0;var Y=this.JSC$19899_parsedOptions_,G=Y.valueProto_;Y=Y.signatureFlagProto_;s$(this,"s",G.getSize(),Y.getSize());s$(this,"w",G.getWidth(),Y.getWidth());cL(this,"c",_.nc(G,2),_.nc(Y,2));cL(this,"d",_.nc(G,3),_.nc(Y,3));s$(this,"h",G.getHeight(),Y.getHeight());cL(this,"s",pC(G,33),pC(Y,33));cL(this,"h",G.getHtml(),Y.getHtml());cL(this,"p",_.nc(G,19),_.nc(Y,19));cL(this,"pp",_.nc(G,52),_.nc(Y,52));cL(this,"pf",_.nc(G,67),_.nc(Y,67));cL(this,"n",
_.nc(G,20),_.nc(Y,20));s$(this,"r",zI(G,26),zI(Y,26));cL(this,"r",_.nc(G,6),_.nc(Y,6));cL(this,"o",pC(G,27),pC(Y,27));var u=_.kU(G,7,_.tr);U$(this,"o",u,_.kU(Y,7,_.tr));u=_.kU(G,29,_.tr);U$(this,"j",u,_.kU(Y,29,_.tr));s$(this,"x",zI(G,9),zI(Y,9));s$(this,"y",zI(G,10),zI(Y,10));s$(this,"z",zI(G,11),zI(Y,11));cL(this,"g",_.nc(G,14),_.nc(Y,14));s$(this,"e",zI(G,15),zI(Y,15));U$(this,"f",_.Gm(G,16),_.Gm(Y,16));cL(this,"k",pC(G,17),pC(Y,17));cL(this,"u",pC(G,18),!0);cL(this,"ut",pC(G,45),!0);cL(this,"i",
pC(G,22),!0);cL(this,"a",pC(G,21),pC(Y,21));cL(this,"b",_.nc(G,23),_.nc(Y,23));s$(this,"b",zI(G,38),zI(Y,38));s$(this,"c",zI(G,39),zI(Y,39),16,8);U$(this,"q",_.Gm(G,28),_.Gm(Y,28));cL(this,"fh",pC(G,30),pC(Y,30));cL(this,"fv",pC(G,31),pC(Y,31));cL(this,"fg",_.nc(G,34),_.nc(Y,34));cL(this,"ci",pC(G,32),pC(Y,32));U$(this,"t",G.getToken(),Y.getToken());U$(this,"nt0",_.Gm(G,36),_.Gm(Y,36));cL(this,"rw",_.nc(G,35),_.nc(Y,35));cL(this,"rwu",_.nc(G,41),_.nc(Y,41));cL(this,"rwa",_.nc(G,64),_.nc(Y,64));cL(this,
"nw",_.nc(G,48),_.nc(Y,48));cL(this,"rh",_.nc(G,49),_.nc(Y,49));cL(this,"no",_.nc(G,37),_.nc(Y,37));cL(this,"ns",pC(G,40),pC(Y,40));s$(this,"k",zI(G,42),zI(Y,42));s$(this,"p",zI(G,43),zI(Y,43));s$(this,"l",zI(G,44),zI(Y,44));s$(this,"v",zI(G,62),zI(Y,62));cL(this,"nu",pC(G,46),pC(Y,46));cL(this,"ft",pC(G,50),pC(Y,50));cL(this,"cc",pC(G,51),pC(Y,51));cL(this,"nd",pC(G,53),pC(Y,53));cL(this,"ip",pC(G,54),pC(Y,54));cL(this,"nc",pC(G,55),pC(Y,55));s$(this,"a",zI(G,56),zI(Y,56));cL(this,"rj",pC(G,57),
pC(Y,57));cL(this,"rp",pC(G,58),pC(Y,58));cL(this,"rg",pC(G,59),pC(Y,59));cL(this,"pd",pC(G,60),pC(Y,60));cL(this,"pa",pC(G,61),pC(Y,61));s$(this,"m",zI(G,63),zI(Y,63));s$(this,"vb",_.IG(G,68,_.tr),_.IG(Y,68,_.tr));s$(this,"vl",_.IG(G,69,_.tr),_.IG(Y,69,_.tr));cL(this,"lf",pC(G,65),pC(Y,65));cL(this,"mv",pC(G,66),pC(Y,66));cL(this,"id",pC(G,70),pC(Y,70));s$(this,"ic",zI(G,71),!0);cL(this,"pg",_.nc(G,72),_.nc(Y,72));cL(this,"mo",pC(G,73),pC(Y,73));cL(this,"al",pC(G,74),pC(Y,74));s$(this,"iv",_.IG(G,
75,_.tr),_.IG(Y,75,_.tr));s$(this,"pi",mc(G,76),mc(Y,76));s$(this,"ya",mc(G,77),mc(Y,77));s$(this,"ro",mc(G,78),mc(Y,78));s$(this,"fo",mc(G,79),mc(Y,79));cL(this,"df",pC(G,80),pC(Y,80));U$(this,"mm",_.Gm(G,81),_.Gm(Y,81));cL(this,"sg",pC(G,82),pC(Y,82));cL(this,"gd",pC(G,83),pC(Y,83));cL(this,"fm",pC(G,84),pC(Y,84));s$(this,"ba",zI(G,85),zI(Y,85));s$(this,"br",zI(G,86),zI(Y,86));s$(this,"bc",G.getBackgroundColor(),Y.getBackgroundColor(),16,8);s$(this,"pc",zI(G,88),zI(Y,88),16,8);s$(this,"sc",zI(G,
89),zI(Y,89),16,8);cL(this,"dv",pC(G,90),pC(Y,90));cL(this,"md",pC(G,91),pC(Y,91));s$(this,"cp",zI(G,92),zI(Y,92));cL(this,"sm",pC(G,93),pC(Y,93));s$(this,"cv",zI(G,94),zI(Y,94));cL(this,"ng",pC(G,95),pC(Y,95));cL(this,"il",pC(G,96),pC(Y,96));cL(this,"lo",pC(G,97),pC(Y,97));cL(this,"vm",pC(G,98),pC(Y,98));U$(this,"dc",_.Gm(G,99),_.Gm(Y,99));cL(this,"rf",pC(G,100),pC(Y,100));U$(this,"vf",_.Gm(G,102),_.Gm(Y,102));cL(this,"ra",_.nc(G,103),_.nc(Y,103));cL(this,"ckm",pC(G,104),pC(Y,104));cL(this,"gm",
pC(G,105),pC(Y,105));cL(this,"ngm",pC(G,106),pC(Y,106));s$(this,"em",zI(G,107),zI(Y,107));cL(this,"cr",pC(G,108),pC(Y,108));s$(this,"sl",G.getStoryboardLevel(),Y.getStoryboardLevel());s$(this,"sb",zI(G,110),zI(Y,110));U$(this,"pt",_.Gm(G,111),_.Gm(Y,111));U$(this,"gce",_.Gm(G,112),_.Gm(Y,112));cL(this,"tm",pC(G,113),pC(Y,113));cL(this,"ntm",pC(G,114),pC(Y,114));s$(this,"mp",zI(G,115),zI(Y,115));return this.JSC$19899_components_.join("-")};
var s$=function(Y,G,u,O,Q,M){if(u!=null){var t=Q==void 0||Q!=10&&Q!=16?10:Q;u=Number(u).toString(t);Q=new G1y;Q.append(t==16?"0x":"");t=Q.append;M==void 0?M="":(M-=u.length,M=M<=0?"":(0,_.sB_)("0",M));t.call(Q,M);Q.append(u);iZN(Y,G,Q.toString(),!!Number(O))}},cL=function(Y,G,u,O){u&&iZN(Y,G,"",!!O)},U$=function(Y,G,u,O){u&&iZN(Y,G,String(u),!!Number(O))},iZN=function(Y,G,u,O){O&&(G=G.charAt(0).toUpperCase()+G.substring(1));
Y.JSC$19899_components_.push(G+u)};_.qz(El,PM9);_.H=El.prototype;_.H.JSC$19901_setCrop=function(Y){Y&&vL(this);return El.superClass_.JSC$19901_setCrop.call(this,Y)};
_.H.JSC$19901_setHeight=function(Y){Y=Y==null||Y<0?void 0:Y;Y!=null&&this.setSize();return El.superClass_.JSC$19901_setHeight.call(this,Y)};
_.H.JSC$19901_setImageCrop=function(Y){Y&&vL(this);return El.superClass_.JSC$19901_setImageCrop.call(this,Y)};
_.H.JSC$19901_setCircleCrop=function(Y){Y&&vL(this);return El.superClass_.JSC$19901_setCircleCrop.call(this,Y)};
_.H.setSize=function(Y){_.$a(Y)&&(Y=Math.max(Y.width,Y.height));Y=Y==null||Y<0?void 0:Y;Y!=null&&(this.JSC$19901_setWidth(),this.JSC$19901_setHeight());return El.superClass_.setSize.call(this,Y)};
_.H.JSC$19901_setSmartCrop=function(Y){Y&&vL(this);return El.superClass_.JSC$19901_setSmartCrop.call(this,Y)};
_.H.JSC$19901_setSmartCropNoClip=function(Y){Y&&vL(this);return El.superClass_.JSC$19901_setSmartCropNoClip.call(this,Y)};
_.H.JSC$19901_setSmartCropUseFace=function(Y){Y&&vL(this);return El.superClass_.JSC$19901_setSmartCropUseFace.call(this,Y)};
_.H.setCenterCrop=function(Y){Y&&vL(this);return El.superClass_.setCenterCrop.call(this,Y)};
_.H.JSC$19901_setPad=function(Y){Y&&vL(this);return El.superClass_.JSC$19901_setPad.call(this,Y)};
_.H.JSC$19901_setWidth=function(Y){Y=Y==null||Y<0?void 0:Y;Y!=null&&this.setSize();return El.superClass_.JSC$19901_setWidth.call(this,Y)};
var RFj=function(Y){Y.clearOptions();var G=Y.JSC$19899_parsedOptions_,u=G.valueProto_;qg(!0,_.nc(u,3),_.nc(G.signatureFlagProto_,3))&&_.BF(u,3,!0);return Y},vL=function(Y){Y.setCenterCrop();
Y.JSC$19901_setCircleCrop();Y.JSC$19901_setCrop();Y.JSC$19901_setImageCrop();Y.JSC$19901_setPad();Y.JSC$19901_setSmartCrop();Y.JSC$19901_setSmartCropNoClip();Y.JSC$19901_setSmartCropUseFace()};
El.prototype.build=function(){var Y=this.JSC$19899_parsedOptions_.valueProto_;pC(Y,18)||pC(Y,45)?Y.getSize()||this.setSize(0):(Y=this.JSC$19899_parsedOptions_.valueProto_,Y.getSize()||Y.getWidth()||Y.getHeight()||(this.setSize(),this.JSC$19901_setHeight(),this.JSC$19901_setWidth(),vL(this)));return El.superClass_.build.call(this)};var wOb=/^[^\/]*\/\//,ZZb=function(Y,G){G=G===void 0?!1:G;this.original_=Y;this.originalPrefix_="";(Y=this.original_.match(wOb))&&Y[0]?(this.originalPrefix_=Y[0],Y=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):Y="http://"+this.original_;this.uri_=_.bI(Y,!0);this.isFreeformUrl_=G;this.JSC$19905_valid_=!0;this.obfuscated_=!1},DHx=function(Y,G){Y.JSC$19907_pathPrefix_=Y.JSC$19907_pathPrefix_?Y.JSC$19907_pathPrefix_+("/"+G):G},Ju=function(Y){if(Y.JSC$19907_components_==
void 0){var G=Y.uri_.getPath().substring(1);
Y.JSC$19907_pathPrefix_=null;if(Y.isFreeformUrl_){Y.JSC$19907_components_=[];if((G.match(/=/g)||[]).length>1)return Y.JSC$19905_valid_=!1,Y.JSC$19907_components_;var u=G.indexOf("=");u!=-1?(Y.JSC$19907_components_.push(G.substr(0,u)),Y.JSC$19907_components_.push(G.substr(u+1))):Y.JSC$19907_components_.push(G);return Y.JSC$19907_components_}Y.JSC$19907_components_=G.split("/");G=Y.JSC$19907_components_.length;G>2&&Y.JSC$19907_components_[0]=="u"&&(DHx(Y,Y.JSC$19907_components_[0]+"/"+Y.JSC$19907_components_[1]),
Y.JSC$19907_components_.shift(),Y.JSC$19907_components_.shift(),G-=2);if(G==0||G==4||G>7)return Y.JSC$19905_valid_=!1,Y.JSC$19907_components_;if(G==2)DHx(Y,Y.JSC$19907_components_[0]);else if(Y.JSC$19907_components_[0]=="image")DHx(Y,Y.JSC$19907_components_[0]);else if(G==7||G==3)return Y.JSC$19905_valid_=!1,Y.JSC$19907_components_;if(G<=3){Y.obfuscated_=!0;G==3&&(DHx(Y,Y.JSC$19907_components_[1]),Y.JSC$19907_components_.shift(),--G);--G;u=Y.JSC$19907_components_[G];var O=u.indexOf("=");O!=-1&&(Y.JSC$19907_components_[G]=
u.substr(0,O),Y.JSC$19907_components_.push(u.substr(O+1)))}}return Y.JSC$19907_components_};
ZZb.prototype.isValid=function(){Ju(this);return this.JSC$19905_valid_};
ZZb.prototype.isObfuscated=function(){Ju(this);return this.obfuscated_};
var hF9=function(Y){Ju(Y);return Y.isFreeformUrl_},YA=function(Y){Ju(Y);
Y.JSC$19907_pathPrefix_==void 0&&(Y.JSC$19907_pathPrefix_=null);return Y.JSC$19907_pathPrefix_},dH9=function(Y){switch(Ju(Y).length){case 7:return!0;
case 6:return YA(Y)==null;case 5:return!1;case 3:return!0;case 2:return YA(Y)==null;case 1:return!1;default:return!1}},GH=function(Y,G){if(hF9(Y))a:{switch(G){case 7:G=0;
break;case 4:if(!dH9(Y)){Y=null;break a}G=1;break;default:Y=null;break a}Y=Ju(Y)[G]}else if(Y.isObfuscated())a:{var u=YA(Y)!=null?1:0;switch(G){case 6:G=u;break;case 4:if(!dH9(Y)){Y=null;break a}G=1+u;break;default:Y=null;break a}Y=Ju(Y)[G]}else a:{u=YA(Y)!=null?1:0;switch(G){case 0:G=u;break;case 1:G=1+u;break;case 2:G=2+u;break;case 3:G=3+u;break;case 4:if(!dH9(Y)){Y=null;break a}G=4+u;break;case 5:G=dH9(Y)?1:0;G=4+u+G;break;default:Y=null;break a}Y=Ju(Y)[G]}return Y};
ZZb.prototype.getOptions=function(){this.options_==void 0&&(this.options_=GH(this,4));return this.options_};var nob=function(){};
nob.prototype.parse=function(Y,G){return new ISV(Y,G===void 0?!1:G)};
var ISV=function(Y,G){ZZb.call(this,Y,G===void 0?!1:G)};
_.m(ISV,ZZb);_.qz(pnN,El);var kO9;pnN.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
pnN.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var Y=pnN.superClass_.build.call(this),G=[];YA(this.parsedImageUrl_)!=null&&G.push(YA(this.parsedImageUrl_));var u=hF9(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var O=this.parsedImageUrl_;O.obfuscatedData_==void 0&&(O.obfuscatedData_=GH(O,6));G.push(O.obfuscatedData_+(Y?"="+Y:""))}else if(u){O=G.push;var Q=this.parsedImageUrl_;Q.freeformUrlPath_===void 0&&(Q.freeformUrlPath_=
GH(Q,7));O.call(G,Q.freeformUrlPath_);Y&&G.push(Y)}else O=G.push,Q=this.parsedImageUrl_,Q.obfuscatedGaiaId_==void 0&&(Q.obfuscatedGaiaId_=GH(Q,0)),O.call(G,Q.obfuscatedGaiaId_),O=G.push,Q=this.parsedImageUrl_,Q.photoId_==void 0&&(Q.photoId_=GH(Q,1)),O.call(G,Q.photoId_),O=G.push,Q=this.parsedImageUrl_,Q.imageVersion_==void 0&&(Q.imageVersion_=GH(Q,2)),O.call(G,Q.imageVersion_),O=G.push,Q=this.parsedImageUrl_,Q.signature_==void 0&&(Q.signature_=GH(Q,3)),O.call(G,Q.signature_),Y&&G.push(Y),Y=G.push,
O=this.parsedImageUrl_,O.filename_==void 0&&(O.filename_=GH(O,5)),Y.call(G,O.filename_);G=u?G.join("="):G.join("/");G=_.bI(this.protocolPrefix_+this.JSC$19913_domain_+"/"+G+(this.JSC$19913_query_?"?"+this.JSC$19913_query_:"")).toString();G.startsWith("%3a//")&&(G=G.replace("%3a//","://"));return G};_.qz(tc,_.Xd);tc.prototype.JSC$10399_setLabel=function(Y){tc.superClass_.JSC$10399_setLabel.call(this,Y);return this};
tc.prototype.addUploadMetadata=function(Y,G){tc.superClass_.addUploadMetadata.call(this,Y,G);return this};var bZw=function(Y){if(Y!=="youtubebanner"&&Y!=="youtube-channel-banner")throw Error("Gk");tc.call(this,Y)};
_.m(bZw,tc);bZw.prototype.JSC$10399_setLabel=function(Y){tc.prototype.JSC$10399_setLabel.call(this,Y);return this};
bZw.prototype.addUploadMetadata=function(Y,G){tc.prototype.addUploadMetadata.call(this,Y,G);return this};var S6S=[0,_.ca,_.bO,_.ca,-1,_.bO,[0,_.S5,_.j5,-1],_.ca,-1];var NMS=[0,[1,2,3],_.lO,-2];var jt9=[0,_.ca];var VZB=_.hV(["viewBox"]),lYg=_.hV(["width"]),BMb=_.hV(["height"]),$Hx=_.hV(["fill"]),q6N=_.hV(["id"]),stN=_.hV(["x"]),ciS=_.hV(["y"]);zYB.prototype.getLength=function(){return this.parsedData.length};
zYB.prototype.write=function(Y){for(var G=0,u=this.parsedData.length;G<u;G++)Y.put(this.parsedData[G],8)};
var yj9=function(Y,G){var u=new zYB(G);Y.dataList.push(u);u=Y.errorCorrectLevel;var O=1,Q=encodeURI(G).toString().replace(/%[0-9a-fA-F]{2}/g,"a");G=Q.length+(Q.length!=G?3:0);Q=0;for(var M=uC.length;Q<=M;Q++){var t=0;switch(u){case 1:t=uC[Q][0];break;case 0:t=uC[Q][1];break;case 3:t=uC[Q][2];break;case 2:t=uC[Q][3]}if(G<=t)break;else O++}if(O>uC.length)throw Error("Pk");Y.typeNumber=O;Y.dataCache=null};
mbj.prototype.isDark=function(Y,G){if(Y<0||this.moduleCount<=Y||G<0||this.moduleCount<=G)throw Error("Hk`"+Y+"`"+G);return this.modules[Y][G]};
for(var eY9=function(Y,G,u){Y.moduleCount=Y.typeNumber*4+17;Y.modules=Array(Y.moduleCount);for(var O=0;O<Y.moduleCount;O++){Y.modules[O]=Array(Y.moduleCount);for(var Q=0;Q<Y.moduleCount;Q++)Y.modules[O][Q]=null}UHj(Y,0,0);UHj(Y,Y.moduleCount-7,0);UHj(Y,0,Y.moduleCount-7);O=vfx[Y.typeNumber-1];for(Q=0;Q<O.length;Q++)for(var M=0;M<O.length;M++){var t=O[Q],K=O[M];if(Y.modules[t][K]==null)for(var L=-2;L<=2;L++)for(var g=-2;g<=2;g++)Y.modules[t+L][K+g]=L==-2||L==2||g==-2||g==2||L==0&&g==0?!0:!1}for(O=
8;O<Y.moduleCount-8;O++)Y.modules[O][6]==null&&(Y.modules[O][6]=O%2==0);for(O=8;O<Y.moduleCount-8;O++)Y.modules[6][O]==null&&(Y.modules[6][O]=O%2==0);O=Y.errorCorrectLevel<<3|u;for(Q=O<<10;OQ(Q)-OQ(1335)>=0;)Q^=1335<<OQ(Q)-OQ(1335);O=(O<<10|Q)^21522;for(Q=0;Q<15;Q++)M=!G&&(O>>Q&1)==1,Q<6?Y.modules[Q][8]=M:Q<8?Y.modules[Q+1][8]=M:Y.modules[Y.moduleCount-15+Q][8]=M;for(Q=0;Q<15;Q++)M=!G&&(O>>Q&1)==1,Q<8?Y.modules[8][Y.moduleCount-Q-1]=M:Q<9?Y.modules[8][15-Q-1+1]=M:Y.modules[8][15-Q-1]=M;Y.modules[Y.moduleCount-
8][8]=!G;if(Y.typeNumber>=7){O=Y.typeNumber;for(Q=O<<12;OQ(Q)-OQ(7973)>=0;)Q^=7973<<OQ(Q)-OQ(7973);O=O<<12|Q;for(Q=0;Q<18;Q++)M=!G&&(O>>Q&1)==1,Y.modules[Math.floor(Q/3)][Q%3+Y.moduleCount-8-3]=M;for(Q=0;Q<18;Q++)M=!G&&(O>>Q&1)==1,Y.modules[Q%3+Y.moduleCount-8-3][Math.floor(Q/3)]=M}if(Y.dataCache==null){Q=Y.typeNumber;M=Y.dataList;G=Y.errorCorrectLevel;O=Jib(Q,G);if(O==void 0)throw Error("Ok`"+Q+"`"+G);t=O.length/3;G=[];for(K=0;K<t;K++){L=O[K*3];g=O[K*3+1];for(var P=O[K*3+2],I=0;I<L;I++)G.push(new WOj(g,
P))}O=new rj9;for(t=0;t<M.length;t++)K=M[t],O.put(K.mode,4),O.put(K.getLength(),Yoo(K.mode,Q)),K.write(O);for(t=Q=0;t<G.length;t++)Q+=G[t].dataCount;if(O.length>Q*8)throw Error("Ik`"+O.length+"`"+Q*8);for(O.length+4<=Q*8&&O.put(0,4);O.length%8!=0;)GeV(O,!1);for(;!(O.length>=Q*8);){O.put(236,8);if(O.length>=Q*8)break;O.put(17,8)}M=Q=g=0;t=Array(G.length);K=Array(G.length);for(L=0;L<G.length;L++){I=G[L].dataCount;var k=G[L].totalCount-I;Q=Math.max(Q,I);M=Math.max(M,k);t[L]=Array(I);for(P=0;P<t[L].length;P++)t[L][P]=
255&O.buffer[P+g];g+=I;P=k;I=new KW([1],0);for(k=0;k<P;k++)I=I.multiply(new KW([1,uGx(k)],0));P=I;I=(new KW(t[L],P.getLength()-1)).mod(P);K[L]=Array(P.getLength()-1);for(P=0;P<K[L].length;P++)k=P+I.getLength()-K[L].length,K[L][P]=k>=0?I.get(k):0}for(P=O=0;P<G.length;P++)O+=G[P].totalCount;O=Array(O);for(P=g=0;P<Q;P++)for(L=0;L<G.length;L++)P<t[L].length&&(O[g++]=t[L][P]);for(P=0;P<M;P++)for(L=0;L<G.length;L++)P<K[L].length&&(O[g++]=K[L][P]);Y.dataCache=O}G=Y.dataCache;O=-1;Q=Y.moduleCount-1;M=7;t=
0;for(K=Y.moduleCount-1;K>0;K-=2)for(K==6&&K--;;){for(L=0;L<2;L++)Y.modules[Q][K-L]==null&&(g=!1,t<G.length&&(g=(G[t]>>>M&1)==1),O8j(u,Q,K-L)&&(g=!g),Y.modules[Q][K-L]=g,M--,M==-1&&(t++,M=7));Q+=O;if(Q<0||Y.moduleCount<=Q){Q-=O;O=-O;break}}},UHj=function(Y,G,u){for(var O=-1;O<=7;O++)if(!(G+O<=-1||Y.moduleCount<=G+O))for(var Q=-1;Q<=7;Q++)u+Q<=-1||Y.moduleCount<=u+Q||(Y.modules[G+O][u+Q]=0<=O&&O<=6&&(Q==0||Q==6)||0<=Q&&Q<=6&&(O==0||O==6)||2<=O&&O<=4&&2<=Q&&Q<=4?!0:!1)},Ajj=function(Y){for(var G=0,
u=0,O=0;O<8;O++){eY9(Y,!0,O);
var Q=Y;for(var M=Q.moduleCount,t=0,K=0;K<M;K++)for(var L=0;L<M;L++){for(var g=0,P=Q.isDark(K,L),I=-1;I<=1;I++)if(!(K+I<0||M<=K+I))for(var k=-1;k<=1;k++)L+k<0||M<=L+k||(I!=0||k!=0)&&P==Q.isDark(K+I,L+k)&&g++;g>5&&(t+=3+g-5)}for(K=0;K<M-1;K++)for(L=0;L<M-1;L++)if(g=0,Q.isDark(K,L)&&g++,Q.isDark(K+1,L)&&g++,Q.isDark(K,L+1)&&g++,Q.isDark(K+1,L+1)&&g++,g==0||g==4)t+=3;for(K=0;K<M;K++)for(L=0;L<M-6;L++)Q.isDark(K,L)&&!Q.isDark(K,L+1)&&Q.isDark(K,L+2)&&Q.isDark(K,L+3)&&Q.isDark(K,L+4)&&!Q.isDark(K,L+5)&&
Q.isDark(K,L+6)&&(t+=40);for(L=0;L<M;L++)for(K=0;K<M-6;K++)Q.isDark(K,L)&&!Q.isDark(K+1,L)&&Q.isDark(K+2,L)&&Q.isDark(K+3,L)&&Q.isDark(K+4,L)&&!Q.isDark(K+5,L)&&Q.isDark(K+6,L)&&(t+=40);for(L=g=0;L<M;L++)for(K=0;K<M;K++)Q.isDark(K,L)&&g++;Q=t+=Math.abs(100*g/M/M-50)/5*10;if(O==0||G>Q)G=Q,u=O}return u},vfx=[[],
[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]],OQ=function(Y){for(var G=0;Y!=0;)G++,Y>>>=1;return G},O8j=function(Y,G,u){switch(Y){case 0:return(G+u)%2==0;
case 1:return G%2==0;case 2:return u%3==0;case 3:return(G+u)%3==0;case 4:return(Math.floor(G/2)+Math.floor(u/3))%2==0;case 5:return G*u%2+G*u%3==0;case 6:return(G*u%2+G*u%3)%2==0;case 7:return(G*u%3+(G+u)%2)%2==0;default:throw Error("Jk`"+Y);}},Yoo=function(Y,G){if(1<=G&&G<10)switch(Y){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Kk`"+Y);}else if(G<27)switch(Y){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Kk`"+Y);}else if(G<41)switch(Y){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Kk`"+Y);}else throw Error("Lk`"+G);},Mxy=function(Y){if(Y<1)throw Error("Mk`"+Y);
return QVg[Y]},uGx=function(Y){for(;Y<0;)Y+=255;
for(;Y>=256;)Y-=255;return QU[Y]},QU=Array(256),QVg=Array(256),H8b=0;H8b<8;H8b++)QU[H8b]=1<<H8b;
for(var Mx=8;Mx<256;Mx++)QU[Mx]=QU[Mx-4]^QU[Mx-5]^QU[Mx-6]^QU[Mx-8];for(var EKo=0;EKo<255;EKo++)QVg[QU[EKo]]=EKo;KW.prototype.get=function(Y){return this.num[Y]};
KW.prototype.getLength=function(){return this.num.length};
KW.prototype.multiply=function(Y){for(var G=Array(this.getLength()+Y.getLength()-1),u=0;u<this.getLength();u++)for(var O=0;O<Y.getLength();O++)G[u+O]^=uGx(Mxy(this.get(u))+Mxy(Y.get(O)));return new KW(G,0)};
KW.prototype.mod=function(Y){if(this.getLength()-Y.getLength()<0)return this;for(var G=Mxy(this.get(0))-Mxy(Y.get(0)),u=Array(this.getLength()),O=0;O<this.getLength();O++)u[O]=this.get(O);for(O=0;O<Y.getLength();O++)u[O]^=uGx(Mxy(Y.get(O))+G);return(new KW(u,0)).mod(Y)};
var tx9=[[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]],Jib=function(Y,G){switch(G){case 1:return tx9[(Y-1)*4];case 0:return tx9[(Y-1)*4+1];case 3:return tx9[(Y-1)*4+2];case 2:return tx9[(Y-1)*4+3]}};
rj9.prototype.get=function(Y){return(this.buffer[Math.floor(Y/8)]>>>7-Y%8&1)==1};
rj9.prototype.put=function(Y,G){for(var u=0;u<G;u++)GeV(this,(Y>>>G-u-1&1)==1)};
var GeV=function(Y,G){var u=Math.floor(Y.length/8);Y.buffer.length<=u&&Y.buffer.push(0);G&&(Y.buffer[u]|=128>>>Y.length%8);Y.length++},uC=[[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]],CMN=function(){var Y=function(G,u){this.JSC$19939__el=G;this.JSC$19939__htOption=u};
Y.prototype.draw=function(G){function u(P,I){P=document.createElementNS("http://www.w3.org/2000/svg",P);for(var k in I)I.hasOwnProperty(k)&&(k==="href"?Aox(P,I[k]):_.k6([_.rg(VZB),_.rg(lYg),_.rg(BMb),_.rg($Hx),_.rg(q6N),_.rg(stN),_.rg(ciS)],P,k,I[k]));return P}
var O=this.JSC$19939__htOption,Q=this.JSC$19939__el,M=G.moduleCount;this.clear();var t=u("svg",{viewBox:"0 0 "+String(M)+" "+String(M),width:"100%",height:"100%",fill:O.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});Q.appendChild(t);t.appendChild(u("rect",{fill:O.colorLight,width:"100%",height:"100%"}));t.appendChild(u("rect",{fill:O.colorDark,width:"1",height:"1",id:"template"}));for(var K=0;K<M;K++)for(var L=0;L<M;L++)if(G.isDark(K,L)){var g=u("use",{x:String(K),y:String(L),href:"#template"});
t.appendChild(g)}};
Y.prototype.clear=function(){for(;this.JSC$19939__el.hasChildNodes();)this.JSC$19939__el.removeChild(this.JSC$19939__el.lastChild)};
return Y}(),fSN=document.documentElement.tagName.toLowerCase()==="svg"?CMN:typeof CanvasRenderingContext2D!="undefined"?function(){var Y=function(G,u){this._bIsPainted=!1;
xb9();this.JSC$19939__htOption=u;this._elCanvas=document.createElement("canvas");this._elCanvas.width=u.width;this._elCanvas.height=u.height;G.appendChild(this._elCanvas);this.JSC$19939__el=G;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$19939__el.appendChild(this._elImage);this._bSupportDataURI=null};
Y.prototype._onMakeImage=function(){var G=this._elCanvas.toDataURL("image/png");this._elImage.src=G;this._elImage.style.display="block";this._elCanvas.style.display="none"};
Y.prototype._safeSetDataURI=function(G,u){var O=this;O._fFail=u;O._fSuccess=G;O._bSupportDataURI===null?(G=_.uI("IMG"),u=function(){O._bSupportDataURI=!1;O._fFail&&O._fFail.call(O)},G.onabort=u,G.onerror=u,G.onload=function(){O._bSupportDataURI=!0;
O._fSuccess&&O._fSuccess.call(O)},G.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):O._bSupportDataURI===!0&&O._fSuccess?O._fSuccess.call(O):O._bSupportDataURI===!1&&O._fFail&&O._fFail.call(O)};
Y.prototype.draw=function(G){var u=this._oContext,O=this.JSC$19939__htOption,Q=G.moduleCount,M=O.width/Q,t=O.height/Q,K=Math.round(M),L=Math.round(t);this._elImage.style.display="none";this.clear();for(var g=0;g<Q;g++)for(var P=0;P<Q;P++){var I=G.isDark(g,P),k=P*M,n=g*t;u.strokeStyle=I?O.colorDark:O.colorLight;u.lineWidth=1;u.fillStyle=I?O.colorDark:O.colorLight;u.fillRect(k,n,M,t);u.strokeRect(Math.floor(k)+.5,Math.floor(n)+.5,K,L);u.strokeRect(Math.ceil(k)-.5,Math.ceil(n)-.5,K,L)}this._bIsPainted=
!0};
Y.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
Y.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
Y.prototype.round=function(G){return G?Math.floor(G*1E3)/1E3:G};
return Y}():function(){var Y=function(G,u){this.JSC$19939__el=G;
this.JSC$19939__htOption=u};
Y.prototype.draw=function(G){for(var u=this.JSC$19939__htOption,O=this.JSC$19939__el,Q=G.moduleCount,M=Math.floor(u.width/Q),t=Math.floor(u.height/Q),K=['<table style="border:0;border-collapse:collapse;">'],L=0;L<Q;L++){K.push("<tr>");for(var g=0;g<Q;g++)K.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+M+"px;height:"+t+"px;background-color:"+(G.isDark(L,g)?u.colorDark:u.colorLight)+';"></td>');K.push("</tr>")}K.push("</table>");G=K.join("");G=_.DUU.sanitize(G);_.IA(O,
G);G=O.childNodes[0];Q=(u.width-G.offsetWidth)/2;M=(u.height-G.offsetHeight)/2;Q>0&&M>0&&(G.style.margin=M+"px "+Q+"px")};
Y.prototype.clear=function(){this.JSC$19939__el.textContent=""};
return Y}();
ooN.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19942__android||this.JSC$19942__android>=3)&&this._oDrawing.makeImage()};
ooN.prototype.clear=function(){this._oDrawing.clear()};
_.OI.QRCode=ooN;var Keo={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var lSB=function(){};
lSB.prototype.stringify=function(Y){return _.OI.JSON.stringify(Y,void 0)};
lSB.prototype.parse=function(Y){return _.OI.JSON.parse(Y,void 0)};var amb=function(){_.lI.call(this,"z")};
_.qz(amb,_.lI);var TWV=function(){_.lI.call(this,"y")};
_.qz(TWV,_.lI);var RYw=null;_.qz(ZDj,_.lI);_.qz(hYb,_.lI);_.qz(dby,_.lI);Ta.prototype.disableRedact=function(){this.redactEnabled_=!1};
var LeS=function(Y,G,u,O,Q,M){Y.info(function(){if(Y.redactEnabled_)if(M){var t="";for(var K=M.split("&"),L=0;L<K.length;L++){var g=K[L].split("=");if(g.length>1){var P=g[0];g=g[1];var I=P.split("_");t=I.length>=2&&I[1]=="type"?t+(P+"="+g+"&"):t+(P+"=redacted&")}}}else t=null;else t=M;return"XMLHTTP REQ ("+O+") [attempt "+Q+"]: "+G+"\n"+u+"\n"+t})},gKx=function(Y,G,u,O,Q,M,t){Y.info(function(){return"XMLHTTP RESP ("+O+") [ attempt "+Q+"]: "+G+"\n"+u+"\n"+M+" "+t})},Hr=function(Y,G,u,O){Y.info(function(){return"XMLHTTP TEXT ("+
G+"): "+Xfy(Y,u)+(O?" "+O:"")})},PAj=function(Y,G){Y.info(function(){return"TIMEOUT: "+G})};
Ta.prototype.debug=function(){};
Ta.prototype.info=function(){};
Ta.prototype.warning=function(){};
var Xfy=function(Y,G){if(!Y.redactEnabled_)return G;if(!G)return null;try{var u=JSON.parse(G);if(u)for(var O=0;O<u.length;O++)if(Array.isArray(u[O])){var Q=u[O];if(!(Q.length<2)){var M=Q[1];if(Array.isArray(M)&&!(M.length<1)){var t=M[0];if(t!="noop"&&t!="stop"&&t!="close")for(var K=1;K<M.length;K++)M[K]=""}}}return _.fV(u)}catch(L){return Y.debug("Exception parsing expected JS array - probably was not JS"),G}};var NBg=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},Im9=function(Y,G){switch(Y){case 0:return"Non-200 return code ("+G+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},keN={},nK9={};
LW.prototype.setTimeout=function(Y){this.timeout_=Y};
var pfo=function(Y,G,u){Y.JSC$19964_type_=1;Y.JSC$19964_baseUri_=_.GM(G.clone());Y.JSC$19964_postData_=u;Y.decodeChunks_=!0;FeN(Y,null)},FeN=function(Y,G){Y.JSC$19964_requestStartTime_=Date.now();
z6w(Y);Y.JSC$19964_requestUri_=Y.JSC$19964_baseUri_.clone();rtS(Y.JSC$19964_requestUri_,"t",Y.JSC$19964_retryId_);Y.JSC$19964_xmlHttpChunkStart_=0;var u=Y.JSC$19964_channel_.JSC$19983_supportsCrossDomainXhrs_;Y.fetchResponseState_=new NBg;Y.JSC$19964_xmlHttp_=meS(Y.JSC$19964_channel_,u?G:null,!Y.JSC$19964_postData_);Y.JSC$19964_readyStateChangeThrottleMs_>0&&(Y.JSC$19964_readyStateChangeThrottle_=new _.JR((0,_.tP)(Y.JSC$19968_xmlHttpHandler_,Y,Y.JSC$19964_xmlHttp_),Y.JSC$19964_readyStateChangeThrottleMs_));
Y.JSC$19964_eventHandler_.listen(Y.JSC$19964_xmlHttp_,"readystatechange",Y.JSC$19968_readyStateChangeHandler_);G=Y.JSC$19964_extraHeaders_?_.gX.clone(Y.JSC$19964_extraHeaders_):{};Y.JSC$19964_postData_?(Y.JSC$19964_verb_||(Y.JSC$19964_verb_="POST"),G["Content-Type"]="application/x-www-form-urlencoded",Y.JSC$19964_xmlHttp_.send(Y.JSC$19964_requestUri_,Y.JSC$19964_verb_,Y.JSC$19964_postData_,G)):(Y.JSC$19964_verb_="GET",Y.JSC$19964_xmlHttp_.send(Y.JSC$19964_requestUri_,Y.JSC$19964_verb_,null,G));Db9(1);
LeS(Y.JSC$19964_channelDebug_,Y.JSC$19964_verb_,Y.JSC$19964_requestUri_,Y.JSC$19964_rid_,Y.JSC$19964_retryId_,Y.JSC$19964_postData_)};
LW.prototype.JSC$19968_readyStateChangeHandler_=function(Y){Y=Y.target;var G=this.JSC$19964_readyStateChangeThrottle_;G&&_.yB(Y)==3?(this.JSC$19964_channelDebug_.debug("Throttling readystatechange."),G.fire()):this.JSC$19968_xmlHttpHandler_(Y)};
LW.prototype.JSC$19968_xmlHttpHandler_=function(Y){try{Y==this.JSC$19964_xmlHttp_?WeN(this):this.JSC$19964_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(G){this.JSC$19964_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),rsw(this)}finally{}};
var WeN=function(Y){var G=_.yB(Y.JSC$19964_xmlHttp_),u=Y.JSC$19964_xmlHttp_.JSC$10117_lastErrorCode_,O=Y.JSC$19964_xmlHttp_.getStatus();if(!(G<3||G==3&&!rsw(Y))){Y.JSC$19964_cancelled_||G!=4||u==7||(u==8||O<=0?Db9(3):Db9(2));xeb(Y);var Q=Y.JSC$19964_xmlHttp_.getStatus();Y.JSC$19964_lastStatusCode_=Q;u=fmN(Y);rsw(Y)||Y.JSC$19964_channelDebug_.debug(function(){return"No response text for uri "+Y.JSC$19964_requestUri_+" status "+Q});
Y.JSC$19964_successful_=Q==200;gKx(Y.JSC$19964_channelDebug_,Y.JSC$19964_verb_,Y.JSC$19964_requestUri_,Y.JSC$19964_rid_,Y.JSC$19964_retryId_,G,Q);if(Y.JSC$19964_successful_){if(Y.decodeInitialResponse_&&!Y.initialResponseDecoded_)if(O=CAx(Y))Hr(Y.JSC$19964_channelDebug_,Y.JSC$19964_rid_,O,"Initial handshake response via X-HTTP-Initial-Response"),Y.initialResponseDecoded_=!0,ysN(Y,O);else{Y.JSC$19964_successful_=!1;Y.JSC$19964_lastError_=3;a6(12);Y.JSC$19964_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
Y.JSC$19964_rid_+")");EQ(Y);e69(Y);return}Y.decodeChunks_?AsS(Y,G,u):(Hr(Y.JSC$19964_channelDebug_,Y.JSC$19964_rid_,u,null),ysN(Y,u));G==4&&EQ(Y);Y.JSC$19964_successful_&&!Y.JSC$19964_cancelled_&&(G==4?oK9(Y.JSC$19964_channel_,Y):(Y.JSC$19964_successful_=!1,z6w(Y)))}else m$y(Y.JSC$19964_xmlHttp_),Q==400&&u.indexOf("Unknown SID")>0?(Y.JSC$19964_lastError_=3,a6(12),Y.JSC$19964_channelDebug_.warning("XMLHTTP Unknown SID ("+Y.JSC$19964_rid_+")")):(Y.JSC$19964_lastError_=0,a6(13),Y.JSC$19964_channelDebug_.warning("XMLHTTP Bad status "+
Q+" ("+Y.JSC$19964_rid_+")")),EQ(Y),e69(Y)}},CAx=function(Y){return Y.JSC$19964_xmlHttp_&&(Y=TGg(Y.JSC$19964_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.K1(Y)?Y:null},fmN=function(Y){if(!i8S(Y))return Y.JSC$19964_xmlHttp_.getResponseText();
var G=Y.JSC$19964_xmlHttp_.getResponse();if(G==="")return"";var u="",O=G.length,Q=_.yB(Y.JSC$19964_xmlHttp_)==4;if(!Y.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return EQ(Y),e69(Y),"";Y.fetchResponseState_.textDecoder=new _.OI.TextDecoder}for(var M=0;M<O;M++)Y.fetchResponseState_.responseArrivedForFetch=!0,u+=Y.fetchResponseState_.textDecoder.decode(G[M],{stream:!(Q&&M==O-1)});G.length=0;Y.fetchResponseState_.responseBuffer+=u;Y.JSC$19964_xmlHttpChunkStart_=0;return Y.fetchResponseState_.responseBuffer},
rsw=function(Y){return Y.JSC$19964_xmlHttp_?Y.fetchResponseState_.responseArrivedForFetch?!0:!(!Y.JSC$19964_xmlHttp_.getResponseText()&&!Y.JSC$19964_xmlHttp_.getResponse()):!1},i8S=function(Y){return Y.JSC$19964_xmlHttp_?Y.JSC$19964_verb_=="GET"&&Y.JSC$19964_type_!=2&&Y.JSC$19964_channel_.usesFetchStreams_:!1},AsS=function(Y,G,u){for(var O=!0,Q;!Y.JSC$19964_cancelled_&&Y.JSC$19964_xmlHttpChunkStart_<u.length;)if(Q=R6N(Y,u),Q==nK9){G==4&&(Y.JSC$19964_lastError_=4,a6(14),O=!1);
Hr(Y.JSC$19964_channelDebug_,Y.JSC$19964_rid_,null,"[Incomplete Response]");break}else if(Q==keN){Y.JSC$19964_lastError_=4;a6(15);Hr(Y.JSC$19964_channelDebug_,Y.JSC$19964_rid_,u,"[Invalid Chunk]");O=!1;break}else Hr(Y.JSC$19964_channelDebug_,Y.JSC$19964_rid_,Q,null),ysN(Y,Q);i8S(Y)&&Y.JSC$19964_xmlHttpChunkStart_!=0&&(Y.fetchResponseState_.responseBuffer=Y.fetchResponseState_.responseBuffer.slice(Y.JSC$19964_xmlHttpChunkStart_),Y.JSC$19964_xmlHttpChunkStart_=0);G!=4||u.length!=0||Y.fetchResponseState_.responseArrivedForFetch||
(Y.JSC$19964_lastError_=1,a6(16),O=!1);Y.JSC$19964_successful_=Y.JSC$19964_successful_&&O;O?u.length>0&&!Y.firstByteReceived_&&(Y.firstByteReceived_=!0,G=Y.JSC$19964_channel_,G.JSC$19983_backChannelRequest_==Y&&G.detectBufferingProxy_&&!G.bpDetectionDone_&&(G.JSC$19983_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+u.length),wfV(G),G.bpDetectionDone_=!0,a6(11))):(Hr(Y.JSC$19964_channelDebug_,Y.JSC$19964_rid_,u,"[Invalid Chunked Response]"),EQ(Y),e69(Y))},R6N=function(Y,
G){var u=Y.JSC$19964_xmlHttpChunkStart_,O=G.indexOf("\n",u);
if(O==-1)return nK9;u=Number(G.substring(u,O));if(isNaN(u))return keN;O+=1;if(O+u>G.length)return nK9;G=G.slice(O,O+u);Y.JSC$19964_xmlHttpChunkStart_=O+u;return G};
LW.prototype.cancel=function(){this.JSC$19964_cancelled_=!0;EQ(this)};
var z6w=function(Y){Y.JSC$19964_watchDogTimeoutTime_=Date.now()+Y.timeout_;Z8N(Y,Y.timeout_)},Z8N=function(Y,G){if(Y.JSC$19964_watchDogTimerId_!=null)throw Error("Rk");
Y.JSC$19964_watchDogTimerId_=Sx9((0,_.tP)(Y.JSC$19968_onWatchDogTimeout_,Y),G)},xeb=function(Y){Y.JSC$19964_watchDogTimerId_&&(_.OI.clearTimeout(Y.JSC$19964_watchDogTimerId_),Y.JSC$19964_watchDogTimerId_=null)};
LW.prototype.JSC$19968_onWatchDogTimeout_=function(){this.JSC$19964_watchDogTimerId_=null;var Y=Date.now();Y-this.JSC$19964_watchDogTimeoutTime_>=0?(PAj(this.JSC$19964_channelDebug_,this.JSC$19964_requestUri_),this.JSC$19964_type_!=2&&(Db9(3),a6(17)),EQ(this),this.JSC$19964_lastError_=2,e69(this)):(this.JSC$19964_channelDebug_.warning("WatchDog timer called too early"),Z8N(this,this.JSC$19964_watchDogTimeoutTime_-Y))};
var e69=function(Y){Y.JSC$19964_channel_.state_==0||Y.JSC$19964_cancelled_||oK9(Y.JSC$19964_channel_,Y)},EQ=function(Y){xeb(Y);
_.ZM(Y.JSC$19964_readyStateChangeThrottle_);Y.JSC$19964_readyStateChangeThrottle_=null;Y.JSC$19964_eventHandler_.removeAll();if(Y.JSC$19964_xmlHttp_){var G=Y.JSC$19964_xmlHttp_;Y.JSC$19964_xmlHttp_=null;G.abort();G.dispose()}};
LW.prototype.getLastError=function(){return this.JSC$19964_lastError_};
var ysN=function(Y,G){try{var u=Y.JSC$19964_channel_;if(u.state_!=0&&(u.JSC$19983_backChannelRequest_==Y||Dex(u.forwardChannelRequestPool_,Y)))if(!Y.initialResponseDecoded_&&Dex(u.forwardChannelRequestPool_,Y)&&u.state_==3){try{var O=u.wireCodec_.JSC$19978_parser_.parse(G)}catch(K){O=null}if(Array.isArray(O)&&O.length==3){G=O;if(G[0]==0)a:if(u.JSC$19983_channelDebug_.debug("Server claims our backchannel is missing."),u.JSC$19983_backChannelTimerId_)u.JSC$19983_channelDebug_.debug("But we are currently starting the request.");
else{if(u.JSC$19983_backChannelRequest_)if(u.JSC$19983_backChannelRequest_.JSC$19964_requestStartTime_+3E3<Y.JSC$19964_requestStartTime_)h6N(u),deN(u);else break a;else u.JSC$19983_channelDebug_.warning("We do not have a BackChannel established");b8x(u);a6(18)}else{u.JSC$19983_lastPostResponseArrayId_=G[1];var Q=u.JSC$19983_lastPostResponseArrayId_-u.JSC$19983_lastArrayId_;if(0<Q){var M=G[2];u.JSC$19983_channelDebug_.debug(M+" bytes (in "+Q+" arrays) are outstanding on the BackChannel");M<37500&&
u.enableStreaming_&&u.JSC$19983_backChannelRetryCount_==0&&!u.JSC$19983_deadBackChannelTimerId_&&(u.JSC$19983_deadBackChannelTimerId_=Sx9((0,_.tP)(u.JSC$19985_onBackChannelDead_,u),6E3))}}if(Soy(u.forwardChannelRequestPool_)<=1&&u.forwardChannelFlushedCallback_){try{u.forwardChannelFlushedCallback_()}catch(K){}u.forwardChannelFlushedCallback_=void 0}}else u.JSC$19983_channelDebug_.debug("Bad POST response data returned"),tn(u,11)}else if((Y.initialResponseDecoded_||u.JSC$19983_backChannelRequest_==
Y)&&h6N(u),!_.K1(G)){var t=u.wireCodec_.JSC$19978_parser_.parse(G);u.onInput_(t,Y)}Db9(4)}catch(K){}};var NWg=function(Y,G){this.JSC$19971_mapId=Y;this.map=G;this.context=null};var qxg=function(Y){this.maxPoolSizeConfigured_=Y||10;_.OI.PerformanceNavigationTiming?(Y=_.OI.performance.getEntriesByType("navigation"),Y=Y.length>0&&(Y[0].nextHopProtocol=="hq"||Y[0].nextHopProtocol=="h2")):Y=!!(_.OI.chrome&&_.OI.chrome.loadTimes&&_.OI.chrome.loadTimes()&&_.OI.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19974_maxSize_=Y?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19974_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19974_request_=null;this.JSC$19974_pendingMessages_=
[]},jVN=function(Y){return Y.JSC$19974_request_?!0:Y.requestPool_?Y.requestPool_.size>=Y.JSC$19974_maxSize_:!1},Soy=function(Y){return Y.JSC$19974_request_?1:Y.requestPool_?Y.requestPool_.size:0},Dex=function(Y,G){return Y.JSC$19974_request_?Y.JSC$19974_request_==G:Y.requestPool_?Y.requestPool_.has(G):!1},Vxx=function(Y,G){Y.requestPool_?Y.requestPool_.add(G):Y.JSC$19974_request_=G},lmS=function(Y,G){Y.JSC$19974_request_&&Y.JSC$19974_request_==G?Y.JSC$19974_request_=null:Y.requestPool_&&Y.requestPool_.has(G)&&
Y.requestPool_.delete(G)};
qxg.prototype.cancel=function(){this.JSC$19974_pendingMessages_=BW9(this);if(this.JSC$19974_request_)this.JSC$19974_request_.cancel(),this.JSC$19974_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var Y=_.E(this.requestPool_.values()),G=Y.next();!G.done;G=Y.next())G.value.cancel();this.requestPool_.clear()}};
var BW9=function(Y){if(Y.JSC$19974_request_!=null)return Y.JSC$19974_pendingMessages_.concat(Y.JSC$19974_request_.JSC$19964_pendingMessages_);if(Y.requestPool_!=null&&Y.requestPool_.size!==0){var G=Y.JSC$19974_pendingMessages_;Y=_.E(Y.requestPool_.values());for(var u=Y.next();!u.done;u=Y.next())G=G.concat(u.value.JSC$19964_pendingMessages_);return G}return _.Vj(Y.JSC$19974_pendingMessages_)},$eS=function(Y,G){Y.JSC$19974_pendingMessages_=Y.JSC$19974_pendingMessages_.concat(G)};Xz.prototype.JSC$19985_channelVersion_=8;Xz.prototype.state_=1;
Xz.prototype.connect=function(Y,G,u,O){this.JSC$19983_channelDebug_.debug("connect()");a6(0);this.JSC$19983_path_=Y;this.JSC$19983_extraParams_=G||{};u&&O!==void 0&&(this.JSC$19983_extraParams_.OSID=u,this.JSC$19983_extraParams_.OAID=O);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19983_channelDebug_.debug("connectChannel_()");Y=qoV(this,null,this.JSC$19983_path_);this.JSC$19983_channelDebug_.debug("GetForwardChannelUri: "+Y);this.JSC$19983_forwardChannelUri_=Y;sVb(this)};
Xz.prototype.disconnect=function(){this.JSC$19983_channelDebug_.debug("disconnect()");csb(this);if(this.state_==3){var Y=this.JSC$19983_nextRid_++,G=this.JSC$19983_forwardChannelUri_.clone();_.NA(G,"SID",this.sid_);_.NA(G,"RID",Y);_.NA(G,"TYPE","terminate");Ue9(this,G);Y=new LW(this,this.JSC$19983_channelDebug_,this.sid_,Y);Y.JSC$19964_type_=2;Y.JSC$19964_baseUri_=_.GM(G.clone());G=!1;if(_.OI.navigator&&_.OI.navigator.sendBeacon)try{G=_.OI.navigator.sendBeacon(Y.JSC$19964_baseUri_.toString(),"")}catch(u){}!G&&
_.OI.Image&&((new Image).src=Y.JSC$19964_baseUri_,G=!0);G||(Y.JSC$19964_xmlHttp_=meS(Y.JSC$19964_channel_,null),Y.JSC$19964_xmlHttp_.send(Y.JSC$19964_baseUri_));Y.JSC$19964_requestStartTime_=Date.now();z6w(Y)}vKx(this)};
var deN=function(Y){Y.JSC$19983_backChannelRequest_&&(wfV(Y),Y.JSC$19983_backChannelRequest_.cancel(),Y.JSC$19983_backChannelRequest_=null)},csb=function(Y){deN(Y);
Y.JSC$19983_backChannelTimerId_&&(_.OI.clearTimeout(Y.JSC$19983_backChannelTimerId_),Y.JSC$19983_backChannelTimerId_=null);h6N(Y);Y.forwardChannelRequestPool_.cancel();Y.JSC$19983_forwardChannelTimerId_&&(typeof Y.JSC$19983_forwardChannelTimerId_==="number"&&_.OI.clearTimeout(Y.JSC$19983_forwardChannelTimerId_),Y.JSC$19983_forwardChannelTimerId_=null)};
Xz.prototype.getState=function(){return this.state_};
var sVb=function(Y){jVN(Y.forwardChannelRequestPool_)||Y.JSC$19983_forwardChannelTimerId_||(Y.JSC$19983_forwardChannelTimerId_=!0,_.zj(Y.JSC$19985_onStartForwardChannelTimer_,Y),Y.JSC$19983_forwardChannelRetryCount_=0)},YaS=function(Y,G){if(Soy(Y.forwardChannelRequestPool_)>=Y.forwardChannelRequestPool_.JSC$19974_maxSize_-(Y.JSC$19983_forwardChannelTimerId_?1:0))return!1;
if(Y.JSC$19983_forwardChannelTimerId_)return Y.JSC$19983_channelDebug_.debug("Use the retry request that is already scheduled."),Y.JSC$19983_outgoingMaps_=G.JSC$19964_pendingMessages_.concat(Y.JSC$19983_outgoingMaps_),!0;if(Y.state_==1||Y.state_==2||Y.JSC$19983_forwardChannelRetryCount_>=(Y.JSC$19983_failFast_?0:Y.JSC$19983_forwardChannelMaxRetries_))return!1;Y.JSC$19983_channelDebug_.debug("Going to retry POST");Y.JSC$19983_forwardChannelTimerId_=Sx9((0,_.tP)(Y.JSC$19985_onStartForwardChannelTimer_,
Y,G),Js9(Y,Y.JSC$19983_forwardChannelRetryCount_));Y.JSC$19983_forwardChannelRetryCount_++;return!0};
Xz.prototype.JSC$19985_onStartForwardChannelTimer_=function(Y){if(this.JSC$19983_forwardChannelTimerId_)if(this.JSC$19983_forwardChannelTimerId_=null,this.JSC$19983_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!Y){this.JSC$19983_channelDebug_.debug("open_()");this.JSC$19983_nextRid_=Math.floor(Math.random()*1E5);Y=this.JSC$19983_nextRid_++;var G=new LW(this,this.JSC$19983_channelDebug_,"",Y),u=this.JSC$19983_extraHeaders_;this.initHeaders_&&(u?(u=_.gX.clone(u),_.gX.extend(u,this.initHeaders_)):
u=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(G.JSC$19964_extraHeaders_=u,u=null);var O;if(this.fastHandshake_)a:{for(var Q=O=0;Q<this.JSC$19983_outgoingMaps_.length;Q++){b:{var M=this.JSC$19983_outgoingMaps_[Q];if("__data__"in M.map&&(M=M.map.__data__,typeof M==="string")){M=M.length;break b}M=void 0}if(M===void 0)break;O+=M;if(O>4096){O=Q;break a}if(O===4096||Q===this.JSC$19983_outgoingMaps_.length-1){O=Q+1;break a}}O=this.maxMapsPerRequest_}else O=
this.maxMapsPerRequest_;O=GvS(this,G,O);Q=this.JSC$19983_forwardChannelUri_.clone();_.NA(Q,"RID",Y);_.NA(Q,"CVER",22);this.httpSessionIdParam_&&_.NA(Q,"X-HTTP-Session-Id",this.httpSessionIdParam_);Ue9(this,Q);u&&(this.encodeInitMessageHeaders_?O="headers="+_.Us(gwS(u))+"&"+O:this.httpHeadersOverwriteParam_&&XJB(Q,this.httpHeadersOverwriteParam_,u));Vxx(this.forwardChannelRequestPool_,G);this.blockingHandshake_&&_.NA(Q,"TYPE","init");this.fastHandshake_?(_.NA(Q,"$req",O),_.NA(Q,"SID","null"),G.decodeInitialResponse_=
!0,pfo(G,Q,null)):pfo(G,Q,O);this.state_=2}}else this.state_==3&&(Y?uvj(this,Y):this.JSC$19983_outgoingMaps_.length==0?this.JSC$19983_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):jVN(this.forwardChannelRequestPool_)||(uvj(this),this.JSC$19983_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var uvj=function(Y,G){var u;G?u=G.JSC$19964_rid_:u=Y.JSC$19983_nextRid_++;var O=Y.JSC$19983_forwardChannelUri_.clone();_.NA(O,"SID",Y.sid_);_.NA(O,"RID",u);_.NA(O,"AID",Y.JSC$19983_lastArrayId_);Ue9(Y,O);Y.httpHeadersOverwriteParam_&&Y.JSC$19983_extraHeaders_&&XJB(O,Y.httpHeadersOverwriteParam_,Y.JSC$19983_extraHeaders_);u=new LW(Y,Y.JSC$19983_channelDebug_,Y.sid_,u,Y.JSC$19983_forwardChannelRetryCount_+1);Y.httpHeadersOverwriteParam_===null&&(u.JSC$19964_extraHeaders_=Y.JSC$19983_extraHeaders_);
G&&(Y.JSC$19983_outgoingMaps_=G.JSC$19964_pendingMessages_.concat(Y.JSC$19983_outgoingMaps_));G=GvS(Y,u,Y.maxMapsPerRequest_);u.setTimeout(Math.round(Y.JSC$19983_forwardChannelRequestTimeoutMs_*.5)+Math.round(Y.JSC$19983_forwardChannelRequestTimeoutMs_*.5*Math.random()));Vxx(Y.forwardChannelRequestPool_,u);pfo(u,O,G)},Ue9=function(Y,G){Y.JSC$19983_extraParams_&&_.gX.forEach(Y.JSC$19983_extraParams_,function(u,O){_.NA(G,O,u)});
Y.handler_&&_.gX.forEach({},function(u,O){_.NA(G,O,u)})},GvS=function(Y,G,u){u=Math.min(Y.JSC$19983_outgoingMaps_.length,u);
var O=Y.handler_?(0,_.tP)(Y.handler_.JSC$19989_badMapError,Y.handler_,Y):null;a:{for(var Q=Y.JSC$19983_outgoingMaps_,M=-1;;){var t=["count="+u];M==-1?u>0?(M=Q[0].JSC$19971_mapId,t.push("ofs="+M)):M=0:t.push("ofs="+M);for(var K=!0,L=0;L<u;L++){var g=Q[L].JSC$19971_mapId,P=Q[L].map;g-=M;if(g<0)M=Math.max(0,Q[L].JSC$19971_mapId-100),K=!1;else try{g="req"+g+"_"||"";try{var I=P instanceof Map?P:Object.entries(P);for(var k=_.E(I),n=k.next();!n.done;n=k.next()){var p=_.E(n.value),W=p.next().value,C=p.next().value,
e=C;_.$a(C)&&(e=_.fV(C));t.push(g+W+"="+encodeURIComponent(e))}}catch(w){throw t.push(g+"type="+encodeURIComponent("_badmap")),w;}}catch(w){O&&O(P)}}if(K){I=t.join("&");break a}}I=void 0}Y=Y.JSC$19983_outgoingMaps_.splice(0,u);G.JSC$19964_pendingMessages_=Y;return I},ORS=function(Y){Y.JSC$19983_backChannelRequest_||Y.JSC$19983_backChannelTimerId_||(Y.JSC$19983_backChannelAttemptId_=1,_.zj(Y.JSC$19985_onStartBackChannelTimer_,Y),Y.JSC$19983_backChannelRetryCount_=0)},b8x=function(Y){if(Y.JSC$19983_backChannelRequest_||
Y.JSC$19983_backChannelTimerId_||Y.JSC$19983_backChannelRetryCount_>=3)return!1;
Y.JSC$19983_channelDebug_.debug("Going to retry GET");Y.JSC$19983_backChannelAttemptId_++;Y.JSC$19983_backChannelTimerId_=Sx9((0,_.tP)(Y.JSC$19985_onStartBackChannelTimer_,Y),Js9(Y,Y.JSC$19983_backChannelRetryCount_));Y.JSC$19983_backChannelRetryCount_++;return!0};
Xz.prototype.JSC$19985_onStartBackChannelTimer_=function(){this.JSC$19983_backChannelTimerId_=null;QHg(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19983_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19983_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19983_backChannelRequest_+" "+this.handshakeRttMs_);else{var Y=4*this.handshakeRttMs_;this.JSC$19983_channelDebug_.info("BP detection timer enabled: "+Y);this.bpDetectionTimerId_=Sx9((0,_.tP)(this.onBpDetectionTimer_,
this),Y)}};
Xz.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19983_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19983_backChannelRequest_.JSC$19964_xmlHttp_!=null){var Y=this.JSC$19983_backChannelRequest_.JSC$19964_xmlHttp_.getResponseText();Y&&this.JSC$19983_channelDebug_.warning("Timer should have been cancelled : "+Y)}this.JSC$19983_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;a6(10);deN(this);QHg(this)}else this.JSC$19983_channelDebug_.warning("Invalid operation.")};
var wfV=function(Y){Y.bpDetectionTimerId_!=null&&(Y.JSC$19983_channelDebug_.debug("Cancel the BP detection timer."),_.OI.clearTimeout(Y.bpDetectionTimerId_),Y.bpDetectionTimerId_=null)},QHg=function(Y){Y.JSC$19983_channelDebug_.debug("Creating new HttpRequest");
Y.JSC$19983_backChannelRequest_=new LW(Y,Y.JSC$19983_channelDebug_,Y.sid_,"rpc",Y.JSC$19983_backChannelAttemptId_);Y.httpHeadersOverwriteParam_===null&&(Y.JSC$19983_backChannelRequest_.JSC$19964_extraHeaders_=Y.JSC$19983_extraHeaders_);Y.JSC$19983_backChannelRequest_.JSC$19964_readyStateChangeThrottleMs_=0;var G=Y.JSC$19983_backChannelUri_.clone();_.NA(G,"RID","rpc");_.NA(G,"SID",Y.sid_);_.NA(G,"AID",Y.JSC$19983_lastArrayId_);_.NA(G,"CI",Y.enableStreaming_?"0":"1");!Y.enableStreaming_&&Y.longPollingTimeout_&&
_.NA(G,"TO",Y.longPollingTimeout_);_.NA(G,"TYPE","xmlhttp");Ue9(Y,G);Y.httpHeadersOverwriteParam_&&Y.JSC$19983_extraHeaders_&&XJB(G,Y.httpHeadersOverwriteParam_,Y.JSC$19983_extraHeaders_);Y.backChannelRequestTimeoutMs_&&Y.JSC$19983_backChannelRequest_.setTimeout(Y.backChannelRequestTimeoutMs_);var u=Y.JSC$19983_backChannelRequest_,O=Y.JSC$19983_hostPrefix_;u.JSC$19964_type_=1;u.JSC$19964_baseUri_=_.GM(G.clone());u.JSC$19964_postData_=null;u.decodeChunks_=!0;FeN(u,O);Y.JSC$19983_channelDebug_.debug("New Request created")};
Xz.prototype.JSC$19985_onBackChannelDead_=function(){this.JSC$19983_deadBackChannelTimerId_!=null&&(this.JSC$19983_deadBackChannelTimerId_=null,deN(this),b8x(this),a6(19))};
var h6N=function(Y){Y.JSC$19983_deadBackChannelTimerId_!=null&&(_.OI.clearTimeout(Y.JSC$19983_deadBackChannelTimerId_),Y.JSC$19983_deadBackChannelTimerId_=null)},oK9=function(Y,G){Y.JSC$19983_channelDebug_.debug("Request complete");
var u=null;if(Y.JSC$19983_backChannelRequest_==G){h6N(Y);wfV(Y);Y.JSC$19983_backChannelRequest_=null;var O=2}else if(Dex(Y.forwardChannelRequestPool_,G))u=G.JSC$19964_pendingMessages_,lmS(Y.forwardChannelRequestPool_,G),O=1;else return;if(Y.state_!=0)if(G.JSC$19964_successful_)O==1?(bDo(G.JSC$19964_postData_?G.JSC$19964_postData_.length:0,Date.now()-G.JSC$19964_requestStartTime_,Y.JSC$19983_forwardChannelRetryCount_),sVb(Y)):ORS(Y);else{var Q=G.JSC$19964_lastStatusCode_,M=G.getLastError();if(M==3||
M==0&&Q>0)Y.JSC$19983_channelDebug_.debug("Not retrying due to error type"),Q>200&&(Y.errorResponseStatusCode_=G.JSC$19964_lastStatusCode_);else{Y.JSC$19983_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Im9(M,Y.errorResponseStatusCode_)});
if(O==1&&YaS(Y,G)||O==2&&b8x(Y))return;Y.JSC$19983_channelDebug_.debug("Exceeded max number of retries")}u&&u.length>0&&$eS(Y.forwardChannelRequestPool_,u);Y.JSC$19983_channelDebug_.debug("Error: HTTP request failed");switch(M){case 1:tn(Y,5);break;case 4:tn(Y,10);break;case 3:tn(Y,6);break;default:tn(Y,2)}}},Js9=function(Y,G){var u=Y.JSC$19983_baseRetryDelayMs_+Math.floor(Math.random()*Y.JSC$19983_retryDelaySeedMs_);
Y.isActive()||(Y.JSC$19983_channelDebug_.debug("Inactive channel"),u*=2);return u*G};
Xz.prototype.onInput_=function(Y,G){for(var u=0;u<Y.length;u++){var O=Y[u],Q=O[0];if(Q<=this.JSC$19983_lastArrayId_)this.JSC$19983_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+Q+", lastArrayId: "+this.JSC$19983_lastArrayId_);else if(Q>this.JSC$19983_lastArrayId_+1&&this.JSC$19983_lastArrayId_>-1&&this.JSC$19983_channelDebug_.warning("Received non-consecutive message with arrayId: "+Q+", lastArrayId: "+this.JSC$19983_lastArrayId_),this.JSC$19983_lastArrayId_=Q,
O=O[1],this.state_==2)if(O[0]=="c"){this.sid_=O[1];this.JSC$19983_hostPrefix_=O[2];Q=O[3];Q!=null&&(this.JSC$19985_channelVersion_=Q,this.JSC$19983_channelDebug_.info("VER="+this.JSC$19985_channelVersion_));Q=O[4];Q!=null&&(this.serverVersion_=Q,this.JSC$19983_channelDebug_.info("SVER="+this.serverVersion_));O=O[5];O!=null&&typeof O==="number"&&O>0&&(this.backChannelRequestTimeoutMs_=O*=1.5,this.JSC$19983_channelDebug_.info("backChannelRequestTimeoutMs_="+O));if(O=G.JSC$19964_xmlHttp_){var M=TGg(O,
"X-Client-Wire-Protocol");M&&(Q=this.forwardChannelRequestPool_,!Q.requestPool_&&(_.gA(M,"spdy")||_.gA(M,"quic")||_.gA(M,"h2"))&&(Q.JSC$19974_maxSize_=Q.maxPoolSizeConfigured_,Q.requestPool_=new Set,Q.JSC$19974_request_&&(Vxx(Q,Q.JSC$19974_request_),Q.JSC$19974_request_=null)));this.httpSessionIdParam_&&((O=TGg(O,"X-HTTP-Session-Id"))?(this.httpSessionId_=O,_.NA(this.JSC$19983_forwardChannelUri_,this.httpSessionIdParam_,O)):this.JSC$19983_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19989_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-G.JSC$19964_requestStartTime_,this.JSC$19983_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));O=G;Q=qoV(this,this.JSC$19983_supportsCrossDomainXhrs_?this.JSC$19983_hostPrefix_:null,this.JSC$19983_path_);this.JSC$19983_channelDebug_.debug("GetBackChannelUri: "+Q);this.JSC$19983_backChannelUri_=Q;O.initialResponseDecoded_?(this.JSC$19983_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
lmS(this.forwardChannelRequestPool_,O),Q=O,(M=this.backChannelRequestTimeoutMs_)&&Q.setTimeout(M),Q.JSC$19964_watchDogTimerId_&&(xeb(Q),z6w(Q)),this.JSC$19983_backChannelRequest_=O):ORS(this);this.JSC$19983_outgoingMaps_.length>0&&sVb(this)}else O[0]!="stop"&&O[0]!="close"||tn(this,7);else this.state_==3&&(O[0]=="stop"||O[0]=="close"?O[0]=="stop"?tn(this,7):this.disconnect():O[0]!="noop"&&this.handler_&&this.handler_.JSC$19989_channelHandleArray(O),this.JSC$19983_backChannelRetryCount_=0)}};
var tn=function(Y,G){Y.JSC$19983_channelDebug_.info("Error code "+G);if(G==2){var u=(0,_.tP)(Y.testNetworkCallback_,Y),O=Y.networkTestUrl_,Q=!O;O=new _.Rx(O||"//www.google.com/images/cleardot.gif");_.OI.location&&_.OI.location.protocol=="http"||_.Bp(O,"https");_.GM(O);Q?j4b(O.toString(),u):VNb(O.toString(),u)}else a6(2);Y.onError_(G)};
Xz.prototype.testNetworkCallback_=function(Y){Y?(this.JSC$19983_channelDebug_.info("Successfully pinged google.com"),a6(2)):(this.JSC$19983_channelDebug_.info("Failed to ping google.com"),a6(1))};
Xz.prototype.onError_=function(Y){this.JSC$19983_channelDebug_.debug("HttpChannel: error - "+Y);this.state_=0;this.handler_&&this.handler_.JSC$19989_channelError(Y);vKx(this);csb(this)};
var vKx=function(Y){Y.state_=0;Y.nonAckedMapsAtChannelClose_=[];if(Y.handler_){var G=BW9(Y.forwardChannelRequestPool_);if(G.length!=0||Y.JSC$19983_outgoingMaps_.length!=0)Y.JSC$19983_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+G.length+", outgoing: "+Y.JSC$19983_outgoingMaps_.length}),_.Bu(Y.nonAckedMapsAtChannelClose_,G),_.Bu(Y.nonAckedMapsAtChannelClose_,Y.JSC$19983_outgoingMaps_),Y.forwardChannelRequestPool_.JSC$19974_pendingMessages_.length=0,_.Vj(Y.JSC$19983_outgoingMaps_),
Y.JSC$19983_outgoingMaps_.length=0;
Y.handler_.JSC$19989_channelClosed()}},MJ9=function(Y){if(Y.state_==0)return Y.nonAckedMapsAtChannelClose_;
var G=[];_.Bu(G,BW9(Y.forwardChannelRequestPool_));_.Bu(G,Y.JSC$19983_outgoingMaps_);return G},qoV=function(Y,G,u){var O=_.bI(u);
O.JSC$10357_domain_!=""?(G&&_.$5(O,G+"."+O.JSC$10357_domain_),_.qO(O,O.JSC$10357_port_)):(O=_.OI.location,O=dox(O.protocol,G?G+"."+O.hostname:O.hostname,+O.port,u));G=Y.httpSessionIdParam_;u=Y.httpSessionId_;G&&u&&_.NA(O,G,u);_.NA(O,"VER",Y.JSC$19985_channelVersion_);Ue9(Y,O);return O},meS=function(Y,G,u){if(G&&!Y.JSC$19983_supportsCrossDomainXhrs_)throw Error("Sk");
G=Y.usesFetchStreams_&&!Y.JSC$19983_xmlHttpFactory_?new _.CV(new KPw({streamBinaryChunks:u})):new _.CV(Y.JSC$19983_xmlHttpFactory_);G.JSC$10117_withCredentials_=Y.JSC$19983_supportsCrossDomainXhrs_;return G};
Xz.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var HRb=function(){};
_.H=HRb.prototype;_.H.JSC$19989_channelOpened=function(){};
_.H.JSC$19989_channelHandleArray=function(){};
_.H.JSC$19989_channelError=function(){};
_.H.JSC$19989_channelClosed=function(){};
_.H.isActive=function(){return!0};
_.H.JSC$19989_badMapError=function(){};var aq=function(Y,G){_.C7.call(this);this.JSC$19992_channel_=new Xz(G);this.JSC$19992_url_=Y;this.messageUrlParams_=G&&G.messageUrlParams||null;Y=G&&G.messageHeaders||null;G&&G.clientProtocolHeaderRequired&&(Y?_.gX.set(Y,"X-Client-Protocol","webchannel"):Y=_.gX.create("X-Client-Protocol","webchannel"));this.JSC$19992_channel_.JSC$19983_extraHeaders_=Y;Y=G&&G.initMessageHeaders||null;G&&G.messageContentType&&(Y?_.gX.set(Y,"X-WebChannel-Content-Type",G.messageContentType):Y=_.gX.create("X-WebChannel-Content-Type",
G.messageContentType));G&&G.clientProfile&&(Y?_.gX.set(Y,"X-WebChannel-Client-Profile",G.clientProfile):Y=_.gX.create("X-WebChannel-Client-Profile",G.clientProfile));this.JSC$19992_channel_.initHeaders_=Y;(Y=G&&G.httpHeadersOverwriteParam)&&!_.K1(Y)&&(this.JSC$19992_channel_.httpHeadersOverwriteParam_=Y);this.supportsCrossDomainXhr_=G&&G.supportsCrossDomainXhr||!1;this.sendRawJson_=G&&G.sendRawJson||!1;(G=G&&G.httpSessionIdParam)&&!_.K1(G)&&(this.JSC$19992_channel_.httpSessionIdParam_=G,_.gX.containsKey(this.messageUrlParams_,
G)&&_.gX.remove(this.messageUrlParams_,G));this.channelHandler_=new Ki(this)};
_.qz(aq,_.C7);aq.prototype.open=function(){this.JSC$19992_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19992_channel_.JSC$19983_supportsCrossDomainXhrs_=!0);this.JSC$19992_channel_.connect(this.JSC$19992_url_,this.messageUrlParams_||void 0)};
aq.prototype.close=function(){this.JSC$19992_channel_.disconnect()};
aq.prototype.send=function(Y){var G=this.JSC$19992_channel_;if(typeof Y==="string"){var u={};u.__data__=Y;Y=u}else this.sendRawJson_&&(u={},u.__data__=_.fV(Y),Y=u);G.JSC$19983_outgoingMaps_.push(new NWg(G.JSC$19983_nextMapId_++,Y));G.state_==3&&sVb(G)};
aq.prototype.disposeInternal=function(){this.JSC$19992_channel_.handler_=null;delete this.channelHandler_;this.JSC$19992_channel_.disconnect();delete this.JSC$19992_channel_;aq.superClass_.disposeInternal.call(this)};
var EbV=function(Y){amb.call(this);Y.__headers__&&(this.headers=Y.__headers__,this.statusCode=Y.__status__,delete Y.__headers__,delete Y.__status__);var G=Y.__sm__;G?this.data=(this.metadataKey=_.gX.getAnyKey(G))?_.gX.get(G,this.metadataKey):G:this.data=Y};
_.qz(EbV,amb);var tJy=function(Y){TWV.call(this);this.status=1;this.errorCode=Y};
_.qz(tJy,TWV);var Ki=function(Y){this.JSC$19999_channel_=Y};
_.qz(Ki,HRb);Ki.prototype.JSC$19989_channelOpened=function(){this.JSC$19999_channel_.dispatchEvent("w")};
Ki.prototype.JSC$19989_channelHandleArray=function(Y){this.JSC$19999_channel_.dispatchEvent(new EbV(Y))};
Ki.prototype.JSC$19989_channelError=function(Y){this.JSC$19999_channel_.dispatchEvent(new tJy(Y))};
Ki.prototype.JSC$19989_channelClosed=function(){this.JSC$19999_channel_.dispatchEvent("x")};
var Ku9=function(Y,G){this.transportChannel_=Y;this.JSC$20002_channel_=G},aRy=function(Y){return MJ9(Y.JSC$20002_channel_).map(function(G){var u=Y.transportChannel_;
G=G.map;"__data__"in G?(G=G.__data__,u=u.sendRawJson_?_.t1R(G):G):u=G;return u})};
Ku9.prototype.commit=function(Y){this.JSC$20002_channel_.forwardChannelFlushedCallback_=Y};var Tzb=function(Y,G,u){for(var O=0;O<Y.getSize().height;O++)for(var Q=0;Q<Y.getSize().width;Q++)G.call(u,Y.array_[O][Q],O,Q,Y)},LuN=function(Y,G){var u=new Pk(Y.getSize());
Tzb(Y,function(O,Q,M){u.array_[Q][M]=G.call(void 0,O,Q,M,Y)});
return u},cjN=function(Y,G){for(var u=[],O=0;O<Y;O++){u[O]=[];
for(var Q=0;Q<G;Q++)u[O][Q]=0}return u};
Pk.prototype.add=function(Y){if(!i3b(this.size_,Y.getSize()))throw Error("Vk");return LuN(this,function(G,u,O){return G+Y.array_[u][O]})};
Pk.prototype.equals=function(Y,G){if(this.size_.width!=Y.size_.width||this.size_.height!=Y.size_.height)return!1;G=G||0;for(var u=0;u<this.size_.height;u++)for(var O=0;O<this.size_.width;O++)if(!oT9(this.array_[u][O],Y.array_[u][O],G))return!1;return!0};
Pk.prototype.getSize=function(){return this.size_};
var TH=function(Y,G,u){return G>=0&&G<Y.size_.height&&u>=0&&u<Y.size_.width?Y.array_[G][u]:null};
Pk.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var gbS=function(Y,G,u,O){if(!(G>=0&&G<Y.size_.height&&u>=0&&u<Y.size_.width))throw Error("Wk`"+G+"`"+u+"`"+Y.size_.height+"`"+Y.size_.width);Y.array_[G][u]=O};
Pk.prototype.multiply=function(Y){if(Y instanceof Pk){if(this.size_.width!=Y.getSize().height)throw Error("Xk");return X7y(this,Y)}if(typeof Y==="number")return PpN(this,Y);throw Error("Yk");};
var X7y=function(Y,G){var u=new Pk(Y.size_.height,G.getSize().width);Tzb(u,function(O,Q,M){for(var t=O=0;t<this.size_.width;t++)O+=TH(this,Q,t)*TH(G,t,M);gbS(u,Q,M,O)},Y);
return u},PpN=function(Y,G){return LuN(Y,function(u){return u*G})};var Li=function(Y){IRN.dispatchEvent(new kvj(IRN,Y))},IRN=new _.C7,kvj=function(Y,G){_.lI.call(this,"statevent",Y);
this.stat=G};
_.m(kvj,_.lI);_.H=ku.prototype;_.H.JSC$20012_extraHeaders_=null;_.H.JSC$20012_successful_=!1;_.H.JSC$20012_watchDogTimerId_=null;_.H.JSC$20012_watchDogTimeoutTime_=null;_.H.JSC$20012_requestStartTime_=null;_.H.JSC$20012_type_=null;_.H.JSC$20012_baseUri_=null;_.H.JSC$20012_requestUri_=null;_.H.JSC$20012_postData_=null;_.H.JSC$20012_xmlHttp_=null;_.H.JSC$20012_xmlHttpChunkStart_=0;_.H.trident_=null;_.H.JSC$20012_verb_=null;_.H.JSC$20012_lastError_=null;_.H.JSC$20012_lastStatusCode_=-1;_.H.sendClose_=!0;
_.H.JSC$20012_cancelled_=!1;_.H.JSC$20012_readyStateChangeThrottleMs_=0;_.H.JSC$20012_readyStateChangeThrottle_=null;var nbN=function(Y,G){switch(Y){case 0:return"Non-200 return code ("+G+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Fuj={},p7V={};
ku.prototype.setTimeout=function(Y){this.timeout_=Y};
var miN=function(Y,G,u){Y.JSC$20012_type_=1;Y.JSC$20012_baseUri_=_.GM(G.clone());Y.JSC$20012_postData_=u;Y.decodeChunks_=!0;z5V(Y,null)},Wub=function(Y,G,u,O,Q){Y.JSC$20012_type_=1;
Y.JSC$20012_baseUri_=_.GM(G.clone());Y.JSC$20012_postData_=null;Y.decodeChunks_=u;Q&&(Y.sendClose_=!1);z5V(Y,O)},z5V=function(Y,G){Y.JSC$20012_requestStartTime_=Date.now();
rlV(Y);Y.JSC$20012_requestUri_=Y.JSC$20012_baseUri_.clone();rtS(Y.JSC$20012_requestUri_,"t",Y.JSC$20010_retryId_);Y.JSC$20012_xmlHttpChunkStart_=0;Y.JSC$20012_xmlHttp_=Y.JSC$20010_channel_.JSC$20019_createXhrIo(Y.JSC$20010_channel_.JSC$20019_shouldUseSecondaryDomains()?G:null);Y.JSC$20012_readyStateChangeThrottleMs_>0&&(Y.JSC$20012_readyStateChangeThrottle_=new _.JR((0,_.tP)(Y.JSC$20012_xmlHttpHandler_,Y,Y.JSC$20012_xmlHttp_),Y.JSC$20012_readyStateChangeThrottleMs_));Y.JSC$20010_eventHandler_.listen(Y.JSC$20012_xmlHttp_,
"readystatechange",Y.JSC$20012_readyStateChangeHandler_);G=Y.JSC$20012_extraHeaders_?_.gX.clone(Y.JSC$20012_extraHeaders_):{};Y.JSC$20012_postData_?(Y.JSC$20012_verb_="POST",G["Content-Type"]="application/x-www-form-urlencoded",Y.JSC$20012_xmlHttp_.send(Y.JSC$20012_requestUri_,Y.JSC$20012_verb_,Y.JSC$20012_postData_,G)):(Y.JSC$20012_verb_="GET",Y.sendClose_&&!_.Mt&&(G.Connection="close"),Y.JSC$20012_xmlHttp_.send(Y.JSC$20012_requestUri_,Y.JSC$20012_verb_,null,G));Y.JSC$20010_channel_.notifyServerReachabilityEvent(1);
G=Y.JSC$20010_channelDebug_;var u=Y.JSC$20012_postData_;if(u){var O="";u=u.split("&");for(var Q=0;Q<u.length;Q++){var M=u[Q].split("=");if(M.length>1){var t=M[0];M=M[1];var K=t.split("_");O=K.length>=2&&K[1]=="type"?O+(t+"="+M+"&"):O+(t+"=redacted&")}}}else O=null;G.info("XMLHTTP REQ ("+Y.JSC$20010_rid_+") [attempt "+Y.JSC$20010_retryId_+"]: "+Y.JSC$20012_verb_+"\n"+Y.JSC$20012_requestUri_+"\n"+O)};
ku.prototype.JSC$20012_readyStateChangeHandler_=function(Y){Y=Y.target;var G=this.JSC$20012_readyStateChangeThrottle_;G&&_.yB(Y)==3?(this.JSC$20010_channelDebug_.debug("Throttling readystatechange."),G.fire()):this.JSC$20012_xmlHttpHandler_(Y)};
ku.prototype.JSC$20012_xmlHttpHandler_=function(Y){try{if(Y==this.JSC$20012_xmlHttp_)a:{var G=_.yB(this.JSC$20012_xmlHttp_),u=this.JSC$20012_xmlHttp_.JSC$10117_lastErrorCode_,O=this.JSC$20012_xmlHttp_.getStatus();if(_.Mt&&!_.Gy("420+")){if(G<4)break a}else if(G<3||G==3&&!this.JSC$20012_xmlHttp_.getResponseText())break a;this.JSC$20012_cancelled_||G!=4||u==7||(u==8||O<=0?this.JSC$20010_channel_.notifyServerReachabilityEvent(3):this.JSC$20010_channel_.notifyServerReachabilityEvent(2));xij(this);var Q=
this.JSC$20012_xmlHttp_.getStatus();this.JSC$20012_lastStatusCode_=Q;var M=this.JSC$20012_xmlHttp_.getResponseText();M||this.JSC$20010_channelDebug_.debug("No response text for uri "+this.JSC$20012_requestUri_+" status "+Q);this.JSC$20012_successful_=Q==200;this.JSC$20010_channelDebug_.info("XMLHTTP RESP ("+this.JSC$20010_rid_+") [ attempt "+this.JSC$20010_retryId_+"]: "+this.JSC$20012_verb_+"\n"+this.JSC$20012_requestUri_+"\n"+G+" "+Q);if(this.JSC$20012_successful_){G==4&&fRV(this);if(this.decodeChunks_){for(Y=
!0;!this.JSC$20012_cancelled_&&this.JSC$20012_xmlHttpChunkStart_<M.length;){var t=Cpj(this,M);if(t==p7V){G==4&&(this.JSC$20012_lastError_=4,Li(15),Y=!1);ylB(this.JSC$20010_channelDebug_,this.JSC$20010_rid_,null,"[Incomplete Response]");break}else if(t==Fuj){this.JSC$20012_lastError_=4;Li(16);ylB(this.JSC$20010_channelDebug_,this.JSC$20010_rid_,M,"[Invalid Chunk]");Y=!1;break}else ylB(this.JSC$20010_channelDebug_,this.JSC$20010_rid_,t,null),e5o(this,t)}G==4&&M.length==0&&(this.JSC$20012_lastError_=
1,Li(17),Y=!1);this.JSC$20012_successful_=this.JSC$20012_successful_&&Y;Y||(ylB(this.JSC$20010_channelDebug_,this.JSC$20010_rid_,M,"[Invalid Chunked Response]"),fRV(this),Alb(this))}else ylB(this.JSC$20010_channelDebug_,this.JSC$20010_rid_,M,null),e5o(this,M);this.JSC$20012_successful_&&!this.JSC$20012_cancelled_&&(G==4?this.JSC$20010_channel_.JSC$20019_onRequestComplete(this):(this.JSC$20012_successful_=!1,rlV(this)))}else Q==400&&M.indexOf("Unknown SID")>0?(this.JSC$20012_lastError_=3,Li(13),this.JSC$20010_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$20010_rid_+")")):(this.JSC$20012_lastError_=0,Li(14),this.JSC$20010_channelDebug_.warning("XMLHTTP Bad status "+Q+" ("+this.JSC$20010_rid_+")")),fRV(this),Alb(this)}else this.JSC$20010_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(K){this.JSC$20010_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var Cpj=function(Y,G){var u=Y.JSC$20012_xmlHttpChunkStart_,O=G.indexOf("\n",u);if(O==-1)return p7V;u=Number(G.substring(u,O));if(isNaN(u))return Fuj;O+=1;if(O+u>G.length)return p7V;G=G.slice(O,O+u);Y.JSC$20012_xmlHttpChunkStart_=O+u;return G};
ku.prototype.cancel=function(){this.JSC$20012_cancelled_=!0;fRV(this)};
var rlV=function(Y){Y.JSC$20012_watchDogTimeoutTime_=Date.now()+Y.timeout_;obN(Y,Y.timeout_)},obN=function(Y,G){if(Y.JSC$20012_watchDogTimerId_!=null)throw Error("Rk");
Y.JSC$20012_watchDogTimerId_=I6((0,_.tP)(Y.JSC$20012_onWatchDogTimeout_,Y),G)},xij=function(Y){Y.JSC$20012_watchDogTimerId_&&(_.OI.clearTimeout(Y.JSC$20012_watchDogTimerId_),Y.JSC$20012_watchDogTimerId_=null)};
ku.prototype.JSC$20012_onWatchDogTimeout_=function(){this.JSC$20012_watchDogTimerId_=null;var Y=Date.now();Y-this.JSC$20012_watchDogTimeoutTime_>=0?(this.JSC$20010_channelDebug_.info("TIMEOUT: "+this.JSC$20012_requestUri_),this.JSC$20012_type_!=2&&this.JSC$20010_channel_.notifyServerReachabilityEvent(3),fRV(this),this.JSC$20012_lastError_=2,Li(18),Alb(this)):(this.JSC$20010_channelDebug_.warning("WatchDog timer called too early"),obN(this,this.JSC$20012_watchDogTimeoutTime_-Y))};
var Alb=function(Y){Y.JSC$20010_channel_.JSC$20019_isClosed()||Y.JSC$20012_cancelled_||Y.JSC$20010_channel_.JSC$20019_onRequestComplete(Y)},fRV=function(Y){xij(Y);
_.ZM(Y.JSC$20012_readyStateChangeThrottle_);Y.JSC$20012_readyStateChangeThrottle_=null;Y.pollingTimer_.stop();Y.JSC$20010_eventHandler_.removeAll();if(Y.JSC$20012_xmlHttp_){var G=Y.JSC$20012_xmlHttp_;Y.JSC$20012_xmlHttp_=null;G.abort();G.dispose()}Y.trident_&&(Y.trident_=null)};
ku.prototype.getLastError=function(){return this.JSC$20012_lastError_};
var e5o=function(Y,G){try{Y.JSC$20010_channel_.JSC$20019_onRequestData(Y,G),Y.JSC$20010_channel_.notifyServerReachabilityEvent(4)}catch(u){}};var ylB=function(Y,G,u,O){var Q=Y.info;a:if(u&&u!="y2f%"){try{var M=JSON.parse(u);if(M)for(var t=0;t<M.length;t++)if(Array.isArray(M[t])){var K=M[t];if(!(K.length<2)){var L=K[1];if(Array.isArray(L)&&!(L.length<1)){var g=L[0];if(g!="noop"&&g!="stop")for(var P=1;P<L.length;P++)L[P]=""}}}var I=_.fV(M);break a}catch(k){Y.debug("Exception parsing expected JS array - probably was not JS");I=u;break a}I=void 0}else I=u;Q.call(Y,"XMLHTTP TEXT ("+G+"): "+I+(O?" "+O:""))};
nW.prototype.debug=function(Y){this.info(Y)};
nW.prototype.info=function(){};
nW.prototype.warning=function(){};_.H=Y3o.prototype;_.H.JSC$20019_extraHeaders_=null;_.H.JSC$20019_request_=null;_.H.receivedIntermediateResult_=!1;_.H.JSC$20019_path_=null;_.H.state_=null;_.H.JSC$20019_lastStatusCode_=-1;_.H.JSC$20019_hostPrefix_=null;_.H.blockedPrefix_=null;
_.H.connect=function(Y){this.JSC$20019_path_=Y;Y=iRb(this.JSC$20017_channel_,this.JSC$20019_path_);Li(3);Date.now();var G=this.JSC$20017_channel_.firstTestResults_;G!=null?(this.JSC$20019_hostPrefix_=G[0],(this.blockedPrefix_=G[1])?(this.state_=1,R59(this)):(this.state_=2,w7b(this))):(rtS(Y,"MODE","init"),this.JSC$20019_request_=new ku(this,this.JSC$20017_channelDebug_),this.JSC$20019_request_.JSC$20012_extraHeaders_=this.JSC$20019_extraHeaders_,Wub(this.JSC$20019_request_,Y,!1,null,!0),this.state_=
0)};
var R59=function(Y){var G=ZRN(Y.JSC$20017_channel_,Y.blockedPrefix_,"/mail/images/cleardot.gif");_.GM(G);vo9(G.toString(),5E3,(0,_.tP)(Y.checkBlockedCallback_,Y),3,2E3);Y.notifyServerReachabilityEvent(1)};
Y3o.prototype.checkBlockedCallback_=function(Y){if(Y)this.state_=2,w7b(this);else{Li(4);var G=this.JSC$20017_channel_;G.JSC$20020_channelDebug_.debug("Test Connection Blocked");G.JSC$20024_lastStatusCode_=G.connectionTest_.JSC$20019_lastStatusCode_;g$(G,9)}Y&&this.notifyServerReachabilityEvent(2)};
var w7b=function(Y){Y.JSC$20017_channelDebug_.debug("TestConnection: starting stage 2");var G=Y.JSC$20017_channel_.secondTestResults_;G!=null?(Y.JSC$20017_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+G?"Buffered":"Unbuffered"),Li(5),G?(Li(11),DiN(Y.JSC$20017_channel_,Y,!1)):(Li(12),DiN(Y.JSC$20017_channel_,Y,!0))):(Y.JSC$20019_request_=new ku(Y,Y.JSC$20017_channelDebug_),Y.JSC$20019_request_.JSC$20012_extraHeaders_=Y.JSC$20019_extraHeaders_,G=h59(Y.JSC$20017_channel_,
Y.JSC$20019_hostPrefix_,Y.JSC$20019_path_),Li(5),rtS(G,"TYPE","xmlhttp"),Wub(Y.JSC$20019_request_,G,!1,Y.JSC$20019_hostPrefix_,!1))};
_.H=Y3o.prototype;_.H.JSC$20019_createXhrIo=function(Y){return this.JSC$20017_channel_.JSC$20019_createXhrIo(Y)};
_.H.abort=function(){this.JSC$20019_request_&&(this.JSC$20019_request_.cancel(),this.JSC$20019_request_=null);this.JSC$20019_lastStatusCode_=-1};
_.H.JSC$20019_isClosed=function(){return!1};
_.H.JSC$20019_onRequestData=function(Y,G){this.JSC$20019_lastStatusCode_=Y.JSC$20012_lastStatusCode_;if(this.state_==0)if(this.JSC$20017_channelDebug_.debug("TestConnection: Got data for stage 1"),G){try{var u=this.JSC$20017_parser_.parse(G)}catch(O){diS(this.JSC$20017_channel_,this);return}this.JSC$20019_hostPrefix_=u[0];this.blockedPrefix_=u[1]}else this.JSC$20017_channelDebug_.debug("TestConnection: Null responseText"),diS(this.JSC$20017_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Li(7),Date.now()):G=="11111"?(Li(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20019_lastStatusCode_=200,this.JSC$20019_request_.cancel(),this.JSC$20017_channelDebug_.debug("Test connection succeeded; using streaming connection"),Li(12),DiN(this.JSC$20017_channel_,this,!0)):(Li(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.H.JSC$20019_onRequestComplete=function(){this.JSC$20019_lastStatusCode_=this.JSC$20019_request_.JSC$20012_lastStatusCode_;this.JSC$20019_request_.JSC$20012_successful_?this.state_==0?(this.JSC$20017_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,R59(this)):(this.state_=2,w7b(this))):this.state_==2&&(this.JSC$20017_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20017_channelDebug_.debug("Test connection succeeded; using streaming connection"),
Li(12),DiN(this.JSC$20017_channel_,this,!0)):(this.JSC$20017_channelDebug_.debug("Test connection failed; not using streaming"),Li(11),DiN(this.JSC$20017_channel_,this,!1))):(this.JSC$20017_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Li(9):this.state_==2&&Li(10),diS(this.JSC$20017_channel_,this,this.JSC$20019_request_.getLastError()))};
_.H.JSC$20019_shouldUseSecondaryDomains=function(){return this.JSC$20017_channel_.JSC$20019_shouldUseSecondaryDomains()};
_.H.isActive=function(){return this.JSC$20017_channel_.isActive()};
_.H.notifyServerReachabilityEvent=function(Y){this.JSC$20017_channel_.notifyServerReachabilityEvent(Y)};var bRw=function(Y,G){this.JSC$20022_mapId=Y;this.map=G;this.context=null};
_.H=Fz.prototype;_.H.JSC$20024_extraHeaders_=null;_.H.JSC$20024_extraParams_=null;_.H.forwardChannelRequest_=null;_.H.JSC$20024_backChannelRequest_=null;_.H.JSC$20024_path_=null;_.H.JSC$20024_forwardChannelUri_=null;_.H.JSC$20024_backChannelUri_=null;_.H.JSC$20024_hostPrefix_=null;_.H.JSC$20024_nextRid_=0;_.H.JSC$20024_nextMapId_=0;_.H.handler_=null;_.H.JSC$20024_forwardChannelTimerId_=null;_.H.JSC$20024_backChannelTimerId_=null;_.H.JSC$20024_deadBackChannelTimerId_=null;_.H.connectionTest_=null;
_.H.useChunked_=null;_.H.JSC$20024_lastArrayId_=-1;_.H.JSC$20024_lastPostResponseArrayId_=-1;_.H.JSC$20024_lastStatusCode_=-1;_.H.JSC$20024_forwardChannelRetryCount_=0;_.H.JSC$20024_backChannelRetryCount_=0;_.H.JSC$20024_channelVersion_=8;var Saj={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},Nzb=function(Y,G,u,O){_.lI.call(this,"timingevent",Y);this.size=G;this.rtt=u;this.retries=O};
_.qz(Nzb,_.lI);var jHB=function(Y){_.lI.call(this,"serverreachability",Y)};
_.qz(jHB,_.lI);Fz.prototype.connect=function(Y,G,u,O,Q){this.JSC$20020_channelDebug_.debug("connect()");Li(0);this.JSC$20024_path_=G;this.JSC$20024_extraParams_=u||{};O&&Q!==void 0&&(this.JSC$20024_extraParams_.OSID=O,this.JSC$20024_extraParams_.OAID=Q);this.asyncTest_?(I6((0,_.tP)(this.connectTest_,this,Y),100),VJ9(this)):this.connectTest_(Y)};
Fz.prototype.disconnect=function(){this.JSC$20020_channelDebug_.debug("disconnect()");lRo(this);if(this.state_==3){var Y=this.JSC$20024_nextRid_++,G=this.JSC$20024_forwardChannelUri_.clone();_.NA(G,"SID",this.sid_);_.NA(G,"RID",Y);_.NA(G,"TYPE","terminate");BzB(this,G);Y=new ku(this,this.JSC$20020_channelDebug_,this.sid_,Y);Y.JSC$20012_type_=2;Y.JSC$20012_baseUri_=_.GM(G.clone());(new Image).src=Y.JSC$20012_baseUri_.toString();Y.JSC$20012_requestStartTime_=Date.now();rlV(Y)}$iN(this)};
Fz.prototype.connectTest_=function(Y){this.JSC$20020_channelDebug_.debug("connectTest_()");this.connectionTest_=new Y3o(this,this.JSC$20020_channelDebug_);this.connectionTest_.JSC$20019_extraHeaders_=this.JSC$20024_extraHeaders_;this.connectionTest_.JSC$20017_parser_=this.JSC$20020_parser_;this.connectionTest_.connect(Y)};
var VJ9=function(Y){Y.JSC$20020_channelDebug_.debug("connectChannel_()");Y.JSC$20024_ensureInState_(1,0);Y.JSC$20024_forwardChannelUri_=iRb(Y,Y.JSC$20024_path_);qaS(Y)},lRo=function(Y){Y.connectionTest_&&(Y.connectionTest_.abort(),Y.connectionTest_=null);
Y.JSC$20024_backChannelRequest_&&(Y.JSC$20024_backChannelRequest_.cancel(),Y.JSC$20024_backChannelRequest_=null);Y.JSC$20024_backChannelTimerId_&&(_.OI.clearTimeout(Y.JSC$20024_backChannelTimerId_),Y.JSC$20024_backChannelTimerId_=null);sHg(Y);Y.forwardChannelRequest_&&(Y.forwardChannelRequest_.cancel(),Y.forwardChannelRequest_=null);Y.JSC$20024_forwardChannelTimerId_&&(_.OI.clearTimeout(Y.JSC$20024_forwardChannelTimerId_),Y.JSC$20024_forwardChannelTimerId_=null)},cl9=function(Y,G){if(Y.state_==0)throw Error("Zk");
Y.JSC$20020_outgoingMaps_.length==1E3&&Y.JSC$20020_parser_.stringify(G);Y.JSC$20020_outgoingMaps_.push(new bRw(Y.JSC$20024_nextMapId_++,G));Y.state_!=2&&Y.state_!=3||qaS(Y)};
Fz.prototype.JSC$20019_isClosed=function(){return this.state_==0};
Fz.prototype.getState=function(){return this.state_};
var qaS=function(Y){Y.forwardChannelRequest_||Y.JSC$20024_forwardChannelTimerId_||(Y.JSC$20024_forwardChannelTimerId_=I6((0,_.tP)(Y.JSC$20024_onStartForwardChannelTimer_,Y),0),Y.JSC$20024_forwardChannelRetryCount_=0)};
Fz.prototype.JSC$20024_onStartForwardChannelTimer_=function(Y){this.JSC$20024_forwardChannelTimerId_=null;Uiw(this,Y)};
var Uiw=function(Y,G){Y.JSC$20020_channelDebug_.debug("startForwardChannel_");if(Y.state_==1){if(!G){Y.JSC$20020_channelDebug_.debug("open_()");Y.JSC$20024_nextRid_=Math.floor(Math.random()*1E5);G=Y.JSC$20024_nextRid_++;var u=new ku(Y,Y.JSC$20020_channelDebug_,"",G);u.JSC$20012_extraHeaders_=Y.JSC$20024_extraHeaders_;var O=vbB(Y),Q=Y.JSC$20024_forwardChannelUri_.clone();_.NA(Q,"RID",G);_.NA(Q,"CVER","1");BzB(Y,Q);miN(u,Q,O);Y.forwardChannelRequest_=u;Y.state_=2}}else Y.state_==3&&(G?Jlo(Y,G):Y.JSC$20020_outgoingMaps_.length==
0?Y.JSC$20020_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Y.forwardChannelRequest_||(Jlo(Y),Y.JSC$20020_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Jlo=function(Y,G){if(G)if(Y.JSC$20024_channelVersion_>6){Y.JSC$20020_outgoingMaps_=Y.pendingMaps_.concat(Y.JSC$20020_outgoingMaps_);
Y.pendingMaps_.length=0;var u=Y.JSC$20024_nextRid_-1;G=vbB(Y)}else u=G.JSC$20010_rid_,G=G.JSC$20012_postData_;else u=Y.JSC$20024_nextRid_++,G=vbB(Y);var O=Y.JSC$20024_forwardChannelUri_.clone();_.NA(O,"SID",Y.sid_);_.NA(O,"RID",u);_.NA(O,"AID",Y.JSC$20024_lastArrayId_);BzB(Y,O);u=new ku(Y,Y.JSC$20020_channelDebug_,Y.sid_,u,Y.JSC$20024_forwardChannelRetryCount_+1);u.JSC$20012_extraHeaders_=Y.JSC$20024_extraHeaders_;u.setTimeout(1E4+Math.round(1E4*Math.random()));Y.forwardChannelRequest_=u;miN(u,O,
G)},BzB=function(Y,G){Y.handler_&&(Y=Y.handler_.JSC$20031_getAdditionalParams())&&_.gX.forEach(Y,function(u,O){_.NA(G,O,u)})},vbB=function(Y){var G=Math.min(Y.JSC$20020_outgoingMaps_.length,1E3),u=["count="+G];
if(Y.JSC$20024_channelVersion_>6&&G>0){var O=Y.JSC$20020_outgoingMaps_[0].JSC$20022_mapId;u.push("ofs="+O)}else O=0;for(var Q={},M=0;M<G;Q={mapId$jscomp$3:void 0},M++){Q.mapId$jscomp$3=Y.JSC$20020_outgoingMaps_[M].JSC$20022_mapId;var t=Y.JSC$20020_outgoingMaps_[M].map;Q.mapId$jscomp$3=Y.JSC$20024_channelVersion_<=6?M:Q.mapId$jscomp$3-O;try{_.gX.forEach(t,function(K){return function(L,g){u.push("req"+K.mapId$jscomp$3+"_"+g+"="+encodeURIComponent(L))}}(Q))}catch(K){u.push("req"+Q.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}Y.pendingMaps_=Y.pendingMaps_.concat(Y.JSC$20020_outgoingMaps_.splice(0,G));
return u.join("&")},YMN=function(Y){Y.JSC$20024_backChannelRequest_||Y.JSC$20024_backChannelTimerId_||(Y.JSC$20024_backChannelAttemptId_=1,Y.JSC$20024_backChannelTimerId_=I6((0,_.tP)(Y.JSC$20024_onStartBackChannelTimer_,Y),0),Y.JSC$20024_backChannelRetryCount_=0)},uy9=function(Y){if(Y.JSC$20024_backChannelRequest_||Y.JSC$20024_backChannelTimerId_||Y.JSC$20024_backChannelRetryCount_>=3)return!1;
Y.JSC$20020_channelDebug_.debug("Going to retry GET");Y.JSC$20024_backChannelAttemptId_++;Y.JSC$20024_backChannelTimerId_=I6((0,_.tP)(Y.JSC$20024_onStartBackChannelTimer_,Y),G$9(Y,Y.JSC$20024_backChannelRetryCount_));Y.JSC$20024_backChannelRetryCount_++;return!0};
Fz.prototype.JSC$20024_onStartBackChannelTimer_=function(){this.JSC$20024_backChannelTimerId_=null;this.JSC$20020_channelDebug_.debug("Creating new HttpRequest");this.JSC$20024_backChannelRequest_=new ku(this,this.JSC$20020_channelDebug_,this.sid_,"rpc",this.JSC$20024_backChannelAttemptId_);this.JSC$20024_backChannelRequest_.JSC$20012_extraHeaders_=this.JSC$20024_extraHeaders_;this.JSC$20024_backChannelRequest_.JSC$20012_readyStateChangeThrottleMs_=0;var Y=this.JSC$20024_backChannelUri_.clone();_.NA(Y,
"RID","rpc");_.NA(Y,"SID",this.sid_);_.NA(Y,"CI",this.useChunked_?"0":"1");_.NA(Y,"AID",this.JSC$20024_lastArrayId_);BzB(this,Y);_.NA(Y,"TYPE","xmlhttp");Wub(this.JSC$20024_backChannelRequest_,Y,!0,this.JSC$20024_hostPrefix_,!1);this.JSC$20020_channelDebug_.debug("New Request created")};
var DiN=function(Y,G,u){Y.JSC$20020_channelDebug_.debug("Test Connection Finished");Y.useChunked_=Y.secondTestResults_==null?u:!Y.secondTestResults_;Y.JSC$20024_lastStatusCode_=G.JSC$20019_lastStatusCode_;Y.asyncTest_||VJ9(Y)},diS=function(Y,G){Y.JSC$20020_channelDebug_.debug("Test Connection Failed");
Y.JSC$20024_lastStatusCode_=G.JSC$20019_lastStatusCode_;g$(Y,2)};
Fz.prototype.JSC$20019_onRequestData=function(Y,G){if(this.state_!=0&&(this.JSC$20024_backChannelRequest_==Y||this.forwardChannelRequest_==Y))if(this.JSC$20024_lastStatusCode_=Y.JSC$20012_lastStatusCode_,this.forwardChannelRequest_==Y&&this.state_==3)if(this.JSC$20024_channelVersion_>7){try{var u=this.JSC$20020_parser_.parse(G)}catch(O){u=null}if(Array.isArray(u)&&u.length==3)if(G=u,G[0]==0)a:if(this.JSC$20020_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20024_backChannelTimerId_)this.JSC$20020_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20024_backChannelRequest_)if(this.JSC$20024_backChannelRequest_.JSC$20012_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$20012_requestStartTime_)sHg(this),this.JSC$20024_backChannelRequest_.cancel(),this.JSC$20024_backChannelRequest_=null;else break a;else this.JSC$20020_channelDebug_.warning("We do not have a BackChannel established");uy9(this);Li(19)}else this.JSC$20024_lastPostResponseArrayId_=G[1],Y=this.JSC$20024_lastPostResponseArrayId_-this.JSC$20024_lastArrayId_,0<
Y&&(G=G[2],this.JSC$20020_channelDebug_.debug(G+" bytes (in "+Y+" arrays) are outstanding on the BackChannel"),G<37500&&this.useChunked_&&this.JSC$20024_backChannelRetryCount_==0&&!this.JSC$20024_deadBackChannelTimerId_&&(this.JSC$20024_deadBackChannelTimerId_=I6((0,_.tP)(this.JSC$20024_onBackChannelDead_,this),6E3)));else this.JSC$20020_channelDebug_.debug("Bad POST response data returned"),g$(this,11)}else G!="y2f%"&&(this.JSC$20020_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
g$(this,11));else this.JSC$20024_backChannelRequest_==Y&&sHg(this),_.K1(G)||(Y=this.JSC$20020_parser_.parse(G),this.onInput_(Y))};
Fz.prototype.JSC$20024_onBackChannelDead_=function(){this.JSC$20024_deadBackChannelTimerId_!=null&&(this.JSC$20024_deadBackChannelTimerId_=null,this.JSC$20024_backChannelRequest_.cancel(),this.JSC$20024_backChannelRequest_=null,uy9(this),Li(20))};
var sHg=function(Y){Y.JSC$20024_deadBackChannelTimerId_!=null&&(_.OI.clearTimeout(Y.JSC$20024_deadBackChannelTimerId_),Y.JSC$20024_deadBackChannelTimerId_=null)};
Fz.prototype.JSC$20019_onRequestComplete=function(Y){this.JSC$20020_channelDebug_.debug("Request complete");if(this.JSC$20024_backChannelRequest_==Y){sHg(this);this.JSC$20024_backChannelRequest_=null;var G=2}else if(this.forwardChannelRequest_==Y)this.forwardChannelRequest_=null,G=1;else return;this.JSC$20024_lastStatusCode_=Y.JSC$20012_lastStatusCode_;if(this.state_!=0)if(Y.JSC$20012_successful_)if(G==1){G=Y.JSC$20012_postData_?Y.JSC$20012_postData_.length:0;Y=Date.now()-Y.JSC$20012_requestStartTime_;
var u=IRN;u.dispatchEvent(new Nzb(u,G,Y,this.JSC$20024_forwardChannelRetryCount_));qaS(this);this.handler_&&this.handler_.JSC$20031_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else YMN(this);else{u=Y.getLastError();if(u==3||u==7||u==0&&this.JSC$20024_lastStatusCode_>0)this.JSC$20020_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20020_channelDebug_.debug("Maybe retrying, last error: "+nbN(u,this.JSC$20024_lastStatusCode_));var O;if(O=G==1)this.forwardChannelRequest_||
this.JSC$20024_forwardChannelTimerId_||this.state_==1||this.JSC$20024_forwardChannelRetryCount_>=2?O=!1:(this.JSC$20020_channelDebug_.debug("Going to retry POST"),this.JSC$20024_forwardChannelTimerId_=I6((0,_.tP)(this.JSC$20024_onStartForwardChannelTimer_,this,Y),G$9(this,this.JSC$20024_forwardChannelRetryCount_)),this.JSC$20024_forwardChannelRetryCount_++,O=!0);if(O||G==2&&uy9(this))return;this.JSC$20020_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20020_channelDebug_.debug("Error: HTTP request failed");
switch(u){case 1:g$(this,5);break;case 4:g$(this,10);break;case 3:g$(this,6);break;case 7:g$(this,12);break;default:g$(this,2)}}};
var G$9=function(Y,G){var u=5E3+Math.floor(Math.random()*1E4);Y.isActive()||(Y.JSC$20020_channelDebug_.debug("Inactive channel"),u*=2);return u*G};
Fz.prototype.onInput_=function(Y){for(var G=0;G<Y.length;G++){var u=Y[G];this.JSC$20024_lastArrayId_=u[0];u=u[1];this.state_==2?u[0]=="c"?(this.sid_=u[1],this.JSC$20024_hostPrefix_=u[2],u=u[3],u!=null?this.JSC$20024_channelVersion_=u:this.JSC$20024_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20031_channelOpened(),this.JSC$20024_backChannelUri_=h59(this,this.JSC$20024_hostPrefix_,this.JSC$20024_path_),YMN(this)):u[0]=="stop"&&g$(this,7):this.state_==3&&(u[0]=="stop"?g$(this,7):
u[0]!="noop"&&this.handler_&&this.handler_.JSC$20031_channelHandleArray(u),this.JSC$20024_backChannelRetryCount_=0)}};
Fz.prototype.JSC$20024_ensureInState_=function(Y){if(!_.ST(arguments,this.state_))throw Error("$k`"+this.state_);};
var g$=function(Y,G){Y.JSC$20020_channelDebug_.info("Error code "+G);if(G==2||G==9){var u=null;Y.handler_&&(u=null);var O=(0,_.tP)(Y.testGoogleComCallback_,Y);u||(u=new _.Rx("//www.google.com/images/cleardot.gif"),_.GM(u));Uby(u.toString(),1E4,O)}else Li(2);Y.onError_(G)};
Fz.prototype.testGoogleComCallback_=function(Y){Y?(this.JSC$20020_channelDebug_.info("Successfully pinged google.com"),Li(2)):(this.JSC$20020_channelDebug_.info("Failed to ping google.com"),Li(1),this.onError_(8))};
Fz.prototype.onError_=function(Y){this.JSC$20020_channelDebug_.debug("HttpChannel: error - "+Y);this.state_=0;this.handler_&&this.handler_.JSC$20031_channelError(Y);$iN(this);lRo(this)};
var $iN=function(Y){Y.state_=0;Y.JSC$20024_lastStatusCode_=-1;if(Y.handler_)if(Y.pendingMaps_.length==0&&Y.JSC$20020_outgoingMaps_.length==0)Y.handler_.JSC$20031_channelClosed();else{Y.JSC$20020_channelDebug_.debug("Number of undelivered maps, pending: "+Y.pendingMaps_.length+", outgoing: "+Y.JSC$20020_outgoingMaps_.length);var G=_.Vj(Y.pendingMaps_),u=_.Vj(Y.JSC$20020_outgoingMaps_);Y.pendingMaps_.length=0;Y.JSC$20020_outgoingMaps_.length=0;Y.handler_.JSC$20031_channelClosed(G,u)}},iRb=function(Y,
G){G=ZRN(Y,null,G);
Y.JSC$20020_channelDebug_.debug("GetForwardChannelUri: "+G);return G},h59=function(Y,G,u){G=ZRN(Y,Y.JSC$20019_shouldUseSecondaryDomains()?G:null,u);
Y.JSC$20020_channelDebug_.debug("GetBackChannelUri: "+G);return G},ZRN=function(Y,G,u){var O=_.bI(u);
if(O.JSC$10357_domain_!="")G&&_.$5(O,G+"."+O.JSC$10357_domain_),_.qO(O,O.JSC$10357_port_);else{var Q=window.location;O=dox(Q.protocol,G?G+"."+Q.hostname:Q.hostname,+Q.port,u)}Y.JSC$20024_extraParams_&&_.gX.forEach(Y.JSC$20024_extraParams_,function(M,t){_.NA(O,t,M)});
_.NA(O,"VER",Y.JSC$20024_channelVersion_);BzB(Y,O);return O};
Fz.prototype.JSC$20019_createXhrIo=function(Y){if(Y)throw Error("Sk");Y=new _.CV;Y.JSC$10117_withCredentials_=!1;return Y};
Fz.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Fz.prototype.notifyServerReachabilityEvent=function(Y){var G=IRN;G.dispatchEvent(new jHB(G,Y))};
Fz.prototype.JSC$20019_shouldUseSecondaryDomains=function(){return!1};
new Bkw;var OrN=function(){};
_.H=OrN.prototype;_.H.JSC$20031_channelOpened=function(){};
_.H.JSC$20031_channelHandleArray=function(){};
_.H.JSC$20031_channelSuccess=function(){};
_.H.JSC$20031_channelError=function(){};
_.H.JSC$20031_channelClosed=function(){};
_.H.JSC$20031_getAdditionalParams=function(){return{}};
_.H.isActive=function(){return!0};var QWj=function(Y){Y.front_.length===0&&(Y.front_=Y.back_,Y.front_.reverse(),Y.back_=[])};
_.H=GUN.prototype;_.H.enqueue=function(Y){this.back_.push(Y)};
_.H.peek=function(){QWj(this);return _.RU(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(Y){return _.ST(this.front_,Y)||_.ST(this.back_,Y)};
_.H.remove=function(Y){var G=this.front_;var u=Array.prototype.lastIndexOf.call(G,Y,G.length-1);u>=0?(_.oa1(G,u),G=!0):G=!1;return G||_.Nj(this.back_,Y)};
_.H.getValues=function(){for(var Y=[],G=this.front_.length-1;G>=0;--G)Y.push(this.front_[G]);G=this.back_.length;for(var u=0;u<G;++u)Y.push(this.back_[u]);return Y};var MYj=function(Y){var G=typeof Y;return G=="object"&&Y||G=="function"?"o"+_.cu(Y):G.charAt(0)+Y};
_.H=pW.prototype;_.H.getCount=function(){return this.JSC$20035_map_.size};
_.H.add=function(Y){this.JSC$20035_map_.set(MYj(Y),Y);this.size=this.JSC$20035_map_.size};
_.H.addAll=function(Y){Y=_.lJ(Y);for(var G=Y.length,u=0;u<G;u++)this.add(Y[u]);this.size=this.JSC$20035_map_.size};
_.H.removeAll=function(Y){Y=_.lJ(Y);for(var G=Y.length,u=0;u<G;u++)this.remove(Y[u]);this.size=this.JSC$20035_map_.size};
_.H.delete=function(Y){Y=this.JSC$20035_map_.remove(MYj(Y));this.size=this.JSC$20035_map_.size;return Y};
_.H.remove=function(Y){return this.delete(Y)};
_.H.clear=function(){this.JSC$20035_map_.clear();this.size=0};
_.H.isEmpty=function(){return this.JSC$20035_map_.size===0};
_.H.has=function(Y){return this.JSC$20035_map_.containsKey(MYj(Y))};
_.H.contains=function(Y){return this.JSC$20035_map_.containsKey(MYj(Y))};
_.H.getValues=function(){return this.JSC$20035_map_.getValues()};
_.H.values=function(){return this.JSC$20035_map_.values()};
_.H.clone=function(){return new pW(this)};
_.H.equals=function(Y){return this.getCount()==DoV(Y)&&Hr9(this,Y)};
var Hr9=function(Y,G){var u=DoV(G);if(Y.getCount()>u)return!1;!(G instanceof pW)&&u>5&&(G=new pW(G));return hcx(Y,function(O){var Q=G;return Q.contains&&typeof Q.contains=="function"?Q.contains(O):Q.containsValue&&typeof Q.containsValue=="function"?Q.containsValue(O):_.ly(Q)||typeof Q==="string"?_.ST(Q,O):_.gX.containsValue(Q,O)})};
pW.prototype.__iterator__=function(){return this.JSC$20035_map_.__iterator__(!1)};
pW.prototype[Symbol.iterator]=function(){return this.values()};_.Xf({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 Y=this.query;Y&&(this.full||Y[0]==="("||(Y="("+Y+")"),this._mq=window.matchMedia(Y),this._add(),this.queryHandler(this._mq))},
queryHandler:function(Y){this._setQueryMatches(Y.matches)}});var E8x={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(Y){return(this._clampValue(Y)-this.min)/(this.max-this.min)},
_clampValue:function(Y){return Math.min(this.max,Math.max(this.min,this._calcStep(Y)))},
_calcStep:function(Y){Y=parseFloat(Y);if(!this.step)return Y;Y=Math.round((Y-this.min)/this.step);return this.step<1?Y/(1/this.step)+this.min:Y*this.step+this.min},
_validateValue:function(){var Y=this._clampValue(this.value);this.value=this.oldValue=isNaN(Y)?this.oldValue:Y;return this.value!==Y},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var tYB=[_.aZ,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(Y){_.ax(Y).path[0]!==this&&(this.resetLayout(),Y.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var Y=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.By(this._layoutDebouncer,_.TU,Y);_.$t(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var Y=this;requestAnimationFrame(function(){Y.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(Y){this.resizerShouldNotify(Y)&&this._notifyDescendant(Y)},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 Kbw=[_.wHX,{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(Y,G){var u=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[Y];if(!u)throw new ReferenceError(this._getUndefinedMsg(Y));Y=this._boundEffect(u,G||{});Y.setUp();return Y},
_effectsChanged:function(Y,G,u){this._tearDownEffects();Y&&u&&(Y.split(" ").forEach(function(O){var Q;O!==""&&((Q=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[O])?this._effects.push(this._boundEffect(Q,G[O])):console.warn(this._getUndefinedMsg(O)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(Y,G){G=G||{};var u=parseFloat(G.startsAt||0),O=parseFloat(G.endsAt||1),Q=O-u,M=function(){};
O=u===0&&O===1?Y.run:function(t,K){Y.run.call(this,Math.max(0,(t-u)/Q),K)};
return{setUp:Y.setUp?Y.setUp.bind(this,G):M,run:Y.run?O.bind(this):M,tearDown:Y.tearDown?Y.tearDown.bind(this):M}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(Y){Y.setUp()!==!1&&this._effectsRunFn.push(Y.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(Y){Y.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(Y,G){this._effectsRunFn&&this._effectsRunFn.forEach(function(u){u(Y,G)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var Y=this._clampedScrollTop;this._updateScrollState(Y);this.threshold>0&&this._setThresholdTriggered(Y>=this.threshold)}},
_getDOMRef:function(Y){console.warn("_getDOMRef","`"+Y+"` is undefined")},
_getUndefinedMsg:function(Y){return"Scroll effect `"+Y+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+Y+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("al`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(Y){var G={};Y=parseFloat(Y.scalar);G.background=this._getDOMRef("background");G.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");G.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");G.deltaBg=G.backgroundFrontLayer.offsetHeight-G.background.offsetHeight;G.deltaBg===0?(isNaN(Y)&&(Y=.8),G.deltaBg=(this._dHeight||0)*Y):(isNaN(Y)&&(Y=
1),G.deltaBg*=Y);this._fxParallaxBackground=G},
run:function(Y){var G=this._fxParallaxBackground;this.transform("translate3d(0px, "+G.deltaBg*Math.min(1,Y)+"px, 0px)",G.backgroundFrontLayer);G.backgroundRearLayer&&this.transform("translate3d(0px, "+G.deltaBg*Math.min(1,Y)+"px, 0px)",G.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var aFx;var TYB;_.Xf({_template:function(){if(TYB!==void 0)return TYB;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;aFx===void 0&&(aFx=document.createElement("template"));var O=aFx;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return TYB=Y},
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(){_.sk(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(Y){Y.keyCode===27&&(Y.preventDefault(),this.close())},
_track:function(Y){if(!this.persistent&&!this.disableSwipe)switch(Y.preventDefault(),Y.detail.state){case "start":this._trackStart(Y);break;case "track":this._trackMove(Y);break;case "end":this._trackEnd(Y)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var Y=this.$.contentContainer.getBoundingClientRect();this._savedWidth=Y.width;this._translateOffset=this.position==="left"?Y.left:Y.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(Y){this._trackDetails&&(this._translateDrawer(Y.detail.dx+this._translateOffset),this._trackDetails.push({dx:Y.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(Y){if(this._trackDetails){var G=Y.detail.dx+this._translateOffset,u=this.getWidth();G=this.position==="left"?G>=0||G<=-u:G<=0||G>=u;if(!G){var O=this._trackDetails;this._trackDetails=null;this._flingDrawer(Y,O);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}u/=2;Y.detail.dx<-u?this.opened=this.position==="right":Y.detail.dx>u&&(this.opened=this.position==="left");G?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(Y,G){for(var u=Date.now(),O=u-100,Q,M=0,t=G.length-1;M<=t;){var K=M+t>>1,L=G[K];L.timeStamp>=O?(Q=L,t=K-1):M=K+1}return Q?(Y.detail.dx-Q.dx)/(u-Q.timeStamp||1):0},
_flingDrawer:function(Y,G){G=this._calculateVelocity(Y,G);if(!(Math.abs(G)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;Y=Y.detail.dx+this._translateOffset;var u=this.getWidth(),O=this.position==="left",Q=G>0;Q?(G=Math.max(G,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(G=Math.min(G,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");G=this._FLING_INITIAL_SLOPE*(!Q&&O?-(Y+u):Q&&!O?u-Y:-Y)/G;this._styleTransitionDuration(G);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,G)}},
_styleTransitionDuration:function(Y){this.style.transitionDuration=Y+"ms";this.$.contentContainer.style.transitionDuration=Y+"ms";this.$.scrim.style.transitionDuration=Y+"ms"},
_styleTransitionTimingFunction:function(Y){this.$.contentContainer.style.transitionTimingFunction=Y;this.$.scrim.style.transitionTimingFunction=Y},
_translateDrawer:function(Y){var G=this.getWidth();this.position==="left"?(Y=Math.max(-G,Math.min(Y,0)),this.$.scrim.style.opacity=1+Y/G):(Y=Math.max(0,Math.min(Y,G)),this.$.scrim.style.opacity=1-Y/G);this.translate3d(Y+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var Y=this._drawerState;Y===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;Y!==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=""),Y!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var Y=_.ax(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"])');Y.length>0?(this._firstTabStop=Y[0],this._lastTabStop=Y[Y.length-1]):
this._lastTabStop=this._firstTabStop=null;(Y=this.getAttribute("tabindex"))&&parseInt(Y,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(Y){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||Y.keyCode!==9||(Y.shiftKey?this._firstTabStop&&_.ax(Y).localTarget===this._firstTabStop&&(Y.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.ax(Y).localTarget===this._lastTabStop&&(Y.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(Y,G){this.toggleClass("visible",Y&&!G,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 Lbw;var g8S;var X9S=function(){};
_.H=X9S.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(){};
X9S=_.Xf({_template:function(){if(g8S!==void 0)return g8S;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Lbw===void 0&&(Lbw=document.createElement("template"));var O=Lbw;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return g8S=Y},
is:"tp-yt-app-header",behaviors:[Kbw,tYB],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 Y=_.ax(this.$.slot).getDistributedNodes(),G=0,u;u=Y[G];G++)if(u.nodeType===Node.ELEMENT_NODE)if(u.hasAttribute("sticky")){this._stickyElRef=u;break}else this._stickyElRef||(this._stickyElRef=u);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var Y=this._clampedScrollTop,G=this._height===0||Y===0,u=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;G||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();G?this._updateScrollState(Y,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=u}},
_updateScrollState:function(Y,G){if(this._height!==0){var u=0,O=this._top;var Q=this._maxHeaderTop;var M=Y-this._lastScrollTop,t=Math.abs(M),K=Y>this._lastScrollTop,L=performance.now();this._mayMove()&&(u=this._clamp(this.reveals?O+M:Y,0,Q));Y>=this._dHeight&&(u=this.condenses&&!this.fixed?Math.max(this._dHeight,u):u,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&t<100){if(L-this._initTimestamp>300||this._wasScrollingDown!==K)this._initScrollTop=Y,this._initTimestamp=L;Y>=Q&&
(Math.abs(this._initScrollTop-Y)>30||t>10?(K&&Y>=Q?u=Q:!K&&Y>=this._dHeight&&(u=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((u-O)/(M/(L-this._lastTimestamp)),0,300)+"ms"):u=this._top)}Q=this._dHeight===0?Y>0?1:0:u/this._dHeight;G||(this._lastScrollTop=Y,this._top=u,this._wasScrollingDown=K,this._lastTimestamp=L);if(G||Q!==this._progress||O!==u||Y===0)this._progress=Q,this._runEffects(Q,u),this._transformHeader(u)}},
_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(Y){this.translate3d(0,-Y+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&Y>=this._stickyElTop?Math.min(Y,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(Y,G,u){return Math.min(u,Math.max(G,Y))},
_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),_.ax(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(Y){switch(Y){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.ax(this).querySelector("[main-title]");case "condensedTitle":return _.ax(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var P2x;var IFw;_.Xf({_template:function(){if(IFw!==void 0)return IFw;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;P2x===void 0&&(P2x=document.createElement("template"));var O=P2x;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return IFw=Y},
is:"tp-yt-app-header-layout",behaviors:[tYB],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.ax(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var Y=this.header;if(this.isAttached&&Y){this.$.wrapper.classList.remove("initializing");Y.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)Y.style.left="",Y.style.right="";else{var G=this.getBoundingClientRect(),u=document.documentElement.clientWidth-G.right;Y.style.left=G.left+"px";Y.style.right=u+"px"}G=this.$.contentContainer.style;u=Y.offsetHeight;Y.fixed&&!Y.condenses&&this.hasScrollingRegion?
(G.marginTop=u+"px",G.paddingTop=""):(G.paddingTop=u+"px",G.marginTop="")}}});/*

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 k$x=_.hV(['<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>']),
n8V=_.bDX(k$x);n8V.setAttribute("style","display: none;");document.head.appendChild(n8V.content);var Fbx;var p9N;/*

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
*/
_.Xf({_template:function(){if(p9N!==void 0)return p9N;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Fbx===void 0&&(Fbx=document.createElement("template"));var O=Fbx;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return p9N=Y},
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(Y,G){var u=this._resolveSrc(Y);u!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",Y===""||G?this._setLoading(!1):(this._resolvedSrc=u,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 Y=this.$.sizedImgDiv.style,G=this.$.placeholder.style;Y.backgroundSize=G.backgroundSize=this.sizing;Y.backgroundPosition=G.backgroundPosition=this.sizing?this.position:"";Y.backgroundRepeat=G.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(Y){Y=_.Ek(Y,this.$.baseURIAnchor.href);Y.length>=2&&Y[0]==="/"&&Y[1]!=="/"&&(Y=(location.origin||location.protocol+"//"+location.host)+Y);return Y}});var zgV;var m8x;_.Xf({_template:function(){if(m8x!==void 0)return m8x;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=
Y.content,u=G.insertBefore;zgV===void 0&&(zgV=document.createElement("template"));var O=zgV;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return m8x=Y},
is:"tp-yt-iron-pages",behaviors:[_.aZ,_.R4],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});var Wbj;var rZg;_.Xf({_template:function(){if(rZg!==void 0)return rZg;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Wbj===void 0&&(Wbj=document.createElement("template"));var O=Wbj;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return rZg=Y},
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(Y){return Y?"false":"true"},
_headingChanged:function(Y){var G=this.getAttribute("heading"),u=this.getAttribute("aria-label");typeof u==="string"&&u!==G||this.setAttribute("aria-label",Y)},
_computeHeadingClass:function(Y){return Y?" over-image":""},
_computeAnimated:function(Y){return Y}});var x89;var fF9;_.Xf({_template:function(){if(fF9!==void 0)return fF9;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;x89===void 0&&(x89=document.createElement("template"));var O=x89;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return fF9=Y},
is:"tp-yt-paper-checkbox",behaviors:[_.buI],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.sk(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var Y=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),G="px",u=Y.match(/[A-Za-z]+$/);u!==null&&(G=u[0]);Y=parseFloat(Y);u=8/3*Y;G==="px"&&(u=Math.floor(u),u%2!==Y%2&&u++);this.updateStyles({"--paper-checkbox-ink-size":u+
G})}})},
_computeCheckboxClass:function(Y,G){var u="";Y&&(u+="checked ");G&&(u+="invalid");return u},
_computeCheckmarkClass:function(Y){return Y?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.h$E._createRipple.call(this)}});var C2N;var yZg;var egN=_.Q5.IronButtonState,AZb=(0,_.H0)(HTMLElement);
_.Xf({_template:function(){if(yZg!==void 0)return yZg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;C2N===void 0&&(C2N=document.createElement("template"));var O=C2N;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return yZg=Y},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[egN,_.uh,_.MR,_.tK],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(Y){var G=(0,_.FP)(this);G.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:Y});G.shadowRoot.appendChild(Y);return AZb.prototype._attachDom.call(this,Y)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var Y=this.contentElement;Y&&Y.selectedItem&&this._setSelectedItem(Y.selectedItem)},
get contentElement(){for(var Y=_.ax(this.$.content).getDistributedNodes(),G=0,u=Y.length;G<u;G++)if(Y[G].nodeType===Node.ELEMENT_NODE)return Y[G]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(Y){this._setSelectedItem(Y.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(Y){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y)===this&&this.open()},
_selectedItemChanged:function(Y){var G="";Y?G=Y.label||Y.getAttribute("label")||Y.textContent.trim():G="";this.value=G;this._setSelectedItemLabel(G)},
_computeMenuVerticalOffset:function(Y,G){return G?G:Y?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var Y=this.opened?"true":"false",G=this.contentElement;G&&G.setAttribute("aria-expanded",Y)}});var o8N;var irS;_.Xf({_template:function(){if(irS!==void 0)return irS;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
var G=Y.content,u=G.insertBefore;o8N===void 0&&(o8N=document.createElement("template"));var O=o8N;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return irS=Y},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var RgS;var w99;_.Xf({_template:function(){if(w99!==void 0)return w99;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;RgS===void 0&&(RgS=document.createElement("template"));var O=RgS;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return w99=Y},
is:"tp-yt-paper-progress",behaviors:[E8x],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(Y){this.toggleClass("indeterminate",Y,this.$.primaryProgress)},
_transformProgress:function(Y,G){Y.style.transform=Y.style.webkitTransform="scaleX("+G/100+")"},
_mainRatioChanged:function(Y){this._transformProgress(this.$.primaryProgress,Y)},
_progressChanged:function(Y,G,u,O,Q){Y=this._clampValue(Y);G=this._clampValue(G);var M=this._calcRatio(Y)*100,t=this._calcRatio(G)*100;this._setSecondaryRatio(M);this._transformProgress(this.$.secondaryProgress,M);this._transformProgress(this.$.primaryProgress,t);this.secondaryProgress=Y;Q?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",G);this.setAttribute("aria-valuemin",u);this.setAttribute("aria-valuemax",O)},
_disabledChanged:function(Y){this.setAttribute("aria-disabled",Y?"true":"false")},
_hideSecondaryProgress:function(Y){return Y===0}});var Zry;var D8V;var hgy=function(){};
_.H=hgy.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(){};
hgy=_.Xf({is:"tp-yt-paper-radio-button",_template:function(){if(D8V!==void 0)return D8V;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Zry===void 0&&(Zry=document.createElement("template"));var O=Zry;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return D8V=Y},
behaviors:[_.buI],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(){_.sk(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var Y=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),G=Math.floor(3*Y);G%2!==Y%2&&G++;this.updateStyles({"--paper-radio-button-ink-size":G+"px"})}})}});var d8B;var brj;_.Xf({_template:function(){if(brj!==void 0)return brj;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;d8B===void 0&&(d8B=document.createElement("template"));var O=d8B;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return brj=Y},
is:"tp-yt-paper-radio-group",behaviors:[_.iyM],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(Y){var G=this._valueToItem(Y);if(!G||!G.hasAttribute("disabled")){if(this.selected){G=this._valueToItem(this.selected);if(this.selected==Y)if(this.allowEmptySelection)Y="";else{G&&(G.checked=!0);return}G&&
(G.checked=!1)}_.R4.select.apply(this,[Y]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(Y){this._focusPrevious();Y.preventDefault();this._activateFocusedItem()},
_onDownKey:function(Y){this._focusNext();Y.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(Y){_.oMe._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(Y){_.oMe._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.R4._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.KM._resetTabindices.apply(this,arguments);this.items.forEach(function(Y){Y.removeAttribute("aria-selected")},this)}});var SMy;var NYV;var jWy=function(){};
_.H=jWy.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(){};
jWy=_.Xf({_template:function(){if(NYV!==void 0)return NYV;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;SMy===void 0&&(SMy=document.createElement("template"));var O=SMy;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return NYV=Y},
is:"tp-yt-paper-slider",behaviors:[_.Gp,_.MR,_.d1k,E8x],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&&_.R3(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(Y,G,u){this.setAttribute("aria-valuemin",G);this.setAttribute("aria-valuemax",u);this.setAttribute("aria-valuenow",Y);this._positionKnob(this._calcRatio(Y)*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(Y){this._setImmediateValue(this._calcStep(this._calcKnobPosition(Y)));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(Y){return(this.max-this.min)*Y/100+this.min},
_onTrack:function(Y){Y.stopPropagation();switch(Y.detail.state){case "start":this._trackStart(Y);break;case "track":this._trackX(Y);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(Y){this.dragging||this._trackStart(Y);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,Y.detail.dx*(this._isRTL?-1:1)));Y=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(Y);Y=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(Y+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var Y=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;Y.transform=Y.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(Y){this._expandKnob();Y.preventDefault();this.focus()},
_bartrack:function(Y){this._allowBarEvent(Y)&&this._onTrack(Y)},
_barclick:function(Y){this._w=this.$.sliderBar.offsetWidth;var G=this.$.sliderBar.getBoundingClientRect();G=(Y.detail.x-G.left)/this._w*100;this._isRTL&&(G=100-G);var u=this.ratio;this._setTransiting(!0);this._positionKnob(G);u===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
Y.preventDefault();this.focus()},
_bardown:function(Y){this._allowBarEvent(Y)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(Y))},
_knobTransitionEnd:function(Y){Y.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(Y,G,u,O){O||this._setMarkers([]);G=Math.round((u-G)/this.step);G>Y&&(G=Y);if(G<0||!isFinite(G))G=0;this._setMarkers(Array(G))},
_mergeClasses:function(Y){return Object.keys(Y).filter(function(G){return Y[G]}).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(Y){return!this.ignoreBarTouch||Y.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(Y){this._isRTL?this._incrementKey(Y):this._decrementKey(Y)},
_rightKey:function(Y){this._isRTL?this._decrementKey(Y):this._incrementKey(Y)},
_incrementKey:function(Y){this.disabled||(Y.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),Y.preventDefault())},
_decrementKey:function(Y){this.disabled||(Y.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),Y.preventDefault())},
_changeValue:function(Y){this.value=Y.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(Y){Y.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.h$E._createRipple.call(this)},
_focusedChanged:function(Y){Y&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=Y?"":"none",this._ripple.holdDown=Y)}});var VYN;var lF9;var XN=null,BY9=function(){};
_.H=BY9.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(){};
BY9=_.Xf({_template:function(){if(lF9!==void 0)return lF9;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;VYN===void 0&&(VYN=document.createElement("template"));var O=VYN;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return lF9=Y},
is:"tp-yt-paper-toast",behaviors:[_.CM],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(){_.Eq._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.mA.requestAvailability()},
show:function(Y){typeof Y=="string"&&(Y={text:Y});for(var G in Y)G.indexOf("_")===0?_.Eq._warn('The property "'+G+'" is private and was not set.'):G in this?this[G]=Y[G]:_.Eq._warn('The property "'+G+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(Y){Y&&Y.target===this&&Y.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(XN&&XN!==this&&XN.close(),XN=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):XN===this&&(XN=null);_.fM._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(Y){this.positionTarget=Y},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var $8N=new _.bu("disablePersonalizationAction");var qRb=new _.bu("showDmaConsentFlowCommand");var sOj=new _.bu("showMmgNoticeCommand");var qMj=new _.bu("saveConsentAction");var sWx=new _.bu("navigateAction");var cZy=new _.bu("replaceFeedContentAction");var U8b=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(U8b,_.Ps);var v8b=_.axj(U8b);var JZb=new _.bu("imageTileRenderer");var Yug=new _.bu("promotedSparklesWebRenderer");var G9w=new _.bu("adGridCardCollectionViewModel");var u7x=new _.bu("addRendererToItemSectionAction");var ONS=new _.bu("updateTopbarAvatarAction");var QNo=new _.bu("channelHandleValidationResultRenderer");var MQw=new _.bu("generateHandleFromNameResultRenderer");var HNb=new _.bu("channelHandleInputRenderer");var EBo=new _.bu("copyLinkRenderer");var tQB=new _.bu("carouselTitleViewModel");var Ksx=new _.bu("ctaCarouselItemViewModel");var aDS=new _.bu("timedCommand");var TDN=new _.bu("textFieldViewModel");var Lsg=new _.bu("crowdsourcedContextUserRatingFormFlowState");var gBb=new _.bu("noteViewModel");var XdV=new _.bu("alertCommand");var PLb=new _.bu("clearCookieAction");var IDg=new _.bu("engagementPanelHeaderShowNavigationButtonCommand");var k9B=new _.bu("getMultiPageMenuAction");var nBo=new _.bu("addToGuideSectionAction"),Fsg=new _.bu("removeFromGuideSectionAction");var pdw=new _.bu("hideEngagementPanelScrimAction");var z7S=new _.bu("updateNotificationsUnseenCountAction");var mhw=new _.bu("resetChannelUnreadCountCommand");var Wsy=new _.bu("resetSubscriptionsUnreadDotCommand");var rqb=new _.bu("selectLanguageCommand");var E5S=new _.bu("sendFeedbackAction");var xhx=new _.bu("setActivePanelItemAction");var fDw=new _.bu("showEngagementPanelScrimAction");var CL9=new _.bu("updateEngagementPanelAction");var yqN=new _.bu("updateSearchInVideoResultsAction");var e7x=new _.bu("uploadImageToScottyCommand");var AqN=new _.bu("webWatchNextResponseExtensionData");var oBb=new _.bu("manageLabsStateCommand");var iNN=new _.bu("registerPromoCommand");var R7S=new _.bu("setPushNotificationsEnabledCommand");var wdN=new _.bu("updateSentimentBarStateCommand");var ZNS=new _.bu("desktopTopbarRenderer");var DhN=new _.bu("surveyFollowUpRenderer");var h7V=new _.bu("formRenderer");var dhb=new _.bu("inlineFormRenderer");var bNS=new _.bu("handlesClaimingRadioOptionRenderer");var SuN=new _.bu("hotkeyDialogRenderer");var NDy=new _.bu("playlistSidebarPrimaryInfoRenderer");var jN9=new _.bu("transcriptCueGroupRenderer");var VQb=new _.bu("transcriptCueRenderer");var lDN=new _.bu("transcriptFooterRenderer");var BD9=new _.bu("engagementPanelAdSubtitleRenderer");var $hg=new _.bu("videoDescriptionFantasySectionViewModel");var qu9=new _.bu("inlineSurveyRenderer");var sNb=new _.bu("radioButtonSurveyOptionRenderer"),cqN=new _.bu("checkboxSurveyOptionRenderer");var Uh9=new _.bu("showSurveyCommand");var Pr=new _.bu("abuseReportFlowState");var vBV=new _.bu("modifyReportFormCommand");var Jqb=new _.bu("feedbackFormFlowState");var Yi9=new _.bu("inputBoxViewModel");var GTy=new _.bu("flowRootRenderer");var Lz9=new _.bu("lengthValidationRule");var XUy=new _.bu("regexValidationRule");var IL9=new _.bu("selectedValidationRule");var uFV=new _.bu("accountLinkCommand");var O0B=new _.bu("accountUnlinkCommand");var QYj=new _.bu("deleteClipEngagementPanelCommand");var MPw=new _.bu("logAccountLinkingEventCommand");var dJS=new _.bu("loopCommand");var Jrw=new _.bu("guideCollapsibleEntryRenderer");var bog=new _.bu("guideDownloadsEntryRenderer");var vUN=new _.bu("guideEntryRenderer");var Sp9=[0,_.j5,_.ca,_.vG];var NOV=[0,_.bO,-2,Nky];var jkg=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.N9(Y)};
_.m(jkg,_.Ps);jkg.prototype.getFeature=function(){return _.zy(this,6)};
jkg.prototype.hasFeature=function(){return _.AB(_.Kc(this,6))!=null};var VfB=[0,_.j5];var ldx=_.yG(jkg,[0,_.bO,-2,Nky,_.bO,_.j5,-1,_.dQ,-1,_.j5,-3,_.axI,_.S5,NOV,_.j5,-1,S6S,_.dQ,_.j5,Sp9,[0,[0,_.j5,-2,2,_.j5,-1,[0,_.j5],[0,_.ca,_.j5],[0,_.ca],[0,_.j5],2,[0,_.ca,2,[0,[2,3],_.ca,opS,_.$U,[0,[1,2,3],opS,-2]],[0,_.Ba,NMS],1,[0,jt9],1,[0,_.j5],1,[0,[2],_.j5,_.$U,[0,_.bO],_.j5]],[0,_.S5],[0,[1,2],_.$U,[0,_.j5],_.$U,[0,_.j5,_.sD,-1]],[0,_.ca],[0,_.j5,[0,[1,2,3,4],_.$U,[0,[0,_.j5],VfB],_.$U,[0,[0,_.j5],VfB],_.$U,[0,VfB],_.$U,[0,[0,_.j5],VfB]]],[0,_.j5],1,[0,_.j5,_.ca],1,[0,_.j5],[0,_.S5],
[0,_.j5,_.ca,-1,[0,_.j5,-4]],[0,_.j5],[0,_.j5,-2],1,[0,_.j5],[0,_.S5],[0,_.S5,_.j5],1,[0,_.S5],[0],[0]],_.j5,_.ca,_.DB,1,_.qP,_.j5,_.ca],_.bO,_.qP,_.ca,-1,_.bO]);var BOb=new _.bu("interstitialViewModel");var $JB=new _.bu("changeCreatorEndscreenVisibilityCommand");var qpo=new _.bu("liveChatCallForQuestionsRenderer");var skw=new _.bu("getLocationCommand");var cQg=new _.bu("locationCollectionCommand");var UJ9=new _.bu("chipsShelfViewModel");var Iq=new _.bu("cinematicContainerRenderer");var kA=new _.bu("changeMarkersVisibilityCommand");var vzN=new _.bu("updateTimedMarkersSyncObserverCommand");var JQN=new _.bu("storiesItemViewModel");var Yvx=new _.bu("talkToRecsViewModel");var JVw=new _.bu("timelyActionViewModel");var G_b=new _.bu("timelyActionsOverlayViewModel");var ubB=new _.bu("addToRemoteQueueAction");var OSw=new _.bu("insertInRemoteQueueAction");var Qg9=new _.bu("removeFromRemoteQueueAction");var Mi9=new _.bu("productDetailsThumbnailRenderer"),HSo=new _.bu("productDetailsVariantRenderer"),Eib=new _.bu("productDetailsVariantOptionRenderer"),tiy=new _.bu("productDetailsOffersContainerRenderer"),KdV=new _.bu("productDetailsOfferRenderer");var aTV=new _.bu("shoppingFlaggingRenderer");var Tmb=new _.bu("notificationActionRenderer");var LdN=new _.bu("notificationRenderer");var AE9=new _.bu("localWatchHistoryCommand");var gix=new _.bu("pdgBuyFlowHeaderRenderer");var XiB=new _.bu("pdgColorSliderRenderer");var Pko=new _.bu("pdgCommentOptionRenderer");var ITx=new _.bu("pdgCommentPreviewRenderer");var k_B=new _.bu("superVodSelectableItemButtonRenderer");var nix=new _.bu("creatorGoalSetUpFlowDropdownItemViewModel");var Fdb=new _.bu("creatorGoalSetUpFlowDropdownViewModel");var pib=new _.bu("repeatChapterCommand");var zKx=new _.bu("watchPlayerOverflowMenuCommand");var ml9=new _.bu("compositeVideoOverlayRenderer");var WdB=new _.bu("playlistBylineRenderer");var r4V=new _.bu("reelNavigateCommand");var xlj=new _.bu("reelNonVideoContentDismissalCommand");var fTx=new _.bu("showReelsCommentsOverlayCommand");var CkN=new _.bu("switchButtonRenderer");var y4V=new _.bu("responsiveContainerConfiguration");var eKj=new _.bu("sortFilterSubMenuRenderer");var A4N=new _.bu("upsellDialogRenderer");var oiN=new _.bu("insertChannelTabCommand");var iSB=new _.bu("feedbackQuestionRenderer"),RKw=new _.bu("feedbackOptionRenderer");var wiV=new _.bu("sponsorshipsTierRenderer"),ZSx=new _.bu("sponsorshipsPromotionChannelRenderer");var DlS=new _.bu("simpleSurveyMessageRenderer");var v2o=new _.bu("thumbnailBadgeViewModel");var hKb=new _.bu("checkboxGroupViewModel");var u2b=new _.bu("checkboxItemViewModel");var dlb=new _.bu("radioButtonGroupViewModel");var bSy=new _.bu("radioButtonItemViewModel");var Svb=new _.bu("switchListItemViewModel");var AVx=new _.bu("inputComposerViewModel");var e8w=new _.bu("panelFooterViewModel");var Nmx=new _.bu("transcriptEditSegmentCommand");var jgg=new _.bu("transcriptUpdateSegmentTextCommand");var Vix=new _.bu("transcriptSearchBoxRenderer");var lT9=new _.bu("transcriptSegmentListRenderer");var Bm9=new _.bu("transcriptSegmentRenderer");var $l9=new _.bu("videoInteractionPopUpRenderer");var qvo=new _.bu("updateDateTextAction");var sgw=new _.bu("updateTitleAction");var c4S=new _.bu("updateViewershipAction");var Ulo=new _.bu("relatedChipCommand");var vib=new _.bu("carouselLockupRenderer");var J4b=new _.bu("engagementPanelSectionListRenderer");var ni=new _.bu("expandableVideoDescriptionBodyRenderer");var YB9=new _.bu("videoDescriptionHeaderRenderer");var GQx=new _.bu("videoDescriptionYouchatSectionViewModel");var Td9=new _.bu("invokeInstrumentManagerAction");var uBB=new _.bu("logYpcFlowDismissCommand");var O99=new _.bu("logYpcFlowStartCommand");var QLB=new _.bu("ypcCancelRecurrenceCommand");var M_w=new _.bu("cancellationFlowState");var ljg=new _.bu("premiumPurchaseFlowState");var H9o=new _.bu("unlimitedCreateFamilyEndpoint");var E$j=new _.bu("surveyAnswerCardRenderer");var t_g=new _.bu("iconBadgeRenderer");var KxS=new _.bu("showMoreButtonRenderer");var apN=new _.bu("pollChoiceData");var iux=new _.bu("collaborativePlaylistVisibilityValidationRule");var Tex=function(Y){_.lI.call(this,"channelMessage");this.message=Y};
_.m(Tex,_.lI);var Lx9=function(Y){_.lI.call(this,"channelError");this.error=Y};
_.m(Lx9,_.lI);var g$y={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",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},Xe9={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},PmS={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},Ipo={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},kQw={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var FN=function(Y){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 _.nA;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;Y&&(this.id=Y.id||Y.name,this.name=Y.name,this.clientName=Y.clientName?Y.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=Y.app,this.type=Y.type||"REMOTE_CONTROL",this.username=Y.user||"",this.avatar=Y.userAvatarUri||"",this.obfuscatedGaiaId=Y.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=Y.ownerObfuscatedGaiaId||"",this.castUserId=Y.castUserId||"",this.theme=Y.theme||"u",n$j(this,Y.capabilities||""),FxN(this,
Y.compatibleSenderThemes||""),peS(this,Y.experiments||""),this.remoteControllerUrl=Y.remoteControllerUrl||"",this.localChannelEncryptionKey=Y.localChannelEncryptionKey||"",this.deviceContext=Y.deviceContext,this.brand=Y.brand||"",this.model=Y.model||"",this.year=Y.year||0,this.os=Y.os||"",this.osVersion=Y.osVersion||"",this.chipset=Y.chipset||"",this.mdxDialServerType=Y.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=Y.pairingType||"unknown",Y=Y.deviceInfo)&&(Y=JSON.parse(Y),this.brand=
Y.brand||"",this.model=Y.model||"",this.year=Y.year||0,this.os=Y.os||"",this.osVersion=Y.osVersion||"",this.chipset=Y.chipset||"",this.clientName=Y.clientName?Y.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=Y.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
FN.prototype.copy=function(){var Y={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&&(Y.brand=this.brand);
this.model&&(Y.model=this.model);this.year&&(Y.year=this.year);this.os&&(Y.os=this.os);this.osVersion&&(Y.osVersion=this.osVersion);this.chipset&&(Y.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(Y.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(Y.mdxDialServerType=this.mdxDialServerType);Y=new FN(Y);Y.connected=this.connected;Y.remoteControllerUrl=this.remoteControllerUrl;Y.localChannelEncryptionKey=this.localChannelEncryptionKey;Y.deviceContext=
this.deviceContext;Y.castUserId=this.castUserId;return Y};
FN.prototype.equals=function(Y){return Y?this.id==Y.id:!1};
var n$j=function(Y,G){Y.capabilities.clear();_.vH(G.split(","),_.H2(_.gX.contains,g$y)).forEach(function(u){Y.capabilities.add(u)})},FxN=function(Y,G){Y.compatibleSenderThemes.clear();
_.vH(G.split(","),_.H2(_.gX.contains,Xe9)).forEach(function(u){Y.compatibleSenderThemes.add(u)})},peS=function(Y,G){Y.experiments.clear();
G.split(",").forEach(function(u){Y.experiments.add(u)})};_.qz(za,_.Ey);_.H=za.prototype;_.H.JSC$20109_onTick_=function(){this.retryCount++;this.JSC$20107_interval_=Math.min(3E5,this.JSC$20107_interval_*2);this.JSC$20109_listener_();this.nextTickTime_&&this.start()};
_.H.getRetryCount=function(){return this.retryCount};
_.H.start=function(){var Y=this.JSC$20107_interval_+15E3*Math.random(),G=this.delay_;G.isActive()||G.start(Y);this.nextTickTime_=Date.now()+Y};
_.H.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.H.isActive=function(){return this.delay_.isActive()};
_.H.reset=function(){this.delay_.stop();this.retryCount=0;this.JSC$20107_interval_=5E3};_.qz(m5,OrN);_.H=m5.prototype;_.H.subscribe=function(Y,G,u){return this.pubsub_.subscribe(Y,G,u)};
_.H.unsubscribe=function(Y,G,u){return this.pubsub_.unsubscribe(Y,G,u)};
_.H.unsubscribeByKey=function(Y){return this.pubsub_.unsubscribeByKey(Y)};
_.H.publish=function(Y,G){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.H.dispose=function(){this.JSC$20110_disposed_||(this.JSC$20110_disposed_=!0,_.ZM(this.pubsub_),this.disconnect(),_.ZM(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20110_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.v$({})})};
_.H.isDisposed=function(){return this.JSC$20110_disposed_};
_.H.connect=function(Y,G,u){var O=this,Q,M,t,K;return _.a(function(L){if(L.nextAddress==1)return _.h0(L,2),O.useAsyncBrowserChannelHandler_?L.yield(O.connectPromise_,2):L.jumpTo(2);_.wt(L);if(O.JSC$20110_disposed_||O.JSC$20110_channel_&&O.JSC$20110_channel_.getState()==2&&!O.isInitialReconnectTimer_)return L.return();O.sCookie_="";O.isInitialReconnectTimer_||O.reconnectTimer_.stop();O.connectionParams_=Y||null;O.connectUi_=G||0;Q=O.JSC$20110_pathPrefix_+"/test";M=O.JSC$20110_pathPrefix_+"/bind";t=
new Fz(u?u.firstTestResults:null,u?u.secondTestResults:null,O.enableAsyncTest_);if(K=O.JSC$20110_channel_)K.handler_=null;t.handler_=O;O.JSC$20110_channel_=t;if(O.useAsyncBrowserChannelHandler_)return O.connectPromise_=z09(O).then(function(){return mfy(O,Q,M,K,u)}),L.return(O.connectPromise_.then(function(){O.connectPromise_=_.v$()}));
mfy(O,Q,M,K,u);return _.dt(L,0)})};
var mfy=function(Y,G,u,O,Q){Wxg(Y);if(Y.JSC$20110_channel_){var M=_.DE("ID_TOKEN"),t=Y.JSC$20110_channel_.JSC$20024_extraHeaders_||{};M?t["x-youtube-identity-token"]=M:delete t["x-youtube-identity-token"];Y.JSC$20110_channel_.JSC$20024_extraHeaders_=t}r3b(Y);O?(O.getState(),Y.JSC$20110_channel_.connect(G,u,Y.defaultQueryParams_,O.sid_,O.JSC$20024_lastArrayId_)):Q?Y.JSC$20110_channel_.connect(G,u,Y.defaultQueryParams_,Q.sessionId,Q.arrayId):Y.JSC$20110_channel_.connect(G,u,Y.defaultQueryParams_);Y.isInitialReconnectTimer_&&
!Y.reconnectTimer_.isActive()&&Y.reconnectTimer_.start();Y.retryLogger_&&Y.retryLogger_.startLogTimeout()};
m5.prototype.disconnect=function(Y){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.v$())}finally{this.disconnectUi_=Y||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),Wxg(this),this.JSC$20110_channel_&&(this.JSC$20110_channel_.getState()==3&&Uiw(this.JSC$20110_channel_),this.JSC$20110_channel_.disconnect()),this.disconnectUi_=0}};
m5.prototype.sendMessage=function(Y,G){var u=this,O;return _.a(function(Q){switch(Q.nextAddress){case 1:_.h0(Q,2);if(!u.useAsyncBrowserChannelHandler_){Q.jumpTo(2);break}return Q.yield(u.connectPromise_,2);case 2:_.wt(Q);if(u.JSC$20110_disposed_)return Q.return();O={_sc:Y};G&&_.gX.extend(O,G);if(u.reconnectTimer_.isActive()||(u.JSC$20110_channel_?u.JSC$20110_channel_.getState():0)==2){u.JSC$20110_pendingMessages_.push(O);Q.jumpTo(6);break}if(!u.isChannelOpened()){Q.jumpTo(6);break}_.h0(Q,8);if(!u.useAsyncBrowserChannelHandler_||
xfy(u,Y)){Q.jumpTo(8);break}return Q.yield(z09(u),8);case 8:_.wt(Q,0,0,1);u.isChannelOpened()&&(xfy(u,Y)||r3b(u),Wxg(u),cl9(u.JSC$20110_channel_,O));_.dt(Q,6,1);break;case 6:_.dt(Q,0)}})};
var xfy=function(Y,G){return Y.enableMdxAuthForConnectionOnly_?!0:Y.disableMdxAuthForAdMessages_?Object.values(PmS).includes(G):Y.disableMdxAuthForNonPlaybackMessages_?!Object.values(Ipo).includes(G):Y.disableMdxAuthForShortsMessages_?Object.values(kQw).includes(G):!1};
m5.prototype.JSC$20031_channelOpened=function(){this.retryLogger_&&this.reconnectTimer_&&this.reconnectTimer_.getRetryCount()>0&&(this.retryLogger_.logRetry(this.reconnectTimer_.getRetryCount(),this.isInitialReconnectTimer_,!0),this.retryLogger_.logSuccess());this.retryLogger_&&this.retryLogger_.cancelLogTimeout();this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.ZM(this.reconnectTimer_),this.reconnectTimer_=new za(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();
this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20110_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)fpB(this);else{var Y=this.JSC$20110_pendingMessages_;this.JSC$20110_pendingMessages_=[];var G=Y.length;r3b(this);Cm9(this,Y,G);y3b(this)}else y3b(this)};
var fpB=function(Y){var G,u;_.a(function(O){if(O.nextAddress==1)return _.h0(O,2),O.yield(z09(Y),2);_.wt(O);G=Y.JSC$20110_pendingMessages_;Y.JSC$20110_pendingMessages_=[];u=G.length;Cm9(Y,G,u);y3b(Y);return _.dt(O,0)})},Cm9=function(Y,G,u){for(var O=0;O<u;++O)cl9(Y.JSC$20110_channel_,G[O]);
y3b(Y)},y3b=function(Y){Y.publish("handlerOpened");
Y.JSC$20110_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.H=m5.prototype;_.H.JSC$20031_channelError=function(Y){var G=Y==2&&this.JSC$20110_channel_.JSC$20024_lastStatusCode_==401;Y==4||G||(this.isInitialReconnectTimer_&&!this.reconnectTimer_.isActive()&&(_.ZM(this.reconnectTimer_),this.reconnectTimer_=new za(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1),this.reconnectTimer_.start());this.publish("handlerError",Y,G);G=Object.keys(Saj).find(function(u){return Saj[u]===Y});
this.JSC$20110_channelErrorCounter.increment("BROWSER_CHANNEL",G!=null?G:"UNKNOWN")};
_.H.JSC$20031_channelClosed=function(Y,G){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(G)for(var u=G.length,O=0;O<u;++O){var Q=G[O].map;Q&&this.JSC$20110_pendingMessages_.push(Q)}this.JSC$20110_channelClosedCounter.increment("BROWSER_CHANNEL");Y&&this.pendingMapsOnClosedCounter.JSC$10254_streamzService.JSC$10108_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",Y.length);G&&this.undeliveredMapsOnClosedCounter.JSC$10257_streamzService.JSC$10108_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
G.length)};
_.H.JSC$20031_channelSuccess=function(Y,G){G!=null&&Y!=null&&this.channelMessageSentCounter.increment()};
_.H.JSC$20031_getAdditionalParams=function(){var Y={v:2};this.sCookie_&&(Y.gsessionid=this.sCookie_);this.connectUi_!=0&&(Y.ui=""+this.connectUi_);this.disconnectUi_!=0&&(Y.ui=""+this.disconnectUi_);this.connectionParams_&&_.gX.extend(Y,this.connectionParams_);return Y};
_.H.JSC$20031_channelHandleArray=function(Y){Y[0]=="S"?this.sCookie_=Y[1]:Y[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20110_channel_.disconnect()):this.publish("handlerMessage",new uSx(Y[0],Y[1]));this.JSC$20110_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.H.isChannelOpened=function(){return!!this.JSC$20110_channel_&&this.JSC$20110_channel_.getState()==3};
var Wxg=function(Y){if(Y.JSC$20110_channel_){var G=Y.JSC$20110_getXsrfToken_(),u=Y.JSC$20110_channel_.JSC$20024_extraHeaders_||{};G?u["x-youtube-lounge-xsrf-token"]=G:delete u["x-youtube-lounge-xsrf-token"];Y.JSC$20110_channel_.JSC$20024_extraHeaders_=u}},z09=function(Y){if(Y.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.v$();
if(!Y.enableCachedUpdateAuthorizationHeader_)return e0o(Y);Y.updateAuthorizationHeaderPromise_===null&&(Y.updateAuthorizationHeaderPromise_=e0o(Y));return Y.updateAuthorizationHeaderPromise_},e0o=function(Y){return _.Wp(Y.getAuthorizationHeader_().then(function(G){A39(Y,G)}).thenCatch(function(){}),function(){Y.updateAuthorizationHeaderPromise_=null})},A39=function(Y,G){if(Y.JSC$20110_channel_){var u=Y.JSC$20110_channel_.JSC$20024_extraHeaders_||{};
G&&Object.keys(G).length>0?u=Object.assign({},u,G):delete u.Authorization;Y.JSC$20110_channel_.JSC$20024_extraHeaders_=u}},r3b=function(Y){Y.getAuthorizationHeaderSync_&&!Y.useAsyncBrowserChannelHandler_&&A39(Y,Y.getAuthorizationHeaderSync_())};
_.H=m5.prototype;_.H.setLoungeToken=function(Y){(this.defaultQueryParams_.loungeIdToken=Y)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20110_channel_){var G=this.JSC$20110_channel_.JSC$20024_extraHeaders_||{};Y?G["X-YouTube-LoungeId-Token"]=Y:delete G["X-YouTube-LoungeId-Token"];this.JSC$20110_channel_.JSC$20024_extraHeaders_=G}};
_.H.getDeviceId=function(){return this.defaultQueryParams_.id};
_.H.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.H.reconnect=function(){var Y=this.reconnectTimer_;Y.delay_.fire();Y.start()};
_.H.safeReconnect_=function(){var Y=this.JSC$20110_channel_,G=0;Y.JSC$20024_backChannelRequest_&&G++;Y.forwardChannelRequest_&&G++;G==0&&this.connect(this.connectionParams_,this.connectUi_)};var fW=function(Y,G){var u=Y.basePath;Y.supportCors&&(u=Y.scheme+"://"+Y.domain+Y.port+Y.basePath);return _.JD(u+G,{})};
a9b.prototype.sendRequest=function(Y,G,u,O,Q,M,t){Y={format:M?"RAW":"JSON",method:Y,context:this,timeout:5E3,withCredentials:!!t,onSuccess:_.H2(this.JSC$20117_onSuccess_,O,!M),onError:_.H2(this.onError_,Q),onTimeout:_.H2(this.JSC$20117_onTimeout_,Q)};u&&(Y.postParams=u,Y.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.td(G,Y)};
a9b.prototype.JSC$20117_onSuccess_=function(Y,G,u,O){G?Y(O):Y({text:u.responseText})};
a9b.prototype.onError_=function(Y,G){Y(Error("bl`"+G.status))};
a9b.prototype.JSC$20117_onTimeout_=function(Y){Y(Error("cl"))};var X3y=function(Y,G){return!!G&&(Y.id==G||Y.uuid==G)},o$S=function(Y){return{name:Y.name,
screenId:Y.id,loungeToken:Y.token,dialId:Y.uuid,screenIdType:Y.idType,screenIdSecret:Y.secret}},i9N=function(Y){return new Wk(Y)},R09=function(Y){return Array.isArray(Y)?_.Xi(Y,i9N):[]},Ivg=function(Y){if(!Y)return"null";
var G=Y.token?".."+Y.token.slice(-6):"-",u=Y.uuid?".."+Y.uuid.slice(-6):"-",O=Y.secret?".."+Y.secret.slice(-6):"-";return'{name:"'+Y.name+'",id:'+Y.id.substr(0,6)+"..,token:"+(G+",uuid:"+u+",idType:"+Y.idType+",secret:")+(O+"}")},Vkw=function(Y){return Array.isArray(Y)?"["+_.Xi(Y,Ivg).join(",")+"]":"null"};var zMV="",xu=null;var oyg=function(Y,G){_.C7.call(this);var u=this;this.handler=Y();this.handler.subscribe("handlerOpened",this.JSC$20124_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(O,Q){u.onError(Q)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=G};
_.m(oyg,_.C7);_.H=oyg.prototype;_.H.connect=function(Y,G,u){this.handler.connect(Y,G,u)};
_.H.disconnect=function(Y){this.handler.disconnect(Y)};
_.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$20124_onOpened=function(){this.dispatchEvent("channelOpened");var Y=this.handler,G=this.currentScreenId;_.TA("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!Y.JSC$20110_channel_.useChunked_,sessionId:Y.JSC$20110_channel_.sid_,arrayId:Y.JSC$20110_channel_.JSC$20024_lastArrayId_});_.TA("yt-remote-session-screen-id",G);Y=Pqg();G=I9V();_.ST(Y,G)||Y.push(G);p3j(Y);Faj()};
_.H.onClosed=function(){this.dispatchEvent("channelClosed")};
_.H.onMessage=function(Y){this.dispatchEvent(new Tex(Y))};
_.H.onError=function(Y){this.dispatchEvent(new Lx9(Y?1:0))};
_.H.sendMessage=function(Y,G){this.handler.sendMessage(Y,G)};
_.H.setLoungeToken=function(Y){this.handler.setLoungeToken(Y)};
_.H.dispose=function(){this.handler.dispose()};var ARj=function(Y,G,u){var O=this;u=u===void 0?function(){return""}:u;
var Q=Q===void 0?new s4x:Q;var M=M===void 0?new _.KG:M;this.pathPrefix=Y;this.defaultQueryParams=G;this.getXsrfToken=u;this.JSC$20127_pubsub=M;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new za(function(){var t;((t=O.channel)==null?void 0:Soy((new Ku9(t,t.JSC$19992_channel_)).JSC$20002_channel_.forwardChannelRequestPool_))===0&&O.connect(O.connectionParams,O.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20127_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20127_channelOpenedCounter=new OdN;this.JSC$20127_channelClosedCounter=new QDy;this.JSC$20127_channelMessageReceivedCounter=new HdN;this.JSC$20127_channelErrorCounter=new EyV};
ARj.prototype.connect=function(Y,G){Y=Y===void 0?{}:Y;G=G===void 0?0:G;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=Y,this.connectUi=G,weS(this),(Y=_.DE("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=Y: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 aq(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,Z9y(this))};
var Z9y=function(Y){_.yn(Y.channel,"w",function(){Y.channelState=3;Y.reconnectTimer.reset();Y.connectionParams=null;Y.connectUi=0;for(var G=_.E(Y.nonAckedMessagesOnChannelClosed),u=G.next();!u.done;u=G.next())u=u.value,Y.channel&&Y.channel.send(u);Y.nonAckedMessagesOnChannelClosed=[];Y.publish("webChannelOpened");Y.JSC$20127_channelOpenedCounter.increment("WEB_CHANNEL")});
_.yn(Y.channel,"x",function(){Y.channelState=0;Y.reconnectTimer.isActive()||Y.publish("webChannelClosed");var G,u=(G=Y.channel)==null?void 0:aRy(new Ku9(G,G.JSC$19992_channel_));u&&(Y.nonAckedMessagesOnChannelClosed=[].concat(_.c8(u)));Y.JSC$20127_channelClosedCounter.increment("WEB_CHANNEL")});
_.yn(Y.channel,"z",function(G){var u=G.data;u[0]==="gracefulReconnect"?(Y.reconnectTimer.start(),Y.channel&&Y.channel.close()):Y.publish("webChannelMessage",new uSx(u[0],u[1]));Y.lastStatusCode=G.statusCode;Y.JSC$20127_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.yn(Y.channel,"y",function(){Y.lastStatusCode===401||Y.reconnectTimer.start();Y.publish("webChannelError");Y.JSC$20127_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.H=ARj.prototype;_.H.disconnect=function(Y){this.disconnectUi=Y===void 0?0:Y;this.reconnectTimer.stop();weS(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 Y=this.reconnectTimer;Y.delay_.fire();Y.start()};
_.H.sendMessage=function(Y,G){this.channel&&(weS(this),Y=Object.assign({},{_sc:Y},G),this.channel.send(Y))};
_.H.setLoungeToken=function(Y){Y||this.reconnectTimer.stop();Y?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=Y:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var weS=function(Y){var G=Y.getXsrfToken();G?Y.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=G:delete Y.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.H=ARj.prototype;_.H.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.H.publish=function(Y){return this.JSC$20127_pubsub.publish.apply(this.JSC$20127_pubsub,[Y].concat(_.c8(_.vs.apply(1,arguments))))};
_.H.subscribe=function(Y,G,u){return this.JSC$20127_pubsub.subscribe(Y,G,u)};
_.H.unsubscribe=function(Y,G,u){return this.JSC$20127_pubsub.unsubscribe(Y,G,u)};
_.H.unsubscribeByKey=function(Y){return this.JSC$20127_pubsub.unsubscribeByKey(Y)};
_.H.dispose=function(){this.JSC$20127_disposed||(this.JSC$20127_disposed=!0,_.ZM(this.JSC$20127_pubsub),this.disconnect(),_.ZM(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.H.isDisposed=function(){return this.JSC$20127_disposed};var eMb=function(Y){_.C7.call(this);this.webChannelService=Y();this.webChannelService.subscribe("webChannelOpened",this.JSC$20135_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.m(eMb,_.C7);_.H=eMb.prototype;_.H.connect=function(Y,G){this.webChannelService.connect(Y,G)};
_.H.disconnect=function(Y){this.webChannelService.disconnect(Y)};
_.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$20135_onOpened=function(){this.dispatchEvent("channelOpened")};
_.H.onClosed=function(){this.dispatchEvent("channelClosed")};
_.H.onMessage=function(Y){this.dispatchEvent(new Tex(Y))};
_.H.onError=function(){this.dispatchEvent(new Lx9(this.webChannelService.lastStatusCode===401?1:0))};
_.H.sendMessage=function(Y,G){this.webChannelService.sendMessage(Y,G)};
_.H.setLoungeToken=function(Y){this.webChannelService.setLoungeToken(Y)};
_.H.dispose=function(){this.webChannelService.dispose()};var jDV=Date.now(),CW=null,S3N=Array(50),bd9=-1,NHo=!1;var Ac=function(Y){Y=Y===void 0?!1:Y;_.Ey.call(this);this.pubSub_=new _.KG(Y);_.vF(this,this.pubSub_)};
_.qz(Ac,_.Ey);Ac.prototype.subscribe=function(Y,G,u){return this.isDisposed()?0:this.pubSub_.subscribe(Y,G,u)};
Ac.prototype.unsubscribe=function(Y,G,u){return this.isDisposed()?!1:this.pubSub_.unsubscribe(Y,G,u)};
Ac.prototype.unsubscribeByKey=function(Y){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(Y)};
Ac.prototype.publish=function(Y,G){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};_.qz(o6,Ac);o6.prototype.getScreens=function(){return this.screens};
o6.prototype.contains=function(Y){return!!gyN(this.screens,Y)};
o6.prototype.get=function(Y){return Y?rs(this.screens,Y):null};
var Dfy=function(Y,G){var u=Y.get(G.uuid)||Y.get(G.id);if(u)return Y=u.name,u.id=G.id||u.id,u.name=G.name,u.token=G.token,u.uuid=G.uuid||u.uuid,u.name!=Y;Y.screens.push(G);return!0},h0b=function(Y,G){var u=Y.screens.length!=G.length;
Y.screens=_.vH(Y.screens,function(M){return!!gyN(G,M)});
for(var O=G.length,Q=0;Q<O;Q++)u=Dfy(Y,G[Q])||u;return u},dfV=function(Y,G){var u=Y.screens.length;
Y.screens=_.vH(Y.screens,function(O){return!(O||G?!O!=!G?0:O.id==G.id:1)});
return Y.screens.length<u};
o6.prototype.info=function(Y){y3(this.JSC$20139_logName_,Y)};var b9V=function(Y,G,u,O,Q){Ac.call(this);this.JSC$20142_http_=Y;this.pairingCode_=G;this.deviceId_=u;this.friendlyName_=O;this.enableShortLivedLoungeToken_=Q;this.pollIndex_=0;this.JSC$20142_xhr_=null;this.JSC$20142_timer_=NaN};
_.m(b9V,Ac);_.H=b9V.prototype;_.H.start=function(){!this.JSC$20142_xhr_&&isNaN(this.JSC$20142_timer_)&&this.poll_()};
_.H.stop=function(){this.JSC$20142_xhr_&&(this.JSC$20142_xhr_.abort(),this.JSC$20142_xhr_=null);isNaN(this.JSC$20142_timer_)||(_.E5(this.JSC$20142_timer_),this.JSC$20142_timer_=NaN)};
_.H.disposeInternal=function(){this.stop();Ac.prototype.disposeInternal.call(this)};
_.H.poll_=function(){this.JSC$20142_timer_=NaN;this.JSC$20142_xhr_=_.td(fW(this.JSC$20142_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.tP)(this.JSC$20144_onSuccess_,this),onError:(0,_.tP)(this.onError_,this),onTimeout:(0,_.tP)(this.JSC$20144_onTimeout_,this)})};
_.H.JSC$20144_onSuccess_=function(Y,G){this.JSC$20142_xhr_=null;Y=G.screen||{};Y.dialId=this.deviceId_;Y.name=this.friendlyName_;G=-1;this.enableShortLivedLoungeToken_&&Y.shortLivedLoungeToken&&Y.shortLivedLoungeToken.value&&Y.shortLivedLoungeToken.refreshIntervalMs&&(Y.screenIdType="shortLived",Y.loungeToken=Y.shortLivedLoungeToken.value,G=Y.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new Wk(Y),G)};
_.H.onError_=function(Y){this.JSC$20142_xhr_=null;Y.status&&Y.status==404?this.pollIndex_>=SBV.length?this.publish("pairingFailed",Error("dl")):(Y=SBV[this.pollIndex_],this.JSC$20142_timer_=_.MN((0,_.tP)(this.poll_,this),Y),this.pollIndex_++):this.publish("pairingFailed",Error("el`"+Y.status))};
_.H.JSC$20144_onTimeout_=function(){this.JSC$20142_xhr_=null;this.publish("pairingFailed",Error("fl"))};
var SBV=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.qz(R6,o6);_.H=R6.prototype;_.H.start=function(){iG(this)&&this.publish("screenChange");!_.LB("yt-remote-lounge-token-expiration")&&NeV(this);_.E5(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.MN((0,_.tP)(this.start,this),1E4)};
_.H.add=function(Y,G){iG(this);Dfy(this,Y);jL9(this,!1);this.publish("screenChange");G(Y);Y.token||NeV(this)};
_.H.remove=function(Y,G){var u=iG(this);dfV(this,Y)&&(jL9(this,!1),u=!0);G(Y);u&&this.publish("screenChange")};
_.H.updateName=function(Y,G,u,O){var Q=iG(this),M=this.get(Y.id);M?(M.name!=G&&(M.name=G,jL9(this,!1),Q=!0),u(Y)):O(Error("gl"));Q&&this.publish("screenChange")};
_.H.disposeInternal=function(){_.E5(this.loungeTokenRefreshTimer_);R6.superClass_.disposeInternal.call(this)};
var NeV=function(Y){if(Y.screens.length){var G=_.Xi(Y.screens,function(O){return O.id}),u=fW(Y.JSC$20146_http_,"/pairing/get_lounge_token_batch");
Y.JSC$20146_http_.sendRequest("POST",u,{screen_ids:G.join(",")},(0,_.tP)(Y.handleLoungeTokens_,Y),(0,_.tP)(Y.handleLoungeTokenError_,Y))}};
R6.prototype.handleLoungeTokens_=function(Y){iG(this);var G=this.screens.length;Y=Y&&Y.screens||[];for(var u=Y.length,O=0;O<u;++O){var Q=Y[O],M=this.get(Q.screenId);M&&(M.token=Q.loungeToken,--G)}jL9(this,!G);G&&y3(this.JSC$20139_logName_,"Missed "+G+" lounge tokens.")};
R6.prototype.handleLoungeTokenError_=function(Y){y3(this.JSC$20139_logName_,"Requesting lounge tokens failed: "+Y)};
var iG=function(Y){if(_.F("deprecate_pair_servlet_enabled"))return h0b(Y,[]);var G=R09(Waw());G=_.vH(G,function(u){return!u.uuid});
return h0b(Y,G)},jL9=function(Y,G){x49(_.Xi(Y.screens,o$S));
G&&rRB()};var pi=function(Y,G){Ac.call(this);this.getScreensToCheck_=G;G=(G=_.LB("yt-remote-online-screen-ids")||"")?G.split(","):[];for(var u={},O=this.getScreensToCheck_(),Q=O.length,M=0;M<Q;++M){var t=O[M].id;u[t]=_.ST(G,t)}this.screenIdSet_=u;this.JSC$20149_http_=Y;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;V_V("Initialized with "+_.fV(this.screenIdSet_))};
_.m(pi,Ac);pi.prototype.isOnline=function(Y){return!!this.screenIdSet_[Y]};
pi.prototype.start=function(){var Y=parseInt(_.LB("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.$M()-144E5<Y?0:Y)?lpV(this):(this.fastCheckEndTime_=_.$M()+3E5,_.TA("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
pi.prototype.isEmpty=function(){return _.gX.isEmpty(this.screenIdSet_)};
pi.prototype.update=function(){V_V("Updating availability on schedule.");var Y=this.getScreensToCheck_(),G=_.gX.filter(this.screenIdSet_,function(u,O){return u&&!!rs(Y,O)},this);
Bey(this,G)};
var $fB=function(Y,G,u){var O=fW(Y.JSC$20149_http_,"/pairing/get_screen_availability");Y.JSC$20149_http_.sendRequest("POST",O,{lounge_token:G.token},(0,_.tP)(function(Q){Q=Q.screens||[];for(var M=Q.length,t=0;t<M;++t)if(Q[t].loungeToken==G.token){u(Q[t].status=="online");return}u(!1)},Y),(0,_.tP)(function(){u(!1)},Y))};
pi.prototype.disposeInternal=function(){_.E5(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);Ac.prototype.disposeInternal.call(this)};
var Bey=function(Y,G){a:if(_.gX.getCount(G)!=_.gX.getCount(Y.screenIdSet_))var u=!1;else{u=_.gX.getKeys(G);for(var O=u.length,Q=0;Q<O;++Q)if(!Y.screenIdSet_[u[Q]]){u=!1;break a}u=!0}u||(V_V("Updated online screens: "+_.fV(Y.screenIdSet_)),Y.screenIdSet_=G,Y.publish("screenChange"));qBB(Y)},lpV=function(Y){isNaN(Y.refreshTimer_)||_.E5(Y.refreshTimer_);
Y.refreshTimer_=_.MN((0,_.tP)(Y.requestScreenAvailability_,Y),Y.fastCheckEndTime_>0&&Y.fastCheckEndTime_<_.$M()?2E4:1E4)};
pi.prototype.requestScreenAvailability_=function(){_.E5(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var Y=sLx(this);if(_.gX.getCount(Y)){var G=fW(this.JSC$20149_http_,"/pairing/get_screen_availability"),u={lounge_token:_.gX.getKeys(Y).join(",")};this.currentRequest_=this.JSC$20149_http_.sendRequest("POST",G,u,(0,_.tP)(this.onScreenAvailability_,this,Y),(0,_.tP)(this.onScreenAvailabilityError_,this))}else Bey(this,{}),lpV(this)};
pi.prototype.onScreenAvailability_=function(Y,G){this.currentRequest_=null;var u=_.gX.getKeys(sLx(this));if(_.UI(u,_.gX.getKeys(Y))){G=G.screens||[];u={};for(var O=G.length,Q=0;Q<O;++Q)u[Y[G[Q].loungeToken]]=G[Q].status=="online";Bey(this,u);lpV(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
pi.prototype.onScreenAvailabilityError_=function(Y){this.warn_("Screen availability failed: "+Y);this.currentRequest_=null;lpV(this)};
var V_V=function(Y){y3("OnlineScreenService",Y)};
pi.prototype.warn_=function(Y){y3("OnlineScreenService",Y)};
var sLx=function(Y){var G={};_.jo(Y.getScreensToCheck_(),function(u){u.token?G[u.token]=u.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return G},qBB=function(Y){Y=_.gX.getKeys(_.gX.filter(Y.screenIdSet_,function(G){return G}));
Y.sort(_.Z1j);Y.length?_.TA("yt-remote-online-screen-ids",Y.join(","),60):_.gG("yt-remote-online-screen-ids")};_.qz(ws,o6);_.H=ws.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(Y,G,u){this.localScreenService_.add(Y,G,u)};
_.H.remove=function(Y,G,u){this.localScreenService_.remove(Y,G,u);this.onlineScreenService_.update()};
_.H.updateName=function(Y,G,u,O){this.localScreenService_.contains(Y)?this.localScreenService_.updateName(Y,G,u,O):(Y="Updating name of unknown screen: "+Y.name,y3(this.JSC$20139_logName_,Y),O(Error(Y)))};
_.H.getScreens=function(Y){return Y?this.screens:fUx(this.screens,_.vH(this.automaticScreens_,function(G){return!this.contains(G)},this))};
_.H.JSC$20154_getOnlineScreens=function(){return _.vH(this.getScreens(!0),function(Y){return this.onlineScreenService_.isOnline(Y.id)},this)};
var Ufb=function(Y,G,u,O,Q,M){Y.info("getAutomaticScreenByIds "+u+" / "+G);u||(u=Y.deviceToScreenId_[G]);var t=Y.getScreens(),K=u?rs(t,u):null;u&&(Y.disableAutomaticScreenCache_||K)||(K=rs(t,G));if(K){K.uuid=G;var L=zH(Y,K);$fB(Y.onlineScreenService_,L,function(g){Q(g?L:null)})}else u?c3g(Y,u,(0,_.tP)(function(g){var P=zH(this,new Wk({name:O,
screenId:u,loungeToken:g,dialId:G||""}));$fB(this.onlineScreenService_,P,function(I){Q(I?P:null)})},Y),M):Q(null)};
ws.prototype.JSC$20154_getScreenByPollingPairingCode=function(Y,G,u,O,Q,M){var t=this;this.info("getDialScreenByPairingCode "+Y+" / "+G);var K=new b9V(this.JSC$20152_http_,Y,G,u,O);K.subscribe("pairingComplete",function(L,g){_.ZM(K);Q(zH(t,L),g)});
K.subscribe("pairingFailed",function(L){_.ZM(K);M(L)});
K.start();return(0,_.tP)(K.stop,K)};
var v$g=function(Y,G){for(var u=Y.screens.length,O=0;O<u;++O)if(Y.screens[O].name==G)return Y.screens[O];return null};
ws.prototype.JSC$20154_getScreenByPairingCode=function(Y,G,u,O){_.td(fW(this.JSC$20152_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:Y},timeout:5E3,onSuccess:(0,_.tP)(function(Q,M){Q=new Wk(M.screen||{});if(!Q.name||v$g(this,Q.name)){a:{M=Q.name;for(var t=2,K=G(M,t);v$g(this,K);){t++;if(t>20)break a;K=G(M,t)}M=K}Q.name=M}u(zH(this,Q))},this),
onError:(0,_.tP)(function(Q){O(Error("hl`"+Q.status))},this),
onTimeout:(0,_.tP)(function(){O(Error("il"))},this)})};
var J3B=function(Y,G,u){$fB(Y.onlineScreenService_,G,u)};
ws.prototype.disposeInternal=function(){_.ZM(this.localScreenService_);_.ZM(this.onlineScreenService_);ws.superClass_.disposeInternal.call(this)};
var c3g=function(Y,G,u,O){Y.info("requestLoungeToken_ for "+G);var Q={postParams:{screen_ids:G},method:"POST",context:Y,onSuccess:function(M,t){M=t&&t.screens||[];M[0]&&M[0].screenId==G?u(M[0].loungeToken):O(Error("jl"))},
onError:function(){O(Error("kl"))}};
_.td(fW(Y.JSC$20152_http_,"/pairing/get_lounge_token_batch"),Q)},YFS=function(Y){Y.screens=Y.localScreenService_.getScreens();
for(var G=_.gX.transpose(Y.deviceToScreenId_),u=Y.screens.length,O=0;O<u;++O){var Q=Y.screens[O];Q.uuid=G[Q.id]||""}Y.info("Updated manual screens: "+Vkw(Y.screens))};
ws.prototype.handleScreenChange_=function(){YFS(this);this.publish("screenChange");this.onlineScreenService_.update()};
var l99=function(Y){GFo(Y);Y.localScreenService_=new R6(Y.JSC$20152_http_);Y.localScreenService_.subscribe("screenChange",(0,_.tP)(Y.handleScreenChange_,Y));YFS(Y);Y.disableAutomaticScreenCache_||(Y.automaticScreens_=R09(_.LB("yt-remote-automatic-screen-cache")||[]));GFo(Y);Y.info("Initializing automatic screens: "+Vkw(Y.automaticScreens_));Y.onlineScreenService_=new pi(Y.JSC$20152_http_,(0,_.tP)(Y.getScreens,Y,!0));Y.onlineScreenService_.subscribe("screenChange",(0,_.tP)(function(){this.publish("onlineScreenChange")},
Y))},zH=function(Y,G){var u=Y.get(G.id);
u?(u.uuid=G.uuid,G=u):((u=rs(Y.automaticScreens_,G.uuid))?(u.id=G.id,u.token=G.token,G=u):Y.automaticScreens_.push(G),Y.disableAutomaticScreenCache_||uJb(Y));GFo(Y);Y.deviceToScreenId_[G.uuid]=G.id;_.TA("yt-remote-device-id-map",Y.deviceToScreenId_,31536E3);return G},uJb=function(Y){Y=_.vH(Y.automaticScreens_,function(G){return G.idType!="shortLived"});
_.TA("yt-remote-automatic-screen-cache",_.Xi(Y,o$S))},GFo=function(Y){Y.deviceToScreenId_=_.LB("yt-remote-device-id-map")||{}};
ws.prototype.dispose=ws.prototype.dispose;_.qz(Zk,Ac);var m$=function(Y,G){Y.screen_=G;Y.publish("sessionScreen",Y.screen_)},OgV=function(Y,G){Y.screen_&&(Y.screen_.token=G,zH(Y.JSC$20156_screenService_,Y.screen_));
Y.publish("sessionScreen",Y.screen_)};
Zk.prototype.onSessionStopped=function(Y){this.isDisposed()||(Y&&(Wr(this,""+Y),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Zk.prototype.info=function(Y){y3(this.JSC$20156_logName_,Y)};
var Wr=function(Y,G){y3(Y.JSC$20156_logName_,G)};
Zk.prototype.JSC$20158_getCastSession=function(){return null};
Zk.prototype.setDisplayStatus=function(Y){var G=this.receiver_;Y?(G.displayStatus=new chrome.cast.ReceiverDisplayStatus(Y,[]),G.displayStatus.showStop=!0):G.displayStatus=null;chrome.cast.setReceiverDisplayStatus(G,(0,_.tP)(function(){this.info("Updated receiver status for "+G.friendlyName+": "+Y)},this),(0,_.tP)(function(){Wr(this,"Failed to update receiver status for: "+G.friendlyName)},this))};
Zk.prototype.disposeInternal=function(){this.setDisplayStatus("");Zk.superClass_.disposeInternal.call(this)};var r$=function(Y,G,u){Zk.call(this,Y,G,"CastSession");var O=this;this.config_=u;this.JSC$20161_session_=null;this.JSC$20161_boundSessionUpdate_=(0,_.tP)(this.JSC$20163_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.tP)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.MN(function(){QJw(O,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20161_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20161_isInitLoungeToken_=!1;this.JSC$20161_lastLoungeTokenRefreshError_="unknown"};
_.m(r$,Zk);_.H=r$.prototype;
_.H.setCastSession=function(Y){if(this.JSC$20161_session_){if(this.JSC$20161_session_==Y)return;Wr(this,"Overriding cast session with new session object");MzB(this);this.JSC$20161_isInitLoungeToken_=!1;this.JSC$20161_lastLoungeTokenRefreshError_="unknown";this.JSC$20161_session_.removeUpdateListener(this.JSC$20161_boundSessionUpdate_);this.JSC$20161_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20161_session_=Y;this.JSC$20161_session_.addUpdateListener(this.JSC$20161_boundSessionUpdate_);this.JSC$20161_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);Hgb(this,"getMdxSessionStatus")};
_.H.launchWithParams=function(Y){this.info("launchWithParams no-op for Cast: "+_.fV(Y))};
_.H.stop=function(){if(this.JSC$20161_session_)this.JSC$20161_session_.stop((0,_.tP)(function(){this.onSessionStopped()},this),(0,_.tP)(function(){this.onSessionStopped(Error("ll"))},this));
else this.onSessionStopped(Error("ml"))};
_.H.setDisplayStatus=function(){};
_.H.disposeInternal=function(){this.info("disposeInternal");MzB(this);this.JSC$20161_session_&&(this.JSC$20161_session_.removeUpdateListener(this.JSC$20161_boundSessionUpdate_),this.JSC$20161_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20161_session_=null;Zk.prototype.disposeInternal.call(this)};
var tzx=function(Y,G){_.E5(Y.getLoungeTokenTimeoutKey_);Y.getLoungeTokenTimeoutKey_=0;G==0?E19(Y):Y.getLoungeTokenTimeoutKey_=_.MN(function(){E19(Y)},G)},E19=function(Y){Hgb(Y,"getLoungeToken");
_.E5(Y.onLoungeTokenTimeoutKey_);Y.onLoungeTokenTimeoutKey_=_.MN(function(){KtN(Y,null)},3E4)},Hgb=function(Y,G){Y.info("sendYoutubeMessage_: "+G+" "+_.fV(void 0));
var u={};u.type=G;Y.JSC$20161_session_?Y.JSC$20161_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",u,function(){},(0,_.tP)(function(){Wr(this,"Failed to send message: "+G+".")},Y)):Wr(Y,"Sending yt message without session: "+_.fV(u))};
r$.prototype.onYoutubeMessage_=function(Y,G){if(!this.isDisposed())if(G)if(G=_.XA(G),_.$a(G))switch(Y=""+G.type,G=G.data||{},this.info("onYoutubeMessage_: "+Y+" "+_.fV(G)),Y){case "mdxSessionStatus":QJw(this,G);break;case "loungeToken":KtN(this,G);break;default:Wr(this,"Unknown youtube message: "+Y)}else Wr(this,"Unable to parse message.");else Wr(this,"No data in message.")};
var aXo=function(Y,G){if(G)Y.info("onConnectedScreenId_: Received screenId: "+G),Y.screen_&&Y.screen_.id==G||Y.getScreen_(G,function(u){m$(Y,u)},function(){return Y.onSessionStopped()},5);
else Y.onSessionStopped(Error("nl"))},Ltw=function(Y,G,u){Y.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(G));
var O=new Wk(G);TlB(Y,O,function(Q){Q?(Y.JSC$20161_isInitLoungeToken_=!0,zH(Y.JSC$20156_screenService_,O),m$(Y,O),Y.JSC$20161_lastLoungeTokenRefreshError_="unknown",tzx(Y,u)):(_.dc(Error("ol`"+JSON.stringify(G))),Y.onSessionStopped())},5)},QJw=function(Y,G){_.E5(Y.sessionStatusTimeoutKey_);
Y.sessionStatusTimeoutKey_=0;if(G)Y.config_.enableCastLoungeToken&&G.loungeToken?G.deviceId?Y.screen_&&Y.screen_.uuid==G.deviceId||(G.loungeTokenRefreshIntervalMs?Ltw(Y,{name:Y.receiver_.friendlyName,screenId:G.screenId,loungeToken:G.loungeToken,dialId:G.deviceId,screenIdType:"shortLived"},G.loungeTokenRefreshIntervalMs):(_.dc(Error("ql`"+JSON.stringify(G))),aXo(Y,G.screenId))):(_.dc(Error("pl`"+JSON.stringify(G))),aXo(Y,G.screenId)):aXo(Y,G.screenId);else Y.onSessionStopped(Error("nl"))},KtN=function(Y,
G){_.E5(Y.onLoungeTokenTimeoutKey_);
Y.onLoungeTokenTimeoutKey_=0;var u=null;if(G)if(G.loungeToken){var O;((O=Y.screen_)==null?void 0:O.token)==G.loungeToken&&(u="staleLoungeToken")}else u="missingLoungeToken";else u="noLoungeTokenResponse";u?(Y.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(G)+", error: "+u)),Y.JSC$20161_lastLoungeTokenRefreshError_=u,tzx(Y,3E4)):(OgV(Y,G.loungeToken),Y.JSC$20161_isInitLoungeToken_=!1,Y.JSC$20161_lastLoungeTokenRefreshError_="unknown",tzx(Y,G.loungeTokenRefreshIntervalMs))};
r$.prototype.getScreen_=function(Y,G,u,O){_.E5(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;Ufb(this.JSC$20156_screenService_,this.receiver_.label,Y,this.receiver_.friendlyName,(0,_.tP)(function(Q){Q?G(Q):O>=0?(Wr(this,"Screen "+Y+" appears to be offline. "+O+" retries left."),this.getScreenTimeoutKey_=_.MN((0,_.tP)(this.getScreen_,this,Y,G,u,O-1),300)):u(Error("rl"))},this),u)};
var TlB=function(Y,G,u,O){_.E5(Y.JSC$20161_checkScreenAvailabilityTimeoutKey_);Y.JSC$20161_checkScreenAvailabilityTimeoutKey_=0;J3B(Y.JSC$20156_screenService_,G,function(Q){Q||O<0?u(Q):Y.JSC$20161_checkScreenAvailabilityTimeoutKey_=_.MN(function(){TlB(Y,G,u,O-1)},300)})};
r$.prototype.JSC$20158_getCastSession=function(){return this.JSC$20161_session_};
r$.prototype.JSC$20163_onSessionUpdate_=function(Y){this.isDisposed()||Y||(Wr(this,"Cast session died."),this.onSessionStopped())};
var MzB=function(Y){_.E5(Y.getScreenTimeoutKey_);Y.getScreenTimeoutKey_=0;_.E5(Y.JSC$20161_checkScreenAvailabilityTimeoutKey_);Y.JSC$20161_checkScreenAvailabilityTimeoutKey_=0;_.E5(Y.sessionStatusTimeoutKey_);Y.sessionStatusTimeoutKey_=0;_.E5(Y.onLoungeTokenTimeoutKey_);Y.onLoungeTokenTimeoutKey_=0;_.E5(Y.getLoungeTokenTimeoutKey_);Y.getLoungeTokenTimeoutKey_=0};var xA=function(Y,G,u,O){Zk.call(this,Y,G,"DialSession");this.config_=O;this.JSC$20165_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20165_theme_=u;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20165_deferredLaunchDeadlineTimer_=NaN;this.JSC$20165_boundSessionUpdate_=(0,_.tP)(this.JSC$20167_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20165_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20165_isInitLoungeToken_=!1;this.JSC$20165_lastLoungeTokenRefreshError_="unknown"};
_.m(xA,Zk);xA.prototype.setCastSession=function(Y){this.JSC$20165_session_=Y;this.JSC$20165_session_.addUpdateListener(this.JSC$20165_boundSessionUpdate_)};
xA.prototype.launchWithParams=function(Y){this.connectData_=Y;this.deferredLaunch_()};
xA.prototype.stop=function(){g1N(this);if(this.JSC$20165_session_)this.JSC$20165_session_.stop((0,_.tP)(this.onSessionStopped,this,null),(0,_.tP)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
xA.prototype.disposeInternal=function(){g1N(this);this.JSC$20165_session_&&this.JSC$20165_session_.removeUpdateListener(this.JSC$20165_boundSessionUpdate_);this.JSC$20165_session_=null;Zk.prototype.disposeInternal.call(this)};
var XQN=function(Y){var G;return!!(Y.config_.enableDialLoungeToken&&((G=Y.JSC$20165_session_)==null?0:G.getDialAppInfo))},IXN=function(Y){Y.cancelPolling_=Y.JSC$20156_screenService_.JSC$20154_getScreenByPollingPairingCode(Y.reversePairingCode_,Y.receiver_.label,Y.receiver_.friendlyName,XQN(Y),function(G,u){Y.cancelPolling_=function(){};
Y.JSC$20165_isInitLoungeToken_=!0;m$(Y,G);G.idType=="shortLived"&&u>0&&Pty(Y,u)},function(G){Y.cancelPolling_=function(){};
Y.onSessionStopped(G)})};
xA.prototype.JSC$20167_onSessionUpdate_=function(Y){this.isDisposed()||Y||(Wr(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var kFw=function(Y){var G={};G.pairingCode=Y.reversePairingCode_;G.theme=Y.JSC$20165_theme_;yRN()&&(G.env_useStageMdx=1);return _.vI(G)},n1b=function(Y){return new Promise(function(G){Y.reversePairingCode_=THN();
if(Y.connectData_){var u=new chrome.cast.DialLaunchResponse(!0,kFw(Y));G(u);IXN(Y)}else Y.deferredLaunch_=function(){_.E5(Y.JSC$20165_deferredLaunchDeadlineTimer_);Y.deferredLaunch_=function(){};
Y.JSC$20165_deferredLaunchDeadlineTimer_=NaN;var O=new chrome.cast.DialLaunchResponse(!0,kFw(Y));G(O);IXN(Y)},Y.JSC$20165_deferredLaunchDeadlineTimer_=_.MN(function(){Y.deferredLaunch_()},100)})},pQ9=function(Y,G,u){Y.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(G));
var O=new Wk(G);return(new Promise(function(Q){Ftg(Y,O,function(M){M?(Y.JSC$20165_isInitLoungeToken_=!0,zH(Y.JSC$20156_screenService_,O),m$(Y,O),Pty(Y,u)):_.dc(Error("tl`"+JSON.stringify(G)));Q(M)},5)})).then(function(Q){return Q?new chrome.cast.DialLaunchResponse(!1):n1b(Y)})},zRV=function(Y,G){var u=Y.launchData_.receiver.label,O=Y.receiver_.friendlyName;
return(new Promise(function(Q){Ufb(Y.JSC$20156_screenService_,u,G,O,function(M){M&&M.token&&m$(Y,M);Q(M)},function(M){Wr(Y,"Failed to get DIAL screen: "+M);
Q(null)})})).then(function(Q){return Q&&Q.token?new chrome.cast.DialLaunchResponse(!1):n1b(Y)})},Ftg=function(Y,G,u,O){_.E5(Y.JSC$20165_checkScreenAvailabilityTimeoutKey_);
Y.JSC$20165_checkScreenAvailabilityTimeoutKey_=0;J3B(Y.JSC$20156_screenService_,G,function(Q){Q||O<0?u(Q):Y.JSC$20165_checkScreenAvailabilityTimeoutKey_=_.MN(function(){Ftg(Y,G,u,O-1)},300)})},Pty=function(Y,G){Y.info("getDialAppInfoWithTimeout_ "+G);
XQN(Y)&&(_.E5(Y.getDialAppInfoTimeoutKey_),Y.getDialAppInfoTimeoutKey_=0,G==0?mr9(Y):Y.getDialAppInfoTimeoutKey_=_.MN(function(){mr9(Y)},G))},mr9=function(Y){XQN(Y)&&Y.JSC$20165_session_.getDialAppInfo(function(G){Y.info("getDialAppInfo dialLaunchData: "+JSON.stringify(G));
G=G.extraData||{};var u=null;if(G.loungeToken){var O;((O=Y.screen_)==null?void 0:O.token)==G.loungeToken&&(u="staleLoungeToken")}else u="missingLoungeToken";u?(Y.JSC$20165_lastLoungeTokenRefreshError_=u,Pty(Y,3E4)):(Y.JSC$20165_isInitLoungeToken_=!1,Y.JSC$20165_lastLoungeTokenRefreshError_="unknown",OgV(Y,G.loungeToken),Pty(Y,G.loungeTokenRefreshIntervalMs))},function(G){Y.info("getDialAppInfo error: "+G);
Y.JSC$20165_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Pty(Y,3E4)})},g1N=function(Y){_.E5(Y.JSC$20165_checkScreenAvailabilityTimeoutKey_);
Y.JSC$20165_checkScreenAvailabilityTimeoutKey_=0;_.E5(Y.getDialAppInfoTimeoutKey_);Y.getDialAppInfoTimeoutKey_=0;Y.cancelPolling_();Y.cancelPolling_=function(){};
_.E5(Y.JSC$20165_deferredLaunchDeadlineTimer_)};var fi=function(Y,G){Zk.call(this,Y,G,"ManualSession");this.JSC$20169_deferredLaunchDeadlineTimer_=_.MN((0,_.tP)(this.launchWithParams,this,null),150)};
_.m(fi,Zk);fi.prototype.stop=function(){this.onSessionStopped()};
fi.prototype.setCastSession=function(){};
fi.prototype.launchWithParams=function(){_.E5(this.JSC$20169_deferredLaunchDeadlineTimer_);this.JSC$20169_deferredLaunchDeadlineTimer_=NaN;var Y=rs(this.JSC$20156_screenService_.getScreens(),this.receiver_.label);if(Y)m$(this,Y);else this.onSessionStopped(Error("ul"))};
fi.prototype.disposeInternal=function(){_.E5(this.JSC$20169_deferredLaunchDeadlineTimer_);this.JSC$20169_deferredLaunchDeadlineTimer_=NaN;Zk.prototype.disposeInternal.call(this)};var bG=function(Y,G){Ac.call(this);this.config_=G;this.JSC$20172_screenService_=Y;this.JSC$20172_appId_=G.appId||"233637DE";this.JSC$20172_theme_=G.theme||"cl";this.disableDial_=G.disableCastApi||!1;this.forceMirroring_=G.forceMirroring||!1;this.JSC$20172_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.tP)(this.onReceiverAction_,this)};
_.m(bG,Ac);
bG.prototype.init=function(Y,G){chrome.cast.timeout.requestSession=3E4;var u=new chrome.cast.SessionRequest(this.JSC$20172_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.F("desktop_enable_cast_connect")&&(u.androidReceiverCompatible=!0);this.disableDial_||(u.dialRequest=new chrome.cast.DialRequest("YouTube"));var O=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;Y=Y||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var Q=(0,_.tP)(this.onReceiverUpdated_,this);
u=new chrome.cast.ApiConfig(u,(0,_.tP)(this.onSessionEstablished_,this),Q,O,Y);u.customDialLaunchCallback=(0,_.tP)(this.onDialLaunchRequested_,this);chrome.cast.initialize(u,(0,_.tP)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),D4B(),this.JSC$20172_screenService_.subscribe("onlineScreenChange",(0,_.tP)(this.JSC$20174_onScreenChange_,this)),this.customReceivers_=Wtb(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.tP)(function(M){this.warn_("Failed to set initial custom receivers: "+
_.fV(M))},this)),this.publish("yt-remote-cast2-availability-change",rk9(this)),G(!0))},this),(0,_.tP)(function(M){this.warn_("Failed to initialize API: "+_.fV(M));
G(!1)},this))};
bG.prototype.setConnectedScreenStatus=function(Y,G){Ci("Setting connected screen ID: "+Y+" -> "+G);if(this.JSC$20172_session_){var u=this.JSC$20172_session_.screen_;if(!Y||u&&u.id!=Y)Ci("Unsetting old screen status: "+this.JSC$20172_session_.receiver_.friendlyName),yU(this,null)}if(Y&&G){if(!this.JSC$20172_session_){Y=rs(this.JSC$20172_screenService_.getScreens(),Y);if(!Y){Ci("setConnectedScreenStatus: Unknown screen.");return}if(Y.idType=="shortLived"){Ci("setConnectedScreenStatus: Screen with id type to be short lived.");
return}u=xrx(this,Y);u||(Ci("setConnectedScreenStatus: Connected receiver not custom..."),u=new chrome.cast.Receiver(Y.uuid?Y.uuid:Y.id,Y.name),u.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(u),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.tP)(function(O){this.warn_("Failed to set initial custom receivers: "+_.fV(O))},this)));
Ci("setConnectedScreenStatus: new active receiver: "+u.friendlyName);yU(this,new fi(this.JSC$20172_screenService_,u),!0)}this.JSC$20172_session_.setDisplayStatus(G)}else Ci("setConnectedScreenStatus: no screen.")};
var xrx=function(Y,G){return G?NL(Y.customReceivers_,function(u){return X3y(G,u.label)},Y):null};
bG.prototype.setLaunchParams=function(Y){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20172_session_?this.JSC$20172_session_.launchWithParams(Y):this.warn_("Setting connection data without a session")};
bG.prototype.JSC$20174_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20172_session_?(this.JSC$20172_session_.stop(),yU(this,null)):Ci("Stopping non-existing session")};
bG.prototype.requestSession=function(){chrome.cast.requestSession((0,_.tP)(this.onSessionEstablished_,this),(0,_.tP)(this.onSessionRequestFailed_,this))};
bG.prototype.disposeInternal=function(){this.JSC$20172_screenService_.unsubscribe("onlineScreenChange",(0,_.tP)(this.JSC$20174_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Nj(_.So("yt.mdx.remote.debug.handlers_")||[],RMx);_.ZM(this.JSC$20172_session_);Ac.prototype.disposeInternal.call(this)};
var Ci=function(Y){y3("Controller",Y)};
bG.prototype.warn_=function(Y){y3("Controller",Y)};
var RMx=function(Y){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(Y)},rk9=function(Y){return Y.hasCastReceiver_||!!Y.customReceivers_.length||!!Y.JSC$20172_session_},yU=function(Y,G,u){G!=Y.JSC$20172_session_&&(_.ZM(Y.JSC$20172_session_),(Y.JSC$20172_session_=G)?(u?Y.publish("yt-remote-cast2-receiver-resumed",G.receiver_):Y.publish("yt-remote-cast2-receiver-selected",G.receiver_),G.subscribe("sessionScreen",(0,_.tP)(Y.onSessionScreen_,Y,G)),G.subscribe("sessionFailed",
function(){return fXV(Y,G)}),G.screen_?Y.publish("yt-remote-cast2-session-change",G.screen_):u&&Y.JSC$20172_session_.launchWithParams(null)):Y.publish("yt-remote-cast2-session-change",null))},fXV=function(Y,G){Y.JSC$20172_session_==G&&Y.publish("yt-remote-cast2-session-failed")};
_.H=bG.prototype;_.H.onSessionScreen_=function(Y,G){this.JSC$20172_session_==Y&&(G||yU(this,null),this.publish("yt-remote-cast2-session-change",G))};
_.H.onReceiverAction_=function(Y,G){if(!this.isDisposed())if(Y)switch(Y.friendlyName=chrome.cast.unescape(Y.friendlyName),Ci("onReceiverAction_ "+Y.label+" / "+Y.friendlyName+"-- "+G),G){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20172_session_)if(this.JSC$20172_session_.receiver_.label!=Y.label)Ci("onReceiverAction_: Stopping active receiver: "+this.JSC$20172_session_.receiver_.friendlyName),this.JSC$20172_session_.stop();else{Ci("onReceiverAction_: Casting to active receiver.");this.JSC$20172_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20172_session_.screen_);break}switch(Y.receiverType){case chrome.cast.ReceiverType.CUSTOM:yU(this,new fi(this.JSC$20172_screenService_,Y));break;case chrome.cast.ReceiverType.DIAL:yU(this,new xA(this.JSC$20172_screenService_,Y,this.JSC$20172_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:yU(this,new r$(this.JSC$20172_screenService_,Y,this.config_));break;default:this.warn_("Unknown receiver type: "+Y.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20172_session_&&
this.JSC$20172_session_.receiver_.label==Y.label?this.JSC$20172_session_.stop():this.warn_("Stopping receiver w/o session: "+Y.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.H.onDialLaunchRequested_=function(Y){if(this.isDisposed())return Promise.reject(Error("vl"));var G=Y.receiver;G.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+G.friendlyName),G.receiverType=chrome.cast.ReceiverType.DIAL);var u=this.JSC$20172_session_?this.JSC$20172_session_.receiver_:null;if(!u||u.label!=G.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+G.friendlyName),Promise.reject(Error("wl"));if(u&&u.label==G.label&&u.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20172_session_.screen_)return Ci("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20172_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+u.receiverType+'" to "dial" for '+G.friendlyName);yU(this,new xA(this.JSC$20172_screenService_,G,this.JSC$20172_theme_,this.config_))}G=this.JSC$20172_session_;G.launchData_=Y;G.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(Y=G.launchData_.extraData||{},u=Y.screenId||null,XQN(G)&&Y.loungeToken?Y.loungeTokenRefreshIntervalMs?Y=pQ9(G,{name:G.receiver_.friendlyName,screenId:Y.screenId,loungeToken:Y.loungeToken,dialId:G.launchData_.receiver.label,screenIdType:"shortLived"},Y.loungeTokenRefreshIntervalMs):(_.dc(Error("sl`"+JSON.stringify(Y))),Y=zRV(G,u)):Y=zRV(G,u)):Y=n1b(G);return Y};
_.H.onSessionEstablished_=function(Y){var G=this;if(!this.isDisposed()&&!this.forceMirroring_){Ci("New cast session ID: "+Y.sessionId);var u=Y.receiver;if(u.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20172_session_)if(u.receiverType==chrome.cast.ReceiverType.CAST)Ci("Got resumed cast session before resumed mdx connection."),u.friendlyName=chrome.cast.unescape(u.friendlyName),yU(this,new r$(this.JSC$20172_screenService_,u,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var O=this.JSC$20172_session_.receiver_,Q=rs(this.JSC$20172_screenService_.getScreens(),O.label);Q&&X3y(Q,u.label)&&O.receiverType!=chrome.cast.ReceiverType.CAST&&u.receiverType==chrome.cast.ReceiverType.CAST&&(Ci("onSessionEstablished_: manual to cast session change "+u.friendlyName),_.ZM(this.JSC$20172_session_),this.JSC$20172_session_=new r$(this.JSC$20172_screenService_,u,this.config_),this.JSC$20172_session_.subscribe("sessionScreen",(0,_.tP)(this.onSessionScreen_,this,this.JSC$20172_session_)),
this.JSC$20172_session_.subscribe("sessionFailed",function(){return fXV(G,G.JSC$20172_session_)}),this.JSC$20172_session_.launchWithParams(null));
this.JSC$20172_session_.setCastSession(Y)}}};
_.H.JSC$20174_getCastSession=function(){return this.JSC$20172_session_?this.JSC$20172_session_.JSC$20158_getCastSession():null};
_.H.onSessionRequestFailed_=function(Y){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+_.fV(Y)),Y.code!=chrome.cast.ErrorCode.CANCEL&&yU(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.H.onReceiverUpdated_=function(Y){Ci("Receiver availability updated: "+Y);if(!this.isDisposed()){var G=rk9(this);this.hasCastReceiver_=Y==chrome.cast.ReceiverAvailability.AVAILABLE;rk9(this)!=G&&this.publish("yt-remote-cast2-availability-change",rk9(this))}};
var Wtb=function(Y){var G=Y.JSC$20172_screenService_.JSC$20154_getOnlineScreens(),u=Y.JSC$20172_session_&&Y.JSC$20172_session_.receiver_;Y=_.Xi(G,function(O){u&&X3y(O,u.label)&&(u=null);var Q=O.uuid?O.uuid:O.id,M=xrx(this,O);M?(M.label=Q,M.friendlyName=O.name):(M=new chrome.cast.Receiver(Q,O.name),M.receiverType=chrome.cast.ReceiverType.CUSTOM);return M},Y);
u&&(u.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(u=new chrome.cast.Receiver(u.label,u.friendlyName),u.receiverType=chrome.cast.ReceiverType.CUSTOM),Y.push(u));return Y};
bG.prototype.JSC$20174_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Wtb(this),Ci("Updating custom receivers: "+_.fV(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.tP)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",rk9(this)))};
bG.prototype.setLaunchParams=bG.prototype.setLaunchParams;bG.prototype.setConnectedScreenStatus=bG.prototype.setConnectedScreenStatus;bG.prototype.stopSession=bG.prototype.JSC$20174_stopSession;bG.prototype.getCastSession=bG.prototype.JSC$20174_getCastSession;bG.prototype.requestSession=bG.prototype.requestSession;bG.prototype.init=bG.prototype.init;bG.prototype.dispose=bG.prototype.dispose;var Ct9=_.hV(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),K2S=[],vyj=_.fO(Ct9);var ykb=function(Y){Y.audioTrackId=null;Y.trackData=null;Y.playerState=-1;Y.hasPrevious=!1;Y.hasNext=!1;Y.playerTime_=0;Y.playerTimeAt_=_.$M();Y.seekableStart_=0;Y.seekableEnd_=0;Y.duration_=0;Y.loadedTime=0;Y.liveIngestionTime_=NaN;Y.isLive_=!1};
_.H=SA.prototype;
_.H.reset=function(Y){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;Y&&(this.index=Y.index,this.listId=Y.listId,this.videoId=Y.videoId,this.playerState=Y.playerState,this.volume=Y.volume,this.muted=Y.muted,this.audioTrackId=Y.audioTrackId,this.trackData=Y.trackData,this.hasPrevious=Y.hasPrevious,this.hasNext=Y.hasNext,this.playerTime_=Y.playerTime,this.playerTimeAt_=Y.playerTimeAt,this.seekableStart_=Y.seekableStart,this.seekableEnd_=Y.seekableEnd,this.duration_=Y.duration,this.loadedTime=
Y.loadedTime,this.liveIngestionTime_=Y.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.H.stopPlayer=function(){this.index=-1;this.videoId="";ykb(this)};
_.H.isPlaying=function(){return this.playerState==1};
_.H.isBuffering=function(){return this.playerState==3};
_.H.isAdPlaying=function(){return this.playerState==1081};
var e3=function(Y,G){Y.playerTime_=G;Y.playerTimeAt_=_.$M()},eRb=function(Y){switch(Y.playerState){case 1:case 1081:return(_.$M()-Y.playerTimeAt_)/1E3+Y.playerTime_;
case -1E3:return 0}return Y.playerTime_};
SA.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.$M()-this.playerTimeAt_)/1E3:0):this.duration_};
var Akj=function(Y,G,u){var O=Y.videoId;Y.videoId=G;Y.index=u;G!=O&&ykb(Y)},o19=function(Y){var G={};
G.index=Y.index;G.listId=Y.listId;G.videoId=Y.videoId;G.playerState=Y.playerState;G.volume=Y.volume;G.muted=Y.muted;G.audioTrackId=Y.audioTrackId;G.trackData=_.gX.unsafeClone(Y.trackData);G.hasPrevious=Y.hasPrevious;G.hasNext=Y.hasNext;G.playerTime=Y.playerTime_;G.playerTimeAt=Y.playerTimeAt_;G.seekableStart=Y.seekableStart_;G.seekableEnd=Y.seekableEnd_;G.duration=Y.duration_;G.loadedTime=Y.loadedTime;G.liveIngestionTime=Y.liveIngestionTime_;return G};
SA.prototype.clone=function(){return new SA(o19(this))};var lG=function(Y,G){Ac.call(this);var u=this;this.state_=0;this.connection_=Y;this.contextSubscriptions_=[];this.actionQueue_=new GUN;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.tP)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.tP)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.tP)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.tP)(this.onCloudviewAvailabilityChange_,this);var O=0;Y?(O=Y.getProxyState(),
O!=3&&(Y.subscribe("proxyStateChange",this.setState_,this),igx(this))):O=3;O!=0&&(G?this.setState_(O):_.MN(function(){u.setState_(O)},0));
(Y=ghb())&&RRb(this,Y);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.m(lG,Ac);lG.prototype.getState=function(){return this.state_};
lG.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
lG.prototype.reconnect=function(){this.connection_.reconnect()};
var An=function(Y){return new SA(Y.connection_.getPlayerContextData())};
_.H=lG.prototype;_.H.play=function(){oq(this)?(this.castMedia_?this.castMedia_.play(null,_.nu,wQb(this,"play")):iC(this,"play"),Zgj(this,1,eRb(An(this))),this.publish("remotePlayerChange")):Rq(this,this.play)};
_.H.pause=function(){oq(this)?(this.castMedia_?this.castMedia_.pause(null,_.nu,wQb(this,"pause")):iC(this,"pause"),Zgj(this,2,eRb(An(this))),this.publish("remotePlayerChange")):Rq(this,this.pause)};
_.H.seekTo=function(Y){if(oq(this)){if(this.castMedia_){var G=An(this),u=new chrome.cast.media.SeekRequest;u.currentTime=Y;G.isPlaying()||G.isBuffering()?u.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:u.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(u,_.nu,wQb(this,"seekTo",{newTime:Y}))}else iC(this,"seekTo",{newTime:Y});Zgj(this,3,Y);this.publish("remotePlayerChange")}else Rq(this,_.H2(this.seekTo,Y))};
_.H.stop=function(){if(oq(this)){this.castMedia_?this.castMedia_.stop(null,_.nu,wQb(this,"stopVideo")):iC(this,"stopVideo");var Y=An(this);Y.stopPlayer();w$(this,Y);this.publish("remotePlayerChange")}else Rq(this,this.stop)};
_.H.setVolume=function(Y,G){if(oq(this)){var u=An(this);if(this.castSession_){if(u.volume!=Y){var O=Math.round(Y)/100;this.castSession_.setReceiverVolumeLevel(O,(0,_.tP)(function(){eA("set receiver volume: "+O)},this),(0,_.tP)(function(){this.warn_("failed to set receiver volume.")},this))}u.muted!=G&&this.castSession_.setReceiverMuted(G,(0,_.tP)(function(){eA("set receiver muted: "+G)},this),(0,_.tP)(function(){this.warn_("failed to set receiver muted.")},this))}else{var Q={volume:Y,
muted:G};u.volume!=-1&&(Q.delta=Y-u.volume);iC(this,"setVolume",Q)}u.muted=G;u.volume=Y;w$(this,u)}else Rq(this,_.H2(this.setVolume,Y,G))};
_.H.setAudioTrack=function(Y,G){oq(this)?(G=G.getLanguageInfo().getId(),iC(this,"setAudioTrack",{videoId:Y,audioTrackId:G}),Y=An(this),Y.audioTrackId=G,w$(this,Y)):Rq(this,_.H2(this.setAudioTrack,Y,G))};
_.H.addVideo=function(Y){oq(this)?iC(this,"addVideo",{videoId:Y}):Rq(this,_.H2(this.addVideo,Y))};
_.H.addPlaylist=function(Y){oq(this)?iC(this,"addVideos",{listId:Y}):Rq(this,_.H2(this.addPlaylist,Y))};
_.H.addVideos=function(Y){Y.length==0?this.warn_("Ignore add videos request due to empty list"):oq(this)?iC(this,"addVideos",{videoIds:Y.join(",")}):Rq(this,_.H2(this.addVideos,Y))};
_.H.JSC$20184_removeVideo=function(Y){oq(this)?iC(this,"removeVideo",{videoId:Y}):Rq(this,_.H2(this.JSC$20184_removeVideo,Y))};
_.H.JSC$20184_insertVideo=function(Y){oq(this)?iC(this,"insertVideo",{videoId:Y}):Rq(this,_.H2(this.JSC$20184_insertVideo,Y))};
_.H.playVideo=function(Y,G,u,O,Q,M,t){O=O===void 0?null:O;Q=Q===void 0?null:Q;M=M===void 0?null:M;t=t===void 0?null:t;var K=An(this),L={videoId:Y};u!==void 0&&(L.currentIndex=u);Akj(K,Y,u||0);G!==void 0&&(e3(K,G),L.currentTime=G);O&&(L.listId=O);Q&&(L.playerParams=Q);M&&(L.clickTrackingParams=M);t&&(L.locationInfo=_.fV(t));iC(this,"setPlaylist",L);O||w$(this,K)};
_.H.nextVideo=function(Y,G){if(oq(this)){if(Y&&G){var u=An(this);Akj(u,Y,G);w$(this,u)}iC(this,"next")}else Rq(this,_.H2(this.nextVideo,Y,G))};
_.H.clearPlaylist=function(){if(oq(this)){iC(this,"clearPlaylist");var Y=An(this);Y.reset();w$(this,Y);this.publish("remotePlayerChange")}else Rq(this,this.clearPlaylist)};
_.H.dispose=function(){if(this.state_!=3){var Y=this.state_;this.state_=3;this.publish("proxyStateChange",Y,this.state_)}Ac.prototype.dispose.call(this)};
_.H.disposeInternal=function(){Drb(this);this.connection_=null;this.actionQueue_.clear();RRb(this,null);Ac.prototype.disposeInternal.call(this)};
var igx=function(Y){_.jo("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(G){this.contextSubscriptions_.push(this.connection_.subscribe(G,_.H2(this.onProxyEvent_,G),this))},Y)},Drb=function(Y){_.jo(Y.contextSubscriptions_,function(G){this.connection_.unsubscribeByKey(G)},Y);
Y.contextSubscriptions_.length=0},oq=function(Y){return Y.getState()==1},Rq=function(Y,G){Y.actionQueue_.getCount()<50&&Y.actionQueue_.enqueue(G)},Zgj=function(Y,G,u){var O=An(Y);
e3(O,u);O.playerState!=-1E3&&(O.playerState=G);w$(Y,O)},iC=function(Y,G,u){Y.connection_.sendMessage(G,u)},w$=function(Y,G){Drb(Y);
Y.connection_.setPlayerContextData(o19(G));igx(Y)};
lG.prototype.setState_=function(Y){if((Y!=this.state_||Y==2)&&this.state_!=3&&Y!=0){var G=this.state_;this.state_=Y;this.publish("proxyStateChange",G,Y);if(Y==1)for(;!this.actionQueue_.isEmpty();)Y=this.actionQueue_,QWj(Y),Y.front_.pop().apply(this);else Y==3&&this.dispose()}};
lG.prototype.onProxyEvent_=function(Y,G){this.publish(Y,G)};
var RRb=function(Y,G){Y.castSession_&&(Y.castSession_.removeUpdateListener(Y.boundCastStatusListener_),Y.castSession_.removeMediaListener(Y.boundCastMediaListener_),Y.onCastMediaChange_(null));Y.castSession_=G;if(Y.castSession_&&(eA("Setting cast session: "+Y.castSession_.sessionId),Y.castSession_.addUpdateListener(Y.boundCastStatusListener_),Y.castSession_.addMediaListener(Y.boundCastMediaListener_),Y.castSession_.media.length))Y.onCastMediaChange_(Y.castSession_.media[0])};
lG.prototype.onCastStatusUpdate_=function(Y){if(!Y)this.onCastMediaChange_(null),RRb(this,null);else if(this.castSession_.receiver.volume){Y=this.castSession_.receiver.volume;var G=An(this),u=Math.round(100*Y.level||0);if(G.volume!=u||G.muted!=Y.muted)eA("Cast volume update: "+Y.level+(Y.muted?" muted":"")),G.volume=u,G.muted=!!Y.muted,w$(this,G)}};
lG.prototype.onCastMediaChange_=function(Y){eA("Cast media: "+!!Y);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=Y)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),hR9(this),this.publish("remotePlayerChange")};
var hR9=function(Y){var G=Y.castMedia_.media,u=Y.castMedia_.customData;if(G&&u){var O=An(Y);G.contentId!=O.videoId&&eA("Cast changing video to: "+G.contentId);O.videoId=G.contentId;O.playerState=u.playerState;e3(O,Y.castMedia_.getEstimatedTime());w$(Y,O)}else eA("No cast media video. Ignoring state update.")};
lG.prototype.onCastMediaUpdate_=function(Y){if(Y)hR9(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
lG.prototype.onCloudviewAvailabilityChange_=function(){var Y=ghb();Y&&RRb(this,Y)};
lG.prototype.warn_=function(Y){y3("CP",Y)};
var wQb=function(Y,G,u){return(0,_.tP)(function(O){this.warn_("Failed to "+G+" with cast v2 channel. Error code: "+O.code);O.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+G+" using MDx browser channel."),iC(this,G,u))},Y)};var Bk=function(Y,G,u,O){O=O===void 0?!1:O;Ac.call(this);var Q=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$20189_http_=Y;this.enableConnectWithInitialState_=O;this.listeners_.push(_.U0(window,"beforeunload",function(){Q.JSC$20192_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new SA;this.currentScreenId_=G.id;this.currentScreenIdType_=G.idType;this.channelService=idx(this.JSC$20189_http_,u,this.JSC$20192_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){drj(Q)});
this.channelService.listen("channelClosed",function(){Zi("Channel closed");isNaN(Q.connectTimerId_)?f9B(!0):f9B();Q.dispose()});
this.channelService.listen("channelError",function(M){f9B();isNaN(Q.getReconnectTimeout_())?(M==1&&Q.currentScreenIdType_=="shortLived"&&Q.publish("browserChannelAuthError",M),Zi("Channel error: "+M+" without reconnection"),Q.dispose()):(Q.reconnecting_=!0,Zi("Channel error: "+M+" with reconnection in "+Q.getReconnectTimeout_()+" ms"),bg9(Q,2))});
this.channelService.listen("channelMessage",function(M){SFN(Q,M)});
this.channelService.setLoungeToken(G.token);this.subscribe("remoteQueueChange",function(){var M=Q.playerContext_.videoId;kUB()&&_.TA("yt-remote-session-video-id",M)})};
_.m(Bk,Ac);
Bk.prototype.connect=function(Y,G){if(G){var u=G.listId,O=G.videoId,Q=G.videoIds,M=G.playerParams,t=G.clickTrackingParams,K=G.index,L={videoId:O},g=G.currentTime,P=G.locationInfo;G=G.loopMode;g!==void 0&&(L.currentTime=g<=5?0:g);M&&(L.playerParams=M);P&&(L.locationInfo=P);t&&(L.clickTrackingParams=t);u&&(L.listId=u);Q&&Q.length>0&&(L.videoIds=Q.join(","));K!==void 0&&(L.currentIndex=K);this.enableConnectWithInitialState_&&(L.loopMode=G||"LOOP_MODE_OFF");u&&(this.playerContext_.listId=u);this.playerContext_.videoId=
O;this.playerContext_.index=K||0;this.playerContext_.state=3;e3(this.playerContext_,g);this.autoplayMode_="UNSUPPORTED";u=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Zi("Connecting with "+u+" and params: "+_.fV(L));this.channelService.connect({method:u,params:_.fV(L)},Y,m4b())}else Zi("Connecting without params"),this.channelService.connect({},Y,m4b());Nlg(this)};
Bk.prototype.setLoungeToken=function(Y){this.channelService.setLoungeToken(Y)};
Bk.prototype.dispose=function(){this.isDisposed()||(_.U5("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),bg9(this,3));Ac.prototype.dispose.call(this)};
Bk.prototype.disposeInternal=function(){jJb(this);Vzy(this);lXb(this);_.E5(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.E5(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.BHt(this.listeners_);this.listeners_.length=0;this.channelService.dispose();Ac.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var BlN=function(Y){return NL(Y.connectedDevices_,function(G){return G.type=="LOUNGE_SCREEN"})},Zi=function(Y){y3("conn",Y)},bg9=function(Y,G){Y.publish("proxyStateChange",G)},Nlg=function(Y){Y.connectTimerId_=_.MN(function(){Zi("Connecting timeout");
Y.JSC$20192_disconnect_(1)},2E4)},jJb=function(Y){_.E5(Y.connectTimerId_);
Y.connectTimerId_=NaN},lXb=function(Y){_.E5(Y.reconnectedCheckScreenTimeout_);
Y.reconnectedCheckScreenTimeout_=NaN},qF9=function(Y){Vzy(Y);
Y.playingSyncTimerId_=_.MN(function(){$rj(Y,"getNowPlaying")},2E4)},Vzy=function(Y){_.E5(Y.playingSyncTimerId_);
Y.playingSyncTimerId_=NaN},drj=function(Y){Zi("Channel opened");
Y.reconnecting_&&(Y.reconnecting_=!1,lXb(Y),Y.reconnectedCheckScreenTimeout_=_.MN(function(){Zi("Timing out waiting for a screen.");Y.JSC$20192_disconnect_(1)},15E3))},ck9=function(Y,G){var u=null;
if(G){var O=BlN(Y);O&&(u={clientName:O.clientName,deviceMake:O.brand,deviceModel:O.model,osVersion:O.osVersion})}_.U5("yt.mdx.remote.remoteClient_",u);G&&(jJb(Y),lXb(Y));u=Y.channelService.isChannelOpened()&&isNaN(Y.connectTimerId_);G==u?G&&(bg9(Y,1),$rj(Y,"getSubtitlesTrack")):G?(Y.getOtherConnectedRemoteId_()&&Y.playerContext_.reset(),bg9(Y,1),$rj(Y,"getNowPlaying"),sJg(Y)):Y.JSC$20192_disconnect_(1)},Urw=function(Y,G){var u=G.params.videoId;
delete G.params.videoId;u==Y.playerContext_.videoId&&(_.gX.isEmpty(G.params)?Y.playerContext_.trackData=null:Y.playerContext_.trackData=G.params,Y.publish("remotePlayerChange"))},v1y=function(Y,G,u){var O=G.params.videoId||G.params.video_id,Q=parseInt(G.params.currentIndex,10);
Y.playerContext_.listId=G.params.listId||Y.playerContext_.listId;Akj(Y.playerContext_,O,Q);Y.publish("remoteQueueChange",u)},Jko=function(Y,G){G.params=G.params||{};
v1y(Y,G,"NOW_PLAYING_MAY_CHANGE");Y.onStateChange_(G);Y.publish("autoplayDismissed")};
Bk.prototype.onStateChange_=function(Y){var G=parseInt(Y.params.currentTime||Y.params.current_time,10);e3(this.playerContext_,isNaN(G)?0:G);G=parseInt(Y.params.state,10);G=isNaN(G)?-1:G;G==-1&&this.playerContext_.playerState==-1E3&&(G=-1E3);this.playerContext_.playerState=G;G=Number(Y.params.loadedTime);this.playerContext_.loadedTime=isNaN(G)?0:G;G=Number(Y.params.duration);this.playerContext_.duration_=isNaN(G)?0:G;G=this.playerContext_;var u=Number(Y.params.liveIngestionTime);G.liveIngestionTime_=
u;G.isLive_=isNaN(u)?!1:!0;G=this.playerContext_;u=Number(Y.params.seekableStartTime);Y=Number(Y.params.seekableEndTime);G.seekableStart_=isNaN(u)?0:u;G.seekableEnd_=isNaN(Y)?0:Y;this.playerContext_.playerState==1?qF9(this):Vzy(this);this.publish("remotePlayerChange")};
Bk.prototype.onAdStateChange_=function(Y){if(this.playerContext_.playerState!=-1E3){var G=1085;switch(parseInt(Y.params.adState,10)){case 1:G=1081;break;case 2:G=1084;break;case 0:G=1083}this.playerContext_.playerState=G;Y=parseInt(Y.params.currentTime,10);e3(this.playerContext_,isNaN(Y)?0:Y);this.publish("remotePlayerChange")}};
var YCw=function(Y,G){var u=G.params.muted=="true";Y.playerContext_.volume=parseInt(G.params.volume,10);Y.playerContext_.muted=u;Y.publish("remotePlayerChange")},Gzg=function(Y,G){Y.autoplayVideoId_=G.params.videoId;
Y.publish("nowAutoplaying",parseInt(G.params.timeout,10))},uMb=function(Y,G){Y.autoplayVideoId_=G.params.videoId||null;
Y.publish("autoplayUpNext",Y.autoplayVideoId_)},OFo=function(Y,G){Y.autoplayMode_=G.params.autoplayMode;
Y.publish("autoplayModeChange",Y.autoplayMode_);Y.autoplayMode_=="DISABLED"&&Y.publish("autoplayDismissed")},Qjb=function(Y,G){var u=G.params.hasNext=="true";
Y.playerContext_.hasPrevious=G.params.hasPrevious=="true";Y.playerContext_.hasNext=u;Y.publish("previousNextChange")};
Bk.prototype.isCapabilitySupportedOnConnectedDevices_=function(Y){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var G=_.E(this.connectedDevices_),u=G.next();!u.done;u=G.next())if(!u.value.capabilities.has(Y))return!1;return!0};
var SFN=function(Y,G){G=G.message;G.params?Zi("Received: action="+G.action+", params="+_.fV(G.params)):Zi("Received: action="+G.action+" {}");switch(G.action){case "loungeStatus":G=_.XA(G.params.devices);Y.connectedDevices_=_.Xi(G,function(O){return new FN(O)});
G=!!NL(Y.connectedDevices_,function(O){return O.type=="LOUNGE_SCREEN"});
ck9(Y,G);G=Y.isCapabilitySupportedOnConnectedDevices_("mlm");Y.publish("multiStateLoopEnabled",G);break;case "loungeScreenDisconnected":xtj(Y.connectedDevices_,function(O){return O.type=="LOUNGE_SCREEN"});
ck9(Y,!1);break;case "remoteConnected":var u=new FN(_.XA(G.params.device));NL(Y.connectedDevices_,function(O){return O.equals(u)})||_.AYy(Y.connectedDevices_,u);
break;case "remoteDisconnected":u=new FN(_.XA(G.params.device));xtj(Y.connectedDevices_,function(O){return O.equals(u)});
break;case "gracefulDisconnect":break;case "playlistModified":v1y(Y,G,"QUEUE_MODIFIED");break;case "nowPlaying":Jko(Y,G);break;case "onStateChange":Y.onStateChange_(G);break;case "onAdStateChange":Y.onAdStateChange_(G);break;case "onVolumeChanged":YCw(Y,G);break;case "onSubtitlesTrackChanged":Urw(Y,G);break;case "nowAutoplaying":Gzg(Y,G);break;case "autoplayDismissed":Y.publish("autoplayDismissed");break;case "autoplayUpNext":uMb(Y,G);break;case "onAutoplayModeChanged":OFo(Y,G);break;case "onHasPreviousNextChanged":Qjb(Y,
G);break;case "requestAssistedSignIn":Y.publish("assistedSignInRequested",G.params.authCode);break;case "onLoopModeChanged":Y.publish("loopModeChange",G.params.loopMode);break;default:Zi("Unrecognized action: "+G.action)}};
_.H=Bk.prototype;_.H.getProxyState_=function(){var Y=3;this.isDisposed()||(Y=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(Y=1):Y=2);return Y};
_.H.JSC$20192_disconnect_=function(Y){Zi("Disconnecting with "+Y);_.U5("yt.mdx.remote.remoteClient_",null);jJb(this);this.publish("beforeDisconnect",Y);Y==1&&f9B();this.channelService.disconnect(Y);this.dispose()};
_.H.getPlayerContextData_=function(){var Y=this.playerContext_;this.clientVideoId_&&(Y=this.playerContext_.clone(),Akj(Y,this.clientVideoId_,Y.index));return o19(Y)};
_.H.setPlayerContextData_=function(Y){var G=this,u=new SA(Y);u.videoId&&u.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=u.videoId,_.E5(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.MN(function(){if(G.clientVideoId_){var Q=G.clientVideoId_;G.clientVideoId_=null;G.playerContext_.videoId!=Q&&$rj(G,"getNowPlaying")}},5E3));
var O=[];this.playerContext_.listId==u.listId&&this.playerContext_.videoId==u.videoId&&this.playerContext_.index==u.index||O.push("remoteQueueChange");this.playerContext_.playerState==u.playerState&&this.playerContext_.volume==u.volume&&this.playerContext_.muted==u.muted&&eRb(this.playerContext_)==eRb(u)&&_.fV(this.playerContext_.trackData)==_.fV(u.trackData)||O.push("remotePlayerChange");this.playerContext_.reset(Y);_.jo(O,function(Q){this.publish(Q)},this)};
_.H.getOtherConnectedRemoteId_=function(){var Y=this.channelService.getDeviceId(),G=NL(this.connectedDevices_,function(u){return u.type=="REMOTE_CONTROL"&&u.id!=Y});
return G?G.id:""};
_.H.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.H.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.H.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.H.JSC$20192_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var sJg=function(Y){_.E5(Y.idleDisconnectTimerId_);Y.idleDisconnectTimerId_=_.MN(function(){Y.JSC$20192_disconnect_(1)},864E5)},$rj=function(Y,G,u){u?Zi("Sending: action="+G+", params="+_.fV(u)):Zi("Sending: action="+G);
Y.channelService.sendMessage(G,u)};
Bk.prototype.sendMessageWithUserAction_=function(Y,G){$rj(this,Y,G);sJg(this)};
Bk.prototype.JSC$20192_getXsrfToken_=function(){var Y=_.TR.get("SAPISID","")||_.TR.get("__Secure-1PAPISID",void 0)||"",G=_.TR.get("__Secure-3PAPISID","")||"";if(!Y&&!G)return"";Y=_.vu(_.Hu(Y),2);G=_.vu(_.Hu(G),2);return _.vu(_.Hu(","+Y+","+G),2)};
Bk.prototype.subscribe=Bk.prototype.subscribe;Bk.prototype.unsubscribeByKey=Bk.prototype.unsubscribeByKey;Bk.prototype.getProxyState=Bk.prototype.getProxyState_;Bk.prototype.disconnect=Bk.prototype.JSC$20192_disconnect_;Bk.prototype.getPlayerContextData=Bk.prototype.getPlayerContextData_;Bk.prototype.setPlayerContextData=Bk.prototype.setPlayerContextData_;Bk.prototype.getOtherConnectedRemoteId=Bk.prototype.getOtherConnectedRemoteId_;Bk.prototype.getReconnectTimeout=Bk.prototype.getReconnectTimeout_;
Bk.prototype.getAutoplayMode=Bk.prototype.getAutoplayMode_;Bk.prototype.getAutoplayVideoId=Bk.prototype.getAutoplayVideoId_;Bk.prototype.reconnect=Bk.prototype.JSC$20192_reconnect_;Bk.prototype.sendMessage=Bk.prototype.sendMessageWithUserAction_;Bk.prototype.getXsrfToken=Bk.prototype.JSC$20192_getXsrfToken_;Bk.prototype.isCapabilitySupportedOnConnectedDevices=Bk.prototype.isCapabilitySupportedOnConnectedDevices_;var hsw=function(Y){o6.call(this,"ScreenServiceProxy");this.instance_=Y;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.tP)(this.JSC$20195_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.tP)(this.onOnlineScreenChange_,this)))};
_.m(hsw,o6);_.H=hsw.prototype;_.H.getScreens=function(Y){return this.instance_.$_gs(Y)};
_.H.contains=function(Y){return!!this.instance_.$_c(Y)};
_.H.get=function(Y){return this.instance_.$_g(Y)};
_.H.start=function(){this.instance_.$_st()};
_.H.add=function(Y,G,u){this.instance_.$_a(Y,G,u)};
_.H.remove=function(Y,G,u){this.instance_.$_r(Y,G,u)};
_.H.updateName=function(Y,G,u,O){this.instance_.$_un(Y,G,u,O)};
_.H.disposeInternal=function(){for(var Y=this.subscriptionKeys_.length,G=0;G<Y;++G)this.instance_.$_ubk(this.subscriptionKeys_[G]);this.subscriptionKeys_.length=0;this.instance_=null;o6.prototype.disposeInternal.call(this)};
_.H.JSC$20195_onScreenChange_=function(){this.publish("screenChange")};
_.H.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
ws.prototype.$_st=ws.prototype.start;ws.prototype.$_gspc=ws.prototype.JSC$20154_getScreenByPairingCode;ws.prototype.$_gsppc=ws.prototype.JSC$20154_getScreenByPollingPairingCode;ws.prototype.$_c=ws.prototype.contains;ws.prototype.$_g=ws.prototype.get;ws.prototype.$_a=ws.prototype.add;ws.prototype.$_un=ws.prototype.updateName;ws.prototype.$_r=ws.prototype.remove;ws.prototype.$_gs=ws.prototype.getScreens;ws.prototype.$_gos=ws.prototype.JSC$20154_getOnlineScreens;ws.prototype.$_s=ws.prototype.subscribe;
ws.prototype.$_ubk=ws.prototype.unsubscribeByKey;var ohx=null,bzx=!1,kS9=null,Nm=null,D5S=null,jA=[];var MBw=new _.Da("yt-menu"),HFb=function(){},tBb=function(Y,G,u){Y=G=="right-click"?u.rightClickMenuPopupHint:u.menuPopupHint;
if(!(EPo(G)>10))return G=G||"default",MBw.set(G+"-impression",EPo(G)+1),Y},EPo=function(Y){return parseInt(MBw.get((Y||"default")+"-impression")||0,10)};
_.BH(HFb);var KYN=function(){this.contexts_=new WeakMap;this.JSC$20201_networkService_=this.activeContext_=null},aON=function(Y,G,u){var O=Y.contexts_.get(G);
O||(O=new XTV(Y.JSC$20201_networkService_),Y.contexts_.set(G,O));Y.activeContext_=O;u&&Y.activeContext_.reset();Y.activeContext_.start();return Y.activeContext_};var $u=_.zZj(function(Y){var G=_.uI("DIV");Y&&(G.className=Y);G.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";Y=_.uI("DIV");_.zre(Y,"200px","200px");G.appendChild(Y);document.body.appendChild(G);Y=G.offsetWidth-G.clientWidth;_.Oy(G);return Y});var sl=_.Jy("kevlar_watch_page_horizontal_margin",24),qjg=_.Jy("kevlar_watch_page_columns_top_padding",24),NEb=426+sl*2,qm=_.Jy("kevlar_watch_two_column_width_threshold",1E3),Vry=sl*2,lvw=_.Jy("kevlar_watch_secondary_width",402),$5b=_.Jy("kevlar_watch_max_player_width",1280),sSw=_.Jy("kevlar_watch_flexy_metadata_height",136),BEx=Vry+310+sl,jSb=Vry+360+sl;var Di=function(){};
Di.prototype.enqueue=function(){var Y=this,G;return _.a(function(u){if(Y.isCounterfactual())return(G=Y.getCounterfactualData())&&Y.shouldLogCounterfactualImpression()&&Y.sendImpressionEndpoints(G),u.return();Y.doEnqueue();_.Sd(u)})};
Di.prototype.sendImpressionEndpoints=function(Y){_.N6.getInstance().triggerOptionalAction("yt-service-request",{},Y[0])};var hn=function(Y,G){this.renderer=Y;this.page=G};
_.m(hn,Di);hn.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
hn.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
hn.prototype.shouldLogCounterfactualImpression=function(){return!0};
hn.prototype.doEnqueue=function(){var Y=_.Sr(this.page);Y&&Y.pause();this.renderer.impressionCommand&&_.N6.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.nL(_.N6.getInstance(),[this.renderer.promoCommand],this.page)};var T6N=function(Y,G){this.renderer=Y;this.resolver=_.RS();this.JSC$20213_enforcementCounter=new _.oqV;G?this.JSC$20213_playerManager=_.Sr(G):this.JSC$20213_playerManager=null;_.vC(1,!0)};
_.m(T6N,Di);_.H=T6N.prototype;_.H.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var Y=[];this.renderer.impressionEndpoints.forEach(function(G){(G=_.FS(G))&&Y.push(G)});
return Y}};
_.H.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.H.shouldLogCounterfactualImpression=function(){var Y=_.uIt();Y?(this.JSC$20213_enforcementCounter.increment("POPUP"),_.vC(3)):_.vC(2);return Y};
_.H.cancel=function(){this.resolver.promise.cancel()};
_.H.doEnqueue=function(){var Y=this;_.uIt()?(this.JSC$20213_enforcementCounter.increment("POPUP"),_.vC(3),LYV(this)):this.JSC$20213_playerManager?(this.resolver.promise.then(function(){LYV(Y)}),gPN(this.resolver,this.JSC$20213_playerManager)):_.vC(2)};
var gPN=function(Y,G){var u=_.RS();G.getPlayerPromise().then(function(O){u.resolve(O)});
u.promise.then(function(O){O.addEventListener("onAbnormalityDetected",Y.resolve);_.Wp(Y.promise,function(){O.removeEventListener("onAbnormalityDetected",Y.resolve)})});
Y.promise.thenCatch(function(){u.promise.cancel()})},LYV=function(Y){_.vC(3);
var G={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:Y.renderer}};G=_.N6.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:G},{});Promise.all(G).then(function(){XPB();Y.JSC$20213_playerManager&&Y.JSC$20213_playerManager.pause()})},XPB=function(){bXx(function(Y,G){qKw(Y,G);
Y===0?_.vC(7):_.vC(4)})};var PUB=function(Y,G){this.renderer=Y;this.page=G;this.resolver=_.RS()};
_.m(PUB,Di);_.H=PUB.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 Y=this;this.resolver.promise.then(function(){var u={popup:{mealbarPromoRenderer:Y.renderer},popupType:"MEALBAR"};_.N6.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:u},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var G=_.Sr(this.page);G&&IOw(this.resolver,G)}break;default:this.resolver.resolve()}};
var IOw=function(Y,G){var u=_.RS();G.getPlayerPromise().then(function(O){u.resolve(O)});
u.promise.then(function(O){O.addEventListener("onAdEnd",Y.resolve);_.Wp(Y.promise,function(){O.removeEventListener("onAdEnd",Y.resolve)})});
Y.promise.thenCatch(function(){u.promise.cancel()})};var kzB=function(Y,G){this.renderer=Y;this.page=G};
_.m(kzB,Di);_.H=kzB.prototype;_.H.cancel=function(){this.JSC$20221_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20221_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20221_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 Y=this,G,u;((G=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(u=G.playbackUpsellDialogTriggerConditionData)==null?void 0:u.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20221_downloadedVideosCountSelectorUnsubscriber=_.Eh(_.Zs(),w$x,function(O,Q){O>Q&&(nPS(Y),Y.cancel())}):nPS(this)};
var nPS=function(Y){var G={popup:{upsellDialogRenderer:Y.renderer},popupType:"MODAL"};_.N6.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:G},{});(Y=_.Sr(Y.page))&&Y.pause()};var d$={},FYo=(d$.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",d$.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",d$.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",d$.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",d$.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",d$.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",d$.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",d$),pP9=function(Y,G){this.renderer=Y;this.targetManager=
G};
_.m(pP9,Di);_.H=pP9.prototype;_.H.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20228_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20228_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20228_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.H.getCounterfactualData=function(){if(this.isCounterfactual()){var Y;return(Y=this.renderer.promoConfig)==null?void 0:Y.impressionEndpoints}};
_.H.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.H.shouldLogCounterfactualImpression=function(){return!0};
_.H.doEnqueue=function(){var Y=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20228_downloadedVideosCountSelectorUnsubscriber=_.Eh(_.Zs(),w$x,function(G,u){Y.renderer.targetId&&G>u&&(KlB(Y.targetManager,Y.renderer.targetId,zGb(Y)),Y.cancel())});
break;default:KlB(this.targetManager,this.renderer.targetId,zGb(this))}};
var zGb=function(Y){var G;if((G=Y.renderer.suggestedPosition)==null?0:G.type)var u=FYo[Y.renderer.suggestedPosition.type];u||(u="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:Y.renderer},popupType:"HINT",position:u}}};var mVy=function(){this.previousPage=null},WYg;
mVy.prototype.registerPromoCommand=function(Y,G){rb9(this,void 0,void 0,_.z(Y.roadblock,A4N),void 0,void 0,G)};
var rb9=function(Y,G,u,O,Q,M,t){Y.previousPage!==t&&Y.pendingTooltipPromo&&Y.pendingTooltipPromo.cancel();Y.previousPage=t;Q?(Y.pendingEnforcementPromo&&Y.pendingEnforcementPromo.cancel(),Y.pendingEnforcementPromo=new T6N(Q,t),Y.pendingEnforcementPromo.enqueue()):M?(Y.pendingCommandWrapperPromo=new hn(M,t),Y.pendingCommandWrapperPromo.enqueue()):O?(Y.pendingRoadblockPromo&&Y.pendingRoadblockPromo.cancel(),Y.pendingRoadblockPromo=new kzB(O,t),Y.pendingRoadblockPromo.enqueue()):G?(Y.pendingMealbarPromo&&
Y.pendingMealbarPromo.cancel(),Y.pendingMealbarPromo=new PUB(G,t),Y.pendingMealbarPromo.enqueue()):u&&(Y.pendingTooltipPromo&&Y.pendingTooltipPromo.cancel(),Y.pendingTooltipPromo=new pP9(u,_.O2()),Y.pendingTooltipPromo.enqueue())},xVB=function(){WYg||(WYg=new mVy);
return WYg};var fOV=function(){this.horizontal=!1},CUV=function(Y,G){Y.horizontal=G};
fOV.prototype.position=function(Y,G,u,O){O=O===void 0?1:O;Y=this.delta(Y)*O+G;O=Math.max(G,u);return Y>=Math.min(G,u)&&Y<=O?Y:u};
fOV.prototype.axis=function(Y){Y=this.direction(Y);return Y==="up"||Y==="down"?"Y":"X"};var bC=function(Y,G,u){G=G===void 0?_.Q_():G;this.target=Y;this.manager=G;this.touchAction=u;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
bC.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(_.c8(this.events)));for(var Y=_.E(this.events),G=Y.next();!G.done;G=Y.next())this.listen(G.value)}};
bC.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.c8(this.events)));for(var Y=_.E(this.events),G=Y.next();!G.done;G=Y.next())this.unlisten(G.value)}};
bC.prototype.listen=function(Y){this.eventMap[Y]&&this.target.addEventListener(Y,this.eventMap[Y])};
bC.prototype.unlisten=function(Y){this.eventMap[Y]&&this.target.removeEventListener(Y,this.eventMap[Y])};var S3=function(){fOV.apply(this,arguments)};
_.m(S3,fOV);S3.prototype.direction=function(Y){var G=Y.detail;Y=G.deltaY;G=G.deltaX;return Y&&!this.horizontal?Y>0?"down":"up":G&&this.horizontal?G>0?"right":"left":"none"};
S3.prototype.distance=function(Y){return Math.abs(this.delta(Y))};
S3.prototype.delta=function(Y){var G=this.direction(Y),u=Y.detail;Y=u.deltaX;u=u.deltaY;return G==="up"||G==="down"?u||0:Y||0};
S3.prototype.velocity=function(Y){var G=this.direction(Y),u=Y.detail;Y=u.velocityX;u=u.velocityY;return Math.abs(G==="up"||G==="down"?u||0:Y||0)};var Nx=function(Y,G,u,O,Q,M){Q=Q===void 0?new S3:Q;M=M===void 0?_.Q_():M;bC.call(this,G,M,O);var t=this;this.element=Y;this.target=G;this.config=u;this.input=Q;this.manager=M;this.events=["panstart","panmove","panend"];this.onPanStart=function(){t.config.draggingClass&&t.element.classList.add(t.config.draggingClass);t.config.startAction&&t.config.startAction()};
this.onPanMove=function(K){var L=ybw(t,K);if(L){t.move(K,L);L.fade&&t.fade(K,L);var g=t.input.direction(K);L.moveAction&&L.moveAction(eGN(t,K,L),g)}};
this.onPanEnd=function(K){var L,g,P,I,k,n;return _.a(function(p){if(p.nextAddress==1){t.animationRequestId&&cancelAnimationFrame(t.animationRequestId);t.animationRequestId=void 0;L=ybw(t,K);if(!L)return p.return();g=L;P=g.triggerAction;I=g.fade;k=g.disableFinish;n=g.translateBack;var W=t.input.velocity(K),C=t.input.distance(K),e=t.threshold(L);return W>.3&&C>10||C>e?k?p.jumpTo(6):I?p.yield(Aby(t,K),6):p.yield(oP9(t,K,L),6):n?p.yield(t.translateBack(K),3):p.jumpTo(3)}p.nextAddress!=3&&P&&P();t.config.draggingClass&&
t.element.classList.remove(t.config.draggingClass);t.reset();_.Sd(p)})};
Y=Object.keys(u.triggers);this.directions=new Set(Y);CUV(this.input,this.directions.has("right")||this.directions.has("left"))};
_.m(Nx,bC);Nx.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var ybw=function(Y,G){G=Y.input.direction(G);return Y.config.triggers[G]};
Nx.prototype.move=function(Y,G){var u=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var O=u.input.axis(Y),Q=u.input.position(Y,u.config.startPosition,G.endPosition,G.moveRatio||1);u.element.style.transform="translate"+O+"("+Q+"px)";u.animationRequestId=void 0}))};
var eGN=function(Y,G,u){var O=u.moveRatio||1;u=Math.abs(Y.config.startPosition-u.endPosition);return Math.min(Y.input.distance(G)*O,u)/u};
Nx.prototype.fade=function(Y,G){var u=G.endOpacity;Y=eGN(this,Y,G);Y>0&&(this.element.style.opacity=""+(((u||0)-1)*Y+1))};
Nx.prototype.threshold=function(Y){return Y.threshold?Y.threshold:Math.abs(Y.endPosition-this.config.startPosition)/3};
var oP9=function(Y,G,u){var O,Q,M,t,K,L,g;return _.a(function(P){if(P.nextAddress==1)return O=Y.input.delta(G)+Y.config.startPosition,Q=Y.input.axis(G),M=u,t=M.endPosition,K=M.transitionEndPosition,g=(L=K)!=null?L:t,P.yield(Y.element.animate([{transform:"translate"+Q+"("+O+"px)"},{transform:"translate"+Q+"("+g+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);Y.element.style.transform="translate"+Q+"("+g+"px)";_.Sd(P)})};
Nx.prototype.translateBack=function(Y){var G=this,u,O;return _.a(function(Q){if(Q.nextAddress==1){if(!G.element.style.transform)return Q.return();u=G.input.axis(Y);O=G.config.startPosition;return Q.yield(G.element.animate([{transform:G.element.style.transform},{transform:"translate"+u+"("+O+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}G.element.style.transform="translate"+u+"("+O+"px)";_.Sd(Q)})};
var Aby=function(Y,G){var u,O,Q,M;return _.a(function(t){if(t.nextAddress==1)return u=Y.input.delta(G)+Y.config.startPosition,O=Y.input.axis(G),Q=u+70,M=Y.element.style.opacity===""?1:Y.element.style.opacity,t.yield(Y.element.animate([{transform:"translate"+O+"("+u+"px)",opacity:M},{transform:"translate"+O+"("+Q+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);Y.element.style.transform="translate"+O+"("+Q+"px)";Y.element.style.opacity="0";_.Sd(t)})};var u9S=new _.Da("ratelimit");var iFS=function(Y,G){this.playerProvider_=Y;this.actionSenderElement_=G;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
iFS.prototype.reset=function(){RGS(this);this.isUserPredictedAbsent_=!1};
var RGS=function(Y,G){!Y.youThereData_||Y.showWarningJob_||G!==void 0&&G||(ck("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.FA(),Y.youThereData_,Y.clientPlaybackNonce_),_.A1());_.AN.cancelJob(Y.showWarningJob_);Y.showWarningJob_=0;_.AN.cancelJob(Y.showBlockingWarningJob_);Y.showBlockingWarningJob_=0;_.AN.cancelJob(Y.pausePlaybackJob_);Y.pausePlaybackJob_=0;Y.youThereData_=null;Y.clientPlaybackNonce_=void 0;Y.inYouThereFlow_=!1},ZFx=function(Y,G){var u,O,Q;
_.a(function(M){if(M.nextAddress==1)return Y.reset(),M.yield(Y.playerProvider_().getPlayerPromise(),2);u=M.yieldResult;Y.clientPlaybackNonce_=u.getVideoData().cpn;Y.youThereData_=G.configData.youThereData;if(!Y.youThereData_)return M.return();if(Y.youThereData_.triggerReason&&Y.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!OKx())return ck("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.FA(),Y.youThereData_,Y.clientPlaybackNonce_),M.return();O=Y.youThereData_.promptDelaySec;Q=u.getCurrentTime();
Y.showWarningJob_=_.AN.addLowPriorityJob(function(){return _.a(function(t){Y.showWarningJob_=0;return t.yield(wPN(Y),0)})},Math.max(O-Q,0)*1E3);
_.Sd(M)})},wPN=function(Y){var G,u,O,Q,M,t;
return _.a(function(K){if(K.nextAddress==1)return K.yield(Y.playerProvider_().getPlayerPromise(),2);if(K.nextAddress!=3)return G=K.yieldResult,u=G.getCurrentTime(),K.yield(DV9(Y),3);O=K.yieldResult;if(!O||!Y.youThereData_)return K.return();if(_.F("check_user_lact_at_prompt_shown_time_on_web")&&(Q=parseInt(Y.youThereData_.lactThresholdMs,10),_.Y7()<Q))return ck("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.FA(),Y.youThereData_,Y.clientPlaybackNonce_),K.return();if(Y.youThereData_.playbackPauseDelayMs<=
0)return hGw(Y),K.return();!_.F("external_fullscreen")&&(M=_.dJ())&&(Y.ignoreFullscreenExitUserActivity_=!0,_.AN.addLowPriorityJob(function(){Y.ignoreFullscreenExitUserActivity_=!1},2E3),_.bc(M));
Y.youThereData_.showToastWarningPrompt&&(j3(Y,Y.youThereData_.showWarningActions),Y.inYouThereFlow_=!0,ck("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.FA(),Y.youThereData_,Y.clientPlaybackNonce_,u),ck("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.FA(),Y.youThereData_,Y.clientPlaybackNonce_,u));t=0;Y.youThereData_.blockingPromptDelayMs&&(t=Y.youThereData_.blockingPromptDelayMs);Y.showBlockingWarningJob_=_.AN.addLowPriorityJob(function(){return _.a(function(L){Y.showBlockingWarningJob_=0;return L.yield(dVy(Y),
0)})},t);
_.Sd(K)})},dVy=function(Y){var G,u,O;
return _.a(function(Q){if(Q.nextAddress==1)return Q.yield(DV9(Y),2);G=Q.yieldResult;if(!Y.youThereData_)return Q.return();G&&(Y.youThereData_.showBlockingWarningAction&&(ck("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.FA(),Y.youThereData_,Y.clientPlaybackNonce_),(u=_.z(Y.youThereData_.showBlockingWarningAction,_.Jv))?j3(Y,u.commands):j3(Y,[Y.youThereData_.showBlockingWarningAction]),Y.inYouThereFlow_=!0),O=Y.youThereData_.playbackPauseDelayMs,Y.pausePlaybackJob_=_.AN.addLowPriorityJob(function(){return _.a(function(M){Y.pausePlaybackJob_=
0;return M.yield(hGw(Y),0)})},O));
_.Sd(Q)})},hGw=function(Y){var G;
return _.a(function(u){if(u.nextAddress==1)return u.yield(DV9(Y),2);G=u.yieldResult;if(!Y.youThereData_)return u.return();G&&(ck("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.FA(),Y.youThereData_,Y.clientPlaybackNonce_),j3(Y,Y.youThereData_.showPausedActions),Y.inYouThereFlow_=!0);_.Sd(u)})};
iFS.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var Y=_.z(this.youThereData_.userActiveDuringFlowAction,_.Jv);Y?j3(this,Y.commands):j3(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(ck("YOU_THERE_EVENT_TYPE_LACT_RESET",_.FA(),this.youThereData_,this.clientPlaybackNonce_),_.A1());RGS(this,!0)}bF9(this,!1)};
var SCS=function(Y){ck("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.FA(),Y.youThereData_,Y.clientPlaybackNonce_)},DV9=function(Y){var G,u;
return _.a(function(O){if(O.nextAddress==1)return O.yield(Y.playerProvider_().getPlayerPromise(),2);G=O.yieldResult;u=G.getPlayerState();return O.return(u==-1||u==1||u==3)})},bF9=function(Y,G){var u;
_.a(function(O){if(O.nextAddress==1){if(Y.isUserPredictedAbsent_==G)return O.jumpTo(0);Y.isUserPredictedAbsent_=G;return O.yield(Y.playerProvider_().getPlayerPromise(),3)}u=O.yieldResult;u.setUserEngagement(G);G&&ck("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.FA(),Y.youThereData_,Y.clientPlaybackNonce_);_.Sd(O)})},j3=function(Y,G){if(_.F("handle_service_request_actions")||_.F("kevlar_youthere_service_endpoint_actions_killswitch"))_.UK(Y.actionSenderElement_,G,Y.actionSenderElement_);
else{G=_.E(G);for(var u=G.next();!u.done;u=G.next())u=u.value,u.commandMetadata&&u.commandMetadata.webCommandMetadata&&u.commandMetadata.webCommandMetadata.sendPost?_.c$(Y.actionSenderElement_,[u]):_.UK(Y.actionSenderElement_,[u],Y.actionSenderElement_)}};var Qdy=!1;var N6w={PAUSE_CHAT:18};var aJw=function(Y,G){var u=_.DE("SESSION_INDEX");this.actionToken_=Y;this.commonToken_=G;this.sessionIndex_=u},Kj9=function(Y){var G=_.RS(),u=_.So("payments.business.integration.bootstrap"),O=_.So("payments.business.integration"),Q=O.Style.create().withMaterialDesignStyle(),M=O.mashupMode.popup("instrument-manager");
u.asMashupMode(M).usingUserIndex(Y.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(Q).inStandaloneContext(O.standaloneContextAuthId.forUserId()).instrumentManager(Y.actionToken_,Y.commonToken_.length>0?Y.commonToken_:void 0,function(t){var K=t.instrumentId;K?G.resolve(K):(K=_.So("payments.business.integration.scenario.InstrumentManager"),G.reject(t.errorCode&&t.errorCode===K.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(t){_.dc(t);
G.reject("instrumentManagerLoadError")});
return G.promise};var a7=function(Y,G,u){this.payloadName="transactionFlowFailed";this.payload={errorType:Y,serializedTransactionFlowLoggingParams:G,isUserDismiss:u===void 0?!1:u}};
_.U5("yt.ypc.shared.YpcTransactionFlowError",a7);var VU=function(){return _.Mb.apply(this,arguments)||this};
_.m(VU,_.Mb);VU.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
VU.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
VU.prototype.onErrorMessageDismiss=VU.prototype.onErrorMessageDismiss;_.S([_.R({readOnly:!0,observer:"errorRendererChanged"}),_.V("design:type",Object)],VU.prototype,"errorRenderer",void 0);_.S([_.Yo("yt-live-chat-error-message-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],VU.prototype,"onErrorMessageDismiss",null);_.S([_.Hn()],VU);var jjN=[VU.prototype];var VB9;var lOj,B6g=function(){if(lOj!==void 0)return lOj;var Y=document.createElement("template");_.r(Y,'\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="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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;VB9===void 0&&(VB9=document.createElement("template"));var O=VB9;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return lOj=Y};var lC=function(){var Y=_.Z.apply(this,arguments)||this;Y.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";Y.goalDescription="";Y.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";Y.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";Y.startButtonId="start-button";Y.exampleButtonId="example-button";return Y};
_.m(lC,_.Z);_.H=lC.prototype;_.H.getGoalDropdownItems=function(){var Y,G;return(G=_.z((Y=this.data)==null?void 0:Y.purchaseTargetDropdown,Fdb))==null?void 0:G.dropdownItems};
_.H.getTimerDropdownItems=function(){var Y,G;return(G=_.z((Y=this.data)==null?void 0:Y.timerDropdown,Fdb))==null?void 0:G.dropdownItems};
_.H.getColorDropdownItems=function(){var Y,G;return(G=_.z((Y=this.data)==null?void 0:Y.colorDropdown,Fdb))==null?void 0:G.dropdownItems};
_.H.getDropdownItemText=function(Y){var G;return(G=_.z(Y,nix))==null?void 0:G.itemLabel};
_.H.getDropdownItemValue=function(Y){Y=_.z(Y,nix);return(Y==null?void 0:Y.timeLimit)||(Y==null?void 0:Y.purchaseTarget)||(Y==null?void 0:Y.eligiblePurchaseType)};
_.H.updateFlowState=function(Y){_.qZ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:Y}])};
_.H.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.H.updateGoalValue=function(Y){this.goal=Y.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.H.onTextValueChanged=function(Y){this.goalDescription=Y.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.H.updateTimerValue=function(Y){this.timer=Y.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.H.updateTierValue=function(Y){this.tier=Y.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.H.getButtonViewModel=function(Y){Y=(Y==null?void 0:Y.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var G,u=_.z((G=this.data)==null?void 0:G.startGoalButton,_.Ck);return Object.assign({},u,{state:Y})};
_.Uk.Object.defineProperties(lC,{template:{configurable:!0,enumerable:!0,get:function(){return B6g()}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],lC.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],lC.prototype,"goal",void 0);_.S([_.R(),_.V("design:type",Object)],lC.prototype,"goalDescription",void 0);_.S([_.R(),_.V("design:type",Object)],lC.prototype,"timer",void 0);_.S([_.R(),_.V("design:type",Object)],lC.prototype,"tier",void 0);
_.S([_.R(),_.V("design:type",Object)],lC.prototype,"startButtonId",void 0);_.S([_.R(),_.V("design:type",Object)],lC.prototype,"exampleButtonId",void 0);_.S([_.Ff({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],lC);_.d(lC,"yt-creator-goal-set-up-flow-view-model",function(){return B6g()},{mode:0});var $Vj;var qCb;var Br=function(){return _.Z.apply(this,arguments)||this};
_.m(Br,_.Z);Br.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Br.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var Y=_.z(this.data.button,_.Ck);Y&&(Y.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Uk.Object.defineProperties(Br,{template:{configurable:!0,enumerable:!0,get:function(){if(qCb===void 0){var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;$Vj===void 0&&($Vj=document.createElement("template"));var O=$Vj;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);qCb=Y}Y=qCb;return Y}}});
_.S([_.x(_.pI),_.V("design:type",Object)],Br.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Br.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R({selectorArgs:["data.enabledEntityKey"],selector:LZx,observer:"onEnabledChange"}),_.V("design:type",Boolean)],Br.prototype,"enabled",void 0);_.S([_.R(),_.V("design:type",Object)],Br.prototype,"data",void 0);_.S([_.Ff({is:"yt-disableable-button-view-model",noInjection:!0})],Br);var sjy;var cbb;var UVo=["transVert01","transVert02","transVert03"],vP9="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),$A=function(){var Y=_.Z.apply(this,arguments)||this;Y.emojiManager=_.Ai;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};Y.reactionBuckets=[];Y.noEmojiIdentifier="NO_EMOJI";return Y};
_.m($A,_.Z);_.H=$A.prototype;_.H.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.H.desktopFountainEmojiSizePxChanged=function(){_.cm(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.H.createUserReactionAnimation=function(Y){this.createEmojiAnimation(Y,!0)};
_.H.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var Y;((Y=this.data)==null?0:Y.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.t$("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.c8(this.emojiContainer.children)).forEach(function(G){G.remove()})};
_.H.detached=function(){this.cleanupFountain()};
_.H.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var Y;this.reactionBuckets=_.gX.unsafeClone((Y=this.emojiFountainData)==null?void 0:Y.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.H.processEmojiBucket=function(Y){var G=this;if(this.reactionBuckets&&!(Y>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var u=this.reactionBuckets[Y];this.generateEmojiAnimations(u);if(Y<this.reactionBuckets.length-1){var O;if(u==null?0:(O=u.duration)==null?0:O.seconds)this.emojiBucketTimerId=setTimeout(function(){G.processEmojiBucket(Y+1)},Number(u.duration.seconds)*1E3)}}};
_.H.generateEmojiAnimations=function(Y){var G=this,u=this.getRandomEmojiIdFromBucketWithOverride(Y);if(u&&u!==this.noEmojiIdentifier){var O=0;Y.targetEps?(O=this.linearInterpolateBounded(1,20,100,12,Y.emojiSizeIndex||0),this.createEmojiAnimation(u,!1,Y.emojiAnimationMs,O),O=this.getEmojiDelayMsFromTargetEps(Y.targetEps)):(this.createEmojiAnimation(u),O=this.getEmojiDelayMsFromDistribution(Y.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){G.generateEmojiAnimations(Y)},O)}};
_.H.getRandomEmojiIdFromBucketWithOverride=function(Y){if(!(Y&&Y.reactionsData&&Y.reactionsData.length&&Y.totalReactions))return this.noEmojiIdentifier;for(var G=Y.totalReactions,u=1,O=_.E(Y.reactionsData),Q=O.next();!Q.done;Q=O.next())Q=Q.value,(Q.reactionWeightOverride||Q.reactionWeightOverride===0)&&Q.reactionCount&&(G-=Q.reactionCount,u-=Q.reactionWeightOverride);O=!0;u<0&&(O=!1,G=Y.totalReactions,u=1);if(O&&u>0&&G===0)if(u===1){Q=0;for(var M=_.E(Y.reactionsData),t=M.next();!t.done;t=M.next())t=
t.value,t.reactionCount&&t.reactionCount>0&&Q++;Q=1/Q;M=_.E(Y.reactionsData);for(t=M.next();!t.done;t=M.next())t.value.reactionWeightOverride=Q}else for(Q=1/(1-u),M=_.E(Y.reactionsData),t=M.next();!t.done;t=M.next())t=t.value,t.reactionWeightOverride&&(t.reactionWeightOverride*=Q);Q=Math.random();M=0;t=_.E(Y.reactionsData);for(var K=t.next();!K.done;K=t.next())if(K=K.value,K.reactionCount&&(M=(K.reactionWeightOverride||K.reactionWeightOverride===0)&&O?M+K.reactionWeightOverride:M+u*K.reactionCount/
G,M>Q&&(K.reactionCount--,Y.totalReactions--,K=this.reactionItemToEmojiString(K),K!==this.noEmojiIdentifier)))return K;return this.noEmojiIdentifier};
_.H.reactionItemToEmojiString=function(Y){if(Y.unicodeEmojiId)return Y.unicodeEmojiId;if(Y.emoteId)return Y.emoteId;if(Y.videoReactionType)switch(Y.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.H.createEmojiAnimation=function(Y,G,u,O){G=G===void 0?!1:G;this.lastEmojiRequestedForTesting=Y;var Q=Y.startsWith("yt-icons:"),M=_.CZ(this.emojiManager,Y);if(M||Q){var t=document.createElement("emoji");t.classList.add("yt-emoji-fountain-view-model");t.classList.add(UVo[Math.floor(Math.random()*UVo.length)]);var K=document.createElement("div");K.classList.add("yt-emoji-fountain-view-model");K.classList.add("horizontal-container");K.classList.add(vP9[Math.floor(Math.random()*vP9.length)]);G?(u=document.createElement("div"),
u.classList.add("user-reaction-bubble"),u.classList.add("yt-emoji-fountain-view-model"),K.appendChild(u)):(u&&(t.style.animationDuration=u+"ms",K.style.animationDuration=u+"ms"),O&&(t.style.width=O+"px",t.style.height=O+"px"));Q?(Q=document.createElement("yt-icon"),Q.polymerController.icon=Y,O&&(Q.style.width=O+"px",Q.style.height=O+"px"),Y=Q):Y=this.emojiManager.createEmoji(M,!1);Y.classList.add("yt-emoji-fountain-view-model");K.appendChild(Y);t.appendChild(K);this.emojiContainer.appendChild(t);
t.addEventListener("animationend",function(){t.remove()});
var L,g;if((L=this.data)==null?0:(g=L.loggingDirectives)==null?0:g.trackingParams)G=G?_.VZ(183501):_.VZ(183500),gGb(this.data.loggingDirectives.trackingParams,G),_.DLg(G);setTimeout(function(){t&&t.remove()},2E3)}};
_.H.getEmojiDelayMsFromDistribution=function(Y){return Math.random()*(Y||1)*1E3};
_.H.getEmojiDelayMsFromTargetEps=function(Y){return Math.random()*2*(1/Y)*1E3};
_.H.linearInterpolateBounded=function(Y,G,u,O,Q){Q=Math.min(Math.max(Q,Y),u);return(G*(u-Q)+O*(Q-Y))/(u-Y)};
$A.prototype.onEmojiFountainDataEntityUpdate=$A.prototype.onEmojiFountainDataEntityUpdate;$A.prototype.desktopFountainEmojiSizePxChanged=$A.prototype.desktopFountainEmojiSizePxChanged;$A.prototype.isActiveChanged=$A.prototype.isActiveChanged;_.S([_.R(),_.V("design:type",_.fZ)],$A.prototype,"emojiManager",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.pI),_.V("design:type",Object)],$A.prototype,"ytLiveChatReduxBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],$A.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],$A.prototype,"data",void 0);_.S([_.R({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"emojiFountainDataEntity",G)}}),
_.V("design:type",Object)],$A.prototype,"emojiFountainData",void 0);_.S([_.R(),_.V("design:type",Boolean)],$A.prototype,"isActive",void 0);_.S([_.GO("isActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$A.prototype,"isActiveChanged",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],$A.prototype,"isDarkTheme",void 0);_.S([_.R(),_.V("design:type",String)],$A.prototype,"lastEmojiRequestedForTesting",void 0);
_.S([_.R({value:function(){return _.Jy("desktop_fountain_emoji_size_px",20)}}),
_.V("design:type",Number)],$A.prototype,"desktopFountainEmojiSizePx",void 0);_.S([_.GO("desktopFountainEmojiSizePx"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$A.prototype,"desktopFountainEmojiSizePxChanged",null);_.S([_.Ox("#emoji-container"),_.V("design:type",HTMLElement)],$A.prototype,"emojiContainer",void 0);
_.S([_.GO("emojiFountainData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$A.prototype,"onEmojiFountainDataEntityUpdate",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],$A);
_.d($A,"yt-emoji-fountain-view-model",function(){if(cbb===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;sjy===void 0&&(sjy=document.createElement("template"));var O=sjy;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);cbb=Y}Y=cbb;return Y},{mode:0});var JbN;var Y79;var qx=function(){return _.Z.apply(this,arguments)||this};
_.m(qx,_.Z);qx.prototype.onChoiceChanged=function(){this.data&&_.cm(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
qx.prototype.onChoiceChanged=qx.prototype.onChoiceChanged;_.S([_.R(),_.V("design:type",Object)],qx.prototype,"data",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qx.prototype,"onChoiceChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],qx);
_.d(qx,"yt-live-chat-banner-poll-choice",function(){if(Y79===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;JbN===void 0&&(JbN=document.createElement("template"));var O=JbN;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Y79=Y}Y=Y79;return Y},{mode:0});var GZN;var u$b;var sQ=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.F("web_button_rework_with_live");Y.small=!1;return Y};
_.m(sQ,_.Z);sQ.prototype.computeIsSmall=function(){var Y;return((Y=this.buttonOverrides)==null?void 0:Y.size)==="S"};
sQ.prototype.computeId=function(){return this.data&&this.data.targetId};
_.S([_.x(_.zk.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],sQ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.S([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.V("design:type",String)],sQ.prototype,"id",void 0);_.S([_.R(),_.V("design:type",Object)],sQ.prototype,"buttonOverrides",void 0);_.S([_.R(),_.V("design:type",Object)],sQ.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],sQ.prototype,"modern",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.V("design:type",Object)],sQ.prototype,"small",void 0);_.S([_.pD({disableElementRegistration:!0,is:"yt-live-chat-button"})],sQ);
_.d(sQ,"yt-live-chat-button",function(){if(u$b===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;GZN===void 0&&(GZN=document.createElement("template"));var O=GZN;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);u$b=Y}Y=u$b;return Y},{mode:0});var O_b;var QvB;var cr=function(){var Y=_.Z.apply(this,arguments)||this;Y.inCollapsedBanner=!1;Y.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};Y.questionButtonOverrides={style:"mono",type:"filled"};return Y};
_.m(cr,_.Z);_.H=cr.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(Y){this.ytLiveChatItemBehavior.showContextMenu(Y)};
_.H.onYtRendererstamperFinished=function(){this.menuButton=_.l0(this.hostElement).querySelector("#menu-button")};
_.H.dataChanged=function(){var Y,G;if((G=_.z((Y=this.data)==null?void 0:Y.overflowMenuButton,_.ru))==null?0:G.command)this.data.contextMenuEndpoint=_.z(this.data.overflowMenuButton,_.ru).command};
_.H.onButtonClick=function(){var Y,G=_.z((Y=this.data)==null?void 0:Y.askQuestionButton,_.ru);if(G){if(G.trackingParams&&(Y=_.Kd(G.trackingParams))){var u=_.FA();u&&_.RK(u,Y)}_.$s(this.hostElement,"innertube-command",G.command)}};
cr.prototype.onYtRendererstamperFinished=cr.prototype.onYtRendererstamperFinished;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],cr.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.pI),_.V("design:type",Object)],cr.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],cr.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.R({observer:"dataChanged"}),_.V("design:type",Object)],cr.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],cr.prototype,"inCollapsedBanner",void 0);_.S([_.R(),_.V("design:type",Object)],cr.prototype,"buttonOverrides",void 0);_.S([_.R(),_.V("design:type",Object)],cr.prototype,"questionButtonOverrides",void 0);_.S([_.Yo("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cr.prototype,"onYtRendererstamperFinished",null);
_.S([_.pD({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],cr);
_.d(cr,"yt-live-chat-call-for-questions-renderer",function(){if(QvB===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;O_b===void 0&&(O_b=document.createElement("template"));var O=O_b;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);QvB=Y}Y=QvB;return Y},{mode:0});var Mso={};Mso.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 Y=this;window.requestAnimationFrame(function(){Y.restoreFocusNode_||(Y.restoreFocusNode_=document.activeElement);var G=_.nSR(Y.hostElement);G.length&&G[G.length-1].focus()})},
isAttachedChanged_:function(Y,G){Y?this.focusChild_():G&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(Y){this.hidden||_.wG(Y).indexOf(this.hostElement)!==-1||(Y.stopPropagation(),this.focusChild_())}};var H_S;var EeB;var UQ=function(){return _.Z.apply(this,arguments)||this};
_.m(UQ,_.Z);UQ.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
UQ.prototype.onClick=function(Y){Y.target!==this.confirmButton&&Y.target!==this.cancelButton&&(this.hidden=!0)};
_.S([_.Ox("#confirm_button"),_.V("design:type",Object)],UQ.prototype,"confirmButton",void 0);_.S([_.Ox("#cancel_button"),_.V("design:type",Object)],UQ.prototype,"cancelButton",void 0);_.S([_.R(),_.V("design:type",tsj)],UQ.prototype,"data",void 0);_.S([_.R({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],UQ.prototype,"hidden",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],UQ.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(Mso.YtLiveChatDialogBehavior),_.V("design:type",Object)],UQ.prototype,"ytLiveChatDialogBehavior",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],UQ);
var tsj=_.d(UQ,"yt-live-chat-dialog-renderer",function(){if(EeB===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;H_S===void 0&&(H_S=document.createElement("template"));var O=H_S;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);EeB=Y}Y=EeB;return Y},{mode:0});var KCN;var arN,Tn9=function(){if(arN!==void 0)return arN;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;KCN===void 0&&(KCN=document.createElement("template"));var O=KCN;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);return arN=Y};var LCw;var geg;var vr=function(){var Y=_.Z.apply(this,arguments)||this;Y.icon=null;return Y};
_.m(vr,_.Z);vr.prototype.dismiss=function(){_.$s(this.hostElement,"yt-live-chat-error-message-dismiss")};
vr.prototype.computeIcon=function(Y){return Y&&Y.iconType?"yt-icons:"+Y.iconType.toLowerCase():"yt-icons:close"};
_.S([_.R(),_.V("design:type",Object)],vr.prototype,"data",void 0);_.S([_.R({computed:"computeIcon(data.icon)"}),_.V("design:type",Object)],vr.prototype,"icon",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],vr);
_.d(vr,"yt-live-chat-error-message-renderer",function(){if(geg===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;LCw===void 0&&(LCw=document.createElement("template"));var O=LCw;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);geg=Y}Y=geg;return Y},{mode:0});var Xlw;var PH9;var Jn=function(){var Y=_.Z.apply(this,arguments)||this;Y.tooltip=null;Y.data=null;Y.id="";Y.active=!1;Y.icon="";Y.disabled=!1;Y.showTooltip=!1;Y.useToggledActiveState=!0;Y.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return Y};
_.m(Jn,_.Z);_.H=Jn.prototype;
_.H.dataChanged=function(){var Y;((Y=this.data)==null?0:Y.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,_.sb)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var G;if((G=this.data)==null?0:G.disabled)this.disabled=!0};
_.H.computeId=function(Y){return Y};
_.H.computeIcon=function(Y,G){if(!Y)return"";if(this.useToggledActiveState)return"yt-icons:"+Y.toLowerCase();var u,O;return G&&((u=this.data)==null?0:(O=u.toggledIcon)==null?0:O.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+Y.toLowerCase()};
_.H.logPDGEntryPoint=function(){_.cqy(_.cC("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 Y=_.l0(this.hostElement).querySelector("#tooltip");Y.animationDelay=0;Y.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};Y.show()};
_.H.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.H.onClick=function(Y){var G;((G=this.data)==null?0:G.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(),Y.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.$s(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.H.computeShowTooltip=function(Y,G){return!!(Y&&Y.tooltip&&G)};
_.H.maybeUpdateTooltipText=function(){var Y=this,G;if((G=this.data)==null?0:G.tooltip){var u=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.sb)(Y.tooltip).textContent=u},250)}};
_.H.handleLiveChatActions=function(Y){var G=this;Y.length&&(this.id!=="creator"&&this.id!=="product-picker"||Y.forEach(function(u){(u=G.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",u))&&u.durationSec===u.fullDurationSec&&G.startBubble(G.colorFromDecimal(u.startBackgroundColor))}))};
_.H.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.H.startBubble=function(Y){_.cm(this.hostElement,{"--yt-live-chat-monetization-button-glow":Y});this.hostElement.setAttribute("bubble","")};
_.H.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.H.colorFromDecimal=function(Y){typeof Y==="string"&&(Y=Number(Y));return"rgba("+[Y>>16&255,Y>>8&255,Y&255,(Y>>24&255)/255].join()+")"};
Jn.prototype.onAnimationEnd=Jn.prototype.onAnimationEnd;Jn.prototype.disabledChanged=Jn.prototype.disabledChanged;Jn.prototype.dataChanged=Jn.prototype.dataChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Jn.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.zk.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],Jn.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Jn.prototype,"data",void 0);_.S([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.V("design:type",Object)],Jn.prototype,"id",void 0);_.S([_.R({notify:!0,reflectToAttribute:!0}),_.V("design:type",Object)],Jn.prototype,"active",void 0);
_.S([_.R({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.V("design:type",Object)],Jn.prototype,"icon",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Jn.prototype,"disabled",void 0);_.S([_.R({computed:"computeShowTooltip(data, disabled)"}),_.V("design:type",Object)],Jn.prototype,"showTooltip",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Jn.prototype,"useToggledActiveState",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jn.prototype,"dataChanged",null);_.S([_.GO("disabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jn.prototype,"disabledChanged",null);_.S([_.Yo("animationend"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Jn.prototype,"onAnimationEnd",null);
_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Jn);
_.d(Jn,"yt-live-chat-icon-toggle-button-renderer",function(){if(PH9===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Xlw===void 0&&(Xlw=document.createElement("template"));var O=Xlw;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);PH9=Y}Y=PH9;return Y},{mode:0});var Irx;var kZ9;var Yv=function(){return _.Z.apply(this,arguments)||this};
_.m(Yv,_.Z);Yv.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.S([_.R(),_.V("design:type",Object)],Yv.prototype,"data",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Yv.prototype,"ytRendererstamperBehavior",void 0);_.S([_.pD({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],Yv);
_.d(Yv,"yt-live-chat-message-input-prompt-header-renderer",function(){if(kZ9===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Irx===void 0&&(Irx=document.createElement("template"));var O=Irx;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);kZ9=Y}Y=kZ9;return Y},{mode:0});var ney;var FC9;var pl9;var zJx;var mkg;var WCN;var rAx=function(){return _.Z.apply(this,arguments)||this};
_.m(rAx,_.Z);_.S([_.R(),_.V("design:type",Object)],rAx.prototype,"data",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],rAx);
_.d(rAx,"yt-live-chat-message-subtext-renderer",function(){if(WCN===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;mkg===void 0&&(mkg=document.createElement("template"));var O=mkg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);WCN=Y}Y=WCN;return Y},{mode:0});var Gt=function(){var Y=_.Z.apply(this,arguments)||this;Y.subtextOnBottom=!1;Y.buttonOverrides={style:"mono",type:"tonal"};return Y};
_.m(Gt,_.Z);Gt.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"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Gt.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Gt.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Gt.prototype,"subtextOnBottom",void 0);_.S([_.R(),_.V("design:type",Object)],Gt.prototype,"buttonOverrides",void 0);
_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Gt);
_.d(Gt,"yt-live-chat-message-renderer",function(){if(zJx===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;pl9===void 0&&(pl9=document.createElement("template"));var O=pl9;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);zJx=Y}Y=zJx;return Y},{mode:0});var xkx;var fro;var ue=function(){var Y=_.Z.apply(this,arguments)||this;Y.isRemovable=!1;Y.hasPrefilledText=!1;Y.isInputDirty=!1;Y.overCharacterLimit=!1;Y.underCharacterLimit=!1;Y.showErrorMessage=!1;return Y};
_.m(ue,_.Z);_.H=ue.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 _.l0(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.H.clearInput=function(){_.l0(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(Y){Y=Y.detail&&Y.detail.characterCount;Y!==void 0&&(this.characterCount=Y,Y!==0&&(this.isInputDirty=!0))};
_.H.onInputFocusOut=function(){this.isInputDirty=!0};
_.H.onClickCloseButton=function(){_.$s(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
ue.prototype.handleTextInputCharCountChanged=ue.prototype.handleTextInputCharCountChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ue.prototype,"data",void 0);_.S([_.R({computed:"computeId(data.id)"}),_.V("design:type",String)],ue.prototype,"id",void 0);_.S([_.R({computed:"computeInputData(data.inputData)"}),_.V("design:type",Object)],ue.prototype,"inputData",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.V("design:type",Object)],ue.prototype,"isRemovable",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.V("design:type",Object)],ue.prototype,"hasPrefilledText",void 0);_.S([_.R({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.V("design:type",Number)],ue.prototype,"charactersRemaining",void 0);
_.S([_.R(),_.V("design:type",Number)],ue.prototype,"characterCount",void 0);_.S([_.R(),_.V("design:type",Object)],ue.prototype,"isInputDirty",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.V("design:type",Object)],ue.prototype,"overCharacterLimit",void 0);_.S([_.R({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.V("design:type",Object)],ue.prototype,"underCharacterLimit",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.V("design:type",Object)],ue.prototype,"showErrorMessage",void 0);_.S([_.Yo("yt-live-chat-text-input-field-renderer-character-count-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ue.prototype,"handleTextInputCharCountChanged",null);
_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],ue);
_.d(ue,"yt-live-chat-poll-editor-input",function(){if(fro===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;xkx===void 0&&(xkx=document.createElement("template"));var O=xkx;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);fro=Y}Y=fro;return Y},{mode:0});var CHg;var yAN;var eJg={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Oc=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.F("web_button_rework_with_live");Y.closeButtonOverrides={iconPosition:"icon-only"};Y.startButtonOverrides={style:"mono",type:"filled"};Y.addOptionButtonOverrides={style:"mono",type:"text"};return Y};
_.m(Oc,_.Z);_.H=Oc.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 Y;_.z((Y=this.data)==null?void 0:Y.startButton,_.ru)&&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 Y=0;Y<this.pollEditorInfoWithDefaults.minPollOptions;Y++)this.addPollOptionData()};
_.H.getIsValidPoll=function(){var Y=this;if(!this.pollEditorInfoWithDefaults)return!1;var G=this.pollEditorInfoWithDefaults,u=G.minPollOptionChars,O=G.maxPollOptionChars,Q=G.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>G.maxPollQuestionChars)return!1;G=_.l0(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(G).every(function(M,t){M=M.characterCount;!M&&Q[t]&&(M=Y.ytRendererBehavior.getSimpleString(Q[t]).length);return M!==void 0&&M>=u&&M<=O})};
_.H.isValidPollChanged=function(){var Y;_.z((Y=this.data)==null?void 0:Y.startButton,_.ru)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.H.addPollOptionData=function(){var Y=this.pollEditorInfoWithDefaults,G=Y.maxPollOptionChars,u=Y.optionPlaceholderText,O=Y.customOptionPlaceholderText,Q=Y.pollOptionData;this.currentNumPollOptions>=Y.maxPollOptions||(Y={liveChatPollOptionInput:{inputData:{placeholder:O[this.currentNumPollOptions]||u,maxCharacterLimit:G},maxCharacterLimit:G,minCharacterLimit:Y.minPollOptionChars,hasPrefilledText:!!O[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=Y.minPollOptions}},Q.charCountErrorText&&
(Y.liveChatPollOptionInput.charCountErrorText=Q.charCountErrorText),Q.charsRemainingAltLabel&&(Y.liveChatPollOptionInput.charsRemainingAltLabel=Q.charsRemainingAltLabel),Q.removeOptionAltText&&(Y.liveChatPollOptionInput.removeOptionAltText=Q.removeOptionAltText),this.push("pollOptionsData",Y),Q=Array.from(_.l0(_.l0(this.hostElement).querySelector("#poll-options")).children),Q.forEach(function(M,t){M.polymerController.set("data.id",t)}),_.l0(Q[Q.length-1]).querySelector("#input").focus())};
_.H.getPollOptionInputValues=function(){var Y=this,G=[],u=_.l0(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),O=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(u).forEach(function(Q,M){var t=null;Q=Q.getLiveChatRichMessageInput();var K;(Q==null?0:(K=Q.textSegments)==null?0:K.length)?t=_.Cz(Q):O[M]&&(t=Y.formattedStringToLiveChatRichMessageInput(O[M]));G.push(t)});
return G};
_.H.requestCreateAndStartPoll=function(Y){var G=this.getPollOptionInputValues();if(!G.some(function(O){return!O})){G={optionText:G};
var u=_.l0(_.l0(this.hostElement).querySelector("#poll-question")).firstChild;u&&u.liveChatRichMessageInput&&(G.questionText=_.Cz(u.liveChatRichMessageInput));_.c$(this.hostElement,[Y,G])}};
_.H.selectedChanged=function(){if(this.selected){var Y=_.l0(_.l0(this.hostElement).querySelector("#start-button")).firstElementChild;if(Y){var G;(G=_.l0(Y).querySelector("#button")||_.Bm(Y).querySelector("button"))==null||G.focus()}}};
_.H.handleTextInputChanged=function(Y){var G;((G=Y.target)==null?void 0:G.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=Y.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.H.handleStartButtonAction=function(Y){Y.detail.actionName==="yt-service-request"&&(Y.stopPropagation(),(Y=Y.detail.args[1])&&this.requestCreateAndStartPoll(Y))};
_.H.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.H.handleServiceRequestCompleted=function(Y){this.createPollRequestInFlight=!1;(Y=Y.detail&&Y.detail.data)&&Y.success&&(_.$s(this.hostElement,"picker-cancelled"),_.qZ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.H.onCloseClick=function(){_.$s(this.hostElement,"picker-cancelled");_.qZ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.H.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.H.handlePollEditorInputClosed=function(Y){var G=this.pollOptionsData.findIndex(function(u){return u.liveChatPollOptionInput.id===Y.detail.id});
this.splice("pollOptionsData",G,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 Y=_.l0(_.l0(this.hostElement).querySelector("#poll-question")).firstChild;Y&&Y.setLiveChatRichMessageInput(null);if(Y=_.l0(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){Y=_.E(Array.from(Y));for(var G=Y.next();!G.done;G=Y.next())G.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.H.formattedStringToLiveChatRichMessageInput=function(Y){return Y.simpleText?{text_segments:[Y.simpleText]}:{text_segments:Y.runs}};
_.Uk.Object.defineProperties(Oc.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(eJg,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Oc.prototype.onPickerCancelled=Oc.prototype.onPickerCancelled;Oc.prototype.handlePollEditorInputClosed=Oc.prototype.handlePollEditorInputClosed;Oc.prototype.handleServiceRequestCompleted=Oc.prototype.handleServiceRequestCompleted;Oc.prototype.handleServiceRequestSent=Oc.prototype.handleServiceRequestSent;Oc.prototype.handleTextInputChanged=Oc.prototype.handleTextInputChanged;Oc.prototype.selectedChanged=Oc.prototype.selectedChanged;Oc.prototype.isValidPollChanged=Oc.prototype.isValidPollChanged;
Oc.prototype.shouldInitializePollChanged=Oc.prototype.shouldInitializePollChanged;Oc.prototype.dataChanged=Oc.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Oc.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Oc.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Oc.prototype,"modern",void 0);
_.S([_.R(),_.V("design:type",Object)],Oc.prototype,"closeButtonOverrides",void 0);_.S([_.R(),_.V("design:type",Object)],Oc.prototype,"startButtonOverrides",void 0);_.S([_.R(),_.V("design:type",Object)],Oc.prototype,"addOptionButtonOverrides",void 0);_.S([_.R({computed:"computeId(data.id)",reflectToAttribute:!0}),_.V("design:type",String)],Oc.prototype,"id",void 0);_.S([_.R({value:function(){return[]}}),
_.V("design:type",Array)],Oc.prototype,"pollOptionsData",void 0);_.S([_.f("pollEditorInfoWithDefaults"),_.V("design:type",Object),_.V("design:paramtypes",[])],Oc.prototype,"pollQuestionData",null);_.S([_.R({value:0}),_.V("design:type",Number)],Oc.prototype,"pollQuestionCharacterCount",void 0);_.S([_.f("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.V("design:type",Object),_.V("design:paramtypes",[])],Oc.prototype,"pollQuestionCharactersRemaining",null);
_.S([_.R({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.V("design:type",Boolean)],Oc.prototype,"overQuestionCharacterLimit",void 0);_.S([_.f("data.pollEditorInfo"),_.V("design:type",Object),_.V("design:paramtypes",[])],Oc.prototype,"pollEditorInfoWithDefaults",null);_.S([_.R({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.V("design:type",Number)],Oc.prototype,"currentNumPollOptions",void 0);
_.S([_.R({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Oc.prototype,"hasMaxNumPollOptions",void 0);_.S([_.f("pollEditorInfoWithDefaults","pollOptionsData"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Oc.prototype,"shouldInitializePoll",null);_.S([_.R(),_.V("design:type",Object)],Oc.prototype,"isValidPoll",void 0);
_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Oc.prototype,"createPollRequestInFlight",void 0);_.S([_.R(),_.V("design:type",Object)],Oc.prototype,"selected",void 0);_.S([_.R({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.V("design:type",Boolean)],Oc.prototype,"showQuestionErrorMessage",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Oc.prototype,"dataChanged",null);_.S([_.GO("shouldInitializePoll"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Oc.prototype,"shouldInitializePollChanged",null);_.S([_.GO("isValidPoll"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Oc.prototype,"isValidPollChanged",null);
_.S([_.GO("selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Oc.prototype,"selectedChanged",null);_.S([_.Yo("yt-live-chat-text-input-field-renderer-character-count-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Oc.prototype,"handleTextInputChanged",null);
_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Oc.prototype,"handleServiceRequestSent",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Oc.prototype,"handleServiceRequestCompleted",null);
_.S([_.Yo("yt-live-chat-poll-editor-input-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Oc.prototype,"handlePollEditorInputClosed",null);_.S([_.Yo("picker-cancelled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Oc.prototype,"onPickerCancelled",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Oc);
_.d(Oc,"yt-live-chat-poll-editor-panel-renderer",function(){if(yAN===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;CHg===void 0&&(CHg=document.createElement("template"));var O=CHg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);yAN=Y}Y=yAN;return Y},{mode:0});var AAy;var oex;var QT=function(){return _.Z.apply(this,arguments)||this};
_.m(QT,_.Z);QT.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
QT.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Uk.Object.defineProperties(QT.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(Y=this.data)==null?void 0:(G=Y.title)==null?void 0:G.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var Y;return _.FS((Y=this.data)==null?void 0:Y.onTapCommand)}}});
_.S([_.x(_.U2.YtEndpointBehavior),_.V("design:type",Object)],QT.prototype,"ytEndpointBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],QT.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],QT.prototype,"itemId",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],QT.prototype,"hasPromotion",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],QT.prototype,"innertubeCommand",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],QT);
_.d(QT,"yt-live-chat-product-picker-panel-item-view-model",function(){if(oex===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;AAy===void 0&&(AAy=document.createElement("template"));var O=AAy;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);oex=Y}Y=oex;return Y},{mode:0});var i_x;var RJo;var MY=function(){var Y=_.Z.apply(this,arguments)||this;Y.id="product-picker";Y.selected=!1;Y.closeButtonId="close-button";Y.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return Y};
_.m(MY,_.Z);_.H=MY.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 Y=_.l0(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");Y.length&&Y[0].focus()};
_.H.onCloseBuyFlow=function(){_.$s(this.hostElement,"picker-cancelled")};
_.H.onCloseClick=function(){_.$s(this.hostElement,"picker-cancelled");var Y;((Y=this.data)==null?0:Y.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.z(this.data.closeButton,_.Ck))};
_.H.onCloseEngageWithAudienceEditorPanels=function(){_.$s(this.hostElement,"picker-cancelled")};
MY.prototype.observeSelected=MY.prototype.observeSelected;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],MY.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],MY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],MY.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],MY.prototype,"id",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],MY.prototype,"selected",void 0);_.S([_.R(),_.V("design:type",Object)],MY.prototype,"closeButtonId",void 0);_.S([_.GO("selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MY.prototype,"observeSelected",null);
_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],MY);
_.d(MY,"yt-live-chat-product-picker-panel-view-model",function(){if(RJo===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;i_x===void 0&&(i_x=document.createElement("template"));var O=i_x;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);RJo=Y}Y=RJo;return Y},{mode:0});var wlj;var Z_o;var HV=function(){var Y=_.Z.apply(this,arguments)||this;Y.iconId="";Y.icon="";Y.disabled=!1;Y.systemIcons=_.F("kevlar_system_icons");return Y};
_.m(HV,_.Z);_.H=HV.prototype;_.H.computeIconId=function(Y){return Y&&Y.icon&&Y.icon.iconType?Y.icon.iconType.toLowerCase():""};
_.H.computeIcon=function(Y){return Y&&Y.icon&&Y.icon.iconType?(Y=Y.icon.iconType.toLowerCase(),(Y.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+Y):""};
_.H.computeDisabled=function(Y){return!!Y};
_.H.computeCommand=function(Y,G){return G?void 0:Y};
_.H.computeTooltip=function(Y,G){return G&&Y?Y:""};
_.H.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Uk.Object.defineProperties(HV.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var Y="",G,u,O;if((G=this.data)==null?0:(u=G.text)==null?0:(O=u.runs)==null?0:O.length)Y=this.data.text.runs[0].text||"";else{var Q,M;if((Q=this.data)==null?0:(M=Q.text)==null?0:M.simpleText)Y=this.data.text.simpleText}var t,K,L;if((t=this.data)==null?0:(K=t.subtext)==null?0:(L=K.runs)==null?0:L.length)Y&&(Y+=". "),Y+=this.data.subtext.runs[0].text||"";else{var g,P;if((g=this.data)==null?0:(P=g.subtext)==
null?0:P.simpleText)Y&&(Y+=". "),Y+=this.data.subtext.simpleText}return Y}}});
_.S([_.x(_.U2.YtEndpointBehavior),_.V("design:type",Object)],HV.prototype,"ytEndpointBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],HV.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],HV.prototype,"data",void 0);_.S([_.R({computed:"computeIconId(data)",reflectToAttribute:!0}),_.V("design:type",Object)],HV.prototype,"iconId",void 0);
_.S([_.R({computed:"computeIcon(data)",reflectToAttribute:!0}),_.V("design:type",Object)],HV.prototype,"icon",void 0);_.S([_.R({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.V("design:type",Object)],HV.prototype,"disabled",void 0);_.S([_.R({computed:"computeCommand(data.command, disabled)"}),_.V("design:type",Object)],HV.prototype,"command",void 0);_.S([_.R({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.V("design:type",String)],HV.prototype,"tooltip",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],HV.prototype,"systemIcons",void 0);_.S([_.f("data.text","data.subtext"),_.R(),_.V("design:type",String),_.V("design:paramtypes",[])],HV.prototype,"ariaLabel",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],HV);
_.d(HV,"yt-live-chat-product-button-renderer",function(){if(Z_o===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;wlj===void 0&&(wlj=document.createElement("template"));var O=wlj;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Z_o=Y}Y=Z_o;return Y},{mode:0});var Dkb;var hJx;var Ec=function(){var Y=_.Z.apply(this,arguments)||this;Y.selected=!1;Y.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 Y};
_.m(Ec,_.Z);_.H=Ec.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(Y){return Y.id||""};
_.H.onCloseClick=function(){_.$s(this.hostElement,"picker-cancelled")};
_.H.observeSelected=function(){this.selected&&this.hostElement.focus();var Y=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");Y.length&&Y[0].focus()};
_.H.onCloseBuyFlow=function(){_.$s(this.hostElement,"picker-cancelled")};
_.H.onCloseEngageWithAudienceEditorPanels=function(){_.$s(this.hostElement,"picker-cancelled")};
Ec.prototype.observeSelected=Ec.prototype.observeSelected;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Ec.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ec.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ec.prototype,"data",void 0);
_.S([_.R({computed:"computeId(data)",reflectToAttribute:!0}),_.V("design:type",String)],Ec.prototype,"id",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ec.prototype,"selected",void 0);_.S([_.GO("selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ec.prototype,"observeSelected",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],Ec);
_.d(Ec,"yt-live-chat-product-picker-renderer",function(){if(hJx===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Dkb===void 0&&(Dkb=document.createElement("template"));var O=Dkb;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);hJx=Y}Y=hJx;return Y},{mode:0});var dkx;var b_o;var S79;var NnB;var tO=function(){return _.Z.apply(this,arguments)||this};
_.m(tO,_.Z);tO.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()};
tO.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
tO.prototype.created=function(){this.ids={background:VJ(),maskOne:VJ(),maskTwo:VJ(),gradient:VJ(),largeBackground:VJ(),largeGradientOne:VJ(),largeGradientTwo:VJ(),largeGradientPath:VJ()}};
tO.prototype.maybeLoadAnimationBackground=tO.prototype.maybeLoadAnimationBackground;_.S([_.R({value:!1}),_.V("design:type",Boolean)],tO.prototype,"useLargeBackground",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],tO.prototype,"useAnimationBackground",void 0);_.S([_.R({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.V("design:type",Boolean)],tO.prototype,"useRegularBackground",void 0);
_.S([_.R(),_.V("design:type",Object)],tO.prototype,"ids",void 0);_.S([_.R(),_.V("design:type",Object)],tO.prototype,"lottieAnimation",void 0);_.S([_.Ox("#animation-background"),_.V("design:type",HTMLDivElement)],tO.prototype,"animationBackground",void 0);_.S([_.GO("useAnimationBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tO.prototype,"maybeLoadAnimationBackground",null);
_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],tO);
_.d(tO,"yt-live-interactivity-component-background",function(){if(NnB===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;S79===void 0&&(S79=document.createElement("template"));var O=S79;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);NnB=Y}Y=NnB;return Y},{mode:0});var Kh=function(){var Y=_.Z.apply(this,arguments)||this;Y.characterCount=0;Y.showInputErrorMessage=!1;Y.startQnaRequestInFlight=!1;Y.modern=_.F("web_button_rework_with_live");Y.buttonOverrides={style:"mono",type:"filled"};Y.closeButtonOverrides={iconPosition:"icon-only"};Y.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return Y};
_.m(Kh,_.Z);_.H=Kh.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(Y){var G,u,O,Q,M=(u=_.z(this==null?void 0:(G=this.data)==null?void 0:G.creatorCallForQuestions,qpo))==null?void 0:(O=u.inputField)==null?void 0:(Q=O.liveChatTextInputFieldRenderer)==null?void 0:Q.maxCharacterLimit,t,K;M!=null&&(Y==null?void 0:(t=Y.detail)==null?void 0:t.characterCount)!=null&&_.z(this==null?void 0:(K=this.data)==null?void 0:K.startButton,_.ru)&&(G=Y.detail.characterCount>M,this.set("data.startButton.buttonRenderer.isDisabled",Y.detail.characterCount===
0||G),this.showInputErrorMessage=G)};
_.H.onCloseClick=function(){_.$s(this.hostElement,"picker-cancelled");_.qZ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.H.onPickerCancelled=function(){var Y=_.l0(this.hostElement).querySelector("#qna-creator-text-input-field");Y&&Y.setLiveChatRichMessageInput(null)};
_.H.handleOpenQnaStartPanel=function(){var Y=_.l0(this.hostElement).querySelector("#qna-creator-text-input-field");Y&&Y.focus()};
_.H.handleStartButtonAction=function(Y){var G=this;if(Y.detail.actionName==="yt-service-request"&&(Y.stopPropagation(),Y=Y.detail.args[1])){var u=_.l0(this.hostElement).querySelector("#qna-creator-text-input-field"),O;(u==null?0:(O=u.liveChatRichMessageInput)==null?0:O.textSegments)&&u.liveChatRichMessageInput.textSegments.length!==0&&(O={rich_message:_.Cz(u.liveChatRichMessageInput)},_.c$(this.hostElement,[Y,O]).then(function(){_.$s(G.hostElement,"picker-cancelled")}))}};
_.H.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.H.handleServiceRequestCompleted=function(Y){var G;Y=Y==null?void 0:(G=Y.detail)==null?void 0:G.data;(Y==null?0:Y.actions)&&Y.actions.length>0?this.startQnaRequestInFlight=!1:_.qZ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.H.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Kh.prototype.handleServiceRequestError=Kh.prototype.handleServiceRequestError;Kh.prototype.handleServiceRequestCompleted=Kh.prototype.handleServiceRequestCompleted;Kh.prototype.handleServiceRequestSent=Kh.prototype.handleServiceRequestSent;Kh.prototype.onPickerCancelled=Kh.prototype.onPickerCancelled;Kh.prototype.onCharacterCountChanged=Kh.prototype.onCharacterCountChanged;_.S([_.R(),_.V("design:type",Object)],Kh.prototype,"characterCount",void 0);
_.S([_.R(),_.V("design:type",Object)],Kh.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Kh.prototype,"showInputErrorMessage",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Kh.prototype,"startQnaRequestInFlight",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Kh.prototype,"modern",void 0);_.S([_.R(),_.V("design:type",Object)],Kh.prototype,"buttonOverrides",void 0);
_.S([_.R(),_.V("design:type",Object)],Kh.prototype,"closeButtonOverrides",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Kh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.pI),_.V("design:type",Object)],Kh.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.x(_.ot.YtLiveChatItemBehavior),_.V("design:type",_.iw)],Kh.prototype,"ytLiveChatItemBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Kh.prototype,"ytActionHandlerBehavior",void 0);_.S([_.Yo("yt-live-chat-text-input-field-renderer-character-count-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Kh.prototype,"onCharacterCountChanged",null);_.S([_.Yo("picker-cancelled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Kh.prototype,"onPickerCancelled",null);
_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Kh.prototype,"handleServiceRequestSent",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Kh.prototype,"handleServiceRequestCompleted",null);
_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Kh.prototype,"handleServiceRequestError",null);_.S([_.pD({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Kh);
_.d(Kh,"yt-live-chat-qna-start-panel-renderer",function(){if(b_o===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;dkx===void 0&&(dkx=document.createElement("template"));var O=dkx;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);b_o=Y}Y=b_o;return Y},{mode:0});var jvj;var Vso;var aF=function(){return _.Z.apply(this,arguments)||this};
_.m(aF,_.Z);aF.prototype.dismiss=function(){_.$s(this.hostElement,"yt-live-chat-error-message-dismiss")};
aF.prototype.edit=function(){_.$s(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.S([_.R(),_.V("design:type",Object)],aF.prototype,"data",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],aF);
_.d(aF,"yt-live-chat-text-actions-error-message-renderer",function(){if(Vso===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;jvj===void 0&&(jvj=document.createElement("template"));var O=jvj;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Vso=Y}Y=Vso;return Y},{mode:0});var lrV;var BnV;var $kx;var q7x;var Tt=function(){var Y=_.Z.apply(this,arguments)||this;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.newnessDotEligible=!1;return Y};
_.m(Tt,_.Z);Tt.prototype.sendReaction=function(){var Y,G,u=((Y=this.data)==null?void 0:Y.emojiId)||((G=this.data)==null?void 0:G.emoteId),O;u&&((O=this.data)==null?0:O.shouldTriggerAnimation)&&_.qZ(this.hostElement,"yt-create-user-reaction-animation",[u]);var Q;(Y=_.FS((Q=this.data)==null?void 0:Q.onTap))&&_.Yy(Y,this.hostElement);this.showNewnessDot&&_.qZ(this.hostElement,"yt-hide-newness-dot")};
Tt.prototype.onClick=function(Y){(!Y||Y.clientX||Y.clientY)&&this.sendReaction()};
Tt.prototype.onKeyDown=function(Y){Y.key!=="Enter"&&Y.key!==" "||Y.repeat||this.sendReaction()};
_.Uk.Object.defineProperties(Tt.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!!(((Y=this.data)==null?0:Y.emojiId)||((G=this.data)==null?0:G.emoteId))}}});
_.S([_.R(),_.V("design:type",Object)],Tt.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Tt.prototype,"isDarkTheme",void 0);_.S([_.R(),_.V("design:type",Object)],Tt.prototype,"newnessDotEligible",void 0);_.S([_.f("data.maybeShowNewnessDot"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tt.prototype,"showNewnessDot",null);_.S([_.f("data.emojiId","data.emoteId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tt.prototype,"useYtImage",null);
_.S([_.Ff({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Tt);
_.d(Tt,"yt-reaction-control-panel-button-view-model",function(){if(q7x===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;$kx===void 0&&($kx=document.createElement("template"));var O=$kx;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);q7x=Y}Y=q7x;return Y},{mode:0});var svV;var cAS;var Lh=function(){var Y=_.Z.apply(this,arguments)||this;Y.reactionControlPanelExpanded=!1;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.newnessDotEligible=!1;return Y};
_.m(Lh,_.Z);_.H=Lh.prototype;_.H.expandedButtonsChanged=function(){var Y,G;_.cm(this.hostElement,{"--expanded-buttons-height":((G=(Y=this.expandedButtonsData)==null?void 0:Y.length)!=null?G: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 Y=this;this.collapseTimer=setTimeout(function(){Y.reactionControlPanelExpanded=!1},500)};
_.H.onFocusIn=function(){this.onMouseEnter()};
_.H.onFocusOut=function(){this.onMouseLeave()};
_.H.onCollapsedButtonFocusIn=function(){var Y=this;setTimeout(function(){var G;(G=Y.expandedButtons.querySelector("button"))==null||G.focus()},100)};
_.H.onCollapsedButtonFocusOut=function(Y){Y.stopPropagation()};
_.Uk.Object.defineProperties(Lh.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var Y,G;return _.gX.unsafeClone((Y=this.liveReactionsData)==null?void 0:Y.emojiButtonData)||((G=this.data)==null?void 0:G.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var Y;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((Y=this.data)==null||!Y.maybeShowNewnessDot)}}});
Lh.prototype.expandedButtonsChanged=Lh.prototype.expandedButtonsChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Lh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.pI),_.V("design:type",Object)],Lh.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Lh.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Lh.prototype,"reactionControlPanelExpanded",void 0);_.S([_.R({selectorArgs:["data.liveReactionsDataEntityKey"],selector:TKw}),_.V("design:type",Object)],Lh.prototype,"liveReactionsData",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Lh.prototype,"isDarkTheme",void 0);_.S([_.R(),_.V("design:type",Object)],Lh.prototype,"newnessDotEligible",void 0);
_.S([_.f("liveReactionsData","data.expandedButtons"),_.V("design:type",Object),_.V("design:paramtypes",[])],Lh.prototype,"expandedButtonsData",null);_.S([_.f("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.R({reflectToAttribute:!0}),_.V("design:type",Object),_.V("design:paramtypes",[])],Lh.prototype,"showNewnessDot",null);_.S([_.Ox("#expanded-buttons"),_.V("design:type",HTMLElement)],Lh.prototype,"expandedButtons",void 0);
_.S([_.GO("expandedButtonsData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lh.prototype,"expandedButtonsChanged",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Lh);
_.d(Lh,"yt-reaction-control-panel-view-model",function(){if(cAS===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;svV===void 0&&(svV=document.createElement("template"));var O=svV;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);cAS=Y}Y=cAS;return Y},{mode:0});var gh=new _.Da("yt-live-chat"),Ukb=Date.parse("2024-7-24"),Xq=function(){var Y=_.Z.apply(this,arguments)||this;Y.emojiManager=_.Ai;Y.newnessDotEligible=!1;Y.newnessDotImpressionCounted=!1;Y.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return Y};
_.m(Xq,_.Z);_.H=Xq.prototype;_.H.emojiCustomizationEnabledChanged=function(){var Y;((Y=this.data)==null?0:Y.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((Y=gh.getCreationTime("emoji-customization-count"))&&Y<Ukb&&gh.set("emoji-customization-count","0"),Y=Number(gh.get("emoji-customization-count"))||0,Y<3&&(this.newnessDotEligible=!0,gh.set("emoji-customization-count",(Y+1).toString())),this.newnessDotImpressionCounted=!0)};
_.H.hideNewnessDot=function(){this.newnessDotEligible=!1;gh.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.H.handleReactionsMute=function(Y){var G=_.FA(),u=_.VZ(206221),O={checkboxData:{state:Y?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};G&&_.RK(G,u,O);this.reactionsMuted=Y};
_.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}}};
_.Uk.Object.defineProperties(Xq.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var Y;return(!((Y=this.liveReactionsData)==null||!Y.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Xq.prototype.liveReactionsSettingChanged=Xq.prototype.liveReactionsSettingChanged;Xq.prototype.emojiCustomizationEnabledChanged=Xq.prototype.emojiCustomizationEnabledChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Xq.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Xq.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.pI),_.V("design:type",Object)],Xq.prototype,"ytLiveChatReduxBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Xq.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Xq.prototype,"data",void 0);_.S([_.R(),_.V("design:type",_.fZ)],Xq.prototype,"emojiManager",void 0);_.S([_.R(),_.V("design:type",Object)],Xq.prototype,"newnessDotEligible",void 0);_.S([_.R(),_.V("design:type",Object)],Xq.prototype,"newnessDotImpressionCounted",void 0);
_.S([_.R({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:LZx}),_.V("design:type",Boolean)],Xq.prototype,"liveReactionsSetting",void 0);_.S([_.R({selectorArgs:["data.liveReactionsDataEntityKey"],selector:TKw}),_.V("design:type",Object)],Xq.prototype,"liveReactionsData",void 0);_.S([_.R({value:function(){var Y=_.F("enable_lwe_web_mute"),G=gh.get("allow-reactions");return G===void 0?!1:!G&&Y}}),
_.V("design:type",Boolean)],Xq.prototype,"reactionsMuted",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Xq.prototype,"liveReactionsEnabled",null);_.S([_.GO("data.emojiCustomizationEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xq.prototype,"emojiCustomizationEnabledChanged",null);
_.S([_.GO("liveReactionsEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xq.prototype,"liveReactionsSettingChanged",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Xq);
_.d(Xq,"yt-reaction-control-panel-overlay-view-model",function(){if(BnV===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;lrV===void 0&&(lrV=document.createElement("template"));var O=lrV;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);BnV=Y}Y=BnV;return Y},{mode:0});var ve9={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(Y){var G=this.$.pickers.selected;if(G){_.l0(this.hostElement).removeAttribute(G+"-open");var u="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(u="#picker-buttons",G==="emoji"&&_.l0(this.hostElement).querySelector("#emoji-picker-button")&&(u="#emoji-picker-button"));if(u=_.l0(this.hostElement).querySelector(u).querySelector("#"+G))u.active=!1}u=Y;G==Y&&(u=null);G!=
Y&&_.l0(this.hostElement).setAttribute(Y+"-open","");this.$.pickers.selected=u;_.qZ(this.hostElement,"yt-live-chat-picker-changed",[u])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var PV=function(){var Y=_.Z.apply(this,arguments)||this;Y.numSentMessages=0;Y.timeoutDurationMs=0;Y.timeoutMs=0;Y.lastTimeoutTimeMs=0;Y.pendingMessageId="";Y.hasFiredInitialFocusActions=!1;Y.isBeforeFocusEnabled=!0;Y.id="";Y.characterCount=0;Y.maxCharacterLimit=0;Y.remainingCharacterCount=0;Y.inputExpanded=!1;Y.buttonOverrides={iconPosition:"icon-only"};Y.inReplyPanel=!1;Y.countdownRatio=0;Y.isTooltipVisible=!1;Y.tooltipTimeout=1E4;Y.systemIcons=_.F("kevlar_system_icons");Y.tallerEmojiPicker=_.F("live_chat_taller_emoji_picker");
Y.sendReplyMessageInFlight=!1;Y.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"};Y.onResize=function(){Y.maybeToggleCharacterCount()};
return Y};
_.m(PV,_.Z);_.H=PV.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 Y=this,G,u,O,Q;return _.a(function(M){if(Y.sendDisabled)return M.return();Y.isTooltipVisible&&_.qZ(Y.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(Y.data.sendButton&&Y.data.sendButton.buttonRenderer){Y.input.completeEmojis();G=Y.data.sendButton.buttonRenderer.serviceEndpoint;if(!G)return M.return();O=((u=_.z(G,_.Oll))==null?void 0:u.clientIdPrefix)||"";Q={client_message_id:O+String(Y.numSentMessages++),rich_message:_.Cz(Y.input.liveChatRichMessageInput)};
Y.pendingMessageId=Q.client_message_id;Y.inReplyPanel&&(Y.sendReplyMessageInFlight=!0);_.c$(Y.hostElement,[G,Q]);Y.input.setLiveChatRichMessageInput(null)}_.Sd(M)})};
_.H.handleSendButtonAction=function(Y){Y.detail.actionName==="yt-service-request"&&(Y.stopPropagation(),this.sendMessage())};
_.H.onSendCompleted=function(Y,G){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(Y=this.get("timeoutDurationUsec",G.data))&&this.handleTimeout(Number(Y)/1E3);this.errorMessage=this.get("errorMessage",G.data);this.pendingMessageId=""};
_.H.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.qZ(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.H.handlePickerButtonToggle=function(Y){Y=Y.detail.targetId;this.ytPickerBehavior.togglePicker_(Y);if(Y==="emoji")this.input.focus();else if(Y==="qna-start-panel"){var G,u;(G=_.l0(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(u=G.querySelector("#qna-creator-text-input-field"))==null||u.focus()}};
_.H.onComponentReplaced=function(Y){var G,u;Y.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((G=Y.replacement.liveChatMessageInputRenderer)==null?0:(u=G.headerRenderer)==null?0:u.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.H.onEmojiSelect=function(Y){this.input.focus();this.input.insertEmoji(Y.detail)};
_.H.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.H.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.qZ(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.qZ(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.H.onOpenPopupAction=function(Y,G){var u=this;G===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.qZ(u.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 Y=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",Y>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.H.computeId=function(){return this.data&&this.data.targetId||""};
_.H.computeSendDisabled=function(Y,G,u,O){Y=!!(!Y||G&&Y>G||O);(G=_.l0(this.hostElement).querySelector("#send-button"))&&G.children.length&&(G.children[0].disabled=Y);return Y};
_.H.handleTimeout=function(Y){this.timeoutDurationMs=this.timeoutMs=Y;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.H.updateTimeout=function(Y){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(Y-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=Y,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.H.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.H.onErrorMessageEdit=function(Y){this.input.setLiveChatRichMessageInput(Y.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.H.errorMessageChanged=function(){var Y=this;_.CD(function(){_.qZ(Y.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.H.computeAuthorNameColor=function(Y){var G;if(_.F("live_chat_author_name_color_usernames")&&(Y==null?0:(G=Y.authorName)==null?0:G.simpleText))return _.OFU(_.Qju(Y.authorName.simpleText));if(_.F("live_chat_seed_color_usernames")&&(Y==null?0:Y.authorSeedColorArgb))return _.OFU(_.sx(Y.authorSeedColorArgb));if(_.F("live_chat_colored_usernames"))return"#cc0000";var u;return _.F("live_chat_simple_color_usernames")&&(Y==null?0:(u=Y.authorName)==null?0:u.simpleText)&&(Y==null?0:Y.authorUsernameColorLight)&&
(Y==null?0:Y.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.sx(Y.authorUsernameColorDark):_.sx(Y.authorUsernameColorLight):""};
_.H.onIsTooltipVisibleChanged=function(){var Y=_.l0(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){Y.hidden=!1;Y.setAttribute("role","alert")},0):(Y.hidden=!0,Y.removeAttribute("role"))};
_.H.onFocusedChanged=function(Y){this.inputFocused=Y.detail.value};
_.Uk.Object.defineProperties(PV.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 Y;return!((Y=this.data)==null||!Y.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?void 0:(G=Y.pickers)==null?void 0:G.find(function(u){return u.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return Y?this.ytRendererBehavior.getSimpleString(Y):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
PV.prototype.onIsTooltipVisibleChanged=PV.prototype.onIsTooltipVisibleChanged;PV.prototype.errorMessageChanged=PV.prototype.errorMessageChanged;PV.prototype.onErrorMessageEdit=PV.prototype.onErrorMessageEdit;PV.prototype.onErrorMessageDismiss=PV.prototype.onErrorMessageDismiss;PV.prototype.focusChanged=PV.prototype.focusChanged;PV.prototype.characterCountChanged=PV.prototype.characterCountChanged;PV.prototype.onEmojiSelect=PV.prototype.onEmojiSelect;PV.prototype.handlePickerButtonToggle=PV.prototype.handlePickerButtonToggle;
PV.prototype.onSendError=PV.prototype.onSendError;PV.prototype.onSendCompleted=PV.prototype.onSendCompleted;PV.prototype.sendMessage=PV.prototype.sendMessage;PV.prototype.dataChanged=PV.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],PV.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],PV.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.x(ve9.YtPickerBehavior),_.V("design:type",Object)],PV.prototype,"ytPickerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],PV.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.zk.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],PV.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],PV.prototype,"hasFiredInitialFocusActions",void 0);
_.S([_.R(),_.V("design:type",Object)],PV.prototype,"isBeforeFocusEnabled",void 0);_.S([_.R(),_.V("design:type",Object)],PV.prototype,"data",void 0);_.S([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.V("design:type",Object)],PV.prototype,"id",void 0);_.S([_.R(),_.V("design:type",Object)],PV.prototype,"characterCount",void 0);_.S([_.R(),_.V("design:type",Object)],PV.prototype,"maxCharacterLimit",void 0);
_.S([_.R(),_.V("design:type",Object)],PV.prototype,"remainingCharacterCount",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],PV.prototype,"inputExpanded",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],PV.prototype,"inputFocused",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],PV.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.S([_.R(),_.V("design:type",_.ZY)],PV.prototype,"participantsManager",void 0);
_.S([_.R(),_.V("design:type",Object)],PV.prototype,"buttonOverrides",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],PV.prototype,"inReplyPanel",void 0);_.S([_.f("characterCount, maxCharacterLimit, countdownActive"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],PV.prototype,"sendDisabled",null);_.S([_.R(),_.V("design:type",Object)],PV.prototype,"countdownRatio",void 0);
_.S([_.f("countdownRatio"),_.V("design:type",Number),_.V("design:paramtypes",[])],PV.prototype,"countdownStrokeDashOffset",null);_.S([_.f("countdownRatio"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],PV.prototype,"countdownActive",null);_.S([_.f("data.interactionMessage"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],PV.prototype,"hasInteractionMessage",null);
_.S([_.f("data.emojiPickerButton"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],PV.prototype,"hasEmojiPickerButton",null);_.S([_.f("data, characterCount"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],PV.prototype,"showAvatar",null);_.S([_.f("data.pickers"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],PV.prototype,"hasProductPickerPanelViewModel",null);
_.S([_.R(),_.V("design:type",Object)],PV.prototype,"errorMessage",void 0);_.S([_.R(),_.V("design:type",Object)],PV.prototype,"genericErrorMessage",void 0);_.S([_.R(),_.V("design:type",Object)],PV.prototype,"isTooltipVisible",void 0);_.S([_.R(),_.V("design:type",Object)],PV.prototype,"tooltipTimeout",void 0);_.S([_.f("data.onInitialFocusCommand"),_.V("design:type",String),_.V("design:paramtypes",[])],PV.prototype,"tooltipMessage",null);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],PV.prototype,"systemIcons",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],PV.prototype,"tallerEmojiPicker",void 0);_.S([_.f("data"),_.V("design:type",String),_.V("design:paramtypes",[])],PV.prototype,"authorNameColor",null);_.S([_.R(),_.V("design:type",Object)],PV.prototype,"sendReplyMessageInFlight",void 0);_.S([_.Ox("#input"),_.V("design:type",_.leE)],PV.prototype,"input",void 0);
_.S([_.Ox("#count"),_.V("design:type",HTMLElement)],PV.prototype,"count",void 0);_.S([_.Ox("#input-container"),_.V("design:type",HTMLElement)],PV.prototype,"inputContainer",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],PV.prototype,"dataChanged",null);_.S([_.Yo("yt-live-chat-send-message"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],PV.prototype,"sendMessage",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[Event,_.Zv]),_.V("design:returntype")],PV.prototype,"onSendCompleted",null);_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],PV.prototype,"onSendError",null);
_.S([_.Yo("yt-live-chat-icon-toggle-button-renderer-toggle"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],PV.prototype,"handlePickerButtonToggle",null);_.S([_.Yo("yt-emoji-select"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],PV.prototype,"onEmojiSelect",null);
_.S([_.GO("characterCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],PV.prototype,"characterCountChanged",null);_.S([_.GO("inputFocused"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],PV.prototype,"focusChanged",null);_.S([_.Yo("yt-live-chat-error-message-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],PV.prototype,"onErrorMessageDismiss",null);
_.S([_.Yo("yt-live-chat-error-message-edit"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],PV.prototype,"onErrorMessageEdit",null);_.S([_.GO("errorMessage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],PV.prototype,"errorMessageChanged",null);_.S([_.GO("isTooltipVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],PV.prototype,"onIsTooltipVisibleChanged",null);
_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],PV);
_.d(PV,"yt-live-chat-message-input-renderer",function(){if(FC9===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;ney===void 0&&(ney=document.createElement("template"));var O=ney;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);FC9=Y}Y=FC9;return Y},{mode:0});var JAw;var Yg9;var IF=function(){var Y=_.Z.apply(this,arguments)||this;Y.systemIcons=_.F("kevlar_system_icons");Y.firedOnClickCommand=!1;Y.inReplyPanel=!1;return Y};
_.m(IF,_.Z);
IF.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"}}}};
IF.prototype.onButtonToggle=function(Y){Y.target.disabled||this.ytPickerBehavior.togglePicker_(Y.detail.targetId)};
IF.prototype.onClick=function(){var Y=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.qZ(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return Y.firedOnClickCommand=!1},5E3))};
_.Uk.Object.defineProperties(IF.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?void 0:(G=Y.panels)==null?void 0:G.find(function(u){return u.liveChatProductPickerPanelViewModel}))!==void 0}}});
IF.prototype.onButtonToggle=IF.prototype.onButtonToggle;_.S([_.x(ve9.YtPickerBehavior),_.V("design:type",Object)],IF.prototype,"ytPickerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],IF.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],IF.prototype,"systemIcons",void 0);_.S([_.R({reflectToAttribute:!1}),_.V("design:type",Object)],IF.prototype,"firedOnClickCommand",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],IF.prototype,"inReplyPanel",void 0);_.S([_.f("data.pickers"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],IF.prototype,"hasProductPickerPanelViewModel",null);
_.S([_.Yo("yt-live-chat-icon-toggle-button-renderer-toggle"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],IF.prototype,"onButtonToggle",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],IF);
_.d(IF,"yt-live-chat-restricted-participation-renderer",function(){if(Yg9===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;JAw===void 0&&(JAw=document.createElement("template"));var O=JAw;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Yg9=Y}Y=Yg9;return Y},{mode:0});var kv=function(){var Y=_.Z.apply(this,arguments)||this;Y.genericErrorMessage=_.i8("Error, try again.");Y.inReplyPanel=!1;Y.hideBorder=!1;return Y};
_.m(kv,_.Z);kv.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}}}}}};
_.Uk.Object.defineProperties(kv,{template:{configurable:!0,enumerable:!0,get:function(){return Tn9()}}});
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],kv.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],kv.prototype,"genericErrorMessage",void 0);_.S([_.R(),_.V("design:type",Object)],kv.prototype,"inReplyPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],kv.prototype,"hideBorder",void 0);
_.S([_.Ff({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],kv);_.d(kv,"yt-live-chat-engagement-panel-input-renderer",function(){return Tn9()},{mode:0});var Gqj;var uDN;var O6N=new _.Da("yt-live-chat"),QpS=new Map;QpS.set("timestamp_toggle","show-timestamps");QpS.set("reactions_toggle","allow-reactions");var nh=function(){return _.Z.apply(this,arguments)||this};
_.m(nh,_.Z);_.H=nh.prototype;_.H.menuItemIdentifierChanged=function(){var Y;(Y=this.data)!=null&&Y.menuItemIdentifier&&(Y=QpS.get(this.data.menuItemIdentifier))&&(_.F("enable_lwe_web_mute")?(Y=O6N.get(Y),this.isToggled=!(Y===void 0?!this.data.isToggled:!Y)):this.isToggled=O6N.get(Y))};
_.H.onFocus=function(){this.toggleButton.focus()};
_.H.onTap=function(){var Y=this.data.command;Y&&this.componentBehavior.resolveCommand(Y)};
_.H.computeText=function(Y,G,u){return this.componentBehavior.getSimpleString(Y?u:G)};
_.H.computeIcon=function(Y,G,u){return(Y=Y?u:G)&&Y.iconType?_.Ux(Y.iconType):""};
nh.prototype.onTap=nh.prototype.onTap;nh.prototype.onFocus=nh.prototype.onFocus;nh.prototype.menuItemIdentifierChanged=nh.prototype.menuItemIdentifierChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],nh.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],nh.prototype,"data",void 0);
_.S([_.R({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.V("design:type",String)],nh.prototype,"icon",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],nh.prototype,"isToggled",void 0);_.S([_.Ox("tp-yt-paper-toggle-button"),_.V("design:type",Object)],nh.prototype,"toggleButton",void 0);_.S([_.GO("data.menuItemIdentifier"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nh.prototype,"menuItemIdentifierChanged",null);
_.S([_.Yo("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nh.prototype,"onFocus",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nh.prototype,"onTap",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],nh);
_.d(nh,"yt-live-chat-toggle-renderer",function(){if(uDN===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Gqj===void 0&&(Gqj=document.createElement("template"));var O=Gqj;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);uDN=Y}Y=uDN;return Y},{mode:0});var Mng=new _.Sb("NAVIGATION_PROGRESS_TOKEN");var H6x={},E0g={},tnb=(E0g[cQg.name]=!0,E0g),Fq=function(){var Y=_.Mb.apply(this,arguments)||this;Y._noAccessors=!0;Y.tabGesturesIsActive=!1;Y.actionRouterIsRoot=!0;Y.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"};Y.pageTitle="";Y.titleSuffix="YouTube";Y.unseenNotificationCount=
0;Y.hasNavigated=!1;Y.hasSetScrollTopForNavigation=!1;Y.pagePreparer=null;Y.zwiebackInitJobId=0;Y.dataUpdatePromise=null;Y.loadDepsPromise=_.v$();Y.hasPendingNavigation=!1;Y.pendingPlayerOnResponseReceivedActions=[];return Y};
_.m(Fq,_.Mb);Fq.prototype.attached=function(){K6g(this);document.addEventListener("yt-navigate-cache",_.Jh(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var Y=ph();Y.init();Y.dispatchElement=this.hostElement};
var K6g=function(Y,G){G=G===void 0?0:G;var u=_.sH().resolve(_.q3(_.YY));if(u)a$9(Y,u);else{if(G>=5)throw Error("xl");setTimeout(function(){K6g(Y,G+1)},0)}},a$9=function(Y,G){G.addEventListener("yt-navigate-start",_.Jh(Y,Y.onYtNavigateStart));
G.addEventListener("yt-navigate-finish",_.Jh(Y,Y.onYtNavigateFinish));G.addEventListener("yt-navigate-error",_.Jh(Y,Y.onYtNavigateError));G.addEventListener("yt-page-data-fetched",_.Jh(Y,Y.onYtPageDataFetched))};
_.H=Fq.prototype;_.H.detached=function(){var Y=_.sH().resolve(_.YY);Y.removeEventListener("yt-navigate-start",_.Jh(this,this.onYtNavigateStart));Y.removeEventListener("yt-navigate-finish",_.Jh(this,this.onYtNavigateFinish));Y.removeEventListener("yt-navigate-error",_.Jh(this,this.onYtNavigateError));Y.removeEventListener("yt-page-data-fetched",_.Jh(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Jh(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.H.setPageOffset=function(Y,G){Y?_.qZ(this.hostElement,"yt-set-page-offset",[Y,G]):_.o0(Error("yl"))};
_.H.setPageOffsetForNavigation=function(Y,G){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(Y,G))};
_.H.onYtNavigateSetPageOffset=function(Y,G){this.setPageOffsetForNavigation(G.page,G.offset)};
_.H.getPageOffset=function(){var Y=_.l0(this.hostElement).querySelector("#page-manager").getCurrentPage(),G=0;Y&&(G=_.qZ(this.hostElement,"yt-get-page-offset",[Y])[0]);return G};
_.H.onYtHistoryPop=function(Y,G){if(_.hy("DISABLE_WARM_LOADS"))Y.preventDefault(),window.location.reload();else{var u=_.sH().resolve(_.YY);u.hasPendingNavigation()&&Y.preventDefault();u.cancelPendingNavigation();_.sK(this.hostElement,"yt-pending-navigation-cancelled");G.errorMsg&&(Y=G.errorMsg.split(" - "),G=Error(Y[0]),Y.length==2&&Y[1]&&(_.wN(G,Y[1]),_.R0(G)),window.location.reload())}};
_.H.onYtHistoryLoad=function(Y,G){var u=this;if(_.hy("DISABLE_WARM_LOADS"))window.location.reload();else{(Y=G.endpoint)&&Object.keys(Y).length||(Y=null);var O=G.historyEntry,Q=_.sH().resolve(_.YY),M=_.sH().resolve(_.bv),t=null;O&&O.rootData&&(t=O.rootData);var K=t&&T2b(t);!t||K||t.filler?Y?(Q.navigate(Y,!0),L6j(this,Y)):(G.legacyBorder||K||(G.JSC$31309_savedComponentState==null&&t==null?_.R0(new _.I2("Incomplete history entry",G.forward)):_.ij(new _.I2("Malformed history entry",G.JSC$31309_savedComponentState,
G.forward,t))),window.location.reload()):(_.JMa({isHot:!0}),_.kN({webInfo:{navigationReason:"h"}}),_.Nrt(),_.pQ("srt"),_.pQ("pdc"),this.cancelPendingTasks(),g0g(this,G.forward,t),t.player&&(t.player.loaded=!1),L6j(this,Y),_.WWR(Q,Y||{},t,2,{},!1,G).then(function(){u.setPageOffset(M.getCurrentPage(),O.scrollTop||0)}))}};
_.H.initHistoryManager=function(Y){if(!this.hasNavigated){this.hasNavigated=!0;var G=_.l0(this.hostElement).querySelector("#page-manager").getCurrentData();Y=isNaN(Y)?this.getPageOffset():Y;var u=_.sH().resolve(_.YY).currentEndpoint;this.replaceState(u,G,Y)}};
_.H.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.H.onYtNavigateStart=function(Y,G){this.navigationSpan&&(this.navigationSpan.addAttributes({cancelled:!0}),this.navigationSpan.end());var u;this.navigationSpan=_.lc("navigate",{fromPath:window.location.pathname,toPath:G.url?(u=_.BI(G.url))!=null?u:void 0:void 0});this.cancelPendingTasks();G.noProgressBar||(Y=_.sH().resolve(_.q3(Mng)))&&Y.start();Y=this.hasPendingNavigation?null:this.data;u=_.sH().resolve(_.bv);var O,Q,M;_.F("kevlar_use_vimio_behavior")&&!((O=G.endpoint)==null?0:(Q=O.commandMetadata)==
null?0:(M=Q.webCommandMetadata)==null?0:M.ignoreNavigation)&&(O=u.getCurrentPage())&&O.disconnectVisibilityRoot();u.prepareForNavigation(G.pageType,G.endpoint);_.F("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.hC(1,"pcl"),_.d8(this.pagePreparer,u.preparePage.bind(u,G.pageType,G.endpoint)));O=this.getPageOffset();this.initHistoryManager(O);G.reload||this.hasPendingNavigation?(G.pageType==="shorts"&&G.reload&&_.$s(this.hostElement,"yt-shorts-reset"),this.replaceState(G.endpoint,Y,O)):
(Y==null?void 0:Y.page)==="watch"&&G.pageType==="watch"&&_.F("kevlar_replace_watch_to_watch_history_state")?this.replaceState(G.endpoint,Y,O):(Y==null?void 0:Y.page)!=="shorts"||G.pageType!=="shorts"||G.endpoint.reelWatchEndpoint.sequenceParams||_.F("short_to_short_back_nav_killswitch")?G.type!="navigate-back"&&G.type!="navigate-forward"&&(G.pageType==="shorts"&&_.$s(this.hostElement,"yt-shorts-reset"),this.saveAndPush(G.url,G.endpoint,Y,O)):this.replaceState(G.endpoint,Y,0);this.hasPendingNavigation=
!0};
var Xgg=function(Y){Y.hasPendingNavigation=!1;(Y=_.sH().resolve(_.q3(Mng)))&&Y.finish()};
Fq.prototype.onYtNavigateError=function(Y,G){this.navigationSpan&&(this.navigationSpan.end("SPAN_STATUS_ERROR"),this.navigationSpan=void 0);Xgg(this);Y=this.get("endpoint.commandMetadata.webCommandMetadata.url",G);var u=_.li(window.location.href);Y&&!u.pbjreload&&(G=G.navigationErrorReason||"10",_.F("kevlar_parent_on_pbjreload")&&(u={csn:_.FA()},this.get("data.endpoint.clickTrackingParams")&&(u.itct=this.data.endpoint.clickTrackingParams),_.hv(Y,u)),_.Wm(_.B4(Y,{pbjreload:G})))};
Fq.prototype.onYtNavigateCache=function(Y,G){var u=this,O=G.url,Q=G.endpoint,M=G.data;Y=!!G.miniplayer;G=!!G.skipHistory;if(O&&Q&&M){var t=this.getPageOffset(),K=this.data||null;G||this.saveAndPush(O,Q,K,t);O=_.WWR(_.sH().resolve(_.YY),Q,M,Y?4:3,{},Y);Y&&O.then(function(){u.dataUpdatePromise&&u.dataUpdatePromise.then(function(){var L=_.sH().resolve(_.bv);u.setPageOffset(L.getCurrentPage(),0)})})}};
Fq.prototype.onYtNavigateFinish=function(Y,G){var u=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){Pxy(u,G.fromHistory)})};
var Pxy=function(Y,G){Y.navigationSpan&&(Y.navigationSpan.end(),Y.navigationSpan=void 0);Xgg(Y);if(Y.pendingPlayerOnResponseReceivedActions){for(var u=_.E(Y.pendingPlayerOnResponseReceivedActions),O=u.next();!O.done;O=u.next())_.Yy(O.value,Y.hostElement);Y.pendingPlayerOnResponseReceivedActions=[]}u=_.sH().resolve(_.bv);G||!Y.hasNavigated||_.F("web_disable_scroll_on_navigate_finish")||((G=u.getCurrentPage())?G.is==="ytd-shorts"||Y.tabGesturesIsActive||Y.setPageOffsetForNavigation(G,0):_.R0(Error("zl")));
_.CD(function(){_.CD(function(){_.pQ("pda")})})};
Fq.prototype.onYtNavigate=function(Y){if(!Y.detail.endpoint){var G=new _.I2("Error: Missing yt-navigate endpoint from target:",Y.target,Y.target.nodeName);_.o0(G)}if(G=_.F("cold_missing_history"))G=ph(),G.init(!1),G=!(G.browserHistory.boundHistoryReplaceState&&G.browserHistory.boundHistoryPushState);if(G){_.ZE("DISABLE_WARM_LOADS",!0);G=new _.I2("Failed to initialize history manager",this.getDebugString());var u=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
u?_.R0(G):_.o0(G)}G=Y.detail.endpoint;var O,Q;_.F("debug_forward_web_query_parameters")&&((O=G.commandMetadata)==null?0:(Q=O.webCommandMetadata)==null?0:Q.url)&&(G=JSON.parse(JSON.stringify(G)),G.commandMetadata.webCommandMetadata.url=_.$ut(G.commandMetadata.webCommandMetadata.url,window.location.search));Y={type:0,command:G,form:{params:Y.detail.params,tempData:Y.detail.tempData||{},requestType:Y.detail.type,createScreenConfig:Y.detail.createScreenConfig,reload:Y.detail.reload?Y.detail.reload:!1,
requestForm:Y.detail}};_.F("kevlar_yt_navigate_command_handler")?(O=_.sH().resolve(_.rH),Y.form.skipDefaultElement=!0,O.resolveCommand(G,{form:Y.form})):this.handleNavigate(Y)};
Fq.prototype.handleNavigate=function(Y){this.hasSetScrollTopForNavigation=!1;var G=_.sH().resolve(_.YY),u=Y.form||{};G.navigate(Y.command,u.reload,u.params,u.tempData,u.requestType,u.createScreenConfig,u.ignoreConfirmation,u.requestForm)&&L6j(this,Y.command,u.tempData)};
Fq.prototype.onYtPageDataFetched=function(Y,G){try{_.KCV().reset();this.data=G.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.sH().resolve(_.bv).updatePageData(this.data);var u=this.get("playerResponse.onResponseReceivedActions",this.data);u&&(u=I$w(this,u));u&&_.UK(this.hostElement,u,this.hostElement);var O=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),Q=this.get("response.responseContext.consistencyTokenJar",this.data);if(O||Q){var M=_.M44(),t=(0,_.gX.getValues)(M.tokenJars);O&&M.replace(t,O);Q&&M.replace(t,Q)}}catch(K){_.o0(K)}};
var L6j=function(Y,G,u){try{Y.onYtEndpointChangeHandler(G,u)}catch(O){_.o0(O)}};
_.H=Fq.prototype;_.H.onYtEndpointChangeHandler=function(){};
_.H.setPageTitle=function(Y){Y=(this.pageTitle=Y)?Y+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+Y};
_.H.onYtUpdateTitle=function(Y,G){this.setPageTitle(G)};
_.H.setUnseenNotificationCount=function(Y){this.unseenNotificationCount=Y;this.setPageTitle(this.pageTitle)};
_.H.handleUpdateNotificationsUnseenCountAction=function(Y){_.z(Y,z7S)&&((Y=_.z(Y,z7S).unseenCount)?this.setUnseenNotificationCount(Y):this.setUnseenNotificationCount(0))};
_.H.handleClearCookieAction=function(Y){var G;(Y=(G=_.z(Y,PLb))==null?void 0:G.cookieName)&&_.LZg(Y)};
_.H.onYtUpdateUnseenNotificationCount=function(Y,G){this.setUnseenNotificationCount(G)};
_.H.loadData=function(Y){var G=this;this.loadDepsPromise.then(function(){var u=_.sH().resolve(_.q3(_.YY));u||_.o0(Error("Al"));if(Y&&Y.response){if(!Y.endpoint){var O=_.$x(window.document.location.href)||"/",Q="";if(O==="/"||O.startsWith("/?"))Q="WEB_PAGE_TYPE_BROWSE";Y.endpoint={commandMetadata:{webCommandMetadata:{url:O,webPageType:Q,rootVe:3854}}}}_.WWR(u,Y.endpoint,Y,5,{})}else Y.endpoint?u.navigate(Y.endpoint):u.navigate(_.Hq);_.AN.cancelJob(G.zwiebackInitJobId);G.zwiebackInitJobId=_.AN.addLowPriorityJob(M0N)})};
var ph=function(){return _.sH().resolve(_.Q7)};
Fq.prototype.getDebugString=function(){return ph().getDebugString()};
Fq.prototype.getThirdPartyManipulationSuspected=function(){return ph().getThirdPartyManipulationSuspected()};
Fq.prototype.replaceState=function(Y,G,u){ph().saveAndReplace(Y,G,u)};
Fq.prototype.saveAndPush=function(Y,G,u,O){ph().saveAndPush(Y,G,u,O)};
var T2b=function(Y){return _.z(Y.endpoint,_.ic)||_.z(Y.endpoint,_.Qa)?!0:!Y||isNaN(Y.expirationTime)?!1:(0,_.GC)()>Y.expirationTime},g0g=function(Y,G,u){var O=Y.get("response.trackingParams",u),Q=_.nX(),M=_.FA();
if(O&&Q&&M&&(O=Y.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",u),!O&&u.rootVe&&(O=u.rootVe),Q=G?"forwardButton":"backButton",G=Y.get("playerResponse.topbar.desktopTopbarRenderer."+Q+".buttonRenderer.command.clickTrackingParams",Y.data),Y=Y.get("response.topbar.desktopTopbarRenderer."+Q+".buttonRenderer.command.clickTrackingParams",Y.data),G=(Y=G||Y)?_.Kd(Y):void 0,Y=_.M4(),Q=[_.v$(u)],_.UL(Y,O,G,{dataPromises:Q,csnToClone:u.csn}),u.graftedVes))for(u=
_.E(u.graftedVes),O=u.next();!O.done;O=u.next())_.lq(Y,O.value)};
Fq.prototype.onStoreGraftedVeAction=function(Y){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(Y)):_.R0(Error("Bl"))};
var I$w=function(Y,G){return G.filter(function(u){for(var O in u)if(tnb[O])return Y.pendingPlayerOnResponseReceivedActions.push(u),!0;return!1})};
_.Uk.Object.defineProperties(Fq.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Fq.prototype.onStoreGraftedVeAction=Fq.prototype.onStoreGraftedVeAction;Fq.prototype.loadData=Fq.prototype.loadData;Fq.prototype.onYtUpdateUnseenNotificationCount=Fq.prototype.onYtUpdateUnseenNotificationCount;Fq.prototype.handleClearCookieAction=Fq.prototype.handleClearCookieAction;Fq.prototype.handleUpdateNotificationsUnseenCountAction=Fq.prototype.handleUpdateNotificationsUnseenCountAction;Fq.prototype.setUnseenNotificationCount=Fq.prototype.setUnseenNotificationCount;
Fq.prototype.onYtUpdateTitle=Fq.prototype.onYtUpdateTitle;Fq.prototype.setPageTitle=Fq.prototype.setPageTitle;Fq.prototype.onYtEndpointChangeHandler=Fq.prototype.onYtEndpointChangeHandler;Fq.prototype.onYtPageDataFetched=Fq.prototype.onYtPageDataFetched;Fq.prototype.handleNavigate=Fq.prototype.handleNavigate;Fq.prototype.onYtNavigate=Fq.prototype.onYtNavigate;Fq.prototype.onYtNavigateFinish=Fq.prototype.onYtNavigateFinish;Fq.prototype.onYtNavigateCache=Fq.prototype.onYtNavigateCache;
Fq.prototype.onYtNavigateError=Fq.prototype.onYtNavigateError;Fq.prototype.onYtNavigateStart=Fq.prototype.onYtNavigateStart;Fq.prototype.cancelPendingTasks=Fq.prototype.cancelPendingTasks;Fq.prototype.initHistoryManager=Fq.prototype.initHistoryManager;Fq.prototype.onYtHistoryLoad=Fq.prototype.onYtHistoryLoad;Fq.prototype.onYtHistoryPop=Fq.prototype.onYtHistoryPop;Fq.prototype.onYtNavigateSetPageOffset=Fq.prototype.onYtNavigateSetPageOffset;Fq.prototype.setPageOffset=Fq.prototype.setPageOffset;
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Fq.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Fq.prototype,"data",void 0);_.S([_.Yo("yt-navigate-set-page-offset"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Fq.prototype,"onYtNavigateSetPageOffset",null);
_.S([_.Yo("yt-history-pop"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Fq.prototype,"onYtHistoryPop",null);_.S([_.Yo("yt-history-load"),_.V("design:type",Function),_.V("design:paramtypes",[Event,_.biR]),_.V("design:returntype")],Fq.prototype,"onYtHistoryLoad",null);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Fq.prototype,"onYtNavigate",null);
_.S([_.Yo("yt-update-title"),_.V("design:type",Function),_.V("design:paramtypes",[Event,String]),_.V("design:returntype")],Fq.prototype,"onYtUpdateTitle",null);_.S([_.Yo("yt-update-unseen-notification-count"),_.V("design:type",Function),_.V("design:paramtypes",[Event,Number]),_.V("design:returntype")],Fq.prototype,"onYtUpdateUnseenNotificationCount",null);_.S([_.Hn()],Fq);H6x.YtdAppBehavior=[_.vZ.YtActionHandlerBehavior,Fq.prototype];var zt=function(){var Y=_.Mb.apply(this,arguments)||this;Y._noAccessors=!0;Y.scrollRate=3;Y.autoScrollAnimationStart=0;Y.autoScrollPaused=!1;Y.autoScrollRafId=0;return Y};
_.m(zt,_.Mb);_.H=zt.prototype;_.H.created=function(){var Y=this;this.boundAutoScrollHandler=function(G){Y.autoScroll(G)}};
_.H.detached=function(){this.hostElement.removeEventListener("mouseout",_.Jh(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Jh(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Jh(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.H.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Jh(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Jh(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Jh(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Jh(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Jh(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Jh(this,this.endAutoScroll)),this.endAutoScroll())};
_.H.autoScroll=function(Y){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=Y);var G;if(G=!this.autoScrollPaused&&this.scrollTarget)G=this.scrollTarget,G=G.scrollHeight-G.scrollTop!==G.clientHeight;G&&(G=1E3/this.scrollRate,Y-=this.autoScrollAnimationStart,Y>G&&(this.scrollTarget.scrollTop+=Math.ceil(Y/G),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)};
zt.prototype.autoScrollEnabledChanged=zt.prototype.autoScrollEnabledChanged;_.S([_.R(),_.V("design:type",Object)],zt.prototype,"scrollRate",void 0);_.S([_.R(),_.V("design:type",Object)],zt.prototype,"scrollTarget",void 0);_.S([_.R(),_.V("design:type",Boolean)],zt.prototype,"autoScrollEnabled",void 0);_.S([_.GO("autoScrollEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zt.prototype,"autoScrollEnabledChanged",null);_.S([_.Hn()],zt);var kqj=[zt.prototype];var mW=function(){var Y=_.Mb.apply(this,arguments)||this;Y._noAccessors=!0;return Y};
_.m(mW,_.Mb);mW.prototype.ready=function(){var Y=this;_.l0(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){Y.onChange_()})};
mW.prototype.dataChanged_=function(){_.l0(this.hostElement).querySelector("#checkbox").checked=!1};
mW.prototype.onChange_=function(){var Y=_.l0(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.$s(this.hostElement,"yt-dismissal-reason-"+Y,this.data.feedbackToken)};
mW.prototype.dataChanged_=mW.prototype.dataChanged_;_.S([_.R(),_.V("design:type",Object)],mW.prototype,"data",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mW.prototype,"dataChanged_",null);_.S([_.Hn()],mW);var n0N=[mW.prototype];var WV=function(){var Y=_.Mb.apply(this,arguments)||this;Y.showInput=!1;return Y};
_.m(WV,_.Mb);_.H=WV.prototype;_.H.detached=function(){this.showInput&&window.removeEventListener("click",_.Jh(this,this.closeOnOutsideClick_))};
_.H.stopPropagation_=function(Y){this.showInput&&Y.stopPropagation()};
_.H.closeOnOutsideClick_=function(Y){this.closeOnOutsideClickCondition(Y)&&(this.showInput=!1,window.removeEventListener("click",_.Jh(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.H.closeOnOutsideClickCondition=function(){return!0};
_.H.closeOnOutsideClickHandler=function(){};
_.H.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Jh(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.H.openOnClickHandler=function(){};
_.H.showInputChanged=function(){};
_.H.setShowInput=function(Y){this.showInput=Y};
WV.prototype.setShowInput=WV.prototype.setShowInput;WV.prototype.showInputChanged=WV.prototype.showInputChanged;WV.prototype.openOnClickHandler=WV.prototype.openOnClickHandler;WV.prototype.openOnClick_=WV.prototype.openOnClick_;WV.prototype.closeOnOutsideClickHandler=WV.prototype.closeOnOutsideClickHandler;WV.prototype.closeOnOutsideClickCondition=WV.prototype.closeOnOutsideClickCondition;WV.prototype.closeOnOutsideClick_=WV.prototype.closeOnOutsideClick_;WV.prototype.stopPropagation_=WV.prototype.stopPropagation_;
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],WV.prototype,"showInput",void 0);_.S([_.Yo("click"),_.Yo("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],WV.prototype,"stopPropagation_",null);_.S([_.GO("showInput"),_.V("design:type",Function),_.V("design:paramtypes",[Boolean]),_.V("design:returntype")],WV.prototype,"showInputChanged",null);_.S([_.Hn()],WV);var F6g=[WV.prototype];var rh=function(){var Y=_.Mb.apply(this,arguments)||this;Y.timeoutJobId=0;Y.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return Y};
_.m(rh,_.Mb);rh.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
rh.prototype.startTimeout=function(){var Y=this,G=this.data&&this.data.displayDurationSeconds;G&&!this.timeoutJobId&&(this.timeoutJobId=_.WY(_.AN,function(){_.qZ(Y.hostElement,"yt-close-popup-action",[Y.is]);Y.timeoutJobId=0},G*1E3))};
rh.prototype.cancelTimeout=function(){_.AN.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
rh.prototype.ytdHatsSurveyBehaviorDataChanged=rh.prototype.ytdHatsSurveyBehaviorDataChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],rh.prototype,"ytActionHandlerBehavior",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rh.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.S([_.Hn()],rh);var pgo=[_.vZ.YtActionHandlerBehavior,rh.prototype];var zpB=_.VZ(115994),mng=_.VZ(115993),W6x=function(Y,G,u){var O=this;var Q=u.dragDownAction;this.layer=0;this.JSC$20459_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return O.dragDownAction()}}}};
this.JSC$20459_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return O.dragDownAction()}}}};
this.fullscreen=!1;var M=_.M4();_.vJ(M,zpB,this.layer);_.vJ(M,mng,this.layer);this.dragDownAction=function(){Q();_.er(M,{visualElement:O.fullscreen?zpB:mng})};
this.gesture=new Nx(Y,G,this.getConfig(!1),"pandown");this.attach()};
W6x.prototype.attach=function(){this.gesture.attach()};
W6x.prototype.detach=function(){this.gesture.detach()};
W6x.prototype.update=function(Y){this.fullscreen=Y;var G=this.gesture;Y=this.getConfig(Y);G.config=Y};
W6x.prototype.getConfig=function(Y){return Y?this.JSC$20459_watchFullScreenConfig:this.JSC$20459_watchConfig};var r5N;var xn9;var xv=function(){var Y=_.Z.apply(this,arguments)||this;Y.systemIcons=_.F("kevlar_system_icons");Y.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return Y};
_.m(xv,_.Z);xv.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var Y=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(Y=this.data.percentIfLiked||0,this.activated=!0):(Y=this.data.percentIfIndifferent||0,this.activated=!1);_.l0(this.hostElement).querySelector("#like-bar").style.width=Y+"%"}};
xv.prototype.handleUpdateSentimentBarStateCommand=function(Y){this.data&&this.set("data.likeStatus",_.z(Y,wdN).likeStatus)};
xv.prototype.observeLikeStatus=xv.prototype.observeLikeStatus;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],xv.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],xv.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],xv.prototype,"activated",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xv.prototype,"systemIcons",void 0);_.S([_.GO("data.likeStatus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xv.prototype,"observeLikeStatus",null);_.S([_.pD({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],xv);
_.d(xv,"ytd-sentiment-bar-renderer",function(){if(xn9!==void 0)return xn9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return xn9=Y},{mode:1});var f$b;var fh=function(){var Y=_.Z.apply(this,arguments)||this;Y.small=!0;return Y};
_.m(fh,_.Z);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],fh.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],fh.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],fh.prototype,"small",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],fh);
_.d(fh,"ytd-video-view-count-renderer",function(){if(f$b!==void 0)return f$b;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return f$b=Y},{mode:2});var Ch=function(){var Y=_.Z.apply(this,arguments)||this;Y.infoFormattedStrings=[];Y.wrapVideoActions=_.F("kevar_watch_wrap_video_actions");Y.hideSentimentBar=_.F("kevlar_watch_hide_sentiment_bar");Y.actionMap={};return Y};
_.m(Ch,_.Z);_.H=Ch.prototype;_.H.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.F("web_modern_buttons"),forceIconButton:!_.F("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.H.dataChanged=function(){_.F("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.H.computeInfoFormattedStrings=function(Y){if(!Y)return[];var G=[];Y.dateText&&G.push(Y.dateText);Y.stationName&&G.push(Y.stationName);Y.rating&&G.push(Y.rating);Y.startEndTimeTemplate&&Y.startTimeUtcMillis&&Y.endTimeUtcMillis&&G.push(_.i8(eUS(_.Ri(Y.startEndTimeTemplate),Number(Y.startTimeUtcMillis),Number(Y.endTimeUtcMillis))));Y.upNextProgramText&&G.push(Y.upNextProgramText);return G};
_.H.scheduleInitialUpdatedMetadataRequest=function(){var Y,G=(Y=this.data)==null?void 0:Y.updatedMetadataEndpoint;if(G){var u;Y=Number((u=_.z(G,_.fm_))==null?void 0:u.initialDelayMs);u=isNaN(Y)?250:Y;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),u)}};
_.H.setSentimentBarWidth=function(){var Y=this;_.sk(this,function(){var G=_.l0(Y.hostElement).querySelector("ytd-menu-renderer");if(G){G=G.topLevelButtons;for(var u=0,O=0;O<G.length;O++){var Q=G[O],M=Y.get("toggleButtonSupportedData.toggleButtonIdData.id",Q.data);if(M==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||M==="TOGGLE_BUTTON_ID_TYPE_LIKE")u+=Q.clientWidth+8;else break}u&&(Y.sentiment.style.width=u-8+" px")}})};
_.H.fetchUpdatedMetadata=function(Y){var G;Y&&(G={continuation:Y});var u;(Y=(u=this.data)==null?void 0:u.updatedMetadataEndpoint)&&_.sH().resolve(_.rH).resolveCommand(Y,{form:Object.assign({},G,{element:this.hostElement})})};
_.H.onYtServiceRequestSent=function(Y,G){G.endpoint&&_.z(G.endpoint,_.XV)&&(this.hasUpdateSentimentBarStateCommands()&&!_.F("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.z(G.endpoint,_.XV).status),this.setSentimentBarWidth())};
_.H.hasUpdateSentimentBarStateCommands=function(){var Y,G,u,O,Q=(O=(Y=this.data)==null?void 0:(G=Y.videoActions)==null?void 0:(u=G.menuRenderer)==null?void 0:u.topLevelButtons)!=null?O:[];Y=_.E(Q);for(G=Y.next();!G.done;G=Y.next()){G=G.value;Q=O=u=void 0;var M=(u=G.toggleButtonRenderer)==null?void 0:(O=u.toggleButtonSupportedData)==null?void 0:(Q=O.toggleButtonIdData)==null?void 0:Q.id;if(M==="TOGGLE_BUTTON_ID_TYPE_LIKE"||M==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){O=u=void 0;G=(O=_.z((u=G.toggleButtonRenderer)==
null?void 0:u.defaultServiceEndpoint,_.Jv))==null?void 0:O.commands;if(!G)break;G=_.E(G);for(u=G.next();!u.done;u=G.next())if(_.z(u.value,wdN))return!0}}return!1};
_.H.onYtServiceRequestCompleted=function(Y,G){var u;(Y=(u=G.data)==null?void 0:u.loggingDirectives)&&_.Rvu(_.M4(),Y);this.get("continuation.timedContinuationData",G.data)&&this.data&&this.data.updatedMetadataEndpoint&&(G=G.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,G.continuation),G.timeoutMs))};
_.H.computeHasDateText=function(Y){return!!Y&&!!Y.dateText};
_.Uk.Object.defineProperties(Ch.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O;return!((O=(Y=this.data)==null?void 0:(G=Y.videoActions)==null?void 0:(u=G.menuRenderer)==null?void 0:u.flexibleItems)==null||!O.length)}}});
Ch.prototype.onYtServiceRequestCompleted=Ch.prototype.onYtServiceRequestCompleted;Ch.prototype.onYtServiceRequestSent=Ch.prototype.onYtServiceRequestSent;Ch.prototype.dataChanged=Ch.prototype.dataChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Ch.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ch.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ch.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.ZA.YtTaskEmitterBehavior),_.V("design:type",Object)],Ch.prototype,"ytTaskEmitterBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ch.prototype,"data",void 0);_.S([_.R({computed:"computeInfoFormattedStrings(data)"}),_.V("design:type",Array)],Ch.prototype,"infoFormattedStrings",void 0);
_.S([_.R({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Ch.prototype,"hasDateText",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ch.prototype,"wrapVideoActions",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ch.prototype,"hideSentimentBar",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ch.prototype,"flexMenuEnabled",null);
_.S([_.Ox("#sentiment"),_.V("design:type",Object)],Ch.prototype,"sentiment",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ch.prototype,"dataChanged",null);_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],Ch.prototype,"onYtServiceRequestSent",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],Ch.prototype,"onYtServiceRequestCompleted",null);
_.d(Ch,"ytd-video-primary-info-renderer",function(){if(r5N===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);r5N=Y}Y=r5N;return Y},{mode:1});var Cxj;var y5x;var yT=function(){return _.Z.apply(this,arguments)||this};
_.m(yT,_.Z);yT.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
yT.prototype.onTap=function(Y){var G=this.data&&this.data.endpoint;G&&!_.hf(_.wG(Y),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.$s(this.hostElement,"yt-navigate",{endpoint:G})};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],yT.prototype,"data",void 0);_.S([_.pD({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],yT);
_.d(yT,"ytd-autotagging-metadata-renderer",function(){if(y5x!==void 0)return y5x;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return y5x=Y},{mode:1});var epb;var ea=function(){return _.Z.apply(this,arguments)||this};
_.m(ea,_.Z);ea.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ea.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ea.prototype,"data",void 0);_.S([_.pD({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],ea);
_.d(ea,"ytd-autotagging-metadata-row-renderer",function(){if(epb!==void 0)return epb;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return epb=Y},{mode:1});var A5N;var o0B;var AO=function(){var Y=_.Z.apply(this,arguments)||this;Y.engagementPanelContent=!1;return Y};
_.m(AO,_.Z);AO.prototype.computeHasDividerLine=function(Y,G){return Y&&!G};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],AO.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.V("design:type",Boolean)],AO.prototype,"hasDividerLine",void 0);_.S([_.R(),_.V("design:type",Object)],AO.prototype,"engagementPanelContent",void 0);
_.S([_.pD({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],AO);
_.d(AO,"ytd-metadata-row-header-renderer",function(){if(o0B!==void 0)return o0B;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return o0B=Y},{mode:1});var i6g;var oF=function(){return _.Z.apply(this,arguments)||this};
_.m(oF,_.Z);oF.prototype.computeHasDividerLine=function(Y){return Y};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],oF.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.V("design:type",Boolean)],oF.prototype,"hasDividerLine",void 0);_.S([_.pD({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],oF);
_.d(oF,"ytd-metadata-row-renderer",function(){if(i6g!==void 0)return i6g;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return i6g=Y},{mode:1});var RpS;var wgj=function(){return _.Z.apply(this,arguments)||this};
_.m(wgj,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],wgj.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],wgj.prototype,"data",void 0);_.S([_.pD({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],wgj);
_.d(wgj,"ytd-metadata-with-image-row-renderer",function(){if(RpS!==void 0)return RpS;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return RpS=Y},{mode:1});var Z69;var ie=function(){var Y=_.Z.apply(this,arguments)||this;Y.rounded=!0;Y.fixie=!1;Y.fullWidth=!1;return Y};
_.m(ie,_.Z);_.H=ie.prototype;_.H.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H.onDataChanged=function(){var Y=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(G){Y.onEndpointLinkKeyPress(G)}))};
_.H.onEndpointLinkKeyPress=function(Y){Y.target===this.endpointLink&&Y.keyCode===13&&_.$s(this.hostElement,"click")};
_.H.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var Y;if((Y=this.data)==null?0:Y.endpoint)_.UK(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.H.onYtNavigate=function(Y){this.endpointHref||(Y.stopPropagation(),Y.preventDefault())};
_.H.onInformationButtonContainerClick=function(Y){Y.target.id!=="information-button-container"&&(Y.stopPropagation(),Y.preventDefault())};
_.H.computeStyle=function(Y){return Y};
_.H.computeIsThumbnailStyle=function(Y){return Y==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.H.computeThumbnailWidth=function(Y){switch(Y){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(Y){switch(Y){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Uk.Object.defineProperties(ie.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
ie.prototype.onYtNavigate=ie.prototype.onYtNavigate;ie.prototype.onClick=ie.prototype.onClick;ie.prototype.onDataChanged=ie.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ie.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ie.prototype,"componentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ie.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],ie.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],ie.prototype,"componentStyle",void 0);_.S([_.R({computed:"computeIsThumbnailStyle(data.style)"}),_.V("design:type",Boolean)],ie.prototype,"isThumbnailStyle",void 0);_.S([_.R({computed:"computeThumbnailObjectFit(data.style)"}),_.V("design:type",String)],ie.prototype,"thumbnailObjectFit",void 0);
_.S([_.R({computed:"computeThumbnailWidth(data.style)"}),_.V("design:type",Number)],ie.prototype,"thumbnailWidth",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ie.prototype,"rounded",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ie.prototype,"fixie",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ie.prototype,"fullWidth",void 0);_.S([_.Ox("#endpoint-link"),_.V("design:type",HTMLAnchorElement)],ie.prototype,"endpointLink",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ie.prototype,"onDataChanged",null);_.S([_.f("data.endpoint"),_.V("design:type",Object),_.V("design:paramtypes",[])],ie.prototype,"endpointHref",null);_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],ie.prototype,"onClick",null);
_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ie.prototype,"onYtNavigate",null);_.S([_.pD({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],ie);
_.d(ie,"ytd-rich-metadata-renderer",function(){if(Z69!==void 0)return Z69;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Z69=Y},{mode:2});var Dnj;var RF=function(){var Y=_.Z.apply(this,arguments)||this;Y.fixie=!1;Y.fullWidth=!1;return Y};
_.m(RF,_.Z);RF.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
RF.prototype.computeHasDividerLine=function(Y){return Y};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],RF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],RF.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.V("design:type",Boolean)],RF.prototype,"hasDividerLine",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],RF.prototype,"fixie",void 0);_.S([_.R(),_.V("design:type",Object)],RF.prototype,"fullWidth",void 0);
_.S([_.pD({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],RF);
_.d(RF,"ytd-rich-metadata-row-renderer",function(){if(Dnj!==void 0)return Dnj;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Dnj=Y},{mode:1});var wh=function(){var Y=_.Z.apply(this,arguments)||this;Y.engagementPanelContent=!1;Y.fixie=!1;Y.fullWidth=!1;return Y};
_.m(wh,_.Z);
wh.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"}}}};
wh.prototype.computeCollapsibleItems=function(Y,G,u){return Y===void 0||G===void 0||u===void 0||u?[]:Y.slice(G)};
wh.prototype.computeAlwaysShownItems=function(Y,G){return Y&&Y.length?Y.slice(0,G):[]};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],wh.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],wh.prototype,"collapsed",void 0);
_.S([_.R({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.V("design:type",Array)],wh.prototype,"alwaysShownItems",void 0);_.S([_.R({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.V("design:type",Array)],wh.prototype,"collapsibleItems",void 0);_.S([_.R(),_.V("design:type",Object)],wh.prototype,"engagementPanelContent",void 0);_.S([_.R(),_.V("design:type",Object)],wh.prototype,"fixie",void 0);
_.S([_.R(),_.V("design:type",Object)],wh.prototype,"fullWidth",void 0);_.S([_.pD({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],wh);
_.d(wh,"ytd-metadata-row-container-renderer",function(){if(A5N!==void 0)return A5N;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return A5N=Y},{mode:1});var hpy;var ZQ=function(){return _.Z.apply(this,arguments)||this};
_.m(ZQ,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ZQ.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ZQ.prototype,"data",void 0);_.S([_.pD({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],ZQ);
_.d(ZQ,"ytd-error-corrections-section-item-renderer",function(){if(hpy!==void 0)return hpy;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return hpy=Y},{mode:1});var dny;var DQ=function(){return _.Z.apply(this,arguments)||this};
_.m(DQ,_.Z);DQ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],DQ.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],DQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],DQ.prototype,"data",void 0);_.S([_.pD({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],DQ);
_.d(DQ,"ytd-error-corrections-section-renderer",function(){if(dny!==void 0)return dny;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return dny=Y},{mode:1});var b6b;var hO=function(){return _.Z.apply(this,arguments)||this};
_.m(hO,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],hO.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],hO.prototype,"data",void 0);_.S([_.pD({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],hO);
_.d(hO,"ytd-topic-link-renderer",function(){if(b6b!==void 0)return b6b;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return b6b=Y},{mode:1});var SgV;var dh=function(){var Y=_.Z.apply(this,arguments)||this;Y.modernLockupV2=_.F("modernize_structured_description_playlist_lockups_v2");return Y};
_.m(dh,_.Z);dh.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"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],dh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],dh.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],dh.prototype,"modernLockupV2",void 0);_.S([_.pD({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],dh);
_.d(dh,"ytd-video-description-course-section-renderer",function(){if(SgV!==void 0)return SgV;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return SgV=Y},{mode:1});var N2y;var be=function(){return _.Z.apply(this,arguments)||this};
_.m(be,_.Z);be.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"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],be.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],be.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],be.prototype,"data",void 0);_.S([_.pD({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],be);
_.d(be,"ytd-video-description-files-section-renderer",function(){if(N2y!==void 0)return N2y;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return N2y=Y},{mode:1});var jpB;var Sa=function(){return _.Z.apply(this,arguments)||this};
_.m(Sa,_.Z);Sa.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"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Sa.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Sa.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Sa.prototype,"data",void 0);_.S([_.pD({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Sa);
_.d(Sa,"ytd-video-description-gaming-section-renderer",function(){if(jpB!==void 0)return jpB;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return jpB=Y},{mode:1});var Vn9;var NY=function(){var Y=_.Z.apply(this,arguments)||this;Y.isExpanded=!1;return Y};
_.m(NY,_.Z);NY.prototype.computeHasDefaultMetadataEndpoint=function(Y){var G;Y=Y==null?void 0:(G=Y.defaultMetadata)==null?void 0:G.runs;return!(!Y||Y.length!==1||!Y[0].navigationEndpoint)};
NY.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Uk.Object.defineProperties(NY.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],NY.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],NY.prototype,"isExpanded",void 0);_.S([_.R({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],NY.prototype,"hasDefaultMetadataEndpoint",void 0);
_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],NY.prototype,"isExpandable",null);_.S([_.f("data","isExpandable","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],NY.prototype,"showExpandedMetadata",null);_.S([_.pD({is:"ytd-info-row-renderer",disableElementRegistration:!0})],NY);
_.d(NY,"ytd-info-row-renderer",function(){if(Vn9!==void 0)return Vn9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Vn9=Y},{mode:1});var l$S;var ja=function(){var Y=_.Z.apply(this,arguments)||this;Y.currentIndex=0;Y.supportComponentResize=!0;Y.JSC$20516_lastScrollContainerWidth=NaN;return Y};
_.m(ja,_.Z);_.H=ja.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 Y;this.JSC$20516_scrollContainer!==void 0&&(Y=this.videoLockups)!=null&&Y.length&&(Y=this.JSC$20516_scrollContainer.clientWidth,Y!==this.JSC$20516_lastScrollContainerWidth&&(this.JSC$20516_lastScrollContainerWidth=Y,_.cm(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(Y*.8,415)+"px"}),_.$s(this.hostElement,"iron-resize")))};
_.Uk.Object.defineProperties(ja.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var Y=[],G;if((G=this.data)==null||!G.carouselLockups)return Y;G=_.E(this.data.carouselLockups);for(var u=G.next();!u.done;u=G.next()){u=u.value;var O=void 0;((O=_.z(u,vib))==null?0:O.videoLockup)&&Y.push(_.z(u,vib).videoLockup)}return Y}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.videoLockups)==null||!Y.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var Y=[],G;if((G=this.data)==null||!G.carouselLockups)return Y;var u;return(u=_.z(this.data.carouselLockups[this.scrollCount],vib))==null?void 0:u.infoRows}}});
ja.prototype.dataChanged=ja.prototype.dataChanged;ja.prototype.onIronResize=ja.prototype.onIronResize;ja.prototype.hiddenChanged=ja.prototype.hiddenChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ja.prototype,"componentBehavior",void 0);_.S([_.x(_.V8.YtdHorizontalListBehavior),_.V("design:type",Object)],ja.prototype,"ytdHorizontalListBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ja.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ja.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],ja.prototype,"inlineStructuredDescription",void 0);_.S([_.R({value:2}),_.V("design:type",Number)],ja.prototype,"initialCount",void 0);_.S([_.R(),_.V("design:type",Object)],ja.prototype,"currentIndex",void 0);
_.S([_.R(),_.V("design:type",Number)],ja.prototype,"scrollCount",void 0);_.S([_.R(),_.V("design:type",Object)],ja.prototype,"supportComponentResize",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],ja.prototype,"contentHidden",void 0);_.S([_.Ox("#scroll-container"),_.V("design:type",HTMLDivElement)],ja.prototype,"JSC$20516_scrollContainer",void 0);
_.S([_.GO("contentHidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ja.prototype,"hiddenChanged",null);_.S([_.f("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],ja.prototype,"videoLockups",null);_.S([_.f("videoLockups"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ja.prototype,"hasVideoLockups",null);
_.S([_.Yo("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ja.prototype,"onIronResize",null);_.S([_.f("data","scrollCount"),_.V("design:type",Object),_.V("design:paramtypes",[])],ja.prototype,"infoRows",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ja.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],ja);
_.d(ja,"ytd-video-description-music-section-renderer",function(){if(l$S!==void 0)return l$S;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return l$S=Y},{mode:2});var B29;var VT=function(){return _.Z.apply(this,arguments)||this};
_.m(VT,_.Z);VT.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],VT.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);_.S([_.R({}),_.V("design:type",Object)],VT.prototype,"data",void 0);_.S([_.pD({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],VT);
_.d(VT,"ytd-video-description-transcript-section-renderer",function(){if(B29!==void 0)return B29;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return B29=Y},{mode:1});var $nx;var qgw;var le=function(){var Y=_.Z.apply(this,arguments)||this;Y.skinnyMode=!1;Y.inStructuredDescription=!1;Y.COMPACT_EVENT_COUNT=4;Y.onShelfToggleButtonTap=function(){Y.logTap(Y.data);Y.showingMore=!Y.showingMore};
Y.onShelfToggleButtonFocus=function(){Y.showingMore||(Y.logTap(Y.data),Y.showingMore=!0,_.sk(Y,function(){var G=Y.COMPACT_EVENT_COUNT-1,u;(u=_.l0(Y.hostElement).querySelector("#event-"+G))==null||u.focus()}))};
return Y};
_.m(le,_.Z);_.H=le.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",_.Jh(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Jh(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Jh(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Jh(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Jh(this.infoTooltip,this.infoTooltip.hide))};
_.H.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Jh(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Jh(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Jh(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Jh(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Jh(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 Y;this.showingMoreChanged((Y=this.showingMore)!=null?Y:!1)};
_.H.showingMoreChanged=function(Y){var G=this.get("data.events")||[];this.set("restEvents",G.slice(1,Y?G.length:this.COMPACT_EVENT_COUNT).map(function(u){return u.ticketEventRenderer}));
G.slice(0,Y?G.length:this.COMPACT_EVENT_COUNT).forEach(function(u){var O=_.FA();u=u.ticketEventRenderer.trackingParams;_.nX()&&O&&u&&(u=_.Kd(u),O&&_.AW(O,u))});
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(Y){return Y.subtitle1+", "+Y.subtitle2};
_.H.logTap=function(Y){_.nX()&&this.ytRendererBehavior.logExplicitClick(Y)};
_.H.isKeyboardAction=function(Y){return this.get("detail.x",Y)===0&&this.get("detail.y",Y)===0};
_.H.onFirstEventTap=function(Y){Y.target&&this.handleTap(Y.target,this.firstEvent,this.isKeyboardAction(Y))};
_.H.onTicketLinkTap=function(Y){Y.target&&this.handleTap(Y.target,Y.model.item,this.isKeyboardAction(Y))};
_.H.handleTap=function(Y,G,u){if(G.buttonCommand)if(G.hasMultipleOffers)Object.assign(_.z(G.buttonCommand,_.tw),{properties:{source:u?"keyboard":"tap"}}),this.logTap(G),this.popupPositionTarget=Y,_.UK(this.hostElement,[G.buttonCommand],this.hostElement);else{var O;if((O=_.z(G.buttonCommand,_.SK))==null?0:O.url)this.logTap(G),_.Kb(window,_.z(G.buttonCommand,_.SK).url)}};
le.prototype.onShowingMoreChanged=le.prototype.onShowingMoreChanged;le.prototype.dataChanged=le.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],le.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],le.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],le.prototype,"firstEvent",void 0);_.S([_.R(),_.V("design:type",Object)],le.prototype,"restEvents",void 0);_.S([_.R(),_.V("design:type",String)],le.prototype,"imageUrl",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],le.prototype,"showingMore",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],le.prototype,"canShowMore",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],le.prototype,"skinnyMode",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],le.prototype,"inStructuredDescription",void 0);_.S([_.R(),_.V("design:type",HTMLElement)],le.prototype,"popupPositionTarget",void 0);
_.S([_.Ox("#banner-info-tooltip"),_.V("design:type",Object)],le.prototype,"infoTooltip",void 0);_.S([_.Ox("#info-container"),_.V("design:type",HTMLElement)],le.prototype,"infoContainer",void 0);_.S([_.Ox("#shelf-toggler"),_.V("design:type",HTMLElement)],le.prototype,"shelfToggleButton",void 0);_.S([_.Ox("#separator"),_.V("design:type",HTMLDivElement)],le.prototype,"separator",void 0);_.S([_.R(),_.V("design:type",String)],le.prototype,"shelfTogglerLabelText",void 0);
_.S([_.R(),_.V("design:type",String)],le.prototype,"shelfTogglerIcon",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],le.prototype,"dataChanged",null);_.S([_.Ex("showingMore"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],le.prototype,"onShowingMoreChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],le);
_.d(le,"ytd-ticket-shelf-renderer",function(){if(qgw!==void 0)return qgw;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return qgw=Y},{mode:1});_.hR(_.D(function(Y){var G=_.Oe(_.jFA,function(){return Y.data().firstProviderLinkStatusEntityKey}),u=_.Oe(_.jFA,function(){return Y.data().secondProviderLinkStatusEntityKey}),O=function(){var Q,M;
return((Q=G())==null?void 0:Q.linked)||((M=u())==null?void 0:M.linked)};
return _.T("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.T(_.eO,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return Y.data().sectionTitle}}),_.T(_.eO,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return O()?Y.data().connectedMessage:Y.data().notConnectedMessage}}),_.T(_.X,{cond:O,
then:function(){return _.T(_.HE,{data:function(){return Y.data().connectedButton}},{buttonViewModel:function(Q){return _.T(_.$Y,{data:Q.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.T(_.X,{cond:function(){return!O()},
then:function(){return _.T(_.HE,{data:function(){return Y.data().notConnectedButton}},{buttonViewModel:function(Q){return _.T(_.$Y,{data:Q.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Th"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=Y.data;return _.T("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.T("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.T(_.eO,{text:function(){return G().sectionTitle}})),_.T("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.T(_.eO,{text:function(){return G().bodyHeader}})),_.T("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.T(_.eO,{text:function(){return G().bodyText}})),_.T(_.X,{cond:function(){return G().attributionText},
then:function(){return _.T("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.T(_.eO,{text:function(){return G().attributionText}}))}}))},"Uh"),"how-this-was-made-section-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){return _.T("yt-video-description-youchat-section-view-model",{class:_.s3("ytVideoDescriptionYouchatSectionViewModelHost")},_.T("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.T(_.eO,{text:function(){return Y.data().sectionTitle}})),_.T("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.T(_.eO,{text:function(){return Y.data().subHeaderText}})),_.T("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.T(_.$Y,{data:function(){return _.z(Y.data().primaryButton,
_.Ck)}})))},"Vh"),"yt-video-description-youchat-section-view-model",{props:{data:_.AC}});var BV=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return Y};
_.m(BV,_.Z);_.H=BV.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}}}},ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",params:{inStructuredDescription:!0},properties:{skinnyMode:"[[engagementPanel]]"}}}}}};
_.H.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.H.dataChanged=function(){var Y,G;this.hasDescriptionOnly=!(((Y=this.data)==null?void 0:(G=Y.items)==null?void 0:G.length)!==1||!_.z(this.data.items[0],ni))};
_.H.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.H.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.H.autoFocusDescription=function(){var Y;((Y=_.sH().resolve(_.q3(_.SO)))==null?0:Y.isKeyBoardInUse())&&this.description&&_.qC(this.description)};
_.H.resize=function(){if(_.F("kevlar_disable_sd_resize"))this.JSC$20529_cardList&&_.$s(this.JSC$20529_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.$s(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.$s(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.H.scrollToSection=function(Y){if(Y=this.getSectionElement(Y))_.qZ(this.hostElement,"yt-scroll-to-watch-element",[Y]),Y.focus()};
_.H.getSectionElement=function(Y){switch(Y){case "infocards-item-section":var G;return(G=this.infocardsSection)!=null?G:null;case "transcript-item-section":var u;return(u=this.transcriptSection)!=null?u:null;case "how-this-was-made-section-item-section":var O;return(O=this.howThisWasMadeSection)!=null?O:null;case "files-item-section":var Q;return(Q=this.filesSection)!=null?Q:null;default:return null}};
_.H.handleSetActiveItemAction=function(Y){var G=_.z(Y,xhx),u=G&&(G==null?void 0:G.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20529_cardList;if(G&&u){Y=this.currentActiveChapter;var O=this.currentActiveProblem;G=u==null?void 0:u.getItemByIndex(G.itemIndex);var Q=u=!0;G&&(G.active=!0,G.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(u=Y!==G,Q=!1,this.currentActiveChapter=G):(G==null?void 0:G.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(u=!1,Q=O!==G,this.currentActiveProblem=G));Y&&u&&(Y.active=!1);O&&Q&&(O.active=!1)}};
_.Uk.Object.defineProperties(BV.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.TP("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
BV.prototype.onYtExpanderMoreTapped=BV.prototype.onYtExpanderMoreTapped;BV.prototype.onHiddenChanged=BV.prototype.onHiddenChanged;BV.prototype.dataChanged=BV.prototype.dataChanged;BV.prototype.panelContentVisibleChanged=BV.prototype.panelContentVisibleChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],BV.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],BV.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.aZ),_.V("design:type",Object)],BV.prototype,"ironResizableBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],BV.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],BV.prototype,"panelContentVisible",void 0);_.S([_.R(),_.V("design:type",Boolean)],BV.prototype,"hasDescriptionOnly",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],BV.prototype,"inlineStructuredDescription",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],BV.prototype,"hidden",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],BV.prototype,"shortsPanel",void 0);_.S([_.R(),_.V("design:type",Object)],BV.prototype,"videoSummary",void 0);_.S([_.R(),_.V("design:type",Object)],BV.prototype,"merchShelf",void 0);
_.S([_.R(),_.V("design:type",Object)],BV.prototype,"ticketShelf",void 0);_.S([_.f("videoSummary"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],BV.prototype,"showVideoSummary",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],BV.prototype,"engagementPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],BV.prototype,"watchWhileSdp",void 0);
_.S([_.Ox("ytd-expandable-video-description-body-renderer"),_.V("design:type",Object)],BV.prototype,"description",void 0);_.S([_.Ox("ytd-horizontal-card-list-renderer"),_.V("design:type",Object)],BV.prototype,"JSC$20529_cardList",void 0);_.S([_.Ox("ytd-horizontal-card-list-renderer[center-items]"),_.V("design:type",Object)],BV.prototype,"problemWalkthroughCardList",void 0);_.S([_.Ox("ytd-shelf-renderer"),_.V("design:type",Object)],BV.prototype,"shelfSection",void 0);
_.S([_.Ox("ytd-video-description-music-section-renderer"),_.V("design:type",Object)],BV.prototype,"musicMetadataSection",void 0);_.S([_.Ox("ytd-video-description-infocards-section-renderer"),_.V("design:type",Object)],BV.prototype,"infocardsSection",void 0);_.S([_.Ox("ytd-video-description-transcript-section-renderer"),_.V("design:type",Object)],BV.prototype,"transcriptSection",void 0);
_.S([_.Ox("how-this-was-made-section-view-model"),_.V("design:type",Object)],BV.prototype,"howThisWasMadeSection",void 0);_.S([_.Ox("ytd-video-description-files-section-renderer"),_.V("design:type",Object)],BV.prototype,"filesSection",void 0);_.S([_.GO("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BV.prototype,"panelContentVisibleChanged",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BV.prototype,"dataChanged",null);_.S([_.GO("hidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BV.prototype,"onHiddenChanged",null);_.S([_.Yo("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BV.prototype,"onYtExpanderMoreTapped",null);
_.S([_.pD({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],BV);
_.d(BV,"ytd-structured-description-content-renderer",function(){if($nx!==void 0)return $nx;var Y=document.createElement("template");_.r(Y,'\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="ticket-shelf" hidden="[[!ticketShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return $nx=Y},{mode:2});var $v=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return Y};
_.m($v,_.Z);_.H=$v.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 Y;this.descriptionToggled=!((Y=this.data)==null||!Y.defaultExpanded);var G;this.collapsed=this.descriptionAlwaysCollapsed||!((G=this.data)==null?0:G.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.VZ(110509);this.showLessClientVe=_.VZ(110510);Y=_.FA();G=_.nX();Y&&G&&_.ey(Y,G,[this.showMoreClientVe,this.showLessClientVe])};
_.H.onYtExpanderMoreTapped=function(){var Y,G=(Y=this.data)==null?void 0:Y.showMoreCommand;G&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(G);(Y=_.FA())&&this.showMoreClientVe&&_.RK(Y,this.showMoreClientVe)};
_.H.onYtExpanderLessTapped=function(){var Y=_.FA();Y&&this.showLessClientVe&&_.RK(Y,this.showLessClientVe);var G;(Y=(G=this.data)==null?void 0:G.showLessCommand)&&this.componentBehavior.resolveCommand(Y)};
_.H.handleUpdateDateTextAction=function(Y){this.data&&this.data.dateText&&this.set("data.dateText",_.z(Y,qvo).dateText)};
_.H.handleUpdateDescriptionAction=function(Y){if(Y=_.z(Y,_.Wu1))Y.isEmpty||!Y.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.P3(Y.description)):this.set("data.description",Y.description)};
_.H.onYtChangeEngagementPanelVisibilityAction=function(Y){if(_.F("web_structured_description_show_more")||_.F("web_engagement_panel_open_description")){var G,u=(G=_.z(Y,_.p02))==null?void 0:G.targetId,O;Y=((O=_.z(Y,_.p02))==null?void 0:O.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";u==="engagement-panel-structured-description"&&Y&&(this.descriptionToggled=!0)}};
_.H.updateCollapsedFromBinding=function(Y){this.collapsed=Y.detail.value};
_.H.updateDescriptionToggledFromBinding=function(Y){this.descriptionToggled=Y.detail.value};
_.H.updateCanCollapseFromBinding=function(Y){this.canCollapse=Y.detail.value};
_.Uk.Object.defineProperties($v.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=(Y=this.data)==null?void 0:(G=Y.metadataRowContainer)==null?void 0:G.metadataRowContainerRenderer;return!!u&&!!u.rows&&u.rows.length>u.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.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}}});
$v.prototype.onYtExpanderLessTapped=$v.prototype.onYtExpanderLessTapped;$v.prototype.onYtExpanderMoreTapped=$v.prototype.onYtExpanderMoreTapped;$v.prototype.dataChanged=$v.prototype.dataChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],$v.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],$v.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],$v.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],$v.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],$v.prototype,"collapsed",void 0);_.S([_.R(),_.V("design:type",Boolean)],$v.prototype,"descriptionToggled",void 0);
_.S([_.R(),_.V("design:type",Boolean)],$v.prototype,"canCollapse",void 0);_.S([_.R(),_.V("design:type",Object)],$v.prototype,"subscribeButtonData",void 0);_.S([_.R(),_.V("design:type",Number)],$v.prototype,"descriptionCollapsedHeight",void 0);_.S([_.R(),_.V("design:type",Object)],$v.prototype,"structuredDescriptionContentRenderer",void 0);_.S([_.R({value:function(){return _.F("web_watch_description_always_collapsed")}}),
_.V("design:type",Boolean)],$v.prototype,"descriptionAlwaysCollapsed",void 0);_.S([_.Ox("#description"),_.V("design:type",HTMLDivElement)],$v.prototype,"description",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$v.prototype,"dataChanged",null);_.S([_.Yo("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$v.prototype,"onYtExpanderMoreTapped",null);
_.S([_.Yo("yt-expander-less-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$v.prototype,"onYtExpanderLessTapped",null);_.S([_.f("data.metadataRowContainer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$v.prototype,"metadataCollapsible",null);_.S([_.f("data","structuredDescriptionContentRenderer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$v.prototype,"hasInlineStructuredDescription",null);
_.S([_.f("data.attributedDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$v.prototype,"hasAttributedDescription",null);_.S([_.f("hasInlineStructuredDescription","collapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$v.prototype,"loadStructuredDescription",null);_.S([_.f("data","structuredDescriptionContentRenderer","collapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$v.prototype,"showInlineStructuredDescription",null);
_.S([_.f("data","hasInlineStructuredDescription","metadataCollapsible"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$v.prototype,"descriptionAlwaysCollapsible",null);
_.d($v,"ytd-video-secondary-info-renderer",function(){if(Cxj===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);Cxj=Y}Y=Cxj;return Y},{mode:2});var spS;var qY=function(){return _.Z.apply(this,arguments)||this};
_.m(qY,_.Z);qY.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],qY.prototype,"rendererBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],qY.prototype,"dismissibleItemBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],qY.prototype,"rendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],qY.prototype,"data",void 0);_.S([_.pD({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],qY);
_.d(qY,"ytd-comment-history-entry-renderer",function(){if(spS!==void 0)return spS;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return spS=Y},{mode:1});var c5b;var sc=function(){var Y=_.Z.apply(this,arguments)||this;Y.isCollapsed=!1;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return Y};
_.m(sc,_.Z);_.H=sc.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 Y=this.get("data.donateButton.buttonRenderer.command");if(Y){var G=_.FA(),u=this.get("data.donateButton.buttonRenderer.trackingParams");G&&u&&_.RK(G,_.Kd(u));this.ytOpenPopupBehavior.openPopup(Y)}};
_.H.onShowMore=function(){this.isCollapsed=!1;var Y=_.FA(),G=this.get("data.expandButton.buttonRenderer.trackingParams");Y&&G&&_.RK(Y,_.Kd(G))};
_.H.onShowLess=function(){this.isCollapsed=!0};
_.H.dataChanged=function(){_.cm(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.H.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.H.handleUpdate=function(Y){if(Y=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",Y))this.set("data.startLabel",Y.startLabel),this.set("data.endLabel",Y.endLabel),this.set("data.progress",Y.progress),this.set("data.amountRaisedLabel",Y.amountRaisedLabel),this.dataChanged()};
_.H.handleOpenPopupAction=function(Y){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",Y)&&_.qZ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.H.computeHeaderBackgroundUrl=function(Y,G){if(Y)return G?Y.headerBackgroundDarkUrl:Y.headerBackgroundUrl};
_.H.isProgressBarVisible=function(Y){return!(!Y||Y.progress===void 0)};
_.H.headerBackgroundClass=function(){return _.DE("HTML_DIR")==="rtl"?"flip":""};
sc.prototype.dataChanged=sc.prototype.dataChanged;_.S([_.x(_.cZ.YtOpenPopupBehavior),_.V("design:type",Object)],sc.prototype,"ytOpenPopupBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],sc.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],sc.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],sc.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],sc.prototype,"isCollapsed",void 0);_.S([_.R({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.V("design:type",String)],sc.prototype,"headerBackgroundUrl",void 0);_.S([_.R(),_.V("design:type",Boolean)],sc.prototype,"isDarkTheme",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sc.prototype,"dataChanged",null);
_.S([_.pD({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],sc);
_.d(sc,"ytd-donation-shelf-renderer",function(){if(c5b!==void 0)return c5b;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return c5b=Y},{mode:1});var Ung;var v0N=function(){return _.Z.apply(this,arguments)||this};
_.m(v0N,_.Z);_.S([_.R(),_.V("design:type",Object)],v0N.prototype,"data",void 0);_.S([_.pD({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],v0N);
_.d(v0N,"ytd-donation-unavailable-renderer",function(){if(Ung!==void 0)return Ung;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Ung=Y},{mode:1});var J5x;var cV=function(){var Y=_.Z.apply(this,arguments)||this;Y.playerListenerConfig=null;Y.actionMap={"yt-show-watch-page-survey":"openSurvey"};return Y};
_.m(cV,_.Z);_.H=cV.prototype;_.H.dataChanged=function(){var Y=this,G=_.N5();G&&G.getPlayerPromise().then(function(O){Y.maybeRemovePlayerListeners(O)});
var u=this.data&&this.data.survey;u&&((u=(u=u.singleOptionSurveyRenderer||u.checkboxSurveyRenderer||u.multiStageSurveyRenderer)&&u.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(G,u):this.openSurvey())};
_.H.triggerWatchPageSurvey=function(Y,G){var u=this,O,Q,M,t,K,L,g,P,I;return _.a(function(k){if(k.nextAddress==1)return Y?k.yield(Y.getPlayerPromise(),2):k.return();u.player=k.yieldResult;if(!u.player)return k.return();O={};Q=_.E(G);for(M=Q.next();!M.done;M=Q.next())t=M.value,K=_.E(u.createEventListenerPair(t)),L=K.next().value,g=K.next().value,P=L,I=g,P&&I&&(O[P]=I,u.ytPlayerListenerBehavior.listenToPlayerEvent(u.player,P,I));u.playerListenerConfig=O;_.Sd(k)})};
_.H.createEventListenerPair=function(Y){var G=Y.playbackEventTrigger;return G?this.handlePlaybackTrigger(G):(Y=Y.watchTimeTrigger)?this.handleWatchTimeTrigger(Y):[void 0,void 0]};
_.H.handleWatchTimeTrigger=function(Y){var G=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var u=Y.videoWatchFraction,O=Y.watchTimeSec;return O&&u?["onVideoProgress",function(){G.player&&G.isWatchTimeConditionMet(G.player,u,O)&&G.showSurvey()}]:[void 0,
void 0]};
_.H.isWatchTimeConditionMet=function(Y,G,u){var O=Y.getProgressState(),Q=O.current-this.lastKnownPlaybackPosition;Q<5&&(this.accumulatedMediaTime+=Q);this.lastKnownPlaybackPosition=O.current;O=Math.round(this.accumulatedMediaTime/O.duration*1E3)/1E3;return Y.getPresentingPlayerType&&Y.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>u||O>G)};
_.H.handlePlaybackTrigger=function(Y){var G=this;Y=Y.playbackEvent;if(Y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var u="onStateChange";var O=function(Q){Q===0&&G.showSurvey()}}else Y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(u="onVideoProgress",O=function(Q){G.player&&G.player.getPresentingPlayerType&&G.player.getPresentingPlayerType()===1&&Q&&G.showSurvey()}):Y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(u="onAdEnd",O=this.showSurvey);
return[u,O]};
_.H.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.H.openSurvey=function(){var Y=this,G=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(Jgw(!!G));_.AN.addJob(function(){Y.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:G}})},0,0)};
_.H.maybeRemovePlayerListeners=function(Y){if(this.playerListenerConfig){for(var G=_.E(Object.keys(this.playerListenerConfig)),u=G.next();!u.done;u=G.next())u=u.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(Y,u,this.playerListenerConfig[u]);this.playerListenerConfig=null}};
cV.prototype.dataChanged=cV.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.SZ),_.V("design:type",Object)],cV.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",_.wW)],cV.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],cV.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.x(_.me),_.V("design:type",Object)],cV.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],cV.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],cV.prototype,"playerListenerConfig",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],cV.prototype,"lastKnownPlaybackPosition",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],cV.prototype,"accumulatedMediaTime",void 0);_.S([_.R(),_.V("design:type",Object)],cV.prototype,"player",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cV.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],cV);
_.d(cV,"ytd-survey-trigger-renderer",function(){if(J5x!==void 0)return J5x;var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return J5x=Y},{mode:1});var YJx;_.Px("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Uc=function(){var Y=_.Z.apply(this,arguments)||this;Y.role="link";Y.tabindex="0";Y.actionMap=_.F("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 Y};
_.m(Uc,_.Z);_.H=Uc.prototype;_.H.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.x3()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.H.getCurrentTheme=function(){return _.fB()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.x3()};
_.H.onThemeSelected=function(Y,G){var u=Y||G?Y:_.rG(),O=(u&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!u&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.uTY(_.BI(window.location.href));_.tW(0,165,Y);_.tW(0,174,G);this.prefs.save();O&&_.qZ(this.hostElement,"yt-dark-mode-toggled-action",[u]);_.qZ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.H.onTap=function(){this.data.serviceEndpoint&&_.c$(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)};
Uc.prototype.onTap=Uc.prototype.onTap;Uc.prototype.dataChanged=Uc.prototype.dataChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Uc.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.AK),_.V("design:type",Object)],Uc.prototype,"paperItemBehaviors",void 0);_.S([_.R(),_.V("design:type",Object)],Uc.prototype,"data",void 0);_.S([_.R({value:function(){return _.EU()}}),
_.V("design:type",_.jb)],Uc.prototype,"prefs",void 0);_.S([_.R(),_.V("design:type",Object)],Uc.prototype,"label",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Uc.prototype,"role",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Uc.prototype,"tabindex",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Uc.prototype,"dataChanged",null);
_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Uc.prototype,"onTap",null);_.S([_.pD({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Uc);
_.$o()(Uc,"ytd-toggle-theme-compact-link-renderer",function(){if(YJx===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);YJx=Y}Y=YJx;return Y},{allowedProps:["data"],
mode:1});var GV9;_.Px("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Px("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var vV=function(){return _.Z.apply(this,arguments)||this};
_.m(vV,_.Z);_.H=vV.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(Y){if(Y.keyCode===13)this.onTap()};
_.H.onTap=function(){this.data.recordClickEndpoint&&_.sH().resolve(_.rH).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var Y=this.data.navigationEndpoint;Y&&_.z(Y,_.pk)&&_.sH().resolve(_.rH).resolveCommand(Y,{form:{element:this.hostElement}})};
_.H.readChanged=function(){var Y;_.$3(this.hostElement,"unread",!((Y=this.data)==null?0:Y.read))};
_.H.dataChanged=function(){this.data&&_.$3(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.H.computeThumbnailSize=function(){var Y;return((Y=this.data)==null?0:Y.highPriorityNotification)?32:48};
_.H.getEndpointURL=function(Y){return Y&&!_.z(Y,_.pk)?this.componentBehavior.computeHref_(Y):null};
_.H.getEndpointData=function(Y){return Y&&!_.z(Y,_.pk)?Y:null};
vV.prototype.computeThumbnailSize=vV.prototype.computeThumbnailSize;vV.prototype.dataChanged=vV.prototype.dataChanged;vV.prototype.readChanged=vV.prototype.readChanged;vV.prototype.onKeyUp=vV.prototype.onKeyUp;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],vV.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],vV.prototype,"data",void 0);_.S([_.R({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.V("design:type",Number)],vV.prototype,"thumbnailSize",void 0);_.S([_.Yo("keyup"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],vV.prototype,"onKeyUp",null);
_.S([_.GO("data.read"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vV.prototype,"readChanged",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vV.prototype,"dataChanged",null);_.S([_.GO("data.highPriorityNotification"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vV.prototype,"computeThumbnailSize",null);
_.S([_.pD({is:"ytd-notification-renderer",disableElementRegistration:!0})],vV);
_.d(vV,"ytd-notification-renderer",function(){if(GV9!==void 0)return GV9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return GV9=Y},{mode:1});var u6y;var JO=function(){return _.Z.apply(this,arguments)||this};
_.m(JO,_.Z);JO.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"}}}};
JO.prototype.computeActionButtonClass=function(Y){return!Y.actionButtons||Y.actionButtons.length<=1?"single-button":Y.description?"vertical-buttons":"horizontal-buttons"};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],JO.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],JO.prototype,"data",void 0);_.S([_.pD({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],JO);
_.d(JO,"ytd-playlist-show-metadata-renderer",function(){if(u6y!==void 0)return u6y;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return u6y=Y},{mode:1});var OEb;_.Px("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var YF=function(){return _.Z.apply(this,arguments)||this};
_.m(YF,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],YF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],YF.prototype,"data",void 0);_.S([_.pD({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],YF);
_.d(YF,"ytd-purchase-item-renderer",function(){if(OEb!==void 0)return OEb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return OEb=Y},{mode:1});var Qlw;var MeS={};MeS.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(Y){if(Y)return Y.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(Y){if(Y==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Px("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var GE=function(){return _.Z.apply(this,arguments)||this};
_.m(GE,_.Z);GE.prototype.onYtNavigate=function(Y){var G=this.openPopupBehavior.getNavigationEndpointPopupAction(Y.detail.endpoint);G&&(Y.stopPropagation(),this.openPopupBehavior.openPopup(G))};
GE.prototype.onYtNavigate=GE.prototype.onYtNavigate;_.S([_.x(MeS.YtSimpleTextSectionBehavior),_.V("design:type",Object)],GE.prototype,"ytSimpleTextSectionBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.SZ),_.V("design:type",Object)],GE.prototype,"openPopupBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],GE.prototype,"data",void 0);
_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],GE.prototype,"onYtNavigate",null);_.S([_.pD({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],GE);
_.d(GE,"ytd-simple-text-section-renderer",function(){if(Qlw!==void 0)return Qlw;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Qlw=Y},{mode:1});var HE9;_.Px("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var E9x=function(){return _.Z.apply(this,arguments)||this};
_.m(E9x,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],E9x.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],E9x.prototype,"data",void 0);_.S([_.pD({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],E9x);
_.d(E9x,"ytd-unlimited-page-feature-info-renderer",function(){if(HE9!==void 0)return HE9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return HE9=Y},{mode:1});var teb;var KHy;var ur=function(){return _.Z.apply(this,arguments)||this};
_.m(ur,_.Z);ur.prototype.dataChanged=function(){if(this.data){var Y=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);Y&&(Y=_.dH(Y,screen.width),this.hostElement.style.backgroundImage="url("+Y+")")}};
ur.prototype.dataChanged=ur.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ur.prototype,"data",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ur.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],ur);
_.d(ur,"ytd-post-redemption-section-renderer",function(){if(KHy!==void 0)return KHy;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return KHy=Y},{mode:1});var aeg;var Om=function(){return _.Z.apply(this,arguments)||this};
_.m(Om,_.Z);Om.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Om.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Om.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Om.prototype,"data",void 0);_.S([_.pD({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Om);
_.d(Om,"ytd-ypc-post-redemption-renderer",function(){if(aeg!==void 0)return aeg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return aeg=Y},{mode:1});_.Px("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Qe=function(){var Y=_.Z.apply(this,arguments)||this;Y.MIN_CODE_LENGTH=12;Y.MAX_CODE_LENGTH=24;return Y};
_.m(Qe,_.Z);_.H=Qe.prototype;_.H.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.H.created=function(){this.riskService=new _.HnA;this.loadPaymentThenable=_.tWI(_.DE("YPC_MB_URL"))};
_.H.ready=function(){var Y=this;this.code.addEventListener("keypress",function(G){Y.onCodeInputKeypress(G)})};
_.H.dataChanged=function(){var Y=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(G){G=_.E(G);for(var u=G.next();!u.done;u=G.next())u=u.value,u.type==="attributes"&&u.attributeName==="dark"&&Y.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 Y=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+Y+")")}};
_.H.computeRedeemButton=function(Y){(Y=this.get("redeemButton.buttonRenderer",Y))&&(Y=Object.assign({},Y,{serviceEndpoint:void 0}));return Y};
_.H.onRedeemButtonTap=function(Y){Y.stopPropagation();OUg();this.redeemCode()};
_.H.redeemCode=function(){var Y=this;this.isLoading=!0;var G=this.riskService.init();_.mV([G,this.loadPaymentThenable]).then(function(){var u=Y.data.redeemButton.buttonRenderer.serviceEndpoint,O=_.EXt(),Q=_.BU.payments.business.integration.ClientTokenFactory.createClientToken(_.z(u,_.E82).countryCode,O);O={c:Y.code.value.trim(),rd:window.btoa(O),ctk:Q};u&&_.sH().resolve(_.rH).resolveCommand(u,{form:Object.assign({},O,{element:Y.hostElement})})},function(){Y.showGenericError();
QiV("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.dc(Error("Cl"))})};
_.H.onYtServiceRequestCompleted=function(Y){Y.stopPropagation();this.isLoading=!1;var G,u;this.errorMessage=(G=Y.detail)==null?void 0:(u=G.data)==null?void 0:u.errorMessage;var O,Q;this.postRedemptionRenderer=(O=Y.detail)==null?void 0:(Q=O.data)==null?void 0:Q.renderer;var M,t;if(Y=(M=Y.detail)==null?void 0:(t=M.data)==null?void 0:t.redirectEndpoint)this.isLoading=!0,_.$s(this.hostElement,"yt-navigate",{endpoint:Y});this.errorMessage?QiV("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
Y)&&UJ("ypcRedeemFlowSucceeded")};
_.H.onYtServiceRequestError=function(Y){Y.stopPropagation();this.isLoading=!1;if(Y=this.get("detail.error.message",Y))this.errorMessage=_.i8(Y);QiV("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.H.onInvokeInstrumentManagerActionCompleted=function(Y){Y.stopPropagation();this.redeemCode()};
_.H.onInvokeInstrumentManagerActionError=function(Y){Y.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",Y)){case "instrumentManagerLoadError":this.showGenericError();QiV("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();QiV("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":UJ("ypcRedeemFlowCancelled")}};
_.H.onInput=function(){var Y=this;_.y4(this,"onInput",function(){var G=Y.code.value.trim();Y.redeemButtonDisabled=G.length<Y.MIN_CODE_LENGTH||G.length>Y.MAX_CODE_LENGTH},200)};
_.H.onCodeInputKeypress=function(Y){Y.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(OUg(),this.redeemCode())};
_.H.computeImageUrl=function(Y){return Y?_.dH(Y.thumbnails,600):null};
_.H.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Qe.prototype.onInvokeInstrumentManagerActionError=Qe.prototype.onInvokeInstrumentManagerActionError;Qe.prototype.onInvokeInstrumentManagerActionCompleted=Qe.prototype.onInvokeInstrumentManagerActionCompleted;Qe.prototype.onYtServiceRequestError=Qe.prototype.onYtServiceRequestError;Qe.prototype.onYtServiceRequestCompleted=Qe.prototype.onYtServiceRequestCompleted;Qe.prototype.dataChanged=Qe.prototype.dataChanged;
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Qe.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Qe.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Qe.prototype,"isLoading",void 0);_.S([_.R(),_.V("design:type",Boolean)],Qe.prototype,"redeemButtonDisabled",void 0);
_.S([_.R(),_.V("design:type",Object)],Qe.prototype,"errorMessage",void 0);_.S([_.R(),_.V("design:type",Object)],Qe.prototype,"postRedemptionRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],Qe.prototype,"observer",void 0);_.S([_.Ox("#code"),_.V("design:type",HTMLInputElement)],Qe.prototype,"code",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qe.prototype,"dataChanged",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Qe.prototype,"onYtServiceRequestCompleted",null);_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Qe.prototype,"onYtServiceRequestError",null);
_.S([_.Yo("yt-invoke-instrument-manager-action-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Qe.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.S([_.Yo("yt-invoke-instrument-manager-action-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Qe.prototype,"onInvokeInstrumentManagerActionError",null);_.S([_.pD({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Qe);
_.d(Qe,"ytd-redeem-code-renderer",function(){if(teb!==void 0)return teb;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return teb=Y},{mode:1});var TFb;_.Px("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var M0=function(){var Y=_.Z.apply(this,arguments)||this;Y.businessEmailDisplayState="HIDE_SECTION";return Y};
_.m(M0,_.Z);_.H=M0.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":(_.fX(_.tvU),this.businessEmailDisplayState="CAPTCHA"))};
_.H.onYtServiceRequestCompleted=function(Y){var G;if((G=Y.detail.data)==null?0:G.businessEmail)this.businessEmail=Y.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var u;if((u=Y.detail.data)==null?0:u.errorMessage)this.businessEmailErrorMessage=Y.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.H.computeEmailHref=function(Y){return"mailto:"+Y};
_.H.computeSafeUrl=function(Y){if(Y)return _.cs(Y)};
_.H.onBusinessEmailCaptchaSubmit=function(){var Y;(Y=this.data)!=null&&Y.onBusinessEmailRevealClickCommand&&(Y=this.JSC$20589_captchaTextarea.value)&&(Y={recaptcha_response_token:Y,channel_id:this.data.channelId},_.sH().resolve(_.rH).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},Y,{element:this.hostElement})}))};
_.H.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Uk.Object.defineProperties(M0.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 Y,G;return!((Y=this.data)==null||!Y.primaryLinks)&&!((G=this.data)==null?0:G.links)&&this.data.primaryLinks.every(function(u){return u.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!((Y=this.data)==null||!Y.primaryLinks)&&!((G=this.data)==null?0:G.links)&&!this.shouldShowNewLinks}}});
M0.prototype.onYtServiceRequestCompleted=M0.prototype.onYtServiceRequestCompleted;M0.prototype.dataChanged=M0.prototype.dataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],M0.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],M0.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.Ox("#g-recaptcha-response"),_.V("design:type",HTMLTextAreaElement)],M0.prototype,"JSC$20589_captchaTextarea",void 0);_.S([_.R(),_.V("design:type",Object)],M0.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],M0.prototype,"businessEmailDisplayState",void 0);_.S([_.R(),_.V("design:type",String)],M0.prototype,"businessEmail",void 0);_.S([_.R(),_.V("design:type",String)],M0.prototype,"businessEmailErrorMessage",void 0);
_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],M0.prototype,"hideDetailsSection",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],M0.prototype,"dataChanged",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],M0.prototype,"shouldShowNewLinks",null);_.S([_.f("data","shouldShowLinks"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],M0.prototype,"shouldShowLegacyLinks",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],M0.prototype,"onYtServiceRequestCompleted",null);_.S([_.pD({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],M0);
_.d(M0,"ytd-channel-about-metadata-renderer",function(){if(TFb!==void 0)return TFb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return TFb=Y},{mode:1});var LHb;_.Px("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Hh=function(){return _.Z.apply(this,arguments)||this};
_.m(Hh,_.Z);Hh.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]]"}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Hh.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Number)],Hh.prototype,"lockupContainerType",void 0);_.S([_.R(),_.V("design:type",String)],Hh.prototype,"thumbnailFixedWidth",void 0);
_.S([_.pD({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Hh);
_.d(Hh,"ytd-channel-featured-content-renderer",function(){if(LHb!==void 0)return LHb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return LHb=Y},{mode:1});var g9B;_.Px("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Em=function(){var Y=_.Z.apply(this,arguments)||this;Y.roundContainer=!0;Y.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");return Y};
_.m(Em,_.Z);_.H=Em.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 Y=this.data;Y.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!Y.style&&Y.image&&Y.image.thumbnails.length&&(Y=Y.image.thumbnails[0],this.imageWidth=Y.width||0,this.imageHeight=Y.height||0)};
_.H.computeSource=function(Y){return Y.secondarySource?_.Ri(Y.secondarySource):_.Ri(Y.source)};
_.H.computeClarifyStyle=function(Y){return Y?Y.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.H.isLargeStyle=function(Y){return Y==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.H.computeBackgroundStyle=function(Y){return Y?Y.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.H.computeHasActionButton=function(Y){return!!Y.actionButton};
_.H.computeHasBottomSection=function(Y){return!!Y.ctaHasBottomSection};
_.H.computeIsSourceMissing=function(Y){return Y.ctaHasBottomSection===!1?!0:Y&&this.computeSource(Y)?!1:!0};
_.H.computeSecondaryEndpoint=function(Y){return Y.secondaryEndpoint||Y.endpoint};
Em.prototype.dataChanged=Em.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Em.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Em.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Em.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Number)],Em.prototype,"imageWidth",void 0);_.S([_.R(),_.V("design:type",Number)],Em.prototype,"imageHeight",void 0);
_.S([_.R({computed:"computeSecondaryEndpoint(data)"}),_.V("design:type",Object)],Em.prototype,"secondaryEndpoint",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.V("design:type",Boolean)],Em.prototype,"hasActionButton",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.V("design:type",Boolean)],Em.prototype,"hasBottomSection",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.V("design:type",Boolean)],Em.prototype,"missingSource",void 0);_.S([_.R({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],Em.prototype,"icon",void 0);_.S([_.R({computed:"computeIcon_(data.secondaryIcon)"}),_.V("design:type",String)],Em.prototype,"secondaryIcon",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.V("design:type",String)],Em.prototype,"clarifyStyle",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.V("design:type",String)],Em.prototype,"backgroundStyle",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Em.prototype,"roundContainer",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Em.prototype,"amsterdamEnabled",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Em.prototype,"dataChanged",null);
_.S([_.pD({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Em);
_.d(Em,"ytd-clarification-renderer",function(){if(g9B!==void 0)return g9B;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return g9B=Y},{mode:1});var XSg;_.Px("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var t6=function(){return _.Z.apply(this,arguments)||this};
_.m(t6,_.Z);_.H=t6.prototype;_.H.computeHasPrimaryIcon=function(Y){return!(!Y.icon&&!Y.thumbnail)};
_.H.computeHasSecondary=function(Y){return!(!Y.secondaryIcon&&!Y.secondaryNotificationText)};
_.H.computeHideSecondaryString=function(Y){return!_.F("disable_hide_empty_secondary_string")&&!Y.secondaryNotificationText};
_.H.computeCompactLinkStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.H.computeHasFitHeight=function(Y){return Y==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.H.isActiveEndpoint=function(Y){return(Y=this.get("commandMetadata.webCommandMetadata.url",Y))?_.BI(window.location.href)!=="/account_transfer_channel"&&_.BI(window.location.href)!=="/gaia_link"&&_.BI(window.location.href)!=="/channel_switcher"||Y!=="/account"?_.BI(window.location.href)===Y:!0:!1};
_.H.onTap=function(){var Y;((Y=this.data)==null?0:Y.serviceEndpoint)&&_.c$(this.hostElement,[this.data.serviceEndpoint])};
t6.prototype.onTap=t6.prototype.onTap;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],t6.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.V("design:type",Boolean)],t6.prototype,"active",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.V("design:type",String)],t6.prototype,"compactLinkStyle",void 0);
_.S([_.R({computed:"computeIcon_(data.icon)"}),_.V("design:type",Object)],t6.prototype,"icon",void 0);_.S([_.R({computed:"computeIcon_(data.secondaryIcon)"}),_.V("design:type",Object)],t6.prototype,"secondaryIcon",void 0);_.S([_.R({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],t6.prototype,"hasSecondary",void 0);_.S([_.R({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],t6.prototype,"hideSecondaryString",void 0);
_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],t6.prototype,"onTap",null);_.S([_.pD({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],t6);
_.d(t6,"ytd-compact-link-renderer",function(){if(XSg!==void 0)return XSg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return XSg=Y},{mode:1});var PVw;var Iew;var Kf=function(){var Y=_.Z.apply(this,arguments)||this;Y.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");return Y};
_.m(Kf,_.Z);_.H=Kf.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(Y){return Y?"yt-icons:"+Y.toLowerCase():null};
_.H.computeUseContacts=function(Y){return!!Y.contacts&&Y.contacts.length>0};
_.H.computePhoneContact=function(Y){var G,u;return(G=Y.contacts)==null?void 0:(u=G.find(function(O){var Q;return(O==null?void 0:(Q=O.icon)==null?void 0:Q.iconType)==="PHONE"}))==null?void 0:u.actionText};
_.H.computeSmsContact=function(Y){var G,u;return(G=Y.contacts)==null?void 0:(u=G.find(function(O){var Q;return(O==null?void 0:(Q=O.icon)==null?void 0:Q.iconType)==="SMS"}))==null?void 0:u.actionText};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Kf.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Kf.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Kf.prototype,"amsterdamEnabled",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.V("design:type",Boolean)],Kf.prototype,"useContacts",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.V("design:type",String)],Kf.prototype,"phoneContact",void 0);_.S([_.pD({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Kf);
_.d(Kf,"ytd-single-action-emergency-support-renderer",function(){if(Iew!==void 0)return Iew;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Iew=Y},{mode:1});_.Px("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var aT=function(){var Y=_.Z.apply(this,arguments)||this;Y.roundedContainer=!0;Y.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");return Y};
_.m(aT,_.Z);aT.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"}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],aT.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],aT.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],aT.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],aT.prototype,"roundedContainer",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],aT.prototype,"amsterdamEnabled",void 0);
_.S([_.pD({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],aT);
_.d(aT,"ytd-emergency-onebox-renderer",function(){if(PVw!==void 0)return PVw;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return PVw=Y},{mode:1});var kVg;_.Px("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var TE=function(){return _.Z.apply(this,arguments)||this};
_.m(TE,_.Z);TE.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"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],TE.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],TE.prototype,"data",void 0);_.S([_.pD({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],TE);
_.d(TE,"ytd-exploratory-results-renderer",function(){if(kVg!==void 0)return kVg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return kVg=Y},{mode:1});var n9w;_.Px("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Lf=function(){var Y=_.Z.apply(this,arguments)||this;Y.messageData=null;return Y};
_.m(Lf,_.Z);_.H=Lf.prototype;_.H.onServiceRequestCompleted=function(Y,G){Y=G.actions||[];G=0;for(var u=Y.length;G<u;G++){var O=Y[G],Q=void 0,M=void 0;if((Q=_.z(O,_.Qy))==null?0:(M=Q.item)==null?0:M.messageRenderer)this.messageData=_.z(O,_.Qy).item.messageRenderer}};
_.H.dataChanged=function(){var Y=this.data;this.hostElement.hidden=!1;_.$3(this.hostElement,"is-channel",Y&&!Y.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.H.computeThumbnailWidth=function(Y){return Y?126:56};
_.H.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.H.onSubmitTap=function(){var Y=this.data,G=this.selectedResponseIndex;Y!==void 0&&G!==void 0&&(Y=Y.responses[G],Y.responseData&&_.sH().resolve(_.rH).resolveCommand(Y.responseData,{form:{element:this.hostElement}}))};
_.H.onDismissTap=function(){this.hostElement.hidden=!0;var Y=this.data;Y!==void 0&&Y.dismissalEndpoint&&_.sH().resolve(_.rH).resolveCommand(Y.dismissalEndpoint,{form:{element:this.hostElement}})};
_.H.updateSelectedResponseIndexFromBinding=function(Y){this.selectedResponseIndex=Y.detail.value};
Lf.prototype.onSelectedResponseIndexChange=Lf.prototype.onSelectedResponseIndexChange;Lf.prototype.dataChanged=Lf.prototype.dataChanged;Lf.prototype.onServiceRequestCompleted=Lf.prototype.onServiceRequestCompleted;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Lf.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Lf.prototype,"messageData",void 0);
_.S([_.R(),_.V("design:type",Number)],Lf.prototype,"selectedResponseIndex",void 0);_.S([_.Ox("#submit-button"),_.V("design:type",HTMLButtonElement)],Lf.prototype,"submitButton",void 0);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],Lf.prototype,"onServiceRequestCompleted",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lf.prototype,"dataChanged",null);
_.S([_.GO("selectedResponseIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lf.prototype,"onSelectedResponseIndexChange",null);_.S([_.pD({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Lf);
_.d(Lf,"ytd-feedback-elicitation-single-question-renderer",function(){if(n9w!==void 0)return n9w;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return n9w=Y},{mode:1});var FHw;var g5=function(){return _.Z.apply(this,arguments)||this};
_.m(g5,_.Z);g5.prototype.computeIconType=function(Y){return Y?"yt-icons:"+Y.toLowerCase():null};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],g5.prototype,"data",void 0);_.S([_.pD({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],g5);
_.d(g5,"ytd-limited-state-message-renderer",function(){if(FHw!==void 0)return FHw;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return FHw=Y},{mode:1});var pSy;var X5=function(){return _.Z.apply(this,arguments)||this};
_.m(X5,_.Z);X5.prototype.computeThumbnailWidth=function(Y){return Y?602:428};
X5.prototype.updateWideFromBinding=function(Y){this.wide=Y.detail.value};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],X5.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],X5.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],X5.prototype,"wide",void 0);_.S([_.pD({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],X5);
_.d(X5,"ytd-newspaper-hero-video-renderer",function(){if(pSy!==void 0)return pSy;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return pSy=Y},{mode:1});var zxy;var mLV=function(){return _.Z.apply(this,arguments)||this};
_.m(mLV,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],mLV.prototype,"rendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],mLV.prototype,"data",void 0);_.S([_.pD({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],mLV);
_.d(mLV,"ytd-newspaper-mini-video-renderer",function(){if(zxy!==void 0)return zxy;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return zxy=Y},{mode:1});var WHy;_.Px("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Ph=function(){return _.Z.apply(this,arguments)||this};
_.m(Ph,_.Z);Ph.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"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ph.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ph.prototype,"data",void 0);_.S([_.pD({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Ph);
_.d(Ph,"ytd-newspaper-renderer",function(){if(WHy!==void 0)return WHy;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return WHy=Y},{mode:1});var rFx;_.Px("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var IT=function(){var Y=_.Z.apply(this,arguments)||this;Y.isSegment=!1;Y.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};Y.nextContinuation={continuationType:"playlistVideoListContinuation"};return Y};
_.m(IT,_.Z);_.H=IT.prototype;_.H.created=function(){var Y=this;this.JSC$20628_ytReorderableController=new _.YcV(101,function(G){Y.handleDrop(G)})};
_.H.attached=function(){_.sH();var Y;(Y=_.sH().resolve(_.q3(_.Ij)))!=null&&(Y.playlistVideoListElement=this.hostElement)};
_.H.detached=function(){var Y;(Y=_.sH().resolve(_.q3(_.Ij)))!=null&&(Y.playlistVideoListElement=void 0);Y=_.sH().resolve(_.q3(_.Yi));_.F("web_enable_voting_animation")&&Y&&(Y.parentElem=void 0,Y.videos=[],Y.continuationsPresent=!1,Y.showRefreshPill=!1);_.H7(this.JSC$20628_ytReorderableController)};
_.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 Y=_.sH().resolve(_.q3(_.Yi));if(_.F("web_enable_voting_animation")&&this.data&&Y){var G=_.l0(this.hostElement).querySelector("#contents");G&&(Y.parentElem=G);Y.addVideos(this.data.contents)}_.H7(this.JSC$20628_ytReorderableController)};
_.H.onRendererstamperFinished=function(){this.canReorder&&_.GtM(this.JSC$20628_ytReorderableController,_.l0(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.H.onPlaylistReloading=function(){this.isReloading=!0};
_.H.onUpdateSetVideoId=function(Y){if(Y.detail&&this.data&&this.data.contents){var G=Y.detail;Y=this.data.contents.findIndex(function(Q){var M;return((M=Q.playlistVideoRenderer)==null?void 0:M.videoId)===G.videoId});
if(!(Y<0)&&G.setVideoId&&(this.set("data.contents."+Y+".playlistVideoRenderer.setVideoId",G.setVideoId),_.F("web_enable_voting_animation"))){var u;if(Y=_.z((u=this.data.contents[Y].playlistVideoRenderer)==null?void 0:u.engagementBar,_.x_U)){var O;(O=Y.actions)==null||O.forEach(function(Q){if(Q=_.z(Q,_.fzU))Q.itemId=G.setVideoId})}(u=_.sH().resolve(_.q3(_.Yi)))&&IIx(u,G.videoId,G.setVideoId)}}};
_.H.computeContentsClass=function(Y){return Y?"reloading":""};
_.H.computeIsSortable=function(Y,G){return Y&&G>0&&!this.isSegment&&!_.F("shorts_in_playlists_web")};
_.H.computeIsEditable=function(Y){return Y};
_.H.computeCanReorder=function(Y){return Y};
_.H.handlePlaylistRemoveVideosAction=function(Y){if(this.get("playlistRemoveVideosAction.setVideoIds",Y)&&this.data&&this.data.contents){Y=_.z(Y,_.rgR).setVideoIds;for(var G=this.data.contents.length-1;G>=0;){var u=this.data.contents[G].playlistVideoRenderer;u&&u.setVideoId&&Y.includes(u.setVideoId)&&this.splice("data.contents",G,1);G--}_.qZ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.H.updateIndices=function(){if(this.data&&this.data.contents)for(var Y=0;Y<this.data.contents.length;Y++)this.set("data.contents."+Y+".playlistVideoRenderer.index",_.i8(String(Y+1)))};
_.H.handleDrop=function(Y){Y=Y.currDragItem;var G=_.Dt(Y.parentNode.childNodes,Y),u=this.data.contents.splice(Number(_.Ri(Y.data.index))-1,1)[0];this.data.contents.splice(G,0,u);G=G?this.get("contents."+(G-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();Y=this.buildReorderServiceEndpoint(Y.data.setVideoId,G);this.ytComponentBehavior.resolveCommand(Y)};
_.H.buildReorderServiceEndpoint=function(Y,G){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",Y),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",G),this.data.onReorderEndpoint):null};
_.H.handleUpdatePlaylistAction=function(Y){var G;(Y=_.z((G=_.z(Y,_.xoE))==null?void 0:G.updatedRenderer,_.yiT))&&this.canReorder!==Y.canReorder&&this.set("data.canReorder",Y.canReorder);Y&&Y.contents&&(this.set("data.contents",Y.contents),this.isReloading=!1);Y&&Y.continuations&&this.set("data.continuations",Y.continuations)};
_.H.handleAddRendererToItemSectionAction=function(Y){var G,u=(G=_.z(Y,u7x))==null?void 0:G.renderer,O;u&&((O=_.z(Y,u7x))==null?void 0:O.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,u),Y=_.sH().resolve(_.q3(_.Yi)),_.F("web_enable_voting_animation")&&Y&&(u&&(G=_.rxa(u))&&Y.recommendedVideos.push({itemId:G,videoId:_.CZt(u),voteCount:_.yxt(u),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.H.isVotingEnabledOnPlaylist=function(Y){if(!Y)return!1;Y=_.E(Y);for(Y=Y.next();!Y.done;Y=Y.next()){var G=void 0;return!!_.z((G=Y.value.playlistVideoRenderer)==null?void 0:G.engagementBar,_.x_U)}return!1};
_.H.onAppendContinuationItemsActionFinished=function(){var Y;this.isVotingEnabledOnPlaylist((Y=this.data)==null?void 0:Y.contents)&&(this.updateIndices(),Y=_.sH().resolve(_.q3(_.Yi)),_.F("web_enable_voting_animation")&&Y&&this.data&&Y.addVideos(this.data.contents))};
_.H.updateVideoData=function(Y){if(Y.detail&&this.data&&this.data.contents){var G=Y.detail;Y=G.toIdx;var u=G.itemId,O=G.newVoteCount,Q=G.voteStatus;G=G.hideItem;var M,t,K=(M=this.data)==null?void 0:(t=M.contents)==null?void 0:t.findIndex(function(I){return _.rxa(I)===u});
if(!(K<0)){M=this.data.contents[K];var L;if((L=M.playlistVideoRenderer)==null?0:L.voteCount)M.playlistVideoRenderer.voteCount=O;var g;if(L=_.z((g=M.playlistVideoRenderer)==null?void 0:g.engagementBar,_.x_U)){var P;(P=L.actions)==null||P.forEach(function(I){(I=_.z(I,_.fzU))&&I.initialState&&(I.initialState.votes=O,I.initialState.status=Q)})}this.data.contents.splice(K,1);
G||this.data.contents.splice(Y,0,M);this.updateIndices()}}};
IT.prototype.updateVideoData=IT.prototype.updateVideoData;IT.prototype.onAppendContinuationItemsActionFinished=IT.prototype.onAppendContinuationItemsActionFinished;IT.prototype.onUpdateSetVideoId=IT.prototype.onUpdateSetVideoId;IT.prototype.onPlaylistReloading=IT.prototype.onPlaylistReloading;IT.prototype.onRendererstamperFinished=IT.prototype.onRendererstamperFinished;IT.prototype.dataChanged=IT.prototype.dataChanged;
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],IT.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],IT.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.hq.YtNextContinuationBehavior),_.V("design:type",Object)],IT.prototype,"ytNextContinuationBehavior",void 0);
_.S([_.x(_.DD),_.V("design:type",Object)],IT.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],IT.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],IT.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],IT.prototype,"isReloading",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],IT.prototype,"isSegment",void 0);
_.S([_.R({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.V("design:type",Boolean)],IT.prototype,"isSortable",void 0);_.S([_.R({computed:"computeIsEditable(data.isEditable)"}),_.V("design:type",Boolean)],IT.prototype,"isEditable",void 0);_.S([_.R({computed:"computeCanReorder(data.canReorder)"}),_.V("design:type",Boolean)],IT.prototype,"canReorder",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IT.prototype,"dataChanged",null);_.S([_.Yo("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IT.prototype,"onRendererstamperFinished",null);_.S([_.Yo("yt-playlist-reloading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IT.prototype,"onPlaylistReloading",null);
_.S([_.Yo("yt-update-set-video-id"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],IT.prototype,"onUpdateSetVideoId",null);_.S([_.Yo("yt-append-continuation-items-action-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IT.prototype,"onAppendContinuationItemsActionFinished",null);
_.S([_.Yo("yt-update-video-data-voting-animation"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],IT.prototype,"updateVideoData",null);_.S([_.pD({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],IT);
_.d(IT,"ytd-playlist-video-list-renderer",function(){if(rFx!==void 0)return rFx;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return rFx=Y},{mode:2});var xLx;var kF=function(){return _.Z.apply(this,arguments)||this};
_.m(kF,_.Z);kF.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"}}}}};
kF.prototype.onTextWrapperTap=function(Y){var G=this.data&&this.data.navigationEndpoint;G&&!_.hf(_.wG(Y),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.$s(this.hostElement,"yt-navigate",{endpoint:G})};
kF.prototype.dataChanged=function(){var Y=this.get("data.offerButton.buttonRenderer.serviceEndpoint");Y&&Y.commandMetadata&&_.z(Y.commandMetadata,_.Kk)&&_.z(Y.commandMetadata,_.Kk).fireAutomatically&&_.sH().resolve(_.rH).resolveCommand(Y,{form:{element:this.hostElement}})};
kF.prototype.dataChanged=kF.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],kF.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],kF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.oV),_.V("design:type",Object)],kF.prototype,"ytdLockupBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],kF.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],kF.prototype,"useBiggerThumbs",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.Yg("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],kF.prototype,"biggerThumbsStyle",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],kF.prototype,"leftAligned",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kF.prototype,"dataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-movie-renderer"})],kF);
_.d(kF,"ytd-movie-renderer",function(){if(xLx!==void 0)return xLx;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return xLx=Y},{mode:1});var fex={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(Y){if(Y&&Y.length==1&&Array.isArray(Y[0].loggingUrls)){Y=_.gX.unsafeClone(Y[0]);var G=this.macros||{},u=this.getAdModuleClient_();if(!u)return _.v$();Y.loggingUrls.forEach(function(O){if(O.baseUrl){var Q=O.baseUrl;var M=G;M=M===void 0?{}:M;Q=u.getOptions().includes("replaceUrlMacros")?_.P1_(u,"replaceUrlMacros",{url:Q,additionalMapping:M}):Q;O.baseUrl=Q}},this);
Y=[Y]}return _.c$(this.hostElement,Y)},
getAdModuleClient_:function(){var Y=_.N5(this);return Y?(Y=Y.getPlayer())?new _.F7(Y):null:null}}]};var CVb;var nf=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.F("web_modern_buttons");Y.buttonOverrides={style:"call-to-action",type:"filled"};return Y};
_.m(nf,_.Z);nf.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=_.k3(this.data.backgroundColor)))};
nf.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var Y=this.getFormattedStringLoggingDirectives(this.data.headline);Y&&this.rendererBehavior.logExplicitClick(Y)}};
nf.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var Y=this.getFormattedStringLoggingDirectives(this.data.description);Y&&this.rendererBehavior.logExplicitClick(Y)}};
nf.prototype.getFormattedStringLoggingDirectives=function(Y){return Y&&Y.runs&&Y.runs.length>0&&Y.runs[0]&&Y.runs[0].loggingDirectives?Y.runs[0].loggingDirectives:null};
nf.prototype.dataChanged=nf.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],nf.prototype,"rendererBehavior",void 0);_.S([_.x(fex.YtMacroReplacementBehavior),_.V("design:type",Object)],nf.prototype,"macroReplacementBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],nf.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],nf.prototype,"navigationEndpoint",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],nf.prototype,"enableColors",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],nf.prototype,"modern",void 0);_.S([_.R(),_.V("design:type",Object)],nf.prototype,"buttonOverrides",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nf.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],nf);
_.d(nf,"ytd-action-basic-immersive-content-renderer",function(){if(CVb!==void 0)return CVb;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return CVb=Y},{mode:1});var yFb;var exN;var F5=function(){return _.Z.apply(this,arguments)||this};
_.m(F5,_.Z);F5.prototype.dataChanged=function(){var Y;((Y=this.data)==null?void 0:Y.backgroundColor)!==void 0&&_.cm(this.hostElement,{"--bgu-color":_.k3(this.data.backgroundColor)})};
F5.prototype.onImageTileClick=function(){var Y;((Y=this.data)==null?0:Y.navigationEndpoint)&&_.$s(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var G;((G=this.data)==null?0:G.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Uk.Object.defineProperties(F5.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var Y;if(((Y=this.data)==null?void 0:Y.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 Y;return((Y=this.data)==null?void 0:Y.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;if(((Y=this.data)==null?void 0:(G=Y.detailsLine)==null?void 0:G.texts)!=null&&((u=this.data)==null?void 0:u.detailsLine.texts.length)>0){var O;return(O=this.data)==null?void 0:O.detailsLine.texts.map(function(Q){return Q.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;if(((Y=this.data)==null?void 0:(G=Y.optionalDetailsLine)==null?void 0:G.texts)!=null&&((u=this.data)==null?void 0:u.optionalDetailsLine.texts.length)>0){var O;return(O=this.data)==null?void 0:O.optionalDetailsLine.texts.map(function(Q){return Q.text}).join("")}return null}}});
F5.prototype.dataChanged=F5.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],F5.prototype,"rendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],F5.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],F5.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data.backgroundColor"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],F5.prototype,"hasBackgroundColor",null);
_.S([_.f("data.objectFit"),_.V("design:type",Object),_.V("design:paramtypes",[])],F5.prototype,"getObjectFit",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.tileRenderingStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],F5.prototype,"hasTileMetadata",null);_.S([_.f("data.detailsLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],F5.prototype,"getSecondaryDetails",null);
_.S([_.f("data.optionalDetailsLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],F5.prototype,"getOptionalDetails",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],F5.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],F5);
_.d(F5,"ytd-image-tile-renderer",function(){if(exN!==void 0)return exN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return exN=Y},{mode:1});var AFb;var pf=function(){return _.Z.apply(this,arguments)||this};
_.m(pf,_.Z);pf.prototype.getOpenLinkIcon=function(){return"arrow_diagonal_up_right"};
pf.prototype.onSitelinkTap=function(){_.$s(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.F("kevlar_command_handler_migration_killswitch"))_.UK(this.hostElement,this.data.clickCommands,this.hostElement);else for(var Y=_.E(this.data.clickCommands),G=Y.next();!G.done;G=Y.next())this.ytComponentBehavior.resolveCommand(G.value)};
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],pf.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],pf.prototype,"rendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],pf.prototype,"data",void 0);_.S([_.pD({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],pf);
_.d(pf,"ytd-sitelink-renderer",function(){if(AFb!==void 0)return AFb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return AFb=Y},{mode:1});var zE=function(){var Y=_.Z.apply(this,arguments)||this;Y.paddingFix=_.F("enable_ads_web_ep_buenos_aires_and_padding_fix");return Y};
_.m(zE,_.Z);zE.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"}}}};
zE.prototype.dataChanged=function(){var Y=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(G){G.clickTrackingParams&&delete G.clickTrackingParams;Y.ytMacroReplacementBehavior.sendServiceRequestAction([G])})};
zE.prototype.shouldHideFooter=function(Y){return!(Y&&_.F("use_ads_engagement_panel_desktop_footer_cta"))};
_.Uk.Object.defineProperties(zE.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?void 0:Y.imageTileRenderers)===void 0||((G=this.data)==null?void 0:G.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(u){var O;return(O=_.z(u,JZb))==null?void 0:O.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?void 0:Y.imageTileRenderers)===void 0||((G=this.data)==null?void 0:G.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(u){var O;return((O=_.z(u,JZb))==null?void 0:O.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
zE.prototype.dataChanged=zE.prototype.dataChanged;_.S([_.x(fex.YtMacroReplacementBehavior),_.V("design:type",Object)],zE.prototype,"ytMacroReplacementBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],zE.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],zE.prototype,"paddingFix",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data.imageTileRenderers"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],zE.prototype,"removeBorderFromImageTiles",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.imageTileRenderers"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],zE.prototype,"useFooteredMetadataRenderingStyle",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zE.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],zE);
_.d(zE,"ytd-action-engagement-panel-content-renderer",function(){if(yFb!==void 0)return yFb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return yFb=Y},{mode:1});var o99;var iEo=_.D(function(Y){var G=Y.data;var u=Y.customCommandResolver;return _.T("ad-grid-card-image-full-metadata-view-model",{class:function(){var O;return((O=G().interaction)==null?0:O.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.iq(_.UV({visibilityCallback:function(O){var Q,M=(Q=G().interaction)==null?void 0:Q.onFirstVisible;O&&M&&_.W3(M)},
showOption:_.B9}),_.fK(function(){return G().interaction},u)),
"aria-label":function(){var O,Q;return(O=G().interaction)==null?void 0:(Q=O.accessibility)==null?void 0:Q.label}},_.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.T(_.HE,{data:function(){return G().adImage}},{adImageViewModel:function(O){return _.T(_.q8,{data:O.data,
customCommandResolver:u})}})),_.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.T(_.X,{cond:function(){return G().headline},
then:function(O){return _.T(_.eO,{text:O,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.T(_.X,{cond:function(){return G().detailsLine},
then:function(O){return _.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.T(_.HE,{data:O},{adDetailsLineViewModel:function(Q){return _.T(_.G9,{data:Q.data,customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.T(_.X,{cond:function(){return G().secondaryDetailsLine},
then:function(O){return _.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.T(_.HE,{data:O},{adDetailsLineViewModel:function(Q){return _.T(_.G9,{data:Q.data,customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Wh");var Rx9=_.D(function(Y){var G=Y.data;var u=Y.customCommandResolver;return _.T("ad-grid-card-image-view-model",{class:function(){var O;return((O=G().interaction)==null?0:O.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.iq(_.UV({visibilityCallback:function(O){var Q,M=(Q=G().interaction)==null?void 0:Q.onFirstVisible;O&&M&&_.W3(M)},
showOption:_.B9}),_.fK(function(){return G().interaction},u)),
"aria-label":function(){var O,Q;return(O=G().interaction)==null?void 0:(Q=O.accessibility)==null?void 0:Q.label}},_.T(_.HE,{data:function(){return G().adImage}},{adImageViewModel:function(O){return _.T(_.q8,{data:O.data,
customCommandResolver:u})}}),_.T("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.T(_.HE,{data:function(){return G().adCardBadge}},{adCardBadgeViewModel:_.z2l})))},"Xh");var wSS=_.D(function(Y){var G=Y.data;var u=Y.customCommandResolver;return _.T("ad-grid-card-text-view-model",{class:function(){var O;return((O=G().interaction)==null?0:O.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.iq(_.UV({visibilityCallback:function(O){var Q,M=(Q=G().interaction)==null?void 0:Q.onFirstVisible;O&&M&&_.W3(M)},
showOption:_.B9}),_.fK(function(){return G().interaction},u)),
"aria-label":function(){var O,Q;return(O=G().interaction)==null?void 0:(Q=O.accessibility)==null?void 0:Q.label}},_.T("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.T(_.X,{cond:function(){return G().title},
then:function(O){return _.T(_.eO,{text:O,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.T("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.T(_.rc,{each:function(){var O;
return((O=G())==null?void 0:O.descriptions)||[]},
keyBy:"INDEX"},function(O){return _.T(_.eO,{text:O,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.T("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.T(_.HE,{data:function(){return G().moreInfoButton}},{adButtonViewModel:function(O){return _.T(_.sM,{data:O.data,
customCommandResolver:u})}})))},"Yh");var ZEN=_.D(function(Y){var G=Y.data;var u=Y.customCommandResolver;var O=Y.adGridCardCollectionStyle;return _.T("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.iq(_.UV({visibilityCallback:function(Q){var M,t=(M=G().interaction)==null?void 0:M.onFirstVisible;Q&&t&&_.W3(t)},
showOption:_.B9})),style:function(){return"grid-template-columns: repeat("+gCB(O?O():G().style)+", minmax(0, 1fr));"}},_.T(_.HE,{data:function(){var Q;
return(Q=G())==null?void 0:Q.gridCards}},{adGridCardImageViewModel:function(Q){return _.T(Rx9,{data:Q.data,
customCommandResolver:u})},
adGridCardImageFullMetadataViewModel:function(Q){return _.T(iEo,{data:Q.data,customCommandResolver:u})},
adGridCardTextViewModel:function(Q){return _.T(wSS,{data:Q.data,customCommandResolver:u})}}))},"Zh");_.hR(_.D(function(Y){var G=Y.data;return _.T("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.iq(_.UV({visibilityCallback:function(u){var O,Q=(O=G().interaction)==null?void 0:O.onFirstVisible;u&&Q&&_.W3(Q)},
showOption:_.B9}),_.fK(function(){return G().interaction},P5N))},_.T("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.T(_.X,{cond:_.VHy("(min-width: "+($u()+qm)+"px)"),
then:function(){return _.T(_.HE,{data:function(){return G().adGridCardCollection}},{adGridCardCollectionViewModel:function(u){return _.T(ZEN,{data:u.data,
customCommandResolver:P5N})}})},
else:function(){return _.T(_.HE,{data:function(){return G().adGridCardCollection}},{adGridCardCollectionViewModel:function(u){return _.T(ZEN,{data:u.data,
customCommandResolver:P5N,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.T("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.T(_.HE,{data:function(){return G().adButton}},{adButtonViewModel:function(u){return _.T(_.sM,{data:u.data,
customCommandResolver:P5N})}})))},"$h"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=Y.data;return _.T("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.iq(_.UV({visibilityCallback:function(u){var O,Q=(O=G().interaction)==null?void 0:O.onFirstVisible;u&&Q&&_.W3(Q)},
showOption:_.B9}),_.fK(function(){return G().interaction},IjB))},_.T("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.T(_.HE,{data:function(){if(_.VHy("(min-width: "+($u()+qm)+"px)")())var u=G().adGridCardCollection;
else{u=Object.assign({},_.z(G().adGridCardCollection,G9w));var O;u.gridCards!==void 0&&((O=u.gridCards)==null?void 0:O.length)>1?u.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":u.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";u={adGridCardCollectionViewModel:u}}return u}},{adGridCardCollectionViewModel:function(u){return _.T(ZEN,{data:u.data,
customCommandResolver:IjB})}})),_.T("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.T(_.HE,{data:function(){return G().adButton}},{adButtonViewModel:function(u){return _.T(_.sM,{data:u.data,
customCommandResolver:IjB})}})))},"ai"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.AC}});var mM=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return Y};
_.m(mM,_.Z);_.H=mM.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 Y=this,G=_.N5(this.hostElement);G&&G.getPlayerPromise().then(function(u){Y.getCachedDataAndListen(u)})};
_.H.getCachedDataAndListen=function(Y){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(Y,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(Y,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=Y)};
_.H.resolveCachedActions=function(){var Y=_.So("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(Y=Y&&Y())&&!_.gX.isEmpty(Y)&&this.sendUpdateEngagementPanelAction(Y);(Y=(Y=_.So("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&Y())&&!_.gX.isEmpty(Y)&&this.sendChangeEngagementPanelVisibilityAction(Y);(Y=(Y=_.So("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&Y())&&!_.gX.isEmpty(Y)&&this.sendScrollToEngagementPanelCommand(Y)};
_.H.sendUpdateEngagementPanelAction=function(Y){var G;_.qZ(this.hostElement,"yt-update-engagement-panel-action",[(G=_.gX.get(Y,"action"))!=null?G:Y])};
_.H.sendChangeEngagementPanelVisibilityAction=function(Y){_.qZ(this.hostElement,"yt-change-engagement-panel-visibility-action",[Y])};
_.H.sendScrollToEngagementPanelCommand=function(Y){_.qZ(this.hostElement,"yt-scroll-to-engagement-panel-command",[Y])};
_.H.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.F("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.R0(Error("Dl"))};
mM.prototype.dataChanged=mM.prototype.dataChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],mM.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],mM.prototype,"componentBehavior",void 0);_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",_.wW)],mM.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],mM.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],mM.prototype,"player",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mM.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],mM);
_.d(mM,"ytd-ads-engagement-panel-content-renderer",function(){if(o99!==void 0)return o99;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
return o99=Y},{mode:1});var DLx;var Wh=function(){var Y=_.Z.apply(this,arguments)||this;Y.player=null;Y.JSC$20666_playerEvents=new Map;Y.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return Y};
_.m(Wh,_.Z);_.H=Wh.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$20666_playerEvents=new Map;this.JSC$20666_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20666_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20666_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20666_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.H.attached=function(){var Y=this,G=_.N5();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));G&&G.getPlayerPromise().then(function(u){Y.setPlayer(u);Y.set("isPageLoad",!1)})};
_.H.setPlayer=function(Y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20666_playerEvents);this.set("player",Y);Y&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$20666_playerEvents),Y.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.H.onLoopRangeChange=function(Y){var G=_.sH().resolve(_.q3(_.bv));if((!G||G.isOnWatch())&&this.hostElement.clientHeight){var u;!Y&&((u=this.data)==null?0:u.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.H.onVideoProgress=function(Y){var G,u,O=((G=this.player)==null?void 0:(u=G.getPresentingPlayerType)==null?void 0:u.call(G))===2;this.isAdPlaying!==O&&this.set("isAdPlaying",O);var Q;if(!O&&(Q=this.player)!=null&&Q.getLoopRange()){u=this.player.getLoopRange();G=u.startTimeMs;u=u.endTimeMs;O=this.player.getProgressState(1).seekableStart;var M;G<O*1E3&&((M=this.data)==null?0:M.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
Y=u<Y*1E3;var t;((t=this.player)==null?0:t.getLoopRange())&&Y&&this.player.seekTo(G/1E3)}};
_.H.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.H.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.H.onYtDeleteClipEngagementPanelCommand=function(Y){_.z(Y,QYj).command&&this.ytComponentBehavior.resolveCommand(_.z(Y,QYj).command)};
_.Uk.Object.defineProperties(Wh.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.voteCount)||_.i8("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Wh.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Wh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Wh.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",_.wW)],Wh.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Wh.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Wh.prototype,"isAdPlaying",void 0);_.S([_.R({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],Wh.prototype,"isPageLoad",void 0);_.S([_.R({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],Wh.prototype,"isDarkTheme",void 0);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Wh.prototype,"voteCount",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Wh.prototype,"channelEndpoint",null);_.S([_.f("channelEndpoint"),_.V("design:type",Object),_.V("design:paramtypes",[])],Wh.prototype,"channelHref",null);_.S([_.pD({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Wh);
_.d(Wh,"ytd-clip-attribution-renderer",function(){if(DLx!==void 0)return DLx;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return DLx=Y},{mode:1});var hxw;var r5=function(){var Y=_.Z.apply(this,arguments)||this;Y.player=null;Y.JSC$20671_playerEvents=new Map;return Y};
_.m(r5,_.Z);_.H=r5.prototype;_.H.created=function(){this.player=null;this.JSC$20671_playerEvents=new Map;this.JSC$20671_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20671_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20671_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.H.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.H.attached=function(){var Y=this,G=_.N5();G&&G.getPlayerPromise().then(function(u){Y.setPlayer(u);Y.set("isPageLoad",!1)})};
_.H.setPlayer=function(Y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20671_playerEvents);this.set("player",Y);if(Y){this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$20671_playerEvents);var G;(Y==null?void 0:(G=Y.getPresentingPlayerType)==null?void 0:G.call(Y))===2&&this.playerAdStartHandler()}};
_.H.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.H.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.H.onVideoProgress=function(){var Y,G,u=((Y=this.player)==null?void 0:(G=Y.getPresentingPlayerType)==null?void 0:G.call(Y))===2;this.isAdPlaying!==u&&this.set("isAdPlaying",u)};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],r5.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",_.wW)],r5.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],r5.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],r5.prototype,"isAdPlaying",void 0);
_.S([_.R({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],r5.prototype,"isPageLoad",void 0);_.S([_.pD({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],r5);
_.d(r5,"ytd-clip-section-footer-renderer",function(){if(hxw!==void 0)return hxw;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return hxw=Y},{mode:1});var dLB;var bEN;var SJb=function(){return _.Z.apply(this,arguments)||this};
_.m(SJb,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],SJb.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],SJb.prototype,"data",void 0);_.S([_.pD({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],SJb);
_.d(SJb,"ytd-clip-ad-state-renderer",function(){if(bEN!==void 0)return bEN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return bEN=Y},{mode:1});var NFS;var xF=function(){var Y=_.Z.apply(this,arguments)||this;Y.value="";Y.valid=!1;Y.userChangedValue=!1;Y.disabled=!1;Y.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return Y};
_.m(xF,_.Z);_.H=xF.prototype;_.H.detached=function(){this.userChangedValue=!1};
_.H.handleKeyDown=function(Y){if(_.Hc)var G=13;else _.RjR&&_.Mt?G=13:G=13;Y.keyCode===G&&Y.preventDefault()};
_.H.handleInput=function(){var Y=_.l0(this.hostElement).querySelector("#title");if(Y){var G=(Y.value||"").replace(/\r|\n/g," ");this.set("value",G);Y.value=G;this.valid=Y.validate();this.userChangedValue=!0}};
_.H.handleBlur=function(){this.valid=_.l0(this.hostElement).querySelector("#title").validate()};
_.H.onValueChanged=function(){_.$s(this.hostElement,"title-changed",{title:this.value})};
_.H.onValidChanged=function(){_.$s(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.H.setInput=function(Y,G){var u=_.l0(this.hostElement).querySelector("#title");u&&(u.value=Y,this.handleInput(),G&&(u.invalid=!1,this.valid=!0))};
_.H.onClipCreationDisable=function(){this.set("disabled",!0)};
_.H.onClipCreationEnable=function(){this.set("disabled",!1)};
_.H.onClipCreationVisibilityChange=function(Y){var G=this;Y.visible?requestAnimationFrame(function(){var u;((u=_.l0(G.hostElement).querySelector("#title"))==null?void 0:u.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
xF.prototype.onValidChanged=xF.prototype.onValidChanged;xF.prototype.onValueChanged=xF.prototype.onValueChanged;xF.prototype.handleBlur=xF.prototype.handleBlur;xF.prototype.handleInput=xF.prototype.handleInput;xF.prototype.handleKeyDown=xF.prototype.handleKeyDown;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],xF.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],xF.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],xF.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],xF.prototype,"value",void 0);_.S([_.R(),_.V("design:type",Object)],xF.prototype,"valid",void 0);_.S([_.R(),_.V("design:type",Object)],xF.prototype,"userChangedValue",void 0);_.S([_.R(),_.V("design:type",Object)],xF.prototype,"disabled",void 0);_.S([_.Yo("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],xF.prototype,"handleKeyDown",null);
_.S([_.Yo("input"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xF.prototype,"handleInput",null);_.S([_.Yo("blur"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xF.prototype,"handleBlur",null);_.S([_.GO("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xF.prototype,"onValueChanged",null);
_.S([_.GO("valid"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xF.prototype,"onValidChanged",null);_.S([_.pD({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],xF);
_.d(xF,"ytd-clip-creation-text-input-renderer",function(){if(NFS!==void 0)return NFS;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return NFS=Y},{mode:1});var jlx;var Vew;var ley;var BFx;var $Lo;var ff=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};Y.pendingStoryboardImages_={};Y.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];Y.tickLabelInterval=30;Y.mediumTickInterval=5;Y.largeTickInterval=15;Y.aboveRulerHeight=32;Y.rulerHeight=50;Y.smallTickHeight=4;Y.mediumTickHeight=8;Y.largeTickHeight=16;Y.mediaListeners_=
{};return Y};
_.m(ff,_.Z);_.H=ff.prototype;_.H.attached=function(){var Y=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(G){G=_.E(["screen and (min-resolution: "+G+")","screen and (max-resolution: "+G+")"]);for(var u=G.next();!u.done;u=G.next()){u=u.value;var O=window.matchMedia(u);O&&(Y.mediaListeners_[u]=Y.updatePixelRatio_.bind(Y),O.addEventListener?O.addEventListener("change",Y.mediaListeners_[u]):O.addListener?O.addListener(Y.mediaListeners_[u]):delete Y.mediaListeners_[u])}})};
_.H.detached=function(){this.setPlayer(null);for(var Y=_.E(Object.keys(this.mediaListeners_)),G=Y.next();!G.done;G=Y.next()){var u=G.value;G=this.mediaListeners_[u];(u=window.matchMedia(u))&&(u.removeEventListener?u.removeEventListener("change",G):u.removeListener&&u.removeListener(G))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.H.onVisibilityChangedAction_=function(Y){var G=this;Y.visible&&!this.player_&&(Y=_.N5())&&Y.getPlayerPromise().then(function(u){G.setPlayer(u)})};
_.H.setPlayer=function(Y){Y&&this.set("player_",Y)};
_.H.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.H.setUpCanvas_=function(){var Y=this.rulerWidth,G=this.devicePixelRatio_,u=this.visible;this.set("canvasReady_",!1);if(u&&G!==0){u=this.aboveRulerHeight+this.rulerHeight;var O=_.l0(this.hostElement).querySelector("#ticks");O.width=Y*G;O.height=u*G;O.style.width=Y+"px";O.style.height=u+"px";O.getContext("2d").scale(G,G);this.set("canvasReady_",!0)}};
_.H.drawRuler_=function(Y,G,u,O,Q,M,t,K,L,g,P,I){Y&&u&&G&&(Y=_.l0(this.hostElement).querySelector("#ticks"),G=Y.getContext("2d"),G.clearRect(0,0,Y.width,Y.height),G.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),G.lineWidth=2,G.beginPath(),G.moveTo(0,this.aboveRulerHeight),G.lineTo(Y.width,this.aboveRulerHeight),G.moveTo(0,Y.height),G.lineTo(Y.width,Y.height),G.stroke(),this.drawRulerTicks_(Y,M,Q,O),this.drawStoryboardImages_(Y,u,M,Q,O),G.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
G.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(t-M,O,!1),this.rulerHeight),u=this.timeToPixels_(K-M,O,!1),G.fillRect(u,this.aboveRulerHeight,Y.width-u,this.rulerHeight),this.drawSpeedLines_(Y,M,I))};
_.H.drawRulerTicks_=function(Y,G,u,O){var Q=Y.getContext("2d");Q.save();Q.lineWidth=1;for(var M=Math.floor(Math.max(0,G-this.tickLabelInterval));M<G+u;M++){Q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var t=(M-G)*O;Q.beginPath();Q.moveTo(t,Y.height);var K=this.smallTickHeight;M%this.largeTickInterval===0?K=this.largeTickHeight:M%this.mediumTickInterval===0&&(K=this.mediumTickHeight);Q.lineTo(t,Y.height-K);Q.stroke();M%this.tickLabelInterval===0&&(Q.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),Q.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),Q.fillText(Ul(M),t+4,12),Q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Q.moveTo(t,0),Q.lineTo(t,this.aboveRulerHeight),Q.stroke())}Q.restore()};
_.H.percentToHex_=function(Y){Y=Math.round(Y*255).toString(16);Y.length<2&&(Y="0"+Y);return Y};
_.H.drawSpeedLines_=function(Y,G,u){var O=Y.getContext("2d");O.save();var Q=Math.min(25,Math.abs(u)-15)/25,M=Y.width*.3*Q,t=Y.width*-.3,K=Y.width*1.3,L=this.aboveRulerHeight;Y=Y.height;var g=Math.round(4*Q),P=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");P.length<7&&(P="#"+P.substring(1,4).repeat(2));var I=this.percentToHex_(.5+Q/2);I=P+I;P+="00";if(Q>0)for(Q=0;Q<g;Q++){var k=t+Math.random()*(K-t),n=L+Math.random()*(Y-L),p=M+G%M,W=O.createLinearGradient(k,n,k+p,n);
u<0?(W.addColorStop(0,I),W.addColorStop(.4,I),W.addColorStop(.9,P)):(W.addColorStop(.1,P),W.addColorStop(.6,I),W.addColorStop(1,I));O.strokeStyle=W;O.lineWidth=1;O.beginPath();O.moveTo(k,n);O.lineTo(k+p,n);O.stroke()}O.restore()};
_.H.getStoryboardForTime_=function(Y,G,u){u===void 0&&(u=G.getNumberOfStoryboardLevels()-1);Y=G.getStoryboardFrameIndex(Y,u);return G.getStoryboardFrame(Y,u)};
_.H.drawStoryboardImages_=function(Y,G,u,O,Q){if(!this.disabled){Y=Y.getContext("2d");var M=this.getStoryboardForTime_(0,G);if(M){var t=M.width/M.columns;M=M.height/M.rows;var K=t/M,L=this.rulerHeight*K;L=this.tickLabelInterval*(K<this.tickLabelInterval*Q/this.rulerHeight?1/Math.floor(this.tickLabelInterval*Q/L):Math.round(L/(this.tickLabelInterval*Q)));var g=L*Q,P=this.rulerHeight,I=g/this.rulerHeight,k=Math.floor(Math.max(0,u-L));for(k-=k%L;k<u+O;k+=L){var n=this.getStoryboardForTime_(k,G),p=this.getPreloadedStoryboard_(n.url);
if(p){var W=(k-u)*Q,C=this.aboveRulerHeight,e=n.column*t,w=n.row*M;if(K<I){var B=P/(g/K);n=t;B*=M;w+=(M-B)/2}else n=g/(P*K)*t,B=M,e+=(t-n)/2;Y.drawImage(p,e,w,n,B,W,C,g,P)}else this.fetchStoryboardImage_(n)}}}};
_.H.getPreloadedStoryboard_=function(Y){return this.storyboardImages_.find(function(G){if(G.src==Y)return!0;var u=G.src.indexOf(Y);return u!=-1&&u==G.src.length-Y.length})};
_.H.fetchStoryboardImage_=function(Y){var G=this,u=this.getPreloadedStoryboard_(Y.url),O=this.pendingStoryboardImages_[Y.url];u||O!==void 0||(u=new Promise(function(Q){var M=new Image(Y.width,Y.height);M.src=Y.url;M.onload=function(){Q(M)};
M.onerror=function(){Q(null)}}),this.pendingStoryboardImages_[Y.url]=u,u.then(function(Q){Q&&G.push("storyboardImages_",Q);
return Q}).finally(function(){delete G.pendingStoryboardImages_[Y.url]}))};
_.H.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.H.timeToPixels_=function(Y,G,u){Y*=G;return u===void 0||u?Y+"px":Y};
_.H.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
ff.prototype.drawRuler_=ff.prototype.drawRuler_;ff.prototype.setUpCanvas_=ff.prototype.setUpCanvas_;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],ff.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ff.prototype,"ytRendererBehavior",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],ff.prototype,"start",void 0);_.S([_.R({value:30}),_.V("design:type",Number)],ff.prototype,"end",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],ff.prototype,"visible",void 0);_.S([_.R(),_.V("design:type",Object)],ff.prototype,"player_",void 0);_.S([_.R(),_.V("design:type",Number)],ff.prototype,"tickSpacing",void 0);_.S([_.R(),_.V("design:type",Number)],ff.prototype,"windowSizeSec",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],ff.prototype,"rulerWidth",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],ff.prototype,"rulerShift",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],ff.prototype,"canvasReady_",void 0);_.S([_.R({value:function(){return[]}}),
_.V("design:type",Array)],ff.prototype,"storyboardImages_",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],ff.prototype,"disabled",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],ff.prototype,"forceRender_",void 0);_.S([_.R({value:1}),_.V("design:type",Number)],ff.prototype,"devicePixelRatio_",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],ff.prototype,"windowSpeed",void 0);
_.S([_.GO("visible","devicePixelRatio_","rulerWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ff.prototype,"setUpCanvas_",null);
_.S([_.GO("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.V("design:type",Function),_.V("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.V("design:returntype")],ff.prototype,"drawRuler_",null);_.S([_.Ff({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],ff);
_.d(ff,"yt-clip-creation-scrubber-canvas",function(){if($Lo===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);$Lo=Y}Y=$Lo;return Y},
{mode:2});var qJV;var slV;var Cf=function(){var Y=_.Z.apply(this,arguments)||this;Y.start=0;Y.end=30;Y.visible=!1;Y.draggingLeft_=!1;Y.draggingRight_=!1;Y.draggingRuler_=!1;Y.draggingWindow_=!1;Y.seekableStart=0;Y.seekableEnd=0;Y.rulerWidth_=0;Y.rulerShift_=0;Y.windowSlideSpeed=0;Y.disabled=!1;Y.initialized=!1;Y.durationAccessibilityLabel="";Y.activeLoopRange_=!1;Y.rulerDragMouseStart_=0;Y.rulerDragRulerStart_=0;Y.rulerDragStartTime_=0;Y.rulerDragEndTime_=0;Y.dragMouseLastX_=0;Y.scrollInterval_=null;Y.scrubberVe_=null;Y.boundHandlers_=
{};Y.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return Y};
_.m(Cf,_.Z);_.H=Cf.prototype;
_.H.created=function(){var Y=this;this.JSC$20685_playerEvents=new Map;this.JSC$20685_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20685_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20685_playerEvents.set("onStateChange",this.onStateChange_);var G={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(G).forEach(function(u){Y.boundHandlers_[u]=G[u].bind(Y)})};
_.H.attached=function(){this.activeLoopRange_=!1;_.l0(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.l0(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.VZ(156731)};
_.H.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.l0(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.l0(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.H.onVisibilityChangedAction_=function(Y){var G=this;Y.visible&&!this.player_&&(Y=_.N5())&&Y.getPlayerPromise().then(function(u){G.setPlayer(u)})};
_.H.setPlayer=function(Y){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20685_playerEvents);Y&&(this.set("player_",Y),this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$20685_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(Y){this.disabled||(Y.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=Y.clientX,Y.target===_.l0(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():Y.target===_.l0(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(Y){this.disabled||(Y.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=Y.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 Y=this;this.scrollInterval_=setInterval(function(){var G=Y.windowSlideSpeed;if(G=oT9(Y.start,Y.boundedRulerStartLimit_())?G-.1:oT9(Y.end,Y.boundedRulerEndLimit_())?G+.1:0){var u=Y.capRulerOffset_(Y.rulerShift_+G);u==Y.rulerShift_?G=0:(Y.set("rulerShift_",u),_.$s(Y.hostElement,"set-fixed-length-range",{start:Y.start+G,duration:Y.end-Y.start}))}Y.set("windowSlideSpeed",G)},33)};
_.H.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.H.endDrag_=function(){this.logClick();var Y=void 0;this.draggingRight_?Y=this.end-1:this.draggingLeft_&&(Y=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,Y);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_",_.l0(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.H.handleMouseDrag_=function(Y){Y.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(Y):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(Y):this.draggingWindow_&&this.handleWindowDrag_(Y))};
_.H.handleRulerDrag_=function(Y){Y=this.pixelsToTime_(Y.clientX-this.rulerDragMouseStart_);Y=this.capRulerOffset_(this.rulerDragRulerStart_-Y);this.set("rulerShift_",Y);var G=this.rulerDragStartTime_-(this.rulerDragRulerStart_-Y);_.$s(this.hostElement,"set-fixed-length-range",{start:G,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-Y)-G})};
_.H.handleWindowDrag_=function(Y){var G=Y.clientX-this.dragMouseLastX_;this.dragMouseLastX_=Y.clientX;Y=this.pixelsToTime_(G);_.$s(this.hostElement,"set-fixed-length-range",{start:this.start+Y,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.H.capRulerOffset_=function(Y){var G=this.seekableStart-this.pixelsToTime_(16),u=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(G,Y),u)};
_.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(Y){var G=Y.clientX-this.dragMouseLastX_;this.dragMouseLastX_=Y.clientX;Y=this.pixelsToTime_(G);if(this.draggingLeft_){var u=this.start+Y;var O=this.end}else this.draggingRight_&&(u=this.start,O=this.end+Y);_.$s(this.hostElement,"set-range",{start:u,end:O,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.H.onVideoProgress_=function(Y){this.disabled||(Y=this.timeToPixels_(Y-this.rulerShift_,this.tickSpacing_),_.l0(this.hostElement).querySelector("#playhead").style.transform="translateX("+Y+")")};
_.H.onClipCreationDisable_=function(){this.endDrag_()};
_.H.timeToPixels_=function(Y,G,u){Y*=G;return u===void 0||u?Y+"px":Y};
_.H.pixelsToTime_=function(Y){return Y/this.tickSpacing_};
_.H.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.H.centerRuler_=function(Y,G,u){this.set("rulerShift_",this.capRulerOffset_(Y+(G-Y)/2-u/2))};
_.H.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.H.updateLoopRange_=function(Y,G,u,O,Q,M,t){Y&&(G&&O&&!u?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(Y.pauseVideo(),Y.seekTo(Q,!1,void 0,void 0,50)):this.draggingRight_?(Y.pauseVideo(),Y.seekTo(M-.1,!1,void 0,void 0,50)):(t!==void 0?Y.seekTo(t,!0,void 0,void 0,50):(G=Y.getCurrentTime(),G<Q||G>M?Y.seekTo(Q,!0,void 0,void 0,50):Y.seekTo(G,!0,void 0,void 0,50)),Y.playVideo()),Y.setLoopRange({startTimeMs:Q*1E3,endTimeMs:M*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(Y.getCurrentTime())):
this.activeLoopRange_&&(Y.setLoopRange(null),this.activeLoopRange_=!1))};
_.H.updateHandles_=function(){_.l0(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.l0(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.H.updateRuler_=function(){var Y=this.end,G=this.start,u=this.draggableStartLimit_(),O=this.draggableEndLimit_();(G<u-.001||Y>O+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.H.computeDurationLabel_=function(Y,G){return Y?Y.replace("$clip_length",parseFloat(G).toFixed(1)):""};
_.H.computeDuration_=function(Y,G){return this.isValidTime_(Y)&&this.isValidTime_(G)&&Y<G?G-Y:0};
_.H.isValidTime_=function(Y){return isNaN(parseFloat(Y))||Y<0?!1:this.player_?Y>=this.seekableStart&&Y<=this.seekableEnd:!0};
_.H.computeWindowSizeSec_=function(Y,G,u){return Math.min((Y||12E4)/1E3,u-G)};
_.H.computeTickSpacing_=function(Y,G){return G?G/Y:1};
_.H.onDragStateChanged_=function(){_.$s(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.H.centerRangeOnTime_=function(Y){var G=this.duration;Y=nCw(Y-G/2,G,this.seekableStart,this.seekableEnd);_.$s(this.hostElement,"set-fixed-length-range",{start:Y.start,duration:Y.end-Y.start})};
_.H.nearlyLessThan_=function(Y,G,u){return Y+(u===void 0?1E-6:u)<G};
_.H.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var Y=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(Y,this.start)||this.nearlyLessThan_(this.end,Y))&&this.centerRangeOnTime_(Y)}};
_.H.onStateChange_=function(Y){this.visible&&!this.disabled&&Y==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.H.computeDragState_=function(Y,G,u,O){return Y?"left":G?"right":u?"ruler":O?"window":"none"};
_.H.logClick=function(){var Y=_.FA(),G=_.nX();Y&&G&&this.scrubberVe_&&(_.F("combine_ve_grafts")?_.lq(_.M4(),this.scrubberVe_,G):_.y6(Y,G,this.scrubberVe_),_.RK(Y,this.scrubberVe_))};
Cf.prototype.onDragStateChanged_=Cf.prototype.onDragStateChanged_;Cf.prototype.updateRuler_=Cf.prototype.updateRuler_;Cf.prototype.updateHandles_=Cf.prototype.updateHandles_;Cf.prototype.onUpdateLoopRange=Cf.prototype.onUpdateLoopRange;Cf.prototype.onInitializedChanged_=Cf.prototype.onInitializedChanged_;Cf.prototype.onVisibleChanged_=Cf.prototype.onVisibleChanged_;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Cf.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",Object)],Cf.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Cf.prototype,"start",void 0);_.S([_.R(),_.V("design:type",Object)],Cf.prototype,"end",void 0);_.S([_.R({computed:"computeDuration_(start, end)"}),_.V("design:type",Number)],Cf.prototype,"duration",void 0);
_.S([_.R(),_.V("design:type",String)],Cf.prototype,"lengthTemplate",void 0);_.S([_.R({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.V("design:type",String)],Cf.prototype,"durationLabel",void 0);_.S([_.R(),_.V("design:type",Object)],Cf.prototype,"visible",void 0);_.S([_.R(),_.V("design:type",Object)],Cf.prototype,"player_",void 0);_.S([_.R(),_.V("design:type",Object)],Cf.prototype,"draggingLeft_",void 0);_.S([_.R(),_.V("design:type",Object)],Cf.prototype,"draggingRight_",void 0);
_.S([_.R(),_.V("design:type",Object)],Cf.prototype,"draggingRuler_",void 0);_.S([_.R({value:!1}),_.V("design:type",Object)],Cf.prototype,"draggingWindow_",void 0);_.S([_.R({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.V("design:type",Number)],Cf.prototype,"tickSpacing_",void 0);_.S([_.R(),_.V("design:type",Object)],Cf.prototype,"seekableStart",void 0);_.S([_.R(),_.V("design:type",Object)],Cf.prototype,"seekableEnd",void 0);
_.S([_.R(),_.V("design:type",Number)],Cf.prototype,"windowSizeMs",void 0);_.S([_.R({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.V("design:type",Number)],Cf.prototype,"windowSizeSec_",void 0);_.S([_.R(),_.V("design:type",Object)],Cf.prototype,"rulerWidth_",void 0);_.S([_.R(),_.V("design:type",Object)],Cf.prototype,"rulerShift_",void 0);_.S([_.R(),_.V("design:type",Object)],Cf.prototype,"windowSlideSpeed",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Cf.prototype,"disabled",void 0);_.S([_.R(),_.V("design:type",Object)],Cf.prototype,"initialized",void 0);_.S([_.R(),_.V("design:type",Object)],Cf.prototype,"durationAccessibilityLabel",void 0);_.S([_.R({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.V("design:type",String)],Cf.prototype,"dragState",void 0);
_.S([_.GO("visible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cf.prototype,"onVisibleChanged_",null);_.S([_.GO("initialized"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cf.prototype,"onInitializedChanged_",null);_.S([_.GO("player_","visible","disabled","initialized","start","end"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cf.prototype,"onUpdateLoopRange",null);
_.S([_.GO("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cf.prototype,"updateHandles_",null);_.S([_.GO("start","end"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cf.prototype,"updateRuler_",null);
_.S([_.GO("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cf.prototype,"onDragStateChanged_",null);_.S([_.Ff({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Cf);
_.d(Cf,"yt-clip-creation-scrubber-view",function(){if(slV===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;qJV===void 0&&(qJV=document.createElement("template"));var O=qJV;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);slV=Y}Y=slV;return Y},{mode:2});var ye=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};Y.startHighlightTimeout=0;Y.endHighlightTimeout=0;return Y};
_.m(ye,_.Z);_.H=ye.prototype;_.H.attached=function(){var Y=this;this.startInput.addEventListener("input",function(G){return Y.handleStartInput_(G)});
this.endInput.addEventListener("input",function(G){return Y.handleEndInput_(G)});
this.startInput.addEventListener("focusout",function(G){return Y.handleStartBlur_(G)});
this.endInput.addEventListener("focusout",function(G){return Y.handleEndBlur_(G)})};
_.H.setPlayer=function(Y){this.set("player_",Y)};
_.H.onSetFixedLengthRange_=function(Y){var G=Y.detail;Y=G.start;var u=G.duration,O=G.startLimit;G=G.endLimit;O||(O=this.seekableStart_);G||(G=this.seekableEnd_);Y=nCw(Y,u,O,G);this.start=Y.start;this.end=Y.end};
_.H.onSetRange_=function(Y){var G=Y.detail;Y=G.start;var u=G.end,O=G.startLimit;G=G.endLimit;O||(O=this.seekableStart_);G||(G=this.seekableEnd_);if(Y=Fi9(Y,u,O,G,this.minLengthSec,this.maxLengthSec))this.start=Y.start,this.end=Y.end};
_.H.updateInputs_=function(){var Y=this.end,G=this.start;this.startInput.focused||(this.startInput.value=Ul(G,!0));this.endInput.focused||(this.endInput.value=Ul(Y,!0))};
_.H.handleStartInput_=function(Y){Y=kiw(Y.target.value);if(Y===null)this.set("startValid",!1);else{var G=this.end,u=Fi9(Y,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);u?(this.set("endWillUpdate",u.end!==G),this.set("startValid",u.start===Y)):this.set("startValid",!1)}};
_.H.handleEndInput_=function(Y){Y=kiw(Y.target.value);if(Y===null)this.set("endValid",!1);else{var G=this.start,u=pEo(this.start,Y,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);u?(this.set("startWillUpdate",u.start!==G),this.set("endValid",u.end===Y)):this.set("endValid",!1)}};
_.H.handleStartBlur_=function(Y){Y=kiw(Y.target.value);Y===null?this.startInput.value=Ul(this.start,!0):this.forceUpdateInputs_(Fi9(Y,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.H.handleEndBlur_=function(Y){Y=kiw(Y.target.value);Y===null?this.endInput.value=Ul(this.end,!0):this.forceUpdateInputs_(pEo(this.start,Y,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.H.forceUpdateInputs_=function(Y){Y&&(this.start=Y.start,this.end=Y.end);this.startInput.value=Ul(this.start,!0);this.endInput.value=Ul(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.H.initializeClipRange_=function(){var Y=this.seekableEnd_,G=this.seekableStart_,u=this.visible_,O=this.player_;if(!O||!u||G===null||!Y)this.set("initialized",!1);else if(!this.initialized){var Q=O.getCurrentTime(),M=this.getDefaultLengthSec_();u=O.getVideoData();var t=O.getPlayerState()==1,K=u.isLive;M=Math.min(M,Y-G);Q=Math.max(0,Q);Y=K?pEo(Q-M,Q,G,Y,this.minLengthSec,this.maxLengthSec):t?nCw(Q-M/2,M,G,Y):nCw(Q,M,G,Y);this.start=Y.start;this.end=Y.end;this.set("initialized",!0);u.isLive&&O.seekTo(Y.start);
this.startInput.value=Ul(this.start,!0);this.endInput.value=Ul(this.end,!0)}};
_.H.onStartChanged_=function(){var Y=this;_.$s(this.hostElement,"start-changed",{start:this.start});var G;isNaN((G=this.oldStart)!=null?G:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){Y.set("highlightStart",!1);Y.startHighlightTimeout=0;Y.oldStart=Y.start},3E3))};
_.H.onEndChanged_=function(){var Y=this;_.$s(this.hostElement,"end-changed",{end:this.end});var G;isNaN((G=this.oldEnd)!=null?G:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){Y.set("highlightEnd",!1);Y.endHighlightTimeout=0;Y.oldEnd=Y.end},3E3))};
_.H.onVisibilityChangedAction_=function(Y){var G=this;this.set("visible_",Y.visible);this.visible_&&!this.player_&&(Y=_.N5())&&Y.getPlayerPromise().then(function(u){G.setPlayer(u)})};
_.H.computeMinLengthSec_=function(Y){return Y/1E3||5};
_.H.computeMaxLengthSec_=function(Y){return Y/1E3||60};
_.H.computeDefaultLengthSec_=function(Y){return Y/1E3};
_.H.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.H.computeSeekableStart_=function(Y,G){return Y&&G?Y.getProgressState(1).seekableStart:0};
_.H.computeSeekableEnd_=function(Y,G){return Y&&G?Y.getProgressState(1).seekableEnd:0};
_.H.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.H.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.H.onDragState_=function(Y){this.set("highlightStart",Y.detail.startChanging);this.set("highlightEnd",Y.detail.endChanging)};
ye.prototype.onDragState_=ye.prototype.onDragState_;ye.prototype.onEndChanged_=ye.prototype.onEndChanged_;ye.prototype.onStartChanged_=ye.prototype.onStartChanged_;ye.prototype.initializeClipRange_=ye.prototype.initializeClipRange_;ye.prototype.updateInputs_=ye.prototype.updateInputs_;ye.prototype.onSetRange_=ye.prototype.onSetRange_;ye.prototype.onSetFixedLengthRange_=ye.prototype.onSetFixedLengthRange_;
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],ye.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ye.prototype,"data",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],ye.prototype,"start",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],ye.prototype,"startValid",void 0);
_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],ye.prototype,"startWillUpdate",void 0);_.S([_.R({value:30}),_.V("design:type",Number)],ye.prototype,"end",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],ye.prototype,"endValid",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],ye.prototype,"endWillUpdate",void 0);_.S([_.R({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.V("design:type",Number)],ye.prototype,"minLengthSec",void 0);
_.S([_.R({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.V("design:type",Number)],ye.prototype,"maxLengthSec",void 0);_.S([_.R({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.V("design:type",Number)],ye.prototype,"defaultLengthSec",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],ye.prototype,"visible_",void 0);_.S([_.R(),_.V("design:type",Object)],ye.prototype,"player_",void 0);
_.S([_.R({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.V("design:type",Number)],ye.prototype,"seekableStart_",void 0);_.S([_.R({computed:"computeSeekableEnd_(player_, visible_)"}),_.V("design:type",Number)],ye.prototype,"seekableEnd_",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],ye.prototype,"initialized",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],ye.prototype,"disabled",void 0);
_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],ye.prototype,"highlightStart",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],ye.prototype,"highlightEnd",void 0);_.S([_.Ox("#start"),_.V("design:type",HTMLInputElement)],ye.prototype,"startInput",void 0);_.S([_.Ox("#end"),_.V("design:type",HTMLInputElement)],ye.prototype,"endInput",void 0);
_.S([_.Yo("set-fixed-length-range"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ye.prototype,"onSetFixedLengthRange_",null);_.S([_.Yo("set-range"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ye.prototype,"onSetRange_",null);_.S([_.GO("start","end"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ye.prototype,"updateInputs_",null);
_.S([_.GO("player_","visible_","seekableStart_","seekableEnd_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ye.prototype,"initializeClipRange_",null);_.S([_.GO("start"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ye.prototype,"onStartChanged_",null);_.S([_.GO("end"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ye.prototype,"onEndChanged_",null);
_.S([_.Yo("clips-drag-state"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ye.prototype,"onDragState_",null);_.S([_.Ff({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],ye);
_.d(ye,"yt-clip-creation-scrubber-renderer",function(){if(BFx===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;ley===void 0&&(ley=document.createElement("template"));var O=ley;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);BFx=Y}Y=BFx;return Y},{mode:2});var eu=function(){var Y=_.Z.apply(this,arguments)||this;Y.player_=null;Y.JSC$20699_playerEvents=new Map;Y.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return Y};
_.m(eu,_.Z);_.H=eu.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$20699_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20699_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20699_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20699_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.H.detached=function(){this.setPlayer(null)};
_.H.onVisibilityChangedAction_=function(Y){var G=this,u;if((u=this.data)==null?0:u.externalVideoId){var O;this.videoId=(O=this.data)==null?void 0:O.externalVideoId}this.getPlayer().then(function(Q){if(Y.visible)G.returnTime=Q.getCurrentTime(),G.isAtLiveHead=Q.getProgressState().isAtLiveHead;else{var M=G.returnTime;G.isAtLiveHead&&(M=Number.POSITIVE_INFINITY);Q.seekTo(M,void 0,void 0,void 0,51)}})};
_.H.getPlayer=function(){var Y=this;if(!this.player_){var G=_.N5();if(G)return G.getPlayerPromise().then(function(u){Y.setPlayer(u);return u})}return Promise.resolve(this.player_)};
_.H.setPlayer=function(Y){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20699_playerEvents);if(Y){this.player_=Y;var G;((G=this.data)==null?0:G.externalVideoId)||this.set("videoId",Y.getVideoData().video_id||"");var u;(Y==null?void 0:(u=Y.getPresentingPlayerType)==null?void 0:u.call(Y))===2&&(this.set("isAdPlaying",!0),_.qZ(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$20699_playerEvents)}};
_.H.ready=function(){_.l0(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.H.onTitleChanged_=function(Y){this.set("titleValue",Y.detail.title)};
_.H.onStartChanged_=function(Y){this.set("start",Y.detail.start)};
_.H.onEndChanged_=function(Y){this.set("end",Y.detail.end)};
_.H.onTitleValidChanged_=function(Y){this.set("titleValid",Y.detail.valid)};
_.H.onStartValidChanged_=function(Y){this.set("startValid",Y.detail.valid)};
_.H.onEndValidChanged_=function(Y){this.set("endValid",Y.detail.valid)};
_.H.onVideoDataChange_=function(){var Y;if((Y=this.data)==null||!Y.externalVideoId){var G;this.set("videoId",((G=this.player_)==null?void 0:G.getVideoData().video_id)||"")}};
_.H.computeFormValid_=function(Y,G,u,O){return!!(Y&&G&&u&&O)};
_.H.computeCancelButton_=function(Y,G,u){return Y&&_.z(Y,_.ru)?{buttonRenderer:Object.assign({},_.z(Y,_.ru),{isDisabled:G||u})}:null};
_.H.computeSubmitButton_=function(Y,G,u){return Y&&_.z(Y,_.ru)?{buttonRenderer:Object.assign({},_.z(Y,_.ru),{command:void 0,isDisabled:!this.formValid||G||u})}:null};
_.H.computeSubmitCommand_=function(Y){return Y||null};
_.H.onSubmit_=function(Y){var G=this;Y.stopPropagation();Y.preventDefault();this.submitCommand_&&(Y={},Y.comment_text=this.titleValue,Y.clip_external_video_id=this.videoId,Y.clip_offset_ms=parseInt(this.start*1E3,10),Y.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.c$(this.hostElement,[this.submitCommand_,Y]).then(function(){G.set("isLoading_",!1)},function(){G.set("isLoading_",!1)}))};
_.H.playerAdStartHandler_=function(){_.qZ(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.H.playerAdEndHandler_=function(){_.qZ(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.H.onVideoProgress_=function(){var Y=this;this.getPlayer().then(function(G){var u,O=(G==null?void 0:(u=G.getPresentingPlayerType)==null?void 0:u.call(G))===2;Y.isAdPlaying!==O&&(O?Y.playerAdStartHandler_():Y.playerAdEndHandler_())})};
eu.prototype.onEndValidChanged_=eu.prototype.onEndValidChanged_;eu.prototype.onStartValidChanged_=eu.prototype.onStartValidChanged_;eu.prototype.onTitleValidChanged_=eu.prototype.onTitleValidChanged_;eu.prototype.onEndChanged_=eu.prototype.onEndChanged_;eu.prototype.onStartChanged_=eu.prototype.onStartChanged_;eu.prototype.onTitleChanged_=eu.prototype.onTitleChanged_;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],eu.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",Object)],eu.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],eu.prototype,"data",void 0);_.S([_.R({value:""}),_.V("design:type",String)],eu.prototype,"titleValue",void 0);
_.S([_.R({value:!1}),_.V("design:type",Boolean)],eu.prototype,"titleValid",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],eu.prototype,"start",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],eu.prototype,"startValid",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],eu.prototype,"end",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],eu.prototype,"endValid",void 0);_.S([_.R({value:""}),_.V("design:type",String)],eu.prototype,"videoId",void 0);
_.S([_.R({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.V("design:type",Boolean)],eu.prototype,"formValid",void 0);_.S([_.R({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.V("design:type",Object)],eu.prototype,"submitButton_",void 0);_.S([_.R({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.V("design:type",Object)],eu.prototype,"submitCommand_",void 0);
_.S([_.R({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.V("design:type",Object)],eu.prototype,"cancelButton_",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],eu.prototype,"isLoading_",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],eu.prototype,"isAdPlaying",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],eu.prototype,"returnTime",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],eu.prototype,"isAtLiveHead",void 0);
_.S([_.Yo("title-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],eu.prototype,"onTitleChanged_",null);_.S([_.Yo("start-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],eu.prototype,"onStartChanged_",null);_.S([_.Yo("end-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],eu.prototype,"onEndChanged_",null);
_.S([_.Yo("title-valid-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],eu.prototype,"onTitleValidChanged_",null);_.S([_.Yo("start-valid-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],eu.prototype,"onStartValidChanged_",null);_.S([_.Yo("end-valid-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],eu.prototype,"onEndValidChanged_",null);
_.S([_.Ff({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],eu);
_.d(eu,"yt-clip-creation-renderer",function(){if(Vew===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;jlx===void 0&&(jlx=document.createElement("template"));var O=jlx;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Vew=Y}Y=Vew;return Y},{mode:2});var A6=function(){return _.Z.apply(this,arguments)||this};
_.m(A6,_.Z);A6.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"}}}};
A6.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(Y){return Y.hasOwnProperty("clipCreationRenderer")})&&_.qZ(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
A6.prototype.onPanelContentVisibleChanged=A6.prototype.onPanelContentVisibleChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.xY.YtVisibilityBehavior),_.V("design:type",Object)],A6.prototype,"ytVisibilityBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],A6.prototype,"ytdReduxBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],A6.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],A6.prototype,"panelContentVisible",void 0);_.S([_.GO("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],A6.prototype,"onPanelContentVisibleChanged",null);_.S([_.pD({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],A6);
_.d(A6,"ytd-clip-section-renderer",function(){if(dLB!==void 0)return dLB;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return dLB=Y},{mode:1});var cFb;var ULV;var v9V;var JFb=function(){return _.Z.apply(this,arguments)||this};
_.m(JFb,_.Z);_.S([_.R(),_.V("design:type",Object)],JFb.prototype,"data",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],JFb.prototype,"ytRendererBehavior",void 0);_.S([_.pD({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],JFb);
_.d(JFb,"ytd-hashtag-grid-tile-renderer",function(){if(v9V!==void 0)return v9V;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return v9V=Y},{mode:1});var oT=function(){return _.Z.apply(this,arguments)||this};
_.m(oT,_.Z);oT.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
oT.prototype.updateRichGridTrendingHashtagsVisibility=function(){var Y,G;if(((Y=this.data)==null||!Y.isExpanded)&&(G=this.data)!=null&&G.tiles){Y=this.data.tiles.length;G=Y>this.richGridItemsPerRow?this.richGridItemsPerRow+1:Y;var u=Math.ceil(Y/G);this.fullyVisibleRows=Y%G===1&&u===2?1:Math.min(u,2);this.isShowMoreVisible=this.fullyVisibleRows<u}};
oT.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
oT.prototype.updateRichGridTrendingHashtagsVisibility=oT.prototype.updateRichGridTrendingHashtagsVisibility;_.S([_.R(),_.V("design:type",Object)],oT.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Number)],oT.prototype,"fullyVisibleRows",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],oT.prototype,"isShowMoreVisible",void 0);_.S([_.R({selector:_.nU,value:0}),_.V("design:type",Number)],oT.prototype,"richGridItemsPerRow",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],oT.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],oT.prototype,"ytdReduxBehavior",void 0);_.S([_.GO("data","richGridItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oT.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.S([_.pD({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],oT);
_.d(oT,"ytd-hashtag-grid-shelf-renderer",function(){if(ULV!==void 0)return ULV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return ULV=Y},{mode:1});var Ylw;var GaS;var uzN=0,ir=function(){var Y=_.Z.call(this)||this;Y.selected=!1;Y.isOverlay=!1;Y.inputId="toggle-option-"+uzN;uzN++;return Y};
_.m(ir,_.Z);ir.prototype.onTap=function(){_.$s(this.hostElement,"ytd-toggle-option-clicked")};
_.S([_.R(),_.V("design:type",String)],ir.prototype,"label",void 0);_.S([_.R(),_.V("design:type",String)],ir.prototype,"inputId",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ir.prototype,"selected",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ir.prototype,"isOverlay",void 0);_.S([_.pD({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.V("design:paramtypes",[])],ir);
_.d(ir,"ytd-toggle-option-renderer",function(){if(GaS!==void 0)return GaS;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return GaS=Y},{mode:1});var RT=function(){var Y=_.Z.apply(this,arguments)||this;Y.isToggleOption=!1;Y.isOverlay=!1;return Y};
_.m(RT,_.Z);RT.prototype.onTap=function(Y){Y.preventDefault();this.data&&(Y=!this.data.checked,this.set("data.checked",Y),_.$s(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:Y,value:this.data.value}))};
_.Uk.Object.defineProperties(RT.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
RT.prototype.onTap=RT.prototype.onTap;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],RT.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],RT.prototype,"isToggleOption",void 0);_.S([_.R(),_.V("design:type",Object)],RT.prototype,"isOverlay",void 0);_.S([_.f("data.responseText"),_.V("design:type",String),_.V("design:paramtypes",[])],RT.prototype,"label",null);
_.S([_.Yo("ytd-toggle-option-clicked"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],RT.prototype,"onTap",null);_.S([_.pD({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],RT);
_.d(RT,"ytd-checkbox-survey-option-renderer",function(){if(Ylw!==void 0)return Ylw;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Ylw=Y},{mode:1});var OWx;var Q6y;var w5=function(){var Y=_.Z.apply(this,arguments)||this;Y.checked=!1;Y.isToggleOption=!1;return Y};
_.m(w5,_.Z);w5.prototype.onTap=function(){this.data&&(this.checked?_.qZ(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.qZ(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
w5.prototype.onTap=w5.prototype.onTap;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],w5.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],w5.prototype,"checked",void 0);_.S([_.R(),_.V("design:type",Object)],w5.prototype,"isToggleOption",void 0);_.S([_.Yo("ytd-toggle-option-clicked"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],w5.prototype,"onTap",null);
_.S([_.pD({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],w5);
_.d(w5,"ytd-radio-button-survey-option-renderer",function(){if(Q6y!==void 0)return Q6y;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Q6y=Y},{mode:1});var Z3=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableAnimation=!1;Y.isToggleOption=!0;Y.followUpSurveyCommand=null;Y.selectedRatingEndpoint=null;Y.isSlimlineSurveyFollowUp=!1;Y.isShortsStyle=!1;Y.styleOverrideAttribute=!0;Y.isDarkMode=!1;Y.isSubmitted=!1;Y.roundedContainer=!0;Y.improveShortsResponseRate=_.F("web_improve_shorts_response_rate");Y.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 Y};
_.m(Z3,_.Z);_.H=Z3.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 Y=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(u){var O;if((O=u[0])!=null&&O.isIntersecting){_.O3().reportShown(Y.hostElement);var Q;(Q=Y.intersectionObserver)==null||Q.unobserve(Y.hostElement)}},{rootMargin:"0px",
threshold:.6});var G;(G=this.intersectionObserver)==null||G.observe(this.hostElement)};
_.H.onDarkModeToggledAction=function(Y){this.isDarkMode=Y};
_.H.dataChanged=function(){var Y;if(((Y=this.data)==null?void 0:Y.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var G;((G=this.data)==null?void 0:G.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var u,O,Q,M;this.darkColorPalette=(u=this.data)==null?void 0:(O=u.inlineContent)==null?void 0:(Q=O.compactVideoRenderer)==null?void 0:(M=Q.thumbnail)==null?
void 0:M.darkColorPalette;var t,K,L,g;this.lightColorPalette=(t=this.data)==null?void 0:(K=t.inlineContent)==null?void 0:(L=K.compactVideoRenderer)==null?void 0:(g=L.thumbnail)==null?void 0:g.lightColorPalette;var P,I;if(((P=this.data)==null?0:(I=P.inlineContent)==null?0:I.compactVideoRenderer)&&this.isShortsStyle){var k,n,p,W;Y=_.bq((k=this.data)==null?void 0:(n=k.inlineContent)==null?void 0:(p=n.compactVideoRenderer)==null?void 0:(W=p.thumbnail)==null?void 0:W.thumbnails);_.cm(this.hostElement,
{"--yt-background-url":"url("+Y+")"})}};
_.H.handleRequestCompletion=function(){this.hostElement.hidden&&_.$s(this.hostElement,"yt-dismissible-item-dismissed")};
_.H.onPopupClosed=function(Y){var G;((G=Y.detail)==null?void 0:G.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.qZ(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.H.handleInlineSurveyRatingSelect=function(Y,G){var u=this;this.selectedRatingEndpoint=Y;this.followUpSurveyCommand=G;this.expanded=!!Y;this.getOptionRenderers().forEach(function(O,Q){u.notifyPath("followUpSurveyCommand.followUpOptions."+Q+".checkboxSurveyOptionRenderer.checked");u.set("followUpSurveyCommand.followUpOptions."+Q+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),Y=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.qZ(this.hostElement,"yt-reel-non-video-content-dismissal-command",[Y]))};
_.H.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.qZ(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var Y,G=(Y=this.data)==null?void 0:Y.dismissalEndpoint;G&&this.ytComponentBehavior.resolveCommand(G)}};
_.H.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.qZ(this.hostElement,"yt-close-popup-action"))};
_.H.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var Y=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{Y=this.getOptionRenderers().filter(function(O){return O.checked});
if(Y.length===0)return;Y=Y.map(function(O){return O.responseEndpoint})}var G=[];
Y.forEach(function(O,Q){Q!==0&&(O=_.z(O,_.WH))&&O.feedbackToken&&G.push(O.feedbackToken)});
if(Y=Y[0]){var u={};G.length>0&&(u.extra_feedback_tokens=G);this.ytComponentBehavior.resolveCommand(Y,{form:u})}}};
_.H.getOptionRenderers=function(){var Y=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(G){Y.isSingleSelect=!!_.z(G,sNb);return Y.isSingleSelect?_.z(G,sNb):_.z(G,cqN)}):[]};
_.H.handleInlineSurveyOptionSelect=function(Y){Y=this.optionSelector.indexOf(Y);Y!==-1&&this.optionSelector.selectIndex(Y)};
_.H.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.H.maybeGetBackgroundColor=function(Y){return this.isDarkMode?Y.section2Color:Y.section3Color};
_.H.colorPaletteChanged=function(){var Y=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;Y=Y&&this.maybeGetBackgroundColor(Y);this.dismissibleEl.style.backgroundColor=!Y||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.k3(Y)};
_.Uk.Object.defineProperties(Z3.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Z3.prototype.colorPaletteChanged=Z3.prototype.colorPaletteChanged;Z3.prototype.onPopupClosed=Z3.prototype.onPopupClosed;Z3.prototype.handleRequestCompletion=Z3.prototype.handleRequestCompletion;Z3.prototype.dataChanged=Z3.prototype.dataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Z3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Z3.prototype,"actionHandlerBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Z3.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],Z3.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.Ox("#follow-up-survey-options"),_.V("design:type",Object)],Z3.prototype,"optionSelector",void 0);_.S([_.R(),_.V("design:type",Object)],Z3.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],Z3.prototype,"disableAnimation",void 0);_.S([_.R(),_.V("design:type",Object)],Z3.prototype,"isToggleOption",void 0);_.S([_.R(),_.V("design:type",Object)],Z3.prototype,"followUpSurveyCommand",void 0);_.S([_.R(),_.V("design:type",Object)],Z3.prototype,"selectedRatingEndpoint",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Z3.prototype,"expanded",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Z3.prototype,"isSlimlineSurveyFollowUp",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Z3.prototype,"isShortsStyle",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Z3.prototype,"styleOverrideAttribute",void 0);_.S([_.R(),_.V("design:type",Boolean)],Z3.prototype,"isSingleSelect",void 0);_.S([_.R(),_.V("design:type",Object)],Z3.prototype,"isDarkMode",void 0);
_.S([_.R(),_.V("design:type",Object)],Z3.prototype,"lightColorPalette",void 0);_.S([_.R(),_.V("design:type",Object)],Z3.prototype,"darkColorPalette",void 0);_.S([_.f("selectedRatingEndpoint","isShortsStyle"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Z3.prototype,"isOptionSelected",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Z3.prototype,"roundedContainer",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Z3.prototype,"improveShortsResponseRate",void 0);_.S([_.Ox("#dismissible"),_.V("design:type",HTMLElement)],Z3.prototype,"dismissibleEl",void 0);_.S([_.Ox("#dismiss-button yt-icon-button"),_.V("design:type",HTMLElement)],Z3.prototype,"dismissButtonEl",void 0);_.S([_.Ox("#inline-survey-header yt-icon-button"),_.V("design:type",HTMLElement)],Z3.prototype,"inlineHeaderDismissButtonEl",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z3.prototype,"dataChanged",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z3.prototype,"handleRequestCompletion",null);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Z3.prototype,"onPopupClosed",null);
_.S([_.GO("darkColorPalette","lightColorPalette","isDarkMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z3.prototype,"colorPaletteChanged",null);_.S([_.pD({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Z3);
_.d(Z3,"ytd-inline-survey-renderer",function(){if(OWx!==void 0)return OWx;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return OWx=Y},{mode:1});var MAj;var HWx;var D3=function(){var Y=_.Z.apply(this,arguments)||this;Y.visibleVideos=[];Y.hiddenVideos=[];Y.modern=_.F("web_modern_buttons");Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.m(D3,_.Z);_.H=D3.prototype;_.H.attached=function(){var Y=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",Y);this.onDarkModeToggledAction(Y)};
_.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 Y=this;this.requestElementsPerRow();var G,u;this.currentColorPalette=this.isDarkTheme?(G=this.data)==null?void 0:G.darkColorData:(u=this.data)==null?void 0:u.lightColorData;var O;if((O=this.currentColorPalette)==null?0:O.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.sk(this,function(){Y.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(Y){return Y};
_.H.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&this.set("isDarkTheme",Y);this.data&&(this.currentColorPalette=Y?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.H.getCurrentLogo=function(Y,G){if(Y)return G?Y.darkLogoImage:Y.lightLogoImage};
_.H.computeTitleStyle=function(Y){var G;if((G=this.data)!=null&&G.title&&Y&&Y.textPrimary!==void 0)return"color:"+_.k3(Y.textPrimary)+";"};
_.H.computeSubtitleStyle=function(Y){var G;if((G=this.data)!=null&&G.subtitle&&Y&&Y.textSecondary!==void 0)return"color:"+_.k3(Y.textSecondary)+";"};
_.H.computeDismissIconStyle=function(Y){if(this.data&&this.data.dismissButton&&Y&&Y.textPrimary!==void 0)return"--yt-button-color:"+_.k3(Y.textPrimary)+";"};
_.H.computeOverflowButtonStyle=function(Y){if(this.data&&this.data.overflowButton&&Y&&Y.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.k3(Y.textPrimary)+";--yt-spec-icon-active-other:"+_.k3(Y.textPrimary)+";"};
_.H.computeBackgroundStyle=function(Y){if(Y&&this.data){var G="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var u=_.bq((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);u&&(G+='background-image:url("'+u+'");')}Y.backgroundColor!==void 0&&(G+="background-color:"+_.nB(Y.backgroundColor)+";");return G}};
_.H.computeButton=function(){var Y,G=Object.assign({},_.z((Y=this.data)==null?void 0:Y.showMoreButton,_.ru));if(this.modern&&G){G.style="STYLE_MONO_OUTLINE";var u;if(Y=(u=this.currentColorPalette)==null?void 0:u.textPrimary)G.colorData={basicColorPaletteData:{foregroundTitleColor:Y,borderColor:Y}}}return G};
_.H.shouldShowBottomButton=function(Y,G){return!(Y==null?0:Y.header)&&!(Y==null||!Y.primaryButton)&&G<3};
_.H.checkExpanded=function(Y){this.isExpanded=Y&&Y.content?this.hiddenVideos.length===0:!0};
_.H.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.H.getLogoHeight=function(Y){return this.logoWithPadding(Y)?"26":"20"};
_.H.getLogoImageId=function(Y){return this.logoWithPadding(Y)?"logo-image-with-padding":"logo-image"};
_.H.computeHasSectionHeader=function(Y){return!!Y.header};
_.H.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var Y;if((Y=this.data.primaryButton)==null?0:Y.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 G;((G=this.data.dismissButton)==null?0:G.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var u,O;((u=this.data)==null?0:(O=u.primaryButton)==null?0:O.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.H.setVisibleVideos=function(Y){if(this.data&&this.data.content)if(this.data.content.length){var G=this.data.content.length;this.data.header?Y?(this.visibleVideos=this.data.content.slice(0,Math.min(G,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(G,this.slimItemsPerRow),G)):(this.visibleVideos=this.data.content.slice(0,Math.min(G,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(G,this.elementsPerRow),G)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(G,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(G,this.elementsPerRow),G)):(this.visibleVideos=this.data.content.slice(0,Math.min(G,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(G,this.elementsPerRow-1),G))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.H.setHasMovieRenderer=function(){var Y;if((Y=this.data)!=null&&Y.content){var G;this.hasMovieRenderer=!!_.z((G=this.data)==null?void 0:G.content[0],_.kk4)}else this.hasMovieRenderer=!1};
_.H.requestElementsPerRow=function(){_.$s(this.hostElement,"yt-request-elements-per-row")};
_.H.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var Y=_.E(this.hiddenMediaRenderers),G=Y.next();!G.done;G=Y.next())G.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(Y=_.l0(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&Y.focus()}};
_.H.updateTitleSpec=function(){var Y;(Y=this.data)!=null&&Y.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.H.logoWithPadding=function(Y){var G,u,O;return(Y=(G=this.getCurrentLogo(Y,this.isDarkTheme))==null?void 0:(u=G.thumbnails)==null?void 0:(O=u[0])==null?void 0:O.height)&&Y%31===0?!0:!1};
_.H.onUpdateElementsPerRowAction=function(Y,G,u){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y);u&&this.slimItemsPerRow!==u&&(this.slimItemsPerRow=u)};
D3.prototype.slimItemsPerRowChanged=D3.prototype.slimItemsPerRowChanged;D3.prototype.elementsPerRowChanged=D3.prototype.elementsPerRowChanged;D3.prototype.dataChanged=D3.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],D3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],D3.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],D3.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],D3.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],D3.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],D3.prototype,"currentColorPalette",void 0);_.S([_.R(),_.V("design:type",Array)],D3.prototype,"visibleVideos",void 0);_.S([_.R(),_.V("design:type",Array)],D3.prototype,"hiddenVideos",void 0);
_.S([_.R(),_.V("design:type",Object)],D3.prototype,"primaryButton",void 0);_.S([_.R({reflectToAttribute:!0,value:3}),_.V("design:type",Number)],D3.prototype,"elementsPerRow",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],D3.prototype,"isDarkTheme",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],D3.prototype,"isExpanded",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],D3.prototype,"largeTitle",void 0);
_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],D3.prototype,"hasMovieRenderer",void 0);_.S([_.R(),_.V("design:type",Number)],D3.prototype,"slimItemsPerRow",void 0);_.S([_.R(),_.V("design:type",Boolean)],D3.prototype,"showLightVideoMetadata",void 0);_.S([_.R(),_.V("design:type",Boolean)],D3.prototype,"showDarkVideoMetadata",void 0);_.S([_.R(),_.V("design:type",Number)],D3.prototype,"videoMetadataColor",void 0);
_.S([_.R({reflectToAttribute:!0,selector:_.kG}),_.V("design:type",Boolean)],D3.prototype,"miniMode",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.V("design:type",Boolean)],D3.prototype,"isFirstFeedItem",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.V("design:type",Boolean)],D3.prototype,"hasSectionHeader",void 0);
_.S([_.R({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],D3.prototype,"roundedContainer",void 0);_.S([_.Q4("#visible-video-container ytd-rich-grid-media"),_.V("design:type",Array)],D3.prototype,"visibleMediaRenderers",void 0);_.S([_.Q4("#hidden-video-container ytd-rich-grid-media"),_.V("design:type",Array)],D3.prototype,"hiddenMediaRenderers",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],D3.prototype,"modern",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D3.prototype,"dataChanged",null);_.S([_.GO("elementsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D3.prototype,"elementsPerRowChanged",null);_.S([_.GO("slimItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D3.prototype,"slimItemsPerRowChanged",null);
_.S([_.pD({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],D3);
_.d(D3,"ytd-brand-video-shelf-renderer",function(){if(HWx!==void 0)return HWx;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return HWx=Y},{mode:1});var Eux;var h6=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.m(h6,_.Z);_.H=h6.prototype;_.H.attached=function(){var Y=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",Y);this.onDarkModeToggledAction(Y)};
_.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 Y,G;this.currentColorPalette=this.isDarkTheme?(Y=this.data)==null?void 0:Y.darkColorData:(G=this.data)==null?void 0:G.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.H.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.H.computeIsFirstFeedItem=function(Y){return Y};
_.H.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&this.set("isDarkTheme",Y);this.data&&(this.currentColorPalette=Y?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(Y),this.updateButtonPalette())};
_.H.shouldShowThumbnailInMetadata=function(Y){return Y<=1};
_.H.computeVideoMetadataColor=function(){if(this.data){var Y;if((Y=this.currentColorPalette)==null?0:Y.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.H.computeTitleStyle=function(Y){var G;if((G=this.data)!=null&&G.title&&Y&&Y.textPrimary!==void 0)return"color:"+_.k3(Y.textPrimary)+";"};
_.H.computeSubtitleStyle=function(Y){var G;if((G=this.data)!=null&&G.subtitle&&Y&&Y.textSecondary!==void 0)return"color:"+_.k3(Y.textSecondary)+";"};
_.H.computeOverflowButtonStyle=function(Y){if(this.data&&this.data.overflowButton&&Y.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.k3(Y.textPrimary)+";--yt-spec-icon-active-other:"+_.k3(Y.textPrimary)+";"};
_.H.computeBackgroundStyle=function(Y){if(Y&&this.data){var G="";Y.backgroundColor!==void 0&&(G+="background-color:"+_.nB(Y.backgroundColor)+";");return G}};
_.H.computeHasOverflowButton=function(Y){return!!Y.overflowButton};
_.H.updateButtonPalette=function(){if(this.data){var Y;if((Y=this.data.primaryButton)==null?0:Y.buttonRenderer){var G;if((G=this.currentColorPalette)==null?0:G.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var u;((u=this.currentColorPalette)==null?0:u.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(){_.$s(this.hostElement,"yt-request-elements-per-row")};
_.H.updateTitleSpec=function(){var Y;(Y=this.data)!=null&&Y.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(Y){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y)};
h6.prototype.elementsPerRowChanged=h6.prototype.elementsPerRowChanged;h6.prototype.dataChanged=h6.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],h6.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],h6.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],h6.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],h6.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],h6.prototype,"currentColorPalette",void 0);_.S([_.R(),_.V("design:type",Object)],h6.prototype,"primaryButton",void 0);
_.S([_.R({reflectToAttribute:!0,value:3}),_.V("design:type",Number)],h6.prototype,"elementsPerRow",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],h6.prototype,"isDarkTheme",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],h6.prototype,"titleSize",void 0);_.S([_.R(),_.V("design:type",Number)],h6.prototype,"videoMetadataColor",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.kG}),_.V("design:type",Boolean)],h6.prototype,"miniMode",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.V("design:type",Boolean)],h6.prototype,"isFirstFeedItem",void 0);_.S([_.R({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],h6.prototype,"roundedContainer",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.V("design:type",Boolean)],h6.prototype,"hasOverflowButton",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],h6.prototype,"dataChanged",null);_.S([_.GO("elementsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],h6.prototype,"elementsPerRowChanged",null);_.S([_.pD({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],h6);
_.d(h6,"ytd-brand-video-singleton-renderer",function(){if(Eux!==void 0)return Eux;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Eux=Y},{mode:2});var tAo;var K5S=_.D(function(Y){var G=Y.data;return _.T(_.RD,{data:function(){return G().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(G().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var u=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":u=88;break a;default:u=88}return u},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return G().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"bi"),Tsx=_.D(function(Y){var G=Y.metadataRow;
var u=Y.delimiter;return _.T(_.rc,{each:function(){return G().textParts||[]},
keyBy:"INDEX"},function(O,Q){return _.T(_.GY,null,_.T(_.eO,{text:O,noWrap:!0,userInput:!0}),_.T(akb,{delimiter:u,max:function(){return G().textParts.length},
index:Q}))})},"ci"),akb=_.D(function(Y){var G=Y.delimiter;
var u=Y.max;var O=Y.index;return _.T(_.X,{cond:function(){return(G==null?void 0:G())&&u()-1>O()},
then:function(){return _.T("span",null,G)}})},"di"),L5y=_.D(function(Y){var G=Y.data;
Y={};return _.T("yt-profile-page-header-information-view-model",{class:_.s3("profilePageHeaderInformationViewModelHost",(Y.profilePageHeaderInformationViewModelMobile=!1,Y))},_.T(_.X,{cond:function(){return G().onTap},
then:function(){return _.T(_.Ny,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.FS(G().onTap)}},_.T(_.HE,{data:function(){return G().thumbnail}},{profilePageHeaderThumbnailViewModel:K5S}))},
else:function(){return _.T("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.T(_.HE,{data:function(){return G().thumbnail}},{profilePageHeaderThumbnailViewModel:K5S}))}}),_.T("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.T(_.X,{cond:function(){return G().onTap},
then:function(){return _.T(_.HE,{data:function(){return G().title}},{profilePageHeaderTitleViewModel:function(u){var O=u.data;
return _.T(_.Ny,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.FS(O().onTap)}},_.T(_.eO,{text:function(){return O().title}}))}})},
else:function(){return _.T(_.HE,{data:function(){return G().title}},{profilePageHeaderTitleViewModel:function(u){var O=u.data;
return _.T(_.eO,{text:function(){return O().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.T(_.HE,{data:function(){return G().metadata}},{profilePageHeaderMetadataViewModel:function(u){var O=u.data;
return _.T(_.X,{cond:function(){return O().metadataRows},
then:function(Q){return _.T("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.T(_.rc,{each:Q,keyBy:"INDEX"},function(M,t){return _.T(_.GY,null,_.T(Tsx,{metadataRow:M,delimiter:" \u2022 "}),_.T(akb,{delimiter:" \u2022 ",max:function(){return Q().length},
index:t}))}))}})}})))},"ei");
L5y.idomCompat=!0;_.hR(L5y,"yt-profile-page-header-information-view-model",{props:{data:_.AC}});var d5=function(){return _.Z.apply(this,arguments)||this};
_.m(d5,_.Z);d5.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],d5.prototype,"data",void 0);_.S([_.pD({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],d5);
_.d(d5,"ytd-effect-pivot-header-view-model",function(){if(tAo!==void 0)return tAo;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return tAo=
Y},{mode:1});var guo;var br=function(){return _.Z.apply(this,arguments)||this};
_.m(br,_.Z);br.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],br.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],br.prototype,"data",void 0);_.S([_.pD({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],br);
_.d(br,"ytd-source-pivot-header-renderer",function(){if(guo!==void 0)return guo;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return guo=Y},{mode:1});var Xkx;var PGN;var IkV;var Su=function(){var Y=_.Z.apply(this,arguments)||this;Y.playing=!1;Y.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.cu(Y);Y.active=!1;return Y};
_.m(Su,_.Z);_.H=Su.prototype;_.H.detached=function(){this.stop()};
_.H.play=function(){var Y=this,G,u,O,Q,M;return _.a(function(t){if(t.nextAddress==1)return Y.active=!0,G=Y.get("data.inlinePlaybackEndpoint.watchEndpoint"),u=G.videoId||Y.data.videoId,O=G.startTimeSeconds||0,Q=G.playerParams||null,_.F("kevlar_player_update_killswitch")?t.yield(Y.playerEl.update({args:{video_id:u,startSeconds:O,player_params:Q}}),2):(Y.playerEl.loadVideoWithPlayerVars({video_id:u,startSeconds:O,player_params:Q,autoplay:!0}),t.jumpTo(2));if(t.nextAddress!=4)return t.yield(Y.playerEl.getPlayerPromise(),
4);M=t.yieldResult;M.unloadModule("annotations_module");M.addEventListener("onStateChange",function(K){Y.onPlayerStateChange(K)});
_.Sd(t)})};
_.H.onPlayerStateChange=function(Y){if(this.active)switch(this.playing=Y===1,Y){case 1:_.$s(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.$s(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.H.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.H.resize=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1)return u.yield(Y.playerEl.getPlayerPromise(),2);G=u.yieldResult;G.setSize(NaN,NaN);_.Sd(u)})};
_.S([_.R(),_.V("design:type",Object)],Su.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Su.prototype,"playing",void 0);_.S([_.R(),_.V("design:type",Object)],Su.prototype,"playerId",void 0);_.S([_.Ox("#player"),_.V("design:type",Object)],Su.prototype,"playerEl",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Su);
_.d(Su,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(IkV!==void 0)return IkV;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return IkV=Y},{mode:1});var kaB;var nuN;var N0=function(){var Y=_.Z.apply(this,arguments)||this;Y.width=0;return Y};
_.m(N0,_.Z);_.H=N0.prototype;_.H.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Jh(this,this.onEnded));this.mp4El.addEventListener("error",_.Jh(this,this.onError))};
_.H.detached=function(){this.videoEl.removeEventListener("ended",_.Jh(this,this.onEnded));this.mp4El.removeEventListener("error",_.Jh(this,this.onError))};
_.H.play=function(){var Y=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var G=this.videoEl.play();G?G.then(function(){Y.handleVideoStartPlaying()}).catch(function(){_.$s(Y.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.$s(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 Y;if((Y=this.data)==null?0:Y.thumbnailPlaceholder)Y=_.dH(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+Y+")";this.stop();this.autoplay&&this.play()};
_.H.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.H.onEnded=function(){this.stop();_.$s(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.H.onError=function(){_.$s(this.hostElement,"yt-video-thumbnail-error")};
_.H.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.H.getVideoThumbnail=function(Y){if(Y&&Y.length)return Y[0]};
N0.prototype.dataChanged=N0.prototype.dataChanged;_.S([_.R(),_.V("design:type",Object)],N0.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],N0.prototype,"animatePlaceholderOnEntrance",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],N0.prototype,"autoplay",void 0);_.S([_.R({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.V("design:type",Object)],N0.prototype,"videoThumbnail",void 0);
_.S([_.R(),_.V("design:type",Boolean)],N0.prototype,"loop",void 0);_.S([_.R(),_.V("design:type",Boolean)],N0.prototype,"isVideoPlaying",void 0);_.S([_.R(),_.V("design:type",Object)],N0.prototype,"width",void 0);_.S([_.Ox("#mp4"),_.V("design:type",HTMLElement)],N0.prototype,"mp4El",void 0);_.S([_.Ox("#placeholder"),_.V("design:type",HTMLElement)],N0.prototype,"placeholderEl",void 0);_.S([_.Ox("#video"),_.V("design:type",HTMLVideoElement)],N0.prototype,"videoEl",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],N0.prototype,"dataChanged",null);_.S([_.Ff({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],N0);
_.d(N0,"yt-video-as-thumbnail-details",function(){if(nuN===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;kaB===void 0&&(kaB=document.createElement("template"));var O=kaB;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);nuN=Y}Y=nuN;return Y},{mode:2});var ju=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableGridStateAware=!1;Y.animationEnabled=_.F("enable_web_ketchup_hero_animation");Y.transitioningOut=!1;Y.narrow=!1;Y.narrower=!1;Y.isCarouselInFeed=!1;Y.videoTimeoutJobId=0;Y.panelTimeoutJobId=0;Y.panelTimeoutJobStartMs=0;Y.actionMap={"yt-window-resized":"onWindowResized"};return Y};
_.m(ju,_.Z);_.H=ju.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 Y;this.player&&((Y=this.data)==null?0:Y.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(Y){return Y&&Y.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.H.playVideo=function(){var Y;this.video&&((Y=this.data)==null?0:Y.videoThumbnail)&&this.video.play();var G;this.player&&((G=this.data)==null?0:G.inlinePlaybackRenderer)&&this.player.play()};
_.H.stopVideo=function(){var Y;this.video&&((Y=this.data)==null?0:Y.videoThumbnail)&&this.video.stop();var G;this.player&&((G=this.data)==null?0:G.inlinePlaybackRenderer)&&this.player.stop()};
_.H.transitionOut=function(){var Y=this;this.transitioningOut=!0;return new Promise(function(G){Y.player&&(Y.player.playing=!1);var u=_.l0(Y.hostElement).querySelector("#action-button");if(u){var O=function(){u.removeEventListener("animationend",O);_.AN.cancelJob(Q);G();Y.transitioningOut=!1};
var Q=_.WY(_.AN,O,1E3);u.addEventListener("animationend",O)}else G(),Y.transitioningOut=!1})};
_.H.computeMetadataOrder=function(Y){return Y&&Y.metadataOrder&&Y.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?Y.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.H.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.H.computeAvatarSize=function(Y){return Y&&Y.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.H.onContentClick=function(Y){if(!_.hf(_.wG(Y),this.hostElement,["A".toString(),"BUTTON".toString()])){var G;if((G=this.data)==null?0:G.navigationEndpoint){var u;this.componentBehavior.resolveCommand((u=this.data)==null?void 0:u.navigationEndpoint)}}};
_.H.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.H.setBackgroundImage=function(Y){if(Y=this.getBackgroundImageUrl(Y))_.l0(this.hostElement).querySelector("#hero").style.backgroundImage="url("+Y+")"};
_.H.setScrimLayer=function(Y){var G=this.getScrimLayerColorStops(Y);Y=((Y==null?void 0:Y.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(Y=180);_.DE("HTML_DIR")==="rtl"&&(Y=-Y);G&&(_.l0(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+Y+"deg, "+G+")")};
_.H.isNarrower=function(){return this.hostElement.clientWidth<ju.NARROW_VERSION_SIZE};
_.H.getScrimLayerColorStops=function(){var Y,G=(Y=this.data)==null?void 0:Y.scrimColorValues;if(!G)return null;if(G.length===1)return Y=_.nB(G[0]),Y+" 0%, "+Y+" 100%";if(G.length===3){var u=[0,72,98];return G.map(function(O,Q){return _.nB(O)+" "+u[Q]+"%"}).join(",")}return null};
_.H.getBackgroundImageUrl=function(Y){return Y&&Y.largeFormFactorBackgroundThumbnail?_.dH((Y.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||Y.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.H.onPlaying=function(){this.startVideoTimeout()};
_.H.onEnded=function(){this.rotate()};
_.H.startPanelTimeout=function(){var Y=this;if(!this.panelTimeoutJobId){var G=this.get("data.minPanelDisplayDurationMs");G&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.WY(_.AN,function(){Y.rotate()},G))}};
_.H.startVideoTimeout=function(){var Y=this;if(!this.videoTimeoutJobId){_.AN.cancelJob(this.panelTimeoutJobId);var G=Date.now()-this.panelTimeoutJobStartMs;G=Math.max(0,this.get("data.minPanelDisplayDurationMs")-G);G=Math.max(this.get("data.minVideoPlayDurationMs")||0,G);this.videoTimeoutJobId=_.WY(_.AN,function(){Y.rotate()},G)}};
_.H.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.AN.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.AN.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.H.rotate=function(){this.clearTimeouts();_.$s(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Uk.Object.defineProperties(ju.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.l0(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.l0(this.hostElement).querySelector("#video")}}});
_.Uk.Object.defineProperties(ju,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
ju.prototype.onEnded=ju.prototype.onEnded;ju.prototype.onPlaying=ju.prototype.onPlaying;ju.prototype.dataChanged=ju.prototype.dataChanged;_.S([_.x(_.f8),_.V("design:type",Object)],ju.prototype,"ytdGridStateAwareBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ju.prototype,"componentBehavior",void 0);_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],ju.prototype,"ytdGuideStateAwareBehavior",void 0);
_.S([_.x(_.JBx),_.V("design:type",Object)],ju.prototype,"ytBooleanLogicBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],ju.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ju.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ju.prototype,"disableGridStateAware",void 0);_.S([_.R(),_.V("design:type",Object)],ju.prototype,"data",void 0);_.S([_.R({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.V("design:type",String)],ju.prototype,"panelLayout",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ju.prototype,"animationEnabled",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ju.prototype,"transitioningOut",void 0);
_.S([_.R({computed:"computeMetadataOrder(data)"}),_.V("design:type",Boolean)],ju.prototype,"metadataOrder",void 0);_.S([_.R({computed:"computeByline(data)"}),_.V("design:type",Object)],ju.prototype,"byline",void 0);_.S([_.R({computed:"computeAvatarSize(data)"}),_.V("design:type",Number)],ju.prototype,"avatarSize",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ju.prototype,"narrow",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ju.prototype,"narrower",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ju.prototype,"layoutStyle",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ju.prototype,"isCarouselInFeed",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ju.prototype,"dataChanged",null);_.S([_.Yo("yt-default-promo-panel-renderer-playing"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ju.prototype,"onPlaying",null);
_.S([_.Yo("yt-default-promo-panel-renderer-ended"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ju.prototype,"onEnded",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],ju);
_.d(ju,"ytd-default-promo-panel-renderer",function(){if(PGN!==void 0)return PGN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return PGN=Y},{mode:1});_.Px("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Ve=function(){var Y=_.Z.apply(this,arguments)||this;Y.narrower=!1;Y.dotMenuVisible=!1;Y.paginationThumbnailsVisible=!1;Y.active=!0;Y.disableGridStateAware=!1;Y.actionMap={"yt-window-resized":"onWindowResized"};return Y};
_.m(Ve,_.Z);_.H=Ve.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",_.Jh(this,this.onPageTypeChange));this.currentPageSubtype=_.Yij(location.pathname);this.onWindowResized()};
_.H.detached=function(){this.jobId&&_.AN.cancelJob(this.jobId);this.updateSizeJobId&&_.AN.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Jh(this,this.onPageTypeChange))};
_.H.onPageTypeChange=function(Y){this.active=Y.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(Y){Y>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.AN.cancelJob(this.jobId);var G=this.getCurrentPanelElement();G&&G.stopVideo();this.currentItemIndex=Y%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(G||(G=this.getCurrentPanelElement()),G.playVideo()):this.startRotationJob()};
_.H.scrollThumbnails=function(Y){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var G=this.getCurrentPaginationElement();if(G){var u=_.l0(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?u.style.transform="translateX(0)":(G=G.offsetWidth+8,u.style.transform="translateX(-"+G*(Y-Math.ceil(Math.floor(this.overlay.offsetWidth/G)/2)+1)+"px)")}}};
_.H.onDataChanged=function(){var Y=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.EA(_.AN,function(){var G;(G=Y.getCurrentPanelElement())==null||G.updateSize();Y.updateSize()}))};
_.H.getCurrentPanelElement=function(){return _.l0(_.l0(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.H.getCurrentPaginationElement=function(){return _.l0(_.l0(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.H.getNavigationClass=function(Y,G){return Y===G?"selected":""};
_.H.getNavigationDurationStyle=function(Y){return"animation-duration:"+(this.get("data.carouselItems."+Y+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.H.onNavigationTap=function(Y){var G=this,u=Y.model.index;u!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){G.setCarouselItem(u)}),this.autorotateActive=!1)};
_.H.onVideoThumbnailEnded=function(){var Y=this;if(this.shouldRotate()){var G=this.getCurrentPaginationElement();G&&(G.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){G.classList.remove("finished");Y.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 Y=this;_.AN.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.AN.addLowPriorityJob(function(){Y.getCurrentPanelElement().transitionOut().then(function(){Y.setNextCarouselItem()})},this.rotationTimeout))};
_.H.computeDotMenuVisible=function(Y,G){return!!Y&&!!Y.carouselItems&&Y.carouselItems.length>1&&!Y.paginationThumbnails||!!G};
_.H.computePaginationThumbnailsVisible=function(Y,G){var u,O;return((O=Y==null?void 0:(u=Y.paginationThumbnails)==null?void 0:u.length)!=null?O:0)>1&&!G};
_.H.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.H.computePaginatorAlignment=function(Y){return(Y==null?void 0:Y.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(Y){return(Y!=null?Y:0)<ju.NARROW_VERSION_SIZE};
Ve.prototype.activeChanged=Ve.prototype.activeChanged;Ve.prototype.onVideoNotPlaying=Ve.prototype.onVideoNotPlaying;Ve.prototype.onVideoThumbnailError=Ve.prototype.onVideoThumbnailError;Ve.prototype.onVideoThumbnailEnded=Ve.prototype.onVideoThumbnailEnded;Ve.prototype.onDataChanged=Ve.prototype.onDataChanged;_.S([_.x(_.f8),_.V("design:type",Object)],Ve.prototype,"ytdGridStateAwareBehavior",void 0);
_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Ve.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ve.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ve.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ve.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Ve.prototype,"currentItem",void 0);
_.S([_.R(),_.V("design:type",Number)],Ve.prototype,"currentItemIndex",void 0);_.S([_.R(),_.V("design:type",Number)],Ve.prototype,"rotationTimeout",void 0);_.S([_.R(),_.V("design:type",Number)],Ve.prototype,"loopCount",void 0);_.S([_.R({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.V("design:type",String)],Ve.prototype,"paginatorAlignment",void 0);_.S([_.R(),_.V("design:type",Number)],Ve.prototype,"jobId",void 0);
_.S([_.R(),_.V("design:type",Number)],Ve.prototype,"updateSizeJobId",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Ve.prototype,"isCarouselInFeed",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ve.prototype,"narrower",void 0);_.S([_.R({computed:"computeDotMenuVisible(data, narrower)"}),_.V("design:type",Object)],Ve.prototype,"dotMenuVisible",void 0);
_.S([_.R({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.V("design:type",Object)],Ve.prototype,"paginationThumbnailsVisible",void 0);_.S([_.R({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.V("design:type",String)],Ve.prototype,"layoutType",void 0);_.S([_.R({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],Ve.prototype,"autorotateActive",void 0);_.S([_.R(),_.V("design:type",Object)],Ve.prototype,"active",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ve.prototype,"disableGridStateAware",void 0);_.S([_.Ox("#overlay"),_.V("design:type",HTMLElement)],Ve.prototype,"overlay",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ve.prototype,"onDataChanged",null);
_.S([_.Yo("yt-video-thumbnail-ended"),_.Yo("yt-default-promo-panel-renderer-rotate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ve.prototype,"onVideoThumbnailEnded",null);_.S([_.Yo("yt-video-thumbnail-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ve.prototype,"onVideoThumbnailError",null);
_.S([_.Yo("yt-video-thumbnail-not-playing"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ve.prototype,"onVideoNotPlaying",null);_.S([_.Ex("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ve.prototype,"activeChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Ve);
_.d(Ve,"ytd-carousel-item-renderer",function(){if(Xkx!==void 0)return Xkx;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Xkx=Y},{mode:2});var F5B;var pkg;var zwj;var mmS;var lr=function(){var Y=_.Z.apply(this,arguments)||this;Y.answerExpanded=!1;return Y};
_.m(lr,_.Z);lr.prototype.toggleAnswer_=function(Y){var G=_.Zb(Y);G&&G.classList.contains("yt-simple-endpoint")||(Y.preventDefault(),Y.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
lr.prototype.toggleAnswer_=lr.prototype.toggleAnswer_;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],lr.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],lr.prototype,"answerExpanded",void 0);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],lr.prototype,"toggleAnswer_",null);
_.S([_.Ff({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],lr);
_.d(lr,"yt-generic-faq-question-renderer",function(){if(mmS===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;zwj===void 0&&(zwj=document.createElement("template"));var O=zwj;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);mmS=Y}Y=mmS;return Y},{mode:2});_.Px("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Bh=function(){return _.Z.apply(this,arguments)||this};
_.m(Bh,_.Z);Bh.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Bh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Bh.prototype,"data",void 0);_.S([_.Ff({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Bh);
_.d(Bh,"yt-faq-section-renderer",function(){if(pkg===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;F5B===void 0&&(F5B=document.createElement("template"));var O=F5B;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);pkg=Y}Y=pkg;return Y},{mode:2});_.hR(_.BjS,"yt-card-view-model",{props:{data:_.AC,className:_.AC,isSelected:_.AC}});var W5N;var rcV;var xmV=function(){return _.Z.apply(this,arguments)||this};
_.m(xmV,_.Z);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],xmV.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],xmV.prototype,"data",void 0);_.S([_.pD({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],xmV);
_.d(xmV,"ytd-channel-history-renderer",function(){if(rcV!==void 0)return rcV;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return rcV=Y},{mode:1});var fkw;var CGx=function(){return _.Z.apply(this,arguments)||this};
_.m(CGx,_.Z);_.S([_.R(),_.V("design:type",Object)],CGx.prototype,"data",void 0);_.S([_.pD({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],CGx);
_.d(CGx,"ytd-feature-enablement-info-renderer",function(){if(fkw!==void 0)return fkw;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return fkw=Y},{mode:1});var ycV;var ewx;var $F=function(){var Y=_.Z.apply(this,arguments)||this;Y.textBoxMaxLength=_.F("enable_tvod_campaign_code_integration")?15:12;return Y};
_.m($F,_.Z);_.H=$F.prototype;_.H.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.H.onSubmit=function(){var Y=this.data.serviceEndpoint,G=_.z(Y,_.Dj);G&&Y&&(G.couponCode=this.userInput,_.sH().resolve(_.rH).resolveCommand(Y,{form:{element:this.hostElement}}))};
_.H.validate=function(){var Y=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=Y&&!this.data.errorMessage;this.showErrorMessage=Y&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.F("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.H.computeStyle=function(Y){return Y};
_.H.computeShowValidationBelowInput=function(Y){return Y!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.H.updateUserInputFromBinding=function(Y){this.userInput=Y.currentTarget.value};
_.H.updateShowErrorMessageFromBinding=function(Y){this.showErrorMessage=Y.detail.value};
_.Uk.Object.defineProperties($F.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
$F.prototype.dataChanged=$F.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],$F.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],$F.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],$F.prototype,"userInput",void 0);_.S([_.R(),_.V("design:type",Boolean)],$F.prototype,"disableApplyButton",void 0);_.S([_.R(),_.V("design:type",Boolean)],$F.prototype,"hideApplyButton",void 0);
_.S([_.R(),_.V("design:type",Boolean)],$F.prototype,"hideErrorMessage",void 0);_.S([_.R(),_.V("design:type",Boolean)],$F.prototype,"showTick",void 0);_.S([_.R(),_.V("design:type",Boolean)],$F.prototype,"showErrorMessage",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],$F.prototype,"couponStyle",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.V("design:type",Boolean)],$F.prototype,"showValidationBelowInput",void 0);_.S([_.R(),_.V("design:type",Object)],$F.prototype,"textBoxMaxLength",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$F.prototype,"dataChanged",null);
_.S([_.f("showTick","showErrorMessage","userInput"),_.V("design:type",String),_.V("design:paramtypes",[])],$F.prototype,"validationState",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],$F);
_.d($F,"ytd-ypc-coupon-renderer",function(){if(ewx!==void 0)return ewx;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return ewx=Y},{mode:1});var q0=function(){return _.Z.apply(this,arguments)||this};
_.m(q0,_.Z);q0.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"}}}};
q0.prototype.computeStyle=function(Y){return Y};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],q0.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],q0.prototype,"buttonStyle",void 0);_.S([_.pD({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],q0);
_.d(q0,"ytd-flow-bottom-bar-renderer",function(){if(ycV!==void 0)return ycV;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return ycV=Y},{mode:1});var Acb;var ouV;var sm=function(){return _.Z.apply(this,arguments)||this};
_.m(sm,_.Z);sm.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
sm.prototype.focus=function(Y){this.title&&_.$q(this.title,Y)};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],sm.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],sm.prototype,"data",void 0);_.S([_.Ox("#title"),_.V("design:type",HTMLElement)],sm.prototype,"title",void 0);_.S([_.pD({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],sm);
_.d(sm,"ytd-flow-top-bar-renderer",function(){if(ouV!==void 0)return ouV;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return ouV=Y},{mode:1});var iWy;var Rw9;var wkx;var ch=function(){return _.Z.apply(this,arguments)||this};
_.m(ch,_.Z);ch.prototype.freeTextValueChanged=function(){_.qZ(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
ch.prototype.updateFreeTextValueFromBinding=function(Y){this.freeTextValue=Y.detail.value};
_.Uk.Object.defineProperties(ch.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=(G=(Y=this.data)==null?void 0:Y.responseMaxLength)!=null?G:500,O;return((O=this.freeTextValue)!=null?O:"").length>=u?"maxed-out":""}}});
ch.prototype.freeTextValueChanged=ch.prototype.freeTextValueChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ch.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],ch.prototype,"freeTextValue",void 0);_.S([_.Ox("#user-input"),_.V("design:type",HTMLTextAreaElement)],ch.prototype,"input",void 0);
_.S([_.f("freeTextValue"),_.V("design:type",Object),_.V("design:paramtypes",[])],ch.prototype,"characterLimitClass",null);_.S([_.GO("freeTextValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ch.prototype,"freeTextValueChanged",null);_.S([_.Ff({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],ch);
_.d(ch,"yt-free-text-input-flow-step-renderer",function(){if(wkx===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Rw9===void 0&&(Rw9=document.createElement("template"));var O=Rw9;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);wkx=Y}Y=wkx;return Y},{mode:2});var Um=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return Y};
_.m(Um,_.Z);Um.prototype.handleFreeTextFlowStepInputChanged=function(Y){_.qZ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:Y}}])};
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Um.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Um.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Um.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Um);
_.d(Um,"ytd-free-text-input-flow-step-renderer",function(){if(iWy!==void 0)return iWy;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return iWy=Y},{mode:1});var ZWy;var Dmo;var hww;var dmg=function(){return _.Z.apply(this,arguments)||this};
_.m(dmg,_.Z);_.S([_.R(),_.V("design:type",Object)],dmg.prototype,"data",void 0);_.S([_.Ff({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],dmg);
_.d(dmg,"yt-survey-answer-card-renderer",function(){if(hww===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Dmo===void 0&&(Dmo=document.createElement("template"));var O=Dmo;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);hww=Y}Y=hww;return Y},{mode:2});var bWb;var Slj;var vh=function(){return _.Z.apply(this,arguments)||this};
_.m(vh,_.Z);_.H=vh.prototype;_.H.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.H.selectedItemChanged=function(Y){_.qZ(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[Y.feedbackToken||""]}])};
_.H.surveyAnswerCardRendererClicked=function(Y){if(Y.target&&_.z(Y.model.item,E$j)){var G=Y.target;Y=_.z(Y.model.item,E$j);Y.onTapCommand?_.UK(G,[Y.onTapCommand],G):this.data.onTapCommand&&_.UK(G,[this.data.onTapCommand],G);this.selectedItemChanged(Y)}};
_.H.checkIsCancellationStyle=function(Y){return Y==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.H.updateSelectedItemFromBinding=function(Y){this.selectedItem=Y.detail.value};
vh.prototype.onSelectedItemChanged=vh.prototype.onSelectedItemChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],vh.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],vh.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],vh.prototype,"selectedItem",void 0);_.S([_.R({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.V("design:type",Boolean)],vh.prototype,"isCancellationStyle",void 0);
_.S([_.GO("selectedItem"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vh.prototype,"onSelectedItemChanged",null);_.S([_.Ff({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],vh);
_.d(vh,"yt-survey-flow-step-renderer",function(){if(Slj===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;bWb===void 0&&(bWb=document.createElement("template"));var O=bWb;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Slj=Y}Y=Slj;return Y},{mode:2});var J6=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return Y};
_.m(J6,_.Z);J6.prototype.handleSurveyFlowStepOptionChanged=function(Y){this.ytdReduxBehavior.dispatch(_.V6({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:Y}));_.qZ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:Y}}])};
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],J6.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],J6.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],J6.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],J6);
_.d(J6,"ytd-survey-flow-step-renderer",function(){if(ZWy!==void 0)return ZWy;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return ZWy=Y},{mode:1});var Nsx;var j6N;var VAy=function(){return _.Z.apply(this,arguments)||this};
_.m(VAy,_.Z);_.S([_.R(),_.V("design:type",Object)],VAy.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],VAy);
_.d(VAy,"ytd-metadata-line-renderer",function(){if(j6N!==void 0)return j6N;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return j6N=Y},{mode:1});var YE=function(){return _.Z.apply(this,arguments)||this};
_.m(YE,_.Z);YE.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],YE.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],YE.prototype,"isMasthead",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],YE);
_.d(YE,"ytd-media-product-renderer",function(){if(Nsx!==void 0)return Nsx;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Nsx=Y},{mode:1});var lkV;var Gf=function(){return _.Z.apply(this,arguments)||this};
_.m(Gf,_.Z);Gf.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Gf.prototype.onBillboardImageLoaded=function(){_.$s(this.hostElement,"yt-refit")};
Gf.prototype.onBillboardImageLoaded=Gf.prototype.onBillboardImageLoaded;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Gf.prototype,"data",void 0);_.S([_.Ox("#billboardImage"),_.V("design:type",Object)],Gf.prototype,"billboardImage",void 0);_.S([_.Yo("yt-img-shadow-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Gf.prototype,"onBillboardImageLoaded",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Gf);
_.d(Gf,"ytd-billboard-masthead-renderer",function(){if(lkV!==void 0)return lkV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return lkV=Y},{mode:1});var Bsx;var un=function(){var Y=_.Z.apply(this,arguments)||this;Y.smallSize=!1;return Y};
_.m(un,_.Z);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],un.prototype,"ytComponentBehaviorType",void 0);_.S([_.R(),_.V("design:type",Object)],un.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],un.prototype,"smallSize",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],un);
_.d(un,"ytd-bullet-formatted-string",function(){if(Bsx!==void 0)return Bsx;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Bsx=Y},{mode:1});var $mN;var Od=function(){return _.Z.apply(this,arguments)||this};
_.m(Od,_.Z);Od.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Od.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Od.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Od);
_.d(Od,"ytd-offer-detail-renderer",function(){if($mN!==void 0)return $mN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return $mN=Y},{mode:1});var qlg;var Qm=function(){return _.Z.apply(this,arguments)||this};
_.m(Qm,_.Z);Qm.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"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Qm.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Qm);
_.d(Qm,"ytd-offer-detail-step-renderer",function(){if(qlg!==void 0)return qlg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return qlg=Y},{mode:1});var s6V;var MD=function(){var Y=_.Z.apply(this,arguments)||this;Y.isInOfferModule=!1;return Y};
_.m(MD,_.Z);_.H=MD.prototype;_.H.computeHasEndpoint=function(){var Y;return!((Y=this.data)==null||!Y.onClickCommand)};
_.H.dataChanged=function(){var Y;if((Y=this.data)==null?0:Y.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 Y;if((Y=this.data)==null?0:Y.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.H.handleClickEvent=function(){var Y;if((Y=this.data)==null?0:Y.onClickCommand){var G;this.componentBehavior.resolveCommand((G=this.data)==null?void 0:G.onClickCommand)}};
_.H.onContentKeyDown=function(Y){Y.key==="Enter"?this.handleClickEvent(Y):Y.key===" "&&Y.preventDefault()};
_.H.onContentKeyUp=function(Y){Y.key===" "&&this.handleClickEvent(Y)};
MD.prototype.dataChanged=MD.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],MD.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],MD.prototype,"data",void 0);_.S([_.R({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],MD.prototype,"hasEndpoint",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],MD.prototype,"isInOfferModule",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MD.prototype,"dataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],MD);
_.d(MD,"ytd-channel-masthead-renderer",function(){if(s6V!==void 0)return s6V;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return s6V=Y},{mode:1});var ccb;var H6=function(){var Y=_.Z.apply(this,arguments)||this;Y.thumbnailObjectFit="CONTAIN";Y.thumbnailObjectPosition="LEFT";Y.isExpanded=!1;return Y};
_.m(H6,_.Z);_.H=H6.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 Y;return((Y=this.data)==null?void 0:Y.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.H.onExpandBtnClick=function(){var Y,G=_.z((Y=this.data)==null?void 0:Y.showMoreButtonRenderer,KxS);G&&_.YR(_.M4(),G.trackingParams);this.isExpanded=!this.isExpanded};
_.H.onOfferInfoClick=function(Y){this.isTapOnOfferInfoContainerEnabled&&(_.hf(_.wG(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.dE(_.wG(Y)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.H.onBottomBarClick=function(){this.executeTapCommand()};
_.H.executeTapCommand=function(){var Y,G=(Y=this.data)==null?void 0:Y.tapCommand;G&&this.ytComponentBehavior.resolveCommand(G)};
_.H.resetStates=function(){this.isExpanded=!1};
_.Uk.Object.defineProperties(H6.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var Y=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),G,u,O;return((G=this.data)==null?void 0:G.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&Y&&!!((u=this.data)==null?0:(O=u.benefits)==null?0:O.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return((G=_.z((Y=this.data)==null?void 0:Y.showMoreButtonRenderer,KxS))==null?void 0:G.showMoreButtonTitle)||((u=this.data)==null?void 0:u.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return((G=_.z((Y=this.data)==null?void 0:Y.showMoreButtonRenderer,KxS))==null?void 0:G.showLessButtonTitle)||((u=this.data)==null?void 0:u.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var Y;return(Y=this.showLessButtonTitle)!=null?Y:""}var G;return(G=this.showMoreButtonTitle)!=null?G:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return((Y=this.data)==null?void 0:Y.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((G=this.data)==null?0:G.footerTitle)||((u=this.data)==null?0:u.footerSubtitle))}}});
H6.prototype.dataChanged=H6.prototype.dataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],H6.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],H6.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",String)],H6.prototype,"thumbnailObjectFit",void 0);
_.S([_.R(),_.V("design:type",String)],H6.prototype,"thumbnailObjectPosition",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.V("design:type",Boolean)],H6.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.S([_.R(),_.V("design:type",Object)],H6.prototype,"isExpanded",void 0);_.S([_.R(),_.V("design:type",Object)],H6.prototype,"data",void 0);_.S([_.R({computed:"computeIcon_(data.footerIcon)"}),_.V("design:type",String)],H6.prototype,"icon",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],H6.prototype,"dataChanged",null);_.S([_.f("data.thumbnail"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],H6.prototype,"hasThumbnail",null);_.S([_.f("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],H6.prototype,"enableExpandButton",null);
_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],H6.prototype,"enableOfferContentIcon",null);_.S([_.f("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.V("design:type",Object),_.V("design:paramtypes",[])],H6.prototype,"showMoreButtonTitle",null);_.S([_.f("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.V("design:type",Object),_.V("design:paramtypes",[])],H6.prototype,"showLessButtonTitle",null);
_.S([_.f("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.V("design:type",String),_.V("design:paramtypes",[])],H6.prototype,"expandedBtnText",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],H6.prototype,"enableBottomBar",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],H6);
_.d(H6,"ytd-offer-card-renderer",function(){if(ccb!==void 0)return ccb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return ccb=Y},{mode:1});var UmN;var Ed=function(){return _.Z.apply(this,arguments)||this};
_.m(Ed,_.Z);Ed.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"}}}};
Ed.prototype.onClick=function(Y){if(!_.hf(Y.composedPath()||[],this.hostElement,["A".toString()])){var G,u;if((Y=(u=_.z((G=this.data)==null?void 0:G.actionButton,_.ru))==null?void 0:u.command)&&!this.ytComponentBehavior.resolveCommand(Y)){var O;(O=_.M4())==null||O.clickCommand(Y);_.sH().resolve(_.rH).resolveCommand(Y,{form:{element:this.hostElement}})}}};
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Ed.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ed.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ed.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Ed);
_.d(Ed,"ytd-offer-content-renderer",function(){if(UmN!==void 0)return UmN;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return UmN=Y},{mode:1});var vuj;var ta=function(){return _.Z.apply(this,arguments)||this};
_.m(ta,_.Z);ta.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Uk.Object.defineProperties(ta.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!((Y=this.data)==null||!Y.title)||!((G=this.data)==null||!G.description)}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ta.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ta.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],ta.prototype,"hasHeaderData",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],ta);
_.d(ta,"ytd-offer-section-renderer",function(){if(vuj!==void 0)return vuj;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return vuj=Y},{mode:1});var Jcx;var Kt=function(){return _.Z.apply(this,arguments)||this};
_.m(Kt,_.Z);
Kt.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"}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Kt.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Kt.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Kt);
_.d(Kt,"ytd-offer-selection-step-renderer",function(){if(Jcx!==void 0)return Jcx;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Jcx=Y},{mode:1});var Y$o;var aQ=function(){return _.Z.apply(this,arguments)||this};
_.m(aQ,_.Z);aQ.prototype.computeStyle=function(Y){return Y};
aQ.prototype.computeImageWidth=function(Y){return Y==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.S([_.R({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.V("design:type",String)],aQ.prototype,"containerStyle",void 0);_.S([_.R({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.V("design:type",String)],aQ.prototype,"imageWidth",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],aQ.prototype,"data",void 0);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],aQ);
_.d(aQ,"ytd-confirmation-masthead-renderer",function(){if(Y$o!==void 0)return Y$o;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Y$o=Y},{mode:1});var GIo;var Tf=function(){return _.Z.apply(this,arguments)||this};
_.m(Tf,_.Z);Tf.prototype.computeStyle=function(Y){return Y};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Tf.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.V("design:type",String)],Tf.prototype,"containerStyle",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Tf);
_.d(Tf,"ytd-purchase-complete-detail-renderer",function(){if(GIo!==void 0)return GIo;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return GIo=Y},{mode:1});var upV;var Lt=function(){var Y=_.Z.apply(this,arguments)||this;Y.scriptsAppended=!1;return Y};
_.m(Lt,_.Z);Lt.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"}}}};
Lt.prototype.onDataChanged=function(){var Y=this.get("data.gtmId");Y&&(_.KI(Y,_.DE("GL","")),this.setupConversionTracking())};
Lt.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var Y=document.createElement("noscript");Y.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(Y);this.scriptsAppended=!0}};
Lt.prototype.onDataChanged=Lt.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Lt.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Lt.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Lt.prototype,"scriptsAppended",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lt.prototype,"onDataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Lt);
_.d(Lt,"ytd-purchase-complete-step-renderer",function(){if(upV!==void 0)return upV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return upV=Y},{mode:1});var OCj;var gI=function(){return _.Z.apply(this,arguments)||this};
_.m(gI,_.Z);gI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],gI.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],gI);
_.d(gI,"ytd-ypc-transaction-error-message-renderer",function(){if(OCj!==void 0)return OCj;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return OCj=Y},{mode:1});var Q7V;var MU9;var XC=function(){var Y=_.Z.apply(this,arguments)||this;Y.handlePhoneVerificationSuccess=function(G){if(Y.isValidPhoneVerificationCompletionMessageEvent(G)){var u;((u=Y.data)==null?0:u.nextStepCommand)&&Y.ytComponentBehavior.resolveCommand(Y.data.nextStepCommand)}};
return Y};
_.m(XC,_.Z);XC.prototype.isValidPhoneVerificationCompletionMessageEvent=function(Y){if(Y.data!=="yt-phone-verification-complete")return!1;Y=_.l7(Y.origin);return Y!==null&&Y.includes("youtube.com")};
XC.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
XC.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],XC.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],XC.prototype,"data",void 0);_.S([_.Ff({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],XC);
_.d(XC,"yt-feature-enablement-soft-entry-renderer",function(){if(MU9===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Q7V===void 0&&(Q7V=document.createElement("template"));var O=Q7V;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);MU9=Y}Y=MU9;return Y},{mode:1});var HCV;var Ejb;var tUg;var Kcg;var aoS=function(){return _.Z.apply(this,arguments)||this};
_.m(aoS,_.Z);_.S([_.R(),_.V("design:type",Object)],aoS.prototype,"data",void 0);_.S([_.Ff({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],aoS);
_.d(aoS,"yt-benefits-item-renderer",function(){if(Kcg===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;tUg===void 0&&(tUg=document.createElement("template"));var O=tUg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Kcg=Y}Y=Kcg;return Y},{mode:2});var Trw;var Lcx;var P6=function(){return _.Z.apply(this,arguments)||this};
_.m(P6,_.Z);P6.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
P6.prototype.computeisWithoutPadding=function(){var Y;return((Y=this.data)==null?void 0:Y.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],P6.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],P6.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.V("design:type",Boolean)],P6.prototype,"isWithoutPadding",void 0);_.S([_.Ff({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],P6);
_.d(P6,"yt-benefits-section-renderer",function(){if(Lcx===void 0){var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Trw===void 0&&(Trw=document.createElement("template"));var O=Trw;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Lcx=Y}Y=Lcx;return Y},{mode:2});var IQ=function(){return _.Z.apply(this,arguments)||this};
_.m(IQ,_.Z);IQ.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
IQ.prototype.computeisUsingLargeWidth=function(){var Y;return((Y=this.data)==null?void 0:Y.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],IQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],IQ.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.V("design:type",Boolean)],IQ.prototype,"isUsingLargeWidth",void 0);_.S([_.Ff({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],IQ);
_.d(IQ,"yt-benefits-flow-step-renderer",function(){if(Ejb===void 0){var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;HCV===void 0&&(HCV=document.createElement("template"));var O=HCV;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Ejb=Y}Y=Ejb;return Y},{mode:2});var gjN;var XLy;var kE=function(){return _.Z.apply(this,arguments)||this};
_.m(kE,_.Z);kE.prototype.checkIsUsingLargeWidth=function(){var Y;return((Y=this.data)==null?void 0:Y.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.S([_.R(),_.V("design:type",Object)],kE.prototype,"data",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.S([_.R({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.V("design:type",Boolean)],kE.prototype,"isUsingLargeWidth",void 0);_.S([_.Ff({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],kE);
_.d(kE,"yt-confirmation-flow-step-renderer",function(){if(XLy===void 0){var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;gjN===void 0&&(gjN=document.createElement("template"));var O=gjN;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);XLy=Y}Y=XLy;return Y},{mode:2});var PXw;var Iox;var kIx=function(){return _.Z.apply(this,arguments)||this};
_.m(kIx,_.Z);_.S([_.R(),_.V("design:type",Object)],kIx.prototype,"data",void 0);_.S([_.Ff({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],kIx);
_.d(kIx,"yt-info-flow-step-renderer",function(){if(Iox===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;PXw===void 0&&(PXw=document.createElement("template"));var O=PXw;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Iox=Y}Y=Iox;return Y},{mode:2});var njN;var Fcx;var pL9=function(){return _.Z.apply(this,arguments)||this};
_.m(pL9,_.Z);_.S([_.R(),_.V("design:type",Object)],pL9.prototype,"data",void 0);_.S([_.Ff({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],pL9);
_.d(pL9,"yt-info-list-flow-step-renderer",function(){if(Fcx===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;njN===void 0&&(njN=document.createElement("template"));var O=njN;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Fcx=Y}Y=Fcx;return Y},{mode:2});var zeN=_.D(function(Y){var G=Y.data;return _.T("styled-text-view-model",{class:_.s3("ytStyledTextViewModelHost",function(){return R_j(G().fontAttributes)},function(){return iKS(G().color)})},_.T(_.eO,{text:function(){return G().text},
ariaLabel:function(){var u,O,Q;return(Q=(u=G().accessibility)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label)!=null?Q:""}}))},"fi");
zeN.idomCompat=!0;var mgg=_.D(function(Y){var G=function(){var Q,M,t,K;return(K=(t=(Q=Y.alt)==null?void 0:Q.call(Y))!=null?t:(M=Y.data().accessibilityData)==null?void 0:M.label)!=null?K:""},u=function(){return Y.data().imageWidth},O=function(){return Y.data().imageHeight};
return _.T("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.T(_.X,{cond:function(){var Q=Y.data();if(Q){var M,t,K;var L=((M=_.sH().resolve(_.q3(_.Ee)))==null?0:M())?(t=Q.imageDark)!=null?t:Q.imageLight:(K=Q.imageLight)!=null?K:Q.imageDark}else L=void 0;return L},
then:function(Q){return _.T(_.RD,Object.assign({},Y,{data:Q,alt:G,targetWidth:u,targetHeight:O,preserveHeight:!0,preserveWidth:!0}))}}))},"gi");
mgg.idomCompat=!0;var nt=_.D(function(Y){var G=Y.data;Y=_.dB(function(){return G().slots},[]);
var u=_.dB(function(){return G().layoutProperties},{}),O=_.sH().resolve(_.od);
return _.T("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:C5b(u,O)},_.T(_.rc,{each:Y,keyBy:"INDEX"},function(Q){return _.T("div",{class:"ytContainerLayoutViewModelSlot",style:C5b(function(){return Q().layoutProperties},O)},_.T(_.HE,{data:function(){return Q().contents}},{containerLayoutViewModel:nt,
badgeViewModel:_.b2,buttonViewModel:_.$Y,styledTextViewModel:zeN,contentPreviewImageViewModel:function(M){return _.T(_.c9,{data:M.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(M){return _.T(mgg,{data:M.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"hi");
nt.idomCompat=!0;var Wcb=_.D(function(Y){var G=Y.data;var u=Y.stateFns;var O=function(){var g=G(),P=g.productId;return!(!g.clearGroupId&&!P)},Q=function(){var g=G(),P=g.clearGroupId;
return(g=g.productId)?u().isProductSelected(g):P?u().getSelectedProductByGroupId(P)==null:!1},M=function(g){var P=G(),I=P.clearGroupId;
if(P=P.productId)u().onProductSelected(P),g==null||g.forEach(function(k){_.W3(k)});
else if(I)u().onClearGroupSelected(I)},t=function(){var g=G(),P=g.clearGroupId;
if(g=g.productId){var I;return"group:"+(((I=u().getProductById(g))==null?void 0:I.groupId)||"")}return P?"group:"+P:""},K=_.dB(function(){return G().header},[]),L=_.dB(function(){return G().body},[]);
return _.T("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.T(_.X,{cond:function(){return K().length>0||O()},
then:function(){return _.T("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.T("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.T(_.HE,{data:K},{containerLayoutViewModel:function(g){return _.T("div",{class:"ytPdpCardSectionViewModelContentItem"},_.T(nt,{data:g.data}))},
styledTextViewModel:function(g){return _.T("div",{class:"ytPdpCardSectionViewModelContentItem"},_.T(zeN,{data:g.data}))}})),_.T(_.X,{cond:O,
then:function(){return _.T("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.T(_.A4,{checked:Q,name:t,onChange:function(){M(G().onSelect)}}))}}))}}),_.T(_.X,{cond:function(){return L().length>0},
then:function(){return _.T("div",null,_.T(_.HE,{data:L},{containerLayoutViewModel:function(g){return _.T("div",{class:"ytPdpCardSectionViewModelContentItem"},_.T(nt,{data:g.data}))}}))}}))},"ii");
Wcb.idomCompat=!0;var ru9=_.D(function(Y){var G=Y.data;var u=Y.stateFns;return _.T("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.T(_.X,{cond:function(){return G().banner},
then:function(O){return _.T("div",{class:"ytPdpCardViewModelBanner"},_.T(_.eO,{text:O}))}}),_.T(_.HE,{data:function(){return G().sections}},{pdpCardSectionViewModel:function(O){O=O.data;
var Q={};return _.T("div",{class:_.s3("ytPdpCardViewModelSectionContainer",(Q.ytPdpCardViewModelShowDividers=function(){return G().showDividers},Q))},_.T(Wcb,{data:O,
stateFns:u}))}}))},"ji");
ru9.idomCompat=!0;var xgb=_.D(function(Y){var G=Y.data;var u=Y.isOverlay;Y={};return _.T("pdp-masthead-view-model",{class:_.s3("ytPdpMastheadViewModelHost",(Y.ytPdpMastheadViewModelIsOverlay=u,Y))},_.T(_.HE,{data:function(){return G().image}},{contentPreviewImageViewModel:_.c9,
themedImageViewModel:function(O){return _.T(mgg,{data:O.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.T(_.X,{cond:function(){return G().title},
then:function(O){return _.T("h1",{class:"ytPdpMastheadViewModelHeading"},_.T(_.eO,{text:O,isOverlay:u}))}}),_.T(_.rc,{each:function(){var O;
return(O=G().finePrint)!=null?O:[]}},function(O){return _.T("div",{class:"ytPdpMastheadViewModelFinePrint"},_.T(_.eO,{text:O,
isOverlay:u}))}))},"ki");
xgb.idomCompat=!0;var foB=_.D(function(Y){var G=Y.data;var u=Y.stateFns;var O=function(){return"pdp-pricing-group-selector-"+G().pricingGroupAttributeIds},Q=_.dB(function(){return G().pricingGroupSelectorSectionHeader});
return _.T("pdp-pricing-group-selector-view-model",null,_.T(_.X,{cond:function(){return!!Q()},
then:function(){return _.T(_.HE,{data:Q},{sectionHeaderViewModel:function(M){M=M.data;var t={};return _.T("div",{class:_.s3("ytPdpPricingGroupSelectorViewModelSectionHeader",(t.ytPdpPricingGroupSelectorViewModelFullBleed=!0,t.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,t))},_.T(_.Ml,{data:M}))}})}}),_.T("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.T(_.rc,{each:function(){var M=u().getSelectedProductByGroupId(G().groupId);
if(!M)return _.ij(Error("Fl`"+G().groupId)),[];var t,K=(t=G().pricingGroupAttributeIds)!=null?t:[],L;if((L=M.pricingGroups)==null||!L.length||!K.length)return[];t=M.pricingGroups.filter(function(k){return K.length?k.pricingGroupAttributes.every(function(n){return K.includes(n)}):!1});
M=[];if(K.length>0){t=[].concat(_.c8(t));L=_.E(K);for(var g=L.next(),P={};!g.done;P={targetAttrId:void 0},g=L.next())P.targetAttrId=g.value,g=t.findIndex(function(k){return function(n){return n.pricingGroupAttributes.includes(k.targetAttrId)}}(P)),g!==-1&&(M.push(t[g]),t.splice(g,1))}var I=u().getSelectedPricingGroupAttributesByGroupId(G().groupId);
return M.map(function(k){var n=!1;I&&k.pricingGroupAttributes&&(n=uX(k.pricingGroupAttributes,I));return{pricingGroup:k,isSelected:n}})},
keyBy:function(M){return M.pricingGroup.pricingGroupId}},function(M){return _.T("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.T("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.T(_.HE,{data:function(){return M().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:nt})),_.T("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.T(_.A4,{checked:function(){return M().isSelected},
name:O,onClick:function(){var t=M().pricingGroup;u().onPricingGroupSelected(t.pricingGroupId);if(t=_.FS(t.onSelectPricingGroup)){var K;(K=_.sH().resolve(_.rH))==null||K.resolveCommand(t)}}})))})))},"li");
foB.idomCompat=!0;var CXg=_.D(function(Y){var G=Y.data;var u=Y.stateFns;var O=function(){var t=u().getSelectedPricingOptions().map(function(g){return g.pricingOptionId}),K=u().getSelectedProductByGroupId(G().groupId);
if(!K)return _.ij(Error("Gl`"+G().groupId)),[];var L=u().getSelectedPricingGroupAttributesByGroupId(G().groupId);return dv9(K.pricingOptions,L,t)},Q=_.dB(function(){return G().pricingOptionSelectorSectionHeader}),M=function(){return O().length>1};
return _.T("pdp-pricing-option-selector-view-model",null,_.T(_.X,{cond:function(){return!!Q()&&M()},
then:function(){return _.T(_.HE,{data:Q},{sectionHeaderViewModel:function(t){t=t.data;var K={};return _.T("div",{class:_.s3("ytPdpPricingOptionSelectorViewModelSectionHeader",(K.ytPdpPricingOptionSelectorViewModelFullBleed=!0,K.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,K))},_.T(_.Ml,{data:t}))}})}}),_.T(_.X,{cond:M,
then:function(){return _.T("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.T(_.rc,{each:O,keyBy:"INDEX"},function(t){return _.T("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.T("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.T(_.HE,{data:function(){return t().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:nt})),_.T("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.T(_.A4,{checked:function(){return t().isSelected},
onClick:function(){u().onPricingOptionSelected(t().pricingOption.pricingOptionId);var K=t().pricingOption.onSelectPricingOption;if(K=_.FS(K)){var L;(L=_.sH().resolve(_.rH))==null||L.resolveCommand(K)}}})))}))}}))},"mi");
CXg.idomCompat=!0;var yuB=_.D(function(Y){var G=Y.data;var u=Y.stateFns;return _.T("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.T(_.HE,{data:function(){var O,Q;return(Q=(O=u().getSelectedPricingOptions()[0])==null?void 0:O.primaryButton)!=null?Q:G().emptyStateButton}},{buttonViewModel:_.$Y}))},"ni");
yuB.idomCompat=!0;var eeo=_.D(function(Y){var G=Y.stateFns;return _.T("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.T(_.HE,{data:function(){return G().getSelectedPricingOptions().flatMap(function(u){return u.summaryLines}).filter(function(u){return!!u})}},{containerLayoutViewModel:function(u){return _.T("div",{class:"ytPdpSummaryViewModelLineItem"},_.T(nt,{data:u.data}))}}))},"oi");
eeo.idomCompat=!0;var Auy=_.D(function(Y){function G(p){var W=t();_.hj(_.zP("pdpStateEntity",W,{key:W,selectedPricingOptions:p}))}
var u=Y.data;var O=Y.internalScrolling;var Q=Y.stateFnsForTesting;var M=_.dB(function(){return u().allProducts},[]),t=_.dB(function(){return u().pdpStateEntityKey},""),K=_.Oe(bKb,t),L=_.p2(function(){_.hT(!0);
var p;return(p=Q==null?void 0:Q())!=null?p:Nw9(K,M,G)},void 0,"Pzdsic"),g=_.dB(function(){return u().body},[]),P=_.dB(function(){return u().columnBreakHints},[]),I=function(){return u().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},k=function(){return I()||u().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},n=_.p2(function(){var p=_.e0(u().background),W;
if(p==null?0:(W=p.sources)==null?0:W.length){var C=C===void 0?!0:C;p=_.RJU(void 0,p.sources,void 0,C,C?1E3:void 0,C?void 0:1E3)}else p=null;return p},void 0,"RDPOae");
_.ii(function(){var p=u().onStartCommand;if(p&&(p=_.FS(p))){var W;(W=_.sH().resolve(_.rH))==null||W.resolveCommand(p)}});
Y={};return _.T("pdp-view-model",{class:_.s3("ytPdpViewModelHost",(Y.ytPdpViewModelHasBackground=function(){return k()||!!n()},Y.ytPdpViewModelHasDarkBackground=k,Y.ytPdpViewModelHasScrim=I,Y.ytPdpViewModelInternalScrolling=O,Y.ytPdpViewModelForceSingleColumn=function(){return P().length===0},Y)),
style:_.Yh({"--pdp-view-model-background":function(){return n()?"url("+n()+")":void 0}})},_.T("div",{class:"ytPdpViewModelColumnContainer"},_.T(_.rc,{each:function(){return jdN(g(),P())},
keyBy:"INDEX"},function(p){return _.T("div",{class:"ytPdpViewModelColumn"},_.T(_.HE,{data:p},{containerLayoutViewModel:function(W){return _.T(FC,null,_.T(nt,{data:W.data}))},
dividerViewModel:function(W){return _.T(FC,{fullBleed:!0},_.T(_.vmU,{data:W.data}))},
pdpCardViewModel:function(W){return _.T(FC,null,_.T(ru9,{data:W.data,stateFns:L}))},
pdpMastheadViewModel:function(W){return _.T(FC,null,_.T(xgb,{data:W.data,isOverlay:k}))},
pdpPricingGroupSelectorViewModel:function(W){return _.T(FC,null,_.T(foB,{data:W.data,stateFns:L}))},
pdpPricingOptionSelectorViewModel:function(W){return _.T(FC,null,_.T(CXg,{data:W.data,stateFns:L}))},
pdpPrimaryButtonViewModel:function(W){return _.T(FC,null,_.T(yuB,{data:W.data,stateFns:L}))},
pdpSummaryViewModel:function(W){return _.T(FC,null,_.T(eeo,{data:W.data,stateFns:L}))},
sectionHeaderViewModel:function(W){return _.T(FC,{fullBleed:!0,noVerticalPadding:!0},_.T(_.Ml,{data:W.data}))}}))})))},"pi");
Auy.idomCompat=!0;var FC=_.D(function(Y){var G={};return _.T("div",{class:_.s3("ytPdpViewModelItem",(G.ytPdpViewModelFullBleed=Y.fullBleed,G.ytPdpViewModelNoVerticalPadding=Y.noVerticalPadding,G))},Y.children)},"qi");_.hR(Auy,"pdp-view-model",{props:{data:_.AC,stateFnsForTesting:_.wH,internalScrolling:_.wH}});var ojw=_.D(function(Y){var G=Y.data;var u=Y.className;var O=_.Oe(_.j8,function(){return G().flowStateEntityKey});
return _.T("ytm-premium-purchase-button-renderer",{class:_.s3("ytPremiumPurchaseButtonRendererHost",u)},_.T(_.HE,{data:function(){var Q;return(Q=_.z(O(),ljg))==null?void 0:Q.primaryButtonOverride}},{buttonRenderer:function(Q){return _.T(_.dY,{data:Q.data,
className:u})},
buttonViewModel:function(Q){return _.T(_.$Y,{data:Q.data,className:u})}}))},"ri");
ojw.idomCompat=!0;var iCb=_.D(function(Y){var G=Y.data;Y=Y.className;var u=function(){return V0S(G().style)},O=_.s3("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",u),Q=_.s3("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",u);
return _.T("yt-flow-bottom-bar-renderer",{class:_.s3("yt-flow-bottom-bar-renderer",Y,u)},_.T(_.HE,{data:function(){return G().secondaryButton}},{buttonRenderer:function(M){return _.T(_.dY,{data:M.data,
className:Q})},
buttonViewModel:function(M){return _.T(_.$Y,{data:M.data,className:Q})},
premiumPurchaseButtonRenderer:function(M){return _.T(ojw,{data:M.data,className:Q})}}),_.T(_.HE,{data:function(){return G().primaryButton}},{buttonRenderer:function(M){return _.T(_.dY,{data:M.data,
className:O})},
buttonViewModel:function(M){return _.T(_.$Y,{data:M.data,className:O})},
premiumPurchaseButtonRenderer:function(M){return _.T(ojw,{data:M.data,className:O})}}))},"si");
iCb.idomCompat=!0;_.hR(iCb,"yt-flow-bottom-bar-renderer",{props:{data:_.AC,className:_.AC}});var Reg=_.D(function(Y){var G=_.s3(Y.className,"ytOfferSummaryRendererHost");return _.T("yt-offer-summary-renderer",{class:G},_.T("div",{class:"ytOfferSummaryRendererTextContainer"},_.T("div",{class:"ytOfferSummaryRendererEyebrowText"},_.T(_.eO,{text:function(){return Y.data().eyebrowText}})),_.T("div",{class:"ytOfferSummaryRendererTitle"},_.T(_.eO,{text:function(){return Y.data().title}})),_.T("div",{class:"ytOfferSummaryRendererSubtitle"},_.T(_.eO,{text:function(){return Y.data().subtitle}})),_.T("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.T(_.rc,{each:function(){var u;
return(u=Y.data().featureListData)!=null?u:[]}},function(u){var O;
return _.T("div",{class:"ytOfferSummaryRendererFeatureList"},_.T(_.GS,{icon:(O=u.icon)==null?void 0:O.iconType,active:function(){return u.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(u.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"}}}),_.T("div",{class:"ytOfferSummaryRendererFeatureListText"},_.T(_.eO,{text:u.text,
className:function(){return u.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.T("div",{class:"ytOfferSummaryRendererDescription"},_.T(_.eO,{text:function(){return Y.data().description}}))))},"ti");_.hR(_.D(function(Y){var G={};G=_.s3("ytOfferSummaryFlowStepRendererHost",(G.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=Y.shouldDisableHeaderTopMargin,G));return _.T("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:G},_.T("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.T("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.T(_.eO,{text:function(){return Y.data().header}})),_.T("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.T(_.eO,{text:function(){return Y.data().subtitle}}))),_.T("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.T(_.HE,{data:function(){return Y.data().offerSummary}},{offerSummaryRenderer:function(u){return _.T(Reg,{data:u.data,
className:Y.flowClassName})}})))},"ui"),"yt-offer-summary-flow-step-renderer",{props:{data:_.wH,
flowClassName:_.wH,flowStateEntityKey:_.wH,shouldDisableHeaderTopMargin:_.wH}});var wLS=_.D(function(Y){var G=Y.data;var u=Y.className;var O=Y.flowStateEntityKey;var Q=Y.selectionStepStyle;Y=_.U3(function(L){var g=G(),P=O==null?void 0:O();L.target&&(L.stopPropagation(),L=P||"",P=_.j8(_.DS().getState(),L),g=Object.assign({},P,{premiumPurchaseFlowState:{selectedOptionId:g.optionId,primaryButtonOverride:g.primaryButtonOverride}}),_.DS().dispatch(_.t$("flowStateEntity",L,g)));return!1});
var M=function(){return(O==null?void 0:O())||""},t=_.Oe(_.j8,M);
_.ii(function(){var L=G(),g=M(),P=t();L.defaultSelected&&g!==""&&L.primaryButtonOverride&&Bwo(L.optionId||"",g,L.primaryButtonOverride,P)});
var K={};return _.T("ytm-option-item-renderer",{"on:click":Y,class:_.s3(u,"ytm-option-item-renderer",(K["ytm-option-item-renderer--lp2-style"]=function(){return(Q==null?void 0:Q())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},K))},_.T("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.T("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var L=G(),g=M(),P=t();P=_.z(P,ljg);return(P?(P==null?void 0:P.selectedOptionId)||"":L.defaultSelected&&g!==""?(L==null?void 0:L.optionId)||"":"")===G().optionId},
name:("input"+_.rd(_.rm)).toString()})),_.T("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.T(_.HE,{data:function(){return G().titleBadge}},{badgeViewModel:function(L){return _.T(_.b2,{data:L.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.T(_.X,{cond:function(){return G().eyebrowText},
then:function(){return _.T("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.T(_.eO,{text:function(){return G().eyebrowText}}))}}),_.T("div",{class:"ytm-option-item-renderer__option-item-title"},_.T(_.eO,{text:function(){return G().title}})),_.T("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.T(_.eO,{text:function(){return G().subtitle}})),_.T(_.X,{cond:function(){return G().featureListData},
then:function(){return _.T("div",{class:"ytm-option-item-renderer__feature-list-data"},_.T(_.rc,{each:function(){return G().featureListData||[]}},function(L){var g,P=(g=L.icon)==null?void 0:g.iconType;
a:switch(L.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":g="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":g="ytm-option-item-renderer__feature-list-icon-small";break a;default:g="ytm-option-item-renderer__feature-list-icon-default"}return _.T("div",{class:"ytm-option-item-renderer__feature-list"},_.T(_.GS,{icon:P,className:g,active:function(){return L.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.T("div",{class:"ytm-option-item-renderer__feature-list-text"},_.T(_.eO,{text:L.text,
className:function(){return L.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.T("div",{class:"ytm-option-item-renderer__option-item-description"},_.T(_.eO,{text:function(){return G().description}}))))},"vi");var ZCw=_.D(function(Y){var G=Y.data;var u=Y.flowClassName;var O=Y.flowStateEntityKey;var Q=Y.selectionStepStyle;return _.T("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.T("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.T("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.T(_.eO,{text:function(){return G().title}}),_.T(_.HE,{data:function(){return G().titleBadge}},{badgeViewModel:function(M){return _.T(_.b2,{data:M.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.T(_.X,{cond:function(){return G().subtitle},
then:function(){return _.T("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.T(_.eO,{text:function(){return G().subtitle}}))}}),_.T(_.X,{cond:function(){return G().featureListData},
then:function(M){return _.T("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.T(_.rc,{each:M},function(t){var K;return _.T("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.T(_.GS,{icon:(K=t.icon)==null?void 0:K.iconType,active:function(){return t.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(t.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.T("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.T(_.eO,{text:t.text,
className:function(){return t.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.T(_.X,{cond:function(){return G().secondaryTitle},
then:function(){return _.T("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.T(_.eO,{text:function(){return G().secondaryTitle}}))}}),_.T(_.rc,{each:function(){return G().sectionDisclaimers||[]}},function(M){return _.T("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.T(_.eO,{text:M}))})),_.T(_.HE,{data:function(){return G().optionItems}},{optionItemRenderer:function(M){return _.T("div",{class:"ytOptionSectionRendererOptionItem"},_.T(wLS,{data:M.data,
className:u,flowStateEntityKey:O,selectionStepStyle:Q}))}}),_.T(_.X,{cond:function(){return G().offerText},
then:function(){return _.T("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.T(_.eO,{text:function(){return G().offerText}}))}}))},"wi");
ZCw.idomCompat=!0;var Dgo=_.D(function(Y){var G=Y.data;var u=Y.flowClassName;var O=Y.flowStateEntityKey;Y=Y.isDesktop;var Q=_.CH("div"),M=function(){var P;return(P=G().flowStateEntityKey)!=null?P:O==null?void 0:O()},t=function(){return(M==null?void 0:M())||""},K=function(){return G().style},L=_.Oe(_.j8,t);
_.ii(function(){$vN(G(),t(),L());setTimeout(function(){var P;(P=Q.value)==null||P.focus()})});
var g={};return _.T("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.s3("ytm-option-selection-flow-step-renderer",(g["ytm-option-selection-flow-step-renderer--desktop"]=Y,g["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return G().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},g))},_.T("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"},
_.T("div",{el:Q,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.T(_.eO,{text:function(){return G().header}})),_.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.T(_.eO,{text:function(){return G().subtitle}}))),_.T(_.HE,{data:function(){return G().optionItems||[]}},{optionItemRenderer:function(P){return _.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.T(wLS,{data:P.data,
className:u,flowStateEntityKey:M,selectionStepStyle:K}))},
optionSectionRenderer:function(P){return _.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.T(ZCw,{data:P.data,flowClassName:u,flowStateEntityKey:M,selectionStepStyle:K}))}}))},"xi");
Dgo.idomCompat=!0;_.hR(Dgo,"yt-option-selection-flow-step-renderer",{props:{data:_.AC,flowClassName:_.AC,flowStateEntityKey:_.AC,isDesktop:_.AC}});var pt=_.D(function(Y){var G=_.bM(Y,{type:1,disablePadding:!1,disablePrimaryButton:!1}),u=G.data,O=G.type;Y=G.disablePadding;var Q=G.disablePrimaryButton,M=G.onClickPrimaryButton,t=function(){return u().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},K=function(){return{disabled:Q(),
state:Q()?"disabled":"active"}},L=function(){return u().leadingLabel||u().trailingLabel};
G={};return _.T("yt-panel-footer-view-model",{class:_.s3("yt-panel-footer-view-model",(G["yt-panel-footer-view-model--hide-divider"]=function(){return u().shouldHideDivider},G["yt-panel-footer-view-model--disable-padding"]=Y,G))},_.T(_.X,{cond:L,
then:function(){var g={},P={};return _.T("div",{class:_.s3("yt-panel-footer-view-model__text-row",(g["yt-panel-footer-view-model--row-bottom-padding"]=function(){var I=u();return!(!I.leadingLabel&&!I.trailingLabel||!I.primaryButton&&!I.secondaryButton)},g))},_.T(_.eO,{text:function(){return u().leadingLabel},
className:_.s3((P["yt-panel-footer-view-model--text-padding"]=L,P))}),_.T(_.eO,{text:function(){return u().trailingLabel}}))}}),_.T(_.X,{cond:t,
then:function(){var g={};return _.T("div",{class:"yt-panel-footer-view-model__button-stack"},_.T("div",{class:_.s3("yt-panel-footer-view-model__primary-button",(g["yt-panel-footer-view-model__button-stack--top-button"]=function(){return u().secondaryButton},g))},_.T(_.HE,{data:function(){return u().primaryButton}},{buttonViewModel:function(P){return _.T(_.$Y,{data:P.data,
buttonOverrides:K,onClick:M})}})),_.T(_.HE,{data:function(){return u().secondaryButton}},{buttonViewModel:_.$Y}))}}),_.T(_.X,{cond:function(){return!t()},
then:function(){var g={},P={},I={};return _.T("div",{class:_.s3("yt-panel-footer-view-model__button-row",(g["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===O()},g))},_.T("div",{class:_.s3("yt-panel-footer-view-model__button-row--left-button",(P["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===O()},P["yt-panel-footer-view-model__button-row--hidden"]=function(){return!u().secondaryButton||0===O()},P["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===O()},P))},_.T(_.HE,{data:function(){return u().secondaryButton}},{buttonViewModel:_.$Y})),_.T("div",{class:_.s3("yt-panel-footer-view-model__primary-button",(I["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===O()||1===O()},I["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===O()},I))},_.T(_.HE,{data:function(){return u().primaryButton}},{buttonViewModel:function(k){return _.T(_.$Y,{data:k.data,
buttonOverrides:K,onClick:M})}})))}}))},"yi");
pt.idomCompat=!0;var heo=_.D(function(Y){Y=_.bM(Y,{disablePadding:!1});var G=Y.data,u=Y.disablePadding;Y=_.iiy(function(){return G().formId},void 0,function(){return G().onSubmitSuccess});
var O=Y.submitForm,Q=Y.isValid,M=Y.isSubmitting;return _.T("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.T(_.HE,{data:function(){return G().panelFooter}},{panelFooterViewModel:function(t){return _.T(pt,{data:t.data,
onClickPrimaryButton:function(){O()},
disablePrimaryButton:function(){return!Q()||M()},
disablePadding:u})}}))},"zi");_.hR(heo,"yt-form-footer-view-model",{props:{data:_.AC,disablePadding:_.AC}});var dgw=_.D(function(Y){var G=_.F("enable_user_rating_web");return _.T("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.T("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.T(_.X,{cond:function(){var u;return(u=Y.data())==null?void 0:u.image},
then:function(u){return _.T(_.RD,{data:u,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.T("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.T(_.eO,{text:function(){var u;
return(u=Y.data())==null?void 0:u.title}})),_.T("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.T(_.eO,{text:function(){var u;
return(u=Y.data())==null?void 0:u.subtitle}})),_.T(_.X,{cond:function(){return!G},
then:function(){return _.T(_.HE,{data:function(){var u;return(u=Y.data())==null?void 0:u.viewTipsButton}},{buttonViewModel:function(u){return _.T(_.$Y,{data:u.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Ai");_.hR(dgw,"yt-contributor-zero-state-view-model",{props:{data:_.AC}});var bC9=_.D(function(Y){var G=function(){var u;return(u=Y.data())==null?void 0:u.image};
return _.T("yt-featured-content-item-view-model",{class:_.s3("ytFeaturedContentItemViewModelHost")},_.T("div",{class:_.s3(function(){return G()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.T("div",{class:function(){return G()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.T(_.X,{cond:G,
then:function(){return _.T("div",{class:"ytFeaturedContentItemViewModelImage"},_.T(_.HE,{data:function(){return Y.data().image}},{themedImageViewModel:function(u){return _.T(mgg,{data:u.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.T(_.X,{cond:function(){var u;
return!G()&&((u=Y.data())==null?void 0:u.iconName)},
then:function(){return _.T("div",{class:"ytFeaturedContentItemViewModelIcon"},_.T(_.GS,{icon:function(){return Y.data().iconName}}))}}),_.T("div",{class:"ytFeaturedContentItemViewModelContent"},_.T(_.X,{cond:function(){var u;
return(u=Y.data())==null?void 0:u.title},
then:function(){return _.T("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.T(_.eO,{text:function(){return Y.data().title}}))}}),_.T(_.X,{cond:function(){var u;
return(u=Y.data())==null?void 0:u.body},
then:function(){return _.T("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.T(_.eO,{text:function(){return Y.data().body}}))}})))))},"Bi");var S$g=_.D(function(Y){var G=function(){var Q;return qe9((Q=Y.data())==null?void 0:Q.titleFontSize)},u=function(){var Q;
return sdB((Q=Y.data())==null?void 0:Q.descriptionFontSize)},O=function(){var Q;
return((Q=Y.data())==null?void 0:Q.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.T("yt-landing-page-view-model",{class:_.s3("ytLandingPageViewModelHost",Y.className)},_.T("div",{class:"ytLandingPageViewModelHeader"},_.T(_.X,{cond:function(){var Q;return(Q=Y.data())==null?void 0:Q.bannerImage},
then:function(Q){return _.T("div",{class:"ytLandingPageViewModelHeaderImage"},_.T(_.HE,{data:function(){return Q()}},{imageBannerViewModel:function(M){return _.T(_.ZT,{data:M.data,
isPositionRelative:!0})}}))}}),_.T(_.X,{cond:function(){var Q;
return(Q=Y.data())==null?void 0:Q.bannerAnimation},
then:function(Q){return _.T(_.JC,{data:function(){var M=Q();if(M==null?0:M.url){var t;M={path:(t=M==null?void 0:M.url)!=null?t:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(M==null?0:M.payload){var K;M={animationData:JSON.parse((K=M==null?void 0:M.payload)!=null?K:""),autoplay:!0,loop:!0,renderer:"svg"}}else M=void 0;return{animationConfig:M}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.T("div",{class:"ytLandingPageViewModelHeaderTitle"},_.T(_.X,{cond:function(){var Q;
return(Q=Y.data())==null?void 0:Q.title},
then:function(Q){return _.T("div",{class:_.s3("ytLandingPageViewModelHeaderTitleContent",G)},_.T(_.eO,{text:function(){return Q()}}))}}),_.T(_.X,{cond:function(){var Q;
return(Q=Y.data())==null?void 0:Q.description},
then:function(Q){var M={};return _.T(_.eO,{className:_.s3("ytLandingPageViewModelHeaderTitleDescription",u,(M.ytLandingPageViewModelHeaderTitleDescriptionMargin=O,M)),text:function(){return Q()}})}}))),_.T(_.X,{cond:function(){var Q,M;
return(Q=Y.data())==null?void 0:(M=Q.featuredContentList)==null?void 0:M.length},
then:function(){return _.T("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.T(_.HE,{data:function(){return Y.data().featuredContentList}},{featuredContentItemViewModel:function(Q){return _.T(bC9,{data:Q.data})}}))}}),_.T(_.X,{cond:function(){var Q,M;
return(Q=Y.data())==null?void 0:(M=Q.expandableContentList)==null?void 0:M.length},
then:function(){return _.T("div",{class:"ytLandingPageViewModelFaqSection"},_.T(_.HE,{data:function(){return Y.data().expandableContentList}},{faqEntryViewModel:function(Q){return _.T("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.T(_.wXl,{data:Q.data}))}}))}}),_.T("div",{class:"ytLandingPageViewModelFooter"},_.T(_.X,{cond:function(){var Q;
return(Q=Y.data())==null?void 0:Q.legalCopy},
then:function(Q){return _.T("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.T(_.eO,{text:function(){return Q()}}))}}),_.T(_.X,{cond:function(){var Q;
return(Q=Y.data())==null?void 0:Q.actions},
then:function(Q){return _.T("div",null,_.T(_.HE,{data:function(){return Q()}},{flexibleActionsViewModel:function(M){return _.T(_.W7,{data:M.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Ci");_.hR(_.D(function(Y){return _.T("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.T("div",{class:"ytLpSectionGroupViewModelContainer"},_.T(_.HE,{data:function(){return Y.data().sections}},{landingPageViewModel:function(G){return _.T(S$g,{data:G.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Di"),"yt-lp-section-group-view-model",{props:{data:_.AC}});var Nrg=_.D(function(Y){var G=Y.data;var u=Y.selectedKey;var O=Y.onSelected;var Q=Y.groupName;var M=function(){return G().text},t=function(){return G().attributedText},K=function(){return G().subtext},L=function(){return G().attributedSubtext},g=function(){return G().selectionText},P=function(){return G().trailingIconName},I=_.T("div",{class:"ytRadioButtonItemViewModelLabel"},_.T("div",null,_.T(_.X,{cond:M,
then:function(){return _.T("div",null,M)}}),_.T(_.X,{cond:t,
then:function(){return _.T(_.eO,{text:t})}}),_.T(_.X,{cond:K,
then:function(){return _.T("div",{class:"ytRadioButtonItemViewModelSubText"},K)}}),_.T(_.X,{cond:L,
then:function(){return _.T(_.eO,{text:L,className:"ytRadioButtonItemViewModelSubText"})}})),_.T(_.X,{cond:function(){return g()||P()},
then:function(){return _.T("div",{class:"ytRadioButtonItemViewModelTrailingContainer"},_.T(_.X,{cond:g,then:function(){return _.T(_.eO,{text:g,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}),_.T(_.X,{cond:P,
then:function(){return _.T(_.GS,{icon:P,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}))}}));
Y={};return _.T("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.T(_.A4,{name:Q,checked:function(){return!(u==null||!u()||G().key!==(u==null?void 0:u()))},
onChange:function(k){O==null||O(k.target,G(),Q==null?void 0:Q())},
labelRenderable:function(){return I},
ariaLabel:function(){var k,n;var p=(n=(k=L())==null?void 0:k.content)!=null?n:K();var W,C;k=(C=(W=t())==null?void 0:W.content)!=null?C:M();return p?k+", "+p:k},
className:_.s3((Y.ytRadioButtonItemViewModelSubTitle=function(){return!!K()},Y))}))},"Ei");var j79=_.D(function(Y){var G=Y.data,u=Y.onSelected,O=Y.selectedKey,Q=Y.groupName;Y=Y.className;var M=_.E(_.IE(!1,void 0,"mDtSad")),t=M.next().value,K=M.next().value,L=function(){if(O!==void 0){var g=O();return!(!g||G().key!==g)}return t()};
M=_.U3(function(g){u?u(g.currentTarget,G(),Q==null?void 0:Q()):K(!t())});
return _.T("yt-selectable-item-view-model",{class:_.s3("ytSelectableItemViewModelHost",Y,"ytSelectableItemViewModelContainer"),"on:click":M,"prop:checked":L},_.T(_.HE,{data:function(){return G().content}},{cardViewModel:function(g){return _.T(_.BjS,{data:g.data,
isSelected:L})}}))},"Fi");var VUy=_.D(function(Y){var G=Y.data;var u=Y.onSelected;var O=Y.selectedKey;var Q=Y.groupName;var M=function(){return(Q==null?void 0:Q())||G().key};
return _.T("yt-radio-button-group-view-model",{class:_.s3("ytRadioButtonGroupViewModelHost",Y.className)},_.T("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.T(_.HE,{data:function(){return G().radioButtons}},{radioButtonItemViewModel:function(t){return _.T(Nrg,{data:t.data,
onSelected:u,selectedKey:O,groupName:M})},
selectableItemViewModel:function(t){return _.T(j79,{data:t.data,onSelected:u,selectedKey:O,groupName:M})}})))},"Gi");var lo9=_.D(function(Y){_.ii(function(){if(Y.controlledMode()&&Y.data().defaultSelected)_.o0(Error("Hl"));else{var M;!Y.controlledMode()&&((M=Y.selected)==null?0:M.call(Y))&&_.o0(Error("Il"))}});
var G=_.E(_.SN(function(){if(!Y.controlledMode())return Y.data().defaultSelected})),u=G.next().value,O=G.next().value,Q=function(){if(!Y.controlledMode())return u();
var M;return(M=Y.selected)==null?void 0:M.call(Y)};
return _.T("yt-checkbox-item-view-model",{class:_.s3("ytCheckboxItemViewModelHost",Y.className)},_.T(_.og,{data:function(){var M=Y.data(),t=Q();return{title:M.text,subtitle:M.subtext,superlabel:M.superlabel,isSelected:!!t,isDisabled:M.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!Y.controlledMode()&&O(!u());var M,t;(t=Y.onTap)==null||t.call(Y,!!Q(),Y.data(),(M=Y.groupName)==null?void 0:M.call(Y))},
isCompact:Y.isCompact,disableHorizontalPadding:Y.disableHorizontalPadding}))},"Hi");var Brg=_.D(function(Y){var G=Y.data;var u=Y.controlledMode;var O=Y.selectedKeys;var Q=Y.onItemTap;var M=Y.groupName;var t=Y.disableHorizontalPadding;var K=function(){return(M==null?void 0:M())||G().key};
_.ii(function(){u()&&G().defaultSelectedKeys?_.o0(Error("Jl")):!u()&&(O==null?0:O())&&_.o0(Error("Kl"))});
Y=_.E(_.SN(function(){if(!u())return G().defaultSelectedKeys}));
var L=Y.next().value,g=Y.next().value,P=function(I,k,n){I=[];!u()&&k.key&&(I=c$x(k.key,L()||[]),g(I));Q==null||Q(k,I,n)};
return _.T("yt-checkbox-group-view-model",{class:_.s3("ytCheckboxGroupViewModelHost")},_.T("fieldset",{class:_.s3("ytCheckboxGroupViewModelFieldset")},_.T("div",{role:"list"},_.T(_.HE,{data:function(){return G().checkboxes}},{checkboxItemViewModel:function(I){var k=I.data;
return _.T(lo9,{data:k,controlledMode:!0,selected:function(){var n=u()?(O==null?void 0:O())||[]:L()||[],p=k().key;return p?n.includes(p):!1},
onTap:P,groupName:K,disableHorizontalPadding:t})}}))))},"Ii");var $go=_.az(UvV,{debugName:"ytAlertBannerViewModel"});_.UH(_.fS,function(Y){_.CS(Y,"ytAlertBannerViewModel","n0DHg",UvV)});var zf=_.D(function(Y){var G=_.Oe(vCy,_.dB(function(){var K;return(K=Y.data())==null?void 0:K.noteFeedEntityKey},"")),u=_.Oe(C8x,_.dB(function(){var K;
return(K=Y.data())==null?void 0:K.userRatingEntityKey},"")),O=_.F("enable_user_rating_web"),Q=function(){var K,L,g;
return((K=G())==null?0:K.contributorNote)?(L=G())==null?void 0:L.contributorNote:(g=Y.data())==null?void 0:g.existingNote},M=function(){var K,L;
return!!u()&&!!J$S((K=u())==null?void 0:K.helpfulnessValue,(L=Y.data())==null?void 0:L.noteData)};
if(O){var t={};return _.T("yt-note-view-model",{class:_.s3("ytNoteViewModelHostUserRating",(t.ytNoteViewModelHostUserRatingPublishedNote=function(){var K,L,g,P;return((K=Y.data())==null?void 0:(L=K.noteData)==null?void 0:L.isPublished)&&!((g=Y.data())==null?0:(P=g.noteData)==null?0:P.isUserRatingForm)},t))},_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.T(_.X,{cond:function(){var K,L;
return(K=Y.data())==null?void 0:(L=K.noteData)==null?void 0:L.isPinned},
then:function(){return _.T(_.GS,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.T(_.X,{cond:function(){var K,L;return(K=Y.data())==null?void 0:(L=K.noteData)==null?void 0:L.isPublished},
then:function(){return _.T(_.GS,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.T(_.HE,{data:function(){var K;
return(K=Y.data())==null?void 0:K.metadata}},{contentMetadataViewModel:_.v9}),_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var K,L;
return(L=_.z((K=Y.data())==null?void 0:K.metadata,_.QHe))==null?void 0:L.delimiter}),_.T(_.eO,{text:function(){var K;
return(K=Q())==null?void 0:K.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.T(_.X,{cond:function(){var K,L;return!((K=Y.data())==null?0:(L=K.noteData)==null?0:L.isUserRatingForm)},
then:function(){return _.T(_.HE,{data:function(){var K,L,g,P,I,k,n,p=!!((K=Y.data())==null?0:(L=K.noteData)==null?0:L.isPinned);K=M();L=(g=Y.data())==null?void 0:g.noteData;g=(P=G())==null?void 0:(I=P.contributorNote)==null?void 0:I.deleteAction;P=(k=Y.data())==null?void 0:k.overflowButtonNoteWithRatingOnTapOverride;k=(n=Y.data())==null?void 0:n.overflowButton;var W;n=(W=_.z(k,_.Ck))==null?void 0:W.accessibilityText;return p?Ynj(L,g,n):K?{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:P,accessibilityText:n}}:k}},{buttonViewModel:function(K){return _.T(_.$Y,{data:K.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.T("div",{class:"ytNoteViewModelNoteContent"},_.T(_.eO,{text:function(){var K;
return(K=Q())==null?void 0:K.text}})),_.T(_.X,{cond:function(){var K,L,g,P;
return!((K=Y.data())==null?0:(L=K.noteData)==null?0:L.isPinned)&&!((g=Y.data())==null?0:(P=g.noteData)==null?0:P.isUserRatingForm)},
then:function(){return _.T(_.X,{cond:M,then:function(){return _.T("div",{class:"ytNoteViewModelUserRatingContainer"},_.T(_.eO,{text:function(){var K,L;return J$S((K=u())==null?void 0:K.helpfulnessValue,(L=Y.data())==null?void 0:L.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.T(_.HE,{data:function(){var K;return(K=Y.data())==null?void 0:K.userRatingButton}},{buttonViewModel:function(K){return _.T(_.$Y,{data:K.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.T(_.X,{cond:function(){var K,L,g,P;
return!((K=Y.data())==null?0:(L=K.noteData)==null?0:L.ignoreDivider)&&!((g=Y.data())==null?0:(P=g.noteData)==null?0:P.isUserRatingForm)},
then:function(){return _.T("div",{class:"ytNoteViewModelDivider"},_.T(_.HE,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(K){return _.T(_.vmU,{data:K.data})}}))}}))}return _.T("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.T(_.X,{cond:function(){var K,L;return(K=Y.data())==null?void 0:(L=K.noteData)==null?void 0:L.isPinned},
then:function(){return _.T(_.GS,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.T(_.X,{cond:function(){var K,L;return(K=Y.data())==null?void 0:(L=K.noteData)==null?void 0:L.isPublished},
then:function(){return _.T(_.GS,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.T(_.X,{cond:function(){return O},
then:function(){return _.T(_.HE,{data:function(){var K;return(K=Y.data())==null?void 0:K.metadata}},{contentMetadataViewModel:function(K){return _.T(_.v9,{data:K.data})}})}}),_.T(_.eO,{text:function(){var K,L;
return(K=Y.data())==null?void 0:(L=K.noteData)==null?void 0:L.headerText}}),_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.T(_.eO,{text:function(){var K,L;
return(K=Y.data())==null?void 0:(L=K.noteData)==null?void 0:L.delimiter}})),_.T(_.eO,{text:function(){var K,L;
return(K=G())==null?void 0:(L=K.contributorNote)==null?void 0:L.publishedTimeText}})),_.T(_.HE,{data:function(){var K,L,g;
return Ynj((K=Y.data())==null?void 0:K.noteData,(L=G())==null?void 0:(g=L.contributorNote)==null?void 0:g.deleteAction)}},{buttonViewModel:function(K){return _.T(_.$Y,{data:K.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.T("div",{class:"ytNoteViewModelNoteContent"},_.T(_.eO,{text:function(){var K,L;
return(K=G())==null?void 0:(L=K.contributorNote)==null?void 0:L.text}})))},"Ji");
zf.idomCompat=!0;_.hR(_.D(function(Y){var G=_.dB(function(){var w;return(w=Y.data())==null?void 0:w.flowStateEntityKey},""),u=_.Oe(_.j8,G),O=_.Oe(vCy,_.dB(function(){var w;
return(w=Y.data())==null?void 0:w.noteFeedEntityKey},"")),Q=_.E(_.SN(function(){var w;
return(w=_.z(Y.data().helpfulnessValue,dlb))==null?void 0:w.defaultSelectedKey})),M=Q.next().value,t=Q.next().value;
Q=_.E(_.SN(function(){var w,B,N;return(N=_.z((w=_.z(Y.data().helpfulnessValue,dlb))==null?void 0:(B=w.radioButtons)==null?void 0:B.find(function(h){var q;return((q=_.z(h,bSy))==null?void 0:q.key)===M()}),bSy))==null?void 0:N.value}));
var K=Q.next().value,L=Q.next().value;Q=_.E(_.SN(function(){var w;return(w=_.z(Y.data().helpfulReasons,hKb))==null?void 0:w.defaultSelectedKeys}));
var g=Q.next().value,P=Q.next().value;Q=_.E(_.SN(function(){var w;return(w=_.z(Y.data().notHelpfulReasons,hKb))==null?void 0:w.defaultSelectedKeys}));
var I=Q.next().value,k=Q.next().value,n=function(w,B){t(B.key);L(B.value);P([]);k([])},p=function(){var w,B;
return((w=K())==null?void 0:w.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((B=K())==null?void 0:B.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},W=function(){var w,B;
return((w=K())==null?void 0:w.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((B=K())==null?void 0:B.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},C=function(w){GPj(w.key,g,P)},e=function(w){GPj(w.key,I,k)};
_.ii(function(){var w,B,N;rHB((w=Y.data())==null?void 0:(B=w.userRatingFormSchema)==null?void 0:B.id,{isValid:function(){return!!M()},
formData:function(){var h=K(),q=O$9(g(),_.z(Y.data().helpfulReasons,hKb)),U=O$9(I(),_.z(Y.data().notHelpfulReasons,hKb));h={helpfulnessValue:h==null?void 0:h.noteHelpfulnessValue};if(q){h.helpfulReasons=[];q=_.E(q);for(var Mj=q.next();!Mj.done;Mj=q.next()){Mj=Mj.value;var Xt=void 0;if((Xt=Mj)==null?0:Xt.noteHelpfulReason)Xt=void 0,h.helpfulReasons.push((Xt=Mj)==null?void 0:Xt.noteHelpfulReason)}}if(U)for(h.notHelpfulReasons=[],U=_.E(U),q=U.next();!q.done;q=U.next())if(q=q.value,Mj=void 0,(Mj=q)==
null?0:Mj.noteNotHelpfulReason)Mj=void 0,h.notHelpfulReasons.push((Mj=q)==null?void 0:Mj.noteNotHelpfulReason);return{userRatingFormData:h}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(N=_.z(u(),Lsg))==null?void 0:N.submitFormParams},onSubmitResult:function(){var h,q=(h=_.z(u(),Lsg))==null?void 0:h.userRatingEntityKey,U;h={key:q,helpfulnessValue:(U=K())==null?void 0:U.noteHelpfulnessValue};q&&_.hj(_.t$("contextNoteUserRatingEntityPayload",q,h));var Mj;q=(Mj=Y.data())==null?void 0:Mj.viewNoteFlowStepId;var Xt;if((Xt=O())==null||!Xt.contributorNote){var ka;q=(ka=Y.data())==null?void 0:ka.zeroStateFlowStepId}(Mj=
Object.assign({},u()))&&q&&(Mj.currentStepId=q,Mj.stepIdStack=[q],_.hj(_.t$("flowStateEntity",G(),Mj)));var aU;(Mj=(aU=Y.data())==null?void 0:aU.ratingSubmittedSnackbarCommand)&&_.W3(Mj)},
disableDuringSubmission:!0})});
return _.T("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.T(_.HE,{data:function(){var w=_.z(u(),Lsg);if(w){var B;var N={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:w==null?void 0:(B=w.note)==null?void 0:B.headerText}]}],delimiter:"\u2022"}},existingNote:w.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else N=void 0;return N}},{noteViewModel:function(w){return _.T("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.T(zf,{data:w.data}))}}),_.T(_.HE,{data:function(){var w;
return(w=Y.data())==null?void 0:w.helpfulnessValue}},{radioButtonGroupViewModel:function(w){return _.T("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.T(VUy,{data:w.data,
onSelected:n,selectedKey:M}))}}),_.T(_.X,{cond:p,
then:function(){return _.T("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.T("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.T(_.eO,{text:function(){var w;return(w=Y.data())==null?void 0:w.helpfulReasonQuestion}})),_.T(_.HE,{data:function(){var w;
return(w=Y.data())==null?void 0:w.helpfulReasons}},{checkboxGroupViewModel:function(w){return _.T(Brg,{data:w.data,
onItemTap:C,selectedKeys:g,controlledMode:!0})}}))}}),_.T(_.X,{cond:W,
then:function(){return _.T("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.T("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.T(_.eO,{text:function(){var w;return(w=Y.data())==null?void 0:w.notHelpfulReasonQuestion}})),_.T(_.HE,{data:function(){var w;
return(w=Y.data())==null?void 0:w.notHelpfulReasons}},{checkboxGroupViewModel:function(w){return _.T(Brg,{data:w.data,
onItemTap:e,selectedKeys:I,controlledMode:!0})}}))}}),_.T(_.X,{cond:function(){return!p()&&!W()},
then:function(){return _.T(_.HE,{data:function(){var w;return(w=Y.data())==null?void 0:w.helpfulNoteFeatures}},{alertBannerViewModel:function(w){return _.T("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.T($go,{data:w.data}))}})}}))},"Ki"),"yt-note-user-rating-view-model",{props:{data:_.AC}});_.hR(zf,"yt-note-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=_.Oe(vCy,_.dB(function(){var u;return(u=Y.data())==null?void 0:u.noteFeedEntityKey},""));
return _.T("yt-notes-wrapper-view-model",{class:_.s3("ytNotesWrapperViewModelHost")},_.T(_.X,{cond:function(){var u,O,Q;return!((u=Y.data())==null||!u.existingNotes)||!((O=Y.data())==null||!O.currentNote)&&!((Q=G())==null||!Q.contributorNote)},
then:function(){return _.T(_.GY,null,_.T(_.HE,{data:function(){var u,O,Q,M;return((O=_.z((u=Y.data())==null?void 0:u.currentNote,gBb))==null?0:(Q=O.noteData)==null?0:Q.isPublished)?(M=Y.data())==null?void 0:M.currentNote:void 0}},{noteViewModel:function(u){return _.T(zf,{data:u.data})}}),_.T(_.HE,{data:function(){var u;
return(u=Y.data())==null?void 0:u.existingNotes}},{noteViewModel:function(u){var O=u.data;
return _.T(_.X,{cond:function(){var Q,M;return(Q=O())==null?void 0:(M=Q.noteData)==null?void 0:M.isPublished},
then:function(){return _.T(zf,{data:O})}})}}),_.T(_.HE,{data:function(){var u,O,Q,M,t;
return((O=_.z((u=Y.data())==null?void 0:u.currentNote,gBb))==null?0:(Q=O.noteData)==null?0:Q.isPublished)||(M=G())==null||!M.contributorNote?void 0:(t=Y.data())==null?void 0:t.currentNote}},{noteViewModel:function(u){return _.T(zf,{data:u.data})}}),_.T(_.HE,{data:function(){var u;
return(u=Y.data())==null?void 0:u.existingNotes}},{noteViewModel:function(u){var O=u.data;
return _.T(_.X,{cond:function(){var Q,M;return!((Q=O())==null?0:(M=Q.noteData)==null?0:M.isPublished)},
then:function(){return _.T(zf,{data:O})}})}}))},
else:function(){return _.T(_.HE,{data:function(){var u;return(u=Y.data())==null?void 0:u.zeroStateData}},{contributorZeroStateViewModel:dgw})}}))},"Li"),"yt-notes-wrapper-view-model",{props:{data:_.AC}});var M8w=new Map;var E2S;var t8g=new Map;var s7b=_.D(function(Y){var G=_.bM(Y,{label:"",hideLabel:!1,text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,ariaLabel:void 0,timePickerData:void 0,error:void 0,hasError:!1,validation:void 0,characterLimit:void 0}),u=G.label,O=G.hideLabel,Q=G.text,M=G.placeholder,t=G.hint;Y=G.rows;var K=G.overflowStyle,L=G.outline,g=G.disabled,P=G.disableNewLines,I=G.onInput,k=G.ariaLabel,n=G.timePickerData,p=G.error,W=G.hasError,C=G.validation,e=G.characterLimit,
w=_.CH("textarea");G=_.E(_.SN(function(){return Q()}));
var B=G.next().value,N=G.next().value;G=_.E(_.IE(!1,void 0,"PheJId"));var h=G.next().value,q=G.next().value,U=function(){q(!0)},Mj=function(){q(!1)};
_.ii(function(){var Fe=w.value,Xg=K(),Hb=B();Xg==="expand-vertically"&&Hb&&aLy(Fe);w.value.addEventListener("focusin",U);w.value.addEventListener("focusout",Mj)});
_.w_(function(){w.value.removeEventListener("focusin",U);w.value.removeEventListener("focusout",Mj)});
var Xt=function(){var Fe;return(Fe=C())==null?void 0:Fe.validate(B())},ka=function(){var Fe,Xg,Hb;
return(Hb=(Fe=p())==null?void 0:Fe.maxChars)!=null?Hb:(Xg=e())==null?void 0:Xg.maxChars},aU=function(){return ka()===void 0?!1:!Xt()&&B().length>ka()},Tg=function(){var Fe,Xg;
return((Fe=p())==null?void 0:Fe.errorMessage)||Xt()||aU()&&((Xg=e())==null?void 0:Xg.errorMessage)},iy=function(){return!!Tg()||W()};
G=_.U3(function(Fe){if(!Fe.currentTarget)return!1;Fe=Fe.currentTarget;N(Fe.value);K()==="expand-vertically"&&aLy(Fe);I==null||I(Fe.value);return!0});
var hY=_.U3(function(Fe){P()&&Fe.key==="Enter"&&Fe.preventDefault();return!1}),dA=_.U3(function(){w.value.focus()}),nT=function(){return M()||u()},u_={},jT={},P1={},kk={};
return _.T("textarea-shape",{class:_.s3("ytStandardsTextareaShapeHost",(u_.ytStandardsTextareaShapeTimePicker=function(){var Fe;return(Fe=n())==null?void 0:Fe.useTimePickerStyles},u_))},_.T("div",{class:_.s3("ytStandardsTextareaShapeTextareaContainer",(jT.ytStandardsTextareaShapeTextareaContainerOutline=L,jT.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=g,jT.ytStandardsTextareaShapeTextareaContainerOutlineError=iy,jT.ytStandardsTextareaShapeTextareaContainerLabelHidden=O,jT)),
"on:click":dA},_.T("label",{class:_.s3("ytStandardsTextareaShapeLabel",(P1.ytStandardsTextareaShapeLabelFocused=h,P1.ytStandardsTextareaShapeLabelDisabled=g,P1.ytStandardsTextareaShapeLabelError=function(){return iy()&&!g()},P1.ytStandardsTextareaShapeLabelHidden=function(){return O()||!h()&&!B()&&!!nT()},P1))},u),_.T("div",{class:_.s3("ytStandardsTextareaShapePlaceholder",(kk.ytStandardsTextareaShapePlaceholderVisible=function(){return!h()&&!B()},kk)),
"aria-hidden":"true"},nT),_.T("textarea",{el:w,"aria-label":k,class:"ytStandardsTextareaShapeTextarea",rows:Y,disabled:g,placeholder:nT,"prop:value":B,"on:input":G,"on:keydown":hY})),_.T(_.X,{cond:function(){return t()&&!iy()},
then:function(){var Fe={};return _.T("div",{class:_.s3("ytStandardsTextareaShapeHint",(Fe.ytStandardsTextareaShapeHintDisabled=g,Fe))},_.T("div",{class:"ytStandardsTextareaShapeHintHintMessage"},t))}}),_.T(_.X,{cond:Tg,
then:function(){return _.T(q$V,{disabled:g},_.T("div",{class:"ytStandardsTextareaShapeErrorMessage"},Tg),_.T(_.X,{cond:aU,then:function(){return _.T("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return B().length+"/"+ka()})}}))}}))},"Mi");
s7b.idomCompat={callbacks:{onInput:!0}};var q$V=_.D(function(Y){var G={};return _.T("div",{class:_.s3("ytStandardsTextareaShapeError",(G.ytStandardsTextareaShapeErrorDisabled=Y.disabled,G)),role:"alert"},_.T(_.GS,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),Y.children)},"Ni");var cuN=_.D(function(Y){var G=Y.data;var u=Y.controlledMode;var O=Y.disableFormsApiMode;var Q=Y.text;var M=Y.onInput;var t=Y.characterLimit;var K=Y.validation;Y=Y.disabled;var L=function(){return G().formFieldMetadata},g=function(){return(u==null?0:u())?2:!L()||O!=null&&O()?1:3};
_.ii(function(){g()===2?(Q==null?void 0:Q())===void 0&&_.o0(Error("Ml")):g()===3&&((Q==null?void 0:Q())!==void 0&&_.o0(Error("Nl")),(K==null?void 0:K())!==void 0&&_.o0(Error("Ol")),(t==null?void 0:t())!==void 0&&_.o0(Error("Pl")),M!==void 0&&_.o0(Error("Ql")))});
var P=Kzo(L);return _.T("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.T(s7b,{text:function(){if(g()===2)return Q==null?void 0:Q();if(g()===3){var I;return(I=P())==null?void 0:I.value}return""},
label:function(){var I;return(I=G().contentProperties)==null?void 0:I.labelText},
hideLabel:function(){var I;return(I=G().displayProperties)==null?void 0:I.hideLabel},
placeholder:function(){var I;return(I=G().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=G().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=G().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=G().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:Y,disableNewLines:function(){var I;return(I=G().displayProperties)==null?void 0:I.disableNewLines},
onInput:function(I){if(g()===3){var k;(k=P())==null||k.updateValue(I)}else M==null||M(I)},
error:function(){if(g()===3){var I;if(((I=P())==null?0:I.errors)&&P().errors.length>0){I=P().errors[0].message;var k,n=(k=G().contentProperties)==null?void 0:k.maxCharacterCount;return{errorMessage:I,maxChars:n}}}},
validation:K,characterLimit:t,rows:function(){var I;return(I=G().displayProperties)==null?void 0:I.rows}}))},"Oi");var UgV=_.D(function(Y){var G=Y.data;return _.T("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.T(s7b,{text:Y.text,label:function(){var u;return(u=G().contentProperties)==null?void 0:u.labelText},
placeholder:function(){var u;return(u=G().contentProperties)==null?void 0:u.placeholderText},
hint:function(){var u;return(u=G().contentProperties)==null?void 0:u.hintText},
outline:function(){var u;return!((u=G().displayProperties)==null?0:u.hideBorder)},
overflowStyle:function(){var u;return((u=G().displayProperties)==null?0:u.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var u;return(u=G().displayProperties)==null?void 0:u.disableNewLines},
onInput:Y.onInput,characterLimit:Y.characterLimit,validation:Y.validation,rows:function(){var u;return(u=G().displayProperties)==null?void 0:u.rows}}))},"Pi");var vjw=_.D(function(Y){var G=_.E(_.SN(function(){var Xt,ka;return((Xt=Y.data().structuredContextNoteFormSchema)==null?0:(ka=Xt.initialValues)==null?0:ka.noteBody)?Y.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),u=G.next().value,O=G.next().value;
G=_.E(_.SN(function(){Y.data();return!1}));
var Q=G.next().value,M=G.next().value;G=_.E(_.SN(function(){Y.data();return!1}));
var t=G.next().value,K=G.next().value;G=_.E(_.SN(function(){var Xt,ka;return((Xt=Y.data().structuredContextNoteFormSchema)==null?0:(ka=Xt.initialValues)==null?0:ka.timestamp)?Y.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var L=G.next().value,g=G.next().value;G=_.E(_.SN(function(){Y.data();return!1}));
var P=G.next().value,I=G.next().value;G=_.E(_.SN(function(){var Xt,ka;return((Xt=Y.data().structuredContextNoteFormSchema)==null?0:(ka=Xt.initialValues)==null?0:ka.sources)?[Y.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var k=G.next().value,n=G.next().value;G=_.E(_.SN(function(){Y.data();return!1}));
var p=G.next().value,W=G.next().value;G=_.E(_.SN(function(){return!1}));
var C=G.next().value,e=G.next().value;_.ii(function(){var Xt;xW9((Xt=Y.data().structuredContextNoteFormSchema)==null?void 0:Xt.id,{isSubmitting:C,onSubmit:function(){e(!0);var ka=Fzb(u(),L(),k(),Y.data()),aU=_.sH().resolve(_.rH);ka&&aU&&aU.resolveCommand(ka,{commandController:{onSuccess:function(){e(!1)}}})},
isValid:function(){return Q()&&!t()&&!P()&&!p()}})});
var w=function(Xt){if(Xt!==void 0&&(O(Xt),!Q()&&Xt.length>0&&M(!0),Q())){var ka=g29(Y.data());if(ka){var aU=ka.minLength;ka=ka.maxLength;aU&&Xt.length<aU?K(!0):ka&&Xt.length>ka?K(!0):K(!1)}}},B=function(Xt){if(Xt!==void 0){g(Xt);
if(Xt.length>0){var ka,aU,Tg,iy,hY=P6y((ka=Y.data())==null?void 0:(aU=ka.structuredContextNoteFormSchema)==null?void 0:(Tg=aU.fieldSchemas)==null?void 0:(iy=Tg.timestamp)==null?void 0:iy.validationSchema);if(hY&&(ka=hY.regex)&&!(new RegExp(ka)).test(Xt)){I(!0);return}}I(!1)}},N=function(Xt){if(Xt!==void 0){var ka=Xt.split(/[ \n]/).map(function(aU){return aU.trim()});
n(ka);if(Xt.length>0)for(Xt=_.E(ka),ka=Xt.next();!ka.done;ka=Xt.next())if(!n2w(ka.value)){W(!0);return}W(!1)}},h=function(){return{validate:function(Xt){if(Q()){var ka=g29(Y.data());
if(ka){var aU=ka.minLength;ka=ka.translations;if(aU&&Xt.length<aU)return ka==null?void 0:ka.minLengthErrorMessage}}}}},q=function(){var Xt=g29(Y.data()),ka=Xt==null?void 0:Xt.maxLength,aU;
Xt=Xt==null?void 0:(aU=Xt.translations)==null?void 0:aU.maxLengthErrorMessage;if(ka&&Xt)return{maxChars:ka,errorMessage:Xt}},U=function(){return{validate:function(Xt){if(Xt){var ka,aU,Tg,iy,hY=P6y((ka=Y.data())==null?void 0:(aU=ka.structuredContextNoteFormSchema)==null?void 0:(Tg=aU.fieldSchemas)==null?void 0:(iy=Tg.timestamp)==null?void 0:iy.validationSchema);
if(hY&&(ka=hY.regex,hY=hY.translations,ka&&!(new RegExp(ka)).test(Xt)))return hY==null?void 0:hY.regexErrorMessage}}}},Mj=function(){return{validate:function(Xt){if(Xt){var ka,aU,Tg,iy,hY=kPb((ka=Y.data())==null?void 0:(aU=ka.structuredContextNoteFormSchema)==null?void 0:(Tg=aU.fieldSchemas)==null?void 0:(iy=Tg.sources)==null?void 0:iy.validationSchema);
if(hY&&(ka=hY.translations,ka==null?0:ka.selectedErrorMessage))for(Xt=Xt.split(/[ \n]/).map(function(dA){return dA.trim()}),Xt=_.E(Xt),aU=Xt.next();!aU.done;aU=Xt.next())if(!n2w(aU.value))return Xt=void 0,(Xt=ka)==null?void 0:Xt.selectedErrorMessage}}}};
return _.T("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.T("div",{class:"ytStructuredContextNoteViewModelTextField"},_.T(_.HE,{data:function(){var Xt;return(Xt=Y.data())==null?void 0:Xt.noteContents}},{textFormFieldViewModel:function(Xt){return _.T(UgV,{data:Xt.data,
onInput:w,validation:h,characterLimit:q})},
textFieldViewModel:function(Xt){return _.T(cuN,{data:Xt.data,disableFormsApiMode:!0,onInput:w,validation:h,characterLimit:q})}})),_.T("div",{class:"ytStructuredContextNoteViewModelTextField"},_.T(_.HE,{data:function(){var Xt;
return(Xt=Y.data())==null?void 0:Xt.noteTimestamp}},{textFormFieldViewModel:function(Xt){return _.T(UgV,{data:Xt.data,
onInput:B,validation:U})},
textFieldViewModel:function(Xt){return _.T(cuN,{data:Xt.data,disableFormsApiMode:!0,onInput:B,validation:U})}})),_.T("div",{class:"ytStructuredContextNoteViewModelTextField"},_.T(_.HE,{data:function(){var Xt;
return(Xt=Y.data())==null?void 0:Xt.noteSources}},{textFormFieldViewModel:function(Xt){return _.T(UgV,{data:Xt.data,
onInput:N,validation:Mj})},
textFieldViewModel:function(Xt){return _.T(cuN,{data:Xt.data,disableFormsApiMode:!0,onInput:N,validation:Mj})}})))},"Qi");
vjw.idomCompat=!0;_.hR(vjw,"yt-structured-context-note-view-model",{props:{data:_.AC}});var JuN=_.D(function(Y){var G=_.E(_.SN(function(){var M;if((M=Y.controlled)==null?0:M.call(Y))return[];var t;return(((t=Y.data())==null?void 0:t.chips)||[]).map(function(K){K=_.z(K,_.yy);if(K==null?0:K.selected)return pU9(K.chipValue)}).filter(function(K){return K!==void 0})})),u=G.next().value,O=G.next().value,Q=function(M){var t=pU9(M.chipValue);
if(t!==void 0){var K;if((K=Y.controlled)==null?0:K.call(Y))return void Y.controlled().onTap(t);M=u().includes(t)?[].concat(_.c8(u().filter(function(g){return g!==t}))):[].concat(_.c8(u()),[t]);
O(M);var L;if((L=Y.uncontrolled)==null?0:L.call(Y))Y.uncontrolled().onUpdate(M)}};
return _.T("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.T(_.rc,{each:function(){return Y.data().chips||[]}},function(M){return _.T("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.T(_.mTX,{data:function(){return _.z(M,_.yy)},
selected:function(){var t;if(t=_.z(M,_.yy)){var K=pU9(t.chipValue);if(K!==void 0){var L;t=((L=Y.controlled)==null?0:L.call(Y))?Y.controlled().selectedValues.includes(K):u().includes(K)}else t=void 0}else t=!1;return t},
callback:Q}))}))},"Ri");var YQ9=_.D(function(Y){var G=Y.data;var u=function(){var K;return((K=G())==null?void 0:K.flowStateKey)||""},O=_.Oe(_.j8,u),Q=function(){var K;
return(K=_.z(O(),Jqb))==null?void 0:K.chips},M=function(K){if(K!==void 0){var L=Q()||[];
L=L.find(function(g){return g===K})?L.filter(function(g){return g!==K}):[].concat(_.c8(L),[K]);
L=Object.assign({},O(),{feedbackFormFlowState:Object.assign({},_.z(O(),Jqb),{chips:L})});_.hj(_.t$("flowStateEntity",u(),L))}},t=function(){var K;
return _.z((K=G())==null?void 0:K.inputBox,Yi9)};
Y=_.pu(function(K){var L=t();L=!(L==null?0:L.maxChars)||K.length<=L.maxChars;K=Object.assign({},O(),{feedbackFormFlowState:Object.assign({},_.z(O(),Jqb),{detail:K}),abuseReportFlowState:Object.assign({},_.z(O(),Pr),{navigationEnabled:L})});_.hj(_.t$("flowStateEntity",u(),K))},150);
return _.T("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.T("div",{class:"ytFeedbackFormViewModelChips"},_.T(_.HE,{data:function(){var K;return(K=G())==null?void 0:K.chipSelection}},{chipSelectionFormFieldViewModel:function(K){return _.T(JuN,{data:K.data,
controlled:function(){return{selectedValues:Q()||[],onTap:M}}})}})),_.T("div",{class:"ytFeedbackFormViewModelInputBox"},_.T(s7b,{text:function(){var K;
return(K=_.z(O(),Jqb))==null?void 0:K.detail},
placeholder:function(){var K;return((K=t())==null?void 0:K.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var K=t();if(K&&K.maxChars)return{maxChars:K.maxChars,errorMessage:K.maxCharsExceededErrorMessage||""}},
onInput:Y})),_.T("div",{class:"ytFeedbackFormViewModelFooterText"},_.T(_.eO,{text:function(){return G().footerText}})))},"Si");
YQ9.idomCompat=!0;_.hR(YQ9,"yt-feedback-form-view-model",{props:{data:_.AC}});var GHx=_.D(function(Y){var G=Y.data;var u=_.Oe(FZN,function(){return G().flowStateKey||""}),O=function(){var Q;
_.W3((Q=_.z(u(),Pr))==null?void 0:Q.navigationCommand)};
return _.T("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.T("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.T(_.HE,{data:function(){return G().cancelButton}},{buttonViewModel:function(Q){return _.T(_.$Y,{data:Q.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:O})}}),_.T(_.HE,{data:function(){var Q;
if(G().navButton){var M=Object;var t=M.assign,K=_.z(G().navButton,_.Ck),L=((Q=_.z(u(),Pr))==null?0:Q.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",g,P;Q=_.z((g=_.z(u(),Pr))==null?void 0:g.navigationCommand,_.nd);g=(P=_.z(Q,_.SK))==null?void 0:P.url;M={buttonViewModel:t.call(M,{},K,{state:L,iconName:g?"OPEN_IN_NEW":""})}}else M=void 0;return M}},{buttonViewModel:function(Q){return _.T(_.$Y,{data:Q.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:O})}})))},"Ti");
GHx.idomCompat=!0;_.hR(GHx,"yt-report-form-bottom-bar-view-model",{props:{data:_.AC}});var uNx=_.D(function(Y){var G=Y.nextStep;return _.T("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.T("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.T(_.GS,{icon:function(){return G().iconName||""}})),_.T("div",null,_.T(_.eO,{text:function(){return G().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ui"),OiN=_.D(function(Y){var G=Y.data;
var u,O=(u=_.sH().resolve(_.q3(_.Ee)))==null?void 0:u(),Q=_.Oe(_.j8,function(){return G().flowStateKey||""});
return _.T("yt-report-form-confirmation-page-view-model",{class:function(){var M;return((M=_.z(Q(),Pr))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.T("div",{class:function(){var M;
return((M=_.z(Q(),Pr))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.T(_.RD,{data:function(){return O&&G().imageDark?G().imageDark:G().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.T("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.T("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return G().confirmationHeader}),_.T("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.T(_.eO,{text:function(){return G().confirmationText}})),_.T("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.T(_.eO,{text:function(){return G().lawEnforcementText}})),
_.T("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return G().whatToExpectHeader}),_.T(_.X,{cond:function(){return G().nextSteps},
then:function(M){return _.T("div",null,_.T(_.rc,{each:M},function(t){return _.T(uNx,{nextStep:t})}))}}),_.T(_.X,{cond:function(){return G().legalReportText},
then:function(M){return _.T("div",null,_.T(_.eO,{text:M,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Vi");
OiN.idomCompat=!0;_.hR(OiN,"yt-report-form-confirmation-page-view-model",{props:{data:_.AC}});var Qqj=_.D(function(Y){var G=Y.data;var u=function(){var M;return((M=_.z(G().inputBox,Yi9))==null?void 0:M.maxChars)||500},O=function(){return G().flowStateKey||""},Q=_.Oe(_.j8,O);
Y=_.pu(function(M){M=Object.assign({},Q(),{flowFormState:{isValid:M.length<=u()},abuseReportFlowState:{userComments:M,navigationEnabled:!(M.length>u()),isReportFormDirty:!0}});_.DS().dispatch(_.zP("flowStateEntity",O(),M))},150);
_.ii(function(){var M=Object.assign({},Q(),{flowFormState:{isValid:!0}});_.DS().dispatch(_.zP("flowStateEntity",O(),M))});
return _.T("yt-report-form-details-page-view-model",{class:function(){var M;return((M=_.z(Q(),Pr))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.T("h1",{class:function(){var M;
return((M=_.z(Q(),Pr))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return G().detailsPageHeader}),_.T("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.T(_.eO,{text:function(){return G().bodyText}})),_.T("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.T(s7b,{label:function(){var M;
return((M=_.z(G().inputBox,Yi9))==null?void 0:M.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var M;return{errorMessage:((M=_.z(G().inputBox,Yi9))==null?void 0:M.maxCharsExceededErrorMessage)||"",maxChars:u()}},
onInput:Y})))},"Wi");
Qqj.idomCompat=!0;_.hR(Qqj,"yt-report-form-details-page-view-model",{props:{data:_.AC}});var M3N=_.D(function(Y){var G=Y.data;var u=function(){return G().flowStateKey||""},O=_.Oe(_.j8,u),Q=function(){return _.z(O(),Pr)};
return _.T("yt-report-form-reason-select-page-view-model",{class:function(){var M;return((M=Q())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.T("h1",{class:function(){var M;
return((M=Q())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return G().pageHeader}),_.T("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.T(_.eO,{text:function(){return G().bodyText}})),_.T("div",{class:function(){var M;
return((M=Q())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.T(VUy,{data:function(){return _.z(G().radioButtonGroup,dlb)},
onSelected:function(M,t){M=Object.assign({},O(),{abuseReportFlowState:Object.assign({},Q(),{reasonKey:t.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:t.command})});_.hj(_.t$("flowStateEntity",u(),M))},
selectedKey:function(){var M;return(M=Q())==null?void 0:M.reasonKey},
groupName:"report-form-reason-select-page"})))},"Xi");
M3N.idomCompat=!0;_.hR(M3N,"yt-report-form-reason-select-page-view-model",{props:{data:_.AC}});var Hiw=_.D(function(Y){var G=Y.data;var u,O=(u=_.sH().resolve(_.q3(_.Ee)))==null?void 0:u();return _.T("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.T("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.T(_.RD,{data:function(){return O&&G().imageDark?G().imageDark:G().image},
alt:""})),_.T("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.T("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return G().header}),_.T(_.eO,{text:function(){return G().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Yi");
Hiw.idomCompat=!0;_.hR(Hiw,"yt-report-form-sign-in-page-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=Y.data;var u=function(){return G().titleSuperscript},O=function(){return G().answersShelf},Q=function(){return G().videoShelf},M=function(){var h;
return(h=G().textInputPlaceholder)==null?void 0:h.content},t=function(){return G().showOpenTextInput},K=function(){var h;
return(h=G().textInputValue)==null?void 0:h.content},L="",g=function(){return G().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"?1:2};
Y=_.E(_.IE("",void 0,"ioQph"));var P=Y.next().value,I=Y.next().value;Y=_.E(_.IE(!1,void 0,"Srxao"));var k=Y.next().value,n=Y.next().value,p=function(){return{state:k()||P()?"active":"disabled",disabled:!(k()||P())}};
_.o1(function(){t()&&K()&&I(K())});
var W=function(h){var q=G().onUpdateText;q&&_.W3(q,{form:{userQuery:h}});I(h)},C=_.pu(function(h){W(h.target.value.trim())},150),e=_.U3(function(h){var q;
L=(q=h.target.value)==null?void 0:q.trim();C(h);return!1}),w=_.U3(function(h){h.key==="Enter"&&(k()||P())&&(W(h.target.value.trim()),N());
return!1}),B=function(h,q){n(q);
if(q){if(G().isMultiTurnFlow&&!L){var U;W((U=h==null?void 0:h.text)!=null?U:"")}G().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&N()}else I(L)},N=function(){var h=_.z(G().nextButtonViewModel,_.Ck);
if(h==null?0:h.trackingParams){h=_.Kd(h.trackingParams);var q=_.FA();q&&h&&_.wS(q,h,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(h=G().onNextStepCommand)&&_.W3(h)};
Y={};return _.T("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.T("div",{class:"ytwTalkToRecsTopCornerButton"},_.T(_.HE,{data:function(){return G().topCornerButton}},{buttonViewModel:_.$Y})),_.T("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.T("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.T(_.eO,{text:function(){return G().title}}),_.T(_.X,{cond:u,
then:function(){return _.T("sup",{class:"ytwTalkToRecsSuperScript"},_.T(_.eO,{text:u}))}})),_.T("div",{class:"ytwTalkToRecsSubtitle"},_.T(_.eO,{text:function(){return G().subtitle}})),_.T("div",{class:"ytwTalkToRecsResultsShelf"},_.T(_.X,{cond:O,
then:function(){return _.T(_.HE,{data:O},{chipsShelfViewModel:function(h){return _.T("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.T(_.HW,{data:h.data,callback:B,selectionBehavior:g}))}})}}),_.T(_.X,{cond:Q,
then:function(){return _.T(_.HE,{data:Q},{horizontalShelfViewModel:function(h){return _.T("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.T(_.wm,{data:h.data,thumbnailAspectRatio:0}))}})}})),_.T("div",{class:_.s3("ytwTalkToRecsRefinementContainer",(Y.ytwTalkToRecsBottomMargin=function(){return G().isMultiTurnFlow},Y))},_.T(_.X,{cond:t,
then:function(){return _.T("div",{class:"ytwTalkToRecsUserInputBox"},_.T("input",{type:"text",class:"ytwTalkToRecsTextInput",title:M,placeholder:M,value:P,"on:input":e,"on:keyup":w,maxlength:200}))}}),_.T(_.HE,{data:function(){return G().isMultiTurnFlow?G().nextButtonViewModel:void 0}},{buttonViewModel:function(h){return _.T("div",{class:"ytwTalkToRecsFlowControlButtons"},_.T(_.$Y,{data:h.data,
buttonOverrides:p}))}}),_.T(_.HE,{data:function(){return G().isMultiTurnFlow?G().resetButtonViewModel:void 0}},{buttonViewModel:function(h){return _.T("div",{class:"ytwTalkToRecsFlowControlButtons"},_.T(_.$Y,{data:h.data,
onClick:function(){var q,U=(q=_.z(G().resetButtonViewModel,_.Ck))==null?void 0:q.onTap;U&&_.W3(U)}}))}}))))},"$i"),"yt-talk-to-recs-view-model",{props:{data:_.AC}});var z8V={sources:[{clientResource:{imageName:"CHECK"}}]};var EAo=_.D(function(Y){var G=_.CH("div");Y=_.bM(Y,{error:void 0});var u=Y.data,O=Y.error,Q=Y.onSelected;Y=Y.className;var M=_.E(_.SN(function(){return rLw(u())})),t=M.next().value,K=M.next().value;
yLN(u,function(n){K(n);var p,W,C=Wzx((p=u().options)==null?void 0:(W=p[n])==null?void 0:W.value,u().type);Q==null||Q(C);G.value.focus()});
M=_.U3(function(){if(!u().disabled){var n=u(),p=t(),W=G.value;n.options&&(n=mFb(n.options,p,n.label),_.sH().resolve(_.kb).openSheet({viewModel:n},W))}});
var L=_.KMI(),g=function(){return!!O()},P=function(){return!!u().disabled},I={},k={};
return _.T("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.T("div",{class:_.s3("ytDropdownViewModelDropdownContainer",Y,(I.ytDropdownViewModelDropdownContainerErrorBorder=g,I.ytDropdownViewModelDropdownContainerDisabled=P,I)),"on:click":M,el:G,role:"combobox",tabindex:0,"on:keydown":L,"aria-invalid":g,"aria-disabled":P,"aria-describedby":function(){return g()?"dropdown-view-model-error":void 0}},_.T("div",{class:"ytDropdownViewModelText"},xFN(u,g,t),fLj(u,t)),_.T("div",{class:_.s3("ytDropdownViewModelChevronDown",
(k.ytDropdownViewModelChevronDownDisabled=P,k))},_.T(_.GS,{icon:"CHEVRON_DOWN"}))),C6S(u,O))},"aj");_.hR(_.D(function(Y){var G=Y.data;var u=function(Q){var M=ALo(G());M.videoMetadata||(M.videoMetadata={});M.videoMetadata.sponsorshipsMetadata||(M.videoMetadata.sponsorshipsMetadata={});M.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(Q)},O=function(Q){var M=ALo(G());
M.scheduledRedirectMetadata||(M.scheduledRedirectMetadata={});M.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(Q)};
return _.T("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.T("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.T("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.T(_.eO,{text:function(){return G().title}}),_.T(_.GS,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.T(_.eO,{text:function(){return G().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.T(_.HE,{data:function(){return G().tierChoices}},{dropdownViewModel:function(Q){return _.T("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.T(EAo,{data:Q.data,
onSelected:u}))}}),_.T(_.HE,{data:function(){return G().startTimeChoices}},{dropdownViewModel:function(Q){return _.T("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.T(EAo,{data:Q.data,
onSelected:O}))}}),_.T(_.eO,{text:function(){return G().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.T("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.T(_.HE,{data:function(){return G().scheduleButton}},{panelFooterViewModel:pt})))},"bj"),"ytfz-schedule-fanzone-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=Y.data;Y=Y.className===void 0?"":Y.className;var u=_.Oe(FZN,function(){return G().flowStateEntityKey||""}),O={};
O=_.s3("ytFlowBottomBarViewModelFlowBottomBarButtons",(O.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},O));
var Q={},M=_.s3("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",O,(Q.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Q.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},Q));
Q={};var t=_.s3("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",O,(Q.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Q.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},Q));
O={};O=_.s3("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(O.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},O.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},O.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
O));
Y=_.s3("ytFlowBottomBarViewModelHost",Y);return _.T("yt-flow-bottom-bar-view-model",{class:Y},_.T(_.X,{cond:function(){var K;return(K=G())==null?void 0:K.textSection},
then:function(K){return _.T("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.T(_.eO,{text:K}))}}),_.T("div",{class:O},_.T(_.HE,{data:function(){return G().secondaryButton}},{buttonViewModel:function(K){return _.T(_.$Y,{data:K.data,
className:t})}}),_.T(_.HE,{data:function(){return G().primaryButton}},{buttonViewModel:function(K){return _.T(_.$Y,{data:K.data,
className:M,buttonOverrides:function(){var L;return{disabled:!((L=u())==null||!L.primaryButtonDisabled)}}})}})))},"cj"),"yt-flow-bottom-bar-view-model",{props:{data:_.AC,
className:_.wH}});var t3o="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),mk=function(){var Y=_.Z.apply(this,arguments)||this;Y.enableScrollingFix=!0;Y.bottomBar=!1;Y.fitContent=!1;return Y};
_.m(mk,_.Z);_.H=mk.prototype;_.H.ready=function(){_.F("enable_pdp_icon_prefetch")&&aco(_.sH().resolve(_.lEx),0,t3o)};
_.H.focus=function(Y){this.topBar?_.$q(this.topBar,Y):this.paperDialog.focus(Y)};
_.H.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$21020_scroller&&(this.JSC$21020_scroller.dialogElement=this.paperDialog,this.JSC$21020_scroller.attached&&typeof this.JSC$21020_scroller.attached==="function"&&this.JSC$21020_scroller.attached())};
_.H.onDataChanged=function(){var Y;this.fitContent=!((Y=this.data)==null||!Y.fitContent);var G;this.bottomBar=!((G=this.data)==null||!G.bottomBar)};
_.H.onProgressChanged=function(){var Y,G,u=((G=(Y=this.data)==null?void 0:Y.progress)!=null?G:0)*100;this.progressElement.style.width=u+"%"};
_.H.isProgressHidden=function(){var Y;return!((Y=this.data)==null?0:Y.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",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(Y){return Y&&!Y.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
mk.prototype.onProgressChanged=mk.prototype.onProgressChanged;mk.prototype.onDataChanged=mk.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],mk.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],mk.prototype,"enableScrollingFix",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],mk.prototype,"bottomBar",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],mk.prototype,"fitContent",void 0);_.S([_.Ox("#progress"),_.V("design:type",HTMLElement)],mk.prototype,"progressElement",void 0);_.S([_.Ox("#scroller"),_.V("design:type",Object)],mk.prototype,"JSC$21020_scroller",void 0);_.S([_.Ox("ytd-flow-top-bar-renderer"),_.V("design:type",HTMLElement)],mk.prototype,"topBar",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mk.prototype,"onDataChanged",null);_.S([_.GO("data.progress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mk.prototype,"onProgressChanged",null);_.S([_.pD({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],mk);
_.d(mk,"ytd-flow-step-renderer",function(){if(Acb!==void 0)return Acb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Acb=Y},{mode:1});var W6=function(Y){this.resolveCommand=Y;this.steps={}},K$9=function(Y,G){G=_.E(G||[]);
for(var u=G.next();!u.done;u=G.next()){u=u.value;var O=Object.values(u)[0],Q=void 0;if((Q=O)==null?0:Q.stepId)Y.steps[O.stepId]=u}},T$x=function(Y,G){var u,O,Q,M,t;
return _.a(function(K){if((u=Y.state)==null||!u.currentStepId)return K.return(void 0);O=Y.getCurrentStep();if(!O)return K.return(aij(Y));if(Q=_.z(O,_.TG))Y.logVEScreen(Q),((M=Q)==null?0:M.onStepStartCommand)&&Y.resolveCommand((t=Q)==null?void 0:t.onStepStartCommand,{});Q&&G&&(Y.logFlowEvent(Q,G),G.steps&&!G.steps.includes(O)&&G.steps.push(O));return K.return(O)})};
W6.prototype.back=function(){var Y;(Y=this.state)!=null&&Y.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
W6.prototype.handleUpdateFlowCommand=function(Y){Y.steps&&K$9(this,Y.steps);Y.entityUpdateCommand&&this.resolveCommand(Y.entityUpdateCommand,{});Y.flowContinuationCommand&&(Y=Y.flowContinuationCommand)&&(this.getFlowContinuationCommand=Y);this.awaitFlowContinuation&&(Y=this.getCurrentStep(),this.awaitFlowContinuation(Y),this.awaitFlowContinuation=void 0)};
W6.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var aij=function(Y){return _.a(function(G){return Y.getFlowContinuationCommand?G.return(new Promise(function(u){Y.awaitFlowContinuation=u;Y.getFlowContinuationCommand&&Y.resolveCommand(Y.getFlowContinuationCommand,{flow_state:Y.state})})):G.return(Promise.resolve(void 0))})};
W6.prototype.getCurrentStep=function(){var Y;if((Y=this.state)!=null&&Y.currentStepId)return this.steps[this.state.currentStepId]};
W6.prototype.logVEScreen=function(Y){var G;((G=Y.screenLoggingData)==null?0:G.screenVeType)&&_.UL(_.M4(),Y.screenLoggingData.screenVeType)};
W6.prototype.logFlowEvent=function(Y,G){var u,O,Q,M;((u=G.flowLoggingData)==null?0:u.eventNamespace)&&((O=Y.flowEventData)==null?0:O.eventType)&&((Q=Y.flowEventData)==null?0:Q.eventMetadata)&&((M=G.flowLoggingData)==null?0:M.flowType)&&(Y=_.cC(G.flowLoggingData.eventNamespace,Y.flowEventData.eventType,Y.flowEventData.eventMetadata),_.UG().logFlowEvent(Y,G.flowLoggingData.flowType))};
_.Uk.Object.defineProperties(W6.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.state)==null?void 0:Y.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.state)!=null&&Y.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(G,u){u.key&&u.value&&(G[u.key]=u.value);return G},{})}}});var rI=function(){var Y=_.Z.apply(this,arguments)||this;Y.flowState=_.F("web_use_flow_state_manager")?void 0:new W6(function(G,u){u=u===void 0?{}:u;_.Jj.instance.resolveCommand(G,{form:{form:u,element:Y.hostElement}})});
Y.JSC$21031_flowStateManager=_.F("web_use_flow_state_manager")?_.sH().resolve(_.EF):void 0;Y.currentTargetId="";Y.initialState=!0;Y.isLoading=!1;Y.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"};Y.containsTalkToRecs=!1;return Y};
_.m(rI,_.Z);_.H=rI.prototype;_.H.onPopupClosed=function(Y){if(!Y||this.hostElement===Y.detail.popupRenderer){if(this.JSC$21031_flowStateManager){var G;((G=this.data)==null?0:G.flowStateEntityKey)&&this.JSC$21031_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.H.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.H.focus=function(Y){var G=this;_.CD(function(){var u=_.l0(G.hostElement).querySelector("ytd-flow-step-renderer");(u==null?0:u.topBar)?u.focus(Y):G.topBar&&_.$q(G.topBar,Y)},1)};
_.H.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.H.computeTopBarHidden=function(Y){var G;return!((G=_.z(Y,_.TG))==null||!G.topBarOverride)};
_.H.onCurrentFlowChange=function(){if(this.JSC$21031_flowStateManager&&this.data&&this.flow){var Y=ntV(this.JSC$21031_flowStateManager,this.data),G;if(Y&&((G=this.flow)==null?0:G.currentStepId)){Y=ztN(Y,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var u;!Y&&((u=this.data)==null?0:u.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.H.observeData=function(){var Y=this;if(this.JSC$21031_flowStateManager){var G=this.currentTargetId,u,O,Q=(O=(u=this.data)==null?void 0:u.targetId)!=null?O:"";G!==Q&&G&&FlN(this.JSC$21031_flowStateManager,G);this.currentTargetId=Q;this.data&&pyx(ntV(this.JSC$21031_flowStateManager,this.data),function(M){M&&(Y.initialState=!1,Y.currentFlowStep={flowStepRenderer:M},Y.isLoading=!Y.currentFlowStep,Y.autofocusAndRefit(),Y.updateContainsTalkToRecs(),Y.logVEScreen(),Y.logFlowEvent())})}};
_.H.dataChanged=function(){var Y=this,G,u;return _.a(function(O){if(O.nextAddress==1){if(!Y.flowState)return O.return();((G=Y.data)==null?0:G.steps)&&K$9(Y.flowState,Y.data.steps);if((u=Y.data)==null?0:u.flowContinuationCommand){var Q=Y.flowState,M=Y.data.flowContinuationCommand;M&&(Q.getFlowContinuationCommand=M)}return O.yield(T$x(Y.flowState,Y.data),2)}Y.currentFlowStep=O.yieldResult;_.Sd(O)})};
_.H.flowChanged=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1){if(!Y.flowState||!Y.flow)return u.return();Y.flowState.state=Y.flow;Y.isLoading=!0;return u.yield(T$x(Y.flowState,Y.data),2)}G=u.yieldResult;if(!G||Y.flow.isLoading)return u.return();Y.currentFlowStep=G;Y.initialState=!1;Y.isLoading=!1;Y.autofocusAndRefit();Y.updateContainsTalkToRecs();_.Sd(u)})};
_.H.logVEScreen=function(){var Y,G,u=(Y=_.z(this.currentFlowStep,_.TG))==null?void 0:(G=Y.screenLoggingData)==null?void 0:G.screenVeType;u&&_.UL(_.sH().resolve(_.KZ),u)};
_.H.logFlowEvent=function(){var Y=_.z(this.currentFlowStep,_.TG),G,u,O,Q,M,t;(this==null?0:(G=this.data)==null?0:(u=G.flowLoggingData)==null?0:u.eventNamespace)&&(this==null?0:(O=this.data)==null?0:(Q=O.flowLoggingData)==null?0:Q.flowType)&&(Y==null?0:(M=Y.flowEventData)==null?0:M.eventType)&&(Y==null?0:(t=Y.flowEventData)==null?0:t.eventMetadata)&&(Y=_.cC(this.data.flowLoggingData.eventNamespace,Y.flowEventData.eventType,Y.flowEventData.eventMetadata),_.UG().logFlowEvent(Y,this.data.flowLoggingData.flowType))};
_.H.updateContainsTalkToRecs=function(){var Y,G=(Y=_.z(this.currentFlowStep,_.TG))==null?void 0:Y.content;this.containsTalkToRecs=!!G&&!!_.z(G,Yvx)};
_.H.autofocusAndRefit=function(){var Y=this,G=_.sH().resolve(_.q3(_.SO)),u=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),O=document.querySelector("yt-report-form-confirmation-page-view-model"),Q=document.querySelector("yt-report-form-details-page-view-model"),M=document.querySelector("yt-report-form-reason-select-page-view-model"),t=document.querySelector("yt-contributor-zero-state-view-model"),
K=document.querySelector("yt-structured-context-note-view-model"),L=document.querySelector("yt-note-view-model");(!u&&G&&G.isKeyBoardInUse()||O||!u&&Q||!u&&M||!u&&(t||K||L))&&_.qC(this.hostElement);_.sk(this,function(){_.$s(Y.hostElement,"yt-refit")})};
_.H.handleUpdateFlowCommand=function(Y){this.flowState?this.data&&(Y=_.z(Y,_.lhR),Y.targetId===this.data.targetId&&(Y.flowContinuationCommand&&(this.data.flowContinuationCommand=Y.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(Y),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(Y)};
_.H.handleFlowNextStepCommand=function(Y){this.JSC$21031_flowStateManager?this.ytComponentBehavior.resolveCommand(Y):this.data&&this.flow&&this.flow.key&&(Y=_.z(Y,_.SE4),Y.targetId===this.data.targetId&&(Y=Y.stepId||"",this.ytdReduxBehavior.dispatch(_.zP("flowStateEntity",this.flow.key,{currentStepId:Y,stepIdStack:(this.flow.stepIdStack||[]).concat(Y)}))))};
_.H.handleFlowPrevStepCommand=function(Y){if(this.JSC$21031_flowStateManager)this.ytComponentBehavior.resolveCommand(Y);else if(this.data&&this.flow&&this.flow.key&&(Y=_.z(Y,_.Nx_),Y.targetId===this.data.targetId)){var G=[].concat(_.c8(this.flow.stepIdStack||[]));G.length>1?(G.pop(),this.ytdReduxBehavior.dispatch(_.zP("flowStateEntity",this.flow.key,{currentStepId:G[G.length-1],stepIdStack:G}))):Y.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(Y.onFirstStepCommand)}};
_.H.handleYpcCancelRecurrenceCommand=function(Y){if(this.data&&this.flow&&this.flow.key&&(Y=_.z(Y,QLB),Y.targetId===this.data.targetId&&Y.endpointCommand)){var G=_.z(this.flow,M_w);G&&_.z(Y.endpointCommand,_.Or_)&&(_.z(Y.endpointCommand,_.Or_).feedbackData=G.surveyFeedback);this.ytComponentBehavior.resolveCommand(Y.endpointCommand)}};
_.H.handlePartialUpdateFlowStateEntity=function(Y){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.zP("flowStateEntity",this.flow.key,Y,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
rI.prototype.flowChanged=rI.prototype.flowChanged;rI.prototype.dataChanged=rI.prototype.dataChanged;rI.prototype.observeData=rI.prototype.observeData;rI.prototype.onCurrentFlowChange=rI.prototype.onCurrentFlowChange;rI.prototype.onPopupClosed=rI.prototype.onPopupClosed;_.S([_.x(_.me),_.V("design:type",Object)],rI.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],rI.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],rI.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],rI.prototype,"initialState",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],rI.prototype,"isLoading",void 0);_.S([_.R(),_.V("design:type",Object)],rI.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],rI.prototype,"currentFlowStep",void 0);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],rI.prototype,"onPopupClosed",null);
_.S([_.R({selectorArgs:["data.flowStateEntityKey"],selector:FZN}),_.V("design:type",Object)],rI.prototype,"flow",void 0);_.S([_.Ox("ytd-flow-top-bar-renderer"),_.V("design:type",HTMLElement)],rI.prototype,"topBar",void 0);_.S([_.GO("data","flow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rI.prototype,"onCurrentFlowChange",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rI.prototype,"observeData",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],rI.prototype,"dataChanged",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],rI.prototype,"containsTalkToRecs",void 0);_.S([_.Ex("flow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],rI.prototype,"flowChanged",null);_.S([_.pD({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],rI);
var L$V=_.$o()(rI,"ytd-flow-root-renderer",function(){if(W5N!==void 0)return W5N;var Y=document.createElement("template");_.r(Y,'\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="root-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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return W5N=Y},{mode:2});var h8j=_.C44.talkToRecsStateSelector;_.hR(_.D(function(Y){var G=function(){return _.z(Y.data().flowRoot,GTy)};
_.ii(function(){var u=G(),O=function(){},Q=function(){};
u&&(wUj(u,o29(u)),O=DFN(u),Q=dF9(u));_.w_(function(){O();O=function(){};
Q();Q=function(){};
var M=G();M&&(_.Zs().dispatch(_.t$("flowStateEntity",M.flowStateEntityKey)),_.hj(_.V6({type:"TALK_TO_RECS_RESET_STEP_STATE",payload:{stepId:o29(M)}})))})});
return _.T("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.T(_.JZ,{contentId:function(){return Y.data().contentId}},function(){return _.T("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.T(_.X,{cond:G,
then:function(u){return _.T(L$V,{data:u})}}))}))},"dj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.AC}});var gA9=_.D(function(Y){var G=_.bM(Y,{numberOfChips:5}).numberOfChips;return _.T("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.T(_.rc,{each:function(){return Array(G==null?void 0:G())}},function(){return _.T("div",{class:"ytGhostChipShelfChip"})}))},"ej");_.hR(_.D(function(){return _.T("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.T("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.T("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.T(gA9,null)),_.T(_.jme,{data:{rows:1},isExploreHub:!0}))},"fj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.hR(_.D(function(Y){var G=Y.data;var u=Y.standardUnitMinWidth;Y=_.E((0,_.$sX)(G));var O=Y.next().value,Q=Y.next().value,M=function(){var K,L=(K=O())==null?void 0:K.contents;return L==null||L.length===0},t=function(){Q(Object.assign({},O(),{contents:[]}))};
return _.T("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.iq(_.UV({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var K=_.z(G().chipsShelf,UJ9);if(K!=null&&K!=null&&K.autoselectChipOnVisible){var L,g,P=_.z(K==null?void 0:(L=K.contents)==null?void 0:L[(g=K.autoselectedChipIndex)!=null?g:0],_.yy);P&&P.tapCommand&&_.W3(P.tapCommand)}}}))},_.T(_.JZ,{contentId:function(){return G().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.T("div",null,_.T("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.T(_.HE,{data:function(){return G().header}},{sectionHeaderViewModel:function(K){return _.T(_.Ml,{data:K.data,
disableHorizontalPadding:!0})}})),_.T("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.T(_.HE,{data:function(){return G().chipsShelf}},{chipsShelfViewModel:function(K){return _.T(_.HW,{data:K.data,
callback:t,selectionBehavior:1})}})),_.T("div",null,_.T(_.X,{cond:M,
then:function(){return _.T("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.T(_.jme,{data:{rows:1},isExploreHub:!0}))}}),_.T(_.HE,{data:function(){var K;
return(K=O())==null?void 0:K.contents}},{richShelfRenderer:function(K){return _.T(_.O4X,{data:K.data,
isInnerShelf:!0,standardUnitMinWidth:u})}})))}))},"gj"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.AC,
standardUnitMinWidth:_.AC}});var xE=function(){return _.Z.apply(this,arguments)||this};
_.m(xE,_.Z);
xE.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",eduCardViewModel:"yt-edu-card-view-model",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}}};
xE.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.S([_.x(_.me),_.V("design:type",Object)],xE.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],xE.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.DD),_.V("design:type",Object)],xE.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],xE.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Number)],xE.prototype,"standardUnitMinWidth",void 0);_.S([_.pD({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],xE);
_.d(xE,"ytd-rich-section-renderer",function(){if(MAj!==void 0)return MAj;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return MAj=Y},{mode:2});var Xro;var B4S=null;_.hR(_.D(function(Y){return _.T("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.T("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.T(_.eO,{text:function(){return Y.data().text}}),_.T("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"hj"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.AC}});var PCV=_.D(function(Y){var G=Y.playerControlsProps;var u=Y.isShortsPage;return _.T("yt-bigboard",null,_.T(_.X,{cond:function(){return G().isDragging},
then:function(){return _.T("div",{class:"ytBigboardStoryboardHost"},_.T(_.k5b,{progressBarProps:G,isShortsPage:u}))}}))},"ij");
PCV.idomCompat=!0;var ft={ACCOUNT_LABEL:QX("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:QX("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:QX("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:QX("AD_BADGE_HINT"),AD_BADGE_TEXT:QX("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:QX("ALL_CHANNELS_LABEL"),AMBIENT_MODE:QX("AMBIENT_MODE"),AMBIENT_MODE_OFF:QX("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:QX("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:QX("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:QX("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:QX("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:QX("APP_UPSELL_TITLE"),AUDIO_TRACK:QX("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:QX("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:QX("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:QX("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:QX("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:QX("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:QX("AUTO_ZOOM","Auto zoom"),BACK:QX("BACK"),CANCEL:QX("CANCEL"),CHANNEL_SWITCHER_LABEL:QX("CHANNEL_SWITCHER_LABEL"),CLOSE:QX("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:QX("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:QX("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:QX("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:QX("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:QX("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:QX("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:QX("COMMENT_MODAL_CONTENT"),CONFIRM_OK:QX("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:QX("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:QX("COPIED_TO_CLIPBOARD"),COPY:QX("COPY"),COPY_DEBUG_INFO:QX("COPY_DEBUG_INFO"),COPY_EMBED_CODE:QX("COPY_EMBED_CODE"),
COPY_LINK_LABEL:QX("COPY_LINK_LABEL"),COPY_VIDEO_URL:QX("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:QX("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:QX("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:QX("DELETE_FROM_DOWNLOADS"),DIALOG:QX("DIALOG"),DONE:QX("DONE"),DOWNLOAD:QX("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:QX("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:QX("FLAG_CONFIRM"),FLAG_CONTENT:QX("FLAG_CONTENT"),FLAG_LABEL:QX("FLAG_LABEL"),FLAG_TITLE:QX("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:QX("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:QX("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:QX("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:QX("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:QX("HIDE_SEARCH_FILTERS_LABEL"),HOME:QX("HOME","Home"),INVALID_RESPONSE_RECEIVED:QX("INVALID_RESPONSE_RECEIVED"),LIBRARY:QX("LIBRARY","Library"),LISTENING:QX("LISTENING"),LOADING:QX("LOADING"),LONG_PRESS_MIC_TO_SPEAK:QX("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:QX("LOOP"),MENU_DESKTOP:QX("MENU_DESKTOP"),
MENU_EXIT:QX("MENU_EXIT"),MENU_FEEDBACK:QX("MENU_FEEDBACK"),MENU_HELP:QX("MENU_HELP"),MENU_IMPRESSUM:QX("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:QX("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:QX("MENU_SETTINGS"),MENU_SIGN_IN:QX("MENU_SIGN_IN"),MENU_TITLE:QX("MENU_TITLE"),MENU_YOUR_DATA:QX("MENU_YOUR_DATA"),MORE_INFO:QX("MORE_INFO"),MORE_OPTIONS:QX("MORE_OPTIONS"),MUTE_VOLUME:QX("MUTE_VOLUME"),NEW_PLAYLIST:QX("NEW_PLAYLIST"),NEXT_VIDEO:QX("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:QX("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:QX("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:QX("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:QX("NOT_FOUND_TITLE"),NO_DOWNLOADS:QX("NO_DOWNLOADS"),NO_MIC_INPUT:QX("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:QX("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:QX("OOPS_MESSAGE"),OPEN_APP:QX("OPEN_APP"),OPEN_YOUTUBE:QX("OPEN_YOUTUBE"),PAUSE:QX("PAUSE"),PLAY:QX("PLAY"),PLAYER_CAPTION:QX("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:QX("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:QX("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:QX("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:QX("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:QX("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:QX("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:QX("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:QX("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:QX("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:QX("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:QX("PLAYER_MINIMIZE"),PLAYER_NEXT:QX("PLAYER_NEXT"),PLAYER_PAUSE:QX("PLAYER_PAUSE"),PLAYER_PLAY:QX("PLAYER_PLAY"),
PLAYER_PREVIOUS:QX("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:QX("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:QX("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:QX("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:QX("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:QX("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:QX("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:QX("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:QX("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:QX("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:QX("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:QX("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:QX("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:QX("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:QX("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:QX("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:QX("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:QX("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:QX("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:QX("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:QX("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:QX("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:QX("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:QX("PLAY_ALL"),PLEASE_FIX_ERRORS:QX("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:QX("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:QX("PREVIOUS_VIDEO"),PRIVACY_POLICY:QX("PRIVACY_POLICY"),RELOAD:QX("RELOAD"),REQUIRED_LABEL:QX("REQUIRED_LABEL"),SAVE_PLAYLIST:QX("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:QX("SCRUB_SLIDE_USER_EDU"),SEARCH:QX("SEARCH","Search"),
SEARCH_APPEND_LABEL:QX("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:QX("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:QX("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:QX("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:QX("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:QX("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:QX("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:QX("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:QX("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:QX("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:QX("SEEK_SLIDER"),SETTINGS_LABEL:QX("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:QX("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:QX("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:QX("SHOW_LESS"),SHOW_MORE:QX("SHOW_MORE"),SHOW_PLAYER_CONTROLS:QX("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:QX("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:QX("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:QX("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:QX("SIGN_IN_ON_WEB"),STABLE_VOLUME:QX("STABLE_VOLUME"),STABLE_VOLUME_OFF:QX("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:QX("STABLE_VOLUME_ON"),STATS_FOR_NERDS:QX("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:QX("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:QX("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:QX("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:QX("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:QX("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:QX("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:QX("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:QX("TIMESTAMP_SECONDS"),TOGGLE_OFF:QX("TOGGLE_OFF"),TOGGLE_ON:QX("TOGGLE_ON"),TRENDING:QX("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:QX("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:QX("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:QX("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:QX("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:QX("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:QX("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:QX("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:QX("VIDEO_LINK_LABEL")};var Iix=_.D(function(Y){var G=Y.playerApi;Y=_.CH("button",function(O){Ga(O,36843)});
var u=QX("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.T("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.T("button",{el:Y,class:"ytPlayerControlsJumpForwardButtonButton",title:u,"aria-label":u,"on:click":_.U3(function(){uG(36843);G&&G().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.T("span",null,_.T(_.GS,{icon:"FAST_FORWARD",
active:!0}))))},"jj");var kHb=_.D(function(Y){var G=Y.appApi;Y=_.CH("button",function(O){Ga(O,62946)});
var u=QX("OPEN_IN_MINIPLAYER");return _.T("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.T("button",{el:Y,class:"ytMiniplayerButtonButton",title:u,"aria-label":u,"on:click":_.U3(function(){uG(62946);var O,Q;(Q=(O=G()).openInMiniplayer)==null||Q.call(O);return!1})},_.T(_.GS,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"kj");var nAN=_.D(function(Y){var G=Y.playerApi;Y=_.CH("button",function(M){Ga(M,142812)});
var u=_.E(_.IE(!1,void 0,"eOMRAb")),O=u.next().value,Q=u.next().value;u=function(){return QX("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(O()?1:2)})};
return _.T("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.T("button",{el:Y,class:"ytPlaybackSpeedButtonButton",title:u,"aria-label":u,"on:click":_.U3(function(){uG(142812);if(G){var M=G(),t=O();M.setPlaybackRate(t?1:2);Q(!O())}return!1})},_.T("span",null,_.T(_.GS,{icon:function(){return O()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"lj");var F$N=_.D(function(Y){var G=Y.title;var u=Y.ariaLabel;var O=Y.icon;var Q=Y.command;var M=Y.visualElementId;Y=_.CH("button",function(t){M&&Ga(t,M())});
return _.T("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.T("button",{el:Y,class:"ytdThumbnailOverlayButtonButton",title:G,"aria-label":u,"on:click":_.U3(function(){M&&uG(M());Q&&_.sH().resolve(_.rH).resolveCommand(Q())})},_.T(_.GS,{icon:O})))},"mj");var prS=["en-CA","en","es-MX","fr-CA"];var zV9=_.D(function(Y){var G=_.bM(Y,{isOverlay:!1}),u=G.captionIconType,O=G.onClick;Y=G.ariaLabel;var Q=G.ariaPressed,M=G.isOverlay;G=_.CH("button",function(L){Ga(L,127299)});
var t=_.U3(function(L){uG(127299);O==null||O(L);return!1}),K={};
return _.T("ytm-closed-captioning-button",{class:_.s3("ytmClosedCaptioningButtonHost",(K.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return u()===-1&&M()},K.ytmClosedCaptioningButtonIconDisabled=function(){return u()===-1&&!M()},K))},_.T("button",{el:G,
class:"ytmClosedCaptioningButtonButton",title:Y,"aria-label":Y,"aria-pressed":Q,"on:click":t},_.T(_.GS,{icon:function(){var L="";var g=_.EU().get("hl");g=!g||prS.includes(g)?"CLOSED_CAPTION":"SUBTITLES";var P=u();switch(P){case -1:case 0:L=g;break;case 1:L=g+"_FILLED";break;default:_.YV(P)}return L}})))},"nj");
zV9.idomCompat={callbacks:{onClick:!0}};var Yu="";var mx9=_.D(function(Y){var G=Y.playerControlsProps,u=Y.onClickFn;Y=_.p2(function(){var M=G(),t=-1;M.captionsAvailable&&(t=M.captionsEnabled?1:0);return t},void 0,"MZ0Wqe");
var O=_.p2(function(){var M=G();return M.captionsAvailable?_.Q6(M.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Q6("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),Q=_.p2(function(){var M=G();
M=M.captionsAvailable?M.captionsEnabled:void 0;return M},void 0,"fhuQRe");
return _.T("yt-closed-captions-toggle-button",null,_.T(zV9,{captionIconType:Y,ariaLabel:O,ariaPressed:Q,onClick:function(M){var t=G();if(t.captionsAvailable){var K=t.playerApi;if(K){var L=t.playerApi;if(L){var g=Yu;if(g){L=L.getOption("captions","track");var P;Yu=(P=L?L.displayName:null)!=null?P:g}else NKN(L)?(g=_.cxA(L),Yu=g.length?(P=V7y(g))?P.displayName:g[0].displayName:""):Yu=""}lsx(K);_.F("mweb_disable_set_state_captions_killswitch")&&t.setState({captionsEnabled:!t.captionsEnabled})}}var I,
k;(k=(I=t.appApi).showCaptionsToggleToast)==null||k.call(I,t);u==null||u(M)},
isOverlay:!0}))},"oj");var W$9=_.D(function(Y){var G=Y.data;return _.T("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.T(_.CR,{data:function(){return{type:17,text:_.GJj(G().label)}}}))},"pj");var rnw=_.D(function(Y){var G=_.s3("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return Y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return Y.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return Y.size()==="small"?Y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
Y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.T("animated-seek-arrows",{class:_.s3("ytPlayerControlsAnimatedSeekArrowsHost")},_.T("span",{class:G}),_.T("span",{class:G}),_.T("span",{class:G}))},"qj");
rnw.idomCompat=!0;var xx9=_.D(function(){var Y=_.Q6("PLAYER_SECONDS",{seconds_placeholder:"30"}),G=_.E(_.IE(!1,void 0,"iRJu8c")),u=G.next().value,O=G.next().value,Q=_.E(_.IE(!1,void 0,"MPnizf"));G=Q.next().value;var M=Q.next().value;Q={};var t=_.s3("jumpForwardOverlayOverlay",(Q.jumpForwardOverlayOverlayHidden=G,Q));_.ii(function(){var K=null,L=null,g=function(){K!==null&&_.FO().cancelJob(K);L!==null&&_.FO().cancelJob(L);M(!0);O(!0);_.jk(_.FO(),function(){M(!1)});
K=_.jk(_.FO(),function(){M(!0);L=_.jk(_.FO(),function(){O(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",g);_.w_(function(){window.removeEventListener("jump-forward-clicked",g)})});
return _.T("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.T(_.X,{cond:u,then:function(){return _.T("div",{class:t},_.T(rnw,{direction:1,size:"large"}),_.T("div",null,Y))}}))},"rj");var fiN=ft.MUTE_VOLUME,CCj=ft.UNMUTE_VOLUME,ynb=_.D(function(Y){var G=Y.muteIconType;var u=Y.onClick;var O=Y.useOutlineIcon;var Q=Y.useDelhiIcons;Y=_.CH("button",function(K){Ga(K,28662)});
var M=function(){var K=G(),L=O==null?void 0:O(),g=Q==null?void 0:Q(),P="",I="";switch(K){case -1:case 0:P=L?"VOLUME_OFF":g?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";I=CCj;break;case 1:P=L?"VOLUME_UP_OUTLINE":g?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";I=fiN;break;case 2:P=L?"VOLUME_DOWN_OUTLINE":g?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";I=fiN;break;default:_.YV(K)}return{iconName:P,ariaLabel:I}},t=function(){return M().ariaLabel};
return _.T("ytm-mute-button",{class:"ytmMuteButtonHost"},_.T("button",{el:Y,class:"ytmMuteButtonButton",title:t,"aria-label":t,"on:click":_.U3(function(K){uG(28662);u==null||u(K);return!1})},_.T("span",null,_.T(_.GS,{icon:function(){return M().iconName}}))))},"sj");var eVS=_.D(function(Y){var G=Y.volumeProps;var u=Y.onClickFn;var O=Y.useOutlineIcon;var Q=Y.useDelhiIcons;return _.T("yt-mute-toggle-button",null,_.T(ynb,{muteIconType:function(){var M=G();return M.volumeMuted||M.volume===0?0:M.volume>50?1:2},
onClick:function(M){var t=G().playerApi;t&&(t.isMuted()?t.unMute():t.mute(!1));u==null||u(M)},
useOutlineIcon:function(){return!(O==null||!O())},
useDelhiIcons:function(){return!(Q==null||!Q())}}))},"tj");
eVS.idomCompat=!0;var An9=_.D(function(Y){var G=Y.data;var u=_.CH("ytm-paid-content-overlay-renderer");return _.T("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:u,"on:animationend":_.U3(function(){u.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.T(_.Ny,{command:function(){return G().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.T(_.X,{cond:function(){var O;return(O=G().icon)==null?void 0:O.iconType},
then:function(){return _.T("span",null,_.T(_.GS,{icon:function(){var O;return(O=G().icon)==null?void 0:O.iconType}}))}}),_.T("div",{class:"ytmPaidContentOverlayText"},_.T(_.eO,{text:function(){return G().text}})),_.T(_.X,{cond:function(){return G().navigationEndpoint},
then:function(){return _.T(_.GS,{icon:"CHEVRON_RIGHT"})}})))},"uj");
An9.idomCompat=!0;var nc9=[].concat(_.c8([{register:function(Y){var G=TVg(Y),u;(u=Y().playerApi)==null||u.addEventListener("onVolumeChange",G);return function(){}}},
{register:function(Y){var G=LJj(Y);Y=Y().playerApi;Y==null||Y.addEventListener("captionschanged",G);Y==null||Y.addEventListener("captionssettingschanged",G);Y==null||Y.addEventListener("onCaptionsTrackListChanged",G);return function(){}}}]),[{register:function(Y){var G=EMj(Y),u;
(u=Y().playerApi)==null||u.addEventListener("onStateChange",G);return function(){}}},
{register:function(Y){var G=t6o(Y),u;(u=Y().playerApi)==null||u.addEventListener("onPlaybackRateChange",G);return function(){}}},
{register:function(Y){var G=KJN(Y),u;(u=Y().playerApi)==null||u.addEventListener("onVideoDataChange",G);return function(){}}},
{register:function(Y){var G=aKS(Y),u,O;(u=Y())==null||(O=u.playerApi)==null||O.addEventListener("onVideoProgress",G);return function(){}}}]);var oAx=_.D(function(Y){var G=Y.data;var u=function(){return _.Q6("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+G().playbackRate})};
return _.T(_.X,{cond:function(){return G().playbackRate&&G().playbackRate!==1},
then:function(){return _.T("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.T("div",{class:"ytPlaybackRateOverlayOverlay"},_.T(rnw,{direction:1,size:"small"}),_.T("div",{class:"ytPlaybackRateOverlayLabel"},u)))}})},"wj");var iiN=_.D(function(Y){var G=Y.data;return _.T("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.T(_.X,{cond:function(){var u,O=(u=G())==null?void 0:u.playerResponse,Q;return O==null?void 0:(Q=O.paidContentOverlay)==null?void 0:Q.paidContentOverlayRenderer},
then:function(u){return _.T(An9,{data:u})}}))},"yj"),RVy=_.D(function(Y){var G=Y.props;
var u=Y.data;var O=Y.options;var Q=function(){var g,P,I,k;return(g=u())==null?void 0:(P=g.playerResponse)==null?void 0:(I=P.playerConfig)==null?void 0:(k=I.inlinePlaybackConfig)==null?void 0:k.showAudioControls},M=function(){var g,P;
if(Q()&&((g=O())==null?void 0:(P=g.additionalButton)==null?void 0:P.button)!==void 0){var I,k,n;g=(I=u())==null?void 0:(k=I.playerApi)==null?void 0:(n=k.getSize())==null?void 0:n.height;if(!(g===void 0||g<180)){var p,W;return(p=O())==null?void 0:(W=p.additionalButton)==null?void 0:W.button}}},t=function(){var g,P;
return(g=O())==null?void 0:(P=g.additionalButton)==null?void 0:P.thumbnailOverlayButtonRenderers},K=function(){var g,P;
return(g=O())==null?void 0:(P=g.additionalButton)==null?void 0:P.thumbnailOverlayButtonViewModels},L=function(){var g=[_.T(eVS,{volumeProps:G})],P;
((P=O())==null?0:P.hideCaptionsToggleButton)||g.push(_.T(mx9,{playerControlsProps:G}));M()===1&&g.push(_.T(Iix,{playerApi:function(){return G().playerApi}}));
M()===2&&g.push(_.T(kHb,{appApi:function(){return G().appApi}}));
M()===3&&g.push(_.T(nAN,{playerApi:function(){return G().playerApi}}));
P=t();if(M()===4&&P){P=_.E(P);for(var I=P.next(),k={};!I.done;k={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$55:void 0,command$jscomp$632:void 0},I=P.next()){I=I.value;k.tooltip$jscomp$3=I.tooltip;var n=void 0,p=void 0;k.ariaLabel$jscomp$20=((n=I.accessibility)==null?void 0:(p=n.accessibilityData)==null?void 0:p.label)||k.tooltip$jscomp$3;n=void 0;k.icon$jscomp$55=(n=I.icon)==null?void 0:n.iconType;k.command$jscomp$632=I.command;k.tooltip$jscomp$3&&k.ariaLabel$jscomp$20&&k.icon$jscomp$55&&
g.push(_.T(F$N,{title:function(W){return function(){return W.tooltip$jscomp$3}}(k),
ariaLabel:function(W){return function(){return W.ariaLabel$jscomp$20}}(k),
icon:function(W){return function(){return W.icon$jscomp$55}}(k),
command:function(W){return function(){return W.command$jscomp$632}}(k)}))}}P=K();
if(M()===4&&P)for(P=_.E(P),I=P.next(),k={};!I.done;k={tooltip$jscomp$4:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$56:void 0,command$jscomp$633:void 0,trackingParamsVeType:void 0},I=P.next())I=I.value,k.tooltip$jscomp$4=I.title,k.ariaLabel$jscomp$21=I.accessibilityText||k.tooltip$jscomp$4,k.icon$jscomp$56=I.iconName,k.command$jscomp$633=_.FS(I.onTap),p=n=void 0,k.trackingParamsVeType=((n=I.loggingDirectives)==null?0:n.trackingParams)?(p=ldx(_.JY(I.loggingDirectives.trackingParams)))==null?void 0:
_.Sh(p,2):void 0,k.tooltip$jscomp$4&&k.ariaLabel$jscomp$21&&k.icon$jscomp$56&&g.push(_.T(F$N,{title:function(W){return function(){return W.tooltip$jscomp$4}}(k),
ariaLabel:function(W){return function(){return W.ariaLabel$jscomp$21}}(k),
icon:function(W){return function(){return W.icon$jscomp$56}}(k),
command:function(W){return function(){return W.command$jscomp$633}}(k),
visualElementId:function(W){return function(){return W.trackingParamsVeType}}(k)}));
return g};
return _.T(_.X,{cond:Q,then:function(){return _.T("div",{class:"ytInlinePlayerControlsTopRightControls"},_.T(_.rc,{each:L},function(g){return _.T("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.T("div",{class:"ytInlinePlayerControlsButtonIcon"},g))}))}})},"zj"),Dxy=_.D(function(Y){var G=Y.props;
var u=Y.data;var O=Y.options;Y={};Y=_.s3("ytInlinePlayerControlsBottomRightControls",(Y.ytInlinePlayerControlsBottomRightControlsHidden=function(){var Q;return XHw(u(),O())&&((Q=O())==null?void 0:Q.insetProgressBar)&&(G().isHovering||G().isDragging)},Y));
return _.T("div",{class:Y},_.T(wry,{data:u}),_.T(_.X,{cond:function(){var Q;return!((Q=O())==null?0:Q.hideTimeDisplay)},
then:function(){return _.T(ZiN,{props:G,data:u})}}))},"Aj"),wry=_.D(function(Y){var G=Y.data;
return _.T(_.HE,{data:function(){var u;return YAN((u=G())==null?void 0:u.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:W$9})},"Bj"),ZiN=_.D(function(Y){var G=Y.props;
var u=Y.data;return _.T(_.X,{cond:function(){return G().isLive},
then:function(){return _.T(hVo,{props:G,data:u})},
else:function(){return _.T(dx9,{props:G,data:u})}})},"Cj"),dx9=_.D(function(Y){var G=Y.props;
var u=Y.data;var O=_.p2(function(){var Q;return G09((Q=u())==null?void 0:Q.thumbnailOverlays)},void 0,"Pf9uIe");
return _.T("div",{class:_.s3("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return ft.PLAYER_TIME_ELAPSED+" "+_.Z1I(G().playedTime)}},_.T(_.CR,{data:function(){var Q=_.Z1I(G().videoDuration-G().playedTime);
return Object.assign({},{type:17,text:Q},O())}}))},"Dj"),biS=_.D(function(Y){Y=Y.badgeShapeData;
return _.T("div",{class:_.s3("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.T(_.CR,{data:Y}))},"Ej"),hVo=_.D(function(Y){var G=Y.data;
Y=_.p2(function(){if(_.F("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var O,Q=_.E(((O=G())==null?void 0:O.thumbnailOverlays)||[]);for(O=Q.next();!O.done;O=Q.next()){O=O.value;if(O.thumbnailOverlayTimeStatusRenderer||O.thumbnailOverlayBadgeViewModel)return O;var M=void 0;if((M=O.thumbnailBottomOverlayViewModel)==null?0:M.badges)if(O=O.thumbnailBottomOverlayViewModel.badges.find(function(t){return _.z(t,v2o)}))return O}}},void 0,"GPGpgc");
var u=_.p2(function(){var O,Q,M,t,K,L;return _.E9g((O=G())==null?void 0:(Q=O.playerApi)==null?void 0:(M=Q.getSize())==null?void 0:M.width,(t=G())==null?void 0:(K=t.playerApi)==null?void 0:(L=K.getSize())==null?void 0:L.height)},void 0,"OeIVKe");
return _.T(_.X,{cond:Y,then:function(O){return _.T(_.HE,{data:O},{thumbnailOverlayTimeStatusRenderer:function(Q){var M=Q.data;Q=_.p2(function(){return _.UYt(M(),0)},void 0,"skoDC");
return _.T(biS,{badgeShapeData:Q})},
thumbnailBadgeViewModel:function(Q){return _.T(_.gE4,{data:Q.data,class:_.s3("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(Q){return _.T(_.rY,{data:Q.data,thumbnailSize:u})}})},
else:function(){var O={type:18,text:ft.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.T(biS,{badgeShapeData:function(){return O}})}})},"Fj"),SQj=_.D(function(Y){var G=Y.props;
var u=Y.data;var O=Y.options;return _.T(_.Wmy,{progressBarProps:G,config:function(){var Q,M=_.z((Q=u())==null?void 0:Q.multiMarkersPlayerBar,_.ylU),t;Q=((t=O())==null?0:t.insetProgressBar)?2:1;var K;t=(K=O())==null?void 0:K.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:Q,chapterData:M,isInlinePlayback:!0,doSeekOnClick:t,playheadDotBehavior:t?1:0}}})},"Gj");_.hR(_.D(function(Y){var G=Y.data;var u=Y.appApi;var O=Y.options;var Q=HyS(G,gMN(u));Y={};u={};return _.T("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.T("div",{class:_.s3("ytInlinePlayerControlsDarkenedOverlay",(Y.ytInlinePlayerControlsDarkenedOverlayShow=function(){return Q().isHovering},Y))}),_.T(xx9,null),_.T(oAx,{data:Q}),_.T(iiN,{data:G}),_.T(PCV,{playerControlsProps:Q,
isShortsPage:!1}),_.T("div",{class:_.s3((u.ytInlinePlayerControlsControlsHidden=function(){return Q().isDragging},u))},_.T(RVy,{props:Q,
data:G,options:O}),_.T(Dxy,{props:Q,data:G,options:O})),_.T(_.X,{cond:function(){return XHw(G(),O())},
then:function(){return _.T(SQj,{props:Q,data:G,options:O})}}))},"xj"),"yt-inline-player-controls",{props:{data:_.AC,
appApi:_.wH,options:_.AC}});var Ct=function(){var Y=_.Z.apply(this,arguments)||this;Y.opts=null;Y.playerControlsData=null;Y.playerControlsAppApi={openInMiniplayer:function(){Y.openInMiniplayer()}};
Y.playerControlsOptions={};Y.noAnimation=!1;Y.playbackIntentTriggered=!1;Y.positionData=null;Y.hidden=!0;Y.active=!1;Y.playing=!1;Y.persistentPanelVisible=!1;Y.videoPreviewDataIndex=0;Y.JSC$21090_playerPromise=null;Y.player=null;Y.enableAudioControls=!1;Y.hasBeenUnmuted=!1;Y.captionsHaveBeenTurnedOff=!1;Y.JSC$21090_playerEvents=new Map;Y.videoPreviewFetchRequest=null;Y.scheduledPreviewEndJobId=null;Y.JSC$21090_preventProgressSaveTimer=null;Y.watchEndpointStartTimeUpdaterInterval=null;Y.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};Y.windowOnBlurFn=function(){Y.deactivate()};
return Y};
_.m(Ct,_.Z);_.H=Ct.prototype;
_.H.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.H.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$21090_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$21090_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$21090_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$21090_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Jh(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Jh(this,this.onScroll))};
_.H.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Jh(this,this.onScroll))};
_.H.onPageTypeChange=function(){this.deactivate()};
_.H.onWindowResized=function(){this.deactivate()};
_.H.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.H.onCaptionsChanged=function(Y){Y=!!Y.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!Y);this.setCaptionSize()};
_.H.setCaptionSize=function(){var Y;if(this.active&&!this.captionsHaveBeenTurnedOff&&((Y=this.player)==null?0:Y.getCaptionWindowContainerId())){var G;(G=this.player)==null||G.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||!_.F("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var Y=this.positionData,G=Y.initialTopPosition,u=Y.initialHorizontalPosition;_.cm(this.hostElement,{"--ytd-video-preview-translate-left":Y.finalHorizontalPosition-u+"px","--ytd-video-preview-translate-top":Y.finalTopPosition-G+"px","--ytd-video-preview-original-top-position":G+
"px","--ytd-video-preview-original-horizontal-position":u+"px","--ytd-video-preview-initial-scale":"scale("+Y.initialScale+")","--ytd-video-preview-width":Y.videoPreviewWidth+"px","--ytd-video-preview-height":Y.videoPreviewHeight+"px"});return!0};
_.H.isOutOfBounds=function(Y){var G=Y.initialHorizontalPosition+12;Y=G+Y.videoPreviewWidth>window.innerWidth;return G<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&G<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&G<72||Y};
_.H.handleOpenVideoPreviewAction=function(Y){var G=this,u;return _.a(function(O){if(!G.currentPageAllowed())return O.return(0);G.opts=Y;return(u=G.alignVideoPreviewForAnimation(Y.thumbnail))?O.return(G.activate()):O.return(0)})};
_.H.onMouseLeave=function(Y){var G,u;(G=this.opts)==null||(u=G.mouseleaveCallback)==null||u.call(G);this.shouldDeactivateOnMouseLeave(Y)&&this.deactivate()};
_.H.onScroll=function(){var Y,G;((Y=this.opts)==null?0:Y.isAutoplay)&&((G=this.opts)==null?0:G.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.H.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.AN.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",Ct.JSC$21089_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ct.JSC$21089_CLICK_LOCATION_ID_MAP)};
_.H.shouldDeactivateOnMouseLeave=function(Y){Y=Y.relatedTarget;if(!Y)return!0;var G;return(G=this.opts)!=null&&G.mediaRenderer?!_.Bm(this.opts.mediaRenderer).contains(Y):!0};
_.H.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.H.onPlaybackStart=function(){var Y=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$21090_preventProgressSaveTimer=
_.jk(_.AN,function(){Y.resetPreventProgressSaveTimer()},1E4);
var G;if((G=this.opts)==null?0:G.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.jk(_.AN,function(){Y.hasMultipleVideoPreviews()?Y.startPlaybackForNextVideo():Y.deactivate()},this.opts.videoPreviewDurationMs);
var u;this.player.setGlobalCrop(((u=this.opts)==null?0:u.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.H.getRoundedCornersSize=function(){var Y;if((Y=this.opts)==null?0:Y.roundedCornersSize){var G;return(G=this.opts)==null?void 0:G.roundedCornersSize}var u;if((u=this.opts)==null?0:u.enableRounding){var O;if(((O=this.opts)==null?void 0:O.thumbnailSize)==="small")return 1;var Q;if(((Q=this.opts)==null?void 0:Q.thumbnailSize)==="medium")return 2;var M;if(((M=this.opts)==null?void 0:M.thumbnailSize)==="large")return 3}return _.F("web_imp_inset_progress_bar")?3:0};
_.H.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.H.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.H.onMediaContainerClick=function(Y){this.isShortcutClick(Y)||(this.navigateToWatch(Y),Y.preventDefault(),Y.stopPropagation())};
_.H.activate=function(){var Y=this,G,u,O,Q,M,t,K,L,g;return _.a(function(P){switch(P.nextAddress){case 1:if(!Y.currentPageAllowed())return P.return(0);u=(G=Y.videoPreviewData)==null?void 0:G.inlinePlaybackEndpoint;O=_.Af.instance;if(!u||!O)return P.return(0);Y.playbackIntentTriggered=!0;((Q=Y.opts)==null?0:Q.mediaRenderer)&&((M=Y.opts)==null||!M.isAutoplay)&&cL9(Y.opts.mediaRenderer,function(){Y.deactivate()});
_.sk(Y,function(){Y.revealPreviewUi()});
t={};_.F("enable_unknown_lact_fix_on_html5")&&(_.sH().resolve(_.tf),t.lact=_.Y7());Y.videoPreviewFetchRequest=jzb(O,Y.getInlinePlaybackRequestData(Y.videoPreviewData),t);_.i3(P,2);return P.yield(Y.videoPreviewFetchRequest,4);case 4:K=P.yieldResult;if(((L=K)==null?void 0:(g=L.playabilityStatus)==null?void 0:g.status)==="OK")return P.return(Y.handlePlayerResponse(K));throw Error("Sl");case 2:_.b3(P),Y.deactivate();case 3:return P.return(1)}})};
_.H.getInlinePlaybackRequestData=function(Y){var G,u=_.F("web_imp_player_mute_params")?((G=this.opts)==null?void 0:G.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:Y.inlinePlaybackEndpoint,startPlaybackInMutedState:u}};
_.H.handlePlayerResponse=function(Y){var G=this,u,O,Q,M,t,K,L,g,P,I,k,n,p,W;return _.a(function(C){if(C.nextAddress==1){u=G.getInlinePlaybackVideoId();if(!(((O=Y)==null?0:(Q=O.videoDetails)==null?0:Q.videoId)&&G.currentPageAllowed()&&G.playbackIntentTriggered&&G.opts&&u))return G.deactivate(),C.return(0);if(Y.videoDetails.videoId!==u)return C.return(0);G.enableAudioControls=!!((M=Y.playerConfig)==null?0:(t=M.inlinePlaybackConfig)==null?0:t.showAudioControls);Y.trackingParams=G.getInlinePlaybackTrackingParams();
if(!G.inlinePlayer)return C.return(0);K={};if(g=_.z((L=G.videoPreviewData)==null?void 0:L.inlinePlaybackEndpoint,_.ic))K.watch_endpoint=g;if(G.videoPreviewData){var e,w=(e=_.z(G.videoPreviewData.inlinePlaybackEndpoint,_.ic))==null?void 0:e.startTimeSeconds;w!==void 0&&(Y.playerConfig||(Y.playerConfig={}),Y.playerConfig.playbackStartConfig||(Y.playerConfig.playbackStartConfig={}),Y.playerConfig.playbackStartConfig.startPosition||(Y.playerConfig.playbackStartConfig.startPosition={}),Y.playerConfig.playbackStartConfig.startSeconds=
w,Y.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(w*1E3))}G.inlinePlayer.loadVideoWithPlayerResponse(Y,K);if(G.JSC$21090_playerPromise)return C.jumpTo(2);G.JSC$21090_playerPromise=G.inlinePlayer.getPlayerPromise();return C.yield(G.JSC$21090_playerPromise,3)}C.nextAddress!=2&&(P=C.yieldResult,P.setInlinePreview(!0),I=!_.F("web_imp_theater_bugfix"),P.setSizeStyle(!1,I),G.ytPlayerListenerBehavior.listenToPlayerEvents(P,G.JSC$21090_playerEvents),G.player=P,_.$s(G.hostElement,
"player-api-ready"));((k=G.opts)==null?0:k.showPlayerControls)&&G.videoPreviewData&&G.player&&(G.playerControlsData={playerResponse:Y,isInlinePlayback:!0,thumbnailOverlays:G.videoPreviewData.thumbnailOverlays,playerApi:G.player},G.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!G.unroundCornersForPlayback,additionalButton:G.getAdditionalButtonType(G.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(n=G.opts)==null?void 0:n.hideTimeDisplay,hideScrubbingControls:(p=G.opts)==
null?void 0:p.hideScrubber,hideCaptionsToggleButton:(W=G.opts)==null?void 0:W.hideCaptionsToggleButton});return C.return(2)})};
_.H.revealPreviewUi=function(){var Y=this;this.playbackIntentTriggered&&_.BQI(this,function(){Y.hasThumbnailPositionChangedSinceTriggered()||(Y.updateActiveState(!0),Y.noAnimation=!1)})};
_.H.hasThumbnailPositionChangedSinceTriggered=function(){var Y=this.positionData,G=this.getThumbnailPositionData();return(Y==null?void 0:Y.initialTopPosition)!==(G==null?void 0:G.initialTopPosition)||(Y==null?void 0:Y.initialHorizontalPosition)!==(G==null?void 0:G.initialHorizontalPosition)};
_.H.getThumbnailPositionData=function(){var Y,G;if((G=this.opts)==null||!G.thumbnail)return null;G=this.opts.thumbnail;var u=((Y=this.opts)==null?0:Y.cropPlayerToFillThumbnailHorizontally)?!1:!0;var O=G.getBoundingClientRect();Y=O.width;G=O.height;var Q=O.top+window.scrollY;O=O.left+window.scrollX;var M=u?Math.ceil(Y):Y;u=u?Math.ceil(G):G;var t=Y/M;Y={initialScale:t,initialTopPosition:Q-12*t,finalTopPosition:Q-12-(u-G)/2,initialHorizontalPosition:O-(12+(M-Y)/2),finalHorizontalPosition:O-12-(M-Y)/
2,videoPreviewWidth:M,videoPreviewHeight:u};return Y};
_.H.updateActiveState=function(Y){this.active=Y;this.ytdReduxBehavior.dispatch(_.V6({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:Y}))};
_.H.stopPlayer=function(Y){Y=Y.resetWatchEndpointStartTime===void 0?!1:Y.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(Y)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.AN.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.H.deactivate=function(Y){Y=Y===void 0?{}:Y;Y=Y.resetWatchEndpointStartTime===void 0?!1:Y.resetWatchEndpointStartTime;B4S&&(B4S.disconnect(),B4S=null);this.stopPlayer({resetWatchEndpointStartTime:Y});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.H.isValidThumbnailOverlayButton=function(Y,G){Y=Y.thumbnailOverlayButtonRenderer;var u;return!!Y&&!!Y.tooltip&&!((u=Y.icon)==null||!u.iconType)&&G.includes(Y.icon.iconType)};
_.H.isValidThumbnailOverlayButtonViewModel=function(Y,G){var u;Y=_.z((u=Y.thumbnailOverlayButtonViewModel)==null?void 0:u.overlayButton,_.Ck);return!!Y&&!!Y.title&&!!Y.iconName&&G.includes(Y.iconName)};
_.H.getAdditionalButtonType=function(Y){var G=this;if(_.F("web_imp_miniplayer_button"))return{button:2};if(_.F("web_imp_playback_speed_button"))return{button:3};var u=["BOX_STACK_3"],O=(Y||[]).filter(function(M){return G.isValidThumbnailOverlayButton(M,u)}).map(function(M){return M.thumbnailOverlayButtonRenderer});
if(O.length)return{button:4,thumbnailOverlayButtonRenderers:O};var Q=["BOX_STACK_3"];Y=(Y||[]).filter(function(M){return G.isValidThumbnailOverlayButtonViewModel(M,Q)}).map(function(M){return _.z(M.thumbnailOverlayButtonViewModel.overlayButton,_.Ck)});
if(Y.length)return{button:4,thumbnailOverlayButtonViewModels:Y}};
_.H.allowCaptions=function(){var Y;return!((Y=this.opts)==null?0:Y.forceCaptionsOff)};
_.H.allowUnmuting=function(){var Y;return this.enableAudioControls&&!((Y=this.opts)==null?0:Y.forceMutedVolume)};
_.H.beginStartTimeUpdater=function(){var Y=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.HK(function(){Y.updateWatchEndpointStartTime()},1E3)};
_.H.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.H.resetPreventProgressSaveTimer=function(){this.JSC$21090_preventProgressSaveTimer!==null&&(_.AN.cancelJob(this.JSC$21090_preventProgressSaveTimer),this.JSC$21090_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.H.updateWatchEndpointStartTime=function(Y){var G=this.videoPreviewData;if(this.player&&G!=null&&G.inlinePlaybackEndpoint&&!this.JSC$21090_preventProgressSaveTimer){Y=Y?0:Math.floor(this.player.getCurrentTime());var u=_.z(G.navigationEndpoint,_.ic);u&&(u.startTimeSeconds=Y);if(G=_.z(G.inlinePlaybackEndpoint,_.ic))G.startTimeSeconds=Y}};
_.H.isShortcutClick=function(Y){return!!Y&&(Y.ctrlKey||Y.shiftKey||Y.metaKey)};
_.H.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.H.openInMiniplayer=function(){var Y=this,G,u;return _.a(function(O){if(O.nextAddress==1){u=(G=Y.videoPreviewData)==null?void 0:G.navigationEndpoint;if(!u)return O.return();_.Qq().lockupActivation=!0;return O.yield(_.S8M(_.sH().resolve(_.yo),u),2)}_.Qq().userActivation=!0;_.Sd(O)})};
_.H.navigateToWatch=function(Y){var G,u=(G=this.videoPreviewData)==null?void 0:G.navigationEndpoint;if(u){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(u,Y,!0);else{var O;_.F("web_thumbnail_to_watch_transition")&&((O=this.opts)==null?0:O.thumbnail)&&_.hu4(_.sH().resolve(_.T7),this.opts.thumbnail);_.$s(this.hostElement,"yt-navigate",{endpoint:u})}this.deactivate()}};
_.H.getInlinePlaybackVideoId=function(){var Y,G;return(G=_.z((Y=this.videoPreviewData)==null?void 0:Y.inlinePlaybackEndpoint,_.ic))==null?void 0:G.videoId};
_.H.getInlinePlaybackTrackingParams=function(){var Y,G;return(Y=this.videoPreviewData)==null?void 0:(G=Y.inlinePlaybackEndpoint)==null?void 0:G.clickTrackingParams};
_.H.hasMultipleVideoPreviews=function(){var Y;return!!(((Y=this.opts)==null?0:Y.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.H.startPlaybackForNextVideo=function(){var Y;(Y=this.opts)!=null&&Y.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())};
_.Uk.Object.defineProperties(Ct.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.opts)==null?0:Y.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.opts)==null||!Y.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 Y;if(Array.isArray((Y=this.opts)==null?void 0:Y.videoPreviewData)){var G;return(G=this.opts)==null?void 0:G.videoPreviewData[this.videoPreviewDataIndex]}var u;return(u=this.opts)==null?void 0:u.videoPreviewData}}});
Ct.prototype.onIsAdsVideoChange=Ct.prototype.onIsAdsVideoChange;Ct.prototype.onInlinePreviewIsEnabledChange=Ct.prototype.onInlinePreviewIsEnabledChange;Ct.prototype.optsChanged=Ct.prototype.optsChanged;Ct.prototype.onMouseLeave=Ct.prototype.onMouseLeave;Ct.prototype.onPersistentPanelVisibleChange=Ct.prototype.onPersistentPanelVisibleChange;Ct.JSC$21089_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
Ct.JSC$21089_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"}];_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Ct.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ct.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",_.wW)],Ct.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Ct.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Ct.prototype,"componentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ct.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.me),_.V("design:type",Object)],Ct.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.Ne.YtSparklesClickLocationBehavior),_.V("design:type",Object)],Ct.prototype,"ytSparklesClickLocationBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ct.prototype,"opts",void 0);_.S([_.R(),_.V("design:type",Object)],Ct.prototype,"playerControlsData",void 0);_.S([_.R(),_.V("design:type",Object)],Ct.prototype,"playerControlsAppApi",void 0);
_.S([_.R(),_.V("design:type",Object)],Ct.prototype,"playerControlsOptions",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ct.prototype,"noAnimation",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ct.prototype,"hidden",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ct.prototype,"active",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ct.prototype,"playing",void 0);
_.S([_.R({selector:_.i8T}),_.V("design:type",Boolean)],Ct.prototype,"inlinePreviewIsEnabled",void 0);_.S([_.R(),_.V("design:type",String)],Ct.prototype,"pagePath",void 0);_.S([_.R({selector:_.e6j}),_.V("design:type",Boolean)],Ct.prototype,"isWatchPage",void 0);_.S([_.R({selector:_.A$.persistentPanelVisibleSelector}),_.V("design:type",Object)],Ct.prototype,"persistentPanelVisible",void 0);
_.S([_.f("videoPreviewData"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ct.prototype,"thumbnailData",null);_.S([_.f("opts","active"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ct.prototype,"hidePlayerControls",null);_.S([_.f("opts"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ct.prototype,"isAdsVideo",null);
_.S([_.f("opts"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ct.prototype,"roundedCornersSmall",null);_.S([_.f("opts"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ct.prototype,"roundedCornersMedium",null);_.S([_.f("opts"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ct.prototype,"roundedCornersLarge",null);
_.S([_.f("opts"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ct.prototype,"unroundCornersForPlayback",null);_.S([_.f("opts","videoPreviewDataIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ct.prototype,"videoPreviewData",null);_.S([_.R(),_.V("design:type",Object)],Ct.prototype,"videoPreviewDataIndex",void 0);_.S([_.Ox("#inline-player"),_.V("design:type",Object)],Ct.prototype,"inlinePlayer",void 0);
_.S([_.GO("persistentPanelVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ct.prototype,"onPersistentPanelVisibleChange",null);_.S([_.Yo("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[MouseEvent]),_.V("design:returntype")],Ct.prototype,"onMouseLeave",null);_.S([_.Ex("opts"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ct.prototype,"optsChanged",null);
_.S([_.Ex("inlinePreviewIsEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ct.prototype,"onInlinePreviewIsEnabledChange",null);_.S([_.GO("isAdsVideo"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ct.prototype,"onIsAdsVideoChange",null);_.S([_.pD({is:"ytd-video-preview",disableElementRegistration:!0})],Ct);
_.d(Ct,"ytd-video-preview",function(){if(Xro!==void 0)return Xro;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Xro=Y},{mode:2});var N$w;var ym=function(){var Y=_.Z.apply(this,arguments)||this;Y.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};Y.forceDarkTheme=!1;Y.forceLightTheme=!1;Y.dynamicTextHeight=94;Y.hasOverflowButton=!1;Y.isInfeedModernization=!1;return Y};
_.m(ym,_.Z);_.H=ym.prototype;_.H.computeUrlImg=function(Y){if(Y)return _.bq(Y.thumbnails)};
_.H.getLogoHeight=function(Y){return this.logoWithPadding(Y)?"31":"24"};
_.H.getLogoClassName=function(Y){return this.logoWithPadding(Y)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.H.logoWithPadding=function(Y){var G,u;return(Y=(G=Y.thumbnails)==null?void 0:(u=G[0])==null?void 0:u.height)&&Y%31===0?!0:!1};
_.H.sendImpressionEndpoints=function(Y){Y.impressionEndpoints&&_.c$(this.hostElement,Y.impressionEndpoints)};
_.H.observeBasicPalette=function(){var Y,G,u=(Y=this.data)==null?void 0:(G=Y.colorData)==null?void 0:G.basicColorPaletteData;u?_.gE(this.hostElement,u):_.gE(this.hostElement,{})};
_.H.observeDataChanged=function(){var Y;this.dynamicTextHeight=((Y=this.data)==null?0:Y.supplementalText)?74:94;var G;this.hasSupplementalText=!((G=this.data)==null||!G.supplementalText);var u,O,Q,M;Y=(u=this.data)==null?void 0:(O=u.actionButton)==null?void 0:(Q=O.buttonRenderer)==null?void 0:(M=Q.colorData)==null?void 0:M.basicColorPaletteData;var t,K,L;if(!((t=this.data)==null?0:(K=t.actionButton)==null?0:(L=K.buttonRenderer)==null?0:L.style)&&Y){this.computeIsInfeedModernization(this.data)||(Y.borderColor=
Y.foregroundTitleColor);var g,P;this.set("data.actionButton.buttonRenderer",_.gX.unsafeClone((g=this.data)==null?void 0:(P=g.actionButton)==null?void 0:P.buttonRenderer))}};
_.H.observeDataForCounterfactual=function(){if(_.F("kevlar_banner_cf_extra_logging")){var Y;((Y=this.data)==null?0:Y.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.H.computeSupplementalStyle=function(){var Y;if((Y=this.data)!=null&&Y.supplementalText){var G,u,O;if((G=this.data)==null?0:(u=G.colorData)==null?0:(O=u.basicColorPaletteData)==null?0:O.foregroundActivatedColor)return Y=_.k3(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+Y+"; --yt-endpoint-hover-color:"+Y+"; --yt-endpoint-visited-color:"+Y+"; --yt-formatted-string-bold-font-weight:700;"}};
_.H.computeForcedDarkTheme=function(){var Y,G,u,O=(Y=this.data)==null?void 0:(G=Y.actionButton)==null?void 0:(u=G.buttonRenderer)==null?void 0:u.style,Q,M,t;Y=zSV(((Q=this.data)==null?void 0:(M=Q.colorData)==null?void 0:(t=M.basicColorPaletteData)==null?void 0:t.backgroundColor)||0);return O&&Y};
_.H.computeForcedLightTheme=function(){var Y,G,u,O=(Y=this.data)==null?void 0:(G=Y.actionButton)==null?void 0:(u=G.buttonRenderer)==null?void 0:u.style,Q,M,t;Y=!zSV(((Q=this.data)==null?void 0:(M=Q.colorData)==null?void 0:(t=M.basicColorPaletteData)==null?void 0:t.backgroundColor)||0);return O&&Y};
_.H.computeHasOverflowButton=function(Y){return!!Y.overflowButton};
_.H.computeHasTitle=function(Y){return!!Y.title};
_.H.computeTitleMaxFontSize=function(Y){return this.computeHasOverflowButton(Y)?28:64};
_.H.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.H.computeIsInfeedModernization=function(){var Y,G,u,O,Q=(Y=this.data)==null?void 0:(G=Y.actionButton)==null?void 0:(u=G.buttonRenderer)==null?void 0:(O=u.colorData)==null?void 0:O.basicColorPaletteData;return(Q==null?void 0:Q.backgroundColor)===452984831||(Q==null?void 0:Q.backgroundColor)===218103808};
ym.prototype.observeDataForCounterfactual=ym.prototype.observeDataForCounterfactual;ym.prototype.observeDataChanged=ym.prototype.observeDataChanged;ym.prototype.observeBasicPalette=ym.prototype.observeBasicPalette;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],ym.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],ym.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ym.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],ym.prototype,"hasSupplementalText",void 0);_.S([_.R(),_.V("design:type",Object)],ym.prototype,"dismissButtonOverrides",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.V("design:type",Boolean)],ym.prototype,"hasTitle",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.V("design:type",Object)],ym.prototype,"forceDarkTheme",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.V("design:type",Object)],ym.prototype,"forceLightTheme",void 0);_.S([_.R(),_.V("design:type",Object)],ym.prototype,"dynamicTextHeight",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.V("design:type",Object)],ym.prototype,"hasOverflowButton",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.V("design:type",Object)],ym.prototype,"isInfeedModernization",void 0);_.S([_.GO("data.colorData.basicColorPaletteData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ym.prototype,"observeBasicPalette",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ym.prototype,"observeDataChanged",null);_.S([_.GO("data.isVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ym.prototype,"observeDataForCounterfactual",null);_.S([_.pD({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],ym);
_.d(ym,"ytd-banner-promo-renderer",function(){if(N$w!==void 0)return N$w;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return N$w=Y},{mode:1});var B$N=_.D(function(Y){var G=Y.data;var u=Y.hideDivider;var O=Y.isChannelInfoCard;Y={};return _.T("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.T("div",{class:_.s3("yt-profile-identity-info-view-model__frame",(Y["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!G().channelBanner},Y))},_.T(jqb,{profileIdentityInfoData:G}),_.T("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.T("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.T(_.HE,{data:function(){return G().avatar}},{avatarViewModel:_.z$})),_.T(V39,{profileIdentityInfoData:G})),_.T(_.X,{cond:function(){return G().channelDescription},
then:function(Q){var M={};return _.T("div",{class:_.s3((M["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(O==null||!O())},M["yt-profile-identity-info-view-model__channel-description"]=function(){return!(O==null?0:O())},M))},Q)}}),_.T(lib,{profileIdentityInfoData:G}),_.T(_.X,{cond:function(){return!(u==null?0:u())},
then:function(){return _.T("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"Hj");
B$N.idomCompat=!0;var lib=_.D(function(Y){var G=Y.profileIdentityInfoData;return _.T("div",{class:"yt-profile-identity-info-view-model__buttons"},_.T(_.rc,{each:function(){return G().subscribeButton?[G().subscribeButton,G().channelAccess]:[G().channelAccess]}},function(u){return _.T("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.T("div",{class:"yt-profile-identity-info-view-model--button"},_.T(_.HE,{data:function(){return u}},{buttonViewModel:_.$Y,
subscribeButtonViewModel:_.zv})))}))},"Ij"),V39=_.D(function(Y){var G=Y.profileIdentityInfoData;
return _.T("div",{class:"yt-profile-identity-info-view-model__trio"},_.T("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.T($xg,{profileIdentityInfoData:G}),_.T(_.HE,{data:function(){return G().threeDotMenu}},{buttonViewModel:_.$Y})),_.T(qQ9,{profileIdentityInfoData:G}))},"Jj"),$xg=_.D(function(Y){var G=Y.profileIdentityInfoData;
return _.T("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.T("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return G().channelDisplayName}),_.T(_.X,{cond:function(){return G().verifiedOrOacBadge},
then:function(u){return _.T("div",{class:"yt-profile-identity-info-view-model__badge"},_.T(_.RD,{data:function(){return{thumbnails:[{url:u().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Kj"),jqb=_.D(function(Y){var G=Y.profileIdentityInfoData;
return _.T("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.T(_.HE,{data:function(){var u=G().channelBanner;if(u)return{imageBannerViewModel:{image:u.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(u){return _.T("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.T(_.ZT,{data:u.data,
isPositionRelative:!0}))}}))},"Lj"),qQ9=_.D(function(Y){var G=Y.profileIdentityInfoData;
return _.T("div",{class:"yt-profile-identity-info-view-model__metadata"},_.T("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.T("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return G().channelHandle}),_.T(_.X,{cond:function(){return G().channelPronouns&&G().channelHandle},
then:function(){return _.T("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.T("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return G().channelPronouns})),_.T("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.T("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return G().leftOfBulletInfo}),_.T(_.X,{cond:function(){return G().leftOfBulletInfo&&G().rightOfBulletInfo},
then:function(){return _.T("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.T("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return G().rightOfBulletInfo})))},"Mj");_.hR(B$N,"yt-profile-identity-info-view-model",{props:{data:_.AC,hideDivider:_.AC,isChannelInfoCard:_.AC}});_.hR(_.OTx,"yt-page-header-view-model",{props:{data:_.AC,noPadding:_.AC,enableBanner:_.AC,cinematicContainerTopbarOffset:_.AC,allowCinematicContainerOverflow:_.AC,displayAsSidebar:_.AC,displayAsPanel:_.AC,alwaysUseMediumTextDescription:_.AC}});var sqS=_.D(function(){return _.T("div",{class:_.s3("ytdGhostGridViewModelGhostCard")},_.T("div",{class:_.s3("ytdGhostGridViewModelThumbnail","ytdGhostGridViewModelGhostColor")}),_.T("div",{class:_.s3("ytdGhostGridViewModelDetails")},_.T("div",{class:_.s3("ytdGhostGridViewModelChannelAvatar","ytdGhostGridViewModelGhostColor")}),_.T("div",{class:_.s3("ytdGhostGridViewModelDetailsTextShell")},_.T("div",{class:_.s3("ytdGhostGridViewModelVideoTitle","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}),
_.T("div",{class:_.s3("ytdGhostGridViewModelVideoMeta","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}))))},"Oj");_.hR(_.D(function(Y){var G=Y.data;var u=_.Hx(_.nU);return _.T("ytd-ghost-grid-view-model",{class:_.s3("ytdGhostGridViewModelHost")},_.T(_.rc,{each:function(){var O=Array,Q;var M=((Q=G().numRows)!=null?Q:0)*u();return O(M)},
keyBy:"INDEX"},function(){return _.T(sqS,null)}))},"Nj"),"ytd-ghost-grid-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=Y.data;var u=function(){var Q;return(Q=G().numColumns)!=null?Q:2},O=function(){return u()>1?3:2};
Y={};return _.T("ytd-rich-grid-group",{class:_.s3("ytdRichGridGroupHost",(Y.ytdRichGridGroupHostFirstColumn=function(){return G().colIndex===0},Y)),
style:_.Yh({"--ytd-rich-grid-group-num-columns":u,"--ytd-rich-grid-items-per-group":O})},_.T("div",{class:"ytdRichGridGroupContents"},_.T(_.HE,{data:function(){var Q;return(Q=G().contents)==null?void 0:Q.slice(0,O())}},{richItemRenderer:function(Q){return _.T(_.GD2,{data:Q.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Pj"),"ytd-rich-grid-group",{props:{data:_.AC}});var eM=function(){var Y=_.Z.apply(this,arguments)||this;Y.resizeOnObserverInit=!1;Y.isInlinePreviewDisabled=_.F("web_disable_inline_preview");Y.disableStickyFilterBar=!1;Y.transparentBackgroundChipsBar=!1;Y.hideChipsBar=!1;Y.isScrolled=!1;Y.isWatchDefaultLayout=!0;Y.continuationShowButton=!1;Y.rowReducedHorizontalMargin=!1;Y.useCompactList=!1;Y.manualDownloadsPresent=!1;Y.smartDownloadsPresent=!1;Y.isOnline=!1;Y.shouldRenderDownloadsBanner=!1;Y.shouldRenderDownloadsBannerUpsell=!1;Y.hasOptedIntoSmartDownloads=
!1;Y.elementsPerRow=4;Y.typographyBump=!1;Y.slimItemsPerRow=1;Y.pageLoadingFromNavigation=!1;Y.resizeObserver=null;Y.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"};Y.rendererToTagNameMap=new Map(Object.entries(Y.contentMapping()).map(function(G){var u=
_.E(G);G=u.next().value;u=u.next().value;return[G,u.component]}));
Y.insertedContent=new Map;return Y};
_.m(eM,_.Z);_.H=eM.prototype;_.H.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var Y=_.E(_.l0(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),G=Y.next();!G.done;G=Y.next())G.value.useCompactList=this.useCompactList};
_.H.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var Y=_.E(_.l0(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),G=Y.next();!G.done;G=Y.next())G=G.value,G.sizing=this.sizing,G.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:{linearLayoutViewModel:"yt-linear-layout-view-model",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},loadingContentRenderer:{id:"reload-content",mapping:{ghostGridViewModel:{component:"ytd-ghost-grid-view-model"}}}}};
_.H.attached=function(){document.addEventListener("yt-page-type-changed",_.Jh(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.Jh(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$21119_throttledOnResize=new _.JR(this.resizeObserved,_.Jy("rich_grid_resize_delay_ms",50),this);this.showChipsOnScroll&&window.addEventListener("scroll",_.Jh(this,this.onScroll))};
_.H.detached=function(){var Y;(Y=this.resizeObserver)==null||Y.disconnect();document.removeEventListener("yt-page-type-changed",_.Jh(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.Jh(this,this.onFeedCustomizationScrollUp));this.showChipsOnScroll&&window.removeEventListener("scroll",_.Jh(this,this.onScroll))};
_.H.insertRichSection=function(Y){var G=Y.richItemTargetId;Y=Y.richSectionRendererToInsert;G&&Y&&(this.insertedContent.set(G,{content:Y,timestamp:Date.now()}),this.reflowContent())};
_.H.computeIsInlinePreviewEnabled=function(Y,G,u){return _.F("web_disable_inline_preview")?!1:!u&&P$o({miniplayerIsActive:Y,miniplayerPlaybackState:G})};
_.H.computeSizing=function(){var Y=_.QQY(this.data);if(Y||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return Y?this.useCompactList?"COMPACT":Y:this.miniMode?"COMPACT":"STANDARD"};
_.H.updateItemMinAndMaxWidth=function(){var Y=_.Jy("rich_grid_max_item_width",500);Y>0&&_.cm(this.hostElement,{"--ytd-rich-grid-item-max-width":Y+"px"});var G;Y=this.getRichItemMinWidth((G=this.hostElement)==null?void 0:G.clientWidth);Y>0&&_.cm(this.hostElement,{"--ytd-rich-grid-item-min-width":Y+"px"})};
_.H.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.H.resizeObserved=function(){_.sK(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.H.onPageChange=function(){var Y=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.sK(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.AN.addJob(function(){Y.pageLoadingFromNavigation=!1;Y.setMasthead();Y.maybeSetBigYoodle();Y.forceRefreshAndLog();Y.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.H.dataChanged=function(){var Y=this;_.sK(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.sk(this,function(){Y.updateRichItemGridPositions();Y.contentsElement&&_.cm(Y.hostElement,{"--ytd-rich-grid-content-offset-top":Y.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.H.initResizeObserver=function(){var Y=this;if(window.ResizeObserver){var G;(G=this.resizeObserver)==null||G.disconnect();var u=!1;this.resizeObserver=new ResizeObserver(function(){if(u){var O;(O=Y.resizeObserver)==null||O.disconnect();var Q;(Q=Y.JSC$21119_throttledOnResize)==null||Q.fire();requestAnimationFrame(function(){var t;(t=Y.JSC$21119_throttledOnResize)==null||t.fire();Y.initResizeObserver()})}else if(u=!0,Y.resizeOnObserverInit){var M;
(M=Y.JSC$21119_throttledOnResize)==null||M.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.H.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.sK(this.hostElement,"ytd-rich-item-index-update-action")};
_.H.updateElementsPerRow=function(){_.sK(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.V6({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.V6({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.H.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.H.onRichShelfRendererCollapse=function(Y){if(this.shownItems){var G=Y.detail;Y=this.shownItems.findIndex(function(O){var Q,M;return((M=_.z(O==null?void 0:(Q=O.richSectionRenderer)==null?void 0:Q.content,_.tt4))==null?void 0:M.trackingParams)===G});
var u=Y+1;Y<0||u>=this.contentsElement.children.length||!this.shownItems[u].richItemRenderer||this.contentsElement.children[u].scrollIntoView({behavior:"smooth",block:"start"})}};
_.H.onSoftReloadPage=function(){this.scrollUpToTop()};
_.H.handleRerenderDownloadsData=function(){_.F("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.H.handlePlaylistRemoveVideosAction=function(Y){var G;if(((G=_.z(Y,_.rgR))==null?0:G.setVideoIds)&&this.data&&this.data.contents){Y=_.z(Y,_.rgR).setVideoIds;for(G=this.data.contents.length-1;G>=0;){var u=_.z(this.data.contents[G],_.a_);(u=u&&_.z(u.content,_.WJ))&&u.setVideoId&&Y.includes(u.setVideoId)&&this.splice("data.contents",G,1);G--}this.updateIndices()}};
_.H.updateIndices=function(){if(this.data&&this.data.contents)for(var Y=0;Y<this.data.contents.length;Y++)this.set("data.contents."+Y+".richItemRenderer.index",_.i8(String(Y+1)))};
_.H.hasTopRowInlinePlayableVideoWithEndorsement=function(Y){var G;return!((G=Y.slice(0,this.getItemsPerRow()))==null||!G.some(function(u){var O;u=_.z(u==null?void 0:(O=u.richItemRenderer)==null?void 0:O.content,_.QVe);var Q;return(u==null?void 0:u.inlinePlaybackEndpoint)&&(u==null?void 0:(Q=u.thumbnailOverlays)==null?void 0:Q.some(function(M){return M.thumbnailOverlayEndorsementRenderer}))}))};
_.H.refreshGridLayoutNew=function(Y,G,u,O){var Q=O.postsPerRow;var M=O.slimItemsPerRow;var t=O.gameCardsPerRow;O=O.miniGameCardsPerRow;var K;if((K=this.data)==null||!K.contents||!this.containerWidth)return!1;var L;if((L=this.data.responsiveContainerConfiguration)==null?0:L.responsiveSize){var g=_.ZYU(this.data.responsiveContainerConfiguration,this.containerWidth,2),P;K=_.CK(Object.assign({},g,{standardUnitMinWidth:(P=this.data)==null?void 0:P.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&g.isCompactList)}else K=_.CK({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(g=this.data)==null?void 0:g.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=K.typographyBump;P=!1;if(Y||this.elementsPerRow!==K.numItems||this.postsPerRow!==Q||this.slimItemsPerRow!==M||this.gameCardsPerRow!==
t||this.miniGameCardsPerRow!==O||this.gutter!==K.gutter)P=this.elementsPerRow!==K.numItems,this.elementsPerRow=K.numItems,this.postsPerRow=Q,this.slimItemsPerRow=M,this.gameCardsPerRow=t,this.miniGameCardsPerRow=O,this.gutter=K.gutter,this.itemWidth=K.itemWidth,this.reflowContent(G),_.cm(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":K.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(u);this.ytdReduxBehavior.dispatch(_.V6({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:K.maxContainerWidth}));return P};
_.H.refreshGridLayout=function(Y,G){var u,O=(u=this.hostElement)==null?void 0:u.clientWidth;this.containerWidth=this.adjustRichGridWidth(O,!0);var Q;if((Q=this.data)==null||!Q.contents||!this.containerWidth)return Y&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(Y=!0,this.pendingForceReflow=!1);u=this.getRichItemMinWidth(O);var M=this.isShortsPanel?146:194,t=this.getMiniGameCardMinWidth(),K=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.Jy("rich_grid_default_max_items_per_row",
6);O=u=this.calcElementsPerRow(u,K);(Q=u<=3&&this.miniModeAllowed())&&(u=this.calcElementsPerRow(240,4));var L=this.calcMaxSlimElementsPerRow(u,K,this.isDefaultGrid);K=this.calcElementsPerRow(M,L);var g=this.calcElementsPerRow(this.isCompactGrid?M:154,L);M=this.calcElementsPerRow(this.isCompactGrid?M:t,L);t=!1;if(this.sizing)return this.refreshGridLayoutNew(Y,G,Q,{postsPerRow:O,slimItemsPerRow:K,gameCardsPerRow:g,miniGameCardsPerRow:M});if(Y||this.elementsPerRow!==u||this.postsPerRow!==O||this.slimItemsPerRow!==
K||this.gameCardsPerRow!==g||this.miniGameCardsPerRow!==M)t=this.elementsPerRow!==u,this.elementsPerRow=u,this.postsPerRow=O,this.slimItemsPerRow=K,this.gameCardsPerRow=g,this.miniGameCardsPerRow=M,this.reflowContent(G),this.updateElementsPerRow(),_.cm(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)&&_.cm(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(Q);_.sK(this.hostElement,"yt-rich-grid-layout-refreshed");return t};
_.H.getRichItemMinWidth=function(Y){var G=_.Jy("rich_grid_min_item_width",310),u,O;G=(O=(u=this.data)==null?void 0:u.minItemWidth)!=null?O:G;return G+_.vFA(Y)};
_.H.calcMaxSlimElementsPerRow=function(Y,G,u){return(u===void 0?0:u)?Y===1?2:Y%2===0?Y/2*3:Y+2:G*2};
_.H.adjustRichGridWidth=function(Y,G){var u=_.F("disable_rich_grid_guide_compensation");if(!this.isWatch&&!u&&this.hostElement.offsetWidth===document.body.clientWidth&&(u=_.sH().resolve(_.q3(_.C8)))&&!u.getData())if(u.canFitPersistentGuide(Y)&&u.getGuideExpandsAutomatically()){var O,Q,M=Number((O=window.getComputedStyle(this.hostElement))==null?void 0:(Q=O.getPropertyValue("--app-drawer-width"))==null?void 0:Q.replace("px",""));Y-=M||0}else if(u.canFitMiniGuide(Y)){var t;O=Number((M=window.getComputedStyle(this.hostElement))==
null?void 0:(t=M.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:t.replace("px",""));Y-=O||0}Y>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(Y-=G?32:48));return Y};
_.H.calcElementsPerRow=function(Y,G){var u=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),O=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((u+O)/(Y+O))||1,G)};
_.H.reflowContent=function(Y){var G=this;if(!this.isReflowing){this.isReflowing=!0;var u,O,Q=!!((u=this.data)==null?0:(O=u.contents)==null?0:O.some(function(K){return _.z(K,_.l6)}));
u=this.getItemsPerRow();var M;O=(M=this.data)==null?void 0:M.reflowOptions;Y&&(_.pQ("rgr_s"),_.sk(this,function(){_.pQ("rgr_nrf")}));
Y={};(M=_.l0(this.hostElement).querySelector("#contents"))&&(Y={contentElement:M,rendererToTagNameMap:this.rendererToTagNameMap});M=(M=this.data.contents)?M.slice():[];Q=RUB(M,u,Q,O,this.getRichGridStyle(),Y,this.insertedContent);var t=Q.orderedContent;if(Q=Q.pinnedContentNotShownTargetIds)for(Q=_.E(Q),u=Q.next();!u.done;u=Q.next())this.insertedContent.delete(u.value);Q=function(){G.shownItems=t;G.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(t),_.sk(this,Q)):Q()}};
_.H.getFirstRowItems=function(Y){for(var G=[],u=0;u<Y.length;u++){var O=void 0,Q=void 0,M=void 0,t=void 0,K=void 0,L=void 0;if(((O=Y[u])==null?void 0:(Q=O.richItemRenderer)==null?void 0:Q.rowIndex)===0||((M=Y[u])==null?void 0:(t=M.richGroupRenderer)==null?void 0:t.rowIndex)===0||((K=Y[u])==null?void 0:(L=K.richSectionRenderer)==null?void 0:L.rowIndex)===0)G.push(Y[u]);else break}return G};
_.H.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.H.resetInsertedContentIfNeeded=function(){(_.F("web_explore_hub_on_hover")||_.F("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.H.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.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]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.H.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.H.terminateVideoPreview=function(){_.sK(this.hostElement,"yt-terminate-video-preview-action")};
_.H.updateRichItemGridPositions=function(){var Y={gridData:{gridColumnCount:this.elementsPerRow}},G;((G=this.data)==null?0:G.trackingParams)&&(G=_.FA())&&_.Zy(G,_.Kd(this.data.trackingParams),Y);_.sK(this.hostElement,"ytd-rich-item-index-update-action")};
_.H.miniModeAllowed=function(){return this.isChannelPage};
_.H.getMiniGameCardMinWidth=function(){return 154};
_.H.updateMiniMode=function(Y){this.miniMode=this.miniModeAllowed()&&Y;this.ytdReduxBehavior.dispatch(_.V6({type:"SET_RICH_GRID_MINI_MODE",payload:Y}))};
_.H.isCurrentPage=function(){return location.pathname===this.pagePath};
_.H.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var Y=_.sH().resolve(_.bv).getCurrentPage();Y&&Y.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 Y,G=(Y=this.data)==null?void 0:Y.bigYoodle;this.bigYoodleData!==G&&(this.bigYoodleData=G)};
_.H.setMasthead=function(){var Y;((Y=this.data)==null?0:Y.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.H.getRichGridStyle=function(){var Y,G;return(G=(Y=this.data)==null?void 0:Y.style)!=null?G:"RICH_GRID_STYLE_UNKNOWN"};
_.H.onIsShortsGridChange=function(){var Y=this.ytdReduxBehavior,G=Y.dispatch,u=this.getRichGridStyle();G.call(Y,_.V6({type:"SET_RICH_GRID_STYLE",payload:u}))};
_.H.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.H.onScroll=function(){this.isScrolled=window.scrollY>0};
_.Uk.Object.defineProperties(eM.prototype,{showChipsOnScroll:{configurable:!0,enumerable:!0,get:function(){return _.F("kevlar_show_chips_on_scroll")&&this.isHomePage&&!this.isChannelPage&&!this.isFilteredFeed}},
loadingContentRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.ytContinuationHandlerBehavior)==null?void 0:Y.reloadUiContent}},
hasLoadingContent:{configurable:!0,enumerable:!0,get:function(){return!!this.loadingContentRenderer}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var Y=_.sH().resolve(_.bv).getCurrentPage(),G,u,O;return(((G=this.data)==null?void 0:G.targetId)==="browse-feedFEsfv_audio_pivot"||_.F("web_enable_channel_pivot_panel")&&((u=this.data)==null?void 0:u.targetId)==="browse-feedFEsfv_channel_pivot"||_.F("web_enable_effect_pivot_panel")&&((O=this.data)==null?void 0:O.targetId)==="browse-feedFEsfv_effect_pivot")&&(Y==null?void 0:Y.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.F("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 Y;return!((Y=this.data)==null?0:Y.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=_.sH().resolve(_.bv).getCurrentPage())==null?void 0:Y.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=_.sH().resolve(_.bv).getCurrentPage())==null?void 0:Y.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return((Y=this.data)==null?0:Y.enableContentSpecificAspectRatio)||((G=this.data)==null?0:(u=G.responsiveContainerConfiguration)==null?0:u.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Jy("web_continuation_handler_margin",0):0}}});
eM.prototype.onIsShortsGridChange=eM.prototype.onIsShortsGridChange;eM.prototype.onReloadContinuationFinish=eM.prototype.onReloadContinuationFinish;eM.prototype.reflowContent=eM.prototype.reflowContent;eM.prototype.handleRerenderDownloadsData=eM.prototype.handleRerenderDownloadsData;eM.prototype.onRichShelfRendererCollapse=eM.prototype.onRichShelfRendererCollapse;eM.prototype.onRequestElementsPerRow=eM.prototype.onRequestElementsPerRow;eM.prototype.contentLengthChanged=eM.prototype.contentLengthChanged;
eM.prototype.dataChanged=eM.prototype.dataChanged;eM.prototype.onSizingChange=eM.prototype.onSizingChange;eM.prototype.onUseCompactListChange=eM.prototype.onUseCompactListChange;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.aZ),_.V("design:type",Object)],eM.prototype,"ironResizableBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],eM.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.DD),_.V("design:type",Object)],eM.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],eM.prototype,"componentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],eM.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],eM.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0,selector:_.kG}),_.V("design:type",Boolean)],eM.prototype,"miniMode",void 0);_.S([_.R({value:[]}),_.V("design:type",Array)],eM.prototype,"shownItems",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],eM.prototype,"isReflowing",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],eM.prototype,"isFilteredFeed",void 0);_.S([_.R({selector:_.CAg}),_.V("design:type",Boolean)],eM.prototype,"guideIsExpanded",void 0);
_.S([_.R({selectorArgs:["entitySelectorType"],selector:function(Y,G){if(_.F("kevlar_modern_downloads_page")&&G&&G!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(G){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":G=Y.entities;var u=_.XX(G),O=_.PC(G),Q=_.BWj(Y),M=_.lmT(Y),t=_.$eT(Y),K=_.key(G),L=_.tH(u),g=_.Ii(G);return _.eDg(u,O,K,_.z6I(G),Q,M,L,g,t,_.sVu(Y),_.zL(Y));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return Y=_.XX(Y.entities),_.orA(Y);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return Y=
_.Xf4(Y.entities),_.iYu(Y);default:_.R0(new _.I2("Error: entitySelectorType defined but not matched in selector.",Y,G))}}}),
_.V("design:type",Object)],eM.prototype,"entityDrivenRichGridData",void 0);_.S([_.R(),_.V("design:type",Object)],eM.prototype,"resizeOnObserverInit",void 0);_.S([_.R(),_.V("design:type",Object)],eM.prototype,"bigYoodleData",void 0);_.S([_.R(),_.V("design:type",Object)],eM.prototype,"mastheadData",void 0);_.S([_.R(),_.V("design:type",Boolean)],eM.prototype,"isInlinePreviewDisabled",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eM.prototype,"disableStickyFilterBar",void 0);
_.S([_.R(),_.V("design:type",Object)],eM.prototype,"transparentBackgroundChipsBar",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eM.prototype,"hideChipsBar",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("isHomePage","isFilteredFeed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"showChipsOnScroll",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eM.prototype,"isScrolled",void 0);
_.S([_.R(),_.V("design:type",Object)],eM.prototype,"isWatchDefaultLayout",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eM.prototype,"continuationShowButton",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eM.prototype,"rowReducedHorizontalMargin",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eM.prototype,"useCompactList",void 0);_.S([_.R({selector:function(Y){return _.PC(Y.entities).length>0}}),
_.V("design:type",Object)],eM.prototype,"manualDownloadsPresent",void 0);_.S([_.R({selector:function(Y){return _.XX(Y.entities).length>0}}),
_.V("design:type",Object)],eM.prototype,"smartDownloadsPresent",void 0);_.S([_.R({selector:_.zL}),_.V("design:type",Object)],eM.prototype,"isOnline",void 0);_.S([_.R({selector:_.lmT}),_.V("design:type",Object)],eM.prototype,"shouldRenderDownloadsBanner",void 0);_.S([_.R({selector:_.sVu}),_.V("design:type",Object)],eM.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.S([_.R({selector:_.BWj}),_.V("design:type",Object)],eM.prototype,"hasOptedIntoSmartDownloads",void 0);
_.S([_.GO("useCompactList"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eM.prototype,"onUseCompactListChange",null);_.S([_.GO("sizing","typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eM.prototype,"onSizingChange",null);_.S([_.R({selector:_.R6y}),_.V("design:type",Number)],eM.prototype,"miniplayerPlaybackState",void 0);_.S([_.R({selector:_.FX}),_.V("design:type",Boolean)],eM.prototype,"miniplayerIsActive",void 0);
_.S([_.R({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.V("design:type",Boolean)],eM.prototype,"isInlinePreviewEnabled",void 0);_.S([_.R({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.V("design:type",String)],eM.prototype,"sizing",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eM.prototype,"elementsPerRow",void 0);
_.S([_.R(),_.V("design:type",Object)],eM.prototype,"typographyBump",void 0);_.S([_.R(),_.V("design:type",Number)],eM.prototype,"itemWidth",void 0);_.S([_.Ox("#header"),_.V("design:type",HTMLElement)],eM.prototype,"headerElement",void 0);_.S([_.Ox("#contents"),_.V("design:type",HTMLElement)],eM.prototype,"contentsElement",void 0);_.S([_.f("reloadUiContent"),_.V("design:type",Object),_.V("design:paramtypes",[])],eM.prototype,"loadingContentRenderer",null);
_.S([_.f("reloadUiContent"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"hasLoadingContent",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eM.prototype,"dataChanged",null);_.S([_.Ex("data.contents.length"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eM.prototype,"contentLengthChanged",null);
_.S([_.Yo("yt-request-elements-per-row"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eM.prototype,"onRequestElementsPerRow",null);_.S([_.Yo("yt-rich-shelf-renderer-collapse"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],eM.prototype,"onRichShelfRendererCollapse",null);
_.S([_.Ex("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eM.prototype,"handleRerenderDownloadsData",null);_.S([_.f("data"),_.V("design:type",String),_.V("design:paramtypes",[])],eM.prototype,"entitySelectorType",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data.targetId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"isSub",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.targetId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"isWatch",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.targetId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"isShortsPanel",null);
_.S([_.R({reflectToAttribute:!0}),_.f("isWatch"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"reducedTopMargin",null);_.S([_.R({reflectToAttribute:!0}),_.f("data","isWatch","isWatchDefaultLayout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"noTopMargin",null);_.S([_.R({reflectToAttribute:!0}),_.f("isInlinePreviewEnabled","shownItems"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"topRowEndorsement",null);
_.S([_.f("data.header"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"hideHeader",null);_.S([_.Yo("yt-rich-grid-reflow"),_.V("design:type",Function),_.V("design:paramtypes",[Boolean]),_.V("design:returntype")],eM.prototype,"reflowContent",null);_.S([_.Yo("yt-reload-continuation-finish"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eM.prototype,"onReloadContinuationFinish",null);
_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"isSlimGrid",null);_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"isShortsGrid",null);_.S([_.f("data","isSlimGrid","isShortsGrid"),_.R(),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"noRichItemGutterMargins",null);
_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"isShortsGridSlim",null);_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"isCompactGrid",null);_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"isDefaultGrid",null);
_.S([_.f("data.targetId"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"hideChipsBarOnWatch",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eM.prototype,"onIsShortsGridChange",null);_.S([_.f("data.enableContentSpecificAspectRatio"),_.R(),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eM.prototype,"force16By9ThumbnailAspectRatio",null);
_.S([_.f("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],eM.prototype,"continuationTriggerOffset",null);_.S([_.pD({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],eM);
_.d(eM,"ytd-rich-grid-renderer",function(){if(cFb!==void 0)return cFb;var Y=document.createElement("template");_.r(Y,'\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="contents" hidden="[[hasLoadingContent]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="reload-content" class="style-scope ytd-rich-grid-renderer"></div>\n');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return cFb=Y},{mode:2});var cnV;var Aa=function(){return _.Z.apply(this,arguments)||this};
_.m(Aa,_.Z);_.H=Aa.prototype;
_.H.onKeyDown=function(Y){if(this.snippetElements.length!==0&&(Y=Y.keyCode,Y===38||Y===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);Y===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.yW(this.highlightedIndex,-1,this.snippetElements.length);Y=this.snippetElements.length;var G=this.highlightedIndex%Y;this.highlightedIndex=G*Y<0?G+Y:G;Y=this.snippetElements[this.highlightedIndex];this.highlightSnippet(Y);this.ensureVisible(Y)}};
_.H.onKeyUp=function(Y){var G=this;Sqj(Y)&&(Y.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.AN.cancelJob(this.inputTimerId),this.inputTimerId=_.AN.addLowPriorityJob(function(){G.typedValue&&(G.fetchSnippets(G.typedValue),G.logInputGesture(G.data))},1E3))};
_.H.onClick=function(Y){(Y=_.kmI(Y.target,null,"snippet-item"))&&this.selectSnippet(Y)};
_.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 Y=this;this.inputElement.addEventListener("focus",function(){Y.snippetsWrapper.style.removeProperty("display")})};
_.H.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.H.getSourceTimelines=function(){if(!this.data)return[];var Y=[];if(this.data.searchInVideoSources)for(var G=_.E(this.data.searchInVideoSources),u=G.next();!u.done;u=G.next())u=u.value,u==="SEARCH_IN_VIDEO_SOURCE_ASR"?Y.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):u==="SEARCH_IN_VIDEO_SOURCE_OCR"&&Y.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return Y};
_.H.fetchSnippets=function(Y){var G=_.qZ(this.hostElement,"yt-get-current-video-id-action")[0],u=this.getSourceTimelines();Y={getSearchInVideoCommand:{externalVideoId:G,query:Y!=null?Y:"",sourceTimelines:u},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.sH().resolve(_.rH).resolveCommand(Y,{form:{element:this.hostElement}})};
_.H.filterSnippets=function(Y,G){var u=this;if(G){this.filteredSnippets=(0,_.gX.unsafeClone)(Y);var O=RegExp(_.ygI(G),"i");this.filteredSnippets=this.filteredSnippets.filter(function(t){return O.test(u.ytRendererBehavior.getSimpleString(t.snippet))});
Y=_.E(this.filteredSnippets);for(var Q=Y.next();!Q.done;Q=Y.next()){Q=Q.value;var M=this.ytRendererBehavior.getSimpleString(Q.snippet);Q.snippet={runs:[{text:M.substring(0,M.toLowerCase().indexOf(G))},{text:M.substring(M.toLowerCase().indexOf(G),M.toLowerCase().indexOf(G)+G.length),bold:!0},{text:M.substring(M.toLowerCase().indexOf(G)+G.length,M.length)}]}}}else this.filteredSnippets=Y};
_.H.onUpdateSearchInVideoResults=function(Y){if(!(this.snippets.length>0)){var G,u,O;if((O=(G=_.z(Y,yqN))==null?void 0:(u=G.results)==null?void 0:u.length)!=null&&O){var Q;this.filteredSnippets=this.snippets=((Q=_.z(Y,yqN))==null?void 0:Q.results).map(function(M){var t,K,L;return{startMs:M==null?void 0:(t=M.searchInVideoResultRenderer)==null?void 0:t.startMs,startTimeText:M==null?void 0:(K=M.searchInVideoResultRenderer)==null?void 0:K.startTimeText,snippet:M==null?void 0:(L=M.searchInVideoResultRenderer)==
null?void 0:L.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(Y){Y.classList.add("highlighted")};
_.H.removeSnippetHighlight=function(Y){Y.classList.remove("highlighted")};
_.H.selectSnippet=function(Y){this.typedValue=String(Y.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(Y);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.H.ensureVisible=function(Y){var G=this.snippetsWrapper.scrollTop,u=G+this.snippetsWrapper.clientHeight,O=Y.offsetTop-this.snippetsWrapper.offsetTop;Y=O+Y.clientHeight;O<G?this.snippetsWrapper.scrollTop-=G-O:Y>u&&(this.snippetsWrapper.scrollTop+=Y-u)};
_.H.seekPlayer=function(Y){var G,u;return _.a(function(O){if(O.nextAddress==1){if(!Y)return O.jumpTo(0);G=Number(Y.dataset.startOffset);return O.yield(_.jr().getPlayerPromise(),3)}u=O.yieldResult;u.seekTo(G/1E3,!0);u.wakeUpControls();_.Sd(O)})};
_.H.logInputGesture=function(Y){var G=_.FA();G&&(Y==null?0:Y.trackingParams)&&_.wS(G,_.Kd(Y.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.H.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("typed-value-changed",this.typedValue))};
_.H.updateTypedValueFromBinding=function(Y){this.typedValue=Y.currentTarget.value};
Aa.prototype.typedValueChangedForBinding=Aa.prototype.typedValueChangedForBinding;Aa.prototype.dataChanged=Aa.prototype.dataChanged;Aa.prototype.panelContentVisibleChanged=Aa.prototype.panelContentVisibleChanged;Aa.prototype.onClick=Aa.prototype.onClick;Aa.prototype.onKeyUp=Aa.prototype.onKeyUp;Aa.prototype.onKeyDown=Aa.prototype.onKeyDown;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Aa.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Aa.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Aa.prototype,"data",void 0);_.S([_.R({value:[]}),_.V("design:type",Array)],Aa.prototype,"snippets",void 0);_.S([_.R({value:[]}),_.V("design:type",Array)],Aa.prototype,"filteredSnippets",void 0);_.S([_.R({value:[]}),_.V("design:type",Array)],Aa.prototype,"snippetElements",void 0);
_.S([_.Ox("#siv-input"),_.V("design:type",HTMLElement)],Aa.prototype,"inputElement",void 0);_.S([_.Ox("#siv-snippets-wrapper"),_.V("design:type",HTMLElement)],Aa.prototype,"snippetsWrapper",void 0);_.S([_.R(),_.V("design:type",String)],Aa.prototype,"typedValue",void 0);_.S([_.R({value:-1}),_.V("design:type",Number)],Aa.prototype,"highlightedIndex",void 0);_.S([_.Yo("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[_.IO]),_.V("design:returntype")],Aa.prototype,"onKeyDown",null);
_.S([_.Yo("keyup"),_.V("design:type",Function),_.V("design:paramtypes",[_.IO]),_.V("design:returntype")],Aa.prototype,"onKeyUp",null);_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Aa.prototype,"onClick",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Aa.prototype,"panelContentVisible",void 0);
_.S([_.GO("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Aa.prototype,"panelContentVisibleChanged",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Aa.prototype,"dataChanged",null);_.S([_.GO("typedValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Aa.prototype,"typedValueChangedForBinding",null);
_.S([_.pD({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Aa);
_.d(Aa,"ytd-search-in-video-renderer",function(){if(cnV!==void 0)return cnV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return cnV=Y},{mode:1});var Ux9;var oQ=function(){return _.Z.apply(this,arguments)||this};
_.m(oQ,_.Z);oQ.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
oQ.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]]"}}}}}};
oQ.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var Y,G,u,O,Q=(G=_.z((Y=this.data)==null?void 0:Y.onClickCommand,_.tml))==null?void 0:(u=G.item)==null?void 0:(O=u.notificationTextRenderer)==null?void 0:O.successResponseText;Q&&_.w61(this.hostElement,Q)}};
_.Uk.Object.defineProperties(oQ.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O;return this.isProductPlaceholder&&((Y=this.data)==null?void 0:(G=Y.hiddenProductOptions)==null?void 0:G.showDropCountdown)&&!!((u=this.data)==null?0:(O=u.hiddenProductOptions)==null?0:O.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var Y;return!this.isProductPlaceholder&&!((Y=this.data)==null?0:Y.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!((Y=this.data)==null?0:Y.priceReplacementText)&&!((G=this.data)==null||!G.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],oQ.prototype,"componentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],oQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],oQ.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.f("isProductPlaceholder"),_.V("design:type",Object),_.V("design:paramtypes",[])],oQ.prototype,"useCenterLayoutContainer",null);_.S([_.R({computed:"computeButtonOverride(data)"}),_.V("design:type",Object)],oQ.prototype,"buttonOverride",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],oQ.prototype,"isProductPlaceholder",null);
_.S([_.f("isProductPlaceholder"),_.V("design:type",Object),_.V("design:paramtypes",[])],oQ.prototype,"showDropCountdown",null);_.S([_.f("isProductPlaceholder","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],oQ.prototype,"showBrandName",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],oQ.prototype,"showPriceReplacementText",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],oQ.prototype,"showPrice",null);
_.S([_.f("isProductPlaceholder"),_.V("design:type",Object),_.V("design:paramtypes",[])],oQ.prototype,"showMetadata",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],oQ);
_.d(oQ,"ytd-product-list-item-renderer",function(){if(Ux9!==void 0)return Ux9;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Ux9=Y},{mode:1});var vA9;var RQ=function(){return _.Z.apply(this,arguments)||this};
_.m(RQ,_.Z);RQ.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
RQ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
RQ.prototype.panelContentVisibleChanged=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1)return Y.playerApi?u.jumpTo(2):u.yield(_.jr().getPlayerPromise(),3);u.nextAddress!=2&&(Y.playerApi=u.yieldResult);(G=Y.playerApi)==null||G.productsInVideoVisibilityUpdated(!!Y.panelContentVisible);_.Sd(u)})};
RQ.prototype.panelContentVisibleChanged=RQ.prototype.panelContentVisibleChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],RQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],RQ.prototype,"panelContentVisible",void 0);_.S([_.R(),_.V("design:type",Object)],RQ.prototype,"data",void 0);
_.S([_.GO("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],RQ.prototype,"panelContentVisibleChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],RQ);
_.d(RQ,"ytd-product-list-renderer",function(){if(vA9!==void 0)return vA9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return vA9=Y},{mode:1});var Jny;var wI=function(){var Y=_.Z.apply(this,arguments)||this;Y.isToggleChecked=!1;return Y};
_.m(wI,_.Z);wI.prototype.onDataChanged=function(){var Y;this.isToggleChecked=((Y=this.data)==null?void 0:Y.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
wI.prototype.close=function(){var Y;((Y=this.data)==null?0:Y.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
wI.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var Y,G=_.z((Y=this.data)==null?void 0:Y.switchButton,CkN);G&&(this.isToggleChecked&&G.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(G.switchOnInnertubeCommand),!this.isToggleChecked&&G.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(G.switchOffInnertubeCommand))};
wI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
wI.prototype.onDataChanged=wI.prototype.onDataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],wI.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],wI.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],wI.prototype,"isToggleChecked",void 0);_.S([_.R({value:_.Q6("CLOSE")}),_.V("design:type",String)],wI.prototype,"closeButtonAriaLabel",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wI.prototype,"onDataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],wI);
_.d(wI,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(Jny!==void 0)return Jny;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Jny=Y},{mode:1});var YcN;var Z8=function(){var Y=_.Z.apply(this,arguments)||this;Y.hideTimestamps=!!_.LB("hide-transcript-timestamps");Y.currentCueIndex=-1;Y.flatCues=[];Y.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};Y.TEST_ONLY={getFlatCues:function(){return Y.flatCues}};
return Y};
_.m(Z8,_.Z);_.H=Z8.prototype;_.H.hideTimestampsChanged=function(){_.TA("hide-transcript-timestamps",this.hideTimestamps)};
_.H.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.H.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.H.dataChanged=function(){var Y;if((Y=this.data)!=null&&Y.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;Y=_.E(this.data.cueGroups);for(var G=Y.next();!G.done;G=Y.next()){G=_.E(_.z(G.value,jN9).cues);for(var u=G.next();!u.done;u=G.next())this.flatCues.push(Number(_.z(u.value,VQb).startOffsetMs))}}};
_.H.onYtPlayerTimeChanged=function(Y){if(!(Y<0)){for(var G=this.currentCueIndex,u=G;;){var O=u>=0?this.flatCues[u]/1E3:-1;if(Y+.5<O)--u;else if(O=u+1<this.flatCues.length?this.flatCues[u+1]/1E3:Infinity,Y+.5>O)u+=1;else break}u!==G&&(G>=0&&((Y=this.getCueElement(G))&&Y.classList.remove("active"),(G=this.getCueGroupElement(G))&&G.classList.remove("active")),(G=this.getCueElement(u))&&G.classList.add("active"),(G=this.getCueGroupElement(u))&&G.classList.add("active"),this.currentCueIndex=u,this.isHovered||
this.scrollElementToTop(u))}};
_.H.scrollElementToTop=function(Y){Y=this.getCueElement(Y>=3?Y-3:0);this.hostElement.scrollTop=Math.min(Y.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.H.getCueElement=function(Y){return _.l0(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[Y]+'"]')};
_.H.getCueGroupElement=function(Y){return(Y=this.getCueElement(Y))&&Y.parentElement?Y.parentElement.parentElement:null};
_.H.onTap=function(Y){var G=_.Zb(Y);Y.target.classList.contains("cue")&&this.seekCueElement(G)};
_.H.onKeyPress=function(Y){Y.keyCode==13&&(Y=_.kmI(Y.target,null,"cue"))&&this.seekCueElement(Y)};
_.H.seekCueElement=function(Y){Y=Number(Y.getAttribute("start-offset"));_.qZ(this.hostElement,"yt-transcript-player-seek",[Y/1E3])};
_.H.onMouseEnter=function(){this.isHovered=!0};
_.H.onMouseLeave=function(){this.isHovered=!1};
Z8.prototype.onMouseLeave=Z8.prototype.onMouseLeave;Z8.prototype.onMouseEnter=Z8.prototype.onMouseEnter;Z8.prototype.onKeyPress=Z8.prototype.onKeyPress;Z8.prototype.onTap=Z8.prototype.onTap;Z8.prototype.dataChanged=Z8.prototype.dataChanged;Z8.prototype.hideTimestampsChanged=Z8.prototype.hideTimestampsChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Z8.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Z8.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Z8.prototype,"hideTimestamps",void 0);_.S([_.R(),_.V("design:type",Boolean)],Z8.prototype,"isHovered",void 0);_.S([_.GO("hideTimestamps"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z8.prototype,"hideTimestampsChanged",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z8.prototype,"dataChanged",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Z8.prototype,"onTap",null);_.S([_.Yo("keypress"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Z8.prototype,"onKeyPress",null);
_.S([_.Yo("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z8.prototype,"onMouseEnter",null);_.S([_.Yo("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z8.prototype,"onMouseLeave",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Z8);
_.d(Z8,"ytd-transcript-body-renderer",function(){if(YcN!==void 0)return YcN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return YcN=Y},{mode:1});var Gt9;var D8=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerPanels=_.F("web_watch_darker_panels");return Y};
_.m(D8,_.Z);D8.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],D8.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],D8.prototype,"darkerPanels",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],D8);
_.d(D8,"ytd-transcript-footer-renderer",function(){if(Gt9!==void 0)return Gt9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Gt9=Y},{mode:1});var uqx;var Ohb;var ha=function(){var Y=_.Z.apply(this,arguments)||this;Y.systemIcons=_.F("kevlar_system_icons");Y.showClearButton=!1;return Y};
_.m(ha,_.Z);_.H=ha.prototype;_.H.handleInput=function(Y){var G=this;Y.target.value.length?_.y4(this,"ytdTranscriptSearchBoxSearch",function(){G.emitSearchEvent(Y)},500):(_.g$4(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=Y.target.value.length>0};
_.H.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.H.handleClick=function(){var Y,G=(Y=this.data)==null?void 0:Y.trackingParams;G&&_.YR(_.M4(),G)};
_.H.handleClear=function(){_.g$4(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var Y,G,u=(G=_.z((Y=this.data)==null?void 0:Y.clearButton,_.ru))==null?void 0:G.trackingParams;u&&_.YR(_.M4(),u);this.clear()};
_.H.emitSearchEvent=function(Y){_.$s(this.hostElement,"yt-transcript-search-box-search",{query:Y.target.value});var G,u;(Y=(u=_.z((G=this.data)==null?void 0:G.searchButton,_.ru))==null?void 0:u.trackingParams)&&_.YR(_.M4(),Y)};
_.H.emitClearEvent=function(){_.$s(this.hostElement,"yt-transcript-search-box-clear")};
_.Uk.Object.defineProperties(ha.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.l0(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ha.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ha.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ha.prototype,"systemIcons",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],ha);
_.d(ha,"ytd-transcript-search-box-renderer",function(){if(Ohb!==void 0)return Ohb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Ohb=Y},{mode:1});var QFw;var Maw;var dI=function(){return _.Z.apply(this,arguments)||this};
_.m(dI,_.Z);dI.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var Y,G;this.sectionHeaderAriaLabel=(Y=this.data)==null?void 0:(G=Y.accessibility)==null?void 0:G.accessibilityData.label}};
dI.prototype.fireSelectedEvent=function(Y){_.$s(this.hostElement,"ytd-transcript-section-header",{startMs:Y})};
dI.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
dI.prototype.handleKeyPress=function(Y){this.data&&Y.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Uk.Object.defineProperties(dI.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(G=(Y=this.data)==null?void 0:Y.enableTappableTranscriptHeader)!=null?G:!1}}});
dI.prototype.dataChanged=dI.prototype.dataChanged;_.S([_.R(),_.V("design:type",Object)],dI.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],dI.prototype,"sectionHeaderAriaLabel",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],dI.prototype,"enableTappableTranscriptHeader",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dI.prototype,"dataChanged",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],dI);
_.d(dI,"ytd-transcript-section-header-renderer",function(){if(Maw!==void 0)return Maw;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Maw=Y},{mode:1});var Hhw;var Evo;var bn=function(){var Y=_.Z.apply(this,arguments)||this;Y.isEditMode=!1;Y.touchCaptionsEnabled=!1;Y.deleteCaptionCorrectionPopupCommand=null;Y.voteCaptionCorrectionPopupCommand=null;Y.roundedContainer=!0;Y.mouseOver=!1;Y.textChanged=!1;Y.messages={suggest_correction:_.Q6("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Q6("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Q6("submit_correction",void 0,"Submit for review"),cancel_correction:_.Q6("cancel_correction",
void 0,"Cancel"),replay_segment:_.Q6("replay_segment",void 0,"Re-play segment"),delete_correction:_.Q6("delete_correction",void 0,"Delete correction")};Y.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return Y};
_.m(bn,_.Z);_.H=bn.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(Y){if(this.deleteCaptionCorrectionPopupCommand){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);G&&this.ytdOpenPopupBehavior.openPopup(G);Y.stopPropagation()}};
_.H.handleSubmit=function(Y){if(this.data&&this.data.submitCaptionCorrectionCommand&&(Y.stopPropagation(),this.textChanged)){var G;Y=(G=_.z(this.data.submitCaptionCorrectionCommand,_.nb_))==null?void 0:G.params;G=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:Y,correctionText:String(this.ironTextAreaElement.value),originalText:_.Ri(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(G);this.isEditMode=!1}};
_.H.handleUpdateSegmentText=function(Y){(Y=_.z(Y,jgg))&&Y.targetId&&this.data&&Y.targetId===this.data.targetId&&(Y.userCorrection&&(this.editedText=Y.userCorrection),Y.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Ri(this.data.snippet)),Y.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=Y.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=Y.voteCaptionCorrectionPopupCommand?
Y.voteCaptionCorrectionPopupCommand:null,Y.accessibility&&(this.segmentAriaLabel=Y.accessibility.accessibilityData.label))};
_.H.handleCancel=function(Y){this.isEditMode=!1;Y.stopPropagation();this.logClientVe(159409)};
_.H.handleEditSegmentCommand=function(Y){(Y=_.z(Y,Nmx))&&Y.targetId&&this.data&&Y.targetId===this.data.targetId&&this.handleEdit()};
_.H.handleEditButtonClick=function(Y){this.data&&(this.handleEdit(),Y.stopPropagation())};
_.H.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var Y;(Y=this.ironTextAreaElement.textarea)==null||Y.focus();this.logClientVe(159407)}};
_.H.handleMouseEnter=function(){this.mouseOver=!0};
_.H.handleMouseLeave=function(){this.mouseOver=!1};
_.H.handleReplay=function(Y){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),Y.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(Y){this.data&&(this.isEditMode?Y.stopPropagation():this.isEnterPress(Y)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(Y)&&this.logClientVe(138758))};
_.H.handleTextboxClick=function(Y){Y.stopPropagation()};
_.H.handleTextboxKeydown=function(Y){this.isControlEnterPress(Y)?this.handleSubmit(Y):Y.key==="Escape"&&this.handleCancel(Y)};
_.H.handleTextboxKeyup=function(){this.textChanged=_.Ri(this.latestText)!==String(this.ironTextAreaElement.value)};
_.H.fireSelectedEvent=function(Y){_.$s(this.hostElement,"yt-transcript-segment-selected",{startMs:Y})};
_.H.fireReplayEvent=function(Y,G){_.$s(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(Y-100,0),endMs:G})};
_.H.fireEditEvent=function(Y,G){_.$s(this.hostElement,"yt-transcript-segment-edit",{startMs:Y,endMs:G})};
_.H.isEnterPress=function(Y){return Y.key==="Enter"||Y.code==="Enter"||Y.code==="NumpadEnter"||Y.keyCode===13?!0:!1};
_.H.isControlEnterPress=function(Y){var G=Y.key==="Enter"||Y.code==="Enter"||Y.code==="NumpadEnter"||Y.keyCode===13;return(Y.ctrlKey||Y.metaKey)&&G};
_.H.isCopyPress=function(Y){var G=Y.ctrlKey;return Y.key==="c"&&G};
_.H.logClick=function(){var Y,G=(Y=this.data)==null?void 0:Y.trackingParams;G&&_.YR(_.M4(),G)};
_.H.logClientVe=function(Y){_.Jw(_.M4(),_.VZ(Y))};
_.Uk.Object.defineProperties(bn.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}}});
bn.prototype.handleMouseLeave=bn.prototype.handleMouseLeave;bn.prototype.handleMouseEnter=bn.prototype.handleMouseEnter;bn.prototype.dataChanged=bn.prototype.dataChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],bn.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.SZ),_.V("design:type",Object)],bn.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],bn.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],bn.prototype,"isEditMode",void 0);_.S([_.R(),_.V("design:type",Object)],bn.prototype,"touchCaptionsEnabled",void 0);_.S([_.R(),_.V("design:type",Object)],bn.prototype,"editedText",void 0);_.S([_.R(),_.V("design:type",Object)],bn.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.S([_.R(),_.V("design:type",Object)],bn.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.S([_.R(),_.V("design:type",String)],bn.prototype,"segmentAriaLabel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],bn.prototype,"roundedContainer",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],bn.prototype,"mouseOver",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],bn.prototype,"textChanged",void 0);_.S([_.R(),_.V("design:type",Object)],bn.prototype,"messages",void 0);
_.S([_.Ox("#suggestion"),_.V("design:type",Object)],bn.prototype,"ironTextAreaElement",void 0);_.S([_.f("data","editedText"),_.V("design:type",Object),_.V("design:paramtypes",[])],bn.prototype,"latestText",null);_.S([_.f("touchCaptionsEnabled","isEditMode"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bn.prototype,"enableEditButton",null);
_.S([_.f("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bn.prototype,"enableUndoButton",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bn.prototype,"dataChanged",null);_.S([_.Yo("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bn.prototype,"handleMouseEnter",null);
_.S([_.Yo("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bn.prototype,"handleMouseLeave",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],bn);
_.d(bn,"ytd-transcript-segment-renderer",function(){if(Evo!==void 0)return Evo;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Evo=Y},{mode:1});var SM=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};Y.isError=!1;Y.darkerPanels=_.F("web_watch_darker_panels");Y.useParentMaxHeight=_.F("web_watch_transscript_use_parent_max_height");Y.segmentOffsets=[];Y.segmentIndex=-1;return Y};
_.m(SM,_.Z);_.H=SM.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(Y){for(var G=this.segmentIndex,u=G;;){if(u>=0){var O=this.segmentOffsets[u].start;var Q=this.segmentOffsets[u].isAutoScrollable}else O=-1,Q=!0;var M=Y+.5;if(!Q){O=u+1<this.segmentOffsets.length?this.segmentOffsets[u+1].start:Infinity;if(M>=O){u+=1;continue}u=-1;break}if(M<O)O=u-1>=0&&this.segmentOffsets[u-1].isAutoScrollable,Q=u===0||O?1:2,u-=Q;else if(Q=u+1<this.segmentOffsets.length&&this.segmentOffsets[u+1].isAutoScrollable?1:2,O=u+Q<this.segmentOffsets.length?
this.segmentOffsets[u+Q].start:Infinity,M>O)u+=Q;else{if(u<0)break;u<this.segmentOffsets.length&&M>this.segmentOffsets[u].end&&(u=-1);break}}if(G!==u){if(G>=0){var t;(t=this.getSegmentElement(G))==null||t.classList.remove("active")}this.segmentIndex=u;if(!(u<0)){var K;(K=this.getSegmentElement(u))==null||K.classList.add("active");this.isHovered||this.scrollElementToTop(u)}}};
_.H.handleSegmentEdit=function(Y){Y.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=Y.target,_.qZ(this.hostElement,"yt-transcript-player-edit",[Y.detail.startMs/1E3,Y.detail.endMs/1E3]))};
_.H.handleSegmentSelected=function(Y){_.qZ(this.hostElement,"yt-transcript-player-seek",[Y.detail.startMs/1E3])};
_.H.handleSegmentReplay=function(Y){_.qZ(this.hostElement,"yt-transcript-player-replay",[Y.detail.startMs/1E3,Y.detail.endMs/1E3])};
_.H.handleSectionHeaderSelected=function(Y){_.qZ(this.hostElement,"yt-transcript-player-seek",[Y.detail.startMs/1E3])};
_.H.onMouseEnter=function(){this.isHovered=!0};
_.H.onMouseLeave=function(){this.isHovered=!1};
_.H.onRetryButtonClick=function(){_.$s(this.hostElement,"transcript-retry-button-click")};
_.H.getSegmentElement=function(Y){return _.l0(this.hostElement).querySelector(":nth-child("+(Y+1)+")")};
_.H.scrollElementToTop=function(Y){Y=this.getSegmentElement(Y>=2?Y-2:0);this.hostElement.scrollTop=Math.min(Y.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.H.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(Y){var G,u=(G=Y.transcriptSegmentRenderer)!=null?G:Y.transcriptSectionHeaderRenderer;return{start:Number(u.startMs)/1E3,end:Number(u.endMs)/1E3,isAutoScrollable:Y.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.H.clearHighlightedSegments=function(){var Y=_.l0(this.hostElement);Y=_.E(Y.querySelectorAll("ytd-transcript-segment-renderer"));for(var G=Y.next();!G.done;G=Y.next())G.value.classList.remove("active")};
_.Uk.Object.defineProperties(SM.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?void 0:Y.searchResultSegments)||((G=this.data)==null?void 0:G.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
SM.prototype.onMouseLeave=SM.prototype.onMouseLeave;SM.prototype.onMouseEnter=SM.prototype.onMouseEnter;SM.prototype.handleSectionHeaderSelected=SM.prototype.handleSectionHeaderSelected;SM.prototype.handleSegmentReplay=SM.prototype.handleSegmentReplay;SM.prototype.handleSegmentSelected=SM.prototype.handleSegmentSelected;SM.prototype.handleSegmentEdit=SM.prototype.handleSegmentEdit;SM.prototype.segmentsChanged=SM.prototype.segmentsChanged;
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],SM.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],SM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],SM.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],SM.prototype,"isError",void 0);
_.S([_.R(),_.V("design:type",Object)],SM.prototype,"noResultLabel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],SM.prototype,"darkerPanels",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],SM.prototype,"useParentMaxHeight",void 0);_.S([_.f("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],SM.prototype,"segments",null);
_.S([_.f("segments","noResultLabel"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],SM.prototype,"displayNoResults",null);_.S([_.GO("segments"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SM.prototype,"segmentsChanged",null);_.S([_.Yo("yt-transcript-segment-edit"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],SM.prototype,"handleSegmentEdit",null);
_.S([_.Yo("yt-transcript-segment-selected"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],SM.prototype,"handleSegmentSelected",null);_.S([_.Yo("yt-transcript-segment-replay"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],SM.prototype,"handleSegmentReplay",null);
_.S([_.Yo("ytd-transcript-section-header"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],SM.prototype,"handleSectionHeaderSelected",null);_.S([_.Yo("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SM.prototype,"onMouseEnter",null);_.S([_.Yo("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SM.prototype,"onMouseLeave",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],SM);
_.d(SM,"ytd-transcript-segment-list-renderer",function(){if(Hhw!==void 0)return Hhw;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Hhw=Y},{mode:1});var ND=function(){var Y=_.Z.apply(this,arguments)||this;Y.hideTimestamps=!!_.LB("hide-transcript-timestamps");Y.isLoadingTranscripts=!1;Y.darkerPanels=_.F("web_watch_darker_panels");Y.isError=!1;Y.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return Y};
_.m(ND,_.Z);_.H=ND.prototype;_.H.headerChanged=function(){var Y,G;this.baseGetTranscriptsCommand=(G=_.z((Y=this.data)==null?void 0:Y.header,Vix))==null?void 0:G.onTextChangeCommand};
_.H.bodyChanged=function(){var Y=this.getBodyRenderer();Y&&(Y.initialSegments&&(this.initialTranscriptsRenderer=Y),Y.noResultLabel&&(this.noResultLabel=Y.noResultLabel),Y.retryLabel&&(this.retryLabel=Y.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(Y){var G=this;if(Y){var u=Y.detail.query;if(this.baseGetTranscriptsCommand){var O;Y=(O=_.z(this.baseGetTranscriptsCommand,_.PhI))==null?void 0:O.params;var Q;O=_.z((Q=this.data)==null?void 0:Q.footer,lDN);var M;if((Q=(M=_.z(O==null?void 0:O.languageMenu,eKj))==null?void 0:M.subMenuItems)&&Q.length>0&&(M=Q.find(function(L){return L.selected}))){var t,K;
Y=(t=M.continuation)==null?void 0:(K=t.reloadContinuationData)==null?void 0:K.continuation}t=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:Y,searchQuery:u}});this.ytComponentBehavior.resolveCommand(t,{commandController:{onServerError:function(){G.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});PPN(this.ytContinuationHandlerBehavior,function(){return u===G.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 Y={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:Y}))};
_.H.hideTimestampsChanged=function(){_.TA("hide-transcript-timestamps",this.hideTimestamps)};
_.H.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.H.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.H.handleSignalActionCopyTranscript=function(){var Y=this,G=this.getBodyRenderer();G&&(G=((G==null?void 0:G.searchResultSegments)||(G==null?void 0:G.initialSegments)||[]).map(function(u){return _.z(u,Bm9)}).filter(function(u){return!!u}).map(function(u){return{snippet:u.snippet||{runs:[{text:""}]},
startTimeText:u.startTimeText||{simpleText:""}}}).map(function(u){var O=(u.snippet.runs||[]).reduce(function(Q,M){return Q+M.text},"");
return Y.hideTimestamps?O:u.startTimeText.simpleText+" "+O}).join("\n"),this.copyToClipboard(G))};
_.H.copyToClipboard=function(Y){navigator.clipboard&&navigator.clipboard.writeText(Y)};
_.H.getCurrentSearchBoxText=function(){var Y;return(Y=this.searchBox)==null?void 0:Y.value};
_.H.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.H.getBodyRenderer=function(){var Y;return _.z((Y=this.data)==null?void 0:Y.body,lT9)};
_.H.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Uk.Object.defineProperties(ND.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.l0(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
ND.prototype.hideTimestampsChanged=ND.prototype.hideTimestampsChanged;ND.prototype.searchCleared=ND.prototype.searchCleared;ND.prototype.fireSearch=ND.prototype.fireSearch;ND.prototype.onReloadContinuationFinish=ND.prototype.onReloadContinuationFinish;ND.prototype.bodyChanged=ND.prototype.bodyChanged;ND.prototype.headerChanged=ND.prototype.headerChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ND.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ND.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.DD),_.V("design:type",Object)],ND.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ND.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ND.prototype,"hideTimestamps",void 0);
_.S([_.R(),_.V("design:type",Object)],ND.prototype,"isLoadingTranscripts",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ND.prototype,"darkerPanels",void 0);_.S([_.R(),_.V("design:type",Object)],ND.prototype,"isError",void 0);_.S([_.GO("data.header"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ND.prototype,"headerChanged",null);
_.S([_.Ex("data.body"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ND.prototype,"bodyChanged",null);_.S([_.Yo("yt-reload-continuation-finish"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ND.prototype,"onReloadContinuationFinish",null);_.S([_.Yo("yt-transcript-search-box-search"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],ND.prototype,"fireSearch",null);
_.S([_.Yo("yt-transcript-search-box-clear"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ND.prototype,"searchCleared",null);_.S([_.GO("hideTimestamps"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ND.prototype,"hideTimestampsChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],ND);
_.d(ND,"ytd-transcript-search-panel-renderer",function(){if(QFw!==void 0)return QFw;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return QFw=Y},{mode:1});var jM=function(){var Y=_.Z.apply(this,arguments)||this;Y.player=null;Y.playerPollJobId=0;return Y};
_.m(jM,_.Z);_.H=jM.prototype;_.H.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.H.onLoadReloadContinuation=function(Y){_.F("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:Y.target.data.continuation}}):(Y={clickTrackingParams:Y.target.data.clickTrackingParams,getTranscriptEndpoint:{params:Y.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.sH().resolve(_.rH).resolveCommand(Y,{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 Y=this,G;return _.a(function(u){if(u.nextAddress==1)return(G=_.N5())?u.yield(G.getPlayerPromise(),2):u.return();Y.player=u.yieldResult;Y.playerPollJobId=_.AN.addLowPriorityJob(function(){Y.getPlayerVideoProgress()},1E3);
Y.player.addEventListener("onCueRangeEnter",function(O){Y.onCueRangeEnter(O)});
Y.player.addEventListener("onCueRangeExit",function(O){Y.onCueRangeExit(O)});
Y.player.addEventListener("onStateChange",function(O){Y.onPlayerStateChange(O)});
Y.player.addEventListener("SEEK_TO",function(O){Y.onPlayerSeek(O)});
_.Sd(u)})};
_.H.getPlayerVideoProgress=function(){var Y=this;_.AN.cancelJob(this.playerPollJobId);if(this.player){var G=this.player.getCurrentTime();_.qZ(this.hostElement,"yt-player-time-changed",[G])}this.playerPollJobId=_.AN.addLowPriorityJob(function(){Y.getPlayerVideoProgress()},1E3)};
_.H.stopPlayerListening=function(){this.player=null;_.AN.cancelJob(this.playerPollJobId)};
_.H.onPlayerStateChange=function(Y){Y===2&&this.removePendingCue()};
_.H.onPlayerSeek=function(Y){var G;if(G=this.pendingReplayCueId)G=this.pendingReplayCueId,G=Y===(_.F("web_transcript_cue_id_killswitch")?Number(G):Number(G.split("_")[1]));G||this.removePendingCue()};
_.H.onCueRangeEnter=function(Y){k09(Y)&&(this.pendingReplayCueId=Y)};
_.H.onCueRangeExit=function(Y){k09(Y)&&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(Y){this.player&&this.player.seekTo(Y,!0)};
_.H.onYtTranscriptPlayerReplay=function(Y,G){this.player&&(this.player.addCueRange(IKV(Y),Y,G),this.player.seekTo(Y,!0),this.player.playVideo())};
_.H.onYtTranscriptPlayerEdit=function(Y,G){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(IKV(Y),Y,G),this.player.seekTo(Y,!0))};
jM.prototype.onLoadReloadContinuation=jM.prototype.onLoadReloadContinuation;jM.prototype.panelContentVisibleChanged=jM.prototype.panelContentVisibleChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],jM.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],jM.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],jM.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],jM.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],jM.prototype,"panelContentVisible",void 0);_.S([_.GO("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jM.prototype,"panelContentVisibleChanged",null);
_.S([_.Yo("yt-load-reload-continuation"),_.V("design:type",Function),_.V("design:paramtypes",[Object]),_.V("design:returntype")],jM.prototype,"onLoadReloadContinuation",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],jM);
_.d(jM,"ytd-transcript-renderer",function(){if(uqx!==void 0)return uqx;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return uqx=Y},{mode:1});var tao;var KWS;var Vm=function(){return _.Z.apply(this,arguments)||this};
_.m(Vm,_.Z);Vm.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.$s(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.UK(this.hostElement,[this.data.clickCommand],this.hostElement))};
Vm.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+($u()+qm)+"px)"};
Vm.prototype.updateShouldHideFromBinding=function(Y){this.shouldHide=Y.detail.value};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Vm.prototype,"rendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Vm.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],Vm.prototype,"shouldHide",void 0);_.S([_.pD({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Vm);
_.d(Vm,"ytd-ad-engagement-panel-banner-renderer",function(){if(KWS!==void 0)return KWS;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return KWS=Y},{mode:2});var aQy;var ln=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonUpdate=_.F("web_modern_buttons");Y.adsSemanticText=_.F("enable_ads_web_ep_buenos_aires_and_padding_fix");return Y};
_.m(ln,_.Z);ln.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.S([_.R(),_.V("design:type",Object)],ln.prototype,"data",void 0);_.S([_.R({computed:"computeHideDefaultAdBadge(data)"}),_.V("design:type",Boolean)],ln.prototype,"hideDefaultAdBadge",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ln.prototype,"buttonUpdate",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],ln.prototype,"adsSemanticText",void 0);_.S([_.pD({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],ln);
_.d(ln,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(aQy!==void 0)return aQy;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return aQy=Y},{mode:1});var ThB;var B6=function(){var Y=_.Z.apply(this,arguments)||this;Y.darkerPanels=_.F("web_watch_darker_panels");Y.enableSqueezebackPanels=_.F("web_shorts_enable_squeezeback_panels");Y.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");Y.headerClickListener=function(G){Y.onHeaderClick(G)};
Y.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return Y};
_.m(B6,_.Z);_.H=B6.prototype;_.H.computeAdsInfoButton=function(){if(_.F("web_modern_buttons")){var Y,G;return(G=_.z((Y=this.data)==null?void 0:Y.subtitleComplex,BD9))==null?void 0:G.adInfoRenderer}};
_.H.updateHeaderClickListener=function(){var Y,G,u;((Y=this.data)==null?0:Y.navigationEndpoint)||((G=this.data)==null?0:G.onClickCommand)||_.z((u=this.data)==null?void 0:u.visibilityButton,_.xw)?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 Y;(Y=this.data)!=null&&Y.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.F("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.H.focus=function(Y){var G=this;this.titleElement&&_.AN.addJob(function(){_.$q(G.titleElement,Y)},0,500)};
_.H.computeTitleAriaLabel=function(Y){var G=[];if(Y.title){var u,O;G.push(this.ytRendererBehavior.getSimpleString(Y.title)||((u=Y.title.accessibility)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label))}Y.contextualInfo&&G.push(this.ytRendererBehavior.getSimpleString(Y.contextualInfo));return G.join(" ")};
_.H.onHeaderClick=function(Y){this.shouldTriggerHeaderClick(Y)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.$s(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.UK(this.hostElement,[this.data.onClickCommand],this.hostElement)):(Y=this.getVisibilityToggleButton())&&Y.click())};
_.H.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var Y=_.z(this.data.visibilityButton,_.ru)||_.z(this.data.visibilityButton,_.xw);Y&&this.ytRendererBehavior.logExplicitClick(Y)}};
_.H.getVisibilityToggleButton=function(){var Y=_.l0(this.hostElement).querySelector("#visibility-button").firstElementChild;return(Y==null?void 0:Y.is)==="ytd-toggle-button-renderer"?Y:null};
_.H.shouldTriggerHeaderClick=function(Y){return!_.hf(_.wG(Y),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.H.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(Y){Y=_.z(Y,IDg);this.targetId&&(Y==null?void 0:Y.targetId)===this.targetId&&(Y=Y.navigationButton)&&this.set("data.navigationButton",Y)};
_.Uk.Object.defineProperties(B6.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var Y;return!!(((Y=this.entity)==null?0:Y.isActionButtonHidden)||this.hideActionButton)}}});
B6.prototype.collapsedChanged=B6.prototype.collapsedChanged;B6.prototype.updateHeaderClickListener=B6.prototype.updateHeaderClickListener;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],B6.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.me),_.V("design:type",Object)],B6.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],B6.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],B6.prototype,"targetId",void 0);_.S([_.R(),_.V("design:type",Boolean)],B6.prototype,"collapsed",void 0);_.S([_.R(),_.V("design:type",Boolean)],B6.prototype,"hideActionButton",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],B6.prototype,"shortsPanel",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],B6.prototype,"liveChatEngagementPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],B6.prototype,"learningChatEngagementPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],B6.prototype,"darkerPanels",void 0);_.S([_.Ox("#title"),_.V("design:type",HTMLElement)],B6.prototype,"titleElement",void 0);_.S([_.Ox("#header"),_.V("design:type",HTMLElement)],B6.prototype,"headerElement",void 0);
_.S([_.R({computed:"computeAdsInfoButton(data)"}),_.V("design:type",Object)],B6.prototype,"adsInfoButton",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],B6.prototype,"enableSqueezebackPanels",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],B6.prototype,"enableAnchoredPanel",void 0);_.S([_.R({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"engagementPanelTitleHeaderEntity",G)}}),
_.V("design:type",Object)],B6.prototype,"entity",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("targetId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],B6.prototype,"adsSemanticText",null);_.S([_.GO("data","data.navigationEndpoint","data.onClickCommand"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B6.prototype,"updateHeaderClickListener",null);
_.S([_.Ex("collapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B6.prototype,"collapsedChanged",null);_.S([_.f("entity","hideActionButton"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],B6.prototype,"isActionButtonHidden",null);_.S([_.pD({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],B6);
_.d(B6,"ytd-engagement-panel-title-header-renderer",function(){if(ThB!==void 0)return ThB;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return ThB=Y},{mode:1});var LWV;var $E=function(){return _.Z.apply(this,arguments)||this};
_.m($E,_.Z);$E.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],$E.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],$E.prototype,"data",void 0);_.S([_.pD({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],$E);
_.d($E,"ytd-macro-markers-info-item-renderer",function(){if(LWV!==void 0)return LWV;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return LWV=Y},{mode:1});var gvw;var qD=function(Y,G,u,O,Q,M){_.Ey.call(this);var t=this;this.JSC$21226_containerElement=Y;this.hostElement=G;this.supportedSyncItems=u;this.syncEntityKey=O;this.options=Q;this.renderLazyListItems=M;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;XVN(this);Pej(this);this.JSC$21226_scrollAnimation=new _.bm(function(K){Y.scrollTop=K});
_.vF(this,this.JSC$21226_scrollAnimation);this.addOnDisposeCallback(function(){IQN(t,!1);t.activeItem&&t.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.m(qD,_.Ey);var XVN=function(Y){var G=_.Eh(_.sH().resolve(_.Fk),function(u){return u.entities.markersEngagementPanelSyncEntity||{}},function(u,O){var Q;
if(u[Y.syncEntityKey]!==O[Y.syncEntityKey]&&((Q=u[Y.syncEntityKey])==null?void 0:Q.activeItemIndex)!==void 0)if(O=u[Y.syncEntityKey].activeItemIndex,u=Y.getItemByIndex(O)){if(ktS(Y,u),Y.contentVisible)if(Y.browsingMode){var M;((M=Y.options)==null?void 0:M.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(M=nvV(Y),u.offsetTop<Y.JSC$21226_containerElement.clientHeight+Y.JSC$21226_containerElement.scrollTop&&M&&!Y.activeItemBelowSyncPosition&&IQN(Y,!1));FWb(Y)}else Y.scrollToItem(u)}else _.R0(new _.I2("Could not find "+
Y.supportedSyncItems+" sync child to set active.",O,Y.JSC$21226_containerElement.querySelectorAll(Y.supportedSyncItems).length))});
Y.unsubscribeFromTimedMarkersListSyncEntity=G;Y.addOnDisposeCallback(G);pVj(Y)},pVj=function(Y){var G=_.sH().resolve(_.Fk);
G=_.dn4(G.getState(),Y.syncEntityKey);(G==null?void 0:G.activeItemIndex)!==void 0&&(G=Y.getItemByIndex(G.activeItemIndex))&&ktS(Y,G)},Pej=function(Y){var G=new _.JR(Y.onScroll,50,Y);
_.vF(Y,G);var u=function(){G.fire()};
Y.JSC$21226_containerElement.addEventListener("scroll",u);Y.addOnDisposeCallback(function(){Y.JSC$21226_containerElement.removeEventListener("scroll",u)})};
qD.prototype.getItemByIndex=function(Y){var G;(G=this.renderLazyListItems)==null||G.call(this,Y);G=this.JSC$21226_containerElement.querySelectorAll(this.supportedSyncItems);if(G.length>Y)return G[Y]};
var ktS=function(Y,G){Y.activeItem&&Y.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));G.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));Y.activeItem=G};
qD.prototype.scrollToItem=function(Y){Y=this.getScrollPositionForItem(Y);this.JSC$21226_containerElement.scrollTop!==Y&&this.JSC$21226_scrollAnimation.start(this.JSC$21226_containerElement.scrollTop,Y,300)};
qD.prototype.getScrollPositionForItem=function(Y){if(this.JSC$21226_containerElement.querySelectorAll(this.supportedSyncItems)[0]===Y)return 0;var G,u=((G=this.options)==null?0:G.percentOffset)?this.JSC$21226_containerElement.clientHeight*this.options.percentOffset:0;Y=_.Fi(Y).y+this.JSC$21226_containerElement.scrollTop-(_.Fi(this.JSC$21226_containerElement).y+u);return Math.max(0,Math.min(Y,this.JSC$21226_containerElement.scrollHeight-this.JSC$21226_containerElement.offsetHeight))};
qD.prototype.onScroll=function(){this.activeItemBelowSyncPosition=nvV(this);if(this.activeItem&&!this.JSC$21226_scrollAnimation.isAnimating()&&Math.abs(this.JSC$21226_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var Y;switch((Y=this.options)==null?void 0:Y.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":zLb(this,!mYw(this));FWb(this);break;default:zLb(this,!0)}}};
var zLb=function(Y,G){var u,O;_.a(function(Q){if(Q.nextAddress==1){if(Y.browsingMode)return Q.return();Y.browsingMode=!0;G&&Y.hostElement.classList.add("browsing-mode");Y.playerExitBrowsingModeListener=function(){IQN(Y,!1)};
return Q.yield(_.Uj(),2)}u=Q.yieldResult;(O=u)==null||O.addEventListener("SEEK_TO",Y.playerExitBrowsingModeListener);_.Sd(Q)})},IQN=function(Y,G){G=G===void 0?!0:G;
Y.browsingMode&&(Y.browsingMode=!1,Y.hostElement.classList.remove("browsing-mode"),G&&Y.scrollToItem(Y.activeItem),WWb(Y))},WWb=function(Y){var G,u;
_.a(function(O){if(O.nextAddress==1)return Y.playerExitBrowsingModeListener?O.yield(_.Uj(),3):O.jumpTo(0);G=O.yieldResult;(u=G)==null||u.removeEventListener("SEEK_TO",Y.playerExitBrowsingModeListener);Y.playerExitBrowsingModeListener=void 0;_.Sd(O)})},FWb=function(Y){var G;
((G=Y.options)==null?void 0:G.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(mYw(Y)?Y.hostElement.classList.remove("browsing-mode"):Y.activeItem&&Y.hostElement.classList.add("browsing-mode"))},nvV=function(Y){if(!Y.activeItem)return!1;
var G,u=((G=Y.options)==null?0:G.percentOffset)?Y.JSC$21226_containerElement.clientHeight*Y.options.percentOffset:0;return Y.activeItem.offsetTop>=Y.JSC$21226_containerElement.scrollTop+u},mYw=function(Y){if(!Y.activeItem)return!1;
var G=Y.activeItem.offsetTop+14<=Y.JSC$21226_containerElement.scrollTop+Y.JSC$21226_containerElement.clientHeight;return Y.activeItem.offsetTop+Y.activeItem.clientHeight-14>=Y.JSC$21226_containerElement.scrollTop&&G};
qD.prototype.panelContentVisibleChanged=function(Y){(this.contentVisible=Y)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var rOg=function(Y,G){Y.syncEntityKey=G;var u;(u=Y.unsubscribeFromTimedMarkersListSyncEntity)==null||u.call(Y);XVN(Y)};
qD.prototype.setOptions=function(Y){this.options=Y};var sd=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return Y};
_.m(sd,_.Z);_.H=sd.prototype;_.H.detached=function(){var Y;(Y=this.scrollController)==null||Y.dispose();this.scrollController=void 0};
_.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 Y=this;_.sk(this,function(){if(Y.scrollController){var G;(G=Y.scrollController)==null||IQN(G,!1);var u,O,Q;(O=Y.scrollController)==null||rOg(O,(Q=(u=Y.data)==null?void 0:u.syncModelEntityKey)!=null?Q:"default-macro-markers-list-renderer-entity-key");var M,t,K;(K=Y.scrollController)==null||K.setOptions({percentOffset:(M=Y.data)==null?void 0:M.selectedItemAlignmentPercentOffset,floatingPillType:(t=Y.data)==null?void 0:t.floatingPillType})}else{var L,g,P,I;Y.scrollController=
new qD(Y.contents,Y.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(I=(L=Y.data)==null?void 0:L.syncModelEntityKey)!=null?I:"default-macro-markers-list-renderer-entity-key",{percentOffset:(g=Y.data)==null?void 0:g.selectedItemAlignmentPercentOffset,floatingPillType:(P=Y.data)==null?void 0:P.floatingPillType},function(k){Y.renderLazyListItems(k)})}Y.scrollController.panelContentVisibleChanged(!!Y.panelContentVisible)})};
_.H.computeButtonShape=function(){var Y=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){Y.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.H.renderLazyListItems=function(Y){for(var G=this.contents.children,u=0,O=0;O<G.length;O++){var Q=void 0;(Q=G[O].ytLazyListBehavior)==null||Q.fillRemainingListItems();var M=void 0,t=void 0;Q=_.z((M=this.data)==null?void 0:(t=M.contents)==null?void 0:t[O],_.Gek);t=M=void 0;if((M=Q)==null?0:(t=M.contents)==null?0:t.length)u+=Q.contents.length;if(u>=Y)break}};
_.H.handleSetActivePanelItemAction=function(Y){if((Y=_.z(Y,xhx))&&this.panelTargetId===Y.panelTargetId){Y=Y.itemIndex;var G,u,O=(u=(G=this.data)==null?void 0:G.syncModelEntityKey)!=null?u:"default-macro-markers-list-renderer-entity-key",Q;((Q=this.syncEntity)==null?void 0:Q.activeItemIndex)!==Y&&this.ytdReduxBehavior.dispatch(_.t$("markersEngagementPanelSyncEntity",O,{key:O,activeItemIndex:Y}))}};
_.H.onSyncClick=function(){var Y;(Y=this.scrollController)==null||IQN(Y)};
_.H.panelContentVisibleChanged=function(){var Y;(Y=this.scrollController)==null||Y.panelContentVisibleChanged(!!this.panelContentVisible)};
sd.prototype.panelContentVisibleChanged=sd.prototype.panelContentVisibleChanged;sd.prototype.dataChanged=sd.prototype.dataChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],sd.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],sd.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.me),_.V("design:type",Object)],sd.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],sd.prototype,"data",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],sd.prototype,"useCustomColors",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],sd.prototype,"panelTargetId",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],sd.prototype,"panelContentVisible",void 0);
_.S([_.Ox("#contents"),_.V("design:type",HTMLElement)],sd.prototype,"contents",void 0);_.S([_.R({selectorArgs:["data.syncModelEntityKey"],selector:_.dn4}),_.V("design:type",Object)],sd.prototype,"syncEntity",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sd.prototype,"dataChanged",null);
_.S([_.GO("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sd.prototype,"panelContentVisibleChanged",null);_.S([_.pD({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],sd);
_.d(sd,"ytd-macro-markers-list-renderer",function(){if(gvw!==void 0)return gvw;var Y=document.createElement("template");_.r(Y,'\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" 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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return gvw=Y},{mode:1});var xYx;var fQg;var c6=function(){return _.Z.apply(this,arguments)||this};
_.m(c6,_.Z);c6.prototype.computeAriaLabel=function(Y){var G,u;return(Y==null?void 0:(G=Y.accessibility)==null?void 0:(u=G.accessibilityData)==null?void 0:u.label)||_.Q6("LOADING",void 0,"Loading")};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],c6.prototype,"data",void 0);_.S([_.R({computed:"computeAriaLabel(data)"}),_.V("design:type",String)],c6.prototype,"ariaLabel",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],c6);
_.d(c6,"yt-content-loading-renderer",function(){if(fQg===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;xYx===void 0&&(xYx=document.createElement("template"));var O=xYx;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);fQg=Y}Y=fQg;return Y},{mode:1});_.hR(_.D(function(Y){var G=_.E(_.IE(!1,void 0,"OZMtVb")),u=G.next().value,O=G.next().value;G=_.E(_.IE(!1,void 0,"qWERsf"));var Q=G.next().value,M=G.next().value;_.ii(function(){var L=_.z(Y.data().collaboratePlaylistCollaborationSetting,Svb);L&&O(L.switchedOnByDefault);var g=_.z(Y.data().allowNewCollaboratorsPlaylistCollaborationSetting,Svb);g&&M(g.switchedOnByDefault);if(!L&&!g||!L&&Y.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")O(!0),M(!0)});
var t=function(L){O(L);M(L);var g=Y.data().playlistCollaborationEntityKey||"";var P=_.DS().getState();(P=_.v2(P.entities,"playlistCollaborationEntity",g))&&(P==null?void 0:P.isCollaborative)===L||_.DS().dispatch(_.t$("playlistCollaborationEntity",g,Object.assign({},P,{isCollaborative:L})))},K=function(L){M(L)};
return _.T("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.T("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.T(_.HE,{data:function(){return Y.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(L){return _.T(_.It9,{data:L.data,
onSwitch:t})}})),_.T(_.X,{cond:u,
then:function(){return _.T(_.GY,null,_.T("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.T(_.HE,{data:function(){return Y.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(L){return _.T(_.It9,{data:L.data,
onSwitch:K,overrideDisabled:!1})}})),_.T(_.X,{cond:Q,
then:function(){return _.T("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.T(_.HE,{data:function(){return Y.data().copyLinkButton}},{buttonViewModel:_.$Y}))}}),_.T("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.T(_.HE,{data:function(){return Y.data().playlistCollaborators}},{contentListItemViewModel:_.Skx})))}}))},"Qj"),"playlist-collaboration-view-model",{props:{data:_.AC}});var CeS=_.D(function(Y){var G=Y.data;var u=Y.customCommandResolver;return _.T(_.GY,null,_.T("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.T(_.HE,{data:function(){return G().adAvatar}},{adAvatarViewModel:function(O){return _.T(_.NyV,{data:O.data,
customCommandResolver:u})}})),_.T("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.T(_.X,{cond:function(){return G().headline},
then:function(O){return _.T(_.eO,{text:O,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.T("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.T(_.HE,{data:function(){return G().adBadge}},{adBadgeViewModel:function(O){return _.T(_.YB,{data:O.data,
hasDot:function(){return G().primaryDetailsLine!==void 0},
customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.T(_.HE,{data:function(){return G().primaryDetailsLine}},{adDetailsLineViewModel:function(O){return _.T(_.G9,{data:O.data,
customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Rj"),yOb=_.D(function(Y){var G=Y.data;
var u=Y.customCommandResolver;return _.T("ad-avatar-lockup-view-model",{class:function(){var O;return((O=G().interaction)==null?0:O.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.iq(_.UV({visibilityCallback:function(O){var Q,M=(Q=G().interaction)==null?void 0:Q.onFirstVisible;O&&M&&_.W3(M)},
showOption:_.B9}),_.fK(function(){return G().interaction},u)),
"aria-label":function(){var O,Q;return(O=G().interaction)==null?void 0:(Q=O.accessibility)==null?void 0:Q.label}},_.T(_.x4,null,_.T(_.m1,{when:function(){return G().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.T(CeS,{data:G,
customCommandResolver:u})}),_.T(_.W4,null,function(){return null})))},"Sj");_.hR(_.D(function(Y){var G=Y.data;var u=Y.panelContentVisibility;Y=_.UV({visibilityCallback:function(M){var t,K=(t=G().interaction)==null?void 0:t.onFirstVisible;M&&K&&_.W3(K)},
showOption:_.B9});var O=_.fK(function(){return G().interaction},nMw);
_.iF(function(){var M,t;if(t=_.So("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var K;t=(K=t())==null?void 0:K.onLayoutVisibleCallback}else t=null;(M=t)==null||M()},"Tj");
var Q=function(){return u()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.T("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.iq(Y,O)},_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.T(_.X,{cond:_.VHy("(min-width: "+($u()+qm)+"px) or (max-width: 600px)"),then:function(){return _.T(_.HE,{data:function(){return G().adImage}},{adImageViewModel:function(M){return _.T(_.q8,{data:M.data,
targetHeight:80,customCommandResolver:nMw})}})}})),_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.T(_.HE,{data:function(){return G().adAvatarLockup}},{adAvatarLockupViewModel:function(M){return _.T(yOb,{data:M.data,
customCommandResolver:nMw})}})),_.T(_.X,{cond:Q,
then:function(){return _.T(_.HE,{data:function(){return G().adButton}},{adButtonViewModel:function(M){return _.T(_.sM,{data:M.data,
customCommandResolver:nMw})}})},
else:function(){return _.T(_.HE,{data:function(){return G().menu}},{buttonViewModel:_.$Y})}}),_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.T(_.HE,{data:function(){var M=_.z(G().toggleButton,_.eD);
return{toggleButtonViewModel:Object.assign({},M,{isTogglingDisabled:!0,isToggled:Q()})}}},{toggleButtonViewModel:_.Tr})))))},"Uj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.AC,
panelContentVisibility:_.AC}});var eLg=_.az(FJw,{debugName:"chipBarViewModel"});_.UH(_.fS,function(Y){_.CS(Y,"chipBarViewModel","HwlOhd",FJw)});var AOj=_.az(pHb,{debugName:"gridShelfViewModel"});_.UH(_.fS,function(Y){_.CS(Y,"gridShelfViewModel","JoU6vf",pHb)});var ovx=_.az(z3x,{debugName:"ytFeedbackPromptViewModel"});_.UH(_.fS,function(Y){_.CS(Y,"ytFeedbackPromptViewModel","hU04te",z3x)});var iho=_.az(mzx,{debugName:"learningJourneyLoaderViewModel"});_.UH(_.fS,function(Y){_.CS(Y,"learningJourneyLoaderViewModel","dIvQ6c",mzx)});var RLx=_.az(WJy,{debugName:"ytAccordionViewModel"});_.UH(_.fS,function(Y){_.CS(Y,"ytAccordionViewModel","m9Vw4",WJy)});var wVb=_.az(rVw,{debugName:"videoOverviewViewModel"});_.UH(_.fS,function(Y){_.CS(Y,"videoOverviewViewModel","mcjWUc",rVw)});var Zhx=_.az(xzb,{debugName:"youChatItemViewModel"});_.UH(_.fS,function(Y){_.CS(Y,"youChatItemViewModel","QiZf0e",xzb)});var DYb=_.az(fK9,{debugName:"ytChatLoadingViewModel"});_.UH(_.fS,function(Y){_.CS(Y,"ytChatLoadingViewModel","f8YPh",fK9)});var hLb=_.az(C$w,{debugName:"ytChatUserTurnViewModel"});_.UH(_.fS,function(Y){_.CS(Y,"ytChatUserTurnViewModel","b3MoKf",C$w)});var dYj=_.D(function(Y){var G=_.E((0,_.cJ1)(Y.data)).next().value,u=function(){var O,Q;return(Q=(O=G().contents)==null?void 0:O.length)!=null?Q:0};
return _.T("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return Y.data().targetId||""},
"aria-busy":function(){var O,Q;return(Q=(O=G().contents)==null?void 0:O.some(function(M){return!!M.chatLoadingViewModel}))!=null?Q:!1}},_.T(_.HE,{data:function(){return Y.data().header}},{chipBarViewModel:eLg,
sectionHeaderViewModel:_.Ml}),_.T(_.HE,{data:function(){return G().contents}},{accordionViewModel:RLx,
alertBannerViewModel:$go,basicContentViewModel:_.ei,chatLoadingViewModel:function(O,Q){return _.T(DYb,{data:O.data,containerHeight:Y.containerHeight,isLastItem:function(){return Q()===u()-1}})},
chatUserTurnViewModel:function(O,Q){return _.T(hLb,{data:O.data,containerHeight:Y.containerHeight,isLastItem:function(){return Q()===u()-1}})},
feedbackPromptViewModel:ovx,gridShelfViewModel:function(O){return _.T(AOj,{data:O.data,shouldUseOwnContainerSize:!0,marginSettings:Y.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:iho,linearLayoutViewModel:_.ik,lockupViewModel:function(O){return _.T(_.Ou,{data:O.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:Y.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.Ml,videoOverviewViewModel:wVb,youChatItemViewModel:function(O,Q){return _.T(Zhx,{data:O.data,pending:!1,containerHeight:Y.containerHeight,isLastItem:function(){return Q()===u()-1}})}}))},"Vj");_.hR(_.D(function(Y){var G=_.E((0,_.cJ1)(Y.data)).next().value,u=_.E(_.K$()),O=u.next().value;u=u.next().value;var Q=_.iq(u);u=_.E(_.IE(void 0,void 0,"fqbUqd"));var M=u.next().value,t=u.next().value,K=function(){var L;return _.z((L=Y.data().sectionListLayoutConfiguration)==null?void 0:L.layoutConfiguration,y4V)};
_.ii(function(){var L,g=(L=Q.value)==null?void 0:L.clientWidth;L=K()?_.zqI(g,K()):void 0;t(L)});
u={};return _.T("yt-section-list-renderer",{class:_.s3("ytSectionListRendererHost",Y.className,(u.ytSectionListRendererHostOverscrollContain=function(){var L;return(L=Y.overscrollContain)==null?void 0:L.call(Y)},u)),
el:Q,"data-target-id":function(){return Y.data().targetId||""}},_.T(_.HE,{data:function(){return G().contents}},{itemSectionRenderer:function(L){return _.T(dYj,{data:L.data,
containerLayoutConfig:M,marginSettings:Y.marginSettings,containerHeight:function(){return O.height()}})}}))},"Wj"),"yt-section-list-renderer",{props:{data:_.AC,
className:_.wH,marginSettings:_.AC,overscrollContain:_.AC}});_.hR(_.D(function(Y){var G=function(){return _.z(Y.data().inputComposerViewModel,AVx)},u=_.Hx(_.A$.currentPageSubTypeSelector),O=_.Hx(_.A$.persistentPanelVisibleSelector),Q=_.E(_.IE(!1,void 0,"RXGzYc")),M=Q.next().value,t=Q.next().value;
Q=_.E(_.IE(!1,void 0,"oyonKd"));var K=Q.next().value,L=Q.next().value,g=function(){W(!0);var Tg;_.W3(((Tg=G())==null?void 0:Tg.onSubmitCommand)||{})},P=function(){if(O()&&!K()){var Tg;
(Tg=_.vx())==null||Tg.removeCueRange("aic-proactive");t(!1);L(!0);g();_.pd(_.Zjg(G().endOfVideoContinuation),{form:{formData:_.wF({clientMessageId:"youchat-"+Date.now(),pageContext:ka()})},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.pd(Q$V(B()));W(!1)}}})}},I=function(){var Tg=_.vx();
if(Tg&&!M()&&!K()){var iy=Tg.getDuration();iy>60&&(Tg.addCueRange("aic-proactive",iy-60,iy-20),t(!0))}},k=function(){var Tg;
return((Tg=G())==null?void 0:Tg.youchatPendingResponseEntityKey)||""},n=_.Oe(_.hQN,k),p=function(){var Tg;
return!((Tg=n())==null||!Tg.isPendingResponse)},W=function(Tg){_.d2g(k())(Tg)};
Q=_.E(_.IE(!0,void 0,"umCoCf"));var C=Q.next().value,e=Q.next().value,w=function(){var Tg,iy;var hY=_.z((iy=G())==null?void 0:iy.inputFormField,TDN);return hY==null?void 0:(Tg=hY.contentProperties)==null?void 0:Tg.placeholderText},B=function(){return G().sectionTargetId||"youchat_messages_section"};
Q=_.yg("yt-chat-input-view-model");var N=_.CH("textarea"),h=_.Oe(HBw,"chat_input_view_model_state"),q=E3x(),U=function(){var Tg;return!((Tg=h())==null||!Tg.value)},Mj=function(){return Y.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},Xt=function(){var Tg;
(Tg=_.vx())==null||Tg.removeCueRange("aic-proactive");t(!1);L(!1);var iy;_.F("enable_navigational_proactive_messages_on_ai_companion")&&((iy=G())==null?0:iy.navigationContinuation)&&O()&&(g(),_.pd(_.Zjg(G().navigationContinuation),{form:{formData:_.wF({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:e3b(),pageContext:ka()})},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.pd(Q$V(B()));W(!1)}}}))},ka=function(){var Tg;
return(Tg=_.sH().resolve(_.q3(_.pg)))==null?void 0:_.cDw(Tg,u())};
_.ii(function(){if(_.TP("enable_ai_chat_controller")){var Tg;(Tg=_.sH().resolve(_.q3(_.pg)))==null||Tg.init(Y.data().environment)}else if(Tg=oMg(Y.data()),!U()&&Tg){var iy;((iy=G())==null?0:iy.setPendingResponseOnWelcome)&&W(!0);_.pd(Tg,{form:{formData:_.wF({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:e3b(),pageContext:ka()})}});q(!0)}var hY=B(),dA=_.sH().resolve(_.q3(_.YY)),nT=function(){_.Mv.remove(hY);if(_.TP("enable_ai_chat_controller")){var jT;(jT=_.sH().resolve(_.q3(_.pg)))!=null&&
jT.environment==="CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(jT.lastWelcomeContinuationSent=void 0)}else q(!1)},u_=function(){_.Pw(function(){if(Mj()&&(Xt(hY),u()==="watch")){var jT=_.vx();
jT&&(jT.addEventListener("onStateChange",I),jT.addEventListener("onCueRangeEnter",P))}})};
iy=_.F("enable_ai_companion")?!Mj():!0;dA==null||dA.addEventListener("yt-navigate-start",nT,{once:iy});dA==null||dA.addEventListener("yt-navigate-finish",u_,{once:iy});_.w_(function(){dA==null||dA.removeEventListener("yt-navigate-start",nT);dA==null||dA.removeEventListener("yt-navigate-finish",u_);var jT=_.vx();jT&&(jT.removeEventListener("onCueRangeEnter",P),jT.removeEventListener("onStateChange",I),jT.removeCueRange("aic-proactive"))})});
_.RE(function(){if(_.TP("enable_ai_chat_controller")){var Tg=oMg(Y.data());if(Tg){var iy,hY=((iy=G())==null?0:iy.setPendingResponseOnWelcome)?W:void 0,dA;(dA=_.sH().resolve(_.q3(_.pg)))==null||rgS(dA,{command:Tg,setPending:hY})}}},"SXTMBe");
var aU=function(){var Tg=N.value.value;N.value.value="";yVx(N.value);var iy,hY=((iy=G())==null?void 0:iy.enableGradientColorBg)||!1,dA;iy=Mlg(B(),Tg,hY,(dA=G())==null?void 0:dA.chatUserTurnBackgroundStyle);_.pd(iy);g();var nT,u_,jT;dA=(jT=_.FS((nT=Y.data())==null?void 0:nT.sendUserQueryCommand))!=null?jT:_.Zjg((u_=G())==null?void 0:u_.continuation);_.pd(dA,{form:{formData:_.wF({clientMessageId:"youchat-"+Date.now(),userInputText:Tg,playerOffsetMs:e3b(),pageContext:ka()})},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.pd(Q$V(B()));W(!1)}}})};
return _.T("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:Q},_.T("div",{class:"chatInputViewModelChatInputWrapper"},_.T("form",{class:"chatInputViewModelChatInputForm"},_.T("textarea",{class:"chatInputViewModelChatInput",el:N,"on:keydown":_.U3(function(Tg){var iy=p()||!1;yVx(N.value);iy||Tg.key!=="Enter"||Tg.shiftKey||(Tg.preventDefault(),aU());return!1}),
"on:keyup":_.U3(function(){e(N.value.value.length===0);return!1}),
"aria-label":function(){if(p()){var Tg,iy;return((Tg=G())==null?void 0:(iy=Tg.loadingConfig)==null?void 0:iy.loadingAnimationA11yLabel)||""}return w()},
placeholder:w,rows:1}),_.T(_.$Y,{data:function(){return _.z(Y.data().sendButton,_.Ck)},
onClick:function(Tg){Tg.preventDefault();aU();e(N.value.value.length===0)},
buttonOverrides:function(){return{disabled:C()||p()}}})),_.T(_.eO,{className:"chatInputViewModelChatDisclaimer",
text:function(){var Tg;return Y.data().disclaimerText||((Tg=_.z(Y.data().disclaimer,_.uG2))==null?void 0:Tg.text)}})))},"Yj"),"yt-chat-input-view-model",{props:{data:_.AC}});var bhN=["engagement-panel-clip-create","engagement-panel-clip-view"],Scx=0,Ud=function(){var Y=_.Z.apply(this,arguments)||this;var G;Y.headerData=(G=Y.data)==null?void 0:G.header;Y.darkerPanels=_.F("web_watch_darker_panels");Y.matchContentTheme=_.F("web_watch_panel_content_match_theme");Y.disableAutoFill=!1;Y.isFullscreen=!1;Y.isTheaterMode=!1;Y.liveChatReplyPanel=!1;Y.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");Y.disableBackdropFilter=_.F("web_disable_backdrop_filter");Y.isPersistentPanel=
!1;Y.trackEngagementPanelVisibility=_.F("web_watch_track_engagement_panel_visibility");Y.overscrollContain=!1;Y.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 Y};
_.m(Ud,_.Z);_.H=Ud.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(Y){var G;return(Y==null?void 0:(G=Y.webComponentHint)==null?void 0:G.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]]",overscrollContain:"[[overscrollContain]]"}},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 Y;if((Y=this.hostElement.parentElement)==null?0:Y.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.H.detached=function(){this.updateTheaterDisablement()};
_.H.showPanel=function(){var Y=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.AN.addJob(function(){Y.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.H.maybeScrollToItemSection=function(Y){var G=this,u,O=Y==null?void 0:(u=Y.sectionListEngagementPanelExtras)==null?void 0:u.scrollToItemSectionIdentifier;O&&_.AN.addJob(function(){var Q;(Q=G.sectionListRendererElement)==null||Q.scrollToItemSection(O)},8)};
_.H.hidePanel=function(){var Y=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.AN.addJob(function(){Y.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(Y,G,u,O){var Q=this;if((Y=Y==null?void 0:Y.engagementPanelSectionListRenderer)||O){if(Y){O=Y.header;var M=Y.content,t=Y.footer,K=Y.targetId,L=Y.onShowCommands;Y=Y.onHideCommands;K&&this.set("data.targetId",K);O&&this.set("data.header",O);M&&this.set("data.content",M);t&&this.set("data.footer",t);_.F("enable_on_visibility_change_commands_for_panels")&&(L&&this.set("data.onShowCommands",L),Y&&this.set("data.onHideCommands",Y))}else O&&(Y=O.content,M=O.secondaryHeaderContent,
t=O.targetId,O=O.loggingDirectives,t&&this.set("data.targetId",t),Y&&this.set("data.content",Y),O&&_.F("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",O),M&&(this.secondaryHeaderData=M));this.updateChildVisibilityProperties();if(G){var g;_.F("kevlar_update_panel_focus_scroll_killswitch")||(g={preventScroll:!0});this.focus(g)}_.sk(this,function(){_.$s(Q.hostElement,"yt-refit");Q.maybeScrollToItemSection(u)})}};
_.H.computeHeaderData=function(){var Y,G=(0,_.gX.unsafeClone)((Y=this.data)==null?void 0:Y.header);if(G){Y=new _.bu(Object.keys(G)[0]);var u=_.z(G,Y),O=_.z(this.secondaryHeaderData,Y);O&&_.XS(G,Y,Object.assign({},O,u))}return G};
_.H.getReloadContinuation=function(){var Y,G,u,O=_.E(((Y=this.data)==null?void 0:(G=Y.content)==null?void 0:(u=G.sectionListRenderer)==null?void 0:u.continuations)||[]);for(Y=O.next();!Y.done;Y=O.next())if(Y=Y.value,Y.reloadContinuationData)return Y.reloadContinuationData.continuation};
_.H.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var Y;((Y=this.data)==null?0:Y.targetId)&&(Y=this.contentElement.firstElementChild)&&Y.setAttribute("panel-target-id",this.data.targetId)};
_.H.forwardPopupClosedToFlowRootRenderer=function(){var Y=_.l0(this.hostElement).querySelector("ytd-flow-root-renderer");if(Y&&this.hostElement.closest("ytd-popup-container"))Y.onPopupClosed()};
_.H.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var Y;if(!bhN.includes((Y=this.theaterDisablementPanelIdentifier)!=null?Y:""))if(Y=_.F("web_watch_imax_theater_mode")&&this.isTheaterMode,Y=_.F("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||Y,_.F("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||Y){var G;this.visibility=(G=this.data)==null?void 0:G.visibility;var u;this.trackEngagementPanelVisibility&&((u=this.data)==null?void 0:u.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var O,Q,M,t;this.contentEmpty=!!(((O=this.data)==null?0:(Q=O.content)==null?0:Q.structuredDescriptionContentRenderer)&&Object.keys((M=this.data)==null?void 0:(t=M.content)==null?void 0:
t.structuredDescriptionContentRenderer).length===0);(G=_.sH().resolve(_.IH))&&G.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.H.isTheaterModeChanged=function(){_.F("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.H.isFullscreenChanged=function(){_.F("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.H.focus=function(Y){if(this.header)this.header.focus(Y);else{var G;(G=_.l0(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||G.focus(Y)}};
_.H.visibilityChanged=function(){if(!_.F("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var Y=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",u=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",O=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q=O||!this.lastVisibility,M,t,K,L=((M=this.data)==null?void 0:(t=M.identifier)==null?void 0:
t.tag)||((K=this.data)==null?void 0:K.panelIdentifier);if(Y&&Q){var g;if((g=this.data)==null?0:g.onShowCommands)if(_.F("enable_on_visibility_change_commands_for_panels"))for(G=_.E(this.data.onShowCommands),u=G.next();!u.done;u=G.next())this.ytComponentBehavior.resolveCommand(u.value);else _.UK(this.hostElement,this.data.onShowCommands,this.hostElement);L&&_.Zs().dispatch(_.V6({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:L}}))}else if(G&&u){var P;if((P=this.data)==null?0:P.onHideCommands)if(_.F("enable_on_visibility_change_commands_for_panels"))for(G=
_.E(this.data.onHideCommands),u=G.next();!u.done;u=G.next())this.ytComponentBehavior.resolveCommand(u.value);else _.UK(this.hostElement,this.data.onHideCommands,this.hostElement);L&&_.Zs().dispatch(_.V6({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:L}}))}Y&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*Scx++));_.F("kevlar_watch_focus_on_engagement_panels")&&Y&&O&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.H.notifyVisibilityChanged=function(Y){var G;_.sK(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,Y,(G=this.data)==null?void 0:G.targetId]);if(_.F("autonav_pause_for_comments_ep")){var u;_.$s(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:Y==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(u=this.data)==null?void 0:u.targetId})}};
_.H.updateTheaterDisablement=function(){if(!_.F("kevlar_watch_theater_disablement_killswitch")){var Y=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&bhN.includes(Y)&&!_.F("watch_next_grid_ignore_disallowed_panels")){var G=_.Fm(_.Zs().getState()),u=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";Y!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():u?(this.originalTheaterState===void 0&&(this.originalTheaterState=G,this.theaterDisablementPanelIdentifier=
Y),G&&_.qZ(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.H.clearTheaterDisablement=function(){_.qZ(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.H.updateChildVisibilityProperties=function(){this.hostElement||_.F("kevlar_panel_property_init_killswitch")||this._enableProperties();var Y=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=Y);var G,u=(G=this.headerElement)==null?void 0:G.firstElementChild;if(u&&!this.adHeaderImageLockupViewModel){G=Y==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";u.collapsed=G;u=_.l0(u).querySelector("#visibility-button");if(!u)return;(u=u.firstElementChild)&&
u.polymerController.is==="ytd-toggle-button-renderer"&&u.polymerController.data.isToggled!==G&&u.polymerController.set("data.isToggled",G)}var O;if(G=(O=this.contentElement)==null?void 0:O.firstElementChild)if(Y&&Y!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")G.removeAttribute("panel-content-visible");else{G.setAttribute("panel-content-visible","");var Q;(Q=G.markDirty)==null||Q.call(G)}};
_.H.onYtChangeEngagementPanelVisibilityAction=function(Y){var G=this,u,O=(u=this.data)==null?void 0:u.targetId,Q,M,t;u=((Q=this.data)==null?void 0:(M=Q.identifier)==null?void 0:M.tag)||((t=this.data)==null?void 0:t.panelIdentifier);var K=_.z(Y,_.p02),L;Y=O&&(K==null?void 0:K.targetId)===O||u&&(K==null?void 0:(L=K.panelIdentifier)==null?void 0:L.tag)===u;this.dialog&&Y&&(K==null?void 0:K.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(O==="engagement-panel-comments-section"?_.qZ(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.qZ(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",u]));!_.F("kevlar_use_engagement_panel_management_component")&&Y&&(O=K.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!O?_.AN.addJob(function(){G.visibility=K.visibility},2,this.hideDelayMs):this.visibility=K.visibility,K.visibility&&this.notifyVisibilityChanged(K.visibility))};
_.H.onYtScrollToEngagementPanelCommand=function(Y){var G,u=(G=this.data)==null?void 0:G.targetId,O,Q,M;G=((O=this.data)==null?void 0:(Q=O.identifier)==null?void 0:Q.tag)||((M=this.data)==null?void 0:M.panelIdentifier);Y=_.z(Y,_.RcU);var t;(u&&(Y==null?void 0:Y.targetId)===u||G&&(Y==null?void 0:(t=Y.panelIdentifier)==null?void 0:t.tag)===G)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.qZ(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.H.attachVEs=function(Y){var G,u;(Y==null?0:(G=Y.content)==null?0:(u=G.productListRenderer)==null?0:u.trackingParams)&&_.M4().graftServerVe(Y.content.productListRenderer.trackingParams);var O,Q;(Y==null?0:(O=Y.content)==null?0:(Q=O.transcriptRenderer)==null?0:Q.trackingParams)&&_.M4().graftServerVe(Y.content.transcriptRenderer.trackingParams)};
_.H.onYtUpdateEngagementPanelAction=function(Y){var G,u=(G=this.data)==null?void 0:G.targetId;Y=_.z(Y,CL9);u&&(Y==null?void 0:Y.targetId)===u&&(this.updatePanel({engagementPanelSectionListRenderer:{header:Y==null?void 0:Y.header,content:Y==null?void 0:Y.content}},!1),this.attachVEs(Y))};
_.H.onYtShowEngagementPanelScrimAction=function(Y){var G,u=(G=this.data)==null?void 0:G.targetId;Y=_.z(Y,fDw);u&&(Y==null?void 0:Y.engagementPanelTargetId)===u&&(this.scrimmed=!0)};
_.H.onYtHideEngagementPanelScrimAction=function(Y){var G,u=(G=this.data)==null?void 0:G.targetId;Y=_.z(Y,pdw);u&&(Y==null?void 0:Y.engagementPanelTargetId)===u&&(this.scrimmed=!1)};
_.H.getIdentifier=function(){var Y,G,u;return((Y=this.data)==null?void 0:Y.panelIdentifier)||((G=this.data)==null?void 0:(u=G.identifier)==null?void 0:u.tag)};
_.H.getSurface=function(){var Y,G;return(Y=this.data)==null?void 0:(G=Y.identifier)==null?void 0:G.surface};
_.Uk.Object.defineProperties(Ud.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var Y=this.getIdentifier();return Y==="engagement-panel-youchat"||Y==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
Ud.prototype.visibilityChanged=Ud.prototype.visibilityChanged;Ud.prototype.isFullscreenChanged=Ud.prototype.isFullscreenChanged;Ud.prototype.isTheaterModeChanged=Ud.prototype.isTheaterModeChanged;Ud.prototype.dataChanged=Ud.prototype.dataChanged;Ud.prototype.forwardPopupClosedToFlowRootRenderer=Ud.prototype.forwardPopupClosedToFlowRootRenderer;Ud.prototype.onYtRendererstamperFinished=Ud.prototype.onYtRendererstamperFinished;
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Ud.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Ud.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ud.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Ud.prototype,"ytdReduxBehavior",void 0);
_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],Ud.prototype,"ytEventForwardingBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ud.prototype,"data",void 0);_.S([_.R({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.V("design:type",Object)],Ud.prototype,"headerData",void 0);_.S([_.R(),_.V("design:type",Object)],Ud.prototype,"secondaryHeaderData",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ud.prototype,"visibility",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ud.prototype,"contentEmpty",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ud.prototype,"scrimmed",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ud.prototype,"dialog",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ud.prototype,"dropdown",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ud.prototype,"darkerPanels",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ud.prototype,"matchContentTheme",void 0);_.S([_.R(),_.V("design:type",Object)],Ud.prototype,"disableAutoFill",void 0);_.S([_.R({reflectToAttribute:!0,value:_.F("optimal_reading_width_comments_ep")}),_.V("design:type",Boolean)],Ud.prototype,"optimalReadingWidthComments",void 0);_.S([_.R(),_.V("design:type",Number)],Ud.prototype,"hideDelayMs",void 0);
_.S([_.R({selector:_.pz,reflectToAttribute:!0}),_.V("design:type",Object)],Ud.prototype,"isFullscreen",void 0);_.S([_.R({selector:_.Fm,reflectToAttribute:!0}),_.V("design:type",Object)],Ud.prototype,"isTheaterMode",void 0);_.S([_.R(),_.V("design:type",Number)],Ud.prototype,"showDelayMs",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data.targetId"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ud.prototype,"targetId",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ud.prototype,"webSize",null);_.S([_.R(),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ud.prototype,"hideFooterBorder",null);_.S([_.R(),_.V("design:type",Object)],Ud.prototype,"isWatch",void 0);_.S([_.R(),_.V("design:type",Object)],Ud.prototype,"originalTheaterState",void 0);_.S([_.R(),_.V("design:type",Object)],Ud.prototype,"theaterDisablementPanelIdentifier",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ud.prototype,"isWatchWhilePanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ud.prototype,"shortsPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ud.prototype,"liveChatEngagementPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ud.prototype,"learningChatEngagementPanel",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ud.prototype,"liveChatReplyPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ud.prototype,"enableAnchoredPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ud.prototype,"disableBackdropFilter",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ud.prototype,"isPersistentPanel",void 0);_.S([_.R(),_.V("design:type",Object)],Ud.prototype,"trackEngagementPanelVisibility",void 0);
_.S([_.R(),_.V("design:type",Object)],Ud.prototype,"overscrollContain",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ud.prototype,"isAiCompanionPanel",null);_.S([_.Ox("#header"),_.V("design:type",HTMLElement)],Ud.prototype,"headerElement",void 0);_.S([_.Ox("#header > *"),_.V("design:type",HTMLElement)],Ud.prototype,"header",void 0);_.S([_.Ox("ytd-section-list-renderer"),_.V("design:type",Object)],Ud.prototype,"sectionListRendererElement",void 0);
_.S([_.Ox("panel-ad-header-image-lockup-view-model"),_.V("design:type",HTMLElement)],Ud.prototype,"adHeaderImageLockupViewModel",void 0);_.S([_.Ox("#content"),_.V("design:type",HTMLElement)],Ud.prototype,"contentElement",void 0);_.S([_.Yo("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ud.prototype,"onYtRendererstamperFinished",null);
_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ud.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.S([_.Ex("data","isFullscreen","isTheaterMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ud.prototype,"dataChanged",null);_.S([_.GO("isTheaterMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ud.prototype,"isTheaterModeChanged",null);
_.S([_.GO("isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ud.prototype,"isFullscreenChanged",null);_.S([_.GO("visibility"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ud.prototype,"visibilityChanged",null);_.S([_.pD({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Ud);
_.d(Ud,"ytd-engagement-panel-section-list-renderer",function(){if(tao!==void 0)return tao;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return tao=Y},{mode:2});var NhN;var v6=function(){var Y=_.Z.apply(this,arguments)||this;Y.rounded=!0;Y.pageAttachedTo=void 0;Y.currentRequestResolver=void 0;Y.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return Y};
_.m(v6,_.Z);v6.prototype.attached=function(){this.pageAttachedTo=_.sH().resolve(_.bv).getCurrentPage();_.$s(this.hostElement,"yt-player-attached",this.player)};
v6.prototype.detached=function(){var Y;if((Y=this.pageAttachedTo)==null?0:Y.hostElement)_.$s(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
v6.prototype.dataChanged=function(){var Y=this,G;if(((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&!_.F("web_channel_imp_ks")){this.currentRequestResolver&&this.currentRequestResolver.reject();G=this.data.inlinePlaybackEndpoint;var u=_.sH().resolve(_.KB),O={};_.sH().resolve(_.tf);O.lact=_.Y7();var Q=new _.sG;this.currentRequestResolver=Q;Q.promise.then(function(M){var t={autoplay:!0};!_.F("miniplayer_stop_channel_video_autoplay_killswitch")&&_.sH().resolve(_.yo).isMiniplayerActive()&&(t.pause_at_start=
!0,t.autoplay=!1);M&&Y.player.loadVideoWithPlayerResponse(M,t)});
jzb(u,{endpoint:G,startPlaybackInMutedState:!1},O).then(function(M){Q.resolve(M)}).catch(function(){})}else if((u=this.data)==null?0:u.videoId)G={video_id:this.data.videoId,
autoplay:!0},!_.F("miniplayer_stop_channel_video_autoplay_killswitch")&&_.sH().resolve(_.yo).isMiniplayerActive()&&(G.pause_at_start=!0,G.autoplay=!1),this.player.loadVideoWithPlayerVars(G)};
v6.prototype.handleSignalActionPausePlayer=function(){_.jr().pause()};
v6.prototype.dataChanged=v6.prototype.dataChanged;_.S([_.R(),_.V("design:type",Object)],v6.prototype,"data",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],v6.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],v6.prototype,"rounded",void 0);_.S([_.Ox("#player"),_.V("design:type",Object)],v6.prototype,"player",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],v6.prototype,"dataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],v6);
_.d(v6,"ytd-channel-video-player-renderer",function(){if(NhN!==void 0)return NhN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return NhN=Y},{mode:1});var jFj;var Ja=function(){return _.Z.apply(this,arguments)||this};
_.m(Ja,_.Z);Ja.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.IA(_.l0(this.hostElement).querySelector("#text"),_.hBE.sanitize(this.data.companionLegalText))};
Ja.prototype.computeAutoScrollEnabled=function(Y,G){return Y&&!G};
Ja.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Ja.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Ja.prototype.expandedChanged=Ja.prototype.expandedChanged;Ja.prototype.dataChanged=Ja.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ja.prototype,"ytRendererBehavior",void 0);_.S([_.x(kqj),_.V("design:type",Object)],Ja.prototype,"ytdAutoScrollBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ja.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Ja.prototype,"expanded",void 0);
_.S([_.R({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.V("design:type",Boolean)],Ja.prototype,"autoScrollEnabled",void 0);_.S([_.R(),_.V("design:type",String)],Ja.prototype,"expanderIcon",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ja.prototype,"dataChanged",null);
_.S([_.GO("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ja.prototype,"expandedChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Ja);
_.d(Ja,"ytd-companion-legal-text-renderer",function(){if(jFj!==void 0)return jFj;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return jFj=Y},{mode:1});var VaN;var YZ=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonUpdate=_.F("web_modern_buttons");Y.kevlarWatchGrid=_.F("kevlar_watch_grid");Y.centerAlignDescription=_.F("action_companion_center_align_description");Y.truncateDomain=_.F("action_companion_truncate_domain");Y.enableMonoStyle=_.F("enable_default_mono_cta_migration_web_client");return Y};
_.m(YZ,_.Z);_.H=YZ.prototype;_.H.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.H.getOnLayoutVisibleCallback=function(){var Y=_.So("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.onLayoutVisibleCallback:null};
_.H.getLayoutId=function(){var Y=_.So("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.layoutId:null};
_.H.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",YZ.JSC$21291_DEFAULT_AD_BADGE_RENDERER);var Y=this.getOnLayoutVisibleCallback();Y&&Y()}};
_.H.getButtonRenderer=function(Y){return Y.actionButton&&_.z(Y.actionButton,_.ru)?(delete _.z(Y.actionButton,_.ru).navigationEndpoint,_.z(Y.actionButton,_.ru)):{}};
_.H.onClick=function(Y){var G=this;if((!_.F("web_modern_buttons")||!_.hf(_.wG(Y),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){Y=_.N5();var u=this.getLayoutId();Y&&u&&_.F("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?Y.getPlayerPromise().then(function(O){(new _.F7(O)).executeCommand(G.data.navigationEndpoint,u)}):_.F("kevlar_companion_resolve_command_killswitch")?_.$s(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.qZ(this.hostElement,"yt-companion-ad-clicked",["action-companion",u])}};
_.Uk.Object.defineProperties(YZ.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return((Y=this.data)==null?0:(G=Y.detailsLine)==null?0:(u=G.adRating)==null?0:u.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 Y,G,u,O;return((Y=this.data)==null?0:(G=Y.detailsLine)==null?0:(u=G.adRating)==null?0:(O=u.ratingIcon)==null?0:O.iconType)?_.Ux(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O;return((Y=this.data)==null?0:(G=Y.detailsLine)==null?0:(u=G.texts)==null?0:(O=u[0])==null?0:O.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 Y,G;return((Y=this.data)==null?0:(G=Y.description)==null?0:G.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var Y=_.So("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var Y=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return Y?Y.indexOf("/default_banner")!==-1:!0}}});
YZ.prototype.onClick=YZ.prototype.onClick;YZ.prototype.dataChanged=YZ.prototype.dataChanged;YZ.JSC$21291_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Q6("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],YZ.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],YZ.prototype,"rendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],YZ.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],YZ.prototype,"buttonUpdate",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],YZ.prototype,"kevlarWatchGrid",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],YZ.prototype,"centerAlignDescription",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],YZ.prototype,"truncateDomain",void 0);
_.S([_.R({computed:"computeButtonOverride(buttonUpdate)"}),_.V("design:type",Object)],YZ.prototype,"buttonOverride",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],YZ.prototype,"enableMonoStyle",void 0);_.S([_.f("data.detailsLine.adRating.ratingText"),_.V("design:type",Object),_.V("design:paramtypes",[])],YZ.prototype,"getRating",null);_.S([_.f("getRating"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],YZ.prototype,"computeRatingHidden",null);
_.S([_.f("data.detailsLine.adRating.ratingIcon.iconType"),_.V("design:type",Object),_.V("design:paramtypes",[])],YZ.prototype,"iconType",null);_.S([_.f("data.detailsLine.texts.0.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],YZ.prototype,"getDetailsLine",null);_.S([_.f("getDetailsLine"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],YZ.prototype,"computeDetailsLineHidden",null);
_.S([_.f("data.description.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],YZ.prototype,"getDescriptionText",null);_.S([_.f("getDescriptionText"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],YZ.prototype,"computeDescriptionTextHidden",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],YZ.prototype,"interactionLoggingClientData",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],YZ.prototype,"hideBanner",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],YZ.prototype,"dataChanged",null);_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],YZ.prototype,"onClick",null);_.S([_.pD({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],YZ);
_.d(YZ,"ytd-action-companion-ad-renderer",function(){if(VaN!==void 0)return VaN;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return VaN=Y},{mode:2});var lQg;var Bhg;var G3=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonUpdate=_.F("web_modern_buttons");Y.hideLegacyBanner=_.F("enable_dsa_one_click_ata_translators_infeed_elements");Y.adInfoButtonStyle="mono";Y.adInfoButtonType="text";Y.noDotAdBadge=!0;return Y};
_.m(G3,_.Z);_.H=G3.prototype;_.H.getOnLayoutVisibleCallback=function(){var Y=_.So("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.onLayoutVisibleCallback:null};
_.H.getLayoutId=function(){var Y=_.So("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.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 Y=this.data.image.thumbnail.thumbnails[0];this.imageSrc=Y.url?_.cs(Y.url):void 0;this.imageWidth=Y.width||0;this.imageHeight=Y.height||0}this.data.clickthroughEndpoint&&_.z(this.data.clickthroughEndpoint,_.SK)&&(Y=_.z(this.data.clickthroughEndpoint,_.SK).url,_.F("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
Y||"":Y?(Y=_.cs(Y),this.clickThroughUrl=_.Bs(Y)):this.clickThroughUrl=void 0);(Y=this.getOnLayoutVisibleCallback())&&Y()}};
_.H.onClick=function(Y){_.hf(_.wG(Y),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(Y)};
_.H.handleClick=function(){var Y=this;this.data&&this.data.clickthroughEndpoint&&(_.$s(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(G){Y.macroReplacementBehavior.sendServiceRequestAction([G])}),_.qZ(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.H.onLoad=function(){_.sK(this.hostElement,"yt-refit-popups-action")};
_.Uk.Object.defineProperties(G3.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var Y=_.So("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var Y=_.So("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.interactionLoggingClientData:null}}});
G3.prototype.onLoad=G3.prototype.onLoad;G3.prototype.onClick=G3.prototype.onClick;G3.prototype.dataChanged=G3.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],G3.prototype,"rendererBehavior",void 0);_.S([_.x(fex.YtMacroReplacementBehavior),_.V("design:type",Object)],G3.prototype,"macroReplacementBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],G3.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],G3.prototype,"buttonUpdate",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],G3.prototype,"hideLegacyBanner",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],G3.prototype,"adInfoButtonStyle",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],G3.prototype,"adInfoButtonType",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],G3.prototype,"macros",null);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],G3.prototype,"interactionLoggingClientData",null);_.S([_.R(),_.V("design:type",String)],G3.prototype,"clickThroughUrl",void 0);_.S([_.R(),_.V("design:type",_.jp)],G3.prototype,"imageSrc",void 0);_.S([_.R(),_.V("design:type",Number)],G3.prototype,"imageWidth",void 0);_.S([_.R(),_.V("design:type",Number)],G3.prototype,"imageHeight",void 0);_.S([_.R(),_.V("design:type",Object)],G3.prototype,"noDotAdBadge",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],G3.prototype,"dataChanged",null);_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],G3.prototype,"onClick",null);_.S([_.Yo("load"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],G3.prototype,"onLoad",null);_.S([_.pD({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],G3);
_.d(G3,"ytd-image-companion-renderer",function(){if(Bhg!==void 0)return Bhg;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Bhg=Y},{mode:2});var $Y9;var uz=function(){return _.Z.apply(this,arguments)||this};
_.m(uz,_.Z);_.H=uz.prototype;_.H.dataChanged=function(){this.set("data.adBadge",uz.JSC$21300_DEFAULT_AD_BADGE_RENDERER);if(this.data){var Y=this.getOnLayoutVisibleCallback();Y&&Y()}};
_.H.getOnLayoutVisibleCallback=function(){var Y=_.So("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.onLayoutVisibleCallback:null};
_.H.getLayoutId=function(){var Y=_.So("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.layoutId:null};
_.H.onCompanionClicked=function(Y){this.data&&(Y.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.qZ(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.H.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var Y=_.N5(),G=this.getLayoutId(),u=this.data.clickToAdvSiteEndpoint;Y&&G&&_.F("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?Y.getPlayerPromise().then(function(O){(new _.F7(O)).executeCommand(u,G)}):_.$s(this.hostElement,"yt-navigate",{endpoint:u})}};
_.H.sendTrackingPings=function(Y){if(Y&&Y.length!==0&&Y[0].loggingUrls&&(Y=Y[0].loggingUrls.map(this.getBaseUrl)))for(var G=0;G<Y.length;G++)_.jV(Y[G])};
_.H.getBaseUrl=function(Y){return Y.baseUrl||""};
_.Uk.Object.defineProperties(uz.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var Y=_.So("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.interactionLoggingClientData:null}}});
uz.prototype.onCompanionClicked=uz.prototype.onCompanionClicked;uz.prototype.dataChanged=uz.prototype.dataChanged;uz.JSC$21300_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Q6("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],uz.prototype,"data",void 0);_.S([_.Ox("#title"),_.V("design:type",HTMLElement)],uz.prototype,"shopTitle",void 0);
_.S([_.Ex("data.impressionEndpoints"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uz.prototype,"dataChanged",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],uz.prototype,"interactionLoggingClientData",null);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],uz.prototype,"onCompanionClicked",null);
_.S([_.pD({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],uz);
_.d(uz,"ytd-shopping-companion-renderer",function(){if($Y9!==void 0)return $Y9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return $Y9=Y},{mode:1});_.hR(_.D(function(Y){var G=Y.data;Y=_.UV({visibilityCallback:function(O){var Q,M=(Q=G().interaction)==null?void 0:Q.onFirstVisible;O&&M&&_.W3(M)},
showOption:_.B9});var u=_.fK(function(){return G().interaction},iy9);
_.iF(function(){var O,Q;Q=(Q=_.So("yt.www.ads.eventcache.getLastCompanionData"))?(Q=Q())&&Q.onLayoutVisibleCallback:null;(O=Q)==null||O()},"Zj");
return _.T("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.U3(function(O){_.sK(O.currentTarget,"yt-refit-popups-action")}),
el:_.iq(Y,u),"aria-label":function(){var O,Q;return(O=G().interaction)==null?void 0:(Q=O.accessibility)==null?void 0:Q.label}},_.T("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.T(_.HE,{data:function(){return G().adImage}},{adImageViewModel:function(O){return _.T(_.q8,{data:O.data,
targetHeight:80,customCommandResolver:iy9})}})),_.T("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.T("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.T(_.HE,{data:function(){return G().adBadge}},{adBadgeViewModel:function(O){return _.T(_.YB,{data:O.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.T("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.T(_.HE,{data:function(){return G().menu}},{buttonViewModel:_.$Y}))))},"$j"),"banner-image-layout-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=Y.data;Y=_.UV({visibilityCallback:function(O){var Q,M=(Q=G().interaction)==null?void 0:Q.onFirstVisible;O&&M&&_.W3(M)},
showOption:_.B9});var u=_.fK(function(){return G().interaction},R3x);
_.iF(function(){var O,Q;Q=(Q=_.So("yt.www.ads.eventcache.getLastCompanionData"))?(Q=Q())&&Q.onLayoutVisibleCallback:null;(O=Q)==null||O()},"ak");
return _.T("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.iq(Y,u)},_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.T(_.HE,{data:function(){return G().adImage}},{adImageViewModel:function(O){return _.T(_.q8,{data:O.data,
targetHeight:80,customCommandResolver:R3x})}})),_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.T(_.HE,{data:function(){return G().adAvatarLockup}},{adAvatarLockupViewModel:function(O){return _.T(yOb,{data:O.data,
customCommandResolver:R3x})}})),_.T(_.HE,{data:function(){return G().adButton}},{adButtonViewModel:function(O){return _.T(_.sM,{data:O.data,
customCommandResolver:R3x})}}),_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.T(_.HE,{data:function(){return G().menu}},{buttonViewModel:_.$Y}))))},"bk"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.AC}});var qcS={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"},ON=function(){var Y=_.Z.apply(this,arguments)||this;Y.updateCompanionDataJobId=0;Y.contentVideoId=null;Y.player=null;Y.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return Y};
_.m(ON,_.Z);_.H=ON.prototype;_.H.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:qcS}}};
_.H.attached=function(){var Y=this,G=_.N5();G&&G.getPlayerPromise().then(function(u){Y.getCachedDataAndListen(u)})};
_.H.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.H.updateRendererStamper=function(){var Y={};if(this.data)for(var G in qcS)if(this.data[G]){Y[G]=this.data[G];break}if(this.oneofRenderer!=void 0||Object.keys(Y).length)this.oneofRenderer=Y};
_.H.getCachedDataAndListen=function(Y){var G=this.retrieveCachedCompanionData();G&&Object.keys(G).length&&this.receiveCompanionData(G);this.ytPlayerListenerBehavior.listenToPlayerEvent(Y,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=Y};
_.H.retrieveCachedCompanionData=function(){return _.OI.yt&&_.OI.yt.www&&_.OI.yt.www.ads&&_.OI.yt.www.ads.eventcache&&_.OI.yt.www.ads.eventcache.getLastCompanionData?_.OI.yt.www.ads.eventcache.getLastCompanionData():null};
_.H.receiveCompanionData=function(Y){Y&&Object.keys(Y).length?(this.contentVideoId=Y.contentVideoId,this.setCompanionData(Y)):this.setCompanionData(Y)};
_.H.setCompanionData=function(Y){this.cancelPendingCompanionAdJobs();if(Y){this.updateCompanionDataJobId=0;for(var G in qcS)qcS.hasOwnProperty(G)&&(this.data[G]=void 0);Y.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",Y.shoppingCompanionCarouselRenderer):Y.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",Y.imageCompanionAdRenderer):Y.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",Y.actionCompanionAdRenderer),_.sK(this.hostElement,
"yt-hide-unlimited-offer-module"),_.sK(this.hostElement,"yt-hide-tvfilm-offer-module")):Y.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",Y.bannerImageLayoutViewModel):Y.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",Y.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.H.dataChanged=function(){var Y=this,G=_.N5();G?G.getPlayerPromise().then(function(u){Y.contentVideoId&&u.getVideoUrl().includes("v="+Y.contentVideoId)||(Y.cancelPendingCompanionAdJobs(),Y.updateRendererStamper())}):_.N3(Error("Tl"))};
_.H.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.AN.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.H.handleCompanionAdClicked=function(Y,G){this.player.onAdUxClicked(Y,G);this.player.pauseVideo()};
ON.prototype.dataChanged=ON.prototype.dataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ON.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],ON.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ON.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",_.wW)],ON.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ON.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],ON.prototype,"oneofRenderer",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ON.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],ON);
_.d(ON,"ytd-companion-slot-renderer",function(){if(lQg!==void 0)return lQg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return lQg=Y},{mode:2});var sFj;var Qw=function(){return _.Z.apply(this,arguments)||this};
_.m(Qw,_.Z);Qw.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Qw.prototype.dataChanged=Qw.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Qw.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Qw.prototype,"companionSlotData",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qw.prototype,"dataChanged",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Qw);
_.d(Qw,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(sFj!==void 0)return sFj;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return sFj=Y},{mode:1});var cOw={};cOw.YtVisibilityRootBehavior=[_.HF1.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.ZM(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.DE("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var Y=_.DE("INNERTUBE_CLIENT_NAME")!=="WEB";_.F("kevlar_use_vimio_behavior")&&Y&&_.eOR()}}];var MB={};MB.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(Y){Y.detail.contextProvider=this;Y.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
cOw.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.RS();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(Y){var G=this;this.pageCount+=1;_.F("kevlar_use_vimio_behavior")&&(_.DE("INNERTUBE_CLIENT_NAME")==="WEB"?_.AN.addJob(function(){G.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(Y)},
loadPage_:function(Y){this.data=Y},
ytPageBehaviorActiveObserver_:function(Y){var G=this;_.F("kevlar_use_vimio_behavior")&&(Y?_.DE("INNERTUBE_CLIENT_NAME")==="WEB"?_.AN.addJob(function(){G.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(Y){if(!this.setScrollTopJobId_){var G=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){G.setScrollTopJobId_=0;var u=_.sH().resolve(_.q3(_.tf));u&&_.Sx(u);this.getPageScrollingElement().scrollTop=Y}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.xS(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];var UYg;var vvB;var JOw;var Ymo;var HR=function(){var Y=_.Z.apply(this,arguments)||this;Y.originalQuery=null;Y.originalEndpoint=null;return Y};
_.m(HR,_.Z);HR.prototype.computeShowOriginalQueryWithoutEndpoint_=function(Y,G){return!(!Y||G)};
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],HR.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],HR.prototype,"correctedText",void 0);_.S([_.R(),_.V("design:type",Object)],HR.prototype,"correctedQuery",void 0);_.S([_.R(),_.V("design:type",Object)],HR.prototype,"correctedEndpoint",void 0);_.S([_.R(),_.V("design:type",Object)],HR.prototype,"originalText",void 0);_.S([_.R(),_.V("design:type",Object)],HR.prototype,"originalQuery",void 0);
_.S([_.R(),_.V("design:type",Object)],HR.prototype,"originalEndpoint",void 0);_.S([_.R({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.V("design:type",Boolean)],HR.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.S([_.Ff({is:"yt-search-query-correction",disableElementRegistration:!0})],HR);
_.d(HR,"yt-search-query-correction",function(){if(Ymo===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;JOw===void 0&&(JOw=document.createElement("template"));var O=JOw;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Ymo=Y}Y=Ymo;return Y},{mode:2});_.Px("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var GEV=function(){return _.Z.apply(this,arguments)||this};
_.m(GEV,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],GEV.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],GEV.prototype,"data",void 0);_.S([_.Ff({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],GEV);
_.d(GEV,"yt-did-you-mean-renderer",function(){if(vvB===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;UYg===void 0&&(UYg=document.createElement("template"));var O=UYg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);vvB=Y}Y=vvB;return Y},{mode:2});var u5x;var Ofx;_.Px("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var QTg=function(){return _.Z.apply(this,arguments)||this};
_.m(QTg,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],QTg.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],QTg.prototype,"data",void 0);_.S([_.Ff({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],QTg);
_.d(QTg,"yt-including-results-for-renderer",function(){if(Ofx===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;u5x===void 0&&(u5x=document.createElement("template"));var O=u5x;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Ofx=Y}Y=Ofx;return Y},{mode:2});var Muo;var HfN;_.Px("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var EN=function(){return _.Z.apply(this,arguments)||this};
_.m(EN,_.Z);EN.prototype.computeExtraClasses_=function(Y,G){var u="";Y&&(u+=" "+Y.toLowerCase().replace(/_/g,"-"));G&&(u+=" "+G.toLowerCase().replace(/_/g,"-"));return u};
EN.prototype.computeUrlImg_=function(){var Y=this.data;Y.image&&(_.l0(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.dH(Y.image.thumbnails,Number.MAX_VALUE)+")")};
EN.prototype.computeUrlImg_=EN.prototype.computeUrlImg_;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],EN.prototype,"data",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EN.prototype,"computeUrlImg_",null);_.S([_.Ff({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],EN);
_.d(EN,"yt-music-pass-feature-info-renderer",function(){if(HfN===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Muo===void 0&&(Muo=document.createElement("template"));var O=Muo;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);HfN=Y}Y=HfN;return Y},{mode:2});var EFx;var tuN;_.Px("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var KMw=function(){return _.Z.apply(this,arguments)||this};
_.m(KMw,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],KMw.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],KMw.prototype,"data",void 0);_.S([_.Ff({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],KMw);
_.d(KMw,"yt-no-results-found-showing-results-for-renderer",function(){if(tuN===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;EFx===void 0&&(EFx=document.createElement("template"));var O=EFx;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);tuN=Y}Y=tuN;return Y},{mode:2});var a3w;var T59;_.Px("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var LMw=function(){return _.Z.apply(this,arguments)||this};
_.m(LMw,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],LMw.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],LMw.prototype,"data",void 0);_.S([_.Ff({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],LMw);
_.d(LMw,"yt-results-without-quotes-renderer",function(){if(T59===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;a3w===void 0&&(a3w=document.createElement("template"));var O=a3w;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);T59=Y}Y=T59;return Y},{mode:2});var gFN;var Xhy;_.Px("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var PrB=function(){return _.Z.apply(this,arguments)||this};
_.m(PrB,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],PrB.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],PrB.prototype,"data",void 0);_.S([_.Ff({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],PrB);
_.d(PrB,"yt-search-no-results-renderer",function(){if(Xhy===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;gFN===void 0&&(gFN=document.createElement("template"));var O=gFN;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Xhy=Y}Y=Xhy;return Y},{mode:2});var I3b;var kEB;_.Px("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var nFy=function(){return _.Z.apply(this,arguments)||this};
_.m(nFy,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],nFy.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],nFy.prototype,"data",void 0);_.S([_.Ff({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],nFy);
_.d(nFy,"yt-showing-results-for-renderer",function(){if(kEB===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;I3b===void 0&&(I3b=document.createElement("template"));var O=I3b;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);kEB=Y}Y=kEB;return Y},{mode:2});var FMw;var phx;_.Px("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var t9=function(){return _.Z.apply(this,arguments)||this};
_.m(t9,_.Z);
t9.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"}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],t9.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],t9.prototype,"data",void 0);_.S([_.Ff({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],t9);
_.d(t9,"yt-offer-item-expanded-renderer",function(){if(phx===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;FMw===void 0&&(FMw=document.createElement("template"));var O=FMw;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);phx=Y}Y=phx;return Y},{mode:2});var zXg;var m0j;_.Px("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Kv=function(){return _.Z.apply(this,arguments)||this};
_.m(Kv,_.Z);
Kv.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"}}}}};
Kv.prototype.computeFullWidthMode=function(Y){return!(!Y||!Y.fullWidthMode)};
Kv.prototype.computeBorderlessMode=function(Y){return!(!Y||!Y.borderlessMode)};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Kv.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Kv.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.V("design:type",Boolean)],Kv.prototype,"fullWidthMode",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.V("design:type",Boolean)],Kv.prototype,"borderlessMode",void 0);_.S([_.Ff({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Kv);
_.d(Kv,"yt-offer-item-renderer",function(){if(m0j===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;zXg===void 0&&(zXg=document.createElement("template"));var O=zXg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);m0j=Y}Y=m0j;return Y},{mode:2});var WMb;var r6w;_.Px("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var a5=function(){return _.Z.apply(this,arguments)||this};
_.m(a5,_.Z);a5.prototype.computeAriaLevel_=function(Y){return this.getLevelID_(Y)};
a5.prototype.getLevelID_=function(Y){return(Y=Y.match(/[0-9]+$/))&&Y.length==1?Y[0]:"1"};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],a5.prototype,"data",void 0);_.S([_.R({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.V("design:type",String)],a5.prototype,"ariaLevel",void 0);_.S([_.R({value:"heading",reflectToAttribute:!0}),_.V("design:type",String)],a5.prototype,"role",void 0);
_.S([_.R({value:-1,reflectToAttribute:!0}),_.V("design:type",Number)],a5.prototype,"tabindex",void 0);_.S([_.Ff({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],a5);
_.d(a5,"yt-subscription-product-header-renderer",function(){if(r6w===void 0){var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;WMb===void 0&&(WMb=document.createElement("template"));var O=WMb;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);r6w=Y}Y=r6w;return Y},{mode:2});var x0o;var f3w;_.Px("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var T3=function(){return _.Z.apply(this,arguments)||this};
_.m(T3,_.Z);T3.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:_.IS("menuRenderer"),events:!0}}};
T3.prototype.onStampFinished_=function(){_.l0(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
T3.prototype.onStampFinished_=T3.prototype.onStampFinished_;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],T3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],T3.prototype,"data",void 0);_.S([_.Yo("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T3.prototype,"onStampFinished_",null);
_.S([_.Ff({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],T3);
_.d(T3,"yt-subscription-product-renderer",function(){if(f3w===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;x0o===void 0&&(x0o=document.createElement("template"));var O=x0o;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);f3w=Y}Y=f3w;return Y},{mode:2});var Crx;var y6b;_.Px("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Lv=function(){return _.Z.apply(this,arguments)||this};
_.m(Lv,_.Z);Lv.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Lv.prototype.imageScrimColorValuesChanged_=function(){var Y,G=(Y=this.data)==null?void 0:Y.imageScrimColorValues;_.l0(this.hostElement).querySelector("#scrim").style.backgroundColor=G?_.nB(G[0]):"transparent"};
Lv.prototype.imageScrimColorValuesChanged_=Lv.prototype.imageScrimColorValuesChanged_;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Lv.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Lv.prototype,"data",void 0);
_.S([_.GO("data.imageScrimColorValues"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lv.prototype,"imageScrimColorValuesChanged_",null);_.S([_.Ff({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Lv);
_.d(Lv,"yt-subscription-product-upsell-offer-renderer",function(){if(y6b===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Crx===void 0&&(Crx=document.createElement("template"));var O=Crx;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);y6b=Y}Y=y6b;return Y},{mode:2});var eXb;var A69;var oFb;var ifo;var RXb;var whS;var gy=function(){return _.Z.apply(this,arguments)||this};
_.m(gy,_.Z);gy.prototype.onYtServiceRequestError_=function(Y){_.Rd(this.hostElement,Y.detail.error.message)};
gy.prototype.onYtServiceRequestError_=gy.prototype.onYtServiceRequestError_;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],gy.prototype,"data",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],gy.prototype,"collapsible",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],gy.prototype,"isManageRed",void 0);
_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],gy.prototype,"onYtServiceRequestError_",null);_.S([_.Ff({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],gy);
_.d(gy,"yt-single-ypc-offer-renderer",function(){if(whS===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;RXb===void 0&&(RXb=document.createElement("template"));var O=RXb;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);whS=Y}Y=whS;return Y},{mode:2});var XK=function(){return _.Z.apply(this,arguments)||this};
_.m(XK,_.Z);XK.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],XK.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],XK.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],XK.prototype,"isManageRed",void 0);_.S([_.Ff({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],XK);
_.d(XK,"yt-single-ypc-offer-list-renderer",function(){if(ifo===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;oFb===void 0&&(oFb=document.createElement("template"));var O=oFb;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);ifo=Y}Y=ifo;return Y},{mode:2});var Zfw;var D0b;_.Px("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var PR=function(){return _.Z.apply(this,arguments)||this};
_.m(PR,_.Z);PR.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],PR.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],PR.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],PR.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],PR.prototype,"isManageRed",void 0);_.S([_.Ff({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],PR);
_.d(PR,"yt-ypc-offers-list-renderer",function(){if(D0b===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Zfw===void 0&&(Zfw=document.createElement("template"));var O=Zfw;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);D0b=Y}Y=D0b;return Y},{mode:2});_.Px("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var I5=function(){return _.Z.apply(this,arguments)||this};
_.m(I5,_.Z);
I5.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}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],I5.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],I5.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],I5.prototype,"data",void 0);_.S([_.Ff({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],I5);
_.d(I5,"yt-unlimited-manage-subscription-page-renderer",function(){if(A69===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;eXb===void 0&&(eXb=document.createElement("template"));var O=eXb;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);A69=Y}Y=A69;return Y},{mode:2});var hXw;var d0x;var kZ=function(){return _.Z.apply(this,arguments)||this};
_.m(kZ,_.Z);_.H=kZ.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(Y){Y.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.H.handleHeaderTap_=function(Y){Y.preventDefault();Y.stopPropagation();this.expandOffers_()};
_.H.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.H.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
kZ.prototype.dataChanged_=kZ.prototype.dataChanged_;_.S([_.x(_.Gp),_.V("design:type",Object)],kZ.prototype,"ironA11yKeysBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],kZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],kZ.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],kZ.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],kZ.prototype,"offersVisible_",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kZ.prototype,"dataChanged_",null);_.S([_.Ff({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],kZ);
_.d(kZ,"yt-collapsible-ypc-offer-renderer",function(){if(d0x===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;hXw===void 0&&(hXw=document.createElement("template"));var O=hXw;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);d0x=Y}Y=d0x;return Y},{mode:2});var bfN;var Smj;_.Px("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var nv=function(){return _.Z.apply(this,arguments)||this};
_.m(nv,_.Z);_.H=nv.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 Y=_.dH(this.data.backgroundImage.thumbnails,screen.width),G=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=G?"linear-gradient(180deg, "+G+"), url("+Y+")":"url("+Y+")";this.data.gtmId&&_.KI(this.data.gtmId,_.DE("GL",""))}};
_.H.onYtServiceRequestError_=function(Y){_.Rd(this.hostElement,Y.detail.error.message)};
_.H.getScrimLayerColorStops_=function(){var Y,G,u=(Y=this.data.unlimitedHeaderV2Data)==null?void 0:(G=Y.unlimitedHeaderV2Data)==null?void 0:G.scrimLayerColors;if(!u)return null;var O=100/u.length;return u.map(function(Q,M){M*=O;return _.nB(Q)+" "+M+"%"}).join(",")};
_.H.computeLogoWithPadding=function(Y){var G,u,O;return(Y=(G=Y.unlimitedLogoImage)==null?void 0:(u=G.thumbnails)==null?void 0:(O=u[0])==null?void 0:O.height)&&Y%31===0?!0:!1};
nv.prototype.onYtServiceRequestError_=nv.prototype.onYtServiceRequestError_;nv.prototype.dataChanged_=nv.prototype.dataChanged_;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],nv.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.S([_.R({computed:"computeLogoWithPadding(data)"}),_.V("design:type",Boolean)],nv.prototype,"logoWithPadding",void 0);
_.S([_.R(),_.V("design:type",Object)],nv.prototype,"data",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nv.prototype,"dataChanged_",null);_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],nv.prototype,"onYtServiceRequestError_",null);_.S([_.Ff({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],nv);
_.d(nv,"yt-unlimited-page-header-renderer",function(){if(Smj===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;bfN===void 0&&(bfN=document.createElement("template"));var O=bfN;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Smj=Y}Y=Smj;return Y},{mode:2});var N5o;var jTy;_.Px("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var FK=function(){return _.Z.apply(this,arguments)||this};
_.m(FK,_.Z);FK.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],FK.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],FK.prototype,"data",void 0);_.S([_.Ff({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],FK);
_.d(FK,"yt-unlimited-user-notification-renderer",function(){if(jTy===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;N5o===void 0&&(N5o=document.createElement("template"));var O=N5o;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);jTy=Y}Y=jTy;return Y},{mode:2});var Vux;var l3V;var B5y=function(){return _.Z.apply(this,arguments)||this};
_.m(B5y,_.Z);_.S([_.R(),_.V("design:type",Object)],B5y.prototype,"data",void 0);_.S([_.Ff({is:"yt-alert-renderer",disableElementRegistration:!0})],B5y);
_.d(B5y,"yt-alert-renderer",function(){if(l3V===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Vux===void 0&&(Vux=document.createElement("template"));var O=Vux;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);l3V=Y}Y=l3V;return Y},{mode:2});var Ydw=function(Y){_.Ey.call(this);this.JSC$21382_watchApi=Y;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;$0x(this);qm9(this);sTx(this);c6b(this);U0b(this);vFj(this);J6b(this)};
_.m(Ydw,_.Ey);var sTx=function(Y){var G=function(){_.F("kevlar_is_pupi_enabled")||pv(Y)};
Y.JSC$21382_watchApi.getRoot().addEventListener("yt-player-updated",G);Y.addOnDisposeCallback(function(){Y.JSC$21382_watchApi.getRoot().removeEventListener("yt-player-updated",G)})},U0b=function(Y){if(_.F("kevlar_endscreen_auto_theater_mode")){var G=Y.JSC$21382_watchApi.subscribeToActiveChanged(function(){GfS(Y)},!1);
Y.addOnDisposeCallback(G)}},$0x=function(Y){var G,u,O,Q,M;
_.a(function(t){if(t.nextAddress==1)return t.yield(Y.JSC$21382_watchApi.playerApi,2);G=t.yieldResult;u=function(K){K=!!K;uCy(Y)&&(K=K?2:1,_.SD.getInstance().setState(K,!0,!1))};
O=function(K){K&&kLo(_.Zs().getState())&&(_.qZ(Y.JSC$21382_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),Y.temporaryTheaterMode=!0)};
Q=function(K){_.F("kevlar_player_update_autonav_on_new_data")&&K.type==="newdata"&&(_.F("kevlar_is_pupi_enabled")||pv(Y))};
M=function(K){Y.onPlayerStateChange(K)};
_.F("kevlar_endscreen_auto_theater_mode")&&G.addEventListener("onAutonavCancelled",O);G.addEventListener("onAutonavChangeRequest",u);G.addEventListener("onVideoDataChange",Q);G.addEventListener("onStateChange",M);Y.addOnDisposeCallback(function(){G.removeEventListener("onAutonavChangeRequest",u);G.removeEventListener("onVideoDataChange",Q);G.removeEventListener("onStateChange",M);_.F("kevlar_endscreen_auto_theater_mode")&&G.removeEventListener("onAutonavCancelled",O)});
_.Sd(t)})},qm9=function(Y){Y.JSC$21382_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){Y.autonavCancelledBySignal=!0;
_.F("kevlar_is_pupi_enabled")||pv(Y)});
Y.JSC$21382_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(G,u,O){u&&pv(Y,O)});
Y.JSC$21382_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){uCy(Y)&&_.SD.getInstance().setState(2,!0,!0)});
Y.JSC$21382_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){uCy(Y)&&_.SD.getInstance().setState(1,!0,!0)});
Y.addOnDisposeCallback(function(){Y.JSC$21382_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");Y.JSC$21382_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");Y.JSC$21382_watchApi.unregisterActionHandler("yt-enable-autoplay-command");Y.JSC$21382_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},c6b=function(Y){var G=Y.JSC$21382_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){J6b(Y)}),u=Y.JSC$21382_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){vFj(Y)});
Y.addOnDisposeCallback(function(){Y.JSC$21382_watchApi.unsubscribeByKey(G);Y.JSC$21382_watchApi.unsubscribeByKey(u)})},J6b=function(Y){Y.autonavCancelledBySignal=!1;
_.F("kevlar_is_pupi_enabled")||pv(Y)},vFj=function(Y){var G=Y.JSC$21382_watchApi.getWatchNextResponse(),u,O;
var Q=(G=(O=_.z(G==null?void 0:(Q=G.playerOverlays)==null?void 0:(u=Q.playerOverlayRenderer)==null?void 0:u.autonavToggle,_.Cpl))==null?void 0:O.enabled)?2:1;_.F("kevlar_is_pupi_enabled")?_.SD.getInstance().setState(Q,!1,!1):pv(Y);_.F("web_persist_server_autonav_state_on_client")&&typeof G==="boolean"&&_.pq1(Q===2)},uCy=function(Y){if(Y.autonavCancelledBySignal)return!1;
var G,u,O,Q;return!!((G=Y.JSC$21382_watchApi.getWatchNextResponse())==null?0:(u=G.contents)==null?0:(O=u.twoColumnWatchNextResults)==null?0:(Q=O.autoplay)==null?0:Q.autoplay)};
Ydw.prototype.onPlayerStateChange=function(Y){if(Y===0){Y=!_.SD.getInstance().isAutoplaySetExplicitly();var G=this.JSC$21382_watchApi.getWatchNextResponse(),u,O,Q,M;G=_.z(G==null?void 0:(u=G.contents)==null?void 0:(O=u.twoColumnWatchNextResults)==null?void 0:(Q=O.autoplay)==null?void 0:(M=Q.autoplay)==null?void 0:M.autoplayExplicitChoiceDialogRenderer,_.BM1);uCy(this)&&Y&&G&&_.Jj.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:G},popupType:"DIALOG"}})}else GfS(this)};
var GfS=function(Y){Y.temporaryTheaterMode&&(Y.temporaryTheaterMode=!1,_.qZ(Y.JSC$21382_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},pv=function(Y,G){G=G===void 0?!1:G;
var u;_.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$21382_watchApi.playerApi,2);u=O.yieldResult;uCy(Y)?u.setAutonavState(_.SD.getInstance().getState(),G):u.setAutonavState(1,G);_.Sd(O)})};var Ot9={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",TICKET_SHELF_IN_SD:"TICKET_SHELF_IN_SD",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"};var MMb=function(Y){_.Ey.call(this);var G=this;this.JSC$21387_watchApi=Y;var u=this.JSC$21387_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){QQB(G)});
this.addOnDisposeCallback(function(){G.JSC$21387_watchApi.unsubscribeByKey(u)});
QQB(this)};
_.m(MMb,_.Ey);var QQB=function(Y){var G=Y.JSC$21387_watchApi.getPlayerResponse(),u=Y.JSC$21387_watchApi.getWatchNextResponse();if(!_.X5t(G==null?void 0:G.playabilityStatus,u==null?void 0:u.playerOverlays)){var O;var Q=G==null?void 0:(O=G.playabilityStatus)==null?void 0:O.errorScreen}Y.JSC$21387_watchApi.provideRenderingData("ERROR_SCREEN",Q)};var HtS=_.D(function(Y){return _.T("yt-player-grid-renderer",{class:_.s3("ytPlayerGridRendererHost",Y.className)},_.T(_.HE,{data:Y.data},{lockupViewModel:function(G){return _.T(_.Ou,{data:G.data,useOverlayStyling:!0})}}))},"ck");var EEb=_.D(function(Y){var G=Y.data;Y=_.F("web_watch_video_details_hide_subtitle");var u=_.F("web_watch_video_details_single_line_title"),O=_.U3(function(){var K=G().onTap;K&&_.sH().resolve(_.rH).resolveCommand(K)}),Q={},M={},t={};
return _.T("yt-player-overlay-video-details-renderer",{class:_.s3("ytPlayerOverlayVideoDetailsRendererHost",(Q.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.F("web_watch_video_details_transparent_background"),Q)),"on:click":O,role:"button"},_.T("h2",{class:_.s3("ytPlayerOverlayVideoDetailsRendererTitle",(M.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return u},M))},_.T(_.eO,{text:function(){return G().title}})),_.T("div",{class:_.s3("ytPlayerOverlayVideoDetailsRendererSubtitle",
(t.ytPlayerOverlayVideoDetailsRendererHideSubtitle=Y,t))},_.T(_.eO,{text:function(){return G().subtitle}})))},"dk");var z3={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},tMg=_.D(function(Y){var G=Y.data;var u=_.Hx(_.pz),O=_.F("web_watch_action_bar_resize_buttons"),Q=_.F("web_watch_video_action_dsdvb"),M=_.F("delhi_modern_web_player_icons")&&!_.F("enable_web_delhi_icons");Y=_.F("delhi_modern_web_player_disable_frosted_glass");var t=_.F("delhi_modern_web_player_compact_video_actions_controls"),
K=_.F("web_player_quick_action_buttons_icon_only"),L=function(){var P=O&&!u(),I={};t?I.size="S":P&&(I.size="M");K&&(I.iconPosition="icon-only");if(Object.keys(I).length!==0)return I},g={};
return _.T("yt-player-quick-action-buttons",{class:_.s3("ytPlayerQuickActionButtonsHost",(g.ytPlayerQuickActionButtonsHostCompactControls=function(){return!u()||t},g.ytPlayerQuickActionButtonsHostDisableBackdropFilter=Y,g))},_.T(_.rc,{each:function(){var P=G();
if(M){P=JSON.parse(JSON.stringify(P));for(var I=_.E(P),k=I.next();!k.done;k=I.next()){var n=k.value,p=void 0;k=_.z((p=_.z(n,_.e6))==null?void 0:p.toggleButtonViewModel,_.eD);var W=void 0;p=_.z((W=_.z(n,_.AV))==null?void 0:W.toggleButtonViewModel,_.eD);W=_.z(n,_.Ck);n=_.z(n,_.eD);if(k)p=_.z(k.defaultButtonViewModel,_.Ck),k=_.z(k.toggledButtonViewModel,_.Ck),p&&p.iconName&&(p.iconName=z3[p.iconName]),k&&k.iconName&&(k.iconName=z3[k.iconName]);else if(p)k=_.z(p.defaultButtonViewModel,_.Ck),p=_.z(p.toggledButtonViewModel,
_.Ck),k&&k.iconName&&(k.iconName=z3[k.iconName]),p&&p.iconName&&(p.iconName=z3[p.iconName]);else if(W)W.iconName&&(W.iconName=z3[W.iconName]);else if(n){k=_.z(n.defaultButtonViewModel,_.Ck);p=_.z(n.toggledButtonViewModel,_.Ck);n=void 0;if((n=k)==null?0:n.iconName)k.iconName=z3[k.iconName];k=void 0;if((k=p)==null?0:k.iconName)p.iconName=z3[p.iconName]}}}Q&&(P=wHo(P));return P}},function(P){return _.T(_.HE,{data:function(){return P}},{buttonViewModel:function(I){return _.T(_.$Y,{data:I.data,
buttonOverrides:L})},
likeButtonViewModel:function(I){return _.T(_.xb,{data:I.data,buttonShapeOverrideables:L})},
dislikeButtonViewModel:function(I){return _.T(_.rz,{data:I.data,buttonShapeOverrideables:L})},
toggleButtonViewModel:function(I){return _.T(_.Tr,{data:I.data,buttonShapeOverrides:L})}})}))},"ek");var a8V=function(Y){_.Ey.call(this);var G=this;this.JSC$21395_watchApi=Y;Y=_.E(_.IE({},void 0,"NNzZMe"));this.quickActionsViewModel=Y.next().value;this.setQuickActionsViewModel=Y.next().value;Y=_.E(_.IE({},void 0,"iORsec"));this.playerOverlayVideoDetailsRenderer=Y.next().value;this.setPlayerOverlayVideoDetailsRenderer=Y.next().value;Y=_.E(_.IE([],void 0,"dektd"));this.lockupViewModels=Y.next().value;this.setLockupViewModels=Y.next().value;Y=_.E(_.IE({},void 0,"Sp5Hqf"));this.commentsButton=Y.next().value;
this.setCommentsButton=Y.next().value;Y=_.E(_.IE({},void 0,"yDAoue"));this.descriptionButton=Y.next().value;this.setDescriptionButton=Y.next().value;var u=this.JSC$21395_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){KkB(G)});
this.addOnDisposeCallback(function(){G.JSC$21395_watchApi.unsubscribeByKey(u)});
KkB(this)};
_.m(a8V,_.Ey);
var KkB=function(Y){var G,u,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e,w,B,N,h,q,U,Mj,Xt;_.a(function(ka){if(ka.nextAddress==1)return ka.yield(Y.JSC$21395_watchApi.playerApi,2);G=ka.yieldResult;u=Y.JSC$21395_watchApi.getWatchNextResponse();M=(O=u)==null?void 0:(Q=O.playerOverlays)==null?void 0:Q.playerOverlayRenderer;K=_.z((t=M)==null?void 0:t.fullscreenQuickActionsBar,_.xHl);(g=(L=Y).setQuickActionsViewModel)==null||g.call(L,K||{});K&&TIg(Y,G);k=(P=M)==null?void 0:(I=P.videoDetails)==null?void 0:I.playerOverlayVideoDetailsRenderer;
(p=(n=Y).setPlayerOverlayVideoDetailsRenderer)==null||p.call(n,k||{});k&&Lko(Y,G);if(_.F("web_player_use_external_grid_component")){var aU=[],Tg,iy,hY,dA,nT=u==null?void 0:(Tg=u.contents)==null?void 0:(iy=Tg.twoColumnWatchNextResults)==null?void 0:(hY=iy.secondaryResults)==null?void 0:(dA=hY.secondaryResults)==null?void 0:dA.results;if(nT)for(Tg=_.E(nT),iy=Tg.next();!iy.done;iy=Tg.next())if(iy=iy.value,iy.lockupViewModel)aU.push(iy);else if(hY=void 0,(hY=iy.itemSectionRenderer)==null?0:hY.contents)for(iy=
_.E(iy.itemSectionRenderer.contents),hY=iy.next();!hY.done;hY=iy.next())hY=hY.value,hY.lockupViewModel&&aU.push(hY);W=aU;(e=(C=Y).setLockupViewModels)==null||e.call(C,W||[]);gEw(Y,G)}B=_.z((w=M)==null?void 0:w.commentsButton,_.eD);(h=(N=Y).setCommentsButton)==null||h.call(N,B||{});B&&X6j(Y,G);U=_.z((q=M)==null?void 0:q.descriptionButton,_.Ck);(Xt=(Mj=Y).setDescriptionButton)==null||Xt.call(Mj,U||{});U&&PnN(Y,G);_.Sd(ka)})},TIg=function(Y,G){if(!Y.quickActionButtonsContainer)if(G.setFullscreenQuickActions){Y.quickActionButtonsContainer=
document.createElement("div");
G.setFullscreenQuickActions(Y.quickActionButtonsContainer);var u=function(){return Y.quickActionsViewModel().quickActionButtons||[]},O=_.Ay(Y.quickActionButtonsContainer,function(){return _.T(tMg,{data:u})},"fk");
Y.addOnDisposeCallback(function(){G.setFullscreenQuickActions(void 0);O()})}else _.R0(new _.I2("setFullscreenQuickActions not defined",{playerApi:Object.keys(G),
isReady:G.isReady(),appState:G.getAppState()}))},Lko=function(Y,G){if(!Y.playerOverlayVideoDetailsRendererContainer)if(G.setPlayerOverlayVideoDetailsRenderer){Y.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
G.setPlayerOverlayVideoDetailsRenderer(Y.playerOverlayVideoDetailsRendererContainer);var u=_.Ay(Y.playerOverlayVideoDetailsRendererContainer,function(){return _.T(EEb,{data:Y.playerOverlayVideoDetailsRenderer})},"gk");
Y.addOnDisposeCallback(function(){G.setPlayerOverlayVideoDetailsRenderer(void 0);u()})}else _.R0(new _.I2("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(G),
isReady:G.isReady(),appState:G.getAppState()}))},gEw=function(Y,G){if(!Y.gridRendererContainer)if(G.setFullscreenGrid){Y.gridRendererContainer=document.createElement("div");
G.setFullscreenGrid(Y.gridRendererContainer);var u=_.Ay(Y.gridRendererContainer,function(){return _.T(HtS,{data:Y.lockupViewModels})},"hk");
Y.addOnDisposeCallback(function(){G.setFullscreenGrid(void 0);u()})}else _.R0(new _.I2("setFullscreenGrid not defined",{playerApi:Object.keys(G),
isReady:G.isReady(),appState:G.getAppState()}))},X6j=function(Y,G){if(!Y.commentsButtonContainer)if(G.setCommentsButton){Y.commentsButtonContainer=document.createElement("div");
G.setCommentsButton(Y.commentsButtonContainer);var u=_.Ay(Y.commentsButtonContainer,function(){return _.T(_.Tr,{data:Y.commentsButton})},"ik");
Y.addOnDisposeCallback(function(){G.setCommentsButton(void 0);u()})}else _.R0(new _.I2("setCommentsButton not defined",{playerApi:Object.keys(G),
isReady:G.isReady(),appState:G.getAppState()}))},PnN=function(Y,G){if(!Y.descriptionButtonContainer)if(G.setDescriptionButton){Y.descriptionButtonContainer=document.createElement("div");
G.setDescriptionButton(Y.descriptionButtonContainer);var u=_.Ay(Y.descriptionButtonContainer,function(){return _.T(_.$Y,{data:Y.descriptionButton})},"jk");
Y.addOnDisposeCallback(function(){G.setDescriptionButton(void 0);u()})}else _.R0(new _.I2("setDescriptionButton not defined",{playerApi:Object.keys(G),
isReady:G.isReady(),appState:G.getAppState()}))};var mn=function(Y){_.Ey.call(this);var G=this;this.JSC$21401_watchApi=Y;this.JSC$21401_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;Y=_.Eh(_.Zs(),_.pz,function(u){G.onFullscreenChanged(u)});
this.addOnDisposeCallback(Y);Y=_.Eh(_.Zs(),JF,function(u){G.onWatchScroll(u)});
this.addOnDisposeCallback(Y);_.F("kevlar_watch_while_v2")&&(Y=_.Eh(_.Zs(),_.FX,function(u){I89(G,u)}),this.addOnDisposeCallback(Y));
kfw(this);nEw(this);Fk9();this.onWatchScroll(JF(_.Zs().getState()));_.hy("START_IN_FULL_WINDOW_MODE")&&this.JSC$21401_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.m(mn,_.Ey);var kfw=function(Y){Y.JSC$21401_watchApi.registerActionHandler("yt-fullscreen-change-action",function(G){var u=Y.JSC$21401_watchApi.isActive();G&&!u||_.Zs().dispatch(_.V6({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!G}}))});
Y.addOnDisposeCallback(function(){Y.JSC$21401_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},nEw=function(Y){var G,u;
_.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$21401_watchApi.playerApi,2);G=O.yieldResult;u=function(){Y.onFullerscreenEduClicked()};
G.addEventListener("onFullerscreenEduClicked",u);Y.addOnDisposeCallback(function(){G.removeEventListener("onFullerscreenEduClicked",u)});
_.Sd(O)})};
mn.prototype.onFullscreenChanged=function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1)return G.isFullscreen=!!_.dJ(),O.yield(G.JSC$21401_watchApi.playerApi,2);u=O.yieldResult;G.JSC$21401_miniplayerActive||u.setFauxFullscreen(G.isFullscreen);if(Y&&(G.JSC$21401_watchApi.focusOnPlayer(),!G.fullerscreenEduButtonShownThisPlayback)){G.fullerscreenEduButtonShownThisPlayback=!0;var Q=_.LB("yt-fullerscreen-edu-button-shown-count")||0;_.TA("yt-fullerscreen-edu-button-shown-count",Q+1,31536E3);
G.updateFullerscreenEduButtonSubtleModeState()}_.Sd(O)})};
var I89=function(Y,G){var u;_.a(function(O){if(O.nextAddress==1)return Y.JSC$21401_miniplayerActive=G,O.yield(Y.JSC$21401_watchApi.playerApi,2);u=O.yieldResult;u.setFauxFullscreen(!Y.JSC$21401_miniplayerActive&&Y.isFullscreen);_.Sd(O)})};
mn.prototype.onWatchScroll=function(Y){var G=this,u,O;return _.a(function(Q){if(Q.nextAddress==1)return _.F("external_fullscreen_with_edu")?Q.yield(G.JSC$21401_watchApi.playerApi,2):Q.return();u=Q.yieldResult;O=Y<=0;G.shouldShowFullerscreenEdu!==O&&(G.shouldShowFullerscreenEdu=O,u.updateFullerscreenEduButtonVisibility(!G.shouldShowFullerscreenEdu));_.Sd(Q)})};
mn.prototype.onFullerscreenEduClicked=function(){this.JSC$21401_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var Y=_.LB("yt-fullerscreen-edu-button-click-count")||0;_.TA("yt-fullerscreen-edu-button-click-count",Y+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
mn.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var Y=this,G,u,O,Q,M,t;return _.a(function(K){if(K.nextAddress==1)return G=_.LB("yt-fullerscreen-edu-button-click-count")||0,u=_.LB("yt-fullerscreen-edu-button-shown-count")||0,O=_.Jy("external_fullscreen_button_click_threshold"),Q=_.Jy("external_fullscreen_button_shown_threshold"),M=G>=O||u>=Q,K.yield(Y.JSC$21401_watchApi.playerApi,2);t=K.yieldResult;t.updateFullerscreenEduButtonSubtleModeState(M);_.Sd(K)})};
mn.prototype.disposeInternal=function(){_.Ey.prototype.disposeInternal.call(this);var Y=_.dJ();_.F("kevlar_exit_fullscreen_leaving_watch")&&Y&&_.bc(Y)};
var Fk9=function(){if(_.F("web_watch_add_viewport_meta_tag")){var Y=document.querySelector("meta[name=viewport]"),G=document.head;G&&!Y&&(Y=document.createElement("meta"),Y.name="viewport",Y.content="width=device-width, initial-scale=1.0, viewport-fit=cover",G.appendChild(Y))}};var zEx=function(Y){_.Ey.call(this);var G=this;this.JSC$21404_watchApi=Y;this.jobId=0;this.pendingRequestId=void 0;var u=this.JSC$21404_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){p6j(G)});
this.addOnDisposeCallback(function(){G.JSC$21404_watchApi.unsubscribeByKey(u)});
p6j(this)};
_.m(zEx,_.Ey);var mDg=function(Y){_.AN.cancelJob(Y.jobId);Y.pendingRequestId=void 0},p6j=function(Y){mDg(Y);
var G=Zyy(Y.JSC$21404_watchApi.getWatchNextResponse());if(G){var u=250,O,Q=(O=_.z(G,_.fm_))==null?void 0:O.initialDelayMs;_.F("web_watch_updated_metadata_server_initial_delay")&&Q&&(u=Q);Y.jobId=_.AN.addLowPriorityJob(function(){return Y.fetchUpdatedMetadata(G)},u)}};
zEx.prototype.fetchUpdatedMetadata=function(Y,G){var u=this,O,Q,M,t,K,L,g,P,I,k,n,p,W,C,e;return _.a(function(w){switch(w.nextAddress){case 1:G&&(O={continuation:G});if(!_.F("web_get_updated_metadata_fantasy_panel_continuation_params")){w.jumpTo(2);break}Q=_.sH().resolve(_.IH);M="PAsports_fantasy";return w.yield(Q.isVisible(M,!0),3);case 3:w.yieldResult&&(g=(K=(t=Q).getUpdatePanelContinuationData)==null?void 0:(L=K.call(t,M))==null?void 0:L.updatePanelContinuationRequest)&&(O||(O={}),O.clientParams=
{panelContinuationParams:{panelContinuation:g}});case 2:P=_.sH().resolve(_.KB);if(!P)return _.o0(Error("Ul")),w.return();I={};u.pendingRequestId=I;return w.yield(_.iv(P,Y,O),4);case 4:k=w.yieldResult;if(I!==u.pendingRequestId)return w.return();W=(n=k)==null?void 0:(p=n.continuation)==null?void 0:p.timedContinuationData;((C=W)==null?0:C.continuation)&&((e=W)==null?0:e.timeoutMs)&&(u.jobId=_.AN.addLowPriorityJob(function(){return u.fetchUpdatedMetadata(Y,W.continuation)},W.timeoutMs));
_.Sd(w)}})};
zEx.prototype.disposeInternal=function(){_.Ey.prototype.disposeInternal.call(this);mDg(this)};var Wkx=_.D(function(Y){var G=_.U3(function(){var O=Y.data().videoId;if(Y.active())O=_.bg(O),_.sH().resolve(_.rH).resolveCommand(O);else{var Q=Y.playerApi(),M=Q.getAvailableAudioTracks(),t,K,L=(t=Y.sourceVideoConfig().audioTracks)==null?void 0:(K=t.find(function(g){return g.isDefaultForSource}))==null?void 0:K.id;
if(M=M.find(function(g){return g.getLanguageInfo().getId()===L}))Q.setAudioTrack(M,!0),Q.setCompositeParam({activeVideoId:O}),Y.setActiveSourceId(O)}}),u={};
return _.T("ytw-composite-source-video-overlay",{class:_.s3("ytwCompositeSourceVideoOverlayHost",(u.ytwCompositeSourceVideoOverlayActive=Y.active,u.ytwCompositeSourceVideoOverlayInteracting=Y.interacting,u)),style:_.Yh({left:function(){var O;return((O=Y.data().topLeftCornerX)!=null?O:0)*100+"%"},
top:function(){var O;return((O=Y.data().topLeftCornerY)!=null?O:0)*100+"%"},
width:function(){var O;return((O=Y.data().width)!=null?O:0)*100+"%"},
height:function(){var O;return((O=Y.data().height)!=null?O:0)*100+"%"}}),
"on:click":G},_.T("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"kk");var raS=_.D(function(Y){var G=_.E(_.SN(function(){var t,K=(t=Y.data().sources)==null?void 0:t.find(function(L){return L.isActive});
if(K)return K.videoId})),u=G.next().value,O=G.next().value;
G=_.E(_.IE(!1,void 0,"rmRJ8d"));var Q=G.next().value,M=G.next().value;return _.T("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.U3(function(){M(!0)}),
"on:mouseout":_.U3(function(){M(!1)})},_.T(_.X,{cond:function(){return Y.data().sources},
then:function(t){return _.T(_.rc,{each:t},function(K){return _.T(Wkx,{data:K,active:function(){return K.videoId===u()},
setActiveSourceId:O,interacting:Q,playerApi:Y.playerApi,sourceVideoConfig:function(){return DzN(Y.compositeVideoConfig(),K.videoId)}})})}}))},"lk");var Cn9=function(Y){_.Ey.call(this);this.JSC$21419_watchApi=Y;Y=_.E(_.IE({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=Y.next().value;this.setCompositeVideoOverlayRenderer=Y.next().value;Y=_.E(_.IE({},void 0,"OlaJpc"));this.compositeVideoConfig=Y.next().value;this.setCompositeVideoConfig=Y.next().value;xDb(this);f8o(this)};
_.m(Cn9,_.Ey);var xDb=function(Y){var G=Y.JSC$21419_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){f8o(Y)});
Y.addOnDisposeCallback(function(){Y.JSC$21419_watchApi.unsubscribeByKey(G)})},ya9=function(Y){var G;
return _.a(function(u){if(u.nextAddress==1)return u.yield(Y.JSC$21419_watchApi.playerApi,2);G=u.yieldResult;G.setCompositeVideoOverlayRendererComponent(Y.container);_.Sd(u)})},eE9=function(Y){var G;
return _.a(function(u){if(u.nextAddress==1)return u.yield(Y.JSC$21419_watchApi.playerApi,2);G=u.yieldResult;G.setCompositeVideoOverlayRendererComponent(void 0);_.Sd(u)})},AaV=function(Y){var G,u;
return _.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$21419_watchApi.playerApi,2);G=O.yieldResult;Y.container=document.createElement("div");u=_.Ay(Y.container,function(){return _.T(raS,{data:Y.compositeVideoOverlayRenderer,compositeVideoConfig:Y.compositeVideoConfig,playerApi:G})},"mk");
Y.addOnDisposeCallback(u);_.Sd(O)})},f8o=function(Y){var G,u,O,Q,M,t,K,L;
_.a(function(g){return g.nextAddress==1?(G=Y.JSC$21419_watchApi.getPlayerResponse(),M=_.z((u=G)==null?void 0:(O=u.overlay)==null?void 0:(Q=O.playerControlsOverlayRenderer)==null?void 0:Q.compositeVideoOverlay,ml9),L=(t=G)==null?void 0:(K=t.playerConfig)==null?void 0:K.compositeVideoConfig,M&&Y.setCompositeVideoOverlayRenderer(M),L&&Y.setCompositeVideoConfig(L),M&&L?Y.container?g.jumpTo(6):g.yield(AaV(Y),6):oEB(Y)?g.yield(eE9(Y),0):g.jumpTo(0)):oEB(Y)?g.jumpTo(0):g.yield(ya9(Y),0)})},oEB=function(Y){var G;
return!((G=Y.container)==null||!G.parentElement)};
Cn9.prototype.disposeInternal=function(){oEB(this)&&eE9(this);_.Ey.prototype.disposeInternal.call(this)};var DDb=function(Y){_.Ey.call(this);var G=this;this.JSC$21425_watchApi=Y;var u=this.JSC$21425_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var O=G.JSC$21425_watchApi.getPlayerResponse();if(O){var Q,M;if(O=_.z((Q=O.endscreen)==null?void 0:(M=Q.endscreenRenderer)==null?void 0:M.hideButton,_.eD)){var t;(t=G.setEndscreenHideButton)==null||t.call(G,O);itN(G)}}});
this.addOnDisposeCallback(function(){G.JSC$21425_watchApi.unsubscribeByKey(u)});
Y=_.E(_.IE({},void 0,"ER3tqb"));this.endscreenHideButton=Y.next().value;this.setEndscreenHideButton=Y.next().value;REB(this);w6x(this);Ztb(this)};
_.m(DDb,_.Ey);var itN=function(Y){var G,u;_.a(function(O){if(O.nextAddress==1)return Y.creatorEndscreenHideButtonContainer?O.return():O.yield(Y.JSC$21425_watchApi.playerApi,2);G=O.yieldResult;Y.creatorEndscreenHideButtonContainer=document.createElement("div");_.jG(Y.creatorEndscreenHideButtonContainer,!1);G.setCreatorEndscreenHideButton(Y.creatorEndscreenHideButtonContainer);u=_.Ay(Y.creatorEndscreenHideButtonContainer,function(){return _.T(_.Tr,{data:Y.endscreenHideButton,useOutlinedIcon:!0})},"nk");
Y.addOnDisposeCallback(function(){u();var Q;(Q=G)==null||Q.setCreatorEndscreenHideButton(void 0)});
_.Sd(O)})},REB=function(Y){var G,u;
_.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$21425_watchApi.playerApi,2);G=O.yieldResult;u=function(){Y.creatorEndscreenHideButtonContainer&&_.jG(Y.creatorEndscreenHideButtonContainer,!0)};
G.addEventListener("endscreenelementshown",u);Y.addOnDisposeCallback(function(){var Q;(Q=G)==null||Q.removeEventListener("endscreenelementshown",u)});
_.Sd(O)})},w6x=function(Y){var G=function(){Y.creatorEndscreenHideButtonContainer&&_.jG(Y.creatorEndscreenHideButtonContainer,!1)},u=Y.JSC$21425_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",G),O=Y.JSC$21425_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",G);
Y.addOnDisposeCallback(function(){Y.JSC$21425_watchApi.unsubscribeByKey(u);Y.JSC$21425_watchApi.unsubscribeByKey(O)})},Ztb=function(Y){Y.JSC$21425_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(G){var u=_.z(G,$JB);
Y.JSC$21425_watchApi.playerApi.then(function(O){O==null||O.setCreatorEndscreenVisibility(!!u.hide)})});
Y.addOnDisposeCallback(function(){Y.JSC$21425_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};var dDx=function(Y){_.Ey.call(this);this.JSC$21431_watchApi=Y;hEy(this)};
_.m(dDx,_.Ey);var hEy=function(Y){var G,u;_.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$21431_watchApi.playerApi,2);G=O.yieldResult;u=function(Q){_.Zs().dispatch(_.V6({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:Q}}))};
G.addEventListener("onRetroModeChanged",u);Y.addOnDisposeCallback(function(){G.removeEventListener("onRetroModeChanged",u)});
_.Sd(O)})};var lKb=0,Mg=0,$zV=0;var bty=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),WR=function(Y){_.Ey.call(this);this.JSC$21448_watchApi=Y;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Sdb(this)};
_.m(WR,_.Ey);
var Sdb=function(Y){var G,u,O;_.a(function(Q){if(Q.nextAddress==1)return Q.yield(Y.JSC$21448_watchApi.playerApi,2);G=Q.yieldResult;if(Y.isDisposed())return Q.return();Y.sessionStorage=_.AdS("yt-sleep-timer");Y.sessionStorage||_.R0(new _.I2("SessionStorage for Sleep Timer is undefined."));((u=Y.sessionStorage)==null?void 0:u.get("yt-sleep-timer"))==="true"&&(cVb(),(O=Y.sessionStorage)==null||O.remove("yt-sleep-timer"),G.syncVolume());NI9(Y,G);jQx(Y,G);VMN(Y,G);_.Sd(Q)})},NI9=function(Y,G){var u=function(g){Y.onSleepTimerSettingsChanged(g,
G)},O=function(g){Y.onPlayerStateChange(g,G)},Q=function(){Y.onLoopChange(G)},M=function(){Y.onCloseMiniplayer(G)},t=function(){V6b(G,(0,_.GC)(),UzN(G),Y.selectedOption==="End of video",G.getPlayerState()!==1)},K=function(){Y.onSeekComplete(G)},L=function(){_.AN.cancelJob(Mg);
var g=G.getCurrentTime()>=G.getDuration(),P=Y.selectedOption==="End of video"||Y.selectedOption==="End of playlist"&&!SAN(Y.playlistId);g&&P&&l8x(Y,G)};
G.addEventListener("onSleepTimerSettingsChanged",u);G.addEventListener("onLoopChange",Q);G.addEventListener("onLoopRangeChange",Q);G.addEventListener("onStateChange",O);G.addEventListener("onCloseMiniplayer",M);G.addEventListener("onSleepTimerFeatureAvailable",t);G.addEventListener("SEEK_COMPLETE",K);G.addEventListener("onAdStart",L);Y.addOnDisposeCallback(function(){G.removeEventListener("onSleepTimerSettingsChanged",u);G.removeEventListener("onLoopChange",Q);G.removeEventListener("onLoopRangeChange",
Q);G.removeEventListener("onStateChange",O);G.removeEventListener("onCloseMiniplayer",M);G.removeEventListener("onSleepTimerFeatureAvailable",t);G.removeEventListener("SEEK_COMPLETE",K);G.removeEventListener("onAdStart",L)})},jQx=function(Y,G){var u=Y.JSC$21448_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var O=G.getVideoData().video_id,Q,M=(Q=dzB(Y.JSC$21448_watchApi))==null?void 0:Q.playlistId;
Y.pauseAutonavPlayback&&(G.pauseVideo(),G.syncVolume(),Y.pauseAutonavPlayback=!1);if(Y.selectedOption==="End of video"&&O!==Y.videoId)ry(Y,G);else{if(Y.selectedOption==="End of playlist"){Q=SAN(Y.playlistId);if(M!==Y.playlistId){ry(Y,G);break a}Q?Q&&BI9(Y,G):$DN(Y,G)}Y.videoId=O;Y.playlistId=M}}});
Y.addOnDisposeCallback(function(){Y.JSC$21448_watchApi.unsubscribeByKey(u)})},VMN=function(Y,G){var u=_.sH().resolve(_.Fk),O=_.Eh(u,_.AsT,function(M){M&&Y.selectedOption!=="Off"&&ry(Y,G)}),Q=Y.JSC$21448_watchApi.subscribeToActiveChanged(function(M){var t,K;
return _.a(function(L){if(L.nextAddress==1)return L.yield(_.Qq().navigationFinishPromise,2);t=!_.$XV();K=_.sH().resolve(_.yo).isMiniplayerActive();M||!h39(Y.selectedOption)||K||t||ry(Y,G);_.Sd(L)})},!1);
u=_.Eh(u,function(M){return M.entities.playlistLoopStateEntity||{}},function(M){M=M===void 0?{}:M;
var t=byb(Y.JSC$21448_watchApi);if(t){var K;((K=M[t])==null?void 0:K.state)==="PLAYLIST_LOOP_STATE_ALL"&&h39(Y.selectedOption)&&ry(Y,G)}});
Y.addOnDisposeCallback(O);Y.addOnDisposeCallback(u);Y.addOnDisposeCallback(Q)};
WR.prototype.onSleepTimerSettingsChanged=function(Y,G){switch(Y){case "Off":this.selectedOption!=="Off"&&ry(this,G);break;case "End of video":case "End of playlist":qdo(this,Y,G);break;default:qdo(this,Y,G,bty.get(Y))}};
WR.prototype.onLoopChange=function(Y){(Y.getLoopVideo()||Y.getLoopRange())&&h39(this.selectedOption)&&ry(this,Y)};
WR.prototype.onCloseMiniplayer=function(Y){h39(this.selectedOption)&&ry(this,Y)};
var qdo=function(Y,G,u,O){sQj(Y,u);Y.selectedOption=G;Y.videoId=u.getVideoData().video_id;Y.playlistId="";var Q;(Q=Y.sessionStorage)==null||Q.set("yt-sleep-timer","true");Y.adjustmentsCount++;V6b(u,(0,_.GC)(),UzN(u),Y.selectedOption==="End of video");if(Y.selectedOption==="End of video")$DN(Y,u),cax(Y,u);else if(Y.selectedOption==="End of playlist"){cax(Y,u);var M,t;Y.playlistId=(t=(M=dzB(Y.JSC$21448_watchApi))==null?void 0:M.playlistId)!=null?t:"";SAN(Y.playlistId)||$DN(Y,u)}else O&&(Y.presetFadeSchedulerId=
_.Ti(_.AN,function(){qAx(u,15E3)},O-15E3),Y.presetPauseSchedulerId=_.Ti(_.AN,function(){l8x(Y,u)},O),BVS(u,(0,_.GC)(),O))},l8x=function(Y,G){if(Y.JSC$21448_watchApi.isActive()){var u={dismissDialogEndpoint:{}};
var O={commandExecutorCommand:{commands:[u,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};u={buttonViewModel:{title:_.Q6("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:u}}};O={buttonViewModel:{title:_.Q6("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:O}}};var Q={dialogHeaderViewModel:{headline:{content:_.Q6("SLEEP_TIMER_ENDED_TITLE")}}},
M={basicContentViewModel:{paragraphs:[{text:{content:_.Q6("SLEEP_TIMER_ENDED_TEXT")}}]}};u={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Q,content:M,footer:{panelFooterViewModel:{primaryButton:u,secondaryButton:O,shouldHideDivider:!0}}}}}}};_.sH().resolve(_.rH).resolveCommand(u,{form:{element:Y}})}else cVb();UDV(Y,!1);vEg(Y,G);G.pauseVideo();_.SD.getInstance().getState()===2&&G.getPlayerState()===5&&(Y.pauseAutonavPlayback=!0)},ry=function(Y,G){UDV(Y,!0);
vEg(Y,G);cVb()},vEg=function(Y,G){sQj(Y,G);
Y.selectedOption="Off";Y.videoId="";Y.playlistId="";Y.adjustmentsCount=0;var u;(u=Y.sessionStorage)==null||u.remove("yt-sleep-timer");_.AN.cancelJob(lKb);G.resetSleepTimerMenuSettings()},UDV=function(Y,G){G={timer_length_adjustment_times_during_session:Y.adjustmentsCount-1,
is_session_cancelled:G};switch(Y.selectedOption){case "Off":G.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":G.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":G.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:G.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",G.option_duration_in_minutes=bty.get(Y.selectedOption)/6E4}_.eK("sleepTimerSessionFinishEvent",G)};
WR.prototype.onPlayerStateChange=function(Y,G){Y===1?V6b(G,(0,_.GC)(),UzN(G),this.selectedOption==="End of video"):Y===0?(_.AN.cancelJob(Mg),G.setVideoTimeLeft(jfw(0,0))):Y===2&&_.AN.cancelJob(Mg);this.selectedOption==="End of video"?Y===0?l8x(this,G):Y===2&&sfV(G):this.selectedOption!=="End of playlist"||SAN(this.playlistId)||(Y===0?l8x(this,G):Y===2&&sfV(G))};
WR.prototype.onSeekComplete=function(Y){Y.getPlayerState()===2&&V6b(Y,(0,_.GC)(),UzN(Y),this.selectedOption==="End of video",!0)};
WR.prototype.onCueRangeEnter=function(Y,G){Y==="sleep-timer-fade-audio"&&qAx(G,(G.getDuration()-G.getProgressState().current)*1E3)};
WR.prototype.onCueRangeExit=function(Y,G){Y==="sleep-timer-fade-audio"&&G.getPlayerState()!==0&&sfV(G,!0)};
var $DN=function(Y,G){G.addCueRange("sleep-timer-fade-audio",G.getDuration()-15,G.getDuration());G.addEventListener("onCueRangeEnter",function(u){Y.onCueRangeEnter(u,G)});
G.addEventListener("onCueRangeExit",function(u){Y.onCueRangeExit(u,G)})},BI9=function(Y,G){G.removeCueRange("sleep-timer-fade-audio");
G.removeEventListener("onCueRangeEnter",function(u){Y.onCueRangeEnter(u,G)});
G.removeEventListener("onCueRangeExit",function(u){Y.onCueRangeExit(u,G)})},sQj=function(Y,G){h39(Y.selectedOption)?BI9(Y,G):(_.AN.cancelJob(Y.presetPauseSchedulerId),_.AN.cancelJob(Y.presetFadeSchedulerId),Y.presetPauseSchedulerId=0,Y.presetFadeSchedulerId=0);
sfV(G,!0)},cax=function(Y,G){G.setLoop(!1);
G.setLoopVideo(!1);G.setLoopRange(null);(Y=byb(Y.JSC$21448_watchApi))&&_.sH().resolve(_.Fk).dispatch(_.t$("playlistLoopStateEntity",Y,{key:Y,state:"PLAYLIST_LOOP_STATE_NONE"}))};var Ov9=function(Y){_.Ey.call(this);var G=this;this.JSC$21451_watchApi=Y;_.F("web_watch_force_start_in_theater_mode")&&JaB(this,!0,!1);YNb(this);G3o(this);uKB(this);var u=this.JSC$21451_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.Jy("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.TR.get("wide",void 0)==="1"&&_.LG("wide","1",_.Jy("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){G.JSC$21451_watchApi.unsubscribeByKey(u)});
Y=Y.getRoot();if(Y.is==="ytd-watch-flexy"||Y.is==="ytd-watch-grid")Y.onTheaterReduxValueUpdate(this.getState());this.getState()&&yHb();_.F("web_watch_log_theater_mode_cookie_state")&&_.TR.get("wide","0")==="1"&&_.LK("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.m(Ov9,_.Ey);var YNb=function(Y){var G,u;_.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$21451_watchApi.playerApi,2);G=O.yieldResult;u=function(Q){JaB(Y,!!Q)};
G.addEventListener("SIZE_CLICKED",u);Y.addOnDisposeCallback(function(){G.removeEventListener("SIZE_CLICKED",u)});
_.Sd(O)})},G3o=function(Y){Y.JSC$21451_watchApi.registerActionHandler("yt-toggle-theater-mode",function(G,u){JaB(Y,G,u===void 0?!0:u)});
Y.addOnDisposeCallback(function(){Y.JSC$21451_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
Ov9.prototype.getState=function(){return _.Fm(_.Zs().getState())};
var JaB=function(Y,G,u){u=u===void 0?!0:u;var O,Q,M,t=_.F("enable_player_resize_transition")&&!!Y.JSC$21451_watchApi.getWatchNextResponse()&&!((O=Y.JSC$21451_watchApi.getWatchNextResponse())==null?0:(Q=O.contents)==null?0:(M=Q.twoColumnWatchNextResults)==null?0:M.conversationBar);FU9(function(){_.Zs().dispatch(_.V6({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:G}}));_.F("theater_mode_scroll_to_top_killswitch")||Y.JSC$21451_watchApi.scrollWatchTo(0,!1);_.dJ()&&_.F("external_fullscreen")&&_.bc(document.documentElement);
uKB(Y);u&&_.LG("wide",G?"1":"0",_.Jy("theater_mode_cookie_max_age_seconds",-1));_.qZ(Y.JSC$21451_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);Y.JSC$21451_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:G});G&&yHb()},{shouldWrap:t})},uKB=function(Y){var G;
_.a(function(u){if(u.nextAddress==1)return u.yield(Y.JSC$21451_watchApi.playerApi,2);G=u.yieldResult;G.setSizeStyle(!0,Y.getState());_.Sd(u)})};var HvN=function(Y){_.Ey.call(this);var G=this;this.playerApi=Y;this.timeToPanelSyncKeyMap={};var u;if(Y==null?0:(u=Y.isReady)==null?0:u.call(Y)){u=_.Eh(_.sH().resolve(_.Fk),function(Q){return Q.entities.timedMarkersListSyncEntity||{}},function(Q,M){Q=Q===void 0?{}:Q;
M=M===void 0?{}:M;for(var t=_.E(Object.keys(M)),K=t.next();!K.done;K=t.next())K=K.value,Q[K]!==M[K]&&Q5b(G,M[K]);M=_.E(Object.keys(Q));for(t=M.next();!t.done;t=M.next())t=t.value,K=Q[t],G.timeToPanelSyncKeyMap[t]&&M$b(G,K)});
this.addOnDisposeCallback(u);var O=function(Q){G.onCueRangeEnter(Q)};
Y.addEventListener("onCueRangeEnter",O);this.addOnDisposeCallback(function(){var Q;(Q=Y.removeEventListener)==null||Q.call(Y,"onCueRangeEnter",O)})}};
_.m(HvN,_.Ey);
var M$b=function(Y,G){var u,O;if((u=Y.playerApi)==null?0:(O=u.isReady)==null?0:O.call(u)){var Q;if((u=G==null?void 0:(Q=G.timedListData)==null?void 0:Q.sections)&&G!=null&&G.key)for(Q=_.E(u),u=Q.next();!u.done;u=Q.next())if(u=u.value,u.timedSyncDataList&&u.sectionId)for(O=0;O<u.timedSyncDataList.length;O++){var M=u.timedSyncDataList[O];M.syncItemId&&Y.playerApi.addCueRange(u.sectionId+"_"+G.key+"_"+M.syncItemId,Number(M.videoTimeMs)/1E3,O===u.timedSyncDataList.length-1?0x8000000000000:Number(u.timedSyncDataList[O+
1].videoTimeMs)/1E3)}}},Q5b=function(Y,G){var u,O;
if((u=Y.playerApi)==null?0:(O=u.isReady)==null?0:O.call(u)){var Q;if((u=G==null?void 0:(Q=G.timedListData)==null?void 0:Q.sections)&&G!=null&&G.key)for(Q=_.E(u),u=Q.next();!u.done;u=Q.next())if(u=u.value,u.timedSyncDataList&&u.sectionId){O=_.E(u.timedSyncDataList);for(var M=O.next();!M.done;M=O.next())M=M.value,M.syncItemId&&Y.playerApi.removeCueRange(u.sectionId+"_"+G.key+"_"+M.syncItemId)}}};
HvN.prototype.onCueRangeEnter=function(Y){for(var G=_.E(Object.keys(this.timeToPanelSyncKeyMap)),u=G.next();!u.done;u=G.next()){u=u.value;var O=_.E(Y.split("_"+u+"_")),Q=O.next().value;O=O.next().value;if(Q&&O){Y=_.sH().resolve(_.Fk);G=this.timeToPanelSyncKeyMap[u];var M=_.dn4(Y.getState(),G);u=EZ9(u,Q,O);if(u===-1)break;u={activeSyncId:O,activeItemIndex:u,activeSectionInfo:{sectionIdentifier:Q}};M?Y.dispatch(_.zP("markersEngagementPanelSyncEntity",G,u)):Y.dispatch(_.t$("markersEngagementPanelSyncEntity",
G,Object.assign({},{key:G},u)));break}}};
var EZ9=function(Y,G,u){var O=_.sH().resolve(_.Fk),Q,M;Y=(Q=asb(O.getState(),Y))==null?void 0:(M=Q.timedListData)==null?void 0:M.sections;if(!Y)return-1;Q=0;M=_.E(Y);for(Y=M.next();!Y.done;Y=M.next()){Y=Y.value;O=Y.timedSyncDataList||[];if(Y.sectionId===G)return G=O.findIndex(function(t){return t.syncItemId===u}),G===-1?G:Q+G;
Q+=O.length}return-1};var agV=function(Y){_.Ey.call(this);var G=this;this.JSC$21465_watchApi=Y;this.unresolvedCommands=[];this.JSC$21465_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(u){t$x(G,u)});
this.addOnDisposeCallback(function(){G.JSC$21465_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
Knx(this)};
_.m(agV,_.Ey);var Knx=function(Y){var G;_.a(function(u){if(u.nextAddress==1)return u.yield(Y.JSC$21465_watchApi.playerApi,2);G=u.yieldResult;if(Y.isDisposed())return u.return();Y.timedSyncObserver=new HvN(G);Y.unresolvedCommands.length&&(Y.unresolvedCommands.forEach(function(O){return t$x(Y,O)}),Y.unresolvedCommands=[]);
_.vF(Y,Y.timedSyncObserver);_.Sd(u)})},t$x=function(Y,G){if(Y.timedSyncObserver){var u=_.z(G,vzN);
if(u&&u.timedSyncEntityKey&&u.panelSyncEntityKey){Y=Y.timedSyncObserver;G=u.timedSyncEntityKey;var O=u.panelSyncEntityKey;u=!!u.isEnabled;u=u===void 0?!0:u;var Q=_.sH().resolve(_.Fk);Q=asb(Q.getState(),G);u?Y.timeToPanelSyncKeyMap[G]||(Y.timeToPanelSyncKeyMap[G]=O,M$b(Y,Q)):(delete Y.timeToPanelSyncKeyMap[G],Q5b(Y,Q))}}else Y.unresolvedCommands.push(G)};var Tyw=_.D(function(Y){var G=Y.data,u=Y.maybeLogSmartSkipClientData,O=null,Q=null,M=_.F("web_enable_auto_focus_for_timely_action_button"),t=function(){O=document.activeElement},K=function(){G().smartSkipMetadata&&(O=document.activeElement,_.RQS(function(){return Q}))},L=function(P){if(G().smartSkipMetadata&&(!P||P.key!=="Enter")){O&&O.isConnected&&(_.RQS(function(){return O}),O=null);
var I;(I=Q)==null||I.blur()}};
Y=_.U3(function(){u==null||u(!0,G());return!1});
var g=_.iq(_.zi(function(){return G().rendererContext},{onTap:function(P,I){I({disableClickTracking:!0})}}),_.UV({visibilityCallback:function(P){if(M)P?Q&&G().smartSkipMetadata&&(K(),document.addEventListener("focusin",t)):(document.removeEventListener("focusin",t),L());
else if(P){P=_.F9(G().rendererContext);var I=Number(G().maxVisibleDurationMilliseconds),k,n=(k=_.z(G().rendererContext,_.L$))==null?void 0:k.label;P&&I&&n&&(k={label:n,command:P,durationMs:I},_.sH().resolve(_.zV).enqueue(k))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.o1(function(){if(M){var P;if((Q=(P=g.value)==null?void 0:P.querySelector("button"))&&G().smartSkipMetadata){var I;(I=g.value)==null||I.addEventListener("keydown",L)}}});
_.w_(function(){M&&(Q&&G().smartSkipMetadata&&Q.removeEventListener("keydown",L),document.removeEventListener("focusin",t),L())});
return _.T("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:g,"on:click":Y},_.T(_.HE,{data:function(){return G().content}},{buttonViewModel:_.$Y}))},"pk");var Ln9=_.D(function(Y){var G=Y.data,u=Y.playerApi,O=_.sH().resolve(_.rXo);Y=_.E(_.SN(function(){G()}));
var Q=Y.next().value,M=Y.next().value,t=function(){return YDb(G(),Q())},K=function(g,P){var I,k,n=(I=_.z(P==null?void 0:P.rendererContext,_.H3))==null?void 0:(k=I.loggingDirectives)==null?void 0:k.trackingParams;
if((P=P==null?void 0:P.smartSkipMetadata)&&P.loggingData&&(k=P.loggingData,P=k.algorithmId,I=k.startMilliseconds,k=k.endMilliseconds,P&&I!==void 0&&k!==void 0)){var p,W;g={smartSkipData:Object.assign({},{versionName:P,startMediaTimeMs:I,endMediaTimeMs:k},g&&{userInteractionMediaTimeMs:(Math.floor(((p=_.N5())==null?void 0:(W=p.getPlayer())==null?void 0:W.getCurrentTime())||0)*1E3).toString()})};p=_.FA();var C;n&&(C=_.Kd(n));p&&C&&_.Zy(p,C,g)}},L=function(g,P){var I=YDb(G(),g);
if(I){var k=_.z(I,JVw),n;if(n=P)n=u(),I=_.z(I,JVw),n=I!=null&&I.smartSkipMetadata?!(n==null?0:n.isSameMarkerTypeVisible((I==null?void 0:I.smartSkipMetadata.markerKey)||"")):!0;if(n){var p,W;(k==null?0:(p=k.smartSkipMetadata)==null?0:(W=p.loggingData)==null?0:W.isCounterfactual)||(K(!1,k),M(g))}else P||Q()!==g||M(void 0)}};
_.RE(function(){var g=G().timelyActions;if(g){g=_.E(g);for(var P=g.next();!P.done;P=g.next()){P=_.z(P.value,JVw);var I=void 0;(I=P)!=null&&I.cueRangeId&&O.timelyActionsMap.set(P.cueRangeId,L)}_.w_(function(){O.timelyActionsMap.clear()})}},"l2RtC");
return _.T("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.T(_.HE,{data:t},{timelyActionViewModel:function(g){return _.T(Tyw,{data:g.data,maybeLogSmartSkipClientData:function(){K(!0,_.z(t(),JVw))}})}}))},"rk");var XRy=function(Y){_.Ey.call(this);this.JSC$21478_watchApi=Y;Y=_.E(_.IE({},void 0,"UN7k5e"));this.timelyActionsOverlay=Y.next().value;this.setTimelyActionsOverlay=Y.next().value;gZb(this)};
_.m(XRy,_.Ey);var gZb=function(Y){var G,u,O,Q;_.a(function(M){if(M.nextAddress==1)return Pzy(Y),IgN(Y),Y.timelyActionsContainer=document.createElement("div"),M.yield(Y.JSC$21478_watchApi.playerApi,2);G=M.yieldResult;(O=(u=G).insertTimelyActionUi)==null||O.call(u,Y.timelyActionsContainer);Q=_.Ay(Y.timelyActionsContainer,function(){return _.T(Ln9,{data:Y.timelyActionsOverlay,playerApi:G})},"sk");
Y.addOnDisposeCallback(Q);_.Sd(M)})},IgN=function(Y){var G=Y.JSC$21478_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Pzy(Y)});
Y.addOnDisposeCallback(function(){Y.JSC$21478_watchApi.unsubscribeByKey(G)})},Pzy=function(Y){var G=Y.JSC$21478_watchApi.getWatchNextResponse();
if(G){var u,O;if(G=_.z((u=G.playerOverlays)==null?void 0:(O=u.playerOverlayRenderer)==null?void 0:O.timelyActionsOverlayViewModel,G_b)){var Q;(Q=Y.setTimelyActionsOverlay)==null||Q.call(Y,G)}}};var nZg=function(Y){_.Ey.call(this);this.JSC$21482_watchApi=Y;k3b(this)};
_.m(nZg,_.Ey);var k3b=function(Y){var G,u;_.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$21482_watchApi.playerApi,2);G=O.yieldResult;u=function(Q){_.Jj.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.z(Q,Tmb)},popupType:"TOAST"}})};
G.addEventListener("onYtShowToast",u);Y.addOnDisposeCallback(function(){G.removeEventListener("onYtShowToast",u)});
_.Sd(O)})};var Fnb=function(Y){var G=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.sG;this.element.addEventListener("load",function(){G.loaded=!0;G.resolver.resolve(G.element)});
this.element.addEventListener("error",function(){G.failed=!0});
this.element.src=Y};var pRx=function(Y,G){this.image=Y;this.frame=G};
pRx.prototype.drawToCanvas=function(Y,G){var u=this.frame.width/this.frame.columns,O=this.frame.height/this.frame.rows,Q=G.offsetX,M=G.offsetY;Gyx(G)?(Y.fillStyle=G.fullscreen?"#000":"#0f0f0f",Y.fillRect(Q,M,(G==null?void 0:G.width)||u,(G==null?void 0:G.height)||O)):Y.drawImage(this.image,this.frame.column*u,this.frame.row*O,u,O,Q,M,(G==null?void 0:G.width)||u,(G==null?void 0:G.height)||O)};
var z2j=function(Y){this.color=Y};
z2j.prototype.drawToCanvas=function(Y,G){var u=G.offsetX,O=G.offsetY,Q=G.width,M=G.height;Y.fillStyle=Gyx(G)?G.fullscreen?"#000":"#0f0f0f":this.color;Y.fillRect(u,O,Q,M)};var xZ=function(Y,G){Ac.call(this);this.playerApi=G;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.oB(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();mBx(this,Y);Wnw(this);this.update()};
_.m(xZ,Ac);xZ.prototype.addEventListeners=function(){var Y=this,G=function(){Y.update()},u=function(Q){Y.paused||(Q.type==="newdata"&&(Y.mosaics.clear(),r9y(Y),fv(Y)),Wnw(Y),Y.update())},O=function(){Y.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",G);this.playerApi.addEventListener("onVideoDataChange",u);this.playerApi.addEventListener("onStateChange",O);this.addOnDisposeCallback(function(){Y.playerApi.removeEventListener("onVideoProgress",G);Y.playerApi.removeEventListener("onVideoDataChange",u);Y.playerApi.removeEventListener("onStateChange",O)})};
var mBx=function(Y,G){Y.cinematicContainerRenderer!==G&&(Y.cinematicContainerRenderer=G,r9y(Y),fv(Y),Y.colorStoreUpdateJobId=_.AN.addLowPriorityJob(function(){var u;if((u=Y.cinematicContainerRenderer.colorStore)!=null&&u.sampledColors){u=Infinity;for(var O=_.E(Y.cinematicContainerRenderer.colorStore.sampledColors),Q=O.next();!Q.done;Q=O.next()){Q=Q.value;var M=Number(Q.key);M!==0&&M<u&&(u=M);M=_.nB(Q.value);Y.colorStore.set(Q.key,M)}Y.colorStoreTimeInterval=u}}))},r9y=function(Y){Y.colorStoreUpdateJobId&&
(_.AN.cancelJob(Y.colorStoreUpdateJobId),Y.colorStoreUpdateJobId=void 0);
Y.colorStore.clear();Y.currentStoryboardColor=void 0},xBg=function(Y,G){var u;
return(u=Y.getStoryboardFrame(G))==null?void 0:u.url};
xZ.prototype.onPlayerStateChange=function(){this.update()};
xZ.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var Wnw=function(Y){var G=Y.getStoryboardFrame(0);G&&(G=new _.oB(G.width/G.columns,G.height/G.rows),i3b(Y.currentStoryboardSize,G)||(Y.currentStoryboardSize=G,Y.publish("STORYBOARD_SIZE_CHANGED",Y.currentStoryboardSize)))},fgb=function(Y,G){Y.currentStoryboardIndex=G;
Y.pendingStoryboardIndex=NaN;G=Y.getStoryboardFrame(Y.currentStoryboardIndex);Y.currentStoryboard=new pRx(Y.mosaics.get(G.url).element,G);Y.publish("STORYBOARD_CHANGED",Y.currentStoryboard);Y.lastUpdateTime=(0,_.GC)()};
xZ.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var fv=function(Y){Y.currentStoryboardIndex=NaN;Y.pendingStoryboardIndex=NaN;Y.currentStoryboard&&(Y.currentStoryboard=void 0,Y.publish("STORYBOARD_CHANGED",void 0));Y.lastUpdateTime=NaN};
xZ.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)fv(this);else{var Y=this.playerApi.getPlayerState(1);if(Y===-1||Y===5||Y===0)fv(this);else if(isNaN(this.lastUpdateTime)||!((0,_.GC)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(Y=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){Y=""+Math.round(Y*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var G=this.colorStore.get(Y);G?G!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=G,this.currentStoryboard=new z2j(G),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.GC)()):(_.R0(new _.I2("Could not find color for timestamp: "+Y,this.cinematicContainerRenderer)),fv(this))}else fv(this);else Czb(this,Y)}};
var Czb=function(Y,G){var u=Y.getStoryboardFrameIndex(G);if(u!==Y.currentStoryboardIndex&&u!==Y.pendingStoryboardIndex){G=xBg(Y,u);var O=Y.mosaics.get(G);O?O.loaded&&fgb(Y,u):(Y.pendingStoryboardIndex=u,u=new Fnb(G),Y.mosaics.set(G,u),u.resolver.promise.then(function(){if(!Y.isDisposed()&&!Y.paused&&!isNaN(Y.pendingStoryboardIndex)){var Q=xBg(Y,Y.pendingStoryboardIndex);if(Q){var M;(M=Y.mosaics.get(Q))!=null&&M.loaded&&fgb(Y,Y.pendingStoryboardIndex)}else fv(Y)}}))}};
xZ.prototype.getStoryboardFrameIndex=function(Y){var G=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(Y,G)};
xZ.prototype.getStoryboardFrame=function(Y){var G=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,u,O;return((O=(u=this.playerApi).getStoryboardFrame)==null?void 0:O.call(u,Y,G))||null};
xZ.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var yw=function(Y,G,u,O){O=O===void 0?!1:O;_.Ey.call(this);this.cinematicContainerRenderer=G;this.playerApi=u;this.theater=this.fullscreen=!1;var Q;this.ambientLightThemeEnabled=!O&&!!(G==null?0:(Q=G.config)==null?0:Q.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=O)&&!0;this.container=document.createElement("div");Y.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);y9x(this);this.backCanvas=
uU9();this.frontCanvas=uU9();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new xZ(G,this.playerApi);_.vF(this,this.storyboardManager);this.addEventListeners();e2N(this)?A9y(this,100+Cv(this)*3*2,100+Cv(this)*3*2):oZg(this);ivN(this,this.storyboardManager.currentStoryboard)};
_.m(yw,_.Ey);
var y9x=function(Y){var G=Y.playerApi.getVideoAspectRatio();_.w0(Y.container,{"aspect-ratio":""+G,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var u;var O;if((Y.fullscreen||Y.theater)&&((u=Y.cinematicContainerRenderer.config)==null?0:(O=u.watchFullscreenConfig)==null?0:O.colorSourceWidthMultiplier))u=Y.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var Q;u=(Q=
Y.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?Q:Y.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var M,t;if((Y.fullscreen||Y.theater)&&((M=Y.cinematicContainerRenderer.config)==null?0:(t=M.watchFullscreenConfig)==null?0:t.colorSourceHeightMultiplier))Q=Y.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var K;Q=(K=Y.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?K:Y.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.w0(Y.innerContainer,
{"aspect-ratio":""+G,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+u+", "+Q+")"});Ocx()&&_.w0(Y.innerContainer,"filter","blur("+_.Jy("cinematic_watch_css_filter_blur_strength",40)+"px)")};
yw.prototype.setFullscreen=function(Y,G){this.fullscreen=Y;this.theater=!!G;y9x(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),Y=this.storyboardManager.currentStoryboard,R2w(this),Y&&wRj(this,Y)};
yw.prototype.addEventListeners=function(){var Y=this,G=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(Q){ivN(Y,Q)}),u=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){oZg(Y)});
this.addOnDisposeCallback(function(){Y.storyboardManager.unsubscribeByKey(G);Y.storyboardManager.unsubscribeByKey(u)});
var O=function(){y9x(Y)};
this.playerApi.addEventListener("onVideoDataChange",O);this.addOnDisposeCallback(function(){Y.playerApi.removeEventListener("onVideoDataChange",O)})};
var oZg=function(Y){if(!e2N(Y)){var G=Y.storyboardManager.currentStoryboardSize;isNaN(G.width)||isNaN(G.height)||A9y(Y,Number(G.width)+Cv(Y)*3*2,Number(G.height)+Cv(Y)*3*2)}},A9y=function(Y,G,u){Y.backCanvas.element.width=G;
Y.backCanvas.element.height=u;Y.frontCanvas.element.width=G;Y.frontCanvas.element.height=u},e2N=function(Y){return Y.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},ivN=function(Y,G,u){u=u===void 0?!1:u;
var O=Y.frontCanvas.element.getAnimations()[0];O?(O.pause(),Y.backCanvas.context.globalAlpha=Number(getComputedStyle(Y.frontCanvas.element).opacity),Y.frontCanvas.element.style.opacity="0",O.finish()):Y.backCanvas.context.globalAlpha=1;Y.backCanvas.context.drawImage(Y.frontCanvas.element,0,0,Y.backCanvas.element.width,Y.backCanvas.element.height);R2w(Y);G&&wRj(Y,G);G=G?Y.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Jy("cinematic_watch_fade_out_duration",500);O=_.Jy("cinematic_watch_transition_frame_rate")/
1E3;var Q={};O&&(Q={easing:"steps("+Math.round(G*O)+")"});(u===void 0?0:u)||Y.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:G,iterations:1},Q));Y.frontCanvas.element.style.opacity="1"},R2w=function(Y){var G=Y.ambientLightThemeEnabled||Y.ambientTheaterModeEnabled,u=Y.ambientLightThemeEnabled||Y.ambientFullscreenEnabled;
Y.frontCanvas.context.fillStyle=Y.theater&&G||Y.fullscreen&&u?"#000":"#0f0f0f";Ocx()||(Y.frontCanvas.context.filter="blur(0)");Y.frontCanvas.context.fillRect(0,0,Y.frontCanvas.element.width,Y.frontCanvas.element.height)},wRj=function(Y,G){Ocx()||(Y.frontCanvas.context.filter="blur("+Cv(Y)+"px)");
Y.frontCanvas.context.globalAlpha=Y.fullscreen&&Y.ambientFullscreenEnabled||Y.theater&&Y.ambientTheaterModeEnabled?_.Jy("cinematic_watch_effect_letterbox_opacity",.4):_.Jy("cinematic_watch_effect_opacity",.4);var u={offsetX:Cv(Y)*3,offsetY:Cv(Y)*3,theater:Y.theater,fullscreen:Y.fullscreen};e2N(Y)&&(u.width=100,u.height=100);G.drawToCanvas(Y.frontCanvas.context,u);Y.frontCanvas.context.globalAlpha=1},Cv=function(Y){var G;
return(G=Y.cinematicContainerRenderer.config.blurStrength)!=null?G:5};
yw.prototype.disposeInternal=function(){_.Ey.prototype.disposeInternal.call(this);this.container.remove()};
yw.prototype.clear=function(){ivN(this,void 0,!0)};
yw.prototype.pause=function(){this.storyboardManager.pause()};var Zvg=_.F8(function(){var Y,G,u=!((G=(Y=document.createElement("canvas")).getContext)==null||!G.call(Y,"2d")),O;Y=!((O=CSS)==null||!O.supports("filter: blur(0)"));O=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var Q;return u&&Y&&O&&!((Q=CSS)==null||!Q.supports("aspect-ratio: 1 / 1"))}),e$=function(Y,G){Ac.call(this);
this.container=Y;this.playerApi=G;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=DB9(this);this.update()};
_.m(e$,Ac);var h2y=function(Y){var G=document.documentElement.hasAttribute("dark");Y.isDarkModeEnabled=G;Y.update()},dBg=function(Y,G){Y.settingEnabled=G;
Y.update()};
e$.prototype.setFullscreen=function(Y,G){this.fullscreen=Y;this.theater=!!G;this.update()};
var bv9=function(Y,G){Y.cinematicContainerRenderer=G;Y.cinematicContainerRenderer&&(Y.cinematicsVe=_.VZ(Y.isShorts()?227858:159022),_.lq(_.M4(),Y.cinematicsVe),Y.loggingClientData={watchCinematicContainerData:{presentationStyle:Y.cinematicContainerRenderer.presentationStyle}});Y.update()};
e$.prototype.isShorts=function(){var Y,G;return((Y=this.cinematicContainerRenderer)==null?void 0:(G=Y.config)==null?void 0:G.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
e$.prototype.isAllowed=function(){var Y;if(Y=Zvg()){var G,u,O;Y=((u=this.cinematicContainerRenderer)==null?void 0:u.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((O=this.cinematicContainerRenderer)==null||!O.colorStore)||((G=this.cinematicContainerRenderer)==null?void 0:G.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(Y)if(_.F("web_cinematics_pausing")){var Q,M;Y=this.isDarkModeEnabled||!!((Q=this.cinematicContainerRenderer)==
null?0:(M=Q.config)==null?0:M.enableInLightTheme)}else{var t,K;Q=!!((t=this.cinematicContainerRenderer)==null?0:(K=t.config)==null?0:K.enableInLightTheme)&&(_.DE("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);Y=this.isDarkModeEnabled||Q}if(t=Y){var L,g;t=!((g=(L=this.prefersReducedMotionQuery)==null?void 0:L.matches)!=null&&g)}return t};
var SNN=function(Y){var G;(G=Y.currentCinematicEffect)==null||G.clear()},NyN=function(Y){var G;
(G=Y.currentCinematicEffect)==null||G.pause()},j59=function(Y){(Y=Y.currentCinematicEffect)!=null&&(Y=Y.storyboardManager,Y.paused=!1,Wnw(Y),Y.update())};
e$.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var DB9=function(Y){if(!_.F("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var G=window.matchMedia("(prefers-reduced-motion: reduce)"),u=function(){Y.update()};
G.addListener(u);Y.addOnDisposeCallback(function(){G.removeListener(u)});
return G}};
e$.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var Y=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new yw(this.container,Y,this.playerApi,this.isDarkModeEnabled),_.vF(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var G=this.currentCinematicEffect;G.cinematicContainerRenderer!==
Y&&(G.cinematicContainerRenderer=Y,mBx(G.storyboardManager,Y),y9x(G));Y=_.EU();_.tW(0,194,!0);Y.save();Y=_.FA();this.cinematicsVe&&Y&&_.oK(Y,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(Y=_.FA(),this.cinematicsVe&&Y&&_.ig(Y,[this.cinematicsVe],!1,this.loggingClientData),_.ZM(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Uk.Object.defineProperties(e$.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var V$9=!1,qNb=function(Y){_.Ey.call(this);this.JSC$21515_watchApi=Y;this.fullscreen=this.theater=!1;lgx(this);ByB(this);$BB(this)};
_.m(qNb,_.Ey);var $BB=function(Y){var G,u,O;_.a(function(Q){if(Q.nextAddress==1)return Q.yield(Y.JSC$21515_watchApi.playerApi,2);G=Q.yieldResult;if(Y.isDisposed())return Q.return();u=Y.JSC$21515_watchApi.getElement("CINEMATICS");if(!u)return Q.return();Y.JSC$21515_cinematicController=new e$(u,G);_.vF(Y,Y.JSC$21515_cinematicController);h2y(Y.JSC$21515_cinematicController);s5S(Y,_.xTA());O=Y.JSC$21515_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(M){c9j(Y,M)});
Y.addOnDisposeCallback(function(){Y.JSC$21515_watchApi.unsubscribeByKey(O)});
UBx(Y);c9j(Y,Y.JSC$21515_cinematicController.isAllowed());vZj(Y);J9x(Y);_.Sd(Q)})},vZj=function(Y){Y.fullscreen=_.pz(_.Zs().getState());
Y.theater=_.Fm(_.Zs().getState());YYb(Y,Y.fullscreen,Y.theater);var G=_.Eh(_.Zs(),_.pz,function(O){Y.fullscreen=O;YYb(Y,Y.fullscreen,Y.theater)}),u=_.Eh(_.Zs(),_.Fm,function(O){Y.theater=O;
YYb(Y,Y.fullscreen,Y.theater)});
Y.addOnDisposeCallback(G);Y.addOnDisposeCallback(u)},lgx=function(Y){var G=Y.JSC$21515_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){UBx(Y)});
Y.addOnDisposeCallback(function(){Y.JSC$21515_watchApi.unsubscribeByKey(G)})},ByB=function(Y){var G,u;
_.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$21515_watchApi.playerApi,2);G=O.yieldResult;u=function(Q){s5S(Y,Q)};
G.addEventListener("cinematicSettingsToggleChange",u);Y.addOnDisposeCallback(function(){G.removeEventListener("cinematicSettingsToggleChange",u)});
_.Sd(O)})},UBx=function(Y){var G=Y.JSC$21515_watchApi.getWatchNextResponse(),u;
G=_.z(G==null?void 0:(u=G.pageVisualEffects)==null?void 0:u[0],Iq);var O;(O=Y.JSC$21515_cinematicController)==null||bv9(O,G)},s5S=function(Y,G){var u;
(u=Y.JSC$21515_cinematicController)==null||dBg(u,G);GJ9(Y)},c9j=function(Y,G){var u;
_.a(function(O){if(O.nextAddress==1)return _.F("kevlar_watch_cinematics_invisible")&&(G=!1),O.yield(Y.JSC$21515_watchApi.playerApi,2);u=O.yieldResult;u.updateCinematicSettings(G);GJ9(Y);_.Sd(O)})},J9x=function(Y){var G=_.EU();
if(_.F("kevlar_measure_ambient_mode_idle")&&!G.getFlag(192)&&!V$9){V$9=!0;var u=_.WY(_.AN,function(){_.sH().resolve(_.C9N).start(1E4)},5E3);
Y.addOnDisposeCallback(function(){_.AN.cancelJob(u);_.sH().resolve(_.C9N).stop()})}},YYb=function(Y,G,u){Y.fullscreen=G;
Y.theater=u;var O;(O=Y.JSC$21515_cinematicController)==null||O.setFullscreen(Y.fullscreen,Y.theater);if(_.F("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(Y.theater||Y.fullscreen){var Q;(Q=Y.JSC$21515_cinematicController)==null||j59(Q)}else{var M;(M=Y.JSC$21515_cinematicController)==null||NyN(M)}},GJ9=function(Y){var G;
Y.JSC$21515_watchApi.getRoot().toggleCinematicsActive(!((G=Y.JSC$21515_cinematicController)==null||!G.isEnabled()))};var Mwg=function(Y){_.Ey.call(this);var G=this;this.JSC$21518_watchApi=Y;this.commentsReady=!1;this.setCommentsJobId=0;Y=_.Eh(_.Zs(),JF,function(){uWb(G)});
this.addOnDisposeCallback(Y);var u=this.JSC$21518_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){OY9(G)}),O=this.JSC$21518_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){OY9(G)});
this.addOnDisposeCallback(function(){G.JSC$21518_watchApi.unsubscribeByKey(u);G.JSC$21518_watchApi.unsubscribeByKey(O)});
var Q=function(){_.F("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Qmj(G,"false")};
this.JSC$21518_watchApi.getRoot().addEventListener("yt-page-data-will-update",Q);this.addOnDisposeCallback(function(){G.JSC$21518_watchApi.getRoot().removeEventListener("yt-page-data-will-update",Q)});
OY9(this)};
_.m(Mwg,_.Ey);var OY9=function(Y){Y.commentsReady=!1;_.AN.cancelJob(Y.setCommentsJobId);Y.setCommentsJobId=_.WY(_.AN,function(){uWb(Y)},1E3)},uWb=function(Y){if(!Y.commentsReady){_.pQ("cmi");
_.AN.cancelJob(Y.setCommentsJobId);var G,u,O,Q,M=(G=Y.JSC$21518_watchApi.getWatchNextResponse())==null?void 0:(u=G.contents)==null?void 0:(O=u.twoColumnWatchNextResults)==null?void 0:(Q=O.results)==null?void 0:Q.results.contents;G=void 0;if(M&&M.length)for(M=_.E(M),u=M.next();!u.done;u=M.next())if(u=u.value,Q=O=void 0,((O=u)==null?void 0:(Q=O.itemSectionRenderer)==null?void 0:Q.sectionIdentifier)==="comment-item-section"){_.F("web_watch_provide_undefined_comments")?G=u.itemSectionRenderer:Y.JSC$21518_watchApi.provideRenderingData("COMMENTS",
u.itemSectionRenderer);Qmj(Y,"true");break}_.F("web_watch_provide_undefined_comments")&&Y.JSC$21518_watchApi.provideRenderingData("COMMENTS",G);Y.commentsReady=!0;Y.JSC$21518_watchApi.dispatchEvent("yt-watch-comments-ready")}},Qmj=function(Y,G){var u;
(u=Y.JSC$21518_watchApi.getElement("COMMENTS"))==null||u.setAttribute("canScheduleJobs",G)};var HYN=["engagement-panel-ads"],Tqb=function(Y){_.Ey.call(this);var G=this;this.JSC$21521_watchApi=Y;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.F("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.F("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.F("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Jy("swatcheroo_provide_all_data_delay_ms",
250);if(this.swatcherooProvideAllDataOnScheduledJob)ErB(this);else{var u=this.JSC$21521_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){twj(G);A9(G)}),O=this.JSC$21521_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){o5(G);
A9(G)});
this.JSC$21521_watchApi.getRoot().is==="ytd-watch-grid"&&_.F("swatcheroo_pbs_load_grid")&&(Krx(this),a6w(this));this.addOnDisposeCallback(function(){G.JSC$21521_watchApi.unsubscribeByKey(u);G.JSC$21521_watchApi.unsubscribeByKey(O);_.AN.cancelJob(G.provideRichGridJobId)});
twj(this);o5(this)}};
_.m(Tqb,_.Ey);var ErB=function(Y){var G=Y.JSC$21521_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Y.providePlayerJobId=_.EA(_.AN,function(){twj(Y);A9(Y)},Y.provideAllDataDelayMs)}),u=Y.JSC$21521_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Y.provideWatchNextJobId=_.EA(_.AN,function(){o5(Y);
A9(Y)},Y.provideAllDataDelayMs)}),O=Y.JSC$21521_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){Y.provideWatchNextJobId=_.EA(_.AN,function(){o5(Y);
A9(Y)},Y.provideAllDataDelayMs)});
Y.JSC$21521_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.WY(_.AN,function(){twj(Y);o5(Y);A9(Y)},100)});
Y.JSC$21521_watchApi.addPageDisposeJob(function(){_.AN.cancelJob(Y.provideWatchNextJobId);_.AN.cancelJob(Y.providePlayerJobId)});
Y.addOnDisposeCallback(function(){Y.JSC$21521_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");Y.JSC$21521_watchApi.unsubscribeByKey(G);Y.JSC$21521_watchApi.unsubscribeByKey(u);Y.JSC$21521_watchApi.unsubscribeByKey(O);_.AN.cancelJob(Y.providePlayerJobId);_.AN.cancelJob(Y.provideWatchNextJobId)});
twj(Y);o5(Y)},twj=function(Y){var G=Y.JSC$21521_watchApi.getPlayerResponse(),u,O,Q=(O=G==null?void 0:(u=G.playabilityStatus)==null?void 0:u.messageRenderers)!=null?O:[],M,t;
G=(t=G==null?void 0:(M=G.playabilityStatus)==null?void 0:M.messages)!=null?t:[];M=_.E(G);for(t=M.next();!t.done;t=M.next())Q.push({alertRenderer:{text:_.i8(t.value),type:"WARNING"}});Y.JSC$21521_watchApi.provideRenderingData("ALERTS",Q)},o5=function(Y){var G=[],u,O,Q,M,t=Y.JSC$21521_watchApi.getWatchNextResponse(),K,L,g,P,I=t==null?void 0:(K=t.contents)==null?void 0:(L=K.twoColumnWatchNextResults)==null?void 0:(g=L.results)==null?void 0:(P=g.results)==null?void 0:P.contents;
if(I)for(K=_.E(I),L=K.next();!L.done;L=K.next())if(L=L.value,L.videoPrimaryInfoRenderer)var k=L;else if(L.videoSecondaryInfoRenderer){var n=L;P=g=void 0;L=Object.assign({},(g=L.videoSecondaryInfoRenderer)==null?void 0:(P=g.metadataRowContainer)==null?void 0:P.metadataRowContainerRenderer);if(L.rows&&L.collapsedItemCount!==void 0){L.rows=L.rows.slice(0,L.collapsedItemCount).filter(function(MK){return!!MK.richMetadataRowRenderer});
L.collapsedItemCount=L.rows.length;var p={metadataRowContainerRenderer:L}}}else if(L.merchandiseShelfRenderer)var W=L;else if(L.ticketShelfRenderer)var C=L;else if(L.expandableMetadataRenderer)var e=L;else if(L.itemSectionRenderer)if(g=L.itemSectionRenderer.contents,P=void 0,Y.directlyProvideComments&&((P=L.itemSectionRenderer)==null?void 0:P.sectionIdentifier)==="comment-item-section")_.pQ("cmi"),Y.JSC$21521_watchApi.provideRenderingData("COMMENTS",L.itemSectionRenderer);else if(g)for(L=_.E(g),g=
L.next();!g.done;g=L.next())if(g=g.value,g.commentsEntryPointHeaderRenderer)var w=g;else if(g.clarificationRenderer||g.infoPanelContainerRenderer||g.infoPanelContentRenderer||g.emergencyOneboxRenderer){G.push(g);var B=B||!!n}else g.limitedStateMessageRenderer?Q=g:g.videoMetadataCarouselViewModel&&(M=g);_.F("web_watch_merch_in_sd_when_ticket_shelf_present")&&W&&C&&(u=W);_.F("web_watch_merch_in_sd")&&(u=W);u&&(W=void 0);if(_.F("web_watch_ticket_shelf_in_sd")){var N=C;C=void 0}if(Y.provideWatchNextSecondaryResults){var h,
q,U;Y.JSC$21521_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",t==null?void 0:(h=t.contents)==null?void 0:(q=h.twoColumnWatchNextResults)==null?void 0:(U=q.secondaryResults)==null?void 0:U.secondaryResults)}if(Y.JSC$21521_watchApi.getRoot().is==="ytd-watch-grid"){var Mj,Xt;Y.JSC$21521_watchApi.provideRenderingData("LIVE_CHAT",t==null?void 0:(Mj=t.contents)==null?void 0:(Xt=Mj.twoColumnWatchNextResults)==null?void 0:Xt.conversationBar)}var ka,aU,Tg,iy;(h=t==null?void 0:(ka=t.contents)==
null?void 0:(aU=ka.twoColumnWatchNextResults)==null?void 0:(Tg=aU.secondaryResults)==null?void 0:(iy=Tg.secondaryResults)==null?void 0:iy.offerModule)&&(h.donationShelfRenderer||h.donationUnavailableRenderer)&&Y.JSC$21521_watchApi.getRoot().is!=="ytd-watch-grid"&&(O=h);ka=Y.JSC$21521_watchApi.getPlayerResponse();if(!ka||!_.X5t(ka.playabilityStatus,t==null?void 0:t.playerOverlays)){var hY;if(t==null?0:(hY=t.contents)==null?0:hY.singleColumnWatchNextResults){var dA,nT;var u_=t==null?void 0:(dA=t.contents.singleColumnWatchNextResults.results)==
null?void 0:(nT=dA.results)==null?void 0:nT.contents}else{var jT,P1,kk,Fe;hY=!!(I==null?0:(jT=I[0])==null?0:(P1=jT.itemSectionRenderer)==null?0:(kk=P1.contents)==null?0:(Fe=kk[0])==null?0:Fe.backgroundPromoRenderer);var Xg,Hb;jT=!!(t==null?0:(Xg=t.contents)==null?0:(Hb=Xg.twoColumnWatchNextResults)==null?0:Hb.secondaryResults);hY&&!jT&&(u_=I)}}I=G[0];Xg=G[1];B&&G.length===1&&(Xg=I,I=void 0);Y.JSC$21521_watchApi.provideRenderingData("PRIMARY_INFO",k);Y.JSC$21521_watchApi.provideRenderingData("SECONDARY_INFO",
n);Y.JSC$21521_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",w);Y.JSC$21521_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",M);Y.JSC$21521_watchApi.provideRenderingData("CLARIFICATION",I);Y.JSC$21521_watchApi.provideRenderingData("RICH_METADATA",p);Y.JSC$21521_watchApi.provideRenderingData("MERCH_SHELF",W);(_.F("web_watch_merch_in_sd_when_ticket_shelf_present")||_.F("web_watch_merch_in_sd"))&&Y.JSC$21521_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",u);Y.JSC$21521_watchApi.provideRenderingData("TICKET_SHELF",
C);_.F("web_watch_ticket_shelf_in_sd")&&Y.JSC$21521_watchApi.provideRenderingData("TICKET_SHELF_IN_SD",N);Y.JSC$21521_watchApi.provideRenderingData("LIMITED_STATE",Q);Y.JSC$21521_watchApi.getRoot().is!=="ytd-watch-grid"&&Y.JSC$21521_watchApi.provideRenderingData("DONATION_SHELF",O);Y.JSC$21521_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",u_);Y.JSC$21521_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Xg);Y.JSC$21521_watchApi.provideRenderingData("EXPANDABLE_METADATA",e);if(Y.swatcherooProvideAllDataOnScheduledJob){var n1,
Yk,qj,Gx,fT,b_;k=t==null?void 0:(n1=t.contents)==null?void 0:(Yk=n1.twoColumnWatchNextResults)==null?void 0:(qj=Yk.secondaryResults)==null?void 0:(Gx=qj.secondaryResults)==null?void 0:(fT=Gx.results)==null?void 0:(b_=fT[0])==null?void 0:b_.richGridRenderer;Y.JSC$21521_watchApi.provideRenderingData("RICH_GRID_RENDERER",k)}};
Tqb.prototype.hasCompanionAds=function(Y){var G,u;return(u=Y==null?void 0:(G=Y.adPlacements)==null?void 0:G.some(function(O){var Q,M,t,K;return(O==null?void 0:(Q=O.adPlacementRenderer)==null?void 0:(M=Q.renderer)==null?void 0:M.actionCompanionAdRenderer)||(O==null?void 0:(t=O.adPlacementRenderer)==null?void 0:(K=t.renderer)==null?void 0:K.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?u:!1};
var A9=function(Y){if(!_.F("swaterdoo_ps_wn_handle_ks")){Y.swatcherooProvideAllDataOnScheduledJob||a6w(Y,3E3);var G=Y.JSC$21521_watchApi.getPlayerResponse(),u,O,Q,M,t,K=(u=Y.JSC$21521_watchApi.getWatchNextResponse())==null?void 0:(O=u.contents)==null?void 0:(Q=O.twoColumnWatchNextResults)==null?void 0:(M=Q.secondaryResults)==null?void 0:(t=M.secondaryResults)==null?void 0:t.offerModule;G=Y.hasCompanionAds(G);var L,g;u=(K==null?void 0:(L=K.tvfilmOfferModuleRenderer)==null?void 0:L.clientShouldSuppressIfCompanionAdDisplayed)||
(K==null?void 0:(g=K.unlimitedOfferModuleRenderer)==null?void 0:g.suppressIfCompanionAds);L=G&&u;Y.JSC$21521_watchApi.getRoot().is==="ytd-watch-grid"&&Y.JSC$21521_watchApi.provideRenderingData("OFFER_MODULE",L?void 0:K)}},a6w=function(Y,G){_.F("swatcheroo_pbs_load_grid")&&(Y.provideRichGridJobId&&_.AN.cancelJob(Y.provideRichGridJobId),Y.provideRichGridJobId=_.EA(_.AN,function(){Y.provideRichGridJobId=0;
var u,O,Q,M,t,K,L,g=(u=Y.JSC$21521_watchApi.getWatchNextResponse())==null?void 0:(O=u.contents)==null?void 0:(Q=O.twoColumnWatchNextResults)==null?void 0:(M=Q.secondaryResults)==null?void 0:(t=M.secondaryResults)==null?void 0:(K=t.results)==null?void 0:(L=K[0])==null?void 0:L.richGridRenderer;g&&Y.JSC$21521_watchApi.provideRenderingData("RICH_GRID_RENDERER",g)},G))},Krx=function(Y){var G,u;
_.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$21521_watchApi.playerApi,2);G=O.yieldResult;u=function(){Y.onPlaybackStart()};
G.addEventListener("onPlaybackStartExternal",u);Y.addOnDisposeCallback(function(){G.removeEventListener("onPlaybackStartExternal",u)});
_.Sd(O)})};
Tqb.prototype.onPlaybackStart=function(){a6w(this)};var LrN=_.VZ(115994),gro=_.VZ(115993),iz=function(Y,G,u){var O=this;var Q=u.dragDownAction;this.layer=0;this.JSC$21536_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return O.dragDownAction()}}}};
this.JSC$21536_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return O.dragDownAction()}}}};
this.fullscreen=!1;var M=_.M4();_.vJ(M,LrN,this.layer);_.vJ(M,gro,this.layer);this.dragDownAction=function(){Q();_.er(M,{visualElement:O.fullscreen?LrN:gro})};
this.gesture=new Nx(Y,G,this.getConfig(!1),"pandown");this.attach()};
iz.prototype.attach=function(){this.gesture.attach()};
iz.prototype.detach=function(){this.gesture.detach()};
iz.prototype.update=function(Y){this.fullscreen=Y;var G=this.gesture;Y=this.getConfig(Y);G.config=Y};
iz.prototype.getConfig=function(Y){return Y?this.JSC$21536_watchFullScreenConfig:this.JSC$21536_watchConfig};var P1N=function(Y){_.Ey.call(this);var G=this;this.JSC$21539_watchApi=Y;Y.playerApi.then(function(u){G.player=u});
this.gestures=new iz(this.JSC$21539_watchApi.getRoot(),Y.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(XCy(_.Zs().getState())&&JF(_.Zs().getState())<=0)if(_.pz(_.Zs().getState())){var u;(u=G.player)==null||u.toggleFullscreen()}else _.qZ(G.JSC$21539_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
X_y(this)};
_.m(P1N,_.Ey);var X_y=function(Y){var G=_.Eh(_.Zs(),_.pz,function(u){Y.onFullscreenChanged(u)});
Y.addOnDisposeCallback(G);G=_.Eh(_.Zs(),JF,function(u){Y.gestures&&(u>0?Y.gestures.detach():Y.gestures.attach())});
Y.addOnDisposeCallback(G)};
P1N.prototype.onFullscreenChanged=function(Y){this.gestures&&this.gestures.update(Y)};var I6b=["PLAYLIST"],nro=function(Y){_.Ey.call(this);var G=this;this.JSC$21542_watchApi=Y;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(Y.subscribeToActiveChanged(function(u){G.onActiveChanged(u)}));
kJ9(this)};
_.m(nro,_.Ey);var Frj=function(Y){Y.pageDisposalDataTypes=Object.values(Ot9).filter(function(G){return!I6b.includes(G)})},kJ9=function(Y){if(_.F("swatcheroo_enable_ghost_cards")||_.F("web_watch_clear_data_on_page_dispose"))Frj(Y),Y.JSC$21542_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.AN.cancelJob(Y.clearDataJobId);
Y.clearDataJobId=0}),Y.runPageDisposeJob=function(){var G=_.sH().resolve(_.bv).getDestinationPageType()==="watch";
Y.clearDataJobId=_.EA(_.AN,Y.runClearDataJob,G?0:_.Jy("web_watch_delay_page_dispose_ms",1E4))},Y.runClearDataJob=function(){p_b(Y)},Y.runOnYtNavigateAwayFinish=function(){Y.clearDataJobId&&(_.AN.cancelJob(Y.clearDataJobId),Y.clearDataJobId=0,p_b(Y))},document.addEventListener("yt-navigate-finish",Y.runOnYtNavigateAwayFinish),Y.JSC$21542_watchApi.addPageDisposeJob(Y.runPageDisposeJob),Y.addOnDisposeCallback(function(){Y.JSC$21542_watchApi.removePageDisposeJob(Y.runPageDisposeJob);
Y.JSC$21542_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",Y.runOnYtNavigateAwayFinish)})},p_b=function(Y){Y.pageDisposalDataTypes.forEach(function(G){Y.JSC$21542_watchApi.provideRenderingData(G,void 0)});
Y.clearDataJobId=0};
nro.prototype.onActiveChanged=function(Y){Y&&((Y=document.querySelector("#watch-page-skeleton"))&&_.Oy(Y),zDb(this),document.body.removeAttribute("no-y-overflow"),_.hy("IS_SHELL_LOAD")&&hU9())};
var zDb=function(Y){_.a(function(G){if(G.nextAddress==1)return G.yield(Y.JSC$21542_watchApi.playerApi,2);_.w4();_.Sd(G)})};var msb=_.F("kevlar_watch_while_counterfactual")?0:.25,f6g=function(Y){_.Ey.call(this);this.JSC$21545_watchApi=Y;this.JSC$21545_watchWhileEnabled=_.F("kevlar_watch_while_v2");this.JSC$21545_watchPipEnabled=_.F("web_watch_pip");Wrg(this);rJx(this);xsg(this)};
_.m(f6g,_.Ey);var Wrg=function(Y){Y.JSC$21545_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){C1b(Y)});
Y.addOnDisposeCallback(function(){Y.JSC$21545_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},rJx=function(Y){var G,u;
_.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$21545_watchApi.playerApi,2);G=O.yieldResult;u=function(Q){Q&&Y.JSC$21545_watchPipEnabled?yJy(Y):C1b(Y)};
G.addEventListener("onCollapseMiniplayer",u);Y.addOnDisposeCallback(function(){G.removeEventListener("onCollapseMiniplayer",u)});
_.Sd(O)})},xsg=function(Y){var G=Y.JSC$21545_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&G&&Y.JSC$21545_watchWhileEnabled&&(Y.playerIntersectionObserver=new IntersectionObserver(function(u){Y.handleIntersect(u)},{threshold:[msb]}),Y.playerIntersectionObserver.observe(G),Y.addOnDisposeCallback(function(){var u;
(u=Y.playerIntersectionObserver)==null||u.disconnect()}))},C1b=function(Y){var G,u,O;
_.a(function(Q){if(Q.nextAddress==1)return G=_.sH().resolve(_.bv),u=G.data,O=_.EaT(u.response,u.playerResponse),_.Qq().miniplayerButtonActivation=!0,_.sH().resolve(_.yo).collapse(),Q.yield(_.Qq().navigationFinishPromise,2);if(Q.nextAddress!=3)return _.Qq().currentEndpoint=O.watchEndpoint||null,Q.yield(_.sH().resolve(_.yo).activate(Y.JSC$21545_watchApi.getElement("PLAYER"),O,u),3);_.Qq().userActivation=!0;_.Sd(Q)})},yJy=function(Y){var G,u,O;
_.a(function(Q){if(Q.nextAddress==1)return _.sH().resolve(_.yo).pictureInPictureSupported()?Q.jumpTo(2):Q.yield(Y.JSC$21545_watchApi.playerApi,3);if(Q.nextAddress!=2)return G=Q.yieldResult,(u=G)==null||u.togglePictureInPicture(),Q.return();O=_.sH().resolve(_.bv);_.Qq().watchPipActivation=!0;_.wYb(_.sH().resolve(_.yo),O.data);_.Sd(Q)})};
f6g.prototype.handleIntersect=function(Y){eDx(this,Y[Y.length-1])};
var eDx=function(Y,G){Y.watchWhileJobId&&_.AN.cancelJob(Y.watchWhileJobId);Y.watchWhileJobId=_.AN.addLowPriorityJob(function(){var u,O;return _.a(function(Q){if(Q.nextAddress==1)return Y.watchWhileJobId=void 0,u=_.sH().resolve(_.yo),G.intersectionRatio>msb?u.isMiniplayerActive()?Q.yield(u.deactivate(),0):Q.jumpTo(0):(O=!u.isMiniplayerActive())?Q.yield(AJB(Y),5):Q.jumpTo(4);Q.nextAddress!=4&&(O=Q.yieldResult);if(!O)return Q.jumpTo(0);_.Qq().watchWhileActivation=!0;return Q.yield(orb(Y),0)})},100)},
AJB=function(Y){return _.a(function(G){return G.nextAddress==1?_.F("kevlar_watch_while_paused")?G.return(!0):G.yield(Y.isPlayerPlaying(),2):G.return(G.yieldResult)})};
f6g.prototype.isPlayerPlaying=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1)return u.yield(Y.JSC$21545_watchApi.playerApi,2);G=u.yieldResult;return u.return(G.getPlayerStateObject().isPlaying)})};
var orb=function(Y){var G,u;return _.a(function(O){G=_.sH().resolve(_.bv).data;u=_.EaT(G.response,G.playerResponse);_.Qq().currentEndpoint=u.watchEndpoint||null;return O.yield(_.sH().resolve(_.yo).activate(Y.JSC$21545_watchApi.getElement("PLAYER"),u,G),0)})};var w_j=function(Y){_.Ey.call(this);this.JSC$21549_watchApi=Y;iYb(this);RD9(this)};
_.m(w_j,_.Ey);var RD9=function(Y){var G,u;_.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$21549_watchApi.playerApi,2);G=O.yieldResult;u=function(Q){var M;Q.sessionData&&Q.sessionData.itct&&(M=Q.sessionData.itct);var t=Q.watchEndpoint;if(t&&Q.sessionData&&Q.sessionData.autonav)t=_.Kct(t,M);else{var K;t=_.bg(Q.videoId,(K=Q.listId)!=null?K:void 0,M)}M={endpoint:t};Q.sessionData&&(M.tempData=Q.sessionData);Y.JSC$21549_watchApi.dispatchEvent("yt-navigate",M)};
G.addEventListener("onPlayVideo",u);Y.addOnDisposeCallback(function(){G.removeEventListener("onPlayVideo",u)});
_.Sd(O)})},iYb=function(Y){var G=function(u){Y.onYtNavigate(u)};
Y.JSC$21549_watchApi.getRoot().addEventListener("yt-navigate",G);Y.addOnDisposeCallback(function(){Y.JSC$21549_watchApi.getRoot().removeEventListener("yt-navigate",G)})};
w_j.prototype.onYtNavigate=function(Y){var G=this,u,O,Q,M,t,K,L,g,P;return _.a(function(I){if(I.nextAddress==1){if(!((u=Y.detail)==null?0:(O=u.endpoint)==null?0:O.watchEndpoint))return I.return();Q=Y.detail.endpoint.watchEndpoint;M=G.JSC$21549_watchApi.getWatchNextResponse();K=_.z((t=M)==null?void 0:t.currentVideoEndpoint,_.ic);if(!K)return I.return();if(Q.videoId!==K.videoId||Q.playlistId&&Q.playlistId!==K.playlistId||typeof Q.startTimeSeconds!=="number")return I.jumpTo(0);Y.stopPropagation();(L=
_.F("kevlar_watch_while_v2")&&!_.F("kevlar_watch_while_counterfactual"))&&_.sH().resolve(_.yo).isMiniplayerActive()||G.JSC$21549_watchApi.scrollWatchTo(0,!0);return I.yield(G.JSC$21549_watchApi.playerApi,3)}g=I.yieldResult;P=Q.startTimeSeconds;g.seekTo(P,void 0,void 0,void 0,84);g.wakeUpControls();P<g.getDuration()&&g.playVideo();_.Sd(I)})};var Ds9=function(Y){_.Ey.call(this);var G=this;this.JSC$21552_watchApi=Y;var u=this.JSC$21552_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ZYo(G)});
this.addOnDisposeCallback(function(){G.JSC$21552_watchApi.unsubscribeByKey(u)});
ZYo(this);_.F("enable_ai_companion")&&(Y=this.JSC$21552_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&c7b(Y,"WATCH")};
_.m(Ds9,_.Ey);var ZYo=function(Y){var G=Y.JSC$21552_watchApi.getWatchNextResponse();if(G){var u,O=[].concat(_.c8((u=G==null?void 0:G.engagementPanels)!=null?u:[]));_.F("web_watch_comments_visible_by_default")&&(u=O.find(function(Q){var M;return((M=Q.engagementPanelSectionListRenderer)==null?void 0:M.targetId)==="engagement-panel-comments-section"}),u==null?0:u.engagementPanelSectionListRenderer)&&(u.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
O.unshift.apply(O,_.c8(hDN(G)));Y.JSC$21552_watchApi.provideRenderingData("ENGAGEMENT_PANELS",O)}},bYb=function(Y){var G,u,O,Q=(G=Y.engagementPanels)==null?void 0:(u=G.find(function(n){var p;
return((p=n.engagementPanelSectionListRenderer)==null?void 0:p.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(O=u.engagementPanelSectionListRenderer.content)==null?void 0:O.structuredDescriptionContentRenderer,M;
if(_.z(Q==null?void 0:(M=Q.items)==null?void 0:M.find(function(n){return!!_.z(n,GQx)}),GQx))return!0;
var t,K,L,g;if(Y=(((t=Y.contents)==null?void 0:(K=t.twoColumnWatchNextResults)==null?void 0:(L=K.results)==null?void 0:(g=L.results)==null?void 0:g.contents)||[]).find(function(n){return n.videoPrimaryInfoRenderer})){var P,I,k;
return(((P=Y.videoPrimaryInfoRenderer)==null?void 0:(I=P.videoActions)==null?void 0:(k=I.menuRenderer)==null?void 0:k.flexibleItems)||[]).some(function(n){n=_.z(n,_.q6_);if(!n)return!1;var p,W;n=(p=n.topLevelButton)==null?void 0:(W=p.buttonViewModel)==null?void 0:W.onTap;if(!n)return!1;p=_.FS(n);if(!p)return!1;if(ds9(p))return!0;if(_.F("enable_creator_chatbot")){p=_.z(p,_.Jv);if(!p)return!1;var C;return(C=p.commands)==null?void 0:C.some(function(e){return ds9(e)})}return!1})}return!1},ds9=function(Y){var G;
return((G=_.z(Y,_.mJ))==null?void 0:G.panelIdentifier)==="PAyouchat"},hDN=function(Y){var G=[];
if(!_.F("web_watch_inject_placeholder_fantasy_panel_killswitch")){var u,O,Q,M=(u=Y.engagementPanels)==null?void 0:(O=u.find(function(K){var L;return((L=K.engagementPanelSectionListRenderer)==null?void 0:L.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Q=O.engagementPanelSectionListRenderer.content)==null?void 0:Q.structuredDescriptionContentRenderer,t;
_.z(M==null?void 0:(t=M.items)==null?void 0:t.find(function(K){return!!_.z(K,$hg)}),$hg)&&(u=_.$_A("PAsports_fantasy"),u.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G.push(u))}bYb(Y)&&(Y=_.$_A("PAyouchat"),Y.engagementPanelSectionListRenderer.targetId="PAyouchat",Y.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G.push(Y));
return G};var Nqo=function(Y){_.Ey.call(this);this.JSC$21555_watchApi=Y;SYw(this)};
_.m(Nqo,_.Ey);var SYw=function(Y){Y.JSC$21555_watchApi.registerActionHandler("yt-loop-command",function(G){jmg(Y,G)});
Y.JSC$21555_watchApi.registerActionHandler("yt-repeat-chapter-command",function(G){Vwj(Y,G)});
Y.addOnDisposeCallback(function(){Y.JSC$21555_watchApi.unregisterActionHandler("yt-loop-command");Y.JSC$21555_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},jmg=function(Y,G){var u;
_.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$21555_watchApi.playerApi,2);u=O.yieldResult;_.z(G,dJS).loop?(u.setLoopRange({startTimeMs:Number(_.z(G,dJS).startTimeMs),endTimeMs:Number(_.z(G,dJS).endTimeMs),postId:_.z(G,dJS).postId,type:"clips"}),u.playVideo()):u.setLoopRange(null);_.Sd(O)})},Vwj=function(Y,G){var u,O;
_.a(function(Q){if(Q.nextAddress==1)return Q.yield(Y.JSC$21555_watchApi.playerApi,2);u=Q.yieldResult;O=_.z(G,pib).repeat;O==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(u.setLoopRange({startTimeMs:Number(_.z(G,pib).startTimeMs),endTimeMs:Number(_.z(G,pib).endTimeMs),type:"repeatChapter"}),u.playVideo()):O==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&u.setLoopRange(null);_.Sd(Q)})};var Bqb=function(Y){_.Ey.call(this);this.JSC$21560_watchApi=Y;l6o(this)};
_.m(Bqb,_.Ey);var l6o=function(Y){Y.JSC$21560_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(G){$so(Y,G)});
Y.addOnDisposeCallback(function(){Y.JSC$21560_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},$so=function(Y,G){var u,O,Q,M,t,K,L,g,P,I,k;
_.a(function(n){if(n.nextAddress==1)return n.yield(Y.JSC$21560_watchApi.playerApi,2);u=n.yieldResult;if(M=(Q=(O=_.z(G,zKx))==null?void 0:O.highlightedMenuItemKey)!=null?Q:"")(K=(t=u).highlightSettingsMenuItem)==null||K.call(t,M);if(P=(g=(L=_.z(G,zKx))==null?void 0:L.openMenuItemKey)!=null?g:"")(k=(I=u).openSettingsMenuItem)==null||k.call(I,P);_.Sd(n)})};var qYy=_.UU("/youtube/app/watch/player_state","playerStateEntity");var R5=function(Y){_.Ey.call(this);this.JSC$21563_watchApi=Y;smN(this)};
_.m(R5,_.Ey);var cJb=function(Y){switch(Y){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"}},smN=function(Y){var G,u,O,Q,M;
_.a(function(t){if(t.nextAddress==1)return t.yield(Y.JSC$21563_watchApi.playerApi,2);G=t.yieldResult;if(Y.isDisposed())return t.return();u=function(K){Y.onPlayerStateChange(K)};
O=function(K){Y.onAdStateChange(K)};
Q=function(){Y.onAdSkip()};
M=function(K){Y.onVideoDataChange(K)};
G.addEventListener("onStateChange",u);G.addEventListener("onAdStateChange",O);G.addEventListener("onAdSkip",Q);G.addEventListener("onVideoDataChange",M);Y.addOnDisposeCallback(function(){G.removeEventListener("onStateChange",u);G.removeEventListener("onAdStateChange",O);G.removeEventListener("onAdSkip",Q);G.removeEventListener("onVideoDataChange",M)});
_.Sd(t)})},Usy=function(Y){var G=_.DS(),u=G.dispatch;
a:switch(Y.adsState){case -1:case 0:var O="ADS_STATE_NONE";break a;case 1:case 2:case 3:O="ADS_STATE_PLAYING";break a;default:O="ADS_STATE_UNKNOWN"}u.call(G,_.t$("playerStateEntity",qYy,{key:qYy,playerState:cJb(Y.playerState),adsState:O,videoId:Y.videoId}))};
R5.prototype.onPlayerStateChange=function(Y){var G=this,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(G.JSC$21563_watchApi.playerApi,2);u=O.yieldResult;if(G.isDisposed())return O.return();G.playerState=Y;G.videoId=u.getVideoData().video_id;Usy(G);_.Sd(O)})};
R5.prototype.onAdStateChange=function(Y){this.adsState=Y;Usy(this)};
R5.prototype.onAdSkip=function(){this.adsState=0;Usy(this)};
R5.prototype.onVideoDataChange=function(Y){Y.type==="newdata"&&(this.adsState=-1,Usy(this))};var JJN=function(Y){_.Ey.call(this);var G=this;this.JSC$21567_watchApi=Y;this.enableExternalPlaylistPanelInPlayer=_.F("delhi_web_player_use_external_playlist_panel");_.sH().resolve(_.yq).setPlayer(this.JSC$21567_watchApi.getElement("PLAYER"));Y=this.JSC$21567_watchApi.subscribeToActiveChanged(function(u){G.onActiveChanged(u)});
this.addOnDisposeCallback(Y);vry(this)};
_.m(JJN,_.Ey);var vry=function(Y){var G,u;_.a(function(O){if(O.nextAddress==1)return Y.enableExternalPlaylistPanelInPlayer?O.yield(Y.JSC$21567_watchApi.playerApi,2):O.return();G=O.yieldResult;u=function(){if(Y.playlistPanelElement)Y.playlistPanelElement.onToggleExpanded()};
G.addEventListener("onToggleExternalPlaylistPanel",u);Y.addOnDisposeCallback(function(){G.removeEventListener("onToggleExternalPlaylistPanel",u)});
_.Sd(O)})};
JJN.prototype.onActiveChanged=function(Y){var G=this,u=_.sH().resolve(_.yq),O=function(){Y1S(G)};
Y?(this.playlistPanelElement=this.JSC$21567_watchApi.getElement("PLAYLIST_PANEL"))?(u.setPlaylistComponent(this.playlistPanelElement),u.addEventListener("yt-playlist-data-updated",O),this.addOnDisposeCallback(function(){u.removeEventListener("yt-playlist-data-updated",O)}),Y1S(this)):_.N3(Error("Wl")):(u.removeEventListener("yt-playlist-data-updated",O),u.cancelVideoSkip())};
var Y1S=function(Y){var G=_.sH().resolve(_.yq);Y.JSC$21567_watchApi.provideRenderingData("PLAYLIST",G.getPlaylistData())};var wy=function(Y){_.Ey.call(this);var G=this;this.JSC$21570_watchApi=Y;this.onPageScroll=function(){G.scrollThrottle.fire();G.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.JR(this.onThrottledScroll,200,this);_.vF(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.JR(this.onMastheadThrottledScroll,50,this);_.vF(this,this.mastheadScrollThrottle);this.animation=new _.bm(function(u){G.JSC$21570_watchApi.getRoot().setScrollTop(u)});
Y=_.Eh(_.Zs(),_.pz,function(){G.onFullscreenChanged()});
this.addOnDisposeCallback(Y);G6V(this);ulo(this);this.onThrottledScroll()};
_.m(wy,_.Ey);
wy.prototype.onFullscreenChanged=function(){var Y=this,G=this.JSC$21570_watchApi.getRoot();!this.pageScrollElement&&G.pageScrollElement?(this.pageScrollElement=G.pageScrollElement,G.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){Y.pageScrollElement&&Y.pageScrollElement.removeEventListener("scroll",Y.onPageScroll)})):this.pageScrollElement&&!G.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var G6V=function(Y){window.addEventListener("scroll",Y.onPageScroll);Y.addOnDisposeCallback(function(){window.removeEventListener("scroll",Y.onPageScroll)})},ulo=function(Y){Y.JSC$21570_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(G){a:{var u;
if(u=Y.JSC$21570_watchApi.getRoot().contains(G)&&!Y.animation.isAnimating()){u=G.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var O,Q,M=(G==null?void 0:(O=G.parentElement)==null?void 0:(Q=O.parentElement)==null?void 0:Q.id)==="fixed-secondary";u=!(u&&M)}if(u){if(_.F("kevlar_watch_scroll_manager_absolute_offset_killswitch"))O=G.offsetTop;else for(O=0,Q=G;Q!==null;)O+=Q.offsetTop,O-=Q.scrollTop,Q=Q.offsetParent;Q=O;O=Q-24;G=Q+G.offsetHeight+24;Q=Y.JSC$21570_watchApi.getRoot().getPageScrollingElement();
u=Y.JSC$21570_watchApi.getRoot().getScrollTop();M=u+Q.clientHeight-56;if(O<u+56)G=O-56;else if(G>M)G-=Q.clientHeight;else break a;Y.scrollWatchTo(Math.max(0,G),!0)}}});
Y.addOnDisposeCallback(function(){Y.JSC$21570_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
wy.prototype.onThrottledScroll=function(){var Y=_.Zs(),G=Y.dispatch,u=this.JSC$21570_watchApi.getRoot().getScrollTop();G.call(Y,_.V6({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:u}}))};
wy.prototype.onMastheadThrottledScroll=function(){this.JSC$21570_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$21570_watchApi.getRoot().getScrollTop())};
wy.prototype.scrollWatchTo=function(Y,G){(G===void 0?0:G)?this.animation.start(this.JSC$21570_watchApi.getRoot().getScrollTop(),Math.max(0,Y),500):this.JSC$21570_watchApi.getRoot().setScrollTop(Y)};var MHb=function(Y){_.Ey.call(this);var G=this;this.JSC$21573_watchApi=Y;var u=this.JSC$21573_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){OPV(G)}),O=this.JSC$21573_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){QaN(G)});
this.addOnDisposeCallback(function(){G.JSC$21573_watchApi.unsubscribeByKey(u);G.JSC$21573_watchApi.unsubscribeByKey(O)});
OPV(this);QaN(this)};
_.m(MHb,_.Ey);
var OPV=function(Y){var G,u,O,Q=(O=(G=Y.JSC$21573_watchApi.getPlayerResponse())==null?void 0:(u=G.videoDetails)==null?void 0:u.title)!=null?O:"";Y.JSC$21573_watchApi.dispatchEvent("yt-update-title",Q)},QaN=function(Y){var G,u,O,Q,M,t,K,L=(K=((t=(G=Y.JSC$21573_watchApi.getWatchNextResponse())==null?void 0:(u=G.contents)==null?void 0:(O=u.twoColumnWatchNextResults)==null?void 0:(Q=O.results)==null?void 0:(M=Q.results)==null?void 0:M.contents)!=null?t:[]).find(function(g){return!!g.videoPrimaryInfoRenderer}))==null?
void 0:K.videoPrimaryInfoRenderer;
(G=_.Ri(L==null?void 0:L.title))&&Y.JSC$21573_watchApi.dispatchEvent("yt-update-title",G)};var EWb=function(Y){_.Ey.call(this);this.JSC$21576_watchApi=Y;HPx(this)};
_.m(EWb,_.Ey);var HPx=function(Y){var G,u;_.a(function(O){if(O.nextAddress==1)return O.yield(Y.JSC$21576_watchApi.playerApi,2);G=O.yieldResult;u=function(){Y.onYpcContentRequest()};
G.addEventListener("onYpcContentRequest",u);Y.addOnDisposeCallback(function(){G.removeEventListener("onYpcContentRequest",u)});
_.Sd(O)})};
EWb.prototype.onYpcContentRequest=function(){var Y,G,u,O,Q,M=(Y=this.JSC$21576_watchApi.getWatchNextResponse())==null?void 0:(G=Y.contents)==null?void 0:(u=G.twoColumnWatchNextResults)==null?void 0:(O=u.secondaryResults)==null?void 0:(Q=O.secondaryResults)==null?void 0:Q.offerModule,t,K,L,g;Y=(g=(L=(K=(t=M==null?void 0:M.episodeOfferModuleRenderer)!=null?t:M==null?void 0:M.movieOfferModuleRenderer)!=null?K:M==null?void 0:M.unlimitedOfferModuleRenderer)!=null?L:M==null?void 0:M.liveOfferModuleRenderer)!=
null?g:M==null?void 0:M.tvfilmOfferModuleRenderer;var P,I,k;M=(k=M==null?void 0:(P=M.tvfilmOfferModuleRenderer)==null?void 0:(I=P.actionButtons)==null?void 0:I.length)!=null?k:0;I=Math.max(M-1,0);var n,p,W;P=(W=Y==null?void 0:(n=Y.offerButton)==null?void 0:n.buttonRenderer)!=null?W:Y==null?void 0:(p=Y.actionButtons)==null?void 0:p[I].buttonRenderer;var C,e;(n=(e=(C=P==null?void 0:P.navigationEndpoint)!=null?C:P==null?void 0:P.serviceEndpoint)!=null?e:P==null?void 0:P.command)&&_.Jj.instance.resolveCommand(n)};var tHg=function(Y){Ac.call(this);var G=this;this.rootElement=Y;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return G.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(u){G.initOrDisposeActiveModules(u)}));
this.onAttached()};
_.m(tHg,Ac);_.H=tHg.prototype;_.H.getRoot=function(){return this.rootElement};
_.H.getElement=function(Y){return this.rootElement.getElement(Y)};
_.H.setPlayerResponse=function(Y){this.playerResponse=Y;this.publish("PLAYER_RESPONSE_UPDATED",Y)};
_.H.getPlayerResponse=function(){return this.playerResponse};
_.H.setWatchNextResponse=function(Y){this.watchNextResponse===Y?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=Y,this.publish("WATCH_NEXT_RESPONSE_UPDATED",Y))};
_.H.getWatchNextResponse=function(){return this.watchNextResponse};
_.H.registerActionHandler=function(Y,G){var u=this;if(_.F("web_watch_controller_reg_multiple_handlers_killswitch")){var O={};_.jK(_.N6.getInstance(),(O[Y]=G,O),this.getRoot())}else this.actionHandlers.has(Y)||(this.actionHandlers.set(Y,[]),O={},_.jK(_.N6.getInstance(),(O[Y]=function(){var Q=_.vs.apply(0,arguments);return(u.actionHandlers.get(Y)||[]).map(function(M){return M.apply(null,_.c8(Q))})},O),this.getRoot())),this.actionHandlers.get(Y).push(G)};
_.H.unregisterActionHandler=function(Y){if(_.F("web_watch_controller_reg_multiple_handlers_killswitch")){var G={};_.VO(_.N6.getInstance(),(G[Y]=!0,G),this.getRoot())}else(G=this.actionHandlers.get(Y))?(G.pop(),G.length===0&&(G={},_.VO(_.N6.getInstance(),(G[Y]=!0,G),this.getRoot()),this.actionHandlers.delete(Y))):_.R0(new _.I2("Attempted to unregister an action handler which is not registered.",Y))};
_.H.addPageDisposeJob=function(Y){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.AYy(this.rootElement.pageDisposeJobs,Y)};
_.H.removePageDisposeJob=function(Y){this.rootElement.pageDisposeJobs&&_.Nj(this.rootElement.pageDisposeJobs,Y)};
_.H.dispatchEvent=function(Y,G){_.$s(this.rootElement,Y,G)};
_.H.provideRenderingData=function(Y,G){this.rootElement.provideRenderingData(Y,G)};
_.H.scrollWatchTo=function(Y,G){var u;(u=this.watchScrollManager)==null||u.scrollWatchTo(Y,G)};
_.H.focusOnPlayer=function(){var Y=this.getElement("PLAYER");_.sk(Y,function(){if(Y&&Y.firstElementChild){var G=Y.querySelector(".html5-video-player");G&&(_.Sx(_.sH().resolve(_.tf)),G.focus())}else _.R0(Error("Xl"))})};
var KQV=function(Y){var G=!!Y.rootElement.theater,u=!!Y.rootElement.fullscreen,O;(O=Y.watchCinematicManager)==null||YYb(O,u,G)};
_.H=tHg.prototype;_.H.subscribeToActiveChanged=function(Y,G){G=G===void 0?!0:G;var u=_.Eh(_.Zs(),P8w,function(O){Y(O)});
G&&Y(P8w(_.Zs().getState()));return u};
_.H.isActive=function(){return P8w(_.Zs().getState())};
_.H.onAttached=function(){var Y=_.F("external_fullscreen");_.F("use_unified_flag_accessor")&&(Y=_.sH().resolve(_.Egx).retriever.getFlag(_.swM));(Y||_.hy("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.H.initPersistentModules=function(){if(_.F("kevlar_watch_flexy_theater_manager")){var Y=new Ov9(this);_.vF(this,Y)}Y=new nro(this);_.vF(this,Y);Y=new mn(this);_.vF(this,Y);Y=new Tqb(this);_.vF(this,Y);Y=new R5(this);_.vF(this,Y);Y=new WR(this);_.vF(this,Y);_.F("kevlar_watch_flexy_playlist_manager")&&(Y=new JJN(this),_.vF(this,Y))};
_.H.initOrDisposeActiveModules=function(Y){Y?(this.watchScrollManager=new wy(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new w_j(this)),this.activeModules.push(new Ydw(this)),this.activeModules.push(new MHb(this)),this.activeModules.push(new f6g(this)),_.F("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new MMb(this)),this.activeModules.push(new Nqo(this)),_.F("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new EWb(this)),_.F("kevlar_watch_flexy_ads_manager")&&
this.activeModules.push(new nZg(this)),_.TP("kevlar_watch_cinematics")&&(this.watchCinematicManager=new qNb(this),this.activeModules.push(this.watchCinematicManager),KQV(this)),_.F("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new Bqb(this)),_.F("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new P1N(this)),Y=_.F("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.F("kevlar_watch_flexy_comments_manager")&&!Y&&this.activeModules.push(new Mwg(this)),
_.F("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new zEx(this)),this.activeModules.push(new agV(this)),this.activeModules.push(new Ds9(this)),_.F("web_enable_timely_actions")&&this.activeModules.push(new XRy(this)),_.F("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new DDb(this)),_.F("web_watch_enable_multiview_manager")&&this.activeModules.push(new Cn9(this)),_.F("web_fullscreen_components")&&this.activeModules.push(new a8V(this)),_.F("web_player_rtr_ctrls")&&
this.activeModules.push(new dDx(this))):(_.DM(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.H.disposeInternal=function(){Ac.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Uk.Object.defineProperties(tHg.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.hR(_.D(function(Y){var G=_.CH("script");_.RE(function(){var u;if(u=JSON)u=Hcx(Y.data()),u=_.Lb(JSON.stringify(u).replace(/</g,"\\u003C"));var O=Y.data(),Q=_.Ri(O.title).trim().length===0,M=!O.publishDate||O.publishDate.trim().length===0,t,K,L,g,P=!((t=O.thumbnail)==null?0:(K=t.thumbnails)==null?0:K.length)||!((L=O.thumbnail)==null?0:L.thumbnails[0].url)||((g=O.thumbnail)==null?void 0:g.thumbnails[0].url.trim().length)===0;G.value&&u&&!(Q||M||P)&&_.XH(G.value,u)},"Vy9K7b");
return _.T("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.T("script",{el:G,type:"application/ld+json"}))},"uk"),"player-microformat-renderer",{props:{data:_.wH}});var aPB={},TZ9=["learning-journey-engagement-panel","PAlearning_chat"];
aPB.YtdLearningJourneyWatchBehavior=[_.c.YtRendererBehavior,_.RV.YtPlayerListenerBehavior,_.bE.YtRendererstamperBehavior,_.vZ.YtActionHandlerBehavior,MB.YtPageBehavior,_.U2.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 _.hy("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.F("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 _.hy("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 _.F("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.F("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 _.Jy("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Jy("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)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.TP("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("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 _.F("web_watch_rounded_player_large")||_.F("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 _.F("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.F("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("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 _.F("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("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:PL(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:PL(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-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 Y=this;this.watchController=void 0;this.pageDisposeJobs=[function(){Y.showMetadataPlaceholder_()},
function(){_.F("web_watch_dont_clear_comments")||Y.clearComments_()},
function(){Y.clearPlayerAds_()},
function(){Y.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.F("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.F("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new iFS(function(){return _.Sr(Y)},
this.hostElement);
this.pageDisposeJobs.push(function(){Y.youThereManager_.reset()});
_.F("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){Y.resetFullerscreenEduButtonForNewPlayback_()}));
_.F("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.nA;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;_.F("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.F("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));_.F("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Jh(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(Y){Y&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:Y}),Y.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(Y){_.F("kevlar_watch_flexy_theater_manager")&&(this.theater=Y,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.F("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(Y){!_.F("kevlar_watch_while_v2")&&!_.F("web_watch_pip")||Y||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(Y){this.active!==void 0&&(this.fullscreen=Y,_.F("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(Y){this.active!==void 0&&(_.$s(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.F("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(Y>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(Y){yvy("learning_journey_watch",["pbs","pbp","pbu"]);this.updatePageData_(Y)},
updatePageData_:function(Y){var G=this;if(Y)if(this.data===Y){this.onPageLoadWithSameData_();var u;(u=this.watchController)==null||u.setWatchNextResponse(this.data)}else this.data=Y;this.playlist&&_.kN({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.pQ("nw");this.loading=!1;_.WY(_.AN,function(){SGN();var O,Q=((O=G.player)==null?void 0:O.getVideoData().cpn)||"";BJx(function(M,t){qKw(M,t,Q)})})},
onPageLoadWithSameData_:function(){_.F("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 Y=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!Y);this.set("loadingData.playlistLoading",Y&&Y!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),Y=this.watchNextSkeletonEl_.firstElementChild;Y;)Y.classList.remove("hidden"),Y=Y.nextElementSibling;var G,u,O;Y=(G=this.loadingData)==null?void 0:(u=G.endpoint)==null?void 0:(O=u.watchEndpoint)==null?void 0:O.videoId;var Q;Y&&(Q="https://i.ytimg.com/vi/"+Y+"/frame0.jpg");_.l0(this.hostElement).querySelector("#player").style.backgroundImage=Q?"url("+Q+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var Y=_.l0(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&Y&&(Y.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var G,u;(u=(G=this.watchMetadata).updateSentimentBarWidth)==
null||u.call(G);var O,Q;(Q=(O=this.watchMetadata).resize)==null||Q.call(O)}_.l0(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(Y){var G=_.l0(this.hostElement).querySelector(Y);G?_.Sc(G,!1):_.R0(new _.I2("Overscroll monitor not found for component: ",Y))},
removeSplitScrollMouseTrap:function(Y){var G=_.l0(this.hostElement).querySelector(Y);G?_.NZ(G):_.R0(new _.I2("Disposal component for  overscroll monitoring not found: ",Y))},
onLoadingChanged_:function(Y){Y?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(Y){var G=this;Y?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.AN.addLowPriorityJob(function(){G.onWindowResized_(_.Ob(!0))})},
updateTheaterModeState_:function(Y){if(!_.F("kevlar_watch_flexy_theater_manager")){Y=Y||this.fullWindowMode_;if(this.theater!==void 0||Y)this.theater=Y;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();Y&&yHb()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var Y=this.theater;_.F("external_fullscreen")&&this.fullscreen&&(Y=!0);Y=Y?_.l0(this.hostElement).querySelector("#player-full-bleed-container"):_.l0(this.hostElement).querySelector("#player-container-inner");var G=this.getPlayerContainer(),u=_.F("kevlar_watch_while_v2")||_.F("web_watch_pip");G.parentElement!==Y&&(u&&_.sH().resolve(_.yo).isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Sr(this).appendTo(Y,G),Y.appendChild(_.l0(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var Y=this;return _.a(function(G){if(G.nextAddress==1)return G.yield(_.sH().resolve(_.yo).deactivate(),2);Y.updatePlayerLocation();_.Sd(G)})},
updateCinematicsLocation:function(){var Y=this.getElement("CINEMATICS");if(Y){var G=this.getCinematicsLocationContainer();Y.parentElement!==G&&G.appendChild(Y);var u;(u=this.watchController)==null||KQV(u)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.l0(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.l0(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(Y,G){var u=document.documentElement.hasAttribute("dark"),O=!u&&this.cinematicLightTheme;return Y&&u||G&&u||(G||Y)&&O},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var Y;(Y=this.watchController)==null||Y.setWatchNextResponse(this.data);_.F("kevlar_watch_flexy_comments_manager")||this.initComments_();_.F("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.sH().resolve(_.yq).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.F("web_watch_start_chat_in_theater_mode")){var G,
u,O;if((G=this.data)==null?0:(u=G.contents)==null?0:(O=u.twoColumnWatchNextResults)==null?0:O.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var Q,M;((Q=this.data)==null?0:(M=Q.contents)==null?0:M.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(Y){var G;(G=this.watchController)==null||G.setPlayerResponse(this.playerData);Y&&Y.playabilityStatus&&(G=this.isVideoPlayable_(Y.playabilityStatus,this.getPlayerOverlays_(this.data)),Y=EUy(Y.playabilityStatus),G&&!Y||_.sk(this,function(){_.pQ("pbu")}));
this.setPlayerAds_();_.sK(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(Y){_.Zs().dispatch(_.V6({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));Y?this.activate_():this.deactivate_()},
attached:function(){var Y=this;this.watchController=new tHg(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.F("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var G=_.Sr(this);_.F("kevlar_disable_prepare_player")||G.preparePlayer();_.F("kevlar_watch_flexy_playlist_manager")||_.sH().resolve(_.yq).setPlayer(G);this.updatePageMediaQueries();G={"--ytd-watch-flexy-scrollbar-width":$u()+
"px"};!_.Jy("kv_pl_mx_sz_ks")&&_.Jy("kevlar_watch_max_player_width")&&(G["--ytd-watch-flexy-max-player-width-wide-screen"]=$5b+"px");_.Jy("kevlar_watch_flexy_metadata_height")&&(G["--ytd-watch-flexy-space-below-player"]=sSw+"px");this.safeUpdateStyles(G);_.F("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new W6x(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return Y.onPlayerTouchPanDown_()}}));
_.F("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.l0(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var Y=$u(),G=qm+Y,u=G;this.fixedPanels&&(G+=lvw);var O=657+Y;Y=1327+Y;_.l0(this.hostElement).querySelector("#two-column-query").query="(min-width: "+G+"px)";_.l0(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(O+"px), (min-height: 630px) and (min-width: ")+(G+"px) and (max-width: ")+(Y+"px)");_.l0(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(Y+"px)");_.l0(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+u+"px)"},
calculateCurrentPlayerSize_:function(){return this.theater||_.F("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.oB(NaN,NaN):cfo(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return cfo(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.ZM(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var Y=this;this.onWindowResized_(_.Ob());_.F("browse_skeleton_removal_on_watch_killswitch")||_.hy("IS_SHELL_LOAD")&&hU9();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var G=_.Sr(this);G.addEventListener("yt-player-updated",_.Jh(this,this.onPlayerUpdated_));G.getPlayerPromise().then(function(u){Y.playerApiReady_(u)});
_.F("kevlar_watch_flexy_playlist_manager")||(G=_.sH().resolve(_.yq),_.F("kevlar_watch_observe_playlist_navigations_killswitch")&&G.addEventListener("yt-navigate",_.Jh(this,this.onYtNavigate_)),G.setPlaylistComponent(_.l0(this.hostElement).querySelector("#playlist")),G.addEventListener("yt-playlist-data-updated",_.Jh(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.AN.addLowPriorityJob(function(){_.$s(Y.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Sr(this).removeEventListener("yt-player-updated",_.Jh(this,this.onPlayerUpdated_));if(!_.F("kevlar_watch_flexy_playlist_manager")){var Y=_.sH().resolve(_.yq);_.F("kevlar_watch_observe_playlist_navigations_killswitch")&&Y.removeEventListener("yt-navigate",_.Jh(this,this.onYtNavigate_));Y.cancelVideoSkip();Y.removeEventListener("yt-playlist-data-updated",_.Jh(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();
_.$s(this.hostElement,"yt-autonav-pause-player",!1);Y=_.dJ();_.F("kevlar_exit_fullscreen_leaving_watch")&&Y&&_.bc(Y)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(Y){this.player&&this.player.updateVideoData({rvs:Y.rvs})},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(Y){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Y)},
onRetrieveLocation_:function(Y,G){G.hasComments?G.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):G.locationRetrieved("/related_ajax",void 0);Y.stopPropagation()},
onSubscriptionChanged_:function(Y,G){this.player&&(G?this.player.channelSubscribed():this.player.channelUnsubscribed())},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.l0(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.l0(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(Y){this.player=Y;Y=Y.getPlayerState();_.Zs().dispatch(_.zc(Y));this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.F("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.F("kevlar_unified_player")||_.F("kevlar_player_new_bootstrap_adoption"))&&_.w4()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(Y,G){G=G===void 0?!0:G;_.dJ()&&_.F("external_fullscreen")&&_.bc(document.documentElement);this.theaterRequested_=Y;G&&_.LG("wide",Y?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.F("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.qZ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.$s(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(Y){_.wN(Y,typeof this.player),this.player&&_.wN(Y,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var Y;((Y=this.player)==null?0:Y.isFullscreen())?this.player.toggleFullscreen():_.qZ(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(Y,G){return this.loading?G:!!Object.keys(Y).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(Y){if(Y){Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next())G=G.value,G.youThereRenderer&&ZFx(this.youThereManager_,G.youThereRenderer)}},
setPlaylistData_:function(Y){return Y||{}},
userEngagementConfigDataChanged_:function(Y){if(Y)if(Y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var G=this.youThereManager_;_.Y7()<Y.lowEngagementThresholdMs||bF9(G,!0)}else Y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.qZ(this.hostElement,"yt-autonav-pause-user-engagement",[Y])},
isPlayerUnavailable_:function(Y,G,u){return!!Y&&!this.isVideoPlayable_(Y,u)&&!G},
getPlayerOverlays_:function(Y){return(Y==null?void 0:Y.playerOverlays)||null},
isVideoPlayable_:function(Y,G){if(!Y)return!1;var u=Y.status==="OK"||Y.status==="LIVE_STREAM_OFFLINE",O=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",Y)||this.get("errorScreen.ypcTrailerRenderer",Y);Y=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",Y);var Q;G=G==null?void 0:(Q=G.playerOverlayRenderer)==null?void 0:Q.gatedActionsOverlayRenderer;return!!u||!!O||!!Y||!!G},
shouldProceedToNextVideo_:function(Y,G,u){var O=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",G),Q=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Q=_.F("web_no_skip_video_on_verification_checks")?(Y==null?void 0:Y.status)&&Q.includes(Y.status):Y&&Y.status==="AGE_CHECK_REQUIRED";var M=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",Y);M==void 0&&(M=!0);!u||this.isVideoPlayable_(Y,this.getPlayerOverlays_(G))||
O||Q||!M||_.sH().resolve(_.yq).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();ajj()},
onPlayerFeedbackStartRequest_:function(Y){_.qZ(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:Y}])},
onPlayerFeedbackArticleRequest_:function(Y){_.qZ(this.hostElement,"yt-help-dialog-requested",[Y])},
onPlayerYpcContentRequest_:function(){var Y,G,u,O,Q,M,t,K,L=((Y=this.data)==null?NaN:(G=Y.contents)==null?NaN:(u=G.twoColumnWatchNextResults)==null?NaN:(O=u.secondaryResults)==null?NaN:(Q=O.secondaryResults)==null?NaN:(M=Q.offerModule)==null?NaN:(t=M.tvfilmOfferModuleRenderer)==null?NaN:(K=t.actionButtons)==null?NaN:K.length)-1;Y=[".offerButton.buttonRenderer.",".actionButtons."+(L>=0?L:0)+".buttonRenderer."];G=_.E(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(u=G.next();!u.done;u=G.next())for(u=u.value,O=_.E(Y),Q=O.next();!Q.done;Q=O.next())if(Q="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+u+Q.value,Q=this.get(Q+"navigationEndpoint",this.data)||this.get(Q+"serviceEndpoint",this.data)||this.get(Q+"command",this.data)){_.Yy(Q,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(Y){_.$s(this.hostElement,"yt-autonav-pause-player",Y)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(Y){Y()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(Y){switch(Y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(Y){switch(Y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.$s(this.hostElement,"yt-autonav-pause-player-ended")}_.Zs().dispatch(_.zc(Y))},
onPlayerSubscribe_:function(Y){_.qZ(this.hostElement,"yt-player-subscribe",[Y])},
onPlayerUnsubscribe_:function(Y){_.qZ(this.hostElement,"yt-player-unsubscribe",[Y])},
onPlayerAdYtShowToast_:function(Y){_.qZ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:Y.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(Y){if(Y)return Y},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(Y){return!_.TP("web_watch_move_summary_to_sd")&&!!Y},
computeWatchMetadataRefresh:function(){return _.F("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var Y,G,u,O;this.watchNextSecondaryResults=(Y=this.data)==null?void 0:(G=Y.contents)==null?void 0:(u=G.twoColumnWatchNextResults)==null?void 0:(O=u.secondaryResults)==null?void 0:O.secondaryResults}},
setRichGridRendererData:function(Y){this.richGridRendererData=Y},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var Y,G=(Y=this.data)==null?void 0:Y.engagementPanels;if(G==null?0:G.length){Y=null;G=_.E(G);for(var u=G.next();!u.done;u=G.next()){u=u.value;var O=void 0;if(((O=u.engagementPanelSectionListRenderer)==null?void 0:O.targetId)==="engagement-panel-structured-description"){Y=u;break}}var Q,M,t;Y=(Q=Y)==null?void 0:(M=Q.engagementPanelSectionListRenderer)==null?void 0:(t=M.content)==null?void 0:t.structuredDescriptionContentRenderer;if(Y==null?0:Y.items){Q=
[];M=_.E(Y.items);for(t=M.next();!t.done;t=M.next()){t=t.value;if(!_.F("sd_horizontal_list_show_nav_killswitch")){var K=O=u=G=Y=void 0,L=void 0,g=(Y=t.horizontalCardListRenderer)==null?void 0:(G=Y.header)==null?void 0:(u=G.richListHeaderRenderer)==null?void 0:(O=u.navigationButton)==null?void 0:(K=O.buttonRenderer)==null?void 0:(L=K.command)==null?void 0:L.commandExecutorCommand;g&&g.commands&&(g.commands=g.commands.filter(function(P){return!_.z(P,IDg)}))}t.expandableVideoDescriptionBodyRenderer||
t.videoDescriptionHeaderRenderer||Q.push(t)}return{items:Q}}}},
isPlaShelfEnabled_:function(Y){if((this.get("adPlacements",Y)||[]).length)return!0;Y=this.get("playerAds",Y)||[];return!(!Y.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",Y[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var Y=this;_.$s(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();var G=this.getScrollTop()>0;this.gestures_&&(G?this.gestures_.detach():this.gestures_.attach());G!==this.showFullerscreenEdu_&&_.F("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=G,_.Sr(this).getPlayerPromise().then(function(u){u.updateFullerscreenEduButtonVisibility(Y.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.$s(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var Y=this;this.commentsReady=!1;_.AN.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.WY(_.AN,function(){Y.setComments_()},1E3)},
setComments_:function(){if(!_.F("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.pQ("cmi");_.AN.cancelJob(this.setCommentsJobId_);var Y=t59(this.data);if(Y&&Y.length){Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next())if(G=G.value,this.get("itemSectionRenderer.sectionIdentifier",G)==="comment-item-section"){this.comments=G.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.$s(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.F("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.F("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.pQ("cmc")},
doRemoveComments_:function(){this.comments={};_.F("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.AN.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.AN.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(Y,G){var u=_.z(G.endpoint,_.ic);u&&(!(G=this.get("data.currentVideoEndpoint.watchEndpoint"))||u.videoId!==G.videoId||u.playlistId&&u.playlistId!==G.playlistId||u.index!==void 0&&u.index!==G.index||typeof u.startTimeSeconds!=="number"||(Y.stopPropagation(),this.setScrollTop(0),_.Sr(this).getPlayerPromise().then(function(O){var Q=u.startTimeSeconds;O.seekTo(Q);O.wakeUpControls();Q<O.getDuration()&&O.playVideo()})))},
updatePlayerStartTime_:function(){var Y=dtN();"t"in Y&&(Y=HKB(Y.t),this.player.seekTo(Y,!0))},
updateTitleFromWatchNext:function(Y){Y=t59(Y);var G,u;(Y=_.Ri(Y==null?void 0:(G=Y[0])==null?void 0:(u=G.videoPrimaryInfoRenderer)==null?void 0:u.title))&&_.$s(this.hostElement,"yt-update-title",Y)},
updateTitle_:function(Y){Y=this.get("videoDetails.title",Y)||"";_.$s(this.hostElement,"yt-update-title",Y)},
syncWithRemoteVideo_:function(Y,G,u){if(this.active&&this.player){var O=this.player.getVideoData();O.video_id===u&&(u=O.list,_.F("polymer_enable_mdx_queue")&&u&&u.startsWith("RQ")&&(u=void 0),O.video_id!==Y||u!=G)&&(Y=_.F("kevlar_player_watch_endpoint_navigation")?_.Kct(zUg(Y,G)):_.bg(Y,G),_.$s(this.hostElement,"yt-navigate",{endpoint:Y,isRemotePlayback:!0}))}},
attachWatchPageSkeleton_:function(){var Y=document.querySelector("#watch-page-skeleton");if(Y){var G=Y.querySelector("#primary-info"),u=Y.querySelector("#secondary-info"),O=Y.querySelector("#related");G&&_.l0(this.hostElement).querySelector("#info-skeleton").appendChild(G);u&&_.l0(this.hostElement).querySelector("#meta-skeleton").appendChild(u);O&&(_.l0(this.hostElement).querySelector("#related-skeleton").appendChild(O),this.watchNextSkeletonEl_=O);_.Oy(Y)}},
handlePlayerUpdated_:function(){_.Sr(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(Y,G){if(this.watchNextSkeletonEl_&&typeof G!=="undefined"){var u=this.watchNextSkeletonEl_.children,O=Y&&Y.indexSplices.length?Y.indexSplices[0].index:0;Y=Math.min(this.watchNextShownItems.length,u.length);G||(O=0,Y=u.length);for(G=O;G<Y;G++)u[G].classList.add("hidden")}},
onPlayerFullscreenChange_:function(Y){_.F("external_fullscreen")||_.qZ(this.hostElement,"yt-player-fullscreen",[Y.fullscreen])},
onFullscreenChange_:function(Y){this.fullscreen=Y;this.gestures_&&this.gestures_.update(this.fullscreen);var G=_.Sr(this);G.getPlayerPromise().then(function(u){u.setFauxFullscreen(!!_.dJ())});
this.updateFullBleedElementLocations();Y&&(G.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(Y,G){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!G},
computeIsDonationShelfCollapsed_:function(Y){return Y},
computeShouldShowMerchShelf:function(Y,G){return G&&!!Y},
computeResponseHasComments:function(Y){var G,u,O,Q,M;return!!(Y==null?0:(G=Y.contents)==null?0:(u=G.twoColumnWatchNextResults)==null?0:(O=u.results)==null?0:(Q=O.results)==null?0:(M=Q.contents)==null?0:M.some(function(t){var K;return(t==null?void 0:(K=t.itemSectionRenderer)==null?void 0:K.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(Y,G){this.responseHasComments=this.computeResponseHasComments(this.data);return!!Y&&!!Object.keys(Y).length&&!G},
identity:_.Zt,onWindowResized_:function(Y){this.windowSize_=Y;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.F("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onPlayerPresentingVideoDataChange_:function(Y){var G=this;Y&&Y.type!=="dataloaded"&&Y.type!=="dataupdated"||_.Sr(this).getPlayerPromise().then(function(u){var O=u.getPlayerState();O!==5&&O!==0&&(u=1/u.getVideoAspectRatio(),G.videoHeightToWidthRatio_!==u&&(G.videoHeightToWidthRatio_=u))})},
schedulePlayerSizeUpdate_:function(Y){var G=this,u=_.F("kevlar_watch_while_v2")||_.F("web_watch_pip"),O=function(){if(G.watchMetadata){var Q,M;(M=(Q=G.watchMetadata).resize)==null||M.call(Q)}_.Sr(G).getPlayerPromise().then(function(t){if(_.TP("kevlar_set_internal_player_size")){if(!u||!_.sH().resolve(_.yo).isMiniplayerActive()){var K=G.calculateCurrentPlayerSize_();t.setInternalSize(K.width,K.height)}}else t.setSize(NaN,NaN);_.F("kevlar_watch_while")&&G.updateWatchWhileScrollThreshold_()})};
Y?O():_.EA(_.AN,O)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(Y){this.set("data.survey",Y.detail)},
onYtShowSurveyCommand_:function(Y){this.set("data.survey",_.z(Y,Uh9).survey)},
onDownloadedVideoDeleted:function(Y){var G=this,u,O;return _.a(function(Q){if(Q.nextAddress==1){if(!G.active||(u=G.playerData)==null||!u.offlineState||G.videoId!==Y)return Q.return();(O=G.player)==null||O.stopVideo();_.Qq().navigatingAwayFromWatchDeletedVideo=!0;_.Yy(_.X_4,G.hostElement);return Q.yield(_.Qq().navigationFinishPromise,2)}_.Qq().navigatingAwayFromWatchDeletedVideo=!1;_.Sd(Q)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var Y;this.theater?Y=_.yW(.5625*this.windowSize_.width,480,this.windowSize_.height-185):Y=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==Y&&(this.watchWhileScrollThreshold_=Y)}},
isTwoColumnsChanged_:function(Y,G){if(Y!==!0||G!==void 0){Y=!_.F("live_chat_over_engagement_panels");G=_.l0(this.hostElement).querySelector("#chat-container");var u=_.l0(this.hostElement).querySelector("#plj-sidebar"),O=_.l0(this.hostElement).querySelector("#panels"),Q=_.l0(this.hostElement).querySelector("#plj-panels"),M=_.l0(this.hostElement).querySelector("#plj-playlist"),t=_.l0(this.hostElement).querySelector("#alerts"),K=_.l0(this.hostElement).querySelector("#playlist"),L=_.l0(this.hostElement).querySelector("#related"),
g=_.l0(this.hostElement).querySelector("#donation-shelf"),P=_.l0(this.hostElement).querySelector("#comments");this.isTwoColumns_?(t=_.l0(this.hostElement).querySelector("#secondary-inner"),t.appendChild(u),u.appendChild(M),M.appendChild(K),u.appendChild(Q),Y&&t.appendChild(O),_.F("web_watch_theater_chat")||t.appendChild(G),Y||t.appendChild(O),t.appendChild(g),t.appendChild(L)):(Y&&_.Am(O,t),_.Am(K,t),_.F("web_watch_theater_chat")||_.Am(G,t),Y||_.Am(O,t),_.Am(g,t),P&&(Q&&_.Am(Q,P),_.Am(L,P)));_.F("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.F("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.F("web_watch_theater_chat")){var Y=_.l0(this.hostElement).querySelector("#chat-container"),G=this.theater&&!this.fullscreen||_.F("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&G?_.F("web_watch_theater_chat_beside_player")?(G=_.l0(this.hostElement).querySelector("#panels-full-bleed-container"),(Y==null?void 0:Y.parentElement)!==G&&G.append(Y),this.panelsBesidePlayer=!0):_.F("web_watch_theater_fixed_chat")&&
(G=_.l0(this.hostElement).querySelector("#columns"),(Y==null?void 0:Y.parentElement)!==G&&G.append(Y),this.fixedPanels=!0):(_.F("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.F("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),G=_.l0(this.hostElement).querySelector("#playlist"),Y&&G?_.o9(Y,G):_.R0(new _.I2("Missing element when updating chat location",{"chatContainer defined":!!Y,"playlist defined":!!G})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(Y,G){return _.F("sw_metadata_vis_toggle_ks")?!0:!!Y||!!G},
computeForceDarkPanelTheme:function(Y){return _.F("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&Y:!1},
safeUpdateStyles:function(Y){try{_.cm(this.hostElement,Y)}catch(G){_.R0(G)}},
videoHeightToWidthRatioChanged_:function(Y,G){G&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.F("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(Y){this.videoHeightToWidthRatio_=1/Y},
computeIsVerticalVideo_:function(Y){return Y>=1},
computeIsFourThreeToSixteenNineVideo_:function(Y){return Y<=.7501&&Y>=.5624},
computeIsExtraWideVideo_:function(Y){return Y<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Sr(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Sr(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){SCS(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(Y){var G=_.LB(Y)||0;_.TA(Y,G+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var Y=_.LB("yt-fullerscreen-edu-button-click-count")||0,G=_.LB("yt-fullerscreen-edu-button-shown-count")||0,u=_.Jy("external_fullscreen_button_shown_threshold"),O=Y>=_.Jy("external_fullscreen_button_click_threshold")||G>=u;_.Sr(this).getPlayerPromise().then(function(Q){Q.updateFullerscreenEduButtonSubtleModeState(O)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(Y,G){return G},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.sH().resolve(_.yq).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var Y=this;this.panelMaxHeightUpdateJob_&&_.AN.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.AN.addLowPriorityJob(function(){Y.panelMaxHeightUpdateJob_=0;var G;!Y.isTwoColumns_||Y.theater||Y.fullscreen?G=460:G=Y.calculateNormalPlayerSize_().height;var u=G+"px";_.F("live_chat_taller_height")&&!Y.theater&&(u="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.F("live_chat_medium_height")&&
!Y.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.F("live_chat_scaled_height")&&!Y.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 238px)");Y.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":G+"px","--ytd-watch-flexy-chat-max-height":u,"--ytd-watch-flexy-structured-description-max-height":G+"px","--ytd-watch-flexy-comments-panel-max-height":G+"px","--ytd-comments-engagement-panel-content-height":G+"px"})})},
onYtShowEngagementPanelScrimAction_:function(Y){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",Y)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.UK(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(Y){var G=_.l0(this.hostElement).querySelector("#engagement-panel-scrim");Y?G.addEventListener("tap",_.Jh(this,this.onEngagementPanelScrimClick_)):G.removeEventListener("tap",_.Jh(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(Y){if(this.hostElement.contains(Y)&&!this.scrollToAnimation_.isAnimating()){var G=Y.offsetTop-24;Y=Y.offsetTop+Y.offsetHeight+24;var u=this.getPageScrollingElement(),O=this.getScrollTop(),Q=O+u.clientHeight-56;if(G<O+56)G-=56;else if(Y>Q)G=Y-u.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,G),500)}},
onYtSignalActionScrollToComments:function(){var Y=this.hostElement.querySelector("#comments");if(Y&&!this.scrollToAnimation_.isAnimating()){Y=Y.offsetTop-56-24;if(_.F("kevlar_comment_teaser_scroll_to_midpoint")&&(Y-=_.QF().height/3,Y<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Y),500)}},
onYtEngagementPanelVisibleChanged:function(Y,G,u){this.active&&this.trackEngagementPanelVisibility&&!HYN.includes(u)&&(G==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(u),G!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&G!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(u),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(Y){return Y?"":"watch-active-metadata"},
computeNewMetadataClass:function(Y){return Y?"watch-active-metadata":""},
computeFullBleedPlayer:function(Y,G){return Y||G},
computeDefaultLayout:function(Y){return!Y},
computeDefaultTwoColumnLayout:function(Y,G){return!Y&&G},
computeWatchWhilePanelsActive:function(Y,G){return Y||G},
computeNoBorderOnChat:function(Y){return _.F("web_watch_theater_chat_no_border")&&Y},
computeLiveChatPresentAndExpanded:function(Y,G){return Y&&!G},
computePanelExpanded:function(Y,G,u){return Y||G||u},
onChangeMarkersVisibility:function(Y){_.Sr(this).getPlayerPromise().then(function(G){var u;(u=G.changeMarkerVisibility)==null||u.call(G,_.z(Y,kA).isVisible||!1,_.z(Y,kA).entityKeys||[],_.z(Y,kA).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(Y){this.liveChatCollapsed=Y.detail;_.Zs().dispatch(QZg(Y.detail))},
provideRenderingData:function(Y,G){switch(Y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=G;break;case "PRIMARY_INFO":_.F("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=G);this.videoPrimaryInfoRendererValue=G==null?void 0:G.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.F("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=G);this.videoSecondaryInfoRendererValue=G==null?void 0:G.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
G;break;case "CLARIFICATION":this.clarifyBoxValue=G;break;case "LIVE_CHAT":this.conversationBar=G;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=G;break;case "PLAYLIST":this.externalPlaylistData_=G!=null?G:{};break;case "MERCH_SHELF":this.merchShelfValue=G==null?void 0:G.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=G;break;case "OFFER_MODULE":this.offerModule=G;break;case "LIMITED_STATE":this.limitedStateValue=G;break;case "DONATION_SHELF":this.donation=G;break;
case "ALERTS":this.alertsValue=G;break;case "COMMENTS":this.comments=G;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=G;break;case "ENGAGEMENT_PANELS":this.engagementPanels=G;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=G;break;case "RICH_GRID_RENDERER":this.richGridRendererData=G;break;case "EXPANDABLE_METADATA":this.expandableMetadata=G;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=G}},
toggleCinematicsActive:function(Y){this.cinematicsActive=Y},
getLearningJourneyEngagementPanels:function(Y){return TZ9.map(function(G){return Y.find(function(u){var O;return(u==null?void 0:(O=u.engagementPanelSectionListRenderer)==null?void 0:O.targetId)===G})}).filter(function(G){return G!==void 0})},
getNonLearningJourneyEngagementPanels:function(Y){return Y.filter(function(G){var u;return!TZ9.includes((G==null?void 0:(u=G.engagementPanelSectionListRenderer)==null?void 0:u.targetId)||"")})}}];var Zg=function(){return _.Mb.apply(this,arguments)||this};
_.m(Zg,_.Mb);_.H=Zg.prototype;_.H.activeChanged=function(){if(this.active){var Y=_.l0(this.hostElement).querySelector("#header");Y&&_.$s(Y,"iron-resize");window.addEventListener("scroll",_.Jh(this,this.onScroll))}else window.removeEventListener("scroll",_.Jh(this,this.onScroll)),_.$s(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.H.guideVisibleChanged=function(){var Y=_.l0(this.hostElement).querySelector("#header");Y&&_.$s(Y,"iron-resize")};
_.H.onScroll=function(){var Y=this;_.y4(this,"onScroll",function(){var G=_.l0(Y.hostElement).querySelector("#header");G&&G.polymerController&&(G=G.polymerController.getScrollState().progress===1?"standard":"seamed",_.$s(Y.hostElement,"yt-request-panel-mode-change",{mode:G}))},10)};
_.H.tabsChanged=function(){if(this.tabs){for(var Y=null,G=0,u=this.tabs.length;G<u;++G){var O=this.tabs[G].tabRenderer;if(O&&O.selected){Y=G;break}}this.selected=Y}};
_.H.onTabsActivate=function(Y){_.$s(this.hostElement,"yt-navigate",{endpoint:this.tabs[Y.detail.selected].tabRenderer.endpoint})};
Zg.prototype.tabsChanged=Zg.prototype.tabsChanged;Zg.prototype.guideVisibleChanged=Zg.prototype.guideVisibleChanged;Zg.prototype.activeChanged=Zg.prototype.activeChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Zg.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.R(),_.V("design:type",Array)],Zg.prototype,"tabs",void 0);
_.S([_.R(),_.V("design:type",Object)],Zg.prototype,"selected",void 0);_.S([_.R(),_.V("design:type",Boolean)],Zg.prototype,"active",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Zg.prototype,"disableHeaderFluidWidth",void 0);_.S([_.GO("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zg.prototype,"activeChanged",null);
_.S([_.GO("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zg.prototype,"guideVisibleChanged",null);_.S([_.GO("tabs"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zg.prototype,"tabsChanged",null);_.S([_.Hn()],Zg);var LQV=[_.c.YtRendererBehavior,_.y8.YtdGuideStateAwareBehavior,Zg.prototype];var XtS=function(Y){_.Ey.call(this);var G=this;this.JSC$21606_watchApi=Y;this.observer=null;var u=this.JSC$21606_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gWx(G)});
this.addOnDisposeCallback(function(){G.JSC$21606_watchApi.unsubscribeByKey(u);G.observer&&(G.observer.disconnect(),G.observer=null)});
gWx(this)};
_.m(XtS,_.Ey);var gWx=function(Y){var G,u,O,Q,M;_.a(function(t){if(t.nextAddress==1){Y.observer&&(Y.observer.disconnect(),Y.observer=null);G=Y.JSC$21606_watchApi.getWatchNextResponse();if(!G)return t.return();u=_.z(G,AqN);return((O=u)==null?0:O.enableCreatorChatbot)&&u.creatorChannelId?_.F("enable_creator_chatbot_link_out")?t.yield((0,_.Ok)("NSzT5"),6):t.yield((0,_.Ok)("NSzT5"),5):t.jumpTo(0)}if(t.nextAddress!=6)return Q=_.zlR,Q(u.creatorChannelId),t.jumpTo(0);M=_.p1M;M(u.creatorChannelId);_.Sd(t)})};var Dg=function(Y){_.Ey.call(this);this.JSC$21610_watchApi=Y;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;PWN(this)};
_.m(Dg,_.Ey);var PWN=function(Y){_.a(function(G){if(G.nextAddress==1)return G.yield(IPV(Y),2);k6w(Y);_.Sd(G)})},IPV=function(Y){var G,u,O,Q,M,t,K,L,g;
return _.a(function(P){if(P.nextAddress==1)return P.yield(Y.JSC$21610_watchApi.playerApi,2);G=P.yieldResult;Y.JSC$21610_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){nWV(Y)});
Y.JSC$21610_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){Y.isShelfVisible?FQx(Y):h9(Y)});
u=_.Zs().subscribe(function(){Y.isTheaterMode=_.Fm(_.Zs().getState());Y.isTheaterMode?h9(Y):ptV(Y)});
O=Y.JSC$21610_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){k6w(Y)});
Q=function(I){Y.onCueRangeEnter(I)};
G.addEventListener("onCueRangeEnter",Q);M=function(I){Y.onCueRangeExit(I)};
G.addEventListener("onCueRangeExit",M);t=function(){Y.isSeeking=!0};
G.addEventListener("SEEK_TO",t);K=function(){Y.onSeekComplete()};
G.addEventListener("SEEK_COMPLETE",K);L=function(){Y.onAdStart()};
G.addEventListener("onAdStart",L);g=function(){Y.onAdComplete()};
G.addEventListener("onAdComplete",g);Y.addOnDisposeCallback(function(){u();Y.JSC$21610_watchApi.unsubscribeByKey(O);G.removeEventListener("onCueRangeEnter",Q);G.removeEventListener("onCueRangeExit",M);G.removeEventListener("SEEK_TO",t);G.removeEventListener("SEEK_COMPLETE",K);G.removeEventListener("onAdStart",L);G.removeEventListener("onAdComplete",g)});
_.Sd(P)})},zqw=function(Y){var G,u,O,Q,M,t,K,L,g;
return(M=(G=Y.contents)==null?void 0:(u=G.twoColumnWatchNextResults)==null?void 0:(O=u.results)==null?void 0:(Q=O.results)==null?void 0:Q.contents)==null?void 0:(t=M.find(function(P){var I,k,n;return(I=P.itemSectionRenderer)==null?void 0:(k=I.contents)==null?void 0:(n=k[0])==null?void 0:n.shoppingTimelyShelfViewModel}))==null?void 0:(K=t.itemSectionRenderer)==null?void 0:(L=K.contents)==null?void 0:(g=L[0])==null?void 0:g.shoppingTimelyShelfViewModel},k6w=function(Y){var G;
_.a(function(u){if(u.nextAddress==1)return(G=Y.JSC$21610_watchApi.getWatchNextResponse())?u.yield(nWV(Y),2):u.return();Y.shoppingTimelyShelfViewModel=zqw(G);mqV(Y);WQN(Y);_.Sd(u)})},mqV=function(Y){var G,u=(G=Y.shoppingTimelyShelfViewModel)==null?void 0:G.offerIdToVariants;
u&&(G=u.filter(function(O){return O.key&&O.value}).map(function(O){return[O.key,
O.value]}),Y.variantsMap=new Map(G))},WQN=function(Y){var G,u,O,Q,M,t;
_.a(function(K){if(K.nextAddress==1)return(u=(G=Y.shoppingTimelyShelfViewModel)==null?void 0:G.cueRanges)?K.yield(Y.JSC$21610_watchApi.playerApi,2):K.return();O=K.yieldResult;Y.cueRanges=u;Q=_.E(u);for(M=Q.next();!M.done;M=Q.next())t=M.value,t.startTime!==void 0&&t.endTime!==void 0&&t.id!==void 0&&O.addCueRange("shopping_timely_shelf"+t.id,rIN(t.startTime),rIN(t.endTime));_.Sd(K)})},rIN=function(Y){return Number(Y.seconds||0)+(Y.nanos||0)/1E9};
Dg.prototype.onCueRangeEnter=function(Y){if(Y.startsWith("shopping_timely_shelf")&&(this.activeCueId=Y,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){Y=Y.substring(21);var G,u,O=(G=this.variantsMap)==null?void 0:(u=G.get(Y))==null?void 0:u.shelf;O&&(this.JSC$21610_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",O),FQx(this))}};
Dg.prototype.onCueRangeExit=function(Y){Y.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||h9(this))};
Dg.prototype.onSeekComplete=function(){this.isSeeking=!1;ptV(this)};
var FQx=function(Y){Y.shoppingTimelyShelfViewModel&&(Y.isShelfVisible=!0,_.N6.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},h9=function(Y){Y.shoppingTimelyShelfViewModel&&Y.isShelfVisible&&(Y.isShelfVisible=!1,_.N6.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},nWV=function(Y){var G,u,O,Q,M;
return _.a(function(t){if(t.nextAddress==1)return t.yield(Y.JSC$21610_watchApi.playerApi,2);G=t.yieldResult;if(Y.cueRanges)for(u=_.E(Y.cueRanges),O=u.next();!O.done;O=u.next())Q=O.value,Q.id&&(M="shopping_timely_shelf"+Q.id,G.removeCueRange(M));Y.JSC$21610_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});h9(Y);Y.shoppingTimelyShelfViewModel=void 0;Y.cueRanges=void 0;Y.variantsMap=void 0;Y.isSeeking=!1;Y.activeCueId=void 0;_.Sd(t)})};
Dg.prototype.onAdStart=function(){this.isAdPlaying=!0;h9(this)};
Dg.prototype.onAdComplete=function(){this.isAdPlaying=!1;ptV(this)};
var ptV=function(Y){if(Y.activeCueId)Y.onCueRangeEnter(Y.activeCueId);else h9(Y)};var eqN=function(Y){_.Ey.call(this);var G=this;this.JSC$21617_watchApi=Y;Y=_.Eh(_.Zs(),_.rca,function(){xqB(G)});
this.addOnDisposeCallback(Y);Y=_.Eh(_.Zs(),Isb,function(){xqB(G)});
this.addOnDisposeCallback(Y);fPj(this);CWB(this);yIb()};
_.m(eqN,_.Ey);var fPj=function(Y){var G=function(O){_.Zs().dispatch(OM9(O.matches))},u=window.matchMedia("(max-width: "+(999+$u())+"px)");
u.addListener(G);Y.addOnDisposeCallback(function(){u.removeListener(G)});
G(u)},CWB=function(Y){Y.JSC$21617_watchApi.registerActionHandler("yt-window-resized",function(){yIb()});
Y.addOnDisposeCallback(function(){Y.JSC$21617_watchApi.unregisterActionHandler("yt-window-resized")})},yIb=function(){var Y=_.Ob();
_.Zs().dispatch(_.V6({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:Y.width,height:Y.height}}}))},xqB=function(Y){var G;
_.a(function(u){if(u.nextAddress==1)return u.yield(Y.JSC$21617_watchApi.playerApi,2);G=u.yieldResult;G.setSize(NaN,NaN);_.Sd(u)})};var AIj=function(Y){_.Ey.call(this);var G=_.sH().resolve(_.T7);PD9(G,Y.getElement("PLAYER_CONTAINER"),Y.getElement("BELOW_THE_PLAYER"),Y.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var u=Y.getElement("PLAYER_CONTAINER"),O=Y.getElement("BELOW_THE_PLAYER"),Q=Y.getElement("SECONDARY");G.isLockupToWatchTransitionEnabled&&(u&&_.xC(G.viewTransitionCoordinator,u),O&&_.xC(G.viewTransitionCoordinator,O),Q&&_.xC(G.viewTransitionCoordinator,Q))})};
_.m(AIj,_.Ey);var dy=function(Y){Ac.call(this);var G=this;this.rootElement=Y;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return G.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(u){G.initOrDisposeActiveModules(u)}));
this.onAttached()};
_.m(dy,Ac);_.H=dy.prototype;_.H.getRoot=function(){return this.rootElement};
_.H.getElement=function(Y){return this.rootElement.getElement(Y)};
_.H.setPlayerResponse=function(Y){this.playerResponse=Y;this.publish("PLAYER_RESPONSE_UPDATED",Y)};
_.H.getPlayerResponse=function(){return this.playerResponse};
_.H.setWatchNextResponse=function(Y){this.watchNextResponse===Y?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=Y,this.publish("WATCH_NEXT_RESPONSE_UPDATED",Y))};
_.H.getWatchNextResponse=function(){return this.watchNextResponse};
_.H.registerActionHandler=function(Y,G){var u=this;if(_.F("web_watch_controller_reg_multiple_handlers_killswitch")){var O={};_.jK(_.N6.getInstance(),(O[Y]=G,O),this.getRoot())}else this.actionHandlers.has(Y)||(this.actionHandlers.set(Y,[]),O={},_.jK(_.N6.getInstance(),(O[Y]=function(){var Q=_.vs.apply(0,arguments);return(u.actionHandlers.get(Y)||[]).map(function(M){return M.apply(null,_.c8(Q))})},O),this.getRoot())),this.actionHandlers.get(Y).push(G)};
_.H.unregisterActionHandler=function(Y){if(_.F("web_watch_controller_reg_multiple_handlers_killswitch")){var G={};_.VO(_.N6.getInstance(),(G[Y]=!0,G),this.getRoot())}else(G=this.actionHandlers.get(Y))?(G.pop(),G.length===0&&(G={},_.VO(_.N6.getInstance(),(G[Y]=!0,G),this.getRoot()),this.actionHandlers.delete(Y))):_.R0(new _.I2("Attempted to unregister an action handler which is not registered.",Y))};
_.H.addPageDisposeJob=function(Y){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.AYy(this.rootElement.pageDisposeJobs,Y)};
_.H.removePageDisposeJob=function(Y){this.rootElement.pageDisposeJobs&&_.Nj(this.rootElement.pageDisposeJobs,Y)};
_.H.dispatchEvent=function(Y,G){_.$s(this.rootElement,Y,G)};
_.H.provideRenderingData=function(Y,G){this.rootElement.provideRenderingData(Y,G)};
_.H.scrollWatchTo=function(Y,G){var u;(u=this.watchScrollManager)==null||u.scrollWatchTo(Y,G)};
_.H.focusOnPlayer=function(){var Y=this.getElement("PLAYER");_.sk(Y,function(){if(Y&&Y.firstElementChild){var G=Y.querySelector(".html5-video-player");G&&(_.Sx(_.sH().resolve(_.tf)),G.focus())}else _.R0(Error("Xl"))})};
_.H.subscribeToActiveChanged=function(Y,G){G=G===void 0?!0:G;var u=_.Eh(_.Zs(),XCy,function(O){Y(O)});
G&&Y(XCy(_.Zs().getState()));return u};
_.H.isActive=function(){return XCy(_.Zs().getState())};
_.H.onAttached=function(){var Y=_.F("external_fullscreen");_.F("use_unified_flag_accessor")&&(Y=_.sH().resolve(_.Egx).retriever.getFlag(_.swM));(Y||_.hy("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var oWV=function(Y){return Y.getRoot().is==="ytd-watch-flexy"||Y.getRoot().is==="ytd-watch-grid"},bz=function(Y){return Y.getRoot().is==="ytd-watch-fixie"};
dy.prototype.initPersistentModules=function(){if(bz(this)||oWV(this)&&_.F("kevlar_watch_flexy_theater_manager")){var Y=new Ov9(this);_.vF(this,Y)}Y=new nro(this);_.vF(this,Y);Y=new mn(this);_.vF(this,Y);Y=new Tqb(this);_.vF(this,Y);Y=new R5(this);_.vF(this,Y);Y=new WR(this);_.vF(this,Y);if(bz(this)||oWV(this)&&_.F("kevlar_watch_flexy_playlist_manager"))Y=new JJN(this),_.vF(this,Y);_.F("web_thumbnail_to_watch_transition")&&(Y=new AIj(this),_.vF(this,Y))};
dy.prototype.initOrDisposeActiveModules=function(Y){Y?(this.watchScrollManager=new wy(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new w_j(this)),_.F("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new Dg(this)),this.activeModules.push(new Ydw(this)),bz(this)&&this.activeModules.push(new eqN(this)),this.activeModules.push(new MHb(this)),this.activeModules.push(new f6g(this)),(bz(this)||_.F("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new MMb(this)),
this.activeModules.push(new Nqo(this)),(bz(this)||_.F("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new EWb(this)),(bz(this)||_.F("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new nZg(this)),_.TP("kevlar_watch_cinematics")&&(this.watchCinematicManager=new qNb(this),this.activeModules.push(this.watchCinematicManager)),_.F("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new Bqb(this)),_.F("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new P1N(this)),
Y=_.F("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.F("kevlar_watch_flexy_comments_manager")&&!Y&&this.activeModules.push(new Mwg(this)),_.F("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new zEx(this)),this.activeModules.push(new agV(this)),this.activeModules.push(new Ds9(this)),_.F("web_enable_timely_actions")&&this.activeModules.push(new XRy(this)),_.F("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new DDb(this)),_.F("web_watch_enable_multiview_manager")&&
this.activeModules.push(new Cn9(this)),_.F("web_fullscreen_components")&&this.activeModules.push(new a8V(this)),_.F("web_player_rtr_ctrls")&&this.activeModules.push(new dDx(this)),(_.F("enable_creator_chatbot")||_.F("enable_creator_chatbot_link_out"))&&this.activeModules.push(new XtS(this))):(_.DM(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
dy.prototype.disposeInternal=function(){Ac.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Uk.Object.defineProperties(dy.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.hR(_.D(function(Y){var G=Y.data;Y=_.E(_.IE(!1,void 0,"VotqNe"));var u=Y.next().value,O=Y.next().value;_.ii(function(){_.N6.getInstance().triggerAction("yt-request-timely-shelf-state")});
var Q=_.p2(function(){var g,P,I=(g=_.z(G().rendererContext,_.H3))==null?void 0:(P=g.loggingDirectives)==null?void 0:P.trackingParams;if(I)return _.Kd(I)},void 0,"AvMXxb");
_.jK(_.N6.getInstance(),{"yt-hide-shopping-timely-shelf":function(){O(!1);var g=_.FA(),P=Q();g&&P&&_.ig(g,[P])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){O(!0);var g=_.FA(),P=Q();g&&P&&_.oK(g,[P])})}});
var M=function(){var g;return(g=G().image)==null?void 0:g.image},t=function(){var g,P;
return!!((g=M())==null?0:(P=g.sources)==null?0:P.some(function(I){var k;return!!(I==null?0:(k=I.clientResource)==null?0:k.imageName)}))},K=function(){var g;
return((g=G().image)==null?void 0:g.height)||40},L=function(){var g;
return(g=G().image)==null?void 0:g.backgroundColor};
Y={};return _.T("yt-shopping-timely-shelf-content-view-model",{el:_.iq(_.zi(function(){return G().rendererContext})),
class:_.s3("ytShoppingTimelyShelfContentViewModelHost",(Y.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(G().image||G().avatar||G().line1)&&u()},Y)),
style:_.Yh({"--shopping-timely-shelf-content-padding-top":function(){var g;return KKx((g=G().padding)==null?void 0:g.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var g;return KKx((g=G().padding)==null?void 0:g.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var g;return KKx((g=G().padding)==null?void 0:g.start)},
"--shopping-timely-shelf-content-padding-end":function(){var g;return KKx((g=G().padding)==null?void 0:g.end)},
"--yt-shopping-timely-shelf-background-color":function(){return G().backgroundColor!==void 0?_.nB(G().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var g,P;return((P=(g=G().image)==null?void 0:g.cornerRadius)!=null?P:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return L()!==void 0?_.nB(L()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var g;return(((g=G().image)==null?void 0:g.width)||40)+"px"}})},_.T(_.X,{cond:M,
then:function(g){var P={};return _.T(_.RD,{preserveHeight:!0,preserveWidth:!0,height:K,data:g,alt:"",className:_.s3("ytShoppingTimelyShelfContentViewModelImage",(P.ytShoppingTimelyShelfContentViewModelIcon=t,P))})}}),_.T(_.HE,{data:function(){return G().avatar}},{avatarViewModel:_.z$}),_.T("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.T(_.HE,{data:function(){return G().line1}},{shoppingContentLineViewModel:function(g){return _.T(_.dm,{data:g.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.T(_.HE,{data:function(){return G().line2}},{shoppingContentLineViewModel:function(g){return _.T(_.dm,{data:g.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.T("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.T(_.HE,{data:function(){var g;
return(g=G().button)!=null?g:[]}},{buttonViewModel:function(g){var P=g.data;
return _.T(_.$Y,{data:P,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(I){P().onTap&&I.stopPropagation()}})}})))},"vk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.AC}});var iPy={};
iPy.YtdWatchBehavior=[_.c.YtRendererBehavior,_.RV.YtPlayerListenerBehavior,_.bE.YtRendererstamperBehavior,_.vZ.YtActionHandlerBehavior,MB.YtPageBehavior,_.U2.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},ticketShelfInSd:{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 _.hy("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.F("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 _.hy("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_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.F("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 _.Jy("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Jy("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)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.F("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.F("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.F("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.F("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("swatcheroo_enable_ghost_cards")||_.F("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("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 _.F("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("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 _.F("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.F("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(Y,G,u){return Y&&(G||!u)},
computeShowGhostRelated_:function(Y,G,u){return Y&&(G||!u)},
monitorScroll:!0,configureRendererStamper:function(){var Y={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:PL(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:PL(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-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"||_.F("swa_prov_panels_ks")?Y.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(Y.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},Y.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return Y},
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-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 Y=this;this.watchController=void 0;this.pageDisposeJobs=[function(){Y.showMetadataPlaceholder_()},
function(){_.F("web_watch_dont_clear_comments")||Y.clearComments_()},
function(){Y.clearPlayerAds_()},
function(){Y.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.F("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.F("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new iFS(function(){return _.Sr(Y)},this.hostElement);
this.pageDisposeJobs.push(function(){Y.youThereManager_.reset()});
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.nA;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;_.F("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));_.F("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Jh(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(Y){Y&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:Y}),Y.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(Y){_.F("kevlar_watch_flexy_theater_manager")&&(this.theater=Y,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(Y){!_.F("kevlar_watch_while_v2")&&!_.F("web_watch_pip")||Y||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(Y){this.active!==void 0&&(this.fullscreen=Y,_.F("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(Y){this.active!==void 0&&(_.$s(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.F("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(Y>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(Y){yvy("watch",["pbs","pbp","pbu"]);this.updatePageData_(Y)},
updatePageData_:function(Y){var G=this;if(Y)if(this.data===Y){this.onPageLoadWithSameData_();var u;(u=this.watchController)==null||u.setWatchNextResponse(this.data)}else this.data=Y;this.playlist&&_.kN({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.pQ("nw");this.loading=!1;_.WY(_.AN,function(){SGN();var O,Q=((O=G.player)==null?void 0:O.getVideoData().cpn)||"";BJx(function(M,t){qKw(M,t,Q)})})},
onPageLoadWithSameData_:function(){_.F("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 Y=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!Y);this.set("loadingData.playlistLoading",Y&&Y!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),Y=this.watchNextSkeletonEl_.firstElementChild;Y;)Y.classList.remove("hidden"),Y=Y.nextElementSibling;if(_.F("kevlar_watch_frame0_loading_state")){var G,u,O;Y=(G=this.loadingData)==null?void 0:(u=G.endpoint)==null?void 0:(O=u.watchEndpoint)==null?void 0:O.videoId;var Q;Y&&(Q="https://i.ytimg.com/vi/"+Y+"/frame0.jpg");_.l0(this.hostElement).querySelector("#player").style.backgroundImage=Q?"url("+Q+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var Y=_.l0(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&Y&&(Y.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var G,u;(u=(G=this.watchMetadata).updateSentimentBarWidth)==
null||u.call(G);var O,Q;(Q=(O=this.watchMetadata).resize)==null||Q.call(O)}_.F("kevlar_watch_frame0_loading_state")&&(_.l0(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(Y){var G=_.l0(this.hostElement).querySelector(Y);G?_.Sc(G,!1):_.R0(new _.I2("Overscroll monitor not found for component: ",Y))},
removeSplitScrollMouseTrap:function(Y){var G=_.l0(this.hostElement).querySelector(Y);G?_.NZ(G):_.R0(new _.I2("Disposal component for  overscroll monitoring not found: ",Y))},
onLoadingChanged_:function(Y){Y?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.F("web_thumbnail_to_watch_transition")&&!_.ANo||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.F("web_thumbnail_to_watch_transition")&&!_.ANo||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(Y){var G=this;Y?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.AN.addLowPriorityJob(function(){G.onWindowResized_(_.Ob(!0))})},
updateTheaterModeState_:function(Y){if(!_.F("kevlar_watch_flexy_theater_manager")){Y=Y||this.fullWindowMode_;if(this.theater!==void 0||Y)this.theater=Y;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();Y&&yHb()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var Y=this.fullBleedPlayer?_.l0(this.hostElement).querySelector("#player-full-bleed-container"):_.l0(this.hostElement).querySelector("#player-container-inner");var G=this.getPlayerContainer(),u=_.F("kevlar_watch_while_v2")||_.F("web_watch_pip");G.parentElement!==Y&&(u&&_.sH().resolve(_.yo).isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.Sr(this).appendTo(Y,G))},
updateErrorScreenLocation:function(){var Y=_.l0(this.hostElement).querySelector("#error-screen"),G=this.fullBleedPlayer?_.l0(this.hostElement).querySelector("#player-full-bleed-container"):_.l0(this.hostElement).querySelector("#player");Y.parentElement!==G&&G.appendChild(Y)},
deactivateMiniplayerAndResetPlayer:function(){var Y=this;return _.a(function(G){if(G.nextAddress==1)return G.yield(_.sH().resolve(_.yo).deactivate(),2);Y.updatePlayerLocation();_.Sd(G)})},
updateCinematicsLocation:function(){var Y=this.getElement("CINEMATICS");if(Y){var G=this.getCinematicsLocationContainer();Y.parentElement!==G&&G.appendChild(Y)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.l0(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.l0(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(Y,G,u){var O=document.documentElement.hasAttribute("dark"),Q=!O&&this.cinematicLightTheme;return u||Y&&O||G&&O||(G||Y)&&Q},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var Y=this,G;(G=this.watchController)==null||G.setWatchNextResponse(this.data);_.F("kevlar_watch_flexy_comments_manager")||this.initComments_();_.F("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.sH().resolve(_.yq).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.F("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.AN.addLowPriorityJob(function(){_.sK(Y.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.F("web_watch_start_chat_in_theater_mode")){var u,O,Q;if((u=this.data)==null?0:(O=u.contents)==null?0:(Q=O.twoColumnWatchNextResults)==null?0:Q.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var M,t;((M=this.data)==null?0:(t=M.contents)==null?0:t.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(Y){var G;(G=this.watchController)==null||G.setPlayerResponse(this.playerData);Y&&Y.playabilityStatus&&(G=this.isVideoPlayable_(Y.playabilityStatus,this.getPlayerOverlays_(this.data)),Y=aBy(Y.playabilityStatus),G&&!Y||_.sk(this,function(){_.pQ("pbu")}));
this.setPlayerAds_();_.sK(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(Y,G){if((_.F("kevlar_watch_while_v2")||_.F("web_watch_pip"))&&this.playerData&&G)return this.playerData.videoDetails},
watchPageActiveChanged_:function(Y){_.Zs().dispatch(usy(this.active));Y?this.activate_():this.deactivate_()},
attached:function(){var Y=this;this.watchController=new dy(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);_.F("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var G=_.Sr(this);_.F("kevlar_disable_prepare_player")||
G.preparePlayer();_.F("kevlar_watch_flexy_playlist_manager")||_.sH().resolve(_.yq).setPlayer(G);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();G={"--ytd-watch-flexy-scrollbar-width":$u()+"px"};this.is==="ytd-watch-grid"&&(_.Zs().dispatch(_.V6({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),G["--ytd-watch-flexy-sidebar-width"]=lvw+"px",G["--ytd-watch-grid-horizontal-page-margins"]=sl+"px",G["--ytd-watch-grid-columns-top-margins"]=qjg+"px",
G["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Jy("kv_pl_mx_sz_ks")&&_.Jy("kevlar_watch_max_player_width")&&(G["--ytd-watch-flexy-max-player-width-wide-screen"]=$5b+"px");_.Jy("kevlar_watch_flexy_metadata_height")&&(G["--ytd-watch-flexy-space-below-player"]=sSw+"px");this.safeUpdateStyles(G);_.F("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new iz(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return Y.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.l0(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var Y=$u(),G=qm+Y,u=G;this.fixedPanels&&(G+=lvw);var O=657+Y;Y=1327+Y;_.l0(this.hostElement).querySelector("#two-column-query").query="(min-width: "+G+"px)";_.l0(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(O+"px), (min-height: 630px) and (min-width: ")+(G+"px) and (max-width: ")+(Y+"px)");_.l0(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(Y+"px)");_.l0(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+u+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var Y=this.squeezeback&&!_.F("web_watch_squeezeback_player_size_killswitch");return this.theater||_.F("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||Y||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.oB(NaN,NaN):cfo(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return cfo(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.ZM(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var Y=this;this.onWindowResized_(_.Ob());_.F("browse_skeleton_removal_on_watch_killswitch")||_.hy("IS_SHELL_LOAD")&&hU9();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var G=_.Sr(this);G.addEventListener("yt-player-updated",_.Jh(this,this.onPlayerUpdated_));G.getPlayerPromise().then(function(u){Y.playerApiReady_(u)});
_.F("kevlar_watch_flexy_playlist_manager")||(G=_.sH().resolve(_.yq),_.F("kevlar_watch_observe_playlist_navigations_killswitch")&&G.addEventListener("yt-navigate",_.Jh(this,this.onYtNavigate_)),G.setPlaylistComponent(_.l0(this.hostElement).querySelector("#playlist")),G.addEventListener("yt-playlist-data-updated",_.Jh(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.AN.addLowPriorityJob(function(){_.$s(Y.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Sr(this).removeEventListener("yt-player-updated",_.Jh(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.F("kevlar_watch_flexy_playlist_manager")){var Y=_.sH().resolve(_.yq);_.F("kevlar_watch_observe_playlist_navigations_killswitch")&&Y.removeEventListener("yt-navigate",_.Jh(this,this.onYtNavigate_));
Y.cancelVideoSkip();Y.removeEventListener("yt-playlist-data-updated",_.Jh(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();_.$s(this.hostElement,"yt-autonav-pause-player",!1);Y=_.dJ();_.F("kevlar_exit_fullscreen_leaving_watch")&&Y&&_.bc(Y)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(Y){this.player&&this.player.updateVideoData({rvs:Y.rvs})},
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(Y){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Y)},
onRetrieveLocation_:function(Y,G){G.hasComments?G.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):G.locationRetrieved("/related_ajax",void 0);Y.stopPropagation()},
onSubscriptionChanged_:function(Y,G){this.player&&(G?this.player.channelSubscribed():this.player.channelUnsubscribed())},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.l0(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.l0(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(Y){this.player=Y;Y=Y.getPlayerState();_.Zs().dispatch(_.zc(Y));this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();(_.F("kevlar_unified_player")||_.F("kevlar_player_new_bootstrap_adoption"))&&_.w4()},
setTheaterModeRequested:function(Y,G){G=G===void 0?!0:G;_.dJ()&&_.F("external_fullscreen")&&_.bc(document.documentElement);this.theaterRequested_=Y;G&&_.LG("wide",Y?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.qZ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.$s(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(Y){_.wN(Y,typeof this.player),this.player&&_.wN(Y,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var Y;((Y=this.player)==null?0:Y.isFullscreen())?this.player.toggleFullscreen():_.qZ(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(Y,G){return this.loading?G:!!Object.keys(Y).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(Y){if(Y){Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next())G=G.value,G.youThereRenderer&&ZFx(this.youThereManager_,G.youThereRenderer)}},
setPlaylistData_:function(Y){return Y||{}},
userEngagementConfigDataChanged_:function(Y){if(Y)if(Y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var G=this.youThereManager_;_.Y7()<Y.lowEngagementThresholdMs||bF9(G,!0)}else Y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.qZ(this.hostElement,"yt-autonav-pause-user-engagement",[Y])},
isPlayerUnavailable_:function(Y,G,u){return!!Y&&!this.isVideoPlayable_(Y,u)&&!G},
getPlayerOverlays_:function(Y){return(Y==null?void 0:Y.playerOverlays)||null},
isVideoPlayable_:function(Y,G){if(!Y)return!1;var u=Y.status==="OK"||Y.status==="LIVE_STREAM_OFFLINE",O=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",Y)||this.get("errorScreen.ypcTrailerRenderer",Y);Y=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",Y);var Q;G=G==null?void 0:(Q=G.playerOverlayRenderer)==null?void 0:Q.gatedActionsOverlayRenderer;return!!u||!!O||!!Y||!!G},
shouldProceedToNextVideo_:function(Y,G,u){var O=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",G),Q=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Q=_.F("web_no_skip_video_on_verification_checks")?(Y==null?void 0:Y.status)&&Q.includes(Y.status):Y&&Y.status==="AGE_CHECK_REQUIRED";var M=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",Y);M==void 0&&(M=!0);!u||this.isVideoPlayable_(Y,this.getPlayerOverlays_(G))||
O||Q||!M||_.sH().resolve(_.yq).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();ajj()},
onPlayerFeedbackStartRequest_:function(Y){_.qZ(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:Y}])},
onPlayerFeedbackArticleRequest_:function(Y){_.qZ(this.hostElement,"yt-help-dialog-requested",[Y])},
onPlayerYpcContentRequest_:function(){var Y,G,u,O,Q,M,t,K,L=((Y=this.data)==null?NaN:(G=Y.contents)==null?NaN:(u=G.twoColumnWatchNextResults)==null?NaN:(O=u.secondaryResults)==null?NaN:(Q=O.secondaryResults)==null?NaN:(M=Q.offerModule)==null?NaN:(t=M.tvfilmOfferModuleRenderer)==null?NaN:(K=t.actionButtons)==null?NaN:K.length)-1;Y=[".offerButton.buttonRenderer.",".actionButtons."+(L>=0?L:0)+".buttonRenderer."];G=_.E(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(u=G.next();!u.done;u=G.next())for(u=u.value,O=_.E(Y),Q=O.next();!Q.done;Q=O.next())if(Q="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+u+Q.value,Q=this.get(Q+"navigationEndpoint",this.data)||this.get(Q+"serviceEndpoint",this.data)||this.get(Q+"command",this.data)){_.Yy(Q,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(Y){_.$s(this.hostElement,"yt-autonav-pause-player",Y)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(Y){Y()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(Y){switch(Y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(Y){switch(Y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.$s(this.hostElement,"yt-autonav-pause-player-ended")}_.Zs().dispatch(_.zc(Y))},
onPlayerSubscribe_:function(Y){_.qZ(this.hostElement,"yt-player-subscribe",[Y])},
onPlayerUnsubscribe_:function(Y){_.qZ(this.hostElement,"yt-player-unsubscribe",[Y])},
onPlayerAdYtShowToast_:function(Y){_.qZ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:Y.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(Y){if(Y)return Y},
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(Y){return!_.TP("web_watch_move_summary_to_sd")&&!!Y},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.F("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var Y,G,u,O;this.watchNextSecondaryResults=(Y=this.data)==null?void 0:(G=Y.contents)==null?void 0:(u=G.twoColumnWatchNextResults)==null?void 0:(O=u.secondaryResults)==null?void 0:O.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var Y,G=(Y=this.data)==null?void 0:Y.engagementPanels;if(G==null?0:G.length){Y=null;G=_.E(G);for(var u=G.next();!u.done;u=G.next()){u=u.value;var O=void 0;if(((O=u.engagementPanelSectionListRenderer)==null?void 0:O.targetId)==="engagement-panel-structured-description"){Y=u;break}}var Q,M,t;Y=(Q=Y)==null?void 0:(M=Q.engagementPanelSectionListRenderer)==null?void 0:(t=M.content)==null?void 0:t.structuredDescriptionContentRenderer;if(Y==null?0:Y.items){Q=
[];M=_.E(Y.items);for(t=M.next();!t.done;t=M.next()){t=t.value;if(!_.F("sd_horizontal_list_show_nav_killswitch")){var K=O=u=G=Y=void 0,L=void 0,g=(Y=t.horizontalCardListRenderer)==null?void 0:(G=Y.header)==null?void 0:(u=G.richListHeaderRenderer)==null?void 0:(O=u.navigationButton)==null?void 0:(K=O.buttonRenderer)==null?void 0:(L=K.command)==null?void 0:L.commandExecutorCommand;g&&g.commands&&(g.commands=g.commands.filter(function(P){return!_.z(P,IDg)}))}(!t.expandableVideoDescriptionBodyRenderer&&
!t.videoDescriptionHeaderRenderer||_.F("web_delhi_colorful_sd"))&&Q.push(t)}return{items:Q}}}},
isPlaShelfEnabled_:function(Y){if((this.get("adPlacements",Y)||[]).length)return!0;Y=this.get("playerAds",Y)||[];return!(!Y.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",Y[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var Y=this;this.commentsReady=!1;_.AN.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.WY(_.AN,function(){Y.setComments_()},1E3)},
setComments_:function(){if(!_.F("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.pQ("cmi");_.AN.cancelJob(this.setCommentsJobId_);var Y=TQj(this.data);if(Y&&Y.length){Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next())if(G=G.value,this.get("itemSectionRenderer.sectionIdentifier",G)==="comment-item-section"){this.comments=G.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.$s(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.F("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.F("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.pQ("cmc")},
doRemoveComments_:function(){this.comments={};_.F("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.AN.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.AN.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(Y,G){var u=_.z(G.endpoint,_.ic);u&&(!(G=this.get("data.currentVideoEndpoint.watchEndpoint"))||u.videoId!==G.videoId||u.playlistId&&u.playlistId!==G.playlistId||u.index!==void 0&&u.index!==G.index||typeof u.startTimeSeconds!=="number"||(Y.stopPropagation(),this.setScrollTop(0),_.Sr(this).getPlayerPromise().then(function(O){var Q=u.startTimeSeconds;O.seekTo(Q);O.wakeUpControls();Q<O.getDuration()&&O.playVideo()})))},
updatePlayerStartTime_:function(){var Y=dtN();"t"in Y&&(Y=HKB(Y.t),this.player.seekTo(Y,!0))},
updateTitleFromWatchNext:function(Y){Y=TQj(Y);var G,u;(Y=_.Ri(Y==null?void 0:(G=Y[0])==null?void 0:(u=G.videoPrimaryInfoRenderer)==null?void 0:u.title))&&_.$s(this.hostElement,"yt-update-title",Y)},
updateTitle_:function(Y){Y=this.get("videoDetails.title",Y)||"";_.$s(this.hostElement,"yt-update-title",Y)},
syncWithRemoteVideo_:function(Y,G,u){if(this.active&&this.player){var O=this.player.getVideoData();O.video_id===u&&(u=O.list,_.F("polymer_enable_mdx_queue")&&u&&u.startsWith("RQ")&&(u=void 0),O.video_id!==Y||u!=G)&&(Y=_.F("kevlar_player_watch_endpoint_navigation")?_.Kct(zUg(Y,G)):_.bg(Y,G),_.$s(this.hostElement,"yt-navigate",{endpoint:Y,isRemotePlayback:!0}))}},
attachWatchPageSkeleton_:function(){var Y=document.querySelector("#watch-page-skeleton");if(Y){var G=Y.querySelector("#primary-info"),u=Y.querySelector("#secondary-info"),O=Y.querySelector("#related");G&&_.l0(this.hostElement).querySelector("#info-skeleton").appendChild(G);u&&_.l0(this.hostElement).querySelector("#meta-skeleton").appendChild(u);O&&(_.l0(this.hostElement).querySelector("#related-skeleton").appendChild(O),this.watchNextSkeletonEl_=O);_.Oy(Y)}},
handlePlayerUpdated_:function(){_.Sr(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(Y,G){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof G!=="undefined"){var u=this.watchNextSkeletonEl_.children,O=Y&&Y.indexSplices.length?Y.indexSplices[0].index:0;Y=Math.min(this.watchNextShownItems.length,u.length);G||(O=0,Y=u.length);if(!this.ghostCardsEnabled)for(G=O;G<Y;G++)u[G].classList.add("hidden")}},
onPlayerFullscreenChange_:function(Y){_.F("external_fullscreen")||_.qZ(this.hostElement,"yt-player-fullscreen",[Y.fullscreen])},
onFullscreenChange_:function(Y){this.fullscreen=Y;this.gestures_&&this.gestures_.update(this.fullscreen);var G=_.Sr(this);G.getPlayerPromise().then(function(u){u.setFauxFullscreen(!!_.dJ())});
this.updateFullBleedElementLocations();Y&&G.focusOnPlayer()},
computeShouldStampChat_:function(Y,G){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!G},
computeIsDonationShelfCollapsed_:function(Y){return Y},
computeShouldShowMerchShelf:function(Y,G){return G&&!!Y},
computeResponseHasComments:function(Y){var G,u,O,Q,M;return!!(Y==null?0:(G=Y.contents)==null?0:(u=G.twoColumnWatchNextResults)==null?0:(O=u.results)==null?0:(Q=O.results)==null?0:(M=Q.contents)==null?0:M.some(function(t){var K;return(t==null?void 0:(K=t.itemSectionRenderer)==null?void 0:K.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(Y,G,u,O){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&O?!1:!!Y&&!!Object.keys(Y).length&&!G},
identity:_.Zt,onWindowResized_:function(Y){this.windowSize_=Y;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())},
onPlayerPresentingVideoDataChange_:function(Y){var G=this;Y&&Y.type!=="dataloaded"&&Y.type!=="dataupdated"||_.Sr(this).getPlayerPromise().then(function(u){var O=u.getPlayerState();O!==5&&O!==0&&(u=1/u.getVideoAspectRatio(),G.videoHeightToWidthRatio_!==u&&(G.videoHeightToWidthRatio_=u))})},
schedulePlayerSizeUpdate_:function(Y){var G=this,u=_.F("kevlar_watch_while_v2")||_.F("web_watch_pip"),O=function(){if(G.watchMetadata){var Q,M;(M=(Q=G.watchMetadata).resize)==null||M.call(Q)}_.Sr(G).getPlayerPromise().then(function(t){if(_.TP("kevlar_set_internal_player_size")){if(!u||!_.sH().resolve(_.yo).isMiniplayerActive()){var K=G.calculateCurrentPlayerSize_();t.setInternalSize(K.width,K.height)}}else t.setSize(NaN,NaN);_.F("kevlar_watch_while")&&G.updateWatchWhileScrollThreshold_()})};
Y?O():_.EA(_.AN,O)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(Y){this.set("data.survey",Y.detail)},
onYtShowSurveyCommand_:function(Y){this.set("data.survey",_.z(Y,Uh9).survey)},
onDownloadedVideoDeleted:function(Y){var G=this,u,O;return _.a(function(Q){if(Q.nextAddress==1){if(!G.active||(u=G.playerData)==null||!u.offlineState||G.videoId!==Y)return Q.return();(O=G.player)==null||O.stopVideo();_.Qq().navigatingAwayFromWatchDeletedVideo=!0;_.Yy(_.X_4,G.hostElement);return Q.yield(_.Qq().navigationFinishPromise,2)}_.Qq().navigatingAwayFromWatchDeletedVideo=!1;_.Sd(Q)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var Y;this.theater?Y=_.yW(.5625*this.windowSize_.width,480,this.windowSize_.height-185):Y=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==Y&&(this.watchWhileScrollThreshold_=Y)}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var Y=_.l0(this.hostElement).querySelector("#secondary-inner");if(Y){var G=_.l0(this.hostElement).querySelector("#below"),u=_.l0(this.hostElement).querySelector("#secondary"),O=_.l0(this.hostElement).querySelector("#comments");O&&u&&G&&(this.defaultTwoColumnLayout?(Y.appendChild(O),u.appendChild(Y)):(G.appendChild(O),WL(G,Y)))}}},
isTwoColumnsChanged_:function(Y,G){if(Y!==!0||G!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(Y=_.l0(this.hostElement).querySelector("#secondary-inner"))){G=_.l0(this.hostElement).querySelector("#below");var u=_.l0(this.hostElement).querySelector("#secondary"),O=_.l0(this.hostElement).querySelector("#comments");O&&u&&G&&(this.isTwoColumns_?(Y.appendChild(O),u.appendChild(Y)):(G.appendChild(O),WL(G,Y)))}}else{Y=!_.F("web_watch_enable_fs_squeezeback_panels");
G=_.l0(this.hostElement).querySelector("#panels");var Q=_.l0(this.hostElement).querySelector("#alerts"),M=_.l0(this.hostElement).querySelector("#shopping-timely-shelf");u=_.l0(this.hostElement).querySelector("#playlist");O=_.l0(this.hostElement).querySelector("#related");var t=_.l0(this.hostElement).querySelector("#donation-shelf"),K=_.l0(this.hostElement).querySelector("#comments"),L=_.l0(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(Q=_.l0(this.hostElement).querySelector("#secondary-inner"),
Y&&(Q.appendChild(G),Q.appendChild(u),this.aiCompanionEnabled&&L&&Q.appendChild(L)),Q.appendChild(t),Q.appendChild(O)):(Y&&(_.Am(G,Q),_.Am(u,Q),this.aiCompanionEnabled&&L&&_.Am(L,Q),_.Am(M,u)),_.Am(t,Q),K&&_.Am(O,K));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.F("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.F("web_watch_enable_fs_squeezeback_panels")&&_.F("web_watch_theater_chat")){var Y=_.l0(this.hostElement).querySelector("#chat-container"),G=this.theater&&!this.fullscreen||_.F("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&G?(G=_.l0(this.hostElement).querySelector("#columns"),(Y==null?void 0:Y.parentElement)!==G&&G.append(Y),this.fixedPanels=!0):(this.fixedPanels=
!1,G=_.l0(this.hostElement).querySelector("#playlist"),Y&&G?_.o9(Y,G):_.R0(new _.I2("Missing element when updating chat location",{"chatContainer defined":!!Y,"playlist defined":!!G})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(Y,G){return _.F("sw_metadata_vis_toggle_ks")?!0:!!Y||!!G},
computeForceDarkPanelTheme:function(Y){return _.F("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&Y:!1},
safeUpdateStyles:function(Y){try{_.cm(this.hostElement,Y)}catch(G){_.R0(G)}},
videoHeightToWidthRatioChanged_:function(Y,G){G&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(Y){this.videoHeightToWidthRatio_=1/Y},
computeIsVerticalVideo_:function(Y){return Y>=1},
computeIsFourThreeToSixteenNineVideo_:function(Y){return Y<=.7501&&Y>=.5624},
computeIsExtraWideVideo_:function(Y){return Y<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Sr(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Sr(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){SCS(this.youThereManager_)},
computePlaylistData_:function(Y,G){return G},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.sH().resolve(_.yq).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var Y=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.AN.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.AN.addLowPriorityJob(function(){Y.fullHeightPanelPositionUpdateJobId=0;var G=_.l0(Y.hostElement).querySelector("#secondary"),u=_.l0(Y.hostElement).querySelector("#fixed-secondary");G=G.getBoundingClientRect();var O=G.width;Y.swatcherooSqueezeback&&
(O+=sl);if(Y.swatcherooSqueezeback){var Q=_.l0(Y.hostElement).querySelector("#squeezeback-constraining-container");Q.style.width=O+"px";Q.style.flex="0 0 "+O+"px"}u.style.width=O+"px";u.style.left=G.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var Y=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.AN.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.AN.addLowPriorityJob(function(){Y.panelMaxHeightUpdateJob_=0;var G;!Y.isTwoColumns_||Y.theater||Y.fullscreen?G=460:G=Y.calculateNormalPlayerSize_().height;var u=G+"px";_.F("live_chat_taller_height")&&!Y.theater&&(u="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.F("live_chat_medium_height")&&!Y.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.F("live_chat_scaled_height")&&!Y.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 238px)");Y.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":G+"px","--ytd-watch-flexy-chat-max-height":u,"--ytd-watch-flexy-structured-description-max-height":G+"px","--ytd-watch-flexy-comments-panel-max-height":G+"px","--ytd-comments-engagement-panel-content-height":G+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(Y){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",Y)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.UK(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(Y){var G=_.l0(this.hostElement).querySelector("#engagement-panel-scrim");Y?G.addEventListener("tap",_.Jh(this,this.onEngagementPanelScrimClick_)):G.removeEventListener("tap",_.Jh(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtEngagementPanelVisibleChanged:function(Y,G,u){if(this.active&&this.trackEngagementPanelVisibility&&!HYN.includes(u)){if(G==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.sK(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var O=_.sH().resolve(_.IH);this.visiblePanelIdentifiers_.forEach(function(Q){Q!==u&&O.hidePanel({identifier:Q})})}this.visiblePanelIdentifiers_.add(u)}G!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&G!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(u);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(Y){return Y?"":"watch-active-metadata"},
computeNewMetadataClass:function(Y){return Y?"watch-active-metadata":""},
computeIsSingleColumn:function(Y,G){return G&&!Y},
computeFullBleedPlayer:function(Y,G,u){return _.F("external_fullscreen")&&Y||G||u},
computeDefaultLayout:function(Y){return!Y},
computeDefaultTwoColumnLayout:function(Y,G){return!Y&&G},
updatePanelsLocation:function(){if(_.F("web_watch_enable_fs_squeezeback_panels")){var Y=_.l0(this.hostElement).querySelector("#below"),G=_.l0(this.hostElement).querySelector("#panels"),u=_.l0(this.hostElement).querySelector("#playlist"),O=_.l0(this.hostElement).querySelector("#chat-container"),Q=_.l0(this.hostElement).querySelector("#panels-full-bleed-container"),M=_.l0(this.hostElement).querySelector("#secondary-inner"),t=_.l0(this.hostElement).querySelector("#shopping-timely-shelf"),K=_.l0(this.hostElement).querySelector("#persistent-panel-container");
if(Y&&G&&u&&O&&Q&&M&&t&&(this.aiCompanionEnabled?K:1)){var L=this.fullscreen||this.theater&&this.iMaxTheaterMode,g=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;g?(g=_.l0(this.hostElement).querySelector("#columns"),(O==null?void 0:O.parentElement)!==g&&g.append(O),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):L?Q.appendChild(O):this.isTwoColumns_?WL(M,O):WL(Y,O);L?(Q.appendChild(G),Q.appendChild(u),
this.aiCompanionEnabled&&K&&Q.appendChild(K)):(this.isTwoColumns_?(_.F("web_watch_playlist_after_panels")?(WL(M,u),WL(M,G)):(WL(M,G),WL(M,u)),this.aiCompanionEnabled&&K&&WL(M,K)):(WL(Y,G),WL(Y,u),this.aiCompanionEnabled&&K&&WL(Y,K)),WL(Y,t))}}},
swatcherooUpdatePanelsLocation:function(Y,G,u,O,Q,M){if(this.is==="ytd-watch-grid"){G=Y&&!G;this.swatcherooSplitScroll&&(G?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));u=_.l0(this.hostElement).querySelector("#panels");var t=_.l0(this.hostElement).querySelector("#playlist"),K=_.l0(this.hostElement).querySelector("#persistent-panel-container"),
L=_.l0(this.hostElement).querySelector("#fixed-secondary"),g=_.l0(this.hostElement).querySelector("#fixed-below"),P=_.l0(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),I=_.l0(this.hostElement).querySelector("#chat-container");M&&(Y?(L.appendChild(u),this.aiCompanionEnabled&&K&&L.appendChild(K)):(g.appendChild(u),this.aiCompanionEnabled&&K&&g.appendChild(K)));Q?Y?L.appendChild(I):g.appendChild(I):_.o9(I,P);O?Y?L.appendChild(t):g.appendChild(t):_.o9(t,
P);this.swatcherooSplitScroll&&(Y=_.l0(this.hostElement).querySelector("#secondary"),O=_.l0(this.hostElement).querySelector("#columns"),Q=_.l0(this.hostElement).querySelector("#fixed-columns-secondary"),G?Q.appendChild(Y):O.appendChild(Y))}},
computeMetadataSkinnyMode:function(Y,G,u){return this.is!=="ytd-watch-grid"?!1:Y?u:G},
computeWatchWhilePanelsActive:function(Y,G){return Y||G},
computeNoBorderOnChat:function(Y){return _.F("web_watch_theater_chat_no_border")&&Y},
computeLiveChatPresentAndExpanded:function(Y,G){return Y&&!G},
computePanelExpanded:function(Y,G,u){return Y||G||u},
computeSqueezeback:function(Y,G,u,O){if(_.F("web_watch_enable_fs_squeezeback_panels")){var Q=this.iMaxTheaterMode&&this.theater,M=this.theater&&!this.iMaxTheaterMode;return(Y||G||u)&&(Q||O)||G&&M}},
computeSwatcherooSqueezeback:function(Y,G,u){return this.is!=="ytd-watch-grid"||_.F("ww_squeezeback_killswitch")?!1:Y&&G&&u},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(Y){_.Sr(this).getPlayerPromise().then(function(G){var u;(u=G.changeMarkerVisibility)==null||u.call(G,_.z(Y,kA).isVisible||!1,_.z(Y,kA).entityKeys||[],_.z(Y,kA).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(Y){this.liveChatCollapsed=Y.detail;_.Zs().dispatch(QZg(Y.detail));if(!this.liveChatCollapsed&&this.squeezeback){var G=_.sH().resolve(_.IH);this.visiblePanelIdentifiers_.forEach(function(u){G.hidePanel({identifier:u})})}},
onSetPlaylistCollapsed:function(Y){_.F("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!Y)},
provideRenderingData:function(Y,G){switch(Y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=G;break;case "PRIMARY_INFO":_.F("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=G);this.videoPrimaryInfoRendererValue=G==null?void 0:G.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.F("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=G);this.videoSecondaryInfoRendererValue=G==null?void 0:G.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
G;break;case "CLARIFICATION":this.clarifyBoxValue=G;break;case "LIVE_CHAT":this.conversationBar=G;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=G;break;case "PLAYLIST":this.externalPlaylistData_=G!=null?G:{};break;case "MERCH_SHELF":this.merchShelfValue=G==null?void 0:G.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=G;break;case "TICKET_SHELF":this.ticket=G;break;case "TICKET_SHELF_IN_SD":this.ticketShelfInSd=G;break;case "OFFER_MODULE":this.offerModule=
G;break;case "LIMITED_STATE":this.limitedStateValue=G;break;case "DONATION_SHELF":this.donation=G;break;case "ALERTS":this.alertsValue=G;break;case "COMMENTS":this.comments=G;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=G;break;case "ENGAGEMENT_PANELS":this.engagementPanels=G;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=G;break;case "RICH_GRID_RENDERER":this.richGridRendererData=G;break;case "EXPANDABLE_METADATA":this.expandableMetadata=G;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
G;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=G;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=G}},
toggleCinematicsActive:function(Y){this.cinematicsActive=Y}}];var RqV=function(Y,G){var u;return((u=Y.prefixMapping)==null?0:u[G])?Y.prefixMapping[G]:Y.SHARED_RENDERERS_.hasOwnProperty(G)?"yt":Y.prefix},S$={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}}};S$.DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,addSpacing:_.F("kevlar_add_spacing_to_sheets")},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
S$.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"};
S$.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"};S$.LOCKED_OVERLAY_DIALOG={component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,scrollAction:"lock",withBackdrop:!0},preventAutonav:!0};
S$.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.F("kevlar_mealbar_above_player"),modern:_.DE("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX",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"}};
S$.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};S$.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};S$.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
S$.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)"}};
S$.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};
S$.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};
S$.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};
S$.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:_.F("kevlar_add_spacing_to_sheets")},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
S$.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"}};S$.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};S$.TOAST={component:null,properties:{}};var wtx=new function(Y,G,u){this.supportedPopups=Y;this.navigationEndpointPopupMap=G;this.popupTypeMap=u;this.supportedPopups=Y;this.navigationEndpointPopupMap=G;this.popupTypeMap=u}({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:_.F("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"}),ZP9=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,unifiedSharePanelRenderer:!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$21635_popupConfig=S$;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 Dqo=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.ze.getInstance()},NB=function(Y,G){var u=Y.pageNameToElement.get(G);
if(!u){switch(G){case "watch":var O=_.F("web_watch_force_learning_journey_for_testing")?_.DA("ytd-watch-learning-journey"):_.F("kevlar_watch_fixie")?_.DA("ytd-watch-fixie"):_.F("kevlar_watch_grid")?_.DA("ytd-watch-grid"):_.DA("ytd-watch-flexy");break;case "learning_journey_watch":O=_.DA("ytd-watch-learning-journey");break;case "shorts":O=_.DA("ytd-shorts");break;case "search":O=_.DA("ytd-search");break;case "channel":O=_.DA("ytd-browse");O.pageSubtype="channels";break;case "trending":O=_.DA("ytd-browse");
O.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 "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":O=
_.DA("ytd-browse");O.pageSubtype=G;break;case "browse":O=_.DA("ytd-browse");break;default:_.R0(new _.I2("Error getting page element for type",G))}u=O;Y.pageNameToElement.set(G,u)}return u};
Dqo.prototype.preparePage=function(Y,G,u){u&&(Y=_.JH(u)||Y);if(Y!=="watch"&&Y!=="learning_journey_watch"){var O=this.elementPoolPopulator,Q=Y;Q!=O.targetPage_&&O.pendingPages_.indexOf(Q)>-1&&(O.targetPage_&&(O.pendingPages_.unshift(O.targetPage_),O.abort()),gt9(O,Q),_.S$e(O,Q))}if((O=NB(this,Y))||!_.z(u,_.SK)){O.isAttached||O===G||(O.hidden=!0);if(!O.data&&(Y!=="watch"&&Y!=="learning_journey_watch"||!_.F("swatcheroo_page_pool_dont_provide_filler_data"))){var M;if(Y=(M=_.DE("FILLER_DATA",{})[Y])==
null?void 0:M.response)O.data=Y}return O}};var hqg=function(Y){this.JSC$33593_clientRoot=Y;this.playlistHandlerActionMap={"yt-add-to-playlist-command":POx,"yt-end-playlist-command":IB9,"yt-recover-playlist-command":nUw,"yt-refresh-playlist-command":z4w,"yt-playlist-remove-videos-action":FKo};_.jK(_.N6.getInstance(),this.playlistHandlerActionMap,this.JSC$33593_clientRoot);A7N()},dqx;var j$=function(Y,G,u){this.apiKey=Y;this.endpoint=G;this.confidenceThreshold=u===void 0?.5:u;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=G==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||G==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
G==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||G==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new s4x};
_.H=j$.prototype;
_.H.start=function(Y){if(this.state===0)if(this.isOnline()){Y.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=Y.supportsHttpHeadersOverwriteParam);Y.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=Y.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Fh("voice_assistant");_.zb("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=Y.languageCode||"en-US";this.supportsCrossDomainXhr=Y.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=Y.youtubeAssistantRequest||null;this.listeningHandler=Y.listeningHandler||this.listeningHandler;this.audioDetectedHandler=Y.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=Y.stopHandler||this.stopHandler;this.completeHandler=Y.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=Y.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=Y.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
Y.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=Y.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=Y.accessToken;this.additionalHeaders=Y.additionalHeaders||{};var G;this.prefetchResponseTimeoutMs=(G=Y.prefetchResponseTimeoutMs)!=null?G:this.prefetchResponseTimeoutMs;bPy(this);this.startAudio();S1j(this)}else this.errorHandler("OFFLINE")};
_.H.stop=function(Y){var G=Y===void 0?{}:Y;Y=G.logCancel===void 0?!0:G.logCancel;var u=G.logMicClosed===void 0?!0:G.logMicClosed;var O=G.handleError===void 0?!0:G.handleError;G=G.handleStop===void 0?!0:G.handleStop;this.state!==0&&(Y&&Vw("voz_cx"),lz(this,{logMicClosed:u,handleStop:G}),O&&this.errorHandler("ABORTED"))};
_.H.getState=function(){return this.state};
_.H.isSupported=function(){return!0};
_.H.stopAudio=function(Y){(Y===void 0||Y)&&Vw("voz_mf")};
_.H.startAudio=function(){Vw("voz_vp");return _.v$(null)};
var NZB=function(Y,G){Y.channelOpen&&(Y.state!==2&&(Y.state=2,Vw("voz_ss"),Y.listeningHandler()),G=new Uint8Array(G),G='{ "audioIn": "'+_.vu(G)+'" }',Y.channel.send(G))},lz=function(Y,G){var u=G===void 0?{}:G;
G=u.logMicClosed===void 0?!0:u.logMicClosed;u=u.handleStop===void 0?!0:u.handleStop;Y.vozEndOfDataTimeout>-1&&(clearTimeout(Y.vozEndOfDataTimeout),Y.vozEndOfDataTimeout=-1);jaN(Y);Y.stopAudio(G);Y.channel&&(Y.channelOpen=!1,Y.manuallyClosedChannel=!0,Y.channel.close(),Y.channel=void 0);Y.transcribedSpeechResults=[];Y.state=0;u&&Y.stopHandler()},bPy=function(Y){var G={httpHeadersOverwriteParam:Y.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},Y.additionalHeaders,Y.accessToken&&Y.isUsingVoz?{Authorization:"Bearer "+Y.accessToken}:{"x-goog-api-key":Y.apiKey}),supportsCrossDomainXhr:Y.supportsCrossDomainXhr};Y.channel=new aq(Y.endpoint,G);Y.channel.open();_.yn(Y.channel,"w",function(){var u=Y.channel,O=u.send,Q=Y.isUsingVoz?"PLACEHOLDER":"example";Q={config:{dialogStateIn:{languageCode:Y.languageCode},deviceConfig:{deviceId:Q,deviceModelId:Q},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!Y.isUsingVoz)Q.config.requestType=4;else if(Y.isUsingVoz&&Y.youtubeAssistantRequest){var M=JSON.stringify(Y.youtubeAssistantRequest);Q.config.internalIn={youtubeAssistantS3InputJson:M}}O.call(u,Q);Y.channelOpen=!0;Y.manuallyClosedChannel=!1});
_.yn(Y.channel,"x",function(){Y.manuallyClosedChannel||(Y.channelOpen=!1,Y.channel=void 0,lz(Y))});
_.yn(Y.channel,"z",function(u){if(u.data){jaN(Y);for(var O=0;O<u.data.length;O++){var Q=Y,M=u.data[O],t=M.speechResults;if(t)a:{var K=[];M=[];var L=!1;t=_.E(t);for(var g=t.next();!g.done;g=t.next()){g=g.value;if(g.noSpeech){lz(Q);Q.errorHandler("NO_SPEECH");break a}g.transcript!==void 0&&g.stability!==void 0&&(g.stability<Q.confidenceThreshold&&(L=!0),L?M.push(g.transcript):K.push(g.transcript))}if(K.length!==0||M.length!==0)K=K.join(" "),M=M.join(" "),Q.receivedEndOfUtterance&&!Q.isUsingVoz?Q.isUsingVoz||
Q.completeHandler([K,M]):(L=Q,t=K,g=M,Vw("voz_sf"),L.transcriptionUpdateHandler(t,g),L.transcribedSpeechResults=[t,g]),Q.receivedEndOfUtterance&&(Vw("voz_eou"),Q.transcriptionCompleteHandler([K,M]),Q.isUsingVoz&&(Q.prefetchResponseTimeoutMs===0?lz(Q,{logMicClosed:!1,handleStop:!0}):Q.prefetchResponseTimeoutMs>0&&VHN(Q)))}else Q.isUsingVoz&&(M==null?0:M.internalOut)?(M=JSON.parse(M.internalOut.youtubeAssistantS3OutputJson),M.userHasOptedInToVaa||M.vaaConsent?Q.vaaConsentUpdateHandler(!!M.userHasOptedInToVaa,
!!M.vaaConsent):(lPo(Q),M&&(K=Q.transcribedSpeechResults,Vw("voz_rqf"),Q.completeHandler(K,M)))):M.eventType==="END_OF_UTTERANCE"?Q.receivedEndOfUtterance=!0:(Vw("voz_err"),Q.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.R0(Error("Yl")))}}});
_.yn(Y.channel,"y",function(u){lz(Y);switch(u.status){case 1:u="WEBCHANNEL_NETWORK_ERROR";break;case 2:u="WEBCHANNEL_SERVER_ERROR";break;default:u="WEBCHANNEL_UNKNOWN_ERROR"}Y.errorHandler(u);Y.logError(Error(u))})};
j$.prototype.logError=function(Y){_.o0(Y)};
j$.prototype.isOnline=function(){return!0};
var VHN=function(Y){lPo(Y);Y.prefetchResponseSetTimeoutId=setTimeout(function(){lz(Y,{logMicClosed:!1,handleStop:!0})},Y.prefetchResponseTimeoutMs)},lPo=function(Y){Y.prefetchResponseSetTimeoutId>-1&&(clearTimeout(Y.prefetchResponseSetTimeoutId),Y.prefetchResponseSetTimeoutId=-1)},S1j=function(Y){jaN(Y);
Y.noResponseReceivedTimeout=window.setTimeout(function(){lz(Y);Y.errorHandler("NO_SPEECH")},11E3)},jaN=function(Y){Y.noResponseReceivedTimeout>-1&&(window.clearTimeout(Y.noResponseReceivedTimeout),Y.noResponseReceivedTimeout=-1)},Vw=function(Y){_.pQ(Y,void 0,"voice_assistant")};var BR=function(){j$.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.m(BR,j$);BR.prototype.isSupported=function(){return mPV()};
BR.prototype.startAudio=function(){var Y=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Ld(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(O){BZg(Y,O)};
this.processor.connect(this.audioContext.destination);var G=function(O){Y.stream=O;if(!Y.audioContext)return _.v$(null);O=Y.audioContext.createMediaStreamSource(O);Y.processor&&O.connect(Y.processor);return _.v$(null)},u={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?G(this.stream):(u=navigator.mediaDevices.getUserMedia(u))?u.then(G).catch(function(O){lz(Y);O.name&&O.name==="NotAllowedError"?Y.errorHandler("NO_MICROPHONE_PERMISSION"):(Y.errorHandler("AUDIO_ERROR"),Y.logError(O));return _.Ld(null)}):(lz(this),this.errorHandler("AUDIO_ERROR"),_.R0(Error("Zl")));
return j$.prototype.startAudio.call(this)};
BR.prototype.stopAudio=function(Y){Y=Y===void 0?!0:Y;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(G){G.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;j$.prototype.stopAudio.call(this,Y)};
BR.prototype.isOnline=function(){return navigator.onLine};
var BZg=function(Y,G){if(Y.audioContext)if(window.OfflineAudioContext){var u=Y.audioContext.sampleRate,O=G.inputBuffer.getChannelData(0);G=new window.OfflineAudioContext(1,O.length,16E3);for(var Q=G.createBuffer(1,O.length,u),M=Q.getChannelData(0),t=0,K=0;K<O.length;K++)M[K]=O[K],t+=M[K]*M[K];!Y.audioDetected&&Math.sqrt(t/O.length)>.01&&(Y.audioDetected=!0,Y.audioDetectedHandler());O=G.createBufferSource();O.buffer=Q;O.connect(G.destination);O.start(0);G.oncomplete=function(L){L=L.renderedBuffer.getChannelData(0);
for(var g=Math.floor(16384E3/u),P=new Int16Array(g),I=0;I<g;++I)P[I]=Math.max(-1,Math.min(1,L[I]))*32767;NZB(Y,P.buffer)};
G.startRendering()}else $qS(Y,G)},$qS=function(Y,G){var u=Y.audioContext.sampleRate,O=G.inputBuffer.getChannelData(0),Q=Math.floor((u+8E3)/16E3);
u=O.length/Q;G=new Float32Array(u);for(var M=0;M<u;++M)G[M]=O[M*Q];O=new Int16Array(u);for(Q=0;Q<u;++Q)O[Q]=Math.max(-1,Math.min(1,G[Q]))*32767;NZB(Y,O.buffer)};var q1S={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var saB=function(){this.JSC$21700_audioEnabled=!0;this.audioFeedbackHolder={}};
saB.prototype.isPlaying=function(Y){return Y.currentTime>0&&!Y.paused&&!Y.ended&&Y.readyState>2};
var cI9=function(Y){for(var G=_.E(Object.values(q1S)),u=G.next();!u.done;u=G.next())u=u.value,Y.audioFeedbackHolder[u]=new Audio,Y.audioFeedbackHolder[u].src="/s/search/audio/"+u+".mp3",Y.audioFeedbackHolder[u].load()},$Z=function(Y,G){if(Y.JSC$21700_audioEnabled!==!1&&G in Y.audioFeedbackHolder){for(var u=_.E(Object.values(Y.audioFeedbackHolder)),O=u.next();!O.done;O=u.next())O=O.value,Y.isPlaying(O)&&O.pause();
Y.audioFeedbackHolder[G].currentTime=0;Y.audioFeedbackHolder[G].play().catch(function(){})}};var UqB=function(Y,G){var u=this;this.store=Y;this.service=G;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){u.setState("offline");u.stop()};
this.audioPlayer=new saB;var O;(O=this.audioPlayer)==null||cI9(O)};
_.H=UqB.prototype;_.H.getService=function(){return this.service};
_.H.isEnabled=function(){return!!this.service};
_.H.isSupported=function(){var Y;return(Y=this.service)==null?void 0:Y.isSupported()};
_.H.start=function(){var Y=this,G,u,O,Q,M,t,K,L,g,P,I,k,n;return _.a(function(p){switch(p.nextAddress){case 1:Y.store.dispatch(MtN("",""));if(!navigator.onLine)return Y.setState("offline"),p.return();window.addEventListener("offline",Y.handleOfflineEvent);Y.stream=null;if(!Y.permissionsSupported){p.jumpTo(2);break}_.i3(p,3);return p.yield(vWN(Y),5);case 5:G=p.yieldResult;if(!G)return(u=Y.audioPlayer)==null||$Z(u,"failure"),p.return();Y.service.stream=Y.stream;Y.setState("listening");_.j1(p,2);break;
case 3:_.b3(p),Y.permissionsSupported=!1;case 2:O={context:_.FwT(_.O0())},O.youtubeAssistantParams={searchParams:{inlineSearchResponse:Y.enableInlineSearchResponse}},Q=function(W,C){Y.store.dispatch(HMx("transcribing"));Y.store.dispatch(MtN(W,C))},M=function(){var W;
(W=Y.audioPlayer)==null||$Z(W,"open");Y.setState("listening")},t=function(){Y.setState("transcribing")},K=function(W){Y.setErrorState(W)},L=function(W,C){var e;
(e=Y.audioPlayer)==null||$Z(e,"success");C&&(_.F("kevlar_voice_search_inline_search")&&(Y.responseProcessor=_.sH().resolve(_.ueX),Y.responseProcessor&&(e=C.navigationAction,W=C.prefetchedSearchResponse,e&&W&&(e=(new _.pMN).JSC$14513_getStoreKey(e),_.i$(Y.responseProcessor,W,e)))),Y.JSC$21718_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",C))},g=function(){window.removeEventListener("offline",Y.handleOfflineEvent)},P=_.yhY(!1),I=P.Authorization!=null,k=Y.enableFirstPartyAuth||
Y.enableFPAForSignedInUsers&&I?P:{"X-Goog-Visitor-Id":P["X-Goog-Visitor-Id"]},n={completeHandler:L,
errorHandler:K,listeningHandler:M,audioDetectedHandler:t,stopHandler:g,transcriptionUpdateHandler:Q,youtubeAssistantRequest:O,languageCode:JIx(),additionalHeaders:k,supportsCrossDomainXhr:Y.enableFirstPartyAuth||Y.enableFPAForSignedInUsers&&I,supportsHttpHeadersOverwriteParam:!Y.disableHttpHeadersOverwrite},Y.service.start(n),_.Sd(p)}})};
_.H.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.H.reset=function(){this.store.dispatch(_.V6({type:"RESET_VOICE_SEARCH_STATE"}))};
_.H.setState=function(Y){this.store.dispatch(HMx(Y))};
_.H.setErrorState=function(Y){switch(Y){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var G;(G=this.audioPlayer)==null||$Z(G,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)vWN(this);else{var u;(u=this.audioPlayer)==null||$Z(u,"failure");this.setState("permission-denied")}break;case "ABORTED":var O;(O=this.audioPlayer)==null||$Z(O,"no_input");break;default:var Q;(Q=this.audioPlayer)==
null||$Z(Q,"no_input");this.setState("timeout")}};
var vWN=function(Y){var G,u;return _.a(function(O){switch(O.nextAddress){case 1:return O.yield(navigator.permissions.query({name:"microphone"}),2);case 2:G=O.yieldResult;if(G.state==="granted")return O.return(!0);if(G.state==="denied")return Y.setState("permission-denied"),O.return(!1);Y.setState("permission");u={audio:{sampleSize:16,channelCount:1},video:!1};_.i3(O,3);return O.yield(navigator.mediaDevices.getUserMedia(u),5);case 5:return Y.stream=O.yieldResult,O.return(!0);case 3:return _.b3(O),
Y.setState("permission-denied"),O.return(!1)}})},JIx=function(){var Y=_.DE("INNERTUBE_CONTEXT_HL"),G=_.DE("INNERTUBE_CONTEXT_GL");
return Y.indexOf("-")>-1?Y:Y+"-"+G};var YfB=function(Y,G,u){UqB.call(this,G,u);this.JSC$21718_actionRouter=Y;this.enableInlineSearchResponse=_.F("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.F("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.F("kevlar_voice_search_enable_fpa_signedin_users")},G8g;
_.m(YfB,UqB);
var uLV=function(){if(!G8g){var Y="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.F("kevlar_voice_search_auth_enabled")||_.F("kevlar_voice_search_use_yt_endpoint")?Y="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.F("kevlar_voice_search_use_fp_endpoint")&&(Y="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");G8g=
new YfB(_.N6.getInstance(),_.Zs(),new BR(_.DE("VOZ_API_KEY"),Y,.5))}return G8g};var Owb=function(Y){this.JSC$21722_clientRoot=Y;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!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$21722_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)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));Y=_.E(this.eventListeners);for(var G=Y.next();!G.done;G=Y.next()){var u=
_.E(G.value);G=u.next().value;u=u.next().value;u=_.E(u);for(var O=u.next();!O.done;O=u.next()){var Q=_.E(O.value);O=Q.next().value;Q=Q.next().value;G.addEventListener(O,Q)}}_.jK(_.N6.getInstance(),this.autonavPauseActionMap,this.JSC$21722_clientRoot)},QIy,MFN=function(Y){return _.F("kevlar_autonav_popup_filtering")?(Y=_.Zb(Y))?Y.hasAttribute("prevent-autonav"):!0:!0};
_.H=Owb.prototype;_.H.onIronOverlayOpened=function(Y){MFN(Y)&&(this.autonavPauseReasons.overlayOpen=!0,qB(this))};
_.H.onIronOverlayClosed=function(Y){MFN(Y)&&(this.autonavPauseReasons.overlayOpen=!1,qB(this))};
_.H.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;qB(this)};
_.H.onYtAutonavPauseBlur=function(){var Y=this;_.AN.addJob(function(){Hwx()||(Y.autonavPauseReasons.inputBoxFocus=!1,qB(Y))},8,0)};
_.H.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;qB(this)};
_.H.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;qB(this)};
_.H.onYtAutonavPauseScroll=function(){var Y=_.sH().resolve(_.bv);Y.isOnWatch()&&(Y=Y.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=Y.getBoundingClientRect().top<-200,qB(this))};
_.H.onYtAutonavPauseUserEngagement=function(Y){var G=this;if(_.F("user_engagement_enable_autoplay_pause_feature")){var u=Number(Y.lowEngagementThresholdMs);isNaN(u)||u<=0||Y.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?ck("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.sH().resolve(_.tf),_.Y7()<u?_.WY(_.AN,function(){ck("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):OKx()?(this.userEngagementCsn=_.FA(),_.WY(_.AN,function(){ck("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
G.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,qB(this)):ck("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.e_I(Error("$l`"+JSON.stringify(Y)))};
_.H.onYtAutonavPausePlayer=function(Y){this.autonavPauseReasons.requestedByPlayer=!!Y.detail;qB(this)};
_.H.onYtAutonavVisibilityChanged=function(){var Y=this,G,u,O;return _.a(function(Q){if(Q.nextAddress==1)return(G=_.N5())?Q.yield(G.getPlayerPromise(),2):Q.return();u=Q.yieldResult;O=u.isMuted()||u.getVolume()===0;Y.autonavPauseReasons.backgroundAndMute=Hwx()&&O;qB(Y);_.Sd(Q)})};
_.H.onYtAutonavPausePlayerEnded=function(){_.sH().resolve(_.tf);var Y=144E5;_.F("user_engagement_enable_autoplay_pause_feature")||_.F("is_part_of_any_user_engagement_experiment")||(Y=45E5);this.autonavPauseReasons.longIdle=_.Y7()>Y;E_S(this);qB(this)};
_.H.onYtUserActivity=function(){var Y=this;this.autonavPauseReasons.userEngagement&&(_.WY(_.AN,function(){ck("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",Y.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,qB(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.WY(_.AN,function(){ck("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",Y.userEngagementCsn);_.A1()}),this.autonavPauseReasons.youthereLactExperiment=!1,qB(this));
this.autonavPauseReasons.longIdle&&!_.F("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,qB(this))};
var Hwx=function(){var Y=window.document.visibilityState;return!(!Y||Y==="visible")},qB=function(Y){for(var G=!1,u=_.E(Object.values(Y.autonavPauseReasons)),O=u.next();!O.done;O=u.next())O=O.value,G=G||O;
G?_.SD.getInstance().pause(Y.autonavPauseReasons):(Y=_.SD.getInstance(),Y.autonavState_==3?(Y.setState(2,!1,!1),Y.autonavPauseReason_=void 0):Y.autonavState_==1&&(Y.disabledAutonavPauseReason_=void 0))},E_S=function(Y){var G=!1;
if(_.F("enable_autoplay_pause_by_lact")){_.sH().resolve(_.tf);G=_.Jy("autoplay_pause_by_lact_sec")*1E3;var u=_.Jy("autoplay_pause_by_lact_sampling_fraction");(G=_.Y7()>=G&&Math.random()<u)&&!OKx()&&(_.WY(_.AN,function(){ck("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),G=!1)}G!==Y.autonavPauseReasons.youthereLactExperiment&&(Y.autonavPauseReasons.youthereLactExperiment=G)&&(Y.userEngagementCsn=_.FA(),_.WY(_.AN,function(){ck("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",Y.userEngagementCsn)}));
Y.autonavPauseReasons.userEngagement&&_.WY(_.AN,function(){ck("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",Y.userEngagementCsn)})};
Owb.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(ck("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.A1(),this.autonavPauseReasons.youthereLactExperiment=!1,qB(this));this.autonavPauseReasons.userEngagement&&(ck("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,qB(this))};
Owb.prototype.onYtEngagementPanelVisibleChanged=function(Y){Y.detail&&Y.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=Y.detail.visible,qB(this))};
Owb.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var tFN=_.A$.persistentPanelVisibleSelector,sN=function(){var Y=_.Z.apply(this,arguments)||this;Y.miniGuideVisible=!1;Y.guideOpened=_.F("disable_initial_guide_state_fix")?!1:Y.canFitPersistentGuide(Y.initialBodyClientWidth);Y.guideUserStateOpened=Y.getInitialGuideUserStateOpened();Y.isFullscreenShorts=!1;Y.miniGuideWidthThreshold=_.Jy("kevlar_mini_guide_width_threshold",791);Y.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
Y.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");Y.persistentGuideBlockedPagePathRegex=new RegExp(Y.persistentGuideBlockedPagesPatterns.join("|"));Y.animationTransitionDuration=0;Y.lateDataResolver=_.RS();Y.initialGuideDataFetchFailed=!1;Y.initialLoad=!0;Y.guideRenderers=new Set;Y.isMouseOverGuide=!1;Y.sessionUserManuallyExpandedGuideState=
!1;Y.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return Y};
_.m(sN,_.Z);_.H=sN.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(){_.sH().addProvider({provide:_.C8,useValue:this.hostElement})};
_.H.attached=function(){var Y=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Jh(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Jh(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Jh(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Jh(this,this.onYtGuideShow));_.sk(this,function(){Y.animationTransitionDuration=200})};
_.H.detached=function(){document.removeEventListener("yt-navigate-finish",_.Jh(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Jh(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Jh(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Jh(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Jh(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Jh(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Jh(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.H.getData=function(){return this.data};
_.H.load=function(){var Y=this,G,u,O,Q;return _.a(function(M){switch(M.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=Y.lateDataResolver.resolve.bind(Y),M.return(Y.lateDataResolver.promise);if(window.ytInitialGuideData)return G=_.RS(),G.resolve(window.ytInitialGuideData),M.return(G.promise);O=!1;_.i3(M,2);return M.yield(Y.fetchGuideData(),4);case 4:u=M.yieldResult;_.j1(M,3);break;case 2:Q=_.b3(M),Q.message==="Returned error"&&(O=
!0);case 3:if(u)return M.return(u);Y.onYtGuideClose();O||(Y.initialGuideDataFetchFailed=!0);return M.return(Y.lateDataResolver.promise)}})};
_.H.fetchGuideData=function(){var Y=this,G,u,O,Q,M,t,K;return _.a(function(L){if(L.nextAddress==1)return G=_.sH(),Y.guidePromise||(u=G.resolve(_.KB),Y.guidePromise=_.iv(u,D$b)),L.yield(Y.guidePromise,2);if(L.nextAddress!=3)return O=L.yieldResult,Q=G.resolve(_.KE),L.yield(Q(),3);(M=L.yieldResult)&&((t=O)==null?void 0:(K=t.responseContext)==null?void 0:K.maxAgeSeconds)!==0&&M.put("service:guide:fallback",new _.Yb({innertubeResponse:O}));return L.return(O)})};
_.H.initializeGuideDataIfEmpty=function(){var Y=this,G,u;return _.a(function(O){if(O.nextAddress==1){if(!Y.initialGuideDataFetchFailed||Y.data)return O.return();_.i3(O,2);return O.yield(Y.fetchGuideData(),4)}if(O.nextAddress!=2)return(G=O.yieldResult)&&Y.lateDataResolver.resolve(G),_.j1(O,0);u=_.b3(O);_.R0(u);_.Sd(O)})};
_.H.initializeGuideData=function(){var Y=this,G,u;return _.a(function(O){switch(O.nextAddress){case 1:return _.Qo(uAx(),{mainAppWeb:_.Ah()}),_.i3(O,2),O.yield(Y.load(),4);case 4:Y.data=O.yieldResult;_.j1(O,3);break;case 2:G=_.b3(O),_.Mz(uAx(),"FAILURE"),_.R0(new _.I2("Guide data not present",{errorMessage:G.message}));case 3:u=Y.data&&Y.data.items&&Y.data.items.length>0?"SUCCESS":"FAILURE",u==="FAILURE"&&_.R0(new _.I2("Guide data.items empty")),_.Mz(uAx(),u),_.Sd(O)}})};
_.H.setGuideData=function(Y){var G=this,u,O;return _.a(function(Q){if(Q.nextAddress==1)return G.disabled?Q.return():G.data?(Y.data=G.data,G.guideRenderers.add(Y),Q.return()):Q.yield(G.initializeGuideData(),2);G.graftGuideToPage();u=_.hy("IS_HOMEPAGE_COLD")?"eop":void 0;_.F("disable_element_pool_populator")?G.setGuideDataAfterInit(Y):(O=new _.hC(1,u),_.d8(O,G.setGuideDataAfterInit.bind(G,Y)));_.Sd(Q)})};
_.H.setGuideDataAfterInit=function(Y){Y.data=this.data;Y.markDirty();this.guideRenderers.add(Y);_.CD(function(){_.pQ("gle")});
_.sk(this,function(){_.pQ("gpe")})};
_.H.graftGuideToPage=function(){if(this.data){var Y=this.data&&this.data.trackingParams;Y&&(Y=_.Kd(Y),_.vJ(_.M4(),Y))}};
_.H.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Jh(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.H.onDrawerOpenedChanged=function(Y,G){!G.value&&this.guideOpened&&(this.guideOpened=!1)};
_.H.onYtGuideToggle=function(Y){var G=this.guideOpened;this.guideOpened=!G;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var u=_.EU();_.tW(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;u.save()}this.updateGuideDrawerElementState();if(this.guideElement){var O;this.guideOpened&&((O=Y.detail)==null?0:O.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Jh(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Jh(this,this.onAppDrawerTransitioned))}G||this.initializeGuideDataIfEmpty()};
_.H.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Jh(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.qC(this.guideElement)};
_.H.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Jh(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(vp9(this.guideOpened))};
_.H.guidePersistentAndVisibleChanged=function(){_.sK(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.H.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.V6({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.H.miniGuideVisibleChanged=function(){_.sK(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.H.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(vp9(this.guideOpened)),this.initialLoad=!1);_.sK(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.H.activeEndpointChanged=function(){_.sK(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.guidePersistentAndVisible=this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.H.cachedClientWidthChanged=function(){this.updateGuideState()};
_.H.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.H.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var Y=this.canFitPersistentGuide(this.cachedClientWidth);Y?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=Y}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&&_.$s(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.H.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.F("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.H.handleGuideMouseLeave=function(){var Y=this;!this.sessionUserManuallyExpandedGuideState&&_.F("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.y4(this,"handleGuideMouseLeave",function(){Y.isMouseOverGuide||!Y.guideOpened||Y.miniGuideVisible||(Y.guideOpened=!1,Y.updateGuideDrawerElementState())},100))};
_.H.computeGuidePersistentAndVisible=function(){var Y=this;_.y4(this,"computeGuidePersistentAndVisible",function(){Y.guidePersistentAndVisible=Y.guideOpened&&Y.guidePersistent;Y.guideIsVisibleButNotPersistent=!(!Y.guideOpened||Y.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(){_.F("web_hide_guide_on_shorts")&&this.closeGuide()};
_.H.onYtNavigateFinish=function(Y,G){if(!_.YU||G){this.activeEndpoint=G.endpoint;this.pageType=G.pageType;this.pageUrl=G.response.url;var u,O;Y=(O=_.z((u=G.endpoint)==null?void 0:u.commandMetadata,_.ug))==null?void 0:O.url;!this.pageUrl&&Y&&(this.pageUrl=Y);_.F("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.H.getVisibleGuideRenderer=function(){for(var Y=_.E(this.guideRenderers),G=Y.next();!G.done;G=Y.next())if(G=G.value,this.miniGuideVisible&&G.is==="ytd-mini-guide-renderer"||this.guideOpened&&G.is==="ytd-guide-renderer")return G;return null};
_.H.markGuideRendererDirty=function(Y){if(Y){typeof Y.markDirty==="function"&&Y.markDirty();Y=_.E([].concat(_.c8(_.l0(Y).children)));for(var G=Y.next();!G.done;G=Y.next())this.markGuideRendererDirty(G.value)}};
_.H.persistentGuideEnabled=function(Y,G){if(!G||Y==="watch"||Y==="settings"||Y==="shorts"&&this.isFullscreenShorts||_.F("reels_web_disable_persistent_guide_shorts")&&Y==="shorts")return!1;var u=_.BI(G)||"";return _.F("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(O){return u===O}):!this.persistentGuideBlockedPagePathRegex.test(u)};
_.H.canFitPersistentGuide=function(Y){var G=_.Jy("kevlar_persistent_guide_width_threshold",1312);return G===-1||_.F("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:Y>this.calculateGuideThreshold(G)};
_.H.calculateGuideThreshold=function(Y){return _.F("enable_ai_companion")?Y+(this.persistentPanelVisible?400:0):Y};
_.H.canFitMiniGuide=function(Y){return this.miniGuideWidthThreshold===-1?!1:Y>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.H.onResize=function(){var Y=this;_.y4(this,"calculateGuideState",function(){Y.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 _.F("web_force_mini_guide_default")?!1:!_.EU().getFlag(109)};
_.Uk.Object.defineProperties(sN.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.DE("initialBodyClientWidth")||window.innerWidth}}});
sN.prototype.onResize=sN.prototype.onResize;sN.prototype.observeForMiniGuideVisible=sN.prototype.observeForMiniGuideVisible;sN.prototype.computeGuidePersistentAndVisible=sN.prototype.computeGuidePersistentAndVisible;sN.prototype.persistentPanelVisibleChanged=sN.prototype.persistentPanelVisibleChanged;sN.prototype.cachedClientWidthChanged=sN.prototype.cachedClientWidthChanged;sN.prototype.resetGuide=sN.prototype.resetGuide;sN.prototype.activeEndpointChanged=sN.prototype.activeEndpointChanged;
sN.prototype.guideOpenedChanged=sN.prototype.guideOpenedChanged;sN.prototype.miniGuideVisibleChanged=sN.prototype.miniGuideVisibleChanged;sN.prototype.guideIsVisibleButNotPersistentChanged=sN.prototype.guideIsVisibleButNotPersistentChanged;sN.prototype.guidePersistentAndVisibleChanged=sN.prototype.guidePersistentAndVisibleChanged;sN.prototype.onGuideElementChanged=sN.prototype.onGuideElementChanged;sN.prototype.onGuidePersistentChanged=sN.prototype.onGuidePersistentChanged;
sN.prototype.onRenderGuideChanged=sN.prototype.onRenderGuideChanged;sN.prototype.onActiveEndpointChanged=sN.prototype.onActiveEndpointChanged;sN.prototype.onMiniGuideVisibleChanged=sN.prototype.onMiniGuideVisibleChanged;sN.prototype.onGuideIsVisibleButNotPersistentChanged=sN.prototype.onGuideIsVisibleButNotPersistentChanged;sN.prototype.onGuidePersistendAndVisibleChanged=sN.prototype.onGuidePersistendAndVisibleChanged;
_.S([_.x(_.aZ),_.V("design:type",Object)],sN.prototype,"ironResizableBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],sN.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],sN.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],sN.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],sN.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Boolean)],sN.prototype,"disabled",void 0);_.S([_.R(),_.V("design:type",Boolean)],sN.prototype,"guidePersistentAndVisible",void 0);_.S([_.GO("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"onGuidePersistendAndVisibleChanged",null);_.S([_.R(),_.V("design:type",Boolean)],sN.prototype,"guideIsVisibleButNotPersistent",void 0);
_.S([_.GO("guideIsVisibleButNotPersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.S([_.R(),_.V("design:type",Object)],sN.prototype,"miniGuideVisible",void 0);_.S([_.GO("miniGuideVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"onMiniGuideVisibleChanged",null);_.S([_.R(),_.V("design:type",Boolean)],sN.prototype,"forceMiniGuideClose",void 0);
_.S([_.R(),_.V("design:type",Object)],sN.prototype,"activeEndpoint",void 0);_.S([_.GO("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"onActiveEndpointChanged",null);_.S([_.R(),_.V("design:type",Boolean)],sN.prototype,"renderGuide",void 0);_.S([_.GO("renderGuide"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"onRenderGuideChanged",null);
_.S([_.R({selector:tFN}),_.V("design:type",Boolean)],sN.prototype,"persistentPanelVisible",void 0);_.S([_.R(),_.V("design:type",Object)],sN.prototype,"guideOpened",void 0);_.S([_.R(),_.V("design:type",Boolean)],sN.prototype,"guidePersistent",void 0);_.S([_.GO("guidePersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"onGuidePersistentChanged",null);_.S([_.R(),_.V("design:type",Object)],sN.prototype,"guideUserStateOpened",void 0);
_.S([_.R(),_.V("design:type",String)],sN.prototype,"pageUrl",void 0);_.S([_.R(),_.V("design:type",String)],sN.prototype,"pageType",void 0);_.S([_.R(),_.V("design:type",Number)],sN.prototype,"cachedClientWidth",void 0);_.S([_.R(),_.V("design:type",Object)],sN.prototype,"guideElement",void 0);_.S([_.R({selector:_.$C}),_.V("design:type",Object)],sN.prototype,"isFullscreenShorts",void 0);
_.S([_.GO("guideElement"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"onGuideElementChanged",null);_.S([_.GO("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"guidePersistentAndVisibleChanged",null);
_.S([_.Ex("guideIsVisibleButNotPersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"guideIsVisibleButNotPersistentChanged",null);_.S([_.GO("miniGuideVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"miniGuideVisibleChanged",null);_.S([_.Ex("guideOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"guideOpenedChanged",null);
_.S([_.GO("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"activeEndpointChanged",null);_.S([_.Ex("pageUrl"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"resetGuide",null);_.S([_.Ex("cachedClientWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"cachedClientWidthChanged",null);
_.S([_.Ex("persistentPanelVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"persistentPanelVisibleChanged",null);_.S([_.GO("guideOpened","guidePersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"computeGuidePersistentAndVisible",null);
_.S([_.Ex("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"observeForMiniGuideVisible",null);_.S([_.Yo("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sN.prototype,"onResize",null);_.S([_.pD({disableElementRegistration:!0,is:"yt-guide-manager"})],sN);var KIN=_.d(sN,"yt-guide-manager",void 0,{mode:2});var xPV=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"],E$=new Map;E$.set(32,59972);E$.set(27,50765);E$.set(70,60102);E$.set(76,60221);E$.set(77,60222);E$.set(74,60223);E$.set(84,60224);E$.set(38,61941);E$.set(40,61942);E$.set(73,62521);E$.set(67,62522);E$.set(80,63390);E$.set(78,63397);E$.set(75,59972);E$.set(188,63385);E$.set(190,63384);E$.set(36,63387);E$.set(35,63386);E$.set(37,63388);
E$.set(39,63389);E$.set(79,63423);E$.set(87,63424);E$.set(107,63426);E$.set(109,63425);E$.set(65,63428);E$.set(83,63430);E$.set(68,63429);E$.set(221,63431);E$.set(219,63432);E$.set(97,63439);E$.set(98,63440);E$.set(99,63441);E$.set(100,63442);E$.set(101,63443);E$.set(102,63444);E$.set(103,63445);E$.set(104,63446);E$.set(105,63447);var HL=new Map;HL.set(80,63390);HL.set(78,63397);HL.set(188,63400);HL.set(190,63401);HL.set(191,60765);HL.set(13,247917);var rrb=new Map,WKw=new Map;var cR=function(){var Y=_.Z.apply(this,arguments)||this;Y.JSC$21731_keyboardInUse=!1;Y.boundHandleCapturedKeydownEvent=function(G){Y.handleCapturedKeydownEvent(G)};
return Y};
_.m(cR,_.Z);_.H=cR.prototype;_.H.attached=function(){this.listenToDocument(document)};
_.H.listenToDocument=function(Y){Y.addEventListener("keydown",_.Jh(this,this.onKeyDownEvent));Y.addEventListener("keyup",_.Jh(this,this.onKeyUpEvent));Y.addEventListener("mousedown",_.Jh(this,this.onMouseDownEvent));_.F("desktop_keyboard_capture_keydown_killswitch")||Y.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);Y.addEventListener("yt-page-data-updated",_.Jh(this,this.onPageUpdate))};
_.H.detached=function(){this.unlistenFromDocument(document)};
_.H.unlistenFromDocument=function(Y){Y.removeEventListener("keydown",_.Jh(this,this.onKeyDownEvent));Y.removeEventListener("keyup",_.Jh(this,this.onKeyUpEvent));Y.removeEventListener("mousedown",_.Jh(this,this.onMouseDownEvent));_.F("desktop_keyboard_capture_keydown_killswitch")||Y.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);Y.removeEventListener("yt-page-data-updated",_.Jh(this,this.onPageUpdate))};
_.H.ready=function(){_.sH().addProvider({provide:_.SO,useValue:this})};
_.H.isKeyBoardInUse=function(){return this.JSC$21731_keyboardInUse};
_.H.handleCapturedKeydownEvent=function(Y){if(Y.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(Y)};
_.H.onMouseDownEvent=function(){this.JSC$21731_keyboardInUse=!1};
_.H.onPageUpdate=function(){if(_.F("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.F("web_shorts_keyboard_shortcut_usage_log")){rrb.clear();for(var Y=_.E(E$),G=Y.next();!G.done;G=Y.next()){var u=_.E(G.value);G=u.next().value;u=u.next().value;u=_.VZ(u);rrb.set(G,u);_.y6(_.FA(),_.nX(),u)}WKw.clear();Y=_.E(HL);for(G=Y.next();!G.done;G=Y.next())u=_.E(G.value),G=u.next().value,u=u.next().value,u=_.VZ(u),WKw.set(G,u),_.y6(_.FA(),_.nX(),u);_.ey(_.FA(),_.nX(),[].concat(_.c8(WKw.values()),_.c8(rrb.values())));
_.oK(_.FA(),[].concat(_.c8(WKw.values()),_.c8(rrb.values())))}};
_.H.onMiniplayerActiveChange=function(){var Y;(Y=_.sH().resolve(_.yo).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(Y.document):this.unlistenFromDocument(Y.document))};
_.H.ignoreKeyEvent=function(Y){if(Y.ctrlKey||Y.altKey)if(_.F("kevlar_macro_markers_keyboard_shortcut")){if(Y.keyCode!==37&&Y.keyCode!==39)return!0}else return!0;var G=_.wG(Y)||[];return fBS(G)?(_.F("web_button_or_anchor_list_item")&&CO9(G,Y)&&(this.JSC$21731_keyboardInUse=!0),!0):Y.defaultPrevented?(tu(Y.keyCode,Y.shiftKey,this.isShortsPage),!0):Y.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(Y):!1};
_.H.isSpacebarClick=function(Y){var G=Y||window.event;var u;G.composedPath&&typeof G.composedPath==="function"?u=G.composedPath():u=G.path;u&&u.length?G=u[0]:(G=G||window.event,G=G.target||G.srcElement,G.nodeType==3&&(G=G.parentNode));return G&&Y.keyCode===32&&(Y=G.tagName==="BUTTON"||G.tagName==="A"||G.tagName==="INPUT",G=(G=G.getAttribute("role"))&&(G==="option"||G==="button"||G.indexOf("menuitem")===0),Y||G)?!0:!1};
_.H.onKeyDownEvent=function(Y){if(!this.ignoreKeyEvent(Y)&&(Y.keyCode===191&&(Y.shiftKey||Y.metaKey?Y.repeat!=null&&Y.repeat||(this.openHotkeyDialog(),tu(Y.keyCode,Y.shiftKey,this.isShortsPage)):(this.focusSearchBox(),Y.preventDefault())),!Y.metaKey)){var G=_.sH().resolve(_.yo);switch(Y.keyCode){case 9:this.JSC$21731_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(Y);break;case 84:G.pipController.getWindow()&&window.focus();this.toggleTheaterMode(Y.keyCode,Y.shiftKey);break;case 73:G.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(Y.keyCode,Y.shiftKey);break;case 70:if(this.isShortsPage){J79();break}this.isMiniplayerActive()?G.pipController.getWindow()&&(G.close(!0),window.focus()):this.passEventToPlayer(Y);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(Y.keyCode,Y.shiftKey):this.closeMiniplayer(Y.keyCode,Y.shiftKey)||this.passEventToPlayer(Y);break;case 13:Y.shiftKey&&_.sH().resolve(_.zV).activate(Y);break;default:this.passEventToPlayer(Y)}}};
_.H.onKeyUpEvent=function(Y){if(!this.ignoreKeyEvent(Y))if(_.F("web_speedmaster_spacebar_control")&&Y.keyCode===32)this.handlePlayerSpaceKey(Y,!0);else{var G=this.getPlayerManager();G&&(G=G.getPlayer())&&G.handleGlobalKeyUp(Y.keyCode,Y.shiftKey,Y.ctrlKey,Y.altKey,Y.metaKey,Y.key,Y.code)}};
_.H.getPlayerManager=function(){var Y=_.N5(),G=_.sH().resolve(_.q3(_.bv));return Y&&G&&G.isOnWatch()?Y:null};
_.H.passEventToPlayer=function(Y,G){var u=this,O,Q,M,t;return _.a(function(K){if(K.nextAddress==1){if(!_.F("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&u.isMiniplayerActive())O=_.sH().resolve(_.yo).getPlayerElement();else if(u.inlinePreviewIsActive){if(Q=_.sK(u.hostElement,"yt-get-inline-preview-player-action"),(M=Q)==null?0:M[0])O=Q[0]}else O=_.N5();return O?K.yield(O.getPlayerPromise(),3):K.jumpTo(0)}t=K.yieldResult;G?t.handleGlobalKeyUp(Y.keyCode,Y.shiftKey,Y.ctrlKey,Y.altKey,Y.metaKey,
Y.key,Y.code):t.handleGlobalKeyDown(Y.keyCode,Y.shiftKey,Y.ctrlKey,Y.altKey,Y.metaKey,Y.key,Y.code,Y.repeat);Y.keyCode!==38&&Y.keyCode!==40&&tu(Y.keyCode,Y.shiftKey,u.isShortsPage);_.Sd(K)})};
_.H.focusSearchBox=function(){_.$s(this.hostElement,"yt-focus-searchbox")};
_.H.openHotkeyDialog=function(){_.$s(this.hostElement,"yt-open-hotkey-dialog")};
_.H.isMiniplayerActive=function(){return _.sH().resolve(_.yo).isMiniplayerActive()};
_.H.closeMiniplayer=function(Y,G){return this.isMiniplayerActive()?(_.sH().resolve(_.yo).close(),tu(Y,G,this.isShortsPage),!0):!1};
_.H.toggleTheaterMode=function(Y,G){var u=_.Fm(_.Zs().getState()),O=this.getPlayerManager(),Q=_.F("disable_theater_mode_keyboard")||_.hy("START_IN_FULL_WINDOW_MODE");O&&!Q&&(u=!u,_.dJ()&&_.F("external_fullscreen")&&(u=!0),_.qZ(this.hostElement,"yt-toggle-theater-mode",[u]),tu(Y,G,this.isShortsPage))};
_.H.toggleMiniplayer=function(Y,G){var u=this.getPlayerManager();if(this.isMiniplayerActive()){var O;((O=_.sH().resolve(_.q3(_.bv)))==null?0:O.isOnWatch())?_.sH().resolve(_.yo).close(!0):_.AF(_.sH().resolve(_.yo));tu(Y,G,this.isShortsPage)}else u&&(_.qZ(this.hostElement,"yt-activate-miniplayer-from-watch-action"),tu(Y,G,this.isShortsPage))};
_.H.handlePlayerSpaceKey=function(Y,G){var u=!!_.N5()||this.isMiniplayerActive();u=_.F("disable_space_scroll_fix")||u;_.F("global_spacebar_pause")&&!this.isKeyBoardInUse()&&u&&(Y.preventDefault(),this.passEventToPlayer(Y,G))};
_.H.isPresentingTheaterMode=function(){return _.F("web_watch_enable_tm_esc_key")?_.Fm(_.Zs().getState())&&!_.dJ():!1};
cR.prototype.onMiniplayerActiveChange=cR.prototype.onMiniplayerActiveChange;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],cR.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],cR.prototype,"ytdReduxBehavior",void 0);_.S([_.R({selector:_.oKj}),_.V("design:type",Boolean)],cR.prototype,"inlinePreviewIsActive",void 0);_.S([_.R({selector:_.aga}),_.V("design:type",Boolean)],cR.prototype,"isShortsPage",void 0);
_.S([_.R({selector:_.FX}),_.V("design:type",Boolean)],cR.prototype,"miniplayerIsActive",void 0);_.S([_.GO("miniplayerIsActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cR.prototype,"onMiniplayerActiveChange",null);_.S([_.pD({disableElementRegistration:!0,is:"yt-hotkey-manager"})],cR);_.d(cR,"yt-hotkey-manager",void 0,{mode:2});var UN=function(){var Y=_.Z.apply(this,arguments)||this;Y.loopStateEntityKey_=null;Y.playlistLoopStateEntity_=null;Y.isShuffleNextPlaylist=!1;Y.PLAYER_EVENTS_=new Map;Y.playerListenersSetup_=!1;Y.videoSkipJob_=0;Y.canAutoAdvance_=!1;Y.playerManager_=null;Y.TEST_ONLY={};return Y};
_.m(UN,_.Z);_.H=UN.prototype;_.H.ready=function(){_.sH().addProvider({provide:_.yq,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",_.Jh(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Jh(this,this.onYtNavigateFinish_))};
_.H.detached=function(){document.removeEventListener("yt-navigate-start",_.Jh(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Jh(this,this.onYtNavigateFinish_))};
_.H.updatePlaylistEventListeners=function(Y,G){G&&!this.playerListenersSetup_?(this.playerManager_=Y,this.registerPlaylistEventListeners_(Y)):!G&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(Y))};
_.H.setPlayer=function(Y){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=Y};
_.H.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.H.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.H.registerPlaylistEventListeners_=function(Y){var G=this;Y.getPlayerPromise().then(function(u){G.playerListenersSetup_||(G.ytPlayerListenerBehavior.listenToPlayerEvents(u,G.PLAYER_EVENTS_),G.playerListenersSetup_=!0)})};
_.H.removePlaylistEventListeners_=function(Y){var G=this;Y.getPlayerPromise().then(function(u){G.playerListenersSetup_&&(G.ytPlayerListenerBehavior.unlistenFromPlayerEvents(u,G.PLAYER_EVENTS_),G.playerListenersSetup_=!1)})};
_.H.setPlaylistComponent=function(Y){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Jh(this,this.onPlaylistYtNavigate_)),Y&&(Y.data&&this.playlistComponent.data&&Y.data.playlistId==this.playlistComponent.data.playlistId?(Y.loopOn=this.playlistComponent.loopOn,Y.shuffleOn=this.playlistComponent.shuffleOn):(Y.loopOn=!1,Y.shuffleOn=!1),this.isShuffleNextPlaylist&&(Y.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=Y;this.playlistComponent.addEventListener("yt-navigate",
_.Jh(this,this.onPlaylistYtNavigate_))};
_.H.setAutoplayRenderer=function(Y){this.autoplayData=Y};
_.H.setPlaylistData=function(Y){this.currentPlaylistData_=Y;_.$s(this.hostElement,"yt-playlist-data-updated");_.gX.isEmpty(Y)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(Y)};
_.H.setPlayerPlaybackControlData=function(Y){this.playerManager_&&this.playerManager_.updatePlayerComponents(Y.playlistPanelRenderer)};
_.H.getPlaylistData=function(){return this.currentPlaylistData_};
_.H.getTempData_=function(Y,G){if(this.playlistComponent==null)return null;Y={};this.playlistComponent.shuffleOn&&(Y.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(Y.loop_on=this.playlistComponent.loopOn);G&&(Y.autonav="1",_.sH().resolve(_.tf),G=_.Y7(),G>0&&(Y.lact=G),this.playerManager_&&(G=this.playerManager_.getPlayer())&&G.shouldSendVisibilityState()&&(G=G.getVisibilityState(),G!=0&&(Y.vis=G)));_.F("enable_unknown_lact_fix_on_html5")&&(_.sH().resolve(_.tf),Y.lact=
_.Y7());return Y};
_.H.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.H.setLoopStateEntityKey_=function(Y){var G;this.loopStateEntityKey_=((G=this.getPlaylistLoopData_(Y))==null?void 0:G.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 Y=this,G=_.F("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||G)G=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.Ti(_.AN,function(){Y.onPlaylistNext();Y.videoSkipJob_=0},G)};
_.H.cancelVideoSkip=function(){this.videoSkipJob_&&(_.AN.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.H.isInBackground_=function(){var Y=window.document.visibilityState;return!(!Y||Y=="visible")};
_.H.onPlaylistIndex_=function(Y){this.playlistComponent&&(Y=this.playlistComponent.data.contents[Y].playlistPanelVideoRenderer.navigationEndpoint,_.$s(this.hostElement,"yt-navigate",{endpoint:Y,tempData:this.getTempData_(Y)}))};
_.H.onPlayerStateChange_=function(Y){if(Y=Y==0&&this.playlistComponent&&this.canAutoAdvance_)Y=_.SD.getInstance(),Y=!(Y.autonavState_===3?Y.autonavPauseReason_&&Y.autonavPauseReason_.inputBoxFocus===!0:Y.autonavState_===1&&Y.disabledAutonavPauseReason_&&Y.disabledAutonavPauseReason_.inputBoxFocus===!0);Y&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.H.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.H.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.H.navigateToAutoplayWatchEndpoint_=function(Y,G,u){var O=this.playlistComponent.data.currentIndex,Q=this.getNumPlayableVideos_();Y=="NORMAL"&&G=="autoplayVideo"&&O+1>=Q&&u||!(Y=this.getVideoEndpoint_(Y,G))||(u=this.getTempData_(Y,u),_.$s(this.hostElement,"yt-navigate",{endpoint:Y,tempData:u}))};
_.H.getNumPlayableVideos_=function(){for(var Y=0,G=_.E(this.playlistComponent.data.contents||[]),u=G.next();!u.done;u=G.next())u.value.playlistPanelVideoRenderer&&(Y+=1);return Y};
_.H.getVideoEndpoint_=function(Y,G){if(this.autoplayData&&this.autoplayData.sets)for(var u=0,O=this.autoplayData.sets.length;u<O;u++){var Q=this.autoplayData.sets[u];if(Q.mode==Y){if(Q[G])return Q[G];break}}else Y=new _.I2("AutoplayData is undefined in playlist manager","Mode: "+Y+" endpoint: "+G),_.R0(Y)};
_.H.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.H.onPlaylistYtNavigate_=function(Y){if(Y.detail.endpoint){Y.stopPropagation();var G=Y.detail;G.tempData=this.getTempData_(Y.detail.endpoint);_.$s(this.hostElement,"yt-navigate",G)}};
_.H.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.H.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.H.playlistLoopStateEntityChanged_=function(Y){var G=this,u,O,Q;return _.a(function(M){if(M.nextAddress==1){if(!Y)return M.return();u=Y.state==="PLAYLIST_LOOP_STATE_ONE";return G.playerManager_?M.yield(G.playerManager_.getPlayerPromise(),3):M.jumpTo(2)}M.nextAddress!=2&&(O=M.yieldResult,O.setLoopVideo(u));Q=Y.state==="PLAYLIST_LOOP_STATE_ALL";G.playlistComponent&&(G.playlistComponent.loopOn=Q);_.Sd(M)})};
_.H.getPlaylistLoopData_=function(Y){var G,u;if(Y=Y==null?void 0:(G=Y.playlistButtons)==null?void 0:(u=G.menuRenderer)==null?void 0:u.topLevelButtons)for(G=_.E(Y),u=G.next();!u.done;u=G.next())if(u=u.value,u.playlistLoopButtonRenderer)return u.playlistLoopButtonRenderer};
_.H.getLoopStateCommand_=function(Y){var G=this.getPlaylistData(),u;G=((u=this.getPlaylistLoopData_(G))==null?void 0:u.states)||[];var O;Y=(O=_.z(G[Y?1:2],_.TxT))==null?void 0:O.button;var Q;return(Q=_.z(Y,_.ru))==null?void 0:Q.command};
_.H.onPlayerLoopChange_=function(Y){this.playlistLoopStateEntity_&&(Y?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(Y=this.getLoopStateCommand_(Y))&&this.ytComponentBehavior.resolveCommand(Y)};
_.H.onSleepTimerSettingsChanged_=function(Y){this.canAutoAdvance_=Y!=="End of video"};
UN.prototype.onPlaylistLoopStateEntityChanged=UN.prototype.onPlaylistLoopStateEntityChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],UN.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",_.wW)],UN.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],UN.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],UN.prototype,"loopStateEntityKey_",void 0);
_.S([_.R({selectorArgs:["loopStateEntityKey_"],selector:_.at.playlistLoopStateEntitySelector}),_.V("design:type",Object)],UN.prototype,"playlistLoopStateEntity_",void 0);_.S([_.GO("playlistLoopStateEntity_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UN.prototype,"onPlaylistLoopStateEntityChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"yt-playlist-manager"})],UN);_.d(UN,"yt-playlist-manager",void 0,{mode:2});var a2V,TPS=function(){if(a2V!==void 0)return a2V;var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return a2V=Y};var vR=function(){var Y=_.Z.apply(this,arguments)||this;Y.lastCallback=null;Y.getAccountLinkPromises={};Y.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);Y.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return Y};
_.m(vR,_.Z);_.H=vR.prototype;_.H.getLocation=function(){return window.location.href};
_.H.getCompletionUrl=function(){return _.qI(this.getLocation())};
_.H.containsRedirectState=function(Y){return(Y=_.VW(_.q_a(Y)))?(new URLSearchParams(Y)).get("redirect_state")!==null:!1};
_.H.createGalConfig=function(Y,G){var u=new hz9;Y=u=G?this.getPopupOrRedirectSetting(u,_.DE("LINK_API_KEY"),_.DE("LINK_API_KEY_REDIRECT"),Y):dQb(u,_.DE("LINK_API_KEY"));Y.authUser=_.DE("SESSION_INDEX")||0;Y.supportedFlows=new Set([4]);return Y.build()};
_.H.getPopupOrRedirectSetting=function(Y,G,u,O){this.isGalInteractionPopupMode(O)?(Y.interactionMode=0,Y=dQb(Y,G)):(Y.interactionMode=1,G=this.getCompletionUrl(),Y.completionUrl=G,Y=dQb(Y,u));return Y};
_.H.isGalInteractionPopupMode=function(Y){if(this.redirectModeProviderAllowlist.has(Y))switch(Y){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.H.getStatusEntityKeyForProviderId=function(Y){return _.UU(Y+":all","accountLinkStatusEntity")};
_.H.findNestedPropValue=function(Y,G){var u=!1,O=null;JSON.stringify(Y,function(Q,M){u||Q!==G||(u=!0,O=M);return u?null:M});
return O};
_.H.findAccountLinkButtonViewModel=function(Y,G){var u=null,O=!1;JSON.stringify(Y,function(Q,M){O||M.accountLinkStatusEntityKey!==G||M.accountLinkStatusSecondaryEntityKey||(O=!0,u=M);return O?null:M});
return u};
_.H.executeLinkingSuccessOrFailureCommands=function(Y,G,u){var O=null,Q;(G==null?0:(Q=G.url)==null?0:Q.includes("account_sharing"))?O=G==null?void 0:G.response:O=G==null?void 0:G.response;(G=this.findAccountLinkButtonViewModel(O,Y))?(Y=u?this.findNestedPropValue(G,"onSuccessCommand"):this.findNestedPropValue(G,"onFailureCommand"))?_.YN([Y],this.hostElement):_.N3(Error("am")):_.N3(Error("bm`"+Y))};
_.H.handleInitializeRequest=function(Y,G){var u=this,O=ODN(this.createGalConfig(Y,!0));this.containsRedirectState(this.getLocation())?v3B(Y,O.config,O.galService).then(function(Q){var M=u.getStatusEntityKeyForProviderId(Y);if(Q.statusCode===1)G&&u.executeLinkingSuccessOrFailureCommands(M,G,!0),Q=u.getLocation().indexOf("#"),Q!==-1&&window.history.pushState(null,"",u.getLocation().substring(0,Q));else return G&&u.executeLinkingSuccessOrFailureCommands(M,G,!1),Promise.reject(Error(Q.statusMessage))}).catch(function(Q){_.R0(Q);
_.eK("gamingAccountLinkStatusChanged",{serviceId:Y,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Q)}):this.getAccountLinkPromises[Y]=O.startLinkingSession({serviceId:Y})};
_.H.handleAccountLinkCommand=function(Y){_.z(Y,uFV)&&this.handleLinkRequest(_.z(Y,uFV))};
_.H.handleLinkRequest=function(Y){var G=this,u=Y.thirdPartyId;if(u)if(this.isGalInteractionPopupMode(u)){var O=function(){G.closeAndFire("ytd-gaming-account-link-setting-renderer",Y.onFailureCommand)},Q=function(){G.closeAndFire("ytd-gaming-account-link-setting-renderer",Y.onSuccessCommand)};
this.lastCallback=Q;this.getAccountLinkPromises[u].then(function(M){FDx(M).then(function(t){t.statusCode===1?Q():O()})}).catch(function(){O()})}else this.getAccountLinkPromises[u].then(function(M){FDx(M).then(function(t){if(t.statusCode!==1)return Promise.reject(Error(t.statusMessage))})}).catch(function(M){_.R0(M);
_.eK("gamingAccountLinkStatusChanged",{serviceId:u,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(M)})};
_.H.closeAndFire=function(Y,G){_.qZ(this.hostElement,"yt-close-popup-action",[Y]);G&&_.YN([G],this.hostElement)};
_.H.handleAccountUnlinkCommand=function(Y){_.z(Y,O0B)&&this.handleUnlinkRequest(_.z(Y,O0B))};
_.H.handleUnlinkRequest=function(Y){var G=this,u=Y.thirdPartyId;if(u){var O=function(){G.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",Y.onFailureCommand)},Q=function(){G.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",Y.onSuccessCommand)};
this.lastCallback=Q;var M=ODN(this.createGalConfig(u,!1));this.unlinkUserGal(M,u).then(function(t){t.statusCode===1?Q():O()}).catch(function(){O()})}};
_.H.unlinkUserGal=function(Y,G){return Y.deleteLink(G)};
_.H.handleLogAccountLinkingEventCommand=function(Y){_.F("enable_gel_log_commands")&&_.z(Y,MPw)&&(Y=_.z(Y,MPw).event)&&_.eK("gamingAccountLinkStatusChanged",Y)};
_.Uk.Object.defineProperties(vR,{template:{configurable:!0,enumerable:!0,get:function(){return TPS()}}});
_.S([_.x(_.cZ.YtOpenPopupBehavior),_.V("design:type",Object)],vR.prototype,"ytOpenPopupBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],vR.prototype,"ytActionHandlerBehavior",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-third-party-manager"})],vR);_.d(vR,"ytd-third-party-manager",function(){return TPS()},{mode:2});var LIo=2/3,g_g=_.VZ(130749),XBw=function(Y,G){var u=this;this.element=Y;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){u.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:LIo,moveAction:function(O){u.moveAction(O)},
triggerAction:function(){u.element.isReloading=!0;_.er(_.M4(),{visualElement:g_g});_.Jj.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:u.element}})}}}};
_.vJ(_.M4(),g_g,this.layer);this.gesture=new Nx(Y,G,this.refreshConfig,"pan-down");this.attach()};
_.H=XBw.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(Y){this.element.rotation=Y*360};var PbS=_.VZ(130750),k89=function(Y,G,u,O,Q){var M=this;this.element=Y;this.parent=u;this.channelHeader=O;this.ytdReduxDispatch=Q;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){M.tabsStartAtInPx=M.channelHeader.clientHeight-48;var t;(t=M.selectedTab)!=null&&t.title&&(t=_.sH().resolve(_.q3(_.bv)))&&(t=t.getCurrentPage(),M.lastVisitedTabScrollPosition=t.getScrollTop(),M.previousTab&&
((M.lastVisitedTabScrollPosition===void 0?0:M.lastVisitedTabScrollPosition<M.channelHeader.clientHeight-48)?M.scrollPositionForTabs.has(M.selectedTab.title)&&M.scrollPositionForTabs.delete(M.selectedTab.title):M.scrollPositionForTabs.set(M.selectedTab.title,t.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:I2b(),triggerAction:function(){M.navigate(M.previousTab)},
moveAction:function(t,K){M.moveAction(t,K)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-I2b(),triggerAction:function(){M.navigate(M.nextTab)},
moveAction:function(t,K){M.moveAction(t,K)}}}};
_.vJ(_.M4(),PbS,this.layer);this.gesture=new Nx(Y,G,this.tabConfig);this.attach()};
_.H=k89.prototype;_.H.attach=function(){this.gesture.attach()};
_.H.detach=function(){this.gesture.detach()};
_.H.tabsChanged=function(Y){if(Y){var G=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;Y=_.E(Y);for(var u=Y.next();!u.done;u=Y.next()){u=u.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=u);var O=void 0;if((O=u)==null?0:O.selected)this.previousTab=G,this.selectedTab=u;G=u}G=this.gesture;Y=this.getConfig();G.config=Y;this.scrollPositionNeedsUpdate=!0}};
_.H.getConfig=function(){return 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}})};
_.H.moveAction=function(Y,G){if(!this.tabsElement){var u;this.tabsElement=(u=this.parent.header)==null?void 0:u.tabsElement;G==="right"&&this.previousTab?(u=this.previousTab.endpoint,_.EHg(_.sH().resolve(_.kM),u,{},"")):G==="left"&&this.nextTab&&(u=this.nextTab.endpoint,_.EHg(_.sH().resolve(_.kM),u,{},""));if(!this.tabsElement)return}u=this.tabsElement._pos;G==="right"&&(Y*=-1);this.tabsElement._positionBar(u.width,u.left*1+u.width*Y)};
var I2b=function(){var Y,G;return(G=(Y=_.sH().resolve(_.bv).getCurrentPage())==null?void 0:Y.clientWidth)!=null?G:0};
k89.prototype.navigate=function(Y){this.element.data=void 0;if(Y=Y==null?void 0:Y.endpoint)this.ytdReduxDispatch(YE9(!0)),_.er(_.M4(),{visualElement:PbS}),_.Jj.instance.resolveCommand({navigateAction:{endpoint:Y}},{form:{element:this.element}})};var n_9;var FIN;var J9=function(){var Y=_.Z.apply(this,arguments)||this;Y.rotation=0;Y.isReloading=!1;return Y};
_.m(J9,_.Z);J9.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
J9.prototype.reset=function(){this.hostElement.style.opacity=""};
J9.prototype.close=function(){var Y=this;return _.a(function(G){if(G.nextAddress==1)return G.yield(Y.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);Y.hostElement.style.opacity="0";_.Sd(G)})};
J9.prototype.rotationChanged=J9.prototype.rotationChanged;_.S([_.R(),_.V("design:type",Object)],J9.prototype,"rotation",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],J9.prototype,"isReloading",void 0);_.S([_.Ox("#icon"),_.V("design:type",HTMLElement)],J9.prototype,"icon",void 0);_.S([_.GO("rotation"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],J9.prototype,"rotationChanged",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-refresh"})],J9);
_.d(J9,"ytd-refresh",function(){if(FIN!==void 0)return FIN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return FIN=Y},{mode:1});var pBN;var Yr=function(){var Y=_.Z.apply(this,arguments)||this;Y.useRaf=!_.F("web_use_raf_app_header_layout_killswitch");return Y};
_.m(Yr,_.Z);Yr.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"}}}};
Yr.prototype.dataChanged=function(){if(this.data){var Y=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var G=_.dH(this.data.banner.thumbnails,this.hostElement.clientWidth);G&&(G.indexOf("//")===0&&(G="https:"+G),this.hasBannerArt=!0,_.cm(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+G+")"}))}this.hasBannerArt!==Y&&_.l0(this.hostElement).querySelector("#header").fire("iron-resize")}};
Yr.prototype.updateSelectedFromBinding=function(Y){this.selected=Y.detail.value};
Yr.prototype.dataChanged=Yr.prototype.dataChanged;_.S([_.x(LQV),_.V("design:type",Object)],Yr.prototype,"ytdTabbedHeaderBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.f8),_.V("design:type",Object)],Yr.prototype,"ytdGridStateAwareBehavior",void 0);_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Yr.prototype,"ytdGuideStateAwareBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Yr.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Yr.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Number)],Yr.prototype,"selected",void 0);_.S([_.R(),_.V("design:type",Boolean)],Yr.prototype,"active",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Yr.prototype,"hasBannerArt",void 0);_.S([_.R(),_.V("design:type",Object)],Yr.prototype,"useRaf",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yr.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Yr);
_.d(Yr,"ytd-interactive-tabbed-header-renderer",function(){if(pBN!==void 0)return pBN;var Y=document.createElement("template");_.r(Y,'\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 use-raf="[[useRaf]]" 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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return pBN=Y},{mode:1});var z1x;var GJ=function(){return _.Z.apply(this,arguments)||this};
_.m(GJ,_.Z);GJ.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
GJ.prototype.computeActionsAlignment=function(Y){return(Y==null?void 0:Y.actionsAlignment)||""};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],GJ.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.V("design:type",String)],GJ.prototype,"actionsAlignment",void 0);
_.S([_.pD({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],GJ);
_.d(GJ,"ytd-page-footer-renderer",function(){if(z1x!==void 0)return z1x;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return z1x=Y},{mode:1});var mGb;var WIj;var u1=function(){var Y=_.Z.apply(this,arguments)||this;Y.isEditing=!1;Y.useSlot=!1;Y.isMultiline=!1;return Y};
_.m(u1,_.Z);_.H=u1.prototype;_.H.onKeydown=function(Y){if(Y.keyCode===13&&!this.isMultiline)this.onSave();else if(Y.keyCode===27)this.onCancel()};
_.H.computeComponentStyle=function(Y){return(Y==null?0:Y.style)?Y.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.H.computeisMultiline=function(Y){if(this.multilineOverride!==void 0)return this.multilineOverride;var G,u;return!!(Y==null?0:(G=Y.formField)==null?0:(u=G.textInputFormFieldRenderer)==null?0:u.isMultiline)};
_.H.computeTextDisplayed=function(Y,G){if(Y)return Y;if(G)return G};
_.H.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.H.onSave=function(){if(this.textForm.validate()){this.textForm.save();var Y=this.textForm.value;if(Y)this.set("data.textDisplayed",_.i8(Y));else{var G;((G=this.data)==null?0:G.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.wM("inline-form-changed",this.data));this.isEditing=!1}};
_.H.onCancel=function(){var Y=_.Ri(this.data.textDisplayed);Y===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(Y);this.isEditing=!1};
u1.prototype.onKeydown=u1.prototype.onKeydown;_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],u1.prototype,"ytEventForwardingBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],u1.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],u1.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],u1.prototype,"isEditing",void 0);_.S([_.R(),_.V("design:type",Object)],u1.prototype,"useSlot",void 0);_.S([_.R(),_.V("design:type",Boolean)],u1.prototype,"multilineOverride",void 0);_.S([_.R(),_.V("design:type",Boolean)],u1.prototype,"enableOverlayTheme",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.V("design:type",String)],u1.prototype,"componentStyle",void 0);
_.S([_.R({computed:"computeisMultiline(data)"}),_.V("design:type",Object)],u1.prototype,"isMultiline",void 0);_.S([_.Ox("#text-form"),_.V("design:type",Object)],u1.prototype,"textForm",void 0);_.S([_.Yo("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],u1.prototype,"onKeydown",null);_.S([_.pD({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],u1);
_.d(u1,"ytd-inline-form-renderer",function(){if(WIj!==void 0)return WIj;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return WIj=Y},{mode:1});var r8x;var OY=function(){var Y=_.Z.apply(this,arguments)||this;Y.previousSelectValue=void 0;Y.selectedItemMessage=void 0;return Y};
_.m(OY,_.Z);OY.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
OY.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var Y,G,u,O,Q=(Y=this.data)==null?void 0:(G=Y.dropdown)==null?void 0:(u=G.dropdownRenderer)==null?void 0:(O=u.entries)==null?void 0:O.map(function(K){return K.privacyDropdownItemRenderer});
Y=_.E(Q!=null?Q:[]);for(G=Y.next();!G.done;G=Y.next())if((G=G.value)&&G.int32Value===this.selectedValue){this.selectedItemMessage=G.itemMessage;break}}else this.selectedItemMessage=void 0;var M;(M=this.onValueChanged)==null||M.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var t;(t=this.data)!=null&&t.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
OY.prototype.onValueChangedForSelectedValue=function(Y){this.selectedValue=Y.detail.value};
OY.prototype.selectedValueChanged=OY.prototype.selectedValueChanged;_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],OY.prototype,"ytEventForwardingBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],OY.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],OY.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],OY.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],OY.prototype,"theme",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Number)],OY.prototype,"selectedValue",void 0);_.S([_.R(),_.V("design:type",Function)],OY.prototype,"onValueChanged",void 0);
_.S([_.Ex("selectedValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OY.prototype,"selectedValueChanged",null);_.S([_.pD({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],OY);
_.d(OY,"ytd-dropdown-form-field-renderer",function(){if(r8x!==void 0)return r8x;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return r8x=Y},{mode:2});var xG9;var QR=function(){return _.Z.apply(this,arguments)||this};
_.m(QR,_.Z);_.Uk.Object.defineProperties(QR.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var Y=[],G=_.E(this.data||[]),u=G.next();!u.done;u=G.next())(u=_.z(u.value,WdB))&&Y.push(u);return Y}}});
_.S([_.R(),_.V("design:type",Array)],QR.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],QR.prototype,"byline",null);_.S([_.pD({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],QR);
_.d(QR,"ytd-playlist-byline-renderer",function(){if(xG9!==void 0)return xG9;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return xG9=Y},{mode:1});var f29;var Ms=function(){var Y=_.Z.apply(this,arguments)||this;Y.rtlBullet=_.F("web_playlist_stats_rtl_bullet_icon_killswitch");Y.modern=_.F("web_modern_buttons");Y.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return Y};
_.m(Ms,_.Z);_.H=Ms.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(Y){return Y?!!Y.playlistCustomThumbnailRenderer:!1};
_.H.onYtNavigate=function(Y,G){if(G&&G.actions&&G.actions.indexOf("shuffle")>-1){Y=_.sH().resolve(_.yq);var u=G.tempData||{};u.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);G.tempData=u;Y.isShuffleNextPlaylist=!0}};
_.H.onUpdatePlaylistAction=function(Y){var G;Y=(G=_.z(Y,_.xoE))==null?void 0:G.updatedRenderer;if(G=_.z(Y,NDy))this.data=G};
_.H.computeStyleType=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.H.computeThumbnailWidth=function(Y){return Y==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.H.computeHideThumbnailAria=function(Y){if(Y==null?0:Y.thumbnailOverlays)for(var G=0;G<Y.thumbnailOverlays.length;G++){var u=void 0;if((u=Y.thumbnailOverlays[G])==null?0:u.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Ms.prototype.onYtNavigate=Ms.prototype.onYtNavigate;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ms.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Ms.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Ms.prototype,"ytComponentBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],Ms.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ms.prototype,"rtlBullet",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.V("design:type",String)],Ms.prototype,"styleType",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.V("design:type",Number)],Ms.prototype,"thumbnailWidth",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Ms.prototype,"modern",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.V("design:type",Boolean)],Ms.prototype,"isCustomThumbnail",void 0);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[Event,Object]),_.V("design:returntype")],Ms.prototype,"onYtNavigate",null);_.S([_.pD({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Ms);
_.d(Ms,"ytd-playlist-sidebar-primary-info-renderer",function(){if(f29!==void 0)return f29;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return f29=Y},{mode:1});var Cbx;var H_=function(){return _.Z.apply(this,arguments)||this};
_.m(H_,_.Z);H_.prototype.computeOwnerVisibility=function(Y){return!(!Y.videoOwner&&!Y.button)};
H_.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"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],H_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],H_.prototype,"data",void 0);_.S([_.pD({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],H_);
_.d(H_,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(Cbx!==void 0)return Cbx;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Cbx=Y},{mode:1});var y8w;var EY=function(){var Y=_.Z.apply(this,arguments)||this;Y.expanded=!1;Y.isCompact=!1;return Y};
_.m(EY,_.Z);_.H=EY.prototype;_.H.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.H.dataChanged=function(){this.data&&_.IA(_.l0(this.text),_.hBE.sanitize(_.Ri(this.data.text||null)))};
_.H.computeAutoScrollEnabled=function(Y,G){return Y&&!G};
_.H.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.H.toggleOnTap=function(){this.expanded=!this.expanded};
EY.prototype.expandedChanged=EY.prototype.expandedChanged;EY.prototype.dataChanged=EY.prototype.dataChanged;_.S([_.x(kqj),_.V("design:type",Object)],EY.prototype,"ytdAutoScrollBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],EY.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],EY.prototype,"expanded",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],EY.prototype,"isCompact",void 0);_.S([_.R({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.V("design:type",Boolean)],EY.prototype,"autoScrollEnabled",void 0);_.S([_.Ox("#text"),_.V("design:type",Object)],EY.prototype,"text",void 0);_.S([_.Ox("#expander-icon"),_.V("design:type",Object)],EY.prototype,"expanderIcon",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EY.prototype,"dataChanged",null);_.S([_.GO("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EY.prototype,"expandedChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],EY);
_.d(EY,"ytd-channel-legal-info-renderer",function(){if(y8w!==void 0)return y8w;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return y8w=Y},{mode:1});var e1o;var A8S=_.Q6("DOWNLOAD",{},"Download"),o_g=_.Q6("DOWNLOADING",{},"Downloading"),iwy=_.Q6("DOWNLOADED",{},"Downloaded"),tJ=function(){var Y=_.Z.apply(this,arguments)||this;Y.downloadProgress=0;Y.isDownloadComplete=!1;Y.transferState="TRANSFER_STATE_UNKNOWN";return Y};
_.m(tJ,_.Z);_.H=tJ.prototype;_.H.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.H.dataChanged=function(){var Y;(Y=this.data)!=null&&Y.tooltip||(Y=_.WC(_.Zs().getState(),this.playlistId),this.updateButtonState(Y))};
_.H.computePlaylistId=function(Y){return Y};
_.H.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.H.updateButtonState=function(Y){if(this.data&&(this.data.tooltip!==o_g||!_.EG(Y))){this.isDownloadComplete=!1;switch(Y){case "TRANSFER_STATE_UNKNOWN":Y=A8S;var G="OFFLINE_DOWNLOAD";var u="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":Y=iwy;G="OFFLINE_PIN";u="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":Y=o_g;G="OFFLINE_DOWNLOADING_ZERO";u="ACTION_REMOVE_WITH_PROMPT";
break;default:Y=A8S,G="OFFLINE_DOWNLOAD",u="ACTION_ADD"}var O=Object.assign({},this.data);O.tooltip=Y;O.accessibilityData={accessibilityData:{label:Y}};O.icon={iconType:G};O.size="SIZE_DEFAULT";_.z(O.command,_.u5)&&(_.z(O.command,_.u5).action=u);this.set("data",O)}};
_.H.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var Y="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?Y="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?Y="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?Y="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?Y="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?Y="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(Y="OFFLINE_PIN",this.isDownloadComplete=!0);var G;Y!==((G=this.data.icon)==null?void 0:G.iconType)&&(G=Object.assign({},this.data),G.tooltip=o_g,G.accessibilityData={accessibilityData:{label:o_g}},G.icon={iconType:Y},_.z(G.command,_.u5)&&(_.z(G.command,_.u5).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",G))}};
tJ.prototype.updateProgress=tJ.prototype.updateProgress;tJ.prototype.onTransferStateChanged=tJ.prototype.onTransferStateChanged;tJ.prototype.dataChanged=tJ.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],tJ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],tJ.prototype,"ytdReduxBehavior",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],tJ.prototype,"forceIconButton",void 0);
_.S([_.R({value:!0}),_.V("design:type",Boolean)],tJ.prototype,"forceIconOnly",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],tJ.prototype,"overrides",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],tJ.prototype,"buttonTooltipPosition",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],tJ.prototype,"styleActionButton",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],tJ.prototype,"disableTextTransform",void 0);
_.S([_.R({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.V("design:type",String)],tJ.prototype,"playlistId",void 0);_.S([_.R(),_.V("design:type",Object)],tJ.prototype,"data",void 0);_.S([_.R({selector:_.So4,selectorArgs:["playlistId"]}),_.V("design:type",Object)],tJ.prototype,"downloadProgress",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],tJ.prototype,"isDownloadComplete",void 0);
_.S([_.R({selector:_.WC,selectorArgs:["playlistId"]}),_.V("design:type",String)],tJ.prototype,"transferState",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],tJ.prototype,"showTooltips",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],tJ.prototype,"sendCommandWhenDisabled",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],tJ.prototype,"disabled",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tJ.prototype,"dataChanged",null);_.S([_.Ex("transferState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tJ.prototype,"onTransferStateChanged",null);_.S([_.Ex("downloadProgress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tJ.prototype,"updateProgress",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],tJ);
_.d(tJ,"ytd-download-playlist-button-renderer",function(){if(e1o!==void 0)return e1o;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return e1o=Y},{mode:1});var R1b;_.hR(_.gZR,"thumbnail-overlay-button-view-model",{props:{data:_.AC,lockupExperiments:_.AC}});var KY=function(){var Y=_.Z.apply(this,arguments)||this;Y.isSquare=!1;Y.isVertical=!1;return Y};
_.m(KY,_.Z);KY.prototype.computeIsSquare=function(Y){return Y!=null&&Y.thumbnail?HUB(Y.thumbnail)==="SQUARE":!1};
KY.prototype.computeIsVertical=function(Y){return Y!=null&&Y.thumbnail?HUB(Y.thumbnail)==="VERTICAL":!1};
KY.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],KY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.V("design:type",Object)],KY.prototype,"isSquare",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.V("design:type",Object)],KY.prototype,"isVertical",void 0);
_.S([_.R(),_.V("design:type",Object)],KY.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],KY);
_.d(KY,"ytd-hero-playlist-thumbnail-renderer",function(){if(R1b!==void 0)return R1b;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return R1b=Y},{mode:1});var am=function(){var Y=_.Z.apply(this,arguments)||this;Y.isDarkTheme=!1;Y.isUltraWide=!1;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return Y};
_.m(am,_.Z);_.H=am.prototype;_.H.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.sH();var Y;(Y=_.sH().resolve(_.q3(_.Ij)))!=null&&(Y.headerElement=this.hostElement)};
_.H.detached=function(){var Y;(Y=_.sH().resolve(_.q3(_.Ij)))!=null&&(Y.headerElement=void 0)};
_.H.onUpdateHeader=function(Y){(Y=Y.detail)&&this.set("data",Y)};
_.H.computeTextDisplayed=function(Y){if(Y)return Y.textDisplayed?Y.textDisplayed:Y.placeholder};
_.H.gradientColorToLinearGradientStop=function(Y){var G=this.isDarkTheme?Y.darkThemeColor:Y.lightThemeColor;return G?_.nB(G)+" "+((Y==null?void 0:Y.startLocation)||0)*100+"%":"transparent"};
_.H.onWindowResize=function(){var Y;((Y=this.data)==null?0:Y.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.H.onIronResize=function(Y){this.isUltraWide=!Y.detail.value};
_.H.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.H.onUpdatePlaylistName=function(Y){var G=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},Y.detail.value));_.sk(this,function(){var u;(u=G.editableTitle)==null||u.resize()})};
_.H.onUpdatePlaylistDescription=function(Y){var G=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},Y.detail.value));_.sk(this,function(){var u;(u=G.editableDescriptionInlineExpander)==null||u.resize()})};
_.H.getCinematicData=function(Y){return _.z(Y==null?void 0:Y.cinematicContainer,Iq)};
_.Uk.Object.defineProperties(am.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 Y,G=(Y=this.getCinematicData(this.data))==null?void 0:Y.config;return(Y=this.isDarkTheme?G==null?void 0:G.darkThemeBackgroundColor:G==null?void 0:G.lightThemeBackgroundColor)?"background-color:"+_.k3(Y)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var Y;return _.z((Y=this.data)==null?void 0:Y.descriptionForm,dhb)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var Y=this,G,u,O;return"background:linear-gradient(to bottom, "+(((O=(G=this.getCinematicData(this.data))==null?void 0:(u=G.gradientColorConfig)==null?void 0:u.map(function(Q){return Y.gradientColorToLinearGradientStop(Q)}))==null?void 0:O.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var Y;return _.Ri((Y=this.data)==null?void 0:Y.descriptionTapText)}}});
am.prototype.onUpdateHeader=am.prototype.onUpdateHeader;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],am.prototype,"actionHandlerBehavior",void 0);_.S([_.Ox("#description-inline-expander"),_.V("design:type",Object)],am.prototype,"descriptionInlineExpander",void 0);
_.S([_.Ox("#editable-description-inline-expander"),_.V("design:type",Object)],am.prototype,"editableDescriptionInlineExpander",void 0);_.S([_.R(),_.V("design:type",Object)],am.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],am.prototype,"isUltraWide",void 0);_.S([_.Ox("#editable-title-display"),_.V("design:type",Object)],am.prototype,"editableTitle",void 0);_.S([_.f("isUltraWide"),_.V("design:type",Object),_.V("design:paramtypes",[])],am.prototype,"maxDescriptionLines",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],am.prototype,"noCinematicData",null);_.S([_.Yo("yt-new-playlist-header"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],am.prototype,"onUpdateHeader",null);_.S([_.f("data","isDarkTheme"),_.V("design:type",Object),_.V("design:paramtypes",[])],am.prototype,"backgroundStyle",null);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],am.prototype,"descriptionFormData",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],am.prototype,"getDropdownTheme",null);_.S([_.f("data","isDarkTheme"),_.V("design:type",String),_.V("design:paramtypes",[])],am.prototype,"gradientStyle",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],am.prototype,"descriptionTapText",null);
_.S([_.pD({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],am);
_.d(am,"ytd-playlist-header-renderer",function(){if(mGb!==void 0)return mGb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return mGb=Y},{mode:2});var wBN;var Zwx;var TJ=function(){return _.Z.apply(this,arguments)||this};
_.m(TJ,_.Z);TJ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],TJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],TJ.prototype,"data",void 0);_.S([_.pD({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],TJ);
_.d(TJ,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Zwx!==void 0)return Zwx;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Zwx=Y},{mode:1});var LY=function(){return _.Z.apply(this,arguments)||this};
_.m(LY,_.Z);
LY.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}}}}};
LY.prototype.computeUsePremiumShowStyle=function(Y){if(!Y||!Y.items)return!1;for(var G=0;G<Y.items.length;G++)if(_.z(Y.items[G],NDy)){var u=void 0;return((u=_.z(Y.items[G],NDy))==null?void 0:u.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],LY.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],LY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],LY.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.V("design:type",Boolean)],LY.prototype,"usePremiumShowStyle",void 0);
_.S([_.pD({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],LY);
_.d(LY,"ytd-playlist-sidebar-renderer",function(){if(wBN!==void 0)return wBN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return wBN=Y},{mode:1});var DGy;var h1N;var dGx=function(Y,G,u,O,Q,M,t,K){this.minWidth=Y;this.minHeight=G;this.recommendedWidth=u;this.recommendedHeight=O;this.JSC$21806_maxFileSize=Q;this.title=M;this.bannerGalleryTitle=t;this.channelId=K;this.picker_=null;Y=_.H0Y("yt-banner");G=Y.addView;u=(new bZw("youtubebanner")).addUploadMetadata("silo_id","19");u.opts.ytMaxFileSize=this.JSC$21806_maxFileSize;O=this.recommendedHeight;u.opts.ytRecWidth=this.recommendedWidth;u.opts.ytRecHeight=O;G.call(Y,u);Y.addView(new _.kD);G=Y.addView;u=new _.kD;
u.opts.type="ytbanner";G.call(Y,u.JSC$10399_setLabel(this.bannerGalleryTitle));G=Y.setTitle(this.title).setSize(1E3);G.urlParamMap_.set("thumbs","orig");u=this.minWidth;O=this.minHeight;if(isNaN(u)||isNaN(O))throw Error("ib`"+u+"`"+O);G.urlParamMap_.set("minSize",u+"x"+O);G.urlParamMap_.set("cropMode","ytcb");this.builder_=Y};
dGx.prototype.open=function(){var Y=this;return new _.a0(function(G,u){_.YtR(Y.builder_,function(O){O.action=="picked"?G(O):O.action=="cancel"&&u(Error("cm"))});
Y.picker_&&Y.picker_.dispose();Y.picker_=Y.builder_.build();Y.picker_.setVisible(!0)})};
dGx.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var bwo=function(Y){this.channelId=Y};
bwo.prototype.upload=function(Y){var G="";Y.viewToken&&(G=Y.viewToken[2].type);var u=Y.docs[0];Y=u.crop;G={channel_id:this.channelId,fife_url:u.thumbnails[0].url,photo_id:u.id,is_gallery_image:G=="ytbanner"};Y&&(G.crop_top=Y.top,G.crop_right=Y.right,G.crop_bottom=Y.bottom,G.crop_left=Y.left);return _.bwU("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:G})};var gq=function(){var Y=_.Z.apply(this,arguments)||this;Y.ariaLabel=null;return Y};
_.m(gq,_.Z);_.H=gq.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(Y){return Y};
_.H.onTap=function(){var Y=this,G;if((G=this.data)==null||!G.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new dGx(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 u;(u=this.picker)==null||u.open().then(function(O){Y.handleBannerPicked(O)},function(){})}};
_.H.handleBannerPicked=function(Y){var G=this;this.uploader||(this.uploader=new bwo(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(Y).then(function(u){G.handleBannerUploadSucceeded(u)},function(u){G.handleBannerUploadFailed(u)})};
_.H.handleBannerUploadSucceeded=function(Y){Y&&Y.errors?this.handleBannerUploadFailed(Y):(_.$s(this.hostElement,"yt-banner-updated",Y),this.message=null)};
_.H.handleBannerUploadFailed=function(Y){this.message=Y&&Y.errors&&Y.errors.length?Y.errors[0]:null};
gq.prototype.dataChanged=gq.prototype.dataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],gq.prototype,"componentBehavior",void 0);_.S([_.x(_.LM),_.V("design:type",Object)],gq.prototype,"ironButtonState",void 0);_.S([_.R(),_.V("design:type",Object)],gq.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.V("design:type",Object)],gq.prototype,"ariaLabel",void 0);
_.S([_.R(),_.V("design:type",Object)],gq.prototype,"message",void 0);_.S([_.R(),_.V("design:type",Object)],gq.prototype,"picker",void 0);_.S([_.R(),_.V("design:type",Object)],gq.prototype,"uploader",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gq.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],gq);
_.d(gq,"ytd-channel-banner-editor-renderer",function(){if(h1N!==void 0)return h1N;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return h1N=Y},{mode:1});var Sf9;var NPV=_.hV(["#"]),XW=function(){return _.Z.apply(this,arguments)||this};
_.m(XW,_.Z);XW.prototype.computeHrefWithDefault=function(Y){return this.ytComponentBehavior.computeHref_(Y,!0)||_.r0a(NPV)};
XW.prototype.dataChanged=function(){var Y=this.data;Y&&Y.targetId&&_.uE(_.O2(),Y.targetId,this.moreIcon)};
XW.prototype.dataChanged=XW.prototype.dataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],XW.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],XW.prototype,"data",void 0);_.S([_.Ox("#more-icon"),_.V("design:type",Object)],XW.prototype,"moreIcon",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],XW.prototype,"dataChanged",null);
_.S([_.pD({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],XW);
_.d(XW,"ytd-channel-tagline-renderer",function(){if(Sf9!==void 0)return Sf9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Sf9=Y},{mode:1});var jI9;var P_=function(){return _.Z.apply(this,arguments)||this};
_.m(P_,_.Z);_.H=P_.prototype;_.H.ready=function(){var Y=this;_.l0(this.hostElement).querySelector("#form").addEventListener("submit",function(G){Y.onSubmit(G)})};
_.H.onDataChanged=function(){var Y;((Y=this.data)==null?0:Y.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.H.onIconButtonKeydown=function(Y){Y.keyCode===13&&this.iconButton.click()};
_.H.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.H.openOnClickHandler=function(){this.input.focus()};
_.H.onSubmit=function(Y){Y.preventDefault();return!1};
_.H.submitOnEnterKeyUp=function(Y){var G;if(Y.keyCode===13&&((G=this.data)==null?0:G.expandedText)){Y=this.data.endpoint;G=_.gX.unsafeClone(Y);var u;((u=_.z(G==null?void 0:G.commandMetadata,_.ug))==null?0:u.url)?(_.z(G.commandMetadata,_.ug).url=_.O_(_.z(G.commandMetadata,_.ug).url,"query",this.data.expandedText),_.z(G,_.Y3)&&(_.z(G,_.Y3).query=this.data.expandedText),_.$s(this.hostElement,"yt-navigate",{endpoint:G,tempData:{disableCache:!0}})):(u=new _.I2("Error: Trying to navigate to an endpoint without url",
Y),_.o0(u))}};
_.H.updateDataExpandedTextFromBinding=function(Y){this.set("data.expandedText",Y.detail.value)};
_.Uk.Object.defineProperties(P_.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
P_.prototype.onDataChanged=P_.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.S([_.x(F6g),_.V("design:type",Object)],P_.prototype,"ytdExpandableInputBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],P_.prototype,"data",void 0);_.S([_.Ox("#input"),_.V("design:type",Object)],P_.prototype,"input",void 0);_.S([_.Ox("#icon-button"),_.V("design:type",HTMLElement)],P_.prototype,"iconButton",void 0);
_.S([_.R(),_.V("design:type",String),_.V("design:paramtypes",[])],P_.prototype,"searchIcon",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],P_.prototype,"onDataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],P_);
var yrg=_.$o()(P_,"ytd-expandable-tab-renderer",function(){if(jI9===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);jI9=Y}Y=jI9;return Y},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var VFy;var Im=function(){var Y=_.Z.apply(this,arguments)||this;Y.avatarSize=80;Y.ariaLabel=_.Q6("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return Y};
_.m(Im,_.Z);Im.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Im.prototype.computeHref=function(Y){var G;return((G=_.z(Y,_.SK))==null?0:G.url)?this.componentBehavior.computeHref_(Y):null};
Im.prototype.onTap=function(){var Y,G;(Y=this.data)==null||!Y.editAvatarServiceEndpoint||((G=_.z(this.data.editAvatarServiceEndpoint,_.SK))==null?0:G.url)||_.sH().resolve(_.rH).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.S([_.x(_.LM),_.V("design:type",Object)],Im.prototype,"ironButtonState",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Im.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Im.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Im.prototype,"avatarSize",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],Im.prototype,"ariaLabel",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Im);
_.d(Im,"ytd-channel-avatar-editor",function(){if(VFy!==void 0)return VFy;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return VFy=Y},{mode:1});var l29=_.D(function(Y){var G=Y.data;var u=Y.noPadding;var O=Y.enableBanner;var Q=Y.cinematicContainerTopbarOffset;var M=Y.allowCinematicContainerOverflow;var t=Y.displayAsSidebar;Y=Y.className;_.RE(function(){G().tagManagerId&&(_.KI(G().tagManagerId,_.DE("GL")),Ihy(G().tagManagerId))},"vUc8md");
var K=_.Oe(Arx,function(){return G().pageHeaderEntityKey});
return _.T("yt-page-header-renderer",{class:_.s3("pageHeaderRendererHost",Y)},_.T(_.HE,{data:function(){var L;return((L=K())==null?0:L.header)?K().header:(t==null?0:t())&&G().sidebarContent?G().sidebarContent:G().content}},{pageHeaderViewModel:function(L){return _.T(_.OTx,{data:L.data,
noPadding:u,enableBanner:O,cinematicContainerTopbarOffset:Q,allowCinematicContainerOverflow:M,displayAsSidebar:function(){return(t==null?void 0:t())&&G().enableSidebarView}})}}))},"xk");
l29.idomCompat=!0;_.hR(l29,"yt-page-header-renderer",{props:{data:_.AC,noPadding:_.AC,enableBanner:_.AC,cinematicContainerTopbarOffset:_.AC,allowCinematicContainerOverflow:_.AC,displayAsSidebar:_.AC,className:_.AC}});_.hR(_.ZT,"yt-image-banner-view-model",{props:{data:_.AC,isPositionRelative:_.AC}});_.hR(_.mMB,"yt-tab-group-shape",{props:{shape:_.AC}});var BPy=_.A$.persistentPanelVisibleSelector,kr=function(){var Y=_.Z.apply(this,arguments)||this;Y.expandableCustomTabRenderable=function(G){return e4w(G,function(){return void Y.onSearchNavigate()})};
Y.isRichGrid=!1;Y.isConstrainedList=!1;Y.richGridMiniMode=!1;Y.richGridStyle="RICH_GRID_STYLE_UNKNOWN";Y.isRichGridShorts=!1;Y.responsiveSizing="COMPACT";Y.disableGridStateAware=!1;Y.useRaf=!_.F("web_use_raf_app_header_layout_killswitch");Y.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return Y};
_.m(kr,_.Z);_.H=kr.prototype;_.H.computeHeaderDisabled=function(Y,G){return G||!Y||this.tabsHidden};
_.H.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.H.computeIsRichGridShorts=function(Y){return Y==="RICH_GRID_STYLE_SHORTS_GRID"||Y==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.H.computeImageBannerViewModel=function(){var Y,G;return _.z((G=_.z((Y=this.data)==null?void 0:Y.content,_.HRR))==null?void 0:G.banner,_.JsI)};
_.H.computeHasCinematicContainer=function(){var Y,G;return!((G=_.z((Y=this.data)==null?void 0:Y.content,_.HRR))==null||!G.background)};
_.H.handleHeaderResize=function(){var Y=_.l0(this.hostElement).querySelector("#header");Y&&_.$s(Y,"iron-resize")};
_.H.handleInsertTabCommand=function(Y){var G=_.z(Y,oiN);G&&(G.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(u){return u.tabRenderer&&u.tabRenderer.tabIdentifier===G.tabIdentifier})||this.splice("tabs",G.tabIndex||-1,0,G.tab))};
_.H.handleRefreshChannelTabAction=function(Y){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===Y&&_.$s(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.H.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.H.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.cm(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.H.observerRichGridSlimItemsPerRow=function(){_.cm(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.H.updateCssVars=function(){this.richGridItemsPerRow&&_.cm(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Jy("rich_grid_max_item_width",500))+16)-16+"px"})};
_.H.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.cm(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.H.onDataChanged=function(){this.handleHeaderResize()};
_.H.onWindowResize=function(){this.handleHeaderResize()};
_.H.onFocusedChanged=function(Y){(Y=_.Zb(Y))&&Y.is==="tp-yt-paper-tab"&&Y.hasRipple()&&(Y.getRipple().holdDown=!Y.pointerDown&&Y.focused)};
_.H.updateSelectedFromBinding=function(Y){this.ytdTabbedHeaderBehavior.selected=Y.detail.value};
_.H.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Uk.Object.defineProperties(kr.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:icb(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.imageBannerViewModel)==null?void 0:Y.style)==="IMAGE_BANNER_STYLE_INSET"}}});
kr.prototype.onDataChanged=kr.prototype.onDataChanged;kr.prototype.updateCssVarsForResponsiveGrid=kr.prototype.updateCssVarsForResponsiveGrid;kr.prototype.updateCssVars=kr.prototype.updateCssVars;kr.prototype.observerRichGridSlimItemsPerRow=kr.prototype.observerRichGridSlimItemsPerRow;kr.prototype.observerRichGridItemsPerRow=kr.prototype.observerRichGridItemsPerRow;kr.prototype.persistentPanelVisibleChanged=kr.prototype.persistentPanelVisibleChanged;
_.S([_.x(_.f8),_.V("design:type",Object)],kr.prototype,"ytdGridStateAwareBehavior",void 0);_.S([_.x(LQV),_.V("design:type",Object)],kr.prototype,"ytdTabbedHeaderBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],kr.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],kr.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],kr.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],kr.prototype,"ytdReduxBehavior",void 0);_.S([_.Ox("#tabs"),_.V("design:type",Object)],kr.prototype,"tabsElement",void 0);_.S([_.R(),_.V("design:type",Array)],kr.prototype,"tabs",void 0);_.S([_.R(),_.V("design:type",Object)],kr.prototype,"expandableCustomTabRenderable",void 0);
_.S([_.f("tabs.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],kr.prototype,"tabGroupShape",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],kr.prototype,"isRichGrid",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],kr.prototype,"isConstrainedList",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.kG}),_.V("design:type",Object)],kr.prototype,"richGridMiniMode",void 0);_.S([_.R({selector:function(Y){return Y.ui.richGridStyle}}),
_.V("design:type",Object)],kr.prototype,"richGridStyle",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.V("design:type",Object)],kr.prototype,"isRichGridShorts",void 0);_.S([_.R({selector:_.nU}),_.V("design:type",Number)],kr.prototype,"richGridItemsPerRow",void 0);_.S([_.R({selector:function(Y){return Y.ui.richGridContainerWidth}}),
_.V("design:type",Number)],kr.prototype,"richGridContainerWidth",void 0);_.S([_.R({selector:_.fmy}),_.V("design:type",Number)],kr.prototype,"richGridSlimItemsPerRow",void 0);_.S([_.R(),_.V("design:type",Object)],kr.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],kr.prototype,"responsiveSizing",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],kr.prototype,"disableGridStateAware",void 0);
_.S([_.R({computed:"computeImageBannerViewModel(data)"}),_.V("design:type",Object)],kr.prototype,"imageBannerViewModel",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.V("design:type",Boolean)],kr.prototype,"hasCinematicContainer",void 0);_.S([_.R({selector:osB,reflectToAttribute:!0}),_.V("design:type",Boolean)],kr.prototype,"guideIsVisibleButNotPersistent",void 0);
_.S([_.R({selector:BPy}),_.V("design:type",Boolean)],kr.prototype,"persistentPanelVisible",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("imageBannerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],kr.prototype,"hasBanner",null);_.S([_.R({reflectToAttribute:!0}),_.f("imageBannerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],kr.prototype,"hasInsetBanner",null);_.S([_.R(),_.V("design:type",Object)],kr.prototype,"useRaf",void 0);
_.S([_.R({computed:"computeTabsHidden(tabs)",value:!0}),_.V("design:type",Boolean)],kr.prototype,"tabsHidden",void 0);_.S([_.GO("persistentPanelVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kr.prototype,"persistentPanelVisibleChanged",null);_.S([_.GO("richGridItemsPerRow","isRichGrid"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kr.prototype,"observerRichGridItemsPerRow",null);
_.S([_.GO("richGridSlimItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kr.prototype,"observerRichGridSlimItemsPerRow",null);_.S([_.GO("richGridItemsPerRow","richGridMiniMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kr.prototype,"updateCssVars",null);
_.S([_.GO("richGridContainerWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kr.prototype,"updateCssVarsForResponsiveGrid",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kr.prototype,"onDataChanged",null);_.S([_.pD({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],kr);
_.d(kr,"ytd-tabbed-page-header",function(){if(DGy!==void 0)return DGy;var Y=document.createElement("template");_.r(Y,'\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 use-raf="[[useRaf]]" 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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return DGy=Y},{mode:1});var $GN;var nY=function(){return _.Z.apply(this,arguments)||this};
_.m(nY,_.Z);nY.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],nY.prototype,"data",void 0);_.S([_.pD({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],nY);
_.d(nY,"ytd-labs-edit-renderer",function(){if($GN!==void 0)return $GN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return $GN=Y},{mode:1});var qfy;var FW=function(){var Y=_.Z.apply(this,arguments)||this;Y.dark=!1;Y.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";Y.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.m(FW,_.Z);FW.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
FW.prototype.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.setBackgroundImage(Y);this.dark=Y};
FW.prototype.onDarkModeToggledAction=function(Y){this.setBackgroundImage(Y);this.dark=Y};
FW.prototype.setBackgroundImage=function(Y){_.cm(this.hostElement,{"--yt-labs-header-background":"url("+(Y?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],FW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],FW.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],FW.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],FW.prototype,"dark",void 0);
_.S([_.pD({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],FW);
_.d(FW,"ytd-labs-header-renderer",function(){if(qfy!==void 0)return qfy;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return qfy=Y},{mode:1});var sIj;var pY=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return Y};
_.m(pY,_.Z);pY.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"}}}}}};
pY.prototype.onYtToggleButton=function(Y){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",Y.detail.toggled)};
pY.prototype.onManageLabsState=function(Y){if(Y=_.z(Y,oBb))Y.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?Y.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&Y.labsItemId===this.data.labsItemId&&(Y.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.qZ(this.hostElement,"yt-check-labs-opted-in-state").some(function(G){return G})&&this.data.confirmationDialogCommand?_.UK(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.sH().resolve(_.rH).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&Y.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.sH().resolve(_.rH).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
pY.prototype.onCheckLabsOptedInState=function(){var Y=this.get("data.primaryButton.toggleButtonRenderer");return Y?Y.isToggled:!1};
_.Uk.Object.defineProperties(pY.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
pY.prototype.onYtToggleButton=pY.prototype.onYtToggleButton;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],pY.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],pY.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],pY.prototype,"itemStyle",null);_.S([_.Yo("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],pY.prototype,"onYtToggleButton",null);_.S([_.pD({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],pY);
_.d(pY,"ytd-labs-item-renderer",function(){if(sIj!==void 0)return sIj;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return sIj=Y},{mode:1});var c8y;var UGo;var v_N=function(){return _.Z.apply(this,arguments)||this};
_.m(v_N,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],v_N.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],v_N.prototype,"data",void 0);_.S([_.pD({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],v_N);
_.d(v_N,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(UGo!==void 0)return UGo;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return UGo=Y},{mode:1});var J89;var zJ=function(){return _.Z.apply(this,arguments)||this};
_.m(zJ,_.Z);zJ.prototype.observeSuperchatChip=function(){if(this.data){var Y={"--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)};_.cm(this.hostElement,Y)}};
zJ.prototype.colorFromDecimal=function(Y){return _.nB(Number(Y||0))};
zJ.prototype.observeSuperchatChip=zJ.prototype.observeSuperchatChip;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],zJ.prototype,"data",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zJ.prototype,"observeSuperchatChip",null);_.S([_.pD({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],zJ);
_.d(zJ,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(J89!==void 0)return J89;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return J89=Y},{mode:1});var mr=function(){return _.Z.apply(this,arguments)||this};
_.m(mr,_.Z);mr.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"}}}};
_.Uk.Object.defineProperties(mr.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],mr.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],mr.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],mr.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mr.prototype,"hideMessageBlock",null);
_.S([_.pD({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],mr);
_.d(mr,"ytd-live-chat-history-entry-renderer",function(){if(c8y!==void 0)return c8y;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return c8y=Y},{mode:1});var YXj;var W_=function(){return _.Z.apply(this,arguments)||this};
_.m(W_,_.Z);W_.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.cm(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Uk.Object.defineProperties(W_.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var Y,G;return this.componentBehavior.computeIcon_(((G=_.z((Y=this.data)==null?void 0:Y.badge,_.KAM))==null?void 0:G.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(G=_.z((Y=this.data)==null?void 0:Y.badge,_.KAM))==null?void 0:G.label}}});
W_.prototype.observerRichGridItemsPerRow=W_.prototype.observerRichGridItemsPerRow;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],W_.prototype,"componentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],W_.prototype,"ytdReduxBehavior",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.kG}),_.V("design:type",Boolean)],W_.prototype,"richGridMiniMode",void 0);
_.S([_.R({selector:_.nU}),_.V("design:type",Number)],W_.prototype,"richGridItemsPerRow",void 0);_.S([_.R(),_.V("design:type",Object)],W_.prototype,"data",void 0);_.S([_.GO("richGridItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W_.prototype,"observerRichGridItemsPerRow",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],W_.prototype,"badgeIconName",null);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],W_.prototype,"badgeLabel",null);_.S([_.pD({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],W_);
_.d(W_,"ytd-member-hub-profile-renderer",function(){if(YXj!==void 0)return YXj;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return YXj=Y},{mode:1});var Gub;var rq=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return Y};
_.m(rq,_.Z);
rq.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"}}}};
rq.prototype.handleUpdateTextCommand=function(Y){(Y=_.z(Y,_.cge))&&this.data&&this.data.id===Y.id&&this.set("data",Y)};
rq.prototype.handleUpdateConnectedAppRendererCommand=function(Y){if(_.z(Y,_.Jg4)&&this.data){var G,u;if(Y=(G=_.z(Y,_.Jg4))==null?void 0:(u=G.newConnectedAppRenderer)==null?void 0:u.connectedAppRenderer)this.data=Y}};
rq.prototype.computeConnectedAppStyle=function(Y){return Y.style?Y.style.toLowerCase().replace(/_/g,"-"):""};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],rq.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],rq.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],rq.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.V("design:type",String)],rq.prototype,"connectedAppStyle",void 0);_.S([_.pD({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],rq);
_.d(rq,"ytd-connected-app-renderer",function(){if(Gub!==void 0)return Gub;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Gub=Y},{mode:1});var uIg;var OsB=function(){return _.Z.apply(this,arguments)||this};
_.m(OsB,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],OsB.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],OsB.prototype,"data",void 0);_.S([_.pD({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],OsB);
_.d(OsB,"ytd-channel-options-renderer",function(){if(uIg!==void 0)return uIg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return uIg=Y},{mode:1});var Qcx;var xr=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return Y};
_.m(xr,_.Z);xr.prototype.onCheckboxChange=function(Y){this.data&&(Y=(this.checked=_.Zb(Y).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.sH().resolve(_.rH).resolveCommand(Y,{form:{element:this.hostElement}})};
xr.prototype.handleUpdateCheckboxCommand=function(Y){(Y=_.z(Y,_.ssX))&&this.data&&this.data.id===Y.id&&(this.set("data.disabled",Y.disabled),this.set("data.title",Y.title))};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],xr.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],xr.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],xr.prototype,"checked",void 0);_.S([_.pD({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],xr);
_.d(xr,"ytd-settings-checkbox-renderer",function(){if(Qcx!==void 0)return Qcx;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Qcx=Y},{mode:1});var Mjb;var fY=function(){return _.Z.apply(this,arguments)||this};
_.m(fY,_.Z);fY.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],fY.prototype,"data",void 0);_.S([_.pD({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],fY);
_.d(fY,"ytd-settings-email-item-renderer",function(){if(Mjb!==void 0)return Mjb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Mjb=Y},{mode:1});var Hsg;var CY=function(){return _.Z.apply(this,arguments)||this};
_.m(CY,_.Z);CY.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"}}}};
CY.prototype.getExpansionIcon=function(Y){return Y?"COLLAPSE":"EXPAND"};
CY.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Uk.Object.defineProperties(CY.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],CY.prototype,"data",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],CY.prototype,"expanded",void 0);_.S([_.f("expanded"),_.V("design:type",String),_.V("design:paramtypes",[])],CY.prototype,"emailListExpanded",null);
_.S([_.Ox("#options"),_.V("design:type",Object)],CY.prototype,"options",void 0);_.S([_.pD({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],CY);
_.d(CY,"ytd-settings-email-list-renderer",function(){if(Hsg!==void 0)return Hsg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Hsg=Y},{mode:1});var ELg;var tjS;var KXb;var azo;var T3g;var yR=function(){return _.Z.apply(this,arguments)||this};
_.m(yR,_.Z);_.H=yR.prototype;_.H.computePreselectedOption=function(Y,G){return G===this.itemSelected_?Y:void 0};
_.H.dataChanged_=function(){var Y=this;this.preselectedSubreason=this.itemSelected_=-1;var G;(G=this.data)!=null&&G.key&&_.sk(this,function(){var u,O=Number((u=Y.data)==null?void 0:u.key);!Number.isNaN(O)&&(Y.itemSelected_=O,u=(u=(Y.data.items||[])[O])&&u.optionSelectableItemRenderer&&u.optionSelectableItemRenderer.preselectedIndex)&&(Y.preselectedSubreason=u)})};
_.H.isSubReasonHidden_=function(Y,G){return Y!=G};
_.H.onTopItemSelected_=function(Y,G){for(var u=_.l0(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),O=0,Q=u.length;O<Q;O++)u[O].select(0);_.qZ(this.hostElement,"yt-report-form-update",[G.item.value]);Y.stopPropagation()};
_.H.onItemSelected_=function(Y,G){_.qZ(this.hostElement,"yt-report-form-update",[G.item.value]);Y.stopPropagation()};
_.H.getItem_=function(Y){return Y.serviceItem?Y.serviceItem:Y.navigationItem?Y.navigationItem:Y.optionSelectableItemRenderer?Y.optionSelectableItemRenderer:null};
_.H.computeText_=function(Y){return(Y=this.getItem_(Y))?this.ytRendererBehavior.getSimpleString(Y.text):null};
_.H.validate=function(){return this.itemSelected_!==-1};
_.H.computeAriaLabel_=function(Y){var G=_.Ri(Y.text);(Y=Y.accessibility&&Y.accessibility.accessibilityData&&Y.accessibility.accessibilityData.label)&&(G+=". "+Y);return G};
_.H.computeItemSelected_=function(Y){return Y};
_.H.preventSelection_=function(Y){Y.stopPropagation();this.tooltipTapped=!0};
_.H.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.H.updateItemSelectedFromBinding=function(Y){this.itemSelected_=Y.detail.value};
_.H.save=function(){var Y;this.validate()&&(Y=this.data)!=null&&Y.items&&(Y=this.data.items[this.itemSelected_],Y!=null&&Y.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(Y.optionSelectableItemRenderer.submitEndpoint)||_.c$(this.hostElement,[Y.optionSelectableItemRenderer.submitEndpoint])))};
yR.prototype.onPaperRippleTransitionEnd_=yR.prototype.onPaperRippleTransitionEnd_;yR.prototype.dataChanged_=yR.prototype.dataChanged_;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],yR.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],yR.prototype,"data",void 0);_.S([_.R({value:-1}),_.V("design:type",Number)],yR.prototype,"itemSelected_",void 0);
_.S([_.R({computed:"computeItemSelected_(itemSelected_)"}),_.V("design:type",Number)],yR.prototype,"value",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],yR.prototype,"restoreFocusOnClose",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],yR.prototype,"tooltipTapped",void 0);_.S([_.R({value:-1}),_.V("design:type",Number)],yR.prototype,"preselectedSubreason",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yR.prototype,"dataChanged_",null);_.S([_.Yo("transitionend"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yR.prototype,"onPaperRippleTransitionEnd_",null);_.S([_.Ff({is:"yt-options-renderer",disableElementRegistration:!0})],yR);
_.d(yR,"yt-options-renderer",function(){if(T3g===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;azo===void 0&&(azo=document.createElement("template"));var O=azo;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);T3g=Y}Y=T3g;return Y},{mode:2});var LXb;var gLb;var Xox;var PZg;var ew=function(){return _.Z.apply(this,arguments)||this};
_.m(ew,_.Z);ew.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
ew.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
ew.prototype.onTap=function(Y){if(this.hostElement.classList.contains("selected")||_.qZ(this.hostElement,"yt-share-panel-can-select-contact-action")[0])Y&&Y.detail&&(Y.detail.x||Y.detail.y)&&_.l0(this.hostElement).querySelector("#target").blur(),(Y=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),Y={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:Y?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.qZ(this.hostElement,"yt-share-panel-select-contact-action",[Y])};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.S([_.R({observer:"onDataChanged"}),_.V("design:type",Object)],ew.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.V("design:type",String)],ew.prototype,"componentTitle",void 0);_.S([_.Ox("#thumbnail"),_.V("design:type",Object)],ew.prototype,"thumbnail",void 0);_.S([_.Ff({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],ew);
_.d(ew,"yt-enrolled-contact-renderer",function(){if(PZg===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Xox===void 0&&(Xox=document.createElement("template"));var O=Xox;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);PZg=Y}Y=PZg;return Y},{mode:2});var Izx;var kuN;var AJ=function(){return _.Z.apply(this,arguments)||this};
_.m(AJ,_.Z);AJ.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
AJ.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
AJ.prototype.onTap=function(Y){if(this.hostElement.classList.contains("selected")||_.qZ(this.hostElement,"yt-share-panel-can-select-contact-action")[0])Y&&Y.detail&&(Y.detail.x||Y.detail.y)&&_.l0(this.hostElement).querySelector("#target").blur(),(Y=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),Y={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:Y?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.qZ(this.hostElement,"yt-share-panel-select-contact-action",[Y])};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.S([_.R({observer:"onDataChanged"}),_.V("design:type",Object)],AJ.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.V("design:type",String)],AJ.prototype,"componentTitle",void 0);_.S([_.Ox("#thumbnail"),_.V("design:type",Object)],AJ.prototype,"thumbnail",void 0);_.S([_.Ff({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],AJ);
_.d(AJ,"yt-suggested-contact-renderer",function(){if(kuN===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Izx===void 0&&(Izx=document.createElement("template"));var O=Izx;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);kuN=Y}Y=kuN;return Y},{mode:2});var om=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-share-panel-reset-action":"onReset"};return Y};
_.m(om,_.Z);om.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"}}}}}};
om.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.qZ(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
om.prototype.onReset=function(){for(var Y=_.l0(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),G=Y.length-1;G>=0;G--)Y[G].classList.toggle("selected")};
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],om.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],om.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R({observer:"onDataChanged"}),_.V("design:type",Object)],om.prototype,"data",void 0);
_.S([_.Ff({is:"yt-contact-section-renderer",disableElementRegistration:!0})],om);
_.d(om,"yt-contact-section-renderer",function(){if(gLb===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;LXb===void 0&&(LXb=document.createElement("template"));var O=LXb;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);gLb=Y}Y=gLb;return Y},{mode:2});var i1=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return Y};
_.m(i1,_.Z);_.H=i1.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(Y){var G;(Y=_.z((G=_.z(Y,_.AgX))==null?void 0:G.formRenderer,h7V))&&this.set("data",Y)};
_.H.reset=function(){var Y=_.l0(this.hostElement).querySelector("#fields").children;Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next())G=G.value,G.reset&&G.reset()};
_.H.getForm=function(){var Y={},G=_.l0(this.hostElement).querySelector("#fields").children;G=_.E(G);for(var u=G.next();!u.done;u=G.next()){u=u.value;if(!u.validate())return null;Y[u.data.key]=u.value}return Y};
_.H.submitFormFields=function(){if(this.fields)for(var Y=_.E(this.fields),G=Y.next();!G.done;G=Y.next())G=G.value,G.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?G.save():G.nodeName==="YT-OPTIONS-RENDERER"&&G.save()};
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],i1.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],i1.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],i1.prototype,"data",void 0);_.S([_.Q4("#fields > *"),_.V("design:type",Array)],i1.prototype,"fields",void 0);
_.S([_.Ff({is:"yt-form-renderer",disableElementRegistration:!0})],i1);
_.d(i1,"yt-form-renderer",function(){if(KXb===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;tjS===void 0&&(tjS=document.createElement("template"));var O=tjS;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);KXb=Y}Y=KXb;return Y},{mode:2});var Rm=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return Y};
_.m(Rm,_.Z);Rm.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"}}}};
Rm.prototype.handleSignalActionSubmitForm=function(){var Y,G=(Y=this.formRenderer)==null?void 0:Y.getForm();G&&this.data.serviceEndpoint&&_.sH().resolve(_.rH).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},G,{element:this.hostElement})})};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Rm.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Rm.prototype,"data",void 0);_.S([_.Ox("yt-form-renderer"),_.V("design:type",Object)],Rm.prototype,"formRenderer",void 0);
_.S([_.pD({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Rm);
_.d(Rm,"ytd-settings-gaia-link-renderer",function(){if(ELg!==void 0)return ELg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return ELg=Y},{mode:1});var nLB;var FXV;var wq=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return Y};
_.m(wq,_.Z);wq.prototype.dataChanged=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1)return Y.radio.removeAttribute("checked"),!Y.data||!Y.data.id||Y.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||Jfx()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(G=Y.data&&Y.data.id)?u.yield(Gij(Y.data.id),4):u.jumpTo(3):(Y.set("data.hidden",!0),u.jumpTo(0));u.nextAddress!=3&&(G=u.yieldResult);G&&_.qZ(Y.hostElement,"yt-select-settings-radio-option",[Y.data.id]);_.Sd(u)})};
wq.prototype.onButtonChanged=function(Y){_.Zb(Y).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.sH().resolve(_.rH).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.qZ(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
wq.prototype.onSelectOption=function(Y){this.data&&this.data.id&&(this.data.id===Y?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
wq.prototype.dataChanged=wq.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],wq.prototype,"ytActionHandlerBehavior",void 0);_.S([_.Ox("#radio"),_.V("design:type",Object)],wq.prototype,"radio",void 0);_.S([_.R(),_.V("design:type",Object)],wq.prototype,"data",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],wq.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],wq);
_.d(wq,"ytd-settings-radio-option-renderer",function(){if(FXV!==void 0)return FXV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return FXV=Y},{mode:1});_.hR(_.ei,"basic-content-view-model",{props:{data:_.wH,className:_.wH}});var Z6=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return Y};
_.m(Z6,_.Z);Z6.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&Jfx()&&this.set("data.hidden",!1)};
Z6.prototype.onSwitchReady=function(){var Y=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.F("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){iQV().then(function(G){G&&(Notification.permission==="default"?Y.set("data.hidden",!1):Notification.permission==="granted"&&qL("NotificationsDisabled").then(function(u){u||_.qZ(Y.hostElement,"yt-toggle-settings-switch",[Y.data.id,!u]);Y.set("data.hidden",!1)}).catch(function(){}))})})};
Z6.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},basicContentViewModel:{component:"basic-content-view-model",noInjection:!0}}}}};
Z6.prototype.handleUpdateOptionsCommand=function(Y){(Y=_.z(Y,_.UoM))&&this.data&&this.data.id===Y.id&&(this.set("data.hidden",Y.hidden),Y.text!==void 0&&this.set("data.text",Y.text),Y.clearOptions&&this.set("data.options",[]))};
Z6.prototype.onSwitchReady=Z6.prototype.onSwitchReady;Z6.prototype.dataChanged=Z6.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Z6.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Z6.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Z6.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Z6.prototype,"data",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z6.prototype,"dataChanged",null);_.S([_.Yo("yt-settings-switch-ready"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z6.prototype,"onSwitchReady",null);_.S([_.pD({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Z6);
_.d(Z6,"ytd-settings-options-renderer",function(){if(nLB!==void 0)return nLB;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return nLB=Y},{mode:1});var po9;var D6=function(){return _.Z.apply(this,arguments)||this};
_.m(D6,_.Z);D6.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],D6.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],D6.prototype,"data",void 0);_.S([_.pD({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],D6);
_.d(D6,"ytd-settings-sidebar-renderer",function(){if(po9!==void 0)return po9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return po9=Y},{mode:1});var zyN;var hJ=function(){return _.Z.apply(this,arguments)||this};
_.m(hJ,_.Z);hJ.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
hJ.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
hJ.prototype.onYtExpanderMoreTapped=hJ.prototype.onYtExpanderMoreTapped;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],hJ.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],hJ.prototype,"data",void 0);
_.S([_.Yo("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hJ.prototype,"onYtExpanderMoreTapped",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],hJ);
_.d(hJ,"ytd-product-details-description-renderer",function(){if(zyN!==void 0)return zyN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return zyN=Y},{mode:1});var m_B;var dq=function(){var Y=_.Z.apply(this,arguments)||this;Y.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";Y.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";Y.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";Y.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return Y};
_.m(dq,_.Z);dq.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Uk.Object.defineProperties(dq.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?void 0:(G=Y.offerData)==null?void 0:G.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?void 0:Y.purchaseButtonRenderers)!==void 0&&((G=this.data)==null?void 0:G.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!((Y=this.data)==null||!Y.formattedFromMerchantText)&&(!((G=this.data)==null||!G.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],dq.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],dq.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],dq.prototype,"data",void 0);
_.S([_.R({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0}),_.V("design:type",Object)],dq.prototype,"shippingIcon",void 0);_.S([_.R({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0}),_.V("design:type",Object)],dq.prototype,"shippingAddressIcon",void 0);_.S([_.R({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0}),_.V("design:type",Object)],dq.prototype,"googleGuaranteeIcon",void 0);
_.S([_.R({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0}),_.V("design:type",Object)],dq.prototype,"returnPolicyIcon",void 0);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dq.prototype,"showAdditionalFees",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dq.prototype,"showMultiPurchaseButtons",null);
_.S([_.f("data","showMultiPurchaseButtons"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dq.prototype,"showPurchaseData",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],dq);
_.d(dq,"ytd-product-details-hero-offer-renderer",function(){if(m_B!==void 0)return m_B;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return m_B=Y},{mode:1});var WXg;var rxV;var b1=function(){return _.Z.apply(this,arguments)||this};
_.m(b1,_.Z);_.H=b1.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(Y){Y=Y.keyCode;Y!==13&&Y!==32||this.handleSelection()};
_.H.onMouseEnterImage=function(){var Y;((Y=this.data)==null?void 0:Y.thumbnailDetails)!==void 0&&_.sK(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.H.onMouseLeaveImage=function(){_.sK(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.H.handleSelection=function(){this.data&&_.$s(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Uk.Object.defineProperties(b1.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.isSelected)}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],b1.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],b1.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],b1.prototype,"isSelected",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],b1);
_.d(b1,"ytd-product-details-thumbnail-renderer",function(){if(rxV!==void 0)return rxV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return rxV=Y},{mode:1});var Sw=function(){var Y=_.Z.apply(this,arguments)||this;var G={};Y.actionMap=(G["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",G["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",G);Y.selectedThumbnailIndex=0;Y.selectItem=function(u){u.target.onKeyDown(u)};
return Y};
_.m(Sw,_.Z);_.H=Sw.prototype;_.H.handlePreviewImageSelect=function(Y){this.hoverThumbnail=Y};
_.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(Y,G){this.selectedThumbnailIndex=G};
_.H.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.H.updateOffset=function(){var Y=_.l0(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-Y));this.ytdHorizontalListBehavior.reposition_()};
_.Uk.Object.defineProperties(Sw.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null?0:Y.imageRenderer){var G,u;return((G=this.data)==null?void 0:(u=G.imageRenderer)==null?void 0:u.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var Y;if((Y=this.data)==null?0:Y.imageRenderer){var G;return(G=_.z(this.data.imageRenderer[this.selectedThumbnailIndex],Mi9))==null?void 0:G.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var Y=this,G,u,O,Q=(O=(G=this.data)==null?void 0:(u=G.imageRenderer)==null?void 0:u.map(function(M,t){return{productDetailsThumbnailRenderer:Object.assign({},_.z(M,Mi9),{index:t,isSelected:t===Y.selectedThumbnailIndex})}}))!=null?O:[];
return Object.assign({},this.data,{imageRenderer:Q})}}});
Sw.prototype.updateOffset=Sw.prototype.updateOffset;Sw.prototype.dataChanged=Sw.prototype.dataChanged;Sw.prototype.onThumbnailSelected=Sw.prototype.onThumbnailSelected;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Sw.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.V8.YtdHorizontalListBehavior),_.V("design:type",Object)],Sw.prototype,"ytdHorizontalListBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Sw.prototype,"componentBehavior",void 0);_.S([_.x([_.vZ.YtActionHandlerBehavior]),_.V("design:type",Object)],Sw.prototype,"actionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Sw.prototype,"data",void 0);_.S([_.R({value:"$.items.children"}),_.V("design:type",String)],Sw.prototype,"itemsPath",void 0);_.S([_.R({value:3}),_.V("design:type",Number)],Sw.prototype,"initialCount",void 0);
_.S([_.Ox("#items"),_.V("design:type",Object)],Sw.prototype,"items",void 0);_.S([_.R(),_.V("design:type",Object)],Sw.prototype,"selectedThumbnailIndex",void 0);_.S([_.R(),_.V("design:type",Object)],Sw.prototype,"hoverThumbnail",void 0);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Sw.prototype,"showThumbnails",null);
_.S([_.Yo("ytd-product-details-thumbnail-renderer-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Number]),_.V("design:returntype")],Sw.prototype,"onThumbnailSelected",null);_.S([_.f("data","selectedThumbnailIndex","hoverThumbnail"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sw.prototype,"thumbnailDetails",null);_.S([_.f("data","selectedThumbnailIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sw.prototype,"populatedData",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Sw.prototype,"dataChanged",null);_.S([_.Yo("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Sw.prototype,"updateOffset",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Sw);
_.d(Sw,"ytd-product-details-image-carousel-renderer",function(){if(WXg!==void 0)return WXg;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return WXg=Y},{mode:2});var x_o;var Ns=function(){return _.Z.apply(this,arguments)||this};
_.m(Ns,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ns.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ns.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Ns.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ns.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Ns);
_.d(Ns,"ytd-product-details-offer-renderer",function(){if(x_o!==void 0)return x_o;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return x_o=Y},{mode:1});var fzo;var jw=function(){var Y=_.Z.apply(this,arguments)||this;Y.isOffersHidden=!0;return Y};
_.m(jw,_.Z);jw.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var Y,G=_.z((Y=this.data)==null?void 0:Y.viewOffersButton,_.ru);G&&this.ytRendererBehavior.logExplicitClick(G)};
jw.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Uk.Object.defineProperties(jw.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O;return(u=_.z((Y=this.data)==null?void 0:(G=Y.offers)==null?void 0:G[0],KdV))==null?void 0:(O=u.offerData)==null?void 0:O.vendorLogoUrl}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],jw.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],jw.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],jw.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],jw.prototype,"isOffersHidden",void 0);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],jw.prototype,"firstOfferVendorLogoUrl",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],jw);
_.d(jw,"ytd-product-details-offers-container-renderer",function(){if(fzo!==void 0)return fzo;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return fzo=Y},{mode:1});var CZg;var yxg;var VR=function(){return _.Z.apply(this,arguments)||this};
_.m(VR,_.Z);VR.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
VR.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.sK(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
VR.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.sK(this,"ytd-product-details-variant-image-unselect")};
_.Uk.Object.defineProperties(VR.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 Y;return((Y=this.data)==null?void 0:Y.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return((Y=this.data)==null?void 0:Y.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((G=this.data)==null?void 0:G.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((u=this.data)==null?void 0:u.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var Y;if(((Y=this.data)==null?void 0:Y.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var Y,G;return this.isUnavailable?(Y=this.data)==null?void 0:Y.variantOptionUnavailableAccessibilityLabel:(G=this.data)==null?void 0:G.variantOptionAccessibilityLabel}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],VR.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],VR.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],VR.prototype,"displayType",void 0);
_.S([_.f("displayType","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],VR.prototype,"isImageButton",null);_.S([_.f("displayType","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],VR.prototype,"isPillButton",null);_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],VR.prototype,"isActive",null);
_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],VR.prototype,"isUnavailable",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],VR.prototype,"thumbnailDetails",null);_.S([_.f("isUnavailable","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],VR.prototype,"accessibilityLabel",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],VR);
_.d(VR,"ytd-product-details-variant-option-renderer",function(){if(yxg!==void 0)return yxg;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return yxg=Y},{mode:1});var ey9;var l1=function(){var Y=_.Z.apply(this,arguments)||this;Y.variantsExpanded=!1;Y.hideShowMoreLessVariantButton=!0;Y.initialized=!1;Y.computeVariantsDebouncer=null;Y.computeVariants=function(G){G=G===void 0?!1:G;Y.variantsExpanded||Y.showOptions()||!G||(Y.variantsExpanded=!0);if(Y.variantsExpanded){G=_.E(Y.items.children);for(var u=G.next();!u.done;u=G.next())u.value.hidden=!1}Y.initialized=!0};
return Y};
_.m(l1,_.Z);_.H=l1.prototype;_.H.ready=function(){var Y=this;setTimeout(function(){Y.computeVariants(!0)})};
_.H.showOptions=function(){for(var Y=_.E(this.items.children),G=Y.next();!G.done;G=Y.next())G.value.hidden=!0;var u=this.container.getBoundingClientRect().width,O=0,Q=Y=0;G=!1;for(var M=_.E(this.items.children),t=M.next();!t.done;t=M.next()){t=t.value;t.hidden=!1;var K=t.getBoundingClientRect().width;if(O+K<u)O+=K;else if(++Q<2)O=K;else break;Y+=1;t.hasAttribute("is-active")&&(G=!0)}for(u=Y;u<this.items.children.length;u++)this.items.children[u].hidden=!0;this.hideShowMoreLessVariantButton=Y===this.items.children.length;
return G};
_.H.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.By(this.computeVariantsDebouncer,_.Ru.after(100),this.computeVariants)};
_.H.onShowMoreLessVariantsButtonClick=function(){var Y;(Y=this.data)!=null&&Y.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]]"}}}}}};
_.Uk.Object.defineProperties(l1.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=(Y=this.data)==null?void 0:(G=Y.variantOptionRenderers)==null?void 0:G.find(function(M){return _.z(M,Eib).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),O,Q;
return(Q=(O=_.z(u,Eib))==null?void 0:O.name)!=null?Q:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.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"}}}});
l1.prototype.debouncedComputeVariants=l1.prototype.debouncedComputeVariants;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],l1.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],l1.prototype,"componentBehavior",void 0);_.S([_.x(_.aZ),_.V("design:type",Object)],l1.prototype,"ironResizableBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],l1.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],l1.prototype,"variantsExpanded",void 0);_.S([_.R(),_.V("design:type",Object)],l1.prototype,"hideShowMoreLessVariantButton",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],l1.prototype,"initialized",void 0);_.S([_.Ox("#items"),_.V("design:type",HTMLDivElement)],l1.prototype,"items",void 0);_.S([_.Ox("#container"),_.V("design:type",HTMLDivElement)],l1.prototype,"container",void 0);
_.S([_.Ox("#more-variants-button"),_.V("design:type",HTMLElement)],l1.prototype,"moreVariantsButton",void 0);_.S([_.f("data"),_.V("design:type",String),_.V("design:paramtypes",[])],l1.prototype,"selectedOptionName",null);_.S([_.GO("data","variantsExpanded"),_.Yo("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],l1.prototype,"debouncedComputeVariants",null);
_.S([_.f("data"),_.V("design:type",String),_.V("design:paramtypes",[])],l1.prototype,"displayType",null);_.S([_.f("displayType"),_.V("design:type",Object),_.V("design:paramtypes",[])],l1.prototype,"variantItemsClassname",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],l1);
_.d(l1,"ytd-product-details-variant-renderer",function(){if(ey9!==void 0)return ey9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return ey9=Y},{mode:1});var B_=function(){return _.Z.apply(this,arguments)||this};
_.m(B_,_.Z);
B_.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"}}}};
_.Uk.Object.defineProperties(B_.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=(G=_.z((Y=this.data)==null?void 0:Y.offersContainerRenderer,tiy))==null?void 0:G.offers;return u!==void 0&&(u==null?void 0:u.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 Y,G,u;return((u=(Y=this.data)==null?void 0:(G=Y.variants)==null?void 0:G.map(function(O){var Q,M;O=(M=(Q=_.z(O,HSo))==null?void 0:Q.variantOptionRenderers)==null?void 0:M.find(function(K){var L;return((L=_.z(K,Eib))==null?void 0:L.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var t;return(t=_.z(O,Eib))==null?void 0:t.name}).filter(function(O){return typeof O==="string"}))!=null?u:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O=(G=_.z((Y=this.data)==null?void 0:Y.shoppingFlaggingRenderer,aTV))==null?void 0:(u=G.reportButton)==null?void 0:u.buttonRenderer;if(O)return{text:O.text,command:O.command,icon:{iconType:"FLAG"},accessibilityData:O.accessibilityData,trackingParams:O.trackingParams,loggingDirectives:O.loggingDirectives}}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],B_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],B_.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],B_.prototype,"data",void 0);_.S([_.Ox("#image-carousel-renderer"),_.V("design:type",Object)],B_.prototype,"imageCarouselRenderer",void 0);
_.S([_.Ox("#hero-offer-renderer"),_.V("design:type",Object)],B_.prototype,"productDetailsHeroOfferRenderer",void 0);_.S([_.Ox("#variants"),_.V("design:type",Object)],B_.prototype,"productDetailsVariantRenderer",void 0);_.S([_.Ox("#offers"),_.V("design:type",Object)],B_.prototype,"productDetailsOffersContainerRenderer",void 0);_.S([_.Ox("#description-renderer"),_.V("design:type",Object)],B_.prototype,"productDetailsDescriptionRenderer",void 0);
_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],B_.prototype,"showPurchaseData",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],B_.prototype,"showHeroOfferRenderer",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],B_.prototype,"showBrandText",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],B_.prototype,"showOffers",null);
_.S([_.f("showOffers","showPurchaseData"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],B_.prototype,"showBuySeparator",null);_.S([_.f("showOffers","showPurchaseData"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],B_.prototype,"showBuyCard",null);_.S([_.f("data"),_.V("design:type",String),_.V("design:paramtypes",[])],B_.prototype,"selectedVariantsText",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],B_.prototype,"shoppingReportingButtonData",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],B_);
_.d(B_,"ytd-product-details-renderer",function(){if(CZg!==void 0)return CZg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return CZg=Y},{mode:1});var AxS;var oLo;var isb;var $r=function(){return _.Z.apply(this,arguments)||this};
_.m($r,_.Z);$r.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Uk.Object.defineProperties($r.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],$r.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],$r.prototype,"formattedAmount",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],$r.prototype,"ariaLabel",void 0);
_.S([_.R({reflectToAttribute:!0}),_.f("data.style"),_.V("design:type",String),_.V("design:paramtypes",[])],$r.prototype,"vcBalanceWidgetStyle",null);_.S([_.Ff({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],$r);
_.d($r,"yt-vc-balance-renderer",function(){if(isb===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;oLo===void 0&&(oLo=document.createElement("template"));var O=oLo;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);isb=Y}Y=isb;return Y},{mode:2});_.Px("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var qs=function(){return _.Z.apply(this,arguments)||this};
_.m(qs,_.Z);_.Uk.Object.defineProperties(qs.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:""}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],qs.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],qs.prototype,"data",void 0);_.S([_.R({selectorArgs:["data.vcBalanceEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"vcBalanceEntity",G)}}),
_.V("design:type",Object)],qs.prototype,"vcBalanceEntity",void 0);_.S([_.f("vcBalanceEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],qs.prototype,"formattedAmount",null);_.S([_.f("vcBalanceEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],qs.prototype,"vcBalanceAriaLabel",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],qs);
_.d(qs,"ytd-vc-balance-renderer",function(){if(AxS!==void 0)return AxS;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return AxS=Y},{mode:1});var RyB;var sY=function(){var Y=_.Z.apply(this,arguments)||this;Y.expandableCustomTabRenderable=function(G){return e4w(G,function(){return void Y.onSearchNavigate()})};
return Y};
_.m(sY,_.Z);sY.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
sY.prototype.onSearchNavigate=function(){this.selected=void 0};
sY.prototype.onTabsChange=function(){var Y,G=(Y=this.tabs)==null?void 0:Y.findIndex(function(u){var O;return u==null?void 0:(O=u.tabRenderer)==null?void 0:O.selected});
G!==void 0&&(this.selected=G)};
sY.prototype.onTabsActive=function(Y){if(this.tabs!==void 0){var G,u;(Y=(G=this.tabs[Y.detail.selected])==null?void 0:(u=G.tabRenderer)==null?void 0:u.endpoint)&&_.$s(this.hostElement,"yt-navigate",{endpoint:Y})}};
_.Uk.Object.defineProperties(sY.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:icb(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
sY.prototype.onTabsChange=sY.prototype.onTabsChange;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],sY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.f8),_.V("design:type",Object)],sY.prototype,"ytdGridStateAwareBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],sY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],sY.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Array)],sY.prototype,"tabs",void 0);_.S([_.R(),_.V("design:type",Number)],sY.prototype,"selected",void 0);_.S([_.f("tabs.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],sY.prototype,"tabGroupShape",null);_.S([_.R(),_.V("design:type",Object)],sY.prototype,"expandableCustomTabRenderable",void 0);
_.S([_.f("tabs"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],sY.prototype,"tabsEnabled",null);_.S([_.Ex("tabs"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sY.prototype,"onTabsChange",null);_.S([_.pD({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],sY);
_.d(sY,"ytd-topic-channel-details-renderer",function(){if(RyB!==void 0)return RyB;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return RyB=Y},{mode:1});var wob;var c_=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableGridStateAware=!1;return Y};
_.m(c_,_.Z);c_.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]]"}}}}}};
c_.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
c_.prototype.updateCssVars=function(){_.cm(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Jy("rich_grid_max_item_width",500))+16)-16+"px"})};
c_.prototype.updateCssVars=c_.prototype.updateCssVars;c_.prototype.activeChanged=c_.prototype.activeChanged;_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],c_.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],c_.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],c_.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Array)],c_.prototype,"tabs",void 0);_.S([_.R(),_.V("design:type",Boolean)],c_.prototype,"active",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],c_.prototype,"disableGridStateAware",void 0);
_.S([_.R({selector:_.nU}),_.V("design:type",Number)],c_.prototype,"richGridItemsPerRow",void 0);_.S([_.R({selector:_.kG}),_.V("design:type",Boolean)],c_.prototype,"richGridMiniMode",void 0);_.S([_.Ox("ytd-carousel-item-renderer"),_.V("design:type",Object)],c_.prototype,"carousel",void 0);_.S([_.GO("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],c_.prototype,"activeChanged",null);
_.S([_.GO("richGridItemsPerRow","richGridMiniMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],c_.prototype,"updateCssVars",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],c_);
_.d(c_,"ytd-carousel-header-renderer",function(){if(wob!==void 0)return wob;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return wob=Y},{mode:1});var Zsb;var D_w=_.hV(["https://www.google-analytics.com/analytics.js"]),UY=function(){var Y=_.Z.apply(this,arguments)||this;Y.scriptAnalyticsAdded=!1;return Y};
_.m(UY,_.Z);UY.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var Y,G=(Y=this.data)==null?void 0:Y.tagManagerId;G&&(_.KI(G,_.DE("GL")),Ihy(G))};
UY.prototype.sendGoogleAnalyticsPageview=function(Y){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var u=_.vs.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(u)};
var G=window.ga;G("set","page",window.location.pathname);G.l=+new Date;G("set","forceSSL",!0);G("create",Y,"'auto'");G("send","pageview")};
UY.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var Y=_.uI("SCRIPT");Y.name="ga-analytics";var G=_.fO(D_w);_.P8(Y,G);Y.async=!0;_.l0(this.hostElement).appendChild(Y)};
UY.prototype.dataChanged=UY.prototype.dataChanged;_.S([_.R(),_.V("design:type",Object)],UY.prototype,"data",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UY.prototype,"dataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],UY);
_.d(UY,"ytd-channel-metadata-renderer",function(){if(Zsb!==void 0)return Zsb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Zsb=Y},{mode:1});var hyB;var d_j;var bsx=function(){return _.Z.apply(this,arguments)||this};
_.m(bsx,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],bsx.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],bsx.prototype,"data",void 0);_.S([_.pD({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],bsx);
_.d(bsx,"ytd-sub-feed-option-renderer",function(){if(d_j!==void 0)return d_j;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return d_j=Y},{mode:1});var SXw;var v_=function(){return _.Z.apply(this,arguments)||this};
_.m(v_,_.Z);v_.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],v_.prototype,"ytRendererStamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],v_.prototype,"data",void 0);_.S([_.pD({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],v_);
_.d(v_,"ytd-sub-feed-selector-renderer",function(){if(SXw!==void 0)return SXw;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return SXw=Y},{mode:1});var JJ=function(){return _.Z.apply(this,arguments)||this};
_.m(JJ,_.Z);
JJ.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}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],JJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],JJ.prototype,"data",void 0);_.S([_.pD({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],JJ);
_.d(JJ,"ytd-browse-feed-actions-renderer",function(){if(hyB!==void 0)return hyB;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return hyB=Y},{mode:1});var N3o;var jcB;var YW=function(){return _.Z.apply(this,arguments)||this};
_.m(YW,_.Z);YW.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],YW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],YW.prototype,"data",void 0);_.S([_.pD({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],YW);
_.d(YW,"ytd-mini-channel-renderer",function(){if(jcB!==void 0)return jcB;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return jcB=Y},{mode:1});var Vjx;var G6=function(){return _.Z.apply(this,arguments)||this};
_.m(G6,_.Z);G6.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],G6.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],G6.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],G6);
_.d(G6,"ytd-vertical-channel-section-renderer",function(){if(Vjx!==void 0)return Vjx;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Vjx=Y},{mode:1});var uW=function(){return _.Z.apply(this,arguments)||this};
_.m(uW,_.Z);uW.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],uW.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],uW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],uW.prototype,"data",void 0);_.S([_.pD({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],uW);
_.d(uW,"ytd-browse-secondary-contents-renderer",function(){if(N3o!==void 0)return N3o;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
return N3o=Y},{mode:1});var lzx;var O1=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};Y.notActive=!1;Y.isConstrainedList=!1;Y.marginSettings=0;return Y};
_.m(O1,_.Z);_.H=O1.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]]",marginSettings:"[[marginSettings]]"},matcher:function(Y){var G;return(Y==null?void 0:(G=Y.webComponentHint)==null?void 0:G.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(Y,G){var u="data.tabs.#"+G+".";Y.tabs[G].tabRenderer?u+="tabRenderer.":Y.tabs[G].expandableTabRenderer&&(u+="expandableTabRenderer.");return u+"content.sectionListRenderer"};
_.H.computeDisplayedContent=function(Y){this.unlinkPaths("content");if(Y&&Y.tabs)for(var G=Y.tabs.length,u=0;u<G;u++){var O=Y.tabs[u].tabRenderer||Y.tabs[u].expandableTabRenderer;if(O.selected&&O.content)return this.linkPaths("content",this.getPath(Y,u)),O.content}return null};
_.H.computeHasSecondaryColumnData=function(Y){return!!Y&&!!Y.secondaryContents};
_.H.onRetrieveLocation=function(Y,G){G.locationRetrieved(G.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);Y.stopPropagation()};
_.H.onYtServiceRequestSent=function(Y,G){_.F("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(G)};
_.H.onYtServiceRequestCompleted=function(Y,G){_.F("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(G)};
_.H.onReplaceFeedContentAction=function(Y){if(!_.F("replace_feed_content_action_killswitch")&&!this.notActive){var G;(Y=(G=_.z(Y,cZy))==null?void 0:G.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(Y)}};
_.H.handleServiceRequestActions=function(Y){if(Y=Y.actions){Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next()){G=G.value;var u=void 0;((u=_.z(G,cZy))==null?0:u.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.z(G,cZy).items)}}};
O1.prototype.onYtServiceRequestCompleted=O1.prototype.onYtServiceRequestCompleted;O1.prototype.onYtServiceRequestSent=O1.prototype.onYtServiceRequestSent;O1.prototype.onRetrieveLocation=O1.prototype.onRetrieveLocation;_.S([_.x(_.f8),_.V("design:type",Object)],O1.prototype,"ytdGridStateAwareBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],O1.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],O1.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],O1.prototype,"data",void 0);_.S([_.R({computed:"computeDisplayedContent(data)"}),_.V("design:type",Object)],O1.prototype,"content",void 0);
_.S([_.R({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],O1.prototype,"hasSecondaryColumnData",void 0);_.S([_.R({value:function(){return window.outerHeight>1024?3:2}}),
_.V("design:type",Number)],O1.prototype,"initialCount",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],O1.prototype,"pageSubtype",void 0);_.S([_.Ox("ytd-section-list-renderer"),_.V("design:type",Object)],O1.prototype,"listRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],O1.prototype,"notActive",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],O1.prototype,"isConstrainedList",void 0);
_.S([_.R(),_.V("design:type",String)],O1.prototype,"responsiveSizing",void 0);_.S([_.R(),_.V("design:type",Number)],O1.prototype,"marginSettings",void 0);_.S([_.Yo("yt-retrieve-location"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],O1.prototype,"onRetrieveLocation",null);
_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],O1.prototype,"onYtServiceRequestSent",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],O1.prototype,"onYtServiceRequestCompleted",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],O1);
_.d(O1,"ytd-two-column-browse-results-renderer",function(){if(lzx!==void 0)return lzx;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return lzx=Y},{mode:2});var B3N;var $_j;var Qu=function(){var Y=_.Z.apply(this,arguments)||this;Y.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"]);Y.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"]);Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return Y};
_.m(Qu,_.Z);_.H=Qu.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(Y){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y)};
_.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(Y){return Y};
_.H.observerElementsPerRow=function(){this.elementsPerRow&&_.cm(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.H.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.H.requestElementsPerRow=function(){_.$s(this.hostElement,"yt-request-elements-per-row")};
Qu.prototype.onIsVisibleChanged_=Qu.prototype.onIsVisibleChanged_;Qu.prototype.observerElementsPerRow=Qu.prototype.observerElementsPerRow;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Qu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Qu.prototype,"actionHandlerBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],Qu.prototype,"data",void 0);_.S([_.R({value:6,reflectToAttribute:!0}),_.V("design:type",Number)],Qu.prototype,"elementsPerRow",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Qu.prototype,"wrapButtons",void 0);_.S([_.R({value:_.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.V("design:type",Boolean)],Qu.prototype,"isMusic",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.V("design:type",String)],Qu.prototype,"alertStyle",void 0);_.S([_.R({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.V("design:type",Function)],Qu.prototype,"dismissBoundButtonTap_",void 0);_.S([_.R({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.V("design:type",Function)],Qu.prototype,"acceptBoundButtonTap_",void 0);_.S([_.GO("elementsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qu.prototype,"observerElementsPerRow",null);_.S([_.GO("data.isVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qu.prototype,"onIsVisibleChanged_",null);_.S([_.Ff({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Qu);
_.d(Qu,"yt-alert-with-actions-renderer",function(){if($_j===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;B3N===void 0&&(B3N=document.createElement("template"));var O=B3N;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);$_j=Y}Y=$_j;return Y},{mode:2});var qXy=_.D(function(Y){var G={};return _.T(_.eO,{text:Y.text,className:_.s3("ytPersonalGreetingViewModelHeadline",(G.ytPersonalGreetingViewModelHeadlineSmall=Y.isSmallHeadline,G))})},"zk");_.hR(_.D(function(Y){var G=_.zi(function(){var k;return(k=Y.data())==null?void 0:k.rendererContext},void 0,void 0,void 0,!0),u=function(){return Y.data().canvasPromoData},O=function(){var k;
return(k=Y.data().bannerHeight)!=null?k:56},Q=_.E(_.K$({throttleMs:100})),M=Q.next().value;
Q=Q.next().value;var t=_.E(_.K$({throttleMs:100})),K=t.next().value;t=t.next().value;var L=_.E(_.K$({throttleMs:100})),g=L.next().value;L=L.next().value;var P=function(){return K.width()-M.width()>1},I=function(){return O()===48};
return _.T("yt-personal-greeting-view-model",{el:_.iq(G,Q),"aria-hidden":P,class:_.s3(Y.className,"ytPersonalGreetingViewModelHost"),style:_.Yh({height:(0,_.xi)(function(){return P()?0:O()})})},_.T(_.X,{cond:function(){return Y.data().avatar&&!(g.width()+(Y.data().avatar?48:0)-M.width()>1)},
then:function(){return _.T(_.HE,{data:function(){return Y.data().avatar}},{decoratedAvatarViewModel:function(k){return _.T(_.mb,{data:k.data,
className:_.s3("ytPersonalGreetingViewModelAvatar")})}})}}),_.T("h1",null,_.T(qXy,{text:function(){var k;
return(u==null?void 0:(k=u())==null?void 0:k.headline)||(g.width()+(Y.data().avatar?48:0)-M.width()>1?Y.data().shorterGreeting:Y.data().greeting)},
isSmallHeadline:I})),_.T("span",{el:_.iq(L),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.T(qXy,{text:function(){return Y.data().greeting},
isSmallHeadline:I})),_.T("span",{el:_.iq(t),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.T(qXy,{text:function(){return Y.data().shorterGreeting},
isSmallHeadline:I})))},"yk"),"yt-personal-greeting-view-model",{props:{data:_.AC,
className:_.AC}});var Mq=function(){var Y=_.Z.apply(this,arguments)||this;Y.hidden=!1;Y.isConstrainedList=!1;Y.responsiveSizing="COMPACT";Y.attachedPlayers=_.F("kevlar_channel_trailer_multi_attach")?[]:void 0;Y.player=null;Y.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return Y};
_.m(Mq,_.Z);_.H=Mq.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 Y=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){Y.disposeMastheadAd()}]};
_.H.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new XBw(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 Y=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=Y)};
_.H.tabsChanged=function(){var Y=this,G,u;if(this.pageSubtype==="channels"||_.F("kevlar_tab_gestures_for_tabbed_header_data")&&((G=this.data)==null?0:(u=G.header)==null?0:u.carouselHeaderRenderer))this.tabGestures=new k89(this.contents,this.contents,this.hostElement,this.header,function(t){Y.ytdReduxBehavior.dispatch(t)});
var O,Q,M;G=(O=this.data)==null?void 0:(Q=O.contents)==null?void 0:(M=Q.twoColumnBrowseResultsRenderer)==null?void 0:M.tabs;this.tabGestures&&this.tabGestures.tabsChanged(G)};
_.H.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.H.engagementPanelsChanged=function(){var Y=_.sH().resolve(_.IH);if(Y){if(this.engagementPanels)for(var G=_.E(this.engagementPanels),u=G.next();!u.done;u=G.next()){var O=void 0;(u=(O=u.value.identifier)==null?void 0:O.tag)&&Y.panelMap.delete(u)}this.engagementPanels=[];var Q;G=_.E(((Q=this.data)==null?void 0:Q.panels)||[]);for(Q=G.next();!Q.done;Q=G.next()){Q=_.z(Q.value,J4b);var M=u=void 0,t=void 0,K=void 0;if(O=((u=Q)==null?void 0:u.targetId)||((M=Q)==null?void 0:M.panelIdentifier)||((t=Q)==null?
void 0:(K=t.identifier)==null?void 0:K.tag))M=u=void 0,(M=(u=Y).registerPanelContent)==null||M.call(u,O,{engagementPanelSectionListRenderer:Q}),this.engagementPanels.push(Q)}}};
_.H.onStampFinished=function(){var Y=this;_.sk(this,function(){if(Y.tabGestures){var G=Y.tabGestures;if(G.scrollPositionNeedsUpdate){var u=_.sH().resolve(_.q3(_.bv)),O;if((O=G.selectedTab)!=null&&O.title&&u&&(O=u.getCurrentPage())){if(G.scrollPositionForTabs.has(G.selectedTab.title)){var Q,M;u=(M=(Q=u.getCurrentPage())==null?void 0:Q.clientHeight)!=null?M:0;Q=G.scrollPositionForTabs.get(G.selectedTab.title);O.setScrollTop(Q);u>Q+100&&(G.scrollPositionNeedsUpdate=!1)}else O.setScrollTop(Math.min(G.lastVisitedTabScrollPosition!==
void 0?G.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,G.tabsStartAtInPx)),G.scrollPositionNeedsUpdate=!1;G.ytdReduxDispatch(YE9(!1))}}}})};
_.H.loadPage_=function(Y){this.initCsi();Y&&(this.data=Y);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.H.getTitle=function(Y){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",Y))return this.get("microformat.microformatDataRenderer.title",Y);if(this.get("header.feedTabbedHeaderRenderer.title",Y))return _.Ri(this.get("header.feedTabbedHeaderRenderer.title",Y));if(this.get("header.interactiveTabbedHeaderRenderer.title",Y))return this.get("header.interactiveTabbedHeaderRenderer.title",Y);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
Y))return _.Ri(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",Y));var G,u;return(Y==null?0:(G=Y.header)==null?0:(u=G.pageHeaderRenderer)==null?0:u.pageTitle)?Y.header.pageHeaderRenderer.pageTitle:""};
_.H.updateTitle=function(Y){_.$s(this.hostElement,"yt-update-title",this.getTitle(Y))};
_.H.initCsi=function(){yvy(this.pageSubtype||"browse",["ol","cpt"])};
_.H.getPlayer=function(){if(_.F("kevlar_channel_trailer_multi_attach")){for(var Y=_.E(this.attachedPlayers),G=Y.next();!G.done;G=Y.next())if(G=G.value,G.isConnected||_.hP(this.hostElement,G))return G;return null}return this.player};
_.H.getPlayerContainer=function(){return null};
_.H.onPlayerAttached=function(Y,G){_.F("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(G):this.player=G};
_.H.onPlayerDetached=function(Y,G){_.F("kevlar_channel_trailer_multi_attach")?(Y=this.attachedPlayers.indexOf(G),Y<0||this.attachedPlayers.splice(Y,1)):this.player=null};
_.H.getServiceTrackingParams=function(){var Y,G;return((Y=this.data)==null?void 0:(G=Y.responseContext)==null?void 0:G.serviceTrackingParams)||[]};
_.H.setMastheadAd=function(Y){Y&&Y.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=Y&&Y.mastheadAd};
_.H.dataChanged=function(){var Y=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||hU9();_.sk(this,function(){_.sK(Y.hostElement,"ytd-update-grid-state-action")})};
_.H.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.H.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var Y=this.data.alerts;return Y&&Y.find(function(G){return!!G.alertWithActionsRenderer})}};
_.H.computeGreetingData=function(){if(this.data&&this.data.alerts){var Y=this.data.alerts;return Y&&Y.find(function(G){return!!G.personalGreetingViewModel})}};
_.H.computeHasMemberHubProfileRenderer=function(Y){var G;return!!(Y==null?0:(G=Y.header)==null?0:G.memberHubProfileRenderer)};
_.H.handleAlertCommand=function(Y){this.get("alertCommand.alert.alertWithActionsRenderer",Y)&&(Y=_.z(Y,XdV),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",Y.alert))};
_.H.handleYtPlaylistDeletionRedirect=function(Y){Y=this.get("playlistDeletionRedirectCommand.redirectEndpoint",Y);_.$s(this.hostElement,"yt-navigate",{endpoint:Y})};
_.H.computeFluidWidth=function(Y,G,u){if(G==="mini_app"||u)return!0;var O,Q,M;Y=Y==null?void 0:(O=Y.contents)==null?void 0:(Q=O.twoColumnBrowseResultsRenderer)==null?void 0:(M=Q.tabs)==null?void 0:M.find(function(L){var g;return L==null?void 0:(g=L.tabRenderer)==null?void 0:g.selected});
if(!Y)return!1;var t,K;return!!((t=Y.tabRenderer)==null?0:(K=t.content)==null?0:K.richGridRenderer)&&!["channel","channels","playables"].includes(G)};
_.H.computeHeaderFluidWidth=function(Y){return Y==="hashtag-landing-page"};
_.H.computeHasSidebar=function(Y){var G;return!!(Y.sidebar||((G=Y.header)==null?0:G.playlistHeaderRenderer))};
_.H.computeHasPageHeaderSidebar=function(Y){var G,u;return!!((G=Y.header)==null?0:(u=G.pageHeaderRenderer)==null?0:u.enableSidebarView)};
_.H.computeUseUnifiedShowPageLayout=function(Y){if(!Y||this.pageSubtype!=="show"||!Y.sidebar||!Y.sidebar.playlistSidebarRenderer)return!1;Y=Y.sidebar.playlistSidebarRenderer;if(!Y.items)return!1;for(var G=0;G<Y.items.length;G++)if(_.z(Y.items[G],NDy)){var u=void 0;return((u=_.z(Y.items[G],NDy))==null?void 0:u.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.H.computeIsConstrainedList=function(Y){return Y==="subscriptions-channels"};
_.H.computeResponsiveSizing=function(Y){return Y==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Uk.Object.defineProperties(Mq.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,G;return((Y=this.data)==null?0:(G=Y.header)==null?0:G.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,G;if(!((Y=this.data)==null?0:(G=Y.sidebar)==null?0:G.playlistSidebarRenderer))return!1;var u;return(u=this.data)!=null&&u.header?!1:!0}}});
_.Uk.Object.defineProperties(Mq,{template:{configurable:!0,enumerable:!0,get:function(){if(n_9===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);n_9=Y}Y=n_9;return Y}}});
Mq.prototype.dataChanged=Mq.prototype.dataChanged;Mq.prototype.onPlayerDetached=Mq.prototype.onPlayerDetached;Mq.prototype.onPlayerAttached=Mq.prototype.onPlayerAttached;Mq.prototype.onStampFinished=Mq.prototype.onStampFinished;Mq.prototype.engagementPanelsChanged=Mq.prototype.engagementPanelsChanged;Mq.prototype.scrollAtTopChanged=Mq.prototype.scrollAtTopChanged;Mq.prototype.tabsChanged=Mq.prototype.tabsChanged;Mq.prototype.activeChanged=Mq.prototype.activeChanged;
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Mq.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.SZ),_.V("design:type",Object)],Mq.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Mq.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Mq.prototype,"ytdReduxBehavior",void 0);_.S([_.x(MB.YtPageBehavior),_.V("design:type",Object)],Mq.prototype,"ytPageBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Mq.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Mq.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Mq.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Mq.prototype,"hidden",void 0);
_.S([_.R(),_.V("design:type",Object)],Mq.prototype,"mastheadAdData",void 0);_.S([_.R({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.V("design:type",Object)],Mq.prototype,"alertBannerData",void 0);_.S([_.R({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.V("design:type",Object)],Mq.prototype,"greetingData",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],Mq.prototype,"pageSubtype",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.V("design:type",Boolean)],Mq.prototype,"hasMemberHubProfileRenderer",void 0);_.S([_.R({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Mq.prototype,"hasSidebar",void 0);_.S([_.R({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Mq.prototype,"hasPageHeaderSidebar",void 0);
_.S([_.R({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],Mq.prototype,"roundedContainer",void 0);_.S([_.R({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Mq.prototype,"useUnifiedShowPageLayout",void 0);_.S([_.R({computed:"computeIsConstrainedList(pageSubtype)"}),_.V("design:type",Object)],Mq.prototype,"isConstrainedList",void 0);
_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Mq.prototype,"usePlaylistHeaderRenderer",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Mq.prototype,"useOldPlaylistSidebarRenderer",null);_.S([_.R({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.V("design:type",Boolean)],Mq.prototype,"fluidWidth",void 0);_.S([_.R({selector:iXy}),_.V("design:type",Boolean)],Mq.prototype,"scrollAtTop",void 0);
_.S([_.R({selector:RIj}),_.V("design:type",Boolean)],Mq.prototype,"tabGesturesIsActive",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.V("design:type",Boolean)],Mq.prototype,"disableHeaderFluidWidth",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.V("design:type",String)],Mq.prototype,"responsiveSizing",void 0);
_.S([_.Ox("ytd-two-column-browse-results-renderer"),_.V("design:type",HTMLElement)],Mq.prototype,"contents",void 0);_.S([_.Ox("#header"),_.V("design:type",HTMLElement)],Mq.prototype,"header",void 0);_.S([_.Ox("ytd-refresh"),_.V("design:type",Object)],Mq.prototype,"refresh",void 0);_.S([_.GO("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Mq.prototype,"activeChanged",null);
_.S([_.GO("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Mq.prototype,"tabsChanged",null);_.S([_.GO("scrollAtTop"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Mq.prototype,"scrollAtTopChanged",null);_.S([_.R(),_.V("design:type",Object)],Mq.prototype,"engagementPanels",void 0);
_.S([_.GO("data.panels"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Mq.prototype,"engagementPanelsChanged",null);_.S([_.Yo("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Mq.prototype,"onStampFinished",null);_.S([_.Yo("yt-player-attached"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Element]),_.V("design:returntype")],Mq.prototype,"onPlayerAttached",null);
_.S([_.Yo("yt-player-detached"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Element]),_.V("design:returntype")],Mq.prototype,"onPlayerDetached",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Mq.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-browse"})],Mq);var sc9,cxj=function(){if(sc9!==void 0)return sc9;var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return sc9=Y};var Ht=function(){var Y=_.Z.apply(this,arguments)||this;Y.currentPage=void 0;Y.renderLoadingStateJobId=0;Y.updatePageDataJobId=0;Y.pageDisposeJobsets=new WeakMap;Y.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"};Y.shouldApplyLockupToWatchTransition=_.F("web_thumbnail_to_watch_transition");Y.shouldApplySlideTransition=_.Yg("web_page_transition_type")==="slide"||_.F("enable_plj_landing_page");Y.shouldApplyLearningJourneyTransition=_.F("enable_plj_landing_page");Y.TEST_ONLY=void 0;return Y};
_.m(Ht,_.Z);_.H=Ht.prototype;_.H.ready=function(){var Y=_.sH();Y.addProvider({provide:_.bv,useValue:this});Y.addProvider({provide:_.vOV,useValue:this})};
_.H.created=function(){this.pagePool=new Dqo;this.contextSwitcher=new KYN};
_.H.attached=function(){_.$s(this.hostElement,"attached");var Y=_.sH().resolve(_.q3(_.Hm));Y&&(this.contextSwitcher.JSC$20201_networkService_=Y);this.viewTransitionManager=_.sH().resolve(_.T7)};
_.H.getPageOffset=function(Y){return Y.getScrollTop()};
_.H.setPageOffset=function(Y,G){try{Y.setScrollTop(G)}catch(u){}};
_.H.setPageOffsetForNavigation=function(Y,G){_.$s(this.hostElement,"yt-navigate-set-page-offset",{page:Y,offset:G===void 0?0:G})};
_.H.pauseActiveContext=function(){var Y=this.contextSwitcher;Y.activeContext_&&Y.activeContext_.pause()};
_.H.attachPage=function(Y){var G,u=!_.F("pc_is_attached_ks")&&(Y==null?void 0:(G=Y.polymerController)==null?void 0:G.isAttached);if(!Y.isAttached&&!u)try{_.l0(this.hostElement).appendChild(Y)}catch(Q){var O;_.R0(new _.I2("Error attaching page element for component",{origin:(O=this.currentPage)==null?void 0:O.is,component:Y.is}))}};
_.H.setActivePage=function(Y,G){var u=this,O=!1,Q=function(){var M=u.isOnWatch(),t=u.currentPage;if(Y)if(Y!==u.currentPage){t&&(t.hidden=!0,t.active=!1,t.removeAttribute("role"));u.currentPage=Y;var K,L=G!=null?G:_.JH((K=u.data)==null?void 0:K.endpoint);t&&_.$s(u.hostElement,"yt-page-type-changed",{oldPageType:t.is,newPageType:Y.is,newPageSubtype:L});_.DS().dispatch(_.V6({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:Y.is}));_.DS().dispatch(_.V6({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:L||""}));
Y.hidden=!1;u.attachPage(Y);Y.active=!0;Y.setAttribute("role","main");t&&u.setPageOffsetForNavigation(Y,0);_.F("kevlar_remove_page_dom_on_switch")&&!M&&t&&_.l0(u.hostElement).removeChild(t)}else O=!0;else u.handleMissingDestinationPage(t)};
this.shouldRunBrowseTransition(this.currentPage,Y)?IcB(this.viewTransitionManager,Q):this.shouldRunLearningJourneyTransition(this.currentPage,Y)?F3x(this.viewTransitionManager,Q):Q();return O};
_.H.handleMissingDestinationPage=function(Y){if(this.isColdLoadForUnknownPage(Y))_.R0(new _.I2("Cold load for unknown page"));else{var G;Y=new _.I2("Unable to set active page",Y?Y.is:"unknown origin",(G=this.data)==null?void 0:G.endpoint);_.o0(Y)}};
_.H.isColdLoadForUnknownPage=function(Y){return!Y&&Se(this.data)==="unknown"};
_.H.shouldRunBrowseTransition=function(Y,G){return this.shouldApplySlideTransition&&(Y==null?void 0:Y.is)==="ytd-browse"&&(G==null?void 0:G.is)==="ytd-browse"&&Y!==G};
_.H.shouldRunLearningJourneyTransition=function(Y,G){return this.shouldApplyLearningJourneyTransition&&(Y==null?void 0:Y.is)==="ytd-browse"&&((G==null?void 0:G.is)==="ytd-watch-learning-journey"||(G==null?void 0:G.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.H.shouldRunWatchNextLoadedTransition=function(Y,G){return this.viewTransitionManager&&Y.is==="ytd-watch-flexy"&&G};
_.H.updatePageData=function(Y){var G=this,u=this.data;this.updatePageDataJobId&&_.AN.cancelJob(this.updatePageDataJobId);this.data=Y;return new _.a0(function(O){var Q=function(){Y.filler?G.performDataUpdate(Y,u):aIb(function(){G.performDataUpdate(Y,u)});
var M=_.AM();_.or(M,"cr")||M.processSignal("cr");O()};
Y&&Y.page==="watch"?G.updatePageDataJobId=_.Ti(_.AN,Q):Q()})};
_.H.isDownloadsPage=function(Y){var G,u;return(Y==null?void 0:(G=Y.endpoint)==null?void 0:(u=G.browseEndpoint)==null?void 0:u.browseId)==="FEdownloads"};
_.H.setPlayerSyncInterval=function(Y){var G;return _.a(function(u){if(u.nextAddress==1)return u.yield(_.sH().resolve(_.$h),2);G=u.yieldResult;G.setUpPositionSyncInterval(Y);_.Sd(u)})};
_.H.performDataUpdate=function(Y,G){_.F("kevlar_early_popup_close")||_.qZ(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var u=!Y.filler;u&&(_.pQ("lps"),_.F("config_age_report_killswitch")||F79());var O=Se(Y),Q,M=!1;if(_.F("kevlar_remove_page_dom_on_switch")){var t=G&&Se(G);O===t&&(Q=this.getCurrentPage())}Q||(Q=NB(this.pagePool,O));u&&XyS(this.pagePool.elementPoolPopulator,O);u&&!this.renderLoadingStateJobId&&(M=this.setActivePage(Q));if(Q){t=O==="watch";var K=
O==="shorts",L=O==="learning_journey_watch";_.F("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(Q);if(t||K||L)Q.playerData=Y.playerResponse;if(K){Y.reelWatchSequenceResponse?Q.reelWatchSequenceResponse=Y.reelWatchSequenceResponse:Q.cachedReelWatchSequenceResponse&&!Q.reelWatchSequenceResponse&&(Q.reelWatchSequenceResponse=Q.cachedReelWatchSequenceResponse);Y.reelWatchSequenceResponse&&(G==null?void 0:G.page)!=="shorts"&&(Q.cachedReelWatchSequenceResponse=Y.reelWatchSequenceResponse);
Q.currentEndpoint=Y.endpoint;var g;Q.isPreviousPageShorts=!!(G==null?0:(g=G.endpoint)==null?0:g.reelWatchEndpoint)}g=this.isDownloadsPage(Y);var P=this.isDownloadsPage(G);g&&!P?this.setPlayerSyncInterval(6E5):!g&&P&&this.setPlayerSyncInterval();_.F("block_all_player_prefetch_requests")||this.preparePrefetchRequest(Y,Q,u,t,K,L);p0x(_.sH().resolve(_.yo),G,Y);if(_.F("enable_ai_companion")){var I;(I=_.sH().resolve(_.q3(_.Fv)))==null||_.cTV(I,this.getPersistentPanelSurface(O))}_.Sx(_.sH().resolve(_.tf));
_.F("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(Q);u?(u=typeof Q.loadPage,u==="function"?(Q.pageContext=aON(this.contextSwitcher,Q,Q.data!==Y.response),u=function(){Q.loadPage(Y.response)},this.shouldApplySlideTransition&&Q.is==="ytd-browse"&&M&&(O==="learning"||this.isDifferentBrowseId(Y==null?void 0:Y.endpoint,G==null?void 0:G.endpoint))?IcB(this.viewTransitionManager,u):this.shouldRunWatchNextLoadedTransition(Q,M)?npV(this.viewTransitionManager,u):u()):_.ij(new _.I2("b/38014653 ",
[O,
Q.is,Q.nodeName,u,Q.isAttached,G&&Se(G),this.hostElement.children.length])),_.pQ("pdl")):(Q.hidden=!0,Y.response.filler=!0,Q.data=Y.response,this.attachPage(Q));_.$s(this.hostElement,"yt-page-data-updated",{pageType:O})}_.WY(_.AN,function(){_.F("logging_avoid_blocking_during_navigation")&&_.u9T().transition("none");var k=xVB(),n=Q;if(Y){var p=U5b(Y),W=vhx(Y),C;a:{if(Y.playerResponse){var e=Y.playerResponse,w;if((C=e.auxiliaryUi)==null?0:(w=C.messageRenderers)==null?0:w.upsellDialogRenderer){C=e.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(Y.response&&(C=Y.response,(e=C.overlay)==null?0:e.upsellDialogRenderer)){C=C.overlay.upsellDialogRenderer;break a}C=void 0}var B;var N;w=(B=Y.playerResponse)==null?void 0:(N=B.auxiliaryUi)==null?void 0:N.messageRenderers;B=(w==null?void 0:w.enforcementMessageViewModel)||(w==null?void 0:w.bkaEnforcementMessageViewModel);B=(B==null?void 0:B.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?B:void 0;var h;a:{if(Y.response&&(N=Y.response,(h=N.overlay)==null?0:h.commandWrapperPromoRenderer)){h=
N.overlay.commandWrapperPromoRenderer;break a}h=void 0}rb9(k,p,W,C,B,h,n)}})};
_.H.preparePrefetchRequest=function(Y,G,u,O,Q,M){var t,K,L,g,P,I,k,n,p,W,C,e,w,B,N;return _.a(function(h){if(h.nextAddress==1)return!u||!(O||Q||M)||_.F("kevlar_disable_background_prefetch")&&_.bi(gTo)()===0?h.return():(t=_.Sr(G))?h.yield(t.getPlayerPromise(),2):h.return();K=h.yieldResult;L=_.sH().resolve(_.q3(_.Hm));if(!L)return h.return();if(Q)return g=_.$2(_.JM),y7B(g,(P=Y.endpoint)==null?void 0:P.reelWatchEndpoint,G.reelWatchSequenceResponse,K,L),h.return();n=(I=Y.response)==null?void 0:(k=I.responseContext)==
null?void 0:k.webResponseContextExtensionData;if(!n)return h.return();w=(p=Y.response)==null?void 0:(W=p.contents)==null?void 0:(C=W.twoColumnWatchNextResults)==null?void 0:(e=C.autoplay)==null?void 0:e.autoplay;B=_.sH().resolve(_.yq);N=_.$2(_.JM);etV(N,n,K,L,B,w);_.Sd(h)})};
_.H.movePlayerToWatch=function(Y){var G=this,u,O;return _.a(function(Q){u=NB(G.pagePool,"watch");O=u.getPlayerContainer();Y.appendTo(O);_.Sd(Q)})};
_.H.movePlayerToShorts=function(Y){var G=this,u,O,Q;return _.a(function(M){u=NB(G.pagePool,"shorts");O=u.getPlayerContainer();(Q=Y)==null||Q.appendTo(O,void 0,!0);_.Sd(M)})};
_.H.getPlayerFromWatch=function(){var Y=NB(this.pagePool,"watch");return _.Sr(Y)};
_.H.getPlayerFromShorts=function(){var Y=NB(this.pagePool,"shorts");return _.Sr(Y)};
_.H.startLoadingWatch=function(){var Y=this,G=NB(this.pagePool,"watch");this.renderLoadingStateJobId?(_.AN.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.F("web_watch_transition_enable_start_loading_watch_callsite")?klx(this.viewTransitionManager,function(){Y.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(G,"watch");
if(_.F("enable_ai_companion")){var u;(u=_.sH().resolve(_.q3(_.Fv)))==null||_.cTV(u,this.getPersistentPanelSurface("watch"))}};
_.H.startLoadingShorts=function(){var Y=NB(this.pagePool,"shorts");this.setActivePage(Y,"shorts")};
_.H.startLoadingLearningJourney=function(){var Y=NB(this.pagePool,"learning_journey_watch");this.setActivePage(Y,"learning_journey_watch")};
_.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 Y;return((Y=this.currentPage)==null?void 0:Y.is)==="ytd-shorts"};
_.H.isWatchPage=function(Y){return!!Y&&(Y.is==="ytd-watch-flexy"||Y.is==="ytd-watch-fixie"||Y.is==="ytd-watch-grid")};
_.H.preparePage=function(Y,G){var u=this,O=function(){var M=u.pagePool.preparePage(Y,u.currentPage,G);M&&u.attachPage(M)},Q=function(M){_.wN(M,G);
_.R0(M)};
try{O()}catch(M){Q(M)}};
_.H.lazyPrepareCriticalPages=function(Y,G){Y=_.JH(G)||Y;this.maybePrepareWatchPage(Y)};
_.H.maybePrepareWatchPage=function(Y){Y==="watch"||Y==="learning_journey_watch"&&_.F("web_watch_learning_journey_disable_lazy_pages")||_.WY(_.AN,this.preparePage.bind(this,"watch"))};
_.H.renderPageLoadingState=function(Y,G){this.preparePage(Y,G);var u=NB(this.pagePool,Y);u.loadingData&&(u.loadingData.endpoint=G);u.loading=!0;this.setActivePage(u,Y);Y!=="watch"&&Y!=="learning_journey_watch"||_.$s(this.hostElement,"yt-guide-close")};
_.H.prepareForNavigation=function(Y,G){var u=this;if(this.currentPage&&this.data){var O=_.JH(G)||Y;this.destinationPageType=O;Se(this.data)==O&&_.$s(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((Y==="watch"||Y==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.AN.cancelJob(this.renderLoadingStateJobId);_.sH().resolve(_.yo).deactivate(G);_.EA(_.AN,function(){var M=u.viewTransitionManager,t=u.currentPage;
if(M.isLockupToWatchTransitionEnabled&&M.isLockupThumbnailRegistrationEnabled&&t)if(M.registeredLockupThumbnail)M.lockupThumbnailRegisteredFromWatchEndpoint&&_.R0(new _.I2("Lockup thumbnail already registered from watch endpoint."));else{a:{var K=_.z(G,_.ic);if(K==null?0:K.videoId){var L="yt-lockup-view-model ."+_.kfI(K.videoId)+" yt-thumbnail-view-model";t=t.querySelectorAll(L);if(t.length===1){K=t[0];break a}t.length>1?_.R0(new _.I2("Multiple LockupViewModel thumbnails found for videoId: "+K.videoId+
". Selector: "+L)):_.F("web_thumbnail_to_watch_transition_debug")&&_.R0(new _.I2("No LockupViewModel thumbnail found for videoId: "+K.videoId+". Selector: "+L))}K=void 0}K&&(M.registeredLockupThumbnail=K,M.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.DCg(M,K))}});
var Q=this.data;this.renderLoadingStateJobId=_.EA(_.AN,function(){klx(u.viewTransitionManager,function(){if(u.data!=Q){var M=NB(u.pagePool,Y);u.setActivePage(M)}else u.renderPageLoadingState(Y,G);u.renderLoadingStateJobId=0})},150)}};
_.H.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var Y=new _.hC(1);this.currentPage.pageDisposeJobs.forEach(function(G){_.d8(Y,G)});
this.pageDisposeJobsets.set(this.currentPage,Y)}};
_.H.flushPageDisposeJobset=function(Y){var G=this.pageDisposeJobsets.get(Y);G&&(G.flushJobs(),this.pageDisposeJobsets.delete(Y))};
_.H.onYtStopOldPlayer=function(Y,G){G=G===void 0?!1:G;var u,O=_.O5("kevlar_new_stop_old_player_logic_pages");if(_.F("kevlar_check_current_page_on_stop_old_player")&&(O.length===0||this.currentPage&&O.includes(this.currentPage.is)))if(this.data&&(u=Se(this.data)),Se(Y)===u&&this.currentPage&&Se(this.currentPage.data)!==u)var Q=_.Sr(this.currentPage);else u=Se(this.data),Q=NB(this.pagePool,u),Q=_.Sr(Q);else this.data&&(u=Se(this.data),Q=NB(this.pagePool,u),Q=_.Sr(Q));if(Q){O=Se(Y);var M=NB(this.pagePool,
O);M=_.Sr(M);if(Q==M)G&&!_.F("kevlar_disable_preemptive_player_reset")&&Q.resetForNewPlayback();else if(G=u==="watch"&&O!=="watch",!G||O==="shorts"||_.$XV()&&!zT9(this.data,Y))Y=_.sH().resolve(_.yo),G&&Y.isMiniplayerActive()&&Y.pipController.getWindow()||Q.stop()}};
_.H.isDifferentBrowseId=function(Y,G){Y=_.z(Y,_.Y3);G=_.z(G,_.Y3);return(Y==null?void 0:Y.browseId)!==(G==null?void 0:G.browseId)};
_.H.getPersistentPanelSurface=function(Y){switch(Y){case "watch":return"WATCH";default:return"APP"}};
_.Uk.Object.defineProperties(Ht,{template:{configurable:!0,enumerable:!0,get:function(){return cxj()}}});
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Ht.prototype,"ytActionHandlerBehavior",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-page-manager"})],Ht);var U_N;_.F("force_all_poly_si_batches")||document.documentElement.hasAttribute("use-signals")?U_N=!0:U_N=_.F("kevlar_poly_si_batch_j081_holdback_enabled")&&_.F("kevlar_polysi_holdback")?!1:_.F("kevlar_poly_si_batch_j081");_.d(Ht,"ytd-page-manager",function(){return cxj()},{mode:U_N?1:2});var vLy;var Jxx;var E1=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasChipBar=!1;return Y};
_.m(E1,_.Z);E1.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}}};
E1.prototype.computeHasChipBar=function(Y){return!(Y==null||!Y.chipBar)};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],E1.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],E1.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.V("design:type",Object)],E1.prototype,"hasChipBar",void 0);_.S([_.pD({is:"ytd-search-header-renderer",disableElementRegistration:!0})],E1);
_.d(E1,"ytd-search-header-renderer",function(){if(Jxx!==void 0)return Jxx;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Jxx=Y},{mode:1});var YZN;var tI=function(){return _.Z.apply(this,arguments)||this};
_.m(tI,_.Z);tI.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
tI.prototype.computeBlueBottomLink=function(Y){return Y};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],tI.prototype,"data",void 0);_.S([_.R({computed:"computeIcon_(data.bottomIcon)"}),_.V("design:type",String)],tI.prototype,"bottomIcon",void 0);
_.S([_.R({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.V("design:type",Boolean)],tI.prototype,"enableBlueBottomLink",void 0);_.S([_.pD({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],tI);
_.d(tI,"ytd-web-answer-renderer",function(){if(YZN!==void 0)return YZN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return YZN=Y},{mode:2});var G4y;var KP=function(){return _.Z.apply(this,arguments)||this};
_.m(KP,_.Z);KP.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],KP.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-page-continuation"})],KP);
_.d(KP,"ytd-page-continuation",function(){if(G4y!==void 0)return G4y;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return G4y=Y},{mode:1});var uco;var Onx;var QC9;var MWw=function(){return _.Z.apply(this,arguments)||this};
_.m(MWw,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],MWw.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],MWw.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],MWw);
_.d(MWw,"ytd-watch-card-one-vs-one-event",function(){if(QC9!==void 0)return QC9;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return QC9=Y},{mode:1});var Hnb=function(){return _.Z.apply(this,arguments)||this};
_.m(Hnb,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Hnb.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Hnb.prototype,"data",void 0);_.S([_.pD({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],Hnb);
_.d(Hnb,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(Onx!==void 0)return Onx;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Onx=Y},{mode:1});var EXg;var tWw=function(){return _.Z.apply(this,arguments)||this};
_.m(tWw,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],tWw.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],tWw.prototype,"data",void 0);_.S([_.pD({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],tWw);
_.d(tWw,"ytd-banner-and-box-hero-image-renderer",function(){if(EXg!==void 0)return EXg;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return EXg=Y},{mode:1});var KLb;var aa=function(){var Y=_.Z.apply(this,arguments)||this;Y.modern=_.F("web_modern_buttons");return Y};
_.m(aa,_.Z);aa.prototype.computeIcon=function(){var Y,G,u=(Y=this.data)==null?void 0:(G=Y.icon)==null?void 0:G.iconType;if(u)return _.Ux(u)};
aa.prototype.computeButtonShape=function(){var Y;return{buttonText:_.Ri((Y=this.data)==null?void 0:Y.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Uk.Object.defineProperties(aa.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"}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],aa.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],aa.prototype,"modern",void 0);_.S([_.R({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.f("data.style"),_.V("design:type",Object),_.V("design:paramtypes",[])],aa.prototype,"buttonColor",null);
_.S([_.pD({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],aa);
_.d(aa,"ytd-call-to-action-button-renderer",function(){if(KLb!==void 0)return KLb;var Y=document.createElement("template");_.r(Y,'\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)]]" hidden$="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return KLb=Y},{mode:1});var aWb;var T6=function(){return _.Z.apply(this,arguments)||this};
_.m(T6,_.Z);T6.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.l0(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.dH(this.data.leftThumbnail.thumbnails,216)+")")};
T6.prototype.onLeftThumbnailChanged=T6.prototype.onLeftThumbnailChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],T6.prototype,"data",void 0);_.S([_.GO("data.leftThumbnail"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T6.prototype,"onLeftThumbnailChanged",null);_.S([_.pD({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],T6);
_.d(T6,"ytd-collage-hero-image-renderer",function(){if(aWb!==void 0)return aWb;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return aWb=Y},{mode:1});var TiV;var LP=function(){return _.Z.apply(this,arguments)||this};
_.m(LP,_.Z);LP.prototype.computeStyle=function(Y){return Y};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],LP.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],LP.prototype,"componentStyle",void 0);_.S([_.pD({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],LP);
_.d(LP,"ytd-single-hero-image-renderer",function(){if(TiV!==void 0)return TiV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return TiV=Y},{mode:1});var LLV;var gZ=function(){return _.Z.apply(this,arguments)||this};
_.m(gZ,_.Z);_.H=gZ.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:_.F("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.H.computeSubtitle=function(Y){if(this.data){var G;if(this.data.upcomingEventData){Y=_.Ri(Y.subtitle);var u=Number(this.data.upcomingEventData.startTime);isNaN(u)||(G=_.i8(_.gw(Y,u)))}else G=Y.subtitle;return G}};
_.H.onHeroTap=function(Y){Y.preventDefault();var G=this.data&&this.data.navigationEndpoint;!G||!_.hf(_.wG(Y),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.hf(_.wG(Y),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.F("kevlar_watchcard_hero_video_renderer_killswitch")?_.$s(this.hostElement,"yt-navigate",{navigationEndpoint:G}):this.ytComponentBehavior.resolveCommand(G))};
_.H.computeHeroTabIndex=function(Y){return Y&&Y.simpleText?-1:0};
_.H.computeHeroRole=function(Y){return Y&&Y.simpleText?"":"link"};
_.H.computeIsReminderButtonPresent=function(Y){return!(!Y||!Y.reminderButton)};
_.H.computeHideBottomItems=function(Y){return!(this.computeIsReminderButtonPresent(Y)||Y.subtitle)};
_.H.dataChanged=function(){var Y=this.get("data.buttons.buttonRenderer.serviceEndpoint"),G;((G=_.z(Y==null?void 0:Y.commandMetadata,_.Kk))==null?0:G.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(Y)};
gZ.prototype.dataChanged=gZ.prototype.dataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],gZ.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],gZ.prototype,"data",void 0);
_.S([_.R({computed:"computeSubtitle(data)"}),_.V("design:type",String)],gZ.prototype,"subtitle",void 0);_.S([_.R({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],gZ.prototype,"isReminderButtonPresent",void 0);_.S([_.R({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],gZ.prototype,"hideBottomItems",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gZ.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],gZ);
_.d(gZ,"ytd-watch-card-hero-video-renderer",function(){if(LLV!==void 0)return LLV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return LLV=Y},{mode:1});var gXS;var Xl=function(){return _.Z.apply(this,arguments)||this};
_.m(Xl,_.Z);_.H=Xl.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(Y){return Y?[Y]:[]};
_.H.computeHeaderStyle=function(Y){return Y?Y.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.H.computeAvatarAriaLabel=function(Y){if(Y){var G,u,O,Q;return(Q=(G=Y.avatar)==null?void 0:(u=G.accessibility)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label)!=null?Q:_.Ri(Y==null?void 0:Y.title)}};
_.H.computeAvatarHeight=function(Y){return Y==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.H.computeBadgeRowClass=function(Y){return(Y==null?0:Y[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Xl.prototype,"data",void 0);_.S([_.R({computed:"computeTitleBadges(data.titleBadge)"}),_.V("design:type",Array)],Xl.prototype,"titleBadges",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.V("design:type",String)],Xl.prototype,"headerStyle",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.V("design:type",String)],Xl.prototype,"badgeRowClass",void 0);_.S([_.pD({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Xl);
_.d(Xl,"ytd-watch-card-rich-header-renderer",function(){if(gXS!==void 0)return gXS;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return gXS=Y},{mode:1});var XNB;var P4j;var Pt=function(){return _.Z.apply(this,arguments)||this};
_.m(Pt,_.Z);Pt.prototype.onMetadataTap=function(Y){var G=this.data&&this.data.navigationEndpoint;G&&!_.hf(_.wG(Y),this.hostElement,["A".toString()])&&_.$s(this.hostElement,"yt-navigate",{endpoint:G})};
_.Uk.Object.defineProperties(Pt.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 Y;if(this.data.upcomingEventData){var G=_.Ri(this.data.subtitle),u=Number(this.data.upcomingEventData.startTime);isNaN(u)||(Y=_.i8(_.gw(G,u)))}else Y=this.data.subtitle;return Y}}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Pt.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data.style"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Pt.prototype,"isCondensed",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Pt.prototype,"subtitle",null);
_.S([_.pD({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Pt);
_.d(Pt,"ytd-watch-card-compact-video-renderer",function(){if(P4j!==void 0)return P4j;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return P4j=Y},{mode:1});var IWN;var k4V=function(){return _.Z.apply(this,arguments)||this};
_.m(k4V,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],k4V.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],k4V.prototype,"data",void 0);_.S([_.pD({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],k4V);
_.d(k4V,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(IWN!==void 0)return IWN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return IWN=Y},{mode:1});var Ia=function(){return _.Z.apply(this,arguments)||this};
_.m(Ia,_.Z);Ia.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}}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ia.prototype,"ytRendererStamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ia.prototype,"data",void 0);_.S([_.pD({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Ia);
_.d(Ia,"ytd-vertical-watch-card-list-renderer",function(){if(XNB!==void 0)return XNB;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return XNB=Y},{mode:1});var nXo;var kW=function(){var Y=_.Z.apply(this,arguments)||this;Y.ariaExpanded="false";return Y};
_.m(kW,_.Z);_.H=kW.prototype;_.H.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.H.dataChanged=function(){var Y;this.currentSeasonIndex=((Y=this.data)==null?void 0:Y.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.H.computeEpisodesInfo=function(Y,G,u){if(Y!==void 0&&G.length===Y.length)return Y[u]};
_.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(Y){return this.ytRendererBehavior.getSimpleString(Y).toUpperCase()};
_.H.updateCurrentSeasonIndexFromBinding=function(Y){this.currentSeasonIndex=Y.detail.value};
kW.prototype.onIronOverlayClosed=kW.prototype.onIronOverlayClosed;kW.prototype.currentSeasonIndexChanged=kW.prototype.currentSeasonIndexChanged;kW.prototype.dataChanged=kW.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],kW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],kW.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",String)],kW.prototype,"label",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],kW.prototype,"currentSeasonIndex",void 0);_.S([_.R({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.V("design:type",Object)],kW.prototype,"episodesInfo",void 0);_.S([_.R({value:"false"}),_.V("design:type",Object)],kW.prototype,"ariaExpanded",void 0);_.S([_.Ox("#lists"),_.V("design:type",Object)],kW.prototype,"lists",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kW.prototype,"dataChanged",null);_.S([_.Ex("currentSeasonIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kW.prototype,"currentSeasonIndexChanged",null);_.S([_.Yo("iron-overlay-closed"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],kW.prototype,"onIronOverlayClosed",null);
_.S([_.pD({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],kW);
_.d(kW,"ytd-watch-card-section-dropdown-renderer",function(){if(nXo!==void 0)return nXo;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return nXo=Y},{mode:1});var FLS;var nP=function(){var Y=_.Z.apply(this,arguments)||this;Y.isSearch=!1;return Y};
_.m(nP,_.Z);nP.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}}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],nP.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],nP.prototype,"isSearch",void 0);_.S([_.pD({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],nP);
_.d(nP,"ytd-watch-card-section-sequence-renderer",function(){if(FLS!==void 0)return FLS;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
return FLS=Y},{mode:1});var pNx=_.D(function(Y){return _.T("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.T(_.HE,{data:function(){return Y.data().ctaButton}},{buttonViewModel:_.$Y}),_.T(_.eO,{text:function(){return Y.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Ak");
pNx.idomCompat=!0;_.hR(pNx,"ytd-button-banner-view-model",{props:{data:_.AC}});var Fl=function(){var Y=_.Z.apply(this,arguments)||this;Y.isSearch=!1;return Y};
_.m(Fl,_.Z);
Fl.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"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Fl.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],Fl.prototype,"rounded",void 0);_.S([_.R(),_.V("design:type",Object)],Fl.prototype,"isSearch",void 0);
_.S([_.pD({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Fl);
_.d(Fl,"ytd-universal-watch-card-renderer",function(){if(uco!==void 0)return uco;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return uco=Y},{mode:1});var zuN;_.hR(_.D(function(Y){var G=Y.data;var u;Y=!((u=_.sH().resolve(_.q3(_.Ee)))==null||!u());u={};return _.T("overview-message-view-model",{class:_.s3("ytwOverviewMessageViewModelHost",(u.ytwOverviewMessageViewModelDarkBackground=Y,u.ytwOverviewMessageViewModelLightBackground=!Y,u))},_.T(_.X,{cond:function(){return G().primaryImage},
then:function(O){return _.T(_.RD,{data:O,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.T(_.X,{cond:function(){return G().primaryText},
then:function(){return _.T("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.T(_.eO,{text:function(){return G().primaryText}}))}}),_.T(_.X,{cond:function(){return G().secondaryText},
then:function(){return _.T("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.T(_.eO,{text:function(){return G().secondaryText}}))}}))},"Bk"),"overview-message-view-model",{props:{data:_.AC}});_.hR(_.KEg,"ytd-overview-answer-view-model",{props:{data:_.AC}});var pP=function(){return _.Z.apply(this,arguments)||this};
_.m(pP,_.Z);pP.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"}}}};
pP.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.DD),_.V("design:type",Object)],pP.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],pP.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],pP.prototype,"isSearch",void 0);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],pP);
_.d(pP,"ytd-secondary-search-container-renderer",function(){if(zuN!==void 0)return zuN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
return zuN=Y},{mode:1});var mTo;var z6=function(){var Y=_.Z.apply(this,arguments)||this;Y.renderSecondarySearchContainer=!1;Y.isSearch=!1;return Y};
_.m(z6,_.Z);_.H=z6.prototype;_.H.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"},matcher:function(Y){var G;return(Y==null?void 0:(G=Y.webComponentHint)==null?void 0:G.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"}}}},
"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.H.created=function(){var Y=this;this.boundStampSecondarySearchContainerIfFits=function(){Y.stampSecondarySearchContainerIfFits()};
_.ZE("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.H.computeIsSearchFrictionPage=function(Y){var G,u,O,Q,M;Y=Y==null?void 0:(G=Y.primaryContents)==null?void 0:(u=G.sectionListRenderer)==null?void 0:(O=u.contents)==null?void 0:(Q=O[0])==null?void 0:(M=Q.itemSectionRenderer)==null?void 0:M.contents;if(!Y)return!1;G=_.E(Y);for(u=G.next();!u.done;u=G.next())if(O=void 0,(O=u.value)==null?0:O.searchFrictionViewModel)return!0;return!1};
_.H.computeShowSecondaryColumn=function(Y,G){return!!(G&&G.secondaryContents&&Y)};
_.H.activeChanged=function(){var Y=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Jh(this,this.debounceStampSecondarySearchContainerIfFits)),_.CD(function(){Y.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Jh(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(){_.y4(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.H.onRetrieveLocation=function(Y,G){G.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);Y.stopPropagation()};
_.H.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
z6.prototype.dataChanged=z6.prototype.dataChanged;z6.prototype.onRetrieveLocation=z6.prototype.onRetrieveLocation;z6.prototype.persistentGuideChanged=z6.prototype.persistentGuideChanged;z6.prototype.activeChanged=z6.prototype.activeChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],z6.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],z6.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.x(_.aZ),_.V("design:type",Object)],z6.prototype,"ironResizableBehavior",void 0);_.S([_.R(),_.V("design:type",Boolean)],z6.prototype,"active",void 0);_.S([_.R(),_.V("design:type",Object)],z6.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],z6.prototype,"useBiggerThumbs",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.Yg("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],z6.prototype,"biggerThumbsStyle",void 0);_.S([_.R(),_.V("design:type",Object)],z6.prototype,"renderSecondarySearchContainer",void 0);_.S([_.R({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.V("design:type",Boolean)],z6.prototype,"showSecondaryColumn",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.V("design:type",Boolean)],z6.prototype,"isSearchFrictionPage",void 0);
_.S([_.R(),_.V("design:type",Object)],z6.prototype,"isSearch",void 0);_.S([_.GO("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],z6.prototype,"activeChanged",null);_.S([_.GO("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],z6.prototype,"persistentGuideChanged",null);
_.S([_.Yo("yt-retrieve-location"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],z6.prototype,"onRetrieveLocation",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],z6.prototype,"dataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],z6);
_.d(z6,"ytd-two-column-search-results-renderer",function(){if(mTo!==void 0)return mTo;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return mTo=Y},{mode:1});var mQ=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasSearchHeader=!1;Y.hasSecondaryContent=!1;Y.hasBiggerThumbs=_.F("enable_desktop_search_bigger_thumbs");Y.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return Y};
_.m(mQ,_.Z);_.H=mQ.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:PL(["aa","eocs"])}}};
_.H.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.H.loadPage_=function(Y){this.initCsi();Y&&(this.data=Y,_.ZE("REFINEMENTS_TUPLE",["FromSearchResponse",Y.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.qC(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.H.initCsi=function(){yvy("results",["ol","cpt"])};
_.H.updateTitle=function(){var Y=_.Gh(window.location.href,"q");Y||(Y=_.Gh(window.location.href,"search_query"));_.$s(this.hostElement,"yt-update-title",Y||"")};
_.H.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.H.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.F("web_srp_data_changed_terminate_imp_killswitch")||_.qZ(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(Y){var G;Y=Y==null?void 0:(G=Y.header)==null?void 0:G.searchHeaderRenderer;return!!Y&&(!!Y.searchFilterButton||!!Y.chipBar)};
_.H.computeHasSecondaryContent=function(Y){var G,u;return!!(Y==null?0:(G=Y.contents)==null?0:(u=G.twoColumnSearchResultsRenderer)==null?0:u.secondaryContents)};
_.Uk.Object.defineProperties(mQ,{template:{configurable:!0,enumerable:!0,get:function(){if(vLy===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);vLy=Y}Y=vLy;return Y}}});
mQ.prototype.onReloadContinuationFinish=mQ.prototype.onReloadContinuationFinish;mQ.prototype.dataChanged=mQ.prototype.dataChanged;_.S([_.x(MB.YtPageBehavior),_.V("design:type",Object)],mQ.prototype,"ytPageBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],mQ.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.DD),_.V("design:type",Object)],mQ.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],mQ.prototype,"data",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],mQ.prototype,"monitorScroll",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],mQ.prototype,"hasSearchHeader",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],mQ.prototype,"hasSecondaryContent",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],mQ.prototype,"hasBiggerThumbs",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mQ.prototype,"dataChanged",null);
_.S([_.Yo("yt-reload-continuation-finish"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mQ.prototype,"onReloadContinuationFinish",null);_.S([_.pD({is:"ytd-search"})],mQ);var WLb;var r_9;var xTb;var Wt=function(){var Y=_.Z.apply(this,arguments)||this;Y.ctaVisualElement=null;Y.currentCsn=null;return Y};
_.m(Wt,_.Z);_.H=Wt.prototype;_.H.onDataChanged=function(){this.maybeLogShows()};
_.H.computeButtonShape=function(){var Y=this;if(this.data)return{buttonText:_.Ri(this.data.text),state:"active",onTap:function(){Y.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.H.maybeCreateCtaVe=function(){var Y;if((Y=this.data)!=null&&Y.badgeInteractionLogging){var G;if(Y=(G=this.data.badgeInteractionLogging)==null?void 0:G.trackingParams)this.ctaVisualElement=_.Kd(Y)}};
_.H.maybeLogClicks=function(){this.currentCsn=_.FA(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.RK(this.currentCsn,this.ctaVisualElement)};
_.H.maybeLogShows=function(){this.currentCsn=_.FA(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.oK(this.currentCsn,[this.ctaVisualElement])};
_.H.onTap=function(){var Y;if((Y=this.data)!=null&&Y.onClickCommand){var G;this.ytComponentBehavior.resolveCommand((G=this.data)==null?void 0:G.onClickCommand);this.maybeLogClicks()}};
Wt.prototype.onDataChanged=Wt.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Wt.prototype,"ytComponentBehavior",void 0);_.S([_.R({}),_.V("design:type",Object)],Wt.prototype,"data",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Wt.prototype,"onDataChanged",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Wt);
_.d(Wt,"ytd-shopping-overlay-badge-renderer",function(){if(xTb!==void 0)return xTb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return xTb=Y},{mode:1});var fWj;var rZ=function(){return _.Z.apply(this,arguments)||this};
_.m(rZ,_.Z);rZ.prototype.computeShouldButtonBeVertical=function(Y,G){return Y||G};
rZ.prototype.onYtServiceRequestSent=function(Y,G){(Y=_.z(G.endpoint,_.XV))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.t$("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:Y.status})):this.handleLikeEndpoint(Y))};
rZ.prototype.computelikeStatusEntityKey=function(Y){return Y==null?void 0:Y.likeStatusEntityKey};
rZ.prototype.handleLikeEndpoint=function(Y){Y.status==="LIKE"?this.JSC$22089_ytdDislikeToggleButtonRenderer.toggle(!1):Y.status==="DISLIKE"?this.JSC$22089_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$22089_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$22089_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Uk.Object.defineProperties(rZ.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var Y;return Zcb(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(Y=this.likeStatusEntity)==null?void 0:Y.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var Y;if(this.data&&((Y=this.data)==null||!Y.hideDislikeButton)){var G;return Zcb(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(G=this.likeStatusEntity)==null?void 0:G.likeStatus)}}}});
rZ.prototype.onYtServiceRequestSent=rZ.prototype.onYtServiceRequestSent;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],rZ.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],rZ.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],rZ.prototype,"vertical",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],rZ.prototype,"textTransform",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],rZ.prototype,"useShortsIcon",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],rZ.prototype,"underIconLabel",void 0);_.S([_.R({value:"left"}),_.V("design:type",String)],rZ.prototype,"buttonTooltipPosition",void 0);_.S([_.R(),_.V("design:type",Object)],rZ.prototype,"overrides",void 0);
_.S([_.Ox("#like-button"),_.V("design:type",Object)],rZ.prototype,"JSC$22089_ytdLikeToggleButtonRenderer",void 0);_.S([_.Ox("#dislike-button"),_.V("design:type",Object)],rZ.prototype,"JSC$22089_ytdDislikeToggleButtonRenderer",void 0);_.S([_.f("data","likeStatusEntity.likeStatus","useShortsIcon"),_.V("design:type",Object),_.V("design:paramtypes",[])],rZ.prototype,"likeButton",null);
_.S([_.f("data","likeStatusEntity.likeStatus","useShortsIcon"),_.V("design:type",Object),_.V("design:paramtypes",[])],rZ.prototype,"dislikeButton",null);_.S([_.R({computed:"computelikeStatusEntityKey(data)"}),_.V("design:type",String)],rZ.prototype,"likeStatusEntityKey",void 0);_.S([_.R({selectorArgs:["likeStatusEntityKey"],selector:_.Wx}),_.V("design:type",Object)],rZ.prototype,"likeStatusEntity",void 0);
_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],rZ.prototype,"onYtServiceRequestSent",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],rZ);
_.$o()(rZ,"ytd-like-button-renderer",function(){if(fWj===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);fWj=Y}Y=fWj;return Y},{mode:1});_.hR(_.yyN,"reel-sound-metadata-view-model",{props:{data:_.wH,overlayDensity:_.wH}});_.hR(_.Upb,"player-disclosure-view-model",{props:{data:_.AC,extractOverlay:_.AC}});_.hR(_.jaV,"pivot-button-view-model",{props:{data:_.wH,className:_.wH}});_.hR(_.VH_,"reel-action-bar-view-model",{props:{data:_.AC,buttonShapeOverrideables:_.AC}});_.hR(_.o7g,"yt-reel-metapanel-view-model",{props:{data:_.AC,overlayDensity:_.AC,extractOverlay:_.AC}});var C4w=_.D(function(Y){var G=Y.children;var u=Y.region;Y=_.E(_.IE(void 0,void 0,"flxBBc"));var O=Y.next().value,Q=Y.next().value;Y=_.E(_.IE("0px",void 0,"IAR7k"));var M=Y.next().value,t=Y.next().value;Y=_.E(_.IE("0px",void 0,"QV4iWb"));var K=Y.next().value,L=Y.next().value;Y=_.E(_.IE(0,void 0,"Q2oK6b"));var g=Y.next().value,P=Y.next().value;Y=_.E(_.IE(0,void 0,"hYKowe"));var I=Y.next().value,k=Y.next().value,n=function(){var B=O();if(B){var N;if(((N=_.vx())==null?void 0:N.getPlayerState())!==-1){B.style.display=
"inherit";var h;(h=_.vx())==null||h.removeEventListener("onStateChange",n)}else B.style.display="none";W()}},p=function(){var B;
return(B=_.N5())==null?void 0:B.querySelector("video")},W=function(){var B=p();
if(B){P(B.getBoundingClientRect().width);k(B.getBoundingClientRect().height);var N;t((B==null?void 0:(N=B.style)==null?void 0:N.left)||"0px");var h;L((B==null?void 0:(h=B.style)==null?void 0:h.top)||"0px")}};
_.RE(function(){var B=O();if(B){var N,h,q;if(((N=_.vx())==null?void 0:N.getPlayerState())===-1&&Math.round(((q=(h=_.vx())==null?void 0:h.getVideoAspectRatio())!=null?q:0)*100)!==Math.round(g()/I()*100)){B.style.display="none";var U,Mj;k(g()/((Mj=(U=_.vx())==null?void 0:U.getVideoAspectRatio())!=null?Mj:1))}}},"N29KDe");
var C=function(){W()},e;
_.o1(function(){W();var B;if(!(u==null?0:(B=u())==null?0:B.transformationMatrix))throw Error("gm");var N;(N=_.vx())==null||N.addEventListener("onStateChange",n);if(window.ResizeObserver){if(B=p())e=new ResizeObserver(C),e.observe(B)}else window.addEventListener("resize",W);_.w_(function(){var h;(h=_.vx())==null||h.removeEventListener("onStateChange",n);e?e.disconnect():window.removeEventListener("resize",W)})});
var w=function(){var B,N,h=(N=u==null?void 0:(B=u())==null?void 0:B.transformationMatrix)!=null?N:[];B=g();N=I();for(var q=[],U=0,Mj=-1;U<h.length;U++)U%3===0&&(Mj++,q[Mj]=[]),q[Mj].push(h[U]);h=new Pk(q);q=new Pk([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);q=h.multiply(q);h=new Pk([[0,0],[0,0],[0,0],[0,0]]);for(U=0;U<q.getSize().width;U++){Mj=TH(q,0,U);var Xt=TH(q,1,U);if(Mj===null||Xt===null)throw Error("fm`"+(U+1).toString());gbS(h,U,0,Mj*B);gbS(h,U,1,Xt*N)}B=TH(h,0,0);U=TH(h,1,0);N=TH(h,0,1);Mj=TH(h,1,1);
if(B===null||U===null||N===null||Mj===null)throw Error("dm");q=DPN(B,U,N,Mj);Xt=TH(h,3,0);h=TH(h,3,1);if(Xt===null||h===null)throw Error("em");h=DPN(B,Xt,N,h);Mj=(Number((Mj*-1).toFixed(2))-Number((N*-1).toFixed(2)))/(Number(U.toFixed(2))-Number(B.toFixed(2)));Xt=Math.atan(Mj)*180/Math.PI;U=Mj===Number.POSITIVE_INFINITY?-90:Mj===Number.NEGATIVE_INFINITY?90:Object.is(Mj,-0)?180:Mj===0?0:Mj>0?Xt*-1:B<U?Xt*-1:Math.abs(Xt)+180;return"left:calc("+B+"px + "+M()+"); top:calc("+(N+"px + "+K()+"); width:")+
(q+"px; height:")+(h+"px; transform:rotate(")+(U+"deg);\n        --sticker-width:"+q+";")};
return _.T(_.ENy,{root:"#sticker-layer"},function(){return _.T("yt-overlay-sticker",{el:_.iq(Q),style:w,class:"ytOverlayStickerHost"},G)})},"Ek");var y_b=_.D(function(Y){function G(){var n,p,W,C,e=(p=_.z((n=L())==null?void 0:n.command,_.tml))==null?void 0:(W=p.item)==null?void 0:(C=W.notificationTextRenderer)==null?void 0:C.successResponseText;if(e)n=_.hH(e),_.qZ(O.value,"yt-open-popup-action",[n,O.value]);else if(g())dPN(g(),O.value);else{var w;dPN((w=L())==null?void 0:w.command,O.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var u=Y.data;var O=_.CH("svg"),Q=_.E(_.IE(!1,void 0,"e9onLe"));Y=Q.next().value;var M=Q.next().value,t=_.E(_.IE(!1,void 0,"ptnIQd"));Q=t.next().value;var K=t.next().value,L=function(){var n;return _.z((n=u())==null?void 0:n.popUp,$l9)},g=function(){var n;
return(n=u())==null?void 0:n.command},P=function(){return _.z(g(),_.KK)!==void 0};
t=_.U3(function(){G();return!1});
var I={},k={};return _.T("svg",{"on:mouseover":_.U3(function(){P()&&M(!0);K(!0);return!1}),
"on:mouseout":_.U3(function(){M(!1);K(!1);return!1}),
"on:keydown":_.U3(function(n){n.key==="Enter"&&G();return!1}),
"on:focus":_.U3(function(){P()&&M(!0);return!1}),
"on:blur":_.U3(function(){P()&&M(!1);return!1}),
el:O,tabindex:0,"aria-label":function(){var n;return(n=u())==null?void 0:n.a11yString},
id:"player-overlay-video-interaction-svg",class:_.s3("ytPlayerOverlayInteractionInteractionsSvg",(I.ytPlayerOverlayInteractionInteractionsSvgHover=Y,I),(k.ytPlayerOverlayInteractionInteractionsSvgHideOutline=Q,k)),role:"button","on:click":t})},"Hk");_.hR(_.D(function(Y){var G=Y.data;_.o1(function(){var u;if((u=G())==null?0:u.trackingParams){var O;_.M4().graftServerVe((O=G().trackingParams)!=null?O:"")}});
return _.T("yt-player-overlay-interaction",null,_.T(C4w,{region:function(){var u,O;return(u=G())==null?void 0:(O=u.regions)==null?void 0:O[0]}},_.T(y_b,Object.assign({},Y))))},"Gk"),"yt-player-overlay-interaction",{props:{data:_.AC}});var euV=_.D(function(Y){var G=Y.data;var u=Y.index;var O=Y.selectedChoice;var Q=function(){var M;return _.z((M=G())==null?void 0:M.renderer,apN)};
Y={};return _.T("yt-overlay-poll-sticker-choice",{class:_.s3("ytOverlayPollStickerChoiceHost"),style:_.Yh({"--displayed-percentage":function(){var M,t,K,L;return""+Math.ceil(Number((O==null?void 0:O())===u()?(M=Q())==null?void 0:(t=M.selected)==null?void 0:t.progressBarWidth:(K=Q())==null?void 0:(L=K.unselected)==null?void 0:L.progressBarWidth)*100)}})},_.T("div",{class:_.s3("ytOverlayPollStickerChoicePollChoice",(Y.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(O==null?void 0:O())!==
void 0},Y.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(O==null?void 0:O())===u()},Y))},_.T("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var M;
return((M=Q())==null?void 0:M.text)||""}),_.T("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(O==null?void 0:O())==="undefined")var M="";
else{var t,K,L,g;M=(O==null?void 0:O())===u()?(t=Q())==null?void 0:(K=t.selected)==null?void 0:K.votePercentage:(L=Q())==null?void 0:(g=L.unselected)==null?void 0:g.votePercentage}return M})))},"Ik");var A_b=_.D(function(Y){var G=Y.data;var u=Y.enableDebuggingFeatures;var O=_.Hx(function(M){var t,K=((t=G())==null?void 0:t.postPollStateEntityKey)||"";M=_.v2(M.entities,"postPollStateEntity",K);var L;return((L=G())==null?0:L.viewerIsOwner)?Object.assign({},M,{selectedOptionId:-1,voted:!0}):M}),Q=_.sH().resolve(_.rH);
Y={};return _.T("yt-overlay-poll-sticker",null,_.T(C4w,{region:function(){var M,t;return(M=G())==null?void 0:(t=M.region)==null?void 0:t.interactionRegion}},_.T("div",{class:_.s3("ytOverlayPollStickerHost",(Y.ytOverlayPollStickerDebugStyle=function(){return u==null?void 0:u()},Y)),
style:_.Yh({"--original-height":function(){var M;return""+(((M=G())==null?void 0:M.mainBodyHeight)||1)},
"--original-width":function(){var M;return""+(((M=G())==null?void 0:M.mainBodyWidth)||1)},
"--scaled-width":function(){var M;return""+(((M=G())==null?void 0:M.mainBodyWidth)||1)},
"--primary-surface":function(){var M,t;return h49(((M=G())==null?void 0:(t=M.theme)==null?void 0:t.primarySurface)||0)},
"--raised-surface":function(){var M,t;return h49(((M=G())==null?void 0:(t=M.theme)==null?void 0:t.raisedSurface)||0)},
"--secondary-surface":function(){var M,t;return h49(((M=G())==null?void 0:(t=M.theme)==null?void 0:t.secondarySurface)||0)},
"--primary-text":function(){var M,t;return h49(((M=G())==null?void 0:(t=M.theme)==null?void 0:t.primaryText)||0)},
"--secondary-text":function(){var M,t;return h49(((M=G())==null?void 0:(t=M.theme)==null?void 0:t.secondaryText)||0)}})},_.T("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return G().questionText}," "),_.T(_.rc,{each:function(){return G().pollChoiceConfigs||[]}},function(M,t){return _.T("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.U3(function(){var K=t(),L;if((L=G())==null||!L.viewerIsOwner){var g,P;L=(g=G())==null?void 0:(P=g.pollChoiceConfigs)==null?void 0:P[K];if(P=(L==null?0:L.renderer)?_.z(L.renderer,apN):void 0){var I;g=((I=O())==null?void 0:I.selectedOptionId)!==K;var k;if(I=(k=g?P.selectedPollCommand:P.deselectedPollCommand)==null?void 0:k.innertubeCommand){Q.resolveCommand(I);var n,p;_.DS().dispatch(_.t$("postPollStateEntity",((n=O())==null?void 0:n.key)||"",{key:((p=O())==null?void 0:p.key)||"",selectedOptionId:g?
K:-1,voted:g}))}}}})},_.T(euV,{data:M,
index:t,selectedChoice:function(){var K,L;return((K=O())==null?0:K.voted)?(L=O())==null?void 0:L.selectedOptionId:void 0}}))}),_.T("div",{class:"ytOverlayPollStickerVoteCount"},function(){var M,t;
return((M=O())==null?0:M.voted)&&((t=O())==null?void 0:t.selectedOptionId)!==-1?G().postVoteCountText:G().preVoteCountText}))))},"Jk");_.hR(_.D(function(Y){var G=Y.data;Y=_.p2(function(){var u;return _.F("enable_shorts_poll_stickers_web")?(((u=G())==null?void 0:u.stickers)||[]).filter(function(O){return O.pollSticker}):[]},void 0,"Cflxwb");
return _.T("yt-stickers-layer",null,_.T(_.rc,{each:Y},function(u){return _.T(A_b,{data:u.pollSticker,enableDebuggingFeatures:function(){var O;return(O=G())==null?void 0:O.enableDebuggingFeatures}})}))},"Kk"),"yt-stickers-layer",{props:{data:_.AC}});var xW=function(){var Y=_.Z.apply(this,arguments)||this;Y.showScrubber=!1;Y.isWatchWhileMode=!1;Y.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");Y.enablePollStickers=_.F("enable_shorts_poll_stickers_web");Y.anchoredPanelActive=!1;Y.enableLivingroomLayout=_.F("reels_enable_livingroom_layout");Y.enablePlayerMetadataContainer=_.F("reels_web_enable_metadata_container");Y.enableSqueezebackPanels=_.F("web_shorts_enable_squeezeback_panels");Y.useAspectRatio=_.F("web_use_aspect_ratio");Y.isSqueezebackActive=
!1;Y.smallScreenSqueezeback=!1;Y.isPlayerStarted=!1;Y.overlayDensity=0;Y.extractOverlay=!1;Y.extractActionBar=!1;Y.isOverlay=!1;Y.isImmersive=!1;Y.isImmersiveHorizontal=!1;Y.isFullscreen=!1;Y.onWindowResized=function(){var G;Y.set("isImmersive",((G=window.getComputedStyle(Y.hostElement))==null?void 0:G.getPropertyValue("--immersive-mode-on"))==="1");Y.set("isImmersiveHorizontal",Y.isImmersive&&Y.enableLivingroomLayout&&!Y.isWatchWhileMode)};
return Y};
_.m(xW,_.Z);_.H=xW.prototype;_.H.updateIsOverlay=function(Y){this.isOverlay=Y.detail.value};
_.H.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.H.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.H.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.H.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.H.onOverlayDensityChange=function(){var Y=_.l0(this.hostElement).querySelector("ytd-info-panel-container-renderer");Y&&(Y.set("extractOverlay",this.extractOverlay),Y.set("roundedContainer",this.extractOverlay))};
_.H.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.H.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.H.ready=function(){(_.F("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"))&&(!_.F("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.Yg("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.Yg("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",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.H.setFakeLoadingButtons=function(){_.F("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Q6("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Q6("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Q6("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Q6("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Q6("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(){_.F("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}))};
_.Uk.Object.defineProperties(xW.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.infoPanel)}}});
xW.prototype.onOverlayDensityChange=xW.prototype.onOverlayDensityChange;xW.prototype.onIsActiveChanged=xW.prototype.onIsActiveChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],xW.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],xW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],xW.prototype,"ytdReduxBehavior",void 0);
_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],xW.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],xW.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],xW.prototype,"isActive",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],xW.prototype,"hidden",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],xW.prototype,"useShortsIcon",void 0);
_.S([_.R({value:"left"}),_.V("design:type",String)],xW.prototype,"buttonTooltipPosition",void 0);_.S([_.R({value:_.F("reels_enable_livingroom_layout")?"top":"left"}),_.V("design:type",String)],xW.prototype,"likeButtonTooltipPosition",void 0);_.S([_.R({value:"none"}),_.V("design:type",String)],xW.prototype,"textTransform",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xW.prototype,"showScrubber",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xW.prototype,"isWatchWhileMode",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data.infoPanel"),_.V("design:type",Object),_.V("design:paramtypes",[])],xW.prototype,"hasInfoPanel",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xW.prototype,"enableAnchoredPanel",void 0);_.S([_.R(),_.V("design:type",Object)],xW.prototype,"enablePollStickers",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xW.prototype,"anchoredPanelActive",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xW.prototype,"enableLivingroomLayout",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],xW.prototype,"enablePlayerMetadataContainer",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xW.prototype,"enableSqueezebackPanels",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xW.prototype,"useAspectRatio",void 0);_.S([_.R({selector:_.TyI,reflectToAttribute:!0}),_.V("design:type",Object)],xW.prototype,"isSqueezebackActive",void 0);_.S([_.R({selector:wCB,reflectToAttribute:!0}),_.V("design:type",Object)],xW.prototype,"smallScreenSqueezeback",void 0);_.S([_.R({selector:ZUb}),_.V("design:type",Object)],xW.prototype,"isPlayerStarted",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xW.prototype,"overlayDensity",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xW.prototype,"extractOverlay",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xW.prototype,"extractActionBar",void 0);_.S([_.R(),_.V("design:type",Object)],xW.prototype,"isOverlay",void 0);_.S([_.R(),_.V("design:type",Object)],xW.prototype,"isImmersive",void 0);
_.S([_.R(),_.V("design:type",Object)],xW.prototype,"isImmersiveHorizontal",void 0);_.S([_.R({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.V("design:type",Boolean)],xW.prototype,"isShortsImmersive",void 0);_.S([_.R({computed:"computeButtonOverride(extractActionBar)"}),_.V("design:type",Object)],xW.prototype,"buttonOverride",void 0);
_.S([_.R({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.V("design:type",Object)],xW.prototype,"actionBarButtonOverride",void 0);_.S([_.R({selector:_.$C,reflectToAttribute:!0}),_.V("design:type",Object)],xW.prototype,"isFullscreen",void 0);_.S([_.GO("isActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xW.prototype,"onIsActiveChanged",null);
_.S([_.GO("extractOverlay"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xW.prototype,"onOverlayDensityChange",null);_.S([_.pD({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],xW);
_.d(xW,"ytd-reel-player-overlay-renderer",function(){if(r_9!==void 0)return r_9;var Y=document.createElement("template");_.r(Y,'\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="[[!data.videoInteractions.elementsInteractionsLayer]]" 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"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\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]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return r_9=Y},{mode:1});var oXg;var fP=function(){var Y=_.Z.apply(this,arguments)||this;Y.videoDuration=0;Y.playedTime=0;Y.isActive=!1;Y.JSC$22114_playerEvents=new Map;return Y};
_.m(fP,_.Z);_.H=fP.prototype;_.H.created=function(){this.JSC$22114_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22114_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.H.attached=function(){this.getPlayerAndInitializeListeners()};
_.H.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22114_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Jh(this,this.onPageChanged))};
_.H.getPlayerAndInitializeListeners=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1)return G=_.N5(),G?u.yield(G.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Jh(Y,Y.onPageChanged)),u.jumpTo(0));Y.player=u.yieldResult;Y.initializePlayerListeners();_.Sd(u)})};
_.H.onPageChanged=function(Y){var G=this;return _.a(function(u){if(u.nextAddress==1)return Y.detail.newPageType!=="ytd-shorts"?u.return():u.yield(_.jr().getPlayerPromise(),2);G.player=u.yieldResult;G.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Jh(G,G.onPageChanged));_.Sd(u)})};
_.H.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22114_playerEvents)};
_.H.onVideoDataChange=function(Y){var G=this;return _.a(function(u){if(!G.player||Y.type!=="newdata")return u.return();G.videoDuration=_.F("web_shorts_use_progress_state_for_gapless")?G.player.getProgressState(Y.playertype).seekableEnd:G.player.getDuration(Y.playertype);G.playedTime=0;_.Sd(u)})};
_.H.onVideoProgress=function(Y){var G=this,u,O;return _.a(function(Q){if(!G.player)return Q.return();u=G.player.getPresentingPlayerType();O=G.player.getPlayerState();G.videoDuration=_.F("web_shorts_use_progress_state_for_gapless")?G.player.getProgressState(u).seekableEnd:G.player.getDuration(u);G.playedTime=O===0?G.videoDuration:Y;_.Sd(Q)})};
_.H.getPercentPlayed=function(Y,G){return Y?_.yW(G/Y,0,1):0};
_.Uk.Object.defineProperties(fP.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 Y="";return Y=this.videoDuration&&this.playedTime?Y+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):Y+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],fP.prototype,"componentBehavior",void 0);_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",_.wW)],fP.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],fP.prototype,"player",void 0);_.S([_.R(),_.V("design:type",Object)],fP.prototype,"videoDuration",void 0);_.S([_.R(),_.V("design:type",Object)],fP.prototype,"playedTime",void 0);_.S([_.R(),_.V("design:type",Object)],fP.prototype,"isActive",void 0);
_.S([_.f("videoDuration","playedTime"),_.V("design:type",Number),_.V("design:paramtypes",[])],fP.prototype,"percentPlayed",null);_.S([_.f("videoDuration","playedTime"),_.V("design:type",Object),_.V("design:paramtypes",[])],fP.prototype,"percentPlayedStyle",null);_.S([_.f("videoDuration","isActive"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fP.prototype,"hideProgressBar",null);
_.d(fP,"ytd-progress-bar-line",function(){if(oXg===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);oXg=Y}Y=oXg;return Y},{mode:2});var inw;_.hR(zV9,"ytm-closed-captioning-button",{props:{captionIconType:_.AC,onClick:_.wH,ariaLabel:_.AC,ariaPressed:_.AC,isOverlay:_.wH}});_.hR(_.fCw,"volume-controls",{props:{orientation:_.AC,playerApi:_.AC}});var CP=function(){var Y=_.Z.apply(this,arguments)||this;Y.playerState=null;Y.isMuted=!1;Y.volumeControlsOrientationState="horizontal_right";Y.isOverlay=!0;Y.isAdsOverlay=!1;Y.captionIconType=-1;Y.ariaLabel="";Y.overlayDensity=0;Y.JSC$22117_playerEvents=new Map;Y.onClosedCaptionsButtonClick=function(){Y.player&&NKN(Y.player)&&(Y.player.toggleSubtitles(),Y.updateCaptionIconType())};
return Y};
_.m(CP,_.Z);_.H=CP.prototype;_.H.created=function(){this.JSC$22117_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22117_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.JSC$22117_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.H.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.VZ(28662);this.playPauseButtonClientVE=_.VZ(36842);this.fullscreenButtonToggleOffClientVE=_.VZ(222256);this.fullscreenButtonToggleOnClientVE=_.VZ(222257);var Y=_.FA(),G=_.nX();Y&&G&&(_.F("combine_ve_grafts")?(_.lq(_.M4(),this.muteButtonClientVE,G),_.lq(_.M4(),this.playPauseButtonClientVE,G)):_.ey(Y,G,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.H.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22117_playerEvents),this.player=null)};
_.H.updateCaptionIconType=function(){var Y=-1,G=void 0,u=_.Q6("CLOSED_CAPTIONS_DISABLED");this.player&&NKN(this.player)&&(jiS(this.player)?(G=!0,u=_.Q6("CLOSED_CAPTIONS_ON"),Y=1):(G=!1,u=_.Q6("CLOSED_CAPTIONS_OFF"),Y=0));this.captionIconType=Y;this.ariaPressedState=G;this.ariaLabel=u};
_.H.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.H.getPlayerAndInitializeListeners=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1)return G=_.N5(),G?u.yield(G.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Jh(Y,Y.onPageChanged)),u.jumpTo(0));Y.player=u.yieldResult;Y.initializePlayerListeners();_.Sd(u)})};
_.H.onPageChanged=function(Y){var G=this;return _.a(function(u){if(u.nextAddress==1)return Y.detail.newPageType!=="ytd-shorts"?u.return():u.yield(_.jr().getPlayerPromise(),2);G.player=u.yieldResult;G.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Jh(G,G.onPageChanged));_.Sd(u)})};
_.H.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22117_playerEvents);this.updateCaptionIconType()};
_.H.onPlayerStateChange=function(Y){this.playerState=Y};
_.H.onPlayerVolumeChange=function(Y){this.isMuted=Y.muted};
_.H.onPlayPauseButtonClick=function(){var Y=this,G,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(_.jr().getPlayerPromise(),2);G=O.yieldResult;(u=_.FA())&&Y.playPauseButtonClientVE&&_.RK(u,Y.playPauseButtonClientVE);G.getPlayerState()!==1?G.playVideo():G.pauseVideo();_.Sd(O)})};
_.H.computePlayPauseIcon=function(Y){return Y===2||Y===-1||Y===5?"PLAY_ARROW_FILLED":"PAUSE_FILLED"};
_.H.computeFullscreenLabel=function(Y){return Y?_.Q6("FULLSCREEN_EXIT_LABEL"):_.Q6("FULLSCREEN_ENTER_LABEL")};
_.H.computePlayPauseLabel=function(Y){return Y===1||Y===3?_.Q6("PLAYER_LABEL_PAUSE"):_.Q6("PLAYER_LABEL_PLAY")};
_.H.onMuteButtonClick=function(){var Y=this,G,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(_.jr().getPlayerPromise(),2);G=O.yieldResult;(u=_.FA())&&Y.muteButtonClientVE&&_.RK(u,Y.muteButtonClientVE);G.isMuted()?G.unMute(!0):G.mute(!0);_.Sd(O)})};
_.H.computeMuteIcon=function(Y){return Y?"miniplayer:volume-off":"miniplayer:volume-up"};
_.H.computeMuteLabel=function(Y){return Y?_.Q6("PLAYER_LABEL_UNMUTE"):_.Q6("PLAYER_LABEL_MUTE")};
_.H.onFullscreenButtonClick=function(){var Y=_.FA();Y&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.RK(Y,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.RK(Y,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();J79()};
_.Uk.Object.defineProperties(CP.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var Y=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(){Y.onPlayPauseButtonClick()},
disableBackdropFilter:!0,customColors:{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}}}},
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:!0,customColors:{backgroundColor:"transparent"}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"player_full_exit_alt":"player_full_enter_alt"}}});
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],CP.prototype,"componentBehavior",void 0);_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",_.wW)],CP.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],CP.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],CP.prototype,"player",void 0);_.S([_.R(),_.V("design:type",Object)],CP.prototype,"playerState",void 0);_.S([_.R(),_.V("design:type",Object)],CP.prototype,"isMuted",void 0);
_.S([_.R({computed:"computePlayPauseIcon(playerState)"}),_.V("design:type",String)],CP.prototype,"playPauseIcon",void 0);_.S([_.R({computed:"computeMuteIcon(isMuted)"}),_.V("design:type",String)],CP.prototype,"muteIcon",void 0);_.S([_.R({selector:_.$C}),_.V("design:type",Boolean)],CP.prototype,"isFullscreen",void 0);_.S([_.R(),_.V("design:type",Object)],CP.prototype,"volumeControlsOrientationState",void 0);_.S([_.R(),_.V("design:type",Object)],CP.prototype,"isOverlay",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],CP.prototype,"isAdsOverlay",void 0);_.S([_.R(),_.V("design:type",Object)],CP.prototype,"captionIconType",void 0);_.S([_.R(),_.V("design:type",Object)],CP.prototype,"ariaLabel",void 0);_.S([_.R(),_.V("design:type",Object)],CP.prototype,"ariaPressedState",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],CP.prototype,"overlayDensity",void 0);_.S([_.R(),_.V("design:type",Object)],CP.prototype,"data",void 0);
_.S([_.R({computed:"computeActionBarButtonOverride()"}),_.V("design:type",Object)],CP.prototype,"actionBarButtonOverride",void 0);_.S([_.f("playerState"),_.V("design:type",Object),_.V("design:paramtypes",[])],CP.prototype,"playPauseButtonData",null);_.S([_.f("isFullscreen"),_.V("design:type",Object),_.V("design:paramtypes",[])],CP.prototype,"fullscreenButtonData",null);_.S([_.R(),_.V("design:type",Object)],CP.prototype,"onClosedCaptionsButtonClick",void 0);
_.S([_.f("isFullscreen"),_.V("design:type",String),_.V("design:paramtypes",[])],CP.prototype,"fullscreenIcon",null);
_.d(CP,"ytd-shorts-player-controls",function(){if(inw===void 0){var Y=document.createElement("template");_.r(Y,'\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<div id="left-controls" class="style-scope ytd-shorts-player-controls">\n  <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  <volume-controls orientation="[[volumeControlsOrientationState]]" player-api="[[player]]" class="style-scope ytd-shorts-player-controls"></volume-controls>\n</div>\n<div id="right-controls" class="style-scope ytd-shorts-player-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-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n    </ytm-closed-captioning-button>\n  </div>\n  <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n    <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);inw=Y}Y=inw;return Y},{mode:1});var Rux;_.hR(_.Ntj,"yt-interstitial-view-model",{props:{data:_.AC}});var wNV=_.D(function(Y){var G=Y.data;return _.T("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.T("h1",{class:"reelWatchBreakViewModelHostTitle"},_.T(_.eO,{text:function(){return G().title}})),_.T("h2",{class:"reelWatchBreakViewModelHostBody"},_.T(_.eO,{text:function(){return G().body},
isOverlay:!0})),_.T(_.HE,{data:function(){return G().buttons}},{buttonViewModel:function(u,O){return _.T("div",{class:function(){return O()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.T(_.$Y,{data:u.data}))}}))},"Lk");
wNV.idomCompat=!0;_.hR(wNV,"reel-watch-break-view-model",{props:{data:_.AC}});var yu=function(){return _.Z.apply(this,arguments)||this};
_.m(yu,_.Z);yu.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}}};
_.Uk.Object.defineProperties(yu.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.z((Y=this.data)==null?void 0:Y.renderer,qu9)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.z((Y=this.data)==null?void 0:Y.renderer,BOb)}}});
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],yu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],yu.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],yu.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],yu.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.f("data.renderer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yu.prototype,"isSurvey",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.renderer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yu.prototype,"isInterstitialViewModel",null);_.S([_.pD({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],yu);
_.d(yu,"ytd-reel-non-video-content-renderer",function(){if(Rux!==void 0)return Rux;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
return Rux=Y},{mode:2});var Zn9;_.hR(_.x6w,"desktop-shorts-player-controls",{});var eH=function(){var Y=_.Z.apply(this,arguments)||this;Y.isPlayerPaused=!1;Y.isPlayerStarted=!1;Y.showPlayerControls=!1;Y.showScrubber=!1;Y.autoHideJobId=0;Y.overlayType=_.Yg("web_shorts_expanded_overlay_type");Y.panelData=void 0;Y.isWatchWhileMode=!1;Y.hasError=!1;Y.panelShowDelayMs=1;Y.scrubberComponent={};Y.isFullscreen=!1;Y.shouldHideOverlay=!1;Y.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");Y.enablePersistentAnchoredPanel=_.F("desktop_shorts_v2_persistent_anchored_panel");Y.hideWatchWhilePanel=
_.F("web_shorts_hide_watch_while_panel");Y.useAspectRatio=_.F("web_use_aspect_ratio");Y.isPersistentPanelActive=!1;Y.anchoredPanelActive=!1;Y.isShortsPipActive=!1;Y.smallScreenSqueezeback=!1;Y.overlayDensity=0;Y.extractOverlay=!1;Y.extractActionBar=!1;Y.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};Y.onWindowResized=function(){_.y4(Y,"calculateOverlayDensity",function(){Y.calculateOverlayDensity()},
100)};
return Y};
_.m(eH,_.Z);_.H=eH.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 Y=_.sH().resolve(_.IH);this.isWatchWhileMode&&_.AN.addJob(function(){Y.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.H.handleShowReelsCommentsOverlayCommand=function(Y){Y=_.z(Y,fTx);this.isActive&&(Y==null?0:Y.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(Y,G){Y&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:G?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:Y}})};
_.H.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;window.removeEventListener("resize",this.onWindowResized)};
_.H.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.sH().resolve(_.Hl).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.H.handleWatchWhilePanelScrimClick=function(){var Y=_.sH().resolve(_.IH);this.activeWatchWhilePanel&&(Y.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.H.attached=function(){this.isFirstReel()&&this.handlePlayerClick();window.addEventListener("resize",this.onWindowResized);this.calculateOverlayDensity()};
_.H.configureRendererStamper=function(){var Y;return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},renderPriority: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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:(Y=jsb[_.Yg("web_shorts_overlay_render_priority")])!=null?Y:0}}};
_.H.handlePlayerClick=function(Y){var G=this,u,O;if((O=(u=window).matchMedia)!=null&&O.call(u,"(any-pointer: coarse)").matches||!Y)this.showPlayerControls=!0,_.AN.cancelJob(this.autoHideJobId),this.autoHideJobId=_.AN.addJob(function(){G.showPlayerControls=!1},0,4E3)};
_.H.isFirstReel=function(){return this.index===0};
_.H.handleMouseenter=function(){_.AN.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 Y;(Y=this.data)!=null&&Y.thumbnail&&this.isActive&&.5625!==EGo(this.data.thumbnail)&&_.LK("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.H.calculateOverlayDensity=function(){var Y=document.querySelector("#shorts-container");if(Y){var G=!1,u,O=this.playerContainer.offsetWidth,Q=this.playerContainer.offsetHeight;Y=Y.offsetWidth/2-O/2;Y>=368?(Y=1,G=u=!0):Y>=72?(Y=0,u=!0):(Y=2,u=!1);O>=600&&Q>=840?Y=1:window.innerWidth<=599&&(Y=2,u=G=!1);this.isPersistentPanelActive&&(Y=0,G=!1);this.extractActionBar=u;this.overlayDensity=Y;this.extractOverlay=G;var M;(M=this.onOverlayDensityChanged)==null||M.call(this,this.index,this.overlayDensity,
this.extractOverlay,this.extractActionBar)}};
_.H.onOverlayDensityChange=function(){var Y;(Y=this.onOverlayDensityChanged)==null||Y.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(Y=_.l0(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))Y.set("overlayDensity",this.overlayDensity),Y.set("extractOverlay",this.extractOverlay),Y.set("extractActionBar",this.extractActionBar);if(Y=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))Y.overlayDensity=this.overlayDensity,Y.extractOverlay=
this.extractOverlay,Y.extractActionBar=this.extractActionBar};
_.H.isVideoContent=function(Y){_.sH().resolve(_.Hl);return!!_.z(Y,_.Qa)};
_.H.isNonVideoContent=function(Y){_.sH().resolve(_.Hl);return!!_.z(Y,_.mP)};
_.H.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Uk.Object.defineProperties(eH.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.adsOverlay)}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&this.isPlayerStarted}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var Y;return!this.isActive||!this.isPlayerStarted||(Y=this.data)!=null&&Y.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var Y;if(((Y=this.data)==null?0:Y.command)&&this.isVideoContent(this.data.command)){var G,u;if(((G=this.data)==null?0:G.adsOverlay)&&Object.keys((u=this.data)==null?void 0:u.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var O,Q;if(((O=this.data)==null?0:O.reelPlayerOverlayRenderer)&&Object.keys((Q=this.data)==null?void 0:Q.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
eH.prototype.onOverlayDensityChange=eH.prototype.onOverlayDensityChange;eH.prototype.calculateOverlayDensity=eH.prototype.calculateOverlayDensity;eH.prototype.maybeLogNonDefaultAspectRatio=eH.prototype.maybeLogNonDefaultAspectRatio;eH.prototype.onEngagementPanelsChanged=eH.prototype.onEngagementPanelsChanged;eH.prototype.onScrubberDataChange=eH.prototype.onScrubberDataChange;eH.prototype.updateShouldHideOverlay=eH.prototype.updateShouldHideOverlay;
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],eH.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],eH.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],eH.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Number)],eH.prototype,"index",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],eH.prototype,"isActive",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],eH.prototype,"isHiddenInDom",void 0);_.S([_.R(),_.V("design:type",Object)],eH.prototype,"isPlayerPaused",void 0);_.S([_.R({selector:ZUb}),_.V("design:type",Object)],eH.prototype,"isPlayerStarted",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"showPlayerControls",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"showScrubber",void 0);_.S([_.R(),_.V("design:type",Object)],eH.prototype,"autoHideJobId",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"overlayType",void 0);_.S([_.x(_.me),_.V("design:type",Object)],eH.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],eH.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],eH.prototype,"watchWhileEngagementPanels",void 0);_.S([_.R(),_.V("design:type",Object)],eH.prototype,"panelData",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"isWatchWhileMode",void 0);_.S([_.R(),_.V("design:type",String)],eH.prototype,"activeWatchWhilePanel",void 0);_.S([_.R(),_.V("design:type",Object)],eH.prototype,"hasError",void 0);_.S([_.R(),_.V("design:type",Object)],eH.prototype,"panelShowDelayMs",void 0);
_.S([_.R(),_.V("design:type",Object)],eH.prototype,"scrubberComponent",void 0);_.S([_.R({selector:_.$C,reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"isFullscreen",void 0);_.S([_.R(),_.V("design:type",Object)],eH.prototype,"shouldHideOverlay",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"enableAnchoredPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"enablePersistentAnchoredPanel",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"hideWatchWhilePanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"useAspectRatio",void 0);_.S([_.R({selector:_.TyI,reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"isPersistentPanelActive",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"anchoredPanelActive",void 0);
_.S([_.R({selector:_.qv,reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"isShortsPipActive",void 0);_.S([_.R({selector:wCB,reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"smallScreenSqueezeback",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data.adsOverlay"),_.V("design:type",Object),_.V("design:paramtypes",[])],eH.prototype,"isAdsOverlay",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"overlayDensity",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"extractOverlay",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],eH.prototype,"extractActionBar",void 0);_.S([_.R(),_.V("design:type",Function)],eH.prototype,"onOverlayDensityChanged",void 0);_.S([_.R(),_.f("isActive","hasError","isPlayerStarted"),_.V("design:type",Object),_.V("design:paramtypes",[])],eH.prototype,"shouldRenderPlayerElements",null);
_.S([_.R(),_.f("isActive","isWatchWhileMode"),_.V("design:type",Object),_.V("design:paramtypes",[])],eH.prototype,"watchWhileOrPersistentActive",null);_.S([_.GO("isActive","hasError","showingExpandedOverlay"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eH.prototype,"updateShouldHideOverlay",null);
_.S([_.R({reflectToAttribute:!0}),_.f("isActive","isPlayerStarted","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],eH.prototype,"shouldRenderScrubber",null);_.S([_.GO("shouldRenderScrubber"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eH.prototype,"onScrubberDataChange",null);_.S([_.f("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],eH.prototype,"overlayComponent",null);
_.S([_.GO("watchWhileEngagementPanels"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eH.prototype,"onEngagementPanelsChanged",null);_.S([_.Ox("#player-container"),_.V("design:type",HTMLElement)],eH.prototype,"playerContainer",void 0);_.S([_.Ox("#cinematic-container"),_.V("design:type",HTMLElement)],eH.prototype,"cinematicContainer",void 0);
_.S([_.GO("isPersistentPanelActive","data.thumbnail"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eH.prototype,"maybeLogNonDefaultAspectRatio",null);_.S([_.GO("isPersistentPanelActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eH.prototype,"calculateOverlayDensity",null);
_.S([_.GO("overlayDensity","extractOverlay","extractActionBar"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eH.prototype,"onOverlayDensityChange",null);_.S([_.pD({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],eH);
_.d(eH,"ytd-reel-video-renderer",function(){if(Zn9!==void 0)return Zn9;var Y=document.createElement("template");_.r(Y,'\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 id="video-filtering-overlay-container" class="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 data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" 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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Zn9=Y},{mode:2});var AI=function(){var Y=_.Z.apply(this,arguments)||this;Y.isPreviousPageShorts=!1;Y.index=0;Y.delayedActiveIndex=0;Y.playablePreviousIndex=null;Y.isPlayerPaused=!1;Y.isPlayerStarted=!1;Y.intersectionObserverThreshold=.6;Y.fitToVisibleBounds=!1;Y.pageSubtype="shorts";Y.enablePreviousContinuation=_.F("shorts_in_playlists_web");Y.shortsPipEnabled=_.F("web_shorts_pip");Y.isDark=document.documentElement.hasAttribute("dark");Y.shortsViewTransitions=_.F("web_shorts_view_transitions");Y.isFullscreen=!1;Y.isShortsPipActive=
!1;Y.buttonOverride={iconPosition:"icon-only",size:"XL"};Y.anchoredPanelActive=!1;Y.isActive=!1;Y.smallScreenPersistentPanel=!1;Y.isPersistentPanelActive=!1;Y.smallScreenSqueezeBack=!1;Y.extractOverlay=!1;Y.useAspectRatio=_.F("web_use_aspect_ratio");Y.continuationRequestPending=!1;Y.carouselContainers=[];Y.isShortsInitialized=!1;Y.hasDataUpdated=!1;Y.playerInPosition=!1;Y.hidePreviousButtonImmediately=!1;Y.showPreviousButtonImmediately=!1;Y.endOfNextContinuation=!1;Y.currentPlayerIndex=0;Y.nextReelVe=
_.VZ(56921);Y.prevReelVe=_.VZ(56922);Y.loopToggleOffVe=_.VZ(198013);Y.loopToggleOnVe=_.VZ(198014);Y.ambientModeToggleVe=_.VZ(227860);Y.reelPlayerPausedStateRendererVe=_.VZ(141313);Y.storedPlaybackSpeed=null;Y.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"};Y.onOverlayDensityChanged=
function(G,u,O,Q){G=Y.getActiveReelVideo(G);Y.extractOverlay=!!O;G==null||G.setAttribute("overlay-density",String(u));O===void 0||G!=null&&G.toggleAttribute("extract-overlay",O);Q===void 0||G!=null&&G.toggleAttribute("extract-action-bar",Q)};
return Y};
_.m(AI,_.Z);_.H=AI.prototype;_.H.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.H.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.H.onResize=function(){var Y=_.Zs(),G=Y.dispatch,u=this.calculateIsSmallWidth();G.call(Y,_.V6({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:u}}));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: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 Y=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,G=Y,u=0;Y<250&&(G=Y+this.shortsInnerContainer.clientWidth,u=24);_.cm(this.hostElement,{"--ytd-shorts-header-width":G+"px","--ytd-shorts-top-spacing":u+"px"})}};
_.H.isFirstShorts=function(Y){return Y?this.index===-Y.length:this.index===0};
_.H.isActiveReel=function(Y,G,u){u&&(G=this.calculatePrevIndex(G,u));return Y===G};
_.H.onFullscreenChange=function(){_.F("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.sH().resolve(_.yo).close(!0))};
_.H.engagementPanelsChanged=function(){var Y;this.watchWhileEngagementPanels=(Y=this.data)==null?void 0:Y.engagementPanels};
_.H.unregisterPanels=function(){var Y=_.sH().resolve(_.IH);if(this.watchWhileEngagementPanels)for(var G=_.E(this.watchWhileEngagementPanels),u=G.next();!u.done;u=G.next()){var O=u.value,Q=void 0,M=void 0;u=(Q=O.engagementPanelSectionListRenderer)==null?void 0:(M=Q.identifier)==null?void 0:M.tag;O=this.getPanelIdentifier(O.engagementPanelSectionListRenderer);Y&&(u&&Y.panelMap.delete(u),O&&_.F("web_shorts_panel_caching_bugfix")&&(Q=u=void 0,(Q=(u=Y).unregisterPanelContent)==null||Q.call(u,O)))}};
_.H.isVideoContent=function(Y){return this.isVideoContentCommand(Y==null?void 0:Y.command)};
_.H.getActiveReelVideo=function(Y){return _.l0(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+Y+'"]')};
_.H.calculatePrevIndex=function(Y,G){return G?Y-((G==null?void 0:G.length)||0):-1};
_.H.onKeydown=function(Y){var G=_.wG(Y)||[];if(!fBS(G))if(Y.code==="ArrowUp")Y.preventDefault(),this.handlePrevButtonClick();else if(Y.code==="ArrowDown")Y.preventDefault(),this.handleNextButtonClick();else if(Y.code==="KeyM")this.toggleMuteUnmuteVideo();else if(Y.code==="KeyK"||Y.code==="Space")this.togglePlayPauseVideo();else if((Y.code==="KeyA"||Y.code==="ArrowLeft")&&_.F("web_shorts_keyboard_enable_seek_shortcuts")){var u;(u=this.player)==null||u.seekBy(-5)}else if((Y.code==="KeyD"||Y.code===
"ArrowRight")&&_.F("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var O;(O=this.player)==null||O.seekBy(5)}};
_.H.onServiceRequestCompleted=function(Y,G){Y=G.data;Y.continuationEndpoint&&Y.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:Y.entries,continuationEndpoint:Y.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=Y):Y.prevContinuationEndpoint&&Y.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:Y.prevEntries,prevContinuationEndpoint:Y.prevContinuationEndpoint}}):
this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.H.handleEngagementPanelVisibilityChanged=function(Y,G){var u=_.sH().resolve(_.IH);if(Y&&u){var O=this.getPanelIdentifier(Y);if(G==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==O){u.hidePanel({identifier:this.activePanel});var Q;this.activePanel=((Q=Y.identifier)==null?void 0:Q.tag)||Y.panelIdentifier}else this.isPersistentPanelActive=!0,_.Zs().dispatch(sso(!0)),this.anchoredPanelActive=!0,this.activePanel=O;else G==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===O&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Zs().dispatch(sso(!1)))}};
_.H.handlePanelScrimClick=function(){var Y=_.sH().resolve(_.IH);this.activePanel&&(Y.hidePanel({identifier:this.activePanel}),_.Zs().dispatch(sso(!1)))};
_.H.getShortsLoopSetting=function(){var Y,G,u,O,Q;return _.a(function(M){switch(M.nextAddress){case 1:return _.F("kevlar_shorts_auto_advance")?M.yield(_.Xu.getInstance(),2):M.return(!0);case 2:return(Y=M.yieldResult)?M.yield(Y.get("sfvles"),3):M.return(!0);case 3:return u=(G=M.yieldResult)!=null?G:!1,M.yield(Y.get("sfvle"),4);case 4:return Q=(O=M.yieldResult)!=null?O:!0,u?M.return(Q):M.return(!0)}})};
_.H.handleSignalActionToggleLoopShortsOff=function(){var Y=this,G,u,O;return _.a(function(Q){switch(Q.nextAddress){case 1:if(!Y.player)return Q.return();Y.player.setLoopVideo(!1);G=_.M4();_.Jw(G,Y.loopToggleOffVe);return Q.yield(_.Xu.getInstance(),2);case 2:return(u=Q.yieldResult)?Q.yield(u.set("sfvle",!1),3):Q.return();case 3:return Q.yield(u.set("sfvles",!0),4);case 4:O=_.EU(),_.tW(0,203,!1),_.tW(0,204,!0),O.save(),_.Sd(Q)}})};
_.H.handleSignalActionToggleLoopShortsOn=function(){var Y=this,G,u,O;return _.a(function(Q){switch(Q.nextAddress){case 1:if(!Y.player)return Q.return();Y.player.setLoopVideo(!0);G=_.M4();_.Jw(G,Y.loopToggleOnVe);return Q.yield(_.Xu.getInstance(),2);case 2:return(u=Q.yieldResult)?Q.yield(u.set("sfvle",!0),3):Q.return();case 3:return Q.yield(u.set("sfvles",!0),4);case 4:O=_.EU(),_.tW(0,203,!0),_.tW(0,204,!0),O.save(),_.Sd(Q)}})};
_.H.handleSignalActionToggleCinematicShortsOn=function(){qGS(!0);var Y;(Y=this.JSC$22141_cinematicController)==null||dBg(Y,!0);_.Jw(_.M4(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.H.handleSignalActionToggleCinematicShortsOff=function(){qGS(!1);var Y;(Y=this.JSC$22141_cinematicController)==null||dBg(Y,!1);_.Jw(_.M4(),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(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var Y=this.overlayContainer.querySelector("#experiment-overlay");Y&&_.AN.addLowPriorityJob(function(){Y.style.display="unset"},100)}else if(this.overlayContainer){var G;
((G=this.playerElement.getPlayer())==null?void 0:G.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.H.getCurrentShort=function(){if(this.currentEndpoint){var Y=this.currentEndpoint;if(this.isNonVideoContentCommand(Y)){var G=_.z(Y,_.mP);return{reelNonVideoContentRenderer:_.z(G==null?void 0:G.renderer,_.S6R),command:Y}}if(this.data){var u;G=(u=_.z(this.currentEndpoint,_.Qa))==null?void 0:u.thumbnail;var O;u=(O=this.data.overlay)==null?void 0:O.reelPlayerOverlayRenderer;_.sH().resolve(_.Hl);Y=this.data;var Q,M;O=(Q=Y.overlay)==null?void 0:(M=Q.shortsAdsRenderer)==null?void 0:M.adSlots;if(O!==void 0)O.length===
0?(_.i5("Shorts ads returned no ad slots."),Y=void 0):(O.length>1&&_.i5("Shorts ads has more than one ad slots."),Y=_.z(O[0],_.kWV));else{var t,K;Y=_.z((t=Y.overlay)==null?void 0:(K=t.shortsAdsRenderer)==null?void 0:K.overlay,_.kWV)}t=Y;Y=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.z(this.currentEndpoint,_.Qa),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var L;return{reelPlayerOverlayRenderer:u,thumbnail:G,command:Y,adsOverlay:t,
videoId:(L=_.z(this.currentEndpoint,_.Qa))==null?void 0:L.videoId}}}};
_.H.created=function(){var Y=this;this.scrollToVideoThrottle=new _.JR(function(G,u){u=u===void 0?"smooth":u;var O;(O=Y.getActiveReelVideo(G))==null||O.scrollIntoView({behavior:u,block:"nearest",inline:"center"})},500,this);
this.shortsController=_.sH().resolve(_.Hl);this.maybeCreateIntersectionObserver()};
_.H.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.H.attached=function(){var Y=this;_.sH().resolve(_.Hl).registerRootElement(this);this.pageScrollElement=_.l0(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Jh(this,this.processResetAction));_.F("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){Y.maybeCreateIntersectionObserver();Y.scrollToVideoThrottle.fire(Y.activeIndex,"instant");Y.shortsContainer.style.overflowY=
"scroll"}))};
_.H.calculateSqueezebackPanelSize=function(){var Y=this,G=window.innerWidth-456-(window.innerHeight-106)*.5625;_.AN.addLowPriorityJob(function(){G<360?(Y.hostElement.style.setProperty("--anchored-panel-width","480px"),_.Zs().dispatch(cgg(!0))):(Y.hostElement.style.setProperty("--anchored-panel-width",Math.min(G,480)+"px"),_.Zs().dispatch(cgg(!1)))})};
_.H.detached=function(){var Y=_.sH().resolve(_.Hl);Y.rootElement=void 0;var G;(G=Y.unsubscribeFromStore)==null||G.call(Y);Y.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Jh(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.H.onResizeFinished=function(Y,G){var u=this,O=new ResizeObserver(function(){u.shortsContainer.style.overflowY="hidden";_.AN.addLowPriorityJob(function(){G()},100)});
O.observe(Y);return O};
_.H.resetDocumentScrollTop=function(){var Y,G;if((Y=document)==null?0:(G=Y.scrollingElement)==null?0:G.scrollTop)document.scrollingElement.scrollTop=0};
_.H.loadPage_=function(Y){var G=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),Y){var u;if((u=_.z(this.currentEndpoint,_.Qa))==null?0:u.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=Y;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){G.isPlayerStarted&&
(G.handleOnPlaybackCommand(),G.afterPlayerStarted=function(){})};
this.registerPanel(Y)}};
_.H.afterPlayerStarted=function(){};
_.H.handleOnPlaybackCommand=function(){if(_.F("web_shorts_comment_stickers")&&this.isPlayerStarted){var Y,G=(Y=_.z(this.currentEndpoint,_.Qa))==null?void 0:Y.onPlaybackCommand;G&&this.ytComponentBehavior.resolveCommand(G)}};
_.H.maybeCreateIntersectionObserver=function(){var Y=this,G=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==G){this.intersectionObserverThreshold=G;var u={rootMargin:"0px",threshold:G},O;(O=this.intersectionObserver)==null||O.disconnect();this.intersectionObserver=new IntersectionObserver(function(Q){Q=_.E(Q);for(var M=Q.next();!M.done;M=Q.next())if(M=M.value,M.intersectionRatio>G){M=Number(M.target.id);if(isNaN(M))break;if(M===Y.index)break;
_.JMa();Y.loadVideo(M);_.m7("r_vtc")}},u);
this.observeShorts()}};
_.H.observeShorts=function(){var Y,G,u=(((Y=this.shortsProcessedPrevSequence)==null?void 0:Y.length)||0)+(((G=this.shortsProcessedSequence)==null?void 0:G.length)||0);this.carouselContainers.length<u&&(this.carouselContainers=[].concat(_.c8(_.l0(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))));Y=_.E(this.carouselContainers);for(G=Y.next();!G.done;G=Y.next())G=G.value,u=void 0,(u=this.intersectionObserver)==null||u.observe(G)};
_.H.initCsi=function(){yvy("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var Y={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"}},G,u;if((G=this.playerData)==null?0:(u=G.cacheMetadata)==null?0:u.isCacheHit)Y.isCacheHit=!0;var O;if(G=(O=_.z(this.currentEndpoint,_.Qa))==null?void 0:
O.prefetchTaskId)Y.prefetchInfo={taskId:G};_.kN(Y)};
_.H.isAd=function(){var Y,G;return!!((Y=_.z(this.currentEndpoint,_.Qa))==null?0:(G=Y.adClientParams)==null?0:G.isAd)};
_.H.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.H.getPlayerContainer=function(){var Y;return(Y=_.l0(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:Y.playerContainer};
_.H.onPlayerStateChange=function(Y){var G=this;this.isPlayerPaused=Y===2;Y!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?Y===1&&this.index===0&&(this.isPlayerStarted||_.Zs().dispatch(Uo9(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Zs().dispatch(Uo9(!0)));this.player&&!this.player.getLoopVideo()&&_.AN.addLowPriorityJob(function(){G.getShortsLoopSetting().then(function(u){var O;(O=G.player)==null||O.setLoopVideo(u)})});
this.isPlayerPaused&&_.F("web_shorts_paused_state_logging")&&_.oK(_.FA(),[this.reelPlayerPausedStateRendererVe])};
_.H.isShortPlayable=function(){if(_.F("kevlar_playable_short_killswitch"))return!0;var Y;return(Y=this.playerData)!=null&&Y.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.H.setNormalPlaybackSpeed=function(){var Y=this,G,u;return _.a(function(O){if(O.nextAddress==1)return O.yield(Y.getPlayer().getPlayerPromise(),2);G=O.yieldResult;u=G.getPlaybackRate();u!==1&&(Y.storedPlaybackSpeed=u,G.setPlaybackRate(1));_.Sd(O)})};
_.H.restorePlaybackSpeed=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1)return Y.storedPlaybackSpeed===null?u.jumpTo(0):u.yield(Y.getPlayer().getPlayerPromise(),3);G=u.yieldResult;G.setPlaybackRate(Y.storedPlaybackSpeed);Y.storedPlaybackSpeed=null;_.Sd(u)})};
_.H.playerDataChanged=function(){var Y=this,G,u,O,Q,M,t,K,L,g;return _.a(function(P){if(P.nextAddress==1){G=Y.getPlayer();(u=Y.intersectionObserver)==null||u.disconnect();if(Y.playerData){if(((O=Y.playerData.videoDetails)==null?void 0:O.videoId)!==((Q=G.getPlayer())==null?void 0:Q.getVideoData().video_id)){M={};if(t=_.z(Y.currentEndpoint,_.Qa))M.watch_endpoint=t,t.endTimeSeconds&&(M.end=t.endTimeSeconds);G.loadVideoWithPlayerResponse(Y.playerData,M)}}else return P.return();return Y.player?P.jumpTo(2):
P.yield(G.getPlayerPromise(),3)}P.nextAddress!=2&&(Y.player=P.yieldResult,Y.JSC$22141_playerStateChangeListener=Y.onPlayerStateChange.bind(Y),Y.player.addEventListener("onStateChange",Y.JSC$22141_playerStateChangeListener),_.F("kevlar_client_enable_shorts_player_bootstrap")&&_.w4(),Y.scrollToVideoThrottle.fire(Y.index),Y.movePlayerToVideo(Y.index),_.AN.addLowPriorityJob(function(){Y.getShortsLoopSetting().then(function(I){var k;(k=Y.player)==null||k.setLoopVideo(I)})}),_.DJ4.resolve(Y.player),Y.player.syncVolume(),
Y.getPlayer().focusOnPlayer());
_.AN.addLowPriorityJob(function(){Y.observeShorts()},100);
K=Y.player.getPlayerState(Y.player.getPresentingPlayerType());K!==1||Y.isPlayerStarted||_.Zs().dispatch(Uo9(!0));Y.updateBackNavContainerWidth();L=_.z(Y.currentEndpoint,_.Qa);((g=L)==null?0:g.startTimeSeconds)&&Y.player.seekTo(L.startTimeSeconds);if(Y.JSC$22141_cinematicController||Y.cinematicsInitializeJobId)return P.return();Y.cinematicsInitializeJobId=_.AN.addLowPriorityJob(function(){Y.initCinematicController();Y.cinematicsInitializeJobId=void 0});
_.Sd(P)})};
_.H.onShortUndoDismiss=function(){var Y=this,G=vto().pop();G!==void 0&&(_.sk(this,function(){Y.showCardWithIndex(G)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.H.onShortsDismiss=function(Y){if(Y=Y.detail.reelDismissalActionRenderer)(Y=_.z(Y.onDismissalCompletionRenderer,Tmb))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:Y}}}),this.scrollAndDismissCard()};
_.H.processReelNonVideoContentDismissalCommand=function(Y){var G=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);Y=_.z(Y,xlj);this.activeDimissalTimeout=setTimeout(function(){G.scrollAndDismissCard()},Number(Y==null?void 0:Y.delayMs))};
_.H.scrollAndDismissCard=function(){var Y=this,G=this.index;vto().push(G);_.sk(this,function(){var u=Y.getPlayableNextIndex();u!==null&&(Y.hideCardWithIndex(G),Y.scrollToVideoThrottle.fire(u))})};
_.H.hideCardWithIndex=function(Y){if(Y=this.getActiveReelVideo(Y))Y.hidden=!0};
_.H.showCardWithIndex=function(Y){if(Y=this.getActiveReelVideo(Y))Y.hidden=!1};
_.H.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.H.activeChanged=function(Y){_.Zs().dispatch(_.V6({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:Y}}));if(Y)document.addEventListener("keydown",_.Jh(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var G;(G=this.player)==null||G.sendAbandonmentPing()}var u;(u=this.player)==null||u.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Jh(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.H.graftClientVisualElements=function(){if(this.data){var Y=_.M4();_.ROV(Y,_.v$({response:this.reelWatchSequenceResponse}));_.lq(Y,this.nextReelVe);_.lq(Y,this.prevReelVe);_.F("kevlar_shorts_auto_advance")&&(_.lq(Y,this.loopToggleOffVe),_.lq(Y,this.loopToggleOnVe));_.lq(Y,this.ambientModeToggleVe);_.oK(_.FA(),[this.nextReelVe,this.prevReelVe]);_.F("web_shorts_paused_state_logging")&&_.lq(Y,this.reelPlayerPausedStateRendererVe)}};
_.H.graftNvcRenderer=function(){var Y,G,u,O,Q=this.index<0?(Y=this.shortsProcessedPrevSequence)==null?void 0:(G=Y[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:G.command:(u=this.shortsProcessedSequence)==null?void 0:(O=u[this.index])==null?void 0:O.command;if(Q&&this.isNonVideoContentCommand(Q)){Y=_.z(Q,_.mP);var M,t;(Y=(M=_.z(Y==null?void 0:Y.renderer,_.S6R))==null?void 0:(t=M.loggingDirectives)==null?void 0:t.trackingParams)&&_.M4().graftServerVe(Y)}};
_.H.setActiveIndex=function(){_.sH().resolve(_.Hl).setActiveIndex(this.index)};
_.H.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.H.lazyUpdateMiniplayerData=function(){var Y=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.AN.addLowPriorityJob(function(){Y.updateMiniplayerData();Y.updateMiniplayerDataJobId=void 0}))};
_.H.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.AN.cancelJob(this.updateMiniplayerDataJobId)};
_.H.updateMiniplayerData=function(){var Y,G,u,O=_.sH().resolve(_.yo),Q={shortsData:this.getCurrentShort(),previousButtonDisabled:!((Y=this.prevButtonData)==null||!Y.isDisabled),nextButtonDisabled:!((G=this.nextButtonData)==null||!G.isDisabled),playabilityStatus:(u=this.playerData)==null?void 0:u.playabilityStatus};_.Rl(O,Q)};
_.H.resetPlayerLocation=function(){var Y=this.getPlayer();this.initialPlayerContainer&&Y.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.H.movePlayerToVideo=function(Y,G){var u=this;G=G===void 0?!0:G;var O=this.getActiveReelVideo(Y),Q=this.getPlayer();if(O){this.overlayContainer?O.appendChild(this.overlayContainer):(this.overlayContainer=_.l0(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,O.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||Q.appendTo(this.overlayContainer.playerContainer,void 0,!0));var M;(M=this.player)==null||M.setSize(NaN,NaN);this.isActive||_.AN.addJob(function(){u.isActive=
!0},0);
Q.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.F("reels_web_disable_rtr_tick")||_.F("reels_web_use_pbs_first_shorts")&&Y===0||_.pQ("r_tr");this.currentPlayerIndex=Y;O.appendChild(this.errorScreenContainer);var t;(t=this.JSC$22141_cinematicController)==null||j59(t)}else G?_.AN.addLowPriorityJob(function(){u.movePlayerToVideo(u.index,!1)}):Math.random()<=_.Jy("web_shorts_error_logging_threshold")&&_.ij(new _.I2("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:G,
index:Y}))};
_.H.getAspectRatio=function(Y){return(Y==null?0:Y.thumbnail)&&EGo(Y.thumbnail)?"--ytd-shorts-player-ratio: "+EGo(Y.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.H.getBackgroundImage=function(Y){if(Y!=null&&Y.thumbnail)return(Y=_.bq(Y.thumbnail.thumbnails))?'background-image:url("'+Y+'");':"background-color:black;"};
_.H.getBackgroundImageUrl=function(Y){if(Y!=null&&Y.thumbnail)return _.bq(Y.thumbnail.thumbnails)};
_.H.onPersistentPanelActiveChanged=function(){var Y,G=(Y=_.z(this.currentEndpoint,_.Qa))==null?void 0:Y.thumbnail;if(G&&EGo(G)!==.5625){var u;(u=this.player)==null||u.setSize(NaN,NaN)}};
_.H.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.H.moveCinematicsToVideo=function(){var Y=_.l0(this.hostElement).querySelector("ytd-reel-video-renderer");(Y==null?0:Y.cinematicContainer)&&Y.cinematicContainer!==this.shortsCinematicContainer.parentElement&&Y.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.H.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.H.updatePrevButtonData=function(){var Y=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);Y?this.prevButtonData=Y=Object.assign({},Y,{accessibility:{label:_.Q6("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.Q6("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=Y=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.H.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.H.updateNextButtonData=function(){var Y=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);Y&&(this.nextButtonData=Y=Object.assign({},Y,{accessibility:{label:_.Q6("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.Q6("NEXT_VIDEO_LABEL")||""}))};
_.H.getPlayablePreviousIndex=function(){for(var Y,G=this.index-1;G>=-(((Y=this.prevShortsSequence)==null?void 0:Y.length)||0);G--)if(!vto().includes(G))return G;return null};
_.H.getIndexInSequence=function(Y,G){return Y.findIndex(function(u){var O;return((O=_.z(u.command,_.Qa))==null?void 0:O.videoId)===G})};
_.H.handlePrevButtonClick=function(Y){var G=this,u,O;return _.a(function(Q){u=G.getPlayablePreviousIndex();if(u===null)return Q.return();G.gestureType=((O=Y)==null?void 0:O.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";u===0&&(G.hidePreviousButtonImmediately=!0);if(G.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){G.scrollToVideoThrottle.fire(u,"auto")}),Q.return();
G.scrollToVideoThrottle.fire(u);_.Sd(Q)})};
_.H.getPlayableNextIndex=function(){for(var Y,G=this.index+1;G<(((Y=this.shortsProcessedSequence)==null?void 0:Y.length)||0);G++)if(!vto().includes(G))return G;return null};
_.H.handleNextButtonClick=function(Y,G){var u=this,O,Q;return _.a(function(M){O=u.getPlayableNextIndex();if(O===null)return M.return();O===1&&(u.showPreviousButtonImmediately=!0);u.gestureType=((Q=Y)==null?void 0:Q.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";G&&(u.gestureType=G);if(u.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){u.scrollToVideoThrottle.fire(O,"auto")}),M.return();
u.scrollToVideoThrottle.fire(O);_.Sd(M)})};
_.H.handleReelNavigateCommand=function(Y,G,u){(Y=_.z(Y,r4V))&&G&&Y.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(u)};
_.H.loadVideo=function(Y,G){var u=this;G=G===void 0?!1:G;if(Y!==this.currentPlayerIndex){_.Zs().dispatch(Uo9(!1));if(this.isAd()&&!G){var O;(O=this.player)==null||O.notifyShortsAdSwipeEvent()}var Q;(Q=this.JSC$22141_cinematicController)==null||NyN(Q);var M;(M=this.JSC$22141_cinematicController)==null||SNN(M);O=Y>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(O));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var t,K,L,g;G=Y<0?(t=this.shortsProcessedPrevSequence)==null?void 0:(K=t[this.shortsProcessedPrevSequence.length+Y])==null?void 0:K.command:(L=this.shortsProcessedSequence)==null?void 0:(g=L[Y])==null?void 0:g.command;this.index=Y;this.gestureType||(this.gestureType=O?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");G&&this.isVideoContentCommand(G)&&(this.ytComponentBehavior.resolveCommand(G,
{form:{createScreenConfig:{clickedVisualElement:O?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(G&&this.isNonVideoContentCommand(G)){this.currentEndpoint=G;this.data=void 0;t=_.M4();K=_.z(G,_.mP);var P,I;(K=(P=_.z(K==null?void 0:K.renderer,_.S6R))==null?void 0:(I=P.screenLoggingData)==null?void 0:I.screenVeType)&&_.UL(t,K);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(P=this.getActiveReelVideo(Y))&&
P.appendChild(this.overlayContainer)}var k,n;P=_.F("web_shorts_early_continuation")?Y>0&&((k=this.reelWatchSequenceResponse)==null?void 0:k.entries)&&Y>=this.reelWatchSequenceResponse.entries.length-3:((n=this.reelWatchSequenceResponse)==null?void 0:n.entries)&&Y===this.reelWatchSequenceResponse.entries.length-1;var p;if(((p=this.reelWatchSequenceResponse)==null?0:p.continuationEndpoint)&&P){var W,C,e={contentPlaybackContext:_.vU({},(C=_.z((W=this.currentEndpoint)==null?void 0:W.commandMetadata,_.ug))==
null?void 0:C.url,window.location.href)};_.F("web_shorts_early_continuation")?this.continuationRequestPending||(_.AN.addJob(function(){u.ytComponentBehavior.resolveCommand(u.reelWatchSequenceResponse.continuationEndpoint,{form:e})},8),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:e})}var w,B;
Y=Y===-(((w=this.reelWatchSequenceResponse)==null?void 0:(B=w.prevEntries)==null?void 0:B.length)||0);var N,h;((N=this.reelWatchSequenceResponse)==null?0:N.prevContinuationEndpoint)&&((h=this.reelWatchSequenceResponse)==null?0:h.prevEntries)&&Y&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.H.setMiniplayerPreview=function(Y){Y=(Y===void 0?0:Y)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var G,u,O=_.sH().resolve(_.yo),Q={shortsData:void 0,shortsPreviewThumbnail:Y?(G=this.shortsProcessedSequence)==null?void 0:(u=G[Y])==null?void 0:u.thumbnail:void 0};_.Rl(O,Q)};
_.H.updateTitle=function(Y){var G,u;Y=(Y==null?0:Y.adSlots)?"":(u=Y==null?void 0:(G=Y.videoDetails)==null?void 0:G.title)!=null?u:"";_.$s(this.hostElement,"yt-update-title",Y)};
_.H.registerPanel=function(Y){var G=_.sH().resolve(_.IH);if(G){Y=_.E(Y.engagementPanels||[]);for(var u=Y.next();!u.done;u=Y.next()){u=u.value;var O=this.getPanelIdentifier(u.engagementPanelSectionListRenderer),Q=void 0,M=void 0;(M=(Q=G).registerPanelContent)==null||M.call(Q,O,u)}}};
_.H.getPanelIdentifier=function(Y){var G;return(Y==null?void 0:(G=Y.identifier)==null?void 0:G.tag)||(Y==null?void 0:Y.panelIdentifier)||(Y==null?void 0:Y.targetId)};
_.H.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Zs().dispatch(Uo9(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=[];_.Zs().dispatch(sso(!1));
var Y;(Y=this.shortsController)!=null&&(Y.dismissedIndices=[]);var G;(G=this.shortsController)!=null&&G.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.sH().resolve(_.yo).close(!0)};
_.H.processAppendReelWatchSequenceContinuationEntriesAction=function(Y){var G=this,u;(u=this.intersectionObserver)==null||u.disconnect();Y=Y.appendReelWatchSequenceContinuationEntriesAction;if(Y==null?0:Y.entries){var O;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.c8(((O=this.reelWatchSequenceResponse)==null?void 0:O.entries)||[]),_.c8(Y.entries)),continuationEndpoint:Y.continuationEndpoint})}else if(Y==null?0:Y.prevEntries){var Q;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.c8(((Q=this.reelWatchSequenceResponse)==null?void 0:Q.prevEntries)||[]),_.c8(Y.prevEntries)),prevContinuationEndpoint:Y.prevContinuationEndpoint});_.AN.addLowPriorityJob(function(){G.movePlayerToVideo(G.index);G.scrollToVideoThrottle.fire(G.index,"instant")})}else return;
_.AN.addLowPriorityJob(function(){G.observeShorts()},100)};
_.H.processWatchSequence=function(Y){var G=this;return Y.map(function(u){u=u.command;return G.isVideoContentCommand(u)?{thumbnail:_.z(u,_.Qa).thumbnail,command:u}:{command:u}})};
_.H.calculateIntersectionObserverThreshold=function(){var Y=_.l0(this.hostElement).querySelector("ytd-reel-video-renderer"),G=1;(Y==null?0:Y.offsetHeight)&&(Y==null?0:Y.offsetWidth)&&(G=Math.min(Y.offsetHeight,this.shortsContainer.offsetHeight)/Y.offsetHeight*(Math.min(Y.offsetWidth,this.shortsContainer.offsetWidth)/Y.offsetWidth));return Math.round(G*.6*10)/10};
_.H.isVideoContentCommand=function(Y){_.sH().resolve(_.Hl);return!!_.z(Y,_.Qa)};
_.H.isNonVideoContentCommand=function(Y){_.sH().resolve(_.Hl);return!!_.z(Y,_.mP)};
_.H.initCinematicController=function(){var Y=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22141_cinematicController=new e$(this.shortsCinematicContainer,this.player);var G,u=_.z((G=this.data)==null?void 0:G.background,Iq);bv9(this.JSC$22141_cinematicController,u);dBg(this.JSC$22141_cinematicController,$WN(u));h2y(this.JSC$22141_cinematicController);_.AN.addLowPriorityJob(function(){Y.moveCinematicsToVideo()})}};
_.H.handleMiniplayerNavigateShorts=function(Y){Y==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():Y==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.H.handleSignalActionToggleShortsPictureInPicture=function(){if(_.sH().resolve(_.yo).pictureInPictureSupported()){var Y=_.sH().resolve(_.Hl);if(_.F("web_shorts_pip")){var G=_.sH().resolve(_.yo);Y.isShortsPipActive()?G.deactivate():G.isMiniplayerActive()||(_.Qq().shortsPipActivation=!0,_.ZJ9(G))}}else(Y=this.player)==null||Y.togglePictureInPicture()};
_.Uk.Object.defineProperties(AI.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.reelWatchSequenceResponse)!=null&&Y.prevEntries)return this.processWatchSequence([].concat(_.c8(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.c8(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.reelWatchSequenceResponse)!=null&&Y.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var Y=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var G;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((G=this.shortsProcessedSequence)==null?void 0:G.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var u;G=_.z((u=this.firstShortsData)==null?void 0:u.command,_.Qa);if(G==null||!G.videoId)return this.shortsProcessedSequence;u=this.getIndexInSequence(this.shortsSequence,
G.videoId);if(u!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=u,_.AN.addLowPriorityJob(function(){Y.scrollToVideoThrottle.fire(Y.index,"auto");Y.movePlayerToVideo(Y.index)}));
return[].concat(_.c8(this.shortsSequence))}this.shortsProcessedPrevSequence||_.EA(_.AN,function(){Y.observeShorts()},100);
return[this.firstShortsData].concat(_.c8(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var Y=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;Y&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(Y)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 Y,G;return this.index===((Y=this.reelWatchSequenceResponse)==null?void 0:(G=Y.entries)==null?void 0:G.length)}var u;return!((u=this.reelWatchSequenceResponse)==null?0:u.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var Y;(Y=this.delayedActiveIndexUpdateDebouncer)==null||Y.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return this.isShortPlayable()||((G=_.z((Y=this.data)==null?void 0:Y.watchStatus,_.ciR))==null?void 0:(u=G.style)==null?void 0:u.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var Y=this,G=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),u;if((this.data||G)&&(((u=this.data)==null?0:u.engagementPanels)||this.isAd()||G)){G=!1;this.activePanel="shorts-comments-panel";var O;u=_.E(((O=this.data)==null?void 0:O.engagementPanels)||[]);for(O=u.next();!O.done;O=u.next())if(this.getPanelIdentifier(O.value.engagementPanelSectionListRenderer)===this.activePanel){G=!0;break}if(this.isPersistentPanelActive){var Q=
_.sH().resolve(_.IH);_.AN.addJob(function(){Q.showPanel({identifier:Y.activePanel,target:null})},0,100)}var M;
O=[].concat(_.c8(Object.values(((M=this.data)==null?void 0:M.engagementPanels)||{})));M=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);u=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return M===void 0&&u===void 0||(M==null?0:M.isDisabled)||(u==null?void 0:u.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!G?(G=O==null?void 0:O.findIndex(function(t){var K,L;return((K=t.engagementPanelSectionListRenderer)==null?void 0:(L=K.identifier)==null?void 0:L.tag)==="shorts-comments-panel"}),G===-1||G===void 0||O!=null&&O.splice(G,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Q6("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Q6("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:_.Q6("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Q6("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(_.c8(Object.values(O||
{})))):O}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var Y=this,G,u,O;if((G=this.playerData)==null?0:(u=G.playabilityStatus)==null?0:(O=u.errorScreen)==null?0:O.playerInterstitialRenderer)return _.AN.addLowPriorityJob(function(){Y.movePlayerToVideo(Y.index)}),this.playerData.playabilityStatus.errorScreen;
var Q,M;return((Q=this.data)==null?void 0:Q.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((M=this.data)==null?0:M.watchStatus)&&_.z(this.data.watchStatus,_.gwR)?(_.AN.addLowPriorityJob(function(){Y.movePlayerToVideo(Y.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Uk.Object.defineProperties(AI,{template:{configurable:!0,enumerable:!0,get:function(){if(WLb===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);WLb=Y}Y=WLb;return Y}}});
AI.prototype.onNextButtonDataChange=AI.prototype.onNextButtonDataChange;AI.prototype.onPrevButtonDataChange=AI.prototype.onPrevButtonDataChange;AI.prototype.onPersistentPanelActiveChanged=AI.prototype.onPersistentPanelActiveChanged;AI.prototype.lazyUpdateMiniplayerData=AI.prototype.lazyUpdateMiniplayerData;AI.prototype.onShortsPipActiveChanged=AI.prototype.onShortsPipActiveChanged;AI.prototype.setActiveIndex=AI.prototype.setActiveIndex;AI.prototype.graftNvcRenderer=AI.prototype.graftNvcRenderer;
AI.prototype.graftClientVisualElements=AI.prototype.graftClientVisualElements;AI.prototype.onActiveChanged=AI.prototype.onActiveChanged;AI.prototype.onShortsDismiss=AI.prototype.onShortsDismiss;AI.prototype.onShortUndoDismiss=AI.prototype.onShortUndoDismiss;AI.prototype.playerDataChanged=AI.prototype.playerDataChanged;AI.prototype.afterPlayerStarted=AI.prototype.afterPlayerStarted;AI.prototype.unhideCurrentOverlay=AI.prototype.unhideCurrentOverlay;AI.prototype.onServiceRequestCompleted=AI.prototype.onServiceRequestCompleted;
AI.prototype.engagementPanelsChanged=AI.prototype.engagementPanelsChanged;AI.prototype.onFullscreenChange=AI.prototype.onFullscreenChange;AI.prototype.onResize=AI.prototype.onResize;AI.prototype.setFirstShortsData=AI.prototype.setFirstShortsData;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],AI.prototype,"ytComponentBehavior",void 0);_.S([_.x(MB.YtPageBehavior),_.V("design:type",Object)],AI.prototype,"ytPageBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],AI.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.aZ),_.V("design:type",Object)],AI.prototype,"ironResizableBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],AI.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.rW),_.V("design:type",Object)],AI.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],AI.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],AI.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"playerData",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"reelWatchSequenceResponse",void 0);
_.S([_.R(),_.V("design:type",Object)],AI.prototype,"cachedReelWatchSequenceResponse",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"currentEndpoint",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"nextButtonData",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"prevButtonData",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"isPreviousPageShorts",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"index",void 0);
_.S([_.R(),_.V("design:type",Object)],AI.prototype,"delayedActiveIndex",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"playablePreviousIndex",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"player",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"isPlayerPaused",void 0);_.S([_.R({selector:ZUb}),_.V("design:type",Object)],AI.prototype,"isPlayerStarted",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"intersectionObserver",void 0);
_.S([_.R(),_.V("design:type",Number)],AI.prototype,"cinematicsInitializeJobId",void 0);_.S([_.R(),_.V("design:type",Number)],AI.prototype,"updateMiniplayerDataJobId",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"fitToVisibleBounds",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"pageSubtype",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],AI.prototype,"enablePreviousContinuation",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],AI.prototype,"shortsPipEnabled",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],AI.prototype,"isDark",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],AI.prototype,"shortsViewTransitions",void 0);_.S([_.R({selector:_.$C,reflectToAttribute:!0}),_.V("design:type",Object)],AI.prototype,"isFullscreen",void 0);
_.S([_.R({selector:_.qv,reflectToAttribute:!0}),_.V("design:type",Object)],AI.prototype,"isShortsPipActive",void 0);_.S([_.Ox("#shorts-inner-container"),_.V("design:type",HTMLElement)],AI.prototype,"shortsInnerContainer",void 0);_.S([_.Ox("#back-nav-button ytd-button-renderer"),_.V("design:type",_.jZ)],AI.prototype,"backNavButton",void 0);_.S([_.Ox("#shorts-container"),_.V("design:type",HTMLElement)],AI.prototype,"shortsContainer",void 0);
_.S([vS("error-screen"),_.V("design:type",HTMLElement)],AI.prototype,"errorScreenContainer",void 0);_.S([vS("player"),_.V("design:type",Object)],AI.prototype,"playerElement",void 0);_.S([vS("shorts-cinematic-container"),_.V("design:type",HTMLElement)],AI.prototype,"shortsCinematicContainer",void 0);_.S([vS("initial-player-container"),_.V("design:type",HTMLElement)],AI.prototype,"initialPlayerContainer",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"buttonOverride",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],AI.prototype,"anchoredPanelActive",void 0);_.S([_.R(),_.V("design:type",String)],AI.prototype,"activePanel",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"isActive",void 0);_.S([_.R({selector:wCB,reflectToAttribute:!0}),_.V("design:type",Object)],AI.prototype,"smallScreenPersistentPanel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],AI.prototype,"isPersistentPanelActive",void 0);
_.S([_.R(),_.V("design:type",Object)],AI.prototype,"smallScreenSqueezeBack",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],AI.prototype,"extractOverlay",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],AI.prototype,"useAspectRatio",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"continuationRequestPending",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"shortsController",void 0);
_.S([_.R(),_.V("design:type",Object)],AI.prototype,"panelContainer",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"overlayContainer",void 0);_.S([_.R(),_.V("design:type",Array)],AI.prototype,"carouselContainers",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"isShortsInitialized",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"firstShortsData",void 0);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"firstShortsDataModel",void 0);
_.S([_.f("reelWatchSequenceResponse"),_.V("design:type",Object),_.V("design:paramtypes",[])],AI.prototype,"prevShortsSequence",null);_.S([_.f("data","prevShortsSequence"),_.V("design:type",Object),_.V("design:paramtypes",[])],AI.prototype,"shortsProcessedPrevSequence",null);_.S([_.f("reelWatchSequenceResponse"),_.V("design:type",Object),_.V("design:paramtypes",[])],AI.prototype,"shortsSequence",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"setFirstShortsData",null);_.S([_.f("data","shortsSequence","firstShortsData"),_.V("design:type",Object),_.V("design:paramtypes",[])],AI.prototype,"shortsProcessedSequence",null);
_.S([_.R({reflectToAttribute:!0}),_.f("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],AI.prototype,"isUpArrowHidden",null);_.S([_.R({reflectToAttribute:!0}),_.f("reelWatchSequenceResponse","index","endOfNextContinuation"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],AI.prototype,"isDownArrowHidden",null);
_.S([_.R(),_.f("index"),_.V("design:type",Number),_.V("design:paramtypes",[])],AI.prototype,"activeIndex",null);_.S([_.f("isShortPlayable","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],AI.prototype,"shouldRenderOfflineContent",null);_.S([_.Yo("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"onResize",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],AI.prototype,"anchoredEngagementPanels",null);
_.S([_.R(),_.V("design:type",Object)],AI.prototype,"watchWhileEngagementPanels",void 0);_.S([_.GO("isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"onFullscreenChange",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"engagementPanelsChanged",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],AI.prototype,"onServiceRequestCompleted",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"unhideCurrentOverlay",null);_.S([_.GO("isPlayerStarted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"afterPlayerStarted",null);
_.S([_.f("playerData","reelWatchSequenceResponse","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],AI.prototype,"errorScreen",null);_.S([_.f("errorScreen"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],AI.prototype,"hasError",null);_.S([_.GO("playerData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],AI.prototype,"playerDataChanged",null);
_.S([_.Yo("yt-dismissible-item-undo-feedback"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"onShortUndoDismiss",null);_.S([_.Yo("yt-disable-lockup-interaction"),_.V("design:type",Function),_.V("design:paramtypes",[Object]),_.V("design:returntype")],AI.prototype,"onShortsDismiss",null);_.S([_.Ex("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"onActiveChanged",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"graftClientVisualElements",null);_.S([_.GO("currentPlayerIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"graftNvcRenderer",null);_.S([_.GO("index"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"setActiveIndex",null);
_.S([_.GO("isShortsPipActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"onShortsPipActiveChanged",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"lazyUpdateMiniplayerData",null);_.S([_.R(),_.V("design:type",Object)],AI.prototype,"onOverlayDensityChanged",void 0);
_.S([_.GO("isPersistentPanelActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"onPersistentPanelActiveChanged",null);_.S([_.GO("index","data","isUpArrowHidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"onPrevButtonDataChange",null);_.S([_.GO("index","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AI.prototype,"onNextButtonDataChange",null);
_.S([_.pD({is:"ytd-shorts"})],AI);var DTV;var huw;var dTN;var oa=function(){return _.Z.apply(this,arguments)||this};
_.m(oa,_.Z);oa.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],oa.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],oa.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],oa);
_.d(oa,"ytd-compact-tvfilm-entry-point-renderer",function(){if(dTN!==void 0)return dTN;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return dTN=Y},{mode:1});var bnV;var SZw;var Niy;var iW=function(){return _.Z.apply(this,arguments)||this};
_.m(iW,_.Z);iW.prototype.ready=function(){this.initializeDefs()};
iW.prototype.initializeDefs=function(){var Y=this.meta.byKey("yt-icons"),G=_.l0(Y).querySelector("#star"),u=_.l0(Y).querySelector("#star_half");Y=_.l0(Y).querySelector("#star_border");G&&this.defs.appendChild(G.cloneNode(!0));u&&this.defs.appendChild(u.cloneNode(!0));Y&&this.defs.appendChild(Y.cloneNode(!0))};
iW.prototype.percentChanged=function(){for(var Y=this.rating;Y.firstChild;)Y.removeChild(Y.firstChild);var G=Math.round(this.percent/10);Y=Math.floor(G/2);G%=2;var u=5-Y-G;this.appendStars("star",Y,0);this.appendStars("star_half",G,Y);this.appendStars("star_border",u,Y+G)};
iW.prototype.appendStars=function(Y,G,u){for(var O=0;O<G;O++){var Q=(18+this.spacing)*(O+u),M=document.createElementNS("http://www.w3.org/2000/svg","use");Aox(M,"#"+Y);M.setAttribute("x",""+Q);M.setAttribute("y","0");this.rating.appendChild(M)}};
iW.prototype.percentChanged=iW.prototype.percentChanged;_.S([_.Ox("#defs"),_.V("design:type",HTMLElement)],iW.prototype,"defs",void 0);_.S([_.Ox("#rating"),_.V("design:type",HTMLElement)],iW.prototype,"rating",void 0);_.S([_.R(),_.V("design:type",Number)],iW.prototype,"percent",void 0);_.S([_.R({value:6}),_.V("design:type",Number)],iW.prototype,"spacing",void 0);_.S([_.R({value:_.Eq.create("iron-meta",{type:"iconset"})}),_.V("design:type",_.HT)],iW.prototype,"meta",void 0);
_.S([_.GO("percent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iW.prototype,"percentChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-ratings"})],iW);
_.d(iW,"ytd-ratings",function(){if(Niy!==void 0)return Niy;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Niy=Y},{mode:1});var jCg=function(){return _.Z.apply(this,arguments)||this};
_.m(jCg,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],jCg.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],jCg.prototype,"data",void 0);_.S([_.pD({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],jCg);
_.d(jCg,"ytd-offer-review-renderer",function(){if(SZw!==void 0)return SZw;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return SZw=Y},{mode:1});var Ra=function(){var Y=_.Z.apply(this,arguments)||this;Y.badges=[{textBadge:{label:_.i8("CC")}}];return Y};
_.m(Ra,_.Z);_.H=Ra.prototype;_.H.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.H.dataChanged=function(){var Y=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(Y&&Y.commandMetadata&&_.z(Y.commandMetadata,_.Kk)&&_.z(Y.commandMetadata,_.Kk).fireAutomatically)_.sH().resolve(_.rH).resolveCommand(Y,{form:{element:this.hostElement}});else{var G;Y&&((G=_.z(Y,_.Kk))==null?0:G.fireAutomatically)&&_.sH().resolve(_.rH).resolveCommand(Y,{form:{element:this.hostElement}})}};
_.H.isEmptyContent=function(Y){return this.isStorefrontEntryPointEmpty(Y)&&this.shouldHideOfferModule(Y)};
_.H.isStorefrontEntryPointEmpty=function(Y){return!Y||!Y.storefrontEntryPoint};
_.H.shouldHideOfferModule=function(Y){return!!Y.hideVideoDetails};
_.H.isOfferModuleNavigationInactive=function(Y){return!Y.navigationEndpoint&&!Y.serviceEndpoint};
_.H.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.sH().resolve(_.rH).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Ra.prototype.dataChanged=Ra.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ra.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.V("design:type",Boolean)],Ra.prototype,"hidden",void 0);
_.S([_.R(),_.V("design:type",Object)],Ra.prototype,"badges",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ra.prototype,"dataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Ra);
_.d(Ra,"ytd-movie-offer-module-renderer",function(){if(bnV!==void 0)return bnV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return bnV=Y},{mode:1});var VWN;var lWx=function(){return _.Z.apply(this,arguments)||this};
_.m(lWx,_.Z);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],lWx.prototype,"componentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],lWx.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],lWx);
_.d(lWx,"ytd-media-masthead-renderer",function(){if(VWN!==void 0)return VWN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return VWN=Y},{mode:1});var Bib;_.hR(_.JYx,"course-metadata-view-model",{props:{data:_.wH,isOverlay:_.wH}});var wZ=function(){var Y=_.Z.apply(this,arguments)||this;Y.isMetadataVisible=!1;Y.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return Y};
_.m(wZ,_.Z);_.H=wZ.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 Y;if((Y=this.data)==null?0:Y.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.H.isExpandButtonToggled=function(){var Y,G;return(G=_.z((Y=this.data)==null?void 0:Y.expandMetadataButton,_.eD))==null?void 0:G.isToggled};
_.H.onVisibilityButtonClick=function(){var Y;if((Y=this.data)==null?0:Y.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.H.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
wZ.prototype.expanderChanged=wZ.prototype.expanderChanged;wZ.prototype.dataChanged=wZ.prototype.dataChanged;wZ.prototype.descriptionChanged=wZ.prototype.descriptionChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x([_.vZ.YtActionHandlerBehavior]),_.V("design:type",Object)],wZ.prototype,"actionHandlerBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],wZ.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],wZ.prototype,"isMetadataVisible",void 0);_.S([_.Ox("#expander"),_.V("design:type",Object)],wZ.prototype,"expander",void 0);_.S([_.GO("data.description"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wZ.prototype,"descriptionChanged",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wZ.prototype,"dataChanged",null);_.S([_.GO("isMetadataVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wZ.prototype,"expanderChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],wZ);
_.d(wZ,"ytd-tvfilm-offer-module-renderer",function(){if(Bib!==void 0)return Bib;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Bib=Y},{mode:2});var $Tx;var ZP=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return Y};
_.m(ZP,_.Z);ZP.prototype.dataChanged=function(){this.hostElement.hidden=!1};
ZP.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
ZP.prototype.onThumbnailTap=function(Y){this.data&&this.data.serviceEndpoint&&(_.sH().resolve(_.rH).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),Y.stopPropagation())};
ZP.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
ZP.prototype.dataChanged=ZP.prototype.dataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ZP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ZP.prototype,"rendererBehaviors",void 0);_.S([_.x([_.vZ.YtActionHandlerBehavior]),_.V("design:type",Object)],ZP.prototype,"actionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ZP.prototype,"data",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZP.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],ZP);
_.d(ZP,"ytd-unlimited-offer-module-renderer",function(){if($Tx!==void 0)return $Tx;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return $Tx=Y},{mode:1});var qZx;var sCg;var DP=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return Y};
_.m(DP,_.Z);DP.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
DP.prototype.handleRelatedChipCommand=function(Y){Y=_.z(Y,Ulo);var G=Y.contents;G?_.sK(this.hostElement,"yt-item-section-replace-action",[G,Y.targetSectionIdentifier]):_.sK(this.hostElement,"yt-item-section-continuation-action",[Y.continuationData,Y.targetSectionIdentifier])};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],DP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],DP.prototype,"actionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],DP.prototype,"data",void 0);_.S([_.Ff({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],DP);
_.d(DP,"yt-related-chip-cloud-renderer",function(){if(sCg===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;qZx===void 0&&(qZx=document.createElement("template"));var O=qZx;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);sCg=Y}Y=sCg;return Y},{mode:2});var hI=function(){var Y=_.Z.apply(this,arguments)||this;Y.isTwoColumns=!0;Y.watchFeedBigThumbs=_.F("kevlar_watch_feed_big_thumbs");Y.watchFeedBigThumbsOnLockup=_.F("web_watch_next_big_thumbs");Y.watchNextGridHideChips=_.F("kevlar_watch_grid_hide_chips");Y.eligibleToSwitchToGrid=!0;Y.disableShortsShelfHeightOverride=_.F("web_shorts_wn_shelf_ratio_tuning");Y.isWatchNextGrid=!1;Y.reuseComponents=!_.F("kevlar_watch_grid");Y.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return Y};
_.m(hI,_.Z);_.H=hI.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]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.F("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(){_.cm(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.H.resultsChanged=function(){if(this.data&&this.data.results){for(var Y=this.data.results,G=null,u=null,O=0;O<Y.length;O++)Y[O].relatedChipCloudRenderer?G=Y[O].relatedChipCloudRenderer:Y[O].itemSectionRenderer&&(u=Y[O].itemSectionRenderer);if(G&&u)for(this.set("data.continuations",[]),Y=_.z(G.content,_.UHl).chips,G=0;G<Y.length;G++)if(O=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",Y[G]),O.loadCached||!O.contents){O.contents=u.contents;break}}};
_.H.dataChanged=function(){var Y=this,G;if((G=this.data)!=null&&G.results&&this.hasAllowedInstreamAd(this.playerData)){if(G=this.data.results.filter(function(K){return!!K.promotedSparklesWebRenderer})){for(var u=0;u<G.length;u++){var O=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",G[u]);
if(O)for(var Q=0;Q<O.length;Q++)O[Q]&&O[Q].baseUrl&&_.jV(O[Q].baseUrl)}this.set("data.results",this.data.results.filter(function(K){return!K.promotedSparklesWebRenderer}))}if(G=this.data.results.filter(function(K){return!!Y.getSparklesAd(K)})){G=_.E(G);
for(Q=G.next();!Q.done;Q=G.next())if(O=u=void 0,Q=(u=this.getSparklesAd(Q.value))==null?void 0:(O=u.errorCommand)==null?void 0:O.loggingUrls)for(u=_.E(Q),O=u.next();!O.done;O=u.next())(O=O.value)&&O.baseUrl&&_.jV(O.baseUrl);var M,t;this.set("data.results",(M=this.data)==null?void 0:(t=M.results)==null?void 0:t.filter(function(K){return!K.adSlotRenderer}))}}};
_.H.getSparklesAd=function(Y){var G,u;Y=_.z((G=Y.adSlotRenderer)==null?void 0:(u=G.fulfillmentContent)==null?void 0:u.fulfilledLayout,_.PPV);return _.z(Y==null?void 0:Y.renderingContent,Yug)};
_.H.hasAllowedInstreamAd=function(Y){Y=this.get("adPlacements",Y)||[];for(var G=0;G<Y.length;G++){var u=this.get("adPlacementRenderer.config.adPlacementConfig",Y[G]);if(u&&u.suppressDisplayAd)return!0}return!1};
_.H.computeHideUnlimitedOfferModule=function(Y,G){return Y&&Y.offerModule&&G&&Y.offerModule.unlimitedOfferModuleRenderer&&Y.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(G)?!0:!1};
_.H.hideUnlimitedOfferModuleChanged=function(){var Y=_.l0(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");Y&&(Y.hidden=this.hideUnlimitedOfferModule)};
_.H.updateLockupContainerTypes=function(Y){if(this.eligibleToSwitchToGrid){var G;(G=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||G.forEach(function(u){u.containerType=Y})}};
_.H.computeHideTvfilmOfferModule=function(Y,G){var u,O;return!!((Y==null?0:(u=Y.offerModule)==null?0:(O=u.tvfilmOfferModuleRenderer)==null?0:O.clientShouldSuppressIfCompanionAdDisplayed)&&G&&this.hasCompanionAds(G))};
_.H.hideTvfilmOfferModuleChanged=function(){var Y=_.l0(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");Y&&(Y.hidden=this.hideTvfilmOfferModule)};
_.H.hasCompanionAds=function(Y){Y=this.get("adPlacements",Y)||[];for(var G=0;G<Y.length;G++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",Y[G]))return!0;var u=void 0,O=void 0,Q=void 0;if(!_.F("web_watch_top_banner_companion_check_killswitch")&&((u=Y[G])==null?0:(O=u.adPlacementRenderer)==null?0:(Q=O.renderer)==null?0:Q.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.H.hasSuppressedResults=function(Y){return Y==null?!0:Y.filter(function(G){return!G.continuationItemRenderer&&!G.compactPromotedVideoRenderer&&!G.promotedSparklesWebRenderer}).length===0};
_.H.computeShowButton=function(Y,G){return this.isWatchNextGrid?Y:Y||this.hasSuppressedResults(G)};
_.H.showButtonChanged=function(){if(this.isWatchNextGrid){var Y=_.l0(this.hostElement).querySelector("ytd-rich-grid-renderer");Y&&this.showButton!==null&&(Y.continuationShowButton=this.showButton)}else{Y=_.l0(this.hostElement).querySelector("yt-next-continuation");var G=_.l0(this.hostElement).querySelector("ytd-continuation-item-renderer"),u=_.l0(this.hostElement).querySelector("ytd-item-section-renderer");Y&&(Y.showButton=this.showButton);G&&(G.showButton=this.showButton);u&&(u.continuationShowButton=
this.showButton)}};
_.H.continuationTap=function(Y){var G;if(((G=this.data)==null?void 0:G.continuations)!=null&&Y.target.tagName==="TP-YT-PAPER-BUTTON")for(Y=this.data.continuations,G=0;G<Y.length;G++)Y[G].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(Y[G].nextContinuationData||{})};
_.H.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("shown-items-changed",this.shownItems))};
_.Uk.Object.defineProperties(hI.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.shownItems)==null||!Y.some(function(G){return!!G.lockupViewModel||G.compactVideoRenderer}))}}});
hI.prototype.shownItemsChangedForBinding=hI.prototype.shownItemsChangedForBinding;hI.prototype.showButtonChanged=hI.prototype.showButtonChanged;hI.prototype.hideTvfilmOfferModuleChanged=hI.prototype.hideTvfilmOfferModuleChanged;hI.prototype.updateLockupContainerTypes=hI.prototype.updateLockupContainerTypes;hI.prototype.hideUnlimitedOfferModuleChanged=hI.prototype.hideUnlimitedOfferModuleChanged;hI.prototype.dataChanged=hI.prototype.dataChanged;hI.prototype.resultsChanged=hI.prototype.resultsChanged;
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],hI.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.jx.YtLazyListBehavior),_.V("design:type",Object)],hI.prototype,"ytLazyListBehavior",void 0);_.S([_.x(_.hq.YtNextContinuationBehavior),_.V("design:type",Object)],hI.prototype,"ytNextContinuationBehavior",void 0);
_.S([_.x(_.DD),_.V("design:type",Object)],hI.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],hI.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],hI.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],hI.prototype,"playerData",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],hI.prototype,"autoFill",void 0);_.S([_.R({value:60}),_.V("design:type",Number)],hI.prototype,"targetFramerate",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],hI.prototype,"isTwoColumns",void 0);_.S([_.R(),_.V("design:type",Object)],hI.prototype,"shownItems",void 0);_.S([_.R({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.V("design:type",Boolean)],hI.prototype,"hideUnlimitedOfferModule",void 0);_.S([_.R({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.V("design:type",Boolean)],hI.prototype,"hideTvfilmOfferModule",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],hI.prototype,"watchFeedBigThumbs",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],hI.prototype,"watchFeedBigThumbsOnLockup",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],hI.prototype,"watchNextGridHideChips",void 0);_.S([_.R(),_.V("design:type",Object)],hI.prototype,"eligibleToSwitchToGrid",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],hI.prototype,"disableShortsShelfHeightOverride",void 0);_.S([_.R({selector:_.zS,reflectToAttribute:!0}),_.V("design:type",Object)],hI.prototype,"isGridViewEnabled",void 0);_.S([_.R({selector:_.W5t,reflectToAttribute:!0}),_.V("design:type",Object)],hI.prototype,"isSwatcherooActive",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],hI.prototype,"showMoreButton",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],hI.prototype,"isWatchNextGrid",void 0);_.S([_.R({computed:"computeShowButton(showMoreButton, data.results)"}),_.V("design:type",Boolean)],hI.prototype,"showButton",void 0);_.S([_.Ex("data.results.*"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hI.prototype,"resultsChanged",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hI.prototype,"dataChanged",null);_.S([_.GO("hideUnlimitedOfferModule"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hI.prototype,"hideUnlimitedOfferModuleChanged",null);_.S([_.f("isGridViewEnabled","containsLockups","data"),_.R({reflectToAttribute:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],hI.prototype,"lockupContainerType",null);
_.S([_.GO("lockupContainerType","data"),_.V("design:type",Function),_.V("design:paramtypes",[Number]),_.V("design:returntype")],hI.prototype,"updateLockupContainerTypes",null);_.S([_.GO("hideTvfilmOfferModule"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hI.prototype,"hideTvfilmOfferModuleChanged",null);_.S([_.GO("showButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hI.prototype,"showButtonChanged",null);
_.S([_.GO("shownItems"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hI.prototype,"shownItemsChangedForBinding",null);_.S([_.f("shownItems"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],hI.prototype,"containsLockups",null);
_.d(hI,"ytd-watch-next-secondary-results-renderer",function(){if(huw===void 0){var Y=document.createElement("template");_.r(Y,'\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" 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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);huw=Y}Y=huw;return Y},{mode:1});var c_b;var dZ=function(){var Y=_.Z.apply(this,arguments)||this;Y.currentPageUrl="";Y.baseUrl="";Y.isHiddenByUser=null;Y.hidden=!1;Y.showAboveScrim=!1;Y.watchNextGrid=_.F("kevlar_watch_grid");Y.modernButtons=_.F("web_modern_buttons");Y.roundedContainer=!0;Y.noBorder=!1;Y.roundBackground=!_.F("live_chat_round_background_killswitch");Y.overflowHideChat=_.F("live_chat_overflow_hide_chat");Y.forceDarkTheme=!1;Y.theaterWatchWhile=!1;Y.isListeningForPlayerProgress=!1;Y.JSC$22195_playerEvents=new Map;Y.isFrameReady=
!1;Y.player=null;Y.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 Y};
_.m(dZ,_.Z);_.H=dZ.prototype;_.H.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.sK(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.H.created=function(){var Y=this;this.handleIframeEventListener=function(G){Y.handleIframeEvent(G)};
this.handleKeyboardEventListener=function(G){Y.handleKeyboardEvent(G)};
this.JSC$22195_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22195_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22195_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22195_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22195_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(Y){var G="/live_chat";this.isChatReplay()&&(G="/live_chat_replay");return _.UR(_.cp(_.sR(_.bI(Y),G),null),"").toString()};
_.H.dataChanged=function(){_.F("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.H.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var Y=this.url;if(this.isChatReplay()&&this.player){var G=Math.floor(this.player.getProgressState().current*1E3);Y=_.NA(_.bI(Y),"playerOffsetMs",G.toString()).toString()}G=this.chatframe;try{var u=Y==="about:blank"?_.oxe:_.cs(Y),O=G.contentDocument.location,Q=_.Jz(u);Q!==void 0&&O.replace(Q)}catch(M){G.src=Y}}};
_.H.collapsedChanged=function(){_.$s(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.H.handleIframeEvent=function(Y){if(Y&&this.baseUrl.startsWith(Y.origin)&&Y.source===this.chatframe.contentWindow&&_.$a(Y.data))if(Y.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(Y);else if(Y.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(Y.data["yt-show-feedback-dialog"]){var G=_.sH().resolve(_.q3(_.w8o));if(G){var u=Y.ports,O;u&&u.length&&(O=function(){u[0].postMessage({})});
Y=Y.data["yt-show-feedback-dialog"];G.showFeedbackDialog(Y.customProductData,Y.feedbackContent,O,Y.bucket)}}else if(Y.data["yt-show-survey"])_.$s(this.hostElement,"yt-show-survey",Y.data["yt-show-survey"]);else if(Y.data["yt-purchase-membership"])_.sH().resolve(_.rH).resolveCommand(Y.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(Y.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(Y.data["yt-tunnel-out-live-service-request"]);else if(Y.data["yt-user-activity"])_.JN();
else if(Y.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(Y.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(Y.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(Y.data["yt-open-popup"]);else if(Y.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(Y.data["yt-log-flow-logging-event-command"]);else if(Y.data["yt-hide-live-chat"])this.onShowHideChat();else Y.data["yt-report-moderation-state-log"]&&
this.player&&(G={cpn:this.player.getVideoData().cpn},_.eK("liveChatBeingModerated",G))};
_.H.attachLiveChatResponseVeTrackingParams=function(Y){Y=_.Kd(Y);var G=_.FA(),u=_.So("liveChatRenderer.trackingParams",this.data);G&&u&&_.y6(G,_.Kd(u),Y)};
_.H.handleBuyflowMessages=function(Y){var G=Y.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,u=Y.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,O=Y.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.Tia(_.$2(_.R$),G.replace(/-/g,"+").replace(/_/g,"/"),function(Q){Y.ports[0].postMessage({success:!0,buyFlowResponse:Q})},void 0,function(Q){Y.ports[0].postMessage({success:!1,
error:Q&&Q.message||"Buyflow rejected without error."})},_.EU().get("hl"),void 0,function(){Y.ports[0].postMessage({closed:!0})},u,O)};
_.H.setupPlayerProgressRelay=function(){var Y=this;if(!this.isListeningForPlayerProgress){var G=_.jr();G!=null&&G.getPlayerPromise&&(G.getPlayerPromise().then(function(u){Y.playerApiReady(u)}),this.isListeningForPlayerProgress=!0)}};
_.H.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.H.playerApiReady=function(Y){this.setPlayer(Y)};
_.H.playerProgressHandler=function(){if(this.player){var Y=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":Y.current})}};
_.H.playerAdStartHandler=function(Y){this.postToContentWindow({"yt-player-ad-start":Y})};
_.H.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.H.playerStateChangeHandler=function(Y){this.postToContentWindow({"yt-player-state-change":Y})};
_.H.setPlayer=function(Y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22195_playerEvents);Y&&(this.player=Y,this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$22195_playerEvents),_.$s(this.hostElement,"player-api-ready"))};
_.H.liveChatPageUrl=function(Y,G,u,O){return!u||G?"about:blank":u.liveChatRenderer?(G=_.bI(this.currentPageUrl).JSC$10357_queryData_,x$b(G),Y=_.bI(Y),G.add("continuation",u.liveChatRenderer.continuations[0].reloadContinuationData.continuation),u=_.x3()==="USER_INTERFACE_THEME_DARK",(O||u)&&G.add("dark_theme","true"),_.cp(Y,G),O=_.bI(Y.toString()),u=O.JSC$10357_queryData_,"SESSION_INDEX"in _.wc&&(u.add("authuser",_.DE("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.wc&&u.add("pageId",_.DE("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.wc&&u.add("sdc",_.DE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),O.toString()):""};
_.H.isCollapsed=function(Y,G){return G!==null?G:this.isChatReplay()||Y&&Y.conversationBarRenderer&&Y.conversationBarRenderer.availabilityMessage?!0:Y?Y.liveChatRenderer?Y.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.F("live_chat_hide_premiere_replay_message")||Y.conversationBarRenderer&&Y.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.H.isHidden=function(Y,G,u){var O=G&&G.conversationBarRenderer&&G.conversationBarRenderer.availabilityMessage,Q=G&&G.liveChatRenderer&&G.liveChatRenderer.showHideButton,M=G&&G.liveChatRenderer&&G.liveChatRenderer.showButton;return u&&Y&&!O&&!M||!u&&Y&&!O&&!Q?!0:G&&G.liveChatRenderer&&G.liveChatRenderer.initialDisplayState?G.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.H.computeButtonOverride=function(Y,G){if(Y&&G)return{type:"outline"}};
_.H.setCollapsedState=function(Y){_.z(Y,_.FP1)&&((this.isHiddenByUser=!!_.z(Y,_.FP1).collapsed)||_.qZ(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.H.forwardReduxActionToIframe=function(Y){this.postToContentWindow({"yt-live-chat-forward-redux-action":Y})};
_.H.onLoopRangeChange=function(Y){this.showAboveScrim=!(Y==null||!Y.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(Y){this.postToContentWindow({"yt-live-chat-set-dark-theme":Y})};
_.H.onLiveChatBuyFlowCallback=function(Y){this.postToContentWindow({"yt-live-chat-buy-flow-callback":Y})};
_.H.handleKeyboardEvent=function(Y){(0,_.gX.containsValue)(N6w,Y.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:Y.type,keyCode:Y.keyCode}})};
_.H.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.H.postToContentWindow=function(Y){if(this.isFrameReady)try{var G=window.location.protocol+"//"+window.location.host,u;(u=this.chatframe)!=null&&u.contentWindow?this.chatframe.contentWindow.postMessage(Y,G):_.R0(new _.I2("Tried posting a message to an iframe with no content window",Y))}catch(O){_.o0(O)}};
_.H.shouldHideChatFrame=function(Y){return Y&&_.F("hide_live_chat_button_when_collapsed")};
_.Uk.Object.defineProperties(dZ.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.F("live_chat_overflow_hide_chat")||_.F("web_watch_chat_hide_button_killswitch"))return _.F("live_chat_overflow_hide_chat");var Y,G,u,O;return!!((Y=this.data)==null?0:(G=Y.liveChatRenderer)==null?0:(u=G.header)==null?0:(O=u.liveChatHeaderRenderer)==null?0:O.collapseButton)}}});
dZ.prototype.collapsedChanged=dZ.prototype.collapsedChanged;dZ.prototype.urlChanged=dZ.prototype.urlChanged;dZ.prototype.dataChanged=dZ.prototype.dataChanged;dZ.prototype.onShowHideChat=dZ.prototype.onShowHideChat;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],dZ.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],dZ.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.RV.YtPlayerListenerBehavior),_.V("design:type",_.wW)],dZ.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.x(_.cZ.YtOpenPopupBehavior),_.V("design:type",Object)],dZ.prototype,"ytOpenPopupBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],dZ.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],dZ.prototype,"currentPageUrl",void 0);
_.S([_.R({computed:"computeBaseUrl(currentPageUrl,data)"}),_.V("design:type",Object)],dZ.prototype,"baseUrl",void 0);_.S([_.R({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.V("design:type",String)],dZ.prototype,"url",void 0);_.S([_.R(),_.V("design:type",Object)],dZ.prototype,"isHiddenByUser",void 0);_.S([_.R({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.V("design:type",Object)],dZ.prototype,"hidden",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.V("design:type",Boolean)],dZ.prototype,"collapsed",void 0);_.S([_.R({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.V("design:type",Boolean)],dZ.prototype,"hideChatFrame",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],dZ.prototype,"showAboveScrim",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],dZ.prototype,"watchNextGrid",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],dZ.prototype,"modernButtons",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],dZ.prototype,"roundedContainer",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],dZ.prototype,"noBorder",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],dZ.prototype,"roundBackground",void 0);
_.S([_.R({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.V("design:type",Object)],dZ.prototype,"toggleButtonOverride",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],dZ.prototype,"overflowHideChat",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],dZ.prototype,"forceDarkTheme",void 0);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dZ.prototype,"enableShowWithoutHideChatButton",null);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],dZ.prototype,"theaterWatchWhile",void 0);_.S([_.Ox("#chatframe"),_.V("design:type",HTMLIFrameElement)],dZ.prototype,"chatframe",void 0);_.S([_.Yo("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dZ.prototype,"onShowHideChat",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dZ.prototype,"dataChanged",null);
_.S([_.GO("url"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dZ.prototype,"urlChanged",null);_.S([_.GO("collapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dZ.prototype,"collapsedChanged",null);_.S([_.pD({is:"ytd-live-chat-frame",disableElementRegistration:!0})],dZ);
_.d(dZ,"ytd-live-chat-frame",function(){if(c_b!==void 0)return c_b;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return c_b=Y},{mode:1});var UTw;var bW=function(){var Y=_.Z.apply(this,arguments)||this;Y.lastRenderedPanelIds=new Set;Y.visiblePanels=[];Y.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return Y};
_.m(bW,_.Z);_.H=bW.prototype;_.H.dataChanged=function(){if(this.data){for(var Y=[],G=_.E(this.data),u=G.next();!u.done;u=G.next()){u=u.value;var O=void 0,Q=void 0,M=(O=u)==null?void 0:(Q=O.engagementPanelSectionListRenderer)==null?void 0:Q.visibility;Q=O=void 0;((O=u)==null?0:(Q=O.engagementPanelSectionListRenderer)==null?0:Q.targetId)&&M!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Y.push(u)}this.visiblePanels=Y}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(Y){return this.visiblePanels.filter(function(G){var u;return((u=G.engagementPanelSectionListRenderer)==null?void 0:u.targetId)!==Y})};
_.H.onYtChangeEngagementPanelVisibilityAction=function(Y){var G=this,u=_.z(Y,_.p02);if(this.data&&(u==null?0:u.targetId)&&(u==null?0:u.visibility)){var O,Q=(O=this.data.find(function(t){var K;return((K=t.engagementPanelSectionListRenderer)==null?void 0:K.targetId)===u.targetId}))==null?void 0:O.engagementPanelSectionListRenderer;
if(Q){var M=this.withoutVisiblePanelById(u.targetId);u.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(Y=this.data.find(function(t){var K;return((K=t.engagementPanelSectionListRenderer)==null?void 0:K.targetId)===u.targetId}))&&(M=[Y].concat(_.c8(M)));
this.hideDelayMs&&u.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&M.length===0?_.AN.addJob(function(){Q.visibility=u.visibility;G.visiblePanels=M},10,this.hideDelayMs):(Q.visibility=u.visibility,this.visiblePanels=M);
_.sK(this.hostElement,"yt-engagement-panels-visible-changed",[M])}}};
_.H.onRendererstamperFinished=function(){var Y=new Set(this.visiblePanels.map(function(G){var u;return(u=G.engagementPanelSectionListRenderer)==null?void 0:u.targetId}));
this.handlePanelVisibilityChange(Y,this.lastRenderedPanelIds);this.lastRenderedPanelIds=Y};
_.H.handlePanelVisibilityChange=function(Y,G){Y=Y===void 0?new Set:Y;G=G===void 0?new Set:G;if(this.data)for(var u=_.E(this.data),O=u.next();!O.done;O=u.next()){O=O.value;var Q=void 0,M=void 0,t=(Q=O)==null?void 0:(M=Q.engagementPanelSectionListRenderer)==null?void 0:M.targetId;if(t&&(Q=G.has(t),M=Y.has(t),t=void 0,!Q&&M?(M=Q=void 0,t=(Q=O)==null?void 0:(M=Q.engagementPanelSectionListRenderer)==null?void 0:M.onShowCommands):Q&&!M&&(M=Q=void 0,t=(Q=O)==null?void 0:(M=Q.engagementPanelSectionListRenderer)==
null?void 0:M.onHideCommands),t))for(O=_.E(t),t=O.next();!t.done;t=O.next())this.ytComponentBehavior.resolveCommand(t.value)}};
bW.prototype.onRendererstamperFinished=bW.prototype.onRendererstamperFinished;bW.prototype.dataChanged=bW.prototype.dataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],bW.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],bW.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],bW.prototype,"lastRenderedPanelIds",void 0);_.S([_.R(),_.V("design:type",Number)],bW.prototype,"hideDelayMs",void 0);_.S([_.R(),_.V("design:type",Array)],bW.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Array)],bW.prototype,"visiblePanels",void 0);_.S([_.R(),_.V("design:type",Boolean)],bW.prototype,"isWatchWhilePanel",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bW.prototype,"dataChanged",null);_.S([_.Yo("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bW.prototype,"onRendererstamperFinished",null);_.S([_.pD({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],bW);
_.d(bW,"ytd-watch-engagement-panels",function(){if(UTw!==void 0)return UTw;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return UTw=Y},{mode:1});var vX9;var J_V;var Y8V=function(){return _.Z.apply(this,arguments)||this};
_.m(Y8V,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Y8V.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Y8V.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Y8V);
_.d(Y8V,"ytd-comments-entry-point-message-renderer",function(){if(J_V!==void 0)return J_V;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return J_V=Y},{mode:1});var GDx;var SH=function(){return _.Z.apply(this,arguments)||this};
_.m(SH,_.Z);_.Uk.Object.defineProperties(SH.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.teaserAvatar)}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],SH.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],SH.prototype,"hasAvatar",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],SH);
_.d(SH,"ytd-comments-entry-point-teaser-renderer",function(){if(GDx!==void 0)return GDx;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return GDx=Y},{mode:1});var uZx;var O4o=function(){return _.Z.apply(this,arguments)||this};
_.m(O4o,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],O4o.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],O4o.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],O4o);
_.d(O4o,"ytd-comments-simplebox-renderer",function(){if(uZx!==void 0)return uZx;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return uZx=Y},{mode:1});var Nq=function(){var Y=_.Z.apply(this,arguments)||this;Y.fullHeight=!_.F("comment_teaser_full_height_kill_switch")&&_.F("kevlar_watch_grid");return Y};
_.m(Nq,_.Z);Nq.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"}}}};
Nq.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Nq.prototype.onTap=function(){var Y=this.tapCommand;Y&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(Y))};
Nq.prototype.onKeyUp=function(Y){if(Y.keyCode===13)this.onTap()};
_.Uk.Object.defineProperties(Nq.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null?0:Y.onTap)return this.data.onTap}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)!=null&&Y.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Nq.prototype.onKeyUp=Nq.prototype.onKeyUp;Nq.prototype.onTap=Nq.prototype.onTap;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Nq.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Nq.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Nq.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Nq.prototype,"fullHeight",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nq.prototype,"tapCommand",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nq.prototype,"simpleboxPlaceholder",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Nq.prototype,"hasSimpleboxPlaceholder",null);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nq.prototype,"simpleboxAvatar",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nq.prototype,"teaserContent",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Nq.prototype,"hasTeaserContent",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nq.prototype,"teaserAvatar",null);
_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Nq.prototype,"hasTeaserAvatar",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nq.prototype,"messageText",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nq.prototype,"contentRenderer",null);_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Nq.prototype,"hasContents",null);
_.S([_.f("data"),_.R({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Nq.prototype,"hasContentRenderer",null);_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Nq.prototype,"onTap",null);_.S([_.Yo("keypress"),_.V("design:type",Function),_.V("design:paramtypes",[_.IO]),_.V("design:returntype")],Nq.prototype,"onKeyUp",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Nq);
_.d(Nq,"ytd-comments-entry-point-header-renderer",function(){if(vX9!==void 0)return vX9;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return vX9=Y},{mode:1});var QRj;_.hR(_.i_2,"yt-animated-rolling-number",{props:{numberText:_.AC,numberValue:_.AC,heightPx:_.AC,fontSizeMultiplier:_.AC,shouldAnimate:_.AC,forceRollUp:_.AC}});var Mvy=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),H4x={numberText:"",heightPx:2*Mvy,shouldAnimate:!1},jH=function(){var Y=_.Z.apply(this,arguments)||this;Y.usingAnimatedComponents=!0;Y.wasDetailed=!1;Y.JSC$22225_browserSupportsAnimation=_.F("web_supports_animations_api");Y.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};Y.detailed=!1;Y.shouldAnimate=!1;Y.viewCountProps=H4x;Y.dateTextProps=
H4x;Y.isEmpty=!1;Y.metadataBadgesInDescription=_.F("web_metadata_badges_in_description");return Y};
_.m(jH,_.Z);_.H=jH.prototype;_.H.computeIsEmpty=function(Y,G,u,O,Q,M,t,K){return!_.F("web_hide_watch_info_empty")||_.Ri(Y)?!1:G?!(_.Ri(u)||O||_.Ri(Q)||_.Ri(M)||t||_.Ri(K)):!0};
_.H.attached=function(){var Y=this;_.sH().resolve(_.vP).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(G){Y.set("videoPrimaryInfoRenderer.subtitle",G)})};
_.H.detached=function(){_.sH().resolve(_.vP).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.H.resetAnimationState=function(){this.shouldAnimate=!1};
_.H.updateDynamicMetadata=function(){if(this.JSC$22225_browserSupportsAnimation){if(!this.detailed){var Y,G,u,O;var Q=(Y=this.videoPrimaryInfoRenderer)==null?void 0:(G=Y.viewCount)==null?void 0:(u=G.videoViewCountRenderer)==null?void 0:(O=u.extraShortViewCount)==null?void 0:O.simpleText;var M,t,K,L;var g=(M=this.videoPrimaryInfoRenderer)==null?void 0:(t=M.viewCount)==null?void 0:(K=t.videoViewCountRenderer)==null?void 0:(L=K.shortViewCount)==null?void 0:L.simpleText}if(!g){var P,I,k,n;Q=(P=this.videoPrimaryInfoRenderer)==
null?void 0:(I=P.viewCount)==null?void 0:(k=I.videoViewCountRenderer)==null?void 0:(n=k.unlabeledViewCountValue)==null?void 0:n.simpleText;var p,W,C,e;g=(p=this.videoPrimaryInfoRenderer)==null?void 0:(W=p.viewCount)==null?void 0:(C=W.videoViewCountRenderer)==null?void 0:(e=C.viewCount)==null?void 0:e.simpleText}var w,B,N;Y=Number((w=this.videoPrimaryInfoRenderer)==null?void 0:(B=w.viewCount)==null?void 0:(N=B.videoViewCountRenderer)==null?void 0:N.originalViewCount);var h,q;w=(h=this.videoPrimaryInfoRenderer)==
null?void 0:(q=h.relativeDateText)==null?void 0:q.simpleText;var U;h=!((U=this.videoPrimaryInfoRenderer)==null||!U.relativeDateText);if(Q&&g&&Y&&(w||!h)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;U=g.split(new RegExp("("+Q+")"));Q=_.i8(U[0]);var Mj;g={numberText:(Mj=U[1])!=null?Mj:"",numberValue:Y,heightPx:2*Mvy,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Xt;Mj=((Xt=U[2])!=null?Xt:"")+"  ";this.setViewCount(g,Q,_.i8(Mj));if(!this.detailed&&
h){Q=w.split(/(\d+)/);Xt=_.i8(Q[0]);var ka;Mj={numberText:(ka=Q[1])!=null?ka:"",heightPx:2*Mvy,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var aU;ka=((aU=Q[2])!=null?aU:"")+"  ";this.setDateText(Mj,Xt,_.i8(ka))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.H.setViewCount=function(Y,G,u){_.Ri(G)!==_.Ri(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=G);this.viewCountProps.numberText!==(Y==null?void 0:Y.numberText)&&(this.viewCountProps=Y||H4x);_.Ri(u)!==_.Ri(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=u)};
_.H.setDateText=function(Y,G,u){_.Ri(G)!==_.Ri(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=G);this.dateTextProps.numberText!==(Y==null?void 0:Y.numberText)&&(this.dateTextProps=Y||H4x);_.Ri(u)!==_.Ri(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=u)};
_.H.onYtUpdateViewershipAction=function(Y){this.videoPrimaryInfoRenderer&&(_.z(Y,c4S).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.z(Y,c4S).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.z(Y,c4S).viewCount)))};
_.H.onYtUpdateDateTextAction=function(Y){if(this.videoPrimaryInfoRenderer){Y=_.z(Y,qvo).dateText;this.shouldAnimate=!0;var G;((G=this.videoPrimaryInfoRenderer)==null?0:G.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",Y):this.set("videoPrimaryInfoRenderer.dateText",Y)}};
_.Uk.Object.defineProperties(jH.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return V5g(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Ri(V5g(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Ri(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Ri(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Ri(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Ri(this.dateTextPostNumberText)].join("")}}});
jH.prototype.updateDynamicMetadata=jH.prototype.updateDynamicMetadata;jH.prototype.resetAnimationState=jH.prototype.resetAnimationState;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],jH.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],jH.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],jH.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],jH.prototype,"videoPrimaryInfoRenderer",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],jH.prototype,"detailed",void 0);_.S([_.R(),_.V("design:type",Object)],jH.prototype,"shouldAnimate",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],jH.prototype,"viewCountPreNumberText",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],jH.prototype,"viewCountProps",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],jH.prototype,"viewCountPostNumberText",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],jH.prototype,"dateTextPreNumberText",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],jH.prototype,"dateTextProps",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],jH.prototype,"dateTextPostNumberText",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeIsEmpty(infoText, usingAnimatedComponents, viewCountPreNumberText, viewCountProps.numberText, viewCountPostNumberText, dateTextPreNumberText, dateTextProps.numberText, dateTextPostNumberText)"}),_.V("design:type",Object)],jH.prototype,"isEmpty",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],jH.prototype,"metadataBadgesInDescription",void 0);_.S([_.f("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.V("design:type",Object),_.V("design:paramtypes",[])],jH.prototype,"infoText",null);
_.S([_.f("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.V("design:type",String),_.V("design:paramtypes",[])],jH.prototype,"descriptionInfoTooltipText",null);_.S([_.f("detailed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],jH.prototype,"showDescriptionInfoTooltip",null);
_.S([_.f("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.V("design:type",String),_.V("design:paramtypes",[])],jH.prototype,"animatedViewCountAccessibilityLabel",null);_.S([_.f("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.V("design:type",String),_.V("design:paramtypes",[])],jH.prototype,"animatedDateTextAccessibilityLabel",null);
_.S([_.GO("videoPrimaryInfoRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jH.prototype,"resetAnimationState",null);_.S([_.GO("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jH.prototype,"updateDynamicMetadata",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-watch-info-text"})],jH);
_.d(jH,"ytd-watch-info-text",function(){if(QRj!==void 0)return QRj;var Y=document.createElement("template");_.r(Y,'\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  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return QRj=Y},{mode:1});var EnV;var tvB="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var Kqb=_.D(function(Y){var G=Y.data;var u=Y.setTapCommand;_.RE(function(){var O=_.FS(G().onTap);u(O)},"CLm0Xe");
return _.T("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.T(_.HE,{data:function(){return G().avatar}},{avatarViewModel:_.z$}),_.T("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.T("span",null,function(){return G().simpleboxText})))},"Nk");var awy=_.D(function(Y){return _.T("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.T(_.X,{cond:function(){return _.z(Y.data().avatar,_.WE)},
then:function(G){return _.T(_.z$,{data:G,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.T("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.T(_.eO,{text:function(){return Y.data().teaserText}})))},"Ok");var TLw=_.D(function(Y){var G=Y.data;var u=Y.setTapCommand;_.RE(function(){var O=_.FS(G().onTap);u(O)},"qxjCCd");
return _.T("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.T(_.HE,{data:function(){return G().teasers}},{commentsEntryPointTeaserViewModel:awy}))},"Qk");var Lqo=_.D(function(Y){var G=Y.data;var u=Y.setTapCommand;_.RE(function(){var O=_.FS(G().onTap);u(O)},"CRZByf");
return _.T("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.T(_.eO,{text:function(){return G().messageText}}))},"Sk");var gnb=_.D(function(Y){var G=Y.data;var u=Y.setTapCommand;var O=Y.isDisabled;_.RE(function(){var Q=(O==null?0:O())?void 0:_.FS(G().onTap);u(Q)},"GZxRqd");
return _.T("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.T(_.GS,{icon:function(){return G().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.T(_.X,{cond:function(){return G().image},
then:function(Q){return _.T(_.RD,{data:Q,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.T(_.eO,{text:function(){return G().text},
className:function(){return G().image||G().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.T(_.HE,{data:function(){return G().button}},{buttonViewModel:function(Q){return _.T(_.$Y,{data:Q.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:O==null?void 0:O()}}})}}))},"Uk");var X5g=_.D(function(Y){var G=Y.data;var u=Y.itemIndex;var O=Y.selectedIndex;var Q=Y.indexUpdatedCallback;var M=Y.observer;Y=Y.title;var t=_.CH("yt-carousel-item-view-model",function(I){M&&M().observe(I)}),K=function(I){u()===O()&&Q(I)},L=_.Hx(nGy),g=_.Hx(_.fkI),P=function(){var I,k,n,p,W;
return((I=G())==null?void 0:I.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!L()||((k=G())==null?void 0:k.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((n=g())==null?void 0:n.includes("PAposts_by_host"))||((p=G())==null?void 0:p.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((W=g())==null?void 0:W.includes("PAyouchat"))};
return _.T("yt-carousel-item-view-model",{el:t,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":Y},_.T(_.HE,{data:function(){var I,k;return(k=(I=_.z(G().carouselItem,Ksx))==null?void 0:I.textCarousel)!=null?k:G().carouselItem}},{textCarouselItemViewModel:function(I){return _.T(gnb,{data:I.data,
setTapCommand:K,isDisabled:P})},
commentTeaserCarouselItemViewModel:function(I){return _.T(TLw,{data:I.data,setTapCommand:K})},
commentInputBoxCarouselItemViewModel:function(I){return _.T(Kqb,{data:I.data,setTapCommand:K})},
commentsEntryPointMessageViewModel:function(I){return _.T(Lqo,{data:I.data,setTapCommand:K})}}))},"Vk");var PQb=_.D(function(Y){var G=Y.numDots;var u=Y.activeIndex;return _.T("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.T(_.rc,{each:function(){return Array.from({length:G()})},
keyBy:"INDEX"},function(O,Q){return _.T("div",{class:function(){var M={};return _.PE("ytCarouselDotsShapeDot",(M.ytCarouselDotsShapeDotActive=Q===u(),M))}})}))},"Wk");var IwN=_.D(function(Y){var G=Y.data;var u=Y.handleCarouselNavigation;var O=Y.numItems;var Q=Y.selectedIndex;var M=function(){return{disabled:Q()===0}},t=function(){return{disabled:Q()===O()-1}};
return _.T("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.T("div",null,_.T("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return G().title}),_.T(_.X,{cond:function(){return G().subtitle},
then:function(K){return _.T("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return G().subtitleAccessibilityText}},K)}})),_.T(_.X,{cond:function(){return O()>1},
then:function(){return _.T("div",{class:"ytCarouselTitleViewModelNavigation"},_.T(PQb,{numDots:O,activeIndex:Q}),_.T(_.X,{cond:function(){return G().previousButton},
then:function(K){return _.T(_.HE,{data:K},{buttonViewModel:function(L){return _.T(_.$Y,{data:L.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return u(-1)},
buttonOverrides:M})}})}}),_.T(_.X,{cond:function(){return G().nextButton},
then:function(K){return _.T(_.HE,{data:K},{buttonViewModel:function(L){return _.T(_.$Y,{data:L.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return u(1)},
buttonOverrides:t})}})}}))}}))},"Xk");_.hR(_.D(function(Y){var G=Y.data;var u,O=_.CH("yt-video-metadata-carousel-view-model"),Q=_.CH("div",function(h){var q=function(){var U=h.offsetWidth*W(),Mj=24*(W()-1);k(U+Mj)};
q();window.ResizeObserver&&(u=new ResizeObserver(q),u.observe(h))}),M=_.DE("HTML_DIR")==="rtl",t=!1,K=0,L=0;
Y=_.E(_.IE(0,void 0,"M49TDf"));var g=Y.next().value,P=Y.next().value;Y=_.E(_.IE(0,void 0,"zLIok"));var I=Y.next().value,k=Y.next().value;Y=_.E(_.IE(!1,void 0,"bhelhc"));var n=Y.next().value,p=Y.next().value,W=function(){var h,q,U;return(U=(h=G())==null?void 0:(q=h.carouselTitles)==null?void 0:q.length)!=null?U:0},C=function(){Q.value&&Q.value.scrollLeft!==K&&P((M?Q.value.scrollLeft<K:Q.value.scrollLeft>K)?Math.min(g()+1,W()-1):Math.max(g()-1,0))},e;
window.IntersectionObserver&&(e=new IntersectionObserver(function(h){h=_.E(h);for(var q=h.next();!q.done;q=h.next())if(q.value.isIntersecting){if(t){t=!1;break}C()}else P(L)},{threshold:.2}));
_.RE(function(){if(Q.value){var h=(M?-1:1)*(I()/W()+12)*(n()&&e?L:g());typeof Q.value.scrollTo==="function"?Q.value.scrollTo({left:h,behavior:"smooth"}):Q.value.scrollLeft=h;K=h;L=n()&&e?L:g()}},"s9rbgc");
var w,B=function(h){w=h};
_.w_(function(){var h;(h=u)==null||h.disconnect();var q;(q=e)==null||q.disconnect()});
var N=function(h){h=g()+h;h>=0&&h<W()&&(t=!0,P(h))};
return _.T("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:O,"on:click":_.U3(function(h){if(_.nK(_.kC(h),O.value,["BUTTON".toString()])||!w)return!1;_.sH().resolve(_.rH).resolveCommand(w,{forceClickLogging:!0});return!1}),
"on:touchstart":_.U3(function(){p(!0);return!1}),
"on:touchend":_.U3(function(){e||C();p(!1);return!1}),
hidden:function(){var h,q;return!((h=G())==null?0:(q=h.carouselItems)==null?0:q.length)}},_.T("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.T(_.X,{cond:function(){return G().carouselTitles},
then:function(h){return _.T(_.HE,{data:function(){return h()[n()&&e?L:g()]}},{carouselTitleViewModel:function(q){return _.T(IwN,{data:q.data,
handleCarouselNavigation:N,numItems:W,selectedIndex:g})}})}})),_.T("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:Q},_.T("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+I()+"px;"}},_.T(_.X,{cond:function(){return G().carouselItems},
then:function(h){return _.T(_.rc,{each:h},function(q,U){return _.T(_.HE,{data:function(){return q}},{carouselItemViewModel:function(Mj){return _.T(X5g,{data:Mj.data,
itemIndex:U,selectedIndex:g,indexUpdatedCallback:B,observer:e,title:function(){a:{var Xt=U();var ka,aU=(ka=G())==null?void 0:ka.carouselTitles;if(aU&&(Xt=aU[Xt])){var Tg;Xt=(Tg=_.z(Xt,tQB))==null?void 0:Tg.title;break a}Xt=void 0}return Xt}})}})})}}))))},"Zk"),"yt-video-metadata-carousel-view-model",{props:{data:_.AC}});var Vu=function(){var Y=_.Z.apply(this,arguments)||this;Y.isHovering=!1;Y.enableColorSampling=_.F("web_delhi_colorful_sd");Y.metadataBadgesInDescription=_.F("web_metadata_badges_in_description");Y.descriptionCollapsed=!0;Y.useFadedScrimDescription=_.F("kevlar_enable_faded_scrim_on_description");Y.skinnyMode=!1;Y.playlist=!1;Y.isDark=document.documentElement.hasAttribute("dark");Y.disableVideoOwnerOnTap=_.F("swatchie_video_owner_on_tap_ks");Y.swatcherooDelayLoad=_.F("swatcheroo_enable_ghost_cards");
Y.primaryMenuWidth=0;Y.videoId="";Y.titleHeadlineXs=_.F("web_watch_typography_title_headline_xs");Y.titleHeadlineS=_.F("web_watch_typography_title_headline_s");Y.titleHeadlineM=_.F("web_watch_typography_title_headline_m");Y.titleHashtagBlackLinkified=_.F("web_title_hashtag_black_linkified");Y.titleHashtagGreyLinkified=_.F("web_title_hashtag_grey_linkified");Y.actionButtonsUpdateOwnerWidth=!0;Y.actionMap={"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction",
"yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};Y.isFullscreen=!1;Y.isTheaterMode=!1;return Y};
_.m(Vu,_.Z);_.H=Vu.prototype;_.H.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.H.updateOwnerAndDescriptionPosition=function(){_.F("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),WL(this.bottomRowElement,this.ownerElement)):(WL(this.bottomRowElement,this.descriptionElement),WL(this.topRowElement,this.ownerElement)))};
_.H.titleOnTap=function(Y){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.hf(_.wG(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var G;((G=window.getSelection())==null?0:G.toString().length)||this.handleExpandDescriptionCommands()}};
_.H.videoOwnerOnTap=function(Y){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.hf(_.wG(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.H.detached=function(){var Y=this,G;return _.a(function(u){(G=Y.resizeObserver)==null||G.disconnect();_.Sd(u)})};
_.H.maybeAttachResizeObserver=function(){var Y=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.JR(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){Y.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.H.maybeUpdateActionsOnSeparateLine=function(){this.skinnyMode?this.actionsOnSeparateLine=!0:this.primaryMenuWidth&&(this.actionsOnSeparateLine=this.primaryMenuWidth>this.hostElement.clientWidth-(this.ownerElement.clientWidth+32)?!0:!1)};
_.H.stripAttributedDescription=function(Y){return{content:Y.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:_.F("web_modern_buttons"),forceIconButton:!_.F("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:!0,forceIconOnly:!0}},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 Y;if((Y=this.videoPrimaryInfoRenderer)==null?0:Y.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.H.videoSecondaryInfoRendererChanged=function(){var Y,G;(Y=this.descriptionInlineExpander)==null||(G=Y.collapse)==null||G.call(Y);this.descriptionExpandClientVe=_.VZ(110509);this.descriptionCollapseClientVe=_.VZ(110510);Y=_.FA();G=_.nX();Y&&G&&(_.F("combine_ve_grafts")?(_.lq(_.M4(),this.descriptionExpandClientVe,G),_.lq(_.M4(),this.descriptionCollapseClientVe,G)):_.ey(Y,G,[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 Y=this;_.F("top_level_update_killswitch")||this.menu&&_.AN.addLowPriorityJob(function(){Y.menu.topLevelIconsOnly=Y.skinnyMode},_.Jy("swathceroo_delay_flexible_menu_update",100))};
_.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(!_.F("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var Y,G;(G=(Y=this.structuredDescriptionContentRendererElement).resize)==null||G.call(Y)}};
_.H.onRenderStamperFinished=function(Y){(Y==null?void 0:Y.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.H.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.H.onYtExpanderLessTapped=function(){var Y,G=(Y=this.videoSecondaryInfoRenderer)==null?void 0:Y.showLessCommand;G&&this.ytComponentBehavior.resolveCommand(G)};
_.H.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.H.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.H.onDescriptionClick=function(Y){if(!_.hf(_.wG(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var G;((G=window.getSelection())==null?0:G.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.F("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 Y=_.FA();Y&&this.descriptionCollapseClientVe&&_.RK(Y,this.descriptionCollapseClientVe)};
_.H.logExpandClick=function(){var Y=_.FA();Y&&this.descriptionExpandClientVe&&_.RK(Y,this.descriptionExpandClientVe)};
_.H.collapseDescription=function(){this.descriptionCollapsed=!0};
_.H.scrollToTopOfContainer=function(){_.qZ(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.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var Y,G;(G=(Y=this.descriptionInlineExpander).resize)==null||G.call(Y)}else _.R0(new _.I2("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));this.flexMenuEnabled&&(this.updatePrimaryMenuWidth(),this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine())};
_.H.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var Y,G,u=(G=(Y=_.l0(this.menu).querySelector("#button-shape"))==null?void 0:Y.clientWidth)!=null?G:0,O,Q;Y=((Q=(O=_.l0(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:O.clientWidth)!=null?Q:0)+8+u;var M,t;u=(t=(M=_.l0(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:M.children.length)!=null?t:2;Y<=8*u||(this.primaryMenuWidth=Y)}};
_.H.onYtUpdateTitleAction=function(Y){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.z(Y,sgw).title)};
_.H.onYtUpdateDescriptionAction=function(Y){if(Y=_.z(Y,_.Wu1)){var G,u=!((G=this.videoSecondaryInfoRenderer)==null||!G.attributedDescription);Y.isEmpty||!Y.description&&!Y.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):Y.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",Y.attributedDescription):Y.description&&(u?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.P3(Y.description)):this.set("videoSecondaryInfoRenderer.description",Y.description))}};
_.H.onYtDarkModeToggledAction=function(Y){this.isDark=Y};
_.H.registerPanel=function(){if(!_.F("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var Y=_.F("web_watch_imax_theater_mode")&&this.isTheaterMode;Y=_.F("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||Y;var G=_.sH().resolve(_.IH);G&&!Y&&G.registerPanel("engagement-panel-structured-description",this)}};
_.H.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.H.parseColorSamplingData=function(){var Y;if(_.F("web_delhi_colorful_sd")&&((Y=this.structuredDescriptionContentRenderer)==null?0:Y.items)&&(Y=this.structuredDescriptionContentRenderer.items.find(function(Q){return!!_.z(Q,ni)}))){var G,u;
this.hoverColor={lightTheme:(G=_.z(Y,ni))==null?void 0:G.lightThemeColorPalette,darkTheme:(u=_.z(Y,ni))==null?void 0:u.darkThemeColorPalette};var O;this.hoverText=(O=_.z(Y,ni))==null?void 0:O.colorSampledDescriptionBodyText}};
_.H.updateHoverColor=function(){if(_.F("web_delhi_colorful_sd")){var Y=this.hoverColor,G={},u;Y=(u=this.isDark?Y==null?void 0:Y.darkTheme:Y==null?void 0:Y.lightTheme)!=null?u:{};u=_.E(tvB);for(var O=u.next();!O.done;O=u.next()){O=O.value;var Q=Y[O];G["--yt-saturated-"+_.uc(O)]=Q?_.nB(Q):"initial"}_.cm(this.hostElement,G)}};
_.H.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.H.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.H.showPanel=function(Y){this.expandDescription();var G=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;G.resize();var u,O=Y==null?void 0:(u=Y.sectionListEngagementPanelExtras)==null?void 0:u.scrollToItemSectionIdentifier;O?_.AN.addJob(function(){G==null||G.scrollToSection(O)},8):this.scrollToTopOfContainer()};
_.H.isVisible=function(){return!this.descriptionCollapsed};
_.H.getReloadContinuation=function(){};
_.H.hidePanel=function(){};
_.H.updatePanel=function(){};
_.Uk.Object.defineProperties(Vu.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var Y;return _.F("web_delhi_colorful_sd")&&(Y=this.structuredDescriptionContentRenderer)!=null&&Y.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(G){return!_.z(G,ni)&&!_.z(G,YB9)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.structuredDescriptionContentRendererComputed)!=null&&Y.items){var G;Y=_.E((G=this.structuredDescriptionContentRendererComputed)==null?void 0:G.items);for(G=Y.next();!G.done;G=Y.next())if(G=_.z(G.value,_.gY1))return G}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.videoPrimaryInfoRenderer)==null?0:Y.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return!!((Y=this.videoSecondaryInfoRenderer)==null?0:(G=Y.owner)==null?0:(u=G.videoOwnerRenderer)==null?0:u.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var Y,G;if((Y=this.videoSecondaryInfoRenderer)==null?0:(G=Y.attributedDescription)==null?0:G.content){var u,O;return(O=this.stripAttributedDescription((u=this.videoSecondaryInfoRenderer)==null?void 0:u.attributedDescription))!=null?O:{runs:[]}}}if(_.F("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var Q,M,t,K;return(K=(t=(Q=this.videoSecondaryInfoRenderer)==
null?void 0:Q.description)!=null?t:(M=this.videoSecondaryInfoRenderer)==null?void 0:M.attributedDescription)!=null?K:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(G=(Y=this.videoSecondaryInfoRenderer)==null?void 0:Y.headerRuns)!=null?G:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.commentsEntryPointHeaderRenderer)==null||!Y.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.videoMetadataCarousel)==null||!Y.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Jy("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=Object.assign({},(Y=this.videoSecondaryInfoRenderer)==null?void 0:(G=Y.metadataRowContainer)==null?void 0:G.metadataRowContainerRenderer);if(u&&u.rows&&u.collapsedItemCount!==void 0&&!(u.rows.length<=u.collapsedItemCount))return u.rows=u.rows.slice(u.collapsedItemCount),u.collapsedItemCount=0,u}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var Y,G,u=Object.assign({},(Y=this.videoSecondaryInfoRenderer)==null?void 0:(G=Y.metadataRowContainer)==null?void 0:G.metadataRowContainerRenderer);if(u&&u.rows&&u.collapsedItemCount!==void 0)return u.rows=u.rows.slice(0,u.collapsedItemCount),u.collapsedItemCount=u.rows.length,u}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!!((Y=this.structuredDescriptionContentRendererComputed)==null?0:(G=Y.items)==null?0:G.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 Y;return(Y=this.videoSecondaryInfoRenderer)==null?void 0:Y.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return((Y=this.videoSecondaryInfoRenderer)==null?0:(G=Y.owner)==null?0:(u=G.videoOwnerRenderer)==null?0:u.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var Y,G,u,O;return!!((Y=this.videoPrimaryInfoRenderer)==null?0:(G=Y.videoActions)==null?0:(u=G.menuRenderer)==null?0:(O=u.flexibleItems)==null?0:O.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.ek(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.ek(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var Y=this;if(_.F("web_title_hashtag_grey_delinkified")){var G,u=_.gX.unsafeClone((G=this.videoPrimaryInfoRenderer)==null?void 0:G.title);(G=u==null?void 0:u.runs)&&G.forEach(function(O){if(O==null?0:O.navigationEndpoint)O.textColor=4284506208,Y.isDark&&(O.textColor=4289374890)});
return u}return(u=this.videoPrimaryInfoRenderer)==null?void 0:u.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.F("web_title_hashtag_black_delinkified")||_.F("web_title_hashtag_grey_delinkified")}}});
Vu.prototype.updateHoverColor=Vu.prototype.updateHoverColor;Vu.prototype.parseColorSamplingData=Vu.prototype.parseColorSamplingData;Vu.prototype.resetDescriptionState=Vu.prototype.resetDescriptionState;Vu.prototype.registerPanel=Vu.prototype.registerPanel;Vu.prototype.onYtExpanderLessTapped=Vu.prototype.onYtExpanderLessTapped;Vu.prototype.onYtExpanderMoreTapped=Vu.prototype.onYtExpanderMoreTapped;Vu.prototype.onRenderStamperFinished=Vu.prototype.onRenderStamperFinished;
Vu.prototype.onYtTextInlineExpanderExpandedChanged=Vu.prototype.onYtTextInlineExpanderExpandedChanged;Vu.prototype.onYtTextInlineExpanderCollapseClicked=Vu.prototype.onYtTextInlineExpanderCollapseClicked;Vu.prototype.onYtTextInlineExpanderExpandClicked=Vu.prototype.onYtTextInlineExpanderExpandClicked;Vu.prototype.moveActionsElement=Vu.prototype.moveActionsElement;Vu.prototype.updateTopLevelIconsOnly=Vu.prototype.updateTopLevelIconsOnly;Vu.prototype.structuredDescriptionContentRendererChanged=Vu.prototype.structuredDescriptionContentRendererChanged;
Vu.prototype.videoSecondaryInfoRendererChanged=Vu.prototype.videoSecondaryInfoRendererChanged;Vu.prototype.videoPrimaryInfoRendererChanged=Vu.prototype.videoPrimaryInfoRendererChanged;Vu.prototype.maybeUpdateActionsOnSeparateLine=Vu.prototype.maybeUpdateActionsOnSeparateLine;Vu.prototype.updateOwnerAndDescriptionPosition=Vu.prototype.updateOwnerAndDescriptionPosition;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Vu.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Vu.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Vu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Vu.prototype,"ytdReduxBehavior",void 0);
_.S([_.Ox("#above-the-fold"),_.V("design:type",HTMLElement)],Vu.prototype,"aboveTheFoldContainer",void 0);_.S([_.Ox("#menu ytd-menu-renderer"),_.V("design:type",Object)],Vu.prototype,"menu",void 0);_.S([_.Ox("#description-inline-expander"),_.V("design:type",Object)],Vu.prototype,"descriptionInlineExpander",void 0);_.S([_.Ox("#faded-structured-description"),_.V("design:type",Object)],Vu.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);
_.S([_.Ox("#structured-description"),_.V("design:type",Object)],Vu.prototype,"structuredDescriptionContentRendererElement",void 0);_.S([_.Ox("#title"),_.V("design:type",HTMLElement)],Vu.prototype,"titleElement",void 0);_.S([_.Ox("#description"),_.V("design:type",HTMLElement)],Vu.prototype,"descriptionElement",void 0);_.S([_.Ox("#description-interaction"),_.V("design:type",Object)],Vu.prototype,"descriptionInteraction",void 0);
_.S([_.Ox("#owner"),_.V("design:type",HTMLElement)],Vu.prototype,"ownerElement",void 0);_.S([_.Ox("#top-row"),_.V("design:type",HTMLElement)],Vu.prototype,"topRowElement",void 0);_.S([_.Ox("#bottom-row"),_.V("design:type",HTMLElement)],Vu.prototype,"bottomRowElement",void 0);_.S([_.Ox("#actions"),_.V("design:type",HTMLElement)],Vu.prototype,"actionsElement",void 0);_.S([_.Ox("#bottom-actions"),_.V("design:type",HTMLElement)],Vu.prototype,"bottomActionsElement",void 0);
_.S([_.Ox("#ytd-watch-info-text"),_.V("design:type",Object)],Vu.prototype,"watchInfoTextElement",void 0);_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"videoPrimaryInfoRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"videoSecondaryInfoRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"commentsEntryPointHeaderRenderer",void 0);
_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"videoMetadataCarousel",void 0);_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"structuredDescriptionContentRenderer",void 0);_.S([_.f("structuredDescriptionContentRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vu.prototype,"structuredDescriptionContentRendererComputed",null);_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"videoSummary",void 0);_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"merchShelf",void 0);
_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"ticketShelf",void 0);_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"infoPanelBelowMetadata",void 0);_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"hoverColor",void 0);_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"hoverText",void 0);_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"isHovering",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"enableColorSampling",void 0);
_.S([_.f("structuredDescriptionContentRendererComputed"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vu.prototype,"productShelf",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"metadataBadgesInDescription",void 0);_.S([_.f("videoPrimaryInfoRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vu.prototype,"shouldHideBadges",null);
_.S([_.f("productShelf","descriptionCollapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Vu.prototype,"shouldShowProductShelf",null);_.S([_.R(),_.V("design:type",Boolean)],Vu.prototype,"isWatchFlexy",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"descriptionCollapsed",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Vu.prototype,"useFadedScrimDescription",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"skinnyMode",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("videoSecondaryInfoRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vu.prototype,"largerItemWrap",null);_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"playlist",void 0);_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"clarifyBox",void 0);_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"playerAds",void 0);
_.S([_.R(),_.V("design:type",Boolean)],Vu.prototype,"isDark",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Vu.prototype,"actionsOnSeparateLine",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"disableVideoOwnerOnTap",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"swatcherooDelayLoad",void 0);_.S([_.R(),_.V("design:type",Boolean)],Vu.prototype,"suppressTopLevelMetadataRows",void 0);
_.S([_.R(),_.V("design:type",Object)],Vu.prototype,"primaryMenuWidth",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"videoId",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"titleHeadlineXs",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"titleHeadlineS",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"titleHeadlineM",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"titleHashtagBlackLinkified",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"titleHashtagGreyLinkified",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.S([_.Ex("skinnyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"updateOwnerAndDescriptionPosition",null);
_.S([_.Ex("skinnyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"maybeUpdateActionsOnSeparateLine",null);_.S([_.f("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vu.prototype,"descriptionText",null);
_.S([_.f("videoSecondaryInfoRenderer.headerRuns"),_.V("design:type",Array),_.V("design:paramtypes",[])],Vu.prototype,"headerRuns",null);_.S([_.R({value:!1}),_.f("commentsEntryPointHeaderRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vu.prototype,"hasTeaser",null);_.S([_.R({value:!1,reflectToAttribute:!0}),_.f("videoMetadataCarousel"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vu.prototype,"hasTeaserCarousel",null);
_.S([_.R({value:3}),_.f("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vu.prototype,"descriptionMaxLines",null);_.S([_.f("videoSecondaryInfoRenderer.metadataRowContainer"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vu.prototype,"collapsibleMetadataRows",null);
_.S([_.f("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vu.prototype,"alwaysVisibleMetadataRows",null);_.S([_.f("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Vu.prototype,"hasInlineStructuredDescription",null);
_.S([_.f("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Vu.prototype,"showInlineStructuredDescription",null);_.S([_.f("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vu.prototype,"descriptionExpandCommand",null);
_.S([_.f("videoSecondaryInfoRenderer.owner"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vu.prototype,"videoOwnerCommand",null);_.S([_.R({reflectToAttribute:!0}),_.f("videoPrimaryInfoRenderer.videoActions"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Vu.prototype,"flexMenuEnabled",null);_.S([_.R({selector:_.pz,reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"isFullscreen",void 0);
_.S([_.R({selector:_.Fm,reflectToAttribute:!0}),_.V("design:type",Object)],Vu.prototype,"isTheaterMode",void 0);_.S([_.f("descriptionText","useFadedScrimDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Vu.prototype,"showAttributedStringDescription",null);_.S([_.f("descriptionText","useFadedScrimDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Vu.prototype,"showFormattedStringDescription",null);
_.S([_.f("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Vu.prototype,"showFadedStructuredDescription",null);_.S([_.Ex("videoPrimaryInfoRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"videoPrimaryInfoRendererChanged",null);_.S([_.f("videoPrimaryInfoRenderer.title"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vu.prototype,"videoTitle",null);
_.S([_.f("videoPrimaryInfoRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vu.prototype,"noEndpoints",null);_.S([_.Ex("videoSecondaryInfoRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"videoSecondaryInfoRendererChanged",null);
_.S([_.GO("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"structuredDescriptionContentRendererChanged",null);_.S([_.GO("skinnyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"updateTopLevelIconsOnly",null);
_.S([_.GO("skinnyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"moveActionsElement",null);_.S([_.Yo("yt-text-inline-expander-expand-clicked"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.S([_.Yo("yt-text-inline-expander-collapse-clicked"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.S([_.Yo("yt-text-inline-expander-expanded-changed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.S([_.Yo("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Vu.prototype,"onRenderStamperFinished",null);_.S([_.Yo("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"onYtExpanderMoreTapped",null);_.S([_.Yo("yt-expander-less-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"onYtExpanderLessTapped",null);
_.S([_.GO("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"registerPanel",null);_.S([_.GO("videoSecondaryInfoRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"resetDescriptionState",null);
_.S([_.GO("structuredDescriptionContentRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"parseColorSamplingData",null);_.S([_.GO("hoverColor","isDark"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vu.prototype,"updateHoverColor",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Vu);
_.d(Vu,"ytd-watch-metadata",function(){if(EnV!==void 0)return EnV;var Y=document.createElement("template");_.r(Y,'\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    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" 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]]" detailed-description-override="[[!descriptionCollapsed]]" class="style-scope ytd-watch-metadata">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n            <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n            </yt-attributed-string>\n            \n            <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            </yt-formatted-string>\n            <ytd-structured-description-content-renderer id="faded-structured-description" data="[[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]]" ticket-shelf="[[ticketShelf]]" 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    </template>\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return EnV=Y},{mode:2});var lW=function(){var Y=_.Z.apply(this,arguments)||this;Y.hidden=!1;Y.errorScreen=null;Y.playlistData={};return Y};
_.m(lW,_.Z);_.H=lW.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:PL(["aa","eocs"])}}};
_.H.onActiveChanged=function(){_.Zs().dispatch(usy(this.ytPageBehavior.active))};
_.H.playerDataChanged=function(){var Y;(Y=this.watchController)==null||Y.setPlayerResponse(this.playerData)};
_.H.dataChanged=function(){var Y;(Y=this.watchController)==null||Y.setWatchNextResponse(this.data)};
_.H.sizeChanged=function(){var Y,G;(G=(Y=this.metadata).resize)==null||G.call(Y)};
_.H.attached=function(){this.watchController=new dy(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.H.detached=function(){_.ZM(this.watchController);this.watchController=void 0};
_.H.getPlayerContainer=function(){return this.playerContainer};
_.H.getElement=function(Y){switch(Y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.H.provideRenderingData=function(Y,G){switch(Y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=G;break;case "ERROR_SCREEN":this.errorScreen=G!=null?G:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=G;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=G;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=G;break;case "RICH_METADATA":this.richMetadataRowContainer=G;break;case "CLARIFICATION":this.clarificationData=G;break;case "PLAYLIST":this.playlistData=
G!=null?G:{};break;case "MERCH_SHELF":this.merchShelf=G;break;case "TICKET_SHELF":this.ticketShelf=G;break;case "LIMITED_STATE":this.limitedState=G;break;case "DONATION_SHELF":this.donationShelf=G;break;case "ALERTS":this.alerts=G}};
_.Uk.Object.defineProperties(lW.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return!this.hidden&&!!((Y=this.data)==null?0:(G=Y.contents)==null?0:(u=G.twoColumnWatchNextResults)==null?0:u.conversationBar)}}});
lW.prototype.sizeChanged=lW.prototype.sizeChanged;lW.prototype.dataChanged=lW.prototype.dataChanged;lW.prototype.playerDataChanged=lW.prototype.playerDataChanged;lW.prototype.onActiveChanged=lW.prototype.onActiveChanged;_.S([_.x(MB.YtPageBehavior),_.V("design:type",Object)],lW.prototype,"ytPageBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],lW.prototype,"ytComponentBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],lW.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],lW.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],lW.prototype,"playerData",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],lW.prototype,"hidden",void 0);_.S([_.Ox("#ytd-player"),_.V("design:type",HTMLElement)],lW.prototype,"ytdPlayer",void 0);_.S([_.Ox("#player-container"),_.V("design:type",HTMLElement)],lW.prototype,"playerContainer",void 0);_.S([_.Ox("#metadata"),_.V("design:type",Object)],lW.prototype,"metadata",void 0);_.S([_.Ox("#playlist"),_.V("design:type",HTMLElement)],lW.prototype,"playlistPanel",void 0);
_.S([_.R({selector:kLo,reflectToAttribute:!0}),_.V("design:type",Object)],lW.prototype,"fixie",void 0);_.S([_.R({selector:_.xma,reflectToAttribute:!0}),_.V("design:type",Object)],lW.prototype,"singleColumn",void 0);_.S([_.R({selector:function(Y){return _.Fm(Y)&&!_.pz(Y)},
reflectToAttribute:!0}),_.V("design:type",Object)],lW.prototype,"theater",void 0);_.S([_.R({selector:_.pz,reflectToAttribute:!0}),_.V("design:type",Object)],lW.prototype,"fullscreen",void 0);_.S([_.R({selector:Isb}),_.V("design:type",Object)],lW.prototype,"windowSize",void 0);_.S([_.R(),_.V("design:type",Object)],lW.prototype,"singleColumnContents",void 0);_.S([_.R(),_.V("design:type",Object)],lW.prototype,"errorScreen",void 0);_.S([_.R(),_.V("design:type",Object)],lW.prototype,"playlistData",void 0);
_.S([_.R(),_.V("design:type",Object)],lW.prototype,"videoPrimaryInfoRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],lW.prototype,"videoSecondaryInfoRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],lW.prototype,"richMetadataRowContainer",void 0);_.S([_.R(),_.V("design:type",Object)],lW.prototype,"clarificationData",void 0);_.S([_.R(),_.V("design:type",Object)],lW.prototype,"commentsEntryPointHeaderRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],lW.prototype,"ticketShelf",void 0);
_.S([_.R(),_.V("design:type",Object)],lW.prototype,"merchShelf",void 0);_.S([_.R(),_.V("design:type",Object)],lW.prototype,"donationShelf",void 0);_.S([_.R(),_.V("design:type",Object)],lW.prototype,"limitedState",void 0);_.S([_.R(),_.V("design:type",Object)],lW.prototype,"alerts",void 0);_.S([_.f("playlistData"),_.V("design:type",Object),_.V("design:paramtypes",[])],lW.prototype,"hasPlaylistData",null);
_.S([_.f("data","hidden"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],lW.prototype,"hasChat",null);_.S([_.GO("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lW.prototype,"onActiveChanged",null);_.S([_.GO("playerData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lW.prototype,"playerDataChanged",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lW.prototype,"dataChanged",null);_.S([_.GO("windowSize","singleColumn"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lW.prototype,"sizeChanged",null);
_.d(lW,"ytd-watch-fixie",function(){if(DTV===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);DTV=Y}Y=DTV;return Y},{mode:1});var kD9;var Bt=function(){var Y=_.Z.apply(this,arguments)||this;Y.viewTransitionEnabled=_.F("enable_player_resize_transition");Y.smallerChatMinHeight=_.F("live_chat_smaller_min_height");Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.defaultCollapsePlaylist=_.F("web_watch_default_collapse_playlist");Y.respectAspectRatio=_.F("web_enable_aspect_ratio_fix");Y.retroModeReduxValue=!1;Y.persistentPanelVisibleValue=!1;return Y};
_.m(Bt,_.Z);_.H=Bt.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(){_.F("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.H.updatePersistentPanelVisibleValue=function(){_.F("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.H.ready=function(){var Y=this,G=function(){Y.onColumnScroll()};
this.primary.addEventListener("scroll",G);this.secondary.addEventListener("scroll",G)};
_.H.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.H.updateIsTwoColumnsFromBinding=function(Y){_.F("web_watch_update_narrow_width_killswitch")||_.Zs().dispatch(OM9(!Y.detail.value));this.ytdWatchBehavior.isTwoColumns_=Y.detail.value};
_.H.updateFlexySmallWindowFromBinding=function(Y){this.ytdWatchBehavior.flexySmallWindow_=Y.detail.value};
_.H.updateFlexyLargeWindowFromBinding=function(Y){this.ytdWatchBehavior.flexyLargeWindow_=Y.detail.value};
_.H.updateWatchWhileWindowSizeSufficientFromBinding=function(Y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=Y.detail.value};
_.H.updateWatchNextCanShowMoreFromBinding=function(Y){this.ytdWatchBehavior.watchNextCanShowMore=Y.detail.value};
_.H.updateShownItemsFromBinding=function(Y){Y.detail.path?this.set(Y.detail.path,Y.detail.value):this.ytdWatchBehavior.watchNextShownItems=Y.detail.value};
_.H.getElement=function(Y){switch(Y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22248_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22248_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.Uk.Object.defineProperties(Bt.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.pageVisualEffects)return!1;for(var G=0;G<this.data.pageVisualEffects.length;G++)if(Y=_.z(this.data.pageVisualEffects[G],Iq))return G=void 0,(G=Y.config)==null?void 0:G.enableInLightTheme;return!1}}});
_.Uk.Object.defineProperties(Bt,{template:{configurable:!0,enumerable:!0,get:function(){if(kD9===void 0){var Y=document.createElement("template");_.r(Y,'\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="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy" hidden$="[[!showGhostMetadata]]">\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" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);kD9=Y}Y=kD9;return Y}}});
Bt.prototype.updatePersistentPanelVisibleValue=Bt.prototype.updatePersistentPanelVisibleValue;Bt.prototype.updateRetroModeReduxValue=Bt.prototype.updateRetroModeReduxValue;Bt.prototype.updateScrollTopValue=Bt.prototype.updateScrollTopValue;Bt.prototype.updateFullscreenValue=Bt.prototype.updateFullscreenValue;Bt.prototype.updateTheaterValue=Bt.prototype.updateTheaterValue;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Bt.prototype,"ytComponentBehavior",void 0);_.S([_.x(iPy.YtdWatchBehavior),_.V("design:type",Object)],Bt.prototype,"ytdWatchBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Bt.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Bt.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Bt.prototype,"playerData",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Bt.prototype,"viewTransitionEnabled",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Bt.prototype,"smallerChatMinHeight",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Bt.prototype,"isDarkTheme",void 0);_.S([_.R(),_.V("design:type",Object)],Bt.prototype,"defaultCollapsePlaylist",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Bt.prototype,"respectAspectRatio",void 0);
_.S([_.R({selector:_.Fm}),_.V("design:type",Object)],Bt.prototype,"theaterValue",void 0);_.S([_.R({selector:_.pz}),_.V("design:type",Object)],Bt.prototype,"fullscreenValue",void 0);_.S([_.R({selector:JF}),_.V("design:type",Object)],Bt.prototype,"scrollTopValue",void 0);_.S([_.R({selector:_.FX}),_.V("design:type",Object)],Bt.prototype,"miniplayerIsActive",void 0);_.S([_.R({selector:function(Y){return Y.watch.isWatchRetroMode}}),
_.V("design:type",Object)],Bt.prototype,"retroModeReduxValue",void 0);_.S([_.R({selector:_.A$.persistentPanelVisibleSelector}),_.V("design:type",Object)],Bt.prototype,"persistentPanelVisibleValue",void 0);_.S([vS("ytd-player"),_.V("design:type",HTMLElement)],Bt.prototype,"ytdPlayer",void 0);_.S([_.Ox("#playlist"),_.V("design:type",HTMLElement)],Bt.prototype,"JSC$22248_ytdPlaylistPanelRenderer",void 0);_.S([vS("ytd-comments"),_.V("design:type",HTMLElement)],Bt.prototype,"ytdComments",void 0);
_.S([_.Ox("#primary"),_.V("design:type",HTMLElement)],Bt.prototype,"primary",void 0);_.S([_.Ox("#secondary"),_.V("design:type",HTMLElement)],Bt.prototype,"secondary",void 0);_.S([_.Ox("#player-container"),_.V("design:type",HTMLElement)],Bt.prototype,"playerContainer",void 0);_.S([_.Ox("#below"),_.V("design:type",HTMLElement)],Bt.prototype,"below",void 0);_.S([_.Ox("#cinematics"),_.V("design:type",HTMLElement)],Bt.prototype,"JSC$22248_cinematics",void 0);
_.S([_.Ox("#persistent-panel-container"),_.V("design:type",HTMLElement)],Bt.prototype,"persistentPanelContainer",void 0);_.S([_.GO("theaterValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Bt.prototype,"updateTheaterValue",null);_.S([_.GO("fullscreenValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Bt.prototype,"updateFullscreenValue",null);
_.S([_.GO("scrollTopValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Bt.prototype,"updateScrollTopValue",null);_.S([_.GO("retroModeReduxValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Bt.prototype,"updateRetroModeReduxValue",null);_.S([_.GO("persistentPanelVisibleValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Bt.prototype,"updatePersistentPanelVisibleValue",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Bt.prototype,"cinematicLightTheme",null);_.S([_.pD({is:"ytd-watch-flexy"})],Bt);var nnN;var Fqj;var p5w=function(){return _.Z.apply(this,arguments)||this};
_.m(p5w,_.Z);_.S([_.pD({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],p5w);
_.d(p5w,"ytd-ghost-comments-renderer",function(){if(Fqj===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);Fqj=Y}Y=Fqj;return Y},{mode:1});var znx;var mS9=function(){return _.Z.apply(this,arguments)||this};
_.m(mS9,_.Z);_.S([_.pD({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],mS9);
_.d(mS9,"ytd-ghost-watch-metadata-renderer",function(){if(znx===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);znx=Y}Y=znx;return Y},{mode:1});var $W=function(){var Y=_.Z.apply(this,arguments)||this;Y.ghostGridRenderer={rows:6};Y.smallerChatMinHeight=_.F("live_chat_smaller_min_height");Y.darkerPanels=_.F("web_watch_darker_panels");Y.isDarkTheme=document.documentElement.hasAttribute("dark");return Y};
_.m($W,_.Z);_.H=$W.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 Y=this,G=function(){Y.onColumnScroll()};
this.primary.addEventListener("scroll",G);this.secondary.addEventListener("scroll",G)};
_.H.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.H.updateIsTwoColumnsFromBinding=function(Y){this.ytdWatchBehavior.isTwoColumns_=Y.detail.value};
_.H.updateFlexySmallWindowFromBinding=function(Y){this.ytdWatchBehavior.flexySmallWindow_=Y.detail.value};
_.H.updateFlexyLargeWindowFromBinding=function(Y){this.ytdWatchBehavior.flexyLargeWindow_=Y.detail.value};
_.H.updateWatchWhileWindowSizeSufficientFromBinding=function(Y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=Y.detail.value};
_.H.updateWatchNextCanShowMoreFromBinding=function(Y){this.ytdWatchBehavior.watchNextCanShowMore=Y.detail.value};
_.H.updateShownItemsFromBinding=function(Y){_.F("swatcheroo_direct_use_rich_grid")||(Y.detail.path?this.set(Y.detail.path,Y.detail.value):this.ytdWatchBehavior.watchNextShownItems=Y.detail.value)};
_.H.getElement=function(Y){switch(Y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22253_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22253_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Uk.Object.defineProperties($W.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.pageVisualEffects)return!1;for(var G=0;G<this.data.pageVisualEffects.length;G++)if(Y=_.z(this.data.pageVisualEffects[G],Iq))return G=void 0,(G=Y.config)==null?void 0:G.enableInLightTheme;return!1}}});
$W.prototype.updateMiniplayerIsActiveValue=$W.prototype.updateMiniplayerIsActiveValue;$W.prototype.updateScrollTopValue=$W.prototype.updateScrollTopValue;$W.prototype.updateFullscreenValue=$W.prototype.updateFullscreenValue;$W.prototype.updateTheaterValue=$W.prototype.updateTheaterValue;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],$W.prototype,"ytComponentBehavior",void 0);
_.S([_.x(iPy.YtdWatchBehavior),_.V("design:type",Object)],$W.prototype,"ytdWatchBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],$W.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],$W.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],$W.prototype,"ghostGridRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],$W.prototype,"playerData",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],$W.prototype,"smallerChatMinHeight",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],$W.prototype,"darkerPanels",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],$W.prototype,"isDarkTheme",void 0);_.S([_.R({selector:_.Fm}),_.V("design:type",Object)],$W.prototype,"theaterValue",void 0);_.S([_.R({selector:_.pz}),_.V("design:type",Object)],$W.prototype,"fullscreenValue",void 0);_.S([_.R({selector:JF}),_.V("design:type",Object)],$W.prototype,"scrollTopValue",void 0);
_.S([_.R({selector:_.FX}),_.V("design:type",Object)],$W.prototype,"miniplayerIsActiveValue",void 0);_.S([_.Ox("#ytd-player"),_.V("design:type",HTMLElement)],$W.prototype,"ytdPlayer",void 0);_.S([_.Ox("#playlist"),_.V("design:type",HTMLElement)],$W.prototype,"JSC$22253_ytdPlaylistPanelRenderer",void 0);_.S([_.Ox("#ytd-comments"),_.V("design:type",HTMLElement)],$W.prototype,"ytdComments",void 0);_.S([_.Ox("#primary"),_.V("design:type",HTMLElement)],$W.prototype,"primary",void 0);
_.S([_.Ox("#secondary"),_.V("design:type",HTMLElement)],$W.prototype,"secondary",void 0);_.S([_.Ox("#player-container"),_.V("design:type",HTMLElement)],$W.prototype,"playerContainer",void 0);_.S([_.Ox("#cinematics"),_.V("design:type",HTMLElement)],$W.prototype,"JSC$22253_cinematics",void 0);_.S([_.GO("theaterValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$W.prototype,"updateTheaterValue",null);
_.S([_.GO("fullscreenValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$W.prototype,"updateFullscreenValue",null);_.S([_.GO("scrollTopValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$W.prototype,"updateScrollTopValue",null);_.S([_.GO("miniplayerIsActiveValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$W.prototype,"updateMiniplayerIsActiveValue",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],$W.prototype,"cinematicLightTheme",null);
_.d($W,"ytd-watch-grid",function(){if(nnN===void 0){var Y=document.createElement("template");_.r(Y,'\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="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-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" 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-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" 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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);nnN=Y}Y=nnN;return Y},{mode:2});var WqN;var qq=function(){var Y=_.Z.apply(this,arguments)||this;Y.flexy=!0;Y.learningJourney=!0;Y.viewTransitionEnabled=_.F("enable_player_resize_transition");Y.smallerChatMinHeight=_.F("live_chat_smaller_min_height");Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.theaterLargerPlayer=_.F("web_watch_theater_larger_player");Y.defaultCollapsePlaylist=_.F("web_watch_default_collapse_playlist");Y.enableCanvasLayout=_.F("web_enable_canvas_on_learning_journey");return Y};
_.m(qq,_.Z);_.H=qq.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 Y=this,G=function(){Y.onColumnScroll()};
this.primary.addEventListener("scroll",G);this.secondary.addEventListener("scroll",G)};
_.H.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.H.updateIsTwoColumnsFromBinding=function(Y){_.F("web_watch_update_narrow_width_killswitch")||_.Zs().dispatch(OM9(!Y.detail.value));this.ytdWatchBehavior.isTwoColumns_=Y.detail.value};
_.H.updateFlexySmallWindowFromBinding=function(Y){this.ytdWatchBehavior.flexySmallWindow_=Y.detail.value};
_.H.updateFlexyLargeWindowFromBinding=function(Y){this.ytdWatchBehavior.flexyLargeWindow_=Y.detail.value};
_.H.updateWatchWhileWindowSizeSufficientFromBinding=function(Y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=Y.detail.value};
_.H.updateWatchNextCanShowMoreFromBinding=function(Y){this.ytdWatchBehavior.watchNextCanShowMore=Y.detail.value};
_.H.updateShownItemsFromBinding=function(Y){Y.detail.path?this.set(Y.detail.path,Y.detail.value):this.ytdWatchBehavior.watchNextShownItems=Y.detail.value};
_.H.getElement=function(Y){switch(Y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22256_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22256_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Uk.Object.defineProperties(qq.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.pageVisualEffects)return!1;for(var G=0;G<this.data.pageVisualEffects.length;G++)if(Y=_.z(this.data.pageVisualEffects[G],Iq))return G=void 0,(G=Y.config)==null?void 0:G.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.learningJourneyEngagementPanels)==null?void 0:Y.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var Y,G=(Y=this.learningJourneyEngagementPanels)==null?void 0:Y.find(function(k){var n;return(k==null?void 0:(n=k.engagementPanelSectionListRenderer)==null?void 0:n.panelIdentifier)==="learning-journey-engagement-panel"});
if(G){var u,O,Q,M,t,K,L,g,P;if(Y=(g=((L=(t=((M=G==null?void 0:(u=G.engagementPanelSectionListRenderer)==null?void 0:(O=u.content)==null?void 0:(Q=O.sectionListRenderer)==null?void 0:Q.contents)!=null?M:[])[0])==null?void 0:(K=t.itemSectionRenderer)==null?void 0:K.contents)!=null?L:[])[0])==null?void 0:(P=g.accordionViewModel)==null?void 0:P.onTitleTap){var I=_.FS(Y);if(I)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.Jj.instance.resolveCommand(I)}}}}}}});
_.Uk.Object.defineProperties(qq,{template:{configurable:!0,enumerable:!0,get:function(){if(WqN===void 0){var Y=document.createElement("template");_.r(Y,'\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="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);WqN=Y}Y=WqN;return Y}}});
qq.prototype.updateMiniplayerIsActiveValue=qq.prototype.updateMiniplayerIsActiveValue;qq.prototype.updateScrollTopValue=qq.prototype.updateScrollTopValue;qq.prototype.updateFullscreenValue=qq.prototype.updateFullscreenValue;qq.prototype.updateTheaterValue=qq.prototype.updateTheaterValue;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],qq.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],qq.prototype,"ytComponentBehavior",void 0);
_.S([_.x(aPB.YtdLearningJourneyWatchBehavior),_.V("design:type",Object)],qq.prototype,"ytdWatchBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],qq.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],qq.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],qq.prototype,"playerData",void 0);_.S([_.R(),_.V("design:type",Object)],qq.prototype,"browseData",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],qq.prototype,"flexy",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],qq.prototype,"learningJourney",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],qq.prototype,"viewTransitionEnabled",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],qq.prototype,"smallerChatMinHeight",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],qq.prototype,"isDarkTheme",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],qq.prototype,"theaterLargerPlayer",void 0);_.S([_.R(),_.V("design:type",Object)],qq.prototype,"defaultCollapsePlaylist",void 0);_.S([_.R(),_.V("design:type",Object)],qq.prototype,"enableCanvasLayout",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("playerData","browseData","enableCanvasLayout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],qq.prototype,"showBrowseResponse",null);
_.S([_.R({reflectToAttribute:!0}),_.f("playerData","enableCanvasLayout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],qq.prototype,"showWatchResponse",null);_.S([_.R({selector:_.Fm}),_.V("design:type",Object)],qq.prototype,"theaterValue",void 0);_.S([_.R({selector:_.pz}),_.V("design:type",Object)],qq.prototype,"fullscreenValue",void 0);_.S([_.R({selector:JF}),_.V("design:type",Object)],qq.prototype,"scrollTopValue",void 0);
_.S([_.R({selector:_.FX}),_.V("design:type",Object)],qq.prototype,"miniplayerIsActiveValue",void 0);_.S([_.Ox("#ytd-plj-player"),_.V("design:type",HTMLElement)],qq.prototype,"ytdPlayer",void 0);_.S([_.Ox("#playlist"),_.V("design:type",HTMLElement)],qq.prototype,"JSC$22256_ytdPlaylistPanelRenderer",void 0);_.S([vS("ytd-comments"),_.V("design:type",HTMLElement)],qq.prototype,"ytdComments",void 0);_.S([_.Ox("#primary"),_.V("design:type",HTMLElement)],qq.prototype,"primary",void 0);
_.S([_.Ox("#secondary"),_.V("design:type",HTMLElement)],qq.prototype,"secondary",void 0);_.S([_.Ox("#player-container"),_.V("design:type",HTMLElement)],qq.prototype,"playerContainer",void 0);_.S([_.Ox("#cinematics"),_.V("design:type",HTMLElement)],qq.prototype,"JSC$22256_cinematics",void 0);_.S([_.GO("theaterValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qq.prototype,"updateTheaterValue",null);
_.S([_.GO("fullscreenValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qq.prototype,"updateFullscreenValue",null);_.S([_.GO("scrollTopValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qq.prototype,"updateScrollTopValue",null);_.S([_.GO("miniplayerIsActiveValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qq.prototype,"updateMiniplayerIsActiveValue",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],qq.prototype,"cinematicLightTheme",null);_.S([_.R({reflectToAttribute:!0}),_.f("learningJourneyEngagementPanels"),_.V("design:type",Object),_.V("design:paramtypes",[])],qq.prototype,"hasLearningJourneyPanels",null);_.S([_.f("learningJourneyEngagementPanels"),_.V("design:type",Object),_.V("design:paramtypes",[])],qq.prototype,"backButtonData",null);_.S([_.pD({is:"ytd-watch-learning-journey"})],qq);var r2N;var s1=function(){var Y=_.Z.apply(this,arguments)||this;Y.systemIcons=_.F("kevlar_system_icons");return Y};
_.m(s1,_.Z);_.H=s1.prototype;_.H.ready=function(){this.hostElement.addEventListener("tap",_.Jh(this,this.onEndpointTapExtra))};
_.H.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.H.onFocus=function(){var Y;(Y=_.l0(this.hostElement).querySelector("tp-yt-paper-item"))==null||Y.focus()};
_.H.onEndpointTapExtra=function(Y){_.$s(this.hostElement,"iron-activate");var G=this.data.navigationEndpoint;G&&_.z(G,_.$LU)&&(Y.stopPropagation(),_.UK(this.hostElement,[G],this.hostElement))};
_.H.computeIcon=function(Y){return Y&&Y.iconType?_.Ux(Y.iconType):""};
_.H.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.H.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.H.forceUpdateStylesOnLegacyBrowsers=function(){_.F("kevlar_legacy_browsers")&&_.cm(this.hostElement)};
s1.prototype.forceUpdateStylesOnLegacyBrowsers=s1.prototype.forceUpdateStylesOnLegacyBrowsers;s1.prototype.onFocus=s1.prototype.onFocus;_.S([_.x(_.SZ),_.V("design:type",Object)],s1.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.x(_.W0N.YtConditionalRendererBehavior),_.V("design:type",Object)],s1.prototype,"ytConditionalRendererBehavior",void 0);_.S([_.x(_.U2.YtEndpointBehavior),_.V("design:type",Object)],s1.prototype,"ytEndpointBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],s1.prototype,"data",void 0);_.S([_.R({computed:"computeIcon(data.icon)",value:""}),_.V("design:type",String)],s1.prototype,"icon",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],s1.prototype,"useIcons",void 0);_.S([_.R({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.V("design:type",Boolean)],s1.prototype,"hasSeparator",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],s1.prototype,"systemIcons",void 0);_.S([_.Yo("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],s1.prototype,"onFocus",null);_.S([_.GO("useIcons","hasSeparator"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],s1.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.d(s1,"ytd-menu-navigation-item-renderer",function(){if(r2N===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);r2N=Y}Y=r2N;return Y},{mode:1});var xSS;var fw9=_.i8(_.Q6("DOWNLOAD",{},"Download")),CQo=_.i8(_.Q6("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),y2x=_.i8(_.Q6("RETRY",{},"Retry")),enB=_.i8(_.Q6("PAUSE_DOWNLOADING",{},"Pause downloading")),A2b=_.i8(_.Q6("RESUME_DOWNLOAD",{},"Resume download")),ct=function(){var Y=_.Z.apply(this,arguments)||this;Y.primaryText=fw9;Y.primaryIconType="OFFLINE_DOWNLOAD";Y.hasSecondaryContent=!1;Y.hasSeparator=!1;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.isVideoDeletedByUser=!1;Y.isHidden=!1;Y.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return Y};
_.m(ct,_.Z);_.H=ct.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(Y){var G=this.data.serviceEndpoint;if(G){var u=_.z(G,_.Gi);u&&Y&&(u.action=Y);this.ytComponentBehavior.resolveCommand(G)}};
_.H.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=fw9,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=fw9;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=y2x;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=CQo;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=A2b;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=CQo;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
enB;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=CQo;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=CQo;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=fw9,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.H.showHideButton=function(){var Y;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((Y=this.playerStateEntity)==null?void 0:Y.adsState)==="ADS_STATE_PLAYING"};
_.H.isSecondaryEntryHidden=function(Y,G){return Y?!0:!G};
_.H.computeHasSeparator=function(){var Y;return!((Y=this.data)==null||!Y.hasSeparator)};
_.H.computePlayerStateEntityKey=function(Y){return Y};
ct.prototype.showHideButton=ct.prototype.showHideButton;ct.prototype.onTransferStateChange=ct.prototype.onTransferStateChange;ct.prototype.onFocus=ct.prototype.onFocus;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],ct.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ct.prototype,"ytComponentBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],ct.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],ct.prototype,"primaryText",void 0);_.S([_.R(),_.V("design:type",String)],ct.prototype,"primaryIconType",void 0);_.S([_.R(),_.V("design:type",String)],ct.prototype,"primaryAction",void 0);_.S([_.R(),_.V("design:type",Object)],ct.prototype,"secondaryText",void 0);_.S([_.R(),_.V("design:type",String)],ct.prototype,"secondaryIconType",void 0);
_.S([_.R(),_.V("design:type",String)],ct.prototype,"secondaryAction",void 0);_.S([_.R(),_.V("design:type",Object)],ct.prototype,"hasSecondaryContent",void 0);_.S([_.R({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.V("design:type",Object)],ct.prototype,"hasSeparator",void 0);_.S([_.R({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.V("design:type",String)],ct.prototype,"playerStateEntityKey",void 0);
_.S([_.R({selector:_.c3,selectorArgs:["playerStateEntityKey"]}),_.V("design:type",Object)],ct.prototype,"playerStateEntity",void 0);_.S([_.R({selector:_.mZ,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.V("design:type",String)],ct.prototype,"transferState",void 0);_.S([_.R({selector:_.csA,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.V("design:type",Object)],ct.prototype,"isVideoDeletedByUser",void 0);
_.S([_.R(),_.V("design:type",Object)],ct.prototype,"isHidden",void 0);_.S([_.R({selector:_.jVt,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.V("design:type",Object)],ct.prototype,"offlineabilityState",void 0);_.S([_.Ox("#primary-entry"),_.V("design:type",Object)],ct.prototype,"primaryEntry",void 0);_.S([_.Yo("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ct.prototype,"onFocus",null);
_.S([_.Ex("transferState","isVideoDeletedByUser"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ct.prototype,"onTransferStateChange",null);_.S([_.Ex("offlineabilityState","playerStateEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ct.prototype,"showHideButton",null);
_.d(ct,"ytd-menu-service-item-download-renderer",function(){if(xSS===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);xSS=Y}Y=xSS;return Y},{mode:1});var onb;var U1=function(){var Y=_.Z.apply(this,arguments)||this;Y.useIcons=!1;Y.systemIcons=_.F("kevlar_system_icons");return Y};
_.m(U1,_.Z);_.H=U1.prototype;_.H.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.H.onFocus=function(){var Y;(Y=_.l0(this.hostElement).querySelector("tp-yt-paper-item"))==null||Y.focus()};
_.H.onTap=function(){_.sK(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var Y=this.data.serviceEndpoint,G=this.data.command;if(Y){var u,O=(u=this.data)==null?void 0:u.trackingParams;u=!!_.z(Y,_.Uy2);O&&u&&_.Zs().dispatch(_.V6({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:O}}));this.ytComponentBehavior.resolveCommand(Y)||_.sH().resolve(_.rH).resolveCommand(Y,{form:{element:this.hostElement}})}G&&(this.ytComponentBehavior.resolveCommand(G)||_.UK(this.hostElement,
[G],this.hostElement))};
_.H.computeIcon=function(Y){return Y&&Y.iconType?_.Ux(Y.iconType):""};
_.H.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.H.computeHasSeparator=function(){var Y;return!((Y=this.data)==null||!Y.hasSeparator)};
_.H.forceUpdateStylesOnLegacyBrowsers=function(){_.F("kevlar_legacy_browsers")&&_.cm(this.hostElement)};
_.H.computeIsSelected=function(){var Y;return!((Y=this.data)==null||!Y.isSelected)};
U1.prototype.forceUpdateStylesOnLegacyBrowsers=U1.prototype.forceUpdateStylesOnLegacyBrowsers;U1.prototype.onTap=U1.prototype.onTap;U1.prototype.onFocus=U1.prototype.onFocus;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.SZ),_.V("design:type",Object)],U1.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],U1.prototype,"ytComponentBehavior",void 0);
_.S([_.x(_.W0N.YtConditionalRendererBehavior),_.V("design:type",Object)],U1.prototype,"ytConditionalRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],U1.prototype,"data",void 0);_.S([_.R({computed:"computeIcon(data.icon)",value:""}),_.V("design:type",String)],U1.prototype,"icon",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],U1.prototype,"useIcons",void 0);
_.S([_.R({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.V("design:type",Boolean)],U1.prototype,"hasSeparator",void 0);_.S([_.R({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.V("design:type",Boolean)],U1.prototype,"isSelected",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],U1.prototype,"systemIcons",void 0);
_.S([_.Yo("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],U1.prototype,"onFocus",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],U1.prototype,"onTap",null);_.S([_.GO("useIcons","hasSeparator"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],U1.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.d(U1,"ytd-menu-service-item-renderer",function(){if(onb===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);onb=Y}Y=onb;return Y},{mode:2});var i4S;var vt=function(){return _.Z.apply(this,arguments)||this};
_.m(vt,_.Z);_.H=vt.prototype;_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.onDataChanged=function(){var Y=this;_.sk(this,function(){Y.postbox.openDialog();Y.focus();_.$s(Y.hostElement,"yt-refit")})};
_.H.focus=function(){this.postbox.focus()};
_.H.closePopup=function(){_.qZ(this.hostElement,"yt-close-popup-action")};
_.H.onYtCommentboxDismiss=function(){this.closePopup()};
vt.prototype.onYtCommentboxDismiss=vt.prototype.onYtCommentboxDismiss;vt.prototype.onDataChanged=vt.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],vt.prototype,"data",void 0);_.S([_.R({value:function(){return _.Q6("SBOX_INAPPROPRIATE_CANCEL")}}),
_.V("design:type",String)],vt.prototype,"closeButtonAriaLabel",void 0);_.S([_.Ox("#postbox"),_.V("design:type",Object)],vt.prototype,"postbox",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vt.prototype,"onDataChanged",null);_.S([_.Yo("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vt.prototype,"onYtCommentboxDismiss",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],vt);
_.d(vt,"ytd-backstage-post-dialog-popup-renderer",function(){if(i4S!==void 0)return i4S;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return i4S=Y},{mode:1});var RnB;var JI=function(){var Y=_.Z.apply(this,arguments)||this;Y.modernModal=!0;return Y};
_.m(JI,_.Z);JI.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
JI.prototype.computeShouldHideOldButtons=function(){var Y;return!((Y=this.data)==null?0:Y.button)};
_.Uk.Object.defineProperties(JI.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(Y=this.data)==null?void 0:(G=Y.button)==null?void 0:G.buttonRenderer}}});
_.S([_.R(),_.V("design:type",Object)],JI.prototype,"data",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],JI.prototype,"ytEventForwardingBehavior",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],JI.prototype,"modernModal",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],JI.prototype,"buttonRendererData",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],JI);
_.d(JI,"ytd-modal-with-title-and-button-renderer",function(){if(RnB!==void 0)return RnB;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return RnB=Y},{mode:1});var w5y;var Y_=function(){return _.Z.apply(this,arguments)||this};
_.m(Y_,_.Z);Y_.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("page-changed",this.page))};
Y_.prototype.pageChangedForBinding=Y_.prototype.pageChangedForBinding;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Y_.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Y_.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],Y_.prototype,"page",void 0);_.S([_.GO("page"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Y_.prototype,"pageChangedForBinding",null);
_.S([_.pD({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Y_);
_.d(Y_,"ytd-account-item-section-header-renderer",function(){if(w5y!==void 0)return w5y;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return w5y=Y},{mode:1});var Z4N;var G8=function(){return _.Z.apply(this,arguments)||this};
_.m(G8,_.Z);G8.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"}}}};
G8.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],G8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.DD),_.V("design:type",Object)],G8.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],G8.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!1}),_.V("design:type",Function)],G8.prototype,"onAccountItemTap",void 0);
_.S([_.pD({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],G8);
_.d(G8,"ytd-account-item-section-renderer",function(){if(Z4N!==void 0)return Z4N;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Z4N=Y},{mode:1});var DS9;var hnS;var dSx=function(){return _.Z.apply(this,arguments)||this};
_.m(dSx,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],dSx.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],dSx.prototype,"data",void 0);_.S([_.pD({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],dSx);
_.d(dSx,"ytd-accounts-dialog-header-renderer",function(){if(hnS!==void 0)return hnS;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return hnS=Y},{mode:1});var b4x;var ub=function(){return _.Z.apply(this,arguments)||this};
_.m(ub,_.Z);ub.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ub.prototype,"data",void 0);_.S([_.pD({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],ub);
_.d(ub,"ytd-google-account-header-renderer",function(){if(b4x!==void 0)return b4x;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return b4x=Y},{mode:1});var Of=function(){return _.Z.apply(this,arguments)||this};
_.m(Of,_.Z);Of.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"}}}};
Of.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("page-changed",this.page))};
Of.prototype.pageChangedForBinding=Of.prototype.pageChangedForBinding;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Of.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Of.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Of.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],Of.prototype,"page",void 0);
_.S([_.GO("page"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Of.prototype,"pageChangedForBinding",null);_.S([_.pD({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Of);
_.$o()(Of,"ytd-account-section-list-renderer",function(){if(DS9===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);DS9=Y}Y=DS9;return Y},{allowedProps:["data"],
mode:1});var S89;var Qi=function(){var Y=_.Z.apply(this,arguments)||this;Y.enableHandlesAccountMenuSwitcher=_.F("enable_handles_account_menu_switcher");return Y};
_.m(Qi,_.Z);Qi.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Qi.prototype.dataChanged=Qi.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Qi.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Qi.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.S([_.Ox("#avatar"),_.V("design:type",Object)],Qi.prototype,"avatar",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qi.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Qi);
_.$o()(Qi,"ytd-active-account-header-renderer",function(){if(S89===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);S89=Y}Y=S89;return Y},{allowedProps:["data"],
mode:1});var NLx;var jRb;var MG=function(){return _.Z.apply(this,arguments)||this};
_.m(MG,_.Z);MG.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
MG.prototype.onBackTap=function(){_.$s(this.hostElement,"yt-menu-back-tapped")};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],MG.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],MG.prototype,"data",void 0);_.S([_.pD({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],MG);
_.$o()(MG,"ytd-simple-menu-header-renderer",function(){if(jRb===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);jRb=Y}Y=jRb;return Y},{allowedProps:["data"],
mode:2});var Vvx;var lwb=function(){return _.Z.apply(this,arguments)||this};
_.m(lwb,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],lwb.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],lwb.prototype,"data",void 0);_.S([_.pD({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],lwb);
_.d(lwb,"ytd-comment-video-thumbnail-header-renderer",function(){if(Vvx!==void 0)return Vvx;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Vvx=Y},{mode:1});var BLb;var $So=function(){return _.Z.apply(this,arguments)||this};
_.m($So,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],$So.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],$So.prototype,"data",void 0);_.S([_.pD({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],$So);
_.d($So,"ytd-abuse-type-selector-renderer",function(){if(BLb!==void 0)return BLb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return BLb=Y},{mode:1});var q8o;var sRS=(0,_.fWl)(_.xTR.reportChannelAbuse,{isVideoIdSelectedSelector:function(Y,G){return G in Y.selectedVideoIds},
additionalContextSelector:function(Y){return Y.additionalContext},
impersonatedChannelUrlSelector:function(Y){return Y.impersonatedChannelUrl},
reportChannelAbuseSelector:function(Y){return Y}});var HB=function(){return _.Z.apply(this,arguments)||this};
_.m(HB,_.Z);HB.prototype.attached=function(){var Y=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){Y.additionalContextInput.focusTextInput()})};
HB.prototype.handleAdditionalContextChanged=function(){var Y=this;_.y4(this,"ytd-report-channel-additional-context-update",function(){Y.ytdReduxBehavior.dispatch(_.V6({type:"ADDITIONAL_CONTEXT_UPDATED",payload:Y.additionalContext}))},300)};
HB.prototype.updateAdditionalContextFromBinding=function(Y){this.additionalContext=Y.detail.value};
HB.prototype.handleAdditionalContextChanged=HB.prototype.handleAdditionalContextChanged;_.S([_.x(_.me),_.V("design:type",Object)],HB.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",String)],HB.prototype,"additionalContext",void 0);_.S([_.R({selector:sRS.additionalContextSelector}),_.V("design:type",String)],HB.prototype,"additionalContextRedux",void 0);_.S([_.R(),_.V("design:type",Object)],HB.prototype,"data",void 0);
_.S([_.Ox("yt-text-input-form-field-renderer"),_.V("design:type",Object)],HB.prototype,"additionalContextInput",void 0);_.S([_.GO("additionalContext"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HB.prototype,"handleAdditionalContextChanged",null);_.S([_.pD({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],HB);
_.d(HB,"ytd-report-channel-modal-additional-context-renderer",function(){if(q8o!==void 0)return q8o;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return q8o=Y},{mode:1});var c2S;var Ef=function(){var Y=_.Z.apply(this,arguments)||this;Y.nextButtonDisabled=null;Y.submitEndpoint=null;Y.navigationEndpoint=null;Y.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return Y};
_.m(Ef,_.Z);_.H=Ef.prototype;_.H.computeNextButtonData=function(Y,G,u){var O={};G&&(O.navigationEndpoint=G);u&&(O.serviceEndpoint=u);Y&&Y.buttonRenderer&&_.gX.extend(O,Y.buttonRenderer);return O};
_.H.handleReportChannelModalDisableNextButtonAction=function(Y){this.setNextButtonIsDisabled(Y)};
_.H.handleReportFormEndpointUpdateAction=function(Y){this.setNextButtonIsDisabled(!!Y.disableSubmitButton);this.resetEndpointData();Y.submitEndpoint?this.submitEndpoint=Y.submitEndpoint:Y.submitNavigationEndpoint&&(this.navigationEndpoint=Y.submitNavigationEndpoint)};
_.H.handleSignalActionSubmitForm=function(){var Y,G=Object.keys(((Y=this.reportChannelAbuseForm)==null?void 0:Y.selectedVideoIds)||{}),u;Y=((u=this.reportChannelAbuseForm)==null?void 0:u.additionalContext)||"";var O;u=((O=this.reportChannelAbuseForm)==null?void 0:O.impersonatedChannelUrl)||"";var Q;if((Q=this.data)==null?0:Q.submitEndpoint){G={impersonated_channel_url:u,text:Y,video_ids:G};var M;_.sH().resolve(_.rH).resolveCommand((M=this.data)==null?void 0:M.submitEndpoint,{form:Object.assign({},
G,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.H.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.H.onYtServiceRequestError=function(Y){this.setNextButtonIsDisabled(!1);_.Rd(this.hostElement,Y.detail.error.message)};
_.H.setNextButtonIsDisabled=function(Y){this.set("data.nextButton.buttonRenderer.isDisabled",Y)};
_.H.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Ef.prototype.onYtServiceRequestError=Ef.prototype.onYtServiceRequestError;Ef.prototype.onYtServiceRequestCompleted=Ef.prototype.onYtServiceRequestCompleted;_.S([_.R(),_.V("design:type",Object)],Ef.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Ef.prototype,"nextButtonDisabled",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Ef.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Ef.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ef.prototype,"submitEndpoint",void 0);_.S([_.R(),_.V("design:type",Object)],Ef.prototype,"navigationEndpoint",void 0);_.S([_.R({selector:sRS.reportChannelAbuseSelector}),_.V("design:type",Object)],Ef.prototype,"reportChannelAbuseForm",void 0);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Ef.prototype,"onYtServiceRequestCompleted",null);_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Ef.prototype,"onYtServiceRequestError",null);_.S([_.pD({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Ef);
_.d(Ef,"ytd-report-channel-modal-footer-renderer",function(){if(c2S!==void 0)return c2S;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return c2S=Y},{mode:1});var USg;var t8=function(){var Y=_.Z.apply(this,arguments)||this;Y.boundOnTapDismissButton=function(){Y.closePopup()};
return Y};
_.m(t8,_.Z);t8.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
t8.prototype.handleDataChanged=function(){_.$q(this.hostElement)};
t8.prototype.closePopup=function(){_.qZ(this.hostElement,"yt-close-popup-action")};
t8.prototype.handleDataChanged=t8.prototype.handleDataChanged;_.S([_.R(),_.V("design:type",Object)],t8.prototype,"boundOnTapDismissButton",void 0);_.S([_.R(),_.V("design:type",Object)],t8.prototype,"data",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],t8.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],t8.prototype,"handleDataChanged",null);_.S([_.pD({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],t8);
_.d(t8,"ytd-report-channel-modal-header-renderer",function(){if(USg!==void 0)return USg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return USg=Y},{mode:1});var vnj;var Kw=function(){var Y=_.Z.apply(this,arguments)||this;Y.autoValidate=!1;Y.invalid=!1;Y.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return Y};
_.m(Kw,_.Z);_.H=Kw.prototype;_.H.attached=function(){var Y=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){Y.channelUrlInput.focusTextInput()})};
_.H.disableNextButton=function(Y){_.qZ(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[Y])};
_.H.handleImpersonatedChannelUrlChanged=function(){var Y=this;this.disableNextButton(!0);this.invalid=!1;_.y4(this,"ytd-report-channel-impersonated-channel-update",function(){var G=Y.impersonatedChannelUrl.trim();Y.ytdReduxBehavior.dispatch(_.V6({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:G}));var u;((u=Y.data)==null?0:u.submitEndpoint)&&G&&_.sH().resolve(_.rH).resolveCommand(Y.data.submitEndpoint,{form:{impersonated_channel_url:G,element:Y.hostElement}})},500)};
_.H.handleModifyReportFormCommand=function(Y){this.invalid=this.get("modifyReportFormCommand.action",Y)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.H.updateInvalidFromBinding=function(Y){this.invalid=Y.detail.value};
_.H.updateImpersonatedChannelUrlFromBinding=function(Y){this.impersonatedChannelUrl=Y.detail.value};
Kw.prototype.handleImpersonatedChannelUrlChanged=Kw.prototype.handleImpersonatedChannelUrlChanged;_.S([_.x(_.me),_.V("design:type",Object)],Kw.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Kw.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Kw.prototype,"autoValidate",void 0);_.S([_.R(),_.V("design:type",Object)],Kw.prototype,"invalid",void 0);
_.S([_.R(),_.V("design:type",String)],Kw.prototype,"impersonatedChannelUrl",void 0);_.S([_.R({selector:sRS.impersonatedChannelUrlSelector}),_.V("design:type",String)],Kw.prototype,"impersonatedChannelUrlRedux",void 0);_.S([_.R(),_.V("design:type",Object)],Kw.prototype,"data",void 0);_.S([_.Ox("#text-input"),_.V("design:type",Object)],Kw.prototype,"channelUrlInput",void 0);
_.S([_.GO("impersonatedChannelUrl"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Kw.prototype,"handleImpersonatedChannelUrlChanged",null);_.S([_.pD({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Kw);
_.d(Kw,"ytd-report-channel-modal-impersonation-renderer",function(){if(vnj!==void 0)return vnj;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return vnj=Y},{mode:1});var J2w;var YON;var aI=function(){return _.Z.apply(this,arguments)||this};
_.m(aI,_.Z);aI.prototype.onCheckboxToggled=function(Y){var G,u,O=(u=_.z((G=this.data)==null?void 0:G.video,_.QVe))==null?void 0:u.videoId;O&&this.ytdReduxBehavior.dispatch(Y.target.checked?_.V6({type:"VIDEO_SELECTED",payload:O}):_.V6({type:"VIDEO_UNSELECTED",payload:O}))};
aI.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Uk.Object.defineProperties(aI.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var Y,G=(Y=this.data)==null?void 0:Y.video;if(!G)return{};var u;Y=(u=_.z(G,_.QVe))==null?void 0:u.navigationEndpoint;if(!Y)return G;_.z(Y==null?void 0:Y.commandMetadata,_.ug)&&(_.z(Y.commandMetadata,_.ug).ignoreNavigation=!0);return G}}});
_.S([_.R({reflectToAttribute:!0,selector:sRS.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.V("design:type",Boolean)],aI.prototype,"checked",void 0);_.S([_.R(),_.V("design:type",Object)],aI.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],aI.prototype,"video",null);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],aI.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],aI.prototype,"ytdReduxBehavior",void 0);_.S([_.pD({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],aI);
_.d(aI,"ytd-selectable-video-renderer",function(){if(YON!==void 0)return YON;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return YON=Y},{mode:1});var T8=function(){var Y=_.Z.apply(this,arguments)||this;Y.monitorScroll=!0;return Y};
_.m(T8,_.Z);T8.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],T8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],T8.prototype,"data",void 0);_.S([_.pD({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],T8);
_.d(T8,"ytd-selectable-video-list-renderer",function(){if(J2w!==void 0)return J2w;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return J2w=Y},{mode:1});var GKx;_.Px("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Lw=function(){return _.Z.apply(this,arguments)||this};
_.m(Lw,_.Z);Lw.prototype.onChange=function(Y){if(Y=_.Zb(Y).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.F("kevlar_command_handler_migration_killswitch"))_.UK(this.hostElement,Y,this.hostElement);else{Y=_.E(Y);for(var G=Y.next();!G.done;G=Y.next())this.ytComponentBehavior.resolveCommand(G.value)}};
Lw.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Lw.prototype.updateDataToggledFromBinding=function(Y){this.set("data.toggled",Y.detail.value)};
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Lw.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Lw.prototype,"data",void 0);_.S([_.R({computed:"isEnabled(data)"}),_.V("design:type",Boolean)],Lw.prototype,"enabled",void 0);_.S([_.pD({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Lw);
_.d(Lw,"ytd-toggle-item-renderer",function(){if(GKx!==void 0)return GKx;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return GKx=Y},{mode:1});var ujN;var Oe9;var QMS;var gP=function(){var Y=_.Z.apply(this,arguments)||this;Y.setVisible=!1;Y.boundOnSubmitButtonClick=function(){Y.onSubmitButtonClick()};
Y.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return Y};
_.m(gP,_.Z);gP.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}}}}}};
gP.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
gP.prototype.onSubmitButtonClick=function(){var Y;((Y=this.data)==null?0:Y.submitEndpoint)&&!_.F("enable_ytc_refunds_submit_form_signal_action")&&_.c$(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
gP.prototype.handleSignalActionSubmitForm=function(){var Y;((Y=this.data)==null?0:Y.submitEndpoint)&&_.c$(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Uk.Object.defineProperties(gP.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.hiddenByDefault)&&!this.setVisible}}});
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],gP.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],gP.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],gP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],gP.prototype,"setVisible",void 0);_.S([_.R(),_.V("design:type",Object)],gP.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],gP.prototype,"surveyFeedbackData",void 0);_.S([_.R(),_.V("design:type",Object)],gP.prototype,"boundOnSubmitButtonClick",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data","setVisible"),_.V("design:type",Object),_.V("design:paramtypes",[])],gP.prototype,"visibilityHidden",null);_.S([_.Ff({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],gP);
_.d(gP,"yt-flow-footer-renderer",function(){if(QMS===void 0){var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Oe9===void 0&&(Oe9=document.createElement("template"));var O=Oe9;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);QMS=Y}Y=QMS;return Y},{mode:2});var M2y=(0,_.fWl)(_.xTR.ypc,{surveyFeedbackDataSelector:function(Y){return Y.surveyFeedbackData}});var XL=function(){return _.Z.apply(this,arguments)||this};
_.m(XL,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],XL.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],XL.prototype,"data",void 0);_.S([_.R({selector:M2y.surveyFeedbackDataSelector}),_.V("design:type",Object)],XL.prototype,"surveyFeedbackData",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],XL);
_.d(XL,"ytd-flow-footer-renderer",function(){if(ujN!==void 0)return ujN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return ujN=Y},{mode:2});var HeS;var EmN;var PB=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return Y};
_.m(PB,_.Z);_.H=PB.prototype;_.H.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.IS("multiPageMenuSectionItems")}}};
_.H.handleHideEnclosingAction_=function(Y){if(this.data&&this.data.items)for(var G=0;G<this.data.items.length;G++){var u=this.data.items[G].notificationRenderer;if(u&&u.notificationId==Y.hideEnclosingAction.notificationId){this.splice("data.items",G,1);_.qZ(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&&_.q7(this.hostElement,"hidden",!0)};
_.H.updateMenu_=function(Y){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&Y&&!Y.doNotRefreshInbox){Y=this.data.continuations;for(var G=0;G<Y.length;G++)if(Y[G].invalidationContinuationData){var u=void 0;var O=(u=Y[G].invalidationContinuationData)==null?void 0:u.continuation;break}Y=_.gX.clone(this.data.continuationUpdateEndpoint||null);Y.continuation=O;Y.click_tracking_params=this.data.trackingParams;_.c$(this.hostElement,[Y])}};
_.H.onServiceRequestCompleted_=function(Y,G){if(this.data&&(Y=G.actions)){G=0;for(var u=Y.length;G<u;G++){var O=_.z(Y[G],_.F32);if(!O)break;if((O.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||O.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&O.continuationItems&&this.data.items){var Q=this.data.items.length-1;this.data.items[Q].continuationItemRenderer&&(O=["data.items",Q,1].concat(O.continuationItems),this.splice.apply(this,O))}}}};
PB.prototype.onServiceRequestCompleted_=PB.prototype.onServiceRequestCompleted_;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],PB.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],PB.prototype,"data",void 0);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],PB.prototype,"onServiceRequestCompleted_",null);_.S([_.Ff({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],PB);
_.$o()(PB,"yt-multi-page-menu-section-renderer",function(){if(EmN===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;HeS===void 0&&(HeS=document.createElement("template"));var O=HeS;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);EmN=Y}Y=EmN;return Y},{allowedProps:["data"],
mode:2});var t2g;var KFb;var II=function(){return _.Z.apply(this,arguments)||this};
_.m(II,_.Z);II.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Uk.Object.defineProperties(II.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.progress)==null?0:this.data.progress*100}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],II.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],II.prototype,"data",void 0);_.S([_.f("data.progress"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],II.prototype,"showProgressBar",null);
_.S([_.f("data.progress"),_.V("design:type",Number),_.V("design:paramtypes",[])],II.prototype,"progress",null);_.S([_.Ff({is:"yt-flow-header-renderer",disableElementRegistration:!0})],II);
_.d(II,"yt-flow-header-renderer",function(){if(KFb===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;t2g===void 0&&(t2g=document.createElement("template"));var O=t2g;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);KFb=Y}Y=KFb;return Y},{mode:2});var a7x;var TvN;var k_=function(){return _.Z.apply(this,arguments)||this};
_.m(k_,_.Z);k_.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],k_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],k_.prototype,"data",void 0);_.S([_.Ff({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],k_);
_.d(k_,"yt-post-confirmation-flow-step-renderer",function(){if(TvN===void 0){var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;a7x===void 0&&(a7x=document.createElement("template"));var O=a7x;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);TvN=Y}Y=TvN;return Y},{mode:2});var LF9;var gmV;var nw=function(){return _.Z.apply(this,arguments)||this};
_.m(nw,_.Z);
nw.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"}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],nw.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],nw.prototype,"data",void 0);_.S([_.Ff({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],nw);
_.d(nw,"yt-refund-confirmation-flow-step-renderer",function(){if(gmV===void 0){var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;LF9===void 0&&(LF9=document.createElement("template"));var O=LF9;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);gmV=Y}Y=gmV;return Y},{mode:2});var XXg=_.D(function(Y){var G=Y.data;return _.T("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.T("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.T(_.RD,{data:function(){return{thumbnails:[{url:G().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.T("div",{class:"profileBadgeViewModelContent"},_.T("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return G().badgeDesc}),_.T(_.X,{cond:function(){return G().badgeSubtitle},
then:function(){return _.T("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return G().badgeSubtitle})}})))},"$k");
XXg.idomCompat=!0;var PKV=_.D(function(Y){var G=Y.data;return _.T("yt-comment-interaction-view-model",{el:_.iq(_.zi(function(){return G().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.T("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return G().onTapA11yLabel},
"on:keydown":_.Id(),tabindex:0},_.T("div",{class:"ytCommentInteractionViewModelHeader"},_.T("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return G().headerPrefix},' "',function(){return G().videoTitle}),_.T("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.T("div",{class:"ytCommentInteractionViewModelContent"},_.T("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return G().commentContent}),_.T("div",{class:"ytCommentInteractionViewModelChevron"},
_.T(_.RD,{data:function(){return{thumbnails:[{url:G().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"al");
PKV.idomCompat=!0;var I7V=_.D(function(Y){var G=Y.data;return _.T("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.T(_.HE,{data:function(){return G().avatar}},{avatarViewModel:_.z$}),_.T("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return G().channelName}))},"bl");
I7V.idomCompat=!0;var zvV=_.D(function(Y){var G=Y.data;Y={};return _.T("yt-profile-info-view-model",{class:_.s3("ytProfileInfoViewModelHost",(Y.ytProfileInfoViewModelWithVideoShelf=function(){return G().videosHorizontalShelf},Y))},_.T(kKN,{profileInfo:G}),_.T(_.HE,{data:function(){return G().videosHorizontalShelf}},{horizontalShelfViewModel:function(u){return _.T("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.T(_.wm,{data:u.data}))}}),_.T(_.X,{cond:function(){return G().comments},
then:function(){return _.T(nmg,{profileInfo:G})}}),_.T(_.X,{cond:function(){return G().sharedSubscriptionsTitle},
then:function(){return _.T(_.X,{cond:function(){return G().subscriptionsAccessButtonCommand},
then:function(){return _.T(FF9,{profileInfo:G})},
else:function(){return _.T(pXb,{profileInfo:G})}})}}))},"cl");
zvV.idomCompat=!0;var nmg=_.D(function(Y){var G=Y.profileInfo;return _.T("div",{class:"ytProfileInfoViewModelActivity"},_.T("div",{class:"ytProfileInfoViewModelHeader"},_.T("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return G().commentsInteractionTitle})),_.T(_.HE,{data:function(){return G().comments}},{commentInteractionViewModel:function(u){return _.T("div",{class:"ytProfileInfoViewModelActivity"},_.T(PKV,{data:u.data}))}}))},"dl"),FF9=_.D(function(Y){var G=Y.profileInfo;
return _.T("div",{class:"ytProfileInfoViewModelSubSection"},_.T("div",{class:"ytProfileInfoViewModelSubHeader"},_.T(_.Ny,{command:function(){return G().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.T("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return G().sharedSubscriptionsTitle}),_.T("div",null,_.T(_.HE,{data:function(){return G().subscriptionsAccessButton}},{buttonViewModel:_.$Y})))),_.T(mdw,{sharedSubscriptions:function(){var u;
return((u=G().sharedSubscriptions)==null?void 0:u.slice(0,5))||[]}}))},"el"),pXb=_.D(function(Y){var G=Y.profileInfo;
return _.T("div",{class:"ytProfileInfoViewModelSubSection"},_.T("div",{class:"ytProfileInfoViewModelSubHeader"},_.T("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return G().sharedSubscriptionsTitle})),_.T(mdw,{sharedSubscriptions:function(){var u;
return((u=G().sharedSubscriptions)==null?void 0:u.slice(0,5))||[]}}))},"fl"),mdw=_.D(function(Y){return _.T("div",{class:"ytProfileInfoViewModelSubs"},_.T(_.HE,{data:Y.sharedSubscriptions},{sharedSubscriptionViewModel:function(G){return _.T("div",{class:"ytProfileInfoViewModelSub"},_.T(I7V,{data:G.data}))}}))},"gl"),kKN=_.D(function(Y){var G=Y.profileInfo;
return _.T("div",{class:"ytProfileInfoViewModelActivity"},_.T(_.rc,{each:function(){return[G().profileBadgeInfoYtWide,G().profileBadgeInfoChannelWide].filter(function(u){return!!u})},
keyBy:"INDEX"},function(u){return _.T(_.GY,null,_.T("div",{class:"ytProfileInfoViewModelHeader"},_.T("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return u().profileSectionTitle}),_.T("div",{class:"ytProfileInfoViewModelSectionDesc"},_.T("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var O;
return(O=u().commentBadge)==null?void 0:O.commentDesc}),_.T(_.X,{cond:function(){var O;
return(O=u().commentBadge)==null?void 0:O.blackHeartDesc},
then:function(){return _.T("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.T("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.T(_.RD,{data:function(){var O;
return{thumbnails:[{url:(O=u().commentBadge)==null?void 0:O.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.T("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var O;return(O=u().commentBadge)==null?void 0:O.blackHeartDesc}))),_.T("div",{class:"ytProfileInfoViewModelBadge"},_.T(_.rc,{each:function(){return u().badges||[]}},function(O){return _.T(XXg,{data:O})})))}))},"hl");var WFy=_.D(function(Y){var G=Y.data;var u=function(){return G().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.T("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.T(_.HE,{data:function(){return G().profileIdentityInfo}},{profileIdentityInfoViewModel:function(O){return _.T(B$N,{data:O.data,
hideDivider:u,isChannelInfoCard:u})},
profileInfoViewModel:zvV}),_.T(_.HE,{data:function(){return G().profileInfo}},{profileIdentityInfoViewModel:B$N,
profileInfoViewModel:zvV}))},"il");
WFy.idomCompat=!0;_.hR(WFy,"yt-profile-card-view-model",{props:{data:_.AC}});var FL=function(){var Y=_.Z.apply(this,arguments)||this;Y.enableFocusFix=_.F("music_web_enable_focus_on_setting_menu_fix")&&_.hy("IS_MOBILE_WEB",!1);Y.covered=!1;Y.hideMenu=!1;Y.isCommentNotificationOnProfileCard=!1;Y.scrolledByTouch=!1;Y.disableBackdropFilter=_.F("web_disable_backdrop_filter");Y.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return Y};
_.m(FL,_.Z);_.H=FL.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 Y=this;this.JSC$22363_containerElement.addEventListener("scroll",function(){Y.ytRendererBehavior.markDirty()})};
_.H.attributeChanged=function(Y,G){Y==="menu-style"&&_.qZ(this.hostElement,"yt-multi-page-menu-closed-action",[G])};
_.H.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Jh(this,this.focusOnStampFinished))};
_.H.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Jh(this,this.focusOnStampFinished))};
_.H.reset=function(){this.closeJobId&&(_.AN.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.H.focusOnStampFinished=function(Y){Y.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Jh(this,this.focusOnStampFinished)),this.doFocus())};
_.H.doFocus=function(){var Y=_.nSR(this.sectionsElement);Y.length&&Y[0].focus()};
_.H.computeMenuStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.H.computeIsCommentNotificationOnProfileCard=function(Y){return _.F("enable_profile_cards_on_comments")&&Y.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.H.computeHideMenu=function(Y,G){return Y||!(!G||!G.showLoadingSpinner)};
_.H.onPopupClosed=function(){this.isPopUpOpen=!1;_.qZ(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.H.onPopupOpened=function(Y,G){this.isPopUpOpen=!0;G.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.$s(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.V6({type:"CHANNEL_REPORT_RESET"})))};
_.H.onYtNavigate=function(Y,G){this.shouldCloseOnNavigateEvent(G.endpoint)&&_.qZ(this.hostElement,"yt-close-all-popups-action")};
_.H.handleEndpoint=function(Y){Y=_.z(Y,_.pk);!this.isCommentNotificationOnProfileCard&&Y&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$22363_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.H.handleActions=function(Y){for(var G=0,u=Y.length;G<u;G++){var O=_.z(Y[G],k9B);O&&this.handleGetMultiPageMenuAction(O);(O=_.z(Y[G],_.F32))&&this.handleAppendContinuationItemsAction(O)}};
_.H.onServiceRequestSentOrCompleted=function(Y,G){Y.detail&&Y.detail.endpoint&&this.handleEndpoint(Y.detail.endpoint);G.actions&&this.handleActions(G.actions)};
_.H.handleGetMultiPageMenuAction=function(Y){var G=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.l0(this.submenuElement).appendChild(G);(Y=Y.menu.multiPageMenuRenderer)&&this.logSubmenu(Y);G.data=Y;G.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.H.handleAppendContinuationItemsAction=function(Y){if(this.data&&Y.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&Y.continuationItems&&this.data.sections){var G=this.data.sections.length-1;this.data.sections[G].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),G--);if(this.data.sections[G].multiPageMenuNotificationSectionRenderer&&Y.continuationItems){Y=_.E(Y==null?void 0:Y.continuationItems);for(var u=Y.next();!u.done;u=Y.next())if(u=u.value,_.z(u,LdN)){var O=
void 0,Q=void 0,M=void 0,t=void 0,K=void 0;((O=this)==null?0:(Q=O.data)==null?0:(M=Q.sections)==null?0:(t=M[G])==null?0:(K=t.multiPageMenuNotificationSectionRenderer)==null?0:K.items)&&this.push("data.sections."+G+".multiPageMenuNotificationSectionRenderer.items",u)}else if(_.z(u,_.ahk)||_.z(u,_.l6))this.push("data.sections",u),G++}}};
_.H.logSubmenu=function(Y){if(!_.F("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var G=this.ytRendererBehavior.getScreenLayer(),u=_.FA(G),O=_.nX(G);if((Y=Y.trackingParams)&&u&&O){var Q=_.Kd(Y);_.F("combine_ve_grafts")?_.M4().graftServerVe(Y,O,G):_.y6(u,O,Q)}}};
_.H.emptySubmenuContainer=function(){for(var Y=_.l0(this.submenuElement);Y.firstChild;)Y.removeChild(Y.firstChild)};
_.H.onMenuBackTap=function(Y){_.$s(this.hostElement,"yt-submenu-closed");Y.stopPropagation()};
_.H.onSubmenuClosed=function(Y){_.Zb(Y)!==this.hostElement&&(this.covered=!1,_.$s(this.hostElement,"yt-refit"),Y.stopPropagation())};
_.H.onRetrieveLocation=function(Y,G){G.hasComments&&(G.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),Y.stopPropagation())};
_.H.shouldCloseOnNavigateEvent=function(Y){if(!Y)return!0;if(_.z(Y,_.VOR)||_.z(Y,_.lAT)||_.z(Y,_.j8k)||_.z(Y,_.SK))return!1;var G;return((G=_.z(Y==null?void 0:Y.commandMetadata,_.ug))==null?0:G.ignoreNavigation)?!1:!0};
_.H.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.H.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.H.refitAfterRender=function(){var Y=this;_.sk(this,function(){_.$s(Y.hostElement,"yt-refit")})};
FL.prototype.refitAfterRender=FL.prototype.refitAfterRender;FL.prototype.onRetrieveLocation=FL.prototype.onRetrieveLocation;FL.prototype.onSubmenuClosed=FL.prototype.onSubmenuClosed;FL.prototype.onMenuBackTap=FL.prototype.onMenuBackTap;FL.prototype.onServiceRequestSentOrCompleted=FL.prototype.onServiceRequestSentOrCompleted;FL.prototype.onYtNavigate=FL.prototype.onYtNavigate;FL.prototype.onPopupOpened=FL.prototype.onPopupOpened;FL.prototype.onPopupClosed=FL.prototype.onPopupClosed;
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],FL.prototype,"ytEventForwardingBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],FL.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],FL.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],FL.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],FL.prototype,"enableFocusFix",void 0);_.S([_.R(),_.V("design:type",Object)],FL.prototype,"covered",void 0);_.S([_.R({computed:"computeHideMenu(covered, data)"}),_.V("design:type",Object)],FL.prototype,"hideMenu",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.V("design:type",String)],FL.prototype,"menuStyle",void 0);
_.S([_.R({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.V("design:type",Object)],FL.prototype,"isCommentNotificationOnProfileCard",void 0);_.S([_.R(),_.V("design:type",Boolean)],FL.prototype,"isPopUpOpen",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],FL.prototype,"scrolledByTouch",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],FL.prototype,"disableBackdropFilter",void 0);
_.S([_.Ox("#sections"),_.V("design:type",HTMLElement)],FL.prototype,"sectionsElement",void 0);_.S([_.Ox("#spinner"),_.V("design:type",HTMLElement)],FL.prototype,"spinnerElement",void 0);_.S([_.Ox("#header"),_.V("design:type",HTMLElement)],FL.prototype,"headerElement",void 0);_.S([_.Ox("#container"),_.V("design:type",HTMLElement)],FL.prototype,"JSC$22363_containerElement",void 0);_.S([_.Ox("#submenu"),_.V("design:type",HTMLElement)],FL.prototype,"submenuElement",void 0);
_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],FL.prototype,"onPopupClosed",null);_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],FL.prototype,"onPopupOpened",null);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],FL.prototype,"onYtNavigate",null);
_.S([_.Yo("yt-service-request-completed"),_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],FL.prototype,"onServiceRequestSentOrCompleted",null);_.S([_.Yo("yt-menu-back-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],FL.prototype,"onMenuBackTap",null);
_.S([_.Yo("yt-submenu-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],FL.prototype,"onSubmenuClosed",null);_.S([_.Yo("yt-retrieve-location"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],FL.prototype,"onRetrieveLocation",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],FL.prototype,"refitAfterRender",null);
_.S([_.pD({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],FL);
_.d(FL,"ytd-multi-page-menu-renderer",function(){if(NLx!==void 0)return NLx;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return NLx=Y},{mode:1});var rey;var pw=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return Y};
_.m(pw,_.Z);_.H=pw.prototype;_.H.created=function(){this.showTooltips=!0};
_.H.computeAccessibility_=function(Y){return this.get("accessibility.accessibilityData",Y)||null};
_.H.onTap=function(){var Y=_.sK(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(Y&&Y.length===1&&Y[0])_.qZ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var G;if((G=this.data)==null?0:G.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var u;((u=this.data)==null?0:u.menuRequest)&&_.c$(this.hostElement,[this.data.menuRequest])}}};
_.H.handleTopbarMenuClosedAction=function(Y){var G,u;(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(Y)===((G=this.data)==null?void 0:(u=G.icon)==null?void 0:u.iconType)&&this.toggleIconState(!1)};
_.H.toggleIconState=function(Y){_.F("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=Y)};
_.H.handleUpdateTopbarAvatarAction=function(Y){var G;Y=(G=_.z(Y,ONS))==null?void 0:G.avatarUrl;var u,O;G=(u=this.data)==null?void 0:(O=u.avatar)==null?void 0:O.thumbnails;Y&&G&&(u={thumbnails:[Object.assign({},G[0],{url:Y})]},this.set("data.avatar",u))};
_.Uk.Object.defineProperties(pw.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.l0(this.hostElement).querySelector("#button")}}});
pw.prototype.onTap=pw.prototype.onTap;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],pw.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.SZ),_.V("design:type",Object)],pw.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.x(_.PxE.YtButtonBehavior),_.V("design:type",Object)],pw.prototype,"ytButtonBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],pw.prototype,"data",void 0);
_.S([_.Ox("yt-icon-button#button"),_.V("design:type",Object)],pw.prototype,"iconButton",void 0);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pw.prototype,"onTap",null);_.S([_.pD({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],pw);
_.$o()(pw,"ytd-topbar-menu-button-renderer",function(){if(rey===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);rey=Y}Y=rey;return Y},{allowedProps:["data"],
mode:1});var xdg;var z8=function(){return _.Z.apply(this,arguments)||this};
_.m(z8,_.Z);z8.prototype.getSelected=function(){return this.reasons.selected};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],z8.prototype,"data",void 0);_.S([_.Ox("#reasons"),_.V("design:type",Object)],z8.prototype,"reasons",void 0);_.S([_.pD({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],z8);
_.d(z8,"ytd-ad-feedback-content",function(){if(xdg!==void 0)return xdg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return xdg=Y},{mode:1});var f7N;var mI=function(){return _.Z.apply(this,arguments)||this};
_.m(mI,_.Z);_.H=mI.prototype;_.H.onPopupOpened=function(){_.qZ(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.H.computeConfirmButton=function(Y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:Y.confirmLabel}};
_.H.computeCancelButton=function(Y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:Y.cancelLabel}};
_.H.onConfirmTap=function(){var Y=this.content.getSelected();Y!==void 0&&(Y=this.data.reasons[Y].endpoint)&&(_.sH().resolve(_.rH).resolveCommand(Y,{form:{element:this.hostElement}}),_.qZ(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.H.sendFeedbackSubmitToastAction=function(){var Y;(Y=this.data)!=null&&Y.completionMessage&&(Y=_.hH(this.data.completionMessage),_.qZ(this.hostElement,"yt-open-popup-action",[Y,this]))};
_.H.onCancelTap=function(){_.qZ(this.hostElement,"yt-close-popup-action")};
mI.prototype.onPopupOpened=mI.prototype.onPopupOpened;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],mI.prototype,"data",void 0);_.S([_.Ox("#content"),_.V("design:type",Object)],mI.prototype,"content",void 0);_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mI.prototype,"onPopupOpened",null);
_.S([_.pD({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],mI);
_.d(mI,"ytd-ad-feedback-renderer",function(){if(f7N!==void 0)return f7N;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return f7N=Y},{mode:1});var CKS;var yeB=function(){return _.Z.apply(this,arguments)||this};
_.m(yeB,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],yeB.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],yeB.prototype,"data",void 0);_.S([_.pD({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],yeB);
_.d(yeB,"ytd-ad-info-dialog-content",function(){if(CKS!==void 0)return CKS;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return CKS=Y},{mode:1});var evx;var WB=function(){return _.Z.apply(this,arguments)||this};
_.m(WB,_.Z);WB.prototype.computeConfirmButton=function(Y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:Y.confirmLabel}};
WB.prototype.onConfirmTap=function(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
WB.prototype.computeShouldShowTitle=function(){var Y;return!((Y=this.data)==null||!Y.title)};
WB.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.sH().resolve(_.rH).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
WB.prototype.onPopupClosed=WB.prototype.onPopupClosed;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],WB.prototype,"data",void 0);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],WB.prototype,"onPopupClosed",null);_.S([_.pD({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],WB);
_.d(WB,"ytd-ad-info-dialog-renderer",function(){if(evx!==void 0)return evx;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return evx=Y},{mode:1});var Aex;var rP=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionButtonClass="action-button";Y.dismissButtonId="dismiss-button";Y.dialogDismiss=!0;return Y};
_.m(rP,_.Z);_.H=rP.prototype;_.H.computeInPlayer=function(Y){return(Y==null?void 0:Y.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.H.computedLogo=function(){var Y,G;return this.isDarkTheme()?(Y=this.data)==null?void 0:Y.logoDark:(G=this.data)==null?void 0:G.logo};
_.H.computedHeaderImage=function(){var Y,G;return this.isDarkTheme()?(Y=this.data)==null?void 0:Y.headerImageDark:(G=this.data)==null?void 0:G.headerImage};
_.H.computeLogoIconId=function(){var Y,G,u,O=(Y=this.computedLogo())==null?void 0:(G=Y.sources)==null?void 0:(u=G[0])==null?void 0:u.height;return O&&O%31===0?"logo-icon-with-padding":"logo-icon"};
_.H.computeLogoIconHeight=function(){var Y,G,u,O=(Y=this.computedLogo())==null?void 0:(G=Y.sources)==null?void 0:(u=G[0])==null?void 0:u.height;return O&&O%31===0?"31":"24"};
_.H.onPopupClosed=function(){_.sH().resolve(_.ng).dispose()};
_.H.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.H.onShow=function(){this.inPlayer&&_.vC(6);this.titleElement.focus()};
_.H.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var Y=0;Y<this.data.impressionEndpoints.length;Y++){var G=_.z(this.data.impressionEndpoints[Y],_.nd);G&&this.ytComponentBehavior.resolveCommand(G)}};
_.H.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.qZ(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Uk.Object.defineProperties(rP.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!((Y=this.data)==null||!Y.headerImageDark)&&!((G=this.data)==null||!G.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.secondaryButton)}}});
rP.prototype.onPopupClosed=rP.prototype.onPopupClosed;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],rP.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],rP.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.xY.YtVisibilityBehavior),_.V("design:type",Object)],rP.prototype,"ytVisibilityBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],rP.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],rP.prototype,"actionButtonClass",void 0);_.S([_.R(),_.V("design:type",Object)],rP.prototype,"dismissButtonId",void 0);_.S([_.R(),_.V("design:type",Object)],rP.prototype,"dialogDismiss",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],rP.prototype,"hasHeaderImage",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],rP.prototype,"hasPremiumButton",null);
_.S([_.R({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.V("design:type",Boolean)],rP.prototype,"inPlayer",void 0);_.S([_.Ox("#dismiss-button"),_.V("design:type",HTMLElement)],rP.prototype,"dismissButton",void 0);_.S([_.Ox("#title"),_.V("design:type",HTMLElement)],rP.prototype,"titleElement",void 0);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],rP.prototype,"onPopupClosed",null);
_.S([_.pD({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],rP);
_.d(rP,"ytd-enforcement-message-view-model",function(){if(Aex!==void 0)return Aex;var Y=document.createElement("template");_.r(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Aex=Y},{mode:1});var omj;var ie9;var x_=function(){var Y=_.Z.apply(this,arguments)||this;Y.TEST_ONLY={immediateValidation:function(){Y.immediateValidation()},
onValidationResponse:function(G){Y.onValidationResponse(G)},
onGenerateHandleFromNameResponse:function(G){Y.onGenerateHandleFromNameResponse(G)}};
return Y};
_.m(x_,_.Z);_.H=x_.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(Y){this.handleDir=this.getHandleDir(Y);this.handleInput.value=Y;this.validationState={status:"PENDING"};this.immediateValidation()};
_.H.getHandleDir=function(Y){var G=Y===""&&!1;return(G=_.uhe.test.call(_.uhe,Y))?"rtl":"ltr"};
_.H.onDataChanged=function(){var Y,G;this.handleDir=this.getHandleDir((G=(Y=this.data)==null?void 0:Y.handle)!=null?G:"");var u;this.validationState=((u=this.data)==null?0:u.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var O;((O=this.data)==null?0:O.validateOnInit)&&this.immediateValidation()};
_.H.stopPropagation=function(Y){Y.stopPropagation()};
_.H.onInput=function(){var Y;this.handleDir=this.getHandleDir((Y=this.handleInput.value)!=null?Y:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.H.onFocusout=function(Y){this.handleInput.contains(Y.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.H.delayedValidation=function(){var Y,G;this.debouncedValidation((G=(Y=this.data)==null?void 0:Y.validationDelayMs)!=null?G:1E3)};
_.H.immediateValidation=function(){this.debouncedValidation(0)};
_.H.debouncedValidation=function(Y){var G=this;_.y4(this,"debouncedValidation",function(){var u,O=G.staticValidation((u=G.handleInput.value)!=null?u:"");if(O!==void 0)G.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:O};else{var Q;if((Q=G.data)!=null&&Q.validateChannelHandleCommand){G.validationState={status:"LOADING"};var M;G.ytComponentBehavior.resolveCommand(G.data.validateChannelHandleCommand,{form:{handle:(M=G.handleInput.value)!=null?M:""},commandController:{onSuccess:function(t,
K){G.onValidationResponse(K)},
onServerError:function(t,K){G.onValidationServerError(K)}}})}else G.handleUnexpectedValidationError(new _.I2("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",G.data))}},Y)};
_.H.staticValidation=function(Y){var G;if(((G=this.data)==null?void 0:G.channelHandleStaticValidationParams)!==void 0){G=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(Y)&&G.validValueRegexpErrorMessage!==void 0)return G.validValueRegexpErrorMessage;if(G.minLength!==void 0&&Y.length<G.minLength&&G.minLengthErrorMessage!==void 0)return G.minLengthErrorMessage;if(G.maxLength!==void 0&&Y.length>G.maxLength&&G.maxLengthErrorMessage!==void 0)return G.maxLengthErrorMessage}};
_.H.onValidationResponse=function(Y){var G=_.z(Y.result,QNo);G===void 0?this.handleUnexpectedValidationError(new _.I2("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",Y)):this.handleValidationResultRenderer(G)};
_.H.onValidationServerError=function(Y){this.handleUnexpectedValidationError(new _.I2("ValidateChannelHandle request failed.",Y))};
_.H.handleValidationResultRenderer=function(Y){if(Y.handle===void 0)this.handleUnexpectedValidationError(new _.I2("ChannelHandleValidationResultRenderer does not contain handle.",Y));else if(Y.handle===this.handleInput.value)switch(Y.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:Y.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:Y.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.I2("Unrecognized ChannelHandleValidationResult",Y));break;default:_.YV(Y.result)}};
_.H.handleUnexpectedValidationError=function(Y){var G;this.validationState={status:"UNKNOWN",handle:(G=this.handleInput.value)!=null?G:""};_.R0(Y)};
_.H.stopEventPropagation=function(Y){Y.stopPropagation()};
_.H.updateHandleOnChannelNameInputChange=function(Y){if(!this.wasEdited){var G,u;this.debouncedGenerateHandleFromName(Y,(u=(G=this.data)==null?void 0:G.validationDelayMs)!=null?u:1E3)}};
_.H.debouncedGenerateHandleFromName=function(Y,G){var u=this;_.y4(this,"debouncedGenerateHandleFromName",function(){var O;(O=u.data)!=null&&O.validateChannelHandleCommand?u.ytComponentBehavior.resolveCommand(u.data.validateChannelHandleCommand,{form:{name:Y},commandController:{onSuccess:function(Q,M){u.onGenerateHandleFromNameResponse(M)},
onServerError:function(Q,M){_.R0(new _.I2("Error calling GenerateHandleFromName",M))}}}):_.R0(new _.I2("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",u.data))},G)};
_.H.onGenerateHandleFromNameResponse=function(Y){this.wasEdited||((Y=_.z(Y.result,MQw))?this.setHandleInputValue(Y.handle):_.R0(new _.I2("Invalid results when generate handle from name")))};
_.Uk.Object.defineProperties(x_.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var Y;if(Y=this.validationState)Y=this.validationState,Y=Y.status==="OK"||Y.status==="UNKNOWN";if(Y)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var Y;if(((Y=this.validationState)==null?void 0:Y.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 Y,G=(Y=this.channelHandleEntity)==null?void 0:Y.handleEdit;this.handleDir=this.getHandleDir(G!=null?G:"");return G}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var Y,G;if(((Y=this.data)==null?void 0:(G=Y.channelHandleStaticValidationParams)==null?void 0:G.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
x_.prototype.stopEventPropagation=x_.prototype.stopEventPropagation;x_.prototype.onDataChanged=x_.prototype.onDataChanged;x_.prototype.applyHandleEdit=x_.prototype.applyHandleEdit;x_.prototype.onValueChanged=x_.prototype.onValueChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],x_.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],x_.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],x_.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Boolean)],x_.prototype,"wasEdited",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],x_.prototype,"handleDir",void 0);_.S([_.Ox("#handle-input"),_.V("design:type",Object)],x_.prototype,"handleInput",void 0);_.S([_.R(),_.f("validationState"),_.V("design:type",Object),_.V("design:paramtypes",[])],x_.prototype,"value",null);
_.S([_.GO("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],x_.prototype,"onValueChanged",null);_.S([_.f("validationState"),_.V("design:type",Object),_.V("design:paramtypes",[])],x_.prototype,"errorIndicator",null);_.S([_.R({reflectToAttribute:!0}),_.f("errorIndicator"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],x_.prototype,"borderErrorIndicator",null);
_.S([_.R({selectorArgs:["data.channelHandleEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"channelHandle",G)}}),
_.V("design:type",Object)],x_.prototype,"channelHandleEntity",void 0);_.S([_.f("channelHandleEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],x_.prototype,"handleEdit",null);_.S([_.GO("handleEdit"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],x_.prototype,"applyHandleEdit",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],x_.prototype,"onDataChanged",null);
_.S([_.f("data.channelHandleStaticValidationParams.validValueRegexp"),_.V("design:type",Object),_.V("design:paramtypes",[])],x_.prototype,"validValueRegexp",null);_.S([_.Yo("yt-service-request-sent"),_.Yo("yt-service-request-completed"),_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],x_.prototype,"stopEventPropagation",null);_.S([_.pD({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],x_);
_.d(x_,"ytd-channel-handle-input-renderer",function(){if(ie9!==void 0)return ie9;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return ie9=Y},{mode:2});var fw=function(){var Y=_.Z.apply(this,arguments)||this;Y.data=null;Y.errorMessage=null;Y.isLoading=!0;Y.enableNewChannelCreationOnIdForAll=_.F("enable_new_channel_creation_for_id4all");Y.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction"};Y.testOnly={setErrorMessage:function(G){Y.resetErrorState();Y.setErrorState(G)}};
return Y};
_.m(fw,_.Z);_.H=fw.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 Y;((Y=this.zeroStepErrorMessageEntity)==null?0:Y.value)&&this.set("errorMessage",_.i8(this.zeroStepErrorMessageEntity.value))};
_.H.onCreateTap=function(){var Y=this;if(this.data&&this.data.channelCreationEndpoint){var G,u;if(!((G=this.data.createChannelButton)==null?0:(u=G.buttonRenderer)==null?0:u.isDisabled)){var O;if((O=this.nameInput)!=null&&O.value){this.setLoadingState();var Q,M;G=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(Q=this.handleInput)==null?void 0:Q.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((M=this.handleInput)==null?void 0:M.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:G,commandController:{onSuccess:function(t,K){Y.onChannelCreationEndpointSuccess(K);Y.obakeImageSource&&_.eK("channelCreatedWithObakeImage",{imageSourceType:Y.obakeImageSource})},
onServerError:function(){Y.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.H.endpointRequiresServiceRequestAction=function(Y){return!!_.z(Y,_.mJ)||!!_.z(Y,ONS)};
_.H.isNavigateAction=function(Y){var G;return!!_.z(Y,sWx)||!!_.z((G=_.z(Y,aDS))==null?void 0:G.command,sWx)};
_.H.isPlaylistAction=function(Y){return!!_.z(Y,_.zG)||!!_.z(Y,_.fk)};
_.H.onChannelCreationEndpointSuccess=function(Y){if(Y.createChannelError){var G;this.setErrorState((G=Y.createChannelError)==null?void 0:G.errorMessage);this.handleInput&&this.handleInput.validate()}else{Y.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(Y.navigationEndpoint);if(Y.actions){G=_.E(Y.actions);for(var u=G.next();!u.done;u=G.next())if(u=u.value,this.endpointRequiresServiceRequestAction(u)&&this.ytComponentBehavior.resolveCommand(u),this.isNavigateAction(u)){var O=void 0;u=_.z((O=
_.z(u,aDS))==null?void 0:O.command,sWx);O=void 0;this.isPlaylistAction((O=u)==null?void 0:O.endpoint)&&(_.qZ(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),O=void 0,this.ytComponentBehavior.resolveCommand((O=u)==null?void 0:O.endpoint))}}Y.actions&&Y.actions.some(function(Q){var M;return _.z(Q,sWx)||_.z((M=_.z(Q,aDS))==null?void 0:M.command,sWx)})||_.qZ(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 Y,G,u;if(!((Y=this.data)==null?0:(G=Y.cancelButton)==null?0:(u=G.buttonRenderer)==null?0:u.isDisabled)){var O,Q,M;Y=(O=this.data)==null?void 0:(Q=O.cancelButton)==null?void 0:(M=Q.buttonRenderer)==null?void 0:M.command;if(!Y||!_.z(Y,_.Bs1)){var t;this.nameInput&&((t=this.data)==null?0:t.name)&&(this.nameInput.value=this.data.name);var K;this.handleInput&&((K=this.data)==null?0:K.channelHandleInput)&&(this.handleInput.data=_.z(this.data.channelHandleInput,HNb));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 Y,G,u;((Y=this.data)==null?0:(G=Y.clearProfilePhotoButton)==null?0:(u=G.buttonRenderer)==null?0:u.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.H.onEditAvatarTap=function(){var Y,G,u;((Y=this.data)==null?0:(G=Y.editAvatarButton)==null?0:(u=G.buttonRenderer)==null?0:u.isDisabled)||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 Y;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((Y=this.data)==null?0:Y.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.H.setErrorState=function(Y){this.resetErrorState();if(Y)this.set("errorMessage",Y);else{var G;if((G=this.zeroStepErrorMessageEntity)==null?0:G.value)this.set("errorMessage",_.i8(this.zeroStepErrorMessageEntity.value));else{var u;((u=this.data)==null?0:u.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.H.fetchImageBlobWithAlr=function(Y,G){G=G===void 0?5:G;var u=this,O,Q,M,t,K;return _.a(function(L){switch(L.nextAddress){case 1:return L.yield(fetch(Y,{method:"GET",mode:"cors"}),2);case 2:O=L.yieldResult;if(O.ok){L.jumpTo(3);break}if(G===0)throw Error();Q=u.addJitter(Math.pow(2,5-G));return L.yield(new Promise(function(g){setTimeout(g,Q*1E3)}),4);
case 4:return L.return(u.fetchImageBlobWithAlr(Y,G-1));case 3:if(!O.headers.get("content-type").split(";").some(function(g){return g.trim()==="text/plain"})){L.jumpTo(5);
break}M=u;t=M.fetchImageBlobWithAlr;return L.yield(O.text(),6);case 6:return L.return(t.call(M,L.yieldResult,G-1));case 5:return L.yield(O.blob(),7);case 7:return K=L.yieldResult,L.return(K)}})};
_.H.addJitter=function(Y){var G=Y*.3*Math.random();Math.random()>.5&&(G*=-1);return Y+G};
_.H.openProfilePicturePicker=function(){var Y=this,G,u,O,Q,M,t;return _.a(function(K){if(K.nextAddress==1){G=Y.data.scottyUploadUrl;if(!G)return K.return();u=document.documentElement.hasAttribute("dark");O=document.body.style.colorScheme;u&&(document.body.style.colorScheme="dark");Q=PwN(IYB(XOx(Efw(u?"dark":"light")),function(L){var g,P,I,k,n;return _.a(function(p){if(p.nextAddress==1)return g=_.YI(RFj(new pnN(L.photoUrl,!1)).build(),"alr","yes"),Y.obakeImageSource=Y.pictureChangeSourceToObakeImageSourceType(L.photoSource),
_.i3(p,2),Y.setLoadingState(),p.yield(Y.fetchImageBlobWithAlr(g),4);if(p.nextAddress!=2)return P=p.yieldResult,I=new FileReader,I.addEventListener("load",function(){var W,C,e,w,B,N;return _.a(function(h){if(h.nextAddress==1){if(P.size>15728640)return Y.setErrorState((W=Y.data)==null?void 0:W.imageSizeErrorMessage),_.R0(Error("km")),h.return();if(!I.result)return Y.setErrorState((C=Y.data)==null?void 0:C.genericImageLoadErrorMessage),_.R0(Error("lm")),h.return();e=I.result;_.i3(h,2);return h.yield(lBb(P,
G),4)}if(h.nextAddress!=2)return w=h.yieldResult,Y.handleImageUpdatedAction(e,w),Y.resetErrorState(),_.j1(h,0);B=_.b3(h);Y.setErrorState((N=Y.data)==null?void 0:N.uploadErrorMessage);if(B instanceof Error)_.o0(B);else{var q=new _.I2(JSON.stringify(B));_.o0(q)}_.Sd(h)})}),I.readAsDataURL(P),_.j1(p,0);
k=_.b3(p);Y.setErrorState((n=Y.data)==null?void 0:n.genericImageLoadErrorMessage);k instanceof Error?_.o0(k):_.ij(new _.I2(JSON.stringify(k)));_.Sd(p)})}),function(){document.body.style.colorScheme=O});
_.i3(K,2);return((M=Y.data)==null?0:M.shouldViewChannelCreationFormForSupex)?K.yield(Q.openPicker("profile-picture/art-selection"),5):K.yield(Q.openPicker(),5)}if(K.nextAddress!=2)return _.j1(K,0);_.b3(K);Y.setErrorState((t=Y.data)==null?void 0:t.selectImageErrorMessage);_.Sd(K)})};
_.H.pictureChangeSourceToObakeImageSourceType=function(Y){switch(Y){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.H.logScreenVe=function(){_.UL(_.M4(),124448)};
_.H.graftServerVe=function(){var Y=_.nX(),G,u,O=(G=this.data)==null?void 0:(u=G.loggingDirectives)==null?void 0:u.trackingParams;O&&Y&&(this.channelCreationFormVe=_.M4().graftServerVe(O,Y),Y={visualElement:this.channelCreationFormVe},_.O3().reportShown(Y))};
_.H.isNameChanged=function(Y){var G;return((G=this.data)==null?void 0:G.name)!==Y};
_.H.isHandleChanged=function(Y){var G,u=_.z((G=this.data)==null?void 0:G.channelHandleInput,HNb);return u&&Y?u.handle!==Y:!1};
_.H.handleImageUpdatedAction=function(Y,G){this.previewDataUrl=Y;this.encryptedBlobId=G};
_.H.handleImageSelectionErrorAction=function(Y){this.setErrorState(Y)};
_.H.handleImageSelectionResetErrorAction=function(){this.resetErrorState()};
_.H.maybeWipeZeroStepErrorMessage=function(){var Y,G=(Y=this.data)==null?void 0:Y.zeroStepErrorMessageEntityKey,u;G&&((u=this.zeroStepErrorMessageEntity)==null?0:u.value)&&this.ytdReduxBehavior.dispatch(_.t$("stringEntity",G,{key:G,value:""}))};
_.Uk.Object.defineProperties(fw.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 Y;return((Y=this.photoThumbnail)==null?0:Y.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 Y;return!((Y=this.data)==null||!Y.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.descriptionInfo}}});
fw.prototype.dataChanged=fw.prototype.dataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],fw.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],fw.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],fw.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],fw.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],fw.prototype,"errorMessage",void 0);
_.S([_.R(),_.V("design:type",Object)],fw.prototype,"isLoading",void 0);_.S([_.R(),_.V("design:type",String)],fw.prototype,"previewDataUrl",void 0);_.S([_.R(),_.V("design:type",Number)],fw.prototype,"obakeImageSource",void 0);_.S([_.Ox("#title-input"),_.V("design:type",Object)],fw.prototype,"nameInput",void 0);_.S([_.Ox("#handle-input"),_.V("design:type",Object)],fw.prototype,"handleInput",void 0);_.S([_.R(),_.V("design:type",Boolean)],fw.prototype,"enableNewChannelCreationOnIdForAll",void 0);
_.S([_.R({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.yca}),_.V("design:type",Object)],fw.prototype,"zeroStepErrorMessageEntity",void 0);_.S([_.f("data","data.isDefaultProfilePhoto","previewDataUrl"),_.V("design:type",Object),_.V("design:paramtypes",[])],fw.prototype,"photoThumbnail",null);_.S([_.f("data","data.isDefaultProfilePhoto","photoThumbnail"),_.V("design:type",Object),_.V("design:paramtypes",[])],fw.prototype,"userSetPhotoThumbnailUrl",null);
_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fw.prototype,"hideProfilePhotoButtonLayer",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fw.prototype,"enableIdentityForAllChannelCreationDialog",null);_.S([_.Ex("data","zeroStepErrorMessageEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fw.prototype,"dataChanged",null);
_.S([_.R({reflectToAttribute:!0}),_.f("data.descriptionInfo","zeroStepErrorMessageEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],fw.prototype,"description",null);_.S([_.pD({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],fw);
_.d(fw,"ytd-channel-creation-dialog-renderer",function(){if(omj!==void 0)return omj;var Y=document.createElement("template");_.r(Y,'\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">\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return omj=Y},{mode:1});var Rvb;var Cw=function(){var Y=_.Z.apply(this,arguments)||this;Y.isLoading=!1;Y.isDisabled=!1;return Y};
_.m(Cw,_.Z);Cw.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Cw.prototype.updateDisabled=function(){var Y;this.isDisabled=this.isLoading||((Y=this.handleInput)==null?void 0:Y.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Cw.prototype.onSaveClick=function(){var Y=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var G;((G=this.data)==null?void 0:G.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 u;if((u=Y.data)==null?0:u.nextEndpoint){var O;Y.ytComponentBehavior.resolveCommand((O=Y.data)==null?void 0:O.nextEndpoint)}else Y.isLoading=
!1,Y.closeDialog()},
onServerError:function(){Y.isLoading=!1;Y.handleInput.validate();var u;Y.errorMessage=(u=Y.data)==null?void 0:u.errorMessage}}}))}};
Cw.prototype.closeDialog=function(){_.qZ(this.hostElement,"yt-close-popup-action",[this.is])};
Cw.prototype.updateDisabled=Cw.prototype.updateDisabled;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Cw.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Cw.prototype,"data",void 0);_.S([_.Ox("#handle-input"),_.V("design:type",Object)],Cw.prototype,"handleInput",void 0);_.S([_.GO("isLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cw.prototype,"updateDisabled",null);
_.S([_.pD({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Cw);
_.d(Cw,"ytd-channel-handle-edit-dialog-renderer",function(){if(Rvb!==void 0)return Rvb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Rvb=Y},{mode:1});var wXj;var yi=function(){return _.Z.apply(this,arguments)||this};
_.m(yi,_.Z);yi.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],yi.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],yi.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],yi.prototype,"data",void 0);_.S([_.pD({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],yi);
_.d(yi,"ytd-channel-switcher-footer-renderer",function(){if(wXj!==void 0)return wXj;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return wXj=Y},{mode:1});var Zew;var Ddy;var eF=function(){return _.Z.apply(this,arguments)||this};
_.m(eF,_.Z);eF.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
eF.prototype.onIronChange=eF.prototype.onIronChange;_.S([_.R(),_.V("design:type",Object)],eF.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!1}),_.V("design:type",Function)],eF.prototype,"onDontAskAgainChanged",void 0);_.S([_.Ox("#checkbox"),_.V("design:type",Object)],eF.prototype,"checkbox",void 0);_.S([_.Yo("iron-change"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eF.prototype,"onIronChange",null);
_.S([_.pD({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],eF);
_.d(eF,"ytd-identity-prompt-footer-renderer",function(){if(Ddy!==void 0)return Ddy;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Ddy=Y},{mode:1});var A8=function(){var Y=_.Z.apply(this,arguments)||this;Y.dontAskAgain=!1;Y.showPopup=!1;Y.boundDontAskAgainChanged=function(G){Y.dontAskAgainChanged(G)};
Y.boundOnAccountItemTap=function(G){Y.onAccountItemTap(G)};
return Y};
_.m(A8,_.Z);_.H=A8.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 Y=this;_.l0(this.hostElement).querySelector("#container").addEventListener("scroll",function(){Y.ytRendererBehavior.markDirty()})};
_.H.dontAskAgainChanged=function(Y){this.dontAskAgain=Y};
_.H.onAccountItemTap=function(Y){if(Y){var G={};this.dontAskAgain&&(G={dont_ask_again:this.dontAskAgain});_.Wm(Y,G)}};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.H.redirectOnlyAccount=function(Y){Y.sections&&Y.sections.length>0&&(Y=_.z(Y.sections[0],_.OLT),(Y==null?0:Y.contents)&&(Y==null?void 0:Y.contents.length)<=1?(Y=_.li(window.location.href),(Y==null?0:Y.next)&&_.xuj(Y.next)?_.Wm(Y.next):_.Wm("/")):this.showPopup=!0)};
A8.prototype.dataChanged=A8.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],A8.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!1}),_.V("design:type",Object)],A8.prototype,"dontAskAgain",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],A8.prototype,"showPopup",void 0);_.S([_.R({reflectToAttribute:!1}),_.V("design:type",Object)],A8.prototype,"boundDontAskAgainChanged",void 0);_.S([_.R({reflectToAttribute:!1}),_.V("design:type",Object)],A8.prototype,"boundOnAccountItemTap",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],A8.prototype,"dataChanged",null);
_.S([_.pD({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],A8);
_.d(A8,"ytd-channel-switcher-renderer",function(){if(Zew!==void 0)return Zew;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Zew=Y},{mode:1});var hvb;var oI=function(){return _.Z.apply(this,arguments)||this};
_.m(oI,_.Z);_.Uk.Object.defineProperties(oI.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.S([_.R(),_.V("design:type",Object)],oI.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],oI.prototype,"steps",null);_.S([_.pD({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],oI);
_.d(oI,"ytd-channel-transfer-stepper-renderer",function(){if(hvb!==void 0)return hvb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return hvb=Y},{mode:1});var ddy;var ib=function(){var Y=_.Z.apply(this,arguments)||this;Y.data=null;Y.isError=!1;Y.isLoading=!1;return Y};
_.m(ib,_.Z);_.H=ib.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(Y){return Y?Y.givenNameValue+" "+Y.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)};
ib.prototype.onYtServiceRequestError=ib.prototype.onYtServiceRequestError;ib.prototype.onYtServiceRequestSent=ib.prototype.onYtServiceRequestSent;ib.prototype.dataChanged=ib.prototype.dataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ib.prototype,"data",void 0);
_.S([_.R({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.V("design:type",String)],ib.prototype,"profileName",void 0);_.S([_.R(),_.V("design:type",Object)],ib.prototype,"isError",void 0);_.S([_.R(),_.V("design:type",Object)],ib.prototype,"isLoading",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ib.prototype,"dataChanged",null);
_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],ib.prototype,"onYtServiceRequestSent",null);_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],ib.prototype,"onYtServiceRequestError",null);_.S([_.pD({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],ib);
_.d(ib,"ytd-channel-warm-welcome-cont-renderer",function(){if(ddy!==void 0)return ddy;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return ddy=Y},{mode:1});var beb;var RI=function(){var Y=_.Z.apply(this,arguments)||this;Y.data=null;return Y};
_.m(RI,_.Z);RI.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
RI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],RI.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],RI.prototype,"data",void 0);_.S([_.pD({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],RI);
_.d(RI,"ytd-channel-warm-welcome-renderer",function(){if(beb!==void 0)return beb;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return beb=Y},{mode:1});var SOV;var wP=function(){return _.Z.apply(this,arguments)||this};
_.m(wP,_.Z);_.Uk.Object.defineProperties(wP.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.authorThumbnail)||{}}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],wP.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],wP.prototype,"thumbnailDetails",null);_.S([_.pD({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],wP);
_.d(wP,"ytd-comment-preview-renderer",function(){if(SOV!==void 0)return SOV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return SOV=Y},{mode:1});var NvN;var Z2=function(){return _.Z.apply(this,arguments)||this};
_.m(Z2,_.Z);Z2.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Uk.Object.defineProperties(Z2.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.submitButton}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Z2.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Z2.prototype,"submitButton",null);_.S([_.pD({is:"ytd-notice-renderer",disableElementRegistration:!0})],Z2);
_.d(Z2,"ytd-notice-renderer",function(){if(NvN!==void 0)return NvN;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return NvN=Y},{mode:1});var jMg;var D2=function(){return _.Z.apply(this,arguments)||this};
_.m(D2,_.Z);D2.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],D2.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],D2.prototype,"data",void 0);_.S([_.pD({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],D2);
_.d(D2,"ytd-preview-comment-dialog-content",function(){if(jMg!==void 0)return jMg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return jMg=Y},{mode:1});var V2N;var h8=function(){return _.Z.apply(this,arguments)||this};
_.m(h8,_.Z);h8.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
h8.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],h8.prototype,"data",void 0);_.S([_.pD({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],h8);
_.d(h8,"ytd-preview-comment-dialog-renderer",function(){if(V2N!==void 0)return V2N;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return V2N=Y},{mode:1});var l7b;var Bvx=_.F("web_button_rework")&&_.hy("BUTTON_REWORK")||_.F("web_button_rework_with_live"),dP=function(){var Y=_.Z.apply(this,arguments)||this;Y.closeLabel=_.Q6("CLOSE");Y.selectedAmountIndex=1;Y.privacyCheckboxValue=!1;Y.useAmsterdamStyle=Bvx;Y.amountPlaceholderIndex=-1;return Y};
_.m(dP,_.Z);_.H=dP.prototype;_.H.onAmountClick=function(Y){this.selectedAmountIndex=_.l0(this.hostElement).querySelector("#amounts").indexForElement(Y.currentTarget)};
_.H.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.qZ(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.H.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.qZ(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.qZ(this.hostElement,"yt-close-popup-action",[this.is]);var Y;(Y=_.N5())==null||Y.getPlayerPromise().then(function(G){G.pauseVideo()})}};
_.H.donationCallback=function(Y){Y.success?(this.hostElement.hasAttribute("live-chat")&&Y.response&&Y.response.data&&Y.response.data.actions&&_.qZ(this.hostElement,"yt-live-chat-open-popup",[Y.response.data.actions[0]]),_.qZ(this.hostElement,"yt-close-popup-action",[this.is]),_.qZ(this.hostElement,"yt-live-chat-close-buy-flow")):Y.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(Y.errorMessageRenderer)};
_.H.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.l0(this.hostElement).querySelector("#custom-amount-input").focus()};
_.H.updateConfirmationDialogTextWithAmount=function(Y){var G=this.getConfirmDialogRuns();G&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(G),"text"],this.getFormattedAmount(Y))};
_.H.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.H.getAmountPlaceholderIndex=function(Y){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=Y.findIndex(function(G){return G.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.H.getFormattedAmount=function(Y){var G;return(new _.CU(4,((G=this.data)==null?void 0:G.currencyCode)||"")).format(Y)};
_.H.isAmountValid=function(Y){if(Y==="")return!1;Y=Number(Y)*1E6;var G=this.get("minAmountMicros",this.data),u=this.get("maxAmountMicros",this.data);return G&&Y<G||u&&Y>u?!1:!0};
_.H.setInputError=function(){this.shouldShowValidationError?_.l0(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.l0(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.H.setInitialCheckboxValue=function(){var Y;this.privacyCheckboxValue=!((Y=this.data)==null||!Y.privacyCheckboxInitialState)};
_.H.updateCustomAmountInputFromBinding=function(Y){this.customAmountInput=Y.detail.value};
_.H.updatePrivacyCheckboxValueFromBinding=function(Y){this.privacyCheckboxValue=Y.detail.value};
_.Uk.Object.defineProperties(dP.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var Y=this,G,u;return((G=this.data)==null?void 0:(u=G.suggestedAmounts)==null?void 0:u.map(function(O,Q){return{buttonRenderer:{style:Y.selectedAmountIndex===Q?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:O.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 Y;return!((Y=this.data)==null||!Y.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 Y=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(Y&&this.amountMicros!==null)return Object.assign({},Y,{ypcGetCartEndpoint:Object.assign({},Y.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 Y=this.get("confirmLargeAmount",this.data);if(Y&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),Y}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("donateButton.buttonRenderer",this.data);if(Y)return Object.assign({},Y,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
dP.prototype.setInitialCheckboxValue=dP.prototype.setInitialCheckboxValue;dP.prototype.setInputError=dP.prototype.setInputError;dP.prototype.setFocusOnCustomAmountInput=dP.prototype.setFocusOnCustomAmountInput;_.S([_.x(jjN),_.V("design:type",Object)],dP.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],dP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],dP.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],dP.prototype,"closeLabel",void 0);_.S([_.R(),_.V("design:type",Object)],dP.prototype,"selectedAmountIndex",void 0);_.S([_.R(),_.V("design:type",String)],dP.prototype,"customAmountInput",void 0);_.S([_.R(),_.V("design:type",Object)],dP.prototype,"privacyCheckboxValue",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],dP.prototype,"useAmsterdamStyle",void 0);_.S([_.GO("customAmount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dP.prototype,"setFocusOnCustomAmountInput",null);_.S([_.f("data","selectedAmountIndex"),_.V("design:type",Array),_.V("design:paramtypes",[])],dP.prototype,"suggestedAmountButtons",null);
_.S([_.f("data","selectedAmountIndex"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dP.prototype,"isCustomAmountSelected",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dP.prototype,"showPrivacyCheckbox",null);_.S([_.f("data","selectedAmountIndex","customAmount"),_.V("design:type",Object),_.V("design:paramtypes",[])],dP.prototype,"amountMicros",null);
_.S([_.f("isCustomAmountSelected","customAmountInput"),_.V("design:type",Object),_.V("design:paramtypes",[])],dP.prototype,"customAmount",null);_.S([_.f("customAmount"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dP.prototype,"shouldShowValidationError",null);_.S([_.f("customAmount"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dP.prototype,"isDonateButtonEnabled",null);
_.S([_.f("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.V("design:type",Object),_.V("design:paramtypes",[])],dP.prototype,"donateCommand",null);_.S([_.f("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.V("design:type",Object),_.V("design:paramtypes",[])],dP.prototype,"donateCommandWithConfirmation",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],dP.prototype,"largeDonationThreshold",null);
_.S([_.f("customAmount","donateCommand","amountMicros"),_.V("design:type",Object),_.V("design:paramtypes",[])],dP.prototype,"confirmLargeAmountCommand",null);_.S([_.f("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.V("design:type",Object),_.V("design:paramtypes",[])],dP.prototype,"donateButtonRenderer",null);_.S([_.GO("shouldShowValidationError"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dP.prototype,"setInputError",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dP.prototype,"setInitialCheckboxValue",null);_.S([_.pD({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],dP);
_.d(dP,"ytd-donation-amount-picker-renderer",function(){if(l7b!==void 0)return l7b;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return l7b=Y},{mode:1});var $dV;var qO9=function(){return _.Z.apply(this,arguments)||this};
_.m(qO9,_.Z);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],qO9.prototype,"ytComponentBehavior",void 0);_.S([_.R({}),_.V("design:type",Object)],qO9.prototype,"data",void 0);_.S([_.pD({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],qO9);
_.d(qO9,"ytd-donation-post-transaction-content",function(){if($dV!==void 0)return $dV;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return $dV=Y},{mode:1});var sMV;var bb=function(){return _.Z.apply(this,arguments)||this};
_.m(bb,_.Z);bb.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.S([_.R({}),_.V("design:type",Object)],bb.prototype,"data",void 0);_.S([_.pD({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],bb);
_.d(bb,"ytd-donation-post-transaction-renderer",function(){if(sMV!==void 0)return sMV;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return sMV=Y},{mode:1});var cex;var Udo;var SF=function(){return _.Z.apply(this,arguments)||this};
_.m(SF,_.Z);SF.prototype.computeIsStreamingProvider=function(Y){return!!Y.isStreamingShelf};
SF.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],SF.prototype,"data",void 0);_.S([_.R({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],SF.prototype,"isStreamingProvider",void 0);
_.S([_.pD({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],SF);
_.d(SF,"ytd-media-provider-renderer",function(){if(Udo!==void 0)return Udo;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Udo=Y},{mode:1});var vmB;var NG=function(){return _.Z.apply(this,arguments)||this};
_.m(NG,_.Z);NG.prototype.observeLightsourcePalette=function(){var Y,G=(Y=this.data)==null?void 0:Y.vibrantsourceColorPaletteData;G&&_.gE(this.hostElement,G)};
NG.prototype.observeLightsourcePalette=NG.prototype.observeLightsourcePalette;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],NG.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],NG.prototype,"data",void 0);
_.S([_.GO("data.vibrantsourceColorPaletteData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NG.prototype,"observeLightsourcePalette",null);_.S([_.pD({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],NG);
_.d(NG,"ytd-streaming-pop-up-dialog",function(){if(vmB!==void 0)return vmB;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return vmB=Y},{mode:1});var jF=function(){return _.Z.apply(this,arguments)||this};
_.m(jF,_.Z);jF.prototype.onPopupOpened_=function(){var Y;((Y=this.data)==null?0:Y.serviceEndpoint)&&_.sH().resolve(_.rH).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
jF.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
jF.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"}}}}};
jF.prototype.onPopupOpened_=jF.prototype.onPopupOpened_;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],jF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.DD),_.V("design:type",Object)],jF.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],jF.prototype,"data",void 0);
_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jF.prototype,"onPopupOpened_",null);_.S([_.pD({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],jF);
_.d(jF,"ytd-brandconnect-popup-renderer",function(){if(cex!==void 0)return cex;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return cex=Y},{mode:1});var JeN;var Vi=function(){return _.Z.apply(this,arguments)||this};
_.m(Vi,_.Z);_.H=Vi.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 Y=0;Y<this.getOptionRenderers().length;Y++)this.notifyPath("data.options."+Y+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+Y+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.H.updateSubmitButton=function(Y){this.set("data.submitButton.buttonRenderer.isDisabled",!Y)};
_.H.computeAlt=function(Y){return _.Ri(Y)};
_.H.onDismissTap=function(){_.qZ(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.sH().resolve(_.rH).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.H.getOptionRenderers=function(Y){return(Y=Y||this.data)&&Y.options?Y.options.reduce(function(G,u){u.checkboxSurveyOptionRenderer&&G.push(u.checkboxSurveyOptionRenderer);return G},[]):[]};
_.H.onOptionChange=function(Y){var G=this,u=!1;if(Y.detail.checked)for(var O=this.getOptionRenderers().find(function(K){return K.value===Y.detail.value}),Q=this.getOptionRenderers(),M=0;M<Q.length;M++){var t=Q[M];
this.notifyPath("data.options."+M+".checkboxSurveyOptionRenderer.checked");t.checked&&((O==null?0:O.isExclusiveOption)?!t.isExclusiveOption:t.isExclusiveOption)?this.set("data.options."+M+".checkboxSurveyOptionRenderer.checked",!1):t.checked&&(u=!0)}else u=this.getOptionRenderers().some(function(K,L){G.notifyPath("data.options."+L+".checkboxSurveyOptionRenderer.checked");return K.checked});
this.updateSubmitButton(u)};
_.H.onSubmitTap=function(){var Y=this.getOptionRenderers().filter(function(M){return M.checked});
if(Y.length!==0){var G=Y.map(function(M){return M.responseEndpoint});
Y=[];for(var u=1;u<G.length;u++){var O=void 0,Q=(O=_.z(G[u],_.WH))==null?void 0:O.feedbackToken;Q&&Y.push(Q)}G=[G[0]];Y.length&&G.push({extra_feedback_tokens:Y});_.c$(this.hostElement,G);_.qZ(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);Y=this.data&&this.data.submitActions||[];if(_.F("kevlar_command_handler_migration_killswitch"))_.UK(this.hostElement,Y,this.hostElement);else for(Y=_.E(Y),G=Y.next();!G.done;G=Y.next())this.ytComponentBehavior.resolveCommand(G.value)}};
Vi.prototype.onOptionChange=Vi.prototype.onOptionChange;Vi.prototype.dataChanged=Vi.prototype.dataChanged;_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],Vi.prototype,"ytEventForwardingBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Vi.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Vi.prototype,"ytComponentBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.S([_.x(pgo),_.V("design:type",Object)],Vi.prototype,"ytdHatsSurveyBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Vi.prototype,"data",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vi.prototype,"dataChanged",null);
_.S([_.Yo("ytd-checkbox-survey-option-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Vi.prototype,"onOptionChange",null);_.S([_.pD({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Vi);
_.d(Vi,"ytd-checkbox-survey-renderer",function(){if(JeN!==void 0)return JeN;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return JeN=Y},{mode:1});var YIq;var Gga;var lb=function(){return _.Z.apply(this,arguments)||this};
_.m(lb,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.S([_.x(n0N),_.V("design:type",Object)],lb.prototype,"ytdDismissalReasonBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],lb.prototype,"data",void 0);_.S([_.pD({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],lb);
_.d(lb,"ytd-dismissal-reason-text-renderer",function(){if(Gga!==void 0)return Gga;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Gga=Y},{mode:1});var utO;var tx=function(){return _.Z.apply(this,arguments)||this};
_.m(tx,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.S([_.x(n0N),_.V("design:type",Object)],tx.prototype,"ytdDismissalReasonBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],tx.prototype,"data",void 0);_.S([_.pD({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],tx);
_.d(tx,"ytd-dismissal-reason-video-renderer",function(){if(utO!==void 0)return utO;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return utO=Y},{mode:1});var Ks=function(){return _.Z.apply(this,arguments)||this};
_.m(Ks,_.Z);_.H=Ks.prototype;_.H.created=function(){this.selectedFeedbackTokens=new pW};
_.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(Y,G){_.$s(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(G);this.hasReasonsSelected=!0};
_.H.onDismissalReasonDeselected=function(Y,G){_.$s(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(G);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.H.onCancelTap=function(){_.qZ(this.hostElement,"yt-close-popup-action")};
_.H.onSubmitTap=function(){var Y=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(Y={feedback_tokens:Y},_.sH().resolve(_.rH).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},Y,{element:this.hostElement})}));_.qZ(this.hostElement,"yt-close-popup-action")};
Ks.prototype.onDismissalReasonDeselected=Ks.prototype.onDismissalReasonDeselected;Ks.prototype.onDismissalReasonSelected=Ks.prototype.onDismissalReasonSelected;Ks.prototype.dataChanged=Ks.prototype.dataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ks.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Boolean)],Ks.prototype,"hasReasonsSelected",void 0);_.S([_.R(),_.V("design:type",pW)],Ks.prototype,"selectedFeedbackTokens",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ks.prototype,"dataChanged",null);_.S([_.Yo("yt-dismissal-reason-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,String]),_.V("design:returntype")],Ks.prototype,"onDismissalReasonSelected",null);
_.S([_.Yo("yt-dismissal-reason-deselected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,String]),_.V("design:returntype")],Ks.prototype,"onDismissalReasonDeselected",null);_.S([_.pD({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Ks);
_.d(Ks,"ytd-dismissal-follow-up-renderer",function(){if(YIq!==void 0)return YIq;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return YIq=Y},{mode:1});var O1z;var ac=function(){return _.Z.apply(this,arguments)||this};
_.m(ac,_.Z);_.H=ac.prototype;_.H.onCheckedChange=function(){this.multiselect||_.$s(this.hostElement,"yt-feedback-single-select-changed");_.l0(this.hostElement).querySelector("#freeform").focus();_.$s(this.hostElement,"yt-refit")};
_.H.showTextBox=function(Y,G){return Y&&G};
_.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(Y){this.set("data.checked",Y.detail.value)};
_.H.updateDataResultTextFromBinding=function(Y){this.set("data.resultText",Y.detail.value)};
ac.prototype.dataChanged=ac.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ac.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],ac.prototype,"multiselect",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ac.prototype,"dataChanged",null);
_.S([_.pD({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],ac);
_.d(ac,"ytd-feedback-option-renderer",function(){if(O1z!==void 0)return O1z;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return O1z=Y},{mode:1});var QUs;var Tu=function(){return _.Z.apply(this,arguments)||this};
_.m(Tu,_.Z);Tu.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Tu.prototype.onSingleSelectCheckedChanged=function(Y){Y=_.Zb(Y);for(var G=0;G<this.data.options.length;G++)if(Y.data!==_.z(this.data.options[G],RKw)){var u="data.options."+G+".feedbackOptionRenderer.checked";this.notifyPath(u);this.set(u,!1)}};
Tu.prototype.onSingleSelectCheckedChanged=Tu.prototype.onSingleSelectCheckedChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Tu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Tu.prototype,"data",void 0);
_.S([_.Yo("yt-feedback-single-select-changed"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Tu.prototype,"onSingleSelectCheckedChanged",null);_.S([_.pD({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Tu);
_.d(Tu,"ytd-feedback-question-renderer",function(){if(QUs!==void 0)return QUs;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return QUs=Y},{mode:1});var MTs;var Ls=function(){return _.Z.apply(this,arguments)||this};
_.m(Ls,_.Z);Ls.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Ls.prototype.getSelectedFeedbackResults=function(){for(var Y={},G=0;G<this.data.questions.length;G++)for(var u=_.z(this.data.questions[G],iSB),O=0;O<u.options.length;O++){var Q=_.z(u.options[O],RKw);Q&&Q.checked&&(Y[Q.optionKey]=Q.resultText)}return Y};
Ls.prototype.onKeyUp=function(){var Y=this;_.jk(_.AN,function(){_.$s(Y.hostElement,"yt-refit")});
_.AN.start()};
Ls.prototype.submitSurvey=function(){var Y=this.getSelectedFeedbackResults();Object.keys(Y).length>0&&this.data.submitFeedbackEndpoint&&(Y={survey_results:Y,is_feedback_token_unencrypted:!0},_.sH().resolve(_.rH).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},Y,{element:this.hostElement})}))};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ls.prototype,"data",void 0);_.S([_.pD({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Ls);
_.d(Ls,"ytd-feedback-survey-renderer",function(){if(MTs!==void 0)return MTs;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return MTs=Y},{mode:1});var H1h;var Ea5;var g3=function(){return _.Z.apply(this,arguments)||this};
_.m(g3,_.Z);g3.prototype.computeAlt=function(Y){return _.Ri(Y)};
g3.prototype.submitResponse=function(){var Y,G;(Y=this.data)!=null&&Y.feedbackToken&&((G=this.data)==null?void 0:G.nextStageIndex)!==void 0&&(_.sK(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.sK(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
g3.prototype.onClick=function(){this.submitResponse()};
g3.prototype.onClick=g3.prototype.onClick;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],g3.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],g3.prototype,"vertical",void 0);_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],g3.prototype,"onClick",null);
_.S([_.pD({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],g3);
_.d(g3,"ytd-single-select-answer-option-renderer",function(){if(Ea5!==void 0)return Ea5;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Ea5=Y},{mode:1});var tTT;var XI=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return Y};
_.m(XI,_.Z);XI.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
XI.prototype.dataChanged=function(){var Y,G;this.vertical=((G=(Y=this.data)==null?void 0:Y.answerOrientation)!=null?G:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
XI.prototype.submitFeedback=function(Y){var G;((G=this.data)==null?0:G.responseEndpoint)&&Y&&_.c$(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[Y]}])};
XI.prototype.dataChanged=XI.prototype.dataChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],XI.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],XI.prototype,"eventForwardingBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],XI.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],XI.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],XI.prototype,"vertical",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],XI.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],XI);
_.d(XI,"ytd-single-select-question-renderer",function(){if(tTT!==void 0)return tTT;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return tTT=Y},{mode:1});var Po=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return Y};
_.m(Po,_.Z);_.H=Po.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(Y){var G,u;if((G=this.data)==null?0:(u=G.stages)==null?0:u[Y])this.currentStage=this.data.stages[Y],this.refitAfterRender()};
_.H.computeAlt=function(Y){return _.Ri(Y)};
_.H.computeSimpleMessage=function(Y){var G;return(G=_.z(Y,DlS))==null?void 0:G.messageText};
_.H.computeHideDismiss=function(Y){var G;return(G=_.z(Y,DhN))==null?void 0:G.hideParentDismissButton};
_.H.onDismissTap=function(){_.qZ(this.hostElement,"yt-close-popup-action");_.z(this.currentStage,DlS)||this.data.dismissalEndpoint&&_.sH().resolve(_.rH).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.H.refitAfterRender=function(){var Y=this;_.sk(this,function(){_.$s(Y.hostElement,"yt-refit")})};
Po.prototype.dataChanged=Po.prototype.dataChanged;_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],Po.prototype,"eventForwardingBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Po.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.x(pgo),_.V("design:type",Object)],Po.prototype,"ytdHatsSurveyBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Po.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Po.prototype,"currentStage",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Po.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],Po);
_.d(Po,"ytd-multi-stage-survey-renderer",function(){if(H1h!==void 0)return H1h;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return H1h=Y},{mode:1});var K4z;var Ic=function(){return _.Z.apply(this,arguments)||this};
_.m(Ic,_.Z);Ic.prototype.computeAlt=function(Y){return _.Ri(Y)};
Ic.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.sH().resolve(_.rH).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.qZ(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(Jgw(!1)))};
Ic.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Ic.prototype.onTap=Ic.prototype.onTap;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],Ic.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ic.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ic.prototype,"vertical",void 0);
_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ic.prototype,"onTap",null);_.S([_.pD({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Ic);
_.d(Ic,"ytd-single-option-survey-option-renderer",function(){if(K4z!==void 0)return K4z;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return K4z=Y},{mode:1});var at5;var kL=function(){return _.Z.apply(this,arguments)||this};
_.m(kL,_.Z);_.H=kL.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 Y,G;this.vertical=(((Y=this.data)==null?void 0:(G=Y.surveyOrientation)==null?void 0:G.type)||"HORIZONTAL")==="VERTICAL"};
_.H.computeAlt=function(Y){return _.Ri(Y)};
_.H.onDismissTap=function(){_.qZ(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.sH().resolve(_.rH).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(Jgw(!1))};
kL.prototype.dataChanged=kL.prototype.dataChanged;_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],kL.prototype,"eventForwardingBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],kL.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(pgo),_.V("design:type",Object)],kL.prototype,"ytdHatsSurveyBehavior",void 0);
_.S([_.x(_.me),_.V("design:type",Object)],kL.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],kL.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],kL.prototype,"vertical",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kL.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],kL);
_.d(kL,"ytd-single-option-survey-renderer",function(){if(at5!==void 0)return at5;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return at5=Y},{mode:1});var TAq;var ns=function(){return _.Z.apply(this,arguments)||this};
_.m(ns,_.Z);ns.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ns.prototype.onDismissTap=function(){_.qZ(this.hostElement,"yt-close-popup-action")};
ns.prototype.onNavigate=function(){_.qZ(this.hostElement,"yt-close-popup-action")};
ns.prototype.onNavigate=ns.prototype.onNavigate;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],ns.prototype,"ytEventForwardingBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ns.prototype,"data",void 0);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ns.prototype,"onNavigate",null);
_.S([_.pD({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],ns);
_.d(ns,"ytd-survey-follow-up-renderer",function(){if(TAq!==void 0)return TAq;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return TAq=Y},{mode:1});var L4s;var gaO;var XuG;var FI=function(){var Y=_.Z.apply(this,arguments)||this;Y.polymer2="Element"in Polymer;return Y};
_.m(FI,_.Z);_.H=FI.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 _.wM("minutes-changed",this.minutes))};
_.H.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("seconds-changed",this.seconds))};
_.H.updateMinutesFromBinding=function(Y){this.minutes=Y.detail.value};
_.H.updateSecondsFromBinding=function(Y){this.seconds=Y.detail.value};
FI.prototype.secondsChangedForBinding=FI.prototype.secondsChangedForBinding;FI.prototype.minutesChangedForBinding=FI.prototype.minutesChangedForBinding;FI.prototype.secondsChanged=FI.prototype.secondsChanged;_.S([_.R(),_.V("design:type",String)],FI.prototype,"minutes",void 0);_.S([_.R(),_.V("design:type",String)],FI.prototype,"seconds",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],FI.prototype,"polymer2",void 0);
_.S([_.Ox("#seconds"),_.V("design:type",Object)],FI.prototype,"secondsEl",void 0);_.S([_.GO("seconds"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],FI.prototype,"secondsChanged",null);_.S([_.GO("minutes"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],FI.prototype,"minutesChangedForBinding",null);
_.S([_.GO("seconds"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],FI.prototype,"secondsChangedForBinding",null);_.S([_.Ff({is:"yt-timestamp-input",disableElementRegistration:!0})],FI);
_.d(FI,"yt-timestamp-input",function(){if(XuG===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;gaO===void 0&&(gaO=document.createElement("template"));var O=gaO;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);XuG=Y}Y=XuG;return Y},{mode:2});var ps=function(){return _.Z.apply(this,arguments)||this};
_.m(ps,_.Z);_.H=ps.prototype;_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$22535_scroller.dialogElement=this.hostElement.parentNode};
_.H.dataChanged=function(){var Y=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.jr().getPlayerPromise().then(function(G){G=G.getCurrentTime();Y.minutes=Math.floor(G/60).toString();Y.seconds=(Math.floor(G)%60).toString()})};
_.H.onTapSubmit=function(Y){Y.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(Y={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(Y.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(Y.minutes=this.minutes,Y.seconds=this.seconds),_.sH().resolve(_.rH).resolveCommand(this.serviceEndpoint,{form:Object.assign({},Y,{element:this.hostElement})}))};
_.H.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.H.onYtServiceRequestCompleted=function(Y,G){G=G.actions;if(Array.isArray(G))for(var u=0,O=G.length;u<O;u++)_.z(G[u],_.tw)&&(Y.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(G[u]))};
_.H.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.H.toggleSubmitButton=function(Y){this.set("submitButton.isDisabled",!Y)};
_.H.handleInput=function(){var Y=this.issueType,G=this.affiliation,u=this.minutes,O=this.seconds;u=!this.showTimestamp||!!u&&!!O;this.toggleSubmitButton(!!this.descriptionText&&!!Y&&!!G&&u)};
_.H.computeServiceEndpoint=function(Y){return this.get("submitButton.buttonRenderer.serviceEndpoint",Y)};
_.H.computeSubmitButton=function(Y){(Y=this.get("submitButton.buttonRenderer",Y))&&(Y=Object.assign({},Y,{serviceEndpoint:void 0}));return Y};
_.H.computeShowTimestamp=function(Y){return!!Y};
_.H.onValueChangedForIssueType=function(Y){this.issueType=Y.detail.value};
_.H.onValueChangedForAffiliation=function(Y){this.affiliation=Y.detail.value};
_.H.updateDescriptionTextFromBinding=function(Y){this.descriptionText=Y.detail.value};
_.H.updateFullNameTextFromBinding=function(Y){this.fullNameText=Y.detail.value};
_.H.updateMinutesFromBinding=function(Y){this.minutes=Y.detail.value};
_.H.updateSecondsFromBinding=function(Y){this.seconds=Y.detail.value};
ps.prototype.handleInput=ps.prototype.handleInput;ps.prototype.onYtServiceRequestError=ps.prototype.onYtServiceRequestError;ps.prototype.onYtServiceRequestCompleted=ps.prototype.onYtServiceRequestCompleted;ps.prototype.onYtServiceRequestSent=ps.prototype.onYtServiceRequestSent;ps.prototype.dataChanged=ps.prototype.dataChanged;_.S([_.x(_.cZ.YtOpenPopupBehavior),_.V("design:type",Object)],ps.prototype,"ytOpenPopupBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.S([_.Ox("#scroller"),_.V("design:type",Object)],ps.prototype,"JSC$22535_scroller",void 0);_.S([_.Ox("#description"),_.V("design:type",HTMLInputElement)],ps.prototype,"description",void 0);_.S([_.Ox("#full-name"),_.V("design:type",Object)],ps.prototype,"fullName",void 0);_.S([_.R(),_.V("design:type",Object)],ps.prototype,"data",void 0);
_.S([_.R({computed:"computeShowTimestamp(data.timestampLabel)"}),_.V("design:type",Boolean)],ps.prototype,"showTimestamp",void 0);_.S([_.R({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.V("design:type",Object)],ps.prototype,"serviceEndpoint",void 0);_.S([_.R({computed:"computeSubmitButton(data)"}),_.V("design:type",Object)],ps.prototype,"submitButton",void 0);_.S([_.R(),_.V("design:type",String)],ps.prototype,"descriptionText",void 0);
_.S([_.R(),_.V("design:type",Number)],ps.prototype,"issueType",void 0);_.S([_.R(),_.V("design:type",Number)],ps.prototype,"affiliation",void 0);_.S([_.R(),_.V("design:type",String)],ps.prototype,"fullNameText",void 0);_.S([_.R(),_.V("design:type",String)],ps.prototype,"minutes",void 0);_.S([_.R(),_.V("design:type",String)],ps.prototype,"seconds",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ps.prototype,"dataChanged",null);
_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],ps.prototype,"onYtServiceRequestSent",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],ps.prototype,"onYtServiceRequestCompleted",null);
_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ps.prototype,"onYtServiceRequestError",null);_.S([_.GO("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ps.prototype,"handleInput",null);_.S([_.pD({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],ps);
_.d(ps,"ytd-legal-report-details-form-renderer",function(){if(L4s!==void 0)return L4s;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return L4s=Y},{mode:1});var Pyh;var zu=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return Y};
_.m(zu,_.Z);zu.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
zu.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var Y=this.formRenderer.getForm();Y&&this.data.submitEndpoint&&(_.sH().resolve(_.rH).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},Y,{element:this.hostElement})}),_.qZ(this.hostElement,"yt-close-popup-action"))}};
zu.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.qZ(this.hostElement,"yt-close-popup-action"))};
zu.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
zu.prototype.onPopupClosed=zu.prototype.onPopupClosed;_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],zu.prototype,"ytEventForwardingBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],zu.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);
_.S([_.Ox("yt-form-renderer"),_.V("design:type",Object)],zu.prototype,"formRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],zu.prototype,"data",void 0);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zu.prototype,"onPopupClosed",null);_.S([_.pD({is:"ytd-form-popup-content",disableElementRegistration:!0})],zu);
_.d(zu,"ytd-form-popup-content",function(){if(Pyh!==void 0)return Pyh;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Pyh=Y},{mode:1});var Itp;var mX=function(){return _.Z.apply(this,arguments)||this};
_.m(mX,_.Z);mX.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
mX.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mX.prototype.onPopupOpened=function(){_.$s(this.hostElement,"yt-invalidate-popup-tabbables")};
mX.prototype.onYtServiceRequestCompleted=function(Y,G){G.data&&G.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.$s(this.hostElement,"yt-invalidate-popup-tabbables"))};
mX.prototype.onYtServiceRequestCompleted=mX.prototype.onYtServiceRequestCompleted;mX.prototype.onPopupOpened=mX.prototype.onPopupOpened;_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],mX.prototype,"ytEventForwardingBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],mX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],mX.prototype,"data",void 0);_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mX.prototype,"onPopupOpened",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],mX.prototype,"onYtServiceRequestCompleted",null);_.S([_.pD({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],mX);
_.d(mX,"ytd-form-popup-renderer",function(){if(Itp!==void 0)return Itp;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Itp=Y},{mode:1});var kgn;var Wo=function(){var Y=_.Z.apply(this,arguments)||this;Y.isLoading=!1;return Y};
_.m(Wo,_.Z);_.H=Wo.prototype;_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");p$S(this.hostElement)};
_.H.onYtServiceRequestSent=function(){this.isLoading=!0};
_.H.onYtServiceRequestCompleted=function(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.H.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.UK(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 Y=this.get("data.headerImage.thumbnails");Y&&(Y=_.dH(Y,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+Y+")")}};
_.H.onYtNavigate=function(Y){(Y=_.Zb(Y))&&Y.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
Wo.prototype.onYtNavigate=Wo.prototype.onYtNavigate;Wo.prototype.onHeaderImageChanged=Wo.prototype.onHeaderImageChanged;Wo.prototype.closePopupHandler=Wo.prototype.closePopupHandler;Wo.prototype.onYtServiceRequestCompleted=Wo.prototype.onYtServiceRequestCompleted;Wo.prototype.onYtServiceRequestSent=Wo.prototype.onYtServiceRequestSent;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],Wo.prototype,"ytEventForwardingBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Wo.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Wo.prototype,"isLoading",void 0);_.S([_.Ox("#header"),_.V("design:type",HTMLDivElement)],Wo.prototype,"header",void 0);_.S([_.Ox("#confirm-button"),_.V("design:type",_.HO)],Wo.prototype,"confirmButton",void 0);
_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Wo.prototype,"onYtServiceRequestSent",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Wo.prototype,"onYtServiceRequestCompleted",null);
_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Wo.prototype,"closePopupHandler",null);_.S([_.GO("data.headerImage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Wo.prototype,"onHeaderImageChanged",null);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Wo.prototype,"onYtNavigate",null);
_.S([_.pD({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],Wo);
_.d(Wo,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(kgn!==void 0)return kgn;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return kgn=Y},{mode:1});var naG;var r3=function(){var Y=_.Z.apply(this,arguments)||this;Y.isLoading=!1;return Y};
_.m(r3,_.Z);_.H=r3.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);p$S(this.hostElement)};
_.H.onYtServiceRequestCompleted=function(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.H.onYtServiceRequestError=function(Y){_.Rd(this.hostElement,Y.detail.error.message)};
_.H.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.H.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.qZ(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.H.onDataChanged=function(){this.isLoading=!1;var Y=this.get("data.headerImage.thumbnails");Y&&(Y=_.dH(Y,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+Y+")");Y=_.FA();var G=_.nX(),u=this.get("data.trackingParams");u&&G&&Y&&_.y6(Y,G,_.Kd(u))};
_.Uk.Object.defineProperties(r3.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
r3.prototype.onDataChanged=r3.prototype.onDataChanged;r3.prototype.onDomChange=r3.prototype.onDomChange;r3.prototype.onYtServiceRequestError=r3.prototype.onYtServiceRequestError;r3.prototype.onYtServiceRequestCompleted=r3.prototype.onYtServiceRequestCompleted;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],r3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],r3.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],r3.prototype,"isLoading",void 0);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],r3.prototype,"hasDescription",null);_.S([_.Ox("tp-yt-paper-dialog-scrollable"),_.V("design:type",Object)],r3.prototype,"scrollable",void 0);_.S([_.Ox("#header"),_.V("design:type",HTMLElement)],r3.prototype,"header",void 0);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],r3.prototype,"onYtServiceRequestCompleted",null);_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],r3.prototype,"onYtServiceRequestError",null);
_.S([_.Yo("dom-change"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],r3.prototype,"onDomChange",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],r3.prototype,"onDataChanged",null);_.S([_.pD({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],r3);
_.d(r3,"ytd-gaming-account-link-setting-renderer",function(){if(naG!==void 0)return naG;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return naG=Y},{mode:1});var F4n;var puG;var xL=function(){var Y=_.Z.apply(this,arguments)||this;Y.isHeader=!1;Y.getEndpointForm=function(){return UPb(Y.data)};
return Y};
_.m(xL,_.Z);_.H=xL.prototype;_.H.triggerHintActions=function(){var Y=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var G=_.sK(Y.hostElement,"yt-get-opened-popups-action");!(G&&G.length===1?G[0]:[]).some(function(u){u=u.openPopupAction.popupType;return u==="SURVEY"||u==="MEALBAR"||u==="HINT"})&&Y.data.hintActions&&Y.guideOpened&&(_.UK(Y.hostElement,Y.data.hintActions,Y.hostElement),Y.data.hintActions=void 0)})};
_.H.getBadgeIconType=function(Y){return Y&&Y.liveBroadcasting?"live":null};
_.H.onDown=function(){this.interaction.triggerDown()};
_.H.onUp=function(){this.interaction.triggerUp()};
_.H.onTap=function(Y){if(this.data.serviceEndpoint){var G;_.F("shorts_controller_retrieve_seedless_sequence_v2")&&((G=_.z(this.data.serviceEndpoint,_.Qa))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):crg(this.data.serviceEndpoint,this);Y.preventDefault()}else this.data.navigationEndpoint&&!_.hf(_.wG(Y),this.hostElement,["A".toString()])&&_.$s(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.H.computeActive=function(Y,G){if(!Y)return!1;var u=Y.navigationEndpoint;Y=Y.serviceEndpoint;if(!u&&!Y||!G)return!1;if(u){Y=(Y=_.JH(G))&&["subscriptions","filteredsubscriptions"].includes(Y);if(_.z(u,_.Y3)&&_.z(G,_.Y3)&&!Y){var O=_.z(u,_.Y3).browseId;G=_.z(G,_.Y3).browseId;return O!==void 0&&G!==void 0&&(O===G||O==="VLWL"&&G==="FEwatch_later"||O==="FEwatch_later"&&G==="VLWL")}var Q;u=(Q=_.z(u.commandMetadata,_.ug))==null?void 0:Q.url;G=(O=_.z(G.commandMetadata,_.ug))==null?void 0:O.url;return!(!u||
!G||u!==G&&u!==_.BI(G))}return this.isActiveShortsTab(Y,G)};
_.H.isActiveShortsTab=function(Y,G){G=!!_.z(G,_.Qa)||!!_.z(G,_.mP);return(!!_.z(Y,_.Qa)||!!_.z(Y,_.mP))&&G};
_.H.computeIsPrimary=function(Y){return!!Y};
_.Uk.Object.defineProperties(xL.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 Y=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&Y)return Y}}});
xL.prototype.onTap=xL.prototype.onTap;xL.prototype.onUp=xL.prototype.onUp;xL.prototype.onDown=xL.prototype.onDown;xL.prototype.triggerHintActions=xL.prototype.triggerHintActions;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],xL.prototype,"componentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],xL.prototype,"rendererBehavior",void 0);_.S([_.x(_.ZA.YtTaskEmitterBehavior),_.V("design:type",Object)],xL.prototype,"taskEmitterBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],xL.prototype,"activeEndpoint",void 0);_.S([_.R(),_.V("design:type",Object)],xL.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],xL.prototype,"guideOpened",void 0);_.S([_.R(),_.V("design:type",String)],xL.prototype,"type",void 0);_.S([_.Ox("yt-interaction"),_.V("design:type",Object)],xL.prototype,"interaction",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xL.prototype,"isHeader",void 0);
_.S([_.R({reflectToAttribute:!0}),_.f("data","activeEndpoint"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],xL.prototype,"active",null);_.S([_.R({reflectToAttribute:!0}),_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],xL.prototype,"isPrimary",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.count","data.presentationStyle","data.badges.*"),_.V("design:type",String),_.V("design:paramtypes",[])],xL.prototype,"lineEndStyle",null);
_.S([_.f("lineEndStyle"),_.V("design:type",Object),_.V("design:paramtypes",[])],xL.prototype,"ariaLabel",null);_.S([_.GO("data.hintActions","guideOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xL.prototype,"triggerHintActions",null);_.S([_.Yo("down"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xL.prototype,"onDown",null);
_.S([_.Yo("up"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xL.prototype,"onUp",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],xL.prototype,"onTap",null);_.S([_.pD({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],xL);
_.d(xL,"ytd-guide-entry-renderer",function(){if(puG!==void 0)return puG;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return puG=Y},{mode:1});var Cs=function(){var Y=_.Z.apply(this,arguments)||this;Y.userToggled=!1;return Y};
_.m(Cs,_.Z);_.H=Cs.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(Y){var G=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.F("kevlar_guide_expandable_items_killswitch")&&_.sk(this,function(){_.qC(G.expandableItems)});
Y.preventDefault()};
_.H.onCollapserItemTapped=function(Y){var G=this;this._setExpanded(!1);this.userToggled=!0;Y.preventDefault();this.expandableItems&&!_.F("kevlar_guide_collapsible_items_killswitch")&&_.sk(this,function(){_.$q(G.hostElement)})};
_.H.observeActiveEndpoint=function(){for(var Y=this.activeEndpoint,G=this.data,u=this.expandableItems.children,O=0,Q=u.length;O<Q;O++)u[O].activeEndpoint=Y;G&&G.autoExpandCommand&&Y&&!this.userToggled&&(u=this.data.autoExpandCommand,G=!(!_.z(u,_.Y3)||!_.z(Y,_.Y3)||_.z(u,_.Y3).browseId!==_.z(Y,_.Y3).browseId),Y=this.get("commandMetadata.webCommandMetadata.url",Y),u=this.get("commandMetadata.webCommandMetadata.url",u),G=G||!!(Y&&u&&Y.includes(u)),this._setExpanded(G),G&&this.ytLazyListBehavior.fillRemainingListItems())};
Cs.prototype.observeActiveEndpoint=Cs.prototype.observeActiveEndpoint;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.jx.YtLazyListBehavior),_.V("design:type",Object)],Cs.prototype,"ytLazyListBehavior",void 0);_.S([_.Ox("#expandable-items"),_.V("design:type",HTMLElement)],Cs.prototype,"expandableItems",void 0);
_.S([_.R(),_.V("design:type",Object)],Cs.prototype,"data",void 0);_.S([_.R({readOnly:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],Cs.prototype,"expanded",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],Cs.prototype,"initialCount",void 0);_.S([_.R(),_.V("design:type",Object)],Cs.prototype,"activeEndpoint",void 0);_.S([_.GO("data","activeEndpoint","canShowMore"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cs.prototype,"observeActiveEndpoint",null);
_.S([_.pD({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Cs);
_.d(Cs,"ytd-guide-collapsible-entry-renderer",function(){if(F4n!==void 0)return F4n;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return F4n=Y},{mode:2});var zAO;var mj5;var yC=function(){var Y=_.Z.apply(this,arguments)||this;Y.allVideosCount=0;Y.renderGuideEntry=!1;return Y};
_.m(yC,_.Z);yC.prototype.observeRenderEntry=function(){var Y;this.renderGuideEntry=!((Y=this.data)==null||!Y.alwaysShow)||!!this.allVideosCount};
yC.prototype.observeRenderEntry=yC.prototype.observeRenderEntry;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],yC.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],yC.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],yC.prototype,"activeEndpoint",void 0);_.S([_.R({selector:_.h6y}),_.V("design:type",Object)],yC.prototype,"allVideosCount",void 0);
_.S([_.R(),_.V("design:type",Object)],yC.prototype,"renderGuideEntry",void 0);_.S([_.Ex("allVideosCount","data.alwaysShow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yC.prototype,"observeRenderEntry",null);_.S([_.pD({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],yC);
_.d(yC,"ytd-guide-downloads-entry-renderer",function(){if(mj5===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);mj5=Y}Y=mj5;return Y},{mode:1});var ej=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return Y};
_.m(ej,_.Z);_.H=ej.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 Y=this.sectionItems.children,G=0,u=Y.length;G<u;G++)Y[G].activeEndpoint=this.activeEndpoint}};
_.H.handleAddToGuideSectionAction=function(Y){var G=_.z(Y,nBo);if(G&&this.data&&(Y=G.items,G=G.handlerData,Y&&G&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(G)>-1)){G=0;for(var u=Y.length;G<u;G++)Y[G].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,Y[G])}};
_.H.handleRemoveFromGuideSectionAction=function(Y){var G=_.z(Y,Fsg);G&&this.data&&(Y=G.guideEntryId,G=G.handlerData,Y&&G&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(G)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(Y,this.data.sectionItems),this.removeFromCollapsedSection(Y,this.data.sectionItems)))};
_.H.removeFromExpandedSection=function(Y,G){Y=this.getEntryIndexMatchingId(Y,G);Y!==-1&&this.splice("data.sectionItems",Y,1)};
_.H.removeFromCollapsedSection=function(Y,G){var u=G.findIndex(function(O){return!!_.z(O,Jrw)});
u&&u!==-1&&G[u]&&_.z(G[u],Jrw)&&(G=_.z(G[u],Jrw).expandableItems)&&(Y=this.getEntryIndexMatchingId(Y,G),Y!==-1&&this.splice("data.sectionItems."+u+".guideCollapsibleEntryRenderer.expandableItems",Y,1))};
_.H.getEntryIndexMatchingId=function(Y,G){var u=this;return G.findIndex(function(O){return u.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",O)===Y})};
ej.prototype.activeEndpointChanged=ej.prototype.activeEndpointChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],ej.prototype,"actionHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ej.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Ox("#section-items"),_.V("design:type",HTMLDivElement)],ej.prototype,"sectionItems",void 0);
_.S([_.Ox("#header-entry"),_.V("design:type",Object)],ej.prototype,"headerEntry",void 0);_.S([_.R(),_.V("design:type",Object)],ej.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],ej.prototype,"activeEndpoint",void 0);_.S([_.GO("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ej.prototype,"activeEndpointChanged",null);_.S([_.pD({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],ej);
_.d(ej,"ytd-guide-collapsible-section-entry-renderer",function(){if(zAO===void 0){var Y=document.createElement("template");_.r(Y,'\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="true" 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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);zAO=Y}Y=zAO;return Y},{mode:1});var W4p;var rYT;var Ax=function(){var Y=_.Z.apply(this,arguments)||this;Y.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 Y};
_.m(Ax,_.Z);_.H=Ax.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 Y=_.sK(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);Y&&Y.length===1&&Y[0]&&_.sK(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.H.handleResetChannelUnreadCountCommand=function(Y){var G;(Y=(G=_.z(Y,mhw))==null?void 0:G.channelId)&&this.data&&this.data.items&&(G=this.getPathToEntryMatchingId(Y))&&(this.set(G+".guideEntryRenderer.count",0),this.set(G+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.H.handleResetSubscriptionsUnreadDotCommand=function(Y){var G,u=(G=_.z(Y,Wsy))==null?void 0:G.targetId,O;u&&(O=this.data)!=null&&O.items&&(Y=this.data.items.findIndex(function(Q){var M;return((M=Q.guideEntryRenderer)==null?void 0:M.targetId)===u}),Y<0||this.set("data.items."+Y+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.H.getPathToEntryMatchingId=function(Y){if(this.data&&this.data.items){var G=this.getEntryIndexMatchingId(Y,this.data.items);if(G>-1)return"data.items."+G;for(var u=0;u<this.data.items.length;u++)if(G=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[u]))if(G=this.getEntryIndexMatchingId(Y,G),G>-1)return"data.items."+u+".guideCollapsibleEntryRenderer.expandableItems."+G}};
_.H.handleAddToGuideSectionAction=function(Y){var G=this;if(_.z(Y,nBo)){var u=_.z(Y,nBo).items;Y=_.z(Y,nBo).handlerData;var O,Q;if(u&&Y&&((O=this.data)==null?void 0:(Q=O.handlerDatas)==null?void 0:Q.indexOf(Y))>-1){u=u.filter(function(t){return(t=G.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",t))&&!G.isGuideItemPresent(t)});
var M;if(Y==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((M=this.data)==null?0:M.items)&&(O=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),O>-1)){this.splice.apply(this,["data.items",O+1,0].concat(_.c8(u)));return}this.unshift.apply(this,["data.items"].concat(_.c8(u)))}}};
_.H.isGuideItemPresent=function(Y){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(Y,this.data.items)!==-1)return!0;var G=this.data.items.find(function(u){return!!u.guideCollapsibleEntryRenderer});
if((G==null?0:G.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(Y,G.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.H.getEntryIndexMatchingId=function(Y,G){var u=this;return G.findIndex(function(O){return u.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",O)===Y})};
_.H.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(Y,G){var u=this;return G.findIndex(function(O){return u.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",O)===Y})};
_.H.handleRemoveFromGuideSectionAction=function(Y){if(_.z(Y,Fsg)){var G=_.z(Y,Fsg).guideEntryId;Y=_.z(Y,Fsg).handlerData;var u,O;G&&Y&&((u=this.data)==null?void 0:(O=u.handlerDatas)==null?void 0:O.indexOf(Y))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(G,this.data.items),this.removeFromCollapsedSection(G,this.data.items))}};
_.H.removeFromExpandedSection=function(Y,G){Y=this.getEntryIndexMatchingId(Y,G);Y!==-1&&this.splice("data.items",Y,1)};
_.H.removeFromCollapsedSection=function(Y,G){var u=G.findIndex(function(O){return!!O.guideCollapsibleEntryRenderer});
u!==-1&&(G=G[u].guideCollapsibleEntryRenderer.expandableItems)&&(Y=this.getEntryIndexMatchingId(Y,G),Y!==-1&&this.splice("data.items."+u+".guideCollapsibleEntryRenderer.expandableItems",Y,1))};
_.H.activeEndpointChanged=function(){for(var Y=_.l0(this.hostElement).querySelector("#items").children,G=0,u=Y.length;G<u;G++)Y[G].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.H.guideOpenedChanged=function(){for(var Y=_.l0(this.hostElement).querySelector("#items").children,G=0,u=Y.length;G<u;G++)Y[G].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Ax.prototype.guideOpenedChanged=Ax.prototype.guideOpenedChanged;Ax.prototype.activeEndpointChanged=Ax.prototype.activeEndpointChanged;Ax.prototype.persistentGuideChanged=Ax.prototype.persistentGuideChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ax.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Ax.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.jx.YtLazyListBehavior),_.V("design:type",Object)],Ax.prototype,"ytLazyListBehavior",void 0);_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Ax.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Ax.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Ax.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",String)],Ax.prototype,"type",void 0);_.S([_.R({value:20}),_.V("design:type",Number)],Ax.prototype,"initialCount",void 0);_.S([_.R({value:10}),_.V("design:type",Number)],Ax.prototype,"targetFramerate",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],Ax.prototype,"autoFill",void 0);_.S([_.R({value:50}),_.V("design:type",Number)],Ax.prototype,"renderDelay",void 0);
_.S([_.GO("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ax.prototype,"persistentGuideChanged",null);_.S([_.Ex("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ax.prototype,"activeEndpointChanged",null);_.S([_.Ex("guideOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ax.prototype,"guideOpenedChanged",null);
_.S([_.pD({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Ax);
_.d(Ax,"ytd-guide-section-renderer",function(){if(rYT!==void 0)return rYT;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return rYT=Y},{mode:2});var xjG;var oc=function(){return _.Z.apply(this,arguments)||this};
_.m(oc,_.Z);_.Uk.Object.defineProperties(oc.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],oc.prototype,"rendererBehaviors",void 0);_.S([_.R(),_.V("design:type",Object)],oc.prototype,"data",void 0);_.S([_.R(),_.f("data.signInButton.buttonRenderer.style"),_.V("design:type",Object),_.V("design:paramtypes",[])],oc.prototype,"alignByText",null);_.S([_.pD({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],oc);
_.d(oc,"ytd-guide-signin-promo-renderer",function(){if(xjG===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);xjG=Y}Y=xjG;return Y},{mode:1});var iZ=function(){var Y=_.Z.apply(this,arguments)||this;Y.showFooter=!1;return Y};
_.m(iZ,_.Z);iZ.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}}}}};
iZ.prototype.attached=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1){G=_.sH().resolve(_.q3(_.C8));if(!G)return u.jumpTo(0);G.setGuideData(Y.hostElement);return u.yield(0,3)}Y.ytLazyListBehavior.initialCount=2;return u.return()})};
iZ.prototype.onMouseExit=function(){_.F("web_guide_hover_expansion")&&_.sK(this.hostElement,"yt-guide-mouseleaved",[])};
iZ.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
iZ.prototype.dataChanged=iZ.prototype.dataChanged;iZ.prototype.onMouseExit=iZ.prototype.onMouseExit;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],iZ.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.jx.YtLazyListBehavior),_.V("design:type",Object)],iZ.prototype,"ytLazyListBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],iZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],iZ.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],iZ.prototype,"showFooter",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],iZ.prototype,"autoFill",void 0);_.S([_.Yo("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iZ.prototype,"onMouseExit",null);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iZ.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-guide-renderer",disableElementRegistration:!0})],iZ);
_.d(iZ,"ytd-guide-renderer",function(){if(W4p!==void 0)return W4p;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return W4p=Y},{mode:2});var fts;var Rc=function(){var Y=_.Z.apply(this,arguments)||this;Y.systemIcons=_.F("kevlar_system_icons");Y.frostedGlass=_.F("web_frosted_glass");Y.onAllyMenuButtonClick=function(){var G=Y.getShowSheetCommand();G&&Y.ytComponentBehavior.resolveCommand(G)};
Y.getEndpointForm=function(){return UPb(Y.data)};
return Y};
_.m(Rc,_.Z);_.H=Rc.prototype;_.H.attached=function(){this.JSC$22588_sheetController=_.sH().resolve(_.kb)};
_.H.onDown=function(){this.interaction.triggerDown()};
_.H.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var Y;(Y=this.JSC$22588_sheetController)==null||Uag(Y,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this))}};
_.H.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.H.isSeedlessReelCommand=function(Y){var G;return!!Y&&((G=_.z(Y,_.Qa))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.H.isShowSheetCommand=function(Y){return!!Y&&!!_.z(Y,_.KK)};
_.H.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.H.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.H.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.H.onUp=function(){this.interaction.triggerUp()};
_.H.onTap=function(Y){if(this.data.serviceEndpoint){if(_.F("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);var G;(G=this.JSC$22588_sheetController)==null||Uag(G,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this));Y.preventDefault();
return}crg(this.data.serviceEndpoint,this)}Y.preventDefault()}else{var u;((u=this.data)==null?0:u.navigationEndpoint)&&!_.hf(_.wG(Y),this.hostElement,["A".toString()])&&_.$s(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.H.computeActive=function(Y,G){if(!Y)return!1;var u=Y.navigationEndpoint;Y=Y.serviceEndpoint;if(!u&&!Y||!G)return!1;if(u){Y=_.z(u,_.Y3);var O=_.z(G,_.Y3);if(Y&&O)return Y.browseId===O.browseId&&Y.params===O.params;var Q;u=(Q=_.z(u.commandMetadata,_.ug))==null?void 0:Q.url;var M;G=(M=_.z(G.commandMetadata,_.ug))==null?void 0:M.url;return!(!u||!G||u!==G&&u!==_.BI(G))}return this.isActiveShortsTab(Y,G)};
_.H.isActiveShortsTab=function(Y,G){G=!!_.z(G,_.Qa)||!!_.z(G,_.mP);return(!!_.z(Y,_.Qa)||!!_.z(Y,_.mP))&&G};
_.H.computeTitle=function(Y,G){return G?"":_.Ri(Y)};
_.H.computeEndpoint=function(Y){return this.isSeedlessReelCommand(Y.serviceEndpoint)?Y.serviceEndpoint:Y.navigationEndpoint};
_.H.computeHref=function(Y){Y=this.isSeedlessReelCommand(Y.serviceEndpoint)?Y.serviceEndpoint:Y.navigationEndpoint;return(Y=this.ytComponentBehavior.computeHref_(Y))?Y:"#"};
_.H.computeAriaLabelTitle=function(Y){return _.Ri(Y)};
_.H.computeAllyShowMenuOnTap=function(Y){return this.isShowSheetCommand(Y.mouseEnterEndpoint)||this.isShowSheetCommand(Y.serviceEndpoint)};
_.Uk.Object.defineProperties(Rc.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Rc.prototype.onMouseLeave=Rc.prototype.onMouseLeave;Rc.prototype.onMouseEnter=Rc.prototype.onMouseEnter;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Rc.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Rc.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.LM),_.V("design:type",Object)],Rc.prototype,"ironButtonState",void 0);_.S([_.R(),_.V("design:type",Object)],Rc.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],Rc.prototype,"activeEndpoint",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Rc.prototype,"noLabels",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.V("design:type",Boolean)],Rc.prototype,"isActive",void 0);_.S([_.R({computed:"computeEndpoint(data)"}),_.V("design:type",Object)],Rc.prototype,"computedEndpoint",void 0);
_.S([_.R({computed:"computeHref(data)"}),_.V("design:type",String)],Rc.prototype,"computedHref",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Rc.prototype,"systemIcons",void 0);_.S([_.Ox("yt-interaction"),_.V("design:type",Object)],Rc.prototype,"interaction",void 0);_.S([_.f("isActive"),_.V("design:type",Object),_.V("design:paramtypes",[])],Rc.prototype,"ariaSelected",null);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],Rc.prototype,"frostedGlass",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.V("design:type",Boolean)],Rc.prototype,"allyShowMenuOnTap",void 0);_.S([_.Yo("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[MouseEvent]),_.V("design:returntype")],Rc.prototype,"onMouseEnter",null);_.S([_.Yo("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[MouseEvent]),_.V("design:returntype")],Rc.prototype,"onMouseLeave",null);
_.S([_.pD({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Rc);
_.d(Rc,"ytd-mini-guide-entry-renderer",function(){if(fts!==void 0)return fts;var Y=document.createElement("template");_.r(Y,'\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" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computedHref]]" data="[[computedEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-selected="[[isActive]]" on-click="onTap" on-down="onDown" on-up="onUp">\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="0" 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<span hidden="[[!allyShowMenuOnTap]]" class="style-scope ytd-mini-guide-entry-renderer">\n  <button type="button" id="ally-menu-button" class="ally-menu-button style-scope ytd-mini-guide-entry-renderer" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-haspopup="true" aria-expanded="false" on-click="onAllyMenuButtonClick"></button>\n</span>\n');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return fts=Y},{mode:2});var Cys;var w3=function(){var Y=_.Z.apply(this,arguments)||this;Y.allVideosCount=0;Y.noLabels=_.F("kevlar_mini_guide_no_labels");Y.frostedGlass=_.F("web_frosted_glass");return Y};
_.m(w3,_.Z);_.H=w3.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");this.registerWithViewTransitionManager()};
_.H.onMouseEnter=function(){_.F("web_guide_hover_expansion")&&_.sK(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.H.visibleChanged=function(){if(this.visible&&!this.data){var Y=_.sH().resolve(_.q3(_.C8));Y&&Y.setGuideData(this.hostElement);_.lq(_.M4(),this.miniGuideVe);(Y=_.FA())&&this.miniGuideVe&&_.AW(Y,this.miniGuideVe)}};
_.H.dataChanged=function(){var Y=_.F("kevlar_guide_menu_on_hover")&&_.F("kevlar_modern_mini_guide"),G=_.F("kevlar_guide_menu_on_click")&&_.F("kevlar_modern_mini_guide"),u;var O=(u=this.data)==null?void 0:u.items;u=this.allVideosCount;var Q=[];Y=Y?0:G?1:void 0;G=Y!==void 0;if(O){for(var M=[],t=!1,K=_.E(O),L=K.next();!L.done;L=K.next()){L=L.value;if(L.guideSubscriptionsSectionRenderer){var g=void 0;M=((g=L.guideSubscriptionsSectionRenderer)==null?void 0:g.items)||[]}g=void 0;if((g=L.guideSectionRenderer)==
null?0:g.items)for(g=void 0,L=_.E((g=L.guideSectionRenderer)==null?void 0:g.items),g=L.next();!g.done;g=L.next()){var P=void 0;((P=g.value.guideEntryRenderer)==null?void 0:P.targetId)==="subscriptions-guide-item"&&(t=!0)}}O=_.E(O);for(K=O.next();!K.done;K=O.next())if(K=K.value,L=void 0,(L=K.guideSectionRenderer)==null?0:L.items)for(L=void 0,K=_.E((L=K.guideSectionRenderer)==null?void 0:L.items),L=K.next();!L.done;L=K.next()){L=L.value;var I=P=void 0;g=L.guideEntryRenderer||_.z((P=L)==null?void 0:
(I=P.guideCollapsibleSectionEntryRenderer)==null?void 0:I.headerEntry,vUN);P=[];I=[];var k=void 0;if(((k=g)==null?void 0:k.targetId)==="subscriptions-guide-item")P=M;else{var n=k=void 0;if((k=L)==null?0:(n=k.guideCollapsibleSectionEntryRenderer)==null?0:n.sectionItems)I=P=L.guideCollapsibleSectionEntryRenderer.sectionItems}GwS(Q,g,G?P:[],Y);if(I.length>0)for(L=_.E(I),g=L.next();!g.done;g=L.next())g=g.value,I=_.z(g,bog),P=void 0,I=I&&_.F("enable_mini_guide_downloads_item")&&(I.alwaysShow||u)?_.z((P=
I)==null?void 0:P.entryRenderer,vUN):_.z(g,vUN),GwS(Q,I,[])}else L=void 0,!t&&((L=K.guideSubscriptionsSectionRenderer)==null?0:L.items)&&(P=g=L=void 0,K=_.z((L=K.guideSubscriptionsSectionRenderer)==null?void 0:(g=L.items[0])==null?void 0:(P=g.guideCollapsibleSectionEntryRenderer)==null?void 0:P.headerEntry,vUN),GwS(Q,K,M,Y))}this.miniGuideItems=Q};
_.H.activeEndpointChanged=function(){for(var Y=this.items.children,G=0;G<Y.length;G++)Y[G].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.H.registerWithViewTransitionManager=function(){var Y=this;_.WY(_.AN,function(){var G=_.sH().resolve(_.q3(_.T7));if(G&&G.isAnyTransitionEnabled){var u={};G.viewTransitionCoordinator.registerElement(Y.hostElement,(u.slide="mini-guide-page-transition",u))}})};
w3.prototype.activeEndpointChanged=w3.prototype.activeEndpointChanged;w3.prototype.dataChanged=w3.prototype.dataChanged;w3.prototype.visibleChanged=w3.prototype.visibleChanged;w3.prototype.onMouseEnter=w3.prototype.onMouseEnter;_.S([_.x(_.me),_.V("design:type",Object)],w3.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],w3.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],w3.prototype,"ytComponentBehavior",void 0);_.S([_.Ox("#items"),_.V("design:type",Object)],w3.prototype,"items",void 0);_.S([_.R(),_.V("design:type",Object)],w3.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Boolean)],w3.prototype,"visible",void 0);_.S([_.R(),_.V("design:type",Object)],w3.prototype,"miniGuideItems",void 0);_.S([_.R({selector:_.h6y}),_.V("design:type",Object)],w3.prototype,"allVideosCount",void 0);_.S([_.R({value:_.VZ(283834)}),_.V("design:type",_.ks)],w3.prototype,"miniGuideVe",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],w3.prototype,"noLabels",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],w3.prototype,"frostedGlass",void 0);_.S([_.Yo("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],w3.prototype,"onMouseEnter",null);_.S([_.Ex("visible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],w3.prototype,"visibleChanged",null);
_.S([_.Ex("data","allVideosCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],w3.prototype,"dataChanged",null);_.S([_.Ex("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],w3.prototype,"activeEndpointChanged",null);_.S([_.pD({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],w3);
_.d(w3,"ytd-mini-guide-renderer",function(){if(Cys===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);Cys=Y}Y=Cys;return Y},{mode:1});var yYq;var eAs=/^[\x00-\x7F]+$/,Zz=function(){return _.Z.apply(this,arguments)||this};
_.m(Zz,_.Z);_.Uk.Object.defineProperties(Zz.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var Y,G=_.Ri((Y=this.data)==null?void 0:Y.handle);if(G)return _.i8("@"+G)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var Y=_.Ri(this.displayHandle),G,u=_.Ri((G=this.data)==null?void 0:G.handleUrl);if(Y&&u)return _.i8(u+Y)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var Y=_.Ri(this.displayHandle);if(Y&&!eAs.test(Y)){var G;return(G=this.data)==null?void 0:G.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var Y=_.Ri(this.displayHandleUrl),G,u=_.Ri((G=this.data)==null?void 0:G.urlInfoText);if(Y&&u)return _.i8(u+" "+Y)}}});
_.S([_.R(),_.V("design:type",Object)],Zz.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zz.prototype,"displayHandle",null);_.S([_.f("displayHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zz.prototype,"displayHandleUrl",null);_.S([_.f("displayHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zz.prototype,"warningText",null);
_.S([_.f("displayHandleUrl"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zz.prototype,"urlInfoTextWithUrl",null);_.S([_.pD({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Zz);
_.d(Zz,"ytd-handles-claiming-confirm-dialog-content",function(){if(yYq!==void 0)return yYq;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return yYq=Y},{mode:1});var AYs;var Dz=function(){var Y=_.Z.apply(this,arguments)||this;Y.okButtonOverride={style:"mono",type:"outline",size:"M"};return Y};
_.m(Dz,_.Z);Dz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Dz.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Dz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Dz.prototype,"okButtonOverride",void 0);_.S([_.R(),_.V("design:type",Object)],Dz.prototype,"data",void 0);_.S([_.pD({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Dz);
_.d(Dz,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(AYs!==void 0)return AYs;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return AYs=Y},{mode:1});var oa5;var i1z=/^[\x00-\x7F]+$/,hx=function(){var Y=_.Z.apply(this,arguments)||this;Y.isLoading=!1;return Y};
_.m(hx,_.Z);hx.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var Y;this.selectedHandle=(Y=this.handleInput)==null?void 0:Y.value;this.onSelectedHandleChanged(this.selectedHandle);_.sK(this.hostElement,"yt-refit-popups-action")}};
_.Uk.Object.defineProperties(hx.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.i8("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.i8(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!i1z.test(this.selectedHandle)){var Y;return(Y=this.data)==null?void 0:Y.warningText}}}});
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],hx.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],hx.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],hx.prototype,"selectedHandle",void 0);_.S([_.R(),_.V("design:type",Object)],hx.prototype,"isLoading",void 0);_.S([_.R(),_.V("design:type",Function)],hx.prototype,"onSelectedHandleChanged",void 0);_.S([_.Ox("#channel-handle-input"),_.V("design:type",Object)],hx.prototype,"handleInput",void 0);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],hx.prototype,"handleUrlPrefix",null);_.S([_.f("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],hx.prototype,"displayHandle",null);_.S([_.f("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],hx.prototype,"displayHandleUrl",null);_.S([_.f("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],hx.prototype,"warningText",null);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.S([_.pD({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],hx);
_.d(hx,"ytd-handles-claiming-edit-dialog-content",function(){if(oa5!==void 0)return oa5;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return oa5=Y},{mode:1});var RAg;var d3=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionButtonOverride={style:"mono",type:"filled",size:"M"};Y.cancelButtonOverride={style:"mono",type:"text",size:"M"};Y.selectButtonDisabled=!1;Y.isLoading=!1;Y.hasSelectedHandleEventListener=!1;Y.selectedHandleChanged=function(G){Y.selectedHandle=G};
return Y};
_.m(d3,_.Z);_.H=d3.prototype;_.H.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.H.onDataChanged=function(){var Y,G;this.selectedHandle=(G=_.z((Y=this.data)==null?void 0:Y.inputField,HNb))==null?void 0:G.handle};
_.H.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.onCancel=function(){this.selectedHandle="";_.qZ(this.hostElement,"yt-close-popup-action",[this.is])};
_.H.onSelectHandle=function(){var Y=this;if(this.selectedHandle!==void 0){var G;((G=this.data)==null?void 0:G.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(u,O){if(O.newHandleUpdateStatus!==void 0&&O.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&O.newHandleUpdateStatus.errorMessage)_.Rd(Y.hostElement,_.Ri(O.newHandleUpdateStatus.errorMessage)),
Y.isLoading=!1;else{var Q;if((Q=Y.data)==null?0:Q.onChannelUpdateSuccess){u=Y.data.onChannelUpdateSuccess;var M,t;if(O=(M=_.z(u,_.tw))==null?void 0:(t=M.popup)==null?void 0:t.handlesClaimingConfirmDialogRenderer)O.handle=_.i8(Y.selectedHandle);Y.ytComponentBehavior.resolveCommand(u);_.qZ(Y.hostElement,"yt-close-popup-action",[Y.is])}else Y.isLoading=!1}},
onServerError:function(){var u;Y.content&&((u=Y.content)==null?0:u.handleInput)&&Y.content.handleInput.validate();Y.isLoading=!1;_.Rd(Y.hostElement,_.Q6("TRY_AGAIN_LATER"))}}}))}};
_.H.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
d3.prototype.onDataChanged=d3.prototype.onDataChanged;d3.prototype.onSelectedHandleChanged=d3.prototype.onSelectedHandleChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],d3.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],d3.prototype,"actionButtonOverride",void 0);_.S([_.R(),_.V("design:type",Object)],d3.prototype,"cancelButtonOverride",void 0);_.S([_.R(),_.V("design:type",Object)],d3.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",String)],d3.prototype,"selectedHandle",void 0);_.S([_.R(),_.V("design:type",Object)],d3.prototype,"selectButtonDisabled",void 0);_.S([_.R(),_.V("design:type",Object)],d3.prototype,"isLoading",void 0);_.S([_.R(),_.V("design:type",Object)],d3.prototype,"hasSelectedHandleEventListener",void 0);_.S([_.R(),_.V("design:type",Object)],d3.prototype,"handleInput",void 0);
_.S([_.GO("selectedHandle"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],d3.prototype,"onSelectedHandleChanged",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],d3.prototype,"onDataChanged",null);_.S([_.Ox("ytd-handles-claiming-edit-dialog-content"),_.V("design:type",Object)],d3.prototype,"content",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],d3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.pD({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],d3);
_.d(d3,"ytd-handles-claiming-edit-dialog-renderer",function(){if(RAg!==void 0)return RAg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return RAg=Y},{mode:1});var wus;var bZ=function(){return _.Z.apply(this,arguments)||this};
_.m(bZ,_.Z);_.Uk.Object.defineProperties(bZ.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null?0:Y.handle){var G;return _.i8("@"+_.Ri((G=this.data)==null?void 0:G.handle))}}}});
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],bZ.prototype,"formattedHandle",null);_.S([_.R(),_.V("design:type",Object)],bZ.prototype,"data",void 0);_.S([_.pD({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],bZ);
_.d(bZ,"ytd-handles-claiming-radio-option-renderer",function(){if(wus!==void 0)return wus;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return wus=Y},{mode:1});var Z1G;var DjO=/^[\x00-\x7F]+$/,Sj=function(){var Y=_.Z.apply(this,arguments)||this;Y.initialRadioIndex="-1";Y.isLoading=!1;Y.maybeSubmitFeedback=function(){Y.feedbackSurveyRenderer.submitSurvey()};
return Y};
_.m(Sj,_.Z);Sj.prototype.updateSelectedHandleIndexFromBinding=function(Y){this.selectedRadioIndex=+Y.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(Y)};
Sj.prototype.selectedHandleChanged=function(Y){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var G;this.selectedHandle=(G=this.handleInput)==null?void 0:G.value;this.onSelectedHandleChanged(Y)}};
_.Uk.Object.defineProperties(Sj.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var Y;return this.ytRendererBehavior.getSimpleString((Y=this.data)==null?void 0:Y.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.i8("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.i8(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!DjO.test(this.selectedHandle)){var Y;return(Y=this.data)==null?void 0:Y.warningText}}}});
_.S([_.R(),_.V("design:type",Object)],Sj.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Sj.prototype,"initialRadioIndex",void 0);_.S([_.R(),_.V("design:type",Number)],Sj.prototype,"selectedRadioIndex",void 0);_.S([_.R(),_.V("design:type",String)],Sj.prototype,"selectedHandle",void 0);_.S([_.R(),_.V("design:type",Object)],Sj.prototype,"isLoading",void 0);_.S([_.R(),_.V("design:type",Function)],Sj.prototype,"onSelectedHandleChanged",void 0);
_.S([_.R(),_.V("design:type",Function)],Sj.prototype,"onSelectedRadioIndexChanged",void 0);_.S([_.Ox("#channel-handle-input"),_.V("design:type",Object)],Sj.prototype,"handleInput",void 0);_.S([_.Ox("ytd-feedback-survey-renderer"),_.V("design:type",Object)],Sj.prototype,"feedbackSurveyRenderer",void 0);_.S([_.f("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],Sj.prototype,"radioButtonLength",null);
_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sj.prototype,"handleUrlPrefix",null);_.S([_.f("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sj.prototype,"displayHandle",null);_.S([_.f("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sj.prototype,"displayHandleUrl",null);_.S([_.f("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sj.prototype,"warningText",null);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.S([_.pD({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Sj);
_.d(Sj,"ytd-handles-claiming-select-dialog-content",function(){if(Z1G!==void 0)return Z1G;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Z1G=Y},{mode:1});var hAp;var N_=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionButtonOverride={style:"mono",type:"filled",size:"M"};Y.cancelButtonOverride={style:"mono",type:"text",size:"M"};Y.initialRadioIndex="-1";Y.selectButtonDisabled=!1;Y.isLoading=!1;Y.selectedRadioIndexChanged=function(G){Y.selectedRadioIndex=Number(G.detail.value)};
Y.selectedHandleChanged=function(G){Y.selectedHandle=G.detail.value};
return Y};
_.m(N_,_.Z);_.H=N_.prototype;_.H.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.H.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.H.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.sK(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;_.qZ(this.hostElement,"yt-close-popup-action",[this.is])};
_.H.onSelectHandle=function(){var Y=this;if(this.selectedHandle!==void 0){var G;((G=this.data)==null?void 0:G.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(u,O){if(O.newHandleUpdateStatus!==void 0&&O.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&O.newHandleUpdateStatus.errorMessage)_.Rd(Y.hostElement,_.Ri(O.newHandleUpdateStatus.errorMessage)),
Y.isLoading=!1;else{var Q;if((Q=Y.data)==null?0:Q.onChannelUpdateSuccess){u=Y.data.onChannelUpdateSuccess;O=_.z(u,_.tw);var M;if(O==null?0:(M=O.popup)==null?0:M.handlesClaimingConfirmDialogRenderer)O.popup.handlesClaimingConfirmDialogRenderer.handle=_.i8(Y.selectedHandle);Y.ytComponentBehavior.resolveCommand(u);_.qZ(Y.hostElement,"yt-close-popup-action",[Y.is])}else Y.isLoading=!1}},
onServerError:function(){if(Y.selectedRadioIndex===Y.radioButtonLength){var u;Y.content&&((u=Y.content)==null?0:u.handleInput)&&Y.content.handleInput.validate()}Y.isLoading=!1;_.Rd(Y.hostElement,_.Q6("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 Y,G;this.selectedHandle=(Y=this.content)==null?void 0:(G=Y.handleInput)==null?void 0:G.value}else this.selectedRadioIndex>=0&&((Y=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(Y==null?void 0:Y.handle):this.selectedHandle=void 0)};
_.H.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.H.getRadioItem=function(Y){if(this.radioButtonLength>Y&&Y>=0)return _.z(this.data.radioButton[Y],bNS)};
_.Uk.Object.defineProperties(N_.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.radioButton)||[]).length}}});
N_.prototype.onSelectedHandleChanged=N_.prototype.onSelectedHandleChanged;N_.prototype.onSelectedHandleIndexChanged=N_.prototype.onSelectedHandleIndexChanged;N_.prototype.onDataChanged=N_.prototype.onDataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],N_.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],N_.prototype,"actionButtonOverride",void 0);_.S([_.R(),_.V("design:type",Object)],N_.prototype,"cancelButtonOverride",void 0);
_.S([_.R(),_.V("design:type",Object)],N_.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],N_.prototype,"initialRadioIndex",void 0);_.S([_.R(),_.V("design:type",Number)],N_.prototype,"selectedRadioIndex",void 0);_.S([_.R(),_.V("design:type",String)],N_.prototype,"selectedHandle",void 0);_.S([_.R(),_.V("design:type",Object)],N_.prototype,"selectButtonDisabled",void 0);_.S([_.R(),_.V("design:type",Object)],N_.prototype,"isLoading",void 0);
_.S([_.f("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],N_.prototype,"radioButtonLength",null);_.S([_.Ox("ytd-handles-claiming-select-dialog-content"),_.V("design:type",Object)],N_.prototype,"content",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],N_.prototype,"onDataChanged",null);
_.S([_.GO("selectedRadioIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],N_.prototype,"onSelectedHandleIndexChanged",null);_.S([_.GO("selectedHandle"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],N_.prototype,"onSelectedHandleChanged",null);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],N_.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],N_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.pD({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],N_);
_.d(N_,"ytd-handles-claiming-select-dialog-renderer",function(){if(hAp!==void 0)return hAp;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return hAp=Y},{mode:1});var djT;var b1n;var jj=function(){return _.Z.apply(this,arguments)||this};
_.m(jj,_.Z);jj.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],jj.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],jj.prototype,"data",void 0);_.S([_.pD({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],jj);
_.d(jj,"ytd-hotkey-dialog-section-option-renderer",function(){if(b1n!==void 0)return b1n;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return b1n=Y},{mode:1});var SIs;var VC=function(){return _.Z.apply(this,arguments)||this};
_.m(VC,_.Z);VC.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],VC.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],VC.prototype,"data",void 0);_.S([_.pD({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],VC);
_.d(VC,"ytd-hotkey-dialog-section-renderer",function(){if(SIs!==void 0)return SIs;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return SIs=Y},{mode:1});var lZ=function(){return _.Z.apply(this,arguments)||this};
_.m(lZ,_.Z);lZ.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],lZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],lZ.prototype,"data",void 0);_.S([_.pD({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],lZ);
_.d(lZ,"ytd-hotkey-dialog-content",function(){if(djT!==void 0)return djT;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return djT=Y},{mode:1});var NAO;var Bo=function(){return _.Z.apply(this,arguments)||this};
_.m(Bo,_.Z);Bo.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var Y=document.querySelector("ytd-hotkey-dialog-content #scrollable");Y&&(Y.dialogElement=this.hostElement.parentElement)};
Bo.prototype.onCloseTap=function(){_.qZ(this.hostElement,"yt-close-popup-action")};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Bo.prototype,"data",void 0);_.S([_.pD({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Bo);
_.d(Bo,"ytd-hotkey-dialog-renderer",function(){if(NAO!==void 0)return NAO;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return NAO=Y},{mode:1});var jUp;var $L=function(){return _.Z.apply(this,arguments)||this};
_.m($L,_.Z);$L.prototype.onYtServiceRequestError=function(){if(this.blocked){var Y;var G=(Y=this.data)==null?void 0:Y.defaultServiceEndpoint}else{var u;G=(u=this.data)==null?void 0:u.toggledServiceEndpoint}var O;(G=(O=_.z(G,_.Pa_))==null?void 0:O.onFailureAction)&&this.ytComponentBehavior.resolveCommand(G);this.updateBlockState(!this.blocked)};
$L.prototype.onYtToggleButton=function(Y){this.updateBlockState(Y.detail.toggled)};
$L.prototype.updateBlockState=function(Y){if(Y!==this.blocked){var G=this.blockedEntityKey;G&&this.ytdReduxBehavior.dispatch(_.t$("blockStateEntity",G,{key:G,blocked:Y}));this.set("data.isToggled",Y)}};
_.Uk.Object.defineProperties($L.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)}}});
$L.prototype.onYtToggleButton=$L.prototype.onYtToggleButton;$L.prototype.onYtServiceRequestError=$L.prototype.onYtServiceRequestError;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],$L.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],$L.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],$L.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],$L.prototype,"blockedEntityKey",void 0);
_.S([_.R({selectorArgs:["blockedEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"blockStateEntity",G)}}),
_.V("design:type",Object)],$L.prototype,"blockStateEntity",void 0);_.S([_.f("data","blockStateEntity"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$L.prototype,"blocked",null);_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],$L.prototype,"onYtServiceRequestError",null);
_.S([_.Yo("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],$L.prototype,"onYtToggleButton",null);_.S([_.pD({is:"ytd-block-button",disableElementRegistration:!0})],$L);
_.d($L,"ytd-block-button",function(){if(jUp!==void 0)return jUp;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return jUp=Y},
{mode:1});var VTh;var ltn;var q_=function(){return _.Z.apply(this,arguments)||this};
_.m(q_,_.Z);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],q_.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],q_.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],q_.prototype,"data",void 0);_.S([_.pD({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],q_);
_.d(q_,"ytd-kids-blocklist-picker-item-renderer",function(){if(ltn!==void 0)return ltn;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return ltn=Y},{mode:1});var sX=function(){return _.Z.apply(this,arguments)||this};
_.m(sX,_.Z);sX.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],sX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],sX.prototype,"data",void 0);_.S([_.pD({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],sX);
_.d(sX,"ytd-kids-blocklist-picker-content",function(){if(VTh!==void 0)return VTh;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return VTh=
Y},{mode:2});var BAp;var co=function(){var Y=_.Z.apply(this,arguments)||this;Y.hasAnyRequestSucceeded=!1;Y.hasAnyRequestFailed=!1;Y.numPendingRequests=0;return Y};
_.m(co,_.Z);_.H=co.prototype;_.H.attached=function(){this.hostElement.setAttribute("dialog","")};
_.H.onDoneButtonTap=function(){_.qZ(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(Y){var G,u;if(((G=Y.detail)==null?void 0:(u=G.popup)==null?void 0:u.is)==="tp-yt-paper-dialog"){var O;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((O=this.data)==null?0:O.successfulToastActionMessage)&&(Y=_.hH(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(Y));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
co.prototype.onPopupClosed=co.prototype.onPopupClosed;co.prototype.onYtServiceRequestError=co.prototype.onYtServiceRequestError;co.prototype.onYtServiceRequestCompleted=co.prototype.onYtServiceRequestCompleted;co.prototype.onYtServiceRequestSent=co.prototype.onYtServiceRequestSent;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],co.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],co.prototype,"data",void 0);_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],co.prototype,"onYtServiceRequestSent",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],co.prototype,"onYtServiceRequestCompleted",null);
_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],co.prototype,"onYtServiceRequestError",null);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],co.prototype,"onPopupClosed",null);_.S([_.pD({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],co);
_.d(co,"ytd-kids-blocklist-picker-renderer",function(){if(BAp!==void 0)return BAp;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return BAp=Y},{mode:1});var $js;var qIT;var UX=function(){return _.Z.apply(this,arguments)||this};
_.m(UX,_.Z);UX.prototype.setTip=function(Y){var G=this;this.data&&(this.tip=tBb(HFb.getInstance(),Y,this.data),_.sk(this,function(){_.$s(G.hostElement,"yt-refit")}))};
UX.prototype.clearTip=function(){this.tip=void 0};
UX.prototype.computeHidden=function(Y){return!Y};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],UX.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.V("design:type",Boolean)],UX.prototype,"hidden",void 0);_.S([_.R(),_.V("design:type",Object)],UX.prototype,"tip",void 0);_.S([_.pD({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],UX);
_.d(UX,"ytd-menu-popup-tip-renderer",function(){if(qIT!==void 0)return qIT;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);
return qIT=Y},{mode:1});var sUg;var vo=function(){var Y=_.Z.apply(this,arguments)||this;Y.useIcons=!1;Y.role="menuitem";Y.systemIcons=_.F("kevlar_system_icons");return Y};
_.m(vo,_.Z);_.H=vo.prototype;_.H.onFocus=function(){var Y;(Y=_.l0(this.hostElement).querySelector("tp-yt-paper-item"))==null||Y.focus()};
_.H.onTap=function(){var Y=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(Y&&_.z(Y,_.Jv))this.componentBehavior.resolveCommand(Y),this.updateToggledStateInEntity();else if(Y){this.componentBehavior.resolveCommand(Y)||_.sH().resolve(_.rH).resolveCommand(Y,{form:{element:this.hostElement}});var G;((G=_.z(Y,_.Gb))==null?void 0:G.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 Y=this.data.toggleMenuServiceItemEntityKey,G=!this.data.isToggled;Y&&this.ytdReduxBehavior.dispatch(_.t$("toggleMenuServiceItemEntity",Y,{key:Y,isToggled:G}))};
_.H.computeIcon=function(Y,G,u){return(Y=Y?u:G)&&Y.iconType?_.Ux(Y.iconType):""};
_.H.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.H.isIconActive=function(Y){return!_.F("toggle_menu_active_icon_killswitch")&&Y};
_.Uk.Object.defineProperties(vo.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return((Y=this.data)==null?0:Y.isToggled)?(G=this.data)==null?void 0:G.toggledText:(u=this.data)==null?void 0:u.defaultText}}});
vo.prototype.toggledStateEntityChanged=vo.prototype.toggledStateEntityChanged;vo.prototype.onYtServiceRequestCompleted=vo.prototype.onYtServiceRequestCompleted;vo.prototype.onTap=vo.prototype.onTap;vo.prototype.onFocus=vo.prototype.onFocus;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],vo.prototype,"componentBehavior",void 0);
_.S([_.x(_.me),_.V("design:type",Object)],vo.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],vo.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],vo.prototype,"useIcons",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],vo.prototype,"role",void 0);_.S([_.R({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.V("design:type",String)],vo.prototype,"icon",void 0);
_.S([_.R({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.at.toggleMenuServiceItemEntitySelector}),_.V("design:type",Object)],vo.prototype,"toggleMenuServiceItemEntity",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],vo.prototype,"systemIcons",void 0);_.S([_.Yo("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vo.prototype,"onFocus",null);
_.S([_.f("data.isToggled"),_.V("design:type",Object),_.V("design:paramtypes",[])],vo.prototype,"toggleButtonText",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vo.prototype,"onTap",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vo.prototype,"onYtServiceRequestCompleted",null);
_.S([_.GO("toggleMenuServiceItemEntity.isToggled","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vo.prototype,"toggledStateEntityChanged",null);_.S([_.pD({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],vo);
_.d(vo,"ytd-toggle-menu-service-item-renderer",function(){if(sUg!==void 0)return sUg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return sUg=Y},{mode:1});var cYp;var Jx=function(){return _.Z.apply(this,arguments)||this};
_.m(Jx,_.Z);Jx.prototype.onFocus=function(){var Y;(Y=_.l0(this.hostElement).querySelector("tp-yt-paper-item"))==null||Y.focus()};
_.Uk.Object.defineProperties(Jx.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.cs(this.data.iconUrl)}}});
Jx.prototype.onFocus=Jx.prototype.onFocus;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Jx.prototype,"rendererBehavior",void 0);_.S([_.x(_.U2.YtEndpointBehavior),_.V("design:type",Object)],Jx.prototype,"ytEndpointBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Jx.prototype,"data",void 0);_.S([_.Yo("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jx.prototype,"onFocus",null);
_.S([_.f("data.iconUrl"),_.V("design:type",Object),_.V("design:paramtypes",[])],Jx.prototype,"imageSource",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Jx);
_.d(Jx,"ytd-menu-custom-icon-item-renderer",function(){if(cYp!==void 0)return cYp;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return cYp=Y},{mode:2});_.hR(_.og,"yt-list-item-view-model",{props:{data:_.AC,isMenuItem:_.AC,isCompact:_.AC,onTap:_.wH,trailingAccessory:_.wH,hideSelectionTextChevron:_.AC,disabled:_.AC,inPopup:_.AC,disableHorizontalPadding:_.AC,isOverlay:_.AC,isToggled:_.AC,ariaLabel:_.AC,ariaPressed:_.AC,shouldNotFillIcon:_.AC}});var YX=function(){var Y=_.Z.apply(this,arguments)||this;Y.disableBackdropFilter=_.F("web_disable_backdrop_filter");return Y};
_.m(YX,_.Z);_.H=YX.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(Y){return Y};
_.H.onPopupOpened=function(){this.items.selected=0;for(var Y=_.E(_.l0(this.items).children),G=Y.next();!G.done;G=Y.next())G.value.popupPositionTarget=this.positionTarget;if(Y=this.popupTip||void 0)Y.setTip(this.source||""),this.source=void 0;this.veData&&(Y=_.FA())&&_.oK(Y,[this.veData])};
_.H.onPopupClosed=function(){var Y=this.popupTip||void 0;Y&&Y.clearTip()};
_.H.onIronActivate=function(Y){this.shouldPersist(Y)||_.qZ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(Y=_.FA())&&_.RK(Y,this.veData)};
_.H.shouldPersist=function(Y){var G,u;if(((G=Y.detail)==null?void 0:G.selected)===void 0||(u=this.data)==null||!u.items)return!1;var O,Q;return!((Q=(O=this.data.items[Y.detail.selected])==null?void 0:O.toggleMenuServiceItemRenderer)==null||!Q.persistentOnMenuPopup)};
_.H.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(Y){return Y.menuNavigationItemRenderer?!!Y.menuNavigationItemRenderer.icon:Y.menuServiceItemRenderer?!!Y.menuServiceItemRenderer.icon:Y.menuConditionalServiceItemRenderer?!!Y.menuConditionalServiceItemRenderer.icon:Y.menuConditionalNavigationItemRenderer?!!Y.menuConditionalNavigationItemRenderer.icon:Y.toggleMenuServiceItemRenderer?!!Y.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
YX.prototype.onPopupClosed=YX.prototype.onPopupClosed;YX.prototype.onPopupOpened=YX.prototype.onPopupOpened;_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],YX.prototype,"ytEventForwardingBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],YX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],YX.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],YX.prototype,"veData",void 0);_.S([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.V("design:type",String)],YX.prototype,"ariaLabel",void 0);_.S([_.R({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],YX.prototype,"useIcons",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],YX.prototype,"disableBackdropFilter",void 0);_.S([_.Ox("#items"),_.V("design:type",Object)],YX.prototype,"items",void 0);_.S([_.Ox("ytd-menu-popup-tip-renderer"),_.V("design:type",Object)],YX.prototype,"popupTip",void 0);_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],YX.prototype,"onPopupOpened",null);
_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],YX.prototype,"onPopupClosed",null);_.S([_.pD({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],YX);
_.d(YX,"ytd-menu-popup-renderer",function(){if($js!==void 0)return $js;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return $js=Y},{mode:1});var UjT;var vaO=_.D(function(Y){Y=_.bM(Y,{icon:void 0});var G=Y.data;Y=Y.icon;var u=function(){return G().iconBadgeText},O={},Q=_.s3("yt-spec-icon-badge-shape",function(){a:switch(G().iconBadgeType){case "notification":var M="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":M="yt-spec-icon-badge-shape--type-cart";break a;default:M=""}return M},function(){a:switch(G().iconBadgeStyle){case "overlay":var M="yt-spec-icon-badge-shape--style-overlay";
break a;default:M=""}return M},(O["yt-spec-icon-badge-shape--text-size-small"]=function(){var M=u();
return!!((M==null?0:M.length)&&M.length>2)},O));
return _.T("yt-icon-badge-shape",null,_.T(_.X,{cond:Y,then:function(M){return _.T("div",{class:Q},_.T("div",{class:"yt-spec-icon-badge-shape__icon"},_.T(_.GS,{icon:M})),_.T(_.X,{cond:u,then:function(t){return _.T("div",{class:"yt-spec-icon-badge-shape__badge"},t)}}))}}))},"jl");
vaO.idomCompat=!0;_.hR(vaO,"yt-icon-badge-shape",{props:{data:_.AC,icon:_.AC}});var G4=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};Y.unseenCount=0;Y.isOverlay=!1;return Y};
_.m(G4,_.Z);_.H=G4.prototype;_.H.attached=function(){var Y=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(G){Y.onServiceWorkerMessage(G)})};
_.H.onDataChanged=function(){this.isAttached&&!this.JSC$22675_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$22675_lastData=this.data};
_.H.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.H.computeIcon=function(){var Y,G;return(Y=this.data)==null?void 0:(G=Y.icon)==null?void 0:G.iconType};
_.H.onServiceWorkerMessage=function(Y){Y.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&&!!_.z(this.data.updateUnseenCountEndpoint,_.Gb)&&_.z(this.data.updateUnseenCountEndpoint,_.Gb).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.H.handleUpdateNotificationsUnseenCountAction=function(Y){var G=this;Y=_.z(Y,z7S);Y!=null&&Y.unseenCount&&Y.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(Y.unseenCount),_.AN.addLowPriorityJob(function(){G.data.updateUnseenCountEndpoint&&G.ytComponentBehavior.resolveCommand(G.data.updateUnseenCountEndpoint)},Y.timeoutMs))};
_.H.onClick=function(){_.$s(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var Y=_.sK(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),G=this.data.menuRequest;Y&&Y.length===1&&Y[0]?_.qZ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):G&&this.ytComponentBehavior.resolveCommand(G)};
_.H.handleTopbarMenuClosedAction=function(Y){Y==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.H.toggleIconState=function(Y){this.iconButton&&(this.iconButton.pressed=Y)};
_.H.sendUnseenCountRequest=function(Y){var G=this;_.WY(_.AN,function(){G.ytComponentBehavior.resolveCommand(Y)})};
_.H.updateCountUI=function(Y){this.set("unseenCount",Y<9?Y:"9+")};
_.Uk.Object.defineProperties(G4.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
G4.prototype.handleUpdateNotificationsUnseenCountAction=G4.prototype.handleUpdateNotificationsUnseenCountAction;G4.prototype.onDataChanged=G4.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],G4.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.SZ),_.V("design:type",Object)],G4.prototype,"ytdOpenPopupBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],G4.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],G4.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],G4.prototype,"unseenCount",void 0);_.S([_.R(),_.V("design:type",Object)],G4.prototype,"isOverlay",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],G4.prototype,"showTooltips",void 0);_.S([_.Ox("yt-icon-button"),_.V("design:type",Object)],G4.prototype,"iconButton",void 0);
_.S([_.f("unseenCount"),_.V("design:type",Object),_.V("design:paramtypes",[])],G4.prototype,"showNotificationCount",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],G4.prototype,"onDataChanged",null);_.S([_.Yo("yt-update-notifications-unseen-count-action"),_.V("design:type",Function),_.V("design:paramtypes",[Object]),_.V("design:returntype")],G4.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.S([_.pD({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],G4);
_.d(G4,"ytd-notification-topbar-button-renderer",function(){if(UjT!==void 0)return UjT;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return UjT=Y},{mode:2});var JYn;var u4=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return Y};
_.m(u4,_.Z);u4.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}}}}}};
u4.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
u4.prototype.onDarkModeToggled=function(Y){this.dark=Y};
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],u4.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],u4.prototype,"data",void 0);_.S([_.R({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],u4.prototype,"dark",void 0);
_.S([_.pD({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],u4);
_.d(u4,"yt-pdg-buy-flow-header-renderer",function(){if(JYn!==void 0)return JYn;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return JYn=Y},{mode:1});var Y4h;var G2q;var OZ=function(){var Y=_.Z.apply(this,arguments)||this;Y.immediateValue=0;Y.isDarkTheme=!1;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.m(OZ,_.Z);_.H=OZ.prototype;_.H.created=function(){_.mA.requestAvailability()};
_.H.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.H.dataChanged=function(){var Y=_.l0(this.hostElement).querySelector("#color-slider");Y.immediateValue&&this.updateSliderKnobAndGradientStyles(Y.immediateValue);this.data.notches[0].knobColorArgb&&_.cm(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.nB(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.DE("HTML_DIR")==="rtl"&&_.l0(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.H.onSliderImmediateChange=function(){var Y=_.l0(this.hostElement).querySelector("#color-slider");Y.dragging&&(Y.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(Y.immediateValue),this.updateSliderKnobAndGradientStyles(Y.immediateValue)),this.updateSliderAria())};
_.H.onSliderChange=function(){var Y=_.l0(this.hostElement).querySelector("#color-slider");Y.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(Y.immediateValue),this.updateSliderKnobAndGradientStyles(Y.immediateValue));this.updateSliderAria()};
_.H.updateSliderAria=function(){var Y=_.l0(this.hostElement).querySelector("#color-slider"),G=_.l0(this.hostElement).querySelector("#color-slider");G=_.Ri(this.data.notches[G.immediateValue].tierValue);_.F4g()&&_.$s(this.hostElement,"iron-announce",{text:G});Y.setAttribute("aria-valuetext",G)};
_.H.updateSuperThanksSelectedTierEntity=function(Y){if(Y!==this.immediateValue){var G,u,O=this==null?void 0:(G=this.data)==null?void 0:(u=G.superThanksSelectedTierEntity)==null?void 0:u.key;O&&O.length>0&&this.ytdReduxBehavior.dispatch(_.t$("superThanksSelectedTierEntity",O,{key:O,index:Y}))}};
_.H.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.H.updateSliderKnobAndGradientStyles=function(Y){this.immediateValue=Y;Y=this.data.notches[Y];if(Y==null?0:Y.knobColorArgb)var G={"--ytd-pdg-color-slider-knob-color":_.nB(Y.knobColorArgb)};(Y==null?0:Y.linearGradientCssStyle)&&G!==null&&(G=Object.assign({},G,{"--ytd-pdg-color-slider-active-color":Y==null?void 0:Y.linearGradientCssStyle}));G!==null&&_.cm(this.hostElement,G)};
OZ.prototype.onSliderChange=OZ.prototype.onSliderChange;OZ.prototype.onSliderImmediateChange=OZ.prototype.onSliderImmediateChange;OZ.prototype.dataChanged=OZ.prototype.dataChanged;_.S([_.R(),_.V("design:type",Object)],OZ.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],OZ.prototype,"immediateValue",void 0);_.S([_.R(),_.V("design:type",Number)],OZ.prototype,"maxMarkers",void 0);
_.S([_.R({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:fsw}),_.V("design:type",Object)],OZ.prototype,"superThanksSelectedTierEntity",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],OZ.prototype,"isDarkTheme",void 0);_.S([_.x(_.me),_.V("design:type",Object)],OZ.prototype,"ytdReduxBehavior",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OZ.prototype,"dataChanged",null);
_.S([_.Yo("immediate-value-change"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OZ.prototype,"onSliderImmediateChange",null);_.S([_.Yo("change"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OZ.prototype,"onSliderChange",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],OZ);
_.d(OZ,"ytd-pdg-color-slider-renderer",function(){if(G2q!==void 0)return G2q;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return G2q=Y},{mode:1});var ueh;var OTn;var QE=null;
_.Xf({is:"ytd-comment-input",_template:function(){if(OTn!==void 0)return OTn;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return OTn=Y},
behaviors:[_.BOA.YtHostElementBehavior,_.Gp,_.m9.YtComponentBehavior,_.bE.YtRendererstamperBehavior,_.Ugk.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 _.Ai}},
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",_.Jh(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;_.Uz();this.focus()},
detached:function(){document.removeEventListener("tap",_.Jh(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(Y){Y=Y.detail;Y=Y.isCustomEmoji?Y.shortcuts[0]:Y.emojiId;var G=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(G,Y);this.maybeUpdateTextDirection_();_.$s(this.hostElement,"input")},
getInputRange_:function(){var Y=_.Et();if(Y){Y=Y.getBrowserRangeObject();for(var G=Y.commonAncestorContainer;G;){if(G===this.getEditableTextArea_())return Y;G=G.parentNode}}Y=this.getEditableTextArea_();Y=_.an(Y,Y.childNodes.length);Y.select();return Y.getBrowserRangeObject()},
insertTextWithEmojis_:function(Y,G,u){(G=this.emojiManager.createDocumentFragment(G,!0,!1,u===void 0?!0:u))&&G.childNodes.length!==0&&(Y.collapsed||Y.deleteContents(),u=G.lastChild,Y.insertNode(G),_.QS_(u).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var Y=_.Et();if(Y){var G=Y.JSC$11678_getStartNode(),u=Y.JSC$11678_getEndNode();if(u8x(G)&&u8x(u)){var O=Y.JSC$11678_getStartOffset(),Q;if(_.uO&&G.nodeType===Node.ELEMENT_NODE&&(Q=_.syR(G)))_.an(Q,0).select();else{Q=KC(G)?G:_.pm(G,KC);var M=KC(u)?u:_.pm(u,KC);if(Q||M)if(Y.isCollapsed()){if(G.nodeType===Node.TEXT_NODE){Y=!0;O===G.length&&(Y=!1);if(QE==="end"||QE==="right")Y=!1;G=G.parentNode;Y=[].concat(_.c8(G.parentNode.childNodes)).indexOf(G)+(Y?0:1);_.an(G.parentNode,
Y).select()}}else Q?Q.previousSibling&&Q.previousSibling.length>0?_.TN(u,Y.JSC$11678_getEndOffset(),Q.previousSibling,Q.previousSibling.length-1).select():(G=document.createTextNode("\u200b"),Q.parentNode.insertBefore(G,Q),_.TN(u,Y.JSC$11678_getEndOffset(),G,0).select()):M&&(M.nextSibling&&M.nextSibling.length>0?_.TN(G,Y.JSC$11678_getStartOffset(),M.nextSibling,1).select():(u=document.createTextNode("\u200b"),M.parentNode.insertBefore(u,M.nextSibling),_.TN(G,Y.JSC$11678_getStartOffset(),u,u.length).select()));
QE=null}}else QE=null}else QE=null},
leftKeyPressed_:function(){QE="left"},
rightKeyPressed_:function(){QE="right"},
endKeyPressed_:function(){QE="end"},
maybeDeleteChip_:function(){var Y=KGx(!0);if(Y){var G=_.Et(),u=G.JSC$11678_getStartNode();G=G.JSC$11678_getStartOffset();_.KA(u,G,Y,Y.childNodes.length).select()}},
maybeBackspaceChip_:function(){var Y=KGx(!1);if(Y){var G=_.Et(),u=G.JSC$11678_getStartNode();G=G.JSC$11678_getStartOffset();_.KA(u,G,Y,0).select()}},
maybeBackspaceChipWordMode_:function(Y){var G=_.Et();if(G.isCollapsed()){var u=G.JSC$11678_getStartNode();G=G.JSC$11678_getStartOffset();var O=a0w(u,G,!0);O&&(_.KA(u,G,O,0).select(),document.execCommand("delete"),Y.preventDefault(),Y.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(Y){var G=_.Et();if(G.isCollapsed()){var u=G.JSC$11678_getStartNode();G=G.JSC$11678_getStartOffset();var O=a0w(u,G,!1);O&&(_.KA(u,G,O,O.childNodes.length).select(),document.execCommand("delete"),Y.preventDefault(),Y.stopImmediatePropagation())}},
onContentClick:function(Y){Y.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(Y){Y.defaultPrevented||Y.currentTarget.tagName==="YTD-COMMENT-INPUT"&&KC(Y.target)&&Y.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.l0(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.l0(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(Y,G){Y=Q9x(Y,this.emojiManager,G).cloneNode(!0);for(G=Y.firstChild;G;)if(G.nodeType!==1)G=G.nextSibling;else switch(G.tagName){case "BR":var u=_.Cu();_.O7V(u,G);G=u.nextSibling;break;case "DIV":(u=G.lastChild)&&G.nextSibling&&_.o9(_.Cu(),u);G.previousSibling&&(G.previousSibling.nodeType===1||G.previousSibling.nodeType===3&&!G.previousSibling.textContent.endsWith("\n"))&&_.Am(_.Cu(),G);u&&u.nodeName==="BR"&&_.Oy(u);u=G;G.hasChildNodes()?(G=G.firstChild,
_.QeM(u)):(G=G.nextSibling,_.Oy(u));break;default:G=G.nextSibling}return T0S(Y)},
setTextAreaValue:function(Y){Y||(Y="");var G=this.getEditableFormattedString_();G.text="";this.getEditableTextArea_().innerText="";typeof Y==="string"&&(Y={runs:[{text:Y}]});G.text=Y},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();QE=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var Y=this.getEditableTextArea_();Y&&(_.an(Y,Y.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.DE("HTML_DIR")==="rtl"){var Y=this.getEditableTextArea_(),G=this.getTextAreaValue()!==""?"auto":"rtl";Y.setAttribute("dir",G)}},
handleInputEvent_:function(){var Y=null;if(this.isEmojiButtonDisplayed){var G=this.getInputRange_();G&&(Y=this.emojiInput.retrieveTextBeforeRange(G))}this.insertText_(Y,!0);this.updateCharCount_();Y=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=Y.scrollHeight>Y.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var Y=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:Y})},
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(Y){this.isEmojiButtonDisplayed&&(Y.preventDefault(),Y.stopImmediatePropagation(),Y=Y.clipboardData.getData("text/plain"),this.insertText_(Y,!1,!1),_.$s(this.hostElement,"input"))},
insertText_:function(Y,G,u){G=G===void 0?!1:G;u=u===void 0?!0:u;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&Y){var O=this.getInputRange_().cloneRange();this.emojiManager&&O&&(G&&this.emojiInput.offsetStartOfRangeBy(O,Y.length),this.insertTextWithEmojis_(O,Y,u),Oub(this.getEditableTextArea_().lastChild)||(O=this.getInputRange_().cloneRange()),O&&(this.emojiInput.updateSuggestions(O,Y),this.updateSuggestionOffset_(O)))}},
getSimpleString:_.Ri,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(Y){return Y?"focused":"not-focused"},
computePlaceholderText_:function(Y){return this.getSimpleString(Y)},
computeEditableText_:function(Y){return this.getSimpleString(Y)},
onPrefilledContentDismissed_:function(Y){Y.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(Y,G){Y?this.fire("yt-autonav-pause-focus"):G!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(Y){var G=this.getEditableTextArea_();[].concat(_.c8(Y.dataTransfer.items)).forEach(function(u){u.kind==="string"&&u.type.match("^text/plain")&&u.getAsString(function(O){G.appendChild(document.createTextNode(O))})});
Y.preventDefault()},
preventDefault_:function(Y){Y.preventDefault()},
onSuggestionInsert_:function(Y){this.insertTextWithEmojis_(Y.detail.range,Y.detail.text)},
onEmojiSuggestionClick_:function(Y){this.emojiInput.insertSuggestion(Y.detail)},
updateSuggestionOffset_:function(Y){if(this.emojiInput&&_.l0(this.emojiInput).querySelector("#dropdown")){var G=this.getEditableTextArea_().getBoundingClientRect().bottom,u=Y.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(G-u)+5;G=this.getEditableTextArea_().getBoundingClientRect().left;Y=Y.getBoundingClientRect().left-G;_.l0(this.emojiInput).querySelector("#dropdown").style.marginLeft=Y+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Da("yt-post"));return this.localStorage}});var MT=function(){var Y=_.Z.apply(this,arguments)||this;Y.currentCommentOptionIndex=0;Y.isEmojiPickerDisplayed=!1;Y.emojiManager=_.Ai;Y.isUgcEmpty=!1;Y.userGeneratedCommentChangedHandler=function(){_.$s(Y.hostElement,"ytd-pdg-user-generated-comment-changed");Y.isEmojiYtdCommentInputEnabled&&(Y.isUgcEmpty=!Y.ytdCommentInputEl.getTextAreaValue())};
Y.pasteHandler=function(G){G.preventDefault();G.stopImmediatePropagation();var u;if(G=(u=G.clipboardData)==null?void 0:u.getData("text/plain"))u=document.getSelection().getRangeAt(0),u.collapsed||u.deleteContents(),G=document.createTextNode(G),u.insertNode(G),u.selectNodeContents(G),u.collapse(!1),G=window.getSelection(),G.removeAllRanges(),G.addRange(u)};
Y.onDocumentClick=function(G){if(Y.isEmojiPickerDisplayed){var u,O,Q;!(G.target instanceof Node)||(u=G.composedPath())!=null&&u.includes(Y.editableTextEl)||(O=G.composedPath())!=null&&O.includes(Y.emojiButtonEl)||(Q=G.composedPath())!=null&&Q.includes(Y.emojiPickerEl)||(Y.isEmojiPickerDisplayed=!1)}};
return Y};
_.m(MT,_.Z);_.H=MT.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 Y;(Y=this.contentEl)==null||Y.removeEventListener("input",this.userGeneratedCommentChangedHandler);var G;(G=this.contentEl)==null||G.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 Y;this.contentEl.textContent=this.rendererBehavior.getSimpleString((Y=this.data)==null?void 0:Y.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.H.reloadEmojis=function(){this.emojiPickerEl&&_.z(this.emojiPicker,_.cw1)&&this.emojiPickerEl.updateEmojiCategories()};
_.H.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.cm(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.H.handleBackgroundColorStyling=function(){var Y;if((Y=this.currentCommentOption)==null?0:Y.commentBackgroundColorArgb){var G;_.cm(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.nB((G=this.currentCommentOption)==null?void 0:G.commentBackgroundColorArgb)})}else _.cm(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 Y;(Y=this.contentEl)==null||Y.focus()}};
_.H.onEditButtonClick=function(Y){var G=document.getSelection();G&&this.contentEl&&(Y.stopPropagation(),Y.preventDefault(),G.selectAllChildren(this.contentEl),G.collapseToEnd())};
_.H.onContentDrop=function(Y){var G=this;if(Y.dataTransfer){Y=_.E(Y.dataTransfer.items);for(var u=Y.next();!u.done;u=Y.next())u=u.value,u.kind==="string"&&u.type.match("^text/plain")&&u.getAsString(function(O){var Q;(Q=G.contentEl)==null||Q.appendChild(document.createTextNode(O))})}};
_.H.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.H.getUserGeneratedCommentText=function(){var Y,G=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(Y=this.contentEl)==null?void 0:Y.textContent;return G?G.trim():""};
_.H.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.H.onEmojiSelect=function(Y){this.ytdCommentInputEl.onEmojiSelect(Y)};
_.Uk.Object.defineProperties(MT.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.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 Y;return!((Y=this.currentCommentOption)==null||!Y.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;if(_.z((Y=this.currentCommentOption)==null?void 0:Y.chipRenderer,_.FBR)){var G;return _.z((G=this.currentCommentOption)==null?void 0:G.chipRenderer,_.FBR)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var Y,G;return((Y=this.data)==null?0:Y.commentOptionRenderers)?_.z((G=this.data)==null?void 0:G.commentOptionRenderers[this.superThanksSelectedTierEntity.index],Pko):void 0}var u,O;return((u=this.data)==null?0:u.commentOptionRenderers)?_.z((O=this.data)==null?void 0:O.commentOptionRenderers[this.currentCommentOptionIndex],Pko):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var Y;return this.rendererBehavior.getSimpleString((Y=this.data)==null?void 0:Y.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var Y;return this.rendererBehavior.getSimpleString((Y=this.data)==null?void 0:Y.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(G=_.z((Y=this.data)==null?void 0:Y.commentDialog,_.L3_))==null?void 0:G.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(G=_.z((Y=this.data)==null?void 0:Y.commentDialog,_.L3_))==null?void 0:G.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(G=_.z((Y=this.data)==null?void 0:Y.commentDialog,_.L3_))==null?void 0:G.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=(G=_.z((Y=this.data)==null?void 0:Y.commentDialog,_.L3_))==null?void 0:G.emojiPicker;if(!_.z(u,_.cw1)||!_.z(u,_.cw1).categories)return!1;Y=function(M){return M.emojiPickerCategoryRenderer?M.emojiPickerCategoryRenderer.emojiIds&&M.emojiPickerCategoryRenderer.emojiIds.length>0:M.emojiPickerUpsellCategoryRenderer?M.emojiPickerUpsellCategoryRenderer.emojis&&M.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var O,Q;return((O=_.z(u,_.cw1))==null?0:(Q=O.categories)==null?0:Q.find(Y))?!0:!1}}});
MT.prototype.onEmojiSelect=MT.prototype.onEmojiSelect;MT.prototype.dataChanged=MT.prototype.dataChanged;MT.prototype.currentCommentOptionChanged=MT.prototype.currentCommentOptionChanged;_.S([_.x(_.me),_.V("design:type",Object)],MT.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],MT.prototype,"rendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],MT.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.Ox("#content-dom-if"),_.V("design:type",_.I4)],MT.prototype,"contentDomIfEl",void 0);_.S([_.Ox("#content-no-emojis"),_.V("design:type",HTMLElement)],MT.prototype,"contentEl",void 0);_.S([_.Ox("#container"),_.V("design:type",HTMLElement)],MT.prototype,"containerEl",void 0);_.S([_.Ox("#comment-chip-container"),_.V("design:type",HTMLElement)],MT.prototype,"paidCommentChipContainerEl",void 0);_.S([_.Ox("#text-input"),_.V("design:type",HTMLElement)],MT.prototype,"editableTextEl",void 0);
_.S([_.Ox("#emoji-button"),_.V("design:type",HTMLElement)],MT.prototype,"emojiButtonEl",void 0);_.S([_.Ox("#emoji-picker > yt-emoji-picker-renderer"),_.V("design:type",Object)],MT.prototype,"emojiPickerEl",void 0);_.S([_.Ox("#text-input > ytd-comment-input"),_.V("design:type",Object)],MT.prototype,"ytdCommentInputEl",void 0);_.S([_.R(),_.V("design:type",Object)],MT.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],MT.prototype,"currentCommentOptionIndex",void 0);
_.S([_.R({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:fsw}),_.V("design:type",Object)],MT.prototype,"superThanksSelectedTierEntity",void 0);_.S([_.R(),_.V("design:type",Object)],MT.prototype,"isEmojiPickerDisplayed",void 0);_.S([_.R(),_.V("design:type",Object)],MT.prototype,"emojiManager",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],MT.prototype,"isUgcEmpty",void 0);
_.S([_.GO("currentCommentOption"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MT.prototype,"currentCommentOptionChanged",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MT.prototype,"dataChanged",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],MT.prototype,"isEmojiYtdCommentInputEnabled",null);
_.S([_.f("data.title"),_.V("design:type",Object),_.V("design:paramtypes",[])],MT.prototype,"title",null);_.S([_.f("data.authorText"),_.V("design:type",Object),_.V("design:paramtypes",[])],MT.prototype,"channelName",null);_.S([_.f("data.commentOptionRenderers","currentCommentOption"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],MT.prototype,"shouldShowPaidCommentChipRenderer",null);
_.S([_.f("data.commentOptionRenderers","currentCommentOption"),_.V("design:type",Object),_.V("design:paramtypes",[])],MT.prototype,"paidCommentChipRenderer",null);_.S([_.f("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],MT.prototype,"currentCommentOption",null);
_.S([_.f("data.defaultCommentText","superThanksSelectedTierEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],MT.prototype,"commentText",null);_.S([_.f("data.placeholderText"),_.V("design:type",Object),_.V("design:paramtypes",[])],MT.prototype,"placeholderText",null);_.S([_.f("data.commentDialog.commentDialogRenderer.editableText"),_.V("design:type",Object),_.V("design:paramtypes",[])],MT.prototype,"editableText",null);
_.S([_.f("data.commentDialog.commentDialogRenderer.emojiButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],MT.prototype,"emojiButton",null);_.S([_.f("data.commentDialog.commentDialogRenderer.emojiPicker"),_.V("design:type",Object),_.V("design:paramtypes",[])],MT.prototype,"emojiPicker",null);
_.S([_.f("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],MT.prototype,"isEmojiButtonDisplayed",null);_.S([_.Yo("yt-emoji-select"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],MT.prototype,"onEmojiSelect",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],MT);
_.d(MT,"ytd-pdg-comment-preview-renderer",function(){if(ueh!==void 0)return ueh;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return ueh=Y},{mode:2});var QXg;var HN=function(){var Y=_.Z.apply(this,arguments)||this;Y.selected=!1;return Y};
_.m(HN,_.Z);_.H=HN.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&&(_.Bm(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.cm(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.nB(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.nB(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(){_.$s(this.hostElement,"tap");this.onClick()};
_.H.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
HN.prototype.onClick=HN.prototype.onClick;HN.prototype.selectedChanged=HN.prototype.selectedChanged;HN.prototype.dataChanged=HN.prototype.dataChanged;_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],HN.prototype,"componentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.Gp),_.V("design:type",Object)],HN.prototype,"ironA11yKeysBehavior",void 0);
_.S([_.x(_.R4),_.V("design:type",Object)],HN.prototype,"ironSelectableBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],HN.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],HN.prototype,"shownThumbnail",void 0);_.S([_.R(),_.V("design:type",Object)],HN.prototype,"basePriceText",void 0);_.S([_.R(),_.V("design:type",Object)],HN.prototype,"purchaseCommand",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],HN.prototype,"selected",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HN.prototype,"dataChanged",null);_.S([_.GO("selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HN.prototype,"selectedChanged",null);_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HN.prototype,"onClick",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],HN);
_.d(HN,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(QXg!==void 0)return QXg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return QXg=Y},{mode:1});var EZ=function(){var Y=_.Z.apply(this,arguments)||this;Y.selectedItemIndex=0;Y.buyButtonDisabled=!1;return Y};
_.m(EZ,_.Z);_.H=EZ.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 Y;var G=(Y=_.z(this.data.colorSlider,XiB))==null?void 0:Y.notches[this.selectedItemIndex].purchaseCommand}else{var u;G=(u=_.z(this.data.selectableItemButtons[this.selectedItemIndex],k_B))==null?void 0:u.purchaseCommand}if(G){Y=_.z(G,_.MYl);Y.productData||(Y.productData={});var O;Y.productData={pdgData:{commentMessageText:(O=this.commentPreviewRenderer)==null?void 0:O.getUserGeneratedCommentText()}};
_.$s(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(G)}}};
_.H.dataChanged=function(){if(this.data){_.Ai.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.CV1(_.Ai,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Ai.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var Y;this.buyButtonDisabled=!((Y=_.z(this.data.commentPreview,ITx))==null||!Y.placeholderText);this.updatePriceSelectorStatus();var G;if((G=this.data)==null?0:G.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;Y=[];this.data.preloadImages&&(Y=this.data.preloadImages);
Y=Y.map(function(u){return _.dH(u.thumbnails,1920)});
Y=_.E(Y);for(G=Y.next();!G.done;G=Y.next())(G=G.value)&&_.OCA(G).thenCatch(function(){_.R0(Error("mm"))})}};
_.H.superThanksSelectedTierEntityChanged=function(){var Y;(this==null?void 0:(Y=this.superThanksSelectedTierEntity)==null?void 0:Y.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.H.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.H.updatePriceSelectorStatus=function(){this.isColorSlider?(_.l0(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.l0(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.l0(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.l0(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.H.closeBuyFlow=function(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.H.onUserGeneratedContentChanged=function(){var Y;this.buyButtonDisabled=!((Y=this.commentPreviewRenderer)==null?0:Y.getUserGeneratedCommentText())};
_.H.updateSelectedItemIndexFromBinding=function(Y){this.selectedItemIndex=Y.detail.value};
_.Uk.Object.defineProperties(EZ.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.disclaimerText)}}});
EZ.prototype.onUserGeneratedContentChanged=EZ.prototype.onUserGeneratedContentChanged;EZ.prototype.closeBuyFlow=EZ.prototype.closeBuyFlow;EZ.prototype.selectedItemIndexChanged=EZ.prototype.selectedItemIndexChanged;EZ.prototype.superThanksSelectedTierEntityChanged=EZ.prototype.superThanksSelectedTierEntityChanged;EZ.prototype.dataChanged=EZ.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],EZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],EZ.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],EZ.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],EZ.prototype,"selectedItemIndex",void 0);_.S([_.R(),_.V("design:type",Boolean)],EZ.prototype,"isColorSlider",void 0);
_.S([_.R(),_.V("design:type",Object)],EZ.prototype,"buyButtonDisabled",void 0);_.S([_.R({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:fsw}),_.V("design:type",Object)],EZ.prototype,"superThanksSelectedTierEntity",void 0);_.S([_.Ox("ytd-pdg-comment-preview-renderer"),_.V("design:type",Object)],EZ.prototype,"commentPreviewRenderer",void 0);_.S([_.x(_.me),_.V("design:type",Object)],EZ.prototype,"ytdReduxBehavior",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EZ.prototype,"dataChanged",null);_.S([_.GO("superThanksSelectedTierEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EZ.prototype,"superThanksSelectedTierEntityChanged",null);_.S([_.GO("selectedItemIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EZ.prototype,"selectedItemIndexChanged",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EZ.prototype,"closeBuyFlow",null);_.S([_.Yo("ytd-pdg-user-generated-comment-changed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EZ.prototype,"onUserGeneratedContentChanged",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],EZ.prototype,"isDisclaimerTextShown",null);
_.S([_.pD({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],EZ);
_.d(EZ,"yt-super-vod-buy-flow-content-renderer",function(){if(Y4h!==void 0)return Y4h;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Y4h=Y},{mode:1});var MR5;var t_=function(){var Y=_.Z.apply(this,arguments)||this;Y.lottieAnimationRef={};return Y};
_.m(t_,_.Z);_.H=t_.prototype;_.H.created=function(){_.mA.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Jh(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&&_.$s(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.H.detached=function(){this.autoCloseJobId&&_.AN.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Jh(this,this.onPopupIronOverlayOpened))};
_.H.dataChanged=function(){var Y=this;this.data&&this.data.autoCloseDelay&&(_.qZ(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.jk(_.AN,function(){Y.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.cm(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.H.onDOMLoadedLottie=function(){var Y=this,G,u,O=Number((G=this.data)==null?void 0:(u=G.autoCloseDelay)==null?void 0:u.seconds)||0;this.fadeOutJobId=_.jk(_.AN,function(){Y.lottiePlayerEl.classList.add("fadeout")},(O-.25)*1E3);
this.autoCloseJobId=_.jk(_.AN,function(){Y.closePopup()},O*1E3)};
_.H.openPopup=function(){this.ironOverlayBehavior.open()};
_.H.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.qZ(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.UK(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.sH().resolve(_.rH).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.AN.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.AN.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.H.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var Y,G;(Y=this.lottieAnimationRef)==null||(G=Y.lottieEl)==null||G.destroy();Y=this.data.lottie;var u,O;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:Y.url+"_"+Math.random(),path:Y.url,autoplay:!0,loop:(O=(u=Y.settings)==null?void 0:u.loop)!=null?O:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Uk.Object.defineProperties(t_.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var Y,G;return!!((Y=this.data)==null?0:(G=Y.lottie)==null?0:G.url)}}});
t_.prototype.maybeInitializeLottie=t_.prototype.maybeInitializeLottie;t_.prototype.dataChanged=t_.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],t_.prototype,"rendererBehavior",void 0);_.S([_.x(_.CM),_.V("design:type",Object)],t_.prototype,"ironOverlayBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],t_.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],t_.prototype,"lottiePlayerProps",void 0);
_.S([_.R(),_.V("design:type",Object)],t_.prototype,"lottieAnimationRef",void 0);_.S([_.Ox("ytd-lottie-player"),_.V("design:type",HTMLElement)],t_.prototype,"lottiePlayerEl",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],t_.prototype,"dataChanged",null);_.S([_.f("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],t_.prototype,"hasLottieAnimation",null);
_.S([_.GO("data.lottie.url"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],t_.prototype,"maybeInitializeLottie",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],t_);
_.d(t_,"ytd-desktop-image-overlay-renderer",function(){if(MR5!==void 0)return MR5;var Y=document.createElement("template");_.r(Y,'\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="lottie-player style-scope ytd-desktop-image-overlay-renderer" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]">\n</ytd-lottie-player></div>\n');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return MR5=Y},{mode:1});var HTs;var Kn=function(){return _.Z.apply(this,arguments)||this};
_.m(Kn,_.Z);_.H=Kn.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",_.Jh(this,this.closePopup))};
_.H.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Jh(this,this.closePopup))};
_.H.dataChanged=function(){_.sK(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.z(this.data.header,gix)&&(this.hasBackgroundBanner=!!_.z(this.data.header,gix).backgroundBanner)};
_.H.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Jh(this,this.closePopup))};
_.H.closePopup=function(){this.data&&this.data.onCloseCommand&&_.c$(this.hostElement,[this.data.onCloseCommand])};
Kn.prototype.handleBuyflowSelectionSubmitted=Kn.prototype.handleBuyflowSelectionSubmitted;Kn.prototype.dataChanged=Kn.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Kn.prototype,"data",void 0);
_.S([_.R({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],Kn.prototype,"hasBackgroundBanner",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Kn.prototype,"dataChanged",null);_.S([_.Yo("yt-pdg-buy-flow-selection-submitted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Kn.prototype,"handleBuyflowSelectionSubmitted",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Kn);
_.d(Kn,"ytd-pdg-buy-flow-renderer",function(){if(HTs!==void 0)return HTs;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return HTs=Y},{mode:1});var Ek5;var aC=function(){var Y=_.Z.apply(this,arguments)||this;Y.isOpen=!1;Y.isPlaylistCreated=!1;return Y};
_.m(aC,_.Z);_.H=aC.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();_.$s(this.hostElement,"yt-refit")};
_.H.onCreateTap=function(){var Y=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.c$(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(G,u){if(!_.F("killswitch_ep_in_create_playlist_response")&&(u==null?0:u.actions))for(G=_.E(u.actions),u=G.next();!u.done;u=G.next())u=u.value,_.z(u,_.mJ)&&Y.ytComponentBehavior.resolveCommand(u)}}]),this.isPlaylistCreated=!0)};
_.H.onKeydown=function(Y){if(Y.keyCode===13)this.onCreateTap()};
_.H.onServiceRequestCompleted=function(Y){Y.stopPropagation();_.qZ(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.H.computePrivacyBadge=function(Y){return Y?[{metadataBadgeRenderer:Y}]:[]};
aC.prototype.onServiceRequestCompleted=aC.prototype.onServiceRequestCompleted;aC.prototype.onKeydown=aC.prototype.onKeydown;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],aC.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],aC.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],aC.prototype,"isOpen",void 0);
_.S([_.R(),_.V("design:type",Object)],aC.prototype,"isPlaylistCreated",void 0);_.S([_.R({value:{REQUIRED_LABEL:_.Q6("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Q6("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.V("design:type",Object)],aC.prototype,"addToStrings",void 0);_.S([_.R({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.V("design:type",Array)],aC.prototype,"privacyBadge",void 0);
_.S([_.Ox("#privacy-input"),_.V("design:type",Object)],aC.prototype,"privacyInput",void 0);_.S([_.Ox("#name-input"),_.V("design:type",Object)],aC.prototype,"nameInput",void 0);_.S([_.Yo("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],aC.prototype,"onKeydown",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],aC.prototype,"onServiceRequestCompleted",null);
_.S([_.pD({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],aC);
_.d(aC,"ytd-add-to-playlist-create-renderer",function(){if(Ek5!==void 0)return Ek5;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Ek5=Y},{mode:1});var tRn;var KEo;var T4=function(){var Y=_.Z.apply(this,arguments)||this;Y.transferState="TRANSFER_STATE_UNKNOWN";return Y};
_.m(T4,_.Z);T4.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
T4.prototype.onCheckboxChange=function(Y){var G=this;this.data&&_.y4(this,"yt-playlist-checkbox-changed",function(){var u=_.Zb(Y).checked?G.data.addToPlaylistServiceEndpoint:G.data.removeFromPlaylistServiceEndpoint;u&&_.sH().resolve(_.rH).resolveCommand(u,{form:{element:G.hostElement}});_.F("dl_playlist_killswitch")||G.transferState!=="TRANSFER_STATE_UNKNOWN"&&G.transferState!=="TRANSFER_STATE_FAILED"&&G.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:G.data.playlistId,action:"ACTION_SYNC"}})},
100)};
T4.prototype.computeIconType=function(Y){return Y?"yt-icons:"+Y.toLowerCase():null};
T4.prototype.dataChanged=T4.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],T4.prototype,"data",void 0);_.S([_.x(_.me),_.V("design:type",Object)],T4.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],T4.prototype,"ytComponentBehavior",void 0);_.S([_.Ox("#checkbox"),_.V("design:type",HTMLInputElement)],T4.prototype,"checkbox",void 0);
_.S([_.R({selector:_.WC,selectorArgs:["data.playlistId"]}),_.V("design:type",String)],T4.prototype,"transferState",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T4.prototype,"dataChanged",null);_.S([_.pD({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],T4);
_.d(T4,"ytd-playlist-add-to-option-renderer",function(){if(KEo!==void 0)return KEo;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return KEo=Y},{mode:1});var aVa=_.D(function(Y){var G=Y.data;return _.T("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.T("div",null,_.T(_.eO,{text:function(){return G().title}})),_.T(_.X,{cond:function(){return G().subtitle},
then:function(u){return _.T("div",{class:"ytdMenuTitleRendererSubtitle"},_.T(_.eO,{text:u}))}}))},"kl");
aVa.idomCompat=!0;_.hR(aVa,"ytd-menu-title-renderer",{props:{data:_.AC}});var Ln=function(){var Y=_.Z.apply(this,arguments)||this;Y.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Q6("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};Y.closeButtonAriaLabel=_.Q6("SBOX_INAPPROPRIATE_CANCEL");Y.dialog=_.F("desktop_add_to_playlist_renderer_dialog_popup");return Y};
_.m(Ln,_.Z);_.H=Ln.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(){_.$3(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.H.onPopupClosed=function(){_.$3(this.playlists,"scrollable",!1)};
_.H.computeAriaLabel=function(){var Y;if(this==null?0:(Y=this.data)==null?0:Y.actions){Y=_.E(this.data.actions);for(var G=Y.next();!G.done;G=Y.next())if(G=G.value,G.menuTitleRenderer)return _.Ri(G.menuTitleRenderer.title)}};
_.H.onTapClose=function(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Uk.Object.defineProperties(Ln.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;if(this==null?0:(Y=this.data)==null?0:Y.actions){Y=_.E(this.data.actions);for(var G=Y.next();!G.done;G=Y.next())if(G=G.value,G.menuTitleRenderer)return G.menuTitleRenderer}return!1}}});
Ln.prototype.onPopupClosed=Ln.prototype.onPopupClosed;Ln.prototype.onPopupOpened=Ln.prototype.onPopupOpened;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],Ln.prototype,"ytEventForwardingBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Ln.prototype,"ytRendererStamperBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],Ln.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],Ln.prototype,"addToStrings",void 0);_.S([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.V("design:type",String)],Ln.prototype,"ariaLabel",void 0);_.S([_.R(),_.V("design:type",String)],Ln.prototype,"closeButtonAriaLabel",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ln.prototype,"dialog",void 0);
_.S([_.Ox("#playlists"),_.V("design:type",HTMLElement)],Ln.prototype,"playlists",void 0);_.S([_.Ox("ytd-add-to-playlist-create-renderer"),_.V("design:type",Object)],Ln.prototype,"createRenderer",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ln.prototype,"menuTitleRenderer",null);_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ln.prototype,"onPopupOpened",null);
_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ln.prototype,"onPopupClosed",null);_.S([_.pD({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Ln);
_.d(Ln,"ytd-add-to-playlist-renderer",function(){if(tRn!==void 0)return tRn;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return tRn=Y},{mode:1});var TR5;var gi=function(){var Y=_.Z.apply(this,arguments)||this;Y.isPlaylistEditComplete=!1;Y.isCollabEngagementDisabled=!1;Y.closeButtonAriaLabel=_.Q6("SBOX_INAPPROPRIATE_CANCEL");Y.saveButton={title:_.Q6("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"};Y.onValueChanged=function(){Y.updateSaveButtonState();Y.computeCollabEngagementDisabled()};
return Y};
_.m(gi,_.Z);_.H=gi.prototype;_.H.attached=function(){this.JSC$22729_scroller&&(this.JSC$22729_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22729_scroller.attached&&typeof this.JSC$22729_scroller.attached==="function"&&this.JSC$22729_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(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.H.onClickSave=function(){var Y=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var G=[];this.nameInput.value!==null&&G.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&G.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var u=Number(this.privacyInput.value);isNaN(u)||G.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:u})}this.votingInput.value!==null&&(u=this.votingInput.value)&&G.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:u});if(G.length>0){var O;_.z((O=this.data)==null?void 0:O.updateSettingsEndpoint,_.zG).actions=G;var Q;if((Q=this.data)==null?0:Q.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){Y.close()}}}),this.isPlaylistEditComplete=!0}}};
_.H.computePrivacyBadge=function(Y){return Y?[{metadataBadgeRenderer:Y}]:[]};
_.H.computeEditorData=function(Y){var G,u;return Y==null?void 0:(G=Y.sections)==null?void 0:(u=G[0])==null?void 0:u.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 Y,G,u,O=(Y=this.data)==null?void 0:(G=Y.sections)==null?void 0:(u=G[0])==null?void 0:u.playlistSettingsEditorCasualSectionRenderer;return _.Ri(O==null?void 0:O.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 Y,G,u;return(((Y=this.editorData)==null?void 0:(G=Y.name)==null?void 0:(u=G.textInputFormFieldRenderer)==null?void 0:u.value)||"")!==(this.nameInput.value||"")};
_.H.isDescriptionChanged=function(){var Y,G,u;return(((Y=this.editorData)==null?void 0:(G=Y.description)==null?void 0:(u=G.textInputFormFieldRenderer)==null?void 0:u.value)||"")!==(this.descriptionInput.value||"")};
_.H.isPrivacyChanged=function(){var Y,G,u,O,Q,M,t,K;return((t=(Y=this.editorData)==null?void 0:(G=Y.privacy)==null?void 0:(u=G.dropdownFormFieldRenderer)==null?void 0:(O=u.dropdown)==null?void 0:(Q=O.dropdownRenderer)==null?void 0:(M=Q.entries)==null?void 0:M.find(function(L){var g;return L==null?void 0:(g=L.privacyDropdownItemRenderer)==null?void 0:g.isSelected}))==null?void 0:(K=t.privacyDropdownItemRenderer)==null?void 0:K.int32Value)!==this.privacyInput.value};
_.H.isVotingChanged=function(){var Y,G,u,O,Q,M,t,K;return((t=(Y=this.editorData)==null?void 0:(G=Y.voting)==null?void 0:(u=G.dropdownFormFieldRenderer)==null?void 0:(O=u.dropdown)==null?void 0:(Q=O.dropdownRenderer)==null?void 0:(M=Q.entries)==null?void 0:M.find(function(L){var g;return L==null?void 0:(g=L.privacyDropdownItemRenderer)==null?void 0:g.isSelected}))==null?void 0:(K=t.privacyDropdownItemRenderer)==null?void 0:K.int32Value)!==this.votingInput.value};
gi.prototype.onPopupClosed=gi.prototype.onPopupClosed;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],gi.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],gi.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],gi.prototype,"ytEventForwardingBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],gi.prototype,"ytRendererStamperBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],gi.prototype,"data",void 0);_.S([_.R({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.V("design:type",Array)],gi.prototype,"privacyBadge",void 0);_.S([_.R({computed:"computeEditorData(data)"}),_.V("design:type",Object)],gi.prototype,"editorData",void 0);_.S([_.R(),_.V("design:type",Object)],gi.prototype,"isPlaylistEditComplete",void 0);_.S([_.R(),_.V("design:type",Object)],gi.prototype,"isCollabEngagementDisabled",void 0);
_.S([_.R({value:{REQUIRED_LABEL:_.Q6("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Q6("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.V("design:type",Object)],gi.prototype,"addToStrings",void 0);_.S([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.V("design:type",String)],gi.prototype,"ariaLabel",void 0);_.S([_.R(),_.V("design:type",String)],gi.prototype,"closeButtonAriaLabel",void 0);
_.S([_.R(),_.V("design:type",Object)],gi.prototype,"saveButton",void 0);_.S([_.Ox("#name-input"),_.V("design:type",Object)],gi.prototype,"nameInput",void 0);_.S([_.Ox("#description-input"),_.V("design:type",Object)],gi.prototype,"descriptionInput",void 0);_.S([_.Ox("#privacy-input"),_.V("design:type",Object)],gi.prototype,"privacyInput",void 0);_.S([_.Ox("#voting-input"),_.V("design:type",Object)],gi.prototype,"votingInput",void 0);
_.S([_.Ox("#scroller"),_.V("design:type",Object)],gi.prototype,"JSC$22729_scroller",void 0);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gi.prototype,"onPopupClosed",null);_.S([_.R(),_.V("design:type",Object)],gi.prototype,"onValueChanged",void 0);_.S([_.pD({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],gi);
_.d(gi,"ytd-playlist-settings-editor-renderer",function(){if(TR5===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);TR5=Y}Y=TR5;return Y},{mode:1});var LET;_.Px("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var Xc=function(){return _.Z.apply(this,arguments)||this};
_.m(Xc,_.Z);_.H=Xc.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 Y=this.get("data.nextButton.buttonRenderer.navigationEndpoint");Y&&(this.nextNavigationEndpoint=Y,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 Y={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",Y)}}};
_.H.onPopupOpened=function(Y){Y.detail!==this&&Y.detail!==this.hostElement||!_.F("enable_premium_voluntary_pause")||_.qZ(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.H.onNextButtonTap=function(){var Y=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);Y&&this.ytdOpenPopupBehavior.openPopup(Y)};
_.H.updateSelectedResponseIndexFromBinding=function(Y){this.selectedResponseIndex=Y.detail.value};
Xc.prototype.onPopupOpened=Xc.prototype.onPopupOpened;Xc.prototype.onSelectedResponseIndexChange=Xc.prototype.onSelectedResponseIndexChange;Xc.prototype.dataChanged=Xc.prototype.dataChanged;_.S([_.x(_.SZ),_.V("design:type",Object)],Xc.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Xc.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],Xc.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Number)],Xc.prototype,"selectedResponseIndex",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xc.prototype,"dataChanged",null);_.S([_.GO("selectedResponseIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xc.prototype,"onSelectedResponseIndexChange",null);
_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Xc.prototype,"onPopupOpened",null);_.S([_.pD({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],Xc);
_.d(Xc,"ytd-red-cancel-survey-renderer",function(){if(LET!==void 0)return LET;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return LET=Y},{mode:1});var gka;var PN=function(){var Y=_.Z.apply(this,arguments)||this;Y.closeButtonAriaLabel=_.Q6("SBOX_INAPPROPRIATE_CANCEL");return Y};
_.m(PN,_.Z);PN.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
PN.prototype.onClickClose=function(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],PN.prototype,"rendererStamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],PN.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],PN.prototype,"closeButtonAriaLabel",void 0);_.S([_.pD({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],PN);
_.d(PN,"ytd-search-filter-options-dialog-renderer",function(){if(gka!==void 0)return gka;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return gka=Y},{mode:1});var X1p;var XGS=function(){return function(Y){Y=Y.availabilityType;return Y===void 0||Y==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||Y==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var IC=function(){var Y=_.Z.apply(this,arguments)||this;Y.qualityOptions=[];Y.upsellOptions=[];Y.showUpsellSection=!1;Y.rememberSettingsChecked=!1;return Y};
_.m(IC,_.Z);_.H=IC.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)_.qZ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var Y=[],G=[];this.showUpsellSection=!1;for(var u=_.E(this.formats),O=u.next();!O.done;O=u.next())(O=O.value)&&(O.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?G.push(O):Y.push(O));Y.length&&(this.qualityOptions=gSw(Y));G.length&&(this.showUpsellSection=!0,this.upsellOptions=gSw(G))}};
_.H.updateRememberString=function(){if(this.downloadQualityPickerEntity)var Y=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var G;Y=(G=this.data)==null?void 0:G.premiumRememberSettingString}else{var u;Y=(u=this.data)==null?void 0:u.rememberSettingString}Y=Y===void 0?_.Q6("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):Y;this.rememberSettingsCheckboxRenderer={title:_.Sy(Y),disabled:!1}};
_.H.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Uk.Object.defineProperties(IC.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var Y;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(Y=this.data)==null?void 0:Y.qualityFormats}}});
IC.prototype.updateRememberString=IC.prototype.updateRememberString;IC.prototype.updateQualityOptions=IC.prototype.updateQualityOptions;IC.prototype.dataChanged=IC.prototype.dataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],IC.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],IC.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],IC.prototype,"data",void 0);
_.S([_.x(_.me),_.V("design:type",Object)],IC.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Boolean)],IC.prototype,"selectedUpsellQuality",void 0);_.S([_.R({computed:"computeIcon_(data.premiumIcon)",value:""}),_.V("design:type",String)],IC.prototype,"premiumIcon",void 0);_.S([_.R({selector:ZXg,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.V("design:type",Object)],IC.prototype,"downloadQualityPickerEntity",void 0);
_.S([_.R(),_.V("design:type",Array)],IC.prototype,"qualityOptions",void 0);_.S([_.R(),_.V("design:type",Array)],IC.prototype,"upsellOptions",void 0);_.S([_.R(),_.V("design:type",Object)],IC.prototype,"showUpsellSection",void 0);_.S([_.R(),_.V("design:type",Object)],IC.prototype,"rememberSettingsCheckboxRenderer",void 0);_.S([_.Ox("#remember-settings"),_.V("design:type",HTMLInputElement)],IC.prototype,"rememberSettingsCheckbox",void 0);
_.S([_.R(),_.V("design:type",Object)],IC.prototype,"rememberSettingsChecked",void 0);_.S([_.R(),_.V("design:type",Function)],IC.prototype,"onRememberSettingsCheckedChanged",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IC.prototype,"dataChanged",null);_.S([_.GO("downloadQualityPickerEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IC.prototype,"updateQualityOptions",null);
_.S([_.GO("selectedUpsellQuality"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IC.prototype,"updateRememberString",null);_.S([_.pD({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],IC);
_.d(IC,"ytd-download-quality-selector-content",function(){if(X1p!==void 0)return X1p;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return X1p=Y},{mode:1});var P_z;var kX=function(){var Y=_.Z.apply(this,arguments)||this;Y.selectedUpsellQuality=!1;Y.qualityOptions=[];Y.useUpsellDismissAlternate=_.F("use_not_now_dl_upsell_dismiss_cta");Y.shouldShowAlternateUpsellDimiss=!1;Y.rememberSettings=!1;Y.rememberSettingsChecked=!1;Y.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};Y.rememberSettingsCheckedChanged=function(G){Y.rememberSettingsChecked=G};
return Y};
_.m(kX,_.Z);_.H=kX.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:_.Sy(_.Q6("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Sy(_.Q6("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Sy(_.Q6("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Sy(_.Q6("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.H.updateQualityOptions=function(){this.formats===void 0?_.qZ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=gSw(this.formats)};
_.H.onQualityOptionsSelect=function(Y){if(this.qualityOptions&&Y){Y!==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 G=_.E(this.qualityOptions.entries()),u=G.next();!u.done;u=
G.next()){u=_.E(u.value);var O=u.next().value;u=u.next().value;var Q=void 0,M=void 0;if(((Q=u)==null?void 0:(M=Q.settingsRadioOptionRenderer)==null?void 0:M.id)===Y){this.selectedQualityIndex=O;Y=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((Y=this.formats[O])==null?void 0:Y.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.H.onClickSubmit=function(){var Y;if((Y=this.downloadButtonRenderer)==null||!Y.isDisabled){var G,u;Y=(u=(G=this.data)==null?void 0:G.onSubmitEndpoint)!=null?u:{};var O,Q;if(this.formats&&(((O=_.z(Y,_.Gi))==null?0:O.videoId)||((Q=_.z(Y,_.u5))==null?0:Q.playlistId))){var M,t,K,L,g,P;G={formatType:(L=(M=this.formats)==null?void 0:(t=M[(K=this.selectedQualityIndex)!=null?K:0])==null?void 0:t.format)!=null?L:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(g=this.getOfflineEndpoint(Y))==null?void 0:(P=g.actionParams)==null?void 0:P.settingsAction)};this.getOfflineEndpoint(Y).actionParams=G;this.ytComponentBehavior.resolveCommand(Y)}_.qZ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.H.onClickUpsell=function(){var Y;if((Y=this.upsellButtonRenderer)==null||!Y.isDisabled){var G,u;Y=(u=(G=this.data)==null?void 0:G.upsellEndpoint)!=null?u:{};this.ytComponentBehavior.resolveCommand(Y);_.qZ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);G="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var O,Q,M,t;G=(t=(O=this.formats)==null?void 0:(Q=O[(M=this.selectedQualityIndex)!=null?M:0])==null?void 0:Q.format)!=null?t:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:G}})}};
_.H.onClickClose=function(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.H.getOfflineSettingsAction=function(Y,G){return Y?G===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":G:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.H.getOfflineEndpoint=function(Y){return _.z(Y,_.Gi)?_.z(Y,_.Gi):_.z(Y,_.u5)};
_.Uk.Object.defineProperties(kX.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Sy(_.Q6("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var Y;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(Y=this.data)==null?void 0:Y.qualityFormats}}});
kX.prototype.updateQualityOptions=kX.prototype.updateQualityOptions;kX.prototype.dataChanged=kX.prototype.dataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],kX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],kX.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],kX.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],kX.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Number)],kX.prototype,"selectedQualityIndex",void 0);_.S([_.R(),_.V("design:type",Object)],kX.prototype,"selectedUpsellQuality",void 0);_.S([_.x(_.me),_.V("design:type",Object)],kX.prototype,"ytdReduxBehavior",void 0);
_.S([_.R({selector:ZXg,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.V("design:type",Object)],kX.prototype,"downloadQualityPickerEntity",void 0);_.S([_.R(),_.V("design:type",Array)],kX.prototype,"qualityOptions",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],kX.prototype,"useUpsellDismissAlternate",void 0);_.S([_.R(),_.V("design:type",Object)],kX.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.S([_.R(),_.V("design:type",Object)],kX.prototype,"downloadButtonRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],kX.prototype,"upsellButtonRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],kX.prototype,"cancelButtonRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],kX.prototype,"upsellCancelButtonRenderer",void 0);_.S([_.R(),_.V("design:type",Object)],kX.prototype,"rememberSettings",void 0);_.S([_.R(),_.V("design:type",Object)],kX.prototype,"rememberSettingsChecked",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kX.prototype,"dataChanged",null);_.S([_.GO("downloadQualityPickerEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kX.prototype,"updateQualityOptions",null);_.S([_.pD({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],kX);
_.d(kX,"ytd-download-quality-selector-renderer",function(){if(P_z!==void 0)return P_z;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return P_z=Y},{mode:1});var IVT;var nn=function(){return _.Z.apply(this,arguments)||this};
_.m(nn,_.Z);nn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
nn.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"}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],nn.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],nn.prototype,"data",void 0);_.S([_.R({computed:"computeIcon_(data.infoIcon)"}),_.V("design:type",Object)],nn.prototype,"infoIcon",void 0);
_.S([_.R({computed:"computeIcon_(data.warningIcon)"}),_.V("design:type",Object)],nn.prototype,"warningIcon",void 0);_.S([_.pD({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],nn);
_.d(nn,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(IVT!==void 0)return IVT;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return IVT=Y},{mode:1});var k2T;var Fc=function(){return _.Z.apply(this,arguments)||this};
_.m(Fc,_.Z);Fc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Fc.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"}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Fc.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Fc.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Fc.prototype,"data",void 0);_.S([_.pD({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Fc);
_.d(Fc,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(k2T!==void 0)return k2T;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return k2T=Y},{mode:1});var nkT;var pn=function(){return _.Z.apply(this,arguments)||this};
_.m(pn,_.Z);pn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
pn.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"}}}}};
pn.prototype.onServiceRequestSentOrCompleted=function(Y,G){G&&G.actions&&G.actions.length>0&&_.qZ(this.hostElement,"yt-close-popup-action",[this.is])};
pn.prototype.onServiceRequestSentOrCompleted=pn.prototype.onServiceRequestSentOrCompleted;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],pn.prototype,"data",void 0);
_.S([_.Yo("yt-service-request-completed"),_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],pn.prototype,"onServiceRequestSentOrCompleted",null);_.S([_.pD({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],pn);
_.d(pn,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(nkT!==void 0)return nkT;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return nkT=Y},{mode:1});var FEs;var z4=function(){var Y=_.Z.apply(this,arguments)||this;Y.submitButtonDisabled=!0;return Y};
_.m(z4,_.Z);_.H=z4.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 Y,G,u;if(((Y=this.data)==null?void 0:(G=Y.confirmButton)==null?void 0:(u=G.buttonRenderer)==null?void 0:u.isDisabled)!==void 0){var O,Q,M;this.submitButtonDisabled=(O=this.data)==null?void 0:(Q=O.confirmButton)==null?void 0:(M=Q.buttonRenderer)==null?void 0:M.isDisabled}};
_.H.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.H.updateSubmitButtonDisabledFromBinding=function(Y){this.submitButtonDisabled=Y.detail.value};
_.H.updateSubmitButtonDisabledFromConfirmCheckbox=function(Y){this.submitButtonDisabled=!Y.detail.value};
z4.prototype.onDataChanged=z4.prototype.onDataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],z4.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],z4.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],z4.prototype,"submitButtonDisabled",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],z4.prototype,"onDataChanged",null);_.S([_.pD({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],z4);
_.d(z4,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(FEs!==void 0)return FEs;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return FEs=Y},{mode:1});var p1p;var mL=function(){return _.Z.apply(this,arguments)||this};
_.m(mL,_.Z);_.Uk.Object.defineProperties(mL.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;return((Y=this.data)==null?void 0:Y.title)+" "+((G=this.data)==null?void 0:G.metadataPrimary)+" "+((u=this.data)==null?void 0:u.metadataSecondary)}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],mL.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],mL.prototype,"data",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],mL.prototype,"ariaLabel",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],mL);
_.d(mL,"ytd-compact-product-list-item-renderer",function(){if(p1p!==void 0)return p1p;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return p1p=Y},{mode:1});var zlT;var WN=function(){return _.Z.apply(this,arguments)||this};
_.m(WN,_.Z);WN.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]]"}}}}}};
_.Uk.Object.defineProperties(WN.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],WN.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],WN.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],WN.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],WN);
_.d(WN,"ytd-compact-product-list-renderer",function(){if(zlT!==void 0)return zlT;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return zlT=Y},{mode:1});var mMz;var ri=function(){return _.Z.apply(this,arguments)||this};
_.m(ri,_.Z);_.H=ri.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 Y=this.get("data.headerImage.thumbnails");return Y?"url("+_.dH(Y,this.hostElement.clientWidth)+")":""};
_.H.onDataChanged=function(){var Y=this.getBackgroundUrl();Y&&(this.header.style.backgroundImage=Y);Y=_.FA();var G=_.nX(),u=this.get("data.trackingParams");u&&G&&Y&&_.y6(Y,G,_.Kd(u));Y=_.E(this.hostElement.querySelectorAll("yt-img-shadow"));for(G=Y.next();!G.done;G=Y.next())G.value.onShow()};
_.H.onPopupClosed=function(Y){_.Zb(Y).localName==="ytd-membership-post-cancel-renderer"&&_.qZ(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
ri.prototype.onPopupClosed=ri.prototype.onPopupClosed;ri.prototype.onDataChanged=ri.prototype.onDataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ri.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ri.prototype,"data",void 0);_.S([_.Ox("#header"),_.V("design:type",HTMLDivElement)],ri.prototype,"header",void 0);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ri.prototype,"onDataChanged",null);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ri.prototype,"onPopupClosed",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],ri);
_.d(ri,"ytd-membership-post-cancel-renderer",function(){if(mMz!==void 0)return mMz;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return mMz=Y},{mode:1});var WEp;var xX=function(){return _.Z.apply(this,arguments)||this};
_.m(xX,_.Z);xX.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
xX.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],xX.prototype,"data",void 0);_.S([_.Ox("ytd-feedback-survey-renderer"),_.V("design:type",Object)],xX.prototype,"feedbackSurveyRenderer",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],xX);
_.d(xX,"ytd-sponsorship-confirm-cancel-content",function(){if(WEp!==void 0)return WEp;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return WEp=Y},{mode:1});var rUs;var fn=function(){var Y=_.Z.apply(this,arguments)||this;Y.maybeSubmitFeedback=function(){Y.content&&Y.content.maybeSubmitFeedback()};
return Y};
_.m(fn,_.Z);_.H=fn.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(Y,G){G===this&&this.data&&this.data.onOpenCommands&&_.UK(this.hostElement,this.data.onOpenCommands,this.hostElement);_.qZ(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.H.onYtPopupClosed=function(Y,G){(G&&G.canceled===!0||G&&G.canceled===!1&&G.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.UK(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.H.onYtServiceRequestCompleted=function(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.H.onYtServiceRequestError=function(Y){_.Rd(this.hostElement,Y.detail.error.message)};
_.H.onDataChanged=function(){if(this.isAttached){var Y=this.backgroundUrl;Y&&(_.l0(this.hostElement).querySelector("#header").style.backgroundImage=Y)}};
_.Uk.Object.defineProperties(fn.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return Y?"url("+_.dH(Y,this.hostElement.clientWidth)+")":""}}});
fn.prototype.onDataChanged=fn.prototype.onDataChanged;fn.prototype.onYtServiceRequestError=fn.prototype.onYtServiceRequestError;fn.prototype.onYtServiceRequestCompleted=fn.prototype.onYtServiceRequestCompleted;fn.prototype.onYtPopupClosed=fn.prototype.onYtPopupClosed;fn.prototype.onYtPopupOpened=fn.prototype.onYtPopupOpened;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],fn.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],fn.prototype,"data",void 0);_.S([_.R({value:function(){return _.Q6("SBOX_INAPPROPRIATE_CANCEL")}}),
_.V("design:type",String)],fn.prototype,"closeButtonAriaLabel",void 0);_.S([_.Ox("#scrollable"),_.V("design:type",Object)],fn.prototype,"scrollable",void 0);_.S([_.Ox("ytd-sponsorship-confirm-cancel-content"),_.V("design:type",Object)],fn.prototype,"content",void 0);_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],fn.prototype,"onYtPopupOpened",null);
_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],fn.prototype,"onYtPopupClosed",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],fn.prototype,"onYtServiceRequestCompleted",null);
_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],fn.prototype,"onYtServiceRequestError",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fn.prototype,"onDataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],fn);
_.d(fn,"ytd-sponsorship-confirm-cancel-renderer",function(){if(rUs!==void 0)return rUs;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return rUs=Y},{mode:2});var xMp;var Cn=function(){return _.Z.apply(this,arguments)||this};
_.m(Cn,_.Z);Cn.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],Cn.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Cn.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Cn);
_.d(Cn,"ytd-sponsorships-celebration-content",function(){if(xMp!==void 0)return xMp;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return xMp=
Y},{mode:1});var fVa;var C_q=_.hV(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),yE=function(){var Y=_.Z.apply(this,arguments)||this;Y.scriptsAppended=!1;Y.useFullWidthPrimaryButton=!1;Y.buttonOverrides={type:"tonal",style:"overlay-dark"};return Y};
_.m(yE,_.Z);_.H=yE.prototype;_.H.dataChanged=function(){var Y;this.useFullWidthPrimaryButton=!((Y=this.data)==null||!Y.useFullWidthPrimaryButton)};
_.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:_.F("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-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 Y;(Y=this.header)==null||Y.style.setProperty("background-color",this.backgroundColor);if(Y=this.headerImageUrl){var G;(G=this.header)==null||G.style.setProperty("background-image",Y)}G=_.FA(4);Y=_.nX(4);var u=this.get("data.trackingParams");if(u&&Y&&G){var O=_.Kd(u);_.y6(G,Y,O);_.F("combine_ve_grafts")?_.M4().graftServerVe(u,Y,4):_.y6(G,Y,O)}G=_.E(this.hostElement.querySelectorAll("yt-img-shadow"));for(Y=G.next();!Y.done;Y=G.next())Y.value.onShow();if(G=this.get("data.gtmId"))_.KI(G,
_.DE("GL","")),this.setupConversionTracking()};
_.H.setupConversionTracking=function(){if(!this.scriptsAppended){var Y=document.createElement("script");_.XH(Y,_.Lb(C_q.join("")));document.head.appendChild(Y);Y=document.createElement("noscript");Y.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(Y);this.scriptsAppended=!0}};
_.H.onPopupClosed=function(Y){if(_.Zb(Y).localName==="ytd-sponsorships-celebration-renderer"){_.qZ(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var G;this.data&&((G=this.data)==null?0:G.dismissCommand)&&_.Jj.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Uk.Object.defineProperties(yE.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.nB(Y)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return Y?"url("+_.dH(Y,this.hostElement.getBoundingClientRect().width)+")":""}}});
yE.prototype.onPopupClosed=yE.prototype.onPopupClosed;yE.prototype.onDataChanged=yE.prototype.onDataChanged;yE.prototype.dataChanged=yE.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],yE.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],yE.prototype,"data",void 0);
_.S([_.Ox("#header"),_.V("design:type",HTMLElement)],yE.prototype,"header",void 0);_.S([_.R(),_.V("design:type",Object)],yE.prototype,"scriptsAppended",void 0);_.S([_.R({type:Boolean,reflectToAttribute:!0}),_.V("design:type",Object)],yE.prototype,"useFullWidthPrimaryButton",void 0);_.S([_.R(),_.V("design:type",Object)],yE.prototype,"buttonOverrides",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yE.prototype,"dataChanged",null);
_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yE.prototype,"onDataChanged",null);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],yE.prototype,"onPopupClosed",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],yE);
_.d(yE,"ytd-sponsorships-celebration-renderer",function(){if(fVa!==void 0)return fVa;var Y=document.createElement("template");_.r(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return fVa=Y},{mode:1});var yUn;var eW=function(){return _.Z.apply(this,arguments)||this};
_.m(eW,_.Z);_.H=eW.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(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.H.onYtServiceRequestError=function(Y){_.Rd(this.hostElement,Y.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(Y,G){return!Y||!Y.tiers||G<0?null:_.z(Y.tiers[G],wiV)};
_.H.moreThanOne=function(Y){return!!(Y&&Y.length>1)};
_.H.tierOverviewTap=function(Y){var G=this;this.selectedTier=Y.model.index;_.sk(this,function(){_.$s(G.hostElement,"yt-refit")})};
_.H.computeSelectedClass=function(Y,G){return this.isSelected(Y,G)?"selected":""};
_.H.computeButtonAriaPressed=function(Y,G){return this.isSelected(Y,G)?"true":"false"};
_.H.isSelected=function(Y,G){return Y===G};
_.H.onDataChanged=function(){_.l0(this.hostElement).querySelector("#header-overlay").style.visibility="";_.l0(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 Y=_.E(this.hostElement.querySelectorAll("yt-img-shadow")),
G=Y.next();!G.done;G=Y.next())G.value.onShow();var u;this.set("selectedTier",(u=this.get("data.targetTierIndex"))!=null?u:0);var O;(Y=(O=this.data)==null?void 0:O.onVisible)&&this.ytComponentBehavior.resolveCommand(Y)};
_.H.initializeVe=function(Y){var G=_.FA(),u=_.nX(),O=this.get("data.trackingParams");u&&G&&(this.screenLayer=4,G=_.bi(_.T8t)(void 0,69877,{clientScreenNonce:G,visualElement:u},void 0,void 0,void 0),_.z1(G,69877,4),u=_.nX(4),O&&u&&(O=_.Kd(O),_.y6(G,u,O),Y&&(this.offerVideoVe=_.VZ(74659),_.y6(G,O,this.offerVideoVe))))};
_.H.setHeaderBackground=function(){var Y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.l0(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.nB(Y);if(Y=this.getHeaderImage())Y=_.dH(Y,screen.width),_.l0(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+Y+")"};
_.H.getHeaderImage=function(){var Y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&Y?Y:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.H.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.H.setupVideoPlayer=function(Y){var G=this,u,O,Q,M;return _.a(function(t){if(t.nextAddress==1)return u=G.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),O=G.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.F("kevlar_player_update_killswitch")?G.playerElement.update({args:{autoplay:u,video_id:Y,player_params:O}}):G.playerElement.loadVideoWithPlayerVars({autoplay:u,video_id:Y,player_params:O}),
t.yield(G.playerElement.getPlayerPromise(),2);Q=t.yieldResult;Q.addEventListener("onStateChange",function(K){G.onPlayerStateChange(K)});
Q.setScreenLayer(G.screenLayer);(M=_.FA(4))&&G.offerVideoVe&&_.AW(M,G.offerVideoVe);u&&(G.pauseOtherPlayers(),G.playerElement.focusOnPlayer(),G.playerElement.getPlayer().hideControls(),_.WY(_.AN,function(){G.fadeOutHeaderOverlay()},4E3));
_.Sd(t)})};
_.H.onPlayerStateChange=function(Y){Y===1?this.backgroundPlayerElement&&(Y=this.backgroundPlayerElement.player_.getPlayerState(),Y!==1&&Y!==3||this.backgroundPlayerElement.pause()):Y===0&&(_.l0(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.l0(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.H.fadeOutHeaderOverlay=function(){_.l0(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.H.onHeaderTap=function(){if(this.offerVideo){_.l0(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var Y;((Y=this.playerElement.player_)==null?void 0:Y.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(Y=_.FA(4))&&this.offerVideoVe&&_.RK(Y,this.offerVideoVe)}};
_.H.getBackgroundImageLayerClass=function(Y){return Y?"background-image-layer-with-video":""};
_.H.getHeaderClass=function(Y){return Y?"header-with-video":""};
_.H.getHeaderOverlayClass=function(Y){return Y?"header-overlay-with-video":""};
_.H.getTitleContainerClass=function(Y,G){return Y?"title-container-with-video":G?"title-container-without-video-flexible":"title-container-without-video"};
_.H.tierTitleDisplayStatus=function(Y){return this.moreThanOne(Y)?"hide":"show"};
_.H.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.sH().resolve(_.yo).getPlayerElement():this.backgroundPlayerElement=_.N5();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var Y=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=Y===1||Y===3;this.backgroundPlayerElement.pause()}};
_.H.isMiniplayerActive=function(){return _.sH().resolve(_.yo).isMiniplayerActive()};
_.H.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("selected-tier-changed",this.selectedTier))};
eW.prototype.selectedTierChangedForBinding=eW.prototype.selectedTierChangedForBinding;eW.prototype.onDataChanged=eW.prototype.onDataChanged;eW.prototype.onYtPopupClosed=eW.prototype.onYtPopupClosed;eW.prototype.onYtPopupOpened=eW.prototype.onYtPopupOpened;eW.prototype.onYtServiceRequestError=eW.prototype.onYtServiceRequestError;eW.prototype.onYtServiceRequestCompleted=eW.prototype.onYtServiceRequestCompleted;
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],eW.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],eW.prototype,"data",void 0);_.S([_.R({value:0}),_.V("design:type",Number)],eW.prototype,"selectedTier",void 0);
_.S([_.R({value:""}),_.V("design:type",String)],eW.prototype,"offerVideo",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],eW.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.S([_.R({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.cu(this)}}),
_.V("design:type",String)],eW.prototype,"playerId",void 0);_.S([_.Ox("tp-yt-paper-dialog-scrollable"),_.V("design:type",Object)],eW.prototype,"scrollable",void 0);_.S([_.Ox("ytd-sponsorships-tier-renderer"),_.V("design:type",Object)],eW.prototype,"tierRenderer",void 0);_.S([_.Ox("#player"),_.V("design:type",Object)],eW.prototype,"playerElement",void 0);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],eW.prototype,"onYtServiceRequestCompleted",null);_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],eW.prototype,"onYtServiceRequestError",null);
_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eW.prototype,"onYtPopupOpened",null);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eW.prototype,"onYtPopupClosed",null);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eW.prototype,"onDataChanged",null);
_.S([_.GO("selectedTier"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eW.prototype,"selectedTierChangedForBinding",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],eW);
_.d(eW,"ytd-sponsorships-offer-renderer",function(){if(yUn!==void 0)return yUn;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return yUn=Y},{mode:2});var elG;var A_=function(){var Y=_.Z.apply(this,arguments)||this;Y.buttonOverrides={type:"filled",style:"mono"};return Y};
_.m(A_,_.Z);A_.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}}}}}};
A_.prototype.backgroundColorChanged=function(){var Y,G,u,O=(G=_.z((Y=this.data)==null?void 0:Y.content,ZSx))==null?void 0:(u=G.backgroundColor)==null?void 0:u.backgroundColor;O&&(Y=_.k3(O),_.l0(this.hostElement).querySelector("#banner").style.backgroundColor=Y,_.l0(this.hostElement).querySelector("#abstract-art").style.backgroundColor=Y)};
A_.prototype.attached=function(){this.JSC$22807_scroller&&(this.JSC$22807_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22807_scroller.attached&&typeof this.JSC$22807_scroller.attached==="function"&&this.JSC$22807_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
A_.prototype.backgroundColorChanged=A_.prototype.backgroundColorChanged;_.S([_.R(),_.V("design:type",Object)],A_.prototype,"data",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],A_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Ox("#scroller"),_.V("design:type",Object)],A_.prototype,"JSC$22807_scroller",void 0);_.S([_.R(),_.V("design:type",Object)],A_.prototype,"buttonOverrides",void 0);
_.S([_.GO("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],A_.prototype,"backgroundColorChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],A_);
_.d(A_,"ytd-sponsorships-promotion-celebration-renderer",function(){if(elG!==void 0)return elG;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return elG=Y},{mode:2});var AUO;var okO;var oC=function(){return _.Z.apply(this,arguments)||this};
_.m(oC,_.Z);oC.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
oC.prototype.computeIsInitiallyChecked=function(Y){return Y===1};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],oC.prototype,"data",void 0);_.S([_.Ox("#checkbox"),_.V("design:type",Object)],oC.prototype,"checkbox",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],oC);
_.d(oC,"ytd-subscription-toggle-option-renderer",function(){if(okO!==void 0)return okO;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return okO=Y},{mode:1});var i4=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return Y};
_.m(i4,_.Z);i4.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"}}}};
i4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
i4.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var Y=_.l0(this.hostElement).querySelector("#options").selected;Y=this.data.options[Y].subscriptionRadioOptionRenderer.serviceEndpoint;var G=_.l0(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");G&&Y&&Y.modifyChannelNotificationPreferenceEndpoint&&(G=G.getValue())&&(Y.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[G]);_.sH().resolve(_.rH).resolveCommand(Y,{form:{element:this.hostElement}});
_.qZ(this.hostElement,"yt-close-popup-action")};
_.Uk.Object.defineProperties(i4.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var Y=this.data.options,G=0;G<Y.length;G++){var u=Y[G].subscriptionRadioOptionRenderer;if(u&&u.selected)return G}return null}}});
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],i4.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],i4.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],i4.prototype,"eventForwardingBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],i4.prototype,"data",void 0);_.S([_.f("data.options"),_.V("design:type",Object),_.V("design:paramtypes",[])],i4.prototype,"initialIndex",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],i4);
_.d(i4,"ytd-subscription-notification-options-renderer",function(){if(AUO!==void 0)return AUO;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return AUO=Y},{mode:1});var iTs;var Rlz=function(){return _.Z.apply(this,arguments)||this};
_.m(Rlz,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Rlz.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Rlz.prototype,"data",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Rlz);
_.d(Rlz,"ytd-tvfilm-offer-groups-renderer",function(){if(iTs!==void 0)return iTs;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return iTs=Y},{mode:1});var w1g;var RC=function(){return _.Z.apply(this,arguments)||this};
_.m(RC,_.Z);_.H=RC.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(Y){return Y.thumbnailOverlays?Y.isShow?"thumbnail-show":"thumbnail-movie":Y.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.H.computeCommerceSectionClass=function(Y){return Y.offers&&Y.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.H.computeTitleClass=function(Y){return Y.offers&&Y.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.H.onDataChanged=function(){[].concat(_.c8(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(Y){Y.onShow()})};
RC.prototype.onDataChanged=RC.prototype.onDataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],RC.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],RC.prototype,"data",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RC.prototype,"onDataChanged",null);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],RC);
_.d(RC,"ytd-ypc-offers-overlay-renderer",function(){if(w1g!==void 0)return w1g;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return w1g=Y},{mode:2});var ZTp;var DMT=function(){this.usedMethods=new Set};
DMT.prototype.add=function(Y){this.usedMethods.add(Y)};
DMT.prototype.reset=function(){this.usedMethods.clear()};var hlz,dM5;
_.bTT=function(Y,G){this.query=Y;this.previousSearchQuery=G;this.id=hlz++;if(!dM5){G=_.DE("SBOX_SETTINGS");Y="https://"+((G==null?void 0:G.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var u=G==null?void 0:G.REQUEST_LANGUAGE;u&&(Y+="&hl="+u);(u=G==null?void 0:G.REQUEST_DOMAIN)&&(Y+="&gl="+u);Y+="&client=youtube&gs_ri=youtube";(u=G==null?void 0:G.SUGG_EXP_ID)&&(Y+="&sugexp="+encodeURIComponent(u));(u=G==null?void 0:G.PSUGGEST_TOKEN)&&(Y+="&tok="+u);(G=G==
null?void 0:G.SESSION_INDEX)&&(Y+="&authuser="+G);_.F("desktop_enable_visual_suggest")&&(Y+="&h=180&w=320&ytvs=1");dM5=Y}};
_.S4h=function(Y){var G="q="+encodeURIComponent(Y.query);Y.previousSearchQuery&&(G+="&pq="+encodeURIComponent(Y.previousSearchQuery));return G};
_.NRq=function(){var Y=_.DE("SBOX_SETTINGS"),G={};if(Y==null?0:Y.SEND_VISITOR_DATA)G["X-Goog-Visitor-Id"]=Y==null?void 0:Y.VISITOR_DATA;return G};
_.jXh=function(Y){var G=dM5;G+="&gs_id="+Y.id.toString(36);G+="&q="+encodeURIComponent(Y.query);G+="&cp="+Y.query.length;Y.previousSearchQuery&&(G+="&pq="+encodeURIComponent(Y.previousSearchQuery));(Y=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(G+="&video_id="+Y);return G};
hlz=0;dM5="";var VRG,lVT,BRp,$Mn,q4T;VRG=ft.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST;lVT=ft.SEARCH_ENTITY_SUGGESTION_MOVIE;BRp=ft.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST;$Mn=ft.SEARCH_ENTITY_SUGGESTION_TV_SHOW;q4T=function(Y,G){this.text=Y;this.bold=G};
_.sXT=function(Y,G,u){this.input=G;this.index=u;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=Y[0];this.type=Y[1];this.subtypes=Y[2];var O;this.displayText=I0S((O=Y[3])==null?void 0:O.b);var Q;this.ignoredPrefix=I0S((Q=Y[3])==null?void 0:Q.a);var M,t;this.hasNewVideo=((M=Y[3])==null?void 0:(t=M.zam)==null?void 0:t.toString())==="true"?!0:!1;var K;this.visualSuggestUrl=(K=Y[3])==null?void 0:K.zai;var L;this.entityType=I0S((L=Y[3])==null?void 0:L.zap);var g;this.entityName=I0S((g=
Y[3])==null?void 0:g.zao);var P;G=I0S((P=Y[3])==null?void 0:P.zaf);var I;this.entityMid=(I=Y[3])==null?void 0:I.zae;P=kww(this.subtypes,this.entityMid);if(G&&P){if(G){I="";switch(P){case "YOUTUBE_ENTITY_TYPE_SONG":I=BRp;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":I=VRG;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":I=$Mn;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":I=lVT}P=P==="YOUTUBE_ENTITY_TYPE_SONG"||P==="YOUTUBE_ENTITY_TYPE_ALBUM"?I+" \u2022  \u2022 "+G:G}else P="";this.entitySubtitle=P}var k;this.externalChannelId=
(k=Y[3])==null?void 0:k.zav;var n;this.entityThumbnailAttributionUrl=(n=Y[3])==null?void 0:n.zaq};
_.UMT=function(Y,G){var u=[],O,Q=(O=Y.displayText)!=null?O:Y.text;(G==null?0:G.useEntityName)&&_.cUn(Y)&&Y.entityName&&(Q=Y.entityName);if(Y.type===33)return u.push(new q4T(Q,!1)),u;if(Q.length>=Y.input.length&&Q.substring(0,Y.input.length)===Y.input)u.push(new q4T(Y.input,!1)),u.push(new q4T(Q.substring(Y.input.length),!0));else{var M=new Set(Y.input.split(/\s/)),t=Q.split(/\s/);u=t.map(function(K,L){return new q4T(K.trim()+(L===t.length-1?"":" "),!M.has(K))})}return u};
_.cUn=function(Y){var G=!!kww(Y.subtypes);Y=!!Y.entityMid;return G||Y};_.vkT=function(Y){this.rawResponse=["",[],{}];this.suggestions=[];try{var G=JSON.parse(nSb(Y));if(typeof G==="object"&&G!==null)this.rawResponse=G;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(O){console.log("Suggest: Failed to parse SuggestResponse!");return}var u=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(O,Q){return new _.sXT(O,u,Q)})};var JUa=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new DMT;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$22844_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Ywp,Gx5=function(){Ywp||(Ywp=new JUa);
return Ywp};
JUa.prototype.updateSuggestions=function(Y){var G=this;this.availableSuggestions.forEach(function(u){G.previousSuggestions[u]=!0});
this.availableSuggestions=Y.map(function(u){var O=u.type.toString();u.subtypes.length>0&&(O+="i"+u.subtypes.join("i"),O+="k"+u.suggestionSources.COMPLETE_SERVER.toString());return O})};
var uga=function(Y,G){var u=Date.now();Y.firstEditTime<0&&(Y.firstEditTime=u);G&&(Y.lastQueryBuildTime=u);Y.lastEditTime=u};
JUa.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$22844_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Oxn=function(Y){var G="";Y.availableSuggestions.forEach(function(Q){delete Y.previousSuggestions[Q]});
for(var u=_.E(Object.keys(Y.previousSuggestions)),O=u.next();!O.done;O=u.next())O=O.value,Y.previousSuggestions[O]&&(G+=(G?"j":"")+O);return G},Qoa=function(Y,G){var u=[];
G&&(u[1]=G.toString());u[0]="youtube";u[7]=Date.now()-Y.startTime;u[6]=Y.sessionNumber;Y.zeroPrefixSuggestionCount>=0&&(u[33]=Y.zeroPrefixSuggestionCount);u[13]=Y.outOfSyncResponseCount;if(Y.availableSuggestions.length>0){for(var O=G="",Q=0,M=_.E(Y.availableSuggestions),t=M.next();!t.done;t=M.next())t=t.value,t!==O&&(Q>1&&(G+="l"+Q),G+=(O?"j":"")+t,Q=0,O=t),Q+=1;Q>1&&(G+="l"+Q);u[3]=G}u[35]=Oxn(Y);Y.selectedSuggestionIndex>=0&&(u[2]=Y.selectedSuggestionIndex);var K;if(G=(K=_.DE("SBOX_SETTINGS"))==
null?void 0:K.SUGG_EXP_ID)u[19]=Y.normalize(G),K=0,Y.experimentTriggeredBeforeFinal&&(K|=1),Y.experimentTriggeredFinal&&(K|=2),u[20]=K;u[26]=Array.from(Y.inputMethodsTracker.usedMethods).join("j");if(Y.JSC$22844_totalRoundTripTime>0){u[15]=Y.JSC$22844_totalRoundTripTime;u[14]=Y.maxRoundTripTime;K=[];for(Q=G=0;Q<10;Q++)O=Y.roundTripTimeHistogram[Q],O===0?G++:(G>1?K.push(Q+"-"+O):G===1?K.push("0j"+O):K.push(O.toString()),G=0);K=K.join("j");u[16]=K}Y.zeroPrefixRoundTripTime>0&&(u[36]=Y.zeroPrefixRoundTripTime);
Y.lastQueryBuildTime>0&&(u[18]=Y.lastQueryBuildTime-Y.startTime);Y.firstEditTime>0&&(u[4]=Y.firstEditTime-Y.startTime);Y.lastEditTime>0&&(u[5]=Y.lastEditTime-Y.startTime);return u.join(".")};
JUa.prototype.normalize=function(Y){return Y.replaceAll(".","-")};
var MSa=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var wi=function(){var Y=_.Z.apply(this,arguments)||this;Y.microphoneSpinnerActive=!1;Y.noAnimations=!1;Y.boundExitClick=function(){Y.onExitButtonClick()};
Y.speechOverlayClassName="";Y.isLevelAnimating=!1;Y.playCloseDialogAudioFeedback=!0;Y.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return Y};
_.m(wi,_.Z);_.H=wi.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=uLV()};
_.H.dataChanged=function(){this.logDialog()};
_.H.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var Y;(Y=this.manager.audioPlayer)!=null&&(Y.JSC$21700_audioEnabled=!1)}this.manager.stop();(Y=this.manager.audioPlayer)!=null&&(Y.JSC$21700_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.H.handleSpeechQueryCompleteAction=function(Y){var G=Y.navigationAction;G&&(Y.trackingParams&&_.M4().graftServerVe(Y.trackingParams,this.dialogVe,5),_.$s(this.hostElement,"yt-navigate",{endpoint:G,tempData:this.getNavigationParams(G),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.H.onExitButtonClick=function(){this.closeDialog()};
_.H.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var Y;if((Y=this.manager)!=null){var G;(G=Y.audioPlayer)==null||$Z(G,"failure");Y.setState("microphone-off");Y.stop()}}else(Y=this.manager)==null||Y.start()};
_.H.transcriptionChanged=function(){var Y,G;(((Y=this.transcription)==null?0:Y.low)||((G=this.transcription)==null?0:G.high))&&this.setState("transcribing",this.transcription)};
_.H.stateChanged=function(){this.setState(this.state,this.transcription)};
_.H.logDialog=function(){var Y;(Y=this.data)!=null&&Y.trackingParams&&(Y=_.M4(),_.UL(Y,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=Y.graftServerVe(this.data.trackingParams,void 0,5))};
_.H.getNavigationParams=function(Y){var G={};if(_.F("web_yt_searchbox")){var u=Gx5();u.inputMethodsTracker.add(6);u=Qoa(u,15);G.gs_l=u;var O;G.oq=((O=_.z(Y,_.GA))==null?void 0:O.query)||""}else if(Y=window.ytvoicesearchloggingparams){if(Y=Y())G.oq=Y.oq,G.gs_l=Y.gs_l}else _.N3(Error("nm"));return G};
_.H.closeDialog=function(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.H.setState=function(Y,G){if(this.data){var u=this.data,O={};switch(Y){case "listening":O={headerText:u.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:u.microphoneButtonAriaLabel};break;case "timeout":O={headerText:u.promptHeader,microphoneState:"try-again",microphoneLabel:u.promptMicrophoneLabel,microphoneAriaLabel:u.promptMicrophoneLabel};break;case "microphone-off":O={headerText:u.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:u.promptMicrophoneLabel,
microphoneAriaLabel:u.promptMicrophoneLabel};break;case "transcribing":(G==null?0:G.low)||(G==null?0:G.high)?O={transcriptionLow:G==null?void 0:G.low,transcriptionHigh:G==null?void 0:G.high,microphoneState:"speaking",microphoneAriaLabel:u.microphoneButtonAriaLabel}:O={headerText:u.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:u.microphoneButtonAriaLabel};break;case "processing":O={headerText:u.loadingHeader,microphoneState:"processing",microphoneAriaLabel:u.microphoneButtonAriaLabel};
break;case "offline":O={headerText:u.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:u.connectionErrorMicrophoneLabel,microphoneAriaLabel:u.connectionErrorMicrophoneLabel};break;case "permission":O={headerText:u.permissionsHeader,bodyLine1:u.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:u.permissionsSubtext};break;case "permission-denied":O={headerText:u.disabledHeader,bodyLine1:u.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:u.disabledSubtext}}O.className=
Y;this.speechOverlayState=O;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.H.setMicrophoneState=function(Y){var G=this.isLevelAnimating;this.isLevelAnimating=Y==="speaking";!G&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=Y==="processing"&&!this.noAnimations};
_.H.setClass=function(Y){this.speechOverlayClassName&&_.$3(this.hostElement,this.speechOverlayClassName,!1);Y&&(this.speechOverlayClassName=Y,_.$3(this.hostElement,Y,!0))};
_.H.runLevelAnimation=function(){var Y=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var G=1+Math.random()*.75,u=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+u/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+G+")");_.AN.addJob(function(){Y.runLevelAnimation()},3,u)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
wi.prototype.stateChanged=wi.prototype.stateChanged;wi.prototype.transcriptionChanged=wi.prototype.transcriptionChanged;wi.prototype.onPopupClosed=wi.prototype.onPopupClosed;wi.prototype.dataChanged=wi.prototype.dataChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],wi.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],wi.prototype,"rendererStamperBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],wi.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],wi.prototype,"eventForwardingBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],wi.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],wi.prototype,"speechOverlayState",void 0);
_.S([_.R(),_.V("design:type",Object)],wi.prototype,"microphoneSpinnerActive",void 0);_.S([_.R({type:_.F("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.V("design:type",Object)],wi.prototype,"noAnimations",void 0);_.S([_.R({selector:function(Y){var G;return(G=Y.voiceSearch)==null?void 0:G.transcription}}),
_.V("design:type",Object)],wi.prototype,"transcription",void 0);_.S([_.R({selector:function(Y){var G;return(G=Y.voiceSearch)==null?void 0:G.overlay}}),
_.V("design:type",String)],wi.prototype,"state",void 0);_.S([_.R(),_.V("design:type",Object)],wi.prototype,"boundExitClick",void 0);_.S([_.Ox("#microphone-levels"),_.V("design:type",HTMLElement)],wi.prototype,"level",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wi.prototype,"dataChanged",null);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wi.prototype,"onPopupClosed",null);
_.S([_.Ex("transcription"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wi.prototype,"transcriptionChanged",null);_.S([_.Ex("state"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wi.prototype,"stateChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],wi);
_.d(wi,"ytd-voice-search-dialog-renderer",function(){if(ZTp!==void 0)return ZTp;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return ZTp=Y},{mode:1});var HxT;var ZW=function(){var Y=_.Z.apply(this,arguments)||this;Y.isOverlay=!1;Y.hidden=!1;return Y};
_.m(ZW,_.Z);_.H=ZW.prototype;_.H.onPopupClosed=function(){this.toggleIconState(!1)};
_.H.computeIcon=function(){var Y,G,u;return(G=_.z((Y=this.data)==null?void 0:Y.icon,t_g))==null?void 0:(u=G.icon)==null?void 0:u.iconType};
_.H.computeIconBadgeShape=function(){var Y;return{iconBadgeType:"cart",iconBadgeText:(Y=this.iconBadgeEntity)==null?void 0:Y.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.H.onClick=function(){var Y;(Y=this.data)!=null&&Y.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.H.computeHidden=function(Y){return!Y};
_.H.toggleIconState=function(Y){this.iconButton&&(this.iconButton.pressed=Y)};
ZW.prototype.onPopupClosed=ZW.prototype.onPopupClosed;_.S([_.x(_.me),_.V("design:type",Object)],ZW.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],ZW.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],ZW.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],ZW.prototype,"isOverlay",void 0);
_.S([_.R({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.V("design:type",Object)],ZW.prototype,"hidden",void 0);_.S([_.R({selectorArgs:["data.iconBadgeEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"iconBadgeEntity",G)}}),
_.V("design:type",Object)],ZW.prototype,"iconBadgeEntity",void 0);_.S([_.Ox("yt-icon-button"),_.V("design:type",HTMLButtonElement)],ZW.prototype,"iconButton",void 0);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZW.prototype,"onPopupClosed",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],ZW);
_.d(ZW,"ytd-icon-badge-topbar-button-renderer",function(){if(HxT!==void 0)return HxT;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return HxT=Y},{mode:1});var EVn;var DW=function(){var Y=_.Z.apply(this,arguments)||this;Y.premiumOptions=[];return Y};
_.m(DW,_.Z);DW.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Uk.Object.defineProperties(DW.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],DW.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Array)],DW.prototype,"premiumOptions",void 0);_.S([_.f("premiumOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],DW.prototype,"hasPremiumOptions",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],DW);
_.d(DW,"ytd-offline-promo-content",function(){if(EVn!==void 0)return EVn;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return EVn=Y},{mode:1});var tSO;var h_=function(){var Y=_.Z.apply(this,arguments)||this;Y.premiumOptions=[];return Y};
_.m(h_,_.Z);h_.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var Y;this.premiumOptions=PTN((Y=this.data)==null?void 0:Y.formats)};
h_.prototype.onClickSubmit=function(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var Y;(Y=_.N5())==null||Y.pause()};
h_.prototype.attached=function(){this.JSC$22864_scroller&&(this.JSC$22864_scroller.dialogElement=this.hostElement.parentNode)};
_.Uk.Object.defineProperties(h_.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
h_.prototype.dataChanged=h_.prototype.dataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],h_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],h_.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],h_.prototype,"data",void 0);
_.S([_.R({computed:"computeIcon_(data.headersIcon)",value:""}),_.V("design:type",String)],h_.prototype,"headersIcon",void 0);_.S([_.R(),_.V("design:type",Array)],h_.prototype,"premiumOptions",void 0);_.S([_.Ox("#scroller"),_.V("design:type",Object)],h_.prototype,"JSC$22864_scroller",void 0);_.S([_.f("headersIcon"),_.V("design:type",Object),_.V("design:paramtypes",[])],h_.prototype,"showIcon",null);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],h_.prototype,"dataChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],h_);
_.d(h_,"ytd-offline-promo-renderer",function(){if(tSO!==void 0)return tSO;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return tSO=Y},{mode:1});var KyT;var di=function(){var Y=_.Z.apply(this,arguments)||this;Y.playbackPauseInterval=NaN;Y.isLoading=!1;Y.hasError=!1;Y.dialogClass="";Y.youtubeLabel=_.Q6("LOGO_ALT_LABEL",{},"YouTube Home");Y.logoName="yt-logos-ext:yt-logo-updated";Y.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return Y};
_.m(di,_.Z);_.H=di.prototype;_.H.onDataChange=function(){var Y;if(this.showEOMV1Text=!((Y=this.data)==null||!Y.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(Y){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[Y.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(Y){var G=this;this.showLoadingSpinner();this.showLoadingSpinner();tcB(_.z(Y,qMj)).catch(function(u){_.R0(new _.I2("Something went wrong when save consent "+(u.message?u.message:u)+"."));G.hideLoadingSpinner();G.showErrorMessage()})};
_.H.handleDisablePersonalization=function(Y){var G=this;this.showLoadingSpinner();KRo(_.z(Y,$8N)).then(function(){G.dialog.close();G.resumePlayer()}).catch(function(u){_.R0(new _.I2("Something went wrong when disable personalization "+(u.message?u.message:u)+"."));
G.hideLoadingSpinner();G.showErrorMessage()})};
_.H.showLoadingSpinner=function(){var Y=this;this.showSpinnerJobId=_.AN.addLowPriorityJob(function(){Y.isLoading=!0},500)};
_.H.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.AN.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.H.showErrorMessage=function(){var Y=this;this.hasError=!0;_.AN.addLowPriorityJob(function(){Y.hasError=!1},2E3)};
_.H.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.HK(function(){try{var Y=_.N5();Y&&Y.pause()}catch(G){}},100))};
_.H.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var Y=_.N5();Y&&Y.play()}catch(G){}};
_.Uk.Object.defineProperties(di.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.eomV1Text)return[];Y=[];for(var G=["SHIELD","WARNING","BAR_CHART"],u=this.data.eomV1Text.essentialCookieMsg.items,O=0;O<G.length&&O<u.length;O++)Y.push({icon:G[O],text:u[O]});return Y}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.eomV1Text)return[];Y=[];for(var G=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],u=this.data.eomV1Text.nonEssentialCookieMsg.items,O=0;O<G.length&&O<u.length;O++)Y.push({icon:G[O],text:u[O]});return Y}}});
di.prototype.onDataChange=di.prototype.onDataChange;_.S([_.R(),_.V("design:type",Object)],di.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],di.prototype,"showEOMV1Text",void 0);_.S([_.R(),_.V("design:type",Object)],di.prototype,"isLoading",void 0);_.S([_.R(),_.V("design:type",Object)],di.prototype,"hasError",void 0);_.S([_.R(),_.V("design:type",Number)],di.prototype,"showSpinnerJobId",void 0);_.S([_.R(),_.V("design:type",Object)],di.prototype,"dialogClass",void 0);
_.S([_.Ox("#dialog"),_.V("design:type",Object)],di.prototype,"dialog",void 0);_.S([_.Ox("#cb-header"),_.V("design:type",HTMLElement)],di.prototype,"header",void 0);_.S([_.Ox("#lang-select"),_.V("design:type",HTMLElement)],di.prototype,"langSelect",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],di.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],di.prototype,"ytComponentBehavior",void 0);
_.S([_.R(),_.V("design:type",String)],di.prototype,"youtubeLabel",void 0);_.S([_.R(),_.V("design:type",Object)],di.prototype,"logoName",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],di.prototype,"onDataChange",null);_.S([_.f("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],di.prototype,"eomEssentialCookieMsgItems",null);
_.S([_.f("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],di.prototype,"eomNonEssentialCookieMsgItems",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],di);
_.d(di,"ytd-consent-bump-v2-lightbox",function(){if(KyT!==void 0)return KyT;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return KyT=Y},{mode:1});var aNs;var b4=function(){return _.Z.apply(this,arguments)||this};
_.m(b4,_.Z);b4.prototype.ready=function(){if(!_.gC()||$ox)var Y=!0;else $ox=!0,Y=!1;Y||(Y=document.querySelector("ytd-app"),Y||(Y=document.body),this.internalLightBox=_.l0(Y).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.S([_.R(),_.V("design:type",Object)],b4.prototype,"data",void 0);_.S([_.Ox("#lightbox"),_.V("design:type",Object)],b4.prototype,"lightBox",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],b4);
_.d(b4,"ytd-consent-bump-v2-renderer",function(){if(aNs!==void 0)return aNs;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return aNs=Y},{mode:1});var Tbp;var Lyz;var gVo;var SW=function(){return _.Z.apply(this,arguments)||this};
_.m(SW,_.Z);_.H=SW.prototype;_.H.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&Yq9(this.toastManager,this.toastType)};
_.H.open=function(Y){this.toast&&(this.ephemeralAction&&_.sH().resolve(_.zV).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=Y!=null?Y:0,this.toastManager.enqueue(this.toast,Y)):this.toast.open())};
_.H.close=function(Y){var G;(G=this.toast)==null||G.close();this.toastManager&&Y===1&&Yq9(this.toastManager,Y)};
_.H.refit=function(){var Y;(Y=this.toast)==null||Y.refit()};
_.H.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var Y;(Y=this.toast)==null||Y.close()}};
_.H.setVerticalOffset=function(Y){this.toast&&(this.toast.verticalOffset=Y,this.toast.fit())};
_.H.computeButtonClass_=function(Y){return Y?"toast-button":""};
_.H.computeText_=function(Y){return _.Ri(Y)};
_.H.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wM("toast-opened-changed",this.toastOpened))};
_.H.updateToastOpenedFromBinding=function(Y){this.toastOpened=Y.detail.value};
_.Uk.Object.defineProperties(SW.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var Y,G,u=(Y=this.data)==null?void 0:(G=Y.actionButton)==null?void 0:G.buttonRenderer;return(u==null?void 0:u.command)||(u==null?void 0:u.serviceEndpoint)||(u==null?void 0:u.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 Y=[],G;((G=this.data)==null?0:G.responseText)&&Y.push(_.Ri(this.data.responseText));var u;((u=this.data)==null?0:u.subText)&&Y.push(_.Ri(this.data.subText));var O,Q;if((O=this.data)==null?0:(Q=O.actionButton)==null?0:Q.buttonRenderer){var M,t;Y.push(((M=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(t=M.accessibilityData)==null?void 0:t.label)||_.Ri(this.data.actionButton.buttonRenderer.text))}return Y.filter(function(K){return K}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var Y,G;return(G=(Y=this.toast)==null?void 0:Y.opened)!=null?G:!1}}});
SW.prototype.toastOpenedChangedForBinding=SW.prototype.toastOpenedChangedForBinding;SW.prototype.toastOpenedChanged=SW.prototype.toastOpenedChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],SW.prototype,"ytEventForwardingBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],SW.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],SW.prototype,"duration",void 0);
_.S([_.R(),_.V("design:type",Number)],SW.prototype,"toastType",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],SW.prototype,"useCloseButton",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],SW.prototype,"closeToastOnActionButtonClick",void 0);_.S([_.R({value:function(){return _.Q6("SBOX_INAPPROPRIATE_CANCEL")}}),
_.V("design:type",String)],SW.prototype,"closeButtonAriaLabel",void 0);_.S([_.R(),_.V("design:type",Boolean)],SW.prototype,"toastOpened",void 0);_.S([_.R(),_.V("design:type",Boolean)],SW.prototype,"hasOpened",void 0);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],SW.prototype,"command",null);_.S([_.f("labelText","command","duration"),_.V("design:type",Object),_.V("design:paramtypes",[])],SW.prototype,"ephemeralAction",null);
_.S([_.f("ephemeralAction"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],SW.prototype,"hasEphemeralAction",null);_.S([_.Ox("#toast"),_.V("design:type",Object)],SW.prototype,"toast",void 0);_.S([_.R({value:function(){return{style:"call-to-action-inverse"}}}),
_.V("design:type",Object)],SW.prototype,"buttonOverrides",void 0);_.S([_.R({value:{style:"mono-inverse"}}),_.V("design:type",Object)],SW.prototype,"closeButtonOverrides",void 0);_.S([_.R({value:function(){return _.sH().resolve(_.q3(_.F6))}}),
_.V("design:type",Object)],SW.prototype,"toastManager",void 0);_.S([_.f("data.responseText","data.subText","data.actionButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],SW.prototype,"labelText",null);_.S([_.GO("toastOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SW.prototype,"toastOpenedChanged",null);
_.S([_.GO("toastOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SW.prototype,"toastOpenedChangedForBinding",null);_.S([_.Ff({is:"yt-notification-action-renderer",disableElementRegistration:!0})],SW);
_.d(SW,"yt-notification-action-renderer",function(){if(gVo===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Lyz===void 0&&(Lyz=document.createElement("template"));var O=Lyz;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);gVo=Y}Y=gVo;return Y},{mode:2});var NT=function(){var Y=_.Z.apply(this,arguments)||this;Y.duration=4E3;Y.downloadingCount=0;Y.downloadedCount=0;Y.downloadingOnlySmartDownloads=!1;Y.sessionTotalDownloads=0;Y.sessionDownloaded=0;Y.previousSessionsDownloaded=0;Y.totalDownloadPercentage=0;Y.currentDownloadProgress=0;Y.currentDownloadPercentage=0;Y.isLeaderTab=!0;Y.isFullScreen=!1;Y.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};Y.boundBeforeUnload=function(G){Y.isLeaderTab&&Y.downloadingCount>0&&(G.preventDefault(),
G.returnValue=!0)};
return Y};
_.m(NT,_.Z);_.H=NT.prototype;
_.H.open=function(){this.updateDownloadState();if(this.data){var Y=this.sessionDownloaded+1,G=this.sessionTotalDownloads>1?_.Q6("VIDEOS_DOWNLOADING_RATIO",{downloaded:Y.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+Y+"/"+this.sessionTotalDownloads):_.Q6("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(G=this.sessionTotalDownloads>1?_.Q6("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:Y.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
Y+"/"+this.sessionTotalDownloads):_.Q6("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));Y=this.isLeaderTab?_.Q6("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Ri(this.data.responseText)!==G||_.Ri(this.data.subText)!==Y)this.set("data.responseText",_.i8(G)),this.set("data.subText",_.i8(Y)),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 Y=this.downloadedCount-this.previousSessionsDownloaded;Y<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-Y);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.H.handleFullscreenChange=function(Y){(this.isFullScreen=Y)||this.updatePopup()};
NT.prototype.updateCurrentDownloadProgress=NT.prototype.updateCurrentDownloadProgress;NT.prototype.updatePopup=NT.prototype.updatePopup;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],NT.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],NT.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],NT.prototype,"ytEventForwardingBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],NT.prototype,"actionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],NT.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],NT.prototype,"duration",void 0);_.S([_.R({selector:function(Y){return _.DH1(Y.entities).length}}),
_.V("design:type",Object)],NT.prototype,"downloadingCount",void 0);_.S([_.R({selector:w$x}),_.V("design:type",Object)],NT.prototype,"downloadedCount",void 0);_.S([_.R({selector:function(Y){var G=_.DH1(Y.entities);return Av9(Y.entities,G)}}),
_.V("design:type",Object)],NT.prototype,"downloadingOnlySmartDownloads",void 0);_.S([_.R(),_.V("design:type",Object)],NT.prototype,"sessionTotalDownloads",void 0);_.S([_.R(),_.V("design:type",Object)],NT.prototype,"sessionDownloaded",void 0);_.S([_.R(),_.V("design:type",Object)],NT.prototype,"previousSessionsDownloaded",void 0);_.S([_.R(),_.V("design:type",Object)],NT.prototype,"totalDownloadPercentage",void 0);
_.S([_.R({selector:function(Y){var G;Y=(G=_.DH1(Y.entities))!=null?G:[];return Y.length>0?_.xHA(Y.slice(-1)):0}}),
_.V("design:type",Object)],NT.prototype,"currentDownloadProgress",void 0);_.S([_.R(),_.V("design:type",Object)],NT.prototype,"currentDownloadPercentage",void 0);_.S([_.R({selector:_.NWt}),_.V("design:type",Object)],NT.prototype,"isLeaderTab",void 0);_.S([_.Ox("yt-notification-action-renderer"),_.V("design:type",Object)],NT.prototype,"notificationActionRenderer",void 0);
_.S([_.Ex("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NT.prototype,"updatePopup",null);_.S([_.Ex("currentDownloadProgress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NT.prototype,"updateCurrentDownloadProgress",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],NT);
_.d(NT,"ytd-video-download-toast-renderer",function(){if(Tbp!==void 0)return Tbp;var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Tbp=Y},{mode:1});var Xbo;var PNp;var jW=function(){return _.Z.apply(this,arguments)||this};
_.m(jW,_.Z);jW.prototype.computeIsRedLogo=function(Y,G){!Y&&G&&(Y=G);return Y==="YOUTUBE_RED_LOGO"||Y==="YOUTUBE_PREMIUM_LOGO"};
jW.prototype.computeLogoName=function(Y){Y=this.componentBehavior.computeIcon_(Y);return Y===""?"yt-logos-ext:yt-logo-updated":Y};
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],jW.prototype,"componentBehavior",void 0);_.S([_.R({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.V("design:type",Boolean)],jW.prototype,"isRedLogo",void 0);_.S([_.R({computed:"computeLogoName(data)"}),_.V("design:type",String)],jW.prototype,"logoName",void 0);_.S([_.R({value:{}}),_.V("design:type",Object)],jW.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],jW.prototype,"logoType",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-logo"})],jW);
_.d(jW,"ytd-logo",function(){if(PNp!==void 0)return PNp;var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return PNp=Y},{mode:2});var VE=function(){var Y=_.Z.apply(this,arguments)||this;Y.animationRef={};return Y};
_.m(VE,_.Z);_.H=VE.prototype;_.H.attached=function(){document.addEventListener("yt-navigate-finish",_.Jh(this,this.logYoodle))};
_.H.detached=function(){document.removeEventListener("yt-navigate-finish",_.Jh(this,this.logYoodle))};
_.H.logYoodle=function(){var Y,G;if((Y=this.data)==null?0:(G=Y.loggingDirectives)==null?0:G.trackingParams)this.ytRendererBehavior.markDirty(),_.M4().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.H.computeHideImg=function(Y,G){return!!Y||!!G};
_.H.computeHideYtdLogo=function(Y,G){return!Y||!!G};
_.H.computeHideLottie=function(Y){return!Y};
_.H.computeIsRedLogo=function(Y){return Y==="YOUTUBE_RED_LOGO"||Y==="YOUTUBE_PREMIUM_LOGO"};
_.H.renderLogoEntity=function(){var Y=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),G=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),u=this.getLogoTitleText(this.data),O=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==Y&&(this.url=Y);this.animatedUrl!==G&&(this.animatedUrl=G);this.logoTitleText!==u&&(this.logoTitleText=u);this.lottieUrl!==O&&(this.lottieUrl=O,this.lottiePlayerProps=this.computeLottiePlayerProps(O))};
_.H.getSanitizedThumbnail=function(Y){return Y&&Y.thumbnails?_.T2A(Y.thumbnails,122)||"":""};
_.H.getThumbnailUrl=function(Y,G){if(!G)return"";var u,O;Y=Y?(u=G.darkThemeLogo)==null?void 0:u.thumbnail:(O=G.lightThemeLogo)==null?void 0:O.thumbnail;return this.getSanitizedThumbnail(Y)};
_.H.getAnimatedThumbnailUrl=function(Y,G){return G?this.getSanitizedThumbnail(Y?G.darkThemeAnimatedLogo:G.lightThemeAnimatedLogo):""};
_.H.getLogoTitleText=function(Y){if(Y)return _.Ri(Y.tooltipText)};
_.H.computeLogoIcon=function(Y,G){if(G){var u,O;return Y?(u=G.darkThemeLogo)==null?void 0:u.icon:(O=G.lightThemeLogo)==null?void 0:O.icon}};
_.H.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.H.getLottieUrl=function(Y,G){var u,O,Q,M;return Y?G==null?void 0:(u=G.darkThemeLogo)==null?void 0:(O=u.lottieAnimation)==null?void 0:O.url:G==null?void 0:(Q=G.lightThemeLogo)==null?void 0:(M=Q.lottieAnimation)==null?void 0:M.url};
_.H.computeLottiePlayerProps=function(Y){if(Y){var G;if((G=this.animationRef)==null?0:G.lottieEl){var u;(u=this.animationRef)==null||u.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:Y,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&&_.$s(this.hostElement,"yoodle-error")};
_.H.onImgError=function(){this.data&&!this.lottieUrl&&_.$s(this.hostElement,"yoodle-error")};
VE.prototype.playAnimation=VE.prototype.playAnimation;VE.prototype.renderLogoEntity=VE.prototype.renderLogoEntity;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],VE.prototype,"data",void 0);_.S([_.R({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.V("design:type",Boolean)],VE.prototype,"hideImg",void 0);
_.S([_.R({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.V("design:type",Boolean)],VE.prototype,"hideYtdLogo",void 0);_.S([_.R({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.V("design:type",Boolean)],VE.prototype,"hideLottie",void 0);_.S([_.R({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.V("design:type",Boolean)],VE.prototype,"isRedLogo",void 0);
_.S([_.R(),_.V("design:type",Boolean)],VE.prototype,"useDarkThemeYoodle",void 0);_.S([_.R(),_.V("design:type",String)],VE.prototype,"url",void 0);_.S([_.R(),_.V("design:type",String)],VE.prototype,"animatedUrl",void 0);_.S([_.R(),_.V("design:type",String)],VE.prototype,"logoTitleText",void 0);_.S([_.R({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.V("design:type",Object)],VE.prototype,"logoIcon",void 0);_.S([_.R(),_.V("design:type",Object)],VE.prototype,"logoType",void 0);
_.S([_.R(),_.V("design:type",String)],VE.prototype,"lottieUrl",void 0);_.S([_.R(),_.V("design:type",Object)],VE.prototype,"lottiePlayerProps",void 0);_.S([_.R(),_.V("design:type",Object)],VE.prototype,"animationRef",void 0);_.S([_.GO("data"),_.GO("useDarkThemeYoodle"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],VE.prototype,"renderLogoEntity",null);
_.S([_.Yo("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],VE.prototype,"playAnimation",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],VE);
_.d(VE,"ytd-yoodle-renderer",function(){if(Xbo!==void 0)return Xbo;var Y=document.createElement("template");_.r(Y,'\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 class="lottie-player style-scope ytd-yoodle-renderer" aria-label="[[logoTitleText]]" data="[[lottiePlayerProps]]">\n</ytd-lottie-player>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Xbo=Y},{mode:2});var INg;var kxo;var nVT=_.A$.currentPageTypeSelector,Fyo=_.A$.currentPageSubTypeSelector,l4=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return Y};
_.m(l4,_.Z);_.H=l4.prototype;_.H.onYoodleError=function(){_.F("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.H.computeLogoName=function(Y){Y=this.componentBehavior.computeIcon_(Y);return Y===""?"yt-logos-ext:yt-logo-updated":Y};
_.H.computeTitle=function(Y,G,u){return u&&(G==null?0:G.tooltipText)?_.Ri(G.tooltipText):_.Ri(Y)};
_.H.computeAriaLabel=function(Y,G,u){return u&&(G==null?0:G.tooltipText)?_.Ri(Y):""};
_.H.computeShowYoodle=function(Y,G,u){return!Y||!G&&!!u&&!_.gX.isEmpty(u)};
_.H.onNavigateHomeAction=function(){if(_.F("kevlar_miniplayer_navigate_home_from_app_killswitch")){var Y;(Y=_.l0(this.hostElement).querySelector(".yt-simple-endpoint"))==null||Y.click()}};
_.H.computeLogoHref=function(Y,G,u){var O;(u==null?0:u.onTapCommand)?O=this.componentBehavior.computeHref_(u.onTapCommand):Y&&(O=this.componentBehavior.computeHref_(Y));return O?O:G};
_.H.computeCommand=function(Y,G){return(G==null?void 0:G.onTapCommand)||Y};
_.H.getEndpointForm=function(){if(_.F("kevlar_topbar_disable_cache_only_home")){var Y=_.sH().resolve(_.Fk),G=nVT(Y.getState())||"";Y=Fyo(Y.getState())||"";return{disableCache:G==="ytd-browse"&&Y==="home"}}return{disableCache:!0}};
l4.prototype.onYoodleError=l4.prototype.onYoodleError;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],l4.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],l4.prototype,"componentBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],l4.prototype,"ytdReduxBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],l4.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],l4.prototype,"countryCode",void 0);_.S([_.R({selectorArgs:["data.overrideEntityKey"],selector:function(Y,G){return _.v2(Y.entities,"logoEntity",G)}}),
_.V("design:type",Object)],l4.prototype,"logoEntity",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.V("design:type",Boolean)],l4.prototype,"showYoodle",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],l4.prototype,"yoodleError",void 0);_.S([_.R({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.V("design:type",String)],l4.prototype,"titleText",void 0);
_.S([_.R({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.V("design:type",String)],l4.prototype,"ariaLabelText",void 0);_.S([_.R({value:"/"}),_.V("design:type",String)],l4.prototype,"defaultEndpointUrl",void 0);_.S([_.R({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.V("design:type",String)],l4.prototype,"endpointUrl",void 0);
_.S([_.R({computed:"computeCommand(data.endpoint, logoEntity)"}),_.V("design:type",String)],l4.prototype,"command",void 0);_.S([_.R(),_.V("design:type",Object)],l4.prototype,"logoType",void 0);_.S([_.R({}),_.V("design:type",Boolean)],l4.prototype,"useDarkThemeYoodle",void 0);_.S([_.Yo("yoodle-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],l4.prototype,"onYoodleError",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],l4);
_.d(l4,"ytd-topbar-logo-renderer",function(){if(kxo!==void 0)return kxo;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return kxo=Y},{mode:2});var pba=0;var zjq=ft.SEARCH_APPEND_LABEL,m9s=ft.SUGGESTION_NEW_VIDEOS_TEXT,WyG=ft.SUGGESTION_THUMBNAIL_LABEL,rBT=ft.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,x9G=_.D(function(Y){function G($k){var NM,fx;return _.a(function(H8){if(H8.nextAddress==1)return NM=new Request($k),_.i3(H8,2),H8.yield(fetch(NM,{credentials:"include"}),4);if(H8.nextAddress!=2)return n1(!0),_.j1(H8,0);fx=_.b3(H8);_.R0(fx);_.Sd(H8)})}
var u=Y.isHighlighted;var O=Y.suggestion;var Q=Y.onClickCallback;var M=Y.onHoverUpdateCallback;var t=Y.labels;var K=Y.queryBuilderFunction;var L=Y.onRemoveCallback;var g=Y.suggestionIndex;var P=Y.generateUniqueId;var I=Y.highlightedId;var k=Y.useScrollMargin;var n=Y.isKeyboardMode;var p=null,W=null,C=null,e=_.CH("div"),w=_.CH("span");Y=_.E(_.IE(!1,void 0,"LafNkf"));var B=Y.next().value,N=Y.next().value,h=_.yg("a",function($k){$k&&_.k2(237477,$k,W,function(NM){W=NM})}),q=_.yg("button",function($k){$k&&
_.k2(237477,$k,W,function(NM){W=NM})}),U=_.yg("div",function($k){$k&&_.k2(281939,$k,C,function(NM){C=NM})}),Mj=_.U3(function($k){if(($k==null?void 0:$k.button)===2)return $k.preventDefault(),!1;
var NM=_.FA();NM&&p&&_.wS(NM,p,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var fx;Q($k,O().text,O().index,O().entityMid,$k==null?void 0:(fx=$k.detail)==null?void 0:fx.wasSelectedByKeyboard);return!1}),Xt=function(){return O().type===35},ka=function(){return _.F("desktop_enable_single_suggestion_highlight")},aU=function(){return _.Jy("desktop_suggestions_panel_row_height")||0},Tg=function(){var $k;
return _.F("desktop_enable_new_video_metadata")&&(($k=O())==null?void 0:$k.hasNewVideo)===!0},iy=function(){return _.F("desktop_enable_visual_suggest")},hY=function(){return _.F("desktop_enable_entity_suggest")&&_.cUn(O())},dA=function(){return O().entitySubtitle},nT=function(){return ka()?(u==null?void 0:u())||Gx()&&!(n==null?0:n()):(u==null?void 0:u())||Gx()},u_=function(){var $k=_.DE("SBOX_SETTINGS");
return Xt()&&!($k==null?0:$k.HIDE_REMOVE_LINK)},jT=function(){return _.UMT(O(),{useEntityName:hY()})},P1,kk=!((P1=_.sH().resolve(_.q3(_.Ee)))==null||!P1()),Fe=function(){return O().subtypes.includes(870)?"SPARK_SEARCH":Xt()?_.F("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Xg=function(){return t==null?void 0:t().SUGGESTION_DISMISS_LABEL},Hb=function(){return t==null?void 0:t().SUGGESTION_DISMISSED_LABEL};
Y=_.E(_.IE(!1,void 0,"mR5xxd"));P1=Y.next().value;var n1=Y.next().value;Y=_.E(_.IE(!1,void 0,"e8LU3d"));var Yk=Y.next().value,qj=Y.next().value,Gx=Yk,fT=_.U3(function(){K(w.value.innerText);return!1}),b_=_.U3(function($k){$k.preventDefault();
return!1}),MK=_.U3(function($k){G(_.z$y(O().text));
$k.preventDefault();($k=_.FA())&&W&&_.wS($k,W,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");L(g==null?void 0:g());return!1}),v1=_.U3(function(){if(ka()&&(n==null?0:n()))return!1;
qj(!0);M(!0);return!1}),Ew=_.U3(function(){qj(!1);
M(!1);return!1}),l_=_.U3(function(){N(!0);
return!1}),$V=_.U3(function(){N(!1);
return!1}),T2=_.U3(function($k){$k.preventDefault();
if(O().entityThumbnailAttributionUrl){C&&_.Jw(_.M4(),C);var NM=O().entityThumbnailAttributionUrl;$k=O().entityName;var fx={dismissDialogEndpoint:{}};NM={commandExecutorCommand:{commands:[fx,{urlEndpoint:{url:NM,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:NM}}}]}};fx={buttonViewModel:{title:_.Q6("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:fx}}};NM={buttonViewModel:{title:_.Q6("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:NM}}};$k={dialogHeaderViewModel:{headline:{content:$k!=null?$k:_.Q6("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var H8={basicContentViewModel:{paragraphs:[{text:{content:_.Q6("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};$k={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:$k,footer:{panelFooterViewModel:{primaryButton:NM,
secondaryButton:fx,shouldHideDivider:!0}},content:H8}}}}};_.sH().resolve(_.rH).resolveCommand($k)}return!1});
Y=_.E(_.IE("",void 0,"TYNBtf"));var Pb=Y.next().value,IX=Y.next().value;_.o1(function(){u_()&&IX(P==null?void 0:P(g==null?void 0:g()));e.value&&_.k2(12453,e.value,p,function($k){p=$k})});
return _.T(_.X,{cond:P1,then:function(){var $k={};return _.T("div",{class:_.s3("ytSuggestionComponentRemovedText",($k.ytSuggestionComponentLargerRemovedText=function(){return iy()},$k)),
style:function(){return aU()>0?"height: "+aU()+"px;":""},
role:"button"},Hb)},
else:function(){var $k={},NM={};return _.T("div",{class:_.s3("ytSuggestionComponentSuggestion",($k.ytSuggestionComponentSuggestionHover=function(){return!ka()},$k.ytSuggestionComponentHighlighted=nT,$k.ytSuggestionComponentPersonalizedSuggestion=Xt,$k.ytSuggestionComponentMweb=!1,$k.ytSuggestionComponentLargerSuggestion=function(){return Tg()||iy()},$k.ytSuggestionComponentThumbnailSuggestion=function(){return iy()},$k.ytSuggestionComponentRoundedSuggestion=function(){return _.F("desktop_enable_scrollable_suggestions_panel")&&
_.F("desktop_enable_suggestions_panel_padding")},$k.ytSuggestionComponentThumbnailPadding=function(){return iy()&&!Xt()},$k)),
style:function(){return aU()>0?"height: "+aU()+"px;":""},
role:"presentation","on:mousedown":Mj,"on:mouseover":v1,"on:mouseout":Ew,el:e},_.T("div",{class:_.s3("ytSuggestionComponentText",(NM.ytSuggestionComponentScrollMargin=k,NM)),"aria-label":function(){return Tg()?O().text+" "+m9s:O().text},
id:function(){return P==null?void 0:P(g==null?void 0:g())},
"on:mousedown":Mj,role:"option"},_.T(_.X,{cond:function(){return O().type!==33},
then:function(){return _.T(_.GS,{icon:Fe,className:"ytSuggestionComponentIcon"})}}),_.T("div",{class:"ytSuggestionComponentLeftContainer"},_.T("span",{el:w,
role:"button",tabindex:0},_.T(_.rc,{each:jT},function(fx){return fx.bold?_.T("span",{class:"ytSuggestionComponentBold"},fx.text):_.T("span",null,fx.text)})),_.T(_.X,{cond:function(){return hY()&&!!O().entitySubtitle||Tg()},
then:function(){return _.T("div",{class:"ytSuggestionComponentMetadataContainer"},_.T(_.X,{cond:function(){return hY()&&!!O().entitySubtitle},
then:function(){return _.T("div",{class:"ytSuggestionComponentEntitySubtitle"},dA)}}),_.T(_.X,{cond:function(){return Tg()},
then:function(){return _.T("div",{class:"ytSuggestionComponentNewVideoContainer"},_.T("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.T("div",{class:"ytSuggestionComponentNewVideoText"},m9s))}}))}}))),_.T("div",{class:"ytSuggestionComponentRightContainer"},_.T(_.X,{cond:function(){return iy()&&O().visualSuggestUrl!==void 0},
then:function(){var fx={};return _.T("div",{class:"ytSuggestionComponentThumbnailContainer"},_.T("img",{"aria-label":WyG,class:_.s3("ytSuggestionComponentVisualSuggestThumbnail",(fx.ytSuggestionComponentCircularFrame=function(){return hY()&&O().subtypes.includes(790)},fx.ytSuggestionComponentEntitySuggestThumbnail=function(){return hY()},fx)),
src:function(){return O().visualSuggestUrl}}),_.T(_.X,{cond:function(){return hY()&&!!O().entityThumbnailAttributionUrl},
then:function(){var H8={};return _.T("span",{title:rBT,role:"tooltip"},_.T("div",{el:U,"on:mouseover":l_,"on:mouseout":$V,"on:mousedown":T2,class:_.s3("ytSuggestionComponentThumbnailOverlay",(H8.ytSuggestionComponentThumbnailOverlayHidden=function(){return!B()},H8))},_.T(_.GS,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.T(_.x4,null,_.T(_.m1,{when:function(){return iy()&&u_()}},function(){var fx={};
return _.T("button",{class:_.s3("ytSuggestionComponentRemoveLinkClearButton",(fx.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Pb()&&Pb()===(I==null?void 0:I())},fx.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!nT()},fx)),
el:q,"on:mousedown":MK,"aria-label":Xg,id:function(){return Pb()}},_.T(_.GS,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.T(_.m1,{when:function(){return!(iy()&&O().visualSuggestUrl!==void 0)&&u_()}},function(){var fx={};
return _.T("a",{class:_.s3("ytSuggestionComponentRemoveLink",(fx.ytSuggestionComponentRemoveLinkDark=kk,fx.ytSuggestionComponentRemoveLinkSelected=function(){return Pb()&&Pb()===(I==null?void 0:I())},fx)),
el:h,"on:mousedown":MK,"aria-label":Xg,tabindex:0,role:"button",id:function(){return Pb()}},Xg)}),_.T(_.m1,{when:function(){return!1}},function(){return _.T("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":fT,"on:mousedown":b_,role:"button","aria-label":zjq},_.T(_.GS,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"ml");var fNO=_.hV(["//www.google.com/textinputassistant/","/","_tia.js"]),CNs=_.D(function(){return _.T("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.T("button",{class:"ytdTextInputAssistantButton","on:click":_.U3(function(){Gx5().inputMethodsTracker.add(3);var Y,G=(Y=_.DE("SBOX_SETTINGS"))==null?void 0:Y.REQUEST_LANGUAGE;if(G)return _.fX(_.fO(fNO,14,G)),!1})},_.T("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"nl");var ejT;_.yBG=function(){this.cache=new Map};
ejT=function(Y){for(var G=_.E(Y.cache.entries()),u=G.next();!u.done;u=G.next()){var O=_.E(u.value);u=O.next().value;O=O.next().value;O.suggestions.some(function(Q){return Q.type===35})&&Y.cache.delete(u)}};var ABn=ft.SEARCH,oVO=ft.SEARCH_CLEAR_LABEL,ixT=new _.Sb("FAKE_SUGGEST_RESPONSE"),Rjp=_.D(function(Y){function G(){v1||(v1=setTimeout(function(){l_()},1E3))}
function u(CT,xk,jS){if(CT.trim()){MK=CT;_.ZE("REFINEMENTS_TUPLE",void 0);fT=!0;var Mp;xk=Qoa(Hb,xk);var pT=(Mp=Y.searchEndpoint)==null?void 0:Mp.call(Y);_.pGN(CT,xk,pT,P1.value.value,jS);l_();P1.value.value=CT;P1.value.blur();Hb.reset()}}
function O(CT){return _.a(function(xk){return xk.return(new Promise(function(jS){var Mp=new XMLHttpRequest;Mp.open("GET",_.jXh(CT),!0);Mp.withCredentials=!0;var pT=_.DE("SBOX_SETTINGS");(pT==null?0:pT.SEND_VISITOR_DATA)&&Mp.setRequestHeader("X-Goog-Visitor-Id",pT==null?void 0:pT.VISITOR_DATA);Mp.onload=function(){jS(Mp.responseText)};
Mp.onerror=function(){_.R0(Error("pm"));jS(null)};
setTimeout(function(){Mp.abort()},1E4);
Mp.send(null)}))})}
function Q(CT){var xk,jS,Mp,pT;return _.a(function(wg){switch(wg.nextAddress){case 1:return xk={credentials:"include",headers:_.NRq()},window.AbortController&&(jS=new AbortController,setTimeout(function(){jS.abort("ytsbox-suggest-timeout")},1E4),xk.signal=jS.signal),_.i3(wg,2),wg.yield(fetch(_.jXh(CT),xk),4);
case 4:Mp=wg.yieldResult.text();_.j1(wg,3);break;case 2:return pT=_.b3(wg),pT!=="ytsbox-abort-last"&&pT!=="ytsbox-suggest-timeout"&&_.R0(pT),wg.return(null);case 3:return wg.return(Mp)}})}
function M(CT){var xk,jS,Mp;return _.a(function(pT){switch(pT.nextAddress){case 1:if(xk=_.sH().resolve(_.q3(ixT)))return pT.return(xk);jS=Date.now();G();return _.F("yt_searchbox_xhr")?pT.yield(O(CT),5):pT.yield(Q(CT),4);case 4:Mp=pT.yieldResult;pT.jumpTo(3);break;case 5:Mp=pT.yieldResult;case 3:if(Mp){v1&&(clearTimeout(v1),v1=null);var wg=Hb,OW=jS,Np=CT.query.length===0;OW=Date.now()-OW;Np?wg.zeroPrefixRoundTripTime=OW:(wg.JSC$22844_totalRoundTripTime+=OW,wg.maxRoundTripTime=Math.max(wg.maxRoundTripTime,
OW),Np=Math.floor(OW/100),Np>=MSa.length?++wg.roundTripTimeHistogram[9]:++wg.roundTripTimeHistogram[MSa[Np]])}return pT.return(Mp)}})}
function t(CT){var xk,jS,Mp;return _.a(function(pT){if(pT.nextAddress==1)return(xk=Xg.cache.get(_.S4h(CT)))?pT.return(xk):pT.yield(M(CT),2);jS=pT.yieldResult;if(jS===null)return pT.return(null);Mp=new _.vkT(jS);CT.query.length===0&&Mp.suggestions.length===0||Xg.cache.set(_.S4h(CT),Mp);return pT.return(Mp)})}
function K(CT){var xk,jS;return _.a(function(Mp){if(Mp.nextAddress==1){b_=!1;var pT=MK;pT=_.h$()==="search"?(_.Gh(location.href,"search_query")||_.Gh(location.href,"q"))===pT:!1;xk=new _.bTT(CT,pT?MK:null);return Mp.yield(t(xk),2)}jS=Mp.yieldResult;if(jS===null)return Mp.return();xk.query.length===0&&(Hb.zeroPrefixSuggestionCount=jS.suggestions.length);if(xk.id<=Ew)return Hb.outOfSyncResponseCount++,Mp.return();if(document.activeElement!==P1.value)return Mp.return();Ew=xk.id;var wg=Hb,OW=jS.rawResponse[2]||
{};wg.experimentTriggeredBeforeFinal||(wg.experimentTriggeredBeforeFinal=wg.experimentTriggeredFinal);wg.experimentTriggeredFinal=!!OW.e;Hb.updateSuggestions(jS.suggestions);C(-1);dA([]);jS.suggestions!==n()&&PF(jS.suggestions.length);p(jS.suggestions);Mj(jS.suggestions.length>0&&jS.suggestions[0].type===33);Fe&&(Fe.hidden=jS.suggestions.length===0,U()?(Fe.style.minWidth="",wg=Fe.style,OW=(pT=n()[0])==null?void 0:pT.ignoredPrefix,wg.marginLeft=(OW?Math.min(OW.length*6,kk.value.offsetWidth):0).toString()+
"px"):(Fe.style.minWidth=kk.value.offsetWidth+"px",Fe.style.marginLeft="0"),Zx());_.Sd(Mp)})}
function L(){if(!fT)return!1;var CT=_.DE("REFINEMENTS_TUPLE"),xk;return CT&&((xk=CT[1])==null?0:xk.length)?(CT=CT[1].map(function(jS,Mp){return new _.sXT([jS,0,[71]],P1.value.value,Mp)}),n()!==CT&&PF(CT.length),dA([]),p(CT),Hb.updateSuggestions(CT),fT=!1,Fe.hidden=CT.length===0,b_=CT.length>0,!0):!1}
function g(){var CT=P1.value.value;(typeof CT==="string"||CT instanceof String)&&CT!==""?N(!0):N(!1)}
function P(){if(_.h$()==="search"){var CT=window.location.href;try{var xk=_.Gh(CT,"search_query")||_.Gh(CT,"q")||""}catch(jS){xk=""}xk&&(P1.value.value=xk,N(!0))}}
var I=_.E(_.IE([],void 0,"OC8EPc")),k=I.next().value;I=I.next().value;var n=k,p=I;k=_.E(_.IE(-1,void 0,"t2tVQb"));var W=k.next().value,C=k.next().value;k=_.E(_.IE(-1,void 0,"v0RZCe"));var e=k.next().value,w=k.next().value;k=_.E(_.IE(!1,void 0,"rjAnI"));var B=k.next().value,N=k.next().value;k=_.E(_.IE(!1,void 0,"SyGLvb"));var h=k.next().value,q=k.next().value;I=_.E(_.IE(!1,void 0,"tL09Cb"));k=I.next().value;I=I.next().value;var U=k,Mj=I;I=_.E(_.IE(!1,void 0,"FlH7mc"));k=I.next().value;var Xt=I.next().value;
I=_.E(_.IE(!1,void 0,"ea3fwe"));var ka=I.next().value,aU=I.next().value;I=_.E(_.IE(1,void 0,"vSK1xe"));var Tg=I.next().value,iy=I.next().value;I=_.E(_.IE([],void 0,"ijlw4b"));var hY=I.next().value,dA=I.next().value;I=_.E(_.IE(!1,void 0,"HcRey"));var nT=I.next().value,u_=I.next().value;I=_.F("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var jT=_.CH("yt-searchbox"),P1=_.CH("input"),kk=_.CH("div"),Fe,Xg=
new _.yBG,Hb=Gx5(),n1=_.sH().resolve(_.q3(_.Ee)),Yk=function(){var CT;return((CT=Y.forceDarkMode)==null?void 0:CT.call(Y))||!(n1==null||!n1())},qj=function(){return _.F("desktop_enable_scrollable_suggestions_panel")},Gx="i"+pba++,fT=!1,b_=!1,MK="",v1=null,Ew=-1,l_=function(){dA([]);
p([]);Mj(!1);Fe&&(Fe.hidden=!0);v1&&(clearTimeout(v1),v1=null);C(-1)},$V=function(CT,xk){CT.preventDefault();
u_(!0);Fe&&(Fe.hidden=!1);var jS=W();CT=n();var Mp=hY();xk=m1S(xk);jS+=xk;for(jS>=CT.length?jS=-1:jS<-1&&(jS=CT.length-1);jS!==-1&&(Mp.includes(jS)||jS>=CT.length||jS<0);)jS+=xk,jS>=CT.length&&(jS=-1);C(jS);W()>=0&&(P1.value.value=n()[W()].text,w(0),g(),CT=W(),Mp=e(),(Mp=document.getElementById(jd[CT][Mp]))&&qj()&&(CT===n().length-1?Fe.scrollTop=Fe.scrollHeight:Mp.scrollIntoView({block:"nearest",inline:"start"})))},T2=_.U3(function(CT){if(!(CT.relatedTarget instanceof Element&&CT.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){q(!0);
var xk;(xk=Y.focusCallback)==null||xk.call(Y,!0);L()||(b_?Fe.hidden=!1:(_.$s(jT.value,"yt-autonav-pause-focus",{}),K(CT.target.value)))}}),Pb=_.U3(function(CT){if(!(CT.relatedTarget instanceof Element&&CT.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){q(!1);
var xk;(xk=Y.focusCallback)==null||xk.call(Y,!1);Fe.scrollTop=0;Fe.hidden=!0;_.$s(jT.value,"yt-autonav-pause-blur",{})}}),IX=function(CT){CT=m1S(CT);
var xk;((xk=jd[W()])==null?0:xk[e()+CT])&&w(e()+CT)},$k=_.U3(function(CT){var xk=CT.keyCode,jS=CT.target;
u_(!0);switch(xk){case 13:CT.preventDefault();var Mp;if((Mp=jd[W()])==null?0:Mp[e()]){var pT;(pT=document.getElementById(jd[W()][e()]))==null||pT.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}CT=CT.shiftKey?4:3;xk=Hb;Mp=W();xk.selectedSuggestionIndex=Mp;u(jS.value,CT);break;case 27:Fe&&(Fe.hidden=!0);break;case 40:$V(CT,40);break;case 38:$V(CT,38);break;case 39:IX(39);break;case 37:IX(37);break;case 229:Hb.inputMethodsTracker.add(4);break;default:Hb.inputMethodsTracker.add(1),
uga(Hb)}return!1}),NM=_.U3(function(CT){K(CT.target.value);
g();qj()&&Fe&&(Fe.scrollTop=0);return!1}),fx=_.U3(function(){Hb.inputMethodsTracker.add(2);
uga(Hb);return!1});
_.o1(function(){if(Fe){Hb.reset();if(window.ResizeObserver){var CT=new ResizeObserver(function(){U()||(Fe.style.minWidth=kk.value.offsetWidth+"px")});
CT.observe(kk.value);(new ResizeObserver(function(){Zx()})).observe(Fe);
_.w_(function(){CT.disconnect()})}P();
window.addEventListener("yt-navigate-finish",P);window.addEventListener("yt-focus-searchbox",function(){P1.value.focus()});
var xk;Xt((xk=_.DE("SBOX_SETTINGS"))==null?void 0:xk.HAS_ON_SCREEN_KEYBOARD)}else _.o0(new _.I2("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var H8=_.U3(function(CT){CT.preventDefault();u(P1.value.value,12);return!1}),jR=_.U3(function(CT){CT.preventDefault();
var xk,jS;(xk=P1)==null||(jS=xk.value)==null||jS.focus();var Mp,pT;((Mp=P1)==null?void 0:(pT=Mp.value)==null?void 0:pT.value)!==""&&(P1.value.value="",P1.value.dispatchEvent(new Event("input")));return!1}),Io=_.U3(function(){var CT=BKo(P1.value.value,n().filter(function(xk){return xk.type!==35}).map(function(xk){return{label:xk.text}}));
_.qZ(jT.value,"yt-open-popup-action",[{openPopupAction:CT},document.body]);return!1}),vb=_.U3(function(){P1.value.focus();
return!1}),K5=function(CT,xk,jS,Mp,pT){Hb.selectedSuggestionIndex=jS;
u(xk,pT?3:1,Mp)},s_=function(CT){P1.value.value=CT;
P1.value.dispatchEvent(new Event("input"));Hb.inputMethodsTracker.add(5);uga(Hb,!0)},jd=[[]],eE=function(CT){var xk="searchbox-suggestion"+_.rd(_.rm);
jd[CT].push(xk);return xk},PF=function(CT){if(n()){jd=[[]];
for(var xk=0;xk<CT;xk++)jd.push([])}},Zx=function(){if(qj()){var CT=Fe,xk=CT.scrollTop;
CT=CT.scrollHeight-CT.clientHeight;aU(xk>=CT);xk=Math.abs(CT-xk);xk<=40?iy(1-(40-xk)/40):iy(1)}},Ad=function(){return"opacity: "+Tg()*100+"%"},yj=_.U3(function(){Zx();
return!1}),by=_.U3(function(){u_(!1);
return!1}),sI,rR={},rb={},C5={},y9={};
return _.T("yt-searchbox",{class:_.s3("ytSearchboxComponentHost",(rR.ytSearchboxComponentMweb=!1,rR.ytSearchboxComponentDesktop=!0,rR["yt-searchbox-filled-query"]=function(){return B()},rR["ytd-masthead"]=function(){return!h()},rR.ytSearchboxComponentHostDark=Yk,rR)),
role:"search",el:jT,"client-ve-type":10349},_.T("div",{el:kk,"on:click":vb,class:_.s3("ytSearchboxComponentInputBox",(rb.ytSearchboxComponentInputBoxDark=Yk,rb.ytSearchboxComponentInputBoxHasFocus=h,rb))},_.T("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":H8},_.T(_.X,{cond:h,then:function(){return _.T("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.T(_.GS,{icon:"SEARCH"}))}}),_.T("input",{el:P1,
class:_.s3("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Gx,"aria-expanded":!((sI=Fe)==null?0:sI.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":Pb,"on:focus":T2,"on:input":NM,"on:keydown":$k,"on:paste":fx,placeholder:Y.placeholderText,"aria-activedescendant":function(){var CT;return(CT=jd[W()])==null?void 0:CT[e()]},
"aria-autocomplete":"list",role:"combobox"})),_.T(_.X,{cond:k,then:function(){return _.T("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.T(CNs,null))}}),_.T(_.X,{cond:B,
then:function(){return _.T("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.T("button",{class:"ytSearchboxComponentClearButton","on:click":jR,"aria-label":Y.clearButtonAriaLabel||oVO},_.T(_.GS,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.T(_.jO,{model:{}})))}})),_.T("button",{class:_.s3("ytSearchboxComponentSearchButton",(C5.ytSearchboxComponentSearchButtonDark=Yk,C5)),
"on:click":H8,"aria-label":ABn,title:Y.placeholderText},_.T(_.GS,{icon:"SEARCH"})),_.T(_.X,{cond:function(){if(mPV()&&_.F("mweb_voice_search")&&Y.voiceSearchButton)return Y.voiceSearchButton()},
then:function(CT){var xk={};return _.T("div",{class:_.s3("ytSearchboxComponentVoiceSearchWrapper",(xk.ytSearchboxComponentHideVoiceSearchButton=function(){return B()},xk))},_.T(_.HE,{data:CT},{buttonRenderer:function(jS){return _.T(_.dY,{data:jS.data,
onButtonClickCallback:function(){}})}}))}}),_.T("div",{el:_.iq(function(CT){return void(Fe=CT)}),
id:Gx,class:_.s3("ytSearchboxComponentSuggestionsContainer",(y9.ytSearchboxComponentSuggestionsContainerDark=Yk,y9["yt-searchbox-suggestions-container"]=!1,y9.ytSearchboxComponentSuggestionsContainerScrollable=qj(),y9.ytSearchboxComponentSuggestionsContainerAnimated=I,y9)),"on:scroll":yj,"on:mousemove":by,role:"listbox",hidden:!0},_.T(_.rc,{each:n},function(CT,xk){return _.T(x9G,{suggestion:CT,isHighlighted:function(){return xk()===W()},
onClickCallback:K5,onHoverUpdateCallback:function(jS){if(_.F("desktop_enable_single_suggestion_highlight")){var Mp=xk();jS&&(w(0),C(Mp))}},
onRemoveCallback:function(jS){ejT(Xg);jS===void 0||jS<0||hY().includes(jS)||dA([].concat(_.c8(hY()),[jS]))},
labels:Y.labels,queryBuilderFunction:s_,suggestionIndex:xk,generateUniqueId:eE,highlightedId:function(){var jS;return(jS=jd[W()])==null?void 0:jS[e()]},
useScrollMargin:qj(),isKeyboardMode:nT})}),_.T(_.X,{cond:function(){return!U()&&n().find(function(CT){return CT.type!==35})&&_.F("searchbox_reporting")},
then:function(){return _.T("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Io},_.Q6("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.T(_.X,{cond:function(){return!ka()&&qj()},
then:function(){return _.T("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.T("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Ad}))}})))},"pl");
Rjp.idomCompat={callbacks:{focusCallback:!0}};_.hR(Rjp,"yt-searchbox",{props:{searchEndpoint:_.AC,placeholderText:_.AC,labels:_.AC,voiceSearchButton:_.AC,focusCallback:_.wH,clearButtonAriaLabel:_.AC,forceDarkMode:_.AC}});var BN=function(){var Y=_.Z.apply(this,arguments)||this;Y.menuButtonTargetId="topbar-guide-menu";Y.narrow=!1;Y.menuStrings={BACK_ALT_LABEL:_.Q6("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Q6("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Q6("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Q6("SBOX_PLACEHOLDER",void 0,"Search")};Y.pageDarkTheme=document.documentElement.hasAttribute("dark");Y.watchPageScrollTop=0;Y.theater=!1;Y.fullscreen=!1;Y.disableFrostedGlassDuringViewTransition=
!1;Y.desktopUnifiedSearchPanelMode=_.F("desktop_enable_unified_search_panel");Y.aiCompanionEnabled=_.F("enable_ai_companion");Y.ytSearchboxFocused=!1;Y.searchboxLabels=_.DE("SBOX_LABELS");Y.topbarIsAboveChipbar=!1;Y.isDarkThemeForced=!1;Y.areGhostCardsHidden=!1;Y.guideKeyboardToggle=!1;Y.voiceSearchManager=uLV();Y.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};Y.setYtSearchboxFocused=function(G){Y.ytSearchboxFocused=G};
Y.toggleFrostedGlassDuringViewTransition=function(G){Y.disableFrostedGlassDuringViewTransition=G};
return Y};
_.m(BN,_.Z);_.H=BN.prototype;_.H.computeSimpleText=function(Y){return _.Ri(Y)};
_.H.onDarkChanged=function(){for(var Y=_.E(this.buttons||[]),G=Y.next();!G.done;G=Y.next())G.value.isOverlay=!!this.dark;Y=_.E(this.buttonRenderers||[]);for(G=Y.next();!G.done;G=Y.next())G.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.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var Y=_.or(_.AM(),"aa");_.$3(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||Y||(this.isDarkThemeForced=this.dark=!0);this.logoType?(Y=this.hostElement.querySelector("#masthead-logo"))&&(_.F("polymer_on_demand_shady_dom")?Y.setAttribute("slot","masthead-logo-old"):_.Oy(Y)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Jh(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Jh(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.H.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Jh(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Jh(this,this.onSetTheaterModeEnabled))};
_.H.dataChanged=function(){var Y=this.data;Y&&(this.voiceEnabled=Y.voiceSearchButton?uLV().isSupported():!1,_.uE(_.O2(),this.menuButtonTargetId,this.guideButton),Y.onReceivedActions&&Y.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.UK(this.hostElement,Y.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&Y&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.$3(this.hostElement,"dark",!1),_.$3(this.hostElement,"theater",!1),(Y=
this.hostElement.querySelector("#masthead-logo"))&&(_.F("polymer_on_demand_shady_dom")?Y.setAttribute("slot","masthead-logo-old"):_.Oy(Y))))};
_.H.computeCenterHidden=function(){var Y;return this.data&&!((Y=this.data.searchbox)==null?0:Y.fusionSearchboxRenderer)};
_.H.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.$3(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.H.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.H.onWatchScroll=function(Y){this.watchPageScrollTop=Y.detail||0;this.updateMastheadBackgroundOpacity()};
_.H.onFullscreenChangeAction=function(Y){Y||(this.watchPageScrollTop=0);this.fullscreen=Y;this.updateMastheadBackgroundOpacity()};
_.H.onSetTheaterModeEnabled=function(Y){this.theater=Y.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.H.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?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(Y){Y=this.calculateBackgroundOpacity(Y);this.background.style.opacity=""+Y};
_.H.calculateBackgroundOpacity=function(Y){var G=this.theater?.6:0,u=this.hostElement.clientHeight/2;return Math.min(Math.max(Y,0),u)/u*(1-G)+G};
_.H.shouldShowCinematicMastHead=function(){var Y=_.F("kevlar_watch_grid")&&!_.F("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(Y||this.pageDarkTheme)};
_.H.focusGuide=function(){this.guideButton.focus()};
_.H.onGuideToggleTap=function(){_.$s(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.H.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.H.onGuideToggleHover=function(){_.$s(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(Y){for(Y=_.wG(Y);Y[0];){var G=Y.shift();if(G instanceof Element&&G.id==="kbd")return!1}return!0};
_.H.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.H.pausePlayer=function(){var Y;(Y=_.N5())==null||Y.pause();this.pauseMiniplayer()};
_.H.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var Y;(Y=_.sH().resolve(_.yo).getPlayerElement())==null||Y.pause()}};
_.H.isMiniplayerActive=function(){return _.sH().resolve(_.yo).isMiniplayerActive()};
_.H.updateNarrowFromBinding=function(Y){this.narrow=Y.detail.value};
_.H.onYtSendFeedbackAction=function(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.H.registerWithViewTransitionManager=function(){X0x(_.sH().resolve(_.T7),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.Uk.Object.defineProperties(BN.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var Y;return!!(this.aiCompanionEnabled&&((Y=this.data)==null?0:Y.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var Y;return(Y=this.data)==null?void 0:Y.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
BN.prototype.narrowChanged=BN.prototype.narrowChanged;BN.prototype.onWatchPageChange=BN.prototype.onWatchPageChange;BN.prototype.onRendererStamperFinished=BN.prototype.onRendererStamperFinished;BN.prototype.dataChanged=BN.prototype.dataChanged;BN.prototype.onDarkChanged=BN.prototype.onDarkChanged;_.S([_.x(_.aZ),_.V("design:type",Object)],BN.prototype,"ironResizableBehavior",void 0);_.S([_.x(F6g),_.V("design:type",Object)],BN.prototype,"ytdExpandableInputBehavior",void 0);
_.S([_.x(_.y8.YtdGuideStateAwareBehavior),_.V("design:type",Object)],BN.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],BN.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],BN.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],BN.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.me),_.V("design:type",Object)],BN.prototype,"ytdReduxBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],BN.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],BN.prototype,"narrow",void 0);_.S([_.R(),_.V("design:type",Object)],BN.prototype,"logoType",void 0);_.S([_.R(),_.V("design:type",Boolean)],BN.prototype,"voiceEnabled",void 0);
_.S([_.R(),_.V("design:type",Object)],BN.prototype,"menuStrings",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],BN.prototype,"dark",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],BN.prototype,"pageDarkTheme",void 0);_.S([_.R(),_.V("design:type",Object)],BN.prototype,"watchPageScrollTop",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.e6j}),_.V("design:type",Boolean)],BN.prototype,"isWatchPage",void 0);
_.S([_.R({reflectToAttribute:!0,selector:_.AsT}),_.V("design:type",Boolean)],BN.prototype,"isShortsPage",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],BN.prototype,"theater",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],BN.prototype,"fullscreen",void 0);_.S([_.R({reflectToAttribute:!0,selector:_.wfa}),_.V("design:type",String)],BN.prototype,"frostedGlassMode",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],BN.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],BN.prototype,"aiCompanionEnabled",void 0);_.S([_.R(),_.V("design:type",Object)],BN.prototype,"ytSearchboxFocused",void 0);_.S([_.Q4("#buttons > *"),_.V("design:type",Array)],BN.prototype,"buttons",void 0);_.S([_.Q4("ytd-button-renderer"),_.V("design:type",Array)],BN.prototype,"buttonRenderers",void 0);
_.S([_.Ox("#background"),_.V("design:type",HTMLDivElement)],BN.prototype,"background",void 0);_.S([_.Ox("#guide-button"),_.V("design:type",Object)],BN.prototype,"guideButton",void 0);_.S([_.Ox("#logo"),_.V("design:type",Object)],BN.prototype,"logo",void 0);_.S([_.R({computed:"computeButtonOverride(dark)"}),_.V("design:type",Object)],BN.prototype,"buttonOverrides",void 0);
_.S([_.Ex("dark"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BN.prototype,"onDarkChanged",null);_.S([_.R({value:function(){return this.onVoiceTap.bind(this)}}),
_.V("design:type",Function)],BN.prototype,"boundOnTapVoiceButton",void 0);_.S([_.R(),_.V("design:type",Object)],BN.prototype,"topbarIsAboveChipbar",void 0);_.S([_.R(),_.V("design:type",String),_.V("design:paramtypes",[])],BN.prototype,"guideIcon",null);_.S([_.f("voiceEnabled"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],BN.prototype,"shouldShowVoiceSearchButton",null);
_.S([_.f("data.aiCompanionButton","aiCompanionEnabled"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],BN.prototype,"shouldShowAiCompanionButton",null);_.S([_.f("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],BN.prototype,"voiceSearchButton",null);_.S([_.f("aiCompanionEnabled"),_.V("design:type",String),_.V("design:paramtypes",[])],BN.prototype,"narrowQuery",null);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BN.prototype,"dataChanged",null);_.S([_.Yo("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BN.prototype,"onRendererStamperFinished",null);_.S([_.Ex("isWatchPage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BN.prototype,"onWatchPageChange",null);
_.S([_.Ex("narrow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BN.prototype,"narrowChanged",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-masthead"})],BN);
_.d(BN,"ytd-masthead",function(){if(INg!==void 0)return INg;var Y=document.createElement("template");_.r(Y,'\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="[[narrowQuery]]" 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 id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" 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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return INg=Y},{mode:2});var wbg;var ZxG={},D9T={},hj5={},d95={},bxg=(d95.OFFLINE=(ZxG["publicytnetworkstatus-online"]="BACK_ONLINE",ZxG),d95.ONLINE=(D9T["publicytnetworkstatus-offline"]="OFFLINE",D9T),d95.BACK_ONLINE=(hj5["publicytnetworkstatus-offline"]="OFFLINE",hj5.TIMER_TRIGGER="ONLINE",hj5),d95),$X=function(){var Y=_.Z.apply(this,arguments)||this;Y.currentState="ONLINE";Y.scheduledJobId=0;Y.bannerString="";Y.bannerVe=null;Y.networkStatusManagerInstance=new _.lB;return Y};
_.m($X,_.Z);_.H=$X.prototype;_.H.attached=function(){var Y=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){Y.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){Y.stateChangeHandler("publicytnetworkstatus-offline")})};
_.H.detached=function(){var Y=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){Y.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){Y.stateChangeHandler("publicytnetworkstatus-offline")})};
_.H.enterState=function(Y){var G=this;this.scheduledJobId&&_.AN.cancelJob(this.scheduledJobId);Y==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):Y==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Q6("NO_INTERNET_CONNECTION",void 0,"No internet connection")):Y==="BACK_ONLINE"&&(this.bannerString=_.Q6("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.WY(_.AN,function(){G.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=Y};
_.H.stateChangeHandler=function(Y){(Y=bxg[this.currentState][Y])&&this.enterState(Y)};
_.H.logVisibility=function(Y){var G=_.FA();this.createBannerVe(Y);G&&this.bannerVe&&(Y?_.oK(G,[this.bannerVe]):_.ig(G,[this.bannerVe]))};
_.H.createBannerVe=function(Y){!this.bannerVe&&Y&&(this.bannerVe=_.VZ(37929),_.vJ(_.M4(),this.bannerVe))};
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",String)],$X.prototype,"currentState",void 0);_.S([_.R(),_.V("design:type",Object)],$X.prototype,"scheduledJobId",void 0);_.S([_.R(),_.V("design:type",Object)],$X.prototype,"bannerString",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-network-status-banner"})],$X);
_.d($X,"ytd-network-status-banner",function(){if(wbg!==void 0)return wbg;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return wbg=
Y},{mode:1});var Swo;var qT=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};Y.hidden=!0;Y.frostedGlass=_.F("web_frosted_glass");return Y};
_.m(qT,_.Z);qT.prototype.computeHidden=function(Y){return Y&&Y.status?!1:!0};
qT.prototype.handleUpdatePermissionRoleCommand=function(Y){if(Y=_.z(Y,_.zFU))if(Y=_.z(Y.renderer,_.pOM))this.data=Y};
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],qT.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],qT.prototype,"componentBehavior",void 0);_.S([_.R({value:!0,computed:"computeHidden(data)"}),_.V("design:type",Object)],qT.prototype,"hidden",void 0);_.S([_.R(),_.V("design:type",Object)],qT.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],qT.prototype,"frostedGlass",void 0);
_.S([_.pD({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],qT);
_.d(qT,"ytd-permission-role-bottom-bar-renderer",function(){if(Swo!==void 0)return Swo;var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);return Swo=Y},{mode:1});var Nbn;var joz;var WGB={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var sZ=function(){return _.Z.apply(this,arguments)||this};
_.m(sZ,_.Z);_.H=sZ.prototype;_.H.attached=function(){this.JSC$22948_scroller&&(this.JSC$22948_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22948_scroller.attached&&typeof this.JSC$22948_scroller.attached==="function"&&this.JSC$22948_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(u){u.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var Y=_.l0(this.hostElement);Y.querySelector("tp-yt-paper-radio-group").selected="";var G=Y.querySelector("#reason-text");G&&(G.value="");Y.querySelector("#description-text").value=""}};
_.H.canSubmit=function(Y,G){_.$s(this.hostElement,"yt-invalidate-popup-tabbables");return!(Y&&G)};
_.H.onCancel=function(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.H.onSubmit=function(){var Y=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(M){return M.active}).map(function(M){return M.innerText.trim()}),G=this.hostElement.querySelector("tp-yt-paper-radio-group"),u=G.selectedItem,O=u.name;
u=u.innerText.trim();var Q=G.querySelector("#reason-text");G=void 0;Q&&(G=Q.value);(Q=this.descriptionText.value)&&(Q=Q.trim());rmj(this.data.searchQuery,Y,O,u,Q,G);_.qZ(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.H.sendFormSubmitToast=function(){var Y=_.dK(_.Q6("SBOX_INAPPROPRIATE_TOAST"));_.qZ(this.hostElement,"yt-open-popup-action",[Y,this])};
_.H.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(Y){return Y.active})};
_.H.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
sZ.prototype.onIronSelect=sZ.prototype.onIronSelect;sZ.prototype.onIronChange=sZ.prototype.onIronChange;sZ.prototype.dataChanged=sZ.prototype.dataChanged;_.S([_.R(),_.V("design:type",Object)],sZ.prototype,"data",void 0);_.S([_.R({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.V("design:type",Boolean)],sZ.prototype,"submitDisabled",void 0);_.S([_.R(),_.V("design:type",Boolean)],sZ.prototype,"suggestionSelected",void 0);
_.S([_.R(),_.V("design:type",Boolean)],sZ.prototype,"catagorySelected",void 0);_.S([_.Ox("#scroller"),_.V("design:type",Object)],sZ.prototype,"JSC$22948_scroller",void 0);_.S([_.Ox("#description-text"),_.V("design:type",Object)],sZ.prototype,"descriptionText",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sZ.prototype,"dataChanged",null);
_.S([_.Yo("iron-change"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sZ.prototype,"onIronChange",null);_.S([_.Yo("iron-select"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sZ.prototype,"onIronSelect",null);_.S([_.pD({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],sZ);
_.d(sZ,"ytd-search-suggestion-report-dialog",function(){if(joz!==void 0)return joz;var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return joz=Y},{mode:1});var cN=function(Y){var G=Y.openPopupAction;var u=Y.target;var O=Y.container;var Q=Y.popupContainerConfig;var M=Y.getElement;Y=Y.removeWhenClosed===void 0?!1:Y.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=G;this.target=u;this.container=O;this.popupContainerConfig=Q;this.getElement=M;this.JSC$22954_popupConfig=this.popupContainerConfig.JSC$21635_popupConfig[this.openPopupAction.popupType];this.rendererName=(G=this.getName())?_.ZKu(G,RqV(this.popupContainerConfig,
G)):"";_.F("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=Y);this.createPopup()};
cN.prototype.updatePopup=function(Y){this.openPopupAction=Y;this.JSC$22954_popupConfig=this.popupContainerConfig.JSC$21635_popupConfig[this.openPopupAction.popupType];VSo(this);_.F("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
cN.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var $9G=function(Y,G,u){(G=G&&Y.JSC$22954_popupConfig.narrowProperties?Y.JSC$22954_popupConfig.narrowProperties:Y.JSC$22954_popupConfig.properties)&&u!==void 0&&(G.isAriaModal=u);lNs(Y,G);Y.isRtl()&&lNs(Y,Y.JSC$22954_popupConfig.rtlProperties);Bbo(Y)};
cN.prototype.createPopup=function(){var Y=this.JSC$22954_popupConfig.component;if(this.popupContent=qw5(this,this.rendererName)){if(Y){this.popup=qw5(this,Y);var G=this.popupContent;_.F("web_enable_wrapper_for_cow_component_in_popup")&&(G=document.createElement("div"),G.appendChild(this.popupContent));_.F("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$22954_popupConfig.slotName&&G.setAttribute("slot",this.JSC$22954_popupConfig.slotName);Y=this.popup;var u=this.container.tagName.toLowerCase(),
O=_.hh(G);_.qPj(_.b0(Y),_.N7(G,u,O));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.F("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.l0(this.container).appendChild(this.popup)}};
var VSo=function(Y){var G,u,O=(G=Y.openPopupAction.accessibilityData)==null?void 0:(u=G.accessibilityData)==null?void 0:u.label;O&&(Y.popup.ariaLabel=O);var Q;((Q=Y.popupContent.polymerController)!=null?Q:Y.popupContent).data=(0,_.gX.unsafeClone)(Y.openPopupAction.popup[Y.getName()]);Y.popupContent.duration=son(Y);Y.popupContent.positionType=Y.openPopupAction.position;var M=Y.openPopupAction.properties;M&&Object.keys(M).forEach(function(t){Y.popupContent[t]=M[t]})},lNs=function(Y,G){if(G)for(var u=
_.E(Object.keys(G)),O=u.next();!O.done;O=u.next())O=O.value,Y.popup[O]=G[O]},Bbo=function(Y){if(Y.openPopupAction.position){var G=Y.JSC$22954_popupConfig.positionalProperties&&Y.JSC$22954_popupConfig.positionalProperties[Y.openPopupAction.position],u=Y.JSC$22954_popupConfig.rtlPositionalProperties&&Y.JSC$22954_popupConfig.rtlPositionalProperties[Y.openPopupAction.position];
G=Y.isRtl()&&u?u:G;G.shiftedHorizontalOffset&&(u=Y.popup.style.display,Y.popup.style.display="block",Y.popupContent&&Y.popup.positionTarget&&Y.popupContent.clientWidth>Y.popup.positionTarget.clientWidth&&(G.horizontalOffset=Y.popup.positionTarget.clientWidth/2-G.shiftedHorizontalOffset),Y.popup.style.display=u);lNs(Y,G)}},cBp=function(Y,G,u){if(G){for(var O=_.E(Object.keys(G)),Q=O.next();!Q.done;Q=O.next())Q=Q.value,Y.popup.style[Q]=G[Q];
if(u)for(G=_.E(Object.keys(u)),O=G.next();!O.done;O=G.next())O=O.value,Y.popup.style[O]=u[O]}};
cN.prototype.getName=function(){return _.R1(this.openPopupAction.popup,"renderer")||_.R1(this.openPopupAction.popup,"dialog")||_.R1(this.openPopupAction.popup,"model")||void 0};
var son=function(Y){Y=Y.openPopupAction.durationHintMs;return Y===0?Y:Math.max(4E3,Y||4E3)};
cN.prototype.isRtl=function(){return _.DE("HTML_DIR")==="rtl"};
var qw5=function(Y,G){Y=Y.getElement(G,Y.target);Y==null&&_.R0(new _.I2("popup getElement returned null",G));return Y};var U9g={};
U9g.YtPopupContainerBehavior=[_.m9.YtComponentBehavior,_.vZ.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.expandToFullWidth=this.isAriaModal=!1;this.doNotCacheList_=["yt-dialog-view-model"]},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Sc(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.NZ(this.hostElement)},
closePopup:function(Y){var G=this.createCacheKey(void 0,Y);this.popups_[G]&&this.handleClosePopupAction_(void 0,Y)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.AN.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.AN.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(Y){Y.opened&&Y.keepBelowPlayer&&this.ensurePopupBelowPlayer(Y)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var Y in this.popups_){var G=this.popups_[Y];if(G.popup.scrollAction==="refit"){var u=G.popup.positionTarget.getBoundingClientRect(),O=G.popup;u=u.top;var Q=G;if(!Q.naturalHeight){Q.popup.hidden=!1;Q.popup.style.position="fixed";Q.popup.style.top="0px";Q.popup.style.left="0px";var M=Q.popup.getBoundingClientRect();Q.naturalHeight=M.bottom-M.top;Q.popup.refit()}O.hidden=!(u>=Q.naturalHeight+60);G.popupContent.clientHeight===0&&G.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(Y){this.popupContainerConfig=Y},
handleOpenPopupAction:function(Y,G,u){var O=Y.openPopupAction,Q=_.sH().resolve(_.q3(_.F6))&&O.popupType==="TOAST";Q&&!O.uniqueId&&(O.uniqueId=VJ());if(!_.F("popup_container_parent_target_killswitch")){var M;G=(M=this.getParentTarget(G))!=null?M:G}var t=this.ensurePopup_(O,G);return new _.a0(function(K){t.then(function(L){if(!L)return K();this.maybeCreateNarrowMediaQuery_();var g=this.createCacheKey(L.rendererName,L.openPopupAction.uniqueId);if(O.showOncePerUniqueId){if(this.shownPopupKeys_.has(g))return K();
this.shownPopupKeys_.add(g)}g=this.popups_[g];var P=!(!g||!g.openPopupAction.beReused);P=!!O.reusePopup||P;if(L.popup.opened&&!P){Q&&!L.openPopupAction.replacePopup||this.handleClosePopupAction_(L.rendererName,L.openPopupAction.uniqueId);P=O.popupType==="DIALOG"&&!_.F("popup_container_dialog_reopen_killswitch");if(!Q&&!P&&g&&g.target==G&&(_.F("popup_container_event_target_check_killswitch")||g.target==u)&&!L.openPopupAction.replacePopup)return K();_.sk(L.popup,function(){this.completeOpenPopupAction_(O,
G,L);K()}.bind(this))}else L.popup.opened?L.updatePopup(O):this.completeOpenPopupAction_(O,G,L),K()}.bind(this))}.bind(this))},
getParentTarget:function(Y){if(Y&&Y instanceof HTMLElement)for(var G=_.E(Object.entries(this.popups_)),u=G.next();!u.done;u=G.next())if(u=_.E(u.value),u.next(),u=u.next().value,this.popupClosesOnClick(u)&&u.popup.contains(Y))return u.target},
popupClosesOnClick:function(Y){return Y.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(Y.rendererName.toUpperCase())},
completeOpenPopupAction_:function(Y,G,u){u.updatePopup(Y);var O=this.narrowMediaQuery_.queryMatches,Q=this.isAriaModal;Y=this.expandToFullWidth;u.target=G;var M;G=((M=u.target.polymerController)!=null?M:u.target).popupPositionTarget||u.target;u.JSC$22954_popupConfig.targetContainer&&(G=u.container);u.popup.positionTarget=G;u.popupContent.positionTarget=G;Bbo(u);u.JSC$22954_popupConfig.forceFocus&&(u.popupContent.style.outline="none");u.popupContent.tabIndex=-1;u.JSC$22954_popupConfig.narrowProperties&&
(u.popup.style.position="static");u.JSC$22954_popupConfig.preventAutonav&&u.popup.setAttribute("prevent-autonav",!0);u.JSC$22954_popupConfig.forceCloseOnOutsideClick&&u.popup.setAttribute("force-close-on-outside-click",!0);$9G(u,O,Q);M={};M.width=Y?"100%":"";cBp(u,u.JSC$22954_popupConfig.styles,M);u.isRtl()&&cBp(u,u.JSC$22954_popupConfig.rtlStyles,M);if(!u.openPopupAction.shouldStopParentSignal){var t;Y=(t=u.target.polymerController)!=null?t:u.target;(u.popupContent.startForwardingEvents||u.popupContainerConfig.forwardingEnabledPopups.has(u.rendererName))&&
Y.parentComponent!==u.popupContent&&u.popupContent!==u.target&&u.target!==document.body&&(u.popupContent.startForwardingEvents?u.popupContent.startForwardingEvents(u.popupContainerConfig.forwardedEvents,u.target):(u.JSC$22954_eventForwarder||(u.JSC$22954_eventForwarder=new _.G0(u.popupContent)),u.JSC$22954_eventForwarder.start(u.popupContainerConfig.forwardedEvents,u.target)))}u=u.popup;u.addEventListener("iron-overlay-opened",_.Jh(this,this.onPopupIronOverlayOpened_));u.addEventListener("iron-overlay-closed",
_.Jh(this,this.onPopupIronOverlayClosed_));u.addEventListener("iron-overlay-canceled",_.Jh(this,this.onPopupIronOverlayCanceled_));u.addEventListener("yt-refit",_.Jh(this,this.refitPopup_));u.addEventListener("yt-invalidate-popup-tabbables",_.Jh(this,this.handleInvalidatePopupTabbables_));u.open()},
getPopupDurationMs_:function(Y){return Y.durationHintMs===0?Y.durationHintMs:Math.max(4E3,Y.durationHintMs||4E3)},
handleClosePopupAction_:function(Y,G){var u=_.F("web_popup_cache_key_killswitch")||!!G;if(Y||u){var O=this.createCacheKey(Y,G);Y=(Y=this.popups_[O])&&Y.popup}else Y=_.z$E(_.xc);if(Y&&Y.close){if(G=_.sH().resolve(_.q3(_.SO)))Y.restoreFocusOnClose=G.isKeyBoardInUse();if(Y&&Y.positionTarget&&!_.F("ytpopup_close_sibling_popups_killswitch")){G=_.E(Object.entries(this.popups_));for(u=G.next();!u.done;u=G.next()){var Q=_.E(u.value);u=Q.next().value;Q=Q.next().value;var M=void 0,t=void 0,K=void 0,L=void 0,
g=void 0,P=void 0;Y.positionTarget==((M=Q)==null?void 0:(t=M.popupContent)==null?void 0:t.positionTarget)&&Q.popup&&(!((K=Q.popup)==null?0:(L=K.style)==null?0:L.display)||((g=Q.popup)==null?void 0:(P=g.style)==null?void 0:P.display)!=="none")&&(M=void 0,(M=Q.popup)==null?0:M.close)&&(Q.popup.close(),this.removePopup_(Q.popup,u))}Y&&this.popups_[O]&&(Y.close(),this.removePopup_(Y,O))}else Y.close(),this.removePopup_(Y,O)}},
handleClosePopupCommand_:function(Y){Y.closePopupCommand&&Y.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,Y.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(Y){var G={},u;for(u in this.popups_)if(G={key$jscomp$1247:G.key$jscomp$1247},G.key$jscomp$1247=u,!Y||!Y.some(function(M){return function(t){return t==M.key$jscomp$1247}}(G))){var O=this.popups_[G.key$jscomp$1247],Q=O.popup;
_.sH().resolve(_.q3(_.F6))&&O.openPopupAction.popupType==="TOAST"||(Q&&Q.close&&Q.close(),this.removePopup_(Q,G.key$jscomp$1247))}},
handleClosePopupsAction_:function(Y){Y.forEach(function(G){var u=this.popups_[G];u&&((u=u.popup)&&u.close&&u.close(),this.removePopup_(u,G))}.bind(this))},
handleGetPopupOpenedAction_:function(Y,G){return(G=this.createCacheKey(Y,G))&&this.popups_[G]?this.popups_[Y].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var Y=[],G;for(G in this.popups_){var u=this.popups_[G];u.popup.opened&&Y.push(u)}return Y},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(Y,G){_.F("ytpopup_disable_default_html_caching")&&Y&&Y.removeWhenClosed&&(_.l0(this.hostElement).removeChild(Y),G&&this.popups_[G]&&delete this.popups_[G])},
shouldReusePopup_:function(Y){return!(!Y||!Y.reusePopup)||!(!Y||!Y.beReused)},
ensurePopup_:function(Y,G){this.maybeCreateNarrowMediaQuery_();var u=_.R1(Y.popup,"renderer")||_.R1(Y.popup,"dialog")||_.R1(Y.popup,"model");if(!u)return _.v$();u=_.ZKu(u,RqV(this.popupContainerConfig,u));return _.v$(this.getAndMaybeCreatePopup_(Y,u,G))},
getAndMaybeCreatePopup_:function(Y,G,u){var O=this.createCacheKey(G,Y.uniqueId);if(this.popups_[O])return this.popups_[O];Y=new cN({openPopupAction:Y,target:u,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(G)});return this.popups_[O]=Y},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(Y){return _.F("ytpopup_disable_default_html_caching")?_.F("ytpopup_disable_cache_allowlist")?Y&&this.doNotCacheList_.includes(Y):Y&&Y.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",_.Jh(this,this.openPopupQueryMatchesChanged_)),_.l0(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(Y){Y=Y.detail.value;for(var G in this.popups_)$9G(this.popups_[G],Y)},
onPopupIronOverlayClosed_:function(Y){var G=Y.currentTarget,u=_.XWj(G);u=u.length>0?u[0]:G;if(u.is!=="ytd-reel-watch-while-dialog-renderer"||Y.target.is!=="tp-yt-iron-dropdown"){Y.detail.popup=G;Y.detail.popupRenderer=u;var O,Q={context:{openingElement:((O=this.popups_[(u==null?void 0:u.is)||""])==null?void 0:O.target)||void 0}};Object.assign(Q,Y.detail);var M;_.$s((M=u.hostElement)!=null?M:u,"yt-popup-closed",Q);G.removeEventListener("yt-refit",_.Jh(this,this.refitPopup_));G.removeEventListener("yt-invalidate-popup-tabbables",
_.Jh(this,this.handleInvalidatePopupTabbables_));G.removeEventListener("iron-overlay-canceled",_.Jh(this,this.onPopupIronOverlayCanceled_));G.removeEventListener("iron-overlay-closed",_.Jh(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(G)}},
onPopupIronOverlayCanceled_:function(Y,G){var u=Y.currentTarget,O=_.XWj(u);O=O.length>0?O[0]:u;if(O.is!=="ytd-reel-watch-while-dialog-renderer"||Y.target.is!=="tp-yt-iron-dropdown"){var Q;_.$s((Q=O.hostElement)!=null?Q:O,"yt-popup-canceled",Y.detail);Q=G?_.wG(G):null;(!G||["click","tap"].includes(G.type))&&!u.hasAttribute("force-close-on-outside-click")&&u.positionTarget&&Q&&Q.includes(u.positionTarget)&&Y.preventDefault();u.restoreFocusOnClose=_.Gp.keyboardEventMatchesKeys(G,"esc")}},
onPopupIronOverlayOpened_:function(Y){Y=Y.currentTarget;var G=_.XWj(Y);G=G.length>0?G[0]:Y;var u,O;_.$s((u=G.hostElement)!=null?u:G,"yt-popup-opened",(O=G.hostElement)!=null?O:G);Y.keepBelowPlayer&&(this.ensurePopupBelowPlayer(Y,!0),this.dynamicallyPositionedElements_.add(Y));u=_.sH().resolve(_.q3(_.SO));O=!!G.querySelector("#toast");u&&u.isKeyBoardInUse()&&!O&&(typeof G.focusFirstItem==="function"?G.focusFirstItem():(G=_.nSR(Y),G.length&&G[0].focus()));Y.removeEventListener("iron-overlay-opened",
_.Jh(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(Y){Y=Y.currentTarget;Y.refit&&Y.refit()},
refitPopups_:function(){for(var Y in this.popups_)this.popups_[Y].refit()},
handleInvalidatePopupTabbables_:function(Y){Y=Y.currentTarget;Y.invalidateTabbables&&Y.invalidateTabbables()},
createCacheKey:function(Y,G){return _.F("web_popup_cache_key_killswitch")?G?Y+"#"+G:Y:G?"#"+G:Y},
openSheet:function(Y,G,u){var O=Y==null?void 0:Y.openPopupActionCommand;if(!O&&(Y==null?0:Y.viewModel)){if(Y.sheetPosition)a:switch(Y.sheetPosition){case "SHEET_POSITION_RIGHT":O="OPEN_POPUP_POSITION_RIGHT";break a;default:O="OPEN_POPUP_POSITION_UNKNOWN"}else O=void 0;O={openPopupAction:{popup:{sheetViewModel:Y.viewModel},popupType:"CONTEXTUAL_SHEET",position:O}}}if(O){var Q;this.expandToFullWidth=(Q=Y==null?void 0:Y.expandToFullWidth)!=null?Q:!1;this.handleOpenPopupAction(O,G,u===void 0?G:u)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var Y=this;return _.a(function(G){return G.return(Y.handleGetOpenedPopupsAction_().filter(function(u){var O;return((O=u.openPopupAction)==null?void 0:O.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(Y,G,u){if(_.F("web_dialog_utils_killswitch")){var O=Y==null?void 0:Y.openPopupActionCommand,Q=(u==null?0:u.ariaLabel)?{accessibilityData:{accessibilityData:{label:u.ariaLabel}}}:void 0;!O&&(Y==null?0:Y.viewModel)&&(O={openPopupAction:Object.assign({},{popup:{dialogViewModel:Y.viewModel},popupType:(u==null?0:u.isModal)?"MODAL":"DIALOG"},Q&&Q)});O&&this.handleOpenPopupAction(O,G)}else{if(Q=Y==null?void 0:Y.viewModel){var M=u=u===void 0?{}:u;u=M.ariaLabel;Q={popup:{dialogViewModel:Q},
popupType:M.isModal?"MODAL":"DIALOG"};M={accessibilityData:{label:u}};u&&(Q.accessibilityData=M);Q={openPopupAction:Q}}else Q=void 0;if(Q=(O=Q)!=null?O:Y==null?void 0:Y.openPopupActionCommand)this.isAriaModal=_.F("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(Q,G)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var Y=this;return _.a(function(G){return G.return(Y.handleGetOpenedPopupsAction_().filter(function(u){var O;return((O=u.openPopupAction)==null?void 0:O.popupType)==="DIALOG"}).length>0)})}}];var vVO;var JB5;var YTp=_.hV(["about:blank"]),UZ=function(){var Y=_.Z.apply(this,arguments)||this;Y.isMuted=!1;Y.pageLoadTimeoutId=void 0;Y.enableA11yFocusFix=_.F("enable_a11y_focus_fix_for_mac_panel_on_desktop");Y.moveFocusToContent=function(){Y.iframe.focus()};
return Y};
_.m(UZ,_.Z);_.H=UZ.prototype;_.H.dataChanged=function(){var Y=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var G=this.data.url,u=_.ow(G);_.F("enable_yt_ata_iframe_authuser")?(u=_.ow(G),_.Er(this.iframe,x1S(u))):_.Er(this.iframe,u);this.pageLoadTimeoutId=_.WY(_.FO(),function(){return void Y.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.YS({destination:window,iframe:this.iframe,origin:_.cXU(u.toString()),channelName:"ataiframe",onMessage:_.Ysl(U8b,function(O){v8b(O.data)?(O=_.Gn(O.data,1,_.ao,_.bd()),O.length!==1?_.R0(Error("qm")):(O=O[0],O===3?(Y.isMuted=!0,Y.logStateChanged({adMuteRequested:!0})):O===1&&Y.close())):_.R0(Error("rm"))}),
onEstablished:function(){Y.cancelPageLoadTimeout();Y.logStateChanged({pageLoadSucceeded:!0})}})}};
_.H.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.FO().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.H.logStateChanged=function(Y){var G;if((G=this.data)==null?0:G.trackingParams)Y={adsClientData:{aboutThisAdData:Y}},_.M4().stateChanged(this.data.trackingParams,Y)};
_.H.close=function(){_.qZ(this.hostElement,"yt-close-popup-action",[this.is])};
_.H.handlesPopupClosed=function(Y,G){var u=this,O,Q;return _.a(function(M){if(M.nextAddress==1)return _.DE("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.qZ(u.hostElement,"on-about-this-ad-popup-closed",[u.isMuted,G]),M.jumpTo(0)):Y&&f0j(Y)?M.yield(CTw(Y),4):(u.isMuted&&_.qZ(u.hostElement,"yt-mute-ad-action",[u.is,u]),M.jumpTo(0));if(O=M.yieldResult){var t=Q=new _.F7(O),K=u.isMuted;t.getOptions().includes("onAboutThisAdPopupClosed")?_.P1_(t,"onAboutThisAdPopupClosed",{isMuted:K,layoutId:G}):_.i5("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Sd(M)})};
_.H.onPopupClosed=function(Y){var G=this,u,O;return _.a(function(Q){u=_.fO(YTp);_.Er(G.iframe,u);G.cancelPageLoadTimeout();if(!G.data)return Q.jumpTo(0);G.ytRendererBehavior.markDirty();O=Y.detail.context.openingElement;return Q.yield(G.handlesPopupClosed(O,G.data.layoutId),0)})};
_.H.detached=function(){this.cancelPageLoadTimeout()};
_.H.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
UZ.prototype.onPopupClosed=UZ.prototype.onPopupClosed;UZ.prototype.dataChanged=UZ.prototype.dataChanged;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.S([_.Ox("#iframe"),_.V("design:type",HTMLIFrameElement)],UZ.prototype,"iframe",void 0);_.S([_.R(),_.V("design:type",Object)],UZ.prototype,"data",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UZ.prototype,"dataChanged",null);
_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype",Promise)],UZ.prototype,"onPopupClosed",null);_.S([_.Ff({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],UZ);
_.d(UZ,"yt-about-this-ad-renderer",function(){if(JB5===void 0){var Y=document.createElement("template");_.r(Y,'\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><template is="dom-if" if="[[enableA11yFocusFix]]" restamp="" class="style-scope yt-about-this-ad-renderer"><div id="focusTrapEnd" tabindex="0" on-focus="moveFocusToContent" class="style-scope yt-about-this-ad-renderer"></div></template>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;vVO===void 0&&(vVO=document.createElement("template"));var O=vVO;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);JB5=Y}Y=JB5;return Y},{mode:2});var GnT;var uos;var O55=function(Y){var G=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=G.message;"stack"in G&&(this.stack=G.stack);this.maxFileSizeMB=Y;Object.setPrototypeOf(this,O55.prototype)};
_.m(O55,Error);var QhT=function(Y,G){var u=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=u.message;"stack"in u&&(this.stack=u.stack);this.minWidth=Y;this.minHeight=G;Object.setPrototypeOf(this,QhT.prototype)};
_.m(QhT,Error);var Mph=function(Y){this.requirements=Y;this.JSC$22982_maxFileSize=Y.maxFileSizeMB*1024*1024},H5s=function(Y,G){if(G.size>Y.JSC$22982_maxFileSize)throw new O55(Y.requirements.maxFileSizeMB);
};var EOo=function(Y,G){this.canvas=Y;this.imageEditorBuilder=G};
EOo.prototype.addEventListeners=function(Y){var G=function(Q){tpn(Y,Q)};
this.JSC$22988_mouseDownEvent=G;var u=function(Q){Kgs(Y,Q)};
this.JSC$22988_mouseMoveEvent=u;var O=function(){aqO(Y)};
this.JSC$22988_mouseUpEvent=O;this.canvas.addEventListener("mousedown",G);this.canvas.addEventListener("mousemove",u);document.addEventListener("mouseup",O)};
EOo.prototype.removeEventListeners=function(){this.JSC$22988_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$22988_mouseDownEvent);this.JSC$22988_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$22988_mouseMoveEvent);this.JSC$22988_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$22988_mouseUpEvent)};
var TTT=function(Y,G){Y.removeEventListeners();return new Promise(function(u){var O=new Image;O.crossOrigin="anonymous";O.onload=function(){var Q=Y.imageEditorBuilder(Y.canvas,O);Y.addEventListeners(Q);u(Q)};
O.src=G})},vN=function(Y,G,u,O,Q,M,t,K){this.canvas=Y;
this.image=G;this.requiredRatio=u;this.minImageCropDimension=O;this.minOutputImageResolution=Q;this.component=M;this.styleFocusedCorner=K===void 0?!0:K;this.action=2;this.focusedCorner=this.resizeCorner=0;Y=this.canvas.getContext("2d");if(!Y)throw Error("sm");this.ctx=Y;this.canvasMargin=t!=null?t:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;t=this.image;Y=this.canvasInnerWidth/t.width;t.height*Y>912&&(Y=t.width/t.height*912/t.width);t=Y;this.scaledImageWidth=this.canvas.width%2?
e$N(this.image.width*t):ym9(this.image.width*t);this.scaledImageHeight=Math.round(this.image.height*t);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$22991_overlayMarginBottom=this.JSC$22991_overlayMarginTop=this.canvasMargin;this.JSC$22991_overlayMarginRight=this.JSC$22991_overlayMarginLeft=this.horizontalMargin;this.JSC$22991_overlayWidth=this.scaledImageWidth;this.JSC$22991_overlayHeight=this.scaledImageHeight;
Y=this.image.width/this.image.height;Y>this.requiredRatio?(this.JSC$22991_overlayWidth=this.canvas.width%2?e$N(this.scaledImageHeight*this.requiredRatio):ym9(this.scaledImageHeight*this.requiredRatio),this.JSC$22991_overlayMarginRight=this.JSC$22991_overlayMarginLeft=(this.canvas.width-this.JSC$22991_overlayWidth)/2):Y<this.requiredRatio&&(this.JSC$22991_overlayHeight=this.canvas.height%2?e$N(this.scaledImageWidth/this.requiredRatio):ym9(this.scaledImageWidth/this.requiredRatio),this.JSC$22991_overlayMarginBottom=
this.JSC$22991_overlayMarginTop=(this.canvas.height-this.JSC$22991_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*t,this.scaledImageWidth);LgT(this)};
vN.prototype.getContext=function(){return this.ctx};
var tpn=function(Y,G){G={x:Math.round(G.pageX-Y.canvas.getBoundingClientRect().left),y:Math.round(G.pageY-Y.canvas.getBoundingClientRect().top)};Y.dragStart=G;gOh(Y,G)!==0?(Y.action=1,Xsp(Y,G),Y.resizeCorner=gOh(Y,G)):G.x>Y.JSC$22991_overlayMarginLeft&&G.x<Y.JSC$22991_overlayMarginLeft+Y.JSC$22991_overlayWidth&&G.y>Y.JSC$22991_overlayMarginTop&&G.y<Y.JSC$22991_overlayMarginTop+Y.JSC$22991_overlayHeight&&(Y.action=0)},Psa=function(Y,G){switch(G){case 1:return{x:Y.JSC$22991_overlayMarginLeft,
y:Y.JSC$22991_overlayMarginTop};case 2:return{x:Y.JSC$22991_overlayMarginLeft,y:Y.JSC$22991_overlayMarginTop+Y.JSC$22991_overlayHeight};case 3:return{x:Y.JSC$22991_overlayMarginLeft+Y.JSC$22991_overlayWidth,y:Y.JSC$22991_overlayMarginTop};case 4:return{x:Y.JSC$22991_overlayMarginLeft+Y.JSC$22991_overlayWidth,y:Y.JSC$22991_overlayMarginTop+Y.JSC$22991_overlayHeight};default:throw Error("tm");}},knT=function(Y,G){if(Y.focusedCorner!==0){Y.dragStart=Psa(Y,Y.focusedCorner);
Y.action=1;Y.resizeCorner=Y.focusedCorner;var u=Y.dragStart.x,O=Y.dragStart.y;switch(G){case 0:Y.focusedCorner===1||Y.focusedCorner===4?(u-=10,O-=10):(u-=10,O+=10);break;case 1:Y.focusedCorner===1||Y.focusedCorner===4?(u+=10,O+=10):(u+=10,O-=10);break;case 2:u=Y.focusedCorner===1||Y.focusedCorner===4?u-10:u+10;O-=10;break;case 3:u=Y.focusedCorner===1||Y.focusedCorner===4?u+10:u-10;O+=10;break;default:throw Error("um");}IqG(Y,{x:u,y:O});LgT(Y);Y.action=2;Y.dragStart=void 0}},Kgs=function(Y,G){G={x:Math.round(G.pageX-
Y.canvas.getBoundingClientRect().left),
y:Math.round(G.pageY-Y.canvas.getBoundingClientRect().top)};Xsp(Y,G);switch(Y.action){case 1:IqG(Y,G);break;case 0:Y.dragStart&&(Y.JSC$22991_overlayMarginLeft=Math.max(Y.horizontalMargin,Math.min(Y.JSC$22991_overlayMarginLeft-(Y.dragStart.x-G.x),Y.horizontalMargin+Y.scaledImageWidth-Y.JSC$22991_overlayWidth)),Y.JSC$22991_overlayMarginRight=Y.canvas.width-Y.JSC$22991_overlayMarginLeft-Y.JSC$22991_overlayWidth,Y.JSC$22991_overlayMarginTop=Math.max(Y.canvasMargin,Math.min(Y.JSC$22991_overlayMarginTop-
(Y.dragStart.y-G.y),Y.scaledImageHeight-Y.JSC$22991_overlayHeight+Y.canvasMargin)),Y.JSC$22991_overlayMarginBottom=Y.canvas.height-(Y.JSC$22991_overlayMarginTop+Y.JSC$22991_overlayHeight));break;default:return}LgT(Y);Y.dragStart=G},aqO=function(Y){Y.action=2;
Y.dragStart=void 0;document.body.style.cursor="auto"},Xsp=function(Y,G){switch(gOh(Y,G)){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:Y.action!==1&&(document.body.style.cursor="auto")}},gOh=function(Y,G){var u=Y.JSC$22991_overlayMarginLeft-5,O=Y.JSC$22991_overlayMarginTop-5,Q=Y.JSC$22991_overlayMarginLeft+Y.JSC$22991_overlayWidth-5;
Y=Y.JSC$22991_overlayMarginTop+Y.JSC$22991_overlayHeight-5;return nOa(G,{x:u,y:O})?1:nOa(G,{x:Q,y:O})?3:nOa(G,{x:u,y:Y})?2:nOa(G,{x:Q,y:Y})?4:0},nOa=function(Y,G){return Y.x>=G.x&&Y.x<=G.x+10&&Y.y>=G.y&&Y.y<=G.y+10},IqG=function(Y,G){if(Y.dragStart)switch(Y.resizeCorner){case 2:Math.abs((Y.JSC$22991_overlayMarginLeft+Y.JSC$22991_overlayWidth-G.x)/(G.y-Y.JSC$22991_overlayMarginTop))>=Y.requiredRatio?Fgn(Y,G.x):psT(Y,G.y);
break;case 1:Math.abs((Y.JSC$22991_overlayMarginLeft+Y.JSC$22991_overlayWidth-G.x)/(Y.JSC$22991_overlayMarginTop+Y.JSC$22991_overlayHeight-G.y))>=Y.requiredRatio?zaz(Y,G.x):psT(Y,G.y);break;case 4:Math.abs((G.x-Y.JSC$22991_overlayMarginLeft)/(G.y-Y.JSC$22991_overlayMarginTop))>=Y.requiredRatio?Fgn(Y,G.x):mpG(Y,G.y);break;case 3:Math.abs((G.x-Y.JSC$22991_overlayMarginLeft)/(Y.JSC$22991_overlayMarginTop+Y.JSC$22991_overlayHeight-G.y))>=Y.requiredRatio?zaz(Y,G.x):mpG(Y,G.y);break;default:throw Error("vm");
}},Fgn=function(Y,G){var u=Y.JSC$22991_overlayMarginTop;
Y.JSC$22991_overlayMarginBottom=WgO(Y,G);Y.JSC$22991_overlayHeight=Y.canvas.height-Y.JSC$22991_overlayMarginBottom-u;Y.JSC$22991_overlayWidth=Math.round(Y.JSC$22991_overlayHeight*Y.requiredRatio);rzT(Y)},zaz=function(Y,G){var u=Y.JSC$22991_overlayMarginTop+Y.JSC$22991_overlayHeight;
Y.JSC$22991_overlayMarginTop=WgO(Y,G);Y.JSC$22991_overlayHeight=u-Y.JSC$22991_overlayMarginTop;Y.JSC$22991_overlayWidth=Math.round(Y.JSC$22991_overlayHeight*Y.requiredRatio);rzT(Y)},rzT=function(Y){switch(Y.resizeCorner){case 2:case 1:Y.JSC$22991_overlayMarginLeft=Y.canvas.width-Y.JSC$22991_overlayMarginRight-Y.JSC$22991_overlayWidth;
break;case 4:case 3:Y.JSC$22991_overlayMarginRight=Y.canvas.width-Y.JSC$22991_overlayMarginLeft-Y.JSC$22991_overlayWidth;break;default:throw Error("vm");}},psT=function(Y,G){var u=Y.JSC$22991_overlayMarginLeft+Y.JSC$22991_overlayWidth;
Y.JSC$22991_overlayMarginLeft=xpT(Y,G);Y.JSC$22991_overlayWidth=u-Y.JSC$22991_overlayMarginLeft;Y.JSC$22991_overlayHeight=Math.round(Y.JSC$22991_overlayWidth/Y.requiredRatio);fqT(Y)},mpG=function(Y,G){var u=Y.JSC$22991_overlayMarginLeft;
Y.JSC$22991_overlayMarginRight=xpT(Y,G);Y.JSC$22991_overlayWidth=Y.canvas.width-Y.JSC$22991_overlayMarginRight-u;Y.JSC$22991_overlayHeight=Math.round(Y.JSC$22991_overlayWidth/Y.requiredRatio);fqT(Y)},fqT=function(Y){switch(Y.resizeCorner){case 2:case 4:Y.JSC$22991_overlayMarginBottom=Y.canvas.height-Y.JSC$22991_overlayMarginTop-Y.JSC$22991_overlayHeight;
break;case 1:case 3:Y.JSC$22991_overlayMarginTop=Y.canvas.height-Y.JSC$22991_overlayMarginBottom-Y.JSC$22991_overlayHeight;break;default:throw Error("vm");}},WgO=function(Y,G){switch(Y.resizeCorner){case 2:G=Y.canvas.height-(Y.JSC$22991_overlayMarginTop+Csh(Y,G));
break;case 4:G=Y.canvas.height-(Y.JSC$22991_overlayMarginTop+yzn(Y,G));break;case 1:G=Y.JSC$22991_overlayMarginTop+Y.JSC$22991_overlayHeight-Csh(Y,G);break;case 3:G=Y.JSC$22991_overlayMarginTop+Y.JSC$22991_overlayHeight-yzn(Y,G);break;default:throw Error("vm");}return Math.max(G,Y.canvasMargin)},Csh=function(Y,G){G=Y.JSC$22991_overlayMarginLeft+Y.JSC$22991_overlayWidth-Math.max(G,Y.horizontalMargin);
G=G<0?Y.JSC$22991_overlayWidth:Math.max(G,Y.minOverlayWidth);return Math.round(G/Y.requiredRatio)},yzn=function(Y,G){G=Y.canvas.width-Math.max(Y.canvas.width-G,Y.horizontalMargin)-Y.JSC$22991_overlayMarginLeft;
G=G<0?Y.JSC$22991_overlayWidth:Math.max(G,Y.minOverlayWidth);return Math.round(G/Y.requiredRatio)},xpT=function(Y,G){switch(Y.resizeCorner){case 2:G=Y.canvas.width-Y.JSC$22991_overlayMarginRight-eap(Y,G);
break;case 4:G=Y.canvas.width-Y.JSC$22991_overlayMarginLeft-eap(Y,G);break;case 1:G=Y.canvas.width-Y.JSC$22991_overlayMarginRight-Azg(Y,G);break;case 3:G=Y.canvas.width-Y.JSC$22991_overlayMarginLeft-Azg(Y,G);break;default:throw Error("vm");}return Math.max(G,Y.horizontalMargin)},eap=function(Y,G){G=Y.canvas.height-Math.max(Y.canvas.height-G,Y.canvasMargin)-Y.JSC$22991_overlayMarginTop;
return G<0?Y.JSC$22991_overlayWidth:Math.max(Math.round(G*Y.requiredRatio),Y.minOverlayWidth)},Azg=function(Y,G){G=Y.JSC$22991_overlayMarginTop+Y.JSC$22991_overlayHeight-Math.max(G,Y.canvasMargin);
return G<0?Y.JSC$22991_overlayWidth:Math.max(Math.round(G*Y.requiredRatio),Y.minOverlayWidth)},LgT=function(Y){Y.ctx.clearRect(0,0,Y.canvas.width,Y.canvas.height);
Y.ctx.drawImage(Y.image,0,0,Y.image.width,Y.image.height,Y.horizontalMargin,Y.canvasMargin,Y.canvas.width-2*Y.horizontalMargin,Y.scaledImageHeight);Y.ctx.fillStyle="rgba(0, 0, 0, 0.7)";Y.ctx.fillRect(Y.horizontalMargin,Y.JSC$22991_overlayMarginTop,Y.JSC$22991_overlayMarginLeft-Y.horizontalMargin,Y.JSC$22991_overlayHeight);Y.ctx.fillRect(Y.JSC$22991_overlayMarginLeft+Y.JSC$22991_overlayWidth,Y.JSC$22991_overlayMarginTop,Y.JSC$22991_overlayMarginRight-Y.horizontalMargin,Y.JSC$22991_overlayHeight);Y.ctx.fillRect(Y.horizontalMargin,
Y.canvasMargin,Y.scaledImageWidth,Y.JSC$22991_overlayMarginTop-Y.canvasMargin);Y.ctx.fillRect(Y.horizontalMargin,Y.JSC$22991_overlayMarginTop+Y.JSC$22991_overlayHeight,Y.scaledImageWidth,Y.JSC$22991_overlayMarginBottom-Y.canvasMargin);Y.drawOverlay();Y.component&&_.$s(Y.component,"image-updated")};
vN.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$22991_overlayMarginLeft,this.JSC$22991_overlayMarginTop,this.JSC$22991_overlayWidth,this.JSC$22991_overlayHeight);oOs(this)};
var oOs=function(Y){var G=Y.JSC$22991_overlayMarginLeft-5,u=Y.JSC$22991_overlayMarginTop-5,O=Y.JSC$22991_overlayMarginLeft+Y.JSC$22991_overlayWidth-5,Q=Y.JSC$22991_overlayMarginTop+Y.JSC$22991_overlayHeight-5;Y.ctx.fillStyle="#FFF";Y.ctx.fillRect(G,u,10,10);Y.ctx.strokeRect(G,u,10,10);Y.ctx.fillRect(O,u,10,10);Y.ctx.strokeRect(O,u,10,10);Y.ctx.fillRect(G,Q,10,10);Y.ctx.strokeRect(G,Q,10,10);Y.ctx.fillRect(O,Q,10,10);Y.ctx.strokeRect(O,Q,10,10);if(Y.focusedCorner!==0&&Y.styleFocusedCorner){Y.ctx.lineWidth=
4;Y.ctx.strokeStyle="#3EA6FF";switch(Y.focusedCorner){case 1:--G;--u;break;case 2:--G;u=Q-1;break;case 3:G=O-1;--u;break;case 4:G=O-1;u=Q-1;break;default:return}Y.ctx.strokeRect(G,u,12,12)}};
vN.prototype.crop=function(Y,G){G=G===void 0?!0:G;var u=this.image.width/this.scaledImageWidth,O=document.createElement("canvas"),Q=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],M=this.JSC$22991_overlayWidth*u,t=this.JSC$22991_overlayHeight*u;O.width=Math.max(M,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);O.height=Math.max(t,Q);Y&&(O.width=Math.min(O.width,O.height),O.height=Math.min(O.width,O.height));
Y=O.getContext("2d");if(!Y)throw Error("jm");Q=(this.JSC$22991_overlayMarginLeft-this.horizontalMargin)*u;u*=this.JSC$22991_overlayMarginTop-this.canvasMargin;G||(Y.fillStyle="white",Y.fillRect(0,0,O.width,O.height));Y.drawImage(this.image,Q,u,M,t,0,0,O.width,O.height);return O};var i5o=function(Y,G,u,O,Q){vN.call(this,Y,G,u,O,void 0,Q,8,!1)};
_.m(i5o,vN);i5o.prototype.drawOverlay=function(){var Y=this.getContext(),G=this.JSC$22991_overlayWidth,u=this.JSC$22991_overlayHeight,O=this.JSC$22991_overlayMarginTop,Q=this.JSC$22991_overlayMarginLeft;Y.lineWidth=2;Y.strokeStyle="#3EA6FF";Y.beginPath();Y.arc(Q+G/2,O+u/2,G/2,0,2*Math.PI);Y.stroke();Y.strokeRect(Q,O,G,u);oOs(this)};
var Rag={maxFileSizeMB:15,minWidth:98,minHeight:98},wsz=["image/png","image/jpeg","image/gif"],J_=function(){var Y=_.Z.apply(this,arguments)||this;Y.fileSelectorFocusListener=null;Y.errorMessage=null;Y.isLoading=!0;Y.hideContainer=!0;Y.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return Y};
_.m(J_,_.Z);_.H=J_.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(Y){return Y==="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||_.qZ(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.H.setErrorState=function(Y){this.resetErrorState();Y&&(this.errorMessage=Y)};
_.H.showPopup=function(){var Y=this;this.hideContainer=!1;_.WY(_.AN,function(){_.$s(Y.hostElement,"yt-refit")});
this.isLoading=!1};
_.H.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.H.closePopup=function(){this.resetFileSelector();_.qZ(this.hostElement,"yt-close-popup-action",[this.is])};
_.H.onCancelTap=function(){this.isPlaylistThumbnail||_.qZ(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.H.openFileSelector=function(){var Y=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.WY(_.AN,function(){setTimeout(function(){if(!Y.fileSelector.files||Y.fileSelector.files.length===0)Y.onCancelTap();Y.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(G){G instanceof Error?_.o0(G):_.ij(new _.I2(JSON.stringify(G)))}};
_.H.handleFileSelection=function(){var Y=this,G,u,O,Q,M,t;return _.a(function(K){switch(K.nextAddress){case 1:_.i3(K,2);if(!Y.fileSelector.files||!Y.imageEditorCanvas)return Y.onCancelTap(),K.return();G=Y.fileSelector.files[0];H5s(Y.imageChecker,G);_.i3(K,4);return K.yield($Pb(G),6);case 6:Y.mimeType=K.yieldResult;_.j1(K,5,2);break;case 4:_.b3(K,2),_.qZ(Y.hostElement,"yt-image-selection-error-action",[(u=Y.data)==null?void 0:u.genericImageLoadErrorMessage]),Y.onCancelTap();case 5:O=new FileReader;
O.addEventListener("load",function(){var L,g;return _.a(function(P){if(P.nextAddress==1){if(!O.result)return _.R0(Error("lm")),P.return();L=O.result;g=new Image;g.src=L;g.onload=function(){try{var I=Y.imageChecker;if(g.width<I.requirements.minWidth||g.height<I.requirements.minHeight)throw new QhT(I.requirements.minWidth,I.requirements.minHeight);}catch(n){if(n instanceof QhT){var k;_.qZ(Y.hostElement,"yt-image-selection-error-action",[(k=Y.data)==null?void 0:k.imageDimensionErrorMessage]);Y.logImageDimensionErrorVe()}else n instanceof
Error?_.o0(n):(I=new _.I2(JSON.stringify(n)),_.o0(I));Y.onCancelTap()}Y.showPopup()};
g.onerror=function(){var I;_.qZ(Y.hostElement,"yt-image-selection-error-action",[(I=Y.data)==null?void 0:I.genericImageLoadErrorMessage]);Y.onCancelTap()};
return P.yield(TTT(Y.imageEditorCanvas,L),2)}Y.imageEditor=P.yieldResult;Y.updatePositionOfAllCorners();Y.addEventListeners(Y.imageEditor);_.Sd(P)})},!1);
O.readAsDataURL(G);_.j1(K,0);break;case 2:Q=_.b3(K),Q instanceof O55?_.qZ(Y.hostElement,"yt-image-selection-error-action",[(M=Y.data)==null?void 0:M.imageSizeErrorMessage]):(Q instanceof Error?_.o0(Q):_.ij(new _.I2(JSON.stringify(Q))),_.qZ(Y.hostElement,"yt-image-selection-error-action",[(t=Y.data)==null?void 0:t.genericImageLoadErrorMessage])),Y.onCancelTap(),_.Sd(K)}})};
_.H.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var Y=_.QZ(_.M4(),{veType:232707,visualElement:_.VZ(232707)});Y&&(Y={visualElement:Y},_.O3().reportShown(Y))}};
_.H.handleImageSelectionErrorAction=function(Y){this.isPlaylistThumbnail&&_.w61(this.hostElement,Y)};
_.H.convertToImageFormatBundle=function(Y){var G=this,u,O,Q;return _.a(function(M){switch(M.nextAddress){case 1:return u=Y.toDataURL(G.outputMimeType,1),M.yield(qDy(u),2);case 2:O=M.yieldResult;_.i3(M,3);H5s(G.imageChecker,O);_.j1(M,4);break;case 3:Q=_.b3(M);if(!(Q instanceof O55))throw Q;_.R0(new _.I2("Output size is bigger than input size for image",G.mimeType,G.outputMimeType,O.size));u=Y.toDataURL("image/jpeg",.95);return M.yield(qDy(u),6);case 6:O=M.yieldResult;case 4:return M.return({dataUrl:u,
imageFile:O})}})};
_.H.handleUploadImageToScottyCommand=function(Y){var G=this,u,O,Q,M,t,K,L,g,P,I;return _.a(function(k){switch(k.nextAddress){case 1:if(!G.imageEditor||!_.z(Y,e7x))return k.return();u=_.z(Y,e7x).scottyUploadUrl;if(!u){var n=new _.I2("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.o0(n);return k.return()}_.i3(k,2);G.setLoadingState();O=G.imageEditor.crop(!1,!1);return k.yield(G.convertToImageFormatBundle(O),4);case 4:return Q=k.yieldResult,k.yield(lBb(Q.imageFile,u),5);
case 5:M=k.yieldResult;((t=G.data)==null?0:t.onUploadEndpoint)?(K=G.buildUploadServiceEndpoint(M),G.ytComponentBehavior.resolveCommand(K),L=_.z(K,_.zG),((g=L)==null?0:g.params)?G.closePopup():G.resetFileSelector()):(_.qZ(G.hostElement,"yt-image-updated-action",[Q.dataUrl,M]),G.closePopup());_.j1(k,0);break;case 2:P=_.b3(k),G.setErrorState((I=G.data)==null?void 0:I.uploadErrorMessage),P instanceof Error?_.o0(P):(n=new _.I2(JSON.stringify(P)),_.o0(n)),_.Sd(k)}})};
_.H.buildUploadServiceEndpoint=function(Y){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",Y),this.data.onUploadEndpoint):null};
_.H.dataChanged=function(){var Y=this,G;return _.a(function(u){if(u.nextAddress==1){if(!Y.data||!Y.canvasElement)return u.return();Y.data.imageRatio&&Y.data.minImageCropWidth||_.ij(new _.I2("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));G=function(O,Q){return Y.data.imageType==="IMAGE_TYPE_AVATAR"?new i5o(O,Q,Y.data.imageRatio,[Y.data.minImageCropWidth,Y.data.minImageCropWidth/Y.data.imageRatio],Y.hostElement):new vN(O,Q,Y.data.imageRatio,[Y.data.minImageCropWidth,
Y.data.minImageCropWidth/Y.data.imageRatio],void 0,Y.hostElement,8,!1)};
Y.imageEditorCanvas=new EOo(Y.canvasElement,G);return Y.data.url?u.yield(TTT(Y.imageEditorCanvas,Y.data.url),3):(Y.hideContainer=!0,Y.openFileSelector(),u.jumpTo(0))}Y.imageEditor=u.yieldResult;Y.showPopup();Y.addEventListeners(Y.imageEditor);_.Sd(u)})};
_.H.addEventListeners=function(Y){this.removeEventListeners();var G=function(Q){tpn(Y,Q)};
this.JSC$22999_mouseDownEvent=G;var u=function(Q){Kgs(Y,Q)};
this.JSC$22999_mouseMoveEvent=u;var O=function(){aqO(Y)};
this.JSC$22999_mouseUpEvent=O;this.topLeftCorner.addEventListener("mousedown",G);this.topLeftCorner.addEventListener("mousemove",u);this.topLeftCorner.addEventListener("mouseup",O);this.topRightCorner.addEventListener("mousedown",G);this.topRightCorner.addEventListener("mousemove",u);this.topRightCorner.addEventListener("mouseup",O);this.bottomLeftCorner.addEventListener("mousedown",G);this.bottomLeftCorner.addEventListener("mousemove",u);this.bottomLeftCorner.addEventListener("mouseup",O);this.bottomRightCorner.addEventListener("mousedown",
G);this.bottomRightCorner.addEventListener("mousemove",u);this.bottomRightCorner.addEventListener("mouseup",O)};
_.H.removeEventListeners=function(){this.JSC$22999_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$22999_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$22999_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$22999_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$22999_mouseDownEvent));this.JSC$22999_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$22999_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$22999_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$22999_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$22999_mouseMoveEvent));this.JSC$22999_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$22999_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$22999_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$22999_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$22999_mouseUpEvent))};
_.H.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var Y=document.activeElement;Y&&Y.shadowRoot&&Y.shadowRoot.activeElement;)Y=Y.shadowRoot.activeElement;switch(Y){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(Y,G){var u=Y.y-G.offsetHeight/2+4;G.style.left=Y.x-G.offsetWidth/2+16+"px";G.style.top=u+"px"};
_.H.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var Y=_.E([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),G=Y.next();!G.done;G=Y.next()){G=G.value;var u=Psa(this.imageEditor,G.corner);this.updatePositionOfCorner(u,G.div)}};
_.H.onLeft=function(Y){this.imageEditor&&this.setFocusInImageEditor()&&(knT(this.imageEditor,0),this.updatePositionOfAllCorners(),Y.preventDefault())};
_.H.onRight=function(Y){this.imageEditor&&this.setFocusInImageEditor()&&(knT(this.imageEditor,1),this.updatePositionOfAllCorners(),Y.preventDefault())};
_.H.onUp=function(Y){this.imageEditor&&this.setFocusInImageEditor()&&(knT(this.imageEditor,2),this.updatePositionOfAllCorners(),Y.preventDefault())};
_.H.onDown=function(Y){this.imageEditor&&this.setFocusInImageEditor()&&(knT(this.imageEditor,3),this.updatePositionOfAllCorners(),Y.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};
_.Uk.Object.defineProperties(J_.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&wsz.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var Y,G,u;((G=this.data)==null?0:G.imageRatio)&&((u=this.data)==null?0:u.minImageCropWidth)?Y={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:Y=Rag;return new Mph(Y)}}});
J_.prototype.updatePositionOfAllCorners=J_.prototype.updatePositionOfAllCorners;J_.prototype.dataChanged=J_.prototype.dataChanged;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],J_.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],J_.prototype,"ytComponentBehavior",void 0);_.S([_.x(_.Gp),_.V("design:type",Object)],J_.prototype,"ironA11yKeysBehavior",void 0);
_.S([_.Ox("#canvas"),_.V("design:type",HTMLCanvasElement)],J_.prototype,"canvasElement",void 0);_.S([_.Ox("#file-selector"),_.V("design:type",HTMLInputElement)],J_.prototype,"fileSelector",void 0);_.S([_.Ox("#top-left-corner"),_.V("design:type",HTMLDivElement)],J_.prototype,"topLeftCorner",void 0);_.S([_.Ox("#top-right-corner"),_.V("design:type",HTMLDivElement)],J_.prototype,"topRightCorner",void 0);
_.S([_.Ox("#bottom-left-corner"),_.V("design:type",HTMLDivElement)],J_.prototype,"bottomLeftCorner",void 0);_.S([_.Ox("#bottom-right-corner"),_.V("design:type",HTMLDivElement)],J_.prototype,"bottomRightCorner",void 0);_.S([_.R(),_.V("design:type",Object)],J_.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],J_.prototype,"errorMessage",void 0);_.S([_.R(),_.V("design:type",Object)],J_.prototype,"isLoading",void 0);_.S([_.R(),_.V("design:type",Object)],J_.prototype,"hideContainer",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.V("design:type",Boolean)],J_.prototype,"isPlaylistThumbnail",void 0);_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],J_.prototype,"dataChanged",null);_.S([_.Yo("image-updated"),_.Yo("yt-refit"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],J_.prototype,"updatePositionOfAllCorners",null);
_.S([_.Ff({is:"yt-image-editor-renderer",disableElementRegistration:!0})],J_);
_.d(J_,"yt-image-editor-renderer",function(){if(uos===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;GnT===void 0&&(GnT=document.createElement("template"));var O=GnT;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);uos=Y}Y=uos;return Y},{mode:2});var Z5h;var Dpn;var Yn=function(){return _.Z.apply(this,arguments)||this};
_.m(Yn,_.Z);Yn.prototype.updateMinutesFromBinding=function(Y){this.handleMinutesChanged&&this.handleMinutesChanged(Y)};
Yn.prototype.updateSecondsFromBinding=function(Y){this.handleSecondsChanged&&this.handleSecondsChanged(Y)};
Yn.prototype.updateDescriptionFromBinding=function(Y){this.handleDescriptionChanged&&this.handleDescriptionChanged(Y)};
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],Yn.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Yn.prototype,"data",void 0);_.S([_.R(),_.V("design:type",String)],Yn.prototype,"minutes",void 0);_.S([_.R(),_.V("design:type",String)],Yn.prototype,"seconds",void 0);_.S([_.R(),_.V("design:type",String)],Yn.prototype,"description",void 0);_.S([_.R(),_.V("design:type",Function)],Yn.prototype,"handleMinutesChanged",void 0);
_.S([_.R(),_.V("design:type",Function)],Yn.prototype,"handleSecondsChanged",void 0);_.S([_.R(),_.V("design:type",Function)],Yn.prototype,"handleDescriptionChanged",void 0);_.S([_.R(),_.V("design:type",Number)],Yn.prototype,"characterLimit",void 0);_.S([_.R(),_.V("design:type",Number)],Yn.prototype,"textNumRows",void 0);_.S([_.Ff({is:"yt-report-details-form-content",disableElementRegistration:!0})],Yn);
_.d(Yn,"yt-report-details-form-content",function(){if(Dpn===void 0){var Y=document.createElement("template");_.r(Y,'\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>');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Z5h===void 0&&(Z5h=document.createElement("template"));var O=Z5h;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Dpn=Y}Y=Dpn;return Y},{mode:2});var haT;var dpG;var GD=function(){var Y=_.Z.apply(this,arguments)||this;Y.updateMinutesFromBinding=function(G){Y.minutes=G.detail.value};
Y.updateSecondsFromBinding=function(G){Y.seconds=G.detail.value};
Y.updateDescriptionFromBinding=function(G){Y.description=G.detail.value};
return Y};
_.m(GD,_.Z);_.H=GD.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(){_.l0(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.H.onSubmitYtAction=function(Y){var G=Y.detail;G.actionName==="yt-service-request"&&(G=G.args[1],G.flagEndpoint&&(Y.stopPropagation(),this.refireAction(G)))};
_.H.refireAction=function(Y){var G={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(G.vss_id=this.vssId);_.c$(this.hostElement,[Y,G]);this.submitDisabled=!0};
_.H.dataChanged=function(){var Y=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var G=_.N5();G&&G.getPlayerPromise().then(function(u){var O=u.getOption("cc","track")||u.getOption("captions","track");O&&(Y.vssId=O.vss_id);u=u.getCurrentTime();Y.minutes=Math.floor(u/60).toString();Y.seconds=(Math.floor(u)%60).toString()})};
_.H.updateSubmitButtonState=function(){var Y;((Y=this.data)==null?0:Y.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(){_.qZ(this.hostElement,"yt-close-popup-action")};
_.H.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Uk.Object.defineProperties(GD.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.textNumRows)||4}}});
GD.prototype.onYtServiceRequestError=GD.prototype.onYtServiceRequestError;GD.prototype.onYtServiceRequestCompleted=GD.prototype.onYtServiceRequestCompleted;GD.prototype.updateSubmitButtonState=GD.prototype.updateSubmitButtonState;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);
_.S([_.R({observer:"dataChanged"}),_.V("design:type",Object)],GD.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Boolean)],GD.prototype,"submitDisabled",void 0);_.S([_.R(),_.V("design:type",String)],GD.prototype,"minutes",void 0);_.S([_.R(),_.V("design:type",String)],GD.prototype,"seconds",void 0);_.S([_.R(),_.V("design:type",String)],GD.prototype,"description",void 0);_.S([_.R(),_.V("design:type",String)],GD.prototype,"vssId",void 0);
_.S([_.R({value:_.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.V("design:type",Boolean)],GD.prototype,"isMusic",void 0);_.S([_.f("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],GD.prototype,"characterLimit",null);_.S([_.f("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],GD.prototype,"textNumRows",null);
_.S([_.Ex("minutes","seconds","description","submitDisabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GD.prototype,"updateSubmitButtonState",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GD.prototype,"onYtServiceRequestCompleted",null);
_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GD.prototype,"onYtServiceRequestError",null);_.S([_.Ff({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],GD);
_.d(GD,"yt-report-details-form-renderer",function(){if(dpG===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;haT===void 0&&(haT=document.createElement("template"));var O=haT;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);dpG=Y}Y=dpG;return Y});var b55;var STT;var NT5;var jha;var uQ=function(){return _.Z.apply(this,arguments)||this};
_.m(uQ,_.Z);
uQ.prototype.onCheckedChanged_=function(){if(this.data){var Y=_.l0(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.qZ(this.hostElement,"yt-additional-detail-checkbox-update",[Y]):this.data.identifier==="yt-hide-user-checkbox"?_.qZ(this.hostElement,"yt-hide-user-checkbox-update",[Y]):Y&&this.data.enableCommand?_.qZ(this.hostElement,"yt-modify-report-form-command",[_.z(this.data.enableCommand,vBV)]):!Y&&this.data.disableCommand&&_.qZ(this.hostElement,
"yt-modify-report-form-command",[_.z(this.data.enableCommand,vBV)])}};
uQ.prototype.onLabelTap_=function(Y){Y.target.tagName!="A"&&(_.l0(this.hostElement).querySelector("#checkbox").checked=!_.l0(this.hostElement).querySelector("#checkbox").checked)};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],uQ.prototype,"data",void 0);_.S([_.Ff({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],uQ);
_.d(uQ,"yt-boolean-form-field-v2-renderer",function(){if(jha===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;NT5===void 0&&(NT5=document.createElement("template"));var O=NT5;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);jha=Y}Y=jha;return Y});var O8=function(){var Y=_.Z.apply(this,arguments)||this;Y.canShowAdditionalDetailCheckbox=!1;Y.canShowCheckbox=!1;Y.keepDropdownFocusedAfterSelection=!0;return Y};
_.m(O8,_.Z);O8.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}}}}};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],O8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],O8.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],O8.prototype,"canShowAdditionalDetailCheckbox",void 0);_.S([_.R(),_.V("design:type",Object)],O8.prototype,"canShowCheckbox",void 0);_.S([_.R(),_.V("design:type",Object)],O8.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.S([_.Ff({is:"yt-report-form-modal-content",disableElementRegistration:!0})],O8);
_.d(O8,"yt-report-form-modal-content",function(){if(STT===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;b55===void 0&&(b55=document.createElement("template"));var O=b55;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);STT=Y}Y=STT;return Y},{mode:2});var Vph;var lq5;var Qh=function(){var Y=_.Z.apply(this,arguments)||this;Y.submitting=!1;Y.submitButtonDisabled=!0;Y.command=null;Y.canShowCheckbox=!1;Y.canShowAdditionalDetailCheckbox=!1;Y.canShowNextButton=!1;Y.additionalDetailCheckboxChecked=!1;Y.refitJob=0;Y.keepDropdownFocusedAfterSelection=!0;Y.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 Y};
_.m(Qh,_.Z);_.H=Qh.prototype;_.H.created=function(){this.refitJob=0};
_.H.attached=function(){this.JSC$23022_scroller&&(this.JSC$23022_scroller.dialogElement=this.hostElement.parentNode,this.JSC$23022_scroller.attached&&typeof this.JSC$23022_scroller.attached==="function"&&this.JSC$23022_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H.dataChanged=function(Y){Y&&(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,Y.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),Y.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.H.onYtPopupOpened=function(){var Y=_.N5();Y&&Y.getPlayerPromise().then(function(G){G.pauseVideo()})};
_.H.onYtNavigate=function(Y){_.z(Y.detail.endpoint,_.bLE)&&(Y.stopPropagation(),this.hideReportForm=!0)};
_.H.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.H.onYtServiceRequestCompleted=function(Y,G){var u=G.actions;if(u){if(u.length===1&&_.z(u[0],_.Jv)){var O;u=((O=_.z(u[0],_.Jv))==null?void 0:O.commands)||[]}O=0;for(var Q=u.length;O<Q;O++)_.z(u[O],_.tw)&&(Y.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(u[O]))}if(G.data&&(Y=this.get("feedbackResponses",G.data)))for(G=0;G<Y.length;G++)if(Y[G].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.H.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.H._onDescendantIronResize=function(Y){Y.stopPropagation();return!1};
_.H.handleReportFormEndpointUpdateAction=function(Y){if(Y.submitEndpoint){var G=this.command=Y.submitEndpoint;G=_.z(G,_.dRI);if(G==null?0:G.additionalDetailCheckboxChecked)G.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else Y.submitNavigationEndpoint?(this.command=Y.submitNavigationEndpoint,this.toggleSubmitButton(!1)):Y.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:Y.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;Y.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",Y));this.refit()};
_.H.handleConfirmDialogCloseAction=function(Y){Y.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.H.submitButtonDisabledChanged=function(){var Y=this.hostElement.parentElement;Y&&Y.invalidateTabbables&&Y.invalidateTabbables()};
_.H.handleModifyReportFormCommand=function(Y){Y=this.get("action",Y);Y==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:Y==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:Y==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:Y==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:Y==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:Y==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.H.updateDialogStyling=function(){var Y,G,u,O,Q,M=((Q=(Y=this.data)==null?void 0:(G=Y.optionsSupportedRenderers)==null?void 0:(u=G.optionsRenderer)==null?void 0:(O=u.items)==null?void 0:O.length)!=null?Q:0)<=2?0:240;_.cm(this.hostElement,{"--yt-report-form-modal-renderer-min-width":M+"px"})};
_.H.toggleSubmitButton=function(Y){this.submitButtonDisabled=!Y;this.submitButtonDisabled=Y};
_.H.computeSubmitButtonData=function(Y,G){var u={};_.z(G,_.bLE)?u.navigationEndpoint=G:u.command=G||void 0;Y&&Y.buttonRenderer&&_.gX.extend(u,Y.buttonRenderer);return u};
_.H.computeNextButtonData=function(Y,G){var u={};if(!Y||!Y.buttonRenderer)return u;_.gX.extend(u,Y.buttonRenderer);if(!G)return u;if(_.z(G,_.bLE))u.navigationEndpoint=xoy(G);else if(u.command=xoy(G),Y=_.z(u.command,_.dRI))Y.legalCheckboxChecked=!0;return u};
_.H.computeShowNextButton=function(Y,G,u){return!!Y&&G&&u};
_.H.refit=function(){var Y=this;this.refitJob||(this.refitJob=_.AN.addLowPriorityJob(function(){_.$s(Y.hostElement,"yt-refit");Y.refitJob=0}))};
_.H.handleAdditionalDetailCheckboxUpdateAction=function(Y){this.additionalDetailCheckboxChecked=Y;_.z(this.command,_.dRI).additionalDetailCheckboxChecked=Y};
_.Uk.Object.defineProperties(Qh,{template:{configurable:!0,enumerable:!0,get:function(){if(lq5===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Vph===void 0&&(Vph=document.createElement("template"));var O=Vph;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);lq5=Y}Y=lq5;return Y}}});
Qh.prototype.onYtServiceRequestError=Qh.prototype.onYtServiceRequestError;Qh.prototype.onYtServiceRequestCompleted=Qh.prototype.onYtServiceRequestCompleted;Qh.prototype.onYtServiceRequestSent=Qh.prototype.onYtServiceRequestSent;Qh.prototype.onYtNavigate=Qh.prototype.onYtNavigate;Qh.prototype.onYtPopupOpened=Qh.prototype.onYtPopupOpened;_.S([_.x(_.cZ.YtOpenPopupBehavior),_.V("design:type",Object)],Qh.prototype,"openPopupBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],Qh.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],Qh.prototype,"eventForwardingBehavior",void 0);_.S([_.x(_.aZ),_.V("design:type",Object)],Qh.prototype,"ironResizableBehavior",void 0);_.S([_.R({observer:"dataChanged"}),_.V("design:type",Object)],Qh.prototype,"data",void 0);
_.S([_.R(),_.V("design:type",Object)],Qh.prototype,"submitting",void 0);_.S([_.R({observer:"submitButtonDisabledChanged"}),_.V("design:type",Object)],Qh.prototype,"submitButtonDisabled",void 0);_.S([_.R(),_.V("design:type",Object)],Qh.prototype,"command",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],Qh.prototype,"hideReportForm",void 0);_.S([_.R(),_.V("design:type",Object)],Qh.prototype,"canShowCheckbox",void 0);
_.S([_.R(),_.V("design:type",Object)],Qh.prototype,"canShowAdditionalDetailCheckbox",void 0);_.S([_.R(),_.V("design:type",Object)],Qh.prototype,"canShowNextButton",void 0);_.S([_.R(),_.V("design:type",Object)],Qh.prototype,"additionalDetailCheckboxChecked",void 0);_.S([_.R(),_.V("design:type",Object)],Qh.prototype,"refitJob",void 0);_.S([_.R(),_.V("design:type",Object)],Qh.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.S([_.Ox("#scroller"),_.V("design:type",Object)],Qh.prototype,"JSC$23022_scroller",void 0);_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qh.prototype,"onYtPopupOpened",null);_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Qh.prototype,"onYtNavigate",null);
_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],Qh.prototype,"onYtServiceRequestSent",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],Qh.prototype,"onYtServiceRequestCompleted",null);
_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Qh.prototype,"onYtServiceRequestError",null);_.S([_.Ff({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Qh);var BT5;var $ps;var MS=function(){return _.Z.apply(this,arguments)||this};
_.m(MS,_.Z);_.H=MS.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 Y,G;(G=_.sH().resolve(_.q3(_.zV)))==null||G.enqueue({label:_.Ri((Y=this.data)==null?void 0:Y.messageTitle),elementToFocus:this.hostElement})};
_.H.onThumbnailLoaded=function(){_.$s(this.hostElement,"yt-refit")};
_.H.onDismissTap=function(){_.qZ(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.H.computeAlternateIcon=function(Y){return Y?Y==="BACKSTAGE_ARTWORK"?"backstage:artwork":Y:null};
_.H.computeFontFamily=function(Y){return Y==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.H.computeBackgroundStyle=function(Y,G){if(Y=this.computeBackgroundImage(Y,G))if(Y=_.bq(Y.thumbnails))return'background-image: url("'+Y+'");'};
_.H.computeHasFullHeightImage=function(Y){return!(!(Y&&Y.thumbnails&&Y.thumbnails.length>0)||this.modern)};
_.H.isModernStyle=function(Y){return Y.style==="STYLE_MODERN"};
_.H.computeIcon=function(Y,G){if(Y&&Y.icon)return G?Y.iconDark:Y.icon};
_.H.computeBackgroundImage=function(Y,G){if(Y&&Y.backgroundImage)return G?Y.backgroundImageDark:Y.backgroundImage};
_.H.computeLogo=function(Y,G){if(Y&&Y.logo)return G?Y.logoDark:Y.logo};
_.H.computeShouldShowModernIcon=function(Y,G){return Y&&!!G};
_.H.getLogoContainerClassName=function(Y){return this.logoWithPadding(Y)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.H.getLogoImageId=function(Y){return this.logoWithPadding(Y)?"mealbar-logo-with-padding":"mealbar-logo"};
_.H.logoWithPadding=function(Y){var G,u,O;return(Y=(G=this.computeLogo(Y,this.isDarkTheme))==null?void 0:(u=G.thumbnails)==null?void 0:(O=u[0])==null?void 0:O.height)&&Y%31===0?!0:!1};
MS.prototype.onThumbnailLoaded=MS.prototype.onThumbnailLoaded;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.S([_.R({}),_.V("design:type",Object)],MS.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.V("design:type",Boolean)],MS.prototype,"modern",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],MS.prototype,"isDarkTheme",void 0);
_.S([_.R({computed:"computeIcon(data, isDarkTheme)"}),_.V("design:type",Object)],MS.prototype,"icon",void 0);_.S([_.R({computed:"computeLogo(data, isDarkTheme)"}),_.V("design:type",Object)],MS.prototype,"logo",void 0);_.S([_.R({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.V("design:type",Object)],MS.prototype,"backgroundStyle",void 0);_.S([_.R({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.V("design:type",Object)],MS.prototype,"alternateIcon",void 0);
_.S([_.R({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.V("design:type",Boolean)],MS.prototype,"hasFullHeightImage",void 0);_.S([_.R({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.V("design:type",Boolean)],MS.prototype,"useYoutubeSans",void 0);_.S([_.R({computed:"computeShouldShowModernIcon(modern, icon)"}),_.V("design:type",Boolean)],MS.prototype,"shouldShowModernIcon",void 0);
_.S([_.Yo("yt-img-shadow-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MS.prototype,"onThumbnailLoaded",null);_.S([_.Ff({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],MS);
_.d(MS,"yt-mealbar-promo-renderer",function(){if($ps===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;BT5===void 0&&(BT5=document.createElement("template"));var O=BT5;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);$ps=Y}Y=$ps;return Y},{mode:2});var qTg;var shs;var H5=function(){return _.Z.apply(this,arguments)||this};
_.m(H5,_.Z);_.H=H5.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(Y){return!(!Y.dismissButton&&!Y.acceptButton)};
_.H.computeStyle_=function(Y){return Y||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.H.observeImpressionEndpoints_=function(){var Y=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(G){G.clickTrackingParams&&delete G.clickTrackingParams;_.c$(Y.hostElement,[G])})};
_.H.onTap_=function(){_.qZ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
H5.prototype.observeImpressionEndpoints_=H5.prototype.observeImpressionEndpoints_;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],H5.prototype,"ytEventForwardingBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],H5.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],H5.prototype,"positionType",void 0);_.S([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.V("design:type",Boolean)],H5.prototype,"hasButtons_",void 0);_.S([_.R({value:function(){return this.onTap_.bind(this)}}),
_.V("design:type",Function)],H5.prototype,"boundOnTap_",void 0);_.S([_.R({value:{style:"mono-inverse"}}),_.V("design:type",Object)],H5.prototype,"buttonOverride",void 0);_.S([_.GO("data.promoConfig.impressionEndpoints"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],H5.prototype,"observeImpressionEndpoints_",null);_.S([_.Ff({is:"yt-tooltip-renderer",disableElementRegistration:!0})],H5);
_.d(H5,"yt-tooltip-renderer",function(){if(shs===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;qTg===void 0&&(qTg=document.createElement("template"));var O=qTg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);shs=Y}Y=shs;return Y},{mode:2});var czs;var Ups;var vOO;var Jzh;var E8=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-open-popup-action":"onOpen"};return Y};
_.m(E8,_.Z);_.H=E8.prototype;_.H.attached=function(){this.onOpen()};
_.H.updateTimeSecs=function(Y){this.currentTimeSecs=Y};
_.H.computeTimeString=function(Y){Y=Y.toString();var G=Math.floor(Number(Y)/3600),u=Math.floor(Number(Y)%3600%60);return(G>0?G+":":"")+_.OS(Math.floor(Number(Y)%3600/60),G>0?2:1)+":"+_.OS(u,2)};
_.H.computeTimeStringA11y=function(Y){return _.Alu({seconds:Y})};
_.H.getTimeParam=function(){return Amx(this.timeString)};
_.H.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var Y={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},G;_.YR(_.M4(),(G=this.data)==null?void 0:G.trackingParams,Y,7)};
_.H.onChangeStartAtTimestamp=function(){for(var Y=this.startAtTimestamp.value.split(":"),G=0,u=1,O=Y.length-1;O>=0;O--)G+=Number(Y[O])*u,u*=60;this.updateTimeSecs(G);this.setTimestamp()};
_.H.onOpen=function(){var Y=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var G=_.N5();G?G.getPlayerPromise().then(function(u){u=u.getCurrentTime();Y.updateTimeSecs(u)}):pCx()&&this.updateTimeSecs(pCx())};
_.H.setTimestamp=function(){var Y=Math.floor(this.currentTimeSecs);_.qZ(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!Y,timestamp:Y||""}])};
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],E8.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],E8.prototype,"data",void 0);_.S([_.R({value:!1,notify:!0}),_.V("design:type",Boolean)],E8.prototype,"isStartAtChecked",void 0);_.S([_.R(),_.V("design:type",Number)],E8.prototype,"currentTimeSecs",void 0);
_.S([_.R({computed:"computeTimeString(currentTimeSecs)"}),_.V("design:type",String)],E8.prototype,"timeString",void 0);_.S([_.R({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.V("design:type",String)],E8.prototype,"timeStringA11y",void 0);_.S([_.Ox("#start-at-timestamp"),_.V("design:type",Object)],E8.prototype,"startAtTimestamp",void 0);_.S([_.Ff({is:"yt-start-at-renderer",disableElementRegistration:!0})],E8);
_.d(E8,"yt-start-at-renderer",function(){if(Jzh===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;vOO===void 0&&(vOO=document.createElement("template"));var O=vOO;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Jzh=Y}Y=Jzh;return Y},{mode:2});var YrT={},Goa=(YrT.WEB_REMIX="music.youtube.com",YrT),t2=function(){var Y=_.Z.apply(this,arguments)||this;Y.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return Y};
_.m(t2,_.Z);_.H=t2.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_=Goa[_.DE("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.H.ready=function(){_.l0(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.H.computeEmbedCode_=function(Y,G,u,O,Q){if(!Y)return"";var M=Y.videoId,t=Y.fullListId,K=[];Y.attributionId&&K.push("si="+Y.attributionId);O||K.push("controls=0");u&&Number(G)>0&&K.push("start="+G);t&&(M="videoseries",K.push("list="+t));u="https://"+(Q?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+M;Y.clipId&&(K.push("clip="+Y.clipId),K.push("clipt="+Y.clipTiming));G=K.length>0?u+"?"+K.join("&amp;"):u;Y.encryptedEmbedConfig&&K.push("embed_config="+JSON.stringify({enc:Y.encryptedEmbedConfig}));
K=K.length>0?u+"?"+K.join("&amp;"):u;_.F("web_sharing_embed_preview_killswitch")?_.l0(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(K,Y.previewWidth||854,Y.previewHeight||480):(_.eq(this.videoPreviewContainer),_.l0(this.videoPreviewContainer).appendChild(this.buildIframeElement(K)));return this.getEmbedCode_(G,Y.width||560,Y.height||315)};
_.H.buildIframeElement=function(Y){var G=document.createElement("iframe"),u,O;G.width=""+((O=(u=this.data)==null?void 0:u.previewWidth)!=null?O:854);var Q,M;G.height=""+((M=(Q=this.data)==null?void 0:Q.previewHeight)!=null?M:480);_.t0(G,2,Y);G.title="YouTube video player";G.frameBorder="0";G.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";G.referrerPolicy="strict-origin-when-cross-origin";G.allowFullscreen=!0;return G};
_.H.computeIsSquareAspectRatio_=function(Y){return Y.previewHeight&&Y.previewWidth?Y.previewHeight==Y.previewWidth:!1};
_.H.computeShowEmbedOptions_=function(Y){return!!Y.enablePrivacyModeOptionLabel||!!Y.showPlayerControlsOptionLabel};
_.H.getEmbedCode_=function(Y,G,u){return'<iframe width="'+G+'" height="'+u+'" src="'+Y+'" 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(){_.l0(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.H.handleSetTimestamp_=function(Y){this.startAtTimeStamp_=(this.startAtChecked_=Y.isSet)?Y.timestamp:0};
_.H.closePanel_=function(){_.qZ(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.H.onEmbedCode_=function(){_.l0(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.H.onYtPopupClosed_=function(){_.eq(_.l0(this.hostElement).querySelector("#video-preview"))};
_.H.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.z(this.data.actionButtons[0],_.ru)&&this.ytRendererBehavior.logExplicitClick(_.z(this.data.actionButtons[0],_.ru))};
t2.prototype.onYtPopupClosed_=t2.prototype.onYtPopupClosed_;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],t2.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],t2.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],t2.prototype,"data",void 0);
_.S([_.R({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.V("design:type",String)],t2.prototype,"embedCode_",void 0);_.S([_.R({value:!0}),_.V("design:type",Boolean)],t2.prototype,"isPlayerControlsOptionChecked_",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],t2.prototype,"isPrivacyModeOptionChecked_",void 0);_.S([_.R({value:!1,notify:!0}),_.V("design:type",Boolean)],t2.prototype,"startAtChecked_",void 0);
_.S([_.R({value:0}),_.V("design:type",Number)],t2.prototype,"startAtTimeStamp_",void 0);_.S([_.R({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],t2.prototype,"isSquareAspectRatio_",void 0);_.S([_.Ox("#video-preview"),_.V("design:type",HTMLElement)],t2.prototype,"videoPreviewContainer",void 0);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],t2.prototype,"onYtPopupClosed_",null);
_.S([_.Ff({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],t2);
_.d(t2,"yt-sharing-embed-renderer",function(){if(Ups===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;czs===void 0&&(czs=document.createElement("template"));var O=czs;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Ups=Y}Y=Ups;return Y},{mode:2});var uHa;var Obq=function(){return _.Z.apply(this,arguments)||this};
_.m(Obq,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],Obq.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],Obq.prototype,"data",void 0);_.S([_.Ff({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],Obq);
_.d(Obq,"yt-sender-id-section-renderer",function(){if(uHa===void 0){var Y=document.createElement("template");_.r(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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 yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);uHa=Y}Y=
uHa;return Y},{mode:1});var QAp;var MdG;var K4=function(){return _.Z.apply(this,arguments)||this};
_.m(K4,_.Z);K4.prototype.closePopup=function(){_.qZ(this.hostElement,"yt-close-popup-action")};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],K4.prototype,"data",void 0);_.S([_.Ff({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],K4);
_.d(K4,"yt-community-post-section-renderer",function(){if(MdG===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;QAp===void 0&&(QAp=document.createElement("template"));var O=QAp;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);MdG=Y}Y=MdG;return Y},{mode:2});var Hbg;var E6z;var tdG;var K0T;var axG;var Ttz;var L0z=function(){return _.Z.apply(this,arguments)||this};
_.m(L0z,_.Z);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],L0z.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],L0z.prototype,"data",void 0);_.S([_.Ff({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],L0z);
_.d(L0z,"yt-share-start-time-with-context-renderer",function(){if(Ttz===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;axG===void 0&&(axG=document.createElement("template"));var O=axG;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Ttz=Y}Y=Ttz;return Y},{mode:2});var aR=function(){return _.Z.apply(this,arguments)||this};
_.m(aR,_.Z);aR.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],aR.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],aR.prototype,"data",void 0);_.S([_.Ff({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],aR);
_.d(aR,"yt-share-panel-title-v15-renderer",function(){if(K0T===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;tdG===void 0&&(tdG=document.createElement("template"));var O=tdG;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);K0T=Y}Y=K0T;return Y},{mode:2});var TD=function(){return _.Z.apply(this,arguments)||this};
_.m(TD,_.Z);TD.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"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],TD.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],TD.prototype,"data",void 0);_.S([_.Ff({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],TD);
_.d(TD,"yt-share-panel-header-renderer",function(){if(E6z===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Hbg===void 0&&(Hbg=document.createElement("template"));var O=Hbg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);E6z=Y}Y=E6z;return Y},{mode:2});var g6p;var X8O;var P3q={};P3q.YtBindingExpressionsBehavior={identity:_.Zt,msg:function(Y,G){G=G===void 0?{}:G;return _.Q6(Y,G,Y)},
msgPlural:function(Y,G){return _.Mu(Y,G)},
getMusicIconFromType:function(Y){return _.Ux(Y)}};var IxO;var koT;var n6o;var F0a=document.head,p8T=F0a.appendChild,zHz;
if(n6o===void 0){var mKa=document.createElement("template");_.r(mKa,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><clipPath id="android_messenger__a"><path fill="#fff" d="M0 0h192v192H0z"></path></clipPath></defs></svg><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>');n6o=mKa}zHz=n6o;
p8T.call(F0a,zHz.content);var L4=function(){var Y=_.Z.apply(this,arguments)||this;Y.screenLayer=7;return Y};
_.m(L4,_.Z);L4.prototype.getScreenLayer=function(){return this.screenLayer};
L4.prototype.onTap=function(Y){Y&&Y.detail&&(Y.detail.x||Y.detail.y)&&_.l0(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.c$(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(Y=this.getScreenLayer(),_.$s(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:Y}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Uk.Object.defineProperties(L4.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()}}});
L4.prototype.onTap=L4.prototype.onTap;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],L4.prototype,"ytComponentBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],L4.prototype,"data",void 0);_.S([_.f("data.title"),_.V("design:type",Object),_.V("design:paramtypes",[])],L4.prototype,"title",null);
_.S([_.f("data.serviceName"),_.V("design:type",String),_.V("design:paramtypes",[])],L4.prototype,"icon",null);_.S([_.Yo("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],L4.prototype,"onTap",null);_.S([_.Ff({is:"yt-share-target-renderer",disableElementRegistration:!0})],L4);
_.d(L4,"yt-share-target-renderer",function(){if(koT===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;IxO===void 0&&(IxO=document.createElement("template"));var O=IxO;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);koT=Y}Y=koT;return Y},{mode:2});var W0q;var r0O;var gL=function(){var Y=_.Z.apply(this,arguments)||this;Y.SHARE_TARGET_WIDTH=70;Y.SHARE_TARGET_MARGIN_RIGHT=8;Y.PAGE_SCROLL_SPEED=9;Y.actionMap={"yt-share-panel-reset-action":"onReset_"};return Y};
_.m(gL,_.Z);_.H=gL.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&&(_.l0(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.l0(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.H.onReset_=function(){if(_.l0(this.hostElement).querySelector("#list")){var Y=_.l0(this.hostElement).querySelector("#list");var G=_.l0(this.hostElement).querySelector("#list");var u=G.offsetLeft,O=G.offsetParent;O||_.pM_(G)!="fixed"||(O=_.nm(G).documentElement);if(O){if(_.Hc&&!_.Gy(58)){var Q=_.yPI(O);u+=Q.left}else Number(_.cBM)>=8&&!(Number(_.cBM)>=9)&&(Q=_.yPI(O),u-=Q.left);G=_.f4k(O)?O.clientWidth-(u+G.offsetWidth):u}else G=u;hTy(Y,G);this.updateScrollButtons_()}};
_.H.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.H.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.H.onScrollWheel_=function(Y){Y.stopPropagation();Y.preventDefault();var G=Dto(_.l0(this.hostElement).querySelector("#list"));Y=Math.abs(Y.deltaX)>Math.abs(Y.deltaY)?Y.deltaX:Y.deltaY;hTy(_.l0(this.hostElement).querySelector("#list"),G+Y);this.updateScrollButtons_()};
_.H.smoothScrollByOnePage_=function(Y){var G=_.l0(this.hostElement).querySelector("#list"),u=(Math.floor(G.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,O=Dto(G),Q=u*(Y?1:-1),M=this.PAGE_SCROLL_SPEED,t=this.updateScrollButtons_.bind(this),K=0,L;(function P(){K+=M;L=K/u*2;hTy(G,O+Q*(L<1?L*L:-L*L+4*L-2));K<u?window.requestAnimationFrame(P):t()})()};
_.H.updateScrollButtons_=function(){var Y=Dto(_.l0(this.hostElement).querySelector("#list")),G=_.l0(this.hostElement).querySelector("#list").scrollWidth-_.l0(this.hostElement).querySelector("#list").clientWidth;_.l0(this.hostElement).querySelector("#scroll-button-back").hidden=Y<=0;_.l0(this.hostElement).querySelector("#scroll-button-forward").hidden=Y>=G};
gL.prototype.onScrollWheel_=gL.prototype.onScrollWheel_;gL.prototype.onDataChanged_=gL.prototype.onDataChanged_;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],gL.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],gL.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(P3q.YtBindingExpressionsBehavior),_.V("design:type",Object)],gL.prototype,"ytBindingExpressionsBehavior",void 0);
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],gL.prototype,"data",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gL.prototype,"onDataChanged_",null);_.S([_.Yo("wheel"),_.V("design:type",Function),_.V("design:paramtypes",[WheelEvent]),_.V("design:returntype")],gL.prototype,"onScrollWheel_",null);
_.S([_.Ff({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],gL);
_.d(gL,"yt-third-party-share-target-section-renderer",function(){if(r0O===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;W0q===void 0&&(W0q=document.createElement("template"));var O=W0q;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);r0O=Y}Y=r0O;return Y},{mode:2});var XZ=function(){return _.Z.apply(this,arguments)||this};
_.m(XZ,_.Z);XZ.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"}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],XZ.prototype,"data",void 0);_.S([_.Ff({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],XZ);
_.d(XZ,"yt-third-party-network-section-renderer",function(){if(X8O===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;g6p===void 0&&(g6p=document.createElement("template"));var O=g6p;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);X8O=Y}Y=X8O;return Y},{mode:2});var xKq;_.hR(_.D(function(Y){return _.T("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.T("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.T(_.HE,{data:function(){return Y.data().firstPartyItems}},{listItemViewModel:_.og})))},"ql"),"first-party-network-section-view-model",{props:{data:_.AC}});var fxo=_.hV(["data:image/svg+xml;charset=UTF-8;base64,",""]),P5=function(){var Y=_.Z.apply(this,arguments)||this;Y.screenLayer=7;Y.qrCodeEnabled=_.F("web_enable_sharing_qr_code");Y.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return Y};
_.m(P5,_.Z);_.H=P5.prototype;_.H.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.H.attached=function(){this.JSC$23073_scroller&&(this.JSC$23073_scroller.dialogElement=this.hostElement.parentNode,this.JSC$23073_scroller.attached&&typeof this.JSC$23073_scroller.attached==="function"&&this.JSC$23073_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.H.onDataChanged=function(){var Y=this,G;(G=this.data)!=null&&G.contents&&(this.hostElement.setAttribute("links-only","true"),_.q7(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.maybeRenderQrCode(this.shortUrl()),_.sk(this,function(){_.$s(Y.hostElement,"yt-refit");Y.focusSharePanelHeader()}))};
_.H.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.H.handleSetTimestamp=function(Y){var G=this.shortUrl();Y.isSet&&(G=_.YI(G,"t",Y.timestamp));this.maybeRenderQrCode(G)};
_.H.shortUrl=function(){var Y,G=(Y=this.data)==null?void 0:Y.contents;if(G)for(Y=0;Y<G.length;Y++){var u=void 0,O=void 0;if((u=G[Y])==null?0:(O=u.thirdPartyNetworkSection)==null?0:O.copyLinkContainer){var Q=O=u=void 0;return(Q=_.z((u=G[Y])==null?void 0:(O=u.thirdPartyNetworkSection)==null?void 0:O.copyLinkContainer,EBo))==null?void 0:Q.shortUrl}}};
_.H.maybeRenderQrCode=function(Y){var G=this,u,O,Q,M,t,K,L,g,P;return _.a(function(I){if(I.nextAddress==1){u=_.l0(G.hostElement).querySelector("#qr-code");if(!G.qrCodeEnabled||!Y)return u&&(u.style.display="none"),I.return();O=_.Eu1(_.sH().resolve(_.vn),{iconName:"youtube",iconStyle:"youtube_fill"});Q=document.createElement("div");return typeof O==="function"?(O(Q),I.jumpTo(2)):I.yield(O,3)}I.nextAddress!=2&&(M=I.yieldResult,M(Q));L=(t=Q)==null?void 0:(K=t.firstChild)==null?void 0:K.firstChild;g=
document.createElement("img");P=_.r0a(fxo,btoa(L.outerHTML));g.onload=function(){var k={canvas:u,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:g},n=new mbj;yj9(n,Y);eY9(n,!1,Ajj(n));var p=n.modules,W=Object.assign({},Keo,k);p=structuredClone(p);k=p.length;var C,e=(C=W.canvas)!=null?C:document.createElement("canvas");C=W.cellSize;n=W.logo;var w,B=(w=W.logoSize)!=null?w:Math.floor(k/4);k%2!==B%2&&B++;var N=W.logoPadding,h=W.backgroundColor;w=k*C;var q=W.width,
U=0;q&&(U=W.padding,U=Math.ceil(U*w/(q-U*2)),e.style.width=q+"px",e.style.height=q+"px");e.width!==w+U*2&&(e.width=w+U*2);e.height!==w+U*2&&(e.height=w+U*2);w=e.getContext("2d");W.autoClear&&w.clearRect(0,0,e.width,e.height);w.fillStyle=h;w.beginPath();w.roundRect(0,0,e.width,e.height,W.borderRadius);w.fill();w.save();w.translate(U,U);if(n)for(e=Math.floor(k-B)/2-N,N=Math.floor(k+B)/2+N,h=e;h<N;h++)for(q=e;q<N;q++)p[h][q]=!1;for(e=0;e<k;e++)for(N=0;N<k;N++)(e<7&&N<7||e<7&&N>=k-7||e>=k-7&&N<7)&&(p[e][N]=
!1);var Mj;e=(Mj=W.markerColor)!=null?Mj:W.color;iDy(w,0,0,C,e);iDy(w,C*(k-7),0,C,e);iDy(w,0,C*(k-7),C,e);switch(W.cellStyle){case 0:Mj=p;p=Mj.length;e=W.cellSize;w.beginPath();for(N=0;N<p;N++)for(h=0;h<p;h++)Mj[N][h]&&w.rect(N*e,h*e,e,e);w.fillStyle=W.color;w.fill();break;case 1:Mj=p;p=Mj.length;e=W.cellSize;N=e*W.relativeCircleSize;w.fillStyle=W.color;w.beginPath();for(W=0;W<p;W++)for(h=0;h<p;h++)Mj[W][h]&&(w.beginPath(),w.ellipse((W+.5)*e,(h+.5)*e,N/2,N/2,0,0,2*Math.PI),w.fill());w.fill();break;
case 2:Mj=p;p=Mj.length;e=W.cellSize;w.fillStyle=W.color;W=[[1,1],[-1,1],[-1,-1],[1,-1]];w.beginPath();for(N=0;N<p;N++)for(h=0;h<p;h++)if(Mj[N][h])w.roundRect(N*e,h*e,e,e,e/2),N+1<p&&Mj[N+1][h]&&w.rect(N*e+e/2,h*e,e,e),h+1<p&&Mj[N][h+1]&&w.rect(N*e,h*e+e/2,e,e);else{q=N*e+e/2;U=h*e+e/2;for(var Xt=0;Xt<4;Xt++){var ka=_.E(W[Xt]),aU=ka.next().value;ka=ka.next().value;N+aU>=0&&N+aU<p&&h+ka>=0&&h+ka<p&&Mj[N+aU][h]&&Mj[N][h+ka]&&Mj[N+aU][h+ka]&&(aU=Xt*Math.PI/2,ka=e/2,w.moveTo(q+ka*Math.cos(aU),U+ka*Math.sin(aU)),
w.arc(q,U,e/2,aU,aU+Math.PI/2,!1),w.lineTo(q+ka*(Math.cos(aU)-Math.sin(aU)),U+ka*(Math.cos(aU)+Math.sin(aU))),w.lineTo(q+ka*Math.cos(aU),U+ka*Math.sin(aU)))}}w.fill()}n&&w.drawImage(n,(k-B)*C/2,(k-B)*C/2,B*C,B*C);w.restore();u.style.removeProperty("display")};
g.src=_.Bs(P);_.Sd(I)})};
_.H.hasCommunityPostRenderer=function(){var Y,G,u,O;return!!((Y=this.data)==null?0:(G=Y.header)==null?0:(u=G.sharePanelHeaderRenderer)==null?0:(O=u.communityPost)==null?0:O.communityPostSectionRenderer)};
_.H.onTapClose=function(){_.qZ(this.hostElement,"yt-close-popup-action",["yt-unified-share-panel-renderer"])};
_.H.getScreenLayer=function(){return this.screenLayer};
P5.prototype.onDataChanged=P5.prototype.onDataChanged;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],P5.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],P5.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],P5.prototype,"data",void 0);
_.S([_.R({value:_.Q6("SBOX_INAPPROPRIATE_CANCEL")}),_.V("design:type",String)],P5.prototype,"closeButtonAriaLabel",void 0);_.S([_.Ox("yt-share-panel-header-renderer"),_.V("design:type",HTMLElement)],P5.prototype,"header",void 0);_.S([_.R(),_.V("design:type",Object)],P5.prototype,"qrCodeEnabled",void 0);_.S([_.Ox("#scroller"),_.V("design:type",Object)],P5.prototype,"JSC$23073_scroller",void 0);
_.S([_.Ex("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],P5.prototype,"onDataChanged",null);_.S([_.Ff({disableElementRegistration:!0,is:"yt-unified-share-panel-renderer"})],P5);
_.d(P5,"yt-unified-share-panel-renderer",function(){if(xKq===void 0){var Y=document.createElement("template");_.r(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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 yt-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope yt-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 yt-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope yt-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 yt-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope yt-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope yt-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);xKq=Y}Y=xKq;return Y},{mode:1});var C3T={};
C3T.YtUnlimitedFamilyInterstitialBehavior=[_.cZ.YtOpenPopupBehavior,_.vZ.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(Y){Y=_.kmI(_.Zb(Y),"yt-button-renderer");return Y?Y.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(Y){this.dialogHistory_.push(Y)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var Y=this.popFromHistory();if(Y){var G={openPopupAction:{popupType:"DIALOG",popup:{}}};G.openPopupAction.popup[Y.renderer]=Y.data;this.showingPreviousDialog_=!0;this.openPopup(G)}},
handleOpenPopupAction_:function(Y){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var G=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(O){return!!Y.openPopupAction.popup[O]}),u=this.getElementName_();
G&&this.data&&(this.pushToHistory({renderer:u,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(Y){if(Y=_.z(Y,H9o))this.loading=!0,_.qZ(this.hostElement,"yt-open-create-family-dialog",[Y,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var Y=this.hostElement.nodeName.split("-").slice(1).map(function(G){return""+G[0].toUpperCase()+G.slice(1).toLowerCase()}).join("");
return Y[0].toLowerCase()+Y.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var y0o;var eHo;var IR=function(){return _.Z.apply(this,arguments)||this};
_.m(IR,_.Z);_.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");_.qZ(this.hostElement,"yt-register-create-family-dialog");_.l0(this.hostElement).querySelector("#thumbnail").onShow()};
_.H.fireOnCloseCommand_=function(){var Y;((Y=this.data)==null?0:Y.onCloseCommand)&&_.UK(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.H.onYtServiceRequestSent_=function(Y,G){G&&G.endpoint&&_.z(G.endpoint,_.Gb)||(this.loading=!0)};
_.H.onYtServiceRequestCompleted_=function(){var Y=this.hostElement.parentElement;Y.close&&Y.close();this.loading=!1};
_.H.openPopupHandler_=function(Y){if(Y.detail==this){var G;((G=this.data)==null?0:G.onOpenCommands)&&_.UK(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.H.closePopupHandler_=function(Y,G){this.fireOnCloseCommand_();if(G&&G.canceled===!0||G&&G.canceled===!1&&G.confirmed===!1){var u;((u=this.data)==null?0:u.onDismissCommands)&&_.UK(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_;_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],IR.prototype,"ytEventForwardingBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(C3T.YtUnlimitedFamilyInterstitialBehavior),_.V("design:type",Object)],IR.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],IR.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],IR.prototype,"loading",void 0);_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],IR.prototype,"onYtServiceRequestSent_",null);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],IR.prototype,"onYtServiceRequestCompleted_",null);
_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],IR.prototype,"openPopupHandler_",null);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],IR.prototype,"closePopupHandler_",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IR.prototype,"dataChanged_",null);
_.S([_.Ff({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],IR);
_.d(IR,"yt-unlimited-family-message-interstitial-renderer",function(){if(eHo===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;y0o===void 0&&(y0o=document.createElement("template"));var O=y0o;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);eHo=Y}Y=eHo;return Y},{mode:2});var A0G;var o6T;var kn=function(){return _.Z.apply(this,arguments)||this};
_.m(kn,_.Z);kn.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"}}}};
kn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.l0(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(Y){Y.onShow()});
_.l0(this.hostElement).querySelector("#main-thumbnail").onShow()};
kn.prototype.onButtonTap_=function(Y){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(Y)};
kn.prototype.computeMainThumbnailWidth_=function(Y){return Y&&Y.length!==0?72:96};
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.S([_.x(C3T.YtUnlimitedFamilyInterstitialBehavior),_.V("design:type",Object)],kn.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],kn.prototype,"data",void 0);
_.S([_.R({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.V("design:type",Number)],kn.prototype,"mainThumbnailWidth_",void 0);_.S([_.R({value:function(){return this.onButtonTap_.bind(this)}}),
_.V("design:type",Function)],kn.prototype,"boundButtonTap_",void 0);_.S([_.Ff({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],kn);
_.d(kn,"yt-unlimited-family-profile-interstitial-renderer",function(){if(o6T===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;A0G===void 0&&(A0G=document.createElement("template"));var O=A0G;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);o6T=Y}Y=o6T;return Y},{mode:2});var ibp;var RHz;var n4=function(){var Y=_.Z.apply(this,arguments)||this;Y.sliderAriaValueText_=null;Y.selectedIndex_=0;Y.messages={PAUSE_SLIDER:_.Q6("PAUSE_SLIDER",void 0,"Pause Duration")};return Y};
_.m(n4,_.Z);_.H=n4.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(Y){Y.detail==this&&_.F("enable_premium_voluntary_pause")&&(_.qZ(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(Y){this.data=Y;this.resetSlider_()};
_.H.dataChanged_=function(){this.data&&this.resetSlider_()};
_.H.onSubmitTap_=function(){if(this.data.confirmCommand){var Y=this.data.confirmCommand;_.z(Y,_.VJM)&&_.c$(this.hostElement,[Y,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.H.onExitButtonTap_=function(){_.qZ(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.H.closePopupHandler_=function(Y,G){(G&&G.canceled===!0||G.canceled===!1&&G.confirmed===!1)&&this.handleOnDismissCommands_()};
_.H.onSliderChange_=function(){this.selectedIndex_=_.l0(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 Y=this.data.defaultEndOptionIndex||0,G=_.l0(this.hostElement).querySelector("#id-pause-slider");if(G.immediateValue<Y)for(;G.immediateValue!=Y;)G.increment();else if(Y<G.immediateValue)for(;G.immediateValue!=Y;)G.decrement();this.selectedIndex_=Y;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.H.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.UK(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.H.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.UK(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};
n4.prototype.onYtServiceRequestCompleted=n4.prototype.onYtServiceRequestCompleted;n4.prototype.onYtServiceRequestSent=n4.prototype.onYtServiceRequestSent;n4.prototype.closePopupHandler_=n4.prototype.closePopupHandler_;n4.prototype.dataChanged_=n4.prototype.dataChanged_;n4.prototype.onPopupOpened_=n4.prototype.onPopupOpened_;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],n4.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],n4.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],n4.prototype,"loading",void 0);_.S([_.R(),_.V("design:type",Number)],n4.prototype,"selectIndexMax_",void 0);_.S([_.R(),_.V("design:type",Object)],n4.prototype,"selectedData_",void 0);
_.S([_.R(),_.V("design:type",Object)],n4.prototype,"sliderAriaValueText_",void 0);_.S([_.R({value:function(){return this.onSubmitTap_.bind(this)}}),
_.V("design:type",Function)],n4.prototype,"onButtonTap_",void 0);_.S([_.R({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.V("design:type",Function)],n4.prototype,"onSecondaryTap_",void 0);_.S([_.R(),_.V("design:type",Object)],n4.prototype,"messages",void 0);_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],n4.prototype,"onPopupOpened_",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n4.prototype,"dataChanged_",null);
_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],n4.prototype,"closePopupHandler_",null);_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],n4.prototype,"onYtServiceRequestSent",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],n4.prototype,"onYtServiceRequestCompleted",null);_.S([_.Ff({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],n4);
_.d(n4,"yt-unplugged-pause-membership-dialog-renderer",function(){if(RHz===void 0){var Y=document.createElement("template");_.r(Y,'\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>');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;ibp===void 0&&(ibp=document.createElement("template"));var O=ibp;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);RHz=Y}Y=RHz;return Y},{mode:2});var w8h;var Zbo;var FZ=function(){return _.Z.apply(this,arguments)||this};
_.m(FZ,_.Z);FZ.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.IS("vcBalanceRenderer")}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],FZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],FZ.prototype,"data",void 0);_.S([_.Ff({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],FZ);
_.d(FZ,"yt-vc-offer-layout-header-renderer",function(){if(Zbo===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;w8h===void 0&&(w8h=document.createElement("template"));var O=w8h;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Zbo=Y}Y=Zbo;return Y},{mode:2});var DKG;var hHg;var dKn;var bbs;var p4=function(){return _.Z.apply(this,arguments)||this};
_.m(p4,_.Z);p4.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Uk.Object.defineProperties(p4.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)}}});
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],p4.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.m9N.YtTappableItemBehavior),_.V("design:type",Object)],p4.prototype,"ytTappableItemBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],p4.prototype,"data",void 0);
_.S([_.R({reflectToAttribute:!0}),_.f("data.accessibilityText"),_.V("design:type",String),_.V("design:paramtypes",[])],p4.prototype,"ariaLabel",null);_.S([_.R({reflectToAttribute:!0}),_.f("data.style"),_.V("design:type",String),_.V("design:paramtypes",[])],p4.prototype,"vcOfferStyle",null);_.S([_.f("data.style","data.titleText"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],p4.prototype,"showTitleText",null);_.S([_.Ff({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],p4);
_.d(p4,"yt-vc-offer-renderer",function(){if(bbs===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;dKn===void 0&&(dKn=document.createElement("template"));var O=dKn;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);bbs=Y}Y=bbs;return Y},{mode:2});var zD=function(){return _.Z.apply(this,arguments)||this};
_.m(zD,_.Z);zD.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}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],zD.prototype,"data",void 0);_.S([_.Ff({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],zD);
_.d(zD,"yt-vc-offer-layout-renderer",function(){if(hHg===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;DKG===void 0&&(DKG=document.createElement("template"));var O=DKG;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);hHg=Y}Y=hHg;return Y},{mode:2});var Srg;var Nta;var jAg;var Vd5;var mq=function(){return _.Z.apply(this,arguments)||this};
_.m(mq,_.Z);mq.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}}}}}};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],mq.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],mq.prototype,"data",void 0);_.S([_.Ff({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],mq);
_.d(mq,"yt-ypc-offers-modal-top-bar-renderer",function(){if(Vd5===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;jAg===void 0&&(jAg=document.createElement("template"));var O=jAg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Vd5=Y}Y=Vd5;return Y},{mode:2});var W5=function(){return _.Z.apply(this,arguments)||this};
_.m(W5,_.Z);W5.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"}}}}};
W5.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
W5.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var Y=this.scrollable;Y.attached&&typeof Y.attached==="function"&&Y.attached()};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],W5.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Ox("#scrollable"),_.V("design:type",Object)],W5.prototype,"scrollable",void 0);_.S([_.R(),_.V("design:type",Object)],W5.prototype,"data",void 0);_.S([_.Ff({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],W5);
_.d(W5,"yt-ypc-offers-modal-renderer",function(){if(Nta===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;Srg===void 0&&(Srg=document.createElement("template"));var O=Srg;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Nta=Y}Y=Nta;return Y},{mode:2});var lxG;var Btp;var rL=function(){return _.Z.apply(this,arguments)||this};
_.m(rL,_.Z);_.H=rL.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");_.l0(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.H.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.qZ(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.H.onYtPopupOpened_=function(Y,G){(G==null?void 0:G.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.UK(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.H.onYtPopupClosed_=function(Y,G){this.continueButtonTapped||G&&(G.canceled===!0||G.canceled===!1&&G.confirmed===!1)&&this.data.onDismissCommands&&_.UK(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.H.onYtServiceRequestError_=function(Y){this.set("showSpinner",!1);_.Rd(this.hostElement,Y.detail.error.message)};
_.H.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.F("enable_ypc_spinners")?_.qZ(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
rL.prototype.onYtServiceRequestError_=rL.prototype.onYtServiceRequestError_;rL.prototype.onYtPopupClosed_=rL.prototype.onYtPopupClosed_;rL.prototype.onYtPopupOpened_=rL.prototype.onYtPopupOpened_;rL.prototype.onYtServiceRequestCompleted_=rL.prototype.onYtServiceRequestCompleted_;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],rL.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],rL.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.R(),_.V("design:type",Object)],rL.prototype,"data",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],rL.prototype,"showSpinner",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],rL.prototype,"continueButtonTapped",void 0);_.S([_.R({value:function(){return this.onContinueTapped_.bind(this)}}),
_.V("design:type",Function)],rL.prototype,"bindOnContinueTapped_",void 0);_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],rL.prototype,"onYtServiceRequestCompleted_",null);_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],rL.prototype,"onYtPopupOpened_",null);
_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],rL.prototype,"onYtPopupClosed_",null);_.S([_.Yo("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],rL.prototype,"onYtServiceRequestError_",null);_.S([_.Ff({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],rL);
_.d(rL,"yt-ypc-upgrade-dialog-renderer",function(){if(Btp===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;lxG===void 0&&(lxG=document.createElement("template"));var O=lxG;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Btp=Y}Y=Btp;return Y},{mode:2});var $KO;var qrT;var xn=function(){return _.Z.apply(this,arguments)||this};
_.m(xn,_.Z);xn.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
xn.prototype.computeHasButtons_=function(Y){return!(!Y.dismissButton&&!Y.confirmButton)};
xn.prototype.computeStyle_=function(Y){return Y||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],xn.prototype,"ytEventForwardingBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],xn.prototype,"ytRendererstamperBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],xn.prototype,"data",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],xn.prototype,"positionType",void 0);
_.S([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.V("design:type",Boolean)],xn.prototype,"hasButtons_",void 0);_.S([_.R({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.V("design:type",Boolean)],xn.prototype,"style_",void 0);_.S([_.Ff({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],xn);
_.d(xn,"yt-bubble-hint-renderer",function(){if(qrT===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;$KO===void 0&&($KO=document.createElement("template"));var O=$KO;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);qrT=Y}Y=qrT;return Y},{mode:2});var sAq;var c0n;var f4=function(){var Y=_.vD.apply(this,arguments)||this;Y.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return Y};
_.m(f4,_.vD);_.H=f4.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 Y=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){Y.$.thumbnail.onShow();Y.$["header-image"].onShow()})};
_.H.handleCheckBoxUpdateAction_=function(Y){this.canShowCheckboxEnabledConfirmButton=Y};
_.H.computeUseOverlayForSpinner_=function(Y,G){return!!Y&&G};
_.H.computeShowSpinner_=function(Y,G){return Y||!!G};
_.H.fireOnCloseActions_=function(){var Y,G=_.E(((Y=this.data)==null?void 0:Y.onClosedActions)||[]);for(Y=G.next();!Y.done;Y=G.next())this.ytRendererBehavior.resolveCommand(Y.value)};
_.H.fireOnOpenCommands_=function(Y){var G,u=(G=this.data)==null?void 0:G.onOpenCommands;if(u)for(Y.stopImmediatePropagation(),Y=_.E(u),G=Y.next();!G.done;G=Y.next())this.ytRendererBehavior.resolveCommand(G.value)};
_.H.fireOnDismissCommands_=function(Y){var G,u=(G=this.data)==null?void 0:G.onDismissCommands;if(u)for(Y.stopImmediatePropagation(),Y=_.E(u),G=Y.next();!G.done;G=Y.next())this.ytRendererBehavior.resolveCommand(G.value)};
_.H.openPopupHandler_=function(Y){Y.detail==this&&this.fireOnOpenCommands_(Y)};
_.H.closePopupHandler_=function(Y,G){_.sK(this,"yt-confirm-dialog-close-action",[G]);this.fireOnCloseActions_();(G&&G.canceled===!0||G&&G.canceled===!1&&G.confirmed===!1)&&this.fireOnDismissCommands_(Y)};
_.H.onHeaderImageChanged_=function(){var Y;((Y=this.data)==null?0:Y.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.H.computeHasHeaderImageWidth_=function(Y){return Y!=void 0};
_.H.computeHasLoadingMessage=function(Y){return!!Y};
_.H.onHeaderImageWidthChanged_=function(){var Y,G=(Y=this.data)==null?void 0:Y.headerImageWidth;if(G){if(Y=1.25*G*2+G,this.$.main.style.width=Y+"px",G=this.$.scroller.firstElementChild)G.style.minWidth=Y+"px"}else this.$.main.style.width="100%"};
_.H.onThumbnailChanged_=function(){var Y;((Y=this.data)==null?0:Y.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(Y){Y=_.Zb(Y);Y instanceof Node&&_.Bm(this.$["confirm-button"]).contains(Y)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.H.computePrimaryIsCancel_=function(Y){return Y};
_.H.computeIsCancelButtonHidden_=function(Y){return Y.skipCancelButton||!Y.cancelButton};
_.H.computeIsCheckboxHidden_=function(Y){return!Y.checkbox};
_.H.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.H.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.H.onYtServiceRequestCompleted_=function(){var Y;((Y=this.data)==null?0:Y.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Uk.Object.defineProperties(f4,{template:{configurable:!0,enumerable:!0,get:function(){if(c0n===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;sAq===void 0&&(sAq=document.createElement("template"));var O=sAq;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);c0n=Y}Y=c0n;return Y}}});
f4.prototype.onYtServiceRequestCompleted_=f4.prototype.onYtServiceRequestCompleted_;f4.prototype.onYtServiceRequestSent_=f4.prototype.onYtServiceRequestSent_;f4.prototype.onThumbnailLoaded_=f4.prototype.onThumbnailLoaded_;f4.prototype.onYtNavigate_=f4.prototype.onYtNavigate_;f4.prototype.onThumbnailChanged_=f4.prototype.onThumbnailChanged_;f4.prototype.onHeaderImageWidthChanged_=f4.prototype.onHeaderImageWidthChanged_;f4.prototype.onHeaderImageChanged_=f4.prototype.onHeaderImageChanged_;
f4.prototype.closePopupHandler_=f4.prototype.closePopupHandler_;f4.prototype.openPopupHandler_=f4.prototype.openPopupHandler_;_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],f4.prototype,"ytActionHandlerBehavior",void 0);_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],f4.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],f4.prototype,"ytRendererBehavior",void 0);
_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],f4.prototype,"ytEventForwardingBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],f4.prototype,"data",void 0);_.S([_.R({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.V("design:type",Boolean)],f4.prototype,"primaryIsCancel",void 0);_.S([_.R({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.V("design:type",Boolean)],f4.prototype,"isCancelButtonHidden",void 0);
_.S([_.R({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.V("design:type",Boolean)],f4.prototype,"isCheckboxHidden",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],f4.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.S([_.R({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.V("design:type",Boolean)],f4.prototype,"useOverlayForSpinner_",void 0);
_.S([_.R({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.V("design:type",Boolean)],f4.prototype,"showSpinner_",void 0);_.S([_.R({value:!1}),_.V("design:type",Boolean)],f4.prototype,"isActionInProgress_",void 0);_.S([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.V("design:type",Boolean)],f4.prototype,"hasHeaderImageWidth_",void 0);
_.S([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.V("design:type",Boolean)],f4.prototype,"hasLoadingMessage",void 0);_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],f4.prototype,"openPopupHandler_",null);_.S([_.Yo("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],f4.prototype,"closePopupHandler_",null);
_.S([_.GO("data.headerImage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],f4.prototype,"onHeaderImageChanged_",null);_.S([_.GO("data.headerImageWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],f4.prototype,"onHeaderImageWidthChanged_",null);_.S([_.GO("data.thumbnail"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],f4.prototype,"onThumbnailChanged_",null);
_.S([_.Yo("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],f4.prototype,"onYtNavigate_",null);_.S([_.Yo("yt-img-shadow-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],f4.prototype,"onThumbnailLoaded_",null);_.S([_.Yo("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.yx]),_.V("design:returntype")],f4.prototype,"onYtServiceRequestSent_",null);
_.S([_.Yo("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zv]),_.V("design:returntype")],f4.prototype,"onYtServiceRequestCompleted_",null);_.S([_.Ff({is:"yt-confirm-dialog-renderer",noInjection:!0})],f4);var UKs;var v6g;var C4=function(){return _.Z.apply(this,arguments)||this};
_.m(C4,_.Z);C4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.l0(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
C4.prototype.computeConfirmButton_=function(Y){var G={text:Y.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};Y.confirmNavigationEndpoint?G.navigationEndpoint=Y.confirmNavigationEndpoint:Y.confirmServiceEndpoint&&(G.serviceEndpoint=Y.confirmServiceEndpoint);return G};
C4.prototype.computeShowTitle_=function(Y){return!(Y==null||!Y.title)};
_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],C4.prototype,"data",void 0);_.S([_.R({computed:"computeShowTitle_(data)"}),_.V("design:type",Boolean)],C4.prototype,"showTitle",void 0);_.S([_.Ff({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],C4);
_.d(C4,"yt-fancy-dismissible-dialog-renderer",function(){if(v6g===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;UKs===void 0&&(UKs=document.createElement("template"));var O=UKs;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);v6g=Y}Y=v6g;return Y});var J0h;var Ysa;var yh=function(){var Y=_.Z.apply(this,arguments)||this;Y.spinnerActive=!1;return Y};
_.m(yh,_.Z);yh.prototype.created=function(){Cuw(2201)};
yh.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
yh.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
yh.prototype.onIronOverlayClosed=yh.prototype.onIronOverlayClosed;yh.prototype.onIronOverlayOpened=yh.prototype.onIronOverlayOpened;_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.CM),_.V("design:type",Object)],yh.prototype,"tpYtIronOverlayBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],yh.prototype,"data",void 0);_.S([_.R(),_.V("design:type",Object)],yh.prototype,"spinnerActive",void 0);
_.S([_.Yo("iron-overlay-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yh.prototype,"onIronOverlayOpened",null);_.S([_.Yo("iron-overlay-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yh.prototype,"onIronOverlayClosed",null);_.S([_.Ff({is:"yt-loading-renderer",disableElementRegistration:!0})],yh);
_.d(yh,"yt-loading-renderer",function(){if(Ysa===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;J0h===void 0&&(J0h=document.createElement("template"));var O=J0h;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Ysa=Y}Y=Ysa;return Y},{mode:2});var Gds;var uQo;var ev=function(){var Y=_.Z.apply(this,arguments)||this;Y.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);Y.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);Y.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.m(ev,_.Z);_.H=ev.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(Y){this.isDarkTheme=Y};
_.H.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.H.openPopupHandler_=function(Y){Y.detail===this.hostElement&&this.hostElement.hidden&&_.qZ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.H.onDismissButtonTap_=function(){var Y;this.closeOnDismissButton_.has(((Y=this.data)==null?void 0:Y.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.qZ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.H.onAcceptButtonTap_=function(){var Y;this.closeOnAcceptButton_.has(((Y=this.data)==null?void 0:Y.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.qZ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.H.computeHasHeader_=function(Y){return!!Y.headerBackgroundImage};
_.H.computeLayoutStyle_=function(Y){return Y};
_.H.computePopupSize_=function(Y){return Y};
_.H.computeIconType_=function(Y){return Y.dialogIcon&&Y.dialogIcon.iconType?Y.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":Y.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":Y.dialogIcon.iconType:""};
_.H.computeIsLogo_=function(Y){return!!Y.dialogIcon&&!!Y.dialogIcon.iconType&&(Y.dialogIcon.iconType==="YOUTUBE_LOGO"||Y.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||Y.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.H.computeHasCustomLogo=function(Y){return!(Y==null||!Y.headerForegroundImage)};
_.H.computeCustomLogo=function(Y,G){if(Y!=null&&Y.headerForegroundImage)return Y.headerForegroundImageDark?G?Y.headerForegroundImageDark:Y.headerForegroundImage:Y.headerForegroundImage};
_.H.computeHeaderBackgroundImage=function(Y,G){if(Y!=null&&Y.headerBackgroundImage)return G&&(Y==null?0:Y.headerBackgroundImageDark)?Y.headerBackgroundImageDark:Y.headerBackgroundImage};
_.H.shouldShowIconContainer=function(Y,G){return Y&&!G};
_.H.shouldShowNonYouTubeIcon=function(Y,G){return!Y&&!G};
_.H.getLogoImageId=function(Y){var G,u,O;return(Y=(G=this.computeCustomLogo(Y,this.isDarkTheme))==null?void 0:(u=G.thumbnails)==null?void 0:(O=u[0])==null?void 0:O.height)&&Y%31===0?"custom-logo-with-padding":"custom-logo"};
ev.prototype.openPopupHandler_=ev.prototype.openPopupHandler_;ev.prototype.dataChanged_=ev.prototype.dataChanged_;_.S([_.x(_.bE.YtRendererstamperBehavior),_.V("design:type",Object)],ev.prototype,"ytRendererstamperBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.S([_.R(),_.V("design:type",Boolean)],ev.prototype,"isDarkTheme",void 0);
_.S([_.R({computed:"computeCustomLogo(data, isDarkTheme)"}),_.V("design:type",Object)],ev.prototype,"customLogo",void 0);_.S([_.R({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.V("design:type",Object)],ev.prototype,"headerBackgroundImage",void 0);_.S([_.R(),_.V("design:type",Object)],ev.prototype,"data",void 0);_.S([_.R({computed:"computeHasHeader_(data)"}),_.V("design:type",Boolean)],ev.prototype,"hasHeader",void 0);
_.S([_.R({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.V("design:type",Object)],ev.prototype,"layoutStyle",void 0);_.S([_.R({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.V("design:type",Object)],ev.prototype,"popupSize",void 0);_.S([_.R({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],ev.prototype,"hasLogo",void 0);
_.S([_.R({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],ev.prototype,"hasCustomLogo",void 0);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ev.prototype,"dataChanged_",null);_.S([_.Yo("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ev.prototype,"openPopupHandler_",null);
_.S([_.Ff({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],ev);
_.d(ev,"yt-upsell-dialog-renderer",function(){if(uQo===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Gds===void 0&&(Gds=document.createElement("template"));var O=Gds;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);uQo=Y}Y=uQo;return Y},{mode:2});var OO5=_.D(function(Y){return _.T("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.T(_.X,{cond:Y.title,then:function(G){return _.T("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},G)}}))},"rl"),QBT=_.D(function(Y){return _.T("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.T(_.HE,{data:Y.closeButton},{buttonViewModel:function(G){return _.T("div",null,_.T(_.$Y,{data:G.data}))}}))},"sl"),MLn=_.D(function(Y){var G=Y.data;
return _.T(_.GY,null,_.T("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.T("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.T(_.X,{cond:function(){return!!G().image&&!!G().title},
then:function(){return _.T(_.RD,{data:function(){return G().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.T("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.T(_.X,{cond:function(){return G().title},
then:function(u){return _.T("h3",{class:"miniAppGameInfoDialogViewModelTitle"},u)}}),_.T(_.X,{cond:function(){return G().primaryGenre},
then:function(u){return _.T("span",{class:"miniAppGameInfoDialogViewModelGenre"},u)}}))),_.T(_.X,{cond:function(){var u=G().description;
return u&&u.length<=150},
then:function(){return _.T("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.T("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return G().description}))}}))},"tl"),HOT=_.D(function(Y){var G=Y.ageRating;
return _.T("span",{class:"miniAppGameInfoDialogViewModelAgeRatingWrapper"},_.T(_.RD,{data:function(){return{sources:[{url:G().imageUrl||"",width:18,height:18}]}},
className:"miniAppGameInfoDialogViewModelAgeRatingImage",alt:"",targetHeight:18,targetWidth:18,preserveWidth:!0,preserveHeight:!0}),_.T("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.T(_.eO,{text:function(){return G().attributedLabel},
noPreWrap:!0})))},"ul"),Exz=_.D(function(Y){Y=Y.infoRows;
var G=_.sH().resolve(_.S_),u=_.F("enable_displaying_ppn");return _.T("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.T(_.rc,{each:Y},function(O){return _.T("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.T(_.X,{cond:function(){return O.label},
then:function(Q){return _.T("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},Q)}}),_.T(_.X,{cond:function(){return O.attributedLabel},
then:function(Q){return _.T("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.T(_.eO,{text:Q,noPreWrap:!0}))}}),_.T(_.X,{cond:function(){return O.value},
then:function(Q){return _.T("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},Q)}}),_.T(_.X,{cond:function(){return O.attributedValue},
then:function(Q){return _.T("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.T(_.eO,{text:Q,noPreWrap:!0}))}}),_.T(_.X,{cond:function(){return O.ageRating},
then:function(Q){return _.T(HOT,{ageRating:Q})}}))}),_.T(_.X,{cond:function(){return u&&G.clientData.has("post_play_nonce")},
then:function(){return _.T("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.T("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.T("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},G.getData("post_play_nonce")))}}))},"vl"),tLs=_.D(function(Y){var G=Y.data;
return _.T("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.T(OO5,{title:function(){return G().dialogTitle}}),_.T(MLn,{data:G}),_.T(_.X,{cond:function(){return G().infoRow},
then:function(u){return _.T(Exz,{infoRows:u})}}),_.T(QBT,{closeButton:function(){return G().closeButton}}))},"wl");
tLs.idomCompat=!0;_.hR(tLs,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=Y.data;return _.T("yt-gulp-triggering-dialog-view-model",{class:_.s3("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.T(_.RD,{data:function(){return G().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.T("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.T("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.T("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.T(_.eO,{text:function(){return G().title}})),_.T(_.X,{cond:function(){return G().bodyText},
then:function(u){return _.T(_.rc,{each:u},function(O){return _.T("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.T(_.eO,{text:O}))})}})),_.T("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.T(_.HE,{data:function(){return G().dismissButton}},{buttonViewModel:function(u){return _.T("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.T(_.$Y,{data:u.data}))}}),_.T(_.HE,{data:function(){return G().actionButton}},{buttonViewModel:function(u){return _.T("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.T(_.$Y,{data:u.data}))}}))))},"xl"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.AC}});var KSq=_.D(function(Y){var G=Y.data;Y=_.dB(function(){return G().agreements},[]);
return _.T("installment-agreements-view-model",{class:_.s3("ytInstallmentAgreementsViewModelHost")},_.T(_.rc,{each:Y},function(u){return _.T("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.T("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.T(_.eO,{text:u.label})),_.T("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.T(_.HE,{data:function(){return u.openButton}},{buttonViewModel:_.$Y})))}))},"yl");
KSq.idomCompat=!0;var aGq=_.D(function(Y){var G=_.E(_.SN(function(){var q,U;return((q=Y.data().createPlaylistDialogFormSchema)==null?0:(U=q.initialValues)==null?0:U.title)?Y.data().createPlaylistDialogFormSchema.initialValues.title:""})),u=G.next().value,O=G.next().value;
G=_.E(_.SN(function(){Y.data();return!1}));
var Q=G.next().value,M=G.next().value;G=_.E(_.SN(function(){Y.data();return!1}));
var t=G.next().value,K=G.next().value;G=_.E(_.SN(function(){var q,U;return(q=Y.data().createPlaylistDialogFormSchema)==null?void 0:(U=q.initialValues)==null?void 0:U.visibility}));
var L=G.next().value,g=G.next().value;G=_.E(_.SN(function(){Y.data();return!1}));
var P=G.next().value,I=G.next().value;G=_.E(_.SN(function(){var q,U;return(q=Y.data().createPlaylistDialogFormSchema)==null?void 0:(U=q.initialValues)==null?void 0:U.isCollaborative}));
var k=G.next().value,n=G.next().value,p=_.CH("div");_.RE(function(){var q=p.value.querySelector("textarea");q&&(q.value=u())},"axFRaf");
_.ii(function(){var q;xW9((q=Y.data().createPlaylistDialogFormSchema)==null?void 0:q.id,{onSubmit:function(){var U=u();var Mj=L(),Xt=k(),ka=Y.data();U={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:U,privacyStatus:Mj,videoIds:ka.videoIds,sourcePlaylistId:ka.sourcePlaylistId,params:Xt?ka.createPlaylistParamsCollaborationEnabled:ka.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.sH().resolve(_.rH).resolveCommand(U)},
isValid:function(){return Q()&&!t()&&!P()}})});
var W=function(q){if(q!==void 0&&(O(q),!Q()&&q.length>0&&M(!0),Q())){var U=oSg(Y.data());if(U){var Mj=U.minLength;U=U.maxLength;Mj&&q.length<Mj?K(!0):U&&q.length>U?K(!0):K(!1)}}},C=function(){var q=!(!k()||L()!=="PRIVATE");
I(q)},e=function(q){q!==void 0&&(g(q),C())},w=function(){if(P())return R$o(Y.data())},B=function(){n(!k());
C()},N=function(){return{validate:function(q){if(Q()){var U=oSg(Y.data());
if(U){var Mj=U.minLength;U=U.translations;if(Mj&&q.length<Mj)return U==null?void 0:U.minLengthErrorMessage}}}}},h=function(){var q=oSg(Y.data()),U=q==null?void 0:q.maxLength,Mj;
q=q==null?void 0:(Mj=q.translations)==null?void 0:Mj.maxLengthErrorMessage;if(U&&q)return{maxChars:U,errorMessage:q}};
return _.T("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.T("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:p},_.T(_.HE,{data:function(){return Y.data().playlistTitle}},{textFormFieldViewModel:function(q){return _.T(UgV,{data:q.data,
text:u,onInput:W,validation:N,characterLimit:h})},
textFieldViewModel:function(q){return _.T(cuN,{data:q.data,text:u,controlledMode:!0,onInput:W,validation:N,characterLimit:h})}})),_.T("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.T(_.HE,{data:function(){return Y.data().playlistVisibility}},{dropdownViewModel:function(q){return _.T(EAo,{data:q.data,
onSelected:e,error:w})}})),_.T(_.X,{cond:function(){return!!Y.data().playlistCollaborate},
then:function(){return _.T("div",null,_.T(_.HE,{data:function(){return Y.data().playlistCollaborate}},{switchListItemViewModel:function(q){return _.T(_.It9,{data:q.data,
onTap:B})}}))}}))},"Al");var Tgz=_.D(function(Y){var G=Y.data;return _.T("upsell-offer-table-cell-content-view-model",null,_.T("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.T(_.x4,null,_.T(_.m1,{when:function(){var u;return(u=G().icon)==null?void 0:u.iconType}},function(){return _.T("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.T(_.GS,{icon:function(){var u;
return(u=G().icon)==null?void 0:u.iconType.toString()}}))}),_.T(_.m1,{when:function(){return G().title}},function(){return _.T(_.eO,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return G().title}})}),_.T(_.m1,{when:function(){return G().subtitle}},function(){return _.T(_.eO,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return G().subtitle}})}),_.T(_.m1,{when:function(){return G().infoText}},function(){return _.T(_.eO,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return G().infoText}})}),_.T(_.m1,{when:function(){return G().featureDescription}},function(){return _.T(_.eO,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return G().featureDescription}})}),_.T(_.m1,{when:function(){return G().note}},function(){return _.T(_.eO,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return G().note}})})),_.T(_.X,{cond:function(){var u;
return(u=G().icon)==null?void 0:u.iconAccessibilityText},
then:function(){return _.T("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var u;return(u=G().icon)==null?void 0:u.iconAccessibilityText})}})))},"Bl");
Tgz.idomCompat=!0;var LSq=_.D(function(Y){var G=Y.data;var u=Y.cellIndex;var O=Y.rowIndex;return _.T("upsell-offer-table-cell-view-model",null,_.T("div",{class:_.s3("ytUpsellOfferTableCellViewModelCellWrapper",function(){return G().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":G().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var Q,M;return"cell-"+((Q=O==null?void 0:O())!=null?Q:0)+"-"+((M=u==null?void 0:u())!=null?M:0)},
role:function(){return G().isFirstRow?"columnHeader":G().isFirstColumn?"rowheader":"gridcell"}},_.T(_.HE,{data:function(){return G().contents}},{upsellOfferTableCellContentViewModel:Tgz})))},"Cl");
LSq.idomCompat=!0;var gx5=_.D(function(Y){var G=Y.data;var u=Y.upsellTableIsFirstRow;var O=Y.rowIndex;var Q=function(){return(u==null?0:u())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},M=function(){return(u==null?0:u())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.T("ytm-upsell-offer-table-row-view-model",null,_.T("div",{class:function(){return(u==null?0:u())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(O==null?void 0:O())+"-1 cell-"+(O==null?void 0:O())+"-2"}},_.T(_.HE,{data:function(){return G().rowHeaderCell}},{upsellOfferTableCellViewModel:function(t){return _.T("div",{class:Q},_.T(LSq,{data:t.data,
cellIndex:0,rowIndex:O}))}}),_.T("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.T(_.HE,{data:function(){return G().contentCells}},{upsellOfferTableCellViewModel:function(t,K){return _.T("div",{class:M},_.T(LSq,{data:t.data,
cellIndex:function(){return K()+1},
rowIndex:O}))}}))))},"Dl");
gx5.idomCompat=!0;var XIs=_.D(function(Y){var G=Y.data;return _.T("ytm-upsell-offer-table-view-model",null,_.T("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.T("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.T(_.HE,{data:function(){return G().rows}},{upsellOfferTableRowViewModel:function(u,O){return _.T(gx5,{data:u.data,
upsellTableIsFirstRow:function(){return O()===0},
rowIndex:O})}}))))},"El");
XIs.idomCompat=!0;var P7T=_.D(function(Y){var G=function(){return Y.data()},u=_.dB(Y.noPadding,!1),O=function(){var M,t;
return(t=(M=G().logo.accessibilityData)==null?void 0:M.label)!=null?t:""},Q={};
return _.T("upsell-view-model",{class:_.s3("ytUpsellViewModelHost",(Q.ytUpsellViewModelHostNoPadding=function(){return u()},Q.ytUpsellViewModelHostWide=function(){return G().offerTable!==void 0},Q))},_.T("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.T(_.X,{cond:function(){return _.e0(G().logo)},
then:function(M){return _.T(_.RD,{data:M,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:O})}})),_.T("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.T(_.eO,{text:function(){return G().title}})),_.T("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.T(_.rc,{each:function(){var M;
return(M=G().subtitles)!=null?M:[]},
keyBy:"INDEX"},function(M){var t={};return _.T("div",{class:_.s3("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(t.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return G().offerTable!==void 0},t))},_.T(_.eO,{text:M}))})),_.T("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.T(_.rc,{each:function(){var M;
return(M=G().benefitInfos)!=null?M:[]},
keyBy:"INDEX"},function(M){return _.T(_.X,{cond:function(){return M().info},
then:function(t){return _.T("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.T(_.GS,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.T(_.eO,{text:t}))}})})),_.T(_.X,{cond:function(){return G().offerTable!==void 0},
then:function(){return _.T("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.T(_.HE,{data:function(){return G().offerTable}},{upsellOfferTableViewModel:function(M){return _.T(XIs,{data:M.data})}}))}}),_.T("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.T(_.rc,{each:function(){var M;
return(M=G().legalInfos)!=null?M:[]},
keyBy:"INDEX"},function(M){var t={};return _.T("div",{class:_.s3("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(t.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return G().offerTable!==void 0},t))},_.T(_.eO,{text:M}))})))},"Fl");var IGT=_.D(function(Y){var G=Y.data;Y={};Y=(Y.ytMiniAppScoreChallengeViewModelScoreRadial=!0,Y.ytMiniAppScoreChallengeViewModelDarkScoreRadial=wGN(),Y);return _.T("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.T("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return G().title}),_.T("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return G().subtitle}),_.T("div",{class:_.PE(Y)},_.T("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return G().score})),_.T("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return G().prompt}))},"Gl");var kdp=function(){this.store=_.DS();this.formId=""};
kdp.prototype.onInit=function(Y){Y.formId&&(this.formId=Y.formId,this.store.dispatch(_.V6({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
kdp.prototype.cleanup=function(){this.store.dispatch(_.V6({type:"RESET_COMMAND_MAP"}))};var nxp=_.D(function(Y){function G(K){if(K&&(K=_.z(K,_.ad)))return Object.assign({},K,{isSelected:M()})}
var u=_.E(_.SN(function(){var K,L;return(L=(K=_.z(Y.data().option,_.ad))==null?void 0:K.isSelected)!=null?L:!1})),O=u.next().value,Q=u.next().value,M=O;
_.ii(function(){var K;xW9((K=Y.data().formSchema)==null?void 0:K.id,{onSubmit:function(){var L=_.sH().resolve(_.rH),g=!!Y.data().selectedCommand,P=!!Y.data().unselectedCommand;if(M()){if(g)var I=Y.data().selectedCommand}else P&&(I=Y.data().unselectedCommand);I=_.FS(I);G(Y.data().option)&&!I?(L="",!g&&P?L="selected ":g&&!P&&(L="unselected "),g=new _.I2("No "+L+"command found for SelectionListItemFormViewModel"),_.o0(g)):I&&L.resolveCommand(I)},
isValid:function(){return!0}})});
var t=function(){Q(!M())};
_.w_(function(){var K,L,g=(K=Y.data())==null?void 0:(L=K.formSchema)==null?void 0:L.id;g&&_.QY()().delete(g)});
return _.T("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.T("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.T(_.eO,{text:function(){return Y.data().paragraph}})),_.T(_.X,{cond:function(){return G(Y.data().option)},
then:function(K){return _.T(_.og,{data:K,isCompact:!0,hideSelectionTextChevron:!0,onTap:t,disableHorizontalPadding:!0})}}))},"Hl");var FSO=_.D(function(Y){var G=Y.data;var u=Y.disablePadding;var O=Y.className;var Q=_.CH("yt-dialog-header-view-model"),M=function(){var L=G().imageBanner;a:switch(G().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var g="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:g="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:L,style:g,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},t=function(){return G().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
K=function(){return G().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.ii(function(){var L=function(){_.qZ(Q.value,"yt-refit-popups-action")},g;
(g=Q.value)==null||g.addEventListener("image-loaded",L);_.w_(function(){var P;(P=Q.value)==null||P.removeEventListener("image-loaded",L)})});
Y={};return _.T("yt-dialog-header-view-model",{el:Q,class:_.s3(O,(Y.ytDialogHeaderViewModelHost=!0,Y.ytDialogHeaderViewModelHostDisablePadding=u,Y.ytDialogHeaderViewModelHostCentered=K,Y))},_.T(_.X,{cond:function(){return G().imageBanner},
then:function(){var L={};return _.T("div",{class:_.s3(O,(L.ytDialogHeaderViewModelBanner=!0,L.ytDialogHeaderViewModelBannerFullBleed=t,L)),style:_.Yh({"max-height":function(){return G().assetContainerMaxHeight!==void 0?G().assetContainerMaxHeight+"px":void 0}})},_.T(_.c9,{data:M,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.T(_.X,{cond:function(){return G().headerBlock},
then:function(){var L={};return _.T("div",{class:_.s3("ytDialogHeaderViewModelHeaderBlock",(L.ytDialogHeaderViewModelHeaderBlockCentered=K,L))},_.T(_.HE,{data:function(){return G().headerBlock}},{contentPreviewImageViewModel:function(g){return _.T(_.c9,{data:g.data,
notifyOnLoaded:!0})}}))}}),_.T(_.X,{cond:function(){return G().customBanner},
then:function(L){var g={};return _.T("div",{class:_.s3("ytDialogHeaderViewModelCustomAssetContainer",(g.ytDialogHeaderViewModelCustomAssetContainerCentered=K,g))},_.T(_.HE,{data:L},{avatarStackViewModel:_.W9}))}}),_.T(_.X,{cond:function(){return G().headline},
then:function(L){return _.T("h2",null,_.T(_.eO,{text:L,className:"ytDialogHeaderViewModelText"}))}}))},"Il");
FSO.idomCompat=!0;var pIO=_.D(function(Y){var G=_.iiy(function(){return Y.data().formId}),u=G.submitForm,O=G.isValid;
return _.T("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.T(_.HE,{data:function(){return Y.data().panelFooter}},{panelFooterViewModel:function(Q){return _.T(pt,{data:Q.data,
disablePadding:!0,disablePrimaryButton:function(){return!O()},
onClickPrimaryButton:function(){u()}})}}))},"Jl");var zop=_.D(function(Y){var G=function(){var u,O;return(O=(u=_.z(Y.data().rendererContext,_.L$))==null?void 0:u.label)!=null?O:""};
return _.T("yt-dialog-image-content-view-model",{class:_.s3("ytDialogImageContentViewModelHost",Y.className)},_.T(_.X,{cond:function(){return _.e0(Y.data().image)},
then:function(u){var O={};return _.T("div",{style:_.Yh((O.width=(0,_.xi)(function(){var Q;return(Q=Y.data().imageMaxWidth)!=null?Q:""}),O)),
class:"ytDialogImageContentViewModelImage"},_.T(_.RD,{data:u,alt:G,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.T(_.eO,{text:function(){return Y.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Kl");var rDs=_.D(function(Y){var G=_.bM(Y,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),u=G.elRefCallback;Y=G.Icon;var O=G.Asset,Q=G.assetType,M=G.Title,t=G.LeadingActionHeader,K=G.TrailingActionHeader,L=G.headerPosition,g=G.Content,P=G.buttonLayout,I=G.buttonStyle,k=G.primaryButtonWiz,n=G.secondaryButtonWiz,p=G.contentAlignment,W=G.isFullscreen,C=G.width,e=G.maxHeight,w=G.isHeaderWizDefined,B=G.Header,N=G.isFooterWizDefined,
h=G.Footer;G=_.CH("dialog-layout",function(iy){u==null||u(iy)});
var q=k?function(){var iy={};return k({buttonOverrides:function(){return{style:(I==null?void 0:I())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.s3((iy["yt-spec-dialog-layout__dialog-layout-button"]=!0,iy["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(P==null?void 0:P())===0||(P==null?void 0:P())===2},iy))})}:void 0,U=n?function(){var iy={};
return n({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.s3((iy["yt-spec-dialog-layout__dialog-layout-button"]=!0,iy["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(P==null?void 0:P())===0||(P==null?void 0:P())===2},iy))})}:void 0,Mj=function(){return(!!M||!!t||!!K)&&L()===0},Xt={},ka={},aU={},Tg={};
return _.T("dialog-layout",{el:G,class:_.s3((Xt["yt-spec-dialog-layout"]=!0,Xt["yt-spec-dialog-layout--dialog-layout-fullscreen"]=W,Xt["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!W()},Xt["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return e()===1},Xt["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(Q==null?void 0:Q())===1},Xt)),
style:function(){return(C==null?void 0:C())!==void 0?"width: "+C()+"px;":""}},Y?_.T("div",{class:_.s3((ka["yt-spec-dialog-layout__dialog-layout-icon"]=!0,ka["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!O&&L()===1},ka["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return p()===1},ka))},_.T(Y,null)):null,_.T(_.X,{cond:w,
then:function(){return B?_.T("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.T(B,null)):null},
else:function(){return _.T(_.GY,null,_.T(_.X,{cond:Mj,then:function(){return _.T(mIn,{contentAlignment:p,LeadingActionHeader:t,TrailingActionHeader:K,Title:M,isAboveAsset:!!O})}}),O?_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.T(O,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.T("div",{class:_.s3((aU["yt-spec-dialog-layout__dialog-layout-container"]=!0,aU["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(p==null?void 0:p())===1},
aU["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!M&&!(B&&w())||!!O&&(L==null?void 0:L())===0},aU))},_.T(_.X,{cond:function(){return M&&!B&&(L==null?void 0:L())===1},
then:function(){return _.T(mIn,{contentAlignment:p,LeadingActionHeader:t,TrailingActionHeader:K,Title:M,isAboveAsset:!1})}}),g?_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.T(g,null))):null,_.T(_.X,{cond:N,
then:function(){return h?_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.T(h,null)):null}}),q||U?_.T(WSh,{footerClasses:_.s3((Tg["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,Tg["yt-spec-dialog-layout__dialog-layout-footer"]=!0,Tg["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(P==null?void 0:P())===2},Tg["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(P==null?void 0:P())===1},Tg)),
PrimaryButton:q,SecondaryButton:U}):null))},"Ll"),mIn=_.D(function(Y){var G=_.bM(Y,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),u=G.contentAlignment,O=G.LeadingActionHeader;Y=G.Title;var Q=G.TrailingActionHeader,M=G.isAboveAsset,t=G.enableLeadingActionHeader;G={};return _.T("div",{class:_.s3((G["yt-spec-dialog-layout__dialog-header-container"]=!0,G["yt-spec-dialog-layout__dialog-header"]=!0,G["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=M,G["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(u==null?void 0:u())===1&&t()},G))},_.T(_.X,{cond:function(){return t()},
then:function(){return O?_.T("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.T(O,null)):null}}),Y?_.T("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.T(Y,null)):null,Q?_.T("div",null,_.T(Q,null)):null)},"Ml"),WSh=_.D(function(Y){var G=Y.footerClasses;
var u=Y.PrimaryButton;Y=Y.SecondaryButton;return _.T("div",{class:G},Y?_.T(Y,null):null,u?_.T(u,null):null)},"Nl");var xIs=new _.Sb("TIME_PICKER_VIEW_MODEL_TOKEN");var fGg=_.D(function(Y){var G=Y.data;return _.T("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.T("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.T(_.HE,{data:function(){return G().avatar}},{avatarViewModel:_.z$})),_.T("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.T(_.eO,{text:function(){return G().title}})),_.T(_.eO,{text:function(){return G().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Ol");var C7a=_.D(function(Y){return _.T("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.T(_.eO,{text:function(){return Y.data().inviteMessage}})),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.T(_.eO,{text:function(){return Y.data().attributedAccountSectionHeaderText}})),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.T(_.HE,{data:function(){return Y.data().accountAvatar}},{avatarViewModel:_.z$}),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.T(_.eO,{text:function(){return Y.data().accountName}}),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.T(_.eO,{text:function(){return Y.data().handle}}))),_.T(_.HE,{data:function(){return Y.data().trailingButton}},{buttonViewModel:_.$Y})),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.T(_.eO,{text:function(){return Y.data().termsOfService}})))},"Pl");var yD5=_.D(function(Y){return _.T("yt-community-edu-view-model",{class:_.s3("ytCommunityEduViewModelHost")},_.T("div",{class:"ytCommunityEduViewModelHeader"},_.T(_.X,{cond:function(){var G;return(G=Y.data().titleImage)==null?void 0:G.image},
then:function(){return _.T(_.RD,{className:"ytCommunityEduViewModelTitleImage",data:function(){return Y.data().titleImage.image},
alt:""})}}),_.T(_.X,{cond:function(){return Y.data().creatorAvatar},
then:function(){return _.T("div",{class:"ytCommunityEduViewModelAvatar"},_.T(_.HE,{data:function(){return Y.data().creatorAvatar}},{avatarViewModel:function(G){var u=G.data;
return _.T(_.z$,{data:function(){return Object.assign({},u(),{avatarBorderStyle:"AVATAR_BORDER_STYLE_SQUARE"})}})}}))}})),_.T(_.X,{cond:function(){return Y.data().titleText},
then:function(){return _.T(_.eO,{className:"ytCommunityEduViewModelTitle",text:function(){return Y.data().titleText}})}}),_.T(_.X,{cond:function(){var G;
return(G=Y.data().educationalTextSet)==null?void 0:G.length},
then:function(){return _.T("div",{class:"ytCommunityEduViewModelEducationalTextSets"},_.T(_.rc,{each:function(){return Y.data().educationalTextSet}},function(G){return _.T("div",{class:"ytCommunityEduViewModelEducationalTextSet"},_.T(_.X,{cond:function(){return G.primaryText},
then:function(){return _.T(_.eO,{className:"ytCommunityEduViewModelPrimaryText",text:function(){return G.primaryText}})}}),_.T(_.X,{cond:function(){return G.secondaryText},
then:function(){return _.T(_.eO,{className:"ytCommunityEduViewModelSecondaryText",text:function(){return G.secondaryText}})}}))}))}}))},"Ql");var eoq=_.D(function(Y){var G=Y.data;return _.T("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.T("div",{class:"ytAccessConfirmationViewModelContent"},_.T(_.HE,{data:function(){var u;return(u=G().avatar)!=null?u:G().dualAvatar}},{dualAvatarViewModel:function(u){return _.T(_.K0b,{data:u.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(u){return _.T(_.mb,{data:u.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.T("h2",{class:"ytAccessConfirmationViewModelTitle"},_.T(_.eO,{text:function(){return G().title}})),_.T(_.eO,{text:function(){return G().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Rl");var ADh=_.D(function(Y){var G=function(){var K,L;return(K=Y.data().formSchema)==null?void 0:(L=K.initialValues)==null?void 0:L.selectedLanguages},u=_.E(_.SN(function(){return G()})),O=u.next().value,Q=u.next().value,M={};
_.RE(function(){var K=Y.data().formSchema,L=K==null?void 0:K.submitConfig;Y.data()!==M&&(M=Y.data(),K&&L&&rHB(K.id,{isValid:function(){var g,P=(g=O())!=null?g:[],I;g=(I=G())!=null?I:[];if(P.length!==g.length)return!0;I=new Set(g);P=_.E(P);for(g=P.next();!g.done;g=P.next())if(!I.has(g.value))return!0;return!1},
formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:O()||[]}}},
submitConfig:L}))},"iCaJcc");
var t=function(K){var L=K.key;if(L){var g;if(L&&((g=O())==null?0:g.includes(L))){var P;Q((P=O())==null?void 0:P.filter(function(I){return I!==L}))}else Q([].concat(_.c8(O()||[]),[L]))}};
return _.T("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},_.T(_.HE,{data:function(){return Y.data().checkboxGroup}},{checkboxGroupViewModel:function(K){return _.T(Brg,{data:K.data,
onItemTap:t,selectedKeys:O,controlledMode:!0,disableHorizontalPadding:Y.disableHorizontalPadding})}}))},"Tl");var oxo=_.D(function(Y){var G=Y.data;var u=void 0;Y=_.E(_.SN(function(){var P;return((P=_.z(G().content,dlb))==null?void 0:P.defaultSelectedKey)||""}));
var O=Y.next().value,Q=Y.next().value,M,t=function(){Q("");var P;(P=u)==null||P.cleanup()};
_.ii(function(){u=new kdp;window.addEventListener("yt-popup-closed",t)});
_.RE(function(){if(u&&M!==G().formId&&(u.onInit(G()),(M=G().formId)&&O())){var P=u,I={key:O()};I.command&&P.store.dispatch(qqb(M,I.command))}},"pZ63Xc");
_.w_(function(){window.removeEventListener("yt-popup-closed",t)});
var K=function(P,I,k){I.key&&k&&I.key!==O()&&(Q(I.key),u&&I.command&&u.store.dispatch(qqb(k,I.command)))},L=function(){if(_.z(G().content,dlb))return!(O==null?0:O())},g=_.sH().resolve(_.q3(xIs));
return _.T("yt-dialog-view-model",{class:_.s3("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.T(rDs,{Header:function(){return _.T(_.HE,{data:function(){return G().header}},{dialogHeaderViewModel:function(P){return _.T(FSO,{data:P.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!G().header},
Content:function(){return _.T(_.HE,{data:function(){return G().customContent?G().customContent:G().content}},Object.assign({},{basicContentViewModel:_.ei,
createPlaylistDialogFormViewModel:aGq,collaborativePlaylistInviteMessageViewModel:C7a,preferredLanguageSettingsPanelViewModel:function(P){return _.T(ADh,{data:P.data,disableHorizontalPadding:!0})},
miniAppScoreChallengeViewModel:IGT,radioButtonGroupViewModel:function(P){var I=P.data;return _.T(VUy,{data:I,selectedKey:O,onSelected:K,groupName:function(){return I().formId}})},
selectionListItemFormViewModel:nxp,upsellViewModel:function(P){return _.T(P7T,{data:P.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:fGg,installmentAgreementsViewModel:KSq,accessConfirmationViewModel:eoq,listViewModel:function(P){return _.T(_.rYb,{data:P.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:zop,fanCommunityNudgeViewModel:function(P){return _.T(yD5,{data:P.data})}},g&&{timePickerViewModel:g}))},
Footer:function(){return _.T(_.HE,{data:function(){return G().footer}},{panelFooterViewModel:function(P){return _.T(pt,{data:P.data,
disablePadding:!0,disablePrimaryButton:L})},
formPanelFooterViewModel:pIO,formFooterViewModel:function(P){return _.T(heo,{data:P.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!G().footer}}))},"Vl");
oxo.idomCompat=!0;_.hR(oxo,"yt-dialog-view-model",{props:{data:_.AC},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var iOq=_.D(function(Y){var G=Y.data;return _.T("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.T(_.X,{cond:function(){return G().title},
then:function(u){return _.T("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.T(_.eO,{text:u,className:"ytPanelHeaderViewModelTitle"}))}}),_.T(_.X,{cond:function(){return G().subtitle},
then:function(u){return _.T(_.eO,{text:u,className:"ytPanelHeaderViewModelSubtitle"})}}))},"Wl"),Rog=_.D(function(Y){var G=Y.data;
var u=_.TZj(function(){return G().rendererContext});
Y={};return _.T("yt-panel-header-view-model",{class:_.s3("ytPanelHeaderViewModelHost",(Y.ytPanelHeaderViewModelHostHideDivider=function(){return!!G().shouldHideDivider},Y.ytPanelHeaderViewModelHostCompact=function(){return!!G().subtitle},Y)),
"aria-label":function(){var O;return(O=u())==null?void 0:O.label}},_.T(_.X,{cond:function(){return _.pK(G().rendererContext)},
then:function(){return _.T(_.Eax,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.F9(G().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.T(iOq,{data:G}))},
else:function(){return _.T(iOq,{data:G})}}),_.T("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.T(_.HE,{data:function(){return G().trailingButtons}},{buttonViewModel:function(O){return _.T(_.$Y,{data:O.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Xl");
Rog.idomCompat=!0;var wIq=_.D(function(Y){var G=_.U3(function(M){var t;if((t=Y.skipContentClick)==null?0:t.call(Y))return!1;Y.onContentWrapperClick(M);return!0}),u,O,Q;
return _.T("div",{class:_.s3("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return Y.isAnimating()?"transform: translateY("+Y.currentY()+"px);transition: 0.2s":""}},(u=Y.header)==null?void 0:u.call(Y),_.T("div",{id:Y.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Yh({"max-height":(0,_.xi)(Y.maxHeightForContentWrapper)}),"on:scroll":_.U3(function(M){return Y.onScroll(M),!1}),
"on:touchmove":_.U3(function(M){return M.stopPropagation(),!1})},_.T("div",{el:_.iq(Y.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":G},(O=Y.body)==null?void 0:O.call(Y))),(Q=Y.footer)==null?void 0:Q.call(Y))},"Yl");
wIq.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var ZOq=_.D(function(Y){var G=_.dB(Y.leadingLabel),u=_.dB(Y.trailingLabel),O=_.dB(Y.footerButtonType),Q=function(){return G()||u()||Y.hasPrimaryButton()||Y.hasSecondaryButton()},M={},t=_.s3("yt-spec-bottom-sheet-layout__primary-button",(M["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return O()===0&&Y.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return O()===1&&Y.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return O()===2&&Y.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return O()===3&&Y.hasPrimaryButton()},M));
M={};var K=_.s3("yt-spec-bottom-sheet-layout__secondary-button",(M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return O()===1&&Y.hasSecondaryButton()},M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return O()===2&&Y.hasSecondaryButton()},M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return O()===3&&Y.hasPrimaryButton()},M));
return _.T(_.X,{cond:Y.hasFooterOverride,then:function(){var L;return _.T(_.GY,null,(L=Y.footerOverride)==null?void 0:L.call(Y))},
else:function(){return _.T(_.X,{cond:Q,then:function(){return _.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.T(_.X,{cond:function(){return G()||u()},
then:function(){var L={};return _.T("div",{class:_.s3("yt-spec-bottom-sheet-layout__footer-label-wrapper",(L["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!Y.hasPrimaryButton()},L))},_.T(_.X,{cond:G,
then:function(){return _.T("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},G)}}),_.T(_.X,{cond:u,
then:function(){return _.T("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},u)}}))}}),_.T(_.X,{cond:function(){return Y.hasPrimaryButton()||Y.hasSecondaryButton()},
then:function(){var L={};return _.T("div",{class:_.s3("yt-spec-bottom-sheet-layout__footer-button-wrapper",(L["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.cb1,L))},_.T(_.X,{cond:function(){return Y.hasSecondaryButton()&&O()!==0},
then:function(){var g;return _.T("div",{class:K},(g=Y.secondaryButton)==null?void 0:g.call(Y))}}),_.T(_.X,{cond:Y.hasPrimaryButton,
then:function(){var g;return _.T("div",{class:t},(g=Y.primaryButton)==null?void 0:g.call(Y))}}))}}))}})}})},"Zl");
ZOq.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var DIq=_.D(function(Y){var G=_.dB(Y.title),u=_.dB(Y.subtitle);return _.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:Y.headerId,"on:touchstart":_.U3(function(O){var Q;(Q=Y.touchstart)==null||Q.call(Y,O);return!1}),
"on:touchmove":_.U3(function(O){var Q;(Q=Y.touchmove)==null||Q.call(Y,O);return!1}),
"on:touchend":_.U3(function(O){var Q;(Q=Y.touchend)==null||Q.call(Y,O);return!1})},_.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.T(_.X,{cond:Y.hasHeaderOverride,
then:function(){var O;return _.T(_.GY,null,(O=Y.headerOverride)==null?void 0:O.call(Y))},
else:function(){var O={};return _.T("div",{class:_.s3((O["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,O["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=G,O))},_.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.T(_.X,{cond:G,then:function(){return _.T(_.GY,null,_.T("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},G),_.T(_.X,{cond:u,then:function(){return _.T("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
u)}}))}})),_.T(_.X,{cond:function(){return G()&&Y.hasActionHeader()},
then:function(){var Q;return _.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(Q=Y.actionHeader)==null?void 0:Q.call(Y))}}))}}))},"$l");
DIq.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.D(function(Y){function G(Mj){if(!B&&typeof MutationObserver!=="undefined"){var Xt={childList:!0};"MutationObserver"in window&&(B=new MutationObserver(u.bind(void 0,Mj)),B.observe(Mj,Xt))}}
function u(Mj){typeof B!=="undefined"&&(N["content-wrapper"]===void 0&&(N["content-wrapper"]=Mj.children[0].clientHeight),W(N["content-wrapper"]),p()>C()||e(p()))}
function O(){n(window.innerHeight);p()>C()||e(p());h.isFullScreen[0]()&&p()>C()?q().dispatch("Snap To Full Screen",{maxHeight:w()}):q().dispatch("Snap To Neutral Position",{maxHeight:C()})}
function Q(Mj){document.body.style.overscrollBehavior="none";Mj.preventDefault();q().dispatch("Touch Start",{event:Mj})}
function M(Mj){Mj.preventDefault();q().dispatch("Touch Move",{event:Mj,contentScrollable:p()>C(),fullContentWrapperHeight:w(),contentWrapperHeight:C(),heightMap:N,contentWrapperId:"content-wrapper",header:bu9(Y),footer:bu9(Y),headerDivHeight:N["bottom-sheet-header"],footerDivHeight:N["bottom-sheet-footer"]})}
function t(){document.body.style.overscrollBehavior="";h.isFullScreen[0]()?h.currentY[0]()>=60?q().dispatch("Snap To Neutral Position",{maxHeight:C()}):q().dispatch("Snap To Full Screen",{maxHeight:w()}):h.currentY[0]()>=60?K():h.currentY[0]()<=-60&&p()>C()?q().dispatch("Snap To Full Screen",{maxHeight:w()}):q().dispatch("Snap To Neutral Position",{maxHeight:C()})}
function K(){q().dispatch("Close Sheet",{clientHeight:k(),maxHeight:0});setTimeout(function(){d1V()},250)}
var L=_.CH("div"),g=_.CH("div"),P=_.E(_.IE(window.innerHeight,void 0,"CmOsU")),I=P.next().value;P=P.next().value;var k=I,n=P;P=_.E(_.IE(0,void 0,"p0Flhb"));I=P.next().value;P=P.next().value;var p=I,W=P;P=_.E(_.SN(function(){var Mj=bu9(Y);return.6*k()-Zux(Mj)-D1x(Mj)}));
I=P.next().value;P=P.next().value;var C=I,e=P,w=function(){var Mj=bu9(Y),Xt=k(),ka=N["bottom-sheet-header"],aU=N["bottom-sheet-footer"];return Xt-(Mj.hasHeaderFn&&ka!==void 0?ka:Zux(Mj))-(Mj.hasFooterFn&&aU!==void 0?aU:D1x(Mj))-24-24},B=null,N={},h={initialY:_.IE(0,void 0,"sxdESd"),
currentY:_.IE(0,void 0,"GZzqeb"),isAnimating:_.IE(!1,void 0,"vJBupc"),isFullScreen:_.IE(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.SN(C)},q=function(){var Mj=null;return function(){if(!Mj){var Xt={initialY:h.initialY[0](),currentY:h.currentY[0](),isAnimating:h.isAnimating[0](),isFullScreen:h.isFullScreen[0](),maxHeightForContentWrapper:h.maxHeightForContentWrapper[0]()};Mj=h$y(Xt)}return Mj}}();
_.ii(function(){window.addEventListener("resize",O);q().subscribe(function(Mj){h.initialY[1](Mj.initialY);h.currentY[1](Mj.currentY);h.isAnimating[1](Mj.isAnimating);h.isFullScreen[1](Mj.isFullScreen);h.maxHeightForContentWrapper[1](Mj.maxHeightForContentWrapper)});
requestAnimationFrame(function(){L.value&&(N["bottom-sheet-header"]=L.value.clientHeight);g.value&&(N["bottom-sheet-footer"]=g.value.clientHeight)})});
_.w_(function(){window.removeEventListener("resize",O);B&&(B.disconnect(),B=null)});
var U=_.s3({"bottom-sheet-content-without-icon":function(){var Mj;return!((Mj=Y.shouldShowIcons)==null?0:Mj.call(Y))}});
return _.T("bottom-sheet-layout",null,_.T(wIq,{contentWrapperId:"content-wrapper",isAnimating:function(){return h.isAnimating[0]()},
currentY:function(){return h.currentY[0]()},
maxHeightForContentWrapper:function(){return h.maxHeightForContentWrapper[0]()},
shouldShowIcons:Y.shouldShowIcons,skipContentClick:Y.skipContentClick,onScroll:function(){var Mj=document.getElementById("bottom-sheet-header"),Xt=document.getElementById("content-wrapper");if(Mj&&Xt){var ka={};ka=(ka["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,ka["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,ka);Mj.className=Xt.scrollTop>1?_.PE(ka):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:d1V,contentWrapperEl:function(Mj){G(Mj);requestAnimationFrame(function(){u(Mj)})},
header:function(){return _.T("div",{el:L},_.T(DIq,{touchstart:Q,touchmove:M,touchend:t,title:Y.headerTitle,subtitle:Y.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:Y.headerFn,hasHeaderOverride:Y.hasHeaderFn,actionHeader:Y.headerActionHeader,hasActionHeader:Y.hasHeaderActionHeader}))},
footer:function(){return _.T("div",{el:g},_.T(ZOq,{footerButtonType:Y.footerButtonType,leadingLabel:Y.footerLeadingLabel,trailingLabel:Y.footerTrailingLabel,primaryButton:Y.footerPrimaryButton,hasPrimaryButton:Y.hasFooterPrimaryButton,secondaryButton:Y.footerSecondaryButton,hasSecondaryButton:Y.hasFooterSecondaryButton,footerOverride:Y.footerFn,hasFooterOverride:Y.hasFooterFn}))},
body:function(){return _.T(_.X,{cond:Y.hasContentFn,then:function(){var Mj;return _.T("div",{class:U},(Mj=Y.contentFn)==null?void 0:Mj.call(Y))}})}}))},"am").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var hon=_.D(function(Y){var G=_.sH().resolve(_.kb);return _.T("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.U3(function(){return void G.closeSheet()})},_.T(_.X,{cond:function(){return!!Y.header},
then:function(){return _.T("div",{class:"ytContextualSheetLayoutHeaderContainer"},Y.header())}}),_.T(_.X,{cond:function(){return!!Y.content},
then:function(){return _.T("div",{class:"ytContextualSheetLayoutContentContainer"},Y.content())}}),_.T(_.X,{cond:function(){return!!Y.footer},
then:function(){return _.T("div",{class:"ytContextualSheetLayoutFooterContainer"},Y.footer())}}))},"bm");
hon.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var dIs=_.D(function(Y){var G=Y.data;var u=_.sH().resolve(_.rH),O=_.CH("yt-sheet-view-model",function(Q){if(_.F("web_focus_first_element_sheet")||!_.F("sheet_focus_first_killswitch"))return Q.addEventListener("focus",function(){mtN(Q)}),function(){Q.removeEventListener("focus",function(){mtN(Q)})}});
Y={};return _.T("yt-sheet-view-model",{"on:mousedown":_.U3(function(Q){_.F("sheet_focus_first_killswitch")||Q.currentTarget!==Q.target&&Q.preventDefault()}),
"on:focus":_.U3(function(){_.F("sheet_focus_first_killswitch")||mtN(O.value)}),
"on:mouseleave":_.U3(function(){var Q,M=G==null?void 0:(Q=G())==null?void 0:Q.rendererContext,t;(Q=(t=_.z(M,_.mi))==null?void 0:t.onHoverEnd)&&u.resolveCommand(Q)}),
class:_.s3("ytSheetViewModelHost",(Y.ytSheetViewModelContextual=!0,Y.ytSheetViewModelDisableBackdropFilter=_.F("web_disable_backdrop_filter"),Y)),el:O,tabindex:-1},_.T(_.X,{cond:G,then:function(Q){return _.T(hon,{header:function(){return _.T(_.HE,{data:function(){return Q().header}},{panelHeaderViewModel:Rog})},
content:function(){return _.T(_.HE,{data:function(){return Q().content}},{listViewModel:function(M){return _.T(_.rYb,{data:M.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:P7T,miniAppScoreChallengeViewModel:IGT})},
footer:function(){return _.T(_.HE,{data:function(){return Q().footer}},{panelFooterViewModel:pt})}})}}))},"cm");
dIs.idomCompat=!0;_.hR(dIs,"yt-sheet-view-model",{props:{data:_.AC}});var Sss=_.D(function(Y){var G=function(){var u;return(u=Y.data().enableDebuggingFeatures)!=null?u:!1};
return _.T("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.T(_.rc,{each:function(){var u;return(u=Y.data().stickers)!=null?u:[]}},function(u){return _.T(bOh,{data:function(){return u},
debugMode:G})}))},"dm"),bOh=_.D(function(Y){var G=_.bM(Y,{debugMode:!1}).debugMode,u=_.dB(function(){var L;
return(L=Y.data().region)==null?void 0:L.w},0),O=_.dB(function(){var L;
return(L=Y.data().region)==null?void 0:L.h},0),Q=_.dB(function(){var L;
return(L=Y.data().region)==null?void 0:L.x},0),M=_.dB(function(){var L;
return(L=Y.data().region)==null?void 0:L.y},0),t=_.U3(function(){var L=Y.data().onTap;
L&&_.W3(L)}),K={};
return _.T("div",{class:_.s3("ytStoriesStickerLayerViewModelSticker",(K.ytStoriesStickerLayerViewModelDebugMode=G,K)),style:_.Yh({width:function(){return 100*u()+"%"},
height:function(){return 100*O()+"%"},
left:function(){return 100*Q()+"%"},
top:function(){return 100*M()+"%"},
"flex-direction":function(){return SSg(Y.data().flexDirection)},
"justify-content":function(){return N0y(Y.data().justifyContent)},
"align-items":function(){return j9o(Y.data().alignItems)}}),
"on:click":t},_.T(_.HE,{data:function(){return Y.data().button||Y.data().toggleButton}},{buttonViewModel:function(L){return _.T(_.$Y,{data:L.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(L){return _.T(_.Tr,{data:L.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"em");var jBz=_.D(function(Y){var G=function(){return Y.data()},u={},O=_.E(_.IE(!1,void 0,"LkwKDb")),Q=O.next().value,M=O.next().value,t=_.dB(function(){return G().backgroundColor},0);
O=_.dB(function(){return G().actionButtons},[]);
var K=_.dB(function(){return G().stickerLayer},{}),L=_.TZj(function(){return G().rendererContext}),g=function(){var I,k;
return{animationRef:u,animationConfig:{autoplay:!1,loop:!1,path:(k=(I=G().foregroundAnimation)==null?void 0:I.url)!=null?k:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){M(!0)},
complete:function(){Y.navigateToNextItemOnLottieComplete()}}}},P=function(){var I,k,n,p,W,C,e,w;
return{animationConfig:{autoplay:(C=(I=G().backgroundAnimation)==null?void 0:(k=I.settings)==null?void 0:k.autoplay)!=null?C:!1,loop:(e=(n=G().backgroundAnimation)==null?void 0:(p=n.settings)==null?void 0:p.loop)!=null?e:!1,path:(w=(W=G().backgroundAnimation)==null?void 0:W.url)!=null?w:"",name:"stories_item_background_animation"}}};
_.RE(function(){if(Y.isVisible()&&Q()){var I;(I=u.lottieEl)==null||I.play();Y.animationRef()&&(Y.animationRef().lottieEl=u.lottieEl)}else{var k;(k=u.lottieEl)==null||k.stop()}},"dlAj1b");
return _.T("yt-stories-item-view-model",{"aria-label":function(){var I;return(I=L())==null?void 0:I.label},
class:"ytStoriesItemViewModelHost",style:_.Yh({"background-color":function(){return _.nB(t())+";"}})},_.T("div",{class:"ytStoriesItemViewModelAssetContent"},_.T(_.X,{cond:function(){return!!G().backgroundAnimation},
then:function(){return _.T(_.JC,{data:P,animationName:function(){return P().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.T(_.X,{cond:function(){return!!G().backgroundImage},
then:function(){return _.T(_.RD,{data:function(){return G().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.T(_.X,{cond:function(){return!!G().foregroundAnimation},
then:function(){return _.T(_.JC,{data:g,animationName:function(){return g().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.T(_.X,{cond:function(){return!!G().foregroundImage},
then:function(){return _.T(_.RD,{data:function(){return G().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.T("div",{class:"ytStoriesItemViewModelTopShadow"}),_.T(_.HE,{data:function(){return K()}},{storiesStickerLayerViewModel:Sss})),_.T("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Yh({"background-color":function(){return _.nB(t())}})},_.T("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.T(_.rc,{each:O},function(I){return _.T(NgT,{storiesButtonData:function(){return I},
pauseAutoNavigation:Y.pauseAutoNavigation})}))))},"gm"),VLa={style:"overlay",
type:"outline"},NgT=_.D(function(Y){var G={};return _.T("div",{class:_.s3("ytStoriesItemViewModelActionButton",(G.ytStoriesItemViewModelStretchedActionButton=function(){return Y.storiesButtonData().size==="STORIES_BUTTON_SIZE_STRETCH"},G)),
"on:click":_.U3(Y.pauseAutoNavigation)},_.T(_.HE,{data:function(){return Y.storiesButtonData().button}},{buttonViewModel:function(u){return _.T(_.$Y,{data:u.data,
buttonOverrides:VLa})}}))},"hm");var lGT={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.hR(_.D(function(Y){var G=function(){var aU;return(aU=Y.data().startIndex)!=null?aU:0},u=_.E(_.SN(G)),O=u.next().value,Q=u.next().value;
u=_.E(_.IE(!1,void 0,"sjy7s"));var M=u.next().value,t=u.next().value,K=function(){var aU;return(aU=Y.data().storyItems)!=null?aU:[]},L={},g=_.CH("yt-stories-viewer-view-model"),P=function(){return Y.data().dismissButton},I=function(){var aU;
return _.FS((aU=_.z(P(),_.Ck))==null?void 0:aU.onTap)},k=_.CH("div"),n,p,W=!1,C=function(){var aU;
(aU=n)==null||aU.cancel();n=e(O()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});n.onfinish=function(){var Tg=_.z(K()[O()],JQN),iy,hY;Tg!=null&&Tg.foregroundAnimation&&((Tg==null?0:(iy=Tg.foregroundAnimation)==null?0:iy.url)||(Tg==null?0:(hY=Tg.foregroundAnimation)==null?0:hY.payload))||(O()!==K().length-1?(Q(O()+1),C()):I()&&_.pd(I()))}},e=function(aU){return k.value.children[aU].children[0]},w=function(){for(var aU=0;aU<O();aU++)e(aU).style.transform=
"scaleX(1)"},B=function(){W||(M()?t(!1):(O()===K().length-1&&I()&&_.pd(I()),e(O()).style.transform="scaleX(1)",O()!==K().length-1&&(Q(O()+1),C())))},N=function(){W||(M()?t(!1):(e(O()).style.transform="scaleX(0)",O()!==0&&Q(O()-1),C()))},h=function(){t(!0)},q=function(){e(O()).style.transform="scaleX(1)";
O()!==K().length-1?(Q(O()+1),C()):I()&&_.pd(I())};
u=function(){W=!1;p=setTimeout(function(){t(!0);W=!0},300)};
var U=function(){clearTimeout(p);W&&M()&&t(!1)};
_.RE(function(){if(M()){var aU;(aU=n)==null||aU.pause();var Tg;(Tg=L.lottieEl)==null||Tg.pause()}else{var iy;(iy=n)==null||iy.play();var hY;(hY=L.lottieEl)==null||hY.play()}},"vAvZob");
_.RE(function(){w();var aU;(aU=g.value)==null||aU.focus();O()===G()&&C()},"uSlfE");
var Mj=function(aU){aU.key==="ArrowLeft"?N():aU.key==="ArrowRight"&&B()},Xt=function(aU){if(aU.target===g.value){(aU=I())&&_.pd(aU);
clearTimeout(p);var Tg;(Tg=n)==null||Tg.cancel();var iy;(iy=L.lottieEl)==null||iy.stop();window.removeEventListener("keydown",Mj);window.removeEventListener("yt-popup-closed",Xt)}},ka=function(aU){if(aU.target===g.value){var Tg;
(Tg=g.value)==null||Tg.focus();var iy;(iy=L.lottieEl)==null||iy.play();window.addEventListener("keydown",Mj);window.addEventListener("yt-popup-closed",Xt)}};
_.ii(function(){w();C();window.addEventListener("yt-popup-opened",ka)});
return _.T("yt-stories-viewer-view-model",{el:g,class:_.s3("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.T("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.T("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.U3(N),"on:mousedown":_.U3(u),"on:mouseup":_.U3(U),"on:mouseleave":_.U3(U)}),_.T("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.U3(B),"on:mousedown":_.U3(u),"on:mouseup":_.U3(U),"on:mouseleave":_.U3(U)})),
_.T("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.T(_.HE,{data:K},{storiesItemViewModel:function(aU,Tg){var iy=aU.data;return _.T(_.X,{cond:function(){return Math.abs(Tg()-O())<=1},
then:function(){var hY={};return _.T("div",{class:_.s3("ytStoriesViewerViewModelStoryItem",(hY.ytStoriesViewerViewModelActiveStoryItem=function(){return Tg()===O()},hY))},_.T(jBz,{data:iy,
pauseAutoNavigation:h,navigateToNextItemOnLottieComplete:q,isVisible:function(){return Tg()===O()},
animationRef:L}))}})}})),_.T("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:k},_.T(_.rc,{each:K},function(){return _.T("div",{class:"ytStoriesViewerViewModelProgressBar"},_.T("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.T("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.T(_.RD,{data:lGT,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.T("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.T(_.HE,{data:function(){return Y.data().menuButton}},{buttonViewModel:function(aU){return _.T(_.$Y,{data:aU.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.T(_.HE,{data:function(){return Y.data().muteButton}},{toggleButtonViewModel:function(aU){return _.T(_.Tr,{data:aU.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.T(_.HE,{data:P},{buttonViewModel:function(aU){return _.T(_.$Y,{data:aU.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"km"),"yt-stories-viewer-view-model",{props:{data:_.AC}});_.hR(_.D(function(Y){var G=Y.data;var u=_.CH("yt-gen-ai-feedback-form-view-model"),O=[];return _.T("yt-gen-ai-feedback-form-view-model",{el:u,class:"ytGenAiFeedbackFormViewModelHost"},_.T(_.eO,{text:function(){return G().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.T("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.T(_.HE,{data:function(){return G().feedbackChips}},{toggleButtonViewModel:function(Q){var M=Q.data;
return _.T(_.Tr,{data:M,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(t){var K=M();K=_.z(K,_.eD);K=_.z(K==null?void 0:K.defaultButtonViewModel,_.Ck).trackingParams;t?O.push(K):(t=O.indexOf(K),t>-1&&O.splice(t,1))}})}})),_.T(_.eO,{text:function(){return G().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.T("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.T(_.HE,{data:function(){return G().submitButton}},{buttonViewModel:function(Q){return _.T(_.$Y,{data:Q.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){Vqj(u.value,O,G().uniqueId)}})}}),_.T(_.HE,{data:function(){return G().moreFeedbackButton}},{buttonViewModel:function(Q){return _.T(_.$Y,{data:Q.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"lm"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.AC},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var A2=function(){return _.Z.apply(this,arguments)||this};
_.m(A2,_.Z);A2.prototype.created=function(){Cuw(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(ZP9);var Y=_.sH().resolve(_.B_o);Y&&(Y.container=this.ytPopupContainerBehavior);if(Y=_.sH().resolve(_.kb))Y.container=this.ytPopupContainerBehavior;if(Y=_.sH().resolve(_.nR)){var G=this.ytPopupContainerBehavior;Y.containerWasInjected?_.R0(Error("uj")):Y.container=G}};
A2.prototype.ensurePopupBelowPlayer=function(Y,G){var u=_.sH().resolve(_.q3(_.bv));if(!u||!u.isOnWatch()||!_.N5())return!1;u=u.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Ob().height>u+this.getPopupHeight(Y,G)?(Y.style.top="auto",Y.style.bottom="0px"):(Y.style.top=u+"px",Y.style.bottom="auto");return!0};
A2.prototype.getPopupHeight=function(Y,G){G&&(Y.cachedPopupHeight=0);if(!Y.cachedPopupHeight){G=0;var u=Y.clientHeight,O=window.getComputedStyle(Y);G+=parseInt(O.marginTop,10);G+=parseInt(O.marginBottom,10);Y.cachedPopupHeight=u+G}return Y.cachedPopupHeight};
A2.prototype.getElement=function(Y){return document.createElement(Y)};
_.S([_.x(U9g.YtPopupContainerBehavior),_.V("design:type",Object)],A2.prototype,"ytPopupContainerBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],A2.prototype,"ytComponentBehavior",void 0);_.S([_.pD({disableElementRegistration:!0,is:"ytd-popup-container"})],A2);
_.d(A2,"ytd-popup-container",function(){if(Nbn!==void 0)return Nbn;var Y=document.createElement("template");_.r(Y,"\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");Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);return Nbn=Y},{mode:1});var BgT;var $Ia={};$Ia.YtLogYpcFlowCommandsBehavior=[_.vZ.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(Y){_.z(Y,O99)&&(Y=_.z(Y,O99))&&(Y.serializedTransactionFlowLoggingParams?_.T9I(Y.serializedTransactionFlowLoggingParams):Y.serializedYpcCancelFlowLoggingParams?(Y=Y.serializedYpcCancelFlowLoggingParams)&&UJ("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",Y):Y.serializedYpcResumeFlowLoggingParams?(Y=Y.serializedYpcResumeFlowLoggingParams)&&UJ("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",Y):Y.serializedYpcPauseFlowLoggingParams?(Y=Y.serializedYpcPauseFlowLoggingParams)&&
UJ("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",Y):Y.serializedYpcRefundFlowLoggingParams?(Y=Y.serializedYpcRefundFlowLoggingParams)&&GLx("YPC_EVENT_TYPE_START",Y):Y.serializedYpcDeactivateFlowLoggingParams?(Y=Y.serializedYpcDeactivateFlowLoggingParams)&&UJ("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",Y):Y.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(Y=Y.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&UJ("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",Y))},
handleLogYpcFlowDismiss_:function(Y){_.z(Y,uBB)&&(Y=_.z(Y,uBB),Y.serializedTransactionFlowLoggingParams?_.Lpj(Y.serializedTransactionFlowLoggingParams):Y.serializedYpcCancelFlowLoggingParams?(Y=Y.serializedYpcCancelFlowLoggingParams)&&UJ("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",Y):Y.serializedYpcResumeFlowLoggingParams?(Y=Y.serializedYpcResumeFlowLoggingParams)&&UJ("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",Y):Y.serializedYpcPauseFlowLoggingParams?(Y=Y.serializedYpcPauseFlowLoggingParams)&&
UJ("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",Y):Y.serializedYpcRefundFlowLoggingParams&&(Y=Y.serializedYpcRefundFlowLoggingParams)&&GLx("YPC_EVENT_TYPE_CANCEL",Y))}}];var qsp={};qsp.YtCancelRecurrenceBehavior=[_.m9.YtComponentBehavior,_.slk,{attached:function(){var Y=this;LlV(this,function(G,u){return Y.ypcCancelRecurrenceHandler(G,u)})},
ypcCancelRecurrenceHandler:function(Y,G){var u=this;if(!G||!G.ypcCancelRecurrenceEndpoint)return!1;if(!G.ypcCancelRecurrenceEndpoint.params)return _.dc(Error("wm")),!0;_.i6(this.hostElement);var O=_.Af.instance,Q=_.sH().resolve(_.q3(_.Hm));O&&_.oS(O,G)?_.iv(O,G).then(function(M){u.ypcCancelRecurrenceSuccess_(Y,G,{data:M})},function(M){u.ypcCancelRecurrenceFailure_(Y,G,M)}).thenCatch(function(){_.dc(Error("xm"))}):Q?Q.requestDataForServiceEndpoint(G).then(function(M){u.ypcCancelRecurrenceSuccess_(Y,
G,M)},function(M){u.ypcCancelRecurrenceFailure_(Y,G,M)}).thenCatch(function(){_.dc(Error("xm"))}):_.dc(Error("ym"));
return!0},
ypcCancelRecurrenceSuccess_:function(Y,G,u){_.Rz(this.hostElement);u.data||(u={data:u});u.data&&u.data.actions&&_.UK(this.hostElement,u.data.actions,this.hostElement);u.data.messageRenderer?M7x(G.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(G=G.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&UJ("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",G);_.$s(Y,"yt-service-request-completed",u)},
ypcCancelRecurrenceFailure_:function(Y,G,u){_.Rz(this.hostElement);M7x(G.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.$s(Y,"yt-service-request-error",{error:u,params:[Y,G]})}}];var sBs=function(Y,G){_.Ya.call(this,G)};
_.m(sBs,kp9);var cDT={};cDT.YtCompleteTransactionBehavior=[_.m9.YtComponentBehavior,_.slk,{attached:function(){var Y=this;LlV(this,function(G,u){return Y.ypcCompleteTransactionHandler(G,u)})},
completeTransaction:function(Y,G){var u=this;G={payments_payload:window.btoa(G.integratorData),buybucket_params:Y.data.buybucketParams,offer_params:Y.data.offerParams};var O=_.sH().resolve(_.Hm),Q=Y.data.completeTransactionEndpoint,M=this.get("ypcCompleteTransactionEndpoint.actions",Q);M&&_.UK(this.hostElement,M,this.hostElement);return(M=_.Af.instance)&&_.oS(M,Q)?_.iv(M,Q,G).then(function(t){return!t||(t==null?0:t.error)?(t=u.get("data.serializedTransactionFlowLoggingParams",Y),_.Ld(new a7("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
t))):{data:t}}).then(function(t){return u.handleCompleteTransactionSuccess_(t,Y)},function(){return u.handleCompleteTransactionFailure_(Y)}):O.requestDataForServiceEndpoint(Q,G).then(function(t){return u.handleCompleteTransactionSuccess_(t,Y)},function(){return u.handleCompleteTransactionFailure_(Y)})},
handleCompleteTransactionSuccess_:function(Y,G){Y.data||(Y={data:Y});if(Y.data.messageRenderer)return _.Ld(new sBs(Y.data.messageRenderer));if(Y.data.trackingParams){var u=_.FA(),O=_.nX();u&&O&&_.y6(u,O,_.Kd(Y.data.trackingParams))}G=this.get("data.serializedTransactionFlowLoggingParams",G);uXx(G);return _.v$(Y)},
handleCompleteTransactionFailure_:function(Y){Y=this.get("data.serializedTransactionFlowLoggingParams",Y);_.i0("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",Y);return _.Ld(new a7("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",Y))},
ypcCompleteTransactionHandler:function(Y,G){var u=this;if(!G.ypcCompleteTransactionEndpoint)return!1;if(!G.ypcCompleteTransactionEndpoint.transactionParams)return _.dc(Error("zm")),!0;G.ypcCompleteTransactionEndpoint&&G.ypcCompleteTransactionEndpoint.gtmData&&_.a8(G.ypcCompleteTransactionEndpoint.gtmData);var O=_.sH().resolve(_.q3(_.Hm));if(O){_.i6(this.hostElement);var Q=_.Af.instance;Q&&_.oS(Q,G)?_.iv(Q,G).then(function(M){return!M||(M==null?0:M.error)?(M=u.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
G),_.Ld(new a7("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",M))):{data:M}}).then(function(M){_.$s(Y,"yt-service-request-completed");
u.ypcCompleteTransactionSuccess_(G,M)},function(){return u.ypcCompleteTransactionFailure_(G)}):O.requestDataForServiceEndpoint(G).then(function(M){_.$s(Y,"yt-service-request-completed");
u.ypcCompleteTransactionSuccess_(G,M)},function(){return u.ypcCompleteTransactionFailure_(G)})}return!0},
ypcCompleteTransactionSuccess_:function(Y,G){_.Rz(this.hostElement);G.data||(G={data:G});_.qZ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);G.data.messageRenderer||G.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(Y):(_.a8('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",Y));G.data.actions&&(Y=Tw9(G.data.actions),G=LiS(G.data.actions),Y.length&&_.c$(this.hostElement,
Y),G.length&&_.UK(this.hostElement,G,this.hostElement))},
ypcCompleteTransactionFailure_:function(Y){_.Rz(this.hostElement);_.qZ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",Y,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(Y,G,u){if(G=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",G))G={serializedTransactionFlowLoggingParams:G},u&&(G.errorType=u),_.eK(Y,G),_.A1()}}];var UIs={};UIs.YtEndpointHandlerWithYpcBehavior=[_.slk,_.vZ.YtActionHandlerBehavior,[{openWalletDialog:function(Y,G,u,O,Q,M,t){var K=this,L=_.RS();G=G.replace(/-/g,"+").replace(/_/g,"/");var g=_.EU().get("hl");_.Tia(_.$2(_.R$),G,L.resolve,Q,function(P){M&&M();L.reject(P)},g,function(P){return K.onServerBackendAnalyticEvent_(Y,u,P)},this.onDialogClose_.bind(this),O,t);
return L.promise},
openFixFlowDialog:function(Y,G,u,O){Y=Y.replace(/-/g,"+").replace(/_/g,"/");_.$2(_.R$).openFixFlowDialog(Y,G,u,O)},
onDialogClose_:function(){_.qZ(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(Y,G,u){_.$s(Y,"yt-commerce-action-init-done");G&&_.c$(this.hostElement,[G,{backend_analytics:u}])}}],
_.cZ.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(Y,G){Y=this.get("data.nativeFlowEndpoint",G);G=this.get("data.fallbackEndpoint",G);Y?_.c$(this.hostElement,[Y]):G&&_.$s(this.hostElement,"yt-navigate",{endpoint:G})}}],
qsp.YtCancelRecurrenceBehavior,cDT.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 Y=this;LlV(this,function(G,u,O){return Y.handleYPCEndpoint(G,u,O)});
this.ypcRegisterActionMapJobId_=_.WY(_.AN,function(){Y.registerActionMap(Y.buyFlowActionMap_)})},
detached:function(){var Y=this;_.AN.cancelJob(this.ypcRegisterActionMapJobId_);_.WY(_.AN,function(){Y.unregisterActionMap(Y.buyFlowActionMap_)})},
handleYPCEndpoint:function(Y,G,u){var O=G.ypcGetCartEndpoint;if(O){_.Fh("commerce_transaction");var Q=O.gtmId;Q&&_.KI(Q);(O=O.gtmData)&&_.a8(O)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",G)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(Y,G),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",G)!=null?(this.handleYPCFixInstrumentEndpoint_(Y,G),!0):G.ypcPauseSubscriptionCommand?(JmN(this.hostElement,Y,G,u),
!0):G.ypcResumeSubscriptionCommand?(u_x(this.hostElement,Y,G),!0):G.getPaymentInstrumentsParamsCommand?(cmx(this.hostElement,Y,G),!0):G.ypcHandleTransactionEndpoint?(qSw(this.hostElement,Y,G,u),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(Y,G){var u=this;_.pQ("ttcr",void 0,"commerce_transaction");G=G.ypcGetCartEndpoint;var O=G.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,Q=O.encryptedPurchaseParams,M=O.serializedTransactionFlowLoggingParams,t=O.serializedPaymentsClientParams,K=this.createGetCartResponseFromParams_(O,G.offerParams,M);this.changeButtonState(Y,!0);_.Wp(this.openWalletDialog(Y,Q,O.ypcLogWalletAnalyticDataEndpoint,M,function(){u.changeButtonState(Y,!1)},function(){u.changeButtonState(Y,
!1)},t).then(function(L){return u.handleBuyFlowCompleteCallback_(Y,K,L)},function(){return u.handleOnLoadError(K)}).then(function(L){return void u.handlePostPurchaseSuccess_(Y,K,L)},function(L){return void u.handlePostPurchaseError_(L)}),function(){u.changeButtonState(Y,!1);
Y instanceof Element&&_.$s(Y,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(Y,G,u){var O=Y.completeTransactionEndpoint,Q=Y.handleTransactionEndpoint;G={data:{offerParams:window.btoa(G),serializedTransactionFlowLoggingParams:u}};Q?G.data.handleTransactionEndpoint=Q:G.data.completeTransactionEndpoint=O;Y.onCartDismissCommand&&(G.data.onCartDismissCommand=Y.onCartDismissCommand);return G},
onGetCartServiceRequestCompleted_:function(Y,G){var u=this,O=Y.target;if(G&&G.data&&G.data.messageRenderer)_.Rz(this.hostElement),this.handleMessageRenderer_(G.data.messageRenderer),this.changeButtonState(O,!1);else{var Q=this.get("data.encryptedPurchaseParams",G),M=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",G),t=this.get("data.ypcLogWalletAnalyticDataEndpoint",G),K=this.get("data.serializedPaymentsClientParams",G),L=this.getLoggingParams_(G);if(L||Q||M)Y.stopPropagation(),_.pQ("ttcr",
void 0,"commerce_transaction"),Q||_.Rz(this.hostElement),this.changeButtonState(O,!1),M?_.qZ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.DE("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:M}}},this]):Q&&(this.changeButtonState(O,!0),Y=null,Y=this.openWalletDialog(O,Q,t,L,function(){_.Rz(u.hostElement);u.changeButtonState(O,!1)},function(){_.Rz(u.hostElement);
u.changeButtonState(O,!1)},K),_.Wp(Y.then(function(g){return u.handleBuyFlowCompleteCallback_(O,G,g)},function(){return u.handleOnLoadError(G)}).then(function(g){return u.handlePostPurchaseSuccess_(O,G,g)},function(g){return u.handlePostPurchaseError_(g)}),function(){u.changeButtonState(O,!1);
_.$s(O,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(Y,G){G&&G.endpoint&&G.endpoint.ypcGetCartEndpoint&&!G.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",G.endpoint.ypcGetCartEndpoint)&&_.UK(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",G.endpoint.ypcGetCartEndpoint)],Y.target),_.i6(this.hostElement),this.changeButtonState(Y.target,!0))},
onServiceRequestError_:function(Y,G){if(G&&G.params&&G.params.length){G=_.E(G.params);for(var u=G.next();!u.done;u=G.next())if((u=u.value)&&u.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",u.ypcGetCartEndpoint)&&_.UK(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",u.ypcGetCartEndpoint)],Y.target);_.Rz(this.hostElement);this.changeButtonState(Y.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(Y,G,u){var O=u.integratorData;return O==null||O===""||u.error!=null?(O=this.getLoggingParams_(G),String(u.error)==="-1"?(G.data.onCartDismissCommand&&_.UK(this.hostElement,[G.data.onCartDismissCommand],Y),_.Ld(new a7("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",O,!0))):_.Ld(new a7("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",O))):G.data.handleTransactionEndpoint?s9o(this.hostElement,G.data.handleTransactionEndpoint,{payments_payload:O,funds_guarantee_callback_client_data:u.integratorClientCallbackData}):
this.completeTransaction(G,u)},
handlePostPurchaseSuccess_:function(Y,G,u){G=u.data;var O=!1,Q,M;if(G&&((Q=G.command)==null?0:(M=Q.commandExecutorCommand)==null?0:M.commands)){var t,K;Q=(t=G.command)==null?void 0:(K=t.commandExecutorCommand)==null?void 0:K.commands;for(t=0;t<Q.length;t++)if(_.z(Q[t],_.NzR)){O=!0;break}}O||(G&&G.gtmDatas&&G.gtmDatas.length?_.a8(G.gtmDatas[0]):_.a8('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));u.data&&u.data.actions&&(G=Tw9(u.data.actions),u=LiS(u.data.actions),G.length&&
_.c$(this.hostElement,G),u.length&&_.UK(this.hostElement,u,Y))},
handlePostPurchaseError_:function(Y){Y&&Y.payload&&Y.payload.isUserDismiss||_.o0(Error("Bm"))},
handleOnLoadError:function(Y){Y=this.getLoggingParams_(Y);return _.Ld(new a7("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",Y))},
getLoggingParams_:function(Y){return this.get("data.serializedTransactionFlowLoggingParams",Y)},
handleMessageRenderer_:function(Y){var G=_.R1(Y,"renderer"),u=_.DE("openPopupConfig");G==="confirmDialogRenderer"&&u&&_.qZ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:u.popupTypeMap[G],popup:Y}},this])},
handleYPCFixInstrumentEndpoint_:function(Y,G){var u=this,O=G.ypcFixInstrumentEndpoint;G=O.encryptedFixInstrumentParameters;this.logFixFopEvent_(O,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(Y,!0);this.openFixFlowDialog(G,function(Q,M){u.onFixFlowCompleteCallback_(O,Q,M)},function(){return u.changeButtonState(Y,!1)},function(){u.changeButtonState(Y,!1);
u.logFixFopEvent_(O,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(Y,G,u){var O=_.So("payments.business.integration.scenario.FixInstrument");if(G==O.IntegratorCallbackType.ON_COMPLETE){G="FIX_FOP_EVENT_TYPE_CANCEL";var Q=null;u.error!=null?u.error!=O.OnCompleteCallbackError.USER_CANCELLED&&(_.UK(this.hostElement,[Y.errorAction],this.hostElement),G="FIX_FOP_EVENT_TYPE_FAILURE",Q="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.UK(this.hostElement,[Y.successAction],this.hostElement),G="FIX_FOP_EVENT_TYPE_SUCCESS");_.UK(this.hostElement,[Y.onFinishAction],
this.hostElement);this.logFixFopEvent_(Y,G,Q)}},
logFixFopEvent_:function(Y,G,u){(Y=Y.serializedFixFopLoggingParams)?(G={eventType:G,serializedFixFopLoggingParams:Y},u!=null&&(G.errorType=u),_.eK("fixFopFlow",G),_.A1()):_.o0(Error("Cm"))},
changeButtonState:function(Y,G){_.F("enable_ypc_spinners")&&Y&&(Y.is==="yt-button-renderer"||Y.is==="ytd-button-renderer")&&(Y.disabled=G)}}];var vxs=function(Y){this.JSC$34035_clientRoot=Y;this.feedbackCollectorActionMap={"yt-help-dialog-requested":QON,"yt-feedback-dialog-requested":OVN,"yt-signal-action-help":MIN,"yt-signal-action-send-feedback":HVN,"yt-send-feedback-action":tIx,"yt-user-feedback-endpoint":KV9};_.jK(_.N6.getInstance(),this.feedbackCollectorActionMap,this.JSC$34035_clientRoot)},JDp;var Y_T=function(Y){this.JSC$34040_clientRoot=Y;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":auS.bind(null,this.JSC$34040_clientRoot),"yt-signal-action-delete-all-downloads":LVg,"yt-signal-action-delete-download":g5g,"yt-signal-action-delete-playlist-download":PJj,"yt-signal-action-install-pwa":zbb,"yt-signal-action-refresh-downloads":FVS,"yt-offline-video-endpoint":WVb,"yt-offline-playlist-endpoint":xOB,"yt-update-local-app-setting-command":CJB,"yt-offline-orchestration-action-command":ebb,
"yt-signal-action-undo-delete-download":kjj,"yt-local-watch-history-command":iVV,"yt-signal-action-mark-download-to-mobile-edu-shown":wpN};_.jK(_.N6.getInstance(),this.downloadManagerActionMap,this.JSC$34040_clientRoot);_.CB.instance=new _.CB},Ghp;var oR=function(){var Y=_.Z.apply(this,arguments)||this;Y.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_"};Y.remoteApi_=null;return Y};
_.m(oR,_.Z);_.H=oR.prototype;
_.H.ready=function(){_.F("polymer_enable_mdx")&&(CvN({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.F("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.F("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.F("enable_cast_short_lived_lounge_token")}),_.QO("yt-remote-connection-change",this.handleConnectionChange_,this),_.QO("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=Zz9())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.H.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.H.handleConnectionChange_=function(Y){(this.mdxConnected=Y)?(Y=Afy(),!Y&&avb()&&TEV()&&(Y={key:"cast-selector-receiver",name:TEV()}),Y=Y.name):Y=null;this.receiverName=Y;_.ZM(this.remoteApi_);(this.remoteApi_=Zz9())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.H.handleReceiverAvailabilityChange_=function(){var Y=es9();avb()&&_.LB("yt-remote-cast-available")&&Y.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=Y.length>0};
_.H.handleRemoteQueueChange_=function(){var Y=this.currentVideoId_,G=this.currentListId_,u=An(this.remoteApi_);this.currentVideoId_=u.videoId;this.currentListId_=u.listId;this.currentVideoId_&&_.qZ(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.F("polymer_enable_mdx_queue")?this.currentListId_:null,Y,G])};
_.H.handleAddToQueueAction_=function(Y){Y=_.z(Y,ubB);this.remoteApi_&&(Y.videoId?this.remoteApi_.addVideo(Y.videoId):Y.playlistId&&this.remoteApi_.addPlaylist(Y.playlistId))};
_.H.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.H.handleInsertInQueueAction_=function(Y){Y=_.z(Y,OSw);this.remoteApi_&&Y.videoId&&this.remoteApi_.JSC$20184_insertVideo(Y.videoId)};
_.H.handleRemoveFromQueueAction_=function(Y){Y=_.z(Y,Qg9);this.remoteApi_&&Y.videoId&&this.remoteApi_.JSC$20184_removeVideo(Y.videoId)};
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],oR.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R(),_.V("design:type",Object)],oR.prototype,"appId",void 0);_.S([_.R(),_.V("design:type",Boolean)],oR.prototype,"mdxConnected",void 0);_.S([_.R(),_.V("design:type",Boolean)],oR.prototype,"receiverAvailable",void 0);_.S([_.R(),_.V("design:type",Object)],oR.prototype,"receiverName",void 0);_.S([_.R(),_.V("design:type",Object)],oR.prototype,"currentVideoId_",void 0);
_.S([_.R(),_.V("design:type",Object)],oR.prototype,"currentListId_",void 0);_.S([_.Ff({is:"yt-mdx-manager",disableElementRegistration:!0})],oR);_.d(oR,"yt-mdx-manager",void 0,{mode:2});var uiG;var OmO;var iQ=function(){var Y=_.Z.apply(this,arguments)||this;Y.APP_IDS={ytr:3,ytm:5};Y.JSC$23266_timeoutId_=0;Y.actionMap={"yt-open-create-family-dialog":"open"};return Y};
_.m(iQ,_.Z);_.H=iQ.prototype;_.H.created=function(){Cuw(2200)};
_.H.detached=function(){this.observer_&&this.observer_.disconnect()};
_.H.open=function(Y,G){var u=this,O=Y.serializedYpcFamilyCreateLoggingParams;this.JSC$23266_timeoutId_=setTimeout(this.abort_.bind(this,Y.postFlowErrorEndpoint,O),3E4);G&&(this.onReadyCallback_=G);var Q=_.l0(this.hostElement).querySelector("#unicorn-iframe");O&&O&&YGV("ypcFamilyCreateFlowStarted",O);_.Xqa("family_creation",function(){var M=_.So("gapi.family_creation.render");_.So("gapi.config.update")("iframes/family_creation/url",u.getFamilyCreationUrlWithUnicornParams_());var t=3;Y.appId&&Y.appId in
u.APP_IDS&&(t=u.APP_IDS[Y.appId]);t={authUser:_.DE("SESSION_INDEX")||0,clientId:t,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.DE("HL"),initialflow:[4,5,6,7],m:u.isMobile?1:0,onFlowComplete:u.onUnicornFlowComplete_.bind(u,Y.postFlowSuccessEndpoint,O),onError:u.onUnicornFlowError_.bind(u,Y.postFlowErrorEndpoint,O),onReady:u.onUnicornFlowReady_.bind(u,Y.referencePcidParams)};M(Q,t)})};
_.H.close=function(){_.l0(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.H.onUnicornFlowComplete_=function(Y,G){this.close();G&&G&&YGV("ypcFamilyCreateFlowSucceeded",G);_.$s(this.hostElement,"yt-navigate",{endpoint:Y})};
_.H.onUnicornFlowError_=function(Y,G){this.close();G&&YGV("ypcFamilyCreateFlowCancelled",G);_.$s(this.hostElement,"yt-navigate",{endpoint:Y})};
_.H.onUnicornFlowReady_=function(Y){var G=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();Y&&_.So("gapi.family_creation.setConfig")(0,Y);this.observer_=new MutationObserver(function(){_.l0(G.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.l0(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.l0(this.hostElement).querySelector("#dialog").open()};
_.H.getFamilyCreationUrlWithUnicornParams_=function(){return _.DE("YTR_FAMILY_CREATION_URL")};
_.H.getCurrentUrl_=function(){return document.location.href};
_.H.abort_=function(Y,G){this.clearTimeout_();this.onUnicornFlowError_(Y,G)};
_.H.clearTimeout_=function(){clearTimeout(this.JSC$23266_timeoutId_)};
_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],iQ.prototype,"ytActionHandlerBehavior",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],iQ.prototype,"isMobile",void 0);_.S([_.R(),_.V("design:type",Object)],iQ.prototype,"onReadyCallback_",void 0);_.S([_.R(),_.V("design:type",Object)],iQ.prototype,"observer_",void 0);_.S([_.Ff({is:"yt-create-family-dialog",disableElementRegistration:!0})],iQ);
_.d(iQ,"yt-create-family-dialog",function(){if(OmO===void 0){var Y=document.createElement("template");_.r(Y,'\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);var G=Y.content,u=G.insertBefore;uiG===void 0&&(uiG=document.createElement("template"));var O=uiG;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);OmO=Y}Y=OmO;return Y},{mode:2});var Qyp;var Mhh;var RR=function(){var Y=_.Z.apply(this,arguments)||this;Y.STEP=1;Y.BLOCK_ON=80;Y.MIN_PROGESS=0;Y.MAX_PROGESS=100;return Y};
_.m(RR,_.Z);_.H=RR.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));_.sH().addProvider({provide:Mng,useValue:this})};
_.H.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.H.finish=function(){var Y=this;this.progress=this.MAX_PROGESS;ZVB(function(){Y.progress==Y.MAX_PROGESS&&(Y.hostElement.hidden=!0)})};
_.H.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Uk.Object.defineProperties(RR.prototype,{progress:{configurable:!0,enumerable:!0,set:function(Y){this.progress_=Y;var G="scaleX("+Y/this.MAX_PROGESS+")",u=_.l0(this.hostElement).querySelector("#progress").style;u.transform=G;u.webkitTransform=G;this.hostElement.setAttribute("aria-valuenow",String(Y))},
get:function(){return this.progress_}}});
_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],RR.prototype,"ytComponentBehavior",void 0);_.S([_.Ff({is:"yt-page-navigation-progress",disableElementRegistration:!0})],RR);
_.d(RR,"yt-page-navigation-progress",function(){if(Mhh===void 0){var Y=document.createElement("template");_.r(Y,'\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');Y.content.insertBefore(_.l().content.cloneNode(!0),
Y.content.firstChild);var G=Y.content,u=G.insertBefore;Qyp===void 0&&(Qyp=document.createElement("template"));var O=Qyp;u.call(G,O.content.cloneNode(!0),Y.content.firstChild);Mhh=Y}Y=Mhh;return Y},{mode:2});var Hmg={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"},EIT={"font-size":"12px","font-style":"italic"},tha={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};var KhO=!1;_.hR(_.D(function(){var Y=function(){return Array(_.Jy("neon_dark_launch_gradient_count")).fill({})},G=function(){return _.F("enable_svg_filters_neon_dark_launch")},u=_.E(_.IE(0,void 0,"TdHAg")),O=u.next().value,Q=u.next().value;
u=_.E(_.IE(0,void 0,"GJPY6e"));var M=u.next().value,t=u.next().value,K=0;_.o1(function(){KhO||(KhO=!0,K=_.WY(_.AN,function(){_.sH().resolve(_.ydx).start(1E4);K=0},5E3))});
_.w_(function(){_.AN.cancelJob(K);_.sH().resolve(_.ydx).stop()});
_.RE(function(){var g=performance.now(),P=function(k){k=(k-g)/5E3%1*2*Math.PI;var n=50+50*Math.sin(k);Q(50+50*Math.cos(k));t(n);I=requestAnimationFrame(P)};
var I=requestAnimationFrame(P);_.w_(function(){cancelAnimationFrame(I)})},"NbULgb");
var L=function(g){for(var P=[],I=0;I<=360;I+=15)P.push((.5+.5*Math.cos(I*Math.PI/180))*g);return P.join(";")};
return _.T("yt-neon-wrapper",{class:_.s3("YtNeonWrapperHost")},_.T(_.X,{cond:G,then:function(){return _.T("svg",{class:"YtNeonWrapperSvg"},_.T("defs",null,_.T(_.rc,{each:Y},function(g,P){return _.T("filter",{id:function(){return"neon-filter-"+P()},
x:"-50%",y:"-50%",width:"200%",height:"200%","color-interpolation-filters":"sRGB",primitiveUnits:"userSpaceOnUse"},_.T("feSpecularLighting",{in:"SourceGraphic",in2:"SourceAlpha",operator:"in",surfaceScale:"8",specularConstant:"1",specularExponent:"30","lighting-color":"rgba(255, 255, 255, 1)",result:"specOut"},_.T("fePointLight",{class:"light-point",x:"0",y:"0",z:"150"},_.T("animate",{attributeName:"x",values:L(100),dur:"5000ms",repeatCount:"indefinite"}),_.T("animate",{attributeName:"y",values:L(80),
dur:"5000ms",repeatCount:"indefinite"}))),_.T("feComposite",{in:"specOut",in2:"SourceAlpha",operator:"in",result:"specOutMasked"}),_.T("feComposite",{in:"SourceGraphic",in2:"specOutMasked",operator:"arithmetic",k1:"0",k2:"1",k3:"1",k4:"0"}))})))}}),_.T(_.rc,{each:Y},function(g,P){return _.T("div",{class:"YtNeonWrapperGradient",
style:_.Yh({"--circle-x":function(){return O()+"%"},
"--circle-y":function(){return M()+"%"},
filter:function(){return G()?"url(#neon-filter-"+P()+")":void 0}})})}))},"om"),"yt-neon-wrapper",{props:{}});_.bV9=function(){return _.a(function(Y){_.Sd(Y)})};var aMp=_.D(function(Y){var G=function(){return Y.data().subtext},u={};
return _.T("snackbar-view-model",{class:_.s3("snackbarViewModelHost",Y.className)},_.T("div",{class:_.s3("snackbarViewModelEngagementBarWrapper",Y.className)},_.T(_.X,{cond:function(){return Y.data().image},
then:function(O){return _.T(_.RD,{data:O,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.T(_.X,{cond:function(){return Y.data().imageContent},
then:function(){return _.T("div",{class:"snackbarViewModelAvatarContainer"},_.T(_.HE,{data:function(){return Y.data().imageContent}},{decoratedAvatarViewModel:_.mb}))}}),_.T("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.T("div",{class:_.s3((u.snackbarViewModelTitle=!0,u.snackbarViewModelTitleWithSubtext=G,u))},_.T(_.eO,{text:function(){return Y.data().text}})),_.T(_.X,{cond:G,
then:function(){return _.T("div",{class:"snackbarViewModelSubtext"},_.T(_.eO,{text:function(){return G()}}))}})),_.T(_.X,{cond:function(){return Y.data().buttons},
then:function(){return _.T("div",{class:"snackbarViewModelButtonClassWrapper"},_.T(_.HE,{data:function(){return Y.data().buttons}},{buttonViewModel:function(O){return _.T(_.$Y,{data:O.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:Y.target})}}))}})))},"pm");_.hR(_.D(function(){function Y(w,B,N){p(w);C(N);k("in");P(!0);G(w,B);t=setTimeout(function(){u()},B)}
function G(w,B){var N,h=(N=w.text)==null?void 0:N.content;w=_.F9(w.rendererContext);h&&(B={label:h,command:w,durationMs:B},_.sH().resolve(_.zV).enqueue(B))}
function u(w){k("out");w&&clearTimeout(t)}
function O(){u(!0)}
function Q(w){if(w){var B=w.snackbarViewModel,N=w.durationMs,h=w.target;N||(N=3E3);B&&(w=_.sH().resolve(_.q3(_.F6)))&&w.enqueue({isOpened:g,open:function(){Y(B,N,h)},
close:u},0)}}
var M=_.yg("snackbar-container"),t=void 0,K=_.E(_.IE(!1,void 0,"mDc5N")),L=K.next().value;K=K.next().value;var g=L,P=K;L=_.E(_.IE("out",void 0,"FpOs5e"));var I=L.next().value,k=L.next().value;L=_.E(_.IE(void 0,void 0,"jIDRob"));var n=L.next().value,p=L.next().value;L=_.E(_.IE(void 0,void 0,"kOA3Mb"));var W=L.next().value,C=L.next().value,e=_.U3(function(){if(I()==="out"){P(!1);p(void 0);C(void 0);var w=_.sH().resolve(_.q3(_.F6));w&&Yq9(w,0)}});
_.ii(function(){var w=_.sH().resolve(_.q3(_.mUw));w&&(w.showSnackbarFn=Q,w.closeSnackbarFn=O)});
return _.T("snackbar-container",{class:"ytSnackbarContainerHost",el:M},_.T(_.X,{cond:function(){return g()&&!!n()},
then:function(){var w={};return _.T("div",{class:_.s3("ytSnackbarContainerSnackbarContainer",(w.ytSnackbarContainerMobile=!1,w.ytSnackbarContainerPivotBar=function(){var B;return!((B=_.sH().resolve(_.q3(_.Whb)))==null||!B())},w.ytSnackbarContainerOpened=function(){return g()&&I()==="in"},w.ytSnackbarContainerClosed=function(){return g()&&I()==="out"},w)),
"on:animationend":e},_.T(aMp,{data:function(){return n()},
target:function(){return W()}}))}}))},"qm"),"snackbar-container");_.hR(_.lrk,"yt-tooltip");var TXa=_.mcb.ephemeralActionSelector;_.hR(_.D(function(){var Y=_.Hx(TXa);return _.T("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var G;return(G=Y())==null?void 0:G.announcement})},"rm"),"yt-ephemeral-actions");var HaN=new Map;var jnb=function(Y,G){var u=this;this.handleError=Y;this.logEventInternal=G;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){u.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
jnb.prototype.logError=function(Y){this.handleError(Y)};
jnb.prototype.logEvent=function(Y,G){switch(Y){case "IDB_DATA_CORRUPTED":_.F("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",G);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",G);break;case "IS_SUPPORTED_COMPLETED":_.F("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",G);break;case "QUOTA_EXCEEDED":Lh5(this,G);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",G);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":Y=Object.assign({},G,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",Y)}};
var Lh5=function(Y,G){_.WS.getInstance().estimate().then(function(u){u=Object.assign({},G,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:tbb(u==null?void 0:u.usage),deviceStorageQuotaMbytes:tbb(u==null?void 0:u.quota)});Y.logEventInternal("idbQuotaExceeded",u)})};var gIO=_.D(function(Y){var G=_.CH("yt-draggable"),u=Y.onDrag,O=Y.onDragStart,Q=Y.onDragEnd,M=_.bM(Y,{allowClicks:!1,dragThreshold:5}),t=M.dragThreshold,K=M.allowClicks;Y=M.children;M=M.className;var L=void 0,g=void 0,P=new _.AD(0,0),I=!1;_.ii(function(){L=new _.fa(G.value);g=new _.GN(n);k(L,g);if(K()){_.$tl(L,t());var W;(W=G.value)==null||W.addEventListener("click",p,{capture:!0})}_.w_(function(){var C;(C=L)==null||C.dispose();if(K()){var e;(e=G.value)==null||e.removeEventListener("click",p,{capture:!0})}})});
var k=function(W,C){_.yn(W,"earlycancel",function(){K()&&(I=!1)});
_.yn(W,"start",function(e){O==null||O(e);e.defaultPrevented||K()&&(I=!0)});
_.yn(W,"beforedrag",function(e){L&&g&&(e.preventDefault(),P=new _.AD(e.clientX-L.startX,e.clientY-L.startY),g.start())});
_.yn(W,"end",function(){C.stop();Q==null||Q();P=new _.AD(0,0)})},n=function(){P&&u(P)},p=function(W){I&&(I=!1,W.stopPropagation(),W.preventDefault())};
return _.T("yt-draggable",{el:G,class:_.s3("ytDraggableComponentHost",M)},Y)},"sm");var XF5=_.D(function(Y){var G=_.E(_.IE(0,void 0,"Qf0tbc")),u=G.next().value,O=G.next().value;G=function(Q){var M={},t={};return _.T(gIO,{className:_.s3("ytdMiniplayerComponentResizer",(M.ytdMiniplayerComponentResizerDisabled=function(){return Q===Y.horizontalAlignment()||Q===Y.verticalAlignment()},M.ytdMiniplayerComponentResizerNorth=Q==="north",M.ytdMiniplayerComponentResizerEast=Q==="east",M.ytdMiniplayerComponentResizerSouth=Q==="south",M.ytdMiniplayerComponentResizerWest=Q==="west",M)),
onDragStart:function(){O(Y.currentMiniplayerSize());if(Y.onResizeStart)Y.onResizeStart()},
onDrag:function(K){Q!=="north"&&Q!=="west"||K.scale(-1);var L;K=(L=Q==="north"||Q==="south")?K.y:K.x;var g=Y.currentAspectRatio();L&&g>=1?K*=g:!L&&g<1&&(K/=g);L=K;Y.onResize(u()+L)}},_.T("div",{class:_.s3("ytdMiniplayerComponentResizerCorner",(t.ytdMiniplayerComponentResizerNorthCorner=Q==="north",t.ytdMiniplayerComponentResizerEastCorner=Q==="east",t.ytdMiniplayerComponentResizerSouthCorner=Q==="south",t.ytdMiniplayerComponentResizerWestCorner=Q==="west",t))}))};
return _.T("div",{class:"ytdMiniplayerComponentResizers"},G("north"),G("east"),G("south"),G("west"))},"tm");var Pds=16/9;_.hR(_.D(function(){var Y=_.CH("ytd-miniplayer"),G=_.E(_.IE(new _.oB(NaN,NaN),void 0,"i8Divd")),u=G.next().value,O=G.next().value;G=_.E(_.IE(!1,void 0,"M0mb9d"));var Q=G.next().value,M=G.next().value;G=_.E(_.IE(!1,void 0,"U2besf"));var t=G.next().value,K=G.next().value;G=_.E(_.IE(!1,void 0,"oMkCO"));var L=G.next().value,g=G.next().value;G=_.E(_.IE(!1,void 0,"LLG3Bf"));var P=G.next().value,I=G.next().value;G=_.E(_.IE(!1,void 0,"m7HPQe"));var k=G.next().value,n=G.next().value;G=_.E(_.IE(!1,void 0,"jUGfuc"));
var p=G.next().value,W=G.next().value;G=_.E(_.IE(Pds,void 0,"LkUsDe"));var C=G.next().value,e=G.next().value,w=_.E(_.IE(!1,void 0,"xKE3oe"));G=w.next().value;var B=w.next().value;w=_.E(_.IE(!1,void 0,"QQ32Je"));var N=w.next().value,h=w.next().value;w=_.E(_.IE(void 0,void 0,"LRAn3"));var q=w.next().value,U=w.next().value;w=_.E(_.IE(Xp()?"west":"east",void 0,"ZPTxkd"));var Mj=w.next().value,Xt=w.next().value;w=_.E(_.IE("south",void 0,"XYTr4"));var ka=w.next().value,aU=w.next().value;w=_.E(_.IE(400,
void 0,"hJycJe"));var Tg=w.next().value,iy=w.next().value;w=_.sH().resolve(_.yo).miniplayerPropSignalMap[0];var hY=w.data,dA=w.externalPlaylistData,nT=w.playabilityStatus,u_=w.isReadyToResume,jT=w.isDisabled,P1=w.watchWhile,kk=w.playerVe,Fe=w.expandVe,Xg=w.closeVe,Hb=w.readyToResumeVe,n1=w.readyToResumeCloseVe,Yk=w.repositionVe,qj=w.resizeVe;w=_.E(_.SN(u_));var Gx=w.next().value,fT=w.next().value,b_=_.Hx(_.A$.persistentPanelVisibleSelector),MK=!1,v1=!1,Ew;_.ii(function(){O(_.Ob());Y.value.addEventListener("animationend",
function(jR){jR.target===Y.value&&(n(!1),W(!1))});
Xvj(Y.value)});
_.lj("yt-window-resized",function(jR){jR&&O(jR)});
var l_=function(){Ew&&e(Ew.getVideoAspectRatio())},$V=function(){if(Ew){var jR=Ew.getPlayerState()===1;
Gx()&&jR&&fT(!1)}},T2=function(){var jR=Fe();
if(jR){var Io=_.FA(3);Io&&_.RK(Io,jR)}},Pb=function(){var jR=Xg(),Io=n1();
jR&&_.RK(_.FA(3),jR);u_()&&Io&&_.RK(_.FA(3),Io)};
_.lj("yt-activate-miniplayer",function(jR){var Io;return _.a(function(vb){if(vb.nextAddress==1)return Q()?vb.return():vb.yield((Io=_.sH().resolve(_.yo).getPlayerElement())==null?void 0:Io.getPlayerPromise(),2);Ew=vb.yieldResult;if(!Ew)return vb.return();!N()&&_.F("kevlar_watch_while_v2")&&(aU(jR&&!_.F("kevlar_watch_while_bottom_align")?"north":"south"),Xt(Xp()?"west":"east"));var K5=Ew;K5.addEventListener("onVideoDataChange",l_);K5.addEventListener("onStateChange",$V);K5.addEventListener("onExpandMiniplayer",
T2);K5.addEventListener("onCloseMiniplayer",Pb);e(Ew.getVideoAspectRatio());M(!0);gDN()||n(!0);_.Sd(vb)})});
_.lj("yt-deactivate-miniplayer",function(jR,Io){return _.a(function(vb){if(!Q())return vb.return();M(!1);fT(!1);W(jR);I(!1);K(!1);if(Ew){var K5=Ew;K5.removeEventListener("onVideoDataChange",l_);K5.removeEventListener("onStateChange",$V);K5.removeEventListener("onExpandMiniplayer",T2);K5.removeEventListener("onCloseMiniplayer",Pb)}gDN()||Io?Io&&n(!1):n(!0);_.Sd(vb)})});
var IX=function(){return!(P1()&&_.F("kevlar_watch_while_modern"))},$k=function(){var jR;
return!((jR=dA())==null||!jR.contents)},NM=function(){var jR=Tg();
var Io=u();Io=Math.min(Math.min(Io.width,Io.height)-32,720);var vb=C(),K5=IX(),s_=$k()&&t(),jd=Math.min(jR,Io);jR=new _.oB(192,K5?116:192);vb=new _.oB(s_?Pds:vb,1);jd=new _.oB(jd,K5?jd-76:jd);jd=vb.aspectRatio()>jd.aspectRatio()?jd.width/vb.width:jd.height/vb.height;vb=vb.scale(jd);jR.width<=vb.width&&jR.height<=vb.height||(jR=vb.aspectRatio()<=jR.aspectRatio()?jR.width/vb.width:jR.height/vb.height,vb.scale(jR),vb.width=Math.min(vb.width,Io),vb.height=Math.min(vb.height,Io));return new _.oB(vb.width,
_.yW(192,vb.height+nD9(K5,s_),720))},fx=function(){var jR=NM(),Io=IX(),vb=$k()&&t();
return new _.oB(jR.width,jR.height-nD9(Io,vb))},H8=function(){var jR=function(Io){Io.target===Y.value&&P()&&(I(!1),Y.value.removeEventListener("transitionend",jR))};
gDN()||(Y.value.addEventListener("transitionend",jR),I(!0));K(!t())};
_.RE(function(){var jR=kk(),Io=_.FA(3),vb=_.nX(3);if(Io&&vb&&jR){_.y6(Io,vb,jR);vb=Yk();var K5=qj(),s_=Fe(),jd=Xg(),eE=n1();s_&&jd&&eE&&(_.ey(Io,jR,[s_,jd,eE]),_.oK(Io,[s_,jd]));vb&&K5&&_.ey(Io,jR,[vb,K5])}},"UatZXe");
_.RE(function(){var jR=Hb();if(jR){var Io=_.FA(0),vb=_.nX(0);Io&&vb&&(_.y6(Io,vb,jR),_.oK(Io,[jR]))}},"kTR4R");
w={};return _.T("ytd-miniplayer",{el:Y,class:_.s3("ytdMiniplayerComponentHost",(w.ytdMiniplayerComponentVisible=function(){return(Q()||k())&&!(P1()&&_.F("kevlar_watch_while_counterfactual"))},w.ytdMiniplayerComponentAnimatingSnap=L,w.ytdMiniplayerComponentAnimatingPlaylistExpand=P,w.ytdMiniplayerComponentAnimatingFade=k,w),function(){if(k()){var jR=ka();
var Io=Q(),vb=p();jR=Io?jR==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":vb?jR==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":jR==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else jR="";return jR}),
style:_.Yh({top:function(){return ka()==="north"?"16px":""},
right:function(){var jR=Mj(),Io=b_();Io=(Io===void 0?0:Io)&&!Xp()?400:0;return jR==="east"?16+Io+"px":""},
bottom:function(){return ka()==="south"?"16px":""},
left:function(){var jR=Mj(),Io=b_();Io=(Io===void 0?0:Io)&&Xp()?400:0;return jR==="west"?16+Io+"px":""},
width:function(){return NM().width+"px"},
height:function(){return NM().height+"px"},
transform:function(){var jR=q();return jR?"translate("+jR.x+"px, "+jR.y+"px)":""}})},_.T("div",{class:"ytdMiniplayerComponentContent"},_.T(gIO,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(jR){var Io=kMj(Mj(),ka(),u(),NM(),q()),vb=fx();Math.abs(jR.clientY-(Io.y+vb.height))>15?(B(!0),jR=_.FA(3),Io=Yk(),MK||(MK=!0,jR&&Io&&_.oK(jR,[Io])),jR&&Io&&_.RK(jR,Io)):jR.preventDefault()},
onDrag:function(jR){U(jR)},
onDragEnd:function(){var jR=Puo(kMj(Mj(),ka(),u(),NM(),q()),u(),NM()),Io=IJS(Mj(),ka(),u(),NM(),b_()),vb=IJS(jR.horizontalAlignment,jR.verticalAlignment,u(),NM(),b_());vb=new _.AD(vb.x-Io.x,vb.y-Io.y);var K5;Io=Io.y+(((K5=q())==null?void 0:K5.y)||0)+NM().height/2;var s_=function(){Mj()===jR.horizontalAlignment&&ka()===jR.verticalAlignment||h(!0);Xt(jR.horizontalAlignment);aU(jR.verticalAlignment);U(void 0)},jd=function(eE){eE.target===Y.value&&L()&&(g(!1),s_(),Y.value.removeEventListener("transitionend",
jd))};
B(!1);ka()==="south"&&Io>u().height?(s_(),_.sH().resolve(_.yo).close()):(Y.value.addEventListener("transitionend",jd),g(!0),U(vb))}},_.T(_.X,{cond:Q,
then:function(){return _.T(_.S0w,{isDisabled:jT,playabilityStatus:nT,size:fx})}}),_.T(_.X,{cond:IX,
then:function(){return _.T(_.dCo,{isReadyToResume:Gx,data:hY,expanded:t,onExpandClick:H8,playlistData:dA})}}),_.T(_.X,{cond:G,
then:function(){return _.T("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.T(_.X,{cond:function(){return $k()&&t()||P()},
then:function(){return _.T(_.mKj,{className:"ytdMiniplayerComponentPlaylistPanel",data:dA,hideHeaderText:!0,withinMiniplayer:!0})}})),_.T(XF5,{onResize:function(jR){iy(_.yW(192,jR,720))},
onResizeStart:function(){var jR=_.FA(3),Io=qj();v1||(v1=!0,jR&&Io&&_.oK(jR,[Io]));jR&&Io&&_.RK(jR,Io)},
currentAspectRatio:C,currentMiniplayerSize:Tg,horizontalAlignment:Mj,verticalAlignment:ka}))},"wm"),"ytd-miniplayer",{});var IMO=_.A$.persistentPanelVisibleSelector,wL=function(){var Y=_.Z.apply(this,arguments)||this;Y.tabGesturesIsActive=!1;Y.persistentPanelEnabled=_.F("enable_ai_companion");Y.hasDelegation=!1;Y.isFrostedGlassInitialized=!1;Y.frostedGlassExp=_.F("web_frosted_glass");Y.hasPendingWatchNavigation=!1;Y.mastheadHiddenFocusWithinKillswitch=_.F("web_masthead_hidden_focus_within_killswitch");Y.clientOnlyWizTooltipsEnabled=_.F("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
Y.scrollAtTopInternal=!0;Y.guideScrollTop=0;Y.isTheaterModeSession=_.hy("START_IN_THEATER_MODE");Y.iMaxTheaterMode=_.F("web_watch_imax_theater_mode");Y.isFullWindowSession=_.hy("START_IN_FULL_WINDOW_MODE");Y.hasCreateFamilyDialog=!1;Y.mastheadHeight=56;Y.networkStatusManager=new _.lB;Y.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"};Y.dynamicActionMap={"yt-run-attestation-command":function(G){var u=_.tLN.instance,O=_.z(G,_.JtI);return O?_.F("use_rta_manager_for_async")&&
(_.F("attmusi")&&_.F("attmusi_ue")?window.attmp:Plx())?xaB(u,O,G.clickTrackingParams):r7g(u,O,G.clickTrackingParams):_.Ld(Error("si"))}};
Y.isFrostedGlassDisabled=!1;Y.isChannelOrPlaylistPage=!1;return Y};
_.m(wL,_.Z);_.H=wL.prototype;_.H.created=function(){var Y=_.sH();_.F("kevlar_clear_duplicate_pref_cookie")&&_.WY(_.AN,function(){var G=_.TR.get("PREF");G&&!/f\d=/.test(G)&&(G=_.Yg("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=G?"PREF=null;domain="+G+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.F("gzip_gel_with_worker")&&_.wna();_.F("jspb_serialize_with_worker")&&JoN();_.F("web_worker_availability_check")&&ED9();_.F("nwl_init_killswitch")||Utj().then(function(){_.AN.addLowPriorityJob(SjS)});
this.pageManagerAttachedPromise=_.RS();this.ytdAppBehavior.loadDepsPromise=_.mV([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.JR(this.onThrottledScroll,200,this);_.F("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);V9B();Ph9=!!_.So("ytappsettings.initialized");RSo=_.So("ytappsettings.previousValue");w2V=_.So("ytappsettings.previousSnapshotTime");Ph9||(Ph9=!0,ZQx());t0y();Ki9();_.ZE("DEFERRED_DETACH",
_.F("kevlar_tuner_should_defer_detach"));_.ZE("REUSE_COMPONENTS",!0);_.ZE("STAMPER_STABLE_LIST",!0);_.ZE("SCHEDULED_LAZY_LIST",!0);_.ZE("openPopupConfig",wtx);_.ZE("useClickHandler",!0);_.F("kevlar_shell_cleanup")&&_.AN.addLowPriorityJob(kbx.bind(this,_.OI.caches));_.hy("IS_SHELL_LOAD")&&_.kN({shellStartupDurationMs:Math.round((0,_.GC)()-lV())});VI9(this.networkStatusManager);_.F("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",DO9(Hmg)),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!",
DO9(EIT)),console.log("%cVisit http://go/join-youtube-web to apply today.",DO9(tha)));aco(Y.resolve(_.lEx),1E3)};
_.H.ready=function(){var Y=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var G=FR9();G&&!_.F("external_fullscreen_killswitch")&&document.addEventListener(G,this.setFullscreen.bind(this));(G=window.matchMedia("(prefers-color-scheme: dark)"))&&G.addEventListener&&G.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(G=_.sH().resolve(_.q3(_.taX)))G.subscribe("navigation-start",
function(u){u.destinationPageSubtype==="watch"&&(Y.hasPendingWatchNavigation=!0)}),G.subscribe("navigation-end",function(u){u.destinationPageSubtype==="watch"&&(Y.hasPendingWatchNavigation=!1)})};
_.H.attached=function(){var Y=this;_.AM().processSignal("ci");_.F("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.qr4?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Mz(_.xQI(),"SUCCESS");this.updateIconSet();_.Sc(this.guideInnerContent,!1);_.O2().initVisibilityObserver();this.guideService.guideElement=this.guide;var G=document.createElement("ytd-miniplayer"),u=_.l0(this.hostElement).querySelector("#content");
_.l0(this.hostElement).insertBefore(G,u);_.AM().processSignal("ma");_.sH().resolve(_.yo).init(G);this.persistentPanelEnabled&&c7b(this.persistentPanelContainer,"APP");_.hy("IS_SHELL_LOAD")&&(u=document.createElement("ytd-network-status-banner"),_.l0(this.hostElement).insertBefore(u,G));_.F("kevlar_right_click_on_lockups")&&_.xc._onCaptureClick&&document.addEventListener("contextmenu",_.xc._onCaptureClick.bind(_.xc),!0);var O=function(){var Q=_.DA("yt-page-navigation-progress");_.l0(Y.hostElement).appendChild(Q)};
setTimeout(function(){_.AM().parkOrScheduleJob(O,0,"eocs",16)},0);
_.F("service_worker_push_enabled")&&_.WY(_.AN,JW9);_.jK(_.N6.getInstance(),this.dynamicActionMap,this.hostElement);_.$s(this.hostElement,"ytd-app-attached");_.AM().processSignal("aa");QKN(this.hostElement);_.U5("gapi.load",_.Xqa);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.WY(_.AN,
function(){var Q=document.createElement("ytd-video-preview");_.l0(_.l0(Y.hostElement).querySelector("#video-preview")).appendChild(Q)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.WY(_.AN,function(){SRx();Y.registerWithViewTransitionManager()});
if(_.fB()&&this.isAppDarkTheme()!==_.rG())this.onDarkModeToggledAction();else G=_.x3()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==G&&(_.F("enable_dark_theme_only_on_shorts")?_.Wm(_.F("enable_dark_theme_only_on_shorts_control")?window.location.href:_.B4(window.location.href,{theme:"dark"})):_.R0(new _.I2("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(dqx=new hqg(this.hostElement)),Ghp=new Y_T(this.hostElement),JDp=new vxs(this.hostElement),QIy=new Owb(this.hostElement)};
_.H.getThemeSettingsToLog=function(){var Y=_.x3()==="USER_INTERFACE_THEME_DARK";Y=_.fB()?_.rG()?"os-dark":"os-light":Y?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:Y,cookiesEnabled:_.gC()}};
_.H.detached=function(){_.NZ(this.guideInnerContent);_.AN.cancelJob(sxb);sxb=0;_.AN.cancelJob(Jvb);Jvb=0;_.BHt(OQo);OQo.length=0;YU9=_.O0Y=null;_.O2().dispose();_.F("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.VO(_.N6.getInstance(),dqx.playlistHandlerActionMap,dqx.JSC$33593_clientRoot);_.VO(_.N6.getInstance(),Ghp.downloadManagerActionMap,Ghp.JSC$34040_clientRoot);_.VO(_.N6.getInstance(),JDp.feedbackCollectorActionMap,JDp.JSC$34035_clientRoot);
for(var Y=_.E(QIy.eventListeners),G=Y.next();!G.done;G=Y.next()){var u=_.E(G.value);G=u.next().value;u=u.next().value;u=_.E(u);for(var O=u.next();!O.done;O=u.next()){var Q=_.E(O.value);O=Q.next().value;Q=Q.next().value;G.removeEventListener(O,Q)}}_.VO(_.N6.getInstance(),QIy.autonavPauseActionMap,QIy.JSC$21722_clientRoot)};
_.H.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.EU().getFlag(186)};
_.H.computeIsInlinePreviewEnabled=function(Y,G,u){return!u&&P$o({miniplayerIsActive:Y,miniplayerPlaybackState:G})};
_.H.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.V6({type:"SET_FROSTED_GLASS_MODE",payload:!_.F("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(Y,G,u,O){return Y||G||u||O&&_.F("web_frosted_glass_disable_watch")};
_.H.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.F("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(Y,G){if(!Y||G==null||!G.endpoint)return!1;var u;return((u=_.z(G.endpoint,_.Y3))==null?void 0:u.browseId)==="FEwhat_to_watch"};
_.H.updateIsChannelOrPlaylistPage=function(){if(_.F("web_frosted_glass")){var Y,G,u=(G=(Y=_.sH().resolve(_.q3(_.bv)))==null?void 0:Y.getCurrentPage())==null?void 0:G.pageSubtype;this.isChannelOrPlaylistPage=u?["channel","channels","playlist"].includes(u):!1}};
_.H.scheduleFrostedGlassInitialization=function(){var Y=this;_.F("web_frosted_glass")&&_.AM().parkOrScheduleJob(function(){Y.isFrostedGlassInitialized=!0},0,PL(["eocs",
"cr"]),300)};
_.H.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.BOR(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.V6({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.V6({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.H.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Gpx(!0))};
_.H.onYtSignalActionRequestPersistentStorage=function(){if(!_.F("request_persistent_storage_killswitch")){var Y=_.sH().resolve(_.X4b);Y.cachedPersistStatePromise||(Y.cachedPersistStatePromise=gpw())}};
_.H.handleYtChannelCreationFormEndpoints=function(Y){Y&&this.ytComponentBehavior.resolveCommand(Y)};
_.H.handleShowEngagementPanelEndpoint=function(Y){Y&&this.ytComponentBehavior.resolveCommand(Y)};
_.H.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Gpx(!1))};
_.H.initIconDefs=function(Y,G){var u=document.createElement("iron-iconset-svg");u.name=Y;Y=document.createElementNS("http://www.w3.org/2000/svg","svg");u.appendChild(Y);Y.appendChild(G);document.body.appendChild(u);return u};
_.H.onWindowResized=function(){_.qZ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var Y=_.qE.getInstance();Y.documentWidth_=document.body.clientWidth;jPo(Y)};
_.H.onWindowScrolled=function(){var Y=_.sH().resolve(_.bv).getCurrentPage();if(Y!=null&&Y.getScrollTop){var G=this.ytdReduxBehavior,u=G.dispatch;Y=Y.getScrollTop()<=0;u.call(G,_.V6({type:"SET_SCROLL_AT_TOP",payload:Y}))}};
_.H.guideIsVisibleButNotPersistentSelectorChanged=function(){var Y=_.sH().resolve(_.bv).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=Y.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"),
Y.setScrollTop(this.guideScrollTop));_.sK(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.H.getCurrentPageScrollableElementType=function(){var Y=_.sH().resolve(_.bv).getCurrentPage();if(Y&&Y.getPageScrollingElement())return Y.getPageScrollingElement().nodeName};
_.H.observeGuideVisibility=function(){var Y=_.qE.getInstance(),G=this.miniGuideVisible;Y.guidePersistentAndVisible_=this.guidePersistentAndVisible;Y.miniGuideVisible_=G;jPo(Y)};
_.H.observePersistentPanelVisibility=function(){var Y=_.qE.getInstance();Y.persistentPanelVisible_=this.persistentPanelVisible;jPo(Y)};
_.H.handleEduDismissAction=function(Y){Y&&Y.eduDismissAction&&(_.qZ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.sg4.getInstance(),_.Bq.set(Y.eduDismissAction.key+"-dismissed",!0))};
_.H.handleEduImpressionAction=function(Y){if(Y&&Y.eduImpressionAction){var G=_.sg4.getInstance();Y=Y.eduImpressionAction.key;G.JSC$13516_eduDisplayedThisLoad_[_.qvX[Y].setKey||Y]=!0;_.Bq.set(Y+"-impression",parseInt(_.Bq.get(Y+"-impression")||0,10)+1)}};
_.H.onYtSignalActionConfirmMentionsEdu=function(){_.qZ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.cq.getInstance();_.sh.set("edu-dismissed",!0)};
_.H.onYtSignalActionRecordMentionsEduImpression=function(){_.cq.getInstance();var Y=_.sh.set,G=parseInt(_.sh.get("edu-impressions"),10);Y.call(_.sh,"edu-impressions",(isFinite(G)?G:0)+1)};
_.H.onYtPageManagerAttached=function(Y){var G;((G=_.Zb(Y))==null?void 0:G.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.H.onInvokeInstrumentManagerAction=function(Y,G){LjS(G,Y)};
_.H.updateIconSet=function(){var Y=this.hostElement.querySelector("#masthead");if(Y){var G=_.Bm(Y),u=G.querySelector("g#yt-logo-updated");u&&(Y=document.createElementNS("http://www.w3.org/2000/svg","defs"),Y.appendChild(u.cloneNode(!0)),(G=G.querySelector("g#yt-logo-red-updated"))&&Y.appendChild(G.cloneNode(!0)),this.initIconDefs("yt-logos-ext",Y))}};
_.H.updateMastheadData=function(){var Y=this,G,u,O,Q,M;return _.a(function(t){if(t.nextAddress==1){G=Y.data;u=Y.hostElement.querySelector("#masthead");if(!u)return t.return();_.sk(Y,function(){u.data=Y.topbarData});
if(!Y.get("response.topbar",G)||Y.get("response.topbar.responseContext.maxAgeSeconds",G)===0)return t.jumpTo(0);if(O=_.sH().resolve(_.KE))return t.yield(O(),6);Q=_.sH().resolve(_.Js);return t.yield(Q.put("service:topbar:fallback",new _.Yb({innertubeResponse:Y.get("response.topbar",G)})),0)}return(M=t.yieldResult)?t.yield(M.put("service:topbar:fallback",new _.Yb({innertubeResponse:Y.get("response.topbar",G)})),0):t.jumpTo(0)})};
_.H.computeTopbarData=function(Y){if(!Y)return null;var G;return this.isShortsPage&&this.topbarData&&!_.z((G=Y.response)==null?void 0:G.topbar,ZNS)?this.topbarData:Y.response&&"topbar"in Y.response?_.z(Y.response.topbar,ZNS)||null:null};
_.H.onSetTheaterModeEnabled=function(Y,G){this.isTheaterModeSession=G.enabled;this.setTheaterModeStyles(G.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 Y=_.BI(window.location.href);if(!_.uTY(Y)){(Y=!!_.li(window.location.href).themeRefresh)&&_.R0(new _.I2("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!Y){ZQx();Y={themeRefresh:1};var G=_.sH().resolve(_.bv);if(G.isOnWatch()){var u,O;G=((u=G.getPlayerFromWatch())==null?void 0:(O=u.getPlayer())==null?void 0:O.getCurrentTime())||0;G>=1&&(Y.time_continue=Math.floor(G))}_.gC()||_.x3()!=="USER_INTERFACE_THEME_DARK"||(Y.theme="dark");_.Wm(_.B4(window.location.href,
Y))}_.F("web_appshell_refresh_trigger")&&_.OI.caches&&this.refreshAppShellResponse();u=_.$x(window.location.href);_.Oa(_.sH().resolve(_.Q7),_.ud(u,"theme"))}};
_.H.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.H.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.H.onPlayerFullscreen=function(Y){_.dJ();this.playerFullscreen=Y};
_.H.setRestrictedMode=function(Y){var G=_.EU();_.tW(0,58,Y);G.save();_.sH().resolve(_.YY).reload()};
_.H.onPageChanged=function(Y){Y.detail.newPageType==="ytd-watch-flexy"||Y.detail.newPageType==="ytd-watch-fixie"||Y.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.py("WEB_PAGE_TYPE_WATCH")):Y.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.py("WEB_PAGE_TYPE_SHORTS")):Y.detail.newPageType==="ytd-browse"&&Y.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.py("WEB_PAGE_TYPE_MINI_APP")):_.F("web_frosted_glass")&&Y.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.py("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.py("WEB_PAGE_TYPE_UNKNOWN"));Y.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.H.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.H.onGuideToggleTap=function(){_.$s(this.hostElement,"yt-guide-toggle")};
_.H.onGuideToggleHover=function(){_.$s(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 Y=_.Bm(this.hostElement).querySelector("#masthead");Y&&(Y.dark=Y.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),Y.isDarkThemeForced=!1)};
_.H.onRequestPanelModeChange=function(Y,G){this.hideHeaderShadow=G.mode!=="seamed"};
_.H.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.H.onDrawerIronSelect=function(Y){_.Zb(Y).id==="guide"&&this.processDrawerIronSelect()};
_.H.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var Y="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(Y="opened"));_.$s(this.hostElement,"yt-autonav-pause-guide-"+Y)};
_.H.onAddElementToApp=function(Y){_.l0(this.hostElement).appendChild(Y.detail)};
_.H.onThrottledScroll=function(){var Y=_.sH().resolve(_.bv).getCurrentPage();Y&&(this.scrollAtTopInternal=Y.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.H.canHideMasthead=function(){return this.scrollAtTopInternal&&!!this.fullscreen};
_.H.setFullscreen=function(){if(_.F("external_fullscreen")||!this.isWatchPage){var Y=_.F("kevlar_fullerscreen_root_only_killswitch")?!!_.dJ():!!_.dJ()&&_.dJ()===document.documentElement;Y=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(Y||this.isFullWindowSession);this.fullscreen!==Y&&((this.fullscreen=Y)&&_.sK(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Zs().dispatch(_.RCR(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.qZ(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.H.setFullscreenLoggingForShorts=function(Y){var G,u,O;return _.a(function(Q){if(Q.nextAddress==1)return Q.yield((G=_.N5())==null?void 0:G.getPlayerPromise(),2);u=Q.yieldResult;(O=u)==null||O.setAppFullscreen(Y);_.Sd(Q)})};
_.H.updateMastheadCssHeight=function(){var Y=this.mastheadHeight;this.fullscreen&&(Y=0);_.cm(this.hostElement,{"--ytd-masthead-height":Y+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.H.updateNetworkStatusBannerDisplayStatus=function(){var Y="unset";this.fullscreen&&(Y="none");_.cm(this.hostElement,{"--ytd-network-status-banner-display":Y})};
_.H.updateNetworkStatusBannerCssHeight=function(){var Y="unset";this.fullscreen&&(Y="0px");_.cm(this.hostElement,{"--ytd-network-status-banner-max-height":Y})};
_.H.updateScrollAndMasthead=function(Y,G,u,O){this.iMaxTheaterMode||(O=!1);var Q=_.sH().resolve(_.bv).getCurrentPage();Y||G||O?(document.body.classList.add("no-scroll"),Q.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Jh(this,this.onScroll)),Q.setScrollTop(0),_.cm(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":$u()+"px"})):u?_.$s(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.$s(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
Q.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Jh(this,this.onScroll)));this.mastheadHidden=Y||G||u;this.updateMastheadCssHeight();_.F("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.H.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.H.onYtNavigateAction=function(Y){Y=this.get("navigateAction.endpoint",Y);_.$s(this.hostElement,"yt-navigate",{endpoint:Y})};
_.H.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var Y=document.createElement("yt-create-family-dialog");_.l0(this.hostElement).appendChild(Y);this.hasCreateFamilyDialog=!0}};
_.H.onSetPushNotificationsEnabledCommand=function(Y){var G=this,u=_.z(Y,R7S);u&&typeof u.enabled==="boolean"&&(Notification.permission!=="granted"?qUN().then(function(){Notification.permission==="granted"?(xu9(!u.enabled).then(eS9),u.successAction&&_.c$(G.hostElement,[u.successAction])):u.failureAction&&_.c$(G.hostElement,[u.failureAction])}):(xu9(!u.enabled).then(eS9),u.successAction&&_.c$(this.hostElement,[u.successAction])))};
_.H.onYtSignalActionEnableChromeNotifications=function(){sKB(!0)};
_.H.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.z(this.topbarData.hotkeyDialog,SuN)}}})};
_.H.onYtSignalActionShowKeyboardShortcutDialog=function(){_.qZ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.H.onYtEndpointChangeHandler=function(Y,G){var u=_.$2(_.JM);u.pendingPrefetchJob_&&(G=!(!G||G.autonav!="1"),u.pendingPrefetchJob_.resolve(Y&&_.QYA(Y)?_.MPI(Y,G):""),u.pendingPrefetchJob_=null);_.qZ(this.hostElement,"yt-pause-active-page-context");_.qZ(this.hostElement,"ytd-log-youthere-nav");_.qZ(this.hostElement,"yt-prepare-page-dispose")};
_.H.handleCommandWithCommandHandler=function(Y,G){_.Jj.instance.resolveCommand(Y,{form:{element:G}})};
_.H.onYtTimedCommand=function(Y){var G=this;Y=_.z(Y,aDS);var u=Y.command;u&&_.EA(_.AN,function(){var O=_.z(u,_.EKX);O?(_.Jj.instance.resolveCommand(u),G.maybeLogGetAnswerRequestTick(O)):_.UK(G.hostElement,[u],G.hostElement)},Y.timeoutMs||0)};
_.H.maybeLogGetAnswerRequestTick=function(Y){Y&&Y.isFirstRequest&&(_.Fh("search_overview_answer"),_.pQ("so_rq",void 0,"search_overview_answer"))};
_.H.onYtSignalActionSkipNavigation=function(){var Y=_.sH().resolve(_.bv).getCurrentPage();_.qC(Y)};
_.H.onYtSignalActionCopyDebugData=function(){WZj()};
_.H.handleEntityUpdateCommand=function(Y){_.OG(_.z(Y,_.rKR).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.H.logFlowLoggingEventCommand=function(Y){if(Y=_.z(Y,_.Ab4))if(Y.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var G=Y.flowEventNamespace,u=Y.flowEventType,O=Y.flowType;O&&G&&u&&_.cqy(_.cC(G,u,Y.flowEventMetadata),O)}else{G=_.UG();u=Y.flowEventNamespace;O=Y.flowEventType;var Q=Y.flowType;Q&&u&&O&&G.logFlowEvent(_.cC(u,O,Y.flowEventMetadata),Q,Y.flowNonce)}};
_.H.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.H.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.H.onTouchStart=function(){var Y=_.Q_();_.FA()&&_.er(Y.JSC$13638_screenManager,{visualElement:Y.ve})};
_.H.handleSelectLanguageCommand=function(Y){if(Y=_.z(Y,rqb).hl){var G=_.EU();G.set("hl",Y);G.save();_.sH().resolve(_.YY).reload()}};
_.H.handleConfirmDialogEndpoint=function(Y){(Y=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(Y))&&this.ytOpenPopupBehavior.openPopup(Y)};
_.H.handleOpenPopupNavigationEndpoints=function(Y,G){(Y=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(Y))&&this.ytOpenPopupBehavior.openPopup(Y,G)};
_.H.handleSaveCommandToSessionStorage=function(Y){if(Y=_.z(Y,_.MmX)){var G=Y.key;G&&Y.command&&window.sessionStorage.setItem(G,JSON.stringify(Y.command))}};
_.H.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(Y){Y&&Y.active&&Y.active.postMessage({type:"refresh_shell"})}).catch(function(Y){Y.name!=="SecurityError"&&_.o0(Y)})};
_.H.onDeviceThemeChanged=function(){var Y=_.rG();_.tW(_.EU(),185,Y);_.EU().save()};
_.H.handleYtRegisterPromoCommand=function(Y){if(_.z(Y,iNN)){var G=_.sH().resolve(_.bv).getCurrentPage()||this.hostElement;xVB().registerPromoCommand(_.z(Y,iNN),G)}};
_.H.onYtNavigateHomeAction=function(){if(!_.F("kevlar_miniplayer_navigate_home_from_app_killswitch")){var Y,G,u,O,Q=(O=(Y=this.topbarData)==null?void 0:(G=Y.logo)==null?void 0:(u=G.topbarLogoRenderer)==null?void 0:u.endpoint)!=null?O:_.Hq;this.ytComponentBehavior.resolveCommand(Q)}};
_.H.onYtLocationCollectionCommand=function(Y){dO9(_.z(Y,cQg))};
_.H.onYtGetLocationCommand=function(Y){gUb(_.z(Y,skw),this)};
_.H.updateRenderGuideFromBinding=function(Y){this.renderGuide=Y.detail.value};
_.H.updateGuidePersistentAndVisibleFromBinding=function(Y){this.guidePersistentAndVisible=Y.detail.value};
_.H.updateMiniGuideVisibleFromBinding=function(Y){this.miniGuideVisible=Y.detail.value};
_.H.onThemeSelected=function(Y,G){var u=_.EU(),O=Y||G?Y:_.rG(),Q=(O&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!O&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.uTY(_.BI(window.location.href));_.tW(0,165,Y);_.tW(0,174,G);u.save();Q&&_.qZ(this.hostElement,"yt-dark-mode-toggled-action",[O]);_.qZ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.H.getCurrentTheme=function(){return _.fB()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.x3()};
_.H.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.H.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.H.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.H.handleShowConsentPrimitive=function(Y){var G=this,u,O;return _.a(function(Q){if(Q.nextAddress==1){try{u=(O=_.N5())==null?void 0:O.getPlayerPromise()}catch(M){}return Q.yield(MbS(Y,u),2)}_.qZ(G.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Sd(Q)})};
_.H.handleSelectActiveIdentityEndpointInternal=function(Y){_.zA();Y=_.z(Y,_.WeV);if(Y!=null&&Y.supportedTokens){Y=_.E(Y.supportedTokens);for(var G=Y.next();!G.done;G=Y.next())G=G.value,G.accountSigninToken&&_.Wm(G.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.H.handleUpdatePermissionRoleCommand=function(Y){if(Y=_.z(Y,_.zFU)){var G;this.hasDelegation=!((G=_.z(Y.renderer,_.pOM))==null||!G.status)}};
_.H.registerWithViewTransitionManager=function(){var Y=_.sH().resolve(_.q3(_.T7));if(Y){var G,u=(G=this.guide)==null?void 0:G.querySelector("#scrim"),O;G=(O=this.guide)==null?void 0:O.querySelector("#contentContainer");u&&G&&Y.isAnyTransitionEnabled&&(O={},Y.viewTransitionCoordinator.registerElement(u,(O.slide="app-drawer-scrim-page-transition",O["lockup-to-watch"]="app-drawer-scrim-page-transition",O["learning-journey"]="app-drawer-scrim-page-transition",O)),u={},Y.viewTransitionCoordinator.registerElement(G,
(u.slide="app-drawer-container-page-transition",u["lockup-to-watch"]="app-drawer-container-page-transition",u["learning-journey"]="app-drawer-container-page-transition",u)))}};
_.Uk.Object.defineProperties(wL.prototype,{neonWrapperEnabled:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_neon_dark_launch")&&this.isWatchPage}},
csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.F("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky&&(!this.scrollAtTop||!_.F("kevlar_show_chips_on_scroll"))}}});
_.Uk.Object.defineProperties(wL,{template:{configurable:!0,enumerable:!0,get:function(){if(BgT===void 0){var Y=document.createElement("template");_.r(Y,'\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 id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\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="[[neonWrapperEnabled]]" restamp="" class="style-scope ytd-app">\n  <yt-neon-wrapper class="style-scope ytd-app"></yt-neon-wrapper>\n</template>\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');
Y.content.insertBefore(_.l().content.cloneNode(!0),Y.content.firstChild);BgT=Y}Y=BgT;return Y}}});
wL.prototype.onOpenHotkeyDialog=wL.prototype.onOpenHotkeyDialog;wL.prototype.setFullscreen=wL.prototype.setFullscreen;wL.prototype.onAddElementToApp=wL.prototype.onAddElementToApp;wL.prototype.onDrawerIronSelect=wL.prototype.onDrawerIronSelect;wL.prototype.onGuideOpenButtonHover=wL.prototype.onGuideOpenButtonHover;wL.prototype.onRequestPanelModeChange=wL.prototype.onRequestPanelModeChange;wL.prototype.onPageDataUpdated=wL.prototype.onPageDataUpdated;wL.prototype.onPageChanged=wL.prototype.onPageChanged;
wL.prototype.onSetTheaterModeEnabled=wL.prototype.onSetTheaterModeEnabled;wL.prototype.updateMastheadData=wL.prototype.updateMastheadData;wL.prototype.onYtPageManagerAttached=wL.prototype.onYtPageManagerAttached;wL.prototype.observePersistentPanelVisibility=wL.prototype.observePersistentPanelVisibility;wL.prototype.observeGuideVisibility=wL.prototype.observeGuideVisibility;wL.prototype.guideIsVisibleButNotPersistentSelectorChanged=wL.prototype.guideIsVisibleButNotPersistentSelectorChanged;
wL.prototype.isInlinePreviewEnabledChanged=wL.prototype.isInlinePreviewEnabledChanged;wL.prototype.isWatchPageChanged=wL.prototype.isWatchPageChanged;wL.prototype.dispatchFrostedGlassMode=wL.prototype.dispatchFrostedGlassMode;_.S([_.x(_.me),_.V("design:type",Object)],wL.prototype,"ytdReduxBehavior",void 0);_.S([_.x(_.Lr.YtEventForwardingBehavior),_.V("design:type",Object)],wL.prototype,"ytEventForwardingBehavior",void 0);
_.S([_.x(_.cZ.YtOpenPopupBehavior),_.V("design:type",Object)],wL.prototype,"ytOpenPopupBehavior",void 0);_.S([_.x(_.vZ.YtActionHandlerBehavior),_.V("design:type",Object)],wL.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.x({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.N6.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.F("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var Y;((Y=this.actionRouterNode.hostElement)!=null?Y:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var Y;((Y=this.actionRouterNode.hostElement)!=null?Y:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(Y){this.actionRouter_.handleAction(Y.detail)}}),
_.V("design:type",Object)],wL.prototype,"ytActionRouterBehavior",void 0);_.S([_.x(H6x.YtdAppBehavior),_.V("design:type",Object)],wL.prototype,"ytdAppBehavior",void 0);_.S([_.x(_.U2.YtEndpointBehavior),_.V("design:type",Object)],wL.prototype,"ytEndpointBehavior",void 0);_.S([_.x(UIs.YtEndpointHandlerWithYpcBehavior),_.V("design:type",Object)],wL.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.S([_.x($Ia.YtLogYpcFlowCommandsBehavior),_.V("design:type",Object)],wL.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.S([_.x(_.c.YtRendererBehavior),_.V("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.S([_.x(_.m9.YtComponentBehavior),_.V("design:type",Object)],wL.prototype,"ytComponentBehavior",void 0);_.S([_.R({selector:RIj}),_.V("design:type",Object)],wL.prototype,"tabGesturesIsActive",void 0);_.S([_.R(),_.V("design:type",Boolean)],wL.prototype,"renderGuide",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],wL.prototype,"guidePersistentAndVisible",void 0);_.S([_.R({selector:osB}),_.V("design:type",Boolean)],wL.prototype,"guideIsVisibleButNotPersistent",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],wL.prototype,"standalone",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],wL.prototype,"miniGuideVisible",void 0);
_.S([_.R(),_.V("design:type",Object)],wL.prototype,"persistentPanelEnabled",void 0);_.S([_.R({selector:IMO,reflectToAttribute:!0}),_.V("design:type",Boolean)],wL.prototype,"persistentPanelVisible",void 0);_.S([_.R({selector:_.R6y}),_.V("design:type",Number)],wL.prototype,"miniplayerPlaybackState",void 0);_.S([_.R({selector:_.FX,reflectToAttribute:!0}),_.V("design:type",Boolean)],wL.prototype,"miniplayerIsActive",void 0);
_.S([_.R({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.V("design:type",Boolean)],wL.prototype,"isInlinePreviewEnabled",void 0);_.S([_.R(),_.V("design:type",Boolean)],wL.prototype,"isInlinePreviewDisabled",void 0);_.S([_.R({reflectToAttribute:!0,value:function(){return _.hy("START_IN_FULL_WINDOW_MODE")}}),
_.V("design:type",Boolean)],wL.prototype,"mastheadHidden",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],wL.prototype,"playerFullscreen",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],wL.prototype,"fullscreen",void 0);_.S([_.R({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],wL.prototype,"hideHeaderShadow",void 0);
_.S([_.R({value:{GUIDE_ALT_LABEL:_.Q6("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.V("design:type",Object)],wL.prototype,"menuStrings",void 0);_.S([_.R({computed:"computeTopbarData(data)"}),_.V("design:type",Object)],wL.prototype,"topbarData",void 0);_.S([_.R({selector:_.e6j,reflectToAttribute:!0}),_.V("design:type",Boolean)],wL.prototype,"isWatchPage",void 0);_.S([_.R({selector:_.AsT,reflectToAttribute:!0}),_.V("design:type",Boolean)],wL.prototype,"isShortsPage",void 0);
_.S([_.R({selector:function(Y){return _.pU(Y)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.V("design:type",Boolean)],wL.prototype,"isMiniAppPage",void 0);_.S([_.R({selector:function(Y){return _.pU(Y)==="WEB_PAGE_TYPE_BROWSE"}}),
_.V("design:type",Boolean)],wL.prototype,"isBrowsePage",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Boolean)],wL.prototype,"scrolling",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],wL.prototype,"hasDelegation",void 0);_.S([_.R({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],wL.prototype,"guideScrolledByTouch",void 0);_.S([_.R(),_.V("design:type",Object)],wL.prototype,"isFrostedGlassInitialized",void 0);
_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],wL.prototype,"frostedGlassExp",void 0);_.S([_.R({selector:function(Y){return Y.ui.chipBarIsSticky}}),
_.V("design:type",Boolean)],wL.prototype,"chipBarIsSticky",void 0);_.S([_.R({selector:iXy}),_.V("design:type",Boolean)],wL.prototype,"scrollAtTop",void 0);_.S([_.R({computed:"computeIsHomePage(isBrowsePage, data)"}),_.V("design:type",Boolean)],wL.prototype,"isHomePage",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],wL.prototype,"hasPendingWatchNavigation",void 0);_.S([_.R({reflectToAttribute:!0}),_.V("design:type",Object)],wL.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.S([_.R(),_.V("design:type",Object)],wL.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.S([_.f("isWatchPage"),_.V("design:type",Object),_.V("design:paramtypes",[])],wL.prototype,"neonWrapperEnabled",null);_.S([vS("guide"),_.V("design:type",Object)],wL.prototype,"guide",void 0);_.S([vS("guide-service"),_.V("design:type",KIN)],wL.prototype,"guideService",void 0);_.S([vS("guide-inner-content"),_.V("design:type",HTMLDivElement)],wL.prototype,"guideInnerContent",void 0);
_.S([_.Ox("#persistent-panel-container"),_.V("design:type",HTMLElement)],wL.prototype,"persistentPanelContainer",void 0);_.S([_.R({selector:_.wfa}),_.V("design:type",String)],wL.prototype,"frostedGlassMode",void 0);_.S([_.GO("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wL.prototype,"dispatchFrostedGlassMode",null);
_.S([_.R({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.V("design:type",Object)],wL.prototype,"isFrostedGlassDisabled",void 0);_.S([_.GO("isWatchPage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wL.prototype,"isWatchPageChanged",null);_.S([_.f("isHomePage","chipBarIsSticky","scrollAtTop"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wL.prototype,"applyFrostedGlassToChipBar",null);
_.S([_.R(),_.V("design:type",Object)],wL.prototype,"isChannelOrPlaylistPage",void 0);_.S([_.Ex("isInlinePreviewEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wL.prototype,"isInlinePreviewEnabledChanged",null);_.S([_.GO("guideIsVisibleButNotPersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wL.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.S([_.GO("guidePersistentAndVisible","miniGuideVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wL.prototype,"observeGuideVisibility",null);_.S([_.GO("persistentPanelVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wL.prototype,"observePersistentPanelVisibility",null);
_.S([_.Yo("attached"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],wL.prototype,"onYtPageManagerAttached",null);_.S([_.GO("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],wL.prototype,"updateMastheadData",null);_.S([_.Yo("yt-set-theater-mode-enabled"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],wL.prototype,"onSetTheaterModeEnabled",null);
_.S([_.Yo("yt-page-type-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],wL.prototype,"onPageChanged",null);_.S([_.Yo("yt-page-data-updated"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wL.prototype,"onPageDataUpdated",null);_.S([_.Yo("yt-request-panel-mode-change"),_.V("design:type",Function),_.V("design:paramtypes",[Event,Object]),_.V("design:returntype")],wL.prototype,"onRequestPanelModeChange",null);
_.S([_.Yo("yt-guide-hover"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wL.prototype,"onGuideOpenButtonHover",null);_.S([_.Yo("app-drawer-transitioned"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],wL.prototype,"onDrawerIronSelect",null);_.S([_.Yo("yt-add-element-to-app"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],wL.prototype,"onAddElementToApp",null);
_.S([_.Yo("yt-set-fullerscreen-styles"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wL.prototype,"setFullscreen",null);_.S([_.Yo("yt-open-hotkey-dialog"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wL.prototype,"onOpenHotkeyDialog",null);_.S([_.pD({is:"ytd-app"})],wL);_.AM().processSignal("eor");

_.rU();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
